UNPKG

tailwindcss

Version:

A utility-first CSS framework for rapidly building custom user interfaces.

12 lines • 223 kB
"use strict";var fi=Object.defineProperty;var pi=(t,r)=>{for(var i in r)fi(t,i,{get:r[i],enumerable:!0})};var mt={};pi(mt,{Features:()=>Ve,Polyfills:()=>Ze,__unstable__loadDesignSystem:()=>Yn,compile:()=>Gn,compileAst:()=>ci,default:()=>Le});var jt="4.1.5";var Re=92,Me=47,We=42,mi=34,gi=39,hi=58,Be=59,he=10,Oe=32,qe=9,zt=123,ht=125,kt=40,It=41,vi=91,wi=93,Ft=45,vt=64,ki=33;function ve(t){t[0]==="\uFEFF"&&(t=t.slice(1)),t=t.replaceAll(`\r `,` `);let r=[],i=[],e=[],n=null,s=null,a="",p="",u;for(let c=0;c<t.length;c++){let m=t.charCodeAt(c);if(m===Re)a+=t.slice(c,c+2),c+=1;else if(m===Me&&t.charCodeAt(c+1)===We){let g=c;for(let w=c+2;w<t.length;w++)if(u=t.charCodeAt(w),u===Re)w+=1;else if(u===We&&t.charCodeAt(w+1)===Me){c=w+1;break}let h=t.slice(g,c+1);h.charCodeAt(2)===ki&&i.push(He(h.slice(2,-2)))}else if(m===gi||m===mi){let g=c;for(let h=c+1;h<t.length;h++)if(u=t.charCodeAt(h),u===Re)h+=1;else if(u===m){c=h;break}else{if(u===Be&&t.charCodeAt(h+1)===he)throw new Error(`Unterminated string: ${t.slice(g,h+1)+String.fromCharCode(m)}`);if(u===he)throw new Error(`Unterminated string: ${t.slice(g,h)+String.fromCharCode(m)}`)}a+=t.slice(g,c+1)}else{if((m===Oe||m===he||m===qe)&&(u=t.charCodeAt(c+1))&&(u===Oe||u===he||u===qe))continue;if(m===he){if(a.length===0)continue;u=a.charCodeAt(a.length-1),u!==Oe&&u!==he&&u!==qe&&(a+=" ")}else if(m===Ft&&t.charCodeAt(c+1)===Ft&&a.length===0){let g="",h=c,w=-1;for(let A=c+2;A<t.length;A++)if(u=t.charCodeAt(A),u===Re)A+=1;else if(u===Me&&t.charCodeAt(A+1)===We){for(let b=A+2;b<t.length;b++)if(u=t.charCodeAt(b),u===Re)b+=1;else if(u===We&&t.charCodeAt(b+1)===Me){A=b+1;break}}else if(w===-1&&u===hi)w=a.length+A-h;else if(u===Be&&g.length===0){a+=t.slice(h,A),c=A;break}else if(u===kt)g+=")";else if(u===vi)g+="]";else if(u===zt)g+="}";else if((u===ht||t.length-1===A)&&g.length===0){c=A-1,a+=t.slice(h,A);break}else(u===It||u===wi||u===ht)&&g.length>0&&t[A]===g[g.length-1]&&(g=g.slice(0,-1));let v=wt(a,w);if(!v)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(v):r.push(v),a=""}else if(m===Be&&a.charCodeAt(0)===vt)s=Pe(a),n?n.nodes.push(s):r.push(s),a="",s=null;else if(m===Be&&p[p.length-1]!==")"){let g=wt(a);if(!g)throw a.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${a.trim()}\``);n?n.nodes.push(g):r.push(g),a=""}else if(m===zt&&p[p.length-1]!==")")p+="}",s=W(a.trim()),n&&n.nodes.push(s),e.push(n),n=s,a="",s=null;else if(m===ht&&p[p.length-1]!==")"){if(p==="")throw new Error("Missing opening {");if(p=p.slice(0,-1),a.length>0)if(a.charCodeAt(0)===vt)s=Pe(a),n?n.nodes.push(s):r.push(s),a="",s=null;else{let h=a.indexOf(":");if(n){let w=wt(a,h);if(!w)throw new Error(`Invalid declaration: \`${a.trim()}\``);n.nodes.push(w)}}let g=e.pop()??null;g===null&&n&&r.push(n),n=g,a="",s=null}else if(m===kt)p+=")",a+="(";else if(m===It){if(p[p.length-1]!==")")throw new Error("Missing opening (");p=p.slice(0,-1),a+=")"}else{if(a.length===0&&(m===Oe||m===he||m===qe))continue;a+=String.fromCharCode(m)}}}if(a.charCodeAt(0)===vt&&r.push(Pe(a)),p.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return i.length>0?i.concat(r):r}function Pe(t,r=[]){for(let i=5;i<t.length;i++){let e=t.charCodeAt(i);if(e===Oe||e===kt){let n=t.slice(0,i).trim(),s=t.slice(i).trim();return z(n,s,r)}}return z(t.trim(),"",r)}function wt(t,r=t.indexOf(":")){if(r===-1)return null;let i=t.indexOf("!important",r+1);return l(t.slice(0,r).trim(),t.slice(r+1,i===-1?t.length:i).trim(),i!==-1)}function fe(t){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(t),i=r.length,e=-1,n,s="",a=r.charCodeAt(0);if(i===1&&a===45)return"\\"+r;for(;++e<i;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&a===45){s+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+="\\"+r.charAt(e)}return s}function we(t){return t.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,r=>r.length>2?String.fromCodePoint(Number.parseInt(r.slice(1).trim(),16)):r[1])}var Mt=new Map([["--font",["--font-weight","--font-size"]],["--inset",["--inset-shadow","--inset-ring"]],["--text",["--text-color","--text-decoration-color","--text-decoration-thickness","--text-indent","--text-shadow","--text-underline-offset"]]]);function Lt(t,r){return(Mt.get(r)??[]).some(i=>t===i||t.startsWith(`${i}-`))}var Ge=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;add(r,i,e=0){if(r.endsWith("-*")){if(i!=="initial")throw new Error(`Invalid theme value \`${i}\` for namespace \`${r}\``);r==="--*"?this.values.clear():this.clearNamespace(r.slice(0,-2),0)}if(e&4){let n=this.values.get(r);if(n&&!(n.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:e})}keysInNamespaces(r){let i=[];for(let e of r){let n=`${e}-`;for(let s of this.values.keys())s.startsWith(n)&&s.indexOf("--",2)===-1&&(Lt(s,e)||i.push(s.slice(n.length)))}return i}get(r){for(let i of r){let e=this.values.get(i);if(e)return e.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=we(this.#r(r)),this.values.get(r)?.options??0}entries(){return this.prefix?Array.from(this.values,r=>(r[0]=this.prefixKey(r[0]),r)):this.values.entries()}prefixKey(r){return this.prefix?`--${this.prefix}-${r.slice(2)}`:r}#r(r){return this.prefix?`--${r.slice(3+this.prefix.length)}`:r}clearNamespace(r,i){let e=Mt.get(r)??[];e:for(let n of this.values.keys())if(n.startsWith(r)){if(i!==0&&(this.getOptions(n)&i)!==i)continue;for(let s of e)if(n.startsWith(s))continue e;this.values.delete(n)}}#e(r,i){for(let e of i){let n=r!==null?`${e}-${r}`:e;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${e}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!Lt(n,e))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let e=null;return i.options&2&&(e=i.value),`var(${fe(this.prefixKey(r))}${e?`, ${e}`:""})`}markUsedVariable(r){let i=we(this.#r(r)),e=this.values.get(i);if(!e)return!1;let n=e.options&16;return e.options|=16,!n}resolve(r,i,e=0){let n=this.#e(r,i);if(!n)return null;let s=this.values.get(n);return(e|s.options)&1?s.value:this.#t(n)}resolveValue(r,i){let e=this.#e(r,i);return e?this.values.get(e).value:null}resolveWith(r,i,e=[]){let n=this.#e(r,i);if(!n)return null;let s={};for(let p of e){let u=`${n}${p}`,c=this.values.get(u);c&&(c.options&1?s[p]=c.value:s[p]=this.#t(u))}let a=this.values.get(n);return a.options&1?[a.value,s]:[this.#t(n),s]}namespace(r){let i=new Map,e=`${r}-`;for(let[n,s]of this.values)n===r?i.set(null,s.value):n.startsWith(`${e}-`)?i.set(n.slice(r.length),s.value):n.startsWith(e)&&i.set(n.slice(e.length),s.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var B=class extends Map{constructor(i){super();this.factory=i}get(i){let e=super.get(i);return e===void 0&&(e=this.factory(i,this),this.set(i,e)),e}};function yt(t){return{kind:"word",value:t}}function bi(t,r){return{kind:"function",value:t,nodes:r}}function yi(t){return{kind:"separator",value:t}}function te(t,r,i=null){for(let e=0;e<t.length;e++){let n=t[e],s=!1,a=0,p=r(n,{parent:i,replaceWith(u){s||(s=!0,Array.isArray(u)?u.length===0?(t.splice(e,1),a=0):u.length===1?(t[e]=u[0],a=1):(t.splice(e,1,...u),a=u.length):t[e]=u)}})??0;if(s){p===0?e--:e+=a-1;continue}if(p===2)return 2;if(p!==1&&n.kind==="function"&&te(n.nodes,r,n)===2)return 2}}function J(t){let r="";for(let i of t)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+J(i.nodes)+")"}return r}var Wt=92,xi=41,Bt=58,qt=44,Ai=34,Ht=61,Gt=62,Yt=60,Jt=10,Ci=40,Ni=39,Qt=47,Zt=32,Xt=9;function H(t){t=t.replaceAll(`\r `,` `);let r=[],i=[],e=null,n="",s;for(let a=0;a<t.length;a++){let p=t.charCodeAt(a);switch(p){case Wt:{n+=t[a]+t[a+1],a++;break}case Bt:case qt:case Ht:case Gt:case Yt:case Jt:case Qt:case Zt:case Xt:{if(n.length>0){let g=yt(n);e?e.nodes.push(g):r.push(g),n=""}let u=a,c=a+1;for(;c<t.length&&(s=t.charCodeAt(c),!(s!==Bt&&s!==qt&&s!==Ht&&s!==Gt&&s!==Yt&&s!==Jt&&s!==Qt&&s!==Zt&&s!==Xt));c++);a=c-1;let m=yi(t.slice(u,c));e?e.nodes.push(m):r.push(m);break}case Ni:case Ai:{let u=a;for(let c=a+1;c<t.length;c++)if(s=t.charCodeAt(c),s===Wt)c+=1;else if(s===p){a=c;break}n+=t.slice(u,a+1);break}case Ci:{let u=bi(n,[]);n="",e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case xi:{let u=i.pop();if(n.length>0){let c=yt(n);u.nodes.push(c),n=""}i.length>0?e=i[i.length-1]:e=null;break}default:n+=String.fromCharCode(p)}}return n.length>0&&r.push(yt(n)),r}function Ye(t){let r=[];return te(H(t),i=>{if(!(i.kind!=="function"||i.value!=="var"))return te(i.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||r.push(e.value)}),1}),r}var Vi=64;function L(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function z(t,r="",i=[]){return{kind:"at-rule",name:t,params:r,nodes:i}}function W(t,r=[]){return t.charCodeAt(0)===Vi?Pe(t,r):L(t,r)}function l(t,r,i=!1){return{kind:"declaration",property:t,value:r,important:i}}function He(t){return{kind:"comment",value:t}}function le(t,r){return{kind:"context",context:t,nodes:r}}function D(t){return{kind:"at-root",nodes:t}}function I(t,r,i=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],a=i[i.length-1]??null;if(s.kind==="context"){if(I(s.nodes,r,i,{...e,...s.context})===2)return 2;continue}i.push(s);let p=!1,u=0,c=r(s,{parent:a,context:e,path:i,replaceWith(m){p||(p=!0,Array.isArray(m)?m.length===0?(t.splice(n,1),u=0):m.length===1?(t[n]=m[0],u=1):(t.splice(n,1,...m),u=m.length):(t[n]=m,u=1))}})??0;if(i.pop(),p){c===0?n--:n+=u-1;continue}if(c===2)return 2;if(c!==1&&"nodes"in s){i.push(s);let m=I(s.nodes,r,i,e);if(i.pop(),m===2)return 2}}}function Je(t,r,i=[],e={}){for(let n=0;n<t.length;n++){let s=t[n],a=i[i.length-1]??null;if(s.kind==="rule"||s.kind==="at-rule")i.push(s),Je(s.nodes,r,i,e),i.pop();else if(s.kind==="context"){Je(s.nodes,r,i,{...e,...s.context});continue}i.push(s),r(s,{parent:a,context:e,path:i,replaceWith(p){Array.isArray(p)?p.length===0?t.splice(n,1):p.length===1?t[n]=p[0]:t.splice(n,1,...p):t[n]=p,n+=p.length-1}}),i.pop()}}function ke(t,r,i=3){let e=[],n=new Set,s=new B(()=>new Set),a=new B(()=>new Set),p=new Set,u=new Set,c=[],m=[],g=new B(()=>new Set);function h(v,A,b={},y=0){if(v.kind==="declaration"){if(v.property==="--tw-sort"||v.value===void 0||v.value===null)return;if(b.theme&&v.property[0]==="-"&&v.property[1]==="-"){if(v.value==="initial"){v.value=void 0;return}b.keyframes||s.get(A).add(v)}if(v.value.includes("var("))if(b.theme&&v.property[0]==="-"&&v.property[1]==="-")for(let V of Ye(v.value))g.get(V).add(v.property);else r.trackUsedVariables(v.value);if(v.property==="animation")for(let V of er(v.value))u.add(V);i&2&&v.value.includes("color-mix(")&&a.get(A).add(v),A.push(v)}else if(v.kind==="rule")if(v.selector==="&")for(let V of v.nodes){let T=[];h(V,T,b,y+1),T.length>0&&A.push(...T)}else{let V={...v,nodes:[]};for(let T of v.nodes)h(T,V.nodes,b,y+1);V.nodes.length>0&&A.push(V)}else if(v.kind==="at-rule"&&v.name==="@property"&&y===0){if(n.has(v.params))return;if(i&1){let T=v.params,R=null,_=!1;for(let j of v.nodes)j.kind==="declaration"&&(j.property==="initial-value"?R=j.value:j.property==="inherits"&&(_=j.value==="true"));_?c.push(l(T,R??"initial")):m.push(l(T,R??"initial"))}n.add(v.params);let V={...v,nodes:[]};for(let T of v.nodes)h(T,V.nodes,b,y+1);A.push(V)}else if(v.kind==="at-rule"){v.name==="@keyframes"&&(b={...b,keyframes:!0});let V={...v,nodes:[]};for(let T of v.nodes)h(T,V.nodes,b,y+1);v.name==="@keyframes"&&b.theme&&p.add(V),(V.nodes.length>0||V.name==="@layer"||V.name==="@charset"||V.name==="@custom-media"||V.name==="@namespace"||V.name==="@import")&&A.push(V)}else if(v.kind==="at-root")for(let V of v.nodes){let T=[];h(V,T,b,0);for(let R of T)e.push(R)}else if(v.kind==="context"){if(v.context.reference)return;for(let V of v.nodes)h(V,A,{...b,...v.context},y)}else v.kind==="comment"&&A.push(v)}let w=[];for(let v of t)h(v,w,{},0);e:for(let[v,A]of s)for(let b of A){if(tr(b.property,r.theme,g)){if(b.property.startsWith(r.theme.prefixKey("--animate-")))for(let T of er(b.value))u.add(T);continue}let V=v.indexOf(b);if(v.splice(V,1),v.length===0){let T=Si(w,R=>R.kind==="rule"&&R.nodes===v);if(!T||T.length===0)continue e;T.unshift({kind:"at-root",nodes:w});do{let R=T.pop();if(!R)break;let _=T[T.length-1];if(!_||_.kind!=="at-root"&&_.kind!=="at-rule")break;let j=_.nodes.indexOf(R);if(j===-1)break;_.nodes.splice(j,1)}while(!0);continue e}}for(let v of p)if(!u.has(v.params)){let A=e.indexOf(v);e.splice(A,1)}if(w=w.concat(e),i&2)for(let[v,A]of a)for(let b of A){let y=v.indexOf(b);if(y===-1||b.value==null)continue;let V=H(b.value),T=!1;if(te(V,(j,{replaceWith:P})=>{if(j.kind!=="function"||j.value!=="color-mix")return;let Y=!1,M=!1;if(te(j.nodes,(F,{replaceWith:re})=>{if(F.kind=="word"&&F.value.toLowerCase()==="currentcolor"){M=!0,T=!0;return}let X=F,se=null,o=new Set;do{if(X.kind!=="function"||X.value!=="var")return;let f=X.nodes[0];if(!f||f.kind!=="word")return;let d=f.value;if(o.has(d)){Y=!0;return}if(o.add(d),T=!0,se=r.theme.resolveValue(null,[f.value]),!se){Y=!0;return}if(se.toLowerCase()==="currentcolor"){M=!0;return}se.startsWith("var(")?X=H(se)[0]:X=null}while(X);re({kind:"word",value:se})}),Y||M){let F=j.nodes.findIndex(X=>X.kind==="separator"&&X.value.trim().includes(","));if(F===-1)return;let re=j.nodes.length>F?j.nodes[F+1]:null;if(!re)return;P(re)}else if(T){let F=j.nodes[2];F.kind==="word"&&(F.value==="oklab"||F.value==="oklch"||F.value==="lab"||F.value==="lch")&&(F.value="srgb")}}),!T)continue;let R={...b,value:J(V)},_=W("@supports (color: color-mix(in lab, red, red))",[b]);v.splice(y,1,R,_)}if(i&1){let v=[];if(c.length>0&&v.push(W(":root, :host",c)),m.length>0&&v.push(W("*, ::before, ::after, ::backdrop",m)),v.length>0){let A=w.findIndex(b=>!(b.kind==="comment"||b.kind==="at-rule"&&(b.name==="@charset"||b.name==="@import")));w.splice(A<0?w.length:A,0,z("@layer","properties",[])),w.push(W("@layer properties",[z("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",v)]))}}return w}function ie(t){function r(e,n=0){let s="",a=" ".repeat(n);if(e.kind==="declaration")s+=`${a}${e.property}: ${e.value}${e.important?" !important":""}; `;else if(e.kind==="rule"){s+=`${a}${e.selector} { `;for(let p of e.nodes)s+=r(p,n+1);s+=`${a}} `}else if(e.kind==="at-rule"){if(e.nodes.length===0)return`${a}${e.name} ${e.params}; `;s+=`${a}${e.name}${e.params?` ${e.params} `:" "}{ `;for(let p of e.nodes)s+=r(p,n+1);s+=`${a}} `}else if(e.kind==="comment")s+=`${a}/*${e.value}*/ `;else if(e.kind==="context"||e.kind==="at-root")return"";return s}let i="";for(let e of t){let n=r(e);n!==""&&(i+=n)}return i}function Si(t,r){let i=[];return I(t,(e,{path:n})=>{if(r(e))return i=[...n],2}),i}function tr(t,r,i,e=new Set){if(e.has(t)||(e.add(t),r.getOptions(t)&24))return!0;{let s=i.get(t)??[];for(let a of s)if(tr(a,r,i,e))return!0}return!1}function er(t){return t.split(/[\s,]+/)}var xt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Xe=["anchor-size"],rr=new RegExp(`(${Xe.join("|")})\\(`,"g");function _e(t){return t.indexOf("(")!==-1&&xt.some(r=>t.includes(`${r}(`))}function ir(t){if(!xt.some(n=>t.includes(n)))return t;let r=!1;Xe.some(n=>t.includes(n))&&(rr.lastIndex=0,t=t.replace(rr,(n,s)=>(r=!0,`$${Xe.indexOf(s)}$(`)));let i="",e=[];for(let n=0;n<t.length;n++){let s=t[n];if(s==="("){i+=s;let a=n;for(let u=n-1;u>=0;u--){let c=t.charCodeAt(u);if(c>=48&&c<=57)a=u;else if(c>=97&&c<=122)a=u;else break}let p=t.slice(a,n);if(xt.includes(p)){e.unshift(!0);continue}else if(e[0]&&p===""){e.unshift(!0);continue}e.unshift(!1);continue}else if(s===")")i+=s,e.shift();else if(s===","&&e[0]){i+=", ";continue}else{if(s===" "&&e[0]&&i[i.length-1]===" ")continue;if((s==="+"||s==="*"||s==="/"||s==="-")&&e[0]){let a=i.trimEnd(),p=a[a.length-1];if(p==="+"||p==="*"||p==="/"||p==="-"){i+=s;continue}else if(p==="("||p===","){i+=s;continue}else t[n-1]===" "?i+=`${s} `:i+=` ${s} `}else if(e[0]&&t.startsWith("to-zero",n)){let a=n;n+=7,i+=t.slice(a,n+1)}else i+=s}}return r?i.replace(/\$(\d+)\$/g,(n,s)=>Xe[s]??n):i}function pe(t){if(t.indexOf("(")===-1)return Ne(t);let r=H(t);return At(r),t=J(r),t=ir(t),t}function Ne(t,r=!1){let i="";for(let e=0;e<t.length;e++){let n=t[e];n==="\\"&&t[e+1]==="_"?(i+="_",e+=1):n==="_"&&!r?i+=" ":i+=n}return i}function At(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Ne(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Ne(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=Ne(r.nodes[i].value,!0);continue}At([r.nodes[i]])}break}r.value=Ne(r.value),At(r.nodes);break}case"separator":case"word":{r.value=Ne(r.value);break}default:Ti(r)}}function Ti(t){throw new Error(`Unexpected value: ${t}`)}var Ct=new Uint8Array(256);function de(t){let r=0,i=t.length;for(let e=0;e<i;e++){let n=t.charCodeAt(e);switch(n){case 92:e+=1;break;case 39:case 34:for(;++e<i;){let s=t.charCodeAt(e);if(s===92){e+=1;continue}if(s===n)break}break;case 40:Ct[r]=41,r++;break;case 91:Ct[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===Ct[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var et=new Uint8Array(256);function K(t,r){let i=0,e=[],n=0,s=t.length,a=r.charCodeAt(0);for(let p=0;p<s;p++){let u=t.charCodeAt(p);if(i===0&&u===a){e.push(t.slice(n,p)),n=p+1;continue}switch(u){case 92:p+=1;break;case 39:case 34:for(;++p<s;){let c=t.charCodeAt(p);if(c===92){p+=1;continue}if(c===u)break}break;case 40:et[i]=41,i++;break;case 91:et[i]=93,i++;break;case 123:et[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===et[i-1]&&i--;break}}return e.push(t.slice(n)),e}var Ei=58,nr=45,or=97,lr=122;function*ar(t,r){let i=K(t,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let e=i.pop(),n=[];for(let g=i.length-1;g>=0;--g){let h=r.parseVariant(i[g]);if(h===null)return;n.push(h)}let s=!1;e[e.length-1]==="!"?(s=!0,e=e.slice(0,-1)):e[0]==="!"&&(s=!0,e=e.slice(1)),r.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:n,important:s,raw:t});let[a,p=null,u]=K(e,"/");if(u)return;let c=p===null?null:Nt(p);if(p!==null&&c===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let g=a.charCodeAt(1);if(g!==nr&&!(g>=or&&g<=lr))return;a=a.slice(1,-1);let h=a.indexOf(":");if(h===-1||h===0||h===a.length-1)return;let w=a.slice(0,h),v=pe(a.slice(h+1));if(!de(v))return;yield{kind:"arbitrary",property:w,value:v,modifier:c,variants:n,important:s,raw:t};return}let m;if(a[a.length-1]==="]"){let g=a.indexOf("-[");if(g===-1)return;let h=a.slice(0,g);if(!r.utilities.has(h,"functional"))return;let w=a.slice(g+1);m=[[h,w]]}else if(a[a.length-1]===")"){let g=a.indexOf("-(");if(g===-1)return;let h=a.slice(0,g);if(!r.utilities.has(h,"functional"))return;let w=a.slice(g+2,-1),v=K(w,":"),A=null;if(v.length===2&&(A=v[0],w=v[1]),w[0]!=="-"&&w[1]!=="-")return;m=[[h,A===null?`[var(${w})]`:`[${A}:var(${w})]`]]}else m=ur(a,g=>r.utilities.has(g,"functional"));for(let[g,h]of m){let w={kind:"functional",root:g,modifier:c,value:null,variants:n,important:s,raw:t};if(h===null){yield w;continue}{let v=h.indexOf("[");if(v!==-1){if(h[h.length-1]!=="]")return;let b=pe(h.slice(v+1,-1));if(!de(b))continue;let y="";for(let V=0;V<b.length;V++){let T=b.charCodeAt(V);if(T===Ei){y=b.slice(0,V),b=b.slice(V+1);break}if(!(T===nr||T>=or&&T<=lr))break}if(b.length===0||b.trim().length===0)continue;w.value={kind:"arbitrary",dataType:y||null,value:b}}else{let b=p===null||w.modifier?.kind==="arbitrary"?null:`${h}/${p}`;w.value={kind:"named",value:h,fraction:b}}}yield w}}function Nt(t){if(t[0]==="["&&t[t.length-1]==="]"){let r=pe(t.slice(1,-1));return!de(r)||r.length===0||r.trim().length===0?null:{kind:"arbitrary",value:r}}if(t[0]==="("&&t[t.length-1]===")"){let r=pe(t.slice(1,-1));return!de(r)||r.length===0||r.trim().length===0||r[0]!=="-"&&r[1]!=="-"?null:{kind:"arbitrary",value:`var(${r})`}}return{kind:"named",value:t}}function sr(t,r){if(t[0]==="["&&t[t.length-1]==="]"){if(t[1]==="@"&&t.includes("&"))return null;let i=pe(t.slice(1,-1));if(!de(i)||i.length===0||i.trim().length===0)return null;let e=i[0]===">"||i[0]==="+"||i[0]==="~";return!e&&i[0]!=="@"&&!i.includes("&")&&(i=`&:is(${i})`),{kind:"arbitrary",selector:i,relative:e}}{let[i,e=null,n]=K(t,"/");if(n)return null;let s=ur(i,a=>r.variants.has(a));for(let[a,p]of s)switch(r.variants.kind(a)){case"static":return p!==null||e!==null?null:{kind:"static",root:a};case"functional":{let u=e===null?null:Nt(e);if(e!==null&&u===null)return null;if(p===null)return{kind:"functional",root:a,modifier:u,value:null};if(p[p.length-1]==="]"){if(p[0]!=="[")continue;let c=pe(p.slice(1,-1));return!de(c)||c.length===0||c.trim().length===0?null:{kind:"functional",root:a,modifier:u,value:{kind:"arbitrary",value:c}}}if(p[p.length-1]===")"){if(p[0]!=="(")continue;let c=pe(p.slice(1,-1));return!de(c)||c.length===0||c.trim().length===0||c[0]!=="-"&&c[1]!=="-"?null:{kind:"functional",root:a,modifier:u,value:{kind:"arbitrary",value:`var(${c})`}}}return{kind:"functional",root:a,modifier:u,value:{kind:"named",value:p}}}case"compound":{if(p===null)return null;let u=r.parseVariant(p);if(u===null||!r.variants.compoundsWith(a,u))return null;let c=e===null?null:Nt(e);return e!==null&&c===null?null:{kind:"compound",root:a,modifier:c,variant:u}}}}return null}function*ur(t,r){r(t)&&(yield[t,null]);let i=t.lastIndexOf("-");for(;i>0;){let e=t.slice(0,i);if(r(e)){let n=[e,t.slice(i+1)];if(n[1]==="")break;yield n}i=t.lastIndexOf("-",i-1)}t[0]==="@"&&r("@")&&(yield["@",t.slice(1)])}function be(t,r,i){if(t===r)return 0;let e=t.indexOf("("),n=r.indexOf("("),s=e===-1?t.replace(/[\d.]+/g,""):t.slice(0,e),a=n===-1?r.replace(/[\d.]+/g,""):r.slice(0,n),p=(s===a?0:s<a?-1:1)||(i==="asc"?parseInt(t)-parseInt(r):parseInt(r)-parseInt(t));return Number.isNaN(p)?t<r?-1:1:p}var Ri=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","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","green","greenyellow","grey","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","rebeccapurple","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","transparent","currentcolor","canvas","canvastext","linktext","visitedtext","activetext","buttonface","buttontext","buttonborder","field","fieldtext","highlight","highlighttext","selecteditem","selecteditemtext","mark","marktext","graytext","accentcolor","accentcolortext"]),Oi=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;function cr(t){return t.charCodeAt(0)===35||Oi.test(t)||Ri.has(t.toLowerCase())}var Pi={color:cr,length:tt,percentage:$t,ratio:qi,number:pr,integer:E,url:fr,position:Yi,"bg-size":Ji,"line-width":Ki,image:ji,"family-name":Ii,"generic-name":zi,"absolute-size":Fi,"relative-size":Li,angle:Xi,vector:tn};function q(t,r){if(t.startsWith("var("))return null;for(let i of r)if(Pi[i]?.(t))return i;return null}var _i=/^url\(.*\)$/;function fr(t){return _i.test(t)}function Ki(t){return K(t," ").every(r=>tt(r)||pr(r)||r==="thin"||r==="medium"||r==="thick")}var Ui=/^(?:element|image|cross-fade|image-set)\(/,Di=/^(repeating-)?(conic|linear|radial)-gradient\(/;function ji(t){let r=0;for(let i of K(t,","))if(!i.startsWith("var(")){if(fr(i)){r+=1;continue}if(Di.test(i)){r+=1;continue}if(Ui.test(i)){r+=1;continue}return!1}return r>0}function zi(t){return t==="serif"||t==="sans-serif"||t==="monospace"||t==="cursive"||t==="fantasy"||t==="system-ui"||t==="ui-serif"||t==="ui-sans-serif"||t==="ui-monospace"||t==="ui-rounded"||t==="math"||t==="emoji"||t==="fangsong"}function Ii(t){let r=0;for(let i of K(t,",")){let e=i.charCodeAt(0);if(e>=48&&e<=57)return!1;i.startsWith("var(")||(r+=1)}return r>0}function Fi(t){return t==="xx-small"||t==="x-small"||t==="small"||t==="medium"||t==="large"||t==="x-large"||t==="xx-large"||t==="xxx-large"}function Li(t){return t==="larger"||t==="smaller"}var ue=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Mi=new RegExp(`^${ue.source}$`);function pr(t){return Mi.test(t)||_e(t)}var Wi=new RegExp(`^${ue.source}%$`);function $t(t){return Wi.test(t)||_e(t)}var Bi=new RegExp(`^${ue.source}s*/s*${ue.source}$`);function qi(t){return Bi.test(t)||_e(t)}var Hi=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Gi=new RegExp(`^${ue.source}(${Hi.join("|")})$`);function tt(t){return Gi.test(t)||_e(t)}function Yi(t){let r=0;for(let i of K(t," ")){if(i==="center"||i==="top"||i==="right"||i==="bottom"||i==="left"){r+=1;continue}if(!i.startsWith("var(")){if(tt(i)||$t(i)){r+=1;continue}return!1}}return r>0}function Ji(t){let r=0;for(let i of K(t,",")){if(i==="cover"||i==="contain"){r+=1;continue}let e=K(i," ");if(e.length!==1&&e.length!==2)return!1;if(e.every(n=>n==="auto"||tt(n)||$t(n))){r+=1;continue}}return r>0}var Qi=["deg","rad","grad","turn"],Zi=new RegExp(`^${ue.source}(${Qi.join("|")})$`);function Xi(t){return Zi.test(t)}var en=new RegExp(`^${ue.source} +${ue.source} +${ue.source}$`);function tn(t){return en.test(t)}function E(t){let r=Number(t);return Number.isInteger(r)&&r>=0&&String(r)===String(t)}function Vt(t){let r=Number(t);return Number.isInteger(r)&&r>0&&String(r)===String(t)}function ye(t){return dr(t,.25)}function rt(t){return dr(t,.25)}function dr(t,r){let i=Number(t);return i>=0&&i%r===0&&String(i)===String(t)}var rn=new Set(["inset","inherit","initial","revert","unset"]),mr=/^-?(\d+|\.\d+)(.*?)$/g;function Ke(t,r){return K(t,",").map(e=>{e=e.trim();let n=K(e," ").filter(c=>c.trim()!==""),s=null,a=null,p=null;for(let c of n)rn.has(c)||(mr.test(c)?(a===null?a=c:p===null&&(p=c),mr.lastIndex=0):s===null&&(s=c));if(a===null||p===null)return e;let u=r(s??"currentcolor");return s!==null?e.replace(s,u):`${e} ${u}`}).join(", ")}var nn=/^-?[a-z][a-zA-Z0-9/%._-]*$/,on=/^-?[a-z][a-zA-Z0-9/%._-]*-\*$/,nt=["0","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],St=class{utilities=new B(()=>[]);completions=new Map;static(r,i){this.utilities.get(r).push({kind:"static",compileFn:i})}functional(r,i,e){this.utilities.get(r).push({kind:"functional",compileFn:i,options:e})}has(r,i){return this.utilities.has(r)&&this.utilities.get(r).some(e=>e.kind===i)}get(r){return this.utilities.has(r)?this.utilities.get(r):[]}getCompletions(r){return this.completions.get(r)?.()??[]}suggest(r,i){this.completions.set(r,i)}keys(r){let i=[];for(let[e,n]of this.utilities.entries())for(let s of n)if(s.kind===r){i.push(e);break}return i}};function N(t,r,i){return z("@property",t,[l("syntax",i?`"${i}"`:'"*"'),l("inherits","false"),...r?[l("initial-value",r)]:[]])}function G(t,r){if(r===null)return t;let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),r==="100%"?t:`color-mix(in oklab, ${t} ${r}, transparent)`}function hr(t,r){let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),`oklab(from ${t} l a b / ${r})`}function Q(t,r,i){if(!r)return t;if(r.kind==="arbitrary")return G(t,r.value);let e=i.resolve(r.value,["--opacity"]);return e?G(t,e):rt(r.value)?G(t,`${r.value}%`):null}function Z(t,r,i){let e=null;switch(t.value.value){case"inherit":{e="inherit";break}case"transparent":{e="transparent";break}case"current":{e="currentcolor";break}default:{e=r.resolve(t.value.value,i);break}}return e?Q(e,t.modifier,r):null}var vr=/(\d+)_(\d+)/g;function wr(t){let r=new St;function i(o,f){function*d(k){for(let C of t.keysInNamespaces(k))yield C.replace(vr,(O,$,S)=>`${$}.${S}`)}let x=["1/2","1/3","2/3","1/4","2/4","3/4","1/5","2/5","3/5","4/5","1/6","2/6","3/6","4/6","5/6","1/12","2/12","3/12","4/12","5/12","6/12","7/12","8/12","9/12","10/12","11/12"];r.suggest(o,()=>{let k=[];for(let C of f()){if(typeof C=="string"){k.push({values:[C],modifiers:[]});continue}let O=[...C.values??[],...d(C.valueThemeKeys??[])],$=[...C.modifiers??[],...d(C.modifierThemeKeys??[])];C.supportsFractions&&O.push(...x),C.hasDefaultValue&&O.unshift(null),k.push({supportsNegative:C.supportsNegative,values:O,modifiers:$})}return k})}function e(o,f){r.static(o,()=>f.map(d=>typeof d=="function"?d():l(d[0],d[1])))}function n(o,f){function d({negative:x}){return k=>{let C=null,O=null;if(k.value)if(k.value.kind==="arbitrary"){if(k.modifier)return;C=k.value.value,O=k.value.dataType}else{if(C=t.resolve(k.value.fraction??k.value.value,f.themeKeys??[]),C===null&&f.supportsFractions&&k.value.fraction){let[$,S]=K(k.value.fraction,"/");if(!E($)||!E(S))return;C=`calc(${k.value.fraction} * 100%)`}if(C===null&&x&&f.handleNegativeBareValue){if(C=f.handleNegativeBareValue(k.value),!C?.includes("/")&&k.modifier)return;if(C!==null)return f.handle(C,null)}if(C===null&&f.handleBareValue&&(C=f.handleBareValue(k.value),!C?.includes("/")&&k.modifier))return}else{if(k.modifier)return;C=f.defaultValue!==void 0?f.defaultValue:t.resolve(null,f.themeKeys??[])}if(C!==null)return f.handle(x?`calc(${C} * -1)`:C,O)}}f.supportsNegative&&r.functional(`-${o}`,d({negative:!0})),r.functional(o,d({negative:!1})),i(o,()=>[{supportsNegative:f.supportsNegative,valueThemeKeys:f.themeKeys??[],hasDefaultValue:f.defaultValue!==void 0&&f.defaultValue!==null,supportsFractions:f.supportsFractions}])}function s(o,f){r.functional(o,d=>{if(!d.value)return;let x=null;if(d.value.kind==="arbitrary"?(x=d.value.value,x=Q(x,d.modifier,t)):x=Z(d,t,f.themeKeys),x!==null)return f.handle(x)}),i(o,()=>[{values:["current","inherit","transparent"],valueThemeKeys:f.themeKeys,modifiers:Array.from({length:21},(d,x)=>`${x*5}`)}])}function a(o,f,d,{supportsNegative:x=!1,supportsFractions:k=!1}={}){x&&r.static(`-${o}-px`,()=>d("-1px")),r.static(`${o}-px`,()=>d("1px")),n(o,{themeKeys:f,supportsFractions:k,supportsNegative:x,defaultValue:null,handleBareValue:({value:C})=>{let O=t.resolve(null,["--spacing"]);return!O||!ye(C)?null:`calc(${O} * ${C})`},handleNegativeBareValue:({value:C})=>{let O=t.resolve(null,["--spacing"]);return!O||!ye(C)?null:`calc(${O} * -${C})`},handle:d}),i(o,()=>[{values:t.get(["--spacing"])?nt:[],supportsNegative:x,supportsFractions:k,valueThemeKeys:f}])}e("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip","rect(0, 0, 0, 0)"],["white-space","nowrap"],["border-width","0"]]),e("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip","auto"],["white-space","normal"]]),e("pointer-events-none",[["pointer-events","none"]]),e("pointer-events-auto",[["pointer-events","auto"]]),e("visible",[["visibility","visible"]]),e("invisible",[["visibility","hidden"]]),e("collapse",[["visibility","collapse"]]),e("static",[["position","static"]]),e("fixed",[["position","fixed"]]),e("absolute",[["position","absolute"]]),e("relative",[["position","relative"]]),e("sticky",[["position","sticky"]]);for(let[o,f]of[["inset","inset"],["inset-x","inset-inline"],["inset-y","inset-block"],["start","inset-inline-start"],["end","inset-inline-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]])e(`${o}-auto`,[[f,"auto"]]),e(`${o}-full`,[[f,"100%"]]),e(`-${o}-full`,[[f,"-100%"]]),a(o,["--inset","--spacing"],d=>[l(f,d)],{supportsNegative:!0,supportsFractions:!0});e("isolate",[["isolation","isolate"]]),e("isolation-auto",[["isolation","auto"]]),e("z-auto",[["z-index","auto"]]),n("z",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--z-index"],handle:o=>[l("z-index",o)]}),i("z",()=>[{supportsNegative:!0,values:["0","10","20","30","40","50"],valueThemeKeys:["--z-index"]}]),e("order-first",[["order","-9999"]]),e("order-last",[["order","9999"]]),e("order-none",[["order","0"]]),n("order",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--order"],handle:o=>[l("order",o)]}),i("order",()=>[{supportsNegative:!0,values:Array.from({length:12},(o,f)=>`${f+1}`),valueThemeKeys:["--order"]}]),e("col-auto",[["grid-column","auto"]]),n("col",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--grid-column"],handle:o=>[l("grid-column",o)]}),e("col-span-full",[["grid-column","1 / -1"]]),n("col-span",{handleBareValue:({value:o})=>E(o)?o:null,handle:o=>[l("grid-column",`span ${o} / span ${o}`)]}),e("col-start-auto",[["grid-column-start","auto"]]),n("col-start",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--grid-column-start"],handle:o=>[l("grid-column-start",o)]}),e("col-end-auto",[["grid-column-end","auto"]]),n("col-end",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--grid-column-end"],handle:o=>[l("grid-column-end",o)]}),i("col-span",()=>[{values:Array.from({length:12},(o,f)=>`${f+1}`),valueThemeKeys:[]}]),i("col-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,f)=>`${f+1}`),valueThemeKeys:["--grid-column-start"]}]),i("col-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,f)=>`${f+1}`),valueThemeKeys:["--grid-column-end"]}]),e("row-auto",[["grid-row","auto"]]),n("row",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--grid-row"],handle:o=>[l("grid-row",o)]}),e("row-span-full",[["grid-row","1 / -1"]]),n("row-span",{themeKeys:[],handleBareValue:({value:o})=>E(o)?o:null,handle:o=>[l("grid-row",`span ${o} / span ${o}`)]}),e("row-start-auto",[["grid-row-start","auto"]]),n("row-start",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--grid-row-start"],handle:o=>[l("grid-row-start",o)]}),e("row-end-auto",[["grid-row-end","auto"]]),n("row-end",{supportsNegative:!0,handleBareValue:({value:o})=>E(o)?o:null,themeKeys:["--grid-row-end"],handle:o=>[l("grid-row-end",o)]}),i("row-span",()=>[{values:Array.from({length:12},(o,f)=>`${f+1}`),valueThemeKeys:[]}]),i("row-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,f)=>`${f+1}`),valueThemeKeys:["--grid-row-start"]}]),i("row-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,f)=>`${f+1}`),valueThemeKeys:["--grid-row-end"]}]),e("float-start",[["float","inline-start"]]),e("float-end",[["float","inline-end"]]),e("float-right",[["float","right"]]),e("float-left",[["float","left"]]),e("float-none",[["float","none"]]),e("clear-start",[["clear","inline-start"]]),e("clear-end",[["clear","inline-end"]]),e("clear-right",[["clear","right"]]),e("clear-left",[["clear","left"]]),e("clear-both",[["clear","both"]]),e("clear-none",[["clear","none"]]);for(let[o,f]of[["m","margin"],["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"]])e(`${o}-auto`,[[f,"auto"]]),a(o,["--margin","--spacing"],d=>[l(f,d)],{supportsNegative:!0});e("box-border",[["box-sizing","border-box"]]),e("box-content",[["box-sizing","content-box"]]),e("line-clamp-none",[["overflow","visible"],["display","block"],["-webkit-box-orient","horizontal"],["-webkit-line-clamp","unset"]]),n("line-clamp",{themeKeys:["--line-clamp"],handleBareValue:({value:o})=>E(o)?o:null,handle:o=>[l("overflow","hidden"),l("display","-webkit-box"),l("-webkit-box-orient","vertical"),l("-webkit-line-clamp",o)]}),i("line-clamp",()=>[{values:["1","2","3","4","5","6"],valueThemeKeys:["--line-clamp"]}]),e("block",[["display","block"]]),e("inline-block",[["display","inline-block"]]),e("inline",[["display","inline"]]),e("hidden",[["display","none"]]),e("inline-flex",[["display","inline-flex"]]),e("table",[["display","table"]]),e("inline-table",[["display","inline-table"]]),e("table-caption",[["display","table-caption"]]),e("table-cell",[["display","table-cell"]]),e("table-column",[["display","table-column"]]),e("table-column-group",[["display","table-column-group"]]),e("table-footer-group",[["display","table-footer-group"]]),e("table-header-group",[["display","table-header-group"]]),e("table-row-group",[["display","table-row-group"]]),e("table-row",[["display","table-row"]]),e("flow-root",[["display","flow-root"]]),e("flex",[["display","flex"]]),e("grid",[["display","grid"]]),e("inline-grid",[["display","inline-grid"]]),e("contents",[["display","contents"]]),e("list-item",[["display","list-item"]]),e("field-sizing-content",[["field-sizing","content"]]),e("field-sizing-fixed",[["field-sizing","fixed"]]),e("aspect-auto",[["aspect-ratio","auto"]]),e("aspect-square",[["aspect-ratio","1 / 1"]]),n("aspect",{themeKeys:["--aspect"],handleBareValue:({fraction:o})=>{if(o===null)return null;let[f,d]=K(o,"/");return!E(f)||!E(d)?null:o},handle:o=>[l("aspect-ratio",o)]});for(let[o,f]of[["full","100%"],["svw","100svw"],["lvw","100lvw"],["dvw","100dvw"],["svh","100svh"],["lvh","100lvh"],["dvh","100dvh"],["min","min-content"],["max","max-content"],["fit","fit-content"]])e(`size-${o}`,[["--tw-sort","size"],["width",f],["height",f]]),e(`w-${o}`,[["width",f]]),e(`h-${o}`,[["height",f]]),e(`min-w-${o}`,[["min-width",f]]),e(`min-h-${o}`,[["min-height",f]]),e(`max-w-${o}`,[["max-width",f]]),e(`max-h-${o}`,[["max-height",f]]);e("size-auto",[["--tw-sort","size"],["width","auto"],["height","auto"]]),e("w-auto",[["width","auto"]]),e("h-auto",[["height","auto"]]),e("min-w-auto",[["min-width","auto"]]),e("min-h-auto",[["min-height","auto"]]),e("h-lh",[["height","1lh"]]),e("min-h-lh",[["min-height","1lh"]]),e("max-h-lh",[["max-height","1lh"]]),e("w-screen",[["width","100vw"]]),e("min-w-screen",[["min-width","100vw"]]),e("max-w-screen",[["max-width","100vw"]]),e("h-screen",[["height","100vh"]]),e("min-h-screen",[["min-height","100vh"]]),e("max-h-screen",[["max-height","100vh"]]),e("max-w-none",[["max-width","none"]]),e("max-h-none",[["max-height","none"]]),a("size",["--size","--spacing"],o=>[l("--tw-sort","size"),l("width",o),l("height",o)],{supportsFractions:!0});for(let[o,f,d]of[["w",["--width","--spacing","--container"],"width"],["min-w",["--min-width","--spacing","--container"],"min-width"],["max-w",["--max-width","--spacing","--container"],"max-width"],["h",["--height","--spacing"],"height"],["min-h",["--min-height","--height","--spacing"],"min-height"],["max-h",["--max-height","--height","--spacing"],"max-height"]])a(o,f,x=>[l(d,x)],{supportsFractions:!0});r.static("container",()=>{let o=[...t.namespace("--breakpoint").values()];o.sort((d,x)=>be(d,x,"asc"));let f=[l("--tw-sort","--tw-container-component"),l("width","100%")];for(let d of o)f.push(z("@media",`(width >= ${d})`,[l("max-width",d)]));return f}),e("flex-auto",[["flex","auto"]]),e("flex-initial",[["flex","0 auto"]]),e("flex-none",[["flex","none"]]),r.functional("flex",o=>{if(o.value){if(o.value.kind==="arbitrary")return o.modifier?void 0:[l("flex",o.value.value)];if(o.value.fraction){let[f,d]=K(o.value.fraction,"/");return!E(f)||!E(d)?void 0:[l("flex",`calc(${o.value.fraction} * 100%)`)]}if(E(o.value.value))return o.modifier?void 0:[l("flex",o.value.value)]}}),i("flex",()=>[{supportsFractions:!0}]),n("shrink",{defaultValue:"1",handleBareValue:({value:o})=>E(o)?o:null,handle:o=>[l("flex-shrink",o)]}),n("grow",{defaultValue:"1",handleBareValue:({value:o})=>E(o)?o:null,handle:o=>[l("flex-grow",o)]}),i("shrink",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),i("grow",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),e("basis-auto",[["flex-basis","auto"]]),e("basis-full",[["flex-basis","100%"]]),a("basis",["--flex-basis","--spacing","--container"],o=>[l("flex-basis",o)],{supportsFractions:!0}),e("table-auto",[["table-layout","auto"]]),e("table-fixed",[["table-layout","fixed"]]),e("caption-top",[["caption-side","top"]]),e("caption-bottom",[["caption-side","bottom"]]),e("border-collapse",[["border-collapse","collapse"]]),e("border-separate",[["border-collapse","separate"]]);let p=()=>D([N("--tw-border-spacing-x","0","<length>"),N("--tw-border-spacing-y","0","<length>")]);a("border-spacing",["--border-spacing","--spacing"],o=>[p(),l("--tw-border-spacing-x",o),l("--tw-border-spacing-y",o),l("border-spacing","var(--tw-border-spacing-x) var(--tw-border-spacing-y)")]),a("border-spacing-x",["--border-spacing","--spacing"],o=>[p(),l("--tw-border-spacing-x",o),l("border-spacing","var(--tw-border-spacing-x) var(--tw-border-spacing-y)")]),a("border-spacing-y",["--border-spacing","--spacing"],o=>[p(),l("--tw-border-spacing-y",o),l("border-spacing","var(--tw-border-spacing-x) var(--tw-border-spacing-y)")]),e("origin-center",[["transform-origin","center"]]),e("origin-top",[["transform-origin","top"]]),e("origin-top-right",[["transform-origin","top right"]]),e("origin-right",[["transform-origin","right"]]),e("origin-bottom-right",[["transform-origin","bottom right"]]),e("origin-bottom",[["transform-origin","bottom"]]),e("origin-bottom-left",[["transform-origin","bottom left"]]),e("origin-left",[["transform-origin","left"]]),e("origin-top-left",[["transform-origin","top left"]]),n("origin",{themeKeys:["--transform-origin"],handle:o=>[l("transform-origin",o)]}),e("perspective-origin-center",[["perspective-origin","center"]]),e("perspective-origin-top",[["perspective-origin","top"]]),e("perspective-origin-top-right",[["perspective-origin","top right"]]),e("perspective-origin-right",[["perspective-origin","right"]]),e("perspective-origin-bottom-right",[["perspective-origin","bottom right"]]),e("perspective-origin-bottom",[["perspective-origin","bottom"]]),e("perspective-origin-bottom-left",[["perspective-origin","bottom left"]]),e("perspective-origin-left",[["perspective-origin","left"]]),e("perspective-origin-top-left",[["perspective-origin","top left"]]),n("perspective-origin",{themeKeys:["--perspective-origin"],handle:o=>[l("perspective-origin",o)]}),e("perspective-none",[["perspective","none"]]),n("perspective",{themeKeys:["--perspective"],handle:o=>[l("perspective",o)]});let u=()=>D([N("--tw-translate-x","0"),N("--tw-translate-y","0"),N("--tw-translate-z","0")]);e("translate-none",[["translate","none"]]),e("-translate-full",[u,["--tw-translate-x","-100%"],["--tw-translate-y","-100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),e("translate-full",[u,["--tw-translate-x","100%"],["--tw-translate-y","100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),a("translate",["--translate","--spacing"],o=>[u(),l("--tw-translate-x",o),l("--tw-translate-y",o),l("translate","var(--tw-translate-x) var(--tw-translate-y)")],{supportsNegative:!0,supportsFractions:!0});for(let o of["x","y"])e(`-translate-${o}-full`,[u,[`--tw-translate-${o}`,"-100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),e(`translate-${o}-full`,[u,[`--tw-translate-${o}`,"100%"],["translate","var(--tw-translate-x) var(--tw-translate-y)"]]),a(`translate-${o}`,["--translate","--spacing"],f=>[u(),l(`--tw-translate-${o}`,f),l("translate","var(--tw-translate-x) var(--tw-translate-y)")],{supportsNegative:!0,supportsFractions:!0});a("translate-z",["--translate","--spacing"],o=>[u(),l("--tw-translate-z",o),l("translate","var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)")],{supportsNegative:!0}),e("translate-3d",[u,["translate","var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z)"]]);let c=()=>D([N("--tw-scale-x","1"),N("--tw-scale-y","1"),N("--tw-scale-z","1")]);e("scale-none",[["scale","none"]]);function m({negative:o}){return f=>{if(!f.value||f.modifier)return;let d;return f.value.kind==="arbitrary"?(d=f.value.value,[l("scale",d)]):(d=t.resolve(f.value.value,["--scale"]),!d&&E(f.value.value)&&(d=`${f.value.value}%`),d?(d=o?`calc(${d} * -1)`:d,[c(),l("--tw-scale-x",d),l("--tw-scale-y",d),l("--tw-scale-z",d),l("scale","var(--tw-scale-x) var(--tw-scale-y)")]):void 0)}}r.functional("-scale",m({negative:!0})),r.functional("scale",m({negative:!1})),i("scale",()=>[{supportsNegative:!0,values:["0","50","75","90","95","100","105","110","125","150","200"],valueThemeKeys:["--scale"]}]);for(let o of["x","y","z"])n(`scale-${o}`,{supportsNegative:!0,themeKeys:["--scale"],handleBareValue:({value:f})=>E(f)?`${f}%`:null,handle:f=>[c(),l(`--tw-scale-${o}`,f),l("scale",`var(--tw-scale-x) var(--tw-scale-y)${o==="z"?" var(--tw-scale-z)":""}`)]}),i(`scale-${o}`,()=>[{supportsNegative:!0,values:["0","50","75","90","95","100","105","110","125","150","200"],valueThemeKeys:["--scale"]}]);e("scale-3d",[c,["scale","var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z)"]]),e("rotate-none",[["rotate","none"]]);function g({negative:o}){return f=>{if(!f.value||f.modifier)return;let d;if(f.value.kind==="arbitrary"){d=f.value.value;let x=f.value.dataType??q(d,["angle","vector"]);if(x==="vector")return[l("rotate",`${d} var(--tw-rotate)`)];if(x!=="angle")return[l("rotate",d)]}else if(d=t.resolve(f.value.value,["--rotate"]),!d&&E(f.value.value)&&(d=`${f.value.value}deg`),!d)return;return[l("rotate",o?`calc(${d} * -1)`:d)]}}r.functional("-rotate",g({negative:!0})),r.functional("rotate",g({negative:!1})),i("rotate",()=>[{supportsNegative:!0,values:["0","1","2","3","6","12","45","90","180"],valueThemeKeys:["--rotate"]}]);{let o=["var(--tw-rotate-x,)","var(--tw-rotate-y,)","var(--tw-rotate-z,)","var(--tw-skew-x,)","var(--tw-skew-y,)"].join(" "),f=()=>D([N("--tw-rotate-x"),N("--tw-rotate-y"),N("--tw-rotate-z"),N("--tw-skew-x"),N("--tw-skew-y")]);for(let d of["x","y","z"])n(`rotate-${d}`,{supportsNegative:!0,themeKeys:["--rotate"],handleBareValue:({value:x})=>E(x)?`${x}deg`:null,handle:x=>[f(),l(`--tw-rotate-${d}`,`rotate${d.toUpperCase()}(${x})`),l("transform",o)]}),i(`rotate-${d}`,()=>[{supportsNegative:!0,values:["0","1","2","3","6","12","45","90","180"],valueThemeKeys:["--rotate"]}]);n("skew",{supportsNegative:!0,themeKeys:["--skew"],handleBareValue:({value:d})=>E(d)?`${d}deg`:null,handle:d=>[f(),l("--tw-skew-x",`skewX(${d})`),l("--tw-skew-y",`skewY(${d})`),l("transform",o)]}),n("skew-x",{supportsNegative:!0,themeKeys:["--skew"],handleBareValue:({value:d})=>E(d)?`${d}deg`:null,handle:d=>[f(),l("--tw-skew-x",`skewX(${d})`),l("transform",o)]}),n("skew-y",{supportsNegative:!0,themeKeys:["--skew"],handleBareValue:({value:d})=>E(d)?`${d}deg`:null,handle:d=>[f(),l("--tw-skew-y",`skewY(${d})`),l("transform",o)]}),i("skew",()=>[{supportsNegative:!0,values:["0","1","2","3","6","12"],valueThemeKeys:["--skew"]}]),i("skew-x",()=>[{supportsNegative:!0,values:["0","1","2","3","6","12"],valueThemeKeys:["--skew"]}]),i("skew-y",()=>[{supportsNegative:!0,values:["0","1","2","3","6","12"],valueThemeKeys:["--skew"]}]),r.functional("transform",d=>{if(d.modifier)return;let x=null;if(d.value?d.value.kind==="arbitrary"&&(x=d.value.value):x=o,x!==null)return[f(),l("transform",x)]}),i("transform",()=>[{hasDefaultValue:!0}]),e("transform-cpu",[["transform",o]]),e("transform-gpu",[["transform",`translateZ(0) ${o}`]]),e("transform-none",[["transform","none"]])}e("transform-flat",[["transform-style","flat"]]),e("transform-3d",[["transform-style","preserve-3d"]]),e("transform-content",[["transform-box","content-box"]]),e("transform-border",[["transform-box","border-box"]]),e("transform-fill",[["transform-box","fill-box"]]),e("transform-stroke",[["transform-box","stroke-box"]]),e("transform-view",[["transform-box","view-box"]]),e("backface-visible",[["backface-visibility","visible"]]),e("backface-hidden",[["backface-visibility","hidden"]]);for(let o of["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"])e(`cursor-${o}`,[["cursor",o]]);n("cursor",{themeKeys:["--cursor"],handle:o=>[l("cursor",o)]});for(let o of["auto","none","manipulation"])e(`touch-${o}`,[["touch-action",o]]);let h=()=>D([N("--tw-pan-x"),N("--tw-pan-y"),N("--tw-pinch-zoom")]);for(let o of["x","left","right"])e(`touch-pan-${o}`,[h,["--tw-pan-x",`pan-${o}`],["touch-action","var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,