tailwindcss
Version:
A utility-first CSS framework for rapidly building custom user interfaces.
12 lines • 250 kB
JavaScript
import{a as z,b as st,c as wr,d as J,e as Ge,f as _,g as _t,h as Q,i as Ae,j as br}from"./chunk-C2OYBFIH.mjs";import{a as kr}from"./chunk-DCG7AFIE.mjs";import{a as _e,b as Ie,c as vr}from"./chunk-5JIJA4QV.mjs";var yr="4.3.3";function mn(e){return{kind:"combinator",value:e}}function It(e){return{kind:"complex",nodes:e}}function xr(e){return{kind:"compound",nodes:e}}function gn(e,i){return{kind:"function",value:e,nodes:i}}function hn(e){return{kind:"list",nodes:e}}function be(e){return{kind:"selector",value:e}}function Ar(e){return{kind:"value",value:e}}function qe(e){return e.kind==="selector"&&e.value.charCodeAt(0)===jt}function ut(e){if(e.kind!=="selector")return!1;switch(e.value.charCodeAt(0)){case jt:case Or:case Rr:case Pr:case Lt:case zt:return!1;default:return!0}}function oe(e,i=!1){let r="";for(let t of e)switch(t.kind){case"selector":case"value":{r+=t.value;break}case"combinator":{i||t.value===" "?r+=t.value:r+=` ${t.value} `;break}case"function":{r+=`${t.value}(${oe(t.nodes,i)})`;break}case"complex":case"compound":{r+=oe(t.nodes,i);break}case"list":{r+=t.nodes.map(n=>oe([n],i)).join(i?",":", ");break}}return r}var Cr=92,vn=93,Sr=41,Lt=58,Vr=44,wn=34,Rr=46,$r=62,Dt=10,Pr=35,zt=91,Tr=40,Nr=43,kn=39,Kt=32,Ut=9,Er=126,Or=38,jt=42;function fe(e){e=e.replaceAll(`\r
`,`
`);let i=[],r=i,t=!1,n=[],s=null,l="",d;function f(p=r){return p.length===1?p[0]:t?It(p):xr(p)}function c(p){let m=r[r.length-1];m?.kind==="compound"?m.nodes.push(p):m&&m.kind!=="list"&&m.kind!=="combinator"?r[r.length-1]=xr([m,p]):r.push(p)}for(let p=0;p<e.length;p++){let m=e.charCodeAt(p);switch(m){case Vr:{for(l.length>0&&(c(be(l)),l="");p+1<e.length&&(d=e.charCodeAt(p+1),!(d!==Dt&&d!==Kt&&d!==Ut));p++);if(s)s.nodes.push(f()),r=[],t=!1;else{let u=r.splice(0),v=f(u),h=hn([v]);r.push(h),s=h,r=[],t=!1}break}case $r:case Dt:case Kt:case Nr:case Ut:case Er:{l.length>0&&(c(be(l)),l="");let u=p,v=p+1;for(;v<e.length&&(d=e.charCodeAt(v),!(d!==$r&&d!==Dt&&d!==Kt&&d!==Nr&&d!==Ut&&d!==Er));v++);p=v-1;let h=e.slice(u,v).trim();if(h===""&&(r.length===0||v>=e.length||e.charCodeAt(v)===Vr))break;r.push(mn(h===""?" ":h)),t=!0;break}case Tr:{let u=gn(l,[]);if(l="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let v=p+1,h=0;for(let S=p+1;S<e.length;S++){if(d=e.charCodeAt(S),d===Tr){h++;continue}if(d===Sr){if(h===0){p=S;break}h--}}let k=p,y=e.slice(v,k);if(u.value===":nth-child"||u.value===":nth-last-child"){let S=y.indexOf("of ");if(S!==-1){u.nodes.push(Ar(y.slice(0,S+3)),...fe(y.slice(S+3))),l="",p=k,c(u);break}}u.nodes.push(Ar(y)),l="",p=k,c(u);break}c(u),n.push({target:r,currentList:s,containsCombinator:t}),r=u.nodes,t=!1,s=null;break}case Sr:{l.length>0&&(c(be(l)),l=""),s?s.nodes.push(f()):t&&r.splice(0,r.length,It(r.splice(0)));let u=n.pop();r=u?.target??i,s=u?.currentList??null,t=u?.containsCombinator??!1;break}case Rr:case Lt:case Pr:{if(m===Lt&&l===":"){l+=e[p];break}l.length>0&&c(be(l)),l=e[p];break}case zt:{l.length>0&&(c(be(l)),l="");let u=p,v=0;for(let h=p+1;h<e.length;h++){if(d=e.charCodeAt(h),d===zt){v++;continue}if(d===vn){if(v===0){p=h;break}v--}}c(be(e.slice(u,p+1)));break}case kn:case wn:{let u=p;for(let v=p+1;v<e.length;v++)if(d=e.charCodeAt(v),d===Cr)v+=1;else if(d===m){p=v;break}l+=e.slice(u,p+1);break}case Or:case jt:{l.length>0&&(c(be(l)),l=""),c(be(e[p]));break}case Cr:{l+=e[p]+e[p+1],p+=1;break}default:l+=e[p]}}return l.length>0&&c(be(l)),s?s.nodes.push(f()):t&&r.splice(0,r.length,It(r.splice(0))),i}function ft(e){let i=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&i.push(n+1);function r(n){let s=0,l=i.length;for(;l>0;){let f=(l|0)>>1,c=s+f;i[c]<=n?(s=c+1,l=l-f-1):l=f}s-=1;let d=n-i[s];return{line:s+1,column:d}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),i.length-1);let l=i[n],d=i[n+1]??l;return Math.min(Math.max(l+s,0),d)}return{find:r,findOffset:t}}var He=92,ct=47,pt=42,_r=34,Ir=39,bn=58,dt=59,me=10,mt=13,Ze=32,Je=9,Dr=123,Ft=125,Yt=40,Kr=41,yn=91,xn=93,Ur=45,Wt=64,An=33,ge=class e extends Error{loc;constructor(i,r){if(r){let t=r[0],n=ft(t.code).find(r[1]);i=`${t.file}:${n.line}:${n.column+1}: ${i}`}super(i),this.name="CssSyntaxError",this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function Te(e,i){let r=i?.from?{file:i.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],l=null,d=null,f="",c="",p=0,m;for(let u=0;u<e.length;u++){let v=e.charCodeAt(u);if(!(v===mt&&(m=e.charCodeAt(u+1),m===me)))if(v===He)f===""&&(p=u),f+=e.slice(u,u+2),u+=1;else if(v===ct&&e.charCodeAt(u+1)===pt){let h=u;for(let y=u+2;y<e.length;y++)if(m=e.charCodeAt(y),m===He)y+=1;else if(m===pt&&e.charCodeAt(y+1)===ct){u=y+1;break}let k=e.slice(h,u+1);if(k.charCodeAt(2)===An){let y=gt(k.slice(2,-2));n.push(y),r&&(y.src=[r,h,u+1],y.dst=[r,h,u+1])}}else if(v===Ir||v===_r){let h=Lr(e,u,v,r);f+=e.slice(u,h+1),u=h}else{if((v===Ze||v===me||v===Je)&&(m=e.charCodeAt(u+1))&&(m===Ze||m===me||m===Je||m===mt&&(m=e.charCodeAt(u+2))&&m==me))continue;if(v===me){if(f.length===0)continue;m=f.charCodeAt(f.length-1),m!==Ze&&m!==me&&m!==Je&&(f+=" ")}else if(v===Ur&&e.charCodeAt(u+1)===Ur&&f.length===0){let h="",k=u,y=-1;for(let x=u+2;x<e.length;x++)if(m=e.charCodeAt(x),m===He)x+=1;else if(m===Ir||m===_r)x=Lr(e,x,m,r);else if(m===ct&&e.charCodeAt(x+1)===pt){for(let b=x+2;b<e.length;b++)if(m=e.charCodeAt(b),m===He)b+=1;else if(m===pt&&e.charCodeAt(b+1)===ct){x=b+1;break}}else if(y===-1&&m===bn)y=f.length+x-k;else if(m===dt&&h.length===0){f+=e.slice(k,x),u=x;break}else if(m===Yt)h+=")";else if(m===yn)h+="]";else if(m===Dr)h+="}";else if((m===Ft||e.length-1===x)&&h.length===0){u=x-1,f+=e.slice(k,x);break}else(m===Kr||m===xn||m===Ft)&&h.length>0&&e[x]===h[h.length-1]&&(h=h.slice(0,-1));let S=Bt(f,y);if(!S)throw new ge("Invalid custom property, expected a value",r?[r,k,u]:null);r&&(S.src=[r,k,u],S.dst=[r,k,u]),l?l.nodes.push(S):t.push(S),f=""}else if(v===dt&&f.charCodeAt(0)===Wt)d=Qe(f),r&&(d.src=[r,p,u],d.dst=[r,p,u]),l?l.nodes.push(d):t.push(d),f="",d=null;else if(v===dt&&c[c.length-1]!==")"){let h=Bt(f);if(!h){if(f.length===0)continue;throw new ge(`Invalid declaration: \`${f.trim()}\``,r?[r,p,u]:null)}r&&(h.src=[r,p,u],h.dst=[r,p,u]),l?l.nodes.push(h):t.push(h),f=""}else if(v===Dr&&c[c.length-1]!==")")c+="}",d=Z(f.trim()),r&&(d.src=[r,p,u],d.dst=[r,p,u]),l&&l.nodes.push(d),s.push(l),l=d,f="",d=null;else if(v===Ft&&c[c.length-1]!==")"){if(c==="")throw new ge("Missing opening {",r?[r,u,u]:null);if(c=c.slice(0,-1),f.length>0)if(f.charCodeAt(0)===Wt)d=Qe(f),r&&(d.src=[r,p,u],d.dst=[r,p,u]),l?l.nodes.push(d):t.push(d),f="",d=null;else{let k=f.indexOf(":");if(l){let y=Bt(f,k);if(!y)throw new ge(`Invalid declaration: \`${f.trim()}\``,r?[r,p,u]:null);r&&(y.src=[r,p,u],y.dst=[r,p,u]),l.nodes.push(y)}}let h=s.pop()??null;h===null&&l&&t.push(l),l=h,f="",d=null}else if(v===Yt)c+=")",f+="(";else if(v===Kr){if(c[c.length-1]!==")")throw new ge("Missing opening (",r?[r,u,u]:null);c=c.slice(0,-1),f+=")"}else{if(f.length===0&&(v===Ze||v===me||v===Je))continue;f===""&&(p=u),f+=String.fromCharCode(v)}}}if(f.charCodeAt(0)===Wt){let u=Qe(f);r&&(u.src=[r,p,e.length],u.dst=[r,p,e.length]),t.push(u)}if(c.length>0&&l){if(l.kind==="rule")throw new ge(`Missing closing } at ${l.selector}`,l.src?[l.src[0],l.src[1],l.src[1]]:null);if(l.kind==="at-rule")throw new ge(`Missing closing } at ${l.name} ${l.params}`,l.src?[l.src[0],l.src[1],l.src[1]]:null)}return n.length>0?n.concat(t):t}function Qe(e,i=[]){let r=e,t="";for(let n=5;n<e.length;n++){let s=e.charCodeAt(n);if(s===Ze||s===Je||s===Yt){r=e.slice(0,n),t=e.slice(n);break}}return B(r.trim(),t.trim(),i)}function Bt(e,i=e.indexOf(":")){if(i===-1)return null;let r=e.indexOf("!important",i+1);return a(e.slice(0,i).trim(),e.slice(i+1,r===-1?e.length:r).trim(),r!==-1)}function Lr(e,i,r,t=null){let n;for(let s=i+1;s<e.length;s++)if(n=e.charCodeAt(s),n===He)s+=1;else{if(n===r)return s;if(n===dt&&(e.charCodeAt(s+1)===me||e.charCodeAt(s+1)===mt&&e.charCodeAt(s+2)===me))throw new ge(`Unterminated string: ${e.slice(i,s+1)+String.fromCharCode(r)}`,t?[t,i,s+1]:null);if(n===me||n===mt&&e.charCodeAt(s+1)===me)throw new ge(`Unterminated string: ${e.slice(i,s)+String.fromCharCode(r)}`,t?[t,i,s+1]:null)}return i}var U=class extends Map{constructor(r){super();this.factory=r}factory;get(r){let t=super.get(r);return t===void 0&&(t=this.factory(r,this),this.set(r,t)),t}};function ne(e){return{kind:"word",value:e}}function Cn(e,i){return{kind:"function",value:e,nodes:i}}function Sn(e){return{kind:"separator",value:e}}function F(e){let i="";for(let r of e)switch(r.kind){case"word":case"separator":{i+=r.value;break}case"function":i+=r.value+"("+F(r.nodes)+")"}return i}var zr=92,Vn=41,jr=58,Mr=44,$n=34,Fr=61,Wr=62,Br=60,Yr=10,Tn=40,Nn=39,En=47,Gr=32,qr=9;function M(e){e=e.replaceAll(`\r
`,`
`);let i=[],r=[],t=null,n="",s;for(let l=0;l<e.length;l++){let d=e.charCodeAt(l);switch(d){case zr:{n+=e[l]+e[l+1],l++;break}case En:{if(n.length>0){let c=ne(n);t?t.nodes.push(c):i.push(c),n=""}let f=ne(e[l]);t?t.nodes.push(f):i.push(f);break}case jr:case Mr:case Fr:case Wr:case Br:case Yr:case Gr:case qr:{if(n.length>0){let m=ne(n);t?t.nodes.push(m):i.push(m),n=""}let f=l,c=l+1;for(;c<e.length&&(s=e.charCodeAt(c),!(s!==jr&&s!==Mr&&s!==Fr&&s!==Wr&&s!==Br&&s!==Yr&&s!==Gr&&s!==qr));c++);l=c-1;let p=Sn(e.slice(f,c));t?t.nodes.push(p):i.push(p);break}case Nn:case $n:{let f=l;for(let c=l+1;c<e.length;c++)if(s=e.charCodeAt(c),s===zr)c+=1;else if(s===d){l=c;break}n+=e.slice(f,l+1);break}case Tn:{let f=Cn(n,[]);n="",t?t.nodes.push(f):i.push(f),r.push(f),t=f;break}case Vn:{let f=r.pop();if(n.length>0){let c=ne(n);f?.nodes.push(c),n=""}r.length>0?t=r[r.length-1]:t=null;break}default:n+=String.fromCharCode(d)}}return n.length>0&&i.push(ne(n)),i}var qt=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(qt||{}),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 P(e,i){typeof i=="function"?Hr(e,i):Hr(e,i.enter,i.exit)}function Hr(e,i=()=>V.Continue,r=()=>V.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,index:0,siblings:e,path(){let s=[],l=t;for(;l;){let d=l.value[2];d&&s.push(d),l=l.prev}return s.reverse(),s}};for(;t!==null;){let s=t.value,l=s[0],d=s[1],f=s[2];if(d>=l.length){t=t.prev,n.depth-=1;continue}if(n.parent=f,n.siblings=l,d>=0){n.index=d;let u=l[d],v=i(u,n)??V.Continue;switch(v.kind){case 0:{u.nodes&&u.nodes.length>0&&(n.depth+=1,t={value:[u.nodes,0,u],prev:t}),s[1]=~d;continue}case 2:return;case 1:{s[1]=~d;continue}case 3:{l.splice(d,1,...v.nodes);continue}case 5:{l.splice(d,1,...v.nodes);return}case 4:{l.splice(d,1,...v.nodes),s[1]+=v.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${qt[v.kind]??`Unknown(${v.kind})`}\` in enter.`)}}let c=~d;n.index=c;let p=l[c],m=r(p,n)??V.Continue;switch(m.kind){case 0:s[1]=c+1;continue;case 2:return;case 3:{l.splice(c,1,...m.nodes),s[1]=c+m.nodes.length;continue}case 5:{l.splice(c,1,...m.nodes);return}case 4:{l.splice(c,1,...m.nodes),s[1]=c+m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${qt[m.kind]??`Unknown(${m.kind})`}\` in exit.`)}}}var Rn=new U(e=>{let i=[];return P(M(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return P(r.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||i.push(t.value)}),V.Skip}),i});function ht(e){return Rn.get(e)}var Pn=64,On=124;function H(e,i=[]){return{kind:"rule",selector:e,nodes:i}}function B(e,i="",r=[]){return{kind:"at-rule",name:e,params:i,nodes:r}}function Z(e,i=[]){return e.charCodeAt(0)===Pn?Qe(e,i):H(e,i)}function a(e,i,r=!1){return{kind:"declaration",property:e,value:i,important:r}}function gt(e){return{kind:"comment",value:e}}function ve(e,i){return{kind:"context",context:e,nodes:i}}function Y(e){return{kind:"at-root",nodes:e}}function re(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(re),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(re),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,index:e.index,siblings:e.siblings,get context(){let i={};for(let r of e.path())r.kind==="context"&&Object.assign(i,r.context);return Object.defineProperty(this,"context",{value:i}),i},get parent(){let i=this.path().pop()??null;return Object.defineProperty(this,"parent",{value:i}),i},path(){return e.path().filter(i=>i.kind!=="context")}}}function Ne(e,i,r=3){let t=[],n=new Set,s=new U(()=>new Set),l=new U(()=>new Set),d=new Set,f=new Set,c=[],p=[],m=new U(()=>new Set);function u(h,k,y={},S=0){if(h.kind==="declaration"){if(h.property==="--tw-sort"||h.value===void 0||h.value===null)return;if(y.theme&&h.property[0]==="-"&&h.property[1]==="-"){if(h.value==="initial"){h.value=void 0;return}y.keyframes||s.get(k).add(h)}if(h.value.includes("var("))if(y.theme&&h.property[0]==="-"&&h.property[1]==="-")for(let x of ht(h.value))m.get(x).add(h.property);else i.trackUsedVariables(h.value);if(h.property==="animation")for(let x of Zr(h.value))f.add(x);r&2&&!y.supportsColorMix&&!y.keyframes&&h.value.includes("color-mix(")&&l.get(k).add(h),k.push(h)}else if(h.kind==="rule"){let x=[];for(let b of h.nodes)u(b,x,y,S+1);x.length>0&&k.push({...h,nodes:x})}else if(h.kind==="at-rule"&&h.name==="@property"&&S===0){if(n.has(h.params))return;if(r&1){let b=h.params,I=null,D=!1;for(let L of h.nodes)L.kind==="declaration"&&(L.property==="initial-value"?I=L.value:L.property==="inherits"&&(D=L.value==="true"));let O=a(b,I??"initial");O.src=h.src,D?c.push(O):p.push(O)}n.add(h.params);let x={...h,nodes:[]};for(let b of h.nodes)u(b,x.nodes,y,S+1);k.push(x)}else if(h.kind==="at-rule"){h.name==="@keyframes"?y={...y,keyframes:!0}:h.name==="@supports"&&h.params.includes("color-mix(")&&(y={...y,supportsColorMix:!0});let x={...h,nodes:[]};for(let b of h.nodes)u(b,x.nodes,y,S+1);h.name==="@keyframes"&&y.theme&&d.add(x),(x.nodes.length>0||x.name==="@layer"||x.name==="@charset"||x.name==="@custom-media"||x.name==="@namespace"||x.name==="@import"||x.name==="@apply")&&k.push(x)}else if(h.kind==="at-root")for(let x of h.nodes){let b=[];u(x,b,y,0);for(let I of b)t.push(I)}else if(h.kind==="context"){if(h.context.reference)return;for(let x of h.nodes)u(x,k,{...y,...h.context},S)}else h.kind==="comment"&&k.push(h)}let v=[];for(let h of e)u(h,v,{},0);e:for(let[h,k]of s)for(let y of k){if(Jr(y.property,i.theme,m)){if(y.property.startsWith(i.theme.prefixKey("--animate-")))for(let b of Zr(y.value))f.add(b);continue}let x=h.indexOf(y);if(h.splice(x,1),h.length===0){let b=Kn(v,I=>I.kind==="rule"&&I.nodes===h);if(!b||b.length===0)continue e;b.unshift({kind:"at-root",nodes:v});do{let I=b.pop();if(!I)break;let D=b[b.length-1];if(!D||D.kind!=="at-root"&&D.kind!=="at-rule")break;let O=D.nodes.indexOf(I);if(O===-1)break;D.nodes.splice(O,1)}while(!0);continue e}}for(let h of d)if(!f.has(h.params)){let k=t.indexOf(h);t.splice(k,1)}if(v=v.concat(t),r&2)for(let[h,k]of l)for(let y of k){let S=h.indexOf(y);if(S===-1||y.value==null)continue;let x=M(y.value),b=!1;if(P(x,O=>{if(O.kind!=="function"||O.value!=="color-mix")return;let L=!1,E=!1;if(P(O.nodes,j=>{if(j.kind=="word"&&j.value.toLowerCase()==="currentcolor"){E=!0,b=!0;return}let q=j,G=null,ee=new Set;do{if(q.kind!=="function"||q.value!=="var")return;let ie=q.nodes[0];if(!ie||ie.kind!=="word")return;let o=ie.value;if(ee.has(o)){L=!0;return}if(ee.add(o),b=!0,G=i.theme.resolveValue(null,[ie.value]),!G){L=!0;return}if(G.toLowerCase()==="currentcolor"){E=!0;return}G.startsWith("var(")?q=M(G)[0]:q=null}while(q);return V.Replace({kind:"word",value:G})}),L||E){let j=O.nodes.findIndex(G=>G.kind==="separator"&&G.value.trim().includes(","));if(j===-1)return;let q=O.nodes.length>j?O.nodes[j+1]:null;return q?V.Replace(q):void 0}else if(b){let j=O.nodes[2];j.kind==="word"&&(j.value==="oklab"||j.value==="oklch"||j.value==="lab"||j.value==="lch")&&(j.value="srgb")}}),!b)continue;let I={...y,value:F(x)},D=Z("@supports (color: color-mix(in lab, red, red))",[y]);D.src=y.src,h.splice(S,1,I,D)}if(r&1){let h=[];if(c.length>0){let k=Z(":root, :host",c);k.src=c[0].src,h.push(k)}if(p.length>0){let k=Z("*, ::before, ::after, ::backdrop",p);k.src=p[0].src,h.push(k)}if(h.length>0){let k=v.findIndex(x=>!(x.kind==="comment"||x.kind==="at-rule"&&(x.name==="@charset"||x.name==="@import"))),y=B("@layer","properties",[]);y.src=h[0].src,v.splice(k<0?v.length:k,0,y);let S=Z("@layer properties",[B("@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,v.push(S)}}return _n(v)}function _n(e){let i=new U(fe),r=[],t=[],n=null,s=new Set,l=new Set,d=[],f=new Set;P(e,{enter(p){switch(p.kind){case"rule":{if(n=null,r.length===0)if(p.selector.includes("&")){let m=fe(p.selector),u=!1;P(m,v=>{v.kind==="selector"&&v.value==="&"&&(u=!0,v.value=":scope")}),u?r.push([oe(m),p.src,p.dst]):r.push([p.selector,p.src,p.dst])}else r.push([p.selector,p.src,p.dst]);else{if(p.selector==="&"){f.add(p);return}let m=r[r.length-1][0],u=z(p.selector,",").map(v=>{if(!v.includes("&")){let h=i.get(m);return`${h.length===1&&h[0].kind==="list"?`:is(${m})`:m} ${v}`}{let h=fe(v),k=!1;if(P(h,{enter(S,x){if(S.kind!=="selector"||S.value!=="&"||(k=!0,S.value=`:is(${m})`,x.parent===null))return;let b=i.get(m);if(!(b.length===1&&b[0].kind==="list")){if(x.parent.kind==="complex")if(x.index===0){S.value=m;return}else if(x.index===x.siblings.length-1){if(b[0].kind==="complex")return;S.value=m;return}else{if(b[0].kind==="complex")return;S.value=m;return}else if(x.parent.kind==="compound"){if(b[0].kind==="complex"){let I=x.path(),D=I[I.length-2];if(D&&D.kind==="complex"&&D.nodes[0]!==x.parent)return}if(x.siblings.slice(x.index+1).some(I=>qe(I)||ut(I)))return;if(x.index===0){S.value=m;return}else if(x.index===x.siblings.length-1){if(b[0].kind==="complex"||qe(b[0])||ut(b[0]))return;S.value=m;return}else{if(b[0].kind==="complex"||qe(b[0])||ut(b[0]))return;S.value=m;return}}else if(x.parent.kind==="function"){S.value=m;return}}},exit(S,x){if(x.index===0&&x.siblings.length>1&&x.parent?.kind==="compound"&&qe(S)){let b=x.siblings[1];return b.kind==="selector"&&b.value.charCodeAt(0)===On?void 0:V.ReplaceSkip([])}}}),k)return oe(h);let y=i.get(m);return`${y.length===1&&y[0].kind==="list"?`:is(${m})`:m} ${v}`}}).join(", ");r.push([u,p.src,p.dst])}if(p.nodes.some(m=>m.kind==="declaration")){for(let m of p.nodes)c(m);return V.Skip}break}case"at-rule":{if(n=null,p.nodes.length===0&&!Dn.has(p.name))return c(p),f.add(p),V.Skip;if(In.has(p.name))t.push([p.name,p.params,p.src,p.dst]);else return c(p),f.add(p),V.Skip;break}case"declaration":case"comment":{c(p);break}case"context":case"at-root":break;default:break}},exit(p){if(!f.delete(p))switch(p.kind){case"rule":{n=null,r.pop();break}case"at-rule":{n=null,t.pop();break}case"declaration":case"comment":case"context":case"at-root":break;default:break}}});for(let p of l){let m=new Set;for(let u=p.length-1;u>=0;--u){let v=p[u];if(v.kind!=="declaration")continue;let h=`${v.property}\0${v.value}\0${v.important}`;m.has(h)?p.splice(u,1):m.add(h)}}return d;function c(p){if(n){p.kind==="declaration"&&(s.has(p.property)?l.add(n):s.add(p.property)),n.push(p);return}{if(r.length===0&&t.length===0){let h=d,k=h[h.length-1];if(k&&k.kind==="at-rule"&&p.kind==="at-rule"&&k.nodes.length===0&&p.nodes.length===0&&k.name===p.name&&k.params===p.params)return;d.push(p);return}n=[p],s.clear(),p.kind==="declaration"&&s.add(p.property);let m=null,u=d,v=0;{let h=u[u.length-1];if(h&&h.kind==="at-rule")for(let k=0;k<t.length;k++){let y=t[k];if(!h||h.kind!=="at-rule"||h.name!==y[0]||h.params!==y[1])break;v++,u=h.nodes,h=h.nodes[h.nodes.length-1]}}if(r.length>0){let[h,k,y]=r[r.length-1];if(t.length-v<=0){let S=u[u.length-1];if(S&&S.kind==="rule"&&S.selector===h){S.nodes.push(...n),n=S.nodes,l.add(n);return}}m=Z(h,n),(k||y)&&Object.assign(m,{src:k,dst:y})}for(let h=t.length-1;h>=v;--h){let[k,y,S,x]=t[h];m=B(k,y,m?[m]:n),(S||x)&&Object.assign(m,{src:S,dst:x})}m?u.push(m):u.push(...n)}}}var In=new Set(["@container","@layer","@media","@page","@starting-style","@supports","@view-transition"]),Dn=new Set(["@container","@media","@page","@starting-style","@supports","@view-transition"]);function se(e,i){let r=0,t={file:null,code:""};function n(l,d=0){let f="",c=" ".repeat(d);if(l.kind==="declaration"){if(f+=`${c}${l.property}: ${l.value}${l.important?" !important":""};
`,i){r+=c.length;let p=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let m=r;r+=2,l.dst=[t,p,m]}}else if(l.kind==="rule"){if(f+=`${c}${l.selector} {
`,i){r+=c.length;let p=r;r+=l.selector.length,r+=1;let m=r;l.dst=[t,p,m],r+=2}for(let p of l.nodes)f+=n(p,d+1);f+=`${c}}
`,i&&(r+=c.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let p=`${c}${l.name} ${l.params};
`;if(i){r+=c.length;let m=r;r+=l.name.length,r+=1,r+=l.params.length;let u=r;r+=2,l.dst=[t,m,u]}return p}if(f+=`${c}${l.name}${l.params?` ${l.params} `:" "}{
`,i){r+=c.length;let p=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let m=r;l.dst=[t,p,m],r+=2}for(let p of l.nodes)f+=n(p,d+1);f+=`${c}}
`,i&&(r+=c.length,r+=2)}else if(l.kind==="comment"){if(f+=`${c}/*${l.value}*/
`,i){r+=c.length;let p=r;r+=2+l.value.length+2;let m=r;l.dst=[t,p,m],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return f}let s="";for(let l of e)s+=n(l,0);return t.code=s,s}function Kn(e,i){let r=[];return P(e,(t,n)=>{if(i(t))return r=n.path(),r.push(t),V.Stop}),r}function Jr(e,i,r,t=new Set){if(t.has(e)||(t.add(e),i.getOptions(e)&24))return!0;{let s=r.get(e)??[];for(let l of s)if(Jr(l,i,r,t))return!0}return!1}function Zr(e){return e.split(/[\s,]+/)}function Ce(e){if(e.indexOf("(")===-1)return De(e);let i=M(e);return Zt(i),e=F(i),e=st(e),e}function De(e,i=!1){let r="";for(let t=0;t<e.length;t++){let n=e[t];n==="\\"&&e[t+1]==="_"?(r+="_",t+=1):n==="_"&&!i?r+=" ":r+=n}return r}function Zt(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=De(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=De(i.value);for(let r=0;r<i.nodes.length;r++){if(r==0&&i.nodes[r].kind==="word"){i.nodes[r].value=De(i.nodes[r].value,!0);continue}Zt([i.nodes[r]])}break}i.value=De(i.value),Zt(i.nodes);break}case"separator":case"word":{i.value=De(i.value);break}default:Un(i)}}function Un(e){throw new Error(`Unexpected value: ${e}`)}var Jt=new Uint8Array(256);function ye(e){let i=0,r=e.length;for(let t=0;t<r;t++){let n=e.charCodeAt(t);switch(n){case 92:t+=1;break;case 39:case 34:for(;++t<r;){let s=e.charCodeAt(t);if(s===92){t+=1;continue}if(s===n)break}break;case 40:Jt[i]=41,i++;break;case 91:Jt[i]=93,i++;break;case 123:break;case 93:case 125:case 41:if(i===0)return!1;i>0&&n===Jt[i-1]&&i--;break;case 59:if(i===0)return!1;break}}return!0}var Ln=58,Qr=45,Xr=97,ei=122,er=/^[a-zA-Z0-9_.%-]+$/;function Ue(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(Ke),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Ke),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(Ke),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Ke(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:Ke(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*ti(e,i){let r=z(e,":");if(i.theme.prefix){if(r.length===1||r[0]!==i.theme.prefix)return null;r.shift()}let t=r.pop(),n=[];for(let m=r.length-1;m>=0;--m){let u=i.parseVariant(r[m]);if(u===null)return;n.push(u)}let s=!1;t[t.length-1]==="!"?(s=!0,t=t.slice(0,-1)):t[0]==="!"&&(s=!0,t=t.slice(1)),i.utilities.has(t,"static")&&!t.includes("[")&&(yield{kind:"static",root:t,variants:n,important:s,raw:e});let[l,d=null,f]=z(t,"/");if(f)return;let c=d===null?null:Qt(d);if(d!==null&&c===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let m=l.charCodeAt(1);if(m!==Qr&&!(m>=Xr&&m<=ei))return;l=l.slice(1,-1);let u=l.indexOf(":");if(u===-1||u===0||u===l.length-1)return;let v=l.slice(0,u),h=Ce(l.slice(u+1));if(!ye(h))return;yield{kind:"arbitrary",property:v,value:h,modifier:c,variants:n,important:s,raw:e};return}let p;if(l[l.length-1]==="]"){let m=l.indexOf("-[");if(m===-1)return;let u=l.slice(0,m);if(!i.utilities.has(u,"functional"))return;let v=l.slice(m+1);p=[[u,v]]}else if(l[l.length-1]===")"){let m=l.indexOf("-(");if(m===-1)return;let u=l.slice(0,m);if(!i.utilities.has(u,"functional"))return;let v=l.slice(m+2,-1),h=z(v,":"),k=null;if(h.length===2&&(k=h[0],v=h[1]),v[0]!=="-"||v[1]!=="-"||!ye(v))return;p=[[u,k===null?`[var(${v})]`:`[${k}:var(${v})]`]]}else p=ii(l,m=>i.utilities.has(m,"functional"));for(let[m,u]of p){let v={kind:"functional",root:m,modifier:c,value:null,variants:n,important:s,raw:e};if(u===null){yield v;continue}{let h=u.indexOf("[");if(h!==-1){if(u[u.length-1]!=="]")return;let y=Ce(u.slice(h+1,-1));if(!ye(y))continue;let S=null;for(let x=0;x<y.length;x++){let b=y.charCodeAt(x);if(b===Ln){S=y.slice(0,x),y=y.slice(x+1);break}if(!(b===Qr||b>=Xr&&b<=ei))break}if(y.length===0||y.trim().length===0||S==="")continue;v.value={kind:"arbitrary",dataType:S||null,value:y}}else{let y=d===null||v.modifier?.kind==="arbitrary"?null:`${u}/${d}`;if(!er.test(u))continue;v.value={kind:"named",value:u,fraction:y}}}yield v}}function Qt(e){if(e[0]==="["&&e[e.length-1]==="]"){let i=Ce(e.slice(1,-1));return!ye(i)||i.length===0||i.trim().length===0?null:{kind:"arbitrary",value:i}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!ye(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:Ce(e)})):er.test(e)?{kind:"named",value:e}:null}function ri(e,i){if(e[0]==="["&&e[e.length-1]==="]"){if(e[1]==="@"&&e.includes("&"))return null;let r=Ce(e.slice(1,-1));if(!ye(r)||r.length===0||r.trim().length===0)return null;let t=r[0]===">"||r[0]==="+"||r[0]==="~";return!t&&r[0]!=="@"&&!r.includes("&")&&(r=`&:is(${r})`),{kind:"arbitrary",selector:r,relative:t}}{let[r,t=null,n]=z(e,"/");if(n)return null;let s=ii(r,l=>i.variants.has(l));for(let[l,d]of s)switch(i.variants.kind(l)){case"static":return d!==null||t!==null?null:{kind:"static",root:l};case"functional":{let f=t===null?null:Qt(t);if(t!==null&&f===null)return null;if(d===null)return{kind:"functional",root:l,modifier:f,value:null};if(d[d.length-1]==="]"){if(d[0]!=="[")continue;let c=Ce(d.slice(1,-1));return!ye(c)||c.length===0||c.trim().length===0?null:{kind:"functional",root:l,modifier:f,value:{kind:"arbitrary",value:c}}}if(d[d.length-1]===")"){if(d[0]!=="(")continue;let c=Ce(d.slice(1,-1));return!ye(c)||c.length===0||c.trim().length===0||c[0]!=="-"||c[1]!=="-"?null:{kind:"functional",root:l,modifier:f,value:{kind:"arbitrary",value:`var(${c})`}}}if(!er.test(d))continue;return{kind:"functional",root:l,modifier:f,value:{kind:"named",value:d}}}case"compound":{if(d===null)return null;t&&(l==="not"||l==="has"||l==="in")&&(d=`${d}/${t}`,t=null);let f=i.parseVariant(d);if(f===null||!i.variants.compoundsWith(l,f))return null;let c=t===null?null:Qt(t);return t!==null&&c===null?null:{kind:"compound",root:l,modifier:c,variant:f}}}}return null}function*ii(e,i){i(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let t=e.slice(0,r);if(i(t)){let n=[t,e.slice(r+1)];if(n[1]===""||n[0]==="@"&&i("@")&&e[r]==="-")break;yield n}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&i("@")&&(yield["@",e.slice(1)])}function ni(e,i){let r=[];for(let n of i.variants)r.unshift(vt(n));e.theme.prefix&&r.unshift(e.theme.prefix);let t="";if(i.kind==="static"&&(t+=i.root),i.kind==="functional"&&(t+=i.root,i.value))if(i.value.kind==="arbitrary"){if(i.value!==null){let n=tr(i.value.value),s=n?i.value.value.slice(4,-1):i.value.value,[l,d]=n?["(",")"]:["[","]"];i.value.dataType?t+=`-${l}${i.value.dataType}:${Se(s)}${d}`:t+=`-${l}${Se(s)}${d}`}}else i.value.kind==="named"&&(t+=`-${i.value.value}`);return i.kind==="arbitrary"&&(t+=`[${i.property}:${Se(i.value)}]`),(i.kind==="arbitrary"||i.kind==="functional")&&(t+=rt(i.modifier)),i.important&&(t+="!"),r.push(t),r.join(":")}function rt(e){if(e===null)return"";let i=tr(e.value),r=i?e.value.slice(4,-1):e.value,[t,n]=i?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${t}${Se(r)}${n}`:e.kind==="named"?`/${e.value}`:""}function vt(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${Se(Mn(e.selector))}]`;let i="";if(e.kind==="functional"){i+=e.root;let r=e.root!=="@";if(e.value)if(e.value.kind==="arbitrary"){let t=tr(e.value.value),n=t?e.value.value.slice(4,-1):e.value.value,[s,l]=t?["(",")"]:["[","]"];i+=`${r?"-":""}${s}${Se(n)}${l}`}else e.value.kind==="named"&&(i+=`${r?"-":""}${e.value.value}`)}return e.kind==="compound"&&(i+=e.root,i+="-",i+=vt(e.variant)),(e.kind==="functional"||e.kind==="compound")&&(i+=rt(e.modifier)),i}var zn=new U(e=>{let i=M(e),r=new Set,t=new Set(["~",">","+","-","*","/"]);return P(i,(n,s)=>{if(n.kind==="word"&&t.has(n.value)){let l=s.index;if(l===-1)return;let d=s.siblings[l-1];if(d?.kind!=="separator"||d.value!==" ")return;let f=s.siblings[l+1];if(f?.kind!=="separator"||f.value!==" ")return;let c=s.siblings[l-2];if(c&&t.has(c.value))return;let p=s.siblings[l+2];if(p&&t.has(p.value))return;r.add(d),r.add(f)}else if(n.kind==="separator"&&n.value.length>0&&n.value.trim()==="")(s.siblings[0]===n||s.siblings[s.siblings.length-1]===n)&&r.add(n);else if(n.kind==="separator"&&n.value.trim()===",")n.value=",";else if(n.kind==="function"&&n.value.startsWith("--")){let l=s.index;if(l<=0)return;let d=s.siblings[l-1];if(d?.kind==="separator"&&d.value===",")return;let f=s.siblings[l-2];return f&&!t.has(f.value)?void 0:V.ReplaceSkip({kind:"function",value:"",nodes:[n]})}}),r.size>0&&P(i,n=>{if(r.has(n))return r.delete(n),V.ReplaceSkip([])}),Xt(i),F(i)});function Se(e){return zn.get(e)}var jn=new U(e=>{let i=M(e);return i.length===3&&i[0].kind==="word"&&i[0].value==="&"&&i[1].kind==="separator"&&i[1].value===":"&&i[2].kind==="function"&&i[2].value==="is"?F(i[2].nodes):e});function Mn(e){return jn.get(e)}function Xt(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=tt(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=tt(i.value);for(let r=0;r<i.nodes.length;r++)Xt([i.nodes[r]]);break}i.value=tt(i.value),Xt(i.nodes);break}case"separator":i.value=tt(i.value);break;case"word":{(i.value[0]!=="-"||i.value[1]!=="-")&&(i.value=tt(i.value));break}default:Wn(i)}}var Fn=new U(e=>{let i=M(e);return i.length===1&&i[0].kind==="function"&&i[0].value==="var"});function tr(e){return Fn.get(e)}function Wn(e){throw new Error(`Unexpected value: ${e}`)}function tt(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Ee(e,i,r){if(e===i)return 0;let t=e.indexOf("("),n=i.indexOf("("),s=t===-1?e.replace(/[\d.]+/g,""):e.slice(0,t),l=n===-1?i.replace(/[\d.]+/g,""):i.slice(0,n),d=(s===l?0:s<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(i):parseInt(i)-parseInt(e));return Number.isNaN(d)?e<i?-1:1:d}var Bn=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,le=new U(e=>{let i=Bn.exec(e);if(!i)return null;let r=i.groups?.value;if(r===void 0)return null;let t=Number(r);if(Number.isNaN(t))return null;let n=i.groups?.unit;return n===void 0?[t,null]:[t,n]});var Yn=new Set(["inset","inherit","initial","revert","unset"]),Gn=new Set(["calc","clamp","max","min","--spacing"]),qn=new Set(["color","color-mix","contrast-color","device-cmyk","hsl","hsla","hwb","lab","lch","light-dark","oklab","oklch","rgb","rgba","--alpha"]),Hn=/^-?(\d+|\.\d+)(.*?)$/;function it(e,i){function r(n){let s=F([n]),l=i(s);return M(l)}return z(e,",").map(n=>{n=n.trim();let s=M(n),l=null,d=0,f=0,c=!1;return P(s,p=>{switch(p.kind){case"word":{if(Yn.has(p.value.toLowerCase()))return V.Continue;if(Hn.test(p.value.toLowerCase()))return f++,V.Continue;if(p.value[0]==="#"||wr(p.value))return c=!0,V.ReplaceStop(r(p));l=p,d++;break}case"function":return qn.has(p.value.toLowerCase())?(c=!0,V.ReplaceStop(r(p))):Gn.has(p.value.toLowerCase())?(f++,V.Skip):(l=p,d++,V.Skip);case"separator":return V.Continue;default:}}),c?F(s):f<2?n:d===0?`${n} ${i("currentcolor")}`:(d===1&&P(s,p=>p===l?(c=!0,V.ReplaceStop(r(p))):V.Skip),c?F(s):n)}).join(", ")}var yt=["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"],rr=class{utilities=new U(()=>[]);completions=new Map;static(i,r){this.utilities.get(i).push({kind:"static",compileFn:r})}functional(i,r,t){this.utilities.get(i).push({kind:"functional",compileFn:r,options:t})}has(i,r){return this.utilities.has(i)&&this.utilities.get(i).some(t=>t.kind===r)}get(i){return this.utilities.has(i)?this.utilities.get(i):[]}getCompletions(i){return this.has(i,"static")?this.completions.get(i)?.()??[{supportsNegative:!1,values:[],modifiers:[]}]:this.completions.get(i)?.()??[]}suggest(i,r){let t=this.completions.get(i);t?this.completions.set(i,()=>[...t?.(),...r?.()]):this.completions.set(i,r)}keys(i){let r=[];for(let[t,n]of this.utilities.entries())for(let s of n)if(s.kind===i){r.push(t);break}return r}};function $(e,i,r){return B("@property",e,[a("syntax",r?`"${r}"`:'"*"'),a("inherits","false"),...i?[a("initial-value",i)]:[]])}function X(e,i){if(i===null)return e;let r=Number(i);return Number.isNaN(r)||(i=`${r*100}%`),i==="100%"?e:`color-mix(in oklab, ${e} ${i}, transparent)`}function ai(e,i){let r=Number(i);return Number.isNaN(r)||(i=`${r*100}%`),`oklab(from ${e} l a b / ${i})`}function te(e,i,r){if(!i)return e;if(i.kind==="arbitrary")return X(e,i.value);let t=r.resolve(i.value,["--opacity"]);return t?X(e,t):Ae(i.value)?X(e,`${i.value}%`):null}function ae(e,i,r){let t=null;switch(e.value.value){case"inherit":{t="inherit";break}case"transparent":{t="transparent";break}case"current":{t="currentcolor";break}default:{t=i.resolve(e.value.value,r);break}}return t?te(t,e.modifier,i):null}var oi=/(\d+)_(\d+)/g;function si(e){let i=new rr;function r(o,g){function*w(A){for(let T of e.keysInNamespaces(A))yield T.replace(oi,(K,N,R)=>`${N}.${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"];i.suggest(o,()=>{let A=[];for(let T of g()){if(typeof T=="string"){A.push({values:[T],modifiers:[]});continue}let K=[...T.values??[],...w(T.valueThemeKeys??[])],N=[...T.modifiers??[],...w(T.modifierThemeKeys??[])];T.supportsFractions&&K.push(...C),T.hasDefaultValue&&K.unshift(null),A.push({supportsNegative:T.supportsNegative,values:K,modifiers:N})}return A})}function t(o,g){i.static(o,()=>g.map(w=>typeof w=="function"?w():a(w[0],w[1])))}function n(o,g){g.staticValues&&(g.staticValues=Object.assign(Object.create(null),g.staticValues));function w({negative:C}){return A=>{let T=null,K=null;if(A.value)if(A.value.kind==="arbitrary"){if(A.modifier)return;T=A.value.value,K=A.value.dataType}else{if(T=e.resolve(A.value.fraction??A.value.value,g.themeKeys??[]),T===null&&g.supportsFractions&&A.value.fraction){let[N,R]=z(A.value.fraction,"/");if(!_(N)||!_(R))return;T=`calc(${N} / ${R} * 100%)`}if(T===null&&C&&g.handleNegativeBareValue){if(T=g.handleNegativeBareValue(A.value),!T?.includes("/")&&A.modifier)return;if(T!==null)return g.handle(T,null)}if(T===null&&g.handleBareValue&&(T=g.handleBareValue(A.value),!T?.includes("/")&&A.modifier))return;if(T===null&&!C&&g.staticValues&&!A.modifier){let N=g.staticValues[A.value.value];if(N)return N.map(re)}}else{if(A.modifier)return;T=g.defaultValue!==void 0?g.defaultValue:e.resolve(null,g.themeKeys??[])}if(T!==null)return g.handle(C?st(`calc(${T} * -1)`):T,K)}}if(g.supportsNegative&&i.functional(`-${o}`,w({negative:!0})),i.functional(o,w({negative:!1})),r(o,()=>[{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);r(o,()=>[{values:C}])}}function s(o,g){i.functional(o,w=>{if(!w.value)return;let C=null;if(w.value.kind==="arbitrary"?(C=w.value.value,C=te(C,w.modifier,e)):C=ae(w,e,g.themeKeys),C!==null)return g.handle(C)}),r(o,()=>[{values:["current","inherit","transparent"],valueThemeKeys:g.themeKeys,modifierThemeKeys:["--opacity"],modifiers:Array.from({length:21},(w,C)=>`${C*5}`)}])}function l(o,g,w,{supportsNegative:C=!1,supportsFractions:A=!1,staticValues:T}={}){C&&i.static(`-${o}-px`,()=>w("-1px")),i.static(`${o}-px`,()=>w("1px")),n(o,{themeKeys:g,supportsFractions:A,supportsNegative:C,defaultValue:null,handleBareValue:({value:K})=>!e.resolve(null,["--spacing"])||!Q(K)?null:`--spacing(${K})`,handleNegativeBareValue:({value:K})=>!e.resolve(null,["--spacing"])||!Q(K)?null:`--spacing(-${K})`,handle:w,staticValues:T}),r(o,()=>[{values:e.get(["--spacing"])?yt:[],supportsNegative:C,supportsFractions:A,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[o,g]of[["inset","inset"],["inset-x","inset-inline"],["inset-y","inset-block"],["inset-s","inset-inline-start"],["inset-e","inset-inline-end"],["inset-bs","inset-block-start"],["inset-be","inset-block-end"],["top","top"],["right","right"],["bottom","bottom"],["left","left"]])t(`${o}-auto`,[[g,"auto"]]),t(`${o}-full`,[[g,"100%"]]),t(`-${o}-full`,[[g,"-100%"]]),l(o,["--inset","--spacing"],w=>[a(g,w)],{supportsNegative:!0,supportsFractions:!0});t("isolate",[["isolation","isolate"]]),t("isolation-auto",[["isolation","auto"]]),n("z",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--z-index"],handle:o=>[a("z-index",o)],staticValues:{auto:[a("z-index","auto")]}}),r("z",()=>[{supportsNegative:!0,values:["0","10","20","30","40","50"],valueThemeKeys:["--z-index"]}]),n("order",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--order"],handle:o=>[a("order",o)],staticValues:{first:[a("order","-9999")],last:[a("order","9999")]}}),r("order",()=>[{supportsNegative:!0,values:Array.from({length:12},(o,g)=>`${g+1}`),valueThemeKeys:["--order"]}]),n("col",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--grid-column"],handle:o=>[a("grid-column",o)],staticValues:{auto:[a("grid-column","auto")]}}),n("col-span",{handleBareValue:({value:o})=>_(o)?o:null,handle:o=>[a("grid-column",`span ${o} / span ${o}`)],staticValues:{full:[a("grid-column","1 / -1")]}}),n("col-start",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--grid-column-start"],handle:o=>[a("grid-column-start",o)],staticValues:{auto:[a("grid-column-start","auto")]}}),n("col-end",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--grid-column-end"],handle:o=>[a("grid-column-end",o)],staticValues:{auto:[a("grid-column-end","auto")]}}),r("col-span",()=>[{values:Array.from({length:12},(o,g)=>`${g+1}`),valueThemeKeys:[]}]),r("col-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,g)=>`${g+1}`),valueThemeKeys:["--grid-column-start"]}]),r("col-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,g)=>`${g+1}`),valueThemeKeys:["--grid-column-end"]}]),n("row",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--grid-row"],handle:o=>[a("grid-row",o)],staticValues:{auto:[a("grid-row","auto")]}}),n("row-span",{themeKeys:[],handleBareValue:({value:o})=>_(o)?o:null,handle:o=>[a("grid-row",`span ${o} / span ${o}`)],staticValues:{full:[a("grid-row","1 / -1")]}}),n("row-start",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--grid-row-start"],handle:o=>[a("grid-row-start",o)],staticValues:{auto:[a("grid-row-start","auto")]}}),n("row-end",{supportsNegative:!0,handleBareValue:({value:o})=>_(o)?o:null,themeKeys:["--grid-row-end"],handle:o=>[a("grid-row-end",o)],staticValues:{auto:[a("grid-row-end","auto")]}}),r("row-span",()=>[{values:Array.from({length:12},(o,g)=>`${g+1}`),valueThemeKeys:[]}]),r("row-start",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,g)=>`${g+1}`),valueThemeKeys:["--grid-row-start"]}]),r("row-end",()=>[{supportsNegative:!0,values:Array.from({length:13},(o,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[o,g]of[["m","margin"],["mx","margin-inline"],["my","margin-block"],["ms","margin-inline-start"],["me","margin-inline-end"],["mbs","margin-block-start"],["mbe","margin-block-end"],["mt","margin-top"],["mr","margin-right"],["mb","margin-bottom"],["ml","margin-left"]])t(`${o}-auto`,[[g,"auto"]]),l(o,["--margin","--spacing"],w=>[a(g,w)],{supportsNegative:!0});t("box-border",[["box-sizing","border-box"]]),t("box-content",[["box-sizing","content-box"]]),n("line-clamp",{themeKeys:["--line-clamp"],handleBareValue:({value:o})=>_(o)?o:null,handle:o=>[a("overflow","hidden"),a("display","-webkit-box"),a("-webkit-box-orient","vertical"),a("-webkit-line-clamp",o)],staticValues:{none:[a("overflow","visible"),a("display","block"),a("-webkit-box-orient","horizontal"),a("-webkit-line-clamp","unset")]}}),r("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:o})=>{if(o===null)return null;let[g,w]=z(o,"/");return!Q(g)||!Q(w)?null:o},handle:o=>[a("aspect-ratio",o)],staticValues:{auto:[a("aspect-ratio","auto")],square:[a("aspect-ratio","1 / 1")]}});for(let[o,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-${o}`,[["--tw-sort","size"],["width",g],["height",g]]),t(`w-${o}`,[["width",g]]),t(`h-${o}`,[["height",g]]),t(`min-w-${o}`,[["min-width",g]]),t(`min-h-${o}`,[["min-height",g]]),t(`max-w-${o}`,[["max-width",g]]),t(`max-h-${o}`,[["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"]]),l("size",["--size","--spacing"],o=>[a("--tw-sort","size"),a("width",o),a("height",o)],{supportsFractions:!0});for(let[o,g,w]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"]])l(o,g,C=>[a(w,C)],{supportsFractions:!0});for(let[o,g]of[["full","100%"],["min","min-content"],["max","max-content"],["fit","fit-content"]])t(`inline-${o}`,[["inline-size",g]]),t(`block-${o}`,[["block-size",g]]),t(`min-inline-${o}`,[["min-inline-size",g]]),t(`min-block-${o}`,[["min-block-size",g]]),t(`max-inline-${o}`,[["max-inline-size",g]]),t(`max-block-${o}`,[["max-block-size",g]]);for(let[o,g]of[["svw","100svw"],["lvw","100lvw"],["dvw","100dvw"]])t(`inline-${o}`,[["inline-size",g]]),t(`min-inline-${o}`,[["min-inline-size",g]]),t(`max-inline-${o}`,[["max-inline-size",g]]);for(let[o,g]of[["svh","100svh"],["lvh","100lvh"],["dvh","100dvh"]])t(`block-${o}`,[["block-size",g]]),t(`min-block-${o}`,[["min-block-size",g]]),t(`max-block-${o}`,[["max-block-size",g]]);t("inline-auto",[["inline-size","auto"]]),t("block-auto",[["block-size","auto"]]),t("min-inline-auto",[["min-inline-size","auto"]]),t("min-block-auto",[["min-block-size","auto"]]),t("block-lh",[["block-size","1lh"]]),t("min-block-lh",[["min-block-size","1lh"]]),t("max-block-lh",[["max-block-size","1lh"]]),t("inline-screen",[["inline-size","100vw"]]),t("min-inline-screen",[["min-inline-size","100vw"]]),t("max-inline-screen",[["max-inline-size","100vw"]]),t("block-screen",[["block-size","100vh"]]),t("min-block-screen",[["min-block-size","100vh"]]),t("max-block-screen",[["max-block-size","100vh"]]),t("max-inline-none",[["max-inline-size","none"]]),t("max-block-none",[["max-block-size","none"]]);for(let[o,g,w]of[["inline",["--spacing","--container"],"inline-size"],["min-inline",["--spacing","--container"],"min-inline-size"],["max-inline",["--spacing","--container"],"max-inline-size"],["block",["--spacing"],"block-size"],["min-block",["--spacing"],"min-block-size"],["max-block",["--spacing"],"max-block-size"]])l(o,g,C=>[a(w,C)],{supportsFractions:!0});i.static("container",()=>{let o=[...e.namespace("--breakpoint").values()];o.sort((w,C)=>Ee(w,C,"asc"));let g=[a("--tw-sort","--tw-container-component"),a("width","100%")];for(let w of o)g.push(B("@media",`(width >= ${w})`,[a("max-width",w)]));return g}),t("flex-auto",[["flex","auto"]]),t("flex-initial",[["flex","0 auto"]]),t("flex-none",[["flex","none"]]),i.functional("flex",o=>{if(o.value){if(o.value.kind==="arbitrary")return o.modifier?void 0:[a("flex",o.value.value)];if(o.value.fraction){let[g,w]=z(o.value.fraction,"/");return!_(g)||!_(w)?void 0:[a("flex",`calc(${o.value.fraction} * 100%)`)]}if(_(o.value.value))return o.modifier?void 0:[a("flex",o.value.value)]}}),r("flex",()=>[{supportsFractions:!0},{values:Array.from({length:12},(o,g)=>`${g+1}`)}]),n("shrink",{defaultValue:"1",handleBareValue:({value:o})=>_(o)?o:null,handle:o=>[a("flex-shrink",o)]}),n("grow",{defaultValue:"1",handleBareValue:({value:o})=>_(o)?o:null,handle:o=>[a("flex-grow",o)]}),r("shrink",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),r("grow",()=>[{values:["0"],valueThemeKeys:[],hasDefaultValue:!0}]),t("basis-auto",[["flex-basis","auto"]]),t("basis-full",[["flex-basis","100%"]]),l("basis",["--flex-basis","--spacing","--container"],o=>[a("flex-basis",o)],{supportsFractions:!0}),t("table-auto",[["table-layout","auto"]]),t("table-fixed",[["table-layout","fixed"]]),t("caption-top",[["caption-side","top"]]),t("caption-bottom",[["caption-side","bottom"]]),t("border-collapse",[["border-collapse","collapse"]]),t("border-separate",[["border-collapse","separate"]]);let d=()=>Y([$("--tw-border-spacing-x","0","<length>"),$("--tw-border-spacing-y","0",