@barocss/browser 0.10.3 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +10 -7
- package/dist/index.d.cts +39 -25
- package/dist/index.d.ts +39 -25
- package/dist/index.es.js +106 -105
- package/dist/index.umd.js +10 -7
- package/package.json +2 -2
package/dist/cdn/barocss.umd.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BaroCSS={})}(this,function(t){function e(t,e,r){return{type:"decl",prop:t,value:e,source:r}}function r(t,e){return{type:"at-root",nodes:t,source:e}}function o(t,e,r,o){return{type:"at-rule",name:t,params:e,nodes:r,source:o}}function a(t,e,r){return{type:"rule",selector:t,nodes:e,source:r}}function n(t,r,a,n){const s=[e("syntax",`"${a||"*"}"`,n),e("inherits","false",n)];return r&&s.push(e("initial-value",r,n)),o("property",t,s,n)}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var s=!1;function i(){return s}function l(...t){s&&console.warn(...t)}var c,p=class{constructor(){this.cache=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}}},u=new p,d=class{constructor(){this.cache=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}}},y=new d,h=class{constructor(){this.cache=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}}},g=new h;function m(){u.clear(),y.clear(),g.clear(),c?.(),function(...t){s&&console.log(...t)}("[clearAllCaches] All caches cleared")}var f=new WeakMap,b=0;function v(t){const e=f.get(t);return e&&e.cacheGeneration!==b&&(x(t),e.cacheGeneration=b),e}function x(t){const e=f.get(t);e&&(e.astCache.clear(),e.parseResultCache.clear(),e.utilityCache.clear(),e.failures.clear())}c=()=>{b+=1};var k=[];function w(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Utility registration requires a context from createContext");(r?.utilities||k).push(t),e?x(e):(y.clear(),g.clear())}function $(t){return t&&v(t)?.utilities||k}var C=[];function P(t,e,r={},o){S({name:t,match:e=>e===t,modifySelector:({...t})=>e.map(t=>({selector:t,source:r.source})),...r},o)}function z(t,e,r,o={},a){S({match:t,modifySelector:e,wrap:r,...o},a)}function S(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Modifier registration requires a context from createContext");(r?.modifiers||C).push(t),e&&x(e)}function A(t){return t&&v(t)?.modifiers||C}var j=/[^A-Za-z0-9_-]/gu,R=/^[\s\p{C}\p{Z}]$/u;function E(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)+" "+T(t.slice(r+1))}return T(t)}function T(t){return t.replace(j,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?"\\\\":R.test(t)?"\\"+t.codePointAt(0).toString(16)+" ":"\\"+t)}function N(t,r,o,n){w({name:t,match:e=>e===t,handler:t=>r.flatMap(r=>{if(r.type)return[r];if("function"==typeof r)return[r(t)];const[o,n]=r;return"string"==typeof n?[e(o,n)]:Array.isArray(n)?[a(o,n.map(([t,r])=>e(t,r)))]:[]}),description:o?.description,category:o?.category,priority:o?.priority},n)}function W(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 V(t,e,r){const o=W(t,e,r);return"string"==typeof o?o:null}function B(t,e,r,o){return void 0===W(t,e,r)?null:`var(--${o}-${r})`}function M(t,r){w({name:t.name,match:e=>e.startsWith(t.name+"-"),handler:(r,o,a,n)=>{let s=r;const i=a,l={opacity:a.opacity};if(t.supportsOpacity&&!a.arbitrary&&!a.customProperty&&r.includes("/")){const t=r.split("/");t.length>=2&&(l.opacity=t.pop(),s=t.join("/"))}if(t.supportsArbitrary&&i.arbitrary){const r=D(F(s.replace(/_/g," ")));if(t.handle){const e=t.handle(r,o,a,l);if(e)return e}return t.prop?[e(t.prop,r)]:[]}if(t.supportsCustomProperty&&i.customProperty){if(t.handleCustomProperty)return t.handleCustomProperty(s,o,a,l);const r=`var(${s})`;if(t.handle){const e=t.handle(r,o,a,l);if(e)return e}return t.prop?[e(t.prop,r)]:[]}let c;t.themeKey&&o.theme&&(c=L(o.theme(t.themeKey,s)));let p=void 0!==c?t.themeKey:void 0;if(!c&&t.themeKeys&&o.theme)for(const e of t.themeKeys)if(c=L(o.theme(e,s)),void 0!==c){p=e;break}if(void 0!==c){if(l.themeNamespace=p,l.themeKey=s,"colors"!==p&&(t.themeKeys??[t.themeKey]).includes("colors")||(l.realThemeValue=s),s=c,t.prop)return[e(t.prop,s)];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return[]}t.supportsFraction&&/^-?\d+\/\d+$/.test(r)&&(s=r);const u=t.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&&t.supportsNegative&&t.handleNegativeBareValue){const e=t.handleNegativeBareValue({value:String(s).replace(/^-/,""),ctx:o,token:a,extra:l})??u;if(null==e)return[];s=e}else if(t.handleBareValue){const e=t.handleBareValue({value:s,ctx:o,token:a,extra:l})??u;if(null==e)return[];s=e}else if(u)s=u;else if(!/^-?(\d|\.\d)/.test(String(s)))return[];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return t.prop?[e(t.prop,s)]:[]},description:t.description,category:t.category,priority:t.priority},r)}var O=new Set(["calc","min","max","clamp"]);function F(t){return t.replace(/--spacing\(\s*([^()]+?)\s*\)/g,"calc(var(--spacing) * $1)")}var K={name:"[arbitrary-property]",match:()=>!1,handler:(t,r,o)=>{const a=o.property;return a&&t?[e(a,D(F(t.replace(/_/g," "))))]:[]}};function D(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(O.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 L(t){return"string"==typeof t?t:"number"==typeof t&&Number.isFinite(t)?String(t):void 0}function Z(t,e){const r=e&&v(e)?.utilityCache||g;if(r.has(t))return r.get(t);const o=$(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 I(t,e){const r=e&&v(e)?.parseResultCache||y;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=Z(t[0].value,e)?0:t.length-1;if(t.some((t,e)=>!(e===o||function(t){if(q(t))return!1;const e=_.exec(t);return e?G(e[1],!0):G(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(!Y((t.length>1&&!Z(t[0].value,e)?t[t.length-1]:t[0]).value))return{modifiers:r,utility:null};if(1===t.length)o=Q(t[0].value,e);else if(2===t.length){const a=t[0],n=t[1];if(Z(a.value,e)){o=Q(a.value,e);const t=X(n.value);t&&r.push(t)}else{const t=X(a.value);t&&r.push(t),o=Q(n.value,e)}}else if(Z(t[0].value,e)){o=Q(t[0].value,e);for(let e=1;e<t.length;e++){const o=X(t[e].value);o&&r.push(o)}}else{for(let e=0;e<t.length-1;e++){const o=X(t[e].value);o&&r.push(o)}o=Q(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 _=/^-?(?:(?:group|peer)-)?(?:has|not)-\[(.*)\](?:\/[\w-]+)?$/;function q(t){return t.includes("/*")||t.includes("*/")}function U(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 H(t){return t.includes("</")}function Y(t){return!q(t)&&G(t,!0)}function G(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 X(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 J(t,e){return e.name.length-t.name.length}function Q(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!Y(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=[...$(e)].sort(J);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 tt=t=>{const e=String(t??"");return!U(e)&&!H(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)},et=t=>{if("at-rule"!==t.type)return[];if("property"!==t.name)return t.nodes;const e=new Set;return t.nodes.filter(t=>"decl"!==t.type||!e.has(t.prop)&&!!e.add(t.prop))},rt=(t,e)=>Y(String(t))&&Y(String(e??""))&&!H(String(t))&&!H(String(e??""));function ot(t,e,r,o=""){const a=r?.minify,n=o,s=o+" ",i=r?.important?" !important":"",c=r?{...r,nested:!0}:r,p=r?.scope?"."+E(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 l("[astToCss] Empty AST received:",{ast:t,baseSelector:e,minify:a}),"";const d=[];if(Array.isArray(t)){const e=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 rt(t.prop,e)?t.prop.startsWith("--")?a?`${t.prop}: ${e}${i};`:`${n}${t.prop}: ${e}${i};`:`${a?"":n}${t.prop}: ${e}${i};`:""}case"rule":{let r=t.selector;if(e){const t="."+E(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 tt(r)&&u(r)?a?`${n}${r}{${ot(t.nodes,e,c,s)}}`:`${n}${r} {\n${ot(t.nodes,e,c,s)}${n}}`:""}case"style-rule":return tt(t.selector)&&u(t.selector)?a?`${n}${t.selector} {${ot(t.nodes,e,c,s)}}`:`${n}${t.selector} {\n${ot(t.nodes,e,c,s)}${n}}`:"";case"at-rule":return tt(t.name)&&tt(t.params)?a?`${n}@${t.name} ${t.params}{${ot(t.nodes,e,r,s)}}`:`${n}@${t.name} ${t.params} {\n${ot(t.nodes,e,r,s)}${n}}`:"";case"comment":return a?"":`${n}/* ${t.text} */`;case"raw":return`${n}${t.value}`;default:return l("[astToCss] Unknown node type:",t),""}}).filter(Boolean).join(a?"":"\n"),h=y+(a?"":"\n");return h&&""!==h.trim()||l("[astToCss] Empty result generated:",{ast:t,baseSelector:e,minify:a,result:y,finalResult:h,dedupedAst:d}),h}function at(t,e){const r=!0===e?.minify;return t.map(t=>{const e=[];if("decl"===t.type)rt(t.prop,t.value)&&e.push(r?`${t.prop}:${t.value};`:`${t.prop}: ${t.value};`);else if("at-rule"===t.type&&tt(t.name)&&tt(t.params))if(r){const r=et(t).filter(t=>"decl"===t.type&&rt(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${et(t).map(t=>{if("decl"===t.type&&rt(t.prop,t.value))return`\t${t.prop}: ${t.value};`}).join("\n")}\n}`);return e.join(r?"":"\n")}).join(r?"":"\n")}function nt(t){return t.replace(".","\\.")}function st(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 it(t){if(!t)return{};const e={};for(const r in t)e[`--shadow-${r}`]=t[r];return e}function lt(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 ct(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=lt(o);t&&(e[`--text-${r}--line-height`]=t)}else e[`--text-${r}`]=o}return e}function pt(t){if(!t)return{};const e={};for(const r in t)e[`--font-weight-${r}`]=t[r];return e}function ut(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 dt(t){if(!t)return{};const e={};for(const r in t)e[`--letter-spacing-${r}`]=t[r];return e}function yt(t){if(!t)return{};const e={};for(const r in t)e[`--spacing-${nt(r)}`]=t[r];return e}function ht(t){if(!t)return{};const e={};for(const r in t)e[`--radius-${nt(r)}`]=t[r];return e}function gt(t){if(!t)return{};const e={};for(const r in t)e[`--z-${nt(r)}`]=String(t[r]);return e}function mt(t){if(!t)return{};const e={};for(const r in t)e[`--opacity-${nt(r)}`]=String(t[r]);return e}function ft(t){if(!t)return{};const e={};for(const r in t)e[`--animate-${nt(r)}`]=t[r];return e}var bt=/\/\*|\*\/|[{};]|<\//;function vt(t,e){if(!t.includes("animation"))return[];const r=e.theme("keyframes");if(!r||"object"!=typeof r)return[];const o=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||bt.test(t)||/\s/.test(t)||!e||"object"!=typeof e)return"";let r="";for(const[o,a]of Object.entries(e)){if(bt.test(o)||!a||"object"!=typeof a)return"";let t="";for(const[e,r]of Object.entries(a)){const o=String(r);if(bt.test(e)||bt.test(o))return"";t+=` ${e}: ${o};\n`}r+=` ${o} {\n${t} }\n`}return`@keyframes ${t} {\n${r}}`}(t,r[t])).filter(Boolean)}function xt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-timing-function"]=t[r]:(e[`--transition-timing-function-${nt(r)}`]=t[r],"linear"!==r&&(e[`--ease-${nt(r)}`]=t[r]));return e}function kt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-duration"]=t[r]:e[`--transition-duration-${nt(r)}`]=t[r];return e}function wt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-delay"]=t[r]:e[`--transition-delay-${nt(r)}`]=t[r];return e}function $t(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-blur"]=t[r]:e[`--blur-${nt(r)}`]=t[r];return e}function Ct(t){const e={};for(const r in t)e[`--container-${nt(r)}`]=t[r];return e}var Pt=/^--(?:[\w-]|\\\.)+$/;function zt(t,e=""){return":root,:host {\n"+Object.entries(t).filter(([t,e])=>function(t,e){if("string"!=typeof t||!Pt.test(t)||H(t))return!1;if("string"!=typeof e&&"number"!=typeof e)return!1;const r=String(e);return""!==r.trim()&&Y(r)&&!U(r)&&!H(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 St=/--baro-/g,At=new Set(["prop","value","params","selector","nodes","items"]);var jt=new Set;function Rt(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(Rt(a,[...e,t])))}return r}function Et(t){return"at-root"===t?-1:"at-rule"===t?0:"style-rule"===t?10:"rule"===t?20:30}var Tt={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 Nt(t){return Tt[t.source||"base"]||100}function Wt(t){if(!t||0===t.length)return[];const e=t.slice(0,-1),r=t[t.length-1],o=[...e].sort((t,e)=>Et(t.type)-Et(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)=>Nt(t)-Nt(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])=>(Tt[t]??999)-(Tt[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 Vt(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||Vt(e.nodes??[],e,r)}e&&(e.nodes=t.filter(Boolean))}function Bt(t,e){const r=v(e),o=r?.failures||jt,a=r?.astCache||u;if(o.has(t))return[];if(a.has(t))return a.get(t);const{modifiers:n,utility:s}=I(t,e);if(!s)return l(`[BAROCSS] Invalid class name format: "${t}"`),o.add(t),[];const i=s.property?[K]:$(e).filter(t=>{const e=s.value?`${s.prefix}-${s.value}`:s.prefix;return t.match(e)});if(0===i.length){return l(`[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 p=[];for(const l of i)if(p=l.handler(c,e,s,l)||[],p.length>0)break;const d=[];for(let u=0;u<n.length;u++){const r=n[u],a=A(e).find(t=>t.match(r.type,e));if(!a)return l(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.astHandler&&(p=a.astHandler(p,r,e,n,u)),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:u});if(null==s)return l(`[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 l=d.length-1;l>=0;l--){const t=d[l];"wrap"===t.type?p=t.items.map(t=>"rule"===t.type||"style-rule"===t.type||"at-rule"===t.type||"at-root"===t.type?{...t,nodes:[...t.nodes||[],...p]}:t):"style-rule"===t.type?p=[{type:"style-rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"at-rule"===t.type?p=[{type:"at-rule",name:t.name||"media",params:t.params,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"rule"===t.type&&(p=[{type:"rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}])}const y=[];return Vt(p,void 0,y),p=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(St,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,...p].filter(Boolean),e),a.set(t,p),p}var Mt=/[ \t\n\f\r]+/;function Ot(t,e,r){const o=new Set;return t.split(Mt).filter(t=>{if(!t)return!1;if(r?.dedup){if(o.has(t))return!1;o.add(t)}return!0}).map(t=>{const o=Bt(t,e),a=(v(e)?.parseResultCache||y).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=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)}(Rt(t).map(Wt))}(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=ot([t],"",n);c.push(e)});else{const r=ot([e],t,{...n,scope:t});c.push(r)}const p=[];for(const e of i){const t=at([e]);p.push(t)}return p.push(...vt(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 Ft=class{constructor(t){this.processedClasses=new Set,this.batchSize=50,this.debounceMs=16,this.pendingClasses=new Set,this.batchTimer=null,this.ctx=t}processClass(t){if(this.processedClasses.has(t))return null;try{if(!I(t,this.ctx).utility)return null;const e=Bt(t,this.ctx);if(0===e.length)return l("[IncrementalParser] ast is empty",t),null;const r=Ot(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 l("[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:(v(this.ctx)?.astCache||u).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)}},Kt={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"},Dt={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:Kt,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":Kt.spin,"--animate-ping":Kt.ping,"--animate-pulse":Kt.pulse,"--animate-bounce":Kt.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"}},Lt=/^[A-Za-z_][A-Za-z0-9_-]*$/,Zt=/^(--[A-Za-z0-9_-]+|-?[A-Za-z][A-Za-z0-9-]*)$/;function It(t,e){if("string"!=typeof t||!Lt.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(!Zt.test(o)||!t||!Y(t)||U(t))return null;r.push([o,t])}return r.length?r:null}var _t="\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 qt(t,e){const r={},o=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]=qt("object"==typeof n&&null!==n?n:{},s):r[o]=void 0!==s?s:n}return r}var Ut=new WeakMap;function Ht(t,...e){const r=(...e)=>Ht(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=Ut.get(t);a||(a=new Set,Ut.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 Yt(t){const e=function(t){return{...st(t.colors),...it(t.boxShadow),...ct(t.fontSize),...pt(t.fontWeight),...ut(t.fontFamily),...dt(t.letterSpacing),"--spacing":t.spacing[1],...yt(t.spacing),...Ct(t.container),...ht(t.borderRadius),...Object.fromEntries(Object.entries(t.borderWidth??{}).filter(([t])=>"DEFAULT"!==t).map(([t,e])=>[`--border-width-${nt(t)}`,String(e)])),...gt(t.zIndex),...mt(t.opacity),...ft({...t.animations,...t.animation}),...xt(t.transitionTimingFunction),...kt(t.transitionDuration),...wt(t.transitionDelay),...$t(t.blur),...Object.fromEntries(Object.entries(t.textShadow??{}).map(([t,e])=>[`--text-shadow-${nt(t)}`,e])),...Object.fromEntries(Object.entries(t.dropShadow??{}).map(([t,e])=>[`--drop-shadow-${nt(t)}`,e])),...Object.fromEntries(Object.entries(t.aspect??{}).map(([t,e])=>[`--aspect-${nt(t)}`,e]))}}(t);return zt(e)}function Gt(t){var r;void 0!==t.debug&&(r=!!t.debug,s=r);const o={presets:[{theme:Dt},...t.presets||[]],...t},a=function(t){let e={};if(t.presets)for(const r of t.presets)r.theme&&(e=qt(e,r.theme));if(t.theme){const{extend:r,...o}=t.theme;e=qt(e,o),r&&(e=qt(e,r))}return e}(o),n={hasPreset:(t,e)=>function(t,e,r){return t[e]?.includes?.(r)}(a,t,e),theme:(...t)=>Ht(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:()=>Yt(a),extendTheme:(t,e)=>{if("function"==typeof e){const r=e(n.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}}x(n)},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?_t:""}(t)};return function(t,e,r){f.set(t,{utilities:[...e],modifiers:[...r],astCache:new p,parseResultCache:new d,utilityCache:new h,failures:new Set,cacheGeneration:b})}(n,$(),A()),function(t,r){if(!r||"object"!=typeof r||Array.isArray(r))return;const o=$(t),a=[...o],n=o.length;for(const[s,i]of Object.entries(r)){const r=It(s,i);if(!r){l(`[BAROCSS] Ignoring invalid custom utility "${s}"`);continue}const o=a.filter(t=>t.match(s));w({name:s,category:"custom",match:t=>t===s,handler:(t,a,n)=>{let s=[];for(const e of o)if(s=e.handler(t,a,n,e)||[],s.length>0)break;return[...s,...r.map(([t,r])=>e(t,r))]}},t)}o.length>n&&o.unshift(...o.splice(n))}(n,t.utilities),n}function Xt(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 Jt(t){return/^-?\d+(?:\.\d+)?$/.test(t)?t:null}function Qt(t){return/^\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|fr)$/.test(t)?t:null}function te(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 ee=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 re(t){return ee.has(t.toLowerCase())?t:t.startsWith("color:var(")?t.slice(6):t.startsWith("color:")?re(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 oe=new Set(["inherit","currentcolor","transparent"]);function ae(t,r,a){const n=String(a.realThemeValue),s=oe.has(r.toLowerCase())||r.startsWith("var(")||!/^[\w-]+$/.test(n)?r:`var(--color-${n})`;if(!a.opacity)return[e(t,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=r=>o("supports","(color:color-mix(in lab, red, red))",[e(t,`color-mix(in oklab, ${s} ${r}, transparent)`)]);return i.isVar?[e(t,r),l(i.amount)]:[e(t,`color-mix(in srgb, ${r} ${i.amount}, transparent)`),l(i.amount)]}N("accent-inherit",[["accent-color","inherit"]],{category:"interactivity"}),N("accent-current",[["accent-color","currentColor"]],{category:"interactivity"}),N("accent-transparent",[["accent-color","transparent"]],{category:"interactivity"}),M({name:"accent",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,a,n)=>n?.realThemeValue?n.opacity?[o("supports","(color:color-mix(in lab, red, red))",[e("accent-color",`color-mix(in lab, ${t} ${n.opacity}%, transparent)`)]),e("accent-color",t)]:[e("accent-color",`var(--color-${n.realThemeValue})`)]:[e("accent-color",t)],handleCustomProperty:t=>[e("accent-color",`var(${t})`)],description:"accent-color utility (static, arbitrary, custom property supported)",category:"interactivity"}),N("appearance-none",[["appearance","none"]],{category:"interactivity"}),N("appearance-auto",[["appearance","auto"]],{category:"interactivity"}),N("caret-inherit",[["caret-color","inherit"]],{category:"interactivity"}),N("caret-current",[["caret-color","currentColor"]],{category:"interactivity"}),N("caret-transparent",[["caret-color","transparent"]],{category:"interactivity"}),M({name:"caret",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,a,n)=>n?.realThemeValue?n.opacity?[o("supports","(color:color-mix(in lab, red, red))",[e("caret-color",`color-mix(in lab, ${t} ${n.opacity}%, transparent)`)]),e("caret-color",t)]:[e("caret-color",`var(--color-${n.realThemeValue})`)]:[e("caret-color",t)],handleCustomProperty:t=>[e("caret-color",`var(${t})`)],description:"caret-color utility (static, theme, arbitrary, custom property supported)",category:"interactivity"}),N("scheme-normal",[["color-scheme","normal"]],{category:"interactivity"}),N("scheme-dark",[["color-scheme","dark"]],{category:"interactivity"}),N("scheme-light",[["color-scheme","light"]],{category:"interactivity"}),N("scheme-light-dark",[["color-scheme","light dark"]],{category:"interactivity"}),N("scheme-only-dark",[["color-scheme","only dark"]],{category:"interactivity"}),N("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=>{N(`cursor-${t}`,[["cursor",t]],{category:"interactivity"})}),M({name:"cursor",prop:"cursor",supportsArbitrary:!0,supportsCustomProperty:!0,description:"cursor utility (static, arbitrary, custom property supported)",category:"interactivity"}),N("field-sizing-fixed",[["field-sizing","fixed"]],{category:"interactivity"}),N("field-sizing-content",[["field-sizing","content"]],{category:"interactivity"}),N("pointer-events-auto",[["pointer-events","auto"]],{category:"interactivity"}),N("pointer-events-none",[["pointer-events","none"]],{category:"interactivity"}),N("resize",[["resize","both"]],{category:"interactivity"}),N("resize-x",[["resize","horizontal"]],{category:"interactivity"}),N("resize-y",[["resize","vertical"]],{category:"interactivity"}),N("resize-none",[["resize","none"]],{category:"interactivity"}),N("scroll-auto",[["scroll-behavior","auto"]],{category:"interactivity"}),N("scroll-smooth",[["scroll-behavior","smooth"]],{category:"interactivity"}),N("snap-start",[["scroll-snap-align","start"]],{category:"interactivity"}),N("snap-end",[["scroll-snap-align","end"]],{category:"interactivity"}),N("snap-center",[["scroll-snap-align","center"]],{category:"interactivity"}),N("snap-align-none",[["scroll-snap-align","none"]],{category:"interactivity"}),N("snap-normal",[["scroll-snap-stop","normal"]],{category:"interactivity"}),N("snap-always",[["scroll-snap-stop","always"]],{category:"interactivity"}),N("snap-none",[["scroll-snap-type","none"]],{category:"interactivity"}),N("snap-x",[["scroll-snap-type","x var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),N("snap-y",[["scroll-snap-type","y var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),N("snap-both",[["scroll-snap-type","both var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),N("snap-mandatory",[["--baro-scroll-snap-strictness","mandatory"]],{category:"interactivity"}),N("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(([t,r])=>{N(`scroll-${t}-px`,[[r,"1px"]],{category:"interactivity"}),N(`-scroll-${t}-px`,[[r,"-1px"]],{category:"interactivity"}),M({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,o,a,n)=>Jt(t)||a.negative?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:t=>[e(r,`var(${t})`)],description:`${t} 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(([t,r])=>{M({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":/^(\d|\.\d)/.test(t)?t:null,handle:(t,o,a,n)=>a.negative?[]:Jt(t)?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:(t,o,a)=>a.negative?[]:[e(r,`var(${t})`)],description:`scroll-${t} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),N("touch-auto",[["touch-action","auto"]],{category:"interactivity"}),N("touch-none",[["touch-action","none"]],{category:"interactivity"}),N("touch-pan-x",[["touch-action","pan-x"]],{category:"interactivity"}),N("touch-pan-left",[["touch-action","pan-left"]],{category:"interactivity"}),N("touch-pan-right",[["touch-action","pan-right"]],{category:"interactivity"}),N("touch-pan-y",[["touch-action","pan-y"]],{category:"interactivity"}),N("touch-pan-up",[["touch-action","pan-up"]],{category:"interactivity"}),N("touch-pan-down",[["touch-action","pan-down"]],{category:"interactivity"}),N("touch-pinch-zoom",[["touch-action","pinch-zoom"]],{category:"interactivity"}),N("touch-manipulation",[["touch-action","manipulation"]],{category:"interactivity"}),N("select-none",[["-webkit-user-select","none"],["user-select","none"]],{category:"interactivity"}),N("select-text",[["-webkit-user-select","text"],["user-select","text"]],{category:"interactivity"}),N("select-all",[["-webkit-user-select","all"],["user-select","all"]],{category:"interactivity"}),N("select-auto",[["-webkit-user-select","auto"],["user-select","auto"]],{category:"interactivity"}),N("will-change-auto",[["will-change","auto"]],{category:"interactivity"}),N("will-change-scroll",[["will-change","scroll-position"]],{category:"interactivity"}),N("will-change-contents",[["will-change","contents"]],{category:"interactivity"}),N("will-change-transform",[["will-change","transform"]],{category:"interactivity"}),M({name:"will-change",prop:"will-change",supportsArbitrary:!0,supportsCustomProperty:!0,description:"will-change utility (static, arbitrary, custom property supported)",category:"interactivity"}),N("scrollbar-auto",[["scrollbar-width","auto"]],{category:"interactivity"}),N("scrollbar-thin",[["scrollbar-width","thin"]],{category:"interactivity"}),N("scrollbar-none",[["scrollbar-width","none"]],{category:"interactivity"}),N("scrollbar-gutter-auto",[["scrollbar-gutter","auto"]],{category:"interactivity"}),N("scrollbar-gutter-stable",[["scrollbar-gutter","stable"]],{category:"interactivity"}),N("scrollbar-gutter-both",[["scrollbar-gutter","stable both-edges"]],{category:"interactivity"});var ne=t=>t.replace(/^color:/,"");for(const Mo of["thumb","track"]){const t=`--baro-scrollbar-${Mo}`,o=t=>[r([n("--baro-scrollbar-thumb","#0000","<color>"),n("--baro-scrollbar-track","#0000","<color>")]),...t,e("scrollbar-color","var(--baro-scrollbar-thumb) var(--baro-scrollbar-track)")],a=(r,o)=>o?[e(t,`color-mix(in oklab, ${r} ${o.replace(/^\[(.*)\]$/,"$1").replace(/%$/,"")}%, transparent)`)]:[e(t,r)];M({name:`scrollbar-${Mo}`,themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(r,n,s,i)=>i?.realThemeValue?o(a(`var(--color-${i.realThemeValue})`,i.opacity)):s.arbitrary?o(a(ne(r),i?.opacity)):"inherit"===r||"transparent"===r?o([e(t,r)]):"current"===r?o(a("currentcolor",i?.opacity)):null,handleCustomProperty:(t,e,r,n)=>o(a(`var(${ne(t)})`,n?.opacity)),description:`scrollbar-color ${Mo} utility (theme, arbitrary, custom property, opacity)`,category:"interactivity"})}var se="var(--default-transition-timing-function)",ie="var(--default-transition-duration)";N("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",se],["transition-duration",ie]],{category:"transitions"}),N("transition-all",[["transition-property","all"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("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",se],["transition-duration",ie]],{category:"transitions"}),N("transition-opacity",[["transition-property","opacity"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-shadow",[["transition-property","box-shadow"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-transform",[["transition-property","transform, translate, scale, rotate"],["transition-timing-function",se],["transition-duration",ie]],{category:"transitions"}),N("transition-normal",[["transition-behavior","normal"]],{category:"transitions"}),N("transition-discrete",[["transition-behavior","allow-discrete"]],{category:"transitions"}),N("transition-none",[["transition-property","none"]],{category:"transitions"}),M({name:"transition",prop:"transition-property",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>[e("transition-property",t),e("transition-timing-function",se),e("transition-duration",ie)],handleCustomProperty:t=>[e("transition-property",`var(${t})`),e("transition-timing-function",se),e("transition-duration",ie)],description:"transition-property utility (static, arbitrary value, custom property supported)",category:"transitions"}),N("duration-initial",[["transition-duration","initial"]],{category:"transitions"}),M({name:"duration",prop:"transition-duration",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("transition-duration",`${t}ms`)]:[e("transition-duration",t)],handleCustomProperty:t=>[e("transition-duration",`var(${t})`)],description:"transition-duration utility (static, number, arbitrary, custom property supported)",category:"transitions"}),N("ease-linear",[["transition-timing-function","linear"]],{category:"transitions"}),N("ease-in",[["transition-timing-function","var(--ease-in)"]],{category:"transitions"}),N("ease-out",[["transition-timing-function","var(--ease-out)"]],{category:"transitions"}),N("ease-in-out",[["transition-timing-function","var(--ease-in-out)"]],{category:"transitions"}),N("ease-initial",[["transition-timing-function","initial"]],{category:"transitions"}),M({name:"ease",prop:"transition-timing-function",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"transitionTimingFunction",t,"ease")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>[e("transition-timing-function",t)],handleCustomProperty:t=>[e("transition-timing-function",`var(${t})`)],description:"transition-timing-function utility (static, arbitrary, custom property supported)",category:"transitions"}),M({name:"delay",prop:"transition-delay",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("transition-delay",`${t}ms`)]:[e("transition-delay",t)],handleCustomProperty:t=>[e("transition-delay",`var(${t})`)],description:"transition-delay utility (number, arbitrary, custom property supported)",category:"transitions"}),N("animate-spin",[["animation","var(--animate-spin)"]],{category:"transitions"}),N("animate-ping",[["animation","var(--animate-ping)"]],{category:"transitions"}),N("animate-pulse",[["animation","var(--animate-pulse)"]],{category:"transitions"}),N("animate-bounce",[["animation","var(--animate-bounce)"]],{category:"transitions"}),N("animate-none",[["animation","none"]],{category:"transitions"}),M({name:"animate",themeKeys:["animations","animation"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?[e("animation",`var(--animate-${a.realThemeValue})`)]:o.customProperty?[e("animation",`var(${t})`)]:[e("animation",t)],handleCustomProperty:t=>[e("animation",`var(${t})`)],description:"animation utility (static, arbitrary, custom property supported)",category:"transitions"}),N("border-collapse",[["border-collapse","collapse"]],{category:"table"}),N("border-separate",[["border-collapse","separate"]],{category:"table"}),N("table-auto",[["table-layout","auto"]],{category:"table"}),N("table-fixed",[["table-layout","fixed"]],{category:"table"});var le=()=>r([n("--baro-border-spacing-x","0","<length>"),n("--baro-border-spacing-y","0","<length>")]),ce="var(--baro-border-spacing-x) var(--baro-border-spacing-y)",pe=(t,r)=>[le(),...t.map(t=>e(`--baro-border-spacing-${t}`,r)),e("border-spacing",ce)];function ue(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 de(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])=>{N(`${t}-px`,[le,...e.map(t=>[`--baro-border-spacing-${t}`,"1px"]),["border-spacing",ce]],{category:"table"}),M({name:t,prop:"border-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>pe(e,Jt(t)?`calc(var(--spacing) * ${t})`:t),handleCustomProperty:t=>pe(e,`var(${t})`),description:`${t} utility (number, px, arbitrary, custom property supported)`,category:"table"})}),N("caption-top",[["caption-side","top"]],{category:"table"}),N("caption-bottom",[["caption-side","bottom"]],{category:"table"});var ye=/^-?(\d*\.)?\d+([a-z]+|%)?$/i;function he(t,e,r){return de(t,",").map(t=>{const o=de(t," "),a=o.findIndex(t=>"inset"!==t&&!ye.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 ge(t,r,a,n,s=t=>t.join(", ")){const i=ue(n);if(n&&!i)return null;if(!i)return[e(r,s(he(a,t)))];const l=e(`--baro-${t}-alpha`,i.alpha);return i.isVar?[l,e(r,s(he(a,t))),o("supports","(color: lab(from red l a b))",[e(r,s(he(a,t,i.alpha)))])]:[l,e(r,s(he(a,t,i.alpha)))]}function me(t,r,a,n=r){const s=`--baro-${t}-color`;if("inherit"===r)return[e(s,"inherit")];const i=ue(a);if(a&&!i)return null;const l=i?`color-mix(in oklab, ${n} ${i.alpha}, transparent)`:n;return[e(s,i?`color-mix(in srgb, ${r} ${i.alpha}, transparent)`:r),o("supports","(color: color-mix(in lab, red, red))",[e(s,`color-mix(in oklab, ${l} var(--baro-${t}-alpha), transparent)`)])]}N("filter-none",[["filter","none"]],{category:"effects"}),M({name:"filter",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"});var fe=()=>e("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(([t,r])=>{N(t,[e("--baro-blur",`blur(${r})`),fe()],{category:"effects"})}),N("blur",[e("--baro-blur","blur(8px)"),fe()],{category:"effects"}),N("blur-none",[e("--baro-blur",""),fe()],{category:"effects"}),M({name:"blur",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-blur",`blur(var(${t}))`),fe()]:[e("--baro-blur",`blur(${t})`),fe()],handleCustomProperty:t=>[e("--baro-blur",`blur(var(${t}))`),fe()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),M({name:"brightness",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-brightness",`brightness(${t})`),fe()]:Jt(t)?[e("--baro-brightness",`brightness(${t}%)`),fe()]:o.customProperty?[e("--baro-brightness",`brightness(var(${t}))`),fe()]:[e("--baro-brightness",`brightness(${t})`),fe()],handleCustomProperty:t=>[e("--baro-brightness",`brightness(var(${t}))`),fe()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"contrast",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-contrast",`contrast(${t})`),fe()]:Jt(t)?[e("--baro-contrast",`contrast(${t}%)`),fe()]:o.customProperty?[e("--baro-contrast",`contrast(var(${t}))`),fe()]:[e("--baro-contrast",`contrast(${t})`),fe()],handleCustomProperty:t=>[e("--baro-contrast",`contrast(var(${t}))`),fe()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var be=()=>r([n("--baro-drop-shadow"),n("--baro-drop-shadow-color"),n("--baro-drop-shadow-alpha","100%","<percentage>"),n("--baro-drop-shadow-size")]),ve=t=>t.map(t=>`drop-shadow(${t})`).join(" "),xe=(t,e)=>{const r=t.theme("dropShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null};function ke(t,r,o,a=!1){const n=ge("drop-shadow","--baro-drop-shadow-size",t,r,ve);if(!n)return null;const s=void 0===o||r&&!a?"var(--baro-drop-shadow-size)":o;return[be(),...n,e("--baro-drop-shadow",s),fe()]}N("drop-shadow-none",[e("--baro-drop-shadow"," "),fe()]),w({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 ke("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 we=(t,r,o)=>{const a=me("drop-shadow",t,r,o);return a&&[be(),...a,e("--baro-drop-shadow","var(--baro-drop-shadow-size)")]};M({name:"drop-shadow",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e})=>xe(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 we(n,a);const s=o?.realThemeValue??t,i=r.arbitrary?null:xe(e,s);return i?ke(i,a,`drop-shadow(var(--drop-shadow-${s}))`):o?.realThemeValue?we(t,a,`var(--color-${o.realThemeValue})`):r.arbitrary?re(t)?we(t,a):ke(t,a):null},handleCustomProperty:t=>t.startsWith("color:")?we(`var(${t.slice(6)})`,void 0)??[]:[be(),e("--baro-drop-shadow-size",`drop-shadow(var(${t}))`),e("--baro-drop-shadow","var(--baro-drop-shadow-size)"),fe()],description:"drop-shadow filter utility (static, arbitrary, custom property supported)",category:"effects"}),N("grayscale",[e("--baro-grayscale","grayscale(100%)"),fe()],{category:"effects"}),M({name:"grayscale",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-grayscale",`grayscale(${t}%)`),fe()]:[e("--baro-grayscale",`grayscale(${t})`),fe()],handleCustomProperty:t=>[e("--baro-grayscale",`grayscale(var(${t}))`),fe()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"hue-rotate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&Jt(o.value)?[e("--baro-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),fe()]:Jt(t)?[e("--baro-hue-rotate",`hue-rotate(${t}deg)`),fe()]:o.customProperty?[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),fe()]:[e("--baro-hue-rotate",`hue-rotate(${t})`),fe()],handleCustomProperty:t=>[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),fe()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),N("invert",[e("--baro-invert","invert(100%)"),fe()],{category:"effects"}),M({name:"invert",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-invert",`invert(${t}%)`),fe()]:[e("--baro-invert",`invert(${t})`),fe()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"saturate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-saturate",`saturate(${t}%)`),fe()]:[e("--baro-saturate",`saturate(${t})`),fe()],handleCustomProperty:t=>[e("--baro-saturate",`saturate(var(${t}))`),fe()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),N("sepia",[e("--baro-sepia","sepia(100%)"),fe()],{category:"effects"}),M({name:"sepia",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>Jt(t)?[e("--baro-sepia",`sepia(${t}%)`),fe()]:[e("--baro-sepia",`sepia(${t})`),fe()],handleCustomProperty:t=>[e("--baro-sepia",`sepia(var(${t}))`),fe()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var $e=()=>[e("-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, )"),e("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, )")];N("backdrop-filter",[["backdrop-filter","var(--baro-backdrop-filter)"]],{category:"effects"}),N("backdrop-filter-none",[["backdrop-filter","none"]],{category:"effects"}),M({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(([t,r])=>{N(t,[e("--baro-backdrop-blur",`blur(${r})`),...$e()],{category:"effects"})}),N("backdrop-blur",[e("--baro-backdrop-blur","blur(8px)"),...$e()],{category:"effects"}),N("backdrop-blur-none",[e("--baro-backdrop-blur",""),...$e()],{category:"effects"}),M({name:"backdrop-blur",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-backdrop-blur",`blur(var(${t}))`),...$e()]:[e("--baro-backdrop-blur",`blur(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-blur",`blur(var(${t}))`),...$e()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-brightness",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-brightness",`brightness(${t})`),...$e()]:Jt(t)?[e("--baro-backdrop-brightness",`brightness(${t}%)`),...$e()]:o.customProperty?[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...$e()]:[e("--baro-backdrop-brightness",`brightness(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...$e()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-contrast",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-contrast",`contrast(${t})`),...$e()]:Jt(t)?[e("--baro-backdrop-contrast",`contrast(${t}%)`),...$e()]:o.customProperty?[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...$e()]:[e("--baro-backdrop-contrast",`contrast(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...$e()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),N("backdrop-grayscale",[["--baro-backdrop-grayscale","grayscale(100%)"],...$e()],{category:"effects"}),M({name:"backdrop-grayscale",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-grayscale",`grayscale(${t}%)`),...$e()]:[e("--baro-backdrop-grayscale",`grayscale(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-grayscale",`grayscale(var(${t}))`),...$e()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-hue-rotate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&Jt(o.value)?[e("--baro-backdrop-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),...$e()]:Jt(t)?[e("--baro-backdrop-hue-rotate",`hue-rotate(${t}deg)`),...$e()]:[e("--baro-backdrop-hue-rotate",`hue-rotate(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-hue-rotate",`hue-rotate(var(${t}))`),...$e()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),N("backdrop-invert",[["--baro-backdrop-invert","invert(100%)"],...$e()],{category:"effects"}),M({name:"backdrop-invert",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-invert",`invert(${t}%)`),...$e()]:[e("--baro-backdrop-invert",`invert(${t})`),...$e()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),M({name:"backdrop-saturate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-saturate",`saturate(${t}%)`),...$e()]:[e("--baro-backdrop-saturate",`saturate(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-saturate",`saturate(var(${t}))`),...$e()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),N("backdrop-sepia",[["--baro-backdrop-sepia","sepia(100%)"],...$e()],{category:"effects"}),M({name:"backdrop-sepia",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?[e("--baro-backdrop-sepia",`sepia(${t}%)`),...$e()]:[e("--baro-backdrop-sepia",`sepia(${t})`),...$e()],handleCustomProperty:t=>[e("--baro-backdrop-sepia",`sepia(var(${t}))`),...$e()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var Ce="var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)",Pe=()=>r([n("--baro-shadow","0 0 #0000"),n("--baro-inset-shadow","0 0 #0000"),n("--baro-inset-ring-shadow","0 0 #0000"),n("--baro-ring-offset-shadow","0 0 #0000"),n("--baro-ring-shadow","0 0 #0000"),n("--baro-ring-offset-width","0px","<length>"),n("--baro-ring-offset-color","#fff")]),ze=t=>r([n(`--baro-${t}-color`),n(`--baro-${t}-alpha`,"100%","<percentage>")]),Se={"":"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)"},je={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)"},Re=t=>t.split(/,(?![^(]*\))/).map(t=>`inset ${t.trim()}`).join(", "),Ee=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Te(t,r,o){const a=ge(t,`--baro-${t}`,r,o);return a?[Pe(),ze(t),...a,e("box-shadow",Ce)]:null}function Ne(t,e,r,o){if("shadow"===t){if(Ee(Se,e))return Te(t,Se[e],r)}else{if(Ee(Ae,e))return Te(t,Ae[e],r);if(!r&&Ee(je,e))return Te(t,je[e],void 0)}const a=o&&"none"!==e?V(o,"shadow"===t?"boxShadow":"insetShadow",e):null;return a?Te(t,a,r):null}N("shadow-none",[Pe,["--baro-shadow","0 0 #0000"],["box-shadow",Ce]],{category:"effects"}),N("inset-shadow-none",[Pe,["--baro-inset-shadow","inset 0 0 #0000"],["box-shadow",Ce]],{category:"effects"}),w({name:"shadow",match:t=>/^shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return Ne("shadow","",a<0?void 0:o.slice(a+1))??[]},category:"effects"});var We={inherit:"inherit",current:"currentcolor",transparent:"transparent"};function Ve(t,e,r,o,a){const n=o.arbitrary?void 0:We[a??e];return n?me(t,n,r):a?me(t,e,r,`var(--color-${a})`):e.startsWith("color:")?me(t,`var(${e.slice(6)})`,r):o.arbitrary&&re(e)?me(t,e,r):void 0}for(const Mo of["shadow","inset-shadow"])M({name:Mo,supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e,extra:r})=>Ne(Mo,t,r?.opacity,e)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?null:Ne(Mo,o?.realThemeValue??t,a,e);if(n)return n;const s=Ve(Mo,t,a,r,o?.realThemeValue);return void 0!==s?s:r.arbitrary?Te(Mo,"inset-shadow"===Mo?Re(t):t,a):null},handleCustomProperty:t=>t.startsWith("color:")?me(Mo,`var(${t.slice(6)})`,void 0)??[]:[Pe(),e(`--baro-${Mo}`,"inset-shadow"===Mo?`inset var(${t})`:`var(${t})`),e("box-shadow",Ce)]});var Be=()=>r([n("--baro-text-shadow-color"),n("--baro-text-shadow-alpha","100%","<percentage>")]),Me=(t,e)=>{const r=t.theme("textShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null},Oe=(t,e)=>{const r=ge("text-shadow","text-shadow",t,e);return r?[Be(),...r]:null};function Fe(t){return`var(--baro-ring-inset,) 0 0 0 calc(${t} + var(--baro-ring-offset-width)) var(--baro-ring-color, currentcolor)`}N("text-shadow-none",[Be,["text-shadow","none"]],{category:"effects"}),M({name:"text-shadow",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e})=>Me(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity;if(!r.arbitrary){const r=Me(e,o?.realThemeValue??t);if(r)return Oe(r,a)}const n=Ve("text-shadow",t,a,r,o?.realThemeValue);return void 0!==n?n&&[Be(),...n]:r.arbitrary?Oe(t,a):null},handleCustomProperty:t=>t.startsWith("color:")?[Be(),...me("text-shadow",`var(${t.slice(6)})`,void 0)??[]]:[Be(),e("text-shadow",`var(${t})`)],category:"effects"}),[["ring","1px"],["ring-0","0px"],["ring-1","1px"],["ring-2","2px"],["ring-4","4px"],["ring-8","8px"]].forEach(([t,e])=>{N(t,[Pe,["--baro-ring-shadow",Fe(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])=>{N(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 Ke=t=>[e("--baro-ring-offset-width",t),e("--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)")];function De(t,r,a,n){const s=`var(--color-${n})`;let i=s,l=s;return a&&(i=`color-mix(in oklab, ${s} ${a}%, transparent)`,l=re(r)&&r.startsWith("#")?`${r}${Math.round(Number(a)/100*255).toString(16).padStart(2,"0")}`:i),[o("supports","(color:color-mix(in lab, red, red))",[e(t,i)]),e(t,l)]}M({name:"ring-offset",themeKeys:["ringOffsetWidth","colors"],supportsArbitrary:!0,supportsOpacity:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,r,o,a)=>"ringOffsetWidth"===a?.themeNamespace?Ke(t):a?.realThemeValue?ae("--baro-ring-offset-color",t,a):o.arbitrary?re(t)?[e("--baro-ring-offset-color",t)]:Qt(t)?Ke(t):null:/^\d+px$/.test(t)?Ke(t):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])=>{N(t,[Pe,["--baro-inset-ring-shadow",`inset 0 0 0 ${e} var(--baro-inset-ring-color, currentcolor)`],["box-shadow",Ce]],{category:"effects"})}),N("ring-inset",[["--baro-ring-inset","inset"]],{category:"effects"}),M({name:"ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","ringWidth"],handle:(t,r,a,n)=>{const s=t;if("ringWidth"===n?.themeNamespace)return[Pe(),e("--baro-ring-shadow",Fe(t)),e("box-shadow",Ce)];const i=n?.opacity,l=n?.realThemeValue;if(l)return De("--baro-ring-color",s,i,l);if(s.startsWith("color:")){const t=s.replace("color:","");let r=`var(${t})`,a=r;return i&&(r=`color-mix(in oklab, var(${t}) ${i}%, transparent)`,a=r),[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-ring-color",r)]),e("--baro-ring-color",a)]}if(a.arbitrary){let t=s,r=s;if(i)return t=`color-mix(in oklab, ${s} ${i}%, transparent)`,r=re(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:t,[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-ring-color",t)]),e("--baro-ring-color",r)];if(!re(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 t=s.startsWith("length:")?s.slice(7):s;return[Pe(),e("--baro-ring-shadow",Fe(t)),e("box-shadow",Ce)]}return[re(s)||/^var\(--[^)]+\)$/.test(s)?e("--baro-ring-color",s):e("box-shadow",s)]}return"inherit"===s||"current"===s||"transparent"===s?[e("--baro-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-ring-color",`var(${t})`)]}}),M({name:"inset-ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","shadows"],handle:(t,r,a,n)=>{const s=t,i=n?.opacity,l=n?.realThemeValue;if(l)return De("--baro-inset-ring-color",s,i,l);if(s.startsWith("color:")){const t=s.replace("color:","");let r=`var(${t})`,a=r;return i&&(r=`color-mix(in oklab, var(${t}) ${i}%, transparent)`,a=r),[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-inset-ring-color",r)]),e("--baro-inset-ring-color",a)]}if(a.arbitrary){let t=s,r=s;return i?(t=`color-mix(in oklab, ${s} ${i}%, transparent)`,r=re(s)&&s.startsWith("#")?`${s}${Math.round(Number(i)/100*255).toString(16).padStart(2,"0")}`:t,[o("supports","(color:color-mix(in lab, red, red))",[e("--baro-inset-ring-color",t)]),e("--baro-inset-ring-color",r)]):[e("box-shadow",`inset ${s}`)]}return"inherit"===s||"current"===s||"transparent"===s?[e("--baro-inset-ring-color","current"===s?"currentColor":s)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-inset-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-inset-ring-color",`var(${t})`)]}}),M({name:"opacity",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{if(Jt(t)){let r=Number(t);return r>1&&(r/=100),[e("opacity",String(r))]}return o.arbitrary?[e("opacity",t)]:null},handleCustomProperty:t=>[e("opacity",`var(${t})`)],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])=>{N(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])=>{N(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])=>{N(t,[["mask-clip",e]],{category:"effects"})}),[["mask-add","add"],["mask-subtract","subtract"],["mask-intersect","intersect"],["mask-exclude","exclude"]].forEach(([t,e])=>{N(t,[["mask-composite",e]],{category:"effects"})}),[["mask-alpha","alpha"],["mask-luminance","luminance"],["mask-match","match-source"]].forEach(([t,e])=>{N(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])=>{N(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])=>{N(t,[["mask-position",e]],{category:"effects"})}),M({name:"mask-position",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("mask-position",t)]:o.customProperty?[e("mask-position",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-position",`var(${t})`)],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])=>{N(t,[["mask-repeat",e]],{category:"effects"})}),[["mask-auto","auto"],["mask-cover","cover"],["mask-contain","contain"]].forEach(([t,e])=>{N(t,[["mask-size",e]],{category:"effects"})}),[["mask-type-alpha","alpha"],["mask-type-luminance","luminance"]].forEach(([t,e])=>{N(t,[["mask-type",e]],{category:"effects"})}),M({name:"mask-size",prop:"mask-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"mask-size utility (static, arbitrary, custom property supported)",category:"effects"});M({name:"mask-linear-from",handleBareValue:({value:t})=>/^(?:100|[1-9]?\d)%$/.test(t)?t:null,handle:t=>[e("mask-image","var(--baro-mask-linear), var(--baro-mask-radial), var(--baro-mask-conic)"),e("mask-composite","intersect"),e("--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)"),e("--baro-mask-linear","linear-gradient(var(--baro-mask-linear-stops))"),e("--baro-mask-linear-from-position",t),r([n("--baro-mask-linear","linear-gradient(#fff, #fff)"),n("--baro-mask-radial","linear-gradient(#fff, #fff)"),n("--baro-mask-conic","linear-gradient(#fff, #fff)"),n("--baro-mask-linear-position","0deg"),n("--baro-mask-linear-from-position","0%"),n("--baro-mask-linear-to-position","100%"),n("--baro-mask-linear-from-color","black"),n("--baro-mask-linear-to-color","transparent")])],category:"effects"}),N("mask-none",[["mask-image","none"]],{category:"effects"}),M({name:"mask",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>"none"===t?[e("mask-image","none")]:o.arbitrary?[e("mask-image",t)]:o.customProperty?[e("mask-image",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-image",`var(${t})`)],description:"mask-image utility (arbitrary, custom property supported)",category:"effects"}),N("isolate",[["isolation","isolate"]],{category:"layout"}),N("isolation-auto",[["isolation","auto"]],{category:"layout"}),N("z-auto",[["z-index","auto"]],{category:"layout"}),M({name:"z",prop:"z-index",themeKey:"zIndex",supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),description:"z-index utility",category:"layout"}),N("aspect-square",[["aspect-ratio","1 / 1"]],{category:"layout"}),N("aspect-video",[["aspect-ratio","var(--aspect-video)"]],{category:"layout"}),N("aspect-auto",[["aspect-ratio","auto"]],{category:"layout"}),M({name:"aspect",prop:"aspect-ratio",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>B(e,"aspect",t,"aspect")??(/^(\d|\.\d)/.test(t)?t:null),description:"aspect-ratio utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),N("columns-auto",[["columns","auto"]],{category:"layout"}),N("columns-3xs",[["columns","var(--container-3xs)"]],{category:"layout"}),N("columns-2xs",[["columns","var(--container-2xs)"]],{category:"layout"}),N("columns-xs",[["columns","var(--container-xs)"]],{category:"layout"}),N("columns-sm",[["columns","var(--container-sm)"]],{category:"layout"}),N("columns-md",[["columns","var(--container-md)"]],{category:"layout"}),N("columns-lg",[["columns","var(--container-lg)"]],{category:"layout"}),N("columns-xl",[["columns","var(--container-xl)"]],{category:"layout"}),N("columns-2xl",[["columns","var(--container-2xl)"]],{category:"layout"}),N("columns-3xl",[["columns","var(--container-3xl)"]],{category:"layout"}),N("columns-4xl",[["columns","var(--container-4xl)"]],{category:"layout"}),N("columns-5xl",[["columns","var(--container-5xl)"]],{category:"layout"}),N("columns-6xl",[["columns","var(--container-6xl)"]],{category:"layout"}),N("columns-7xl",[["columns","var(--container-7xl)"]],{category:"layout"}),M({name:"columns",prop:"columns",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Jt(t)??B(e,"container",t,"container"),description:"columns utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),N("break-after-auto",[["break-after","auto"]],{category:"layout"}),N("break-after-avoid",[["break-after","avoid"]],{category:"layout"}),N("break-after-all",[["break-after","all"]],{category:"layout"}),N("break-after-avoid-page",[["break-after","avoid-page"]],{category:"layout"}),N("break-after-page",[["break-after","page"]],{category:"layout"}),N("break-after-left",[["break-after","left"]],{category:"layout"}),N("break-after-right",[["break-after","right"]],{category:"layout"}),N("break-after-column",[["break-after","column"]],{category:"layout"}),N("break-before-auto",[["break-before","auto"]],{category:"layout"}),N("break-before-avoid",[["break-before","avoid"]],{category:"layout"}),N("break-before-all",[["break-before","all"]],{category:"layout"}),N("break-before-avoid-page",[["break-before","avoid-page"]],{category:"layout"}),N("break-before-page",[["break-before","page"]],{category:"layout"}),N("break-before-left",[["break-before","left"]],{category:"layout"}),N("break-before-right",[["break-before","right"]],{category:"layout"}),N("break-before-column",[["break-before","column"]],{category:"layout"}),N("break-inside-auto",[["break-inside","auto"]],{category:"layout"}),N("break-inside-avoid",[["break-inside","avoid"]],{category:"layout"}),N("break-inside-avoid-page",[["break-inside","avoid-page"]],{category:"layout"}),N("break-inside-avoid-column",[["break-inside","avoid-column"]],{category:"layout"}),N("box-decoration-slice",[["box-decoration-break","slice"]],{category:"layout"}),N("box-decoration-clone",[["box-decoration-break","clone"]],{category:"layout"}),N("box-border",[["box-sizing","border-box"]],{category:"layout"}),N("box-content",[["box-sizing","content-box"]],{category:"layout"}),N("block",[["display","block"]],{category:"layout"}),N("inline",[["display","inline"]],{category:"layout"}),N("inline-block",[["display","inline-block"]],{category:"layout"}),N("flow-root",[["display","flow-root"]],{category:"layout"}),N("flex",[["display","flex"]],{category:"layout"}),N("inline-flex",[["display","inline-flex"]],{category:"layout"}),N("grid",[["display","grid"]],{category:"layout"}),N("inline-grid",[["display","inline-grid"]],{category:"layout"}),N("contents",[["display","contents"]],{category:"layout"}),N("table",[["display","table"]],{category:"layout"}),N("inline-table",[["display","inline-table"]],{category:"layout"}),N("table-caption",[["display","table-caption"]],{category:"layout"}),N("table-cell",[["display","table-cell"]],{category:"layout"}),N("table-column",[["display","table-column"]],{category:"layout"}),N("table-column-group",[["display","table-column-group"]],{category:"layout"}),N("table-footer-group",[["display","table-footer-group"]],{category:"layout"}),N("table-header-group",[["display","table-header-group"]],{category:"layout"}),N("table-row-group",[["display","table-row-group"]],{category:"layout"}),N("table-row",[["display","table-row"]],{category:"layout"}),N("list-item",[["display","list-item"]],{category:"layout"}),N("hidden",[["display","none"]],{category:"layout"}),N("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"}),N("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]],{category:"layout"}),N("@container",[["container-type","inline-size"]],{category:"layout"}),N("@container-normal",[["container-type","normal"]],{category:"layout"}),N("@container-size",[["container-type","size"]],{category:"layout"});var Le=/^@container(-normal|-size)?\/([a-zA-Z0-9_-]+)$/,Ze={"":"inline-size","-normal":"normal","-size":"size"};w({name:"@container",match:t=>Le.test(t),handler:(t,r,o)=>{const a=Le.exec(`${o.prefix}${o.value?`-${o.value}`:""}`);return a?[e("container-type",Ze[a[1]??""]),e("container-name",a[2])]:null},category:"layout"});var Ie=t=>{const e=/^(-?\d*\.?\d+)(rem|px|em)$/.exec(t.trim());return e?"px"===e[2]?Number(e[1])/16:Number(e[1]):NaN};w({name:"container",match:t=>"container"===t,handler:(t,r)=>{const a=r.theme("breakpoints")||r.config("theme.breakpoints")||{},n=Object.values(a).filter(t=>"string"==typeof t&&!Number.isNaN(Ie(t)));return n.sort((t,e)=>Ie(t)-Ie(e)),[e("width","100%"),...n.map(t=>o("media",`(width >= ${t})`,[e("max-width",t)]))]},category:"layout"}),N("float-right",[["float","right"]],{category:"layout"}),N("float-left",[["float","left"]],{category:"layout"}),N("float-start",[["float","inline-start"]],{category:"layout"}),N("float-end",[["float","inline-end"]],{category:"layout"}),N("float-none",[["float","none"]],{category:"layout"}),N("clear-left",[["clear","left"]],{category:"layout"}),N("clear-right",[["clear","right"]],{category:"layout"}),N("clear-both",[["clear","both"]],{category:"layout"}),N("clear-start",[["clear","inline-start"]],{category:"layout"}),N("clear-end",[["clear","inline-end"]],{category:"layout"}),N("clear-none",[["clear","none"]],{category:"layout"}),N("object-contain",[["object-fit","contain"]],{category:"layout"}),N("object-cover",[["object-fit","cover"]],{category:"layout"}),N("object-fill",[["object-fit","fill"]],{category:"layout"}),N("object-none",[["object-fit","none"]],{category:"layout"}),N("object-scale-down",[["object-fit","scale-down"]],{category:"layout"}),N("object-top-left",[["object-position","top left"]],{category:"layout"}),N("object-top",[["object-position","top"]],{category:"layout"}),N("object-top-right",[["object-position","top right"]],{category:"layout"}),N("object-left",[["object-position","left"]],{category:"layout"}),N("object-center",[["object-position","center"]],{category:"layout"}),N("object-right",[["object-position","right"]],{category:"layout"}),N("object-bottom-left",[["object-position","bottom left"]],{category:"layout"}),N("object-bottom",[["object-position","bottom"]],{category:"layout"}),N("object-bottom-right",[["object-position","bottom right"]],{category:"layout"}),M({name:"object",prop:"object-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"object-position utility (arbitrary value, custom property supported)",category:"layout"}),N("overflow-auto",[["overflow","auto"]],{category:"layout"}),N("overflow-hidden",[["overflow","hidden"]],{category:"layout"}),N("overflow-clip",[["overflow","clip"]],{category:"layout"}),N("overflow-visible",[["overflow","visible"]],{category:"layout"}),N("overflow-scroll",[["overflow","scroll"]],{category:"layout"}),N("overflow-x-auto",[["overflow-x","auto"]],{category:"layout"}),N("overflow-y-auto",[["overflow-y","auto"]],{category:"layout"}),N("overflow-x-hidden",[["overflow-x","hidden"]],{category:"layout"}),N("overflow-y-hidden",[["overflow-y","hidden"]],{category:"layout"}),N("overflow-x-clip",[["overflow-x","clip"]],{category:"layout"}),N("overflow-y-clip",[["overflow-y","clip"]],{category:"layout"}),N("overflow-x-visible",[["overflow-x","visible"]],{category:"layout"}),N("overflow-y-visible",[["overflow-y","visible"]],{category:"layout"}),N("overflow-x-scroll",[["overflow-x","scroll"]],{category:"layout"}),N("overflow-y-scroll",[["overflow-y","scroll"]],{category:"layout"}),N("overscroll-auto",[["overscroll-behavior","auto"]],{category:"layout"}),N("overscroll-contain",[["overscroll-behavior","contain"]],{category:"layout"}),N("overscroll-none",[["overscroll-behavior","none"]],{category:"layout"}),N("overscroll-x-auto",[["overscroll-behavior-x","auto"]],{category:"layout"}),N("overscroll-x-contain",[["overscroll-behavior-x","contain"]],{category:"layout"}),N("overscroll-x-none",[["overscroll-behavior-x","none"]],{category:"layout"}),N("overscroll-y-auto",[["overscroll-behavior-y","auto"]],{category:"layout"}),N("overscroll-y-contain",[["overscroll-behavior-y","contain"]],{category:"layout"}),N("overscroll-y-none",[["overscroll-behavior-y","none"]],{category:"layout"}),N("static",[["position","static"]],{category:"layout"}),N("fixed",[["position","fixed"]],{category:"layout"}),N("absolute",[["position","absolute"]],{category:"layout"}),N("relative",[["position","relative"]],{category:"layout"}),N("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])=>{N(`${t}-auto`,[[e,"auto"]],{category:"layout"}),N(`${t}-full`,[[e,"100%"]],{category:"layout"}),N(`-${t}-full`,[[e,"-100%"]],{category:"layout"}),N(`${t}-px`,[[e,"1px"]],{category:"layout"}),N(`-${t}-px`,[[e,"-1px"]],{category:"layout"}),M({name:t,spacingKeys:!0,prop:e,supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>{if(Jt(t))return`calc(var(--spacing) * ${t})`;const e=Xt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Jt(t))return`calc(var(--spacing) * -${t})`;const e=Xt(t);return e?`-${e}`:null},description:`${t} utility (spacing, fraction, px, full, auto, custom property, arbitrary, negative supported)`,category:"layout"})}),N("visible",[["visibility","visible"]],{category:"layout"}),N("invisible",[["visibility","hidden"]],{category:"layout"}),N("collapse",[["visibility","collapse"]],{category:"layout"}),M({name:"gap-x",spacingKeys:!0,prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap-y",spacingKeys:!0,prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap",spacingKeys:!0,prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),M({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"}),N("basis-full",[["flex-basis","100%"]],{category:"flex-grid"}),N("basis-auto",[["flex-basis","auto"]],{category:"flex-grid"}),N("basis-3xs",[["flex-basis","var(--container-3xs)"]],{category:"flex-grid"}),N("basis-2xs",[["flex-basis","var(--container-2xs)"]],{category:"flex-grid"}),N("basis-xs",[["flex-basis","var(--container-xs)"]],{category:"flex-grid"}),N("basis-sm",[["flex-basis","var(--container-sm)"]],{category:"flex-grid"}),N("basis-md",[["flex-basis","var(--container-md)"]],{category:"flex-grid"}),N("basis-lg",[["flex-basis","var(--container-lg)"]],{category:"flex-grid"}),N("basis-xl",[["flex-basis","var(--container-xl)"]],{category:"flex-grid"}),N("basis-2xl",[["flex-basis","var(--container-2xl)"]],{category:"flex-grid"}),N("basis-3xl",[["flex-basis","var(--container-3xl)"]],{category:"flex-grid"}),N("basis-4xl",[["flex-basis","var(--container-4xl)"]],{category:"flex-grid"}),N("basis-5xl",[["flex-basis","var(--container-5xl)"]],{category:"flex-grid"}),N("basis-6xl",[["flex-basis","var(--container-6xl)"]],{category:"flex-grid"}),N("basis-7xl",[["flex-basis","var(--container-7xl)"]],{category:"flex-grid"}),M({name:"basis",prop:"flex-basis",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Jt(t))return`calc(var(--container-${t}) * 1px)`;const e=Xt(t);return e||null},handleNegativeBareValue:({value:t})=>{if(Jt(t))return`calc(var(--container-${t}) * -1px)`;const e=Xt(t);return e?`-${e}`:null},description:"flex-basis utility (theme, arbitrary, custom property, fraction supported)",category:"flex-grid"}),N("flex-row",[["flex-direction","row"]],{category:"flex-grid"}),N("flex-row-reverse",[["flex-direction","row-reverse"]],{category:"flex-grid"}),N("flex-col",[["flex-direction","column"]],{category:"flex-grid"}),N("flex-col-reverse",[["flex-direction","column-reverse"]],{category:"flex-grid"}),N("flex-wrap",[["flex-wrap","wrap"]],{category:"flex-grid"}),N("flex-wrap-reverse",[["flex-wrap","wrap-reverse"]],{category:"flex-grid"}),N("flex-nowrap",[["flex-wrap","nowrap"]],{category:"flex-grid"}),N("flex-auto",[["flex","1 1 auto"]],{category:"flex-grid"}),N("flex-initial",[["flex","0 1 auto"]],{category:"flex-grid"}),N("flex-none",[["flex","none"]],{category:"flex-grid"}),N("flex-grow",[["flex-grow","1"]],{category:"flex-grid"}),M({name:"flex-grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("flex-shrink",[["flex-shrink","1"]],{category:"flex-grid"}),M({name:"flex-shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),M({name:"flex",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(Jt(t))return t;const e=Xt(t);return e?`calc(${e})`:null},handle:t=>[e("flex",t)],description:"flex shorthand utility (number, fraction, arbitrary, custom property supported)",category:"flex-grid"}),N("grow",[["flex-grow","1"]],{category:"flex-grid"}),M({name:"grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("shrink",[["flex-shrink","1"]],{category:"flex-grid"}),N("shrink-0",[["flex-shrink","0"]],{category:"flex-grid"}),M({name:"shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("order-first",[["order","calc(-infinity)"]],{category:"flex-grid"}),N("order-last",[["order","calc(infinity)"]],{category:"flex-grid"}),N("order-none",[["order","0"]],{category:"flex-grid"}),M({name:"order",prop:"order",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,description:"order utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("grid-cols-none",[["grid-template-columns","none"]],{category:"flex-grid"}),N("grid-cols-subgrid",[["grid-template-columns","subgrid"]],{category:"flex-grid"}),M({name:"grid-cols",prop:"grid-template-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>te(t,{repeat:!0}),description:"grid-template-columns utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("grid-rows-none",[["grid-template-rows","none"]],{category:"flex-grid"}),N("grid-rows-subgrid",[["grid-template-rows","subgrid"]],{category:"flex-grid"}),M({name:"grid-rows",prop:"grid-template-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>te(t,{repeat:!0}),handle:t=>"string"==typeof t?[e("grid-template-rows",t.replace(/_/g," "))]:null,handleCustomProperty:t=>[e("grid-template-rows",`var(${t})`)],description:"grid-template-rows utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("row-span-full",[["grid-row","1 / -1"]],{category:"flex-grid"}),M({name:"row-span",prop:"grid-row",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:t=>[e("grid-row",`span var(${t}) / span var(${t})`)],handle:t=>Jt(t)?[e("grid-row",`span ${t} / span ${t}`)]:null,description:"grid-row span utility (number, arbitrary, custom property supported)",category:"flex-grid"}),N("row-start-auto",[["grid-row-start","auto"]],{category:"flex-grid"}),M({name:"row-start",prop:"grid-row-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-start",`var(${t})`)],handle:t=>Jt(t)||"string"==typeof t?[e("grid-row-start",t)]:null,description:"grid-row-start utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("row-end-auto",[["grid-row-end","auto"]],{category:"flex-grid"}),M({name:"row-end",prop:"grid-row-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-end",`var(${t})`)],handle:t=>Jt(t)||"string"==typeof t?[e("grid-row-end",t)]:null,description:"grid-row-end utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("row-auto",[["grid-row","auto"]],{category:"flex-grid"}),M({name:"row",prop:"grid-row",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row",`var(${t})`)],handle:t=>Jt(t)||"string"==typeof t?[e("grid-row",t)]:null,description:"grid-row utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),N("grid-flow-row",[["grid-auto-flow","row"]],{category:"flex-grid"}),N("grid-flow-col",[["grid-auto-flow","column"]],{category:"flex-grid"}),N("grid-flow-dense",[["grid-auto-flow","dense"]],{category:"flex-grid"}),N("grid-flow-row-dense",[["grid-auto-flow","row dense"]],{category:"flex-grid"}),N("grid-flow-col-dense",[["grid-auto-flow","column dense"]],{category:"flex-grid"}),N("auto-cols-auto",[["grid-auto-columns","auto"]],{category:"flex-grid"}),N("auto-cols-min",[["grid-auto-columns","min-content"]],{category:"flex-grid"}),N("auto-cols-max",[["grid-auto-columns","max-content"]],{category:"flex-grid"}),N("auto-cols-fr",[["grid-auto-columns","minmax(0, 1fr)"]],{category:"flex-grid"}),M({name:"auto-cols",prop:"grid-auto-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-columns",t)]:null,handleCustomProperty:t=>[e("grid-auto-columns",`var(${t})`)],description:"grid-auto-columns utility (static, arbitrary, custom property supported)",category:"flex-grid"}),N("auto-rows-auto",[["grid-auto-rows","auto"]],{category:"flex-grid"}),N("auto-rows-min",[["grid-auto-rows","min-content"]],{category:"flex-grid"}),N("auto-rows-max",[["grid-auto-rows","max-content"]],{category:"flex-grid"}),N("auto-rows-fr",[["grid-auto-rows","minmax(0, 1fr)"]],{category:"flex-grid"}),M({name:"auto-rows",prop:"grid-auto-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-rows",t)]:null,handleCustomProperty:t=>[e("grid-auto-rows",`var(${t})`)],description:"grid-auto-rows utility (static, arbitrary, custom property supported)",category:"flex-grid"}),M({name:"gap-x",prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap-y",prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),M({name:"gap",prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":Jt(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),N("justify-start",[["justify-content","flex-start"]],{category:"flex-grid"}),N("justify-end",[["justify-content","flex-end"]],{category:"flex-grid"}),N("justify-end-safe",[["justify-content","safe flex-end"]],{category:"flex-grid"}),N("justify-center",[["justify-content","center"]],{category:"flex-grid"}),N("justify-center-safe",[["justify-content","safe center"]],{category:"flex-grid"}),N("justify-between",[["justify-content","space-between"]],{category:"flex-grid"}),N("justify-around",[["justify-content","space-around"]],{category:"flex-grid"}),N("justify-evenly",[["justify-content","space-evenly"]],{category:"flex-grid"}),N("justify-stretch",[["justify-content","stretch"]],{category:"flex-grid"}),N("justify-baseline",[["justify-content","baseline"]],{category:"flex-grid"}),N("justify-normal",[["justify-content","normal"]],{category:"flex-grid"}),N("justify-items-start",[["justify-items","start"]],{category:"flex-grid"}),N("justify-items-end",[["justify-items","end"]],{category:"flex-grid"}),N("justify-items-end-safe",[["justify-items","safe end"]],{category:"flex-grid"}),N("justify-items-center",[["justify-items","center"]],{category:"flex-grid"}),N("justify-items-center-safe",[["justify-items","safe center"]],{category:"flex-grid"}),N("justify-items-stretch",[["justify-items","stretch"]],{category:"flex-grid"}),N("justify-items-normal",[["justify-items","normal"]],{category:"flex-grid"}),N("justify-self-auto",[["justify-self","auto"]],{category:"flex-grid"}),N("justify-self-start",[["justify-self","flex-start"]],{category:"flex-grid"}),N("justify-self-center",[["justify-self","center"]],{category:"flex-grid"}),N("justify-self-center-safe",[["justify-self","safe center"]],{category:"flex-grid"}),N("justify-self-end",[["justify-self","flex-end"]],{category:"flex-grid"}),N("justify-self-end-safe",[["justify-self","safe flex-end"]],{category:"flex-grid"}),N("justify-self-stretch",[["justify-self","stretch"]],{category:"flex-grid"}),N("content-normal",[["align-content","normal"]],{category:"flex-grid"}),N("content-center",[["align-content","center"]],{category:"flex-grid"}),N("content-start",[["align-content","flex-start"]],{category:"flex-grid"}),N("content-end",[["align-content","flex-end"]],{category:"flex-grid"}),N("content-between",[["align-content","space-between"]],{category:"flex-grid"}),N("content-around",[["align-content","space-around"]],{category:"flex-grid"}),N("content-evenly",[["align-content","space-evenly"]],{category:"flex-grid"}),N("content-baseline",[["align-content","baseline"]],{category:"flex-grid"}),N("content-stretch",[["align-content","stretch"]],{category:"flex-grid"}),N("items-start",[["align-items","flex-start"]],{category:"flex-grid"}),N("items-end",[["align-items","flex-end"]],{category:"flex-grid"}),N("items-end-safe",[["align-items","safe flex-end"]],{category:"flex-grid"}),N("items-center",[["align-items","center"]],{category:"flex-grid"}),N("items-center-safe",[["align-items","safe center"]],{category:"flex-grid"}),N("items-baseline",[["align-items","baseline"]],{category:"flex-grid"}),N("items-baseline-last",[["align-items","last baseline"]],{category:"flex-grid"}),N("items-stretch",[["align-items","stretch"]],{category:"flex-grid"}),N("self-auto",[["align-self","auto"]],{category:"flex-grid"}),N("self-start",[["align-self","flex-start"]],{category:"flex-grid"}),N("self-end",[["align-self","flex-end"]],{category:"flex-grid"}),N("self-end-safe",[["align-self","safe flex-end"]],{category:"flex-grid"}),N("self-center",[["align-self","center"]],{category:"flex-grid"}),N("self-center-safe",[["align-self","safe center"]],{category:"flex-grid"}),N("self-stretch",[["align-self","stretch"]],{category:"flex-grid"}),N("self-baseline",[["align-self","baseline"]],{category:"flex-grid"}),N("self-baseline-last",[["align-self","last baseline"]],{category:"flex-grid"}),N("place-content-center",[["place-content","center"]],{category:"flex-grid"}),N("place-content-center-safe",[["place-content","safe center"]],{category:"flex-grid"}),N("place-content-start",[["place-content","start"]],{category:"flex-grid"}),N("place-content-end",[["place-content","end"]],{category:"flex-grid"}),N("place-content-end-safe",[["place-content","safe end"]],{category:"flex-grid"}),N("place-content-between",[["place-content","space-between"]],{category:"flex-grid"}),N("place-content-around",[["place-content","space-around"]],{category:"flex-grid"}),N("place-content-evenly",[["place-content","space-evenly"]],{category:"flex-grid"}),N("place-content-baseline",[["place-content","baseline"]],{category:"flex-grid"}),N("place-content-stretch",[["place-content","stretch"]],{category:"flex-grid"}),N("place-items-start",[["place-items","start"]],{category:"flex-grid"}),N("place-items-end",[["place-items","end"]],{category:"flex-grid"}),N("place-items-end-safe",[["place-items","safe end"]],{category:"flex-grid"}),N("place-items-center",[["place-items","center"]],{category:"flex-grid"}),N("place-items-center-safe",[["place-items","safe center"]],{category:"flex-grid"}),N("place-items-baseline",[["place-items","baseline"]],{category:"flex-grid"}),N("place-items-stretch",[["place-items","stretch"]],{category:"flex-grid"}),N("place-self-auto",[["place-self","auto"]],{category:"flex-grid"}),N("place-self-start",[["place-self","start"]],{category:"flex-grid"}),N("place-self-end",[["place-self","end"]],{category:"flex-grid"}),N("place-self-end-safe",[["place-self","safe end"]],{category:"flex-grid"}),N("place-self-center",[["place-self","center"]],{category:"flex-grid"}),N("place-self-center-safe",[["place-self","safe center"]],{category:"flex-grid"}),N("place-self-stretch",[["place-self","stretch"]],{category:"flex-grid"}),N("col-span-full",[["grid-column","1 / -1"]],{category:"flex-grid"}),M({name:"col-span",prop:"grid-column",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`span ${t} / span ${t}`:null,handleCustomProperty:(t,r,o)=>[e("grid-column",`span var(${t}) / span var(${t})`)],handle:(t,r,o)=>Jt(t)?[e("grid-column",`span ${t} / span ${t}`)]:null,description:"grid-column span utility (number, arbitrary, custom property supported)",category:"grid"}),N("col-start-auto",[["grid-column-start","auto"]],{category:"flex-grid"}),M({name:"col-start",prop:"grid-column-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,description:"grid-column-start utility (number, negative, arbitrary, custom property supported)",category:"grid"}),N("col-end-auto",[["grid-column-end","auto"]],{category:"flex-grid"}),M({name:"col-end",prop:"grid-column-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(t)?`calc(${t} * -1)`:null,description:"grid-column-end utility (number, negative, arbitrary, custom property supported)",category:"grid"}),N("col-auto",[["grid-column","auto"]],{category:"flex-grid"}),M({name:"col",prop:"grid-column",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handleNegativeBareValue:({value:t})=>Jt(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])=>{N(`${t}-px`,[[e,"1px"]],{category:"spacing"}),M({spacingKeys:!0,name:t,prop:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(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])=>{N(`${t}-auto`,[[e,"auto"]],{category:"spacing"}),N(`${t}-px`,[[e,"1px"]],{category:"spacing"}),N(`-${t}-px`,[[e,"-1px"]],{category:"spacing"}),M({spacingKeys:!0,name:t,prop:e,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * -${t})`:null,description:`${t} margin utility (number, negative, arbitrary, custom property, auto, px supported)`,category:"spacing"})});var _e=":where(& > :not(:last-child))";["x","y"].forEach(t=>{const o=`space-${t}`,s=`--baro-space-${t}-reverse`,[i,l]="x"===t?["margin-inline-start","margin-inline-end"]:["margin-block-start","margin-block-end"],c=()=>r([n(s,"0")]),p=t=>a(_e,[e(s,"0"),e(i,`calc(${t} * var(${s}))`),e(l,`calc(${t} * calc(1 - var(${s})))`)]),u=t=>[c(),p(t)];N(`${o}-px`,[c,()=>p("1px")],{category:"spacing"}),N(`-${o}-px`,[c,()=>p("-1px")],{category:"spacing"}),N(`${o}-reverse`,[c,()=>a(_e,[e(s,"1")])],{category:"spacing"}),M({spacingKeys:!0,name:o,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Jt(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:`${o} 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])=>{N(t,[["width",e]])}),M({spacingKeys:!0,name:"w",prop:"width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(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]])=>{N(t,[["width",e],["height",r]])}),M({spacingKeys:!0,name:"size",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:null,handle:t=>[e("width",t),e("height",t)],handleCustomProperty:t=>[e("width",`var(${t})`),e("height",`var(${t})`)],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])=>{N(t,[["height",e]])}),M({spacingKeys:!0,name:"h",prop:"height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(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])=>{N(t,[["min-height",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"min-h",prop:"min-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(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])=>{N(t,[["max-height",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"max-h",prop:"max-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(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])=>{N(t,[["min-width",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"min-w",prop:"min-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(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])=>{N(t,[["max-width",e]],{category:"sizing"})}),M({spacingKeys:!0,name:"max-w",prop:"max-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:B(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)N(`${n}-${t}`,[[s,e]],{category:"sizing"});M({spacingKeys:!0,name:n,prop:s,supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,token:e,ctx:r})=>e.negative?null:Jt(t)?`calc(var(--spacing) * ${t})`:te(t)?`calc(${t} * 100%)`:n.includes("inline")?B(r,"container",t,"container"):null,description:`${s} utility (spacing, fraction, arbitrary, custom property, keywords)`,category:"sizing"})}}var qe=()=>r([n("--baro-leading")]);function Ue(t){w({name:`font-${t}`,match:e=>e===`font-${t}`,handler:(r,o)=>{const a=B(o,"fontFamily",t,"font");return a?[e("font-family",a)]:[e("font-weight",`var(--font-weight-${t})`)]},category:"typography"})}N("font-sans",[["font-family","var(--font-sans)"]],{category:"typography"}),N("font-serif",[["font-family","var(--font-serif)"]],{category:"typography"}),N("font-mono",[["font-family","var(--font-mono)"]],{category:"typography"}),N("text-xs",[["font-size","var(--text-xs)"],["line-height","var(--baro-leading, var(--text-xs--line-height))"]],{category:"typography"}),N("text-sm",[["font-size","var(--text-sm)"],["line-height","var(--baro-leading, var(--text-sm--line-height))"]],{category:"typography"}),N("text-base",[["font-size","var(--text-base)"],["line-height","var(--baro-leading, var(--text-base--line-height))"]],{category:"typography"}),N("text-lg",[["font-size","var(--text-lg)"],["line-height","var(--baro-leading, var(--text-lg--line-height))"]],{category:"typography"}),N("text-xl",[["font-size","var(--text-xl)"],["line-height","var(--baro-leading, var(--text-xl--line-height))"]],{category:"typography"}),N("text-2xl",[["font-size","var(--text-2xl)"],["line-height","var(--baro-leading, var(--text-2xl--line-height))"]],{category:"typography"}),N("text-3xl",[["font-size","var(--text-3xl)"],["line-height","var(--baro-leading, var(--text-3xl--line-height))"]],{category:"typography"}),N("text-4xl",[["font-size","var(--text-4xl)"],["line-height","var(--baro-leading, var(--text-4xl--line-height))"]],{category:"typography"}),N("text-5xl",[["font-size","var(--text-5xl)"],["line-height","var(--baro-leading, var(--text-5xl--line-height))"]],{category:"typography"}),N("text-6xl",[["font-size","var(--text-6xl)"],["line-height","var(--baro-leading, var(--text-6xl--line-height))"]],{category:"typography"}),N("text-7xl",[["font-size","var(--text-7xl)"],["line-height","var(--baro-leading, var(--text-7xl--line-height))"]],{category:"typography"}),N("text-8xl",[["font-size","var(--text-8xl)"],["line-height","var(--baro-leading, var(--text-8xl--line-height))"]],{category:"typography"}),N("text-9xl",[["font-size","var(--text-9xl)"],["line-height","var(--baro-leading, var(--text-9xl--line-height))"]],{category:"typography"}),Ue("thin"),Ue("extralight"),Ue("light"),Ue("normal"),Ue("medium"),Ue("semibold"),Ue("bold"),Ue("extrabold"),Ue("black"),M({name:"font",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"fontFamily",t,"font")??B(e,"fontWeight",t,"font-weight")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>"font"!==o.prefix?null:!o.arbitrary&&t.startsWith("var(--font-weight-")||Jt(t)?[e("font-weight",t)]:[e("font-family",t)],handleCustomProperty:(t,r,o)=>"font"!==o.prefix?null:t.startsWith("font-name:")?[e("font-family",`var(${t.replace("font-name:","")})`)]:[e("font-weight",`var(${t})`)],description:"font-weight utility (theme, number, arbitrary, custom property supported)",category:"typography"}),N("italic",[["font-style","italic"]],{category:"typography"}),N("not-italic",[["font-style","normal"]],{category:"typography"}),N("tracking-tighter",[["letter-spacing","var(--letter-spacing-tighter)"]],{category:"typography"}),N("tracking-tight",[["letter-spacing","var(--letter-spacing-tight)"]],{category:"typography"}),N("tracking-normal",[["letter-spacing","var(--letter-spacing-normal)"]],{category:"typography"}),N("tracking-wide",[["letter-spacing","var(--letter-spacing-wide)"]],{category:"typography"}),N("tracking-wider",[["letter-spacing","var(--letter-spacing-wider)"]],{category:"typography"}),N("tracking-widest",[["letter-spacing","var(--letter-spacing-widest)"]],{category:"typography"}),M({name:"tracking",prop:"letter-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>B(e,"letterSpacing",t,"letter-spacing")??(/^(\d|\.\d)/.test(t)?t:null),description:"letter-spacing utility (theme, arbitrary, custom property supported)",category:"typography"}),N("leading-none",[["--baro-leading","var(--leading-none, 1)"],["line-height","var(--leading-none, 1)"],qe()],{category:"typography"}),N("leading-tight",[["--baro-leading","var(--leading-tight, 1.25)"],["line-height","var(--leading-tight, 1.25)"],qe()],{category:"typography"}),N("leading-snug",[["--baro-leading","var(--leading-snug, 1.375)"],["line-height","var(--leading-snug, 1.375)"],qe()],{category:"typography"}),N("leading-normal",[["--baro-leading","var(--leading-normal, 1.5)"],["line-height","var(--leading-normal, 1.5)"],qe()],{category:"typography"}),N("leading-relaxed",[["--baro-leading","var(--leading-relaxed, 1.625)"],["line-height","var(--leading-relaxed, 1.625)"],qe()],{category:"typography"}),N("leading-loose",[["--baro-leading","var(--leading-loose, 2)"],["line-height","var(--leading-loose, 2)"],qe()],{category:"typography"}),M({name:"leading",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>{const r=V(e,"lineHeight",t);if(null!=r)return`var(--leading-${t}, ${r})`;const o=e.theme("lineHeight",t);return"string"==typeof o?o:Jt(t)},handle:t=>[e("--baro-leading",t),e("line-height",t),qe()],handleCustomProperty:t=>[e("--baro-leading",`var(${t})`),e("line-height",`var(${t})`),qe()],description:"line-height utility (theme, number, arbitrary, custom property supported)",category:"typography"}),N("text-left",[["text-align","left"]],{category:"typography"}),N("text-center",[["text-align","center"]],{category:"typography"}),N("text-right",[["text-align","right"]],{category:"typography"}),N("text-justify",[["text-align","justify"]],{category:"typography"}),N("text-start",[["text-align","start"]],{category:"typography"}),N("text-end",[["text-align","end"]],{category:"typography"});var He=new Set(["length","size","percentage","absolute-size","relative-size"]),Ye=/^(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|larger|smaller)$/,Ge=/^-?(\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 Xe(t){const e=/^([a-z-]+):(.+)$/.exec(t);return e&&("color"===e[1]||He.has(e[1]))?{fontSize:"color"!==e[1],value:e[2]}:{fontSize:"0"===t||Ge.test(t)||Ye.test(t)||/^(calc|min|max|clamp)\(/.test(t),value:t}}N("text-inherit",[["color","inherit"]],{category:"typography"}),N("text-current",[["color","currentColor"]],{category:"typography"}),N("text-transparent",[["color","transparent"]],{category:"typography"}),N("truncate",[["overflow","hidden"],["text-overflow","ellipsis"],["white-space","nowrap"]],{category:"typography"}),N("text-ellipsis",[["text-overflow","ellipsis"]],{category:"typography"}),N("text-clip",[["text-overflow","clip"]],{category:"typography"}),M({name:"text",themeKey:"colors",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e,extra:r})=>(r?.opacity?null:B(e,"fontSize",t,"text"))??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o,a)=>{if(a?.realThemeValue)return ae("color",t,a);const n=o.arbitrary||o.customProperty?void 0:/^var\(--text-([\w-]+)\)$/.exec(t)?.[1];if(n)return lt(r.theme("fontSize",n))?[e("font-size",t),e("line-height",`var(--baro-leading, var(--text-${n}--line-height))`)]:[e("font-size",t)];const s=Xe(t);return[e(s.fontSize?"font-size":"color",s.value)]},handleCustomProperty:t=>{const r=Xe(t);return[e(r.fontSize?"font-size":"color",`var(${r.value})`)]},description:"text color utility (theme, arbitrary, custom property supported)",category:"typography"}),M({name:"text",themeKey:"fontSize",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{const a=r.theme("fontSize",t);return a?Array.isArray(a)?[e("font-size",a[0]),e("line-height",`var(--baro-leading, ${a[1]})`)]:[e("font-size",a)]:o.arbitrary?[e("font-size",t)]:null},handleCustomProperty:t=>[e("font-size",`var(${t})`)],description:"font-size utility (theme, arbitrary, custom property supported)",category:"typography"}),N("uppercase",[["text-transform","uppercase"]],{category:"typography"}),N("lowercase",[["text-transform","lowercase"]],{category:"typography"}),N("capitalize",[["text-transform","capitalize"]],{category:"typography"}),N("normal-case",[["text-transform","none"]],{category:"typography"}),N("underline",[["text-decoration-line","underline"]],{category:"typography"}),N("overline",[["text-decoration-line","overline"]],{category:"typography"}),N("line-through",[["text-decoration-line","line-through"]],{category:"typography"}),N("no-underline",[["text-decoration-line","none"]],{category:"typography"}),N("whitespace-normal",[["white-space","normal"]],{category:"typography"}),N("whitespace-nowrap",[["white-space","nowrap"]],{category:"typography"}),N("whitespace-pre",[["white-space","pre"]],{category:"typography"}),N("whitespace-pre-line",[["white-space","pre-line"]],{category:"typography"}),N("whitespace-pre-wrap",[["white-space","pre-wrap"]],{category:"typography"}),N("whitespace-break-spaces",[["white-space","break-spaces"]],{category:"typography"}),N("break-normal",[["overflow-wrap","normal"],["word-break","normal"]],{category:"typography"}),N("break-words",[["overflow-wrap","break-word"]],{category:"typography"}),N("break-all",[["word-break","break-all"]],{category:"typography"}),N("break-keep",[["word-break","keep-all"]],{category:"typography"}),N("antialiased",[["-webkit-font-smoothing","antialiased"],["-moz-osx-font-smoothing","grayscale"]],{category:"typography"}),N("subpixel-antialiased",[["-webkit-font-smoothing","auto"],["-moz-osx-font-smoothing","auto"]],{category:"typography"}),N("font-stretch-normal",[["font-stretch","normal"]],{category:"typography"}),N("font-stretch-ultra-condensed",[["font-stretch","ultra-condensed"]],{category:"typography"}),N("font-stretch-extra-condensed",[["font-stretch","extra-condensed"]],{category:"typography"}),N("font-stretch-condensed",[["font-stretch","condensed"]],{category:"typography"}),N("font-stretch-semi-condensed",[["font-stretch","semi-condensed"]],{category:"typography"}),N("font-stretch-semi-expanded",[["font-stretch","semi-expanded"]],{category:"typography"}),N("font-stretch-expanded",[["font-stretch","expanded"]],{category:"typography"}),N("font-stretch-extra-expanded",[["font-stretch","extra-expanded"]],{category:"typography"}),N("font-stretch-ultra-expanded",[["font-stretch","ultra-expanded"]],{category:"typography"}),M({name:"font-stretch",prop:"font-stretch",supportsArbitrary:!0,supportsCustomProperty:!0,description:"font-stretch utility (arbitrary, custom property supported)",category:"typography"}),N("normal-nums",[["font-variant-numeric","normal"]],{category:"typography"}),N("ordinal",[["font-variant-numeric","ordinal"]],{category:"typography"}),N("slashed-zero",[["font-variant-numeric","slashed-zero"]],{category:"typography"}),N("lining-nums",[["font-variant-numeric","lining-nums"]],{category:"typography"}),N("oldstyle-nums",[["font-variant-numeric","oldstyle-nums"]],{category:"typography"}),N("proportional-nums",[["font-variant-numeric","proportional-nums"]],{category:"typography"}),N("tabular-nums",[["font-variant-numeric","tabular-nums"]],{category:"typography"}),N("diagonal-fractions",[["font-variant-numeric","diagonal-fractions"]],{category:"typography"}),N("stacked-fractions",[["font-variant-numeric","stacked-fractions"]],{category:"typography"}),N("line-clamp-none",[["-webkit-line-clamp","none"]],{category:"typography"}),M({name:"line-clamp",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t),handle:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",t)],handleCustomProperty:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",`var(${t})`)],description:"line-clamp utility (number, arbitrary, custom property supported)",category:"typography"}),N("list-none",[["list-style-type","none"]],{category:"typography"}),N("list-disc",[["list-style-type","disc"]],{category:"typography"}),N("list-decimal",[["list-style-type","decimal"]],{category:"typography"}),M({name:"list",prop:"list-style-type",themeKey:"listStyleType",supportsArbitrary:!0,supportsCustomProperty:!0,description:"list-style-type utility (theme, arbitrary, custom property supported)",category:"typography"}),N("list-inside",[["list-style-position","inside"]],{category:"typography"}),N("list-outside",[["list-style-position","outside"]],{category:"typography"}),N("list-image-none",[["list-style-image","none"]],{category:"typography"}),M({name:"list-image",prop:"list-style-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("list-style-image",`url(${t})`)],handleCustomProperty:t=>[e("list-style-image",`var(${t})`)],description:"list-style-image utility (arbitrary, custom property supported)",category:"typography"}),M({name:"decoration",themeKeys:["textDecorationThickness","colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"textDecorationThickness"===a?.themeNamespace?[e("text-decoration-thickness",t)]:a?.realThemeValue?ae("text-decoration-color",t,a):[e("text-decoration-color",t)],handleCustomProperty:t=>[e("text-decoration-color",`var(${t})`)],description:"text-decoration-color utility (theme, arbitrary, custom property supported)",category:"typography"}),N("decoration-solid",[["text-decoration-style","solid"]],{category:"typography"}),N("decoration-double",[["text-decoration-style","double"]],{category:"typography"}),N("decoration-dotted",[["text-decoration-style","dotted"]],{category:"typography"}),N("decoration-dashed",[["text-decoration-style","dashed"]],{category:"typography"}),N("decoration-wavy",[["text-decoration-style","wavy"]],{category:"typography"}),N("decoration-auto",[["text-decoration-thickness","auto"]],{category:"typography"}),N("decoration-from-font",[["text-decoration-thickness","from-font"]],{category:"typography"}),N("decoration-0",[["text-decoration-thickness","0px"]],{category:"typography"}),N("decoration-1",[["text-decoration-thickness","1px"]],{category:"typography"}),N("decoration-2",[["text-decoration-thickness","2px"]],{category:"typography"}),N("decoration-4",[["text-decoration-thickness","4px"]],{category:"typography"}),N("decoration-8",[["text-decoration-thickness","8px"]],{category:"typography"}),M({name:"decoration",prop:"text-decoration-thickness",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"text-decoration-thickness utility (arbitrary, custom property supported)",category:"typography"}),N("underline-offset-auto",[["text-underline-offset","auto"]],{category:"typography"}),N("underline-offset-0",[["text-underline-offset","0px"]],{category:"typography"}),N("underline-offset-1",[["text-underline-offset","1px"]],{category:"typography"}),N("underline-offset-2",[["text-underline-offset","2px"]],{category:"typography"}),N("underline-offset-4",[["text-underline-offset","4px"]],{category:"typography"}),N("underline-offset-8",[["text-underline-offset","8px"]],{category:"typography"}),M({name:"underline-offset",prop:"text-underline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"text-underline-offset utility (arbitrary, custom property supported)",category:"typography"}),N("text-wrap",[["text-wrap","wrap"]],{category:"typography"}),N("text-nowrap",[["text-wrap","nowrap"]],{category:"typography"}),N("text-balance",[["text-wrap","balance"]],{category:"typography"}),N("text-pretty",[["text-wrap","pretty"]],{category:"typography"}),M({name:"indent",prop:"text-indent",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>Jt(t)?`calc(var(--spacing) * -${t})`:null,description:"text-indent utility (spacing, negative, arbitrary, custom property supported)",category:"typography"}),N("align-baseline",[["vertical-align","baseline"]],{category:"typography"}),N("align-top",[["vertical-align","top"]],{category:"typography"}),N("align-middle",[["vertical-align","middle"]],{category:"typography"}),N("align-bottom",[["vertical-align","bottom"]],{category:"typography"}),N("align-text-top",[["vertical-align","text-top"]],{category:"typography"}),N("align-text-bottom",[["vertical-align","text-bottom"]],{category:"typography"}),N("align-sub",[["vertical-align","sub"]],{category:"typography"}),N("align-super",[["vertical-align","super"]],{category:"typography"}),M({name:"align",prop:"vertical-align",supportsArbitrary:!0,supportsCustomProperty:!0,description:"vertical-align utility (arbitrary, custom property supported)",category:"typography"}),N("hyphens-none",[["hyphens","none"]],{category:"typography"}),N("hyphens-manual",[["hyphens","manual"]],{category:"typography"}),N("hyphens-auto",[["hyphens","auto"]],{category:"typography"}),N("content-none",[["--baro-content","none"],["content","none"]],{category:"typography"}),M({name:"content",prop:"content",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("--baro-content",t),e("content","var(--baro-content)")],handleCustomProperty:t=>[e("--baro-content",`var(${t})`),e("content","var(--baro-content)")],description:"content utility (arbitrary, custom property supported)",category:"typography"});var Je=t=>[a("&::placeholder",[e("color",t)])];N("placeholder-inherit",Je("inherit"),{category:"typography"}),N("placeholder-current",Je("currentcolor"),{category:"typography"}),N("placeholder-transparent",Je("transparent"),{category:"typography"}),M({name:"placeholder",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>o?.realThemeValue?[a("&::placeholder",ae("color",t,o))]:re(t)?Je(t):null,handleCustomProperty:t=>Je(`var(${t})`),description:"placeholder color utility (theme, alpha, arbitrary, custom property)"}),M({name:"font-features",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("font-feature-settings",t)]:null,handleCustomProperty:t=>[e("font-feature-settings",`var(${t.replace(/^[a-z-]+:(?=--)/,"")})`)],description:"font-feature-settings utility (arbitrary, custom property)",category:"typography"}),M({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 Qe=()=>r([n("--baro-gradient-position"),n("--baro-gradient-from","#0000","<color>"),n("--baro-gradient-via","#0000","<color>"),n("--baro-gradient-to","#0000","<color>"),n("--baro-gradient-stops"),n("--baro-gradient-via-stops"),n("--baro-gradient-from-position","0%","<length-percentage>"),n("--baro-gradient-via-position","50%","<length-percentage>"),n("--baro-gradient-to-position","100%","<length-percentage>")],"background");N("bg-fixed",[["background-attachment","fixed"]],{category:"background"}),N("bg-local",[["background-attachment","local"]],{category:"background"}),N("bg-scroll",[["background-attachment","scroll"]],{category:"background"}),N("bg-clip-border",[["background-clip","border-box"]],{category:"background"}),N("bg-clip-padding",[["background-clip","padding-box"]],{category:"background"}),N("bg-clip-content",[["background-clip","content-box"]],{category:"background"}),N("bg-clip-text",[["background-clip","text"]],{category:"background"}),N("bg-inherit",[["background-color","inherit"]],{category:"background"}),N("bg-current",[["background-color","currentColor"]],{category:"background"}),N("bg-transparent",[["background-color","transparent"]],{category:"background"}),N("bg-none",[["background-image","none"]],{category:"background"}),N("bg-origin-border",[["background-origin","border-box"]],{category:"background"}),N("bg-origin-padding",[["background-origin","padding-box"]],{category:"background"}),N("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])=>{N(t,[["background-position",e]],{category:"background"})}),M({name:"bg-position",prop:"background-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-position utility (arbitrary, custom property supported)",category:"background"}),N("bg-repeat",[["background-repeat","repeat"]],{category:"background"}),N("bg-no-repeat",[["background-repeat","no-repeat"]],{category:"background"}),N("bg-repeat-x",[["background-repeat","repeat-x"]],{category:"background"}),N("bg-repeat-y",[["background-repeat","repeat-y"]],{category:"background"}),N("bg-repeat-round",[["background-repeat","round"]],{category:"background"}),N("bg-repeat-space",[["background-repeat","space"]],{category:"background"}),N("bg-auto",[["background-size","auto"]],{category:"background"}),N("bg-cover",[["background-size","cover"]],{category:"background"}),N("bg-contain",[["background-size","contain"]],{category:"background"}),M({name:"bg-size",prop:"background-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-size utility (arbitrary, custom property supported)",category:"background"});var tr=t=>[e("--baro-gradient-position",t),o("supports","(background-image: linear-gradient(in lab, red, red))",[e("--baro-gradient-position",`${t} in oklab`)]),e("background-image","linear-gradient(var(--baro-gradient-stops))")],er=t=>[e("--baro-gradient-position",`${t} in oklab`),e("background-image","linear-gradient(var(--baro-gradient-stops))")];[["bg-linear-to-t",tr("to top")],["bg-linear-to-tr",tr("to top right")],["bg-linear-to-r",tr("to right")],["bg-linear-to-br",tr("to bottom right")],["bg-linear-to-b",tr("to bottom")],["bg-linear-to-bl",tr("to bottom left")],["bg-linear-to-l",tr("to left")],["bg-linear-to-tl",tr("to top left")],["bg-gradient-to-t",er("to top")],["bg-gradient-to-tr",er("to top right")],["bg-gradient-to-r",er("to right")],["bg-gradient-to-br",er("to bottom right")],["bg-gradient-to-b",er("to bottom")],["bg-gradient-to-bl",er("to bottom left")],["bg-gradient-to-l",er("to left")],["bg-gradient-to-tl",er("to top left")]].forEach(([t,e])=>{N(t,e,{category:"background",priority:1e3})}),M({name:"bg-linear",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>Jt(t)?tr(`${t}deg`):o.arbitrary?[e("background-image",`linear-gradient(var(--baro-gradient-stops, ${t}))`)]:o.customProperty?[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)]:null,handleCustomProperty:t=>[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)],description:"linear-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var rr=(t,r,o)=>[e("--baro-gradient-position",r),e("background-image",`${t}(var(--baro-gradient-stops${o?`,${o}`:""}))`)];N("bg-radial",rr("radial-gradient","in oklab"),{category:"background"}),M({name:"bg-radial",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary?rr("radial-gradient",t,t):r.customProperty?rr("radial-gradient",`var(${t})`,`var(${t})`):null,handleCustomProperty:t=>rr("radial-gradient",`var(${t})`,`var(${t})`),description:"radial-gradient background-image utility (arbitrary, custom property supported)",category:"background"}),N("bg-conic",rr("conic-gradient","in oklab"),{category:"background"}),M({name:"bg-conic",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary||r.customProperty||!Jt(t)?r.arbitrary?rr("conic-gradient",t,t):r.customProperty?rr("conic-gradient",`var(${t})`,`var(${t})`):null:rr("conic-gradient",`from ${t}deg in oklab`),handleCustomProperty:t=>rr("conic-gradient",`var(${t})`,`var(${t})`),description:"conic-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var or="--baro-gradient",ar=(t,r)=>{const o="string"==typeof r?[e(`${or}-${t}`,r)]:r;return"via"===t?[Qe(),...o,e(`${or}-via-stops`,`var(${or}-position), var(${or}-from) var(${or}-from-position), var(${or}-via) var(${or}-via-position), var(${or}-to) var(${or}-to-position)`),e(`${or}-stops`,`var(${or}-via-stops)`)]:[Qe(),...o,e(`${or}-stops`,`var(${or}-via-stops, var(${or}-position), var(${or}-from) var(${or}-from-position), var(${or}-to) var(${or}-to-position))`)]};["from","via","to"].forEach(t=>{M({name:t,themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(r,o,a,n)=>n?.realThemeValue?ar(t,ae(`${or}-${t}`,r,n)):Qt(r)?[Qe(),e(`${or}-${t}-position`,r)]:Jt(r)?[Qe(),e(`${or}-${t}-position`,`${r}%`)]:re(r)?ar(t,r):null,handleCustomProperty:r=>[e(`--baro-gradient-${t}`,`var(${r})`)],description:`${t} gradient stop utility (color, percent, custom property, arbitrary supported)`,category:"background"}),M({name:`${t}-position`,supportsArbitrary:!0,supportsCustomProperty:!0,handle:r=>[e(`--baro-gradient-${t}-position`,r)],handleCustomProperty:r=>[e(`--baro-gradient-${t}-position`,`var(${r})`)],description:`${t}-position gradient stop position utility (percent, custom property, arbitrary supported)`,category:"background"})});var nr={position:"background-position",percentage:"background-position",size:"background-size",length:"background-size","bg-size":"background-size",image:"background-image",url:"background-image"};function sr(t){const e=/^([a-z-]+):(.+)$/.exec(t),r=e?nr[e[1]]:void 0;return e&&r?[r,e[2]]:null}M({name:"bg",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>{if(t.startsWith("url("))return[e("background-image",t)];const n=sr(t);if(n)return[e(n[0],n[1])];if(a?.realThemeValue)return ae("background-color",t,a);if(re(t)){const r=re(t);return t.startsWith("color:")?[e("background-color",r||t)]:[e("background-color",t)]}return Qt(t)?[e("background-size",t)]:/^var\(--[^)]+\)$/.test(t)?[e("background-color",t)]:null},handleCustomProperty:t=>{const r=sr(t);return r?[e(r[0],`var(${r[1]})`)]:[e("background-color",`var(${t})`)]},description:"background-size utility (arbitrary, custom property supported)",category:"background"}),N("rounded-none",[["border-radius","0px"]],{category:"borders"}),N("rounded-sm",[["border-radius","var(--radius-sm)"]],{category:"borders"}),N("rounded",[["border-radius","0.25rem"]],{category:"borders"}),N("rounded-md",[["border-radius","var(--radius-md)"]],{category:"borders"}),N("rounded-lg",[["border-radius","var(--radius-lg)"]],{category:"borders"}),N("rounded-xl",[["border-radius","var(--radius-xl)"]],{category:"borders"}),N("rounded-2xl",[["border-radius","var(--radius-2xl)"]],{category:"borders"}),N("rounded-3xl",[["border-radius","var(--radius-3xl)"]],{category:"borders"}),N("rounded-4xl",[["border-radius","var(--radius-4xl)"]],{category:"borders"}),N("rounded-xs",[["border-radius","var(--radius-xs)"]],{category:"borders"});var ir="calc(infinity * 1px)";function lr(t,r){w({name:t,match:e=>e===t,handler:(t,o)=>{const a=V(o,"borderRadius","full"),n=null!=a&&"9999px"!==a&&a!==ir?"var(--radius-full)":ir;return r.map(t=>e(t,n))},category:"borders"})}lr("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(([t,r])=>{const o=r,a=o[0].startsWith("border-start")||o[0].startsWith("border-end");N(`${t}-none`,o.map(t=>[t,a?"0":"0px"]),{category:"borders"}),N(`${t}-sm`,o.map(t=>[t,"var(--radius-sm)"]),{category:"borders"}),N(`${t}`,o.map(t=>[t,"0.25rem"]),{category:"borders"}),N(`${t}-md`,o.map(t=>[t,"var(--radius-md)"]),{category:"borders"}),N(`${t}-lg`,o.map(t=>[t,"var(--radius-lg)"]),{category:"borders"}),N(`${t}-xl`,o.map(t=>[t,"var(--radius-xl)"]),{category:"borders"}),N(`${t}-2xl`,o.map(t=>[t,"var(--radius-2xl)"]),{category:"borders"}),N(`${t}-3xl`,o.map(t=>[t,"var(--radius-3xl)"]),{category:"borders"}),N(`${t}-4xl`,o.map(t=>[t,"var(--radius-4xl)"]),{category:"borders"}),N(`${t}-xs`,o.map(t=>[t,"var(--radius-xs)"]),{category:"borders"}),lr(`${t}-full`,o),M({name:t,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>!a&&Jt(t)?`calc(var(--spacing) * ${t})`:B(e,"borderRadius",t,"radius"),handle:t=>o.map(r=>e(r,t)),description:`${t} utility (spacing, arbitrary, custom property support)`,category:"borders"})}),M({name:"rounded",handle:(t,r,o)=>"rounded"===o.prefix?[e("border-radius",t)]:null,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>Jt(t)?`calc(var(--spacing) * ${t})`:B(e,"borderRadius",t,"radius"),description:"border-radius utility (spacing, arbitrary, custom property support)",category:"borders"});var cr=()=>r([n("--baro-border-style","solid")]),pr=(t,e)=>e?.themeKey&&"DEFAULT"!==e.themeKey?`var(--border-width-${e.themeKey.replace(".","\\.")})`:t,ur=(t,r)=>[cr(),...t.map(t=>e(t.replace("width","style"),"var(--baro-border-style)")),...t.map(t=>e(t,r))];[["border-0","0px"],["border-2","2px"],["border-4","4px"],["border-8","8px"],["border","1px"]].forEach(([t,e])=>{N(t,[cr,["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(([t,r])=>{const o=r,a=t=>[cr,...o.map(t=>[t.replace("width","style"),"var(--baro-border-style)"]),...o.map(e=>[e,t])];N(`${t}-0`,a("0px")),N(`${t}-2`,a("2px")),N(`${t}-4`,a("4px")),N(`${t}-8`,a("8px")),N(`${t}`,a("1px")),M({name:t,themeKeys:["colors","borderWidth"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,handle:(t,r,a,n)=>"borderWidth"===n?.themeNamespace?ur(o,pr(t,n)):n?.realThemeValue?o.flatMap(e=>ae(e.replace("width","color"),t,n)):re(t)?o.map(r=>e(r.replace("width","color"),t)):a.arbitrary||Qt(t)?ur(o,t):null,handleCustomProperty:t=>t.startsWith("length:")?ur(o,`var(${t.replace("length:","")})`):o.map(r=>e(r.replace("width","color"),`var(${t})`)),description:`${t} utility (number, arbitrary, custom property support)`,category:"borders"})}),N("border-inherit",[["border-color","inherit"]],{category:"borders"}),N("border-current",[["border-color","currentColor"]],{category:"borders"}),N("border-transparent",[["border-color","transparent"]],{category:"borders"}),N("border-solid",[["--baro-border-style","solid"],["border-style","solid"]],{category:"borders"}),N("border-dashed",[["--baro-border-style","dashed"],["border-style","dashed"]],{category:"borders"}),N("border-dotted",[["--baro-border-style","dotted"],["border-style","dotted"]],{category:"borders"}),N("border-double",[["--baro-border-style","double"],["border-style","double"]],{category:"borders"}),N("border-hidden",[["--baro-border-style","hidden"],["border-style","hidden"]],{category:"borders"}),N("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(([t,[r,o,...n]])=>{const s=`--baro-divide-${t}-reverse`,i=t=>[cr(),a(":where(& > :not(:last-child))",[e(s,"0"),...n.map(t=>e(t,"var(--baro-border-style)")),e(`${r}-width`,`calc(${t} * var(${s}))`),e(`${o}-width`,`calc(${t} * calc(1 - var(${s})))`)])];N(`divide-${t}`,i("1px"),{category:"borders"}),N(`divide-${t}-reverse`,[a(":where(& > :not(:last-child))",[e(s,"1")])],{category:"borders"}),M({name:`divide-${t}`,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?pr(t,o):t),description:`divide-${t} width utility`,category:"borders"})}),M({name:"border",themeKeys:["colors","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"borderWidth"===a?.themeNamespace?ur(["border-width"],pr(t,a)):a?.realThemeValue?ae("border-color",t,a):o.arbitrary?Qt(t)?ur(["border-width"],t):[e("border-color",t)]:Jt(t)?ur(["border-width"],`${t}px`):re(t)?[e("border-color",t)]:null,handleCustomProperty:t=>t.startsWith("length:")?ur(["border-width"],`var(${t.replace("length:","")})`):[e("border-color",`var(${t})`)],description:"border-width utility (number, arbitrary, custom property support)",category:"borders"});var dr=()=>r([n("--baro-outline-style","solid")]),yr=t=>[dr(),e("outline-style","var(--baro-outline-style)"),e("outline-width",t)];[["outline-0","0px"],["outline-1","1px"],["outline-2","2px"],["outline-4","4px"],["outline-8","8px"]].forEach(([t,e])=>{N(t,[dr,["outline-style","var(--baro-outline-style)"],["outline-width",e]],{category:"borders"})}),N("outline-inherit",[["outline-color","inherit"]],{category:"borders"}),N("outline-current",[["outline-color","currentColor"]],{category:"borders"}),N("outline-transparent",[["outline-color","transparent"]],{category:"borders"}),N("outline-none",[["--baro-outline-style","none"],["outline-style","none"]],{category:"borders"}),N("outline-hidden",[["--baro-outline-style","none"],["outline-style","none"],o("media","(forced-colors: active)",[e("outline","2px solid transparent"),e("outline-offset","2px")])],{category:"borders"}),N("outline",[dr,["outline-style","var(--baro-outline-style)"],["outline-width","1px"]],{category:"borders"}),["solid","dashed","dotted","double"].forEach(t=>{N(`outline-${t}`,[["--baro-outline-style",t],["outline-style",t]],{category:"borders"})}),N("outline-offset-0",[["outline-offset","0px"]],{category:"borders"}),N("outline-offset-1",[["outline-offset","1px"]],{category:"borders"}),N("outline-offset-2",[["outline-offset","2px"]],{category:"borders"}),N("outline-offset-4",[["outline-offset","4px"]],{category:"borders"}),N("outline-offset-8",[["outline-offset","8px"]],{category:"borders"}),M({name:"outline-offset",prop:"outline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"outline-offset utility (number, arbitrary, custom property support)",category:"borders"}),M({name:"outline",themeKeys:["colors","outlineWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"outlineWidth"===a?.themeNamespace?yr(t):a?.realThemeValue?ae("outline-color",t,a):re(t)?[e("outline-color",t)]:Jt(t)?yr(`${t}px`):o.arbitrary?Qt(t)?yr(t):[e("outline-color",t)]:null,handleCustomProperty:t=>t.startsWith("color:")?[e("outline-color",t.replace("color:",""))]:t.startsWith("length:")?yr(`var(${t.replace("length:","")})`):[e("outline-color",`var(${t})`)],description:"outline-color utility (theme colors, arbitrary, custom property support)",category:"borders"}),M({name:"outline",prop:"outline-width",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>Jt(t)?`${t}px`:null,description:"outline-width utility (number, arbitrary, custom property support)",category:"borders"});var hr=t=>[a(":where(& > :not(:last-child))",[e("border-color",t)])];N("divide-inherit",hr("inherit"),{category:"borders"}),N("divide-current",hr("currentColor"),{category:"borders"}),N("divide-transparent",hr("transparent"),{category:"borders"}),M({name:"divide",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>"divide"!==r.prefix?null:o?.realThemeValue?[a(":where(& > :not(:last-child))",ae("border-color",t,o))]:re(t)?hr(t):null,handleCustomProperty:(t,e,r)=>"divide"===r.prefix?hr(`var(${t})`):[],description:"divide-color utility (theme, alpha, arbitrary, custom property)",category:"borders"});var gr="var(--baro-rotate-x,) var(--baro-rotate-y,) var(--baro-rotate-z,) var(--baro-skew-x,) var(--baro-skew-y,)",mr=(t,r)=>[e(`--baro-rotate-${t}`,r),e("transform",gr)],fr=(t,r)=>[e(`--baro-skew-${t}`,r),e("transform",gr)],br=()=>r([n("--baro-scale-x","1"),n("--baro-scale-y","1"),n("--baro-scale-z","1")]),vr=(t,r)=>[br(),e(`--baro-scale-${t}`,r),e("scale","z"===t?"var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)":"var(--baro-scale-x) var(--baro-scale-y)")];N("transform-none",[["transform","none"]],{category:"transform"}),N("transform-gpu",[["transform",`translateZ(0) ${gr}`]],{category:"transform"}),N("transform-cpu",[["transform",gr]]),N("transform-3d",[["transform-style","preserve-3d"]],{category:"transform"}),N("transform-flat",[["transform-style","flat"]],{category:"transform"}),M({name:"transform",prop:"transform",supportsCustomProperty:!0,handleCustomProperty:t=>[e("transform",`var(${t})`)],description:"transform utility for custom property (transform-(--my-transform))",category:"transform"}),M({name:"transform",prop:"transform",supportsArbitrary:!0,handle:t=>[e("transform",t)],description:"transform utility for arbitrary value (transform-[...])",category:"transform"}),N("backface-hidden",[["backface-visibility","hidden"]],{category:"transform"}),N("backface-visible",[["backface-visibility","visible"]],{category:"transform"}),N("perspective-dramatic",[["perspective","var(--perspective-dramatic)"]],{category:"transform"}),N("perspective-near",[["perspective","var(--perspective-near)"]],{category:"transform"}),N("perspective-normal",[["perspective","var(--perspective-normal)"]],{category:"transform"}),N("perspective-midrange",[["perspective","var(--perspective-midrange)"]],{category:"transform"}),N("perspective-distant",[["perspective","var(--perspective-distant)"]],{category:"transform"}),N("perspective-none",[["perspective","none"]],{category:"transform"}),N("perspective-origin-center",[["perspective-origin","center"]],{category:"transform"}),N("perspective-origin-top",[["perspective-origin","top"]],{category:"transform"}),N("perspective-origin-top-right",[["perspective-origin","top right"]],{category:"transform"}),N("perspective-origin-right",[["perspective-origin","right"]],{category:"transform"}),N("perspective-origin-bottom-right",[["perspective-origin","bottom right"]],{category:"transform"}),N("perspective-origin-bottom",[["perspective-origin","bottom"]],{category:"transform"}),N("perspective-origin-bottom-left",[["perspective-origin","bottom left"]],{category:"transform"}),N("perspective-origin-left",[["perspective-origin","left"]],{category:"transform"}),N("perspective-origin-top-left",[["perspective-origin","top left"]],{category:"transform"}),M({name:"perspective-origin",prop:"perspective-origin",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective-origin",t)],handleCustomProperty:t=>[e("perspective-origin",`var(${t})`)],description:"perspective-origin utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"perspective",prop:"perspective",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective",t)],handleCustomProperty:t=>[e("perspective",`var(${t})`)],description:"perspective utility (named, arbitrary, custom property supported)",category:"transform"}),N("rotate-none",[["rotate","none"]],{category:"transform"}),M({name:"rotate-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("x",`rotateX(${o}${e})`)}return mr("x",`rotateX(${t})`)},handleCustomProperty:t=>mr("x",`rotateX(var(${t}))`),description:"rotate-x utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"rotate-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("y",`rotateY(${o}${e})`)}return mr("y",`rotateY(${t})`)},handleCustomProperty:t=>mr("y",`rotateY(var(${t}))`),description:"rotate-y utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"rotate-z",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return mr("z",`rotateZ(${o}${e})`)}return mr("z",`rotateZ(${t})`)},handleCustomProperty:t=>mr("z",`rotateZ(var(${t}))`),description:"rotate-z utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"rotate",prop:"rotate",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(Jt(t)||o){const r=`${Math.abs(Number(t))}deg`;return o||String(t).startsWith("-")?[e("rotate",`calc(${r} * -1)`)]:[e("rotate",r)]}return[e("rotate",t)]},handleCustomProperty:t=>[e("rotate",`var(${t})`)],description:"rotate utility (named, arbitrary, custom property supported)",category:"transform"}),N("scale-none",[["scale","none"]],{category:"transform"}),N("scale-3d",[br,["scale","var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)"]],{category:"transform"}),M({name:"scale-x",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return vr("x",t);if(Jt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return vr("x",`calc(${e} * ${o}1)`)}return vr("x",t)},handleCustomProperty:t=>vr("x",`var(${t})`),description:"scale-x utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"scale-y",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return vr("y",t);if(Jt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return vr("y",`calc(${e} * ${o}1)`)}return vr("y",t)},handleCustomProperty:t=>vr("y",`var(${t})`),description:"scale-y utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"scale-z",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return vr("z",t);if(Jt(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return vr("z",`calc(${e} * ${o}1)`)}return vr("z",t)},handleCustomProperty:t=>vr("z",`var(${t})`),description:"scale-z utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"scale",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o,arbitrary:a})=>{if(a)return[e("scale",`${t}`)];if(Jt(t)||o){const r=`${Math.abs(Number(t))}%`;return o||String(t).startsWith("-")?[e("scale",`calc(${r} * -1) calc(${r} * -1)`)]:[e("scale",`${r} ${r}`)]}return[e("scale",t)]},handleCustomProperty:t=>[e("scale",`var(${t}) var(${t})`)],description:"scale utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"skew-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return fr("x",`skewX(${o}${e})`)}return fr("x",`skewX(${t})`)},handleCustomProperty:t=>fr("x",`skewX(var(${t}))`),description:"skew-x utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"skew-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(Jt(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return fr("y",`skewY(${o}${e})`)}return fr("y",`skewY(${t})`)},handleCustomProperty:t=>fr("y",`skewY(var(${t}))`),description:"skew-y utility (named, arbitrary, custom property supported)",category:"transform"}),M({name:"skew",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(Jt(t)||o){const r=`${Math.abs(Number(t))}deg`,a=o||String(t).startsWith("-")?"-":"";return[e("--baro-skew-x",`skewX(${a}${r})`),e("--baro-skew-y",`skewY(${a}${r})`),e("transform",gr)]}return[e("--baro-skew-x",`skewX(${t})`),e("--baro-skew-y",`skewY(${t})`),e("transform",gr)]},handleCustomProperty:t=>[e("--baro-skew-x",`skewX(var(${t}))`),e("--baro-skew-y",`skewY(var(${t}))`),e("transform",gr)],description:"skew utility (named, arbitrary, custom property supported)",category:"transform"}),N("origin-center",[["transform-origin","center"]],{category:"transform"}),N("origin-top",[["transform-origin","top"]],{category:"transform"}),N("origin-top-right",[["transform-origin","top right"]],{category:"transform"}),N("origin-right",[["transform-origin","right"]],{category:"transform"}),N("origin-bottom-right",[["transform-origin","bottom right"]],{category:"transform"}),N("origin-bottom",[["transform-origin","bottom"]],{category:"transform"}),N("origin-bottom-left",[["transform-origin","bottom left"]],{category:"transform"}),N("origin-left",[["transform-origin","left"]],{category:"transform"}),N("origin-top-left",[["transform-origin","top left"]],{category:"transform"}),M({name:"origin",prop:"transform-origin",supportsCustomProperty:!0,supportsArbitrary:!0,description:"transform-origin utility for custom property (origin-(--my-transform-origin))",category:"transform"});var xr=()=>r([n("--baro-translate-x","0"),n("--baro-translate-y","0"),n("--baro-translate-z","0")]),kr=(t,r)=>[xr(),e(`--baro-translate-${t}`,r),e("translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)")],wr=(t,e)=>[xr,[`--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)"]];N("translate-none",[["translate","none"]],{category:"transform"}),N("translate-px",[["translate","1px 1px"]],{category:"transform"}),N("-translate-px",[["translate","-1px -1px"]],{category:"transform"}),N("translate-full",[xr,["--baro-translate-x","100%"],["--baro-translate-y","100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),N("-translate-full",[xr,["--baro-translate-x","-100%"],["--baro-translate-y","-100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),N("translate-x-px",wr("x","1px"),{category:"transform"}),N("-translate-x-px",wr("x","-1px"),{category:"transform"}),N("translate-x-full",wr("x","100%"),{category:"transform"}),N("-translate-x-full",wr("x","-100%"),{category:"transform"}),N("translate-y-px",wr("y","1px"),{category:"transform"}),N("-translate-y-px",wr("y","-1px"),{category:"transform"}),N("translate-y-full",wr("y","100%"),{category:"transform"}),N("-translate-y-full",wr("y","-100%"),{category:"transform"}),N("translate-z-px",wr("z","1px"),{category:"transform"}),N("-translate-z-px",wr("z","-1px"),{category:"transform"}),M({name:"translate-x",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&te(t)){return kr("x",`calc(${t} * 100%)`)}if(Jt(t)||r){return kr("x",`calc(var(--spacing) * ${t})`)}return kr("x",t)},handleCustomProperty:t=>kr("x",`var(${t})`),description:"translate-x utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),M({name:"translate-y",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&te(t)){return kr("y",`calc(${t} * 100%)`)}if(Jt(t)||r){return kr("y",`calc(var(--spacing) * ${t})`)}return kr("y",t)},handleCustomProperty:t=>kr("y",`var(${t})`),description:"translate-y utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),M({name:"translate-z",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&te(t)){return kr("z",`calc(${t} * 100%)`)}if(Jt(t)||r){return kr("z",`calc(var(--spacing) * ${t})`)}return kr("z",t)},handleCustomProperty:t=>kr("z",`var(${t})`),description:"translate-z utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),M({name:"translate",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,{negative:o})=>{if(t.includes("/")&&te(t)){const r=`calc(${t} * 100%)`;return[e("translate",`${r} ${r}`)]}if(Jt(t)||o){const r=`calc(var(--spacing) * ${t})`;return[e("translate",`${r} ${r}`)]}return[e("translate",`${t} ${t}`)]},handleCustomProperty:t=>[e("translate",`var(${t}) var(${t})`)],description:"translate utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"});var $r=/^(length|number|percentage):(.+)$/,Cr=/^(\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;N("fill-inherit",[["fill","inherit"]],{category:"svg"}),N("fill-current",[["fill","currentColor"]],{category:"svg"}),N("fill-transparent",[["fill","transparent"]],{category:"svg"}),N("fill-black",[["fill","#000"]],{category:"svg"}),N("fill-white",[["fill","#fff"]],{category:"svg"}),M({name:"fill",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?[e("fill",`var(--color-${a.realThemeValue})`)]:[e("fill",t)],description:"fill utility (static, theme, arbitrary, custom property supported)",category:"svg"}),N("stroke-inherit",[["stroke","inherit"]],{category:"svg"}),N("stroke-current",[["stroke","currentColor"]],{category:"svg"}),N("stroke-transparent",[["stroke","transparent"]],{category:"svg"}),N("stroke-black",[["stroke","#000"]],{category:"svg"}),N("stroke-white",[["stroke","#fff"]],{category:"svg"}),M({name:"stroke",themeKeys:["colors","strokeWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>{if(Jt(t)||"strokeWidth"===a?.themeNamespace)return[e("stroke-width",t)];if(o.arbitrary){const r=$r.exec(t);if(r)return[e("stroke-width",r[2])];if(!re(t)&&(Cr.test(t)||/^calc\(/.test(t)))return[e("stroke-width",t)]}return a?.realThemeValue?[e("stroke",`var(--color-${a.realThemeValue})`)]:[e("stroke",t)]},handleCustomProperty:t=>{const r=$r.exec(t);return r?[e("stroke-width",`var(${r[2]})`)]:[e("stroke",`var(${t})`)]},description:"stroke utility (static, theme, arbitrary, custom property supported)",category:"svg"}),N("forced-color-adjust-auto",[["forced-color-adjust","auto"]],{category:"accessibility"}),N("forced-color-adjust-none",[["forced-color-adjust","none"]],{category:"accessibility"}),P("hover",["&:hover"],{order:50,source:"pseudo",wrap:()=>[o("media","(hover: hover)",[])]}),P("focus",["&:focus"],{order:50,source:"pseudo"}),P("active",["&:active"],{order:50,source:"pseudo"}),P("visited",["&:visited"],{order:50,source:"pseudo"}),P("focus-visible",["&:focus-visible"],{order:50,source:"pseudo"}),P("focus-within",["&:focus-within"],{order:50,source:"pseudo"}),P("disabled",["&:disabled"],{source:"pseudo"}),P("checked",["&:checked"],{source:"pseudo"}),P("required",["&:required"],{source:"pseudo"}),P("invalid",["&:invalid"],{source:"pseudo"}),P("enabled",["&:enabled"],{source:"pseudo"}),P("indeterminate",["&:indeterminate"],{source:"pseudo"}),P("default",["&:default"],{source:"pseudo"}),P("optional",["&:optional"],{source:"pseudo"}),P("valid",["&:valid"],{source:"pseudo"}),P("user-valid",["&:user-valid"],{source:"pseudo"}),P("user-invalid",["&:user-invalid"],{source:"pseudo"}),P("in-range",["&:in-range"],{source:"pseudo"}),P("out-of-range",["&:out-of-range"],{source:"pseudo"}),P("placeholder-shown",["&:placeholder-shown"],{source:"pseudo"}),P("autofill",["&:autofill"],{source:"pseudo"}),P("read-only",["&:read-only"],{source:"pseudo"}),P("first",["&:first-child"],{source:"pseudo"}),P("last",["&:last-child"],{source:"pseudo"}),P("only",["&:only-child"],{source:"pseudo"}),P("odd",["&:nth-child(odd)"],{source:"pseudo"}),P("even",["&:nth-child(even)"],{source:"pseudo"}),P("first-of-type",["&:first-of-type"],{source:"pseudo"}),P("last-of-type",["&:last-of-type"],{source:"pseudo"}),P("only-of-type",["&:only-of-type"],{source:"pseudo"}),P("empty",["&:empty"],{source:"pseudo"}),P("prefers-contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),P("prefers-contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),P("contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),P("contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),P("noscript",["&"],{order:5,wrap:()=>[o("media","(scripting: none)",[],"media")],source:"media"}),P("forced-colors",["&"],{order:5,wrap:()=>[o("media","(forced-colors: active)",[],"media")],source:"media"}),P("pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(pointer: coarse)",[],"media")],source:"media"}),P("pointer-fine",["&"],{order:5,wrap:()=>[o("media","(pointer: fine)",[],"media")],source:"media"}),P("any-pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(any-pointer: coarse)",[],"media")],source:"media"}),P("any-pointer-fine",["&"],{order:5,wrap:()=>[o("media","(any-pointer: fine)",[],"media")],source:"media"}),P("motion-safe",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: no-preference)",[],"media")],source:"media"}),P("motion-reduce",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: reduce)",[],"media")],source:"media"}),P("print",["&"],{order:5,wrap:()=>[o("media","print",[],"media")],source:"media"}),P("portrait",["&"],{order:5,wrap:()=>[o("media","(orientation: portrait)",[],"media")],source:"media"}),P("landscape",["&"],{order:5,wrap:()=>[o("media","(orientation: landscape)",[],"media")],source:"media"}),P("rtl",["&[dir=rtl]"],{order:20,source:"attribute"}),P("ltr",["&[dir=ltr]"],{order:20,source:"attribute"}),P("inert",["&[inert]"],{order:40,source:"attribute"}),P("open",["&:is([open], :popover-open, :open)"],{order:40,source:"attribute"});var Pr=t=>[r([n("--baro-content",'""')]),...t,...t.some(t=>"decl"===t.type&&"content"===t.prop)?[]:[e("content","var(--baro-content)")]];function zr(t,e,r,o=!1){const a=`${o?"not ":""}(${"min"===t?"width >=":"width <"} ${e})`;return r?`${r} ${a}`:a}function Sr(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 jr(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 Rr(t){const e=Ar(t);return/^[>+~]/.test(e.trim())||!Er(e)?e:`*:is(${e})`}function Er(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 Tr(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 Nr(t,e){const r=jr(t);if(r)return r;const o=Tr(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 Wr(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 Vr(t){const e=/^@(media|supports|container)(?:\s+|(?=\()|$)([\s\S]*)$/.exec(Ar(t).trim());if(!e)return null;const r=e[1];let a=(e[2]??"").trim(),n="";if("container"===r){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||Er(a))return null;const s=/^not\s+/i.test(a)?a.replace(/^not\s+/i,""):`not ${a}`;return s?o(r,`${n}${s}`,[],r):null}P("before",["&::before"],{source:"pseudo",astHandler:Pr}),P("after",["&::after"],{source:"pseudo",astHandler:Pr}),P("placeholder",["&::placeholder"],{source:"pseudo"}),P("selection",["& *::selection","&::selection"],{source:"pseudo"}),P("file",["&::file-selector-button"],{source:"pseudo"}),P("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"],{source:"pseudo"}),P("details-content",["&::details-content"],{source:"pseudo"}),P("first-line",["&::first-line"],{source:"pseudo"}),P("first-letter",["&::first-letter"],{source:"pseudo"}),P("backdrop",["&::backdrop"],{source:"pseudo"}),P("starting",["&"],{wrap:()=>[o("starting-style","",[],"starting")],source:"starting"}),z((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 r=t.type,a=e.theme("breakpoints")||e.config("theme.breakpoints")||{};if(Object.keys(a).includes(r)){let t=e.theme(`breakpoints.${r}`)||Sr(r);return/^\d*\.?\d+(px|em|rem)?$/.test(t)&&(t=`(min-width: ${t})`),[o("media",t,[],"responsive")]}if(r.startsWith("max-")){const t=r.replace("max-","");if(Object.keys(a).includes(t)){let r=e.theme(`breakpoints.${t}`)||Sr(t);if(r.includes("min-width:")){const t=r.match(/min-width:\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else if(r.includes("width >=")){const t=r.match(/width >=\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else/^\d*\.?\d+(px|em|rem)?$/.test(r)&&(r=`(width < ${r})`);return[o("media",r,[],"responsive")]}if(/^\[(.*)\]$/.test(t)){const e=t.match(/^\[(.*)\]$/)?.[1];if(e)return[o("media",`(width < ${e})`,[],"responsive")]}}if(/^min-\[(.*)\]$/.test(r)){const t=r.match(/^min-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width >= ${t})`,[],"responsive")]}if(/^max-\[(.*)\]$/.test(r)){const t=r.match(/^max-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width < ${t})`,[],"responsive")]}return[]});z(t=>"dark"===t,void 0,(t,e)=>{const r=(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 r.forEach(t=>{if("media"===t.type){const e=o("media",t.value,[],"dark");n.push(e)}else{const e=a(t.value,[],"dark");n.push(e)}}),n});var Br=/^(not-)?@(?:(min|max)-)?(\[[^\]]+\]|[a-zA-Z0-9.]+)(?:\/([a-zA-Z0-9_-]+))?$/;z(t=>Br.test(t)&&!/^(?:not-)?@container(?:\/|$)/.test(t),void 0,(t,e)=>{const r=Br.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=zr("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 Mr=t=>/^[\s_]*@/.test(t);function Or(t,e){const r=jr(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 Fr(t,e){const r=/^(has|in)-(.+)$/.exec(t);if(!r)return;const[,o,a]=r;if("in"===o&&/^\[.+\]$/.test(a)){if(Mr(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=Or(a,e);return n&&{kind:o,...n}}z(t=>/^has-\[.*\]$/.test(t)&&!Mr(t.slice(5)),({selector:t,mod:e})=>{const r=/^has-\[(.+)\]$/.exec(e.type);return r?{selector:`&:has(${Rr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}},void 0),z(t=>/^has-(data|aria)-/.test(t)&&!!jr(t.slice(4)),({mod:t})=>({selector:`&:has(*${jr(t.type.slice(4))})`,flatten:!1,wrappingType:"rule",source:"attribute"}),void 0);var Kr=({selector:t,mod:e,context:r})=>{const o=Fr(e.type,r);return o?{selector:"has"===o.kind?`&:has(*${o.compound})`:`:where(*${o.compound}) &`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t}};function Dr(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(Mr(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=Or(a,e);return s&&{kind:o,base:n,v:a,arg:`*${s.compound}`,inner:s.inner}}z((t,e)=>!!Fr(t,e)?.inner?.wrap,Kr,(t,e)=>Fr(t.type,e).inner.wrap({...t,type:t.type.replace(/^(has|in)-/,"")},e)),z((t,e)=>{const r=Fr(t,e);return!!r&&!r.inner?.wrap},Kr);var Lr=({selector:t,mod:e,context:r})=>{const o=Dr(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 Zr(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}z((t,e)=>!!Dr(t,e)?.inner?.wrap,Lr,(t,e)=>{const r=Dr(t.type,e);return r.inner.wrap({...t,type:r.v},e)}),z((t,e)=>{const r=Dr(t,e);return!!r&&!r.inner?.wrap},Lr),z((t,e)=>/^not-(?!@)/.test(t)&&!!Wr(t.slice(4),e),()=>"&",(t,e)=>{const r=Wr(t.type.slice(4),e);return r?[r]:[]}),z(t=>/^not-\[@.*\]$/.test(t)&&!!Vr(t.slice(5,-1)),()=>"&",t=>{const e=Vr(t.type.slice(5,-1));return e?[e]:[]}),z(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(${Rr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}}),z(t=>/^not-/.test(t)&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=/^not-(.+)$/.exec(e.type),a=o?Nr(o[1],r):null;return o&&!a?null:{selector:a?`&:not(${a})`:t,flatten:!1,wrappingType:"rule",source:"attribute"}}),z(t=>"*"===t,()=>({selector:":is(& > *)",wrappingType:"rule",source:"universal"}),void 0),z(t=>"**"===t,()=>({selector:":is(& *)",wrappingType:"rule",source:"universal"}),void 0),z(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),z(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),z(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(${Rr(t)})`,source:"attribute"}}{const t=Nr(o,r);return t?{selector:`&:not(${t})`,source:"attribute"}:null}},void 0),z(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),z(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),z(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),z(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),z(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),z(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),z(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),z(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?[o("supports",Zr(void 0!==e[1]?Ar(e[1]):e[2]),[],"supports")]:[]}),z(t=>/^layer-\[.*\]$/.test(t),void 0,t=>{const e=/^layer-\[(.+)\]$/.exec(t.type);return e?[o("layer",e[1],[])]:[]}),z(t=>/^scope-\[.*\]$/.test(t),void 0,t=>{const e=/^scope-\[(.+)\]$/.exec(t.type);return e?[o("scope",e[1],[])]:[]});var Ir=t=>/^(group|peer)-has-\[/.test(t)&&Mr(t.slice(t.indexOf("[")+1));function _r(t,e){const r=/^(.+)\/([a-zA-Z0-9_-]+)$/.exec(e);return r?[r[1],`.${t}\\/${r[2]}`]:[e,`.${t}`]}function qr(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=Nr(r,e);return o?`:not(${o})`:null}z(t=>/^(group|peer)-hover(\/[a-zA-Z0-9_-]+)?$/.test(t),({mod:t})=>{const e=t.type.startsWith("group")?"group":"peer",[,r]=_r(e,t.type.slice(e.length+1));return{selector:`&:is(:where(${r}):hover${"group"===e?" *":" ~ *"})`,wrappingType:"rule",source:e}},()=>[o("media","(hover: hover)",[])]),z(t=>/^group-(.+)$/.test(t)&&!Ir(t),({selector:t,mod:e,context:r})=>{const o=/^group-(.+)$/.exec(e.type),[a,n]=_r("group",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?jr(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=qr(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(${Rr(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?Tr(s[1],r):null;return s&&!c?null:s?{selector:`&:is(${i}${c} *)`,wrappingType:"rule",source:"group"}:{selector:t,source:"group"}},void 0),z(t=>/^peer-(.+)$/.test(t)&&!Ir(t),({selector:t,mod:e,context:r})=>{const o=/^peer-(.+)$/.exec(e.type),[a,n]=_r("peer",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?jr(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(${Rr(c.slice(5,-1))}) ~ *)`,source:"peer"};if(c?.startsWith("has-")){const t=Tr(c.slice(4),r);return t?{selector:`&:is(${i}:has(${t})~*)`,source:"peer"}:null}if(c?.startsWith("not-")){const t=qr(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?Tr(c,r):null;return s&&!p?null:s?{selector:`&:is(${i}${p}~*)`,source:"peer"}:{selector:t,source:"peer"}},void 0),z(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),z(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 Ur=/^\s*@(media|container)\s+([^{]*)\{/,Hr=/prefers-color-scheme|\bprint\b|forced-colors|orientation/,Yr=/(?:min-width\s*:\s*|width\s*>=?\s*)([\d.]+)(px|rem|em)?/,Gr=/(?:max-width\s*:\s*|width\s*<=?\s*)([\d.]+)(px|rem|em)?/;function Xr(t,e){const r=parseFloat(t);return"rem"===e||"em"===e?16*r:r}function Jr(t,e){const r="container"===t;if(!r&&/^\s*not\b/i.test(e))return[0,0];const o=Yr.exec(e);if(o)return[r?4:2,Xr(o[1],o[2])];const a=Gr.exec(e);return a?[r?3:1,-Xr(a[1],a[2])]:!r&&Hr.test(e)?[5,0]:[0,0]}function Qr(t){const e=[];let r,o=t;for(;r=Ur.exec(o);){const[t,a]=Jr(r[1],r[2]);e.push(t,a),o=o.slice(r[0].length)}return e}function to(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 eo(t,e){let r=0,o=t.length;for(;r<o;){const a=r+o>>1;to(t[a],e)<=0?r=a+1:o=a}return r}var ro=class{insertSorted(t,e,r){const o=t.keys??=[],a=eo(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=>I(t).utility?.category,a=""){this.partitions=[],this.categoryPartitions=new Map,this.partitionCounter=0,this.maxRulesPerPartition=50,this.classToPartitionMap=new Map,this.classToCategoryPartitionMap=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=Qr(t);let r=this.partitions.findIndex(t=>{const r=t.keys;return!!r&&r.length>0&&to(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 i()&&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,Qr(t))}catch(o){return i()&&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 i()&&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);i()&&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()}},oo=/[ \t\n\f\r]+/;function ao(t){return t?"object"==typeof t&&"string"==typeof t.baseVal?t.baseVal:t.toString():""}function no(t){return t?ao(t).split(oo).filter(Boolean):[]}var so=class{constructor(t,e,r=t=>I(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=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&&no(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=new Set,o=t.className;o&&no(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=no(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&&no(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||e.add(t)})}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null)}};function io(t){return t.replace(/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,(t,e,r)=>e?String.fromCodePoint(parseInt(e,16)):r)}var lo=/^\s*(?::(?:where|is)\(\s*)?\.((?:\\[0-9a-fA-F]{1,6}\s?|\\.|[\w-]|[^\x00-\x7F])+)/;function co(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 po(t,e=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&&po(t,e)}return e}function uo(t,e=new Set){for(const r of Array.from(t)){const t=r.selectorText;if("string"==typeof t)for(const r of co(t)){const t=lo.exec(r);t&&e.add(io(t[1]))}const o=r.cssRules;o&&o.length&&uo(o,e)}return e}var yo=class{constructor(t,e,r,o=()=>Date.now()){this.host=t,this.graceMs=e,this.maxRules=r,this.now=o,this.counts=new Map,this.counted=new WeakMap,this.candidates=new Map,this.timer=null,this.root=null}setRoot(t){this.counts.clear(),this.counted=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(no(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 ho(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 go(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 mo=t=>t.replace(/\\\//g,"\\/"),fo=/^\s*@property\s/,bo=null;var vo=class{constructor(t,e,r=t,o={}){this.results=new Map,this.generations=0,this.prologueSheet=null,this.rulesSheet=null,this.prologue={props:"",preflight:"",vars:""},this.fallbackProps=new Set,this.segments=new Map([["root",{rules:[],keys:[]}],["",{rules:[],keys:[]}]]),this.refs=new Map,this.attached=[],this.key=t,this.fullKey=r,this.context=o.context??Gt(e),this.constructable=go(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)fo.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=Qr(t),s=a?o.rules.length:eo(o.keys,n),l=this.offset(o)+s;try{this.insertAt(t,l)}catch(c){return i()&&console.warn(`[BrowserRuntime] Failed to insert rule into shadow root sheet: ${t}`,c),!1}return o.rules.splice(s,0,t),o.keys.splice(s,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=mo(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")}},xo=new Map;function ko(t,e=ho){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=xo.get(r);return o||(o=new vo(e(r),t,r),xo.set(r,o)),o}var wo,$o=class extends Ft{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}},Co=class{constructor(t,e,r=t=>I(t).utility?.category,o={}){this.shared=t,this.root=e,this.getCategory=r,this.opts=o,this.owned=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&&fo.test(t)&&(function(t,e,r={}){const o=e.filter(t=>fo.test(t));if(0===o.length)return!0;try{if(!t)return!1;if(!bo||bo.doc!==t||bo.style&&!bo.style.isConnected){const e={doc:t,rules:new Set};if(r.constructable&&go("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}bo=e}const e=bo;for(const t of o){if(e.rules.has(t))continue;const r=e.sheet??e.style?.sheet??null;r?r.insertRule(mo(t),r.cssRules.length):e.style&&(e.style.textContent+=`${t}\n`),e.rules.add(t)}return!0}catch(a){return i()&&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&&xo.get(t.fullKey)===t&&xo.delete(t.fullKey)}},Po="style[data-barocss-ssr]",zo="@layer theme, base, components, utilities;",So=class{constructor(t={}){this.cache=new Map,this.rootCache=new Set,this.shadowRoot=null,this.isDestroyed=!1,this.existing=null,this.existingKeyframes=new Set,this.existingSheetCount=-1,this.pinned=new Set,this.gc=null,this.reclaimedCount=0,this.ssrRules=[],this.ssrClasses=new Set,this.observedOnce=!1,this.getCategory=t=>I(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=ko(this.options.config);this.context=t.context,this.incrementalParser=new $o(t)}else this.context=Gt(this.options.config),this.incrementalParser=new Ft(this.context);this.changeDetector=new so(this.incrementalParser,this,this.getCategory),this.stylePartitionManager=this.createStyles(),this.options.gc&&(this.gc=new yo({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=ko(this.options.config);return e!==t&&(t=e,this.context=t.context,this.incrementalParser=new $o(t),this.changeDetector?.setParser(this.incrementalParser)),new Co(t,this.shadowRoot,this.getCategory,{nonce:this.options.nonce,constructable:this.options.constructable})}if(this.options.constructable&&"undefined"!=typeof document&&go("document")){const t=new vo("document",this.options.config,"document",{context:this.context,target:"document"});return new Co(t,document,this.getCategory)}return new ro(this.getInsertionPoint(),this.options.maxRulesPerPartition,`${this.options.styleId}-partition`,this.getCategory,this.options.nonce)}debugLog(t,e,r){i()&&(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(`${Po}: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=uo([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",`${zo}\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=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=new Set,o=new Set;for(const a of e){let t;try{t=a.cssRules}catch{continue}uo(t,r),po(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(no)}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)?x(t):(m(),jt.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=ko(t);this.context=e.context,this.incrementalParser=new $o(e)}else this.context=Gt(t),this.incrementalParser=new Ft(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 Co,sharedSheet:this.shadowRoot&&this.stylePartitionManager instanceof Co?{roots:this.stylePartitionManager.shared.rootCount,rules:this.stylePartitionManager.shared.ruleCount,generations:this.stylePartitionManager.shared.generations,constructable:this.stylePartitionManager.shared.constructable}:null}}},Ao=null,jo="",Ro=!1,Eo=!1;function To(t={}){if(!Ao||Ao.getStats().isDestroyed?(Ao=new So(t),wo=t.config,jo=t.nonce??"",Ro=t.constructable??!1,Eo=!1):t.config&&t.config!==wo&&(Ao.updateConfig(t.config),wo=t.config),!Eo){const e=void 0!==t.nonce&&t.nonce!==jo,r=void 0!==t.constructable&&t.constructable!==Ro;if(e||r){Eo=!0;const t=[e&&`nonce (runtime has ${jo?"a different nonce":"none"})`,r&&`constructable (runtime has ${Ro})`].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 No({loadingClassName:t="baro-boot",...e}={}){if(e.root&&11===e.root.nodeType)return new So(e);if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>No({loadingClassName:t,...e}),{once:!0});const r=`${t}-doing`,o=`${t}-done`;try{document.body.classList.add(r),To(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 Wo=No;function Vo(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=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 no(n))e&&r.add(e)}return Array.from(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)"}};t.BrowserRuntime=So,t.ChangeDetector=so,t.LAYER_ORDER=zo,t.SSR_STYLE_SELECTOR=Po,t.StylePartitionManager=ro,t.baroBoot=No,t.baroStart=Wo,t.collectJsonRenderClassNames=Vo,t.getRuntime=To,t.normalizeClassName=ao,t.normalizeClassNameList=no,t.preloadJsonRenderClasses=function(t,e){const r=Vo(t);r.length>0&&e.addClass(r)},t.shadcnTheme=Bo});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BaroCSS={})}(this,function(t){function e(t,e,r){return{type:"decl",prop:t,value:e,source:r}}function r(t,e){return{type:"at-root",nodes:t,source:e}}function o(t,e,r,o){return{type:"at-rule",name:t,params:e,nodes:r,source:o}}function a(t,e,r){return{type:"rule",selector:t,nodes:e,source:r}}function n(t,r,a,n){const s=[e("syntax",`"${a||"*"}"`,n),e("inherits","false",n)];return r&&s.push(e("initial-value",r,n)),o("property",t,s,n)}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});var s=!1;function i(){return s}function l(...t){s&&console.warn(...t)}var c,p=class{constructor(){this.cache=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}}},u=new p,d=class{constructor(){this.cache=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}}},g=new d,y=class{constructor(){this.cache=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 m(){u.clear(),g.clear(),h.clear(),c?.(),function(...t){s&&console.log(...t)}("[clearAllCaches] All caches cleared")}var f=new WeakMap,b=0;function v(t){const e=f.get(t);return e&&e.cacheGeneration!==b&&(x(t),e.cacheGeneration=b),e}function x(t){const e=f.get(t);e&&(e.astCache.clear(),e.parseResultCache.clear(),e.utilityCache.clear(),e.failures.clear())}function k(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 w(t){return/^-?\d+(?:\.\d+)?$/.test(t)?t:null}function $(t){return/^\d+(px|em|rem|vh|vw|vmin|vmax|%|in|cm|mm|pt|pc|ex|ch|fr)$/.test(t)?t:null}function C(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}c=()=>{b+=1};var P=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 z(t){return P.has(t.toLowerCase())?t:t.startsWith("color:var(")?t.slice(6):t.startsWith("color:")?z(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 S=new Set(["inherit","currentcolor","transparent"]);function A(t,r,a){const n=String(a.realThemeValue),s=S.has(r.toLowerCase())||r.startsWith("var(")||!/^[\w-]+$/.test(n)?r:`var(--color-${n})`;if(!a.opacity)return[e(t,s)];const i=j(String(a.opacity));if(!i)return[];const l=r=>o("supports","(color:color-mix(in lab, red, red))",[e(t,`color-mix(in oklab, ${s} ${r}, transparent)`)]);return i.isVar?[e(t,r),l(i.amount)]:[e(t,`color-mix(in srgb, ${r} ${i.amount}, transparent)`),l(i.amount)]}function j(t){const e=t.trim(),r=/^\((--[\w-]+)\)$/.exec(e)??/^\[var\((--[\w-]+)\)\]$/.exec(e);if(r)return{amount:`var(${r[1]})`,isVar:!0};const o=/^(\[)?(\d+(?:\.\d+)?|\.\d+)(%)?(\])?$/.exec(e);if(!o||!!o[1]!=!!o[4]||o[3]&&!o[1])return null;const a=Number(o[2]);return{amount:+(o[3]?a:o[1]&&a<=1?100*a:a).toFixed(4)+"%",isVar:!1}}var R=/(^|-)color$|^(fill|stroke)$|^--baro-gradient-(from|via|to)$/;function E(t,r,a){let n=!1,s=!1;const i=t=>t.flatMap(t=>{if("decl"===t.type&&"string"==typeof t.value&&r.includes(t.value)){n=!0;const r=R.test(t.prop)?function(t,r,a){const n=j(a);if(!n)return null;const s=`color-mix(in oklab, ${r} ${n.amount}, transparent)`;return n.isVar||r.startsWith("var(")?[e(t,r),o("supports","(color:color-mix(in lab, red, red))",[e(t,s)])]:[e(t,s)]}(t.prop,t.value,a):null;return r||(s=!0),r??[]}return"at-rule"===t.type||"rule"===t.type||"style-rule"===t.type||"at-root"===t.type?[{...t,nodes:i(t.nodes)}]:"wrap"===t.type?[{...t,items:i(t.items)}]:[t]}),l=i(t);return n&&!s?l:null}var N=Object.freeze([]),W=[];function B(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Utility registration requires a context from createContext");(r?.utilities||W).push(t),e?x(e):(g.clear(),h.clear())}function T(t){return t&&v(t)?.utilities||W}var V=[];function M(t,e,r={},o){F({name:t,match:e=>e===t,modifySelector:({...t})=>e.map(t=>({selector:t,source:r.source})),...r},o)}function O(t,e,r,o={},a){F({match:t,modifySelector:e,wrap:r,...o},a)}function F(t,e){const r=e&&v(e);if(e&&!r)throw new Error("Modifier registration requires a context from createContext");(r?.modifiers||V).push(t),e&&x(e)}function K(t){return t&&v(t)?.modifiers||V}var L=/[^A-Za-z0-9_-]/gu,D=/^[\s\p{C}\p{Z}]$/u;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)+" "+I(t.slice(r+1))}return I(t)}function I(t){return t.replace(L,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?"\\\\":D.test(t)?"\\"+t.codePointAt(0).toString(16)+" ":"\\"+t)}function Z(t,r,o,n){B({name:t,match:e=>e===t,handler:t=>r.flatMap(r=>{if(r.type)return[r];if("function"==typeof r)return[r(t)];const[o,n]=r;return"string"==typeof n?[e(o,n)]:Array.isArray(n)?[a(o,n.map(([t,r])=>e(t,r)))]:[]}),description:o?.description,category:o?.category,priority:o?.priority},n)}function q(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 U(t,e,r){const o=q(t,e,r);return"string"==typeof o?o:null}function H(t,e,r,o){return void 0===q(t,e,r)?null:`var(--${o}-${r})`}function Y(t,r){B({name:t.name,match:e=>e.startsWith(t.name+"-"),handler:(r,o,a,n)=>{let s=r;const i=a,l={opacity:a.opacity};if(t.supportsOpacity&&!a.arbitrary&&!a.customProperty&&r.includes("/")){const t=r.split("/");t.length>=2&&(l.opacity=t.pop(),s=t.join("/"))}const c=!a.arbitrary&&!a.customProperty&&r.includes("/");if(t.supportsOpacity&&(l.opacity||c)&&!j(String(l.opacity??""))){const t=i.arbitrary?s.replace(/_/g," "):s;return(i.customProperty?!/^[\w-]+:/.test(t)||t.startsWith("color:"):i.arbitrary&&(z(t)||/^var\(--/.test(t)||t.startsWith("color:")))?N:[]}if(t.supportsArbitrary&&i.arbitrary||t.supportsCustomProperty&&i.customProperty){const r=(r=>{if(t.supportsArbitrary&&i.arbitrary){const n=Q(X(s.replace(/_/g," ")));if(t.handle){const e=t.handle(n,o,a,r);if(e)return e}return t.prop?[e(t.prop,n)]:[]}if(t.supportsCustomProperty&&i.customProperty){if(t.handleCustomProperty)return t.handleCustomProperty(s,o,a,r)??null;const n=`var(${s})`;if(t.handle){const e=t.handle(n,o,a,r);if(e)return e}return t.prop?[e(t.prop,n)]:[]}return null})(l);if(t.supportsOpacity&&!t.ownsOpacity&&l.opacity&&r?.length){const t=i.arbitrary?Q(X(s.replace(/_/g," "))):`var(${s})`,e=i.arbitrary?/^color:(.+)$/.exec(t)?.[1]:/^color:(--.+)$/.exec(s)?.[1];return E(r,[t,...e?[e,`var(${e})`]:[]],String(l.opacity))??[]}return r}let p;t.themeKey&&o.theme&&(p=tt(o.theme(t.themeKey,s)));let u=void 0!==p?t.themeKey:void 0;if(!p&&t.themeKeys&&o.theme)for(const e of t.themeKeys)if(p=tt(o.theme(e,s)),void 0!==p){u=e;break}if(void 0!==p){if(l.themeNamespace=u,l.themeKey=s,"colors"!==u&&(t.themeKeys??[t.themeKey]).includes("colors")||(l.realThemeValue=s),s=p,t.prop)return[e(t.prop,s)];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return[]}t.supportsFraction&&/^-?\d+\/\d+$/.test(r)&&(s=r);const d=t.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&&t.supportsNegative&&t.handleNegativeBareValue){const e=t.handleNegativeBareValue({value:String(s).replace(/^-/,""),ctx:o,token:a,extra:l})??d;if(null==e)return[];s=e}else if(t.handleBareValue){const e=t.handleBareValue({value:s,ctx:o,token:a,extra:l})??d;if(null==e)return[];s=e}else if(d)s=d;else if(!/^-?(\d|\.\d)/.test(String(s)))return[];if(t.handle){const e=t.handle(s,o,a,l);if(e)return e}return t.prop?[e(t.prop,s)]:[]},description:t.description,category:t.category,priority:t.priority},r)}var G=new Set(["calc","min","max","clamp"]);function X(t){return t.replace(/--spacing\(\s*([^()]+?)\s*\)/g,"calc(var(--spacing) * $1)")}var J={name:"[arbitrary-property]",match:()=>!1,handler:(t,r,o)=>{const a=o.property;return a&&t?[e(a,Q(X(t.replace(/_/g," "))))]:[]}};function Q(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(G.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 tt(t){return"string"==typeof t?t:"number"==typeof t&&Number.isFinite(t)?String(t):void 0}function et(t,e){const r=e&&v(e)?.utilityCache||h;if(r.has(t))return r.get(t);const o=T(e),a=K(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 rt(t,e){const r=e&&v(e)?.parseResultCache||g;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=et(t[0].value,e)?0:t.length-1;if(t.some((t,e)=>!(e===o||function(t){if(at(t))return!1;const e=ot.exec(t);return e?lt(e[1],!0):lt(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(!it((t.length>1&&!et(t[0].value,e)?t[t.length-1]:t[0]).value))return{modifiers:r,utility:null};if(1===t.length)o=dt(t[0].value,e);else if(2===t.length){const a=t[0],n=t[1];if(et(a.value,e)){o=dt(a.value,e);const t=ct(n.value);t&&r.push(t)}else{const t=ct(a.value);t&&r.push(t),o=dt(n.value,e)}}else if(et(t[0].value,e)){o=dt(t[0].value,e);for(let e=1;e<t.length;e++){const o=ct(t[e].value);o&&r.push(o)}}else{for(let e=0;e<t.length-1;e++){const o=ct(t[e].value);o&&r.push(o)}o=dt(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 ot=/^-?(?:(?:group|peer)-)?(?:has|not)-\[(.*)\](?:\/[\w-]+)?$/;function at(t){return t.includes("/*")||t.includes("*/")}function nt(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 st(t){return t.includes("</")}function it(t){return!at(t)&<(t,!0)}function lt(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 ct(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 pt(t,e){return e.name.length-t.name.length}function ut(t,e,r){let o=1;for(let a=0;a<t.length;a++)if(t[a]===e)o++;else if(t[a]===r&&0===--o)return a;return-1}function dt(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!it(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=ut(o,"[","]");if(-1!==e&&e<o.length-1&&"/"===o[e+1]){if(i=o.slice(e+2),!i)return{prefix:"",value:""};o=o.slice(0,e)}else o=o.replace(/]$/,"");a=!0}else if(t.includes("-(")){[r,o]=t.split("-(");const e=ut(o,"(",")");if(-1!==e&&e<o.length-1&&"/"===o[e+1]){if(i=o.slice(e+2),!i)return{prefix:"",value:""};o=o.slice(0,e)}else o=o.replace(/\)$/,"");n=!0}else{const a=[...T(e)].sort(pt);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 gt=t=>{const e=String(t??"");return!nt(e)&&!st(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)},yt=t=>{if("at-rule"!==t.type)return[];if("property"!==t.name)return t.nodes;const e=new Set;return t.nodes.filter(t=>"decl"!==t.type||!e.has(t.prop)&&!!e.add(t.prop))},ht=new Set(["property","font-face","keyframes","-webkit-keyframes","counter-style"]),mt=(t,e)=>it(String(t))&&it(String(e??""))&&!st(String(t))&&!st(String(e??""));function ft(t,e,r,o=""){const a=r?.minify,n=o,s=o+" ",i=r?.important?" !important":"",c=r?{...r,nested:!0}:r,p=r?.scope?"."+_(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 l("[astToCss] Empty AST received:",{ast:t,baseSelector:e,minify:a}),"";const d=[];if(Array.isArray(t)){const e=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 g=d.map(t=>{switch(t.type){case"decl":{const e=t.value;return mt(t.prop,e)?t.prop.startsWith("--")?a?`${t.prop}: ${e}${i};`:`${n}${t.prop}: ${e}${i};`:`${a?"":n}${t.prop}: ${e}${i};`:""}case"rule":{let r=t.selector;if(e){const t="."+_(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 gt(r)&&u(r)?a?`${n}${r}{${ft(t.nodes,e,c,s)}}`:`${n}${r} {\n${ft(t.nodes,e,c,s)}${n}}`:""}case"style-rule":return gt(t.selector)&&u(t.selector)?a?`${n}${t.selector} {${ft(t.nodes,e,c,s)}}`:`${n}${t.selector} {\n${ft(t.nodes,e,c,s)}${n}}`:"";case"at-rule":{if(!gt(t.name)||!gt(t.params))return"";const o=r?.important&&ht.has(t.name)?{...r,important:!1}:r;return a?`${n}@${t.name} ${t.params}{${ft(t.nodes,e,o,s)}}`:`${n}@${t.name} ${t.params} {\n${ft(t.nodes,e,o,s)}${n}}`}case"comment":return a?"":`${n}/* ${t.text} */`;case"raw":return`${n}${t.value}`;default:return l("[astToCss] Unknown node type:",t),""}}).filter(Boolean).join(a?"":"\n"),y=g+(a?"":"\n");return y&&""!==y.trim()||l("[astToCss] Empty result generated:",{ast:t,baseSelector:e,minify:a,result:g,finalResult:y,dedupedAst:d}),y}function bt(t,e){const r=!0===e?.minify;return t.map(t=>{const e=[];if("decl"===t.type)mt(t.prop,t.value)&&e.push(r?`${t.prop}:${t.value};`:`${t.prop}: ${t.value};`);else if("at-rule"===t.type&>(t.name)&>(t.params))if(r){const r=yt(t).filter(t=>"decl"===t.type&&mt(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${yt(t).map(t=>{if("decl"===t.type&&mt(t.prop,t.value))return`\t${t.prop}: ${t.value};`}).join("\n")}\n}`);return e.join(r?"":"\n")}).join(r?"":"\n")}function vt(t){return t.replace(".","\\.")}function xt(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 kt(t){if(!t)return{};const e={};for(const r in t)e[`--shadow-${r}`]=t[r];return e}function wt(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 $t(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=wt(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 zt(t){if(!t)return{};const e={};for(const r in t)e[`--letter-spacing-${r}`]=t[r];return e}function St(t){if(!t)return{};const e={};for(const r in t)e[`--spacing-${vt(r)}`]=t[r];return e}function At(t){if(!t)return{};const e={};for(const r in t)e[`--radius-${vt(r)}`]=t[r];return e}function jt(t){if(!t)return{};const e={};for(const r in t)e[`--z-${vt(r)}`]=String(t[r]);return e}function Rt(t){if(!t)return{};const e={};for(const r in t)e[`--opacity-${vt(r)}`]=String(t[r]);return e}function Et(t){if(!t)return{};const e={};for(const r in t)e[`--animate-${vt(r)}`]=t[r];return e}var Nt=/\/\*|\*\/|[{};]|<\//;function Wt(t,e){if(!t.includes("animation"))return[];const r=e.theme("keyframes");if(!r||"object"!=typeof r)return[];const o=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||Nt.test(t)||/\s/.test(t)||!e||"object"!=typeof e)return"";let r="";for(const[o,a]of Object.entries(e)){if(Nt.test(o)||!a||"object"!=typeof a)return"";let t="";for(const[e,r]of Object.entries(a)){const o=String(r);if(Nt.test(e)||Nt.test(o))return"";t+=` ${e}: ${o};\n`}r+=` ${o} {\n${t} }\n`}return`@keyframes ${t} {\n${r}}`}(t,r[t])).filter(Boolean)}function Bt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-timing-function"]=t[r]:(e[`--transition-timing-function-${vt(r)}`]=t[r],"linear"!==r&&(e[`--ease-${vt(r)}`]=t[r]));return e}function Tt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-transition-duration"]=t[r]:e[`--transition-duration-${vt(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-${vt(r)}`]=t[r];return e}function Mt(t){const e={};for(const r in t)"DEFAULT"===r?e["--default-blur"]=t[r]:e[`--blur-${vt(r)}`]=t[r];return e}function Ot(t){const e={};for(const r in t)e[`--container-${vt(r)}`]=t[r];return e}var Ft=/^--(?:[\w-]|\\\.)+$/;function Kt(t,e=""){return":root,:host {\n"+Object.entries(t).filter(([t,e])=>function(t,e){if("string"!=typeof t||!Ft.test(t)||st(t))return!1;if("string"!=typeof e&&"number"!=typeof e)return!1;const r=String(e);return""!==r.trim()&&it(r)&&!nt(r)&&!st(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 Lt=/--baro-/g,Dt=new Set(["prop","value","params","selector","nodes","items"]);var _t=/^\s*@(media|container)\s+([^{]*)\{/,It=/prefers-color-scheme|\bprint\b|forced-colors|orientation/,Zt=/(?:min-width\s*:\s*|width\s*>=?\s*)([\d.]+)(px|rem|em)?/,qt=/(?:max-width\s*:\s*|width\s*<=?\s*)([\d.]+)(px|rem|em)?/,Ut=Number.MAX_SAFE_INTEGER,Ht=new Map(["container-type","pointer-events","visibility","position","inset","inset-inline","inset-block","inset-inline-start","inset-inline-end","inset-block-start","inset-block-end","top","right","bottom","left","isolation","z-index","order","grid-column","grid-column-start","grid-column-end","grid-row","grid-row-start","grid-row-end","float","clear","--tw-container-component","margin","margin-inline","margin-block","margin-inline-start","margin-inline-end","margin-block-start","margin-block-end","margin-top","margin-right","margin-bottom","margin-left","box-sizing","display","field-sizing","aspect-ratio","height","max-height","min-height","width","max-width","min-width","flex","flex-shrink","flex-grow","flex-basis","table-layout","caption-side","border-collapse","border-spacing","transform-origin","translate","--tw-translate-x","--tw-translate-y","--tw-translate-z","scale","--tw-scale-x","--tw-scale-y","--tw-scale-z","rotate","--tw-rotate-x","--tw-rotate-y","--tw-rotate-z","--tw-skew-x","--tw-skew-y","transform","zoom","animation","cursor","touch-action","--tw-pan-x","--tw-pan-y","--tw-pinch-zoom","resize","scroll-snap-type","--tw-scroll-snap-strictness","scroll-snap-align","scroll-snap-stop","scroll-margin","scroll-margin-inline","scroll-margin-block","scroll-margin-inline-start","scroll-margin-inline-end","scroll-margin-block-start","scroll-margin-block-end","scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left","scroll-padding","scroll-padding-inline","scroll-padding-block","scroll-padding-inline-start","scroll-padding-inline-end","scroll-padding-block-start","scroll-padding-block-end","scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left","scrollbar-width","scrollbar-color","scrollbar-gutter","list-style-position","list-style-type","list-style-image","appearance","columns","break-before","break-inside","break-after","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-template-columns","grid-template-rows","flex-direction","flex-wrap","place-content","place-items","align-content","align-items","justify-content","justify-items","gap","column-gap","row-gap","--tw-space-x-reverse","--tw-space-y-reverse","divide-x-width","divide-y-width","--tw-divide-y-reverse","divide-style","divide-color","place-self","align-self","justify-self","overflow","overflow-x","overflow-y","overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y","scroll-behavior","border-radius","border-start-radius","border-end-radius","border-top-radius","border-right-radius","border-bottom-radius","border-left-radius","border-start-start-radius","border-start-end-radius","border-end-end-radius","border-end-start-radius","border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius","border-width","border-inline-width","border-block-width","border-inline-start-width","border-inline-end-width","border-block-start-width","border-block-end-width","border-top-width","border-right-width","border-bottom-width","border-left-width","border-style","border-inline-style","border-block-style","border-inline-start-style","border-inline-end-style","border-block-start-style","border-block-end-style","border-top-style","border-right-style","border-bottom-style","border-left-style","border-color","border-inline-color","border-block-color","border-inline-start-color","border-inline-end-color","border-block-start-color","border-block-end-color","border-top-color","border-right-color","border-bottom-color","border-left-color","background-color","background-image","--tw-gradient-position","--tw-gradient-stops","--tw-gradient-via-stops","--tw-gradient-from","--tw-gradient-from-position","--tw-gradient-via","--tw-gradient-via-position","--tw-gradient-to","--tw-gradient-to-position","mask-image","--tw-mask-top","--tw-mask-top-from-color","--tw-mask-top-from-position","--tw-mask-top-to-color","--tw-mask-top-to-position","--tw-mask-right","--tw-mask-right-from-color","--tw-mask-right-from-position","--tw-mask-right-to-color","--tw-mask-right-to-position","--tw-mask-bottom","--tw-mask-bottom-from-color","--tw-mask-bottom-from-position","--tw-mask-bottom-to-color","--tw-mask-bottom-to-position","--tw-mask-left","--tw-mask-left-from-color","--tw-mask-left-from-position","--tw-mask-left-to-color","--tw-mask-left-to-position","--tw-mask-linear","--tw-mask-linear-position","--tw-mask-linear-from-color","--tw-mask-linear-from-position","--tw-mask-linear-to-color","--tw-mask-linear-to-position","--tw-mask-radial","--tw-mask-radial-shape","--tw-mask-radial-size","--tw-mask-radial-position","--tw-mask-radial-from-color","--tw-mask-radial-from-position","--tw-mask-radial-to-color","--tw-mask-radial-to-position","--tw-mask-conic","--tw-mask-conic-position","--tw-mask-conic-from-color","--tw-mask-conic-from-position","--tw-mask-conic-to-color","--tw-mask-conic-to-position","box-decoration-break","background-size","background-attachment","background-clip","background-position","background-repeat","background-origin","mask-composite","mask-mode","mask-type","mask-size","mask-clip","mask-position","mask-repeat","mask-origin","fill","stroke","stroke-width","object-fit","object-position","padding","padding-inline","padding-block","padding-inline-start","padding-inline-end","padding-block-start","padding-block-end","padding-top","padding-right","padding-bottom","padding-left","text-align","text-indent","vertical-align","font-family","font-feature-settings","font-size","line-height","font-weight","letter-spacing","text-wrap","overflow-wrap","word-break","text-overflow","hyphens","white-space","tab-size","color","text-transform","font-style","font-stretch","font-variant-numeric","text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","-webkit-font-smoothing","placeholder-color","caret-color","accent-color","color-scheme","opacity","background-blend-mode","mix-blend-mode","box-shadow","--tw-shadow","--tw-shadow-color","--tw-ring-shadow","--tw-ring-color","--tw-inset-shadow","--tw-inset-shadow-color","--tw-inset-ring-shadow","--tw-inset-ring-color","--tw-ring-offset-width","--tw-ring-offset-color","outline","outline-width","outline-offset","outline-color","--tw-blur","--tw-brightness","--tw-contrast","--tw-drop-shadow","--tw-grayscale","--tw-hue-rotate","--tw-invert","--tw-saturate","--tw-sepia","filter","--tw-backdrop-blur","--tw-backdrop-brightness","--tw-backdrop-contrast","--tw-backdrop-grayscale","--tw-backdrop-hue-rotate","--tw-backdrop-invert","--tw-backdrop-opacity","--tw-backdrop-saturate","--tw-backdrop-sepia","backdrop-filter","transition-property","transition-behavior","transition-delay","transition-duration","transition-timing-function","will-change","contain","content","forced-color-adjust"].map((t,e)=>[t,e])),Yt=/(?:^|[{;])\s*(-{0,2}[a-zA-Z][\w-]*)\s*:[^;{}]*(?=[;}])/g,Gt=/^\s*@[\w-]+[^{]*\{/,Xt=/\.((?:\\.|[\w-])+)/;function Jt(t,e){const r=parseFloat(t);return"rem"===e||"em"===e?16*r:r}function Qt(t,e){const r="container"===t;if(!r&&/^\s*not\b/i.test(e))return[0,0];const o=Zt.exec(e);if(o)return[r?4:2,Jt(o[1],o[2])];const a=qt.exec(e);return a?[r?3:1,-Jt(a[1],a[2])]:!r&&It.test(e)?[5,0]:[0,0]}function te(t){let e,r=t;for(;e=Gt.exec(r);)r=r.slice(e[0].length);const o=r.indexOf("{");return-1===o?"":r.slice(0,o)}function ee(t){const e=Xt.exec(te(t));return e?e[1].replace(/\\(.)/g,"$1"):""}function re(t,e){const r=Math.min(t.length,e.length);for(let o=0;o<r;o++){let r=t.charCodeAt(o),a=e.charCodeAt(o);if(r>=48&&r<=57&&a>=48&&a<=57){let n=o+1,s=o+1;for(r=t.charCodeAt(n);r>=48&&r<=57;)r=t.charCodeAt(++n);for(a=e.charCodeAt(s);a>=48&&a<=57;)a=e.charCodeAt(++s);const i=t.slice(o,n),l=e.slice(o,s),c=Number(i)-Number(l);if(c)return c;if(i<l)return-1;if(i>l)return 1;continue}if(r!==a)return r-a}return t.length-e.length}function oe(t,e){const r=e??ee(t),{order:o,count:a}=function(t,e=ee(t)){const r=[];for(const s of t.matchAll(Yt))r.push(s[1].startsWith("--baro-")?"--tw-"+s[1].slice(7):s[1]);const o=function(t,e,r){const o=e[0];if("--tw-space-x-reverse"===o)return"row-gap";if("--tw-space-y-reverse"===o)return"column-gap";if("--tw-divide-x-reverse"===o)return"divide-x-width";if("--tw-divide-y-reverse"===o)return"divide-y-width";if(t.includes(":not(:last-child)")){if(e.includes("border-color"))return"divide-color";if(e.includes("border-style"))return"divide-style"}if(t.includes("::placeholder")&&e.includes("color"))return"placeholder-color";for(const a of["from","via","to"])if(e.includes(`--tw-gradient-${a}`))return`--tw-gradient-${a}`;return"container"===r.slice(r.lastIndexOf(":")+1)?"--tw-container-component":null}(te(t),r,e),a=null===o?void 0:Ht.get(o);if(void 0!==a)return{order:[a],count:r.length+1};const n=new Set;for(const s of r){const t=Ht.get(s);void 0!==t&&n.add(t)}return{order:Array.from(n).sort((t,e)=>t-e),count:r.length}}(t,r),n=function(t){const e=[];let r,o=t;for(;r=_t.exec(o);){const[t,a]=Qt(r[1],r[2]);e.push(t,a),o=o.slice(r[0].length)}return e}(t);return n.push(-1,...o,Ut,-a,r),n}function ae(t,e){const r=Math.min(t.length,e.length);for(let o=0;o<r;o++){const r=t[o],a=e[o];if(r!==a){if("string"==typeof r||"string"==typeof a){const t=re(String(r),String(a));if(t)return t;continue}return r-a}}return t.length-e.length}function ne(t,e){let r=0,o=t.length;for(;r<o;){const a=r+o>>1;ae(t[a],e)<=0?r=a+1:o=a}return r}var se=new Set;function ie(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(ie(a,[...e,t])))}return r}function le(t){return"at-root"===t?-1:"at-rule"===t?0:"style-rule"===t?10:"rule"===t?20:30}var ce={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 pe(t){return ce[t.source||"base"]||100}function ue(t){if(!t||0===t.length)return[];const e=t.slice(0,-1),r=t[t.length-1],o=[...e].sort((t,e)=>le(t.type)-le(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)=>pe(t)-pe(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])=>(ce[t]??999)-(ce[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 de(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||de(e.nodes??[],e,r)}e&&(e.nodes=t.filter(Boolean))}function ge(t,e){const r=v(e),o=r?.failures||se,a=r?.astCache||u;if(o.has(t))return[];if(a.has(t))return a.get(t);const{modifiers:n,utility:s}=rt(t,e);if(!s)return l(`[BAROCSS] Invalid class name format: "${t}"`),o.add(t),[];const i=s.property?[J]:T(e).filter(t=>{const e=s.value?`${s.prefix}-${s.value}`:s.prefix;return t.match(e)});if(0===i.length){return l(`[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 p=[];for(const l of i){if(p=l.handler(c,e,s,l)||[],p===N){p=[];break}if(p.length>0)break}const d=[];for(let u=0;u<n.length;u++){const r=n[u],a=K(e).find(t=>t.match(r.type,e));if(!a)return l(`[BAROCSS] Unknown variant: "${r.type}" in "${t}"`),o.add(t),[];if(a.astHandler&&(p=a.astHandler(p,r,e,n,u)),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:u});if(null==s)return l(`[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 l=d.length-1;l>=0;l--){const t=d[l];"wrap"===t.type?p=t.items.map(t=>"rule"===t.type||"style-rule"===t.type||"at-rule"===t.type||"at-root"===t.type?{...t,nodes:[...t.nodes||[],...p]}:t):"style-rule"===t.type?p=[{type:"style-rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"at-rule"===t.type?p=[{type:"at-rule",name:t.name||"media",params:t.params,source:t.source,nodes:Array.isArray(p)?p:[p]}]:"rule"===t.type&&(p=[{type:"rule",selector:t.selector,source:t.source,nodes:Array.isArray(p)?p:[p]}])}const g=[];return de(p,void 0,g),p=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(Lt,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]=Dt.has(r)?a(o):o;return e};return a(t)}([...g,...p].filter(Boolean),e),a.set(t,p),p}var ye=/[ \t\n\f\r]+/;function he(t,e,r){const o=new Set;return t.split(ye).filter(t=>{if(!t)return!1;if(r?.dedup){if(o.has(t))return!1;o.add(t)}return!0}).map(t=>{const o=ge(t,e),a=(v(e)?.parseResultCache||g).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=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)}(ie(t).map(ue))}(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=ft([t],"",n);c.push(e)});else{const r=ft([e],t,{...n,scope:t});c.push(r)}const p=[];for(const e of i){const t=bt([e]);p.push(t)}return p.push(...Wt(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 me=class{constructor(t){this.processedClasses=new Set,this.batchSize=50,this.debounceMs=16,this.pendingClasses=new Set,this.batchTimer=null,this.ctx=t}processClass(t){if(this.processedClasses.has(t))return null;try{if(!rt(t,this.ctx).utility)return null;const e=ge(t,this.ctx);if(0===e.length)return l("[IncrementalParser] ast is empty",t),null;const r=he(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 l("[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:(v(this.ctx)?.astCache||u).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)}},fe={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"},be={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:fe,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":fe.spin,"--animate-ping":fe.ping,"--animate-pulse":fe.pulse,"--animate-bounce":fe.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"}},ve=/^[A-Za-z_][A-Za-z0-9_-]*$/,xe=/^(--[A-Za-z0-9_-]+|-?[A-Za-z][A-Za-z0-9-]*)$/;function ke(t,e){if("string"!=typeof t||!ve.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(!xe.test(o)||!t||!it(t)||nt(t))return null;r.push([o,t])}return r.length?r:null}var we="\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 $e(t,e){const r={},o=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]=$e("object"==typeof n&&null!==n?n:{},s):r[o]=void 0!==s?s:n}return r}var Ce=new WeakMap;function Pe(t,...e){const r=(...e)=>Pe(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=Ce.get(t);a||(a=new Set,Ce.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 ze(t){const e=function(t){return{...xt(t.colors),...kt(t.boxShadow),...$t(t.fontSize),...Ct(t.fontWeight),...Pt(t.fontFamily),...zt(t.letterSpacing),"--spacing":t.spacing[1],...St(t.spacing),...Ot(t.container),...At(t.borderRadius),...Object.fromEntries(Object.entries(t.borderWidth??{}).filter(([t])=>"DEFAULT"!==t).map(([t,e])=>[`--border-width-${vt(t)}`,String(e)])),...jt(t.zIndex),...Rt(t.opacity),...Et({...t.animations,...t.animation}),...Bt(t.transitionTimingFunction),...Tt(t.transitionDuration),...Vt(t.transitionDelay),...Mt(t.blur),...Object.fromEntries(Object.entries(t.textShadow??{}).map(([t,e])=>[`--text-shadow-${vt(t)}`,e])),...Object.fromEntries(Object.entries(t.dropShadow??{}).map(([t,e])=>[`--drop-shadow-${vt(t)}`,e])),...Object.fromEntries(Object.entries(t.aspect??{}).map(([t,e])=>[`--aspect-${vt(t)}`,e]))}}(t);return Kt(e)}function Se(t){var r;void 0!==t.debug&&(r=!!t.debug,s=r);const o={presets:[{theme:be},...t.presets||[]],...t},a=function(t){let e={};if(t.presets)for(const r of t.presets)r.theme&&(e=$e(e,r.theme));if(t.theme){const{extend:r,...o}=t.theme;e=$e(e,o),r&&(e=$e(e,r))}return e}(o),n={hasPreset:(t,e)=>function(t,e,r){return t[e]?.includes?.(r)}(a,t,e),theme:(...t)=>Pe(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:()=>ze(a),extendTheme:(t,e)=>{if("function"==typeof e){const r=e(n.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}}x(n)},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?we:""}(t)};return function(t,e,r){f.set(t,{utilities:[...e],modifiers:[...r],astCache:new p,parseResultCache:new d,utilityCache:new y,failures:new Set,cacheGeneration:b})}(n,T(),K()),function(t,r){if(!r||"object"!=typeof r||Array.isArray(r))return;const o=T(t),a=[...o],n=o.length;for(const[s,i]of Object.entries(r)){const r=ke(s,i);if(!r){l(`[BAROCSS] Ignoring invalid custom utility "${s}"`);continue}const o=a.filter(t=>t.match(s));B({name:s,category:"custom",match:t=>t===s,handler:(t,a,n)=>{let s=[];for(const e of o)if(s=e.handler(t,a,n,e)||[],s.length>0)break;return[...s,...r.map(([t,r])=>e(t,r))]}},t)}o.length>n&&o.unshift(...o.splice(n))}(n,t.utilities),n}Z("accent-inherit",[["accent-color","inherit"]],{category:"interactivity"}),Z("accent-current",[["accent-color","currentColor"]],{category:"interactivity"}),Z("accent-transparent",[["accent-color","transparent"]],{category:"interactivity"}),Y({name:"accent",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?A("accent-color",t,a):[e("accent-color",t)],handleCustomProperty:t=>[e("accent-color",`var(${t})`)],description:"accent-color utility (static, arbitrary, custom property supported)",category:"interactivity"}),Z("appearance-none",[["appearance","none"]],{category:"interactivity"}),Z("appearance-auto",[["appearance","auto"]],{category:"interactivity"}),Z("caret-inherit",[["caret-color","inherit"]],{category:"interactivity"}),Z("caret-current",[["caret-color","currentColor"]],{category:"interactivity"}),Z("caret-transparent",[["caret-color","transparent"]],{category:"interactivity"}),Y({name:"caret",themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?A("caret-color",t,a):[e("caret-color",t)],handleCustomProperty:t=>[e("caret-color",`var(${t})`)],description:"caret-color utility (static, theme, arbitrary, custom property supported)",category:"interactivity"}),Z("scheme-normal",[["color-scheme","normal"]],{category:"interactivity"}),Z("scheme-dark",[["color-scheme","dark"]],{category:"interactivity"}),Z("scheme-light",[["color-scheme","light"]],{category:"interactivity"}),Z("scheme-light-dark",[["color-scheme","light dark"]],{category:"interactivity"}),Z("scheme-only-dark",[["color-scheme","only dark"]],{category:"interactivity"}),Z("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=>{Z(`cursor-${t}`,[["cursor",t]],{category:"interactivity"})}),Y({name:"cursor",prop:"cursor",supportsArbitrary:!0,supportsCustomProperty:!0,description:"cursor utility (static, arbitrary, custom property supported)",category:"interactivity"}),Z("field-sizing-fixed",[["field-sizing","fixed"]],{category:"interactivity"}),Z("field-sizing-content",[["field-sizing","content"]],{category:"interactivity"}),Z("pointer-events-auto",[["pointer-events","auto"]],{category:"interactivity"}),Z("pointer-events-none",[["pointer-events","none"]],{category:"interactivity"}),Z("resize",[["resize","both"]],{category:"interactivity"}),Z("resize-x",[["resize","horizontal"]],{category:"interactivity"}),Z("resize-y",[["resize","vertical"]],{category:"interactivity"}),Z("resize-none",[["resize","none"]],{category:"interactivity"}),Z("scroll-auto",[["scroll-behavior","auto"]],{category:"interactivity"}),Z("scroll-smooth",[["scroll-behavior","smooth"]],{category:"interactivity"}),Z("snap-start",[["scroll-snap-align","start"]],{category:"interactivity"}),Z("snap-end",[["scroll-snap-align","end"]],{category:"interactivity"}),Z("snap-center",[["scroll-snap-align","center"]],{category:"interactivity"}),Z("snap-align-none",[["scroll-snap-align","none"]],{category:"interactivity"}),Z("snap-normal",[["scroll-snap-stop","normal"]],{category:"interactivity"}),Z("snap-always",[["scroll-snap-stop","always"]],{category:"interactivity"}),Z("snap-none",[["scroll-snap-type","none"]],{category:"interactivity"}),Z("snap-x",[["scroll-snap-type","x var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),Z("snap-y",[["scroll-snap-type","y var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),Z("snap-both",[["scroll-snap-type","both var(--baro-scroll-snap-strictness)"]],{category:"interactivity"}),Z("snap-mandatory",[["--baro-scroll-snap-strictness","mandatory"]],{category:"interactivity"}),Z("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(([t,r])=>{Z(`scroll-${t}-px`,[[r,"1px"]],{category:"interactivity"}),Z(`-scroll-${t}-px`,[[r,"-1px"]],{category:"interactivity"}),Y({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,o,a,n)=>w(t)||a.negative?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:t=>[e(r,`var(${t})`)],description:`${t} 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(([t,r])=>{Y({name:`scroll-${t}`,spacingKeys:!0,prop:r,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":/^(\d|\.\d)/.test(t)?t:null,handle:(t,o,a,n)=>a.negative?[]:w(t)?[e(r,`calc(var(--spacing) * ${t})`)]:[e(r,t)],handleCustomProperty:(t,o,a)=>a.negative?[]:[e(r,`var(${t})`)],description:`scroll-${t} utility (static, arbitrary, custom property supported)`,category:"interactivity"})}),Z("touch-auto",[["touch-action","auto"]],{category:"interactivity"}),Z("touch-none",[["touch-action","none"]],{category:"interactivity"}),Z("touch-pan-x",[["touch-action","pan-x"]],{category:"interactivity"}),Z("touch-pan-left",[["touch-action","pan-left"]],{category:"interactivity"}),Z("touch-pan-right",[["touch-action","pan-right"]],{category:"interactivity"}),Z("touch-pan-y",[["touch-action","pan-y"]],{category:"interactivity"}),Z("touch-pan-up",[["touch-action","pan-up"]],{category:"interactivity"}),Z("touch-pan-down",[["touch-action","pan-down"]],{category:"interactivity"}),Z("touch-pinch-zoom",[["touch-action","pinch-zoom"]],{category:"interactivity"}),Z("touch-manipulation",[["touch-action","manipulation"]],{category:"interactivity"}),Z("select-none",[["-webkit-user-select","none"],["user-select","none"]],{category:"interactivity"}),Z("select-text",[["-webkit-user-select","text"],["user-select","text"]],{category:"interactivity"}),Z("select-all",[["-webkit-user-select","all"],["user-select","all"]],{category:"interactivity"}),Z("select-auto",[["-webkit-user-select","auto"],["user-select","auto"]],{category:"interactivity"}),Z("will-change-auto",[["will-change","auto"]],{category:"interactivity"}),Z("will-change-scroll",[["will-change","scroll-position"]],{category:"interactivity"}),Z("will-change-contents",[["will-change","contents"]],{category:"interactivity"}),Z("will-change-transform",[["will-change","transform"]],{category:"interactivity"}),Y({name:"will-change",prop:"will-change",supportsArbitrary:!0,supportsCustomProperty:!0,description:"will-change utility (static, arbitrary, custom property supported)",category:"interactivity"}),Z("scrollbar-auto",[["scrollbar-width","auto"]],{category:"interactivity"}),Z("scrollbar-thin",[["scrollbar-width","thin"]],{category:"interactivity"}),Z("scrollbar-none",[["scrollbar-width","none"]],{category:"interactivity"}),Z("scrollbar-gutter-auto",[["scrollbar-gutter","auto"]],{category:"interactivity"}),Z("scrollbar-gutter-stable",[["scrollbar-gutter","stable"]],{category:"interactivity"}),Z("scrollbar-gutter-both",[["scrollbar-gutter","stable both-edges"]],{category:"interactivity"});var Ae=t=>t.replace(/^color:/,"");for(const Xo of["thumb","track"]){const t=`--baro-scrollbar-${Xo}`,o=t=>[r([n("--baro-scrollbar-thumb","#0000","<color>"),n("--baro-scrollbar-track","#0000","<color>")]),...t,e("scrollbar-color","var(--baro-scrollbar-thumb) var(--baro-scrollbar-track)")],a=(r,o)=>o?[e(t,`color-mix(in oklab, ${r} ${o.replace(/^\[(.*)\]$/,"$1").replace(/%$/,"")}%, transparent)`)]:[e(t,r)];Y({name:`scrollbar-${Xo}`,themeKeys:["colors"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(r,n,s,i)=>i?.realThemeValue?o(a(`var(--color-${i.realThemeValue})`,i.opacity)):s.arbitrary?o(a(Ae(r),i?.opacity)):"inherit"===r||"transparent"===r?o([e(t,r)]):"current"===r?o(a("currentcolor",i?.opacity)):null,handleCustomProperty:(t,e,r,n)=>o(a(`var(${Ae(t)})`,n?.opacity)),description:`scrollbar-color ${Xo} utility (theme, arbitrary, custom property, opacity)`,category:"interactivity"})}var je="var(--default-transition-timing-function)",Re="var(--default-transition-duration)";Z("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",je],["transition-duration",Re]],{category:"transitions"}),Z("transition-all",[["transition-property","all"],["transition-timing-function",je],["transition-duration",Re]],{category:"transitions"}),Z("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",je],["transition-duration",Re]],{category:"transitions"}),Z("transition-opacity",[["transition-property","opacity"],["transition-timing-function",je],["transition-duration",Re]],{category:"transitions"}),Z("transition-shadow",[["transition-property","box-shadow"],["transition-timing-function",je],["transition-duration",Re]],{category:"transitions"}),Z("transition-transform",[["transition-property","transform, translate, scale, rotate"],["transition-timing-function",je],["transition-duration",Re]],{category:"transitions"}),Z("transition-normal",[["transition-behavior","normal"]],{category:"transitions"}),Z("transition-discrete",[["transition-behavior","allow-discrete"]],{category:"transitions"}),Z("transition-none",[["transition-property","none"]],{category:"transitions"}),Y({name:"transition",prop:"transition-property",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>[e("transition-property",t),e("transition-timing-function",je),e("transition-duration",Re)],handleCustomProperty:t=>[e("transition-property",`var(${t})`),e("transition-timing-function",je),e("transition-duration",Re)],description:"transition-property utility (static, arbitrary value, custom property supported)",category:"transitions"}),Z("duration-initial",[["transition-duration","initial"]],{category:"transitions"}),Y({name:"duration",prop:"transition-duration",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>w(t)?[e("transition-duration",`${t}ms`)]:[e("transition-duration",t)],handleCustomProperty:t=>[e("transition-duration",`var(${t})`)],description:"transition-duration utility (static, number, arbitrary, custom property supported)",category:"transitions"}),Z("ease-linear",[["transition-timing-function","linear"]],{category:"transitions"}),Z("ease-in",[["transition-timing-function","var(--ease-in)"]],{category:"transitions"}),Z("ease-out",[["transition-timing-function","var(--ease-out)"]],{category:"transitions"}),Z("ease-in-out",[["transition-timing-function","var(--ease-in-out)"]],{category:"transitions"}),Z("ease-initial",[["transition-timing-function","initial"]],{category:"transitions"}),Y({name:"ease",prop:"transition-timing-function",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>H(e,"transitionTimingFunction",t,"ease")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>[e("transition-timing-function",t)],handleCustomProperty:t=>[e("transition-timing-function",`var(${t})`)],description:"transition-timing-function utility (static, arbitrary, custom property supported)",category:"transitions"}),Y({name:"delay",prop:"transition-delay",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>w(t)?[e("transition-delay",`${t}ms`)]:[e("transition-delay",t)],handleCustomProperty:t=>[e("transition-delay",`var(${t})`)],description:"transition-delay utility (number, arbitrary, custom property supported)",category:"transitions"}),Z("animate-spin",[["animation","var(--animate-spin)"]],{category:"transitions"}),Z("animate-ping",[["animation","var(--animate-ping)"]],{category:"transitions"}),Z("animate-pulse",[["animation","var(--animate-pulse)"]],{category:"transitions"}),Z("animate-bounce",[["animation","var(--animate-bounce)"]],{category:"transitions"}),Z("animate-none",[["animation","none"]],{category:"transitions"}),Y({name:"animate",themeKeys:["animations","animation"],supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o,a)=>a?.realThemeValue?[e("animation",`var(--animate-${a.realThemeValue})`)]:o.customProperty?[e("animation",`var(${t})`)]:[e("animation",t)],handleCustomProperty:t=>[e("animation",`var(${t})`)],description:"animation utility (static, arbitrary, custom property supported)",category:"transitions"}),Z("border-collapse",[["border-collapse","collapse"]],{category:"table"}),Z("border-separate",[["border-collapse","separate"]],{category:"table"}),Z("table-auto",[["table-layout","auto"]],{category:"table"}),Z("table-fixed",[["table-layout","fixed"]],{category:"table"});var Ee=()=>r([n("--baro-border-spacing-x","0","<length>"),n("--baro-border-spacing-y","0","<length>")]),Ne="var(--baro-border-spacing-x) var(--baro-border-spacing-y)",We=(t,r)=>[Ee(),...t.map(t=>e(`--baro-border-spacing-${t}`,r)),e("border-spacing",Ne)];function Be(t){const e=t?j(t):null;return e&&{alpha:e.amount,isVar:e.isVar}}function Te(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])=>{Z(`${t}-px`,[Ee,...e.map(t=>[`--baro-border-spacing-${t}`,"1px"]),["border-spacing",Ne]],{category:"table"}),Y({name:t,prop:"border-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>We(e,w(t)?`calc(var(--spacing) * ${t})`:t),handleCustomProperty:t=>We(e,`var(${t})`),description:`${t} utility (number, px, arbitrary, custom property supported)`,category:"table"})}),Z("caption-top",[["caption-side","top"]],{category:"table"}),Z("caption-bottom",[["caption-side","bottom"]],{category:"table"});var Ve=/^-?(\d*\.)?\d+([a-z]+|%)?$/i;function Me(t,e,r){return Te(t,",").map(t=>{const o=Te(t," "),a=o.findIndex(t=>"inset"!==t&&!Ve.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 Oe(t,r,a,n,s=t=>t.join(", ")){const i=Be(n);if(n&&!i)return null;if(!i)return[e(r,s(Me(a,t)))];const l=e(`--baro-${t}-alpha`,i.alpha);return i.isVar?[l,e(r,s(Me(a,t))),o("supports","(color: lab(from red l a b))",[e(r,s(Me(a,t,i.alpha)))])]:[l,e(r,s(Me(a,t,i.alpha)))]}function Fe(t,r,a,n=r){const s=`--baro-${t}-color`;if("inherit"===r)return[e(s,"inherit")];const i=Be(a);if(a&&!i)return null;const l=i?`color-mix(in oklab, ${n} ${i.alpha}, transparent)`:n;return[e(s,i?`color-mix(in srgb, ${r} ${i.alpha}, transparent)`:r),o("supports","(color: color-mix(in lab, red, red))",[e(s,`color-mix(in oklab, ${l} var(--baro-${t}-alpha), transparent)`)])]}Z("filter-none",[["filter","none"]],{category:"effects"}),Y({name:"filter",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,description:"filter utility (static, arbitrary, custom property supported)",category:"effects"});var Ke=()=>e("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(([t,r])=>{Z(t,[e("--baro-blur",`blur(${r})`),Ke()],{category:"effects"})}),Z("blur",[e("--baro-blur","blur(8px)"),Ke()],{category:"effects"}),Z("blur-none",[e("--baro-blur",""),Ke()],{category:"effects"}),Y({name:"blur",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>H(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-blur",`blur(var(${t}))`),Ke()]:[e("--baro-blur",`blur(${t})`),Ke()],handleCustomProperty:t=>[e("--baro-blur",`blur(var(${t}))`),Ke()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),Y({name:"brightness",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-brightness",`brightness(${t})`),Ke()]:w(t)?[e("--baro-brightness",`brightness(${t}%)`),Ke()]:o.customProperty?[e("--baro-brightness",`brightness(var(${t}))`),Ke()]:[e("--baro-brightness",`brightness(${t})`),Ke()],handleCustomProperty:t=>[e("--baro-brightness",`brightness(var(${t}))`),Ke()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Y({name:"contrast",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-contrast",`contrast(${t})`),Ke()]:w(t)?[e("--baro-contrast",`contrast(${t}%)`),Ke()]:o.customProperty?[e("--baro-contrast",`contrast(var(${t}))`),Ke()]:[e("--baro-contrast",`contrast(${t})`),Ke()],handleCustomProperty:t=>[e("--baro-contrast",`contrast(var(${t}))`),Ke()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var Le=()=>r([n("--baro-drop-shadow"),n("--baro-drop-shadow-color"),n("--baro-drop-shadow-alpha","100%","<percentage>"),n("--baro-drop-shadow-size")]),De=t=>t.map(t=>`drop-shadow(${t})`).join(" "),_e=(t,e)=>{const r=t.theme("dropShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null};function Ie(t,r,o,a=!1){const n=Oe("drop-shadow","--baro-drop-shadow-size",t,r,De);if(!n)return null;const s=void 0===o||r&&!a?"var(--baro-drop-shadow-size)":o;return[Le(),...n,e("--baro-drop-shadow",s),Ke()]}Z("drop-shadow-none",[e("--baro-drop-shadow"," "),Ke()]),B({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 Ie("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 Ze=(t,r,o)=>{const a=Fe("drop-shadow",t,r,o);return a&&[Le(),...a,e("--baro-drop-shadow","var(--baro-drop-shadow-size)")]};Y({name:"drop-shadow",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e})=>_e(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 Ze(n,a);const s=o?.realThemeValue??t,i=r.arbitrary?null:_e(e,s);return i?Ie(i,a,`drop-shadow(var(--drop-shadow-${s}))`):o?.realThemeValue?Ze(t,a,`var(--color-${o.realThemeValue})`):r.arbitrary?z(t)?Ze(t,a):Ie(t,a):null},handleCustomProperty:t=>t.startsWith("color:")?Ze(`var(${t.slice(6)})`,void 0)??[]:[Le(),e("--baro-drop-shadow-size",`drop-shadow(var(${t}))`),e("--baro-drop-shadow","var(--baro-drop-shadow-size)"),Ke()],description:"drop-shadow filter utility (static, arbitrary, custom property supported)",category:"effects"}),Z("grayscale",[e("--baro-grayscale","grayscale(100%)"),Ke()],{category:"effects"}),Y({name:"grayscale",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>w(t)?[e("--baro-grayscale",`grayscale(${t}%)`),Ke()]:[e("--baro-grayscale",`grayscale(${t})`),Ke()],handleCustomProperty:t=>[e("--baro-grayscale",`grayscale(var(${t}))`),Ke()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Y({name:"hue-rotate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&w(o.value)?[e("--baro-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),Ke()]:w(t)?[e("--baro-hue-rotate",`hue-rotate(${t}deg)`),Ke()]:o.customProperty?[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),Ke()]:[e("--baro-hue-rotate",`hue-rotate(${t})`),Ke()],handleCustomProperty:t=>[e("--baro-hue-rotate",`hue-rotate(var(${t}))`),Ke()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),Z("invert",[e("--baro-invert","invert(100%)"),Ke()],{category:"effects"}),Y({name:"invert",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>w(t)?[e("--baro-invert",`invert(${t}%)`),Ke()]:[e("--baro-invert",`invert(${t})`),Ke()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Y({name:"saturate",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>w(t)?[e("--baro-saturate",`saturate(${t}%)`),Ke()]:[e("--baro-saturate",`saturate(${t})`),Ke()],handleCustomProperty:t=>[e("--baro-saturate",`saturate(var(${t}))`),Ke()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Z("sepia",[e("--baro-sepia","sepia(100%)"),Ke()],{category:"effects"}),Y({name:"sepia",prop:"filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>w(t)?[e("--baro-sepia",`sepia(${t}%)`),Ke()]:[e("--baro-sepia",`sepia(${t})`),Ke()],handleCustomProperty:t=>[e("--baro-sepia",`sepia(var(${t}))`),Ke()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var qe=()=>[e("-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, )"),e("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, )")];Z("backdrop-filter",[["backdrop-filter","var(--baro-backdrop-filter)"]],{category:"effects"}),Z("backdrop-filter-none",[["backdrop-filter","none"]],{category:"effects"}),Y({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(([t,r])=>{Z(t,[e("--baro-backdrop-blur",`blur(${r})`),...qe()],{category:"effects"})}),Z("backdrop-blur",[e("--baro-backdrop-blur","blur(8px)"),...qe()],{category:"effects"}),Z("backdrop-blur-none",[e("--baro-backdrop-blur",""),...qe()],{category:"effects"}),Y({name:"backdrop-blur",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>H(e,"blur",t,"blur")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>o.customProperty?[e("--baro-backdrop-blur",`blur(var(${t}))`),...qe()]:[e("--baro-backdrop-blur",`blur(${t})`),...qe()],handleCustomProperty:t=>[e("--baro-backdrop-blur",`blur(var(${t}))`),...qe()],description:"blur filter utility (static, arbitrary, custom property supported)",category:"effects"}),Y({name:"backdrop-brightness",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-brightness",`brightness(${t})`),...qe()]:w(t)?[e("--baro-backdrop-brightness",`brightness(${t}%)`),...qe()]:o.customProperty?[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...qe()]:[e("--baro-backdrop-brightness",`brightness(${t})`),...qe()],handleCustomProperty:t=>[e("--baro-backdrop-brightness",`brightness(var(${t}))`),...qe()],description:"brightness filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Y({name:"backdrop-contrast",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handle:(t,r,o)=>o.arbitrary?[e("--baro-backdrop-contrast",`contrast(${t})`),...qe()]:w(t)?[e("--baro-backdrop-contrast",`contrast(${t}%)`),...qe()]:o.customProperty?[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...qe()]:[e("--baro-backdrop-contrast",`contrast(${t})`),...qe()],handleCustomProperty:t=>[e("--baro-backdrop-contrast",`contrast(var(${t}))`),...qe()],description:"contrast filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Z("backdrop-grayscale",[["--baro-backdrop-grayscale","grayscale(100%)"],...qe()],{category:"effects"}),Y({name:"backdrop-grayscale",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>w(t)?[e("--baro-backdrop-grayscale",`grayscale(${t}%)`),...qe()]:[e("--baro-backdrop-grayscale",`grayscale(${t})`),...qe()],handleCustomProperty:t=>[e("--baro-backdrop-grayscale",`grayscale(var(${t}))`),...qe()],description:"grayscale filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Y({name:"backdrop-hue-rotate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,o)=>o.negative&&w(o.value)?[e("--baro-backdrop-hue-rotate",`hue-rotate(calc(${o.value}deg * -1))`),...qe()]:w(t)?[e("--baro-backdrop-hue-rotate",`hue-rotate(${t}deg)`),...qe()]:[e("--baro-backdrop-hue-rotate",`hue-rotate(${t})`),...qe()],handleCustomProperty:t=>[e("--baro-backdrop-hue-rotate",`hue-rotate(var(${t}))`),...qe()],description:"hue-rotate filter utility (static, negative, number, arbitrary, custom property supported)",category:"effects"}),Z("backdrop-invert",[["--baro-backdrop-invert","invert(100%)"],...qe()],{category:"effects"}),Y({name:"backdrop-invert",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>w(t)?[e("--baro-backdrop-invert",`invert(${t}%)`),...qe()]:[e("--baro-backdrop-invert",`invert(${t})`),...qe()],description:"invert filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Y({name:"backdrop-saturate",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>w(t)?[e("--baro-backdrop-saturate",`saturate(${t}%)`),...qe()]:[e("--baro-backdrop-saturate",`saturate(${t})`),...qe()],handleCustomProperty:t=>[e("--baro-backdrop-saturate",`saturate(var(${t}))`),...qe()],description:"saturate filter utility (static, number, arbitrary, custom property supported)",category:"effects"}),Z("backdrop-sepia",[["--baro-backdrop-sepia","sepia(100%)"],...qe()],{category:"effects"}),Y({name:"backdrop-sepia",prop:"backdrop-filter",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>w(t)?[e("--baro-backdrop-sepia",`sepia(${t}%)`),...qe()]:[e("--baro-backdrop-sepia",`sepia(${t})`),...qe()],handleCustomProperty:t=>[e("--baro-backdrop-sepia",`sepia(var(${t}))`),...qe()],description:"sepia filter utility (static, number, arbitrary, custom property supported)",category:"effects"});var Ue="var(--baro-inset-shadow), var(--baro-inset-ring-shadow), var(--baro-ring-offset-shadow), var(--baro-ring-shadow), var(--baro-shadow)",He=()=>r([n("--baro-shadow","0 0 #0000"),n("--baro-inset-shadow","0 0 #0000"),n("--baro-inset-ring-shadow","0 0 #0000"),n("--baro-ring-offset-shadow","0 0 #0000"),n("--baro-ring-shadow","0 0 #0000"),n("--baro-ring-offset-width","0px","<length>"),n("--baro-ring-offset-color","#fff")]),Ye=t=>r([n(`--baro-${t}-color`),n(`--baro-${t}-alpha`,"100%","<percentage>")]),Ge={"":"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)"},Xe={"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)"},Je={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)"},Qe=t=>t.split(/,(?![^(]*\))/).map(t=>`inset ${t.trim()}`).join(", "),tr=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function er(t,r,o){const a=Oe(t,`--baro-${t}`,r,o);return a?[He(),Ye(t),...a,e("box-shadow",Ue)]:null}function rr(t,e,r,o){if("shadow"===t){if(tr(Ge,e))return er(t,Ge[e],r)}else{if(tr(Xe,e))return er(t,Xe[e],r);if(!r&&tr(Je,e))return er(t,Je[e],void 0)}const a=o&&"none"!==e?U(o,"shadow"===t?"boxShadow":"insetShadow",e):null;return a?er(t,a,r):null}Z("shadow-none",[He,["--baro-shadow","0 0 #0000"],["box-shadow",Ue]],{category:"effects"}),Z("inset-shadow-none",[He,["--baro-inset-shadow","inset 0 0 #0000"],["box-shadow",Ue]],{category:"effects"}),B({name:"shadow",match:t=>/^shadow(\/.+)?$/.test(t),handler:(t,e,r)=>{const o=t?`${r.prefix}-${t}`:r.prefix,a=o.indexOf("/");return rr("shadow","",a<0?void 0:o.slice(a+1))??[]},category:"effects"});var or={inherit:"inherit",current:"currentcolor",transparent:"transparent"};function ar(t,e,r,o,a){const n=o.arbitrary?void 0:or[a??e];return n?Fe(t,n,r):a?Fe(t,e,r,`var(--color-${a})`):e.startsWith("color:")?Fe(t,`var(${e.slice(6)})`,r):o.arbitrary&&z(e)?Fe(t,e,r):void 0}function nr(t,r){if(!r)return[];const o=Be(r);return o?[e(`--baro-${t}-alpha`,o.alpha)]:null}for(const Xo of["shadow","inset-shadow"])Y({name:Xo,supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e,extra:r})=>rr(Xo,t,r?.opacity,e)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity,n=r.arbitrary?null:rr(Xo,o?.realThemeValue??t,a,e);if(n)return n;const s=ar(Xo,t,a,r,o?.realThemeValue);return void 0!==s?s:r.arbitrary?er(Xo,"inset-shadow"===Xo?Qe(t):t,a):null},ownsOpacity:!0,handleCustomProperty:(t,r,o,a)=>{if(t.startsWith("color:"))return Fe(Xo,`var(${t.slice(6)})`,a?.opacity)??[];const n=nr(Xo,a?.opacity);return n?[He(),...n,e(`--baro-${Xo}`,"inset-shadow"===Xo?`inset var(${t})`:`var(${t})`),e("box-shadow",Ue)]:[]}});var sr=()=>r([n("--baro-text-shadow-color"),n("--baro-text-shadow-alpha","100%","<percentage>")]),ir=(t,e)=>{const r=t.theme("textShadow",e);return"string"==typeof r&&/^[\w.-]+$/.test(e)?r:null},lr=(t,e)=>{const r=Oe("text-shadow","text-shadow",t,e);return r?[sr(),...r]:null};function cr(t){return`var(--baro-ring-inset,) 0 0 0 calc(${t} + var(--baro-ring-offset-width)) var(--baro-ring-color, currentcolor)`}Z("text-shadow-none",[sr,["text-shadow","none"]],{category:"effects"}),Y({name:"text-shadow",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors"],handleBareValue:({value:t,ctx:e})=>ir(e,t)?t:null,handle:(t,e,r,o)=>{const a=o?.opacity;if(!r.arbitrary){const r=ir(e,o?.realThemeValue??t);if(r)return lr(r,a)}const n=ar("text-shadow",t,a,r,o?.realThemeValue);return void 0!==n?n&&[sr(),...n]:r.arbitrary?lr(t,a):null},ownsOpacity:!0,handleCustomProperty:(t,r,o,a)=>{if(t.startsWith("color:")){const e=Fe("text-shadow",`var(${t.slice(6)})`,a?.opacity);return e?[sr(),...e]:[]}const n=nr("text-shadow",a?.opacity);return n?[sr(),...n,e("text-shadow",`var(${t})`)]:[]},category:"effects"}),[["ring","1px"],["ring-0","0px"],["ring-1","1px"],["ring-2","2px"],["ring-4","4px"],["ring-8","8px"]].forEach(([t,e])=>{Z(t,[He,["--baro-ring-shadow",cr(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])=>{Z(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 pr=t=>[e("--baro-ring-offset-width",t),e("--baro-ring-offset-shadow","var(--baro-ring-inset,) 0 0 0 var(--baro-ring-offset-width) var(--baro-ring-offset-color)")];Y({name:"ring-offset",themeKeys:["ringOffsetWidth","colors"],supportsArbitrary:!0,supportsOpacity:!0,handleBareValue:({value:t})=>/^\d+$/.test(t)?`${t}px`:null,handle:(t,r,o,a)=>"ringOffsetWidth"===a?.themeNamespace?pr(t):a?.realThemeValue?A("--baro-ring-offset-color",t,a):o.arbitrary?z(t)?[e("--baro-ring-offset-color",t)]:$(t)?pr(t):null:/^\d+px$/.test(t)?pr(t):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])=>{Z(t,[He,["--baro-inset-ring-shadow",`inset 0 0 0 ${e} var(--baro-inset-ring-color, currentcolor)`],["box-shadow",Ue]],{category:"effects"})}),Z("ring-inset",[["--baro-ring-inset","inset"]],{category:"effects"}),Y({name:"ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","ringWidth"],handle:(t,r,o,a)=>{const n=t;if("ringWidth"===a?.themeNamespace)return[He(),e("--baro-ring-shadow",cr(t)),e("box-shadow",Ue)];if(a?.realThemeValue)return A("--baro-ring-color",n,a);if(n.startsWith("color:"))return[e("--baro-ring-color",`var(${n.slice(6)})`)];if(o.arbitrary){if(!z(n)&&/^(-?(\d+\.?\d*|\.\d+)(px|rem|em|%|vw|vh|vmin|vmax|ch|ex|pt|cm|mm|in|pc)|0|(length:.+)|calc\(.+\))$/i.test(n)){const t=n.startsWith("length:")?n.slice(7):n;return[He(),e("--baro-ring-shadow",cr(t)),e("box-shadow",Ue)]}return[z(n)||/^var\(--[^)]+\)$/.test(n)?e("--baro-ring-color",n):e("box-shadow",n)]}return"inherit"===n||"current"===n||"transparent"===n?[e("--baro-ring-color","current"===n?"currentColor":n)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-ring-color",`var(${t})`)]}}),Y({name:"inset-ring",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,themeKeys:["colors","shadows"],handle:(t,r,o,a)=>{const n=t;return a?.realThemeValue?A("--baro-inset-ring-color",n,a):n.startsWith("color:")?[e("--baro-inset-ring-color",`var(${n.slice(6)})`)]:o.arbitrary?[z(n)||/^var\(--[^)]+\)$/.test(n)?e("--baro-inset-ring-color",n):e("box-shadow",`inset ${n}`)]:"inherit"===n||"current"===n||"transparent"===n?[e("--baro-inset-ring-color","current"===n?"currentColor":n)]:null},handleCustomProperty:t=>{if(t.startsWith("color:")){return[e("--baro-inset-ring-color",`var(${t.replace("color:","")})`)]}return[e("--baro-inset-ring-color",`var(${t})`)]}}),Y({name:"opacity",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{if(w(t)){let r=Number(t);return r>1&&(r/=100),[e("opacity",String(r))]}return o.arbitrary?[e("opacity",t)]:null},handleCustomProperty:t=>[e("opacity",`var(${t})`)],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])=>{Z(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])=>{Z(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])=>{Z(t,[["mask-clip",e]],{category:"effects"})}),[["mask-add","add"],["mask-subtract","subtract"],["mask-intersect","intersect"],["mask-exclude","exclude"]].forEach(([t,e])=>{Z(t,[["mask-composite",e]],{category:"effects"})}),[["mask-alpha","alpha"],["mask-luminance","luminance"],["mask-match","match-source"]].forEach(([t,e])=>{Z(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])=>{Z(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])=>{Z(t,[["mask-position",e]],{category:"effects"})}),Y({name:"mask-position",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("mask-position",t)]:o.customProperty?[e("mask-position",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-position",`var(${t})`)],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])=>{Z(t,[["mask-repeat",e]],{category:"effects"})}),[["mask-auto","auto"],["mask-cover","cover"],["mask-contain","contain"]].forEach(([t,e])=>{Z(t,[["mask-size",e]],{category:"effects"})}),[["mask-type-alpha","alpha"],["mask-type-luminance","luminance"]].forEach(([t,e])=>{Z(t,[["mask-type",e]],{category:"effects"})}),Y({name:"mask-size",prop:"mask-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"mask-size utility (static, arbitrary, custom property supported)",category:"effects"});Y({name:"mask-linear-from",handleBareValue:({value:t})=>/^(?:100|[1-9]?\d)%$/.test(t)?t:null,handle:t=>[e("mask-image","var(--baro-mask-linear), var(--baro-mask-radial), var(--baro-mask-conic)"),e("mask-composite","intersect"),e("--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)"),e("--baro-mask-linear","linear-gradient(var(--baro-mask-linear-stops))"),e("--baro-mask-linear-from-position",t),r([n("--baro-mask-linear","linear-gradient(#fff, #fff)"),n("--baro-mask-radial","linear-gradient(#fff, #fff)"),n("--baro-mask-conic","linear-gradient(#fff, #fff)"),n("--baro-mask-linear-position","0deg"),n("--baro-mask-linear-from-position","0%"),n("--baro-mask-linear-to-position","100%"),n("--baro-mask-linear-from-color","black"),n("--baro-mask-linear-to-color","transparent")])],category:"effects"}),Z("mask-none",[["mask-image","none"]],{category:"effects"}),Y({name:"mask",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>"none"===t?[e("mask-image","none")]:o.arbitrary?[e("mask-image",t)]:o.customProperty?[e("mask-image",`var(${t})`)]:null,handleCustomProperty:t=>[e("mask-image",`var(${t})`)],description:"mask-image utility (arbitrary, custom property supported)",category:"effects"}),Z("isolate",[["isolation","isolate"]],{category:"layout"}),Z("isolation-auto",[["isolation","auto"]],{category:"layout"}),Z("z-auto",[["z-index","auto"]],{category:"layout"}),Y({name:"z",prop:"z-index",themeKey:"zIndex",supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),description:"z-index utility",category:"layout"}),Z("aspect-square",[["aspect-ratio","1 / 1"]],{category:"layout"}),Z("aspect-video",[["aspect-ratio","var(--aspect-video)"]],{category:"layout"}),Z("aspect-auto",[["aspect-ratio","auto"]],{category:"layout"}),Y({name:"aspect",prop:"aspect-ratio",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>H(e,"aspect",t,"aspect")??(/^(\d|\.\d)/.test(t)?t:null),description:"aspect-ratio utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),Z("columns-auto",[["columns","auto"]],{category:"layout"}),Z("columns-3xs",[["columns","var(--container-3xs)"]],{category:"layout"}),Z("columns-2xs",[["columns","var(--container-2xs)"]],{category:"layout"}),Z("columns-xs",[["columns","var(--container-xs)"]],{category:"layout"}),Z("columns-sm",[["columns","var(--container-sm)"]],{category:"layout"}),Z("columns-md",[["columns","var(--container-md)"]],{category:"layout"}),Z("columns-lg",[["columns","var(--container-lg)"]],{category:"layout"}),Z("columns-xl",[["columns","var(--container-xl)"]],{category:"layout"}),Z("columns-2xl",[["columns","var(--container-2xl)"]],{category:"layout"}),Z("columns-3xl",[["columns","var(--container-3xl)"]],{category:"layout"}),Z("columns-4xl",[["columns","var(--container-4xl)"]],{category:"layout"}),Z("columns-5xl",[["columns","var(--container-5xl)"]],{category:"layout"}),Z("columns-6xl",[["columns","var(--container-6xl)"]],{category:"layout"}),Z("columns-7xl",[["columns","var(--container-7xl)"]],{category:"layout"}),Y({name:"columns",prop:"columns",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>w(t)??H(e,"container",t,"container"),description:"columns utility (theme, arbitrary, custom property, fraction supported)",category:"layout"}),Z("break-after-auto",[["break-after","auto"]],{category:"layout"}),Z("break-after-avoid",[["break-after","avoid"]],{category:"layout"}),Z("break-after-all",[["break-after","all"]],{category:"layout"}),Z("break-after-avoid-page",[["break-after","avoid-page"]],{category:"layout"}),Z("break-after-page",[["break-after","page"]],{category:"layout"}),Z("break-after-left",[["break-after","left"]],{category:"layout"}),Z("break-after-right",[["break-after","right"]],{category:"layout"}),Z("break-after-column",[["break-after","column"]],{category:"layout"}),Z("break-before-auto",[["break-before","auto"]],{category:"layout"}),Z("break-before-avoid",[["break-before","avoid"]],{category:"layout"}),Z("break-before-all",[["break-before","all"]],{category:"layout"}),Z("break-before-avoid-page",[["break-before","avoid-page"]],{category:"layout"}),Z("break-before-page",[["break-before","page"]],{category:"layout"}),Z("break-before-left",[["break-before","left"]],{category:"layout"}),Z("break-before-right",[["break-before","right"]],{category:"layout"}),Z("break-before-column",[["break-before","column"]],{category:"layout"}),Z("break-inside-auto",[["break-inside","auto"]],{category:"layout"}),Z("break-inside-avoid",[["break-inside","avoid"]],{category:"layout"}),Z("break-inside-avoid-page",[["break-inside","avoid-page"]],{category:"layout"}),Z("break-inside-avoid-column",[["break-inside","avoid-column"]],{category:"layout"}),Z("box-decoration-slice",[["box-decoration-break","slice"]],{category:"layout"}),Z("box-decoration-clone",[["box-decoration-break","clone"]],{category:"layout"}),Z("box-border",[["box-sizing","border-box"]],{category:"layout"}),Z("box-content",[["box-sizing","content-box"]],{category:"layout"}),Z("block",[["display","block"]],{category:"layout"}),Z("inline",[["display","inline"]],{category:"layout"}),Z("inline-block",[["display","inline-block"]],{category:"layout"}),Z("flow-root",[["display","flow-root"]],{category:"layout"}),Z("flex",[["display","flex"]],{category:"layout"}),Z("inline-flex",[["display","inline-flex"]],{category:"layout"}),Z("grid",[["display","grid"]],{category:"layout"}),Z("inline-grid",[["display","inline-grid"]],{category:"layout"}),Z("contents",[["display","contents"]],{category:"layout"}),Z("table",[["display","table"]],{category:"layout"}),Z("inline-table",[["display","inline-table"]],{category:"layout"}),Z("table-caption",[["display","table-caption"]],{category:"layout"}),Z("table-cell",[["display","table-cell"]],{category:"layout"}),Z("table-column",[["display","table-column"]],{category:"layout"}),Z("table-column-group",[["display","table-column-group"]],{category:"layout"}),Z("table-footer-group",[["display","table-footer-group"]],{category:"layout"}),Z("table-header-group",[["display","table-header-group"]],{category:"layout"}),Z("table-row-group",[["display","table-row-group"]],{category:"layout"}),Z("table-row",[["display","table-row"]],{category:"layout"}),Z("list-item",[["display","list-item"]],{category:"layout"}),Z("hidden",[["display","none"]],{category:"layout"}),Z("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"}),Z("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]],{category:"layout"}),Z("@container",[["container-type","inline-size"]],{category:"layout"}),Z("@container-normal",[["container-type","normal"]],{category:"layout"}),Z("@container-size",[["container-type","size"]],{category:"layout"});var ur=/^@container(-normal|-size)?\/([a-zA-Z0-9_-]+)$/,dr={"":"inline-size","-normal":"normal","-size":"size"};B({name:"@container",match:t=>ur.test(t),handler:(t,r,o)=>{const a=ur.exec(`${o.prefix}${o.value?`-${o.value}`:""}`);return a?[e("container-type",dr[a[1]??""]),e("container-name",a[2])]:null},category:"layout"});var gr=t=>{const e=/^(-?\d*\.?\d+)(rem|px|em)$/.exec(t.trim());return e?"px"===e[2]?Number(e[1])/16:Number(e[1]):NaN};B({name:"container",match:t=>"container"===t,handler:(t,r)=>{const a=r.theme("breakpoints")||r.config("theme.breakpoints")||{},n=Object.values(a).filter(t=>"string"==typeof t&&!Number.isNaN(gr(t)));return n.sort((t,e)=>gr(t)-gr(e)),[e("width","100%"),...n.map(t=>o("media",`(width >= ${t})`,[e("max-width",t)]))]},category:"layout"}),Z("float-right",[["float","right"]],{category:"layout"}),Z("float-left",[["float","left"]],{category:"layout"}),Z("float-start",[["float","inline-start"]],{category:"layout"}),Z("float-end",[["float","inline-end"]],{category:"layout"}),Z("float-none",[["float","none"]],{category:"layout"}),Z("clear-left",[["clear","left"]],{category:"layout"}),Z("clear-right",[["clear","right"]],{category:"layout"}),Z("clear-both",[["clear","both"]],{category:"layout"}),Z("clear-start",[["clear","inline-start"]],{category:"layout"}),Z("clear-end",[["clear","inline-end"]],{category:"layout"}),Z("clear-none",[["clear","none"]],{category:"layout"}),Z("object-contain",[["object-fit","contain"]],{category:"layout"}),Z("object-cover",[["object-fit","cover"]],{category:"layout"}),Z("object-fill",[["object-fit","fill"]],{category:"layout"}),Z("object-none",[["object-fit","none"]],{category:"layout"}),Z("object-scale-down",[["object-fit","scale-down"]],{category:"layout"}),Z("object-top-left",[["object-position","top left"]],{category:"layout"}),Z("object-top",[["object-position","top"]],{category:"layout"}),Z("object-top-right",[["object-position","top right"]],{category:"layout"}),Z("object-left",[["object-position","left"]],{category:"layout"}),Z("object-center",[["object-position","center"]],{category:"layout"}),Z("object-right",[["object-position","right"]],{category:"layout"}),Z("object-bottom-left",[["object-position","bottom left"]],{category:"layout"}),Z("object-bottom",[["object-position","bottom"]],{category:"layout"}),Z("object-bottom-right",[["object-position","bottom right"]],{category:"layout"}),Y({name:"object",prop:"object-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"object-position utility (arbitrary value, custom property supported)",category:"layout"}),Z("overflow-auto",[["overflow","auto"]],{category:"layout"}),Z("overflow-hidden",[["overflow","hidden"]],{category:"layout"}),Z("overflow-clip",[["overflow","clip"]],{category:"layout"}),Z("overflow-visible",[["overflow","visible"]],{category:"layout"}),Z("overflow-scroll",[["overflow","scroll"]],{category:"layout"}),Z("overflow-x-auto",[["overflow-x","auto"]],{category:"layout"}),Z("overflow-y-auto",[["overflow-y","auto"]],{category:"layout"}),Z("overflow-x-hidden",[["overflow-x","hidden"]],{category:"layout"}),Z("overflow-y-hidden",[["overflow-y","hidden"]],{category:"layout"}),Z("overflow-x-clip",[["overflow-x","clip"]],{category:"layout"}),Z("overflow-y-clip",[["overflow-y","clip"]],{category:"layout"}),Z("overflow-x-visible",[["overflow-x","visible"]],{category:"layout"}),Z("overflow-y-visible",[["overflow-y","visible"]],{category:"layout"}),Z("overflow-x-scroll",[["overflow-x","scroll"]],{category:"layout"}),Z("overflow-y-scroll",[["overflow-y","scroll"]],{category:"layout"}),Z("overscroll-auto",[["overscroll-behavior","auto"]],{category:"layout"}),Z("overscroll-contain",[["overscroll-behavior","contain"]],{category:"layout"}),Z("overscroll-none",[["overscroll-behavior","none"]],{category:"layout"}),Z("overscroll-x-auto",[["overscroll-behavior-x","auto"]],{category:"layout"}),Z("overscroll-x-contain",[["overscroll-behavior-x","contain"]],{category:"layout"}),Z("overscroll-x-none",[["overscroll-behavior-x","none"]],{category:"layout"}),Z("overscroll-y-auto",[["overscroll-behavior-y","auto"]],{category:"layout"}),Z("overscroll-y-contain",[["overscroll-behavior-y","contain"]],{category:"layout"}),Z("overscroll-y-none",[["overscroll-behavior-y","none"]],{category:"layout"}),Z("static",[["position","static"]],{category:"layout"}),Z("fixed",[["position","fixed"]],{category:"layout"}),Z("absolute",[["position","absolute"]],{category:"layout"}),Z("relative",[["position","relative"]],{category:"layout"}),Z("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])=>{Z(`${t}-auto`,[[e,"auto"]],{category:"layout"}),Z(`${t}-full`,[[e,"100%"]],{category:"layout"}),Z(`-${t}-full`,[[e,"-100%"]],{category:"layout"}),Z(`${t}-px`,[[e,"1px"]],{category:"layout"}),Z(`-${t}-px`,[[e,"-1px"]],{category:"layout"}),Y({name:t,spacingKeys:!0,prop:e,supportsNegative:!0,supportsFraction:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>{if(w(t))return`calc(var(--spacing) * ${t})`;const e=k(t);return e||null},handleNegativeBareValue:({value:t})=>{if(w(t))return`calc(var(--spacing) * -${t})`;const e=k(t);return e?`-${e}`:null},description:`${t} utility (spacing, fraction, px, full, auto, custom property, arbitrary, negative supported)`,category:"layout"})}),Z("visible",[["visibility","visible"]],{category:"layout"}),Z("invisible",[["visibility","hidden"]],{category:"layout"}),Z("collapse",[["visibility","collapse"]],{category:"layout"}),Y({name:"gap-x",spacingKeys:!0,prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),Y({name:"gap-y",spacingKeys:!0,prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),Y({name:"gap",spacingKeys:!0,prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),Y({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"}),Z("basis-full",[["flex-basis","100%"]],{category:"flex-grid"}),Z("basis-auto",[["flex-basis","auto"]],{category:"flex-grid"}),Z("basis-3xs",[["flex-basis","var(--container-3xs)"]],{category:"flex-grid"}),Z("basis-2xs",[["flex-basis","var(--container-2xs)"]],{category:"flex-grid"}),Z("basis-xs",[["flex-basis","var(--container-xs)"]],{category:"flex-grid"}),Z("basis-sm",[["flex-basis","var(--container-sm)"]],{category:"flex-grid"}),Z("basis-md",[["flex-basis","var(--container-md)"]],{category:"flex-grid"}),Z("basis-lg",[["flex-basis","var(--container-lg)"]],{category:"flex-grid"}),Z("basis-xl",[["flex-basis","var(--container-xl)"]],{category:"flex-grid"}),Z("basis-2xl",[["flex-basis","var(--container-2xl)"]],{category:"flex-grid"}),Z("basis-3xl",[["flex-basis","var(--container-3xl)"]],{category:"flex-grid"}),Z("basis-4xl",[["flex-basis","var(--container-4xl)"]],{category:"flex-grid"}),Z("basis-5xl",[["flex-basis","var(--container-5xl)"]],{category:"flex-grid"}),Z("basis-6xl",[["flex-basis","var(--container-6xl)"]],{category:"flex-grid"}),Z("basis-7xl",[["flex-basis","var(--container-7xl)"]],{category:"flex-grid"}),Y({name:"basis",prop:"flex-basis",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(w(t))return`calc(var(--container-${t}) * 1px)`;const e=k(t);return e||null},handleNegativeBareValue:({value:t})=>{if(w(t))return`calc(var(--container-${t}) * -1px)`;const e=k(t);return e?`-${e}`:null},description:"flex-basis utility (theme, arbitrary, custom property, fraction supported)",category:"flex-grid"}),Z("flex-row",[["flex-direction","row"]],{category:"flex-grid"}),Z("flex-row-reverse",[["flex-direction","row-reverse"]],{category:"flex-grid"}),Z("flex-col",[["flex-direction","column"]],{category:"flex-grid"}),Z("flex-col-reverse",[["flex-direction","column-reverse"]],{category:"flex-grid"}),Z("flex-wrap",[["flex-wrap","wrap"]],{category:"flex-grid"}),Z("flex-wrap-reverse",[["flex-wrap","wrap-reverse"]],{category:"flex-grid"}),Z("flex-nowrap",[["flex-wrap","nowrap"]],{category:"flex-grid"}),Z("flex-auto",[["flex","1 1 auto"]],{category:"flex-grid"}),Z("flex-initial",[["flex","0 1 auto"]],{category:"flex-grid"}),Z("flex-none",[["flex","none"]],{category:"flex-grid"}),Z("flex-grow",[["flex-grow","1"]],{category:"flex-grid"}),Y({name:"flex-grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),Z("flex-shrink",[["flex-shrink","1"]],{category:"flex-grid"}),Y({name:"flex-shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),Y({name:"flex",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>{if(w(t))return t;const e=k(t);return e?`calc(${e})`:null},handle:t=>[e("flex",t)],description:"flex shorthand utility (number, fraction, arbitrary, custom property supported)",category:"flex-grid"}),Z("grow",[["flex-grow","1"]],{category:"flex-grid"}),Y({name:"grow",prop:"flex-grow",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handle:t=>[e("flex-grow",t)],description:"flex-grow utility (number, arbitrary, custom property supported)",category:"flex-grid"}),Z("shrink",[["flex-shrink","1"]],{category:"flex-grid"}),Z("shrink-0",[["flex-shrink","0"]],{category:"flex-grid"}),Y({name:"shrink",prop:"flex-shrink",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),description:"flex-shrink utility (number, arbitrary, custom property supported)",category:"flex-grid"}),Z("order-first",[["order","calc(-infinity)"]],{category:"flex-grid"}),Z("order-last",[["order","calc(infinity)"]],{category:"flex-grid"}),Z("order-none",[["order","0"]],{category:"flex-grid"}),Y({name:"order",prop:"order",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handleNegativeBareValue:({value:t})=>w(t)?`calc(${t} * -1)`:null,description:"order utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),Z("grid-cols-none",[["grid-template-columns","none"]],{category:"flex-grid"}),Z("grid-cols-subgrid",[["grid-template-columns","subgrid"]],{category:"flex-grid"}),Y({name:"grid-cols",prop:"grid-template-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>C(t,{repeat:!0}),description:"grid-template-columns utility (number, arbitrary, custom property supported)",category:"flex-grid"}),Z("grid-rows-none",[["grid-template-rows","none"]],{category:"flex-grid"}),Z("grid-rows-subgrid",[["grid-template-rows","subgrid"]],{category:"flex-grid"}),Y({name:"grid-rows",prop:"grid-template-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>C(t,{repeat:!0}),handle:t=>"string"==typeof t?[e("grid-template-rows",t.replace(/_/g," "))]:null,handleCustomProperty:t=>[e("grid-template-rows",`var(${t})`)],description:"grid-template-rows utility (number, arbitrary, custom property supported)",category:"flex-grid"}),Z("row-span-full",[["grid-row","1 / -1"]],{category:"flex-grid"}),Y({name:"row-span",prop:"grid-row",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`span ${t} / span ${t}`:null,handleCustomProperty:t=>[e("grid-row",`span var(${t}) / span var(${t})`)],handle:t=>w(t)?[e("grid-row",`span ${t} / span ${t}`)]:null,description:"grid-row span utility (number, arbitrary, custom property supported)",category:"flex-grid"}),Z("row-start-auto",[["grid-row-start","auto"]],{category:"flex-grid"}),Y({name:"row-start",prop:"grid-row-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handleNegativeBareValue:({value:t})=>w(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-start",`var(${t})`)],handle:t=>w(t)||"string"==typeof t?[e("grid-row-start",t)]:null,description:"grid-row-start utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),Z("row-end-auto",[["grid-row-end","auto"]],{category:"flex-grid"}),Y({name:"row-end",prop:"grid-row-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handleNegativeBareValue:({value:t})=>w(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row-end",`var(${t})`)],handle:t=>w(t)||"string"==typeof t?[e("grid-row-end",t)]:null,description:"grid-row-end utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),Z("row-auto",[["grid-row","auto"]],{category:"flex-grid"}),Y({name:"row",prop:"grid-row",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handleNegativeBareValue:({value:t})=>w(t)?`calc(${t} * -1)`:null,handleCustomProperty:t=>[e("grid-row",`var(${t})`)],handle:t=>w(t)||"string"==typeof t?[e("grid-row",t)]:null,description:"grid-row utility (number, negative, arbitrary, custom property supported)",category:"flex-grid"}),Z("grid-flow-row",[["grid-auto-flow","row"]],{category:"flex-grid"}),Z("grid-flow-col",[["grid-auto-flow","column"]],{category:"flex-grid"}),Z("grid-flow-dense",[["grid-auto-flow","dense"]],{category:"flex-grid"}),Z("grid-flow-row-dense",[["grid-auto-flow","row dense"]],{category:"flex-grid"}),Z("grid-flow-col-dense",[["grid-auto-flow","column dense"]],{category:"flex-grid"}),Z("auto-cols-auto",[["grid-auto-columns","auto"]],{category:"flex-grid"}),Z("auto-cols-min",[["grid-auto-columns","min-content"]],{category:"flex-grid"}),Z("auto-cols-max",[["grid-auto-columns","max-content"]],{category:"flex-grid"}),Z("auto-cols-fr",[["grid-auto-columns","minmax(0, 1fr)"]],{category:"flex-grid"}),Y({name:"auto-cols",prop:"grid-auto-columns",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-columns",t)]:null,handleCustomProperty:t=>[e("grid-auto-columns",`var(${t})`)],description:"grid-auto-columns utility (static, arbitrary, custom property supported)",category:"flex-grid"}),Z("auto-rows-auto",[["grid-auto-rows","auto"]],{category:"flex-grid"}),Z("auto-rows-min",[["grid-auto-rows","min-content"]],{category:"flex-grid"}),Z("auto-rows-max",[["grid-auto-rows","max-content"]],{category:"flex-grid"}),Z("auto-rows-fr",[["grid-auto-rows","minmax(0, 1fr)"]],{category:"flex-grid"}),Y({name:"auto-rows",prop:"grid-auto-rows",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("grid-auto-rows",t)]:null,handleCustomProperty:t=>[e("grid-auto-rows",`var(${t})`)],description:"grid-auto-rows utility (static, arbitrary, custom property supported)",category:"flex-grid"}),Y({name:"gap-x",prop:"column-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("column-gap",t)]:null,handleCustomProperty:t=>[e("column-gap",`var(${t})`)],description:"gap-x utility (number, arbitrary, custom property supported)",category:"layout"}),Y({name:"gap-y",prop:"row-gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("row-gap",t)]:null,handleCustomProperty:t=>[e("row-gap",`var(${t})`)],description:"gap-y utility (number, arbitrary, custom property supported)",category:"layout"}),Y({name:"gap",prop:"gap",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>"px"===t?"1px":w(t)?`calc(var(--spacing) * ${t})`:null,handle:t=>"string"==typeof t?[e("gap",t)]:null,handleCustomProperty:t=>[e("gap",`var(${t})`)],description:"gap utility (number, arbitrary, custom property supported)",category:"layout"}),Z("justify-start",[["justify-content","flex-start"]],{category:"flex-grid"}),Z("justify-end",[["justify-content","flex-end"]],{category:"flex-grid"}),Z("justify-end-safe",[["justify-content","safe flex-end"]],{category:"flex-grid"}),Z("justify-center",[["justify-content","center"]],{category:"flex-grid"}),Z("justify-center-safe",[["justify-content","safe center"]],{category:"flex-grid"}),Z("justify-between",[["justify-content","space-between"]],{category:"flex-grid"}),Z("justify-around",[["justify-content","space-around"]],{category:"flex-grid"}),Z("justify-evenly",[["justify-content","space-evenly"]],{category:"flex-grid"}),Z("justify-stretch",[["justify-content","stretch"]],{category:"flex-grid"}),Z("justify-baseline",[["justify-content","baseline"]],{category:"flex-grid"}),Z("justify-normal",[["justify-content","normal"]],{category:"flex-grid"}),Z("justify-items-start",[["justify-items","start"]],{category:"flex-grid"}),Z("justify-items-end",[["justify-items","end"]],{category:"flex-grid"}),Z("justify-items-end-safe",[["justify-items","safe end"]],{category:"flex-grid"}),Z("justify-items-center",[["justify-items","center"]],{category:"flex-grid"}),Z("justify-items-center-safe",[["justify-items","safe center"]],{category:"flex-grid"}),Z("justify-items-stretch",[["justify-items","stretch"]],{category:"flex-grid"}),Z("justify-items-normal",[["justify-items","normal"]],{category:"flex-grid"}),Z("justify-self-auto",[["justify-self","auto"]],{category:"flex-grid"}),Z("justify-self-start",[["justify-self","flex-start"]],{category:"flex-grid"}),Z("justify-self-center",[["justify-self","center"]],{category:"flex-grid"}),Z("justify-self-center-safe",[["justify-self","safe center"]],{category:"flex-grid"}),Z("justify-self-end",[["justify-self","flex-end"]],{category:"flex-grid"}),Z("justify-self-end-safe",[["justify-self","safe flex-end"]],{category:"flex-grid"}),Z("justify-self-stretch",[["justify-self","stretch"]],{category:"flex-grid"}),Z("content-normal",[["align-content","normal"]],{category:"flex-grid"}),Z("content-center",[["align-content","center"]],{category:"flex-grid"}),Z("content-start",[["align-content","flex-start"]],{category:"flex-grid"}),Z("content-end",[["align-content","flex-end"]],{category:"flex-grid"}),Z("content-between",[["align-content","space-between"]],{category:"flex-grid"}),Z("content-around",[["align-content","space-around"]],{category:"flex-grid"}),Z("content-evenly",[["align-content","space-evenly"]],{category:"flex-grid"}),Z("content-baseline",[["align-content","baseline"]],{category:"flex-grid"}),Z("content-stretch",[["align-content","stretch"]],{category:"flex-grid"}),Z("items-start",[["align-items","flex-start"]],{category:"flex-grid"}),Z("items-end",[["align-items","flex-end"]],{category:"flex-grid"}),Z("items-end-safe",[["align-items","safe flex-end"]],{category:"flex-grid"}),Z("items-center",[["align-items","center"]],{category:"flex-grid"}),Z("items-center-safe",[["align-items","safe center"]],{category:"flex-grid"}),Z("items-baseline",[["align-items","baseline"]],{category:"flex-grid"}),Z("items-baseline-last",[["align-items","last baseline"]],{category:"flex-grid"}),Z("items-stretch",[["align-items","stretch"]],{category:"flex-grid"}),Z("self-auto",[["align-self","auto"]],{category:"flex-grid"}),Z("self-start",[["align-self","flex-start"]],{category:"flex-grid"}),Z("self-end",[["align-self","flex-end"]],{category:"flex-grid"}),Z("self-end-safe",[["align-self","safe flex-end"]],{category:"flex-grid"}),Z("self-center",[["align-self","center"]],{category:"flex-grid"}),Z("self-center-safe",[["align-self","safe center"]],{category:"flex-grid"}),Z("self-stretch",[["align-self","stretch"]],{category:"flex-grid"}),Z("self-baseline",[["align-self","baseline"]],{category:"flex-grid"}),Z("self-baseline-last",[["align-self","last baseline"]],{category:"flex-grid"}),Z("place-content-center",[["place-content","center"]],{category:"flex-grid"}),Z("place-content-center-safe",[["place-content","safe center"]],{category:"flex-grid"}),Z("place-content-start",[["place-content","start"]],{category:"flex-grid"}),Z("place-content-end",[["place-content","end"]],{category:"flex-grid"}),Z("place-content-end-safe",[["place-content","safe end"]],{category:"flex-grid"}),Z("place-content-between",[["place-content","space-between"]],{category:"flex-grid"}),Z("place-content-around",[["place-content","space-around"]],{category:"flex-grid"}),Z("place-content-evenly",[["place-content","space-evenly"]],{category:"flex-grid"}),Z("place-content-baseline",[["place-content","baseline"]],{category:"flex-grid"}),Z("place-content-stretch",[["place-content","stretch"]],{category:"flex-grid"}),Z("place-items-start",[["place-items","start"]],{category:"flex-grid"}),Z("place-items-end",[["place-items","end"]],{category:"flex-grid"}),Z("place-items-end-safe",[["place-items","safe end"]],{category:"flex-grid"}),Z("place-items-center",[["place-items","center"]],{category:"flex-grid"}),Z("place-items-center-safe",[["place-items","safe center"]],{category:"flex-grid"}),Z("place-items-baseline",[["place-items","baseline"]],{category:"flex-grid"}),Z("place-items-stretch",[["place-items","stretch"]],{category:"flex-grid"}),Z("place-self-auto",[["place-self","auto"]],{category:"flex-grid"}),Z("place-self-start",[["place-self","start"]],{category:"flex-grid"}),Z("place-self-end",[["place-self","end"]],{category:"flex-grid"}),Z("place-self-end-safe",[["place-self","safe end"]],{category:"flex-grid"}),Z("place-self-center",[["place-self","center"]],{category:"flex-grid"}),Z("place-self-center-safe",[["place-self","safe center"]],{category:"flex-grid"}),Z("place-self-stretch",[["place-self","stretch"]],{category:"flex-grid"}),Z("col-span-full",[["grid-column","1 / -1"]],{category:"flex-grid"}),Y({name:"col-span",prop:"grid-column",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`span ${t} / span ${t}`:null,handleCustomProperty:(t,r,o)=>[e("grid-column",`span var(${t}) / span var(${t})`)],handle:(t,r,o)=>w(t)?[e("grid-column",`span ${t} / span ${t}`)]:null,description:"grid-column span utility (number, arbitrary, custom property supported)",category:"grid"}),Z("col-start-auto",[["grid-column-start","auto"]],{category:"flex-grid"}),Y({name:"col-start",prop:"grid-column-start",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handleNegativeBareValue:({value:t})=>w(t)?`calc(${t} * -1)`:null,description:"grid-column-start utility (number, negative, arbitrary, custom property supported)",category:"grid"}),Z("col-end-auto",[["grid-column-end","auto"]],{category:"flex-grid"}),Y({name:"col-end",prop:"grid-column-end",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handleNegativeBareValue:({value:t})=>w(t)?`calc(${t} * -1)`:null,description:"grid-column-end utility (number, negative, arbitrary, custom property supported)",category:"grid"}),Z("col-auto",[["grid-column","auto"]],{category:"flex-grid"}),Y({name:"col",prop:"grid-column",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handleNegativeBareValue:({value:t})=>w(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])=>{Z(`${t}-px`,[[e,"1px"]],{category:"spacing"}),Y({spacingKeys:!0,name:t,prop:e,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(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])=>{Z(`${t}-auto`,[[e,"auto"]],{category:"spacing"}),Z(`${t}-px`,[[e,"1px"]],{category:"spacing"}),Z(`-${t}-px`,[[e,"-1px"]],{category:"spacing"}),Y({spacingKeys:!0,name:t,prop:e,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>w(t)?`calc(var(--spacing) * -${t})`:null,description:`${t} margin utility (number, negative, arbitrary, custom property, auto, px supported)`,category:"spacing"})});var yr=":where(& > :not(:last-child))";["x","y"].forEach(t=>{const o=`space-${t}`,s=`--baro-space-${t}-reverse`,[i,l]="x"===t?["margin-inline-start","margin-inline-end"]:["margin-block-start","margin-block-end"],c=()=>r([n(s,"0")]),p=t=>a(yr,[e(s,"0"),e(i,`calc(${t} * var(${s}))`),e(l,`calc(${t} * calc(1 - var(${s})))`)]),u=t=>[c(),p(t)];Z(`${o}-px`,[c,()=>p("1px")],{category:"spacing"}),Z(`-${o}-px`,[c,()=>p("-1px")],{category:"spacing"}),Z(`${o}-reverse`,[c,()=>a(yr,[e(s,"1")])],{category:"spacing"}),Y({spacingKeys:!0,name:o,supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>w(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:`${o} 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])=>{Z(t,[["width",e]])}),Y({spacingKeys:!0,name:"w",prop:"width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:C(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]])=>{Z(t,[["width",e],["height",r]])}),Y({spacingKeys:!0,name:"size",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:C(t)?`calc(${t} * 100%)`:null,handle:t=>[e("width",t),e("height",t)],handleCustomProperty:t=>[e("width",`var(${t})`),e("height",`var(${t})`)],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])=>{Z(t,[["height",e]])}),Y({spacingKeys:!0,name:"h",prop:"height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:C(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])=>{Z(t,[["min-height",e]],{category:"sizing"})}),Y({spacingKeys:!0,name:"min-h",prop:"min-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:C(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])=>{Z(t,[["max-height",e]],{category:"sizing"})}),Y({spacingKeys:!0,name:"max-h",prop:"max-height",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:C(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])=>{Z(t,[["min-width",e]],{category:"sizing"})}),Y({spacingKeys:!0,name:"min-w",prop:"min-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:C(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])=>{Z(t,[["max-width",e]],{category:"sizing"})}),Y({spacingKeys:!0,name:"max-w",prop:"max-width",supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,ctx:e})=>w(t)?`calc(var(--spacing) * ${t})`:C(t)?`calc(${t} * 100%)`:H(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)Z(`${n}-${t}`,[[s,e]],{category:"sizing"});Y({spacingKeys:!0,name:n,prop:s,supportsArbitrary:!0,supportsCustomProperty:!0,supportsFraction:!0,handleBareValue:({value:t,token:e,ctx:r})=>e.negative?null:w(t)?`calc(var(--spacing) * ${t})`:C(t)?`calc(${t} * 100%)`:n.includes("inline")?H(r,"container",t,"container"):null,description:`${s} utility (spacing, fraction, arbitrary, custom property, keywords)`,category:"sizing"})}}var hr=()=>r([n("--baro-leading")]);function mr(t){B({name:`font-${t}`,match:e=>e===`font-${t}`,handler:(r,o)=>{const a=H(o,"fontFamily",t,"font");return a?[e("font-family",a)]:[e("font-weight",`var(--font-weight-${t})`)]},category:"typography"})}Z("font-sans",[["font-family","var(--font-sans)"]],{category:"typography"}),Z("font-serif",[["font-family","var(--font-serif)"]],{category:"typography"}),Z("font-mono",[["font-family","var(--font-mono)"]],{category:"typography"}),Z("text-xs",[["font-size","var(--text-xs)"],["line-height","var(--baro-leading, var(--text-xs--line-height))"]],{category:"typography"}),Z("text-sm",[["font-size","var(--text-sm)"],["line-height","var(--baro-leading, var(--text-sm--line-height))"]],{category:"typography"}),Z("text-base",[["font-size","var(--text-base)"],["line-height","var(--baro-leading, var(--text-base--line-height))"]],{category:"typography"}),Z("text-lg",[["font-size","var(--text-lg)"],["line-height","var(--baro-leading, var(--text-lg--line-height))"]],{category:"typography"}),Z("text-xl",[["font-size","var(--text-xl)"],["line-height","var(--baro-leading, var(--text-xl--line-height))"]],{category:"typography"}),Z("text-2xl",[["font-size","var(--text-2xl)"],["line-height","var(--baro-leading, var(--text-2xl--line-height))"]],{category:"typography"}),Z("text-3xl",[["font-size","var(--text-3xl)"],["line-height","var(--baro-leading, var(--text-3xl--line-height))"]],{category:"typography"}),Z("text-4xl",[["font-size","var(--text-4xl)"],["line-height","var(--baro-leading, var(--text-4xl--line-height))"]],{category:"typography"}),Z("text-5xl",[["font-size","var(--text-5xl)"],["line-height","var(--baro-leading, var(--text-5xl--line-height))"]],{category:"typography"}),Z("text-6xl",[["font-size","var(--text-6xl)"],["line-height","var(--baro-leading, var(--text-6xl--line-height))"]],{category:"typography"}),Z("text-7xl",[["font-size","var(--text-7xl)"],["line-height","var(--baro-leading, var(--text-7xl--line-height))"]],{category:"typography"}),Z("text-8xl",[["font-size","var(--text-8xl)"],["line-height","var(--baro-leading, var(--text-8xl--line-height))"]],{category:"typography"}),Z("text-9xl",[["font-size","var(--text-9xl)"],["line-height","var(--baro-leading, var(--text-9xl--line-height))"]],{category:"typography"}),mr("thin"),mr("extralight"),mr("light"),mr("normal"),mr("medium"),mr("semibold"),mr("bold"),mr("extrabold"),mr("black"),Y({name:"font",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>H(e,"fontFamily",t,"font")??H(e,"fontWeight",t,"font-weight")??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o)=>"font"!==o.prefix?null:!o.arbitrary&&t.startsWith("var(--font-weight-")||w(t)?[e("font-weight",t)]:[e("font-family",t)],handleCustomProperty:(t,r,o)=>"font"!==o.prefix?null:t.startsWith("font-name:")?[e("font-family",`var(${t.replace("font-name:","")})`)]:[e("font-weight",`var(${t})`)],description:"font-weight utility (theme, number, arbitrary, custom property supported)",category:"typography"}),Z("italic",[["font-style","italic"]],{category:"typography"}),Z("not-italic",[["font-style","normal"]],{category:"typography"}),Z("tracking-tighter",[["letter-spacing","var(--letter-spacing-tighter)"]],{category:"typography"}),Z("tracking-tight",[["letter-spacing","var(--letter-spacing-tight)"]],{category:"typography"}),Z("tracking-normal",[["letter-spacing","var(--letter-spacing-normal)"]],{category:"typography"}),Z("tracking-wide",[["letter-spacing","var(--letter-spacing-wide)"]],{category:"typography"}),Z("tracking-wider",[["letter-spacing","var(--letter-spacing-wider)"]],{category:"typography"}),Z("tracking-widest",[["letter-spacing","var(--letter-spacing-widest)"]],{category:"typography"}),Y({name:"tracking",prop:"letter-spacing",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>H(e,"letterSpacing",t,"letter-spacing")??(/^(\d|\.\d)/.test(t)?t:null),description:"letter-spacing utility (theme, arbitrary, custom property supported)",category:"typography"}),Z("leading-none",[["--baro-leading","var(--leading-none, 1)"],["line-height","var(--leading-none, 1)"],hr()],{category:"typography"}),Z("leading-tight",[["--baro-leading","var(--leading-tight, 1.25)"],["line-height","var(--leading-tight, 1.25)"],hr()],{category:"typography"}),Z("leading-snug",[["--baro-leading","var(--leading-snug, 1.375)"],["line-height","var(--leading-snug, 1.375)"],hr()],{category:"typography"}),Z("leading-normal",[["--baro-leading","var(--leading-normal, 1.5)"],["line-height","var(--leading-normal, 1.5)"],hr()],{category:"typography"}),Z("leading-relaxed",[["--baro-leading","var(--leading-relaxed, 1.625)"],["line-height","var(--leading-relaxed, 1.625)"],hr()],{category:"typography"}),Z("leading-loose",[["--baro-leading","var(--leading-loose, 2)"],["line-height","var(--leading-loose, 2)"],hr()],{category:"typography"}),Y({name:"leading",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>{const r=U(e,"lineHeight",t);if(null!=r)return`var(--leading-${t}, ${r})`;const o=e.theme("lineHeight",t);return"string"==typeof o?o:w(t)},handle:t=>[e("--baro-leading",t),e("line-height",t),hr()],handleCustomProperty:t=>[e("--baro-leading",`var(${t})`),e("line-height",`var(${t})`),hr()],description:"line-height utility (theme, number, arbitrary, custom property supported)",category:"typography"}),Z("text-left",[["text-align","left"]],{category:"typography"}),Z("text-center",[["text-align","center"]],{category:"typography"}),Z("text-right",[["text-align","right"]],{category:"typography"}),Z("text-justify",[["text-align","justify"]],{category:"typography"}),Z("text-start",[["text-align","start"]],{category:"typography"}),Z("text-end",[["text-align","end"]],{category:"typography"});var fr=new Set(["length","size","percentage","absolute-size","relative-size"]),br=/^(xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large|larger|smaller)$/,vr=/^-?(\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 xr(t){const e=/^([a-z-]+):(.+)$/.exec(t);return e&&("color"===e[1]||fr.has(e[1]))?{fontSize:"color"!==e[1],value:e[2]}:{fontSize:"0"===t||vr.test(t)||br.test(t)||/^(calc|min|max|clamp)\(/.test(t),value:t}}Z("text-inherit",[["color","inherit"]],{category:"typography"}),Z("text-current",[["color","currentColor"]],{category:"typography"}),Z("text-transparent",[["color","transparent"]],{category:"typography"}),Z("truncate",[["overflow","hidden"],["text-overflow","ellipsis"],["white-space","nowrap"]],{category:"typography"}),Z("text-ellipsis",[["text-overflow","ellipsis"]],{category:"typography"}),Z("text-clip",[["text-overflow","clip"]],{category:"typography"}),Y({name:"text",themeKey:"colors",supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handleBareValue:({value:t,ctx:e,extra:r})=>(r?.opacity?null:H(e,"fontSize",t,"text"))??(/^(\d|\.\d)/.test(t)?t:null),handle:(t,r,o,a)=>{if(a?.realThemeValue)return A("color",t,a);const n=o.arbitrary||o.customProperty?void 0:/^var\(--text-([\w-]+)\)$/.exec(t)?.[1];if(n)return wt(r.theme("fontSize",n))?[e("font-size",t),e("line-height",`var(--baro-leading, var(--text-${n}--line-height))`)]:[e("font-size",t)];const s=xr(t);return[e(s.fontSize?"font-size":"color",s.value)]},handleCustomProperty:t=>{const r=xr(t);return[e(r.fontSize?"font-size":"color",`var(${r.value})`)]},description:"text color utility (theme, arbitrary, custom property supported)",category:"typography"}),Y({name:"text",themeKey:"fontSize",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>{const a=r.theme("fontSize",t);return a?Array.isArray(a)?[e("font-size",a[0]),e("line-height",`var(--baro-leading, ${a[1]})`)]:[e("font-size",a)]:o.arbitrary?[e("font-size",t)]:null},handleCustomProperty:t=>[e("font-size",`var(${t})`)],description:"font-size utility (theme, arbitrary, custom property supported)",category:"typography"}),Z("uppercase",[["text-transform","uppercase"]],{category:"typography"}),Z("lowercase",[["text-transform","lowercase"]],{category:"typography"}),Z("capitalize",[["text-transform","capitalize"]],{category:"typography"}),Z("normal-case",[["text-transform","none"]],{category:"typography"}),Z("underline",[["text-decoration-line","underline"]],{category:"typography"}),Z("overline",[["text-decoration-line","overline"]],{category:"typography"}),Z("line-through",[["text-decoration-line","line-through"]],{category:"typography"}),Z("no-underline",[["text-decoration-line","none"]],{category:"typography"}),Z("whitespace-normal",[["white-space","normal"]],{category:"typography"}),Z("whitespace-nowrap",[["white-space","nowrap"]],{category:"typography"}),Z("whitespace-pre",[["white-space","pre"]],{category:"typography"}),Z("whitespace-pre-line",[["white-space","pre-line"]],{category:"typography"}),Z("whitespace-pre-wrap",[["white-space","pre-wrap"]],{category:"typography"}),Z("whitespace-break-spaces",[["white-space","break-spaces"]],{category:"typography"}),Z("break-normal",[["overflow-wrap","normal"],["word-break","normal"]],{category:"typography"}),Z("break-words",[["overflow-wrap","break-word"]],{category:"typography"}),Z("break-all",[["word-break","break-all"]],{category:"typography"}),Z("break-keep",[["word-break","keep-all"]],{category:"typography"}),Z("antialiased",[["-webkit-font-smoothing","antialiased"],["-moz-osx-font-smoothing","grayscale"]],{category:"typography"}),Z("subpixel-antialiased",[["-webkit-font-smoothing","auto"],["-moz-osx-font-smoothing","auto"]],{category:"typography"}),Z("font-stretch-normal",[["font-stretch","normal"]],{category:"typography"}),Z("font-stretch-ultra-condensed",[["font-stretch","ultra-condensed"]],{category:"typography"}),Z("font-stretch-extra-condensed",[["font-stretch","extra-condensed"]],{category:"typography"}),Z("font-stretch-condensed",[["font-stretch","condensed"]],{category:"typography"}),Z("font-stretch-semi-condensed",[["font-stretch","semi-condensed"]],{category:"typography"}),Z("font-stretch-semi-expanded",[["font-stretch","semi-expanded"]],{category:"typography"}),Z("font-stretch-expanded",[["font-stretch","expanded"]],{category:"typography"}),Z("font-stretch-extra-expanded",[["font-stretch","extra-expanded"]],{category:"typography"}),Z("font-stretch-ultra-expanded",[["font-stretch","ultra-expanded"]],{category:"typography"}),Y({name:"font-stretch",prop:"font-stretch",supportsArbitrary:!0,supportsCustomProperty:!0,description:"font-stretch utility (arbitrary, custom property supported)",category:"typography"}),Z("normal-nums",[["font-variant-numeric","normal"]],{category:"typography"}),Z("ordinal",[["font-variant-numeric","ordinal"]],{category:"typography"}),Z("slashed-zero",[["font-variant-numeric","slashed-zero"]],{category:"typography"}),Z("lining-nums",[["font-variant-numeric","lining-nums"]],{category:"typography"}),Z("oldstyle-nums",[["font-variant-numeric","oldstyle-nums"]],{category:"typography"}),Z("proportional-nums",[["font-variant-numeric","proportional-nums"]],{category:"typography"}),Z("tabular-nums",[["font-variant-numeric","tabular-nums"]],{category:"typography"}),Z("diagonal-fractions",[["font-variant-numeric","diagonal-fractions"]],{category:"typography"}),Z("stacked-fractions",[["font-variant-numeric","stacked-fractions"]],{category:"typography"}),Z("line-clamp-none",[["-webkit-line-clamp","none"]],{category:"typography"}),Y({name:"line-clamp",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t),handle:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",t)],handleCustomProperty:t=>[e("overflow","hidden"),e("display","-webkit-box"),e("-webkit-box-orient","vertical"),e("-webkit-line-clamp",`var(${t})`)],description:"line-clamp utility (number, arbitrary, custom property supported)",category:"typography"}),Z("list-none",[["list-style-type","none"]],{category:"typography"}),Z("list-disc",[["list-style-type","disc"]],{category:"typography"}),Z("list-decimal",[["list-style-type","decimal"]],{category:"typography"}),Y({name:"list",prop:"list-style-type",themeKey:"listStyleType",supportsArbitrary:!0,supportsCustomProperty:!0,description:"list-style-type utility (theme, arbitrary, custom property supported)",category:"typography"}),Z("list-inside",[["list-style-position","inside"]],{category:"typography"}),Z("list-outside",[["list-style-position","outside"]],{category:"typography"}),Z("list-image-none",[["list-style-image","none"]],{category:"typography"}),Y({name:"list-image",prop:"list-style-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("list-style-image",`url(${t})`)],handleCustomProperty:t=>[e("list-style-image",`var(${t})`)],description:"list-style-image utility (arbitrary, custom property supported)",category:"typography"}),Y({name:"decoration",themeKeys:["textDecorationThickness","colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"textDecorationThickness"===a?.themeNamespace?[e("text-decoration-thickness",t)]:a?.realThemeValue?A("text-decoration-color",t,a):[e("text-decoration-color",t)],handleCustomProperty:t=>[e("text-decoration-color",`var(${t})`)],description:"text-decoration-color utility (theme, arbitrary, custom property supported)",category:"typography"}),Z("decoration-solid",[["text-decoration-style","solid"]],{category:"typography"}),Z("decoration-double",[["text-decoration-style","double"]],{category:"typography"}),Z("decoration-dotted",[["text-decoration-style","dotted"]],{category:"typography"}),Z("decoration-dashed",[["text-decoration-style","dashed"]],{category:"typography"}),Z("decoration-wavy",[["text-decoration-style","wavy"]],{category:"typography"}),Z("decoration-auto",[["text-decoration-thickness","auto"]],{category:"typography"}),Z("decoration-from-font",[["text-decoration-thickness","from-font"]],{category:"typography"}),Z("decoration-0",[["text-decoration-thickness","0px"]],{category:"typography"}),Z("decoration-1",[["text-decoration-thickness","1px"]],{category:"typography"}),Z("decoration-2",[["text-decoration-thickness","2px"]],{category:"typography"}),Z("decoration-4",[["text-decoration-thickness","4px"]],{category:"typography"}),Z("decoration-8",[["text-decoration-thickness","8px"]],{category:"typography"}),Y({name:"decoration",prop:"text-decoration-thickness",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`${t}px`:null,description:"text-decoration-thickness utility (arbitrary, custom property supported)",category:"typography"}),Z("underline-offset-auto",[["text-underline-offset","auto"]],{category:"typography"}),Z("underline-offset-0",[["text-underline-offset","0px"]],{category:"typography"}),Z("underline-offset-1",[["text-underline-offset","1px"]],{category:"typography"}),Z("underline-offset-2",[["text-underline-offset","2px"]],{category:"typography"}),Z("underline-offset-4",[["text-underline-offset","4px"]],{category:"typography"}),Z("underline-offset-8",[["text-underline-offset","8px"]],{category:"typography"}),Y({name:"underline-offset",prop:"text-underline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`${t}px`:null,description:"text-underline-offset utility (arbitrary, custom property supported)",category:"typography"}),Z("text-wrap",[["text-wrap","wrap"]],{category:"typography"}),Z("text-nowrap",[["text-wrap","nowrap"]],{category:"typography"}),Z("text-balance",[["text-wrap","balance"]],{category:"typography"}),Z("text-pretty",[["text-wrap","pretty"]],{category:"typography"}),Y({name:"indent",prop:"text-indent",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`calc(var(--spacing) * ${t})`:null,handleNegativeBareValue:({value:t})=>w(t)?`calc(var(--spacing) * -${t})`:null,description:"text-indent utility (spacing, negative, arbitrary, custom property supported)",category:"typography"}),Z("align-baseline",[["vertical-align","baseline"]],{category:"typography"}),Z("align-top",[["vertical-align","top"]],{category:"typography"}),Z("align-middle",[["vertical-align","middle"]],{category:"typography"}),Z("align-bottom",[["vertical-align","bottom"]],{category:"typography"}),Z("align-text-top",[["vertical-align","text-top"]],{category:"typography"}),Z("align-text-bottom",[["vertical-align","text-bottom"]],{category:"typography"}),Z("align-sub",[["vertical-align","sub"]],{category:"typography"}),Z("align-super",[["vertical-align","super"]],{category:"typography"}),Y({name:"align",prop:"vertical-align",supportsArbitrary:!0,supportsCustomProperty:!0,description:"vertical-align utility (arbitrary, custom property supported)",category:"typography"}),Z("hyphens-none",[["hyphens","none"]],{category:"typography"}),Z("hyphens-manual",[["hyphens","manual"]],{category:"typography"}),Z("hyphens-auto",[["hyphens","auto"]],{category:"typography"}),Z("content-none",[["--baro-content","none"],["content","none"]],{category:"typography"}),Y({name:"content",prop:"content",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("--baro-content",t),e("content","var(--baro-content)")],handleCustomProperty:t=>[e("--baro-content",`var(${t})`),e("content","var(--baro-content)")],description:"content utility (arbitrary, custom property supported)",category:"typography"});var kr=t=>[a("&::placeholder",[e("color",t)])];Z("placeholder-inherit",kr("inherit"),{category:"typography"}),Z("placeholder-current",kr("currentcolor"),{category:"typography"}),Z("placeholder-transparent",kr("transparent"),{category:"typography"}),Y({name:"placeholder",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>o?.realThemeValue?[a("&::placeholder",A("color",t,o))]:z(t)||/^var\(--[\w-]+\)$/.test(t)?kr(t):null,handleCustomProperty:t=>kr(`var(${t})`),description:"placeholder color utility (theme, alpha, arbitrary, custom property)"}),Y({name:"font-features",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>o.arbitrary?[e("font-feature-settings",t)]:null,handleCustomProperty:t=>[e("font-feature-settings",`var(${t.replace(/^[a-z-]+:(?=--)/,"")})`)],description:"font-feature-settings utility (arbitrary, custom property)",category:"typography"}),Y({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 wr=()=>r([n("--baro-gradient-position"),n("--baro-gradient-from","#0000","<color>"),n("--baro-gradient-via","#0000","<color>"),n("--baro-gradient-to","#0000","<color>"),n("--baro-gradient-stops"),n("--baro-gradient-via-stops"),n("--baro-gradient-from-position","0%","<length-percentage>"),n("--baro-gradient-via-position","50%","<length-percentage>"),n("--baro-gradient-to-position","100%","<length-percentage>")],"background");Z("bg-fixed",[["background-attachment","fixed"]],{category:"background"}),Z("bg-local",[["background-attachment","local"]],{category:"background"}),Z("bg-scroll",[["background-attachment","scroll"]],{category:"background"}),Z("bg-clip-border",[["background-clip","border-box"]],{category:"background"}),Z("bg-clip-padding",[["background-clip","padding-box"]],{category:"background"}),Z("bg-clip-content",[["background-clip","content-box"]],{category:"background"}),Z("bg-clip-text",[["background-clip","text"]],{category:"background"}),Z("bg-inherit",[["background-color","inherit"]],{category:"background"}),Z("bg-current",[["background-color","currentColor"]],{category:"background"}),Z("bg-transparent",[["background-color","transparent"]],{category:"background"}),Z("bg-none",[["background-image","none"]],{category:"background"}),Z("bg-origin-border",[["background-origin","border-box"]],{category:"background"}),Z("bg-origin-padding",[["background-origin","padding-box"]],{category:"background"}),Z("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])=>{Z(t,[["background-position",e]],{category:"background"})}),Y({name:"bg-position",prop:"background-position",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-position utility (arbitrary, custom property supported)",category:"background"}),Z("bg-repeat",[["background-repeat","repeat"]],{category:"background"}),Z("bg-no-repeat",[["background-repeat","no-repeat"]],{category:"background"}),Z("bg-repeat-x",[["background-repeat","repeat-x"]],{category:"background"}),Z("bg-repeat-y",[["background-repeat","repeat-y"]],{category:"background"}),Z("bg-repeat-round",[["background-repeat","round"]],{category:"background"}),Z("bg-repeat-space",[["background-repeat","space"]],{category:"background"}),Z("bg-auto",[["background-size","auto"]],{category:"background"}),Z("bg-cover",[["background-size","cover"]],{category:"background"}),Z("bg-contain",[["background-size","contain"]],{category:"background"}),Y({name:"bg-size",prop:"background-size",supportsArbitrary:!0,supportsCustomProperty:!0,description:"background-size utility (arbitrary, custom property supported)",category:"background"});var $r=t=>[e("--baro-gradient-position",t),o("supports","(background-image: linear-gradient(in lab, red, red))",[e("--baro-gradient-position",`${t} in oklab`)]),e("background-image","linear-gradient(var(--baro-gradient-stops))")],Cr=t=>[e("--baro-gradient-position",`${t} in oklab`),e("background-image","linear-gradient(var(--baro-gradient-stops))")];[["bg-linear-to-t",$r("to top")],["bg-linear-to-tr",$r("to top right")],["bg-linear-to-r",$r("to right")],["bg-linear-to-br",$r("to bottom right")],["bg-linear-to-b",$r("to bottom")],["bg-linear-to-bl",$r("to bottom left")],["bg-linear-to-l",$r("to left")],["bg-linear-to-tl",$r("to top left")],["bg-gradient-to-t",Cr("to top")],["bg-gradient-to-tr",Cr("to top right")],["bg-gradient-to-r",Cr("to right")],["bg-gradient-to-br",Cr("to bottom right")],["bg-gradient-to-b",Cr("to bottom")],["bg-gradient-to-bl",Cr("to bottom left")],["bg-gradient-to-l",Cr("to left")],["bg-gradient-to-tl",Cr("to top left")]].forEach(([t,e])=>{Z(t,e,{category:"background",priority:1e3})}),Y({name:"bg-linear",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,o)=>w(t)?$r(`${t}deg`):o.arbitrary?[e("background-image",`linear-gradient(var(--baro-gradient-stops, ${t}))`)]:o.customProperty?[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)]:null,handleCustomProperty:t=>[e("background-image",`linear-gradient(var(--baro-gradient-stops, var(${t})))`)],description:"linear-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var Pr=(t,r,o)=>[e("--baro-gradient-position",r),e("background-image",`${t}(var(--baro-gradient-stops${o?`,${o}`:""}))`)];Z("bg-radial",Pr("radial-gradient","in oklab"),{category:"background"}),Y({name:"bg-radial",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary?Pr("radial-gradient",t,t):r.customProperty?Pr("radial-gradient",`var(${t})`,`var(${t})`):null,handleCustomProperty:t=>Pr("radial-gradient",`var(${t})`,`var(${t})`),description:"radial-gradient background-image utility (arbitrary, custom property supported)",category:"background"}),Z("bg-conic",Pr("conic-gradient","in oklab"),{category:"background"}),Y({name:"bg-conic",prop:"background-image",supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,r)=>r.arbitrary||r.customProperty||!w(t)?r.arbitrary?Pr("conic-gradient",t,t):r.customProperty?Pr("conic-gradient",`var(${t})`,`var(${t})`):null:Pr("conic-gradient",`from ${t}deg in oklab`),handleCustomProperty:t=>Pr("conic-gradient",`var(${t})`,`var(${t})`),description:"conic-gradient background-image utility (angle, arbitrary, custom property supported)",category:"background"});var zr="--baro-gradient",Sr=(t,r)=>{const o="string"==typeof r?[e(`${zr}-${t}`,r)]:r;return"via"===t?[wr(),...o,e(`${zr}-via-stops`,`var(${zr}-position), var(${zr}-from) var(${zr}-from-position), var(${zr}-via) var(${zr}-via-position), var(${zr}-to) var(${zr}-to-position)`),e(`${zr}-stops`,`var(${zr}-via-stops)`)]:[wr(),...o,e(`${zr}-stops`,`var(${zr}-via-stops, var(${zr}-position), var(${zr}-from) var(${zr}-from-position), var(${zr}-to) var(${zr}-to-position))`)]};["from","via","to"].forEach(t=>{Y({name:t,themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(r,o,a,n)=>n?.realThemeValue?Sr(t,A(`${zr}-${t}`,r,n)):$(r)?[wr(),e(`${zr}-${t}-position`,r)]:w(r)?[wr(),e(`${zr}-${t}-position`,`${r}%`)]:z(r)?Sr(t,r):null,handleCustomProperty:r=>r.startsWith("color:")?Sr(t,`var(${r.slice(6)})`):[e(`--baro-gradient-${t}`,`var(${r})`)],description:`${t} gradient stop utility (color, percent, custom property, arbitrary supported)`,category:"background"}),Y({name:`${t}-position`,supportsArbitrary:!0,supportsCustomProperty:!0,handle:r=>[e(`--baro-gradient-${t}-position`,r)],handleCustomProperty:r=>[e(`--baro-gradient-${t}-position`,`var(${r})`)],description:`${t}-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 jr(t){const e=/^([a-z-]+):(.+)$/.exec(t),r=e?Ar[e[1]]:void 0;return e&&r?[r,e[2]]:null}Y({name:"bg",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>{if(t.startsWith("url("))return[e("background-image",t)];const n=jr(t);if(n)return[e(n[0],n[1])];if(a?.realThemeValue)return A("background-color",t,a);if(z(t)){const r=z(t);return t.startsWith("color:")?[e("background-color",r||t)]:[e("background-color",t)]}return $(t)?[e("background-size",t)]:/^var\(--[^)]+\)$/.test(t)?[e("background-color",t)]:null},handleCustomProperty:t=>{const r=jr(t);return r?[e(r[0],`var(${r[1]})`)]:[e("background-color",`var(${t})`)]},description:"background-size utility (arbitrary, custom property supported)",category:"background"}),Z("rounded-none",[["border-radius","0px"]],{category:"borders"}),Z("rounded-sm",[["border-radius","var(--radius-sm)"]],{category:"borders"}),Z("rounded",[["border-radius","0.25rem"]],{category:"borders"}),Z("rounded-md",[["border-radius","var(--radius-md)"]],{category:"borders"}),Z("rounded-lg",[["border-radius","var(--radius-lg)"]],{category:"borders"}),Z("rounded-xl",[["border-radius","var(--radius-xl)"]],{category:"borders"}),Z("rounded-2xl",[["border-radius","var(--radius-2xl)"]],{category:"borders"}),Z("rounded-3xl",[["border-radius","var(--radius-3xl)"]],{category:"borders"}),Z("rounded-4xl",[["border-radius","var(--radius-4xl)"]],{category:"borders"}),Z("rounded-xs",[["border-radius","var(--radius-xs)"]],{category:"borders"});var Rr="calc(infinity * 1px)";function Er(t,r){B({name:t,match:e=>e===t,handler:(t,o)=>{const a=U(o,"borderRadius","full"),n=null!=a&&"9999px"!==a&&a!==Rr?"var(--radius-full)":Rr;return r.map(t=>e(t,n))},category:"borders"})}Er("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(([t,r])=>{const o=r,a=o[0].startsWith("border-start")||o[0].startsWith("border-end");Z(`${t}-none`,o.map(t=>[t,a?"0":"0px"]),{category:"borders"}),Z(`${t}-sm`,o.map(t=>[t,"var(--radius-sm)"]),{category:"borders"}),Z(`${t}`,o.map(t=>[t,"0.25rem"]),{category:"borders"}),Z(`${t}-md`,o.map(t=>[t,"var(--radius-md)"]),{category:"borders"}),Z(`${t}-lg`,o.map(t=>[t,"var(--radius-lg)"]),{category:"borders"}),Z(`${t}-xl`,o.map(t=>[t,"var(--radius-xl)"]),{category:"borders"}),Z(`${t}-2xl`,o.map(t=>[t,"var(--radius-2xl)"]),{category:"borders"}),Z(`${t}-3xl`,o.map(t=>[t,"var(--radius-3xl)"]),{category:"borders"}),Z(`${t}-4xl`,o.map(t=>[t,"var(--radius-4xl)"]),{category:"borders"}),Z(`${t}-xs`,o.map(t=>[t,"var(--radius-xs)"]),{category:"borders"}),Er(`${t}-full`,o),Y({name:t,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>!a&&w(t)?`calc(var(--spacing) * ${t})`:H(e,"borderRadius",t,"radius"),handle:t=>o.map(r=>e(r,t)),description:`${t} utility (spacing, arbitrary, custom property support)`,category:"borders"})}),Y({name:"rounded",handle:(t,r,o)=>"rounded"===o.prefix?[e("border-radius",t)]:null,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t,ctx:e})=>w(t)?`calc(var(--spacing) * ${t})`:H(e,"borderRadius",t,"radius"),description:"border-radius utility (spacing, arbitrary, custom property support)",category:"borders"});var Nr=()=>r([n("--baro-border-style","solid")]),Wr=(t,e)=>e?.themeKey&&"DEFAULT"!==e.themeKey?`var(--border-width-${e.themeKey.replace(".","\\.")})`:t,Br=(t,r)=>[Nr(),...t.map(t=>e(t.replace("width","style"),"var(--baro-border-style)")),...t.map(t=>e(t,r))];[["border-0","0px"],["border-2","2px"],["border-4","4px"],["border-8","8px"],["border","1px"]].forEach(([t,e])=>{Z(t,[Nr,["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(([t,r])=>{const o=r,a=t=>[Nr,...o.map(t=>[t.replace("width","style"),"var(--baro-border-style)"]),...o.map(e=>[e,t])];Z(`${t}-0`,a("0px"),{category:"borders"}),Z(`${t}-2`,a("2px"),{category:"borders"}),Z(`${t}-4`,a("4px"),{category:"borders"}),Z(`${t}-8`,a("8px"),{category:"borders"}),Z(`${t}`,a("1px"),{category:"borders"}),Y({name:t,themeKeys:["colors","borderWidth"],supportsOpacity:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`${t}px`:null,handle:(t,r,a,n)=>"borderWidth"===n?.themeNamespace?Br(o,Wr(t,n)):n?.realThemeValue?o.flatMap(e=>A(e.replace("width","color"),t,n)):z(t)?o.map(r=>e(r.replace("width","color"),t)):a.arbitrary||$(t)?Br(o,t):null,handleCustomProperty:t=>t.startsWith("length:")?Br(o,`var(${t.replace("length:","")})`):o.map(r=>e(r.replace("width","color"),`var(${t})`)),description:`${t} utility (number, arbitrary, custom property support)`,category:"borders"})}),Z("border-inherit",[["border-color","inherit"]],{category:"borders"}),Z("border-current",[["border-color","currentColor"]],{category:"borders"}),Z("border-transparent",[["border-color","transparent"]],{category:"borders"}),Z("border-solid",[["--baro-border-style","solid"],["border-style","solid"]],{category:"borders"}),Z("border-dashed",[["--baro-border-style","dashed"],["border-style","dashed"]],{category:"borders"}),Z("border-dotted",[["--baro-border-style","dotted"],["border-style","dotted"]],{category:"borders"}),Z("border-double",[["--baro-border-style","double"],["border-style","double"]],{category:"borders"}),Z("border-hidden",[["--baro-border-style","hidden"],["border-style","hidden"]],{category:"borders"}),Z("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(([t,[r,o,...n]])=>{const s=`--baro-divide-${t}-reverse`,i=t=>[Nr(),a(":where(& > :not(:last-child))",[e(s,"0"),...n.map(t=>e(t,"var(--baro-border-style)")),e(`${r}-width`,`calc(${t} * var(${s}))`),e(`${o}-width`,`calc(${t} * calc(1 - var(${s})))`)])];Z(`divide-${t}`,i("1px"),{category:"borders"}),Z(`divide-${t}-reverse`,[a(":where(& > :not(:last-child))",[e(s,"1")])],{category:"borders"}),Y({name:`divide-${t}`,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?Wr(t,o):t),description:`divide-${t} width utility`,category:"borders"})}),Y({name:"border",themeKeys:["colors","borderWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"borderWidth"===a?.themeNamespace?Br(["border-width"],Wr(t,a)):a?.realThemeValue?A("border-color",t,a):o.arbitrary?$(t)?Br(["border-width"],t):[e("border-color",t)]:w(t)?Br(["border-width"],`${t}px`):z(t)?[e("border-color",t)]:null,handleCustomProperty:t=>t.startsWith("length:")?Br(["border-width"],`var(${t.replace("length:","")})`):[e("border-color",`var(${t})`)],description:"border-width utility (number, arbitrary, custom property support)",category:"borders"});var Tr=()=>r([n("--baro-outline-style","solid")]),Vr=t=>[Tr(),e("outline-style","var(--baro-outline-style)"),e("outline-width",t)];[["outline-0","0px"],["outline-1","1px"],["outline-2","2px"],["outline-4","4px"],["outline-8","8px"]].forEach(([t,e])=>{Z(t,[Tr,["outline-style","var(--baro-outline-style)"],["outline-width",e]],{category:"borders"})}),Z("outline-inherit",[["outline-color","inherit"]],{category:"borders"}),Z("outline-current",[["outline-color","currentColor"]],{category:"borders"}),Z("outline-transparent",[["outline-color","transparent"]],{category:"borders"}),Z("outline-none",[["--baro-outline-style","none"],["outline-style","none"]],{category:"borders"}),Z("outline-hidden",[["--baro-outline-style","none"],["outline-style","none"],o("media","(forced-colors: active)",[e("outline","2px solid transparent"),e("outline-offset","2px")])],{category:"borders"}),Z("outline",[Tr,["outline-style","var(--baro-outline-style)"],["outline-width","1px"]],{category:"borders"}),["solid","dashed","dotted","double"].forEach(t=>{Z(`outline-${t}`,[["--baro-outline-style",t],["outline-style",t]],{category:"borders"})}),Z("outline-offset-0",[["outline-offset","0px"]],{category:"borders"}),Z("outline-offset-1",[["outline-offset","1px"]],{category:"borders"}),Z("outline-offset-2",[["outline-offset","2px"]],{category:"borders"}),Z("outline-offset-4",[["outline-offset","4px"]],{category:"borders"}),Z("outline-offset-8",[["outline-offset","8px"]],{category:"borders"}),Y({name:"outline-offset",prop:"outline-offset",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`${t}px`:null,description:"outline-offset utility (number, arbitrary, custom property support)",category:"borders"}),Y({name:"outline",themeKeys:["colors","outlineWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>"outlineWidth"===a?.themeNamespace?Vr(t):a?.realThemeValue?A("outline-color",t,a):z(t)?[e("outline-color",t)]:w(t)?Vr(`${t}px`):o.arbitrary?$(t)?Vr(t):[e("outline-color",t)]:null,handleCustomProperty:t=>t.startsWith("color:")?[e("outline-color",`var(${t.slice(6)})`)]:t.startsWith("length:")?Vr(`var(${t.replace("length:","")})`):[e("outline-color",`var(${t})`)],description:"outline-color utility (theme colors, arbitrary, custom property support)",category:"borders"}),Y({name:"outline",prop:"outline-width",supportsArbitrary:!0,supportsCustomProperty:!0,handleBareValue:({value:t})=>w(t)?`${t}px`:null,description:"outline-width utility (number, arbitrary, custom property support)",category:"borders"});var Mr=t=>[a(":where(& > :not(:last-child))",[e("border-color",t)])];Z("divide-inherit",Mr("inherit"),{category:"borders"}),Z("divide-current",Mr("currentColor"),{category:"borders"}),Z("divide-transparent",Mr("transparent"),{category:"borders"}),Y({name:"divide",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,e,r,o)=>"divide"!==r.prefix?null:o?.realThemeValue?[a(":where(& > :not(:last-child))",A("border-color",t,o))]:z(t)||/^var\(--[\w-]+\)$/.test(t)?Mr(t):null,handleCustomProperty:(t,e,r)=>"divide"===r.prefix?Mr(`var(${t})`):[],description:"divide-color utility (theme, alpha, arbitrary, custom property)",category:"borders"});var Or="var(--baro-rotate-x,) var(--baro-rotate-y,) var(--baro-rotate-z,) var(--baro-skew-x,) var(--baro-skew-y,)",Fr=(t,r)=>[e(`--baro-rotate-${t}`,r),e("transform",Or)],Kr=(t,r)=>[e(`--baro-skew-${t}`,r),e("transform",Or)],Lr=()=>r([n("--baro-scale-x","1"),n("--baro-scale-y","1"),n("--baro-scale-z","1")]),Dr=(t,r)=>[Lr(),e(`--baro-scale-${t}`,r),e("scale","z"===t?"var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)":"var(--baro-scale-x) var(--baro-scale-y)")];Z("transform-none",[["transform","none"]],{category:"transform"}),Z("transform-gpu",[["transform",`translateZ(0) ${Or}`]],{category:"transform"}),Z("transform-cpu",[["transform",Or]]),Z("transform-3d",[["transform-style","preserve-3d"]],{category:"transform"}),Z("transform-flat",[["transform-style","flat"]],{category:"transform"}),Y({name:"transform",prop:"transform",supportsCustomProperty:!0,handleCustomProperty:t=>[e("transform",`var(${t})`)],description:"transform utility for custom property (transform-(--my-transform))",category:"transform"}),Y({name:"transform",prop:"transform",supportsArbitrary:!0,handle:t=>[e("transform",t)],description:"transform utility for arbitrary value (transform-[...])",category:"transform"}),Z("backface-hidden",[["backface-visibility","hidden"]],{category:"transform"}),Z("backface-visible",[["backface-visibility","visible"]],{category:"transform"}),Z("perspective-dramatic",[["perspective","var(--perspective-dramatic)"]],{category:"transform"}),Z("perspective-near",[["perspective","var(--perspective-near)"]],{category:"transform"}),Z("perspective-normal",[["perspective","var(--perspective-normal)"]],{category:"transform"}),Z("perspective-midrange",[["perspective","var(--perspective-midrange)"]],{category:"transform"}),Z("perspective-distant",[["perspective","var(--perspective-distant)"]],{category:"transform"}),Z("perspective-none",[["perspective","none"]],{category:"transform"}),Z("perspective-origin-center",[["perspective-origin","center"]],{category:"transform"}),Z("perspective-origin-top",[["perspective-origin","top"]],{category:"transform"}),Z("perspective-origin-top-right",[["perspective-origin","top right"]],{category:"transform"}),Z("perspective-origin-right",[["perspective-origin","right"]],{category:"transform"}),Z("perspective-origin-bottom-right",[["perspective-origin","bottom right"]],{category:"transform"}),Z("perspective-origin-bottom",[["perspective-origin","bottom"]],{category:"transform"}),Z("perspective-origin-bottom-left",[["perspective-origin","bottom left"]],{category:"transform"}),Z("perspective-origin-left",[["perspective-origin","left"]],{category:"transform"}),Z("perspective-origin-top-left",[["perspective-origin","top left"]],{category:"transform"}),Y({name:"perspective-origin",prop:"perspective-origin",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective-origin",t)],handleCustomProperty:t=>[e("perspective-origin",`var(${t})`)],description:"perspective-origin utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"perspective",prop:"perspective",supportsArbitrary:!0,supportsCustomProperty:!0,handle:t=>[e("perspective",t)],handleCustomProperty:t=>[e("perspective",`var(${t})`)],description:"perspective utility (named, arbitrary, custom property supported)",category:"transform"}),Z("rotate-none",[["rotate","none"]],{category:"transform"}),Y({name:"rotate-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(w(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return Fr("x",`rotateX(${o}${e})`)}return Fr("x",`rotateX(${t})`)},handleCustomProperty:t=>Fr("x",`rotateX(var(${t}))`),description:"rotate-x utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"rotate-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(w(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return Fr("y",`rotateY(${o}${e})`)}return Fr("y",`rotateY(${t})`)},handleCustomProperty:t=>Fr("y",`rotateY(var(${t}))`),description:"rotate-y utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"rotate-z",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(w(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return Fr("z",`rotateZ(${o}${e})`)}return Fr("z",`rotateZ(${t})`)},handleCustomProperty:t=>Fr("z",`rotateZ(var(${t}))`),description:"rotate-z utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"rotate",prop:"rotate",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(w(t)||o){const r=`${Math.abs(Number(t))}deg`;return o||String(t).startsWith("-")?[e("rotate",`calc(${r} * -1)`)]:[e("rotate",r)]}return[e("rotate",t)]},handleCustomProperty:t=>[e("rotate",`var(${t})`)],description:"rotate utility (named, arbitrary, custom property supported)",category:"transform"}),Z("scale-none",[["scale","none"]],{category:"transform"}),Z("scale-3d",[Lr,["scale","var(--baro-scale-x) var(--baro-scale-y) var(--baro-scale-z)"]],{category:"transform"}),Y({name:"scale-x",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return Dr("x",t);if(w(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return Dr("x",`calc(${e} * ${o}1)`)}return Dr("x",t)},handleCustomProperty:t=>Dr("x",`var(${t})`),description:"scale-x utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"scale-y",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return Dr("y",t);if(w(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return Dr("y",`calc(${e} * ${o}1)`)}return Dr("y",t)},handleCustomProperty:t=>Dr("y",`var(${t})`),description:"scale-y utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"scale-z",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r,arbitrary:o})=>{if(o)return Dr("z",t);if(w(t)||r){const e=`${Math.abs(Number(t))}%`,o=r||String(t).startsWith("-")?"-":"";return Dr("z",`calc(${e} * ${o}1)`)}return Dr("z",t)},handleCustomProperty:t=>Dr("z",`var(${t})`),description:"scale-z utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"scale",prop:"scale",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o,arbitrary:a})=>{if(a)return[e("scale",`${t}`)];if(w(t)||o){const r=`${Math.abs(Number(t))}%`;return o||String(t).startsWith("-")?[e("scale",`calc(${r} * -1) calc(${r} * -1)`)]:[e("scale",`${r} ${r}`)]}return[e("scale",t)]},handleCustomProperty:t=>[e("scale",`var(${t}) var(${t})`)],description:"scale utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"skew-x",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(w(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return Kr("x",`skewX(${o}${e})`)}return Kr("x",`skewX(${t})`)},handleCustomProperty:t=>Kr("x",`skewX(var(${t}))`),description:"skew-x utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"skew-y",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,e,{negative:r})=>{if(w(t)||r){const e=`${Math.abs(Number(t))}deg`,o=r||String(t).startsWith("-")?"-":"";return Kr("y",`skewY(${o}${e})`)}return Kr("y",`skewY(${t})`)},handleCustomProperty:t=>Kr("y",`skewY(var(${t}))`),description:"skew-y utility (named, arbitrary, custom property supported)",category:"transform"}),Y({name:"skew",prop:"transform",supportsArbitrary:!0,supportsCustomProperty:!0,supportsNegative:!0,handle:(t,r,{negative:o})=>{if(w(t)||o){const r=`${Math.abs(Number(t))}deg`,a=o||String(t).startsWith("-")?"-":"";return[e("--baro-skew-x",`skewX(${a}${r})`),e("--baro-skew-y",`skewY(${a}${r})`),e("transform",Or)]}return[e("--baro-skew-x",`skewX(${t})`),e("--baro-skew-y",`skewY(${t})`),e("transform",Or)]},handleCustomProperty:t=>[e("--baro-skew-x",`skewX(var(${t}))`),e("--baro-skew-y",`skewY(var(${t}))`),e("transform",Or)],description:"skew utility (named, arbitrary, custom property supported)",category:"transform"}),Z("origin-center",[["transform-origin","center"]],{category:"transform"}),Z("origin-top",[["transform-origin","top"]],{category:"transform"}),Z("origin-top-right",[["transform-origin","top right"]],{category:"transform"}),Z("origin-right",[["transform-origin","right"]],{category:"transform"}),Z("origin-bottom-right",[["transform-origin","bottom right"]],{category:"transform"}),Z("origin-bottom",[["transform-origin","bottom"]],{category:"transform"}),Z("origin-bottom-left",[["transform-origin","bottom left"]],{category:"transform"}),Z("origin-left",[["transform-origin","left"]],{category:"transform"}),Z("origin-top-left",[["transform-origin","top left"]],{category:"transform"}),Y({name:"origin",prop:"transform-origin",supportsCustomProperty:!0,supportsArbitrary:!0,description:"transform-origin utility for custom property (origin-(--my-transform-origin))",category:"transform"});var _r=()=>r([n("--baro-translate-x","0"),n("--baro-translate-y","0"),n("--baro-translate-z","0")]),Ir=(t,r)=>[_r(),e(`--baro-translate-${t}`,r),e("translate","z"===t?"var(--baro-translate-x) var(--baro-translate-y) var(--baro-translate-z)":"var(--baro-translate-x) var(--baro-translate-y)")],Zr=(t,e)=>[_r,[`--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)"]];Z("translate-none",[["translate","none"]],{category:"transform"}),Z("translate-px",[["translate","1px 1px"]],{category:"transform"}),Z("-translate-px",[["translate","-1px -1px"]],{category:"transform"}),Z("translate-full",[_r,["--baro-translate-x","100%"],["--baro-translate-y","100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),Z("-translate-full",[_r,["--baro-translate-x","-100%"],["--baro-translate-y","-100%"],["translate","var(--baro-translate-x) var(--baro-translate-y)"]],{category:"transform"}),Z("translate-x-px",Zr("x","1px"),{category:"transform"}),Z("-translate-x-px",Zr("x","-1px"),{category:"transform"}),Z("translate-x-full",Zr("x","100%"),{category:"transform"}),Z("-translate-x-full",Zr("x","-100%"),{category:"transform"}),Z("translate-y-px",Zr("y","1px"),{category:"transform"}),Z("-translate-y-px",Zr("y","-1px"),{category:"transform"}),Z("translate-y-full",Zr("y","100%"),{category:"transform"}),Z("-translate-y-full",Zr("y","-100%"),{category:"transform"}),Z("translate-z-px",Zr("z","1px"),{category:"transform"}),Z("-translate-z-px",Zr("z","-1px"),{category:"transform"}),Y({name:"translate-x",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&C(t)){return Ir("x",`calc(${t} * 100%)`)}if(w(t)||r){return Ir("x",`calc(var(--spacing) * ${t})`)}return Ir("x",t)},handleCustomProperty:t=>Ir("x",`var(${t})`),description:"translate-x utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),Y({name:"translate-y",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&C(t)){return Ir("y",`calc(${t} * 100%)`)}if(w(t)||r){return Ir("y",`calc(var(--spacing) * ${t})`)}return Ir("y",t)},handleCustomProperty:t=>Ir("y",`var(${t})`),description:"translate-y utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),Y({name:"translate-z",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,e,{negative:r})=>{if(t.includes("/")&&C(t)){return Ir("z",`calc(${t} * 100%)`)}if(w(t)||r){return Ir("z",`calc(var(--spacing) * ${t})`)}return Ir("z",t)},handleCustomProperty:t=>Ir("z",`var(${t})`),description:"translate-z utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"}),Y({name:"translate",prop:"translate",supportsNegative:!0,supportsArbitrary:!0,supportsCustomProperty:!0,handle:(t,r,{negative:o})=>{if(t.includes("/")&&C(t)){const r=`calc(${t} * 100%)`;return[e("translate",`${r} ${r}`)]}if(w(t)||o){const r=`calc(var(--spacing) * ${t})`;return[e("translate",`${r} ${r}`)]}return[e("translate",`${t} ${t}`)]},handleCustomProperty:t=>[e("translate",`var(${t}) var(${t})`)],description:"translate utility (spacing, fraction, arbitrary, custom property, negative)",category:"transform"});var qr=/^(length|number|percentage):(.+)$/,Ur=/^(\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;Z("fill-inherit",[["fill","inherit"]],{category:"svg"}),Z("fill-current",[["fill","currentColor"]],{category:"svg"}),Z("fill-transparent",[["fill","transparent"]],{category:"svg"}),Z("fill-black",[["fill","#000"]],{category:"svg"}),Z("fill-white",[["fill","#fff"]],{category:"svg"}),Y({name:"fill",themeKeys:["colors"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>a?.realThemeValue?A("fill",t,a):[e("fill",t)],description:"fill utility (static, theme, arbitrary, custom property supported)",category:"svg"}),Z("stroke-inherit",[["stroke","inherit"]],{category:"svg"}),Z("stroke-current",[["stroke","currentColor"]],{category:"svg"}),Z("stroke-transparent",[["stroke","transparent"]],{category:"svg"}),Z("stroke-black",[["stroke","#000"]],{category:"svg"}),Z("stroke-white",[["stroke","#fff"]],{category:"svg"}),Y({name:"stroke",themeKeys:["colors","strokeWidth"],supportsArbitrary:!0,supportsCustomProperty:!0,supportsOpacity:!0,handle:(t,r,o,a)=>{if(w(t)||"strokeWidth"===a?.themeNamespace)return[e("stroke-width",t)];if(o.arbitrary){const r=qr.exec(t);if(r)return[e("stroke-width",r[2])];if(!z(t)&&(Ur.test(t)||/^calc\(/.test(t)))return[e("stroke-width",t)]}return a?.realThemeValue?A("stroke",t,a):[e("stroke",t)]},handleCustomProperty:t=>{const r=qr.exec(t);return r?[e("stroke-width",`var(${r[2]})`)]:[e("stroke",`var(${t})`)]},description:"stroke utility (static, theme, arbitrary, custom property supported)",category:"svg"}),Z("forced-color-adjust-auto",[["forced-color-adjust","auto"]],{category:"accessibility"}),Z("forced-color-adjust-none",[["forced-color-adjust","none"]],{category:"accessibility"}),M("hover",["&:hover"],{order:50,source:"pseudo",wrap:()=>[o("media","(hover: hover)",[])]}),M("focus",["&:focus"],{order:50,source:"pseudo"}),M("active",["&:active"],{order:50,source:"pseudo"}),M("visited",["&:visited"],{order:50,source:"pseudo"}),M("focus-visible",["&:focus-visible"],{order:50,source:"pseudo"}),M("focus-within",["&:focus-within"],{order:50,source:"pseudo"}),M("disabled",["&:disabled"],{source:"pseudo"}),M("checked",["&:checked"],{source:"pseudo"}),M("required",["&:required"],{source:"pseudo"}),M("invalid",["&:invalid"],{source:"pseudo"}),M("enabled",["&:enabled"],{source:"pseudo"}),M("indeterminate",["&:indeterminate"],{source:"pseudo"}),M("default",["&:default"],{source:"pseudo"}),M("optional",["&:optional"],{source:"pseudo"}),M("valid",["&:valid"],{source:"pseudo"}),M("user-valid",["&:user-valid"],{source:"pseudo"}),M("user-invalid",["&:user-invalid"],{source:"pseudo"}),M("in-range",["&:in-range"],{source:"pseudo"}),M("out-of-range",["&:out-of-range"],{source:"pseudo"}),M("placeholder-shown",["&:placeholder-shown"],{source:"pseudo"}),M("autofill",["&:autofill"],{source:"pseudo"}),M("read-only",["&:read-only"],{source:"pseudo"}),M("first",["&:first-child"],{source:"pseudo"}),M("last",["&:last-child"],{source:"pseudo"}),M("only",["&:only-child"],{source:"pseudo"}),M("odd",["&:nth-child(odd)"],{source:"pseudo"}),M("even",["&:nth-child(even)"],{source:"pseudo"}),M("first-of-type",["&:first-of-type"],{source:"pseudo"}),M("last-of-type",["&:last-of-type"],{source:"pseudo"}),M("only-of-type",["&:only-of-type"],{source:"pseudo"}),M("empty",["&:empty"],{source:"pseudo"}),M("prefers-contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),M("prefers-contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),M("contrast-more",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: more)",[],"media")],source:"media"}),M("contrast-less",["&"],{order:5,wrap:()=>[o("media","(prefers-contrast: less)",[],"media")],source:"media"}),M("noscript",["&"],{order:5,wrap:()=>[o("media","(scripting: none)",[],"media")],source:"media"}),M("forced-colors",["&"],{order:5,wrap:()=>[o("media","(forced-colors: active)",[],"media")],source:"media"}),M("pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(pointer: coarse)",[],"media")],source:"media"}),M("pointer-fine",["&"],{order:5,wrap:()=>[o("media","(pointer: fine)",[],"media")],source:"media"}),M("any-pointer-coarse",["&"],{order:5,wrap:()=>[o("media","(any-pointer: coarse)",[],"media")],source:"media"}),M("any-pointer-fine",["&"],{order:5,wrap:()=>[o("media","(any-pointer: fine)",[],"media")],source:"media"}),M("motion-safe",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: no-preference)",[],"media")],source:"media"}),M("motion-reduce",["&"],{order:5,wrap:()=>[o("media","(prefers-reduced-motion: reduce)",[],"media")],source:"media"}),M("print",["&"],{order:5,wrap:()=>[o("media","print",[],"media")],source:"media"}),M("portrait",["&"],{order:5,wrap:()=>[o("media","(orientation: portrait)",[],"media")],source:"media"}),M("landscape",["&"],{order:5,wrap:()=>[o("media","(orientation: landscape)",[],"media")],source:"media"}),M("rtl",["&[dir=rtl]"],{order:20,source:"attribute"}),M("ltr",["&[dir=ltr]"],{order:20,source:"attribute"}),M("inert",["&[inert]"],{order:40,source:"attribute"}),M("open",["&:is([open], :popover-open, :open)"],{order:40,source:"attribute"});var Hr=t=>[r([n("--baro-content",'""')]),...t,...t.some(t=>"decl"===t.type&&"content"===t.prop)?[]:[e("content","var(--baro-content)")]];function Yr(t,e,r,o=!1){const a=`${o?"not ":""}(${"min"===t?"width >=":"width <"} ${e})`;return r?`${r} ${a}`:a}function Gr(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 Xr(t){return t.replace(/\\_|_/g,t=>"_"===t?" ":"_")}function Jr(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:`"${Xr(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 Qr(t){const e=Xr(t);return/^[>+~]/.test(e.trim())||!to(e)?e:`*:is(${e})`}function to(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 eo(t,e){const r=K(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 ro(t,e){const r=Jr(t);if(r)return r;const o=eo(t,e);if(o||!t.startsWith("has-"))return o;const a=K(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 oo(t,e){if(t.startsWith("not-"))return null;const r=K(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 ao(t){const e=/^@(media|supports|container)(?:\s+|(?=\()|$)([\s\S]*)$/.exec(Xr(t).trim());if(!e)return null;const r=e[1];let a=(e[2]??"").trim(),n="";if("container"===r){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||to(a))return null;const s=/^not\s+/i.test(a)?a.replace(/^not\s+/i,""):`not ${a}`;return s?o(r,`${n}${s}`,[],r):null}M("before",["&::before"],{source:"pseudo",astHandler:Hr}),M("after",["&::after"],{source:"pseudo",astHandler:Hr}),M("placeholder",["&::placeholder"],{source:"pseudo"}),M("selection",["& *::selection","&::selection"],{source:"pseudo"}),M("file",["&::file-selector-button"],{source:"pseudo"}),M("marker",["& *::marker","&::marker","& *::-webkit-details-marker","&::-webkit-details-marker"],{source:"pseudo"}),M("details-content",["&::details-content"],{source:"pseudo"}),M("first-line",["&::first-line"],{source:"pseudo"}),M("first-letter",["&::first-letter"],{source:"pseudo"}),M("backdrop",["&::backdrop"],{source:"pseudo"}),M("starting",["&"],{wrap:()=>[o("starting-style","",[],"starting")],source:"starting"}),O((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 r=t.type,a=e.theme("breakpoints")||e.config("theme.breakpoints")||{};if(Object.keys(a).includes(r)){let t=e.theme(`breakpoints.${r}`)||Gr(r);return/^\d*\.?\d+(px|em|rem)?$/.test(t)&&(t=`(min-width: ${t})`),[o("media",t,[],"responsive")]}if(r.startsWith("max-")){const t=r.replace("max-","");if(Object.keys(a).includes(t)){let r=e.theme(`breakpoints.${t}`)||Gr(t);if(r.includes("min-width:")){const t=r.match(/min-width:\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else if(r.includes("width >=")){const t=r.match(/width >=\s*([^)]+)/)?.[1];t&&(r=`(width < ${t})`)}else/^\d*\.?\d+(px|em|rem)?$/.test(r)&&(r=`(width < ${r})`);return[o("media",r,[],"responsive")]}if(/^\[(.*)\]$/.test(t)){const e=t.match(/^\[(.*)\]$/)?.[1];if(e)return[o("media",`(width < ${e})`,[],"responsive")]}}if(/^min-\[(.*)\]$/.test(r)){const t=r.match(/^min-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width >= ${t})`,[],"responsive")]}if(/^max-\[(.*)\]$/.test(r)){const t=r.match(/^max-\[(.*)\]$/)?.[1];if(t)return[o("media",`(width < ${t})`,[],"responsive")]}return[]});O(t=>"dark"===t,void 0,(t,e)=>{const r=(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 r.forEach(t=>{if("media"===t.type){const e=o("media",t.value,[],"dark");n.push(e)}else{const e=a(t.value,[],"dark");n.push(e)}}),n});var no=/^(not-)?@(?:(min|max)-)?(\[[^\]]+\]|[a-zA-Z0-9.]+)(?:\/([a-zA-Z0-9_-]+))?$/;O(t=>no.test(t)&&!/^(?:not-)?@container(?:\/|$)/.test(t),void 0,(t,e)=>{const r=no.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=Yr("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 so=t=>/^[\s_]*@/.test(t);function io(t,e){const r=Jr(t);if(r)return{compound:r};if(/^(has|in|not|group|peer)-|[^a-z0-9-]/.test(t))return;const o=K(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 lo(t,e){const r=/^(has|in)-(.+)$/.exec(t);if(!r)return;const[,o,a]=r;if("in"===o&&/^\[.+\]$/.test(a)){if(so(a.slice(1)))return;const t=Xr(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=io(a,e);return n&&{kind:o,...n}}O(t=>/^has-\[.*\]$/.test(t)&&!so(t.slice(5)),({selector:t,mod:e})=>{const r=/^has-\[(.+)\]$/.exec(e.type);return r?{selector:`&:has(${Qr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}},void 0),O(t=>/^has-(data|aria)-/.test(t)&&!!Jr(t.slice(4)),({mod:t})=>({selector:`&:has(*${Jr(t.type.slice(4))})`,flatten:!1,wrappingType:"rule",source:"attribute"}),void 0);var co=({selector:t,mod:e,context:r})=>{const o=lo(e.type,r);return o?{selector:"has"===o.kind?`&:has(*${o.compound})`:`:where(*${o.compound}) &`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t}};function po(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(so(a.slice(1)))return;const t=Xr(a.slice(1,-1));return{kind:o,base:n,v:a,arg:/^[>+~]/.test(t.trim())?t:`*:is(${t})`}}const s=io(a,e);return s&&{kind:o,base:n,v:a,arg:`*${s.compound}`,inner:s.inner}}O((t,e)=>!!lo(t,e)?.inner?.wrap,co,(t,e)=>lo(t.type,e).inner.wrap({...t,type:t.type.replace(/^(has|in)-/,"")},e)),O((t,e)=>{const r=lo(t,e);return!!r&&!r.inner?.wrap},co);var uo=({selector:t,mod:e,context:r})=>{const o=po(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 go(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}O((t,e)=>!!po(t,e)?.inner?.wrap,uo,(t,e)=>{const r=po(t.type,e);return r.inner.wrap({...t,type:r.v},e)}),O((t,e)=>{const r=po(t,e);return!!r&&!r.inner?.wrap},uo),O((t,e)=>/^not-(?!@)/.test(t)&&!!oo(t.slice(4),e),()=>"&",(t,e)=>{const r=oo(t.type.slice(4),e);return r?[r]:[]}),O(t=>/^not-\[@.*\]$/.test(t)&&!!ao(t.slice(5,-1)),()=>"&",t=>{const e=ao(t.type.slice(5,-1));return e?[e]:[]}),O(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(${Qr(r[1])})`,flatten:!1,wrappingType:"rule",source:"attribute"}:{selector:t,source:"attribute"}}),O(t=>/^not-/.test(t)&&!t.startsWith("not-@")&&!t.startsWith("not-[@"),({selector:t,mod:e,context:r})=>{const o=/^not-(.+)$/.exec(e.type),a=o?ro(o[1],r):null;return o&&!a?null:{selector:a?`&:not(${a})`:t,flatten:!1,wrappingType:"rule",source:"attribute"}}),O(t=>"*"===t,()=>({selector:":is(& > *)",wrappingType:"rule",source:"universal"}),void 0),O(t=>"**"===t,()=>({selector:":is(& *)",wrappingType:"rule",source:"universal"}),void 0),O(t=>/^\[.*\]$/.test(t),({selector:t,mod:e})=>{const r=/^\[(.+)\]$/.exec(e.type);if(!r)return{selector:t};const o=Xr(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),O(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),O(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(${Qr(t)})`,source:"attribute"}}{const t=ro(o,r);return t?{selector:`&:not(${t})`,source:"attribute"}:null}},void 0),O(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),O(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),O(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),O(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),O(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),O(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),O(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),O(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?[o("supports",go(void 0!==e[1]?Xr(e[1]):e[2]),[],"supports")]:[]}),O(t=>/^layer-\[.*\]$/.test(t),void 0,t=>{const e=/^layer-\[(.+)\]$/.exec(t.type);return e?[o("layer",e[1],[])]:[]}),O(t=>/^scope-\[.*\]$/.test(t),void 0,t=>{const e=/^scope-\[(.+)\]$/.exec(t.type);return e?[o("scope",e[1],[])]:[]});var yo=t=>/^(group|peer)-has-\[/.test(t)&&so(t.slice(t.indexOf("[")+1));function ho(t,e){const r=/^(.+)\/([a-zA-Z0-9_-]+)$/.exec(e);return r?[r[1],`.${t}\\/${r[2]}`]:[e,`.${t}`]}function mo(t,e){const r=t.slice(4);if(r.startsWith("[@"))return null;if(r.startsWith("[")&&r.endsWith("]"))return`:not(*:is(${Xr(r.slice(1,-1))}))`;const o=ro(r,e);return o?`:not(${o})`:null}O(t=>/^(group|peer)-hover(\/[a-zA-Z0-9_-]+)?$/.test(t),({mod:t})=>{const e=t.type.startsWith("group")?"group":"peer",[,r]=ho(e,t.type.slice(e.length+1));return{selector:`&:is(:where(${r}):hover${"group"===e?" *":" ~ *"})`,wrappingType:"rule",source:e}},()=>[o("media","(hover: hover)",[])]),O(t=>/^group-(.+)$/.test(t)&&!yo(t),({selector:t,mod:e,context:r})=>{const o=/^group-(.+)$/.exec(e.type),[a,n]=ho("group",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?Jr(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=mo(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(${Qr(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?eo(s[1],r):null;return s&&!c?null:s?{selector:`&:is(${i}${c} *)`,wrappingType:"rule",source:"group"}:{selector:t,source:"group"}},void 0),O(t=>/^peer-(.+)$/.test(t)&&!yo(t),({selector:t,mod:e,context:r})=>{const o=/^peer-(.+)$/.exec(e.type),[a,n]=ho("peer",o?.[1]??""),s=o?[o[0],a]:null,i=`:where(${n})`,l=s?Jr(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(${Qr(c.slice(5,-1))}) ~ *)`,source:"peer"};if(c?.startsWith("has-")){const t=eo(c.slice(4),r);return t?{selector:`&:is(${i}:has(${t})~*)`,source:"peer"}:null}if(c?.startsWith("not-")){const t=mo(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?eo(c,r):null;return s&&!p?null:s?{selector:`&:is(${i}${p}~*)`,source:"peer"}:{selector:t,source:"peer"}},void 0),O(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),O(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 fo=class{constructor(t,e=50,r="barocss-style-partition-",o=t=>rt(t).utility?.category,a=""){this.segments=[],this.specialPartitions=new Map,this.ruleSegment=new Map,this.partitionCounter=0,this.maxRulesPerPartition=50,this.styleIdPrefix="barocss-style-partition-",this.nonce=a,this.insertionPoint=t,this.maxRulesPerPartition=e,this.styleIdPrefix=r,this.getCategory=o,this.segments.push(this.createSegment(void 0,null))}createStyleElement(){const t=document.createElement("style");return this.nonce&&t.setAttribute("nonce",this.nonce),t}createSegment(t,e){const r=this.createStyleElement(),o={id:void 0===t?this.styleIdPrefix+"-"+this.partitionCounter++:this.styleIdPrefix+`-${t}`,styles:[],keys:[],styleElement:r,category:t};r.id=o.id,r.setAttribute("data-barocss","partition"),void 0===t?r.setAttribute("data-partition-index",this.partitionCounter.toString()):r.setAttribute("data-category",t);const a=e?e.styleElement:null,n=this.segments[0]?.styleElement;return a?.parentNode?a.parentNode.insertBefore(r,a.nextSibling):!e&&n?.parentNode?n.parentNode.insertBefore(r,n):this.insertionPoint.appendChild(r),o}createSpecialPartition(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.specialPartitions.set(t,r),r}get currentPartition(){return this.segments[this.segments.length-1]}getCategoryPartition(t){return this.specialPartitions.get(t)??this.segments.find(e=>e.category===t)}hasDetachedPartitions(){return[...this.segments,...this.specialPartitions.values()].some(t=>!t.styleElement.isConnected)}escapeCssRule(t){return t.replace(/\\\//g,"\\/")}insertAt(t,e,r,o){const a=t.keys??=[],n=t.styleElement.sheet;n&&n.cssRules.length===a.length?(n.insertRule(this.escapeCssRule(r),e),t.styles.splice(e,0,r)):(t.styles.splice(e,0,r),t.styleElement.textContent=t.styles.join("\n")+"\n"),a.splice(e,0,o),this.ruleSegment.set(r,t)}split(t,e){const r=this.segments[t],o=this.createSegment(r.category,r);this.segments.splice(t+1,0,o);const a=r.styles.splice(e),n=r.keys.splice(e),s=r.styleElement.sheet;if(s&&s.cssRules.length===r.styles.length+a.length)for(let i=s.cssRules.length-1;i>=e;i--)s.deleteRule(i);else r.styleElement.textContent=r.styles.length?r.styles.join("\n")+"\n":"";o.styles=a,o.keys=n,o.styleElement.textContent=a.length?a.join("\n")+"\n":"";for(const i of a)this.ruleSegment.set(i,o);return o}hasRoom(t){return t.styles.length<this.maxRulesPerPartition}place(t,e,r){if(this.ruleSegment.has(t))return!1;const o=oe(t,r);let a=this.segments.findIndex(t=>{const e=t.keys;return e.length>0&&ae(e[e.length-1],o)>0});-1===a&&(a=this.segments.length);const n=a<this.segments.length?ne(this.segments[a].keys,o):0,s=this.segments.some(t=>t.category===e);if(n>0){const r=this.segments[a];if(s&&this.hasRoom(r))return this.insertAt(r,n,t,o),!0;if(this.split(a,n),s)return this.insertAt(r,n,t,o),!0;const i=this.createSegment(e,r);return this.segments.splice(a+1,0,i),this.insertAt(i,0,t,o),!0}let i=a-1;for(;i>0&&0===this.segments[i].styles.length;)i--;const l=[];if(s)for(let d=Math.max(i,0);d<=a&&d<this.segments.length;d++)this.hasRoom(this.segments[d])&&l.push(d);const c=l.find(t=>this.segments[t].category===e)??l[0];if(void 0!==c){const e=this.segments[c];return this.insertAt(e,c===a?0:e.styles.length,t,o),!0}const p=a>0?this.segments[a-1]:null,u=this.createSegment(e,p);return this.segments.splice(a,0,u),this.insertAt(u,0,t,o),!0}hasRule(t){return this.ruleSegment.has(t)}hasCategoryRule(t,e){return this.ruleSegment.has(t)}addRule(t,e){return this.tryPlace(t,void 0,e)}addCategoryRule(t,e,r){return this.tryPlace(t,e,r)}tryPlace(t,e,r){try{return this.place(t,e,r)}catch(o){return i()&&console.warn(`[StylePartitionManager] Failed to insert rule${e?` in category: ${e}`:""}: ${t}`,o),!1}}addRootRules(t){const e=this.specialPartitions.get("root")??this.createSpecialPartition("root"),r=e.styleElement.sheet;let o=0,a=0;for(const s of t)if(s&&s.trim())try{r?r.insertRule(this.escapeCssRule(s),r.cssRules.length):e.styleElement.textContent+=s+"\n",o++}catch(n){a++,i()&&console.warn(`[StylePartitionManager] Failed to insert rule in category: root ${s}`,n)}return{success:o,failed:a}}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,o.cls):this.addRule(a,o.cls)?e++:r++}return{success:e,failed:r}}removeRule(t,e){const r=this.ruleSegment.get(t);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":"",this.ruleSegment.delete(t),!0}get ruleCount(){return this.ruleSegment.size}findRulePartition(t){return this.ruleSegment.get(t)??null}updateRuleContent(t,e,r=!1){const o=this.specialPartitions.get(t);if(o)o.styleElement.textContent=e;else{const o=this.createSpecialPartition(t,r);i()&&console.log(`[StylePartitionManager] Created new partition for category: ${t}`),o.styleElement.textContent=e}}cleanup(){for(const t of[...this.segments,...this.specialPartitions.values()])t.styleElement.parentNode?.removeChild(t.styleElement);this.segments=[],this.specialPartitions.clear(),this.partitionCounter=0,this.ruleSegment.clear()}},bo=/[ \t\n\f\r]+/;function vo(t){return t?"object"==typeof t&&"string"==typeof t.baseVal?t.baseVal:t.toString():""}function xo(t){return t?vo(t).split(bo).filter(Boolean):[]}var ko=class{constructor(t,e,r=t=>rt(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=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&&xo(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=new Set,o=t.className;o&&xo(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=xo(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&&xo(t.className).forEach(t=>{this.incrementalParser.isProcessed(t)||e.add(t)})}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null)}};function wo(t){return t.replace(/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,(t,e,r)=>e?String.fromCodePoint(parseInt(e,16)):r)}var $o=/^\s*(?::(?:where|is)\(\s*)?\.((?:\\[0-9a-fA-F]{1,6}\s?|\\.|[\w-]|[^\x00-\x7F])+)/;function Co(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 Po(t,e=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&&Po(t,e)}return e}function zo(t,e=new Set){for(const r of Array.from(t)){const t=r.selectorText;if("string"==typeof t)for(const r of Co(t)){const t=$o.exec(r);t&&e.add(wo(t[1]))}const o=r.cssRules;o&&o.length&&zo(o,e)}return e}var So=class{constructor(t,e,r,o=()=>Date.now()){this.host=t,this.graceMs=e,this.maxRules=r,this.now=o,this.counts=new Map,this.counted=new WeakMap,this.candidates=new Map,this.timer=null,this.root=null}setRoot(t){this.counts.clear(),this.counted=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(xo(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 Ao(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 jo(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 Ro=t=>t.replace(/\\\//g,"\\/"),Eo=/^\s*@property\s/,No=null;var Wo=class{constructor(t,e,r=t,o={}){this.results=new Map,this.generations=0,this.prologueSheet=null,this.rulesSheet=null,this.prologue={props:"",preflight:"",vars:""},this.fallbackProps=new Set,this.segments=new Map([["root",{rules:[],keys:[]}],["",{rules:[],keys:[]}]]),this.refs=new Map,this.attached=[],this.key=t,this.fullKey=r,this.context=o.context??Se(e),this.constructable=jo(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)Eo.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,r){const o=this.refs.get(t);if(void 0!==o)return this.refs.set(t,o+1),!0;let a=this.segments.get(e);a||(a={rules:[],keys:[]},this.segments.set(e,a));const n="root"===e,s=oe(t,r),l=n?a.rules.length:ne(a.keys,s),c=this.offset(a)+l;try{this.insertAt(t,c)}catch(p){return i()&&console.warn(`[BrowserRuntime] Failed to insert rule into shadow root sheet: ${t}`,p),!1}return a.rules.splice(l,0,t),a.keys.splice(l,0,s),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=Ro(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")}},Bo=new Map;function To(t,e=Ao){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=Bo.get(r);return o||(o=new Wo(e(r),t,r),Bo.set(r,o)),o}var Vo,Mo=class extends me{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}},Oo=class{constructor(t,e,r=t=>rt(t).utility?.category,o={}){this.shared=t,this.root=e,this.getCategory=r,this.opts=o,this.owned=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,r){return!this.owned.has(t)&&(11===this.root.nodeType&&Eo.test(t)&&(function(t,e,r={}){const o=e.filter(t=>Eo.test(t));if(0===o.length)return!0;try{if(!t)return!1;if(!No||No.doc!==t||No.style&&!No.style.isConnected){const e={doc:t,rules:new Set};if(r.constructable&&jo("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}No=e}const e=No;for(const t of o){if(e.rules.has(t))continue;const r=e.sheet??e.style?.sheet??null;r?r.insertRule(Ro(t),r.cssRules.length):e.style&&(e.style.textContent+=`${t}\n`),e.rules.add(t)}return!0}catch(a){return i()&&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,r)&&(this.owned.add(t),!0))}addRule(t,e){return this.take(t,"",e)}addCategoryRule(t,e,r){return this.take(t,"",r)}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,o.cls):this.addRule(a,o.cls))?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&&Bo.get(t.fullKey)===t&&Bo.delete(t.fullKey)}},Fo="style[data-barocss-ssr]",Ko="@layer theme, base, components, utilities;",Lo=class{constructor(t={}){this.cache=new Map,this.rootCache=new Set,this.shadowRoot=null,this.isDestroyed=!1,this.existing=null,this.existingKeyframes=new Set,this.existingSheetCount=-1,this.pinned=new Set,this.gc=null,this.reclaimedCount=0,this.ssrRules=[],this.ssrClasses=new Set,this.observedOnce=!1,this.getCategory=t=>rt(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=To(this.options.config);this.context=t.context,this.incrementalParser=new Mo(t)}else this.context=Se(this.options.config),this.incrementalParser=new me(this.context);this.changeDetector=new ko(this.incrementalParser,this,this.getCategory),this.stylePartitionManager=this.createStyles(),this.options.gc&&(this.gc=new So({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=To(this.options.config);return e!==t&&(t=e,this.context=t.context,this.incrementalParser=new Mo(t),this.changeDetector?.setParser(this.incrementalParser)),new Oo(t,this.shadowRoot,this.getCategory,{nonce:this.options.nonce,constructable:this.options.constructable})}if(this.options.constructable&&"undefined"!=typeof document&&jo("document")){const t=new Wo("document",this.options.config,"document",{context:this.context,target:"document"});return new Oo(t,document,this.getCategory)}return new fo(this.getInsertionPoint(),this.options.maxRulesPerPartition,`${this.options.styleId}-partition`,this.getCategory,this.options.nonce)}debugLog(t,e,r){i()&&(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(`${Fo}: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=zo([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,r):this.stylePartitionManager.addRule(e,r)}}injectPreflightCSS(){const t=this.options.config.preflight??!0;if(t){const e=this.context.getPreflightCSS(t);this.stylePartitionManager.updateRuleContent("preflight",`${Ko}\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=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=new Set,o=new Set;for(const a of e){let t;try{t=a.cssRules}catch{continue}zo(t,r),Po(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(xo)}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)?x(t):(m(),se.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=To(t);this.context=e.context,this.incrementalParser=new Mo(e)}else this.context=Se(t),this.incrementalParser=new me(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 Oo,sharedSheet:this.shadowRoot&&this.stylePartitionManager instanceof Oo?{roots:this.stylePartitionManager.shared.rootCount,rules:this.stylePartitionManager.shared.ruleCount,generations:this.stylePartitionManager.shared.generations,constructable:this.stylePartitionManager.shared.constructable}:null}}},Do=null,_o="",Io=!1,Zo=!1;function qo(t={}){if(!Do||Do.getStats().isDestroyed?(Do=new Lo(t),Vo=t.config,_o=t.nonce??"",Io=t.constructable??!1,Zo=!1):t.config&&t.config!==Vo&&(Do.updateConfig(t.config),Vo=t.config),!Zo){const e=void 0!==t.nonce&&t.nonce!==_o,r=void 0!==t.constructable&&t.constructable!==Io;if(e||r){Zo=!0;const t=[e&&`nonce (runtime has ${_o?"a different nonce":"none"})`,r&&`constructable (runtime has ${Io})`].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 Do}function Uo({loadingClassName:t="baro-boot",...e}={}){if(e.root&&11===e.root.nodeType)return new Lo(e);if(!document.body)return void document.addEventListener("DOMContentLoaded",()=>Uo({loadingClassName:t,...e}),{once:!0});const r=`${t}-doing`,o=`${t}-done`;try{document.body.classList.add(r),qo(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 Ho=Uo;function Yo(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=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 xo(n))e&&r.add(e)}return Array.from(r)}var Go={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)"}};t.BrowserRuntime=Lo,t.ChangeDetector=ko,t.LAYER_ORDER=Ko,t.SSR_STYLE_SELECTOR=Fo,t.StylePartitionManager=fo,t.baroBoot=Uo,t.baroStart=Ho,t.collectJsonRenderClassNames=Yo,t.getRuntime=qo,t.normalizeClassName=vo,t.normalizeClassNameList=xo,t.preloadJsonRenderClasses=function(t,e){const r=Yo(t);r.length>0&&e.addClass(r)},t.shadcnTheme=Go});
|
|
2
2
|
//# sourceMappingURL=barocss.umd.cjs.map
|