tailwindcss
Version:
A utility-first CSS framework for rapidly building custom user interfaces.
10 lines • 264 kB
JavaScript
"use strict";var fn=Object.defineProperty;var pn=(e,r)=>{for(var i in r)fn(e,i,{get:r[i],enumerable:!0})};var It={};pn(It,{Features:()=>Pe,Polyfills:()=>ht,__unstable__loadDesignSystem:()=>Wa,compile:()=>Fa,compileAst:()=>cn,default:()=>lt});var dr="4.1.18";function st(e){let r=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&r.push(n+1);function i(n){let l=0,o=r.length;for(;o>0;){let u=(o|0)>>1,c=l+u;r[c]<=n?(l=c+1,o=o-u-1):o=u}l-=1;let f=n-r[l];return{line:l+1,column:f}}function t({line:n,column:l}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let o=r[n],f=r[n+1]??o;return Math.min(Math.max(o+l,0),f)}return{find:i,findOffset:t}}var He=92,ut=47,ct=42,mr=34,gr=39,mn=58,ft=59,se=10,pt=13,Ze=32,Qe=9,hr=123,Ut=125,zt=40,vr=41,gn=91,hn=93,kr=45,Lt=64,vn=33,ue=class e extends Error{loc;constructor(r,i){if(i){let t=i[0],n=st(t.code).find(i[1]);r=`${t.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Ne(e,r){let i=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],l=[],o=null,f=null,u="",c="",m=0,d;for(let p=0;p<e.length;p++){let k=e.charCodeAt(p);if(!(k===pt&&(d=e.charCodeAt(p+1),d===se)))if(k===He)u===""&&(m=p),u+=e.slice(p,p+2),p+=1;else if(k===ut&&e.charCodeAt(p+1)===ct){let h=p;for(let x=p+2;x<e.length;x++)if(d=e.charCodeAt(x),d===He)x+=1;else if(d===ct&&e.charCodeAt(x+1)===ut){p=x+1;break}let w=e.slice(h,p+1);if(w.charCodeAt(2)===vn){let x=dt(w.slice(2,-2));n.push(x),i&&(x.src=[i,h,p+1],x.dst=[i,h,p+1])}}else if(k===gr||k===mr){let h=wr(e,p,k,i);u+=e.slice(p,h+1),p=h}else{if((k===Ze||k===se||k===Qe)&&(d=e.charCodeAt(p+1))&&(d===Ze||d===se||d===Qe||d===pt&&(d=e.charCodeAt(p+2))&&d==se))continue;if(k===se){if(u.length===0)continue;d=u.charCodeAt(u.length-1),d!==Ze&&d!==se&&d!==Qe&&(u+=" ")}else if(k===kr&&e.charCodeAt(p+1)===kr&&u.length===0){let h="",w=p,x=-1;for(let A=p+2;A<e.length;A++)if(d=e.charCodeAt(A),d===He)A+=1;else if(d===gr||d===mr)A=wr(e,A,d,i);else if(d===ut&&e.charCodeAt(A+1)===ct){for(let y=A+2;y<e.length;y++)if(d=e.charCodeAt(y),d===He)y+=1;else if(d===ct&&e.charCodeAt(y+1)===ut){A=y+1;break}}else if(x===-1&&d===mn)x=u.length+A-w;else if(d===ft&&h.length===0){u+=e.slice(w,A),p=A;break}else if(d===zt)h+=")";else if(d===gn)h+="]";else if(d===hr)h+="}";else if((d===Ut||e.length-1===A)&&h.length===0){p=A-1,u+=e.slice(w,A);break}else(d===vr||d===hn||d===Ut)&&h.length>0&&e[A]===h[h.length-1]&&(h=h.slice(0,-1));let S=Kt(u,x);if(!S)throw new ue("Invalid custom property, expected a value",i?[i,w,p]:null);i&&(S.src=[i,w,p],S.dst=[i,w,p]),o?o.nodes.push(S):t.push(S),u=""}else if(k===ft&&u.charCodeAt(0)===Lt)f=Je(u),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o?o.nodes.push(f):t.push(f),u="",f=null;else if(k===ft&&c[c.length-1]!==")"){let h=Kt(u);if(!h){if(u.length===0)continue;throw new ue(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null)}i&&(h.src=[i,m,p],h.dst=[i,m,p]),o?o.nodes.push(h):t.push(h),u=""}else if(k===hr&&c[c.length-1]!==")")c+="}",f=Z(u.trim()),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o&&o.nodes.push(f),l.push(o),o=f,u="",f=null;else if(k===Ut&&c[c.length-1]!==")"){if(c==="")throw new ue("Missing opening {",i?[i,p,p]:null);if(c=c.slice(0,-1),u.length>0)if(u.charCodeAt(0)===Lt)f=Je(u),i&&(f.src=[i,m,p],f.dst=[i,m,p]),o?o.nodes.push(f):t.push(f),u="",f=null;else{let w=u.indexOf(":");if(o){let x=Kt(u,w);if(!x)throw new ue(`Invalid declaration: \`${u.trim()}\``,i?[i,m,p]:null);i&&(x.src=[i,m,p],x.dst=[i,m,p]),o.nodes.push(x)}}let h=l.pop()??null;h===null&&o&&t.push(o),o=h,u="",f=null}else if(k===zt)c+=")",u+="(";else if(k===vr){if(c[c.length-1]!==")")throw new ue("Missing opening (",i?[i,p,p]:null);c=c.slice(0,-1),u+=")"}else{if(u.length===0&&(k===Ze||k===se||k===Qe))continue;u===""&&(m=p),u+=String.fromCharCode(k)}}}if(u.charCodeAt(0)===Lt){let p=Je(u);i&&(p.src=[i,m,e.length],p.dst=[i,m,e.length]),t.push(p)}if(c.length>0&&o){if(o.kind==="rule")throw new ue(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind==="at-rule")throw new ue(`Missing closing } at ${o.name} ${o.params}`,o.src?[o.src[0],o.src[1],o.src[1]]:null)}return n.length>0?n.concat(t):t}function Je(e,r=[]){let i=e,t="";for(let n=5;n<e.length;n++){let l=e.charCodeAt(n);if(l===Ze||l===Qe||l===zt){i=e.slice(0,n),t=e.slice(n);break}}return F(i.trim(),t.trim(),r)}function Kt(e,r=e.indexOf(":")){if(r===-1)return null;let i=e.indexOf("!important",r+1);return a(e.slice(0,r).trim(),e.slice(r+1,i===-1?e.length:i).trim(),i!==-1)}function wr(e,r,i,t=null){let n;for(let l=r+1;l<e.length;l++)if(n=e.charCodeAt(l),n===He)l+=1;else{if(n===i)return l;if(n===ft&&(e.charCodeAt(l+1)===se||e.charCodeAt(l+1)===pt&&e.charCodeAt(l+2)===se))throw new ue(`Unterminated string: ${e.slice(r,l+1)+String.fromCharCode(i)}`,t?[t,r,l+1]:null);if(n===se||n===pt&&e.charCodeAt(l+1)===se)throw new ue(`Unterminated string: ${e.slice(r,l)+String.fromCharCode(i)}`,t?[t,r,l+1]:null)}return r}function xe(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),i=r.length,t=-1,n,l="",o=r.charCodeAt(0);if(i===1&&o===45)return"\\"+r;for(;++t<i;){if(n=r.charCodeAt(t),n===0){l+="\uFFFD";continue}if(n>=1&&n<=31||n===127||t===0&&n>=48&&n<=57||t===1&&n>=48&&n<=57&&o===45){l+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){l+=r.charAt(t);continue}l+="\\"+r.charAt(t)}return l}function Ve(e){return e.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 br=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"]],["--grid-column",["--grid-column-start","--grid-column-end"]],["--grid-row",["--grid-row-start","--grid-row-end"]]]);function yr(e,r){return(br.get(r)??[]).some(i=>e===i||e.startsWith(`${i}-`))}var mt=class{constructor(r=new Map,i=new Set([])){this.values=r;this.keyframes=i}prefix=null;get size(){return this.values.size}add(r,i,t=0,n){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(t&4){let l=this.values.get(r);if(l&&!(l.options&4))return}i==="initial"?this.values.delete(r):this.values.set(r,{value:i,options:t,src:n})}keysInNamespaces(r){let i=[];for(let t of r){let n=`${t}-`;for(let l of this.values.keys())l.startsWith(n)&&l.indexOf("--",2)===-1&&(yr(l,t)||i.push(l.slice(n.length)))}return i}get(r){for(let i of r){let t=this.values.get(i);if(t)return t.value}return null}hasDefault(r){return(this.getOptions(r)&4)===4}getOptions(r){return r=Ve(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 t=br.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 l of t)if(n.startsWith(l))continue e;this.values.delete(n)}}#e(r,i){for(let t of i){let n=r!==null?`${t}-${r}`:t;if(!this.values.has(n))if(r!==null&&r.includes(".")){if(n=`${t}-${r.replaceAll(".","_")}`,!this.values.has(n))continue}else continue;if(!yr(n,t))return n}return null}#t(r){let i=this.values.get(r);if(!i)return null;let t=null;return i.options&2&&(t=i.value),`var(${xe(this.prefixKey(r))}${t?`, ${t}`:""})`}markUsedVariable(r){let i=Ve(this.#r(r)),t=this.values.get(i);if(!t)return!1;let n=t.options&16;return t.options|=16,!n}resolve(r,i,t=0){let n=this.#e(r,i);if(!n)return null;let l=this.values.get(n);return(t|l.options)&1?l.value:this.#t(n)}resolveValue(r,i){let t=this.#e(r,i);return t?this.values.get(t).value:null}resolveWith(r,i,t=[]){let n=this.#e(r,i);if(!n)return null;let l={};for(let f of t){let u=`${n}${f}`,c=this.values.get(u);c&&(c.options&1?l[f]=c.value:l[f]=this.#t(u))}let o=this.values.get(n);return o.options&1?[o.value,l]:[this.#t(n),l]}namespace(r){let i=new Map,t=`${r}-`;for(let[n,l]of this.values)n===r?i.set(null,l.value):n.startsWith(`${t}-`)?i.set(n.slice(r.length),l.value):n.startsWith(t)&&i.set(n.slice(t.length),l.value);return i}addKeyframes(r){this.keyframes.add(r)}getKeyframes(){return Array.from(this.keyframes)}};var U=class extends Map{constructor(i){super();this.factory=i}get(i){let t=super.get(i);return t===void 0&&(t=this.factory(i,this),this.set(i,t)),t}};function oe(e){return{kind:"word",value:e}}function kn(e,r){return{kind:"function",value:e,nodes:r}}function wn(e){return{kind:"separator",value:e}}function H(e){let r="";for(let i of e)switch(i.kind){case"word":case"separator":{r+=i.value;break}case"function":r+=i.value+"("+H(i.nodes)+")"}return r}var xr=92,yn=41,Ar=58,Cr=44,bn=34,Sr=61,$r=62,Tr=60,Er=10,xn=40,An=39,Cn=47,Nr=32,Vr=9;function B(e){e=e.replaceAll(`\r
`,`
`);let r=[],i=[],t=null,n="",l;for(let o=0;o<e.length;o++){let f=e.charCodeAt(o);switch(f){case xr:{n+=e[o]+e[o+1],o++;break}case Cn:{if(n.length>0){let c=oe(n);t?t.nodes.push(c):r.push(c),n=""}let u=oe(e[o]);t?t.nodes.push(u):r.push(u);break}case Ar:case Cr:case Sr:case $r:case Tr:case Er:case Nr:case Vr:{if(n.length>0){let d=oe(n);t?t.nodes.push(d):r.push(d),n=""}let u=o,c=o+1;for(;c<e.length&&(l=e.charCodeAt(c),!(l!==Ar&&l!==Cr&&l!==Sr&&l!==$r&&l!==Tr&&l!==Er&&l!==Nr&&l!==Vr));c++);o=c-1;let m=wn(e.slice(u,c));t?t.nodes.push(m):r.push(m);break}case An:case bn:{let u=o;for(let c=o+1;c<e.length;c++)if(l=e.charCodeAt(c),l===xr)c+=1;else if(l===f){o=c;break}n+=e.slice(u,o+1);break}case xn:{let u=kn(n,[]);n="",t?t.nodes.push(u):r.push(u),i.push(u),t=u;break}case yn:{let u=i.pop();if(n.length>0){let c=oe(n);u?.nodes.push(c),n=""}i.length>0?t=i[i.length-1]:t=null;break}default:n+=String.fromCharCode(f)}}return n.length>0&&r.push(oe(n)),r}var jt=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(jt||{}),V={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function _(e,r){typeof r=="function"?Rr(e,r):Rr(e,r.enter,r.exit)}function Rr(e,r=()=>V.Continue,i=()=>V.Continue){let t=[[e,0,null]],n={parent:null,depth:0,path(){let l=[];for(let o=1;o<t.length;o++){let f=t[o][2];f&&l.push(f)}return l}};for(;t.length>0;){let l=t.length-1,o=t[l],f=o[0],u=o[1],c=o[2];if(u>=f.length){t.pop();continue}if(n.parent=c,n.depth=l,u>=0){let k=f[u],h=r(k,n)??V.Continue;switch(h.kind){case 0:{k.nodes&&k.nodes.length>0&&t.push([k.nodes,0,k]),o[1]=~u;continue}case 2:return;case 1:{o[1]=~u;continue}case 3:{f.splice(u,1,...h.nodes);continue}case 5:{f.splice(u,1,...h.nodes);return}case 4:{f.splice(u,1,...h.nodes),o[1]+=h.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${jt[h.kind]??`Unknown(${h.kind})`}\` in enter.`)}}let m=~u,d=f[m],p=i(d,n)??V.Continue;switch(p.kind){case 0:o[1]=m+1;continue;case 2:return;case 3:{f.splice(m,1,...p.nodes),o[1]=m+p.nodes.length;continue}case 5:{f.splice(m,1,...p.nodes);return}case 4:{f.splice(m,1,...p.nodes),o[1]=m+p.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${jt[p.kind]??`Unknown(${p.kind})`}\` in exit.`)}}}function gt(e){let r=[];return _(B(e),i=>{if(!(i.kind!=="function"||i.value!=="var"))return _(i.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||r.push(t.value)}),V.Skip}),r}var Sn=64;function q(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function F(e,r="",i=[]){return{kind:"at-rule",name:e,params:r,nodes:i}}function Z(e,r=[]){return e.charCodeAt(0)===Sn?Je(e,r):q(e,r)}function a(e,r,i=!1){return{kind:"declaration",property:e,value:r,important:i}}function dt(e){return{kind:"comment",value:e}}function de(e,r){return{kind:"context",context:e,nodes:r}}function W(e){return{kind:"at-root",nodes:e}}function ee(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(ee),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function et(e){return{depth:e.depth,get context(){let r={};for(let i of e.path())i.kind==="context"&&Object.assign(r,i.context);return Object.defineProperty(this,"context",{value:r}),r},get parent(){let r=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:r}),r},path(){return e.path().filter(r=>r.kind!=="context")}}}function Re(e,r,i=3){let t=[],n=new Set,l=new U(()=>new Set),o=new U(()=>new Set),f=new Set,u=new Set,c=[],m=[],d=new U(()=>new Set);function p(h,w,x={},S=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(x.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}x.keyframes||l.get(w).add(h)}if(h.value.includes("var("))if(x.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let A of gt(h.value))d.get(A).add(h.property);else r.trackUsedVariables(h.value);if(h.property==="animation")for(let A of Or(h.value))u.add(A);i&2&&h.value.includes("color-mix(")&&!x.keyframes&&o.get(w).add(h),w.push(h)}else if(h.kind==="rule"){let A=[];for(let N of h.nodes)p(N,A,x,S+1);let y={},K=new Set;for(let N of A){if(N.kind!=="declaration")continue;let P=`${N.property}:${N.value}:${N.important}`;y[P]??=[],y[P].push(N)}for(let N in y)for(let P=0;P<y[N].length-1;++P)K.add(y[N][P]);if(K.size>0&&(A=A.filter(N=>!K.has(N))),A.length===0)return;h.selector==="&"?w.push(...A):w.push({...h,nodes:A})}else if(h.kind==="at-rule"&&h.name==="@property"&&S===0){if(n.has(h.params))return;if(i&1){let y=h.params,K=null,N=!1;for(let z of h.nodes)z.kind==="declaration"&&(z.property==="initial-value"?K=z.value:z.property==="inherits"&&(N=z.value==="true"));let P=a(y,K??"initial");P.src=h.src,N?c.push(P):m.push(P)}n.add(h.params);let A={...h,nodes:[]};for(let y of h.nodes)p(y,A.nodes,x,S+1);w.push(A)}else if(h.kind==="at-rule"){h.name==="@keyframes"&&(x={...x,keyframes:!0});let A={...h,nodes:[]};for(let y of h.nodes)p(y,A.nodes,x,S+1);h.name==="@keyframes"&&x.theme&&f.add(A),(A.nodes.length>0||A.name==="@layer"||A.name==="@charset"||A.name==="@custom-media"||A.name==="@namespace"||A.name==="@import")&&w.push(A)}else if(h.kind==="at-root")for(let A of h.nodes){let y=[];p(A,y,x,0);for(let K of y)t.push(K)}else if(h.kind==="context"){if(h.context.reference)return;for(let A of h.nodes)p(A,w,{...x,...h.context},S)}else h.kind==="comment"&&w.push(h)}let k=[];for(let h of e)p(h,k,{},0);e:for(let[h,w]of l)for(let x of w){if(Pr(x.property,r.theme,d)){if(x.property.startsWith(r.theme.prefixKey("--animate-")))for(let y of Or(x.value))u.add(y);continue}let A=h.indexOf(x);if(h.splice(A,1),h.length===0){let y=$n(k,K=>K.kind==="rule"&&K.nodes===h);if(!y||y.length===0)continue e;y.unshift({kind:"at-root",nodes:k});do{let K=y.pop();if(!K)break;let N=y[y.length-1];if(!N||N.kind!=="at-root"&&N.kind!=="at-rule")break;let P=N.nodes.indexOf(K);if(P===-1)break;N.nodes.splice(P,1)}while(!0);continue e}}for(let h of f)if(!u.has(h.params)){let w=t.indexOf(h);t.splice(w,1)}if(k=k.concat(t),i&2)for(let[h,w]of o)for(let x of w){let S=h.indexOf(x);if(S===-1||x.value==null)continue;let A=B(x.value),y=!1;if(_(A,P=>{if(P.kind!=="function"||P.value!=="color-mix")return;let z=!1,I=!1;if(_(P.nodes,M=>{if(M.kind=="word"&&M.value.toLowerCase()==="currentcolor"){I=!0,y=!0;return}let Y=M,G=null,ae=new Set;do{if(Y.kind!=="function"||Y.value!=="var")return;let le=Y.nodes[0];if(!le||le.kind!=="word")return;let s=le.value;if(ae.has(s)){z=!0;return}if(ae.add(s),y=!0,G=r.theme.resolveValue(null,[le.value]),!G){z=!0;return}if(G.toLowerCase()==="currentcolor"){I=!0;return}G.startsWith("var(")?Y=B(G)[0]:Y=null}while(Y);return V.Replace({kind:"word",value:G})}),z||I){let M=P.nodes.findIndex(G=>G.kind==="separator"&&G.value.trim().includes(","));if(M===-1)return;let Y=P.nodes.length>M?P.nodes[M+1]:null;return Y?V.Replace(Y):void 0}else if(y){let M=P.nodes[2];M.kind==="word"&&(M.value==="oklab"||M.value==="oklch"||M.value==="lab"||M.value==="lch")&&(M.value="srgb")}}),!y)continue;let K={...x,value:H(A)},N=Z("@supports (color: color-mix(in lab, red, red))",[x]);N.src=x.src,h.splice(S,1,K,N)}if(i&1){let h=[];if(c.length>0){let w=Z(":root, :host",c);w.src=c[0].src,h.push(w)}if(m.length>0){let w=Z("*, ::before, ::after, ::backdrop",m);w.src=m[0].src,h.push(w)}if(h.length>0){let w=k.findIndex(A=>!(A.kind==="comment"||A.kind==="at-rule"&&(A.name==="@charset"||A.name==="@import"))),x=F("@layer","properties",[]);x.src=h[0].src,k.splice(w<0?k.length:w,0,x);let S=Z("@layer properties",[F("@supports","((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))",h)]);S.src=h[0].src,S.nodes[0].src=h[0].src,k.push(S)}}return k}function ie(e,r){let i=0,t={file:null,code:""};function n(o,f=0){let u="",c=" ".repeat(f);if(o.kind==="declaration"){if(u+=`${c}${o.property}: ${o.value}${o.important?" !important":""};
`,r){i+=c.length;let m=i;i+=o.property.length,i+=2,i+=o.value?.length??0,o.important&&(i+=11);let d=i;i+=2,o.dst=[t,m,d]}}else if(o.kind==="rule"){if(u+=`${c}${o.selector} {
`,r){i+=c.length;let m=i;i+=o.selector.length,i+=1;let d=i;o.dst=[t,m,d],i+=2}for(let m of o.nodes)u+=n(m,f+1);u+=`${c}}
`,r&&(i+=c.length,i+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let m=`${c}${o.name} ${o.params};
`;if(r){i+=c.length;let d=i;i+=o.name.length,i+=1,i+=o.params.length;let p=i;i+=2,o.dst=[t,d,p]}return m}if(u+=`${c}${o.name}${o.params?` ${o.params} `:" "}{
`,r){i+=c.length;let m=i;i+=o.name.length,o.params&&(i+=1,i+=o.params.length),i+=1;let d=i;o.dst=[t,m,d],i+=2}for(let m of o.nodes)u+=n(m,f+1);u+=`${c}}
`,r&&(i+=c.length,i+=2)}else if(o.kind==="comment"){if(u+=`${c}/*${o.value}*/
`,r){i+=c.length;let m=i;i+=2+o.value.length+2;let d=i;o.dst=[t,m,d],i+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return u}let l="";for(let o of e)l+=n(o,0);return t.code=l,l}function $n(e,r){let i=[];return _(e,(t,n)=>{if(r(t))return i=n.path(),i.push(t),V.Stop}),i}function Pr(e,r,i,t=new Set){if(t.has(e)||(t.add(e),r.getOptions(e)&24))return!0;{let l=i.get(e)??[];for(let o of l)if(Pr(o,r,i,t))return!0}return!1}function Or(e){return e.split(/[\s,]+/)}var Ft=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function tt(e){return e.indexOf("(")!==-1&&Ft.some(r=>e.includes(`${r}(`))}function _r(e){if(!Ft.some(l=>e.includes(l)))return e;let r="",i=[],t=null,n=null;for(let l=0;l<e.length;l++){let o=e.charCodeAt(l);if(o>=48&&o<=57||t!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?t=l:(n=t,t=null),o===40){r+=e[l];let f=l;for(let c=l-1;c>=0;c--){let m=e.charCodeAt(c);if(m>=48&&m<=57)f=c;else if(m>=97&&m<=122)f=c;else break}let u=e.slice(f,l);if(Ft.includes(u)){i.unshift(!0);continue}else if(i[0]&&u===""){i.unshift(!0);continue}i.unshift(!1);continue}else if(o===41)r+=e[l],i.shift();else if(o===44&&i[0]){r+=", ";continue}else{if(o===32&&i[0]&&r.charCodeAt(r.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&i[0]){let f=r.trimEnd(),u=f.charCodeAt(f.length-1),c=f.charCodeAt(f.length-2),m=e.charCodeAt(l+1);if((u===101||u===69)&&c>=48&&c<=57){r+=e[l];continue}else if(u===43||u===42||u===47||u===45){r+=e[l];continue}else if(u===40||u===44){r+=e[l];continue}else e.charCodeAt(l-1)===32?r+=`${e[l]} `:u>=48&&u<=57||m>=48&&m<=57||u===41||m===40||m===43||m===42||m===47||m===45||n!==null&&n===l-1?r+=` ${e[l]} `:r+=e[l]}else r+=e[l]}}return r}function Ae(e){if(e.indexOf("(")===-1)return ze(e);let r=B(e);return Wt(r),e=H(r),e=_r(e),e}function ze(e,r=!1){let i="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(i+="_",t+=1):n==="_"&&!r?i+=" ":i+=n}return i}function Wt(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=ze(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=ze(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=ze(r.nodes[i].value,!0);continue}Wt([r.nodes[i]])}break}r.value=ze(r.value),Wt(r.nodes);break}case"separator":case"word":{r.value=ze(r.value);break}default:Tn(r)}}function Tn(e){throw new Error(`Unexpected value: ${e}`)}var Bt=new Uint8Array(256);function ke(e){let r=0,i=e.length;for(let t=0;t<i;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<i;){let l=e.charCodeAt(t);if(l===92){t+=1;continue}if(l===n)break}break;case 40:Bt[r]=41,r++;break;case 91:Bt[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===Bt[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var vt=new Uint8Array(256);function L(e,r){let i=0,t=[],n=0,l=e.length,o=r.charCodeAt(0);for(let f=0;f<l;f++){let u=e.charCodeAt(f);if(i===0&&u===o){t.push(e.slice(n,f)),n=f+1;continue}switch(u){case 92:f+=1;break;case 39:case 34:for(;++f<l;){let c=e.charCodeAt(f);if(c===92){f+=1;continue}if(c===u)break}break;case 40:vt[i]=41,i++;break;case 91:vt[i]=93,i++;break;case 123:vt[i]=125,i++;break;case 93:case 125:case 41:i>0&&u===vt[i-1]&&i--;break}}return t.push(e.slice(n)),t}var En=58,Ir=45,Dr=97,Ur=122,Gt=/^[a-zA-Z0-9_.%-]+$/;function Lr(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Me),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(Me),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Me(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:Me(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*Kr(e,r){let i=L(e,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let t=i.pop(),n=[];for(let d=i.length-1;d>=0;--d){let p=r.parseVariant(i[d]);if(p===null)return;n.push(p)}let l=!1;t[t.length-1]==="!"?(l=!0,t=t.slice(0,-1)):t[0]==="!"&&(l=!0,t=t.slice(1)),r.utilities.has(t,"static")&&!t.includes("[")&&(yield{kind:"static",root:t,variants:n,important:l,raw:e});let[o,f=null,u]=L(t,"/");if(u)return;let c=f===null?null:Yt(f);if(f!==null&&c===null)return;if(o[0]==="["){if(o[o.length-1]!=="]")return;let d=o.charCodeAt(1);if(d!==Ir&&!(d>=Dr&&d<=Ur))return;o=o.slice(1,-1);let p=o.indexOf(":");if(p===-1||p===0||p===o.length-1)return;let k=o.slice(0,p),h=Ae(o.slice(p+1));if(!ke(h))return;yield{kind:"arbitrary",property:k,value:h,modifier:c,variants:n,important:l,raw:e};return}let m;if(o[o.length-1]==="]"){let d=o.indexOf("-[");if(d===-1)return;let p=o.slice(0,d);if(!r.utilities.has(p,"functional"))return;let k=o.slice(d+1);m=[[p,k]]}else if(o[o.length-1]===")"){let d=o.indexOf("-(");if(d===-1)return;let p=o.slice(0,d);if(!r.utilities.has(p,"functional"))return;let k=o.slice(d+2,-1),h=L(k,":"),w=null;if(h.length===2&&(w=h[0],k=h[1]),k[0]!=="-"||k[1]!=="-"||!ke(k))return;m=[[p,w===null?`[var(${k})]`:`[${w}:var(${k})]`]]}else m=Mr(o,d=>r.utilities.has(d,"functional"));for(let[d,p]of m){let k={kind:"functional",root:d,modifier:c,value:null,variants:n,important:l,raw:e};if(p===null){yield k;continue}{let h=p.indexOf("[");if(h!==-1){if(p[p.length-1]!=="]")return;let x=Ae(p.slice(h+1,-1));if(!ke(x))continue;let S=null;for(let A=0;A<x.length;A++){let y=x.charCodeAt(A);if(y===En){S=x.slice(0,A),x=x.slice(A+1);break}if(!(y===Ir||y>=Dr&&y<=Ur))break}if(x.length===0||x.trim().length===0||S==="")continue;k.value={kind:"arbitrary",dataType:S||null,value:x}}else{let x=f===null||k.modifier?.kind==="arbitrary"?null:`${p}/${f}`;if(!Gt.test(p))continue;k.value={kind:"named",value:p,fraction:x}}}yield k}}function Yt(e){if(e[0]==="["&&e[e.length-1]==="]"){let r=Ae(e.slice(1,-1));return!ke(r)||r.length===0||r.trim().length===0?null:{kind:"arbitrary",value:r}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!ke(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ae(e)})):Gt.test(e)?{kind:"named",value:e}:null}function zr(e,r){if(e[0]==="["&&e[e.length-1]==="]"){if(e[1]==="@"&&e.includes("&"))return null;let i=Ae(e.slice(1,-1));if(!ke(i)||i.length===0||i.trim().length===0)return null;let t=i[0]===">"||i[0]==="+"||i[0]==="~";return!t&&i[0]!=="@"&&!i.includes("&")&&(i=`&:is(${i})`),{kind:"arbitrary",selector:i,relative:t}}{let[i,t=null,n]=L(e,"/");if(n)return null;let l=Mr(i,o=>r.variants.has(o));for(let[o,f]of l)switch(r.variants.kind(o)){case"static":return f!==null||t!==null?null:{kind:"static",root:o};case"functional":{let u=t===null?null:Yt(t);if(t!==null&&u===null)return null;if(f===null)return{kind:"functional",root:o,modifier:u,value:null};if(f[f.length-1]==="]"){if(f[0]!=="[")continue;let c=Ae(f.slice(1,-1));return!ke(c)||c.length===0||c.trim().length===0?null:{kind:"functional",root:o,modifier:u,value:{kind:"arbitrary",value:c}}}if(f[f.length-1]===")"){if(f[0]!=="(")continue;let c=Ae(f.slice(1,-1));return!ke(c)||c.length===0||c.trim().length===0||c[0]!=="-"||c[1]!=="-"?null:{kind:"functional",root:o,modifier:u,value:{kind:"arbitrary",value:`var(${c})`}}}if(!Gt.test(f))continue;return{kind:"functional",root:o,modifier:u,value:{kind:"named",value:f}}}case"compound":{if(f===null)return null;t&&(o==="not"||o==="has"||o==="in")&&(f=`${f}/${t}`,t=null);let u=r.parseVariant(f);if(u===null||!r.variants.compoundsWith(o,u))return null;let c=t===null?null:Yt(t);return t!==null&&c===null?null:{kind:"compound",root:o,modifier:c,variant:u}}}}return null}function*Mr(e,r){r(e)&&(yield[e,null]);let i=e.lastIndexOf("-");for(;i>0;){let t=e.slice(0,i);if(r(t)){let n=[t,e.slice(i+1)];if(n[1]===""||n[0]==="@"&&r("@")&&e[i]==="-")break;yield n}i=e.lastIndexOf("-",i-1)}e[0]==="@"&&r("@")&&(yield["@",e.slice(1)])}function jr(e,r){let i=[];for(let n of r.variants)i.unshift(kt(n));e.theme.prefix&&i.unshift(e.theme.prefix);let t="";if(r.kind==="static"&&(t+=r.root),r.kind==="functional"&&(t+=r.root,r.value))if(r.value.kind==="arbitrary"){if(r.value!==null){let n=Ht(r.value.value),l=n?r.value.value.slice(4,-1):r.value.value,[o,f]=n?["(",")"]:["[","]"];r.value.dataType?t+=`-${o}${r.value.dataType}:${Ce(l)}${f}`:t+=`-${o}${Ce(l)}${f}`}}else r.value.kind==="named"&&(t+=`-${r.value.value}`);return r.kind==="arbitrary"&&(t+=`[${r.property}:${Ce(r.value)}]`),(r.kind==="arbitrary"||r.kind==="functional")&&(t+=it(r.modifier)),r.important&&(t+="!"),i.push(t),i.join(":")}function it(e){if(e===null)return"";let r=Ht(e.value),i=r?e.value.slice(4,-1):e.value,[t,n]=r?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${t}${Ce(i)}${n}`:e.kind==="named"?`/${e.value}`:""}function kt(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${Ce(Rn(e.selector))}]`;let r="";if(e.kind==="functional"){r+=e.root;let i=e.root!=="@";if(e.value)if(e.value.kind==="arbitrary"){let t=Ht(e.value.value),n=t?e.value.value.slice(4,-1):e.value.value,[l,o]=t?["(",")"]:["[","]"];r+=`${i?"-":""}${l}${Ce(n)}${o}`}else e.value.kind==="named"&&(r+=`${i?"-":""}${e.value.value}`)}return e.kind==="compound"&&(r+=e.root,r+="-",r+=kt(e.variant)),(e.kind==="functional"||e.kind==="compound")&&(r+=it(e.modifier)),r}var Nn=new U(e=>{let r=B(e),i=new Set;return _(r,(t,n)=>{let l=n.parent===null?r:n.parent.nodes??[];if(t.kind==="word"&&(t.value==="+"||t.value==="-"||t.value==="*"||t.value==="/")){let o=l.indexOf(t)??-1;if(o===-1)return;let f=l[o-1];if(f?.kind!=="separator"||f.value!==" ")return;let u=l[o+1];if(u?.kind!=="separator"||u.value!==" ")return;i.add(f),i.add(u)}else t.kind==="separator"&&t.value.length>0&&t.value.trim()===""?(l[0]===t||l[l.length-1]===t)&&i.add(t):t.kind==="separator"&&t.value.trim()===","&&(t.value=",")}),i.size>0&&_(r,t=>{if(i.has(t))return i.delete(t),V.ReplaceSkip([])}),qt(r),H(r)});function Ce(e){return Nn.get(e)}var Vn=new U(e=>{let r=B(e);return r.length===3&&r[0].kind==="word"&&r[0].value==="&"&&r[1].kind==="separator"&&r[1].value===":"&&r[2].kind==="function"&&r[2].value==="is"?H(r[2].nodes):e});function Rn(e){return Vn.get(e)}function qt(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=rt(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=rt(r.value);for(let i=0;i<r.nodes.length;i++)qt([r.nodes[i]]);break}r.value=rt(r.value),qt(r.nodes);break}case"separator":r.value=rt(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=rt(r.value));break}default:Pn(r)}}var On=new U(e=>{let r=B(e);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function Ht(e){return On.get(e)}function Pn(e){throw new Error(`Unexpected value: ${e}`)}function rt(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Oe(e,r,i){if(e===r)return 0;let t=e.indexOf("("),n=r.indexOf("("),l=t===-1?e.replace(/[\d.]+/g,""):e.slice(0,t),o=n===-1?r.replace(/[\d.]+/g,""):r.slice(0,n),f=(l===o?0:l<o?-1:1)||(i==="asc"?parseInt(e)-parseInt(r):parseInt(r)-parseInt(e));return Number.isNaN(f)?e<r?-1:1:f}var _n=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"]),In=/^(rgba?|hsla?|hwb|color|(ok)?(lab|lch)|light-dark|color-mix)\(/i;function Fr(e){return e.charCodeAt(0)===35||In.test(e)||_n.has(e.toLowerCase())}var Dn={color:Fr,length:je,percentage:Zt,ratio:Hn,number:Br,integer:O,url:Wr,position:Jn,"bg-size":Xn,"line-width":Ln,image:Mn,"family-name":Fn,"generic-name":jn,"absolute-size":Wn,"relative-size":Bn,angle:ro,vector:no};function Q(e,r){if(e.startsWith("var("))return null;for(let i of r)if(Dn[i]?.(e))return i;return null}var Un=/^url\(.*\)$/;function Wr(e){return Un.test(e)}function Ln(e){return L(e," ").every(r=>je(r)||Br(r)||r==="thin"||r==="medium"||r==="thick")}var Kn=/^(?:element|image|cross-fade|image-set)\(/,zn=/^(repeating-)?(conic|linear|radial)-gradient\(/;function Mn(e){let r=0;for(let i of L(e,","))if(!i.startsWith("var(")){if(Wr(i)){r+=1;continue}if(zn.test(i)){r+=1;continue}if(Kn.test(i)){r+=1;continue}return!1}return r>0}function jn(e){return e==="serif"||e==="sans-serif"||e==="monospace"||e==="cursive"||e==="fantasy"||e==="system-ui"||e==="ui-serif"||e==="ui-sans-serif"||e==="ui-monospace"||e==="ui-rounded"||e==="math"||e==="emoji"||e==="fangsong"}function Fn(e){let r=0;for(let i of L(e,",")){let t=i.charCodeAt(0);if(t>=48&&t<=57)return!1;i.startsWith("var(")||(r+=1)}return r>0}function Wn(e){return e==="xx-small"||e==="x-small"||e==="small"||e==="medium"||e==="large"||e==="x-large"||e==="xx-large"||e==="xxx-large"}function Bn(e){return e==="larger"||e==="smaller"}var we=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Yn=new RegExp(`^${we.source}$`);function Br(e){return Yn.test(e)||tt(e)}var qn=new RegExp(`^${we.source}%$`);function Zt(e){return qn.test(e)||tt(e)}var Gn=new RegExp(`^${we.source}s*/s*${we.source}$`);function Hn(e){return Gn.test(e)||tt(e)}var Zn=["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"],Qn=new RegExp(`^${we.source}(${Zn.join("|")})$`);function je(e){return Qn.test(e)||tt(e)}function Jn(e){let r=0;for(let i of L(e," ")){if(i==="center"||i==="top"||i==="right"||i==="bottom"||i==="left"){r+=1;continue}if(!i.startsWith("var(")){if(je(i)||Zt(i)){r+=1;continue}return!1}}return r>0}function Xn(e){let r=0;for(let i of L(e,",")){if(i==="cover"||i==="contain"){r+=1;continue}let t=L(i," ");if(t.length!==1&&t.length!==2)return!1;if(t.every(n=>n==="auto"||je(n)||Zt(n))){r+=1;continue}}return r>0}var eo=["deg","rad","grad","turn"],to=new RegExp(`^${we.source}(${eo.join("|")})$`);function ro(e){return to.test(e)}var io=new RegExp(`^${we.source} +${we.source} +${we.source}$`);function no(e){return io.test(e)}function O(e){let r=Number(e);return Number.isInteger(r)&&r>=0&&String(r)===String(e)}function Qt(e){let r=Number(e);return Number.isInteger(r)&&r>0&&String(r)===String(e)}function ne(e){return Yr(e,.25)}function wt(e){return Yr(e,.25)}function Yr(e,r){let i=Number(e);return i>=0&&i%r===0&&String(i)===String(e)}var oo=new Set(["inset","inherit","initial","revert","unset"]),qr=/^-?(\d+|\.\d+)(.*?)$/g;function nt(e,r){return L(e,",").map(t=>{t=t.trim();let n=L(t," ").filter(c=>c.trim()!==""),l=null,o=null,f=null;for(let c of n)oo.has(c)||(qr.test(c)?(o===null?o=c:f===null&&(f=c),qr.lastIndex=0):l===null&&(l=c));if(o===null||f===null)return t;let u=r(l??"currentcolor");return l!==null?t.replace(l,u):`${t} ${u}`}).join(", ")}var lo=/^-?[a-z][a-zA-Z0-9/%._-]*$/,so=/^-?[a-z][a-zA-Z0-9/%._-]*-\*$/,bt=["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"],Jt=class{utilities=new U(()=>[]);completions=new Map;static(r,i){this.utilities.get(r).push({kind:"static",compileFn:i})}functional(r,i,t){this.utilities.get(r).push({kind:"functional",compileFn:i,options:t})}has(r,i){return this.utilities.has(r)&&this.utilities.get(r).some(t=>t.kind===i)}get(r){return this.utilities.has(r)?this.utilities.get(r):[]}getCompletions(r){return this.has(r,"static")?this.completions.get(r)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(r)?.()??[]}suggest(r,i){let t=this.completions.get(r);t?this.completions.set(r,()=>[...t?.(),...i?.()]):this.completions.set(r,i)}keys(r){let i=[];for(let[t,n]of this.utilities.entries())for(let l of n)if(l.kind===r){i.push(t);break}return i}};function $(e,r,i){return F("@property",e,[a("syntax",i?`"${i}"`:'"*"'),a("inherits","false"),...r?[a("initial-value",r)]:[]])}function J(e,r){if(r===null)return e;let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),r==="100%"?e:`color-mix(in oklab, ${e} ${r}, transparent)`}function Hr(e,r){let i=Number(r);return Number.isNaN(i)||(r=`${i*100}%`),`oklab(from ${e} l a b / ${r})`}function X(e,r,i){if(!r)return e;if(r.kind==="arbitrary")return J(e,r.value);let t=i.resolve(r.value,["--opacity"]);return t?J(e,t):wt(r.value)?J(e,`${r.value}%`):null}function te(e,r,i){let t=null;switch(e.value.value){case"inherit":{t="inherit";break}case"transparent":{t="transparent";break}case"current":{t="currentcolor";break}default:{t=r.resolve(e.value.value,i);break}}return t?X(t,e.modifier,r):null}var Zr=/(\d+)_(\d+)/g;function Qr(e){let r=new Jt;function i(s,g){function*v(b){for(let T of e.keysInNamespaces(b))yield T.replace(Zr,(D,E,R)=>`${E}.${R}`)}let C=["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(s,()=>{let b=[];for(let T of g()){if(typeof T=="string"){b.push({values:[T],modifiers:[]});continue}let D=[...T.values??[],...v(T.valueThemeKeys??[])],E=[...T.modifiers??[],...v(T.modifierThemeKeys??[])];T.supportsFractions&&D.push(...C),T.hasDefaultValue&&D.unshift(null),b.push({supportsNegative:T.supportsNegative,values:D,modifiers:E})}return b})}function t(s,g){r.static(s,()=>g.map(v=>typeof v=="function"?v():a(v[0],v[1])))}function n(s,g){function v({negative:C}){return b=>{let T=null,D=null;if(b.value)if(b.value.kind==="arbitrary"){if(b.modifier)return;T=b.value.value,D=b.value.dataType}else{if(T=e.resolve(b.value.fraction??b.value.value,g.themeKeys??[]),T===null&&g.supportsFractions&&b.value.fraction){let[E,R]=L(b.value.fraction,"/");if(!O(E)||!O(R))return;T=`calc(${b.value.fraction} * 100%)`}if(T===null&&C&&g.handleNegativeBareValue){if(T=g.handleNegativeBareValue(b.value),!T?.includes("/")&&b.modifier)return;if(T!==null)return g.handle(T,null)}if(T===null&&g.handleBareValue&&(T=g.handleBareValue(b.value),!T?.includes("/")&&b.modifier))return;if(T===null&&!C&&g.staticValues&&!b.modifier){let E=g.staticValues[b.value.value];if(E)return E.map(ee)}}else{if(b.modifier)return;T=g.defaultValue!==void 0?g.defaultValue:e.resolve(null,g.themeKeys??[])}if(T!==null)return g.handle(C?`calc(${T} * -1)`:T,D)}}if(g.supportsNegative&&r.functional(`-${s}`,v({negative:!0})),r.functional(s,v({negative:!1})),i(s,()=>[{supportsNegative:g.supportsNegative,valueThemeKeys:g.themeKeys??[],hasDefaultValue:g.defaultValue!==void 0&&g.defaultValue!==null,supportsFractions:g.supportsFractions}]),g.staticValues&&Object.keys(g.staticValues).length>0){let C=Object.keys(g.staticValues);i(s,()=>[{values:C}])}}function l(s,g){r.functional(s,v=>{if(!v.value)return;let C=null;if(v.value.kind==="arbitrary"?(C=v.value.value,C=X(C,v.modifier,e)):C=te(v,e,g.themeKeys),C!==null)return g.handle(C)}),i(s,()=>[{values:["current","inherit","transparent"],valueThemeKeys:g.themeKeys,modifiers:Array.from({length:21},(v,C)=>`${C*5}`)}])}function o(s,g,v,{supportsNegative:C=!1,supportsFractions:b=!1,staticValues:T}={}){C&&r.static(`-${s}-px`,()=>v("-1px")),r.static(`${s}-px`,()=>v("1px")),n(s,{themeKeys:g,supportsFractions:b,supportsNegative:C,defaultValue:null,handleBareValue:({value:D})=>{let E=e.resolve(null,["--spacing"]);return!E||!ne(D)?null:`calc(${E} * ${D})`},handleNegativeBareValue:({value:D})=>{let E=e.resolve(null,["--spacing"]);return!E||!ne(D)?null:`calc(${E} * -${D})`},handle:v,staticValues:T}),i(s,()=>[{values:e.get(["--spacing"])?bt:[],supportsNegative:C,supportsFractions:b,valueThemeKeys:g}])}t("sr-only",[["position","absolute"],["width","1px"],["height","1px"],["padding","0"],["margin","-1px"],["overflow","hidden"],["clip-path","inset(50%)"],["white-space","nowrap"],["border-width","0"]]),t("not-sr-only",[["position","static"],["width","auto"],["height","auto"],["padding","0"],["margin","0"],["overflow","visible"],["clip-path","none"],["white-space","normal"]]),t("pointer-events-none",[["pointer-events","none"]]),t("pointer-events-auto",[["pointer-events","auto"]]),t("visible",[["visibility","visible"]]),t("invisible",[["visibility","hidden"]]),t("collapse",[["visibility","collapse"]]),t("static",[["position","static"]]),t("fixed",[["position","fixed"]]),t("absolute",[["position","absolute"]]),t("relative",[["position","relative"]]),t("sticky",[["position","sticky"]]);for(let[s,g]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"]])t(`${s}-auto`,[[g,"auto"]]),t(`${s}-full`,[[g,"100%"]]),t(`-${s}-full`,[[g,"-100%"]]),o(s,["--inset","--spacing"],v=>[a(g,v)],{supportsNegative:!0,supportsFractions:!0});t("isolate",[["isolation","isolate"]]),t("isolation-auto",[["isolation","auto"]]),n("z",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--z-index"],handle:s=>[a("z-index",s)],staticValues:{auto:[a("z-index","auto")]}}),i("z",()=>[{supportsNegative:!0,values:["0","10","20","30","40","50"],valueThemeKeys:["--z-index"]}]),n("order",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--order"],handle:s=>[a("order",s)],staticValues:{first:[a("order","-9999")],last:[a("order","9999")]}}),i("order",()=>[{supportsNegative:!0,values:Array.from({length:12},(s,g)=>`${g+1}`),valueThemeKeys:["--order"]}]),n("col",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--grid-column"],handle:s=>[a("grid-column",s)],staticValues:{auto:[a("grid-column","auto")]}}),n("col-span",{handleBareValue:({value:s})=>O(s)?s:null,handle:s=>[a("grid-column",`span ${s} / span ${s}`)],staticValues:{full:[a("grid-column","1 / -1")]}}),n("col-start",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--grid-column-start"],handle:s=>[a("grid-column-start",s)],staticValues:{auto:[a("grid-column-start","auto")]}}),n("col-end",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--grid-column-end"],handle:s=>[a("grid-column-end",s)],staticValues:{auto:[a("grid-column-end","auto")]}}),i("col-span",()=>[{values:Array.from({length:12},(s,g)=>`${g+1}`),valueThemeKeys:[]}]),i("col-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,g)=>`${g+1}`),valueThemeKeys:["--grid-column-start"]}]),i("col-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,g)=>`${g+1}`),valueThemeKeys:["--grid-column-end"]}]),n("row",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--grid-row"],handle:s=>[a("grid-row",s)],staticValues:{auto:[a("grid-row","auto")]}}),n("row-span",{themeKeys:[],handleBareValue:({value:s})=>O(s)?s:null,handle:s=>[a("grid-row",`span ${s} / span ${s}`)],staticValues:{full:[a("grid-row","1 / -1")]}}),n("row-start",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--grid-row-start"],handle:s=>[a("grid-row-start",s)],staticValues:{auto:[a("grid-row-start","auto")]}}),n("row-end",{supportsNegative:!0,handleBareValue:({value:s})=>O(s)?s:null,themeKeys:["--grid-row-end"],handle:s=>[a("grid-row-end",s)],staticValues:{auto:[a("grid-row-end","auto")]}}),i("row-span",()=>[{values:Array.from({length:12},(s,g)=>`${g+1}`),valueThemeKeys:[]}]),i("row-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,g)=>`${g+1}`),valueThemeKeys:["--grid-row-start"]}]),i("row-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(s,g)=>`${g+1}`),valueThemeKeys:["--grid-row-end"]}]),t("float-start",[["float","inline-start"]]),t("float-end",[["float","inline-end"]]),t("float-right",[["float","right"]]),t("float-left",[["float","left"]]),t("float-none",[["float","none"]]),t("clear-start",[["clear","inline-start"]]),t("clear-end",[["clear","inline-end"]]),t("clear-right",[["clear","right"]]),t("clear-left",[["clear","left"]]),t("clear-both",[["clear","both"]]),t("clear-none",[["clear","none"]]);for(let[s,g]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"]])t(`${s}-auto`,[[g,"auto"]]),o(s,["--margin","--spacing"],v=>[a(g,v)],{supportsNegative:!0});t("box-border",[["box-sizing","border-box"]]),t("box-content",[["box-sizing","content-box"]]),n("line-clamp",{themeKeys:["--line-clamp"],handleBareValue:({value:s})=>O(s)?s:null,handle:s=>[a("overflow","hidden"),a("display","-webkit-box"),a("-webkit-box-orient","vertical"),a("-webkit-line-clamp",s)],staticValues:{none:[a("overflow","visible"),a("display","block"),a("-webkit-box-orient","horizontal"),a("-webkit-line-clamp","unset")]}}),i("line-clamp",()=>[{values:["1","2","3","4","5","6"],valueThemeKeys:["--line-clamp"]}]),t("block",[["display","block"]]),t("inline-block",[["display","inline-block"]]),t("inline",[["display","inline"]]),t("hidden",[["display","none"]]),t("inline-flex",[["display","inline-flex"]]),t("table",[["display","table"]]),t("inline-table",[["display","inline-table"]]),t("table-caption",[["display","table-caption"]]),t("table-cell",[["display","table-cell"]]),t("table-column",[["display","table-column"]]),t("table-column-group",[["display","table-column-group"]]),t("table-footer-group",[["display","table-footer-group"]]),t("table-header-group",[["display","table-header-group"]]),t("table-row-group",[["display","table-row-group"]]),t("table-row",[["display","table-row"]]),t("flow-root",[["display","flow-root"]]),t("flex",[["display","flex"]]),t("grid",[["display","grid"]]),t("inline-grid",[["display","inline-grid"]]),t("contents",[["display","contents"]]),t("list-item",[["display","list-item"]]),t("field-sizing-content",[["field-sizing","content"]]),t("field-sizing-fixed",[["field-sizing","fixed"]]),n("aspect",{themeKeys:["--aspect"],handleBareValue:({fraction:s})=>{if(s===null)return null;let[g,v]=L(s,"/");return!O(g)||!O(v)?null:s},handle:s=>[a("aspect-ratio",s)],staticValues:{auto:[a("aspect-ratio","auto")],square:[a("aspect-ratio","1 / 1")]}});for(let[s,g]of[["full","100%"],["svw","100svw"],["lvw","100lvw"],["dvw","100dvw"],["svh","100svh"],["lvh","100lvh"],["dvh","100dvh"],["min","min-content"],["max","max-content"],["fit","fit-content"]])t(`size-${s}`,[["--tw-sort","size"],["width",g],["height",g]]),t(`w-${s}`,[["width",g]]),t(`h-${s}`,[["height",g]]),t(`min-w-${s}`,[["min-width",g]]),t(`min-h-${s}`,[["min-height",g]]),t(`max-w-${s}`,[["max-width",g]]),t(`max-h-${s}`,[["max-height",g]]);t("size-auto",[["--tw-sort","size"],["width","auto"],["height","auto"]]),t("w-auto",[["width","auto"]]),t("h-auto",[["height","auto"]]),t("min-w-auto",[["min-width","auto"]]),t("min-h-auto",[["min-height","auto"]]),t("h-lh",[["height","1lh"]]),t("min-h-lh",[["min-height","1lh"]]),t("max-h-lh",[["max-height","1lh"]]),t("w-screen",[["width","100vw"]]),t("min-w-screen",[["min-width","100vw"]]),t("max-w-screen",[["max-width","100vw"]]),t("h-screen",[["height","100vh"]]),t("min-h-screen",[["min-height","100vh"]]),t("max-h-screen",[["max-height","100vh"]]),t("max-w-none",[["max-width","none"]]),t("max-h-none",[["max-height","none"]]),o("size",["--size","--spacing"],s=>[a("--tw-sort","size"),a("width",s),a("height",s)],{supportsFractions:!0});for(let[s,g,v]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"]])o(s,g,C=>[a(v,C)],{supportsFractions:!0});r.static("container",()=>{let s=[...e.namespace("--breakpoint").values()];s.sort((v,C)=>Oe(v,C,"asc"));let g=[a("--tw-sort","--tw-container-component"),a("width","100%")];for(let v of s)g.push(F("@media",`(width >= ${v})`,[a("max-width",v)]));return g}),t("flex-auto",[["flex","auto"]]),t("flex-initial",[["flex","0 auto"]]),t("flex-none",[["flex","none"]]),r.functional("flex",s=>{if(s.value){if(s.value.kind==="arbitrary")return s.modifier?void 0:[a("flex",s.value.value)];if(s.value.fraction){let[g,v]=L(s.value.fraction,"/");return!O(g)||!O(v)?void 0:[a("flex",`calc(${s.value.fraction} * 100%)`)]}if(O(s.value.value))return s.modifier?void 0:[a("flex",s.value.value)]}}),i("flex",()=>[{supportsFractions:!0},{values:Array.from({length:12},(s,g)=>`${g+1}`)}]),n("shrink",{defaultValue:"1",handleBareValue:({value:s})=>O(s)?s:null,handle:s=>[a("flex-shrink",s)]}),n("grow",{defaultValue:"1",handleBareValue:({value:s})=>O(s)?s:null,handle:s=>[a("flex-grow",s)]}),i("shrink",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),i("grow",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),t("basis-auto",[["flex-basis","au