Files
soul-yongping/soul-admin/node_modules/tailwindcss/dist/chunk-CT46QCH7.mjs

39 lines
227 KiB
JavaScript
Raw Normal View History

2026-02-09 14:43:35 +08:00
import{a as Xt,b as j,c as H,d as er,e as P,f as Ct,g as ie,h as et,i as rr}from"./chunk-GFBUASX3.mjs";import{a as tr}from"./chunk-HTB5LLOP.mjs";var ir="4.1.18";function tt(t){let r=[0];for(let n=0;n<t.length;n++)t.charCodeAt(n)===10&&r.push(n+1);function i(n){let s=0,a=r.length;for(;a>0;){let u=(a|0)>>1,f=s+u;r[f]<=n?(s=f+1,a=a-u-1):a=u}s-=1;let p=n-r[s];return{line:s+1,column:p}}function e({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),r.length-1);let a=r[n],p=r[n+1]??a;return Math.min(Math.max(a+s,0),p)}return{find:i,findOffset:e}}var Fe=92,rt=47,it=42,nr=34,ar=39,Yi=58,nt=59,le=10,at=13,We=32,Be=9,or=123,$t=125,Vt=40,lr=41,Gi=91,qi=93,sr=45,St=64,Zi=33,se=class t extends Error{loc;constructor(r,i){if(i){let e=i[0],n=tt(e.code).find(i[1]);r=`${e.file}:${n.line}:${n.column+1}: ${r}`}super(r),this.name="CssSyntaxError",this.loc=i,Error.captureStackTrace&&Error.captureStackTrace(this,t)}};function $e(t,r){let i=r?.from?{file:r.from,code:t}:null;t[0]==="\uFEFF"&&(t=" "+t.slice(1));let e=[],n=[],s=[],a=null,p=null,u="",f="",m=0,d;for(let c=0;c<t.length;c++){let w=t.charCodeAt(c);if(!(w===at&&(d=t.charCodeAt(c+1),d===le)))if(w===Fe)u===""&&(m=c),u+=t.slice(c,c+2),c+=1;else if(w===rt&&t.charCodeAt(c+1)===it){let h=c;for(let x=c+2;x<t.length;x++)if(d=t.charCodeAt(x),d===Fe)x+=1;else if(d===it&&t.charCodeAt(x+1)===rt){c=x+1;break}let y=t.slice(h,c+1);if(y.charCodeAt(2)===Zi){let x=ot(y.slice(2,-2));n.push(x),i&&(x.src=[i,h,c+1],x.dst=[i,h,c+1])}}else if(w===ar||w===nr){let h=ur(t,c,w,i);u+=t.slice(c,h+1),c=h}else{if((w===We||w===le||w===Be)&&(d=t.charCodeAt(c+1))&&(d===We||d===le||d===Be||d===at&&(d=t.charCodeAt(c+2))&&d==le))continue;if(w===le){if(u.length===0)continue;d=u.charCodeAt(u.length-1),d!==We&&d!==le&&d!==Be&&(u+=" ")}else if(w===sr&&t.charCodeAt(c+1)===sr&&u.length===0){let h="",y=c,x=-1;for(let A=c+2;A<t.length;A++)if(d=t.charCodeAt(A),d===Fe)A+=1;else if(d===ar||d===nr)A=ur(t,A,d,i);else if(d===rt&&t.charCodeAt(A+1)===it){for(let k=A+2;k<t.length;k++)if(d=t.charCodeAt(k),d===Fe)k+=1;else if(d===it&&t.charCodeAt(k+1)===rt){A=k+1;break}}else if(x===-1&&d===Yi)x=u.length+A-y;else if(d===nt&&h.length===0){u+=t.slice(y,A),c=A;break}else if(d===Vt)h+=")";else if(d===Gi)h+="]";else if(d===or)h+="}";else if((d===$t||t.length-1===A)&&h.length===0){c=A-1,u+=t.slice(y,A);break}else(d===lr||d===qi||d===$t)&&h.length>0&&t[A]===h[h.length-1]&&(h=h.slice(0,-1));let $=Tt(u,x);if(!$)throw new se("Invalid custom property, expected a value",i?[i,y,c]:null);i&&($.src=[i,y,c],$.dst=[i,y,c]),a?a.nodes.push($):e.push($),u=""}else if(w===nt&&u.charCodeAt(0)===St)p=Ye(u),i&&(p.src=[i,m,c],p.dst=[i,m,c]),a?a.nodes.push(p):e.push(p),u="",p=null;else if(w===nt&&f[f.length-1]!==")"){let h=Tt(u);if(!h){if(u.length===0)continue;throw new se(`Invalid declaration: \`${u.trim()}\``,i?[i,m,c]:null)}i&&(h.src=[i,m,c],h.dst=[i,m,c]),a?a.nodes.push(h):e.push(h),u=""}else if(w===or&&f[f.length-1]!==")")f+="}",p=J(u.trim()),i&&(p.src=[i,m,c],p.dst=[i,m,c]),a&&a.nodes.push(p),s.push(a),a=p,u="",p=null;else if(w===$t&&f[f.length-1]!==")"){if(f==="")throw new se("Missing opening {",i?[i,c,c]:null);if(f=f.slice(0,-1),u.length>0)if(u.charCodeAt(0)===St)p=Ye(u),i&&(p.src=[i,m,c],p.dst=[i,m,c]),a?a.nodes.push(p):e.push(p),u="",p=null;else{let y=u.indexOf(":");if(a){let x=Tt(u,y);if(!x)throw new se(`Invalid declaration: \`${u.trim()}\``,i?[i,m,c]:null);i&&(x.src=[i,m,c],x.dst=[i,m,c]),a.nodes.push(x)}}let h=s.pop()??null;h===null&&a&&e.push(a),a=h,u="",p=null}else if(w===Vt)f+=")",u+="(";else if(w===lr){if(f[f.length-1]!==")")throw new se("Missing opening (",i?[i,c,c]:null);f=f.slice(0,-1),u+=")"}else{if(u.length===0&&(w===We||w===le||w===Be))continue;u===""&&(m=c),u+=String.fromCharCode(w)}}}if(u.charCodeAt(0)===St){let c=Ye(u);i&&(c.src=[i,m,t.length],c.dst=[i,m,t.length]),e.push(c)}if(f.length>0&&a){if(a.kind==="rule")throw new se(`Missing closing } at ${a.selector}`,a.src?[a.src[0],a.src[1],a.src[1]]:null);if(a.kind==="at-rule")throw new se(`Missing closing } at ${a.name} ${a.params}`,a.src?[a.src[0],a.src[1],a.src[1]]:null)}return n.length>0?n.concat(e
`,`
`);let r=[],i=[],e=null,n="",s;for(let a=0;a<t.length;a++){let p=t.charCodeAt(a);switch(p){case pr:{n+=t[a]+t[a+1],a++;break}case rn:{if(n.length>0){let f=ne(n);e?e.nodes.push(f):r.push(f),n=""}let u=ne(t[a]);e?e.nodes.push(u):r.push(u);break}case dr:case mr:case gr:case hr:case vr:case wr:case yr:case kr:{if(n.length>0){let d=ne(n);e?e.nodes.push(d):r.push(d),n=""}let u=a,f=a+1;for(;f<t.length&&(s=t.charCodeAt(f),!(s!==dr&&s!==mr&&s!==gr&&s!==hr&&s!==vr&&s!==wr&&s!==yr&&s!==kr));f++);a=f-1;let m=Ji(t.slice(u,f));e?e.nodes.push(m):r.push(m);break}case tn:case Xi:{let u=a;for(let f=a+1;f<t.length;f++)if(s=t.charCodeAt(f),s===pr)f+=1;else if(s===p){a=f;break}n+=t.slice(u,a+1);break}case en:{let u=Hi(n,[]);n="",e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case Qi:{let u=i.pop();if(n.length>0){let f=ne(n);u?.nodes.push(f),n=""}i.length>0?e=i[i.length-1]:e=null;break}default:n+=String.fromCharCode(p)}}return n.length>0&&r.push(ne(n)),r}var Et=(a=>(a[a.Continue=0]="Continue",a[a.Skip=1]="Skip",a[a.Stop=2]="Stop",a[a.Replace=3]="Replace",a[a.ReplaceSkip=4]="ReplaceSkip",a[a.ReplaceStop=5]="ReplaceStop",a))(Et||{}),E={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:t=>({kind:3,nodes:Array.isArray(t)?t:[t]}),ReplaceSkip:t=>({kind:4,nodes:Array.isArray(t)?t:[t]}),ReplaceStop:t=>({kind:5,nodes:Array.isArray(t)?t:[t]})};function I(t,r){typeof r=="function"?br(t,r):br(t,r.enter,r.exit)}function br(t,r=()=>E.Continue,i=()=>E.Continue){let e=[[t,0,null]],n={parent:null,depth:0,path(){let s=[];for(let a=1;a<e.length;a++){let p=e[a][2];p&&s.push(p)}return s}};for(;e.length>0;){let s=e.length-1,a=e[s],p=a[0],u=a[1],f=a[2];if(u>=p.length){e.pop();continue}if(n.parent=f,n.depth=s,u>=0){let w=p[u],h=r(w,n)??E.Continue;switch(h.kind){case 0:{w.nodes&&w.nodes.length>0&&e.push([w.nodes,0,w]),a[1]=~u;continue}case 2:return;case 1:{a[1]=~u;continue}case 3:{p.splice(u,1,...h.nodes);continue}case 5:{p.splice(u,1,...h.nodes);return}case 4:{p.splice(u,1,...h.nodes),a[1]+=h.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Et[h.kind]??`Unknown(${h.kind})`}\` in enter.`)}}let m=~u,d=p[m],c=i(d,n)??E.Continue;switch(c.kind){case 0:a[1]=m+1;continue;case 2:return;case 3:{p.splice(m,1,...c.nodes),a[1]=m+c.nodes.length;continue}case 5:{p.splice(m,1,...c.nodes);return}case 4:{p.splice(m,1,...c.nodes),a[1]=m+c.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Et[c.kind]??`Unknown(${c.kind})`}\` in exit.`)}}}function st(t){let r=[];return I(B(t),i=>{if(!(i.kind!=="function"||i.value!=="var"))return I(i.nodes,e=>{e.kind!=="word"||e.value[0]!=="-"||e.value[1]!=="-"||r.push(e.value)}),E.Skip}),r}var nn=64;function G(t,r=[]){return{kind:"rule",selector:t,nodes:r}}function F(t,r="",i=[]){return{kind:"at-rule",name:t,params:r,nodes:i}}function J(t,r=[]){return t.charCodeAt(0)===nn?Ye(t,r):G(t,r)}function o(t,r,i=!1){return{kind:"declaration",property:t,value:r,important:i}}function ot(t){return{kind:"comment",value:t}}function ce(t,r){return{kind:"context",context:t,nodes:r}}function W(t){return{kind:"at-root",nodes:t}}function ee(t){switch(t.kind){case"rule":return{kind:t.kind,selector:t.selector,nodes:t.nodes.map(ee),src:t.src,dst:t.dst};case"at-rule":return{kind:t.kind,name:t.name,params:t.params,nodes:t.nodes.map(ee),src:t.src,dst:t.dst};case"at-root":return{kind:t.kind,nodes:t.nodes.map(ee),src:t.src,dst:t.dst};case"context":return{kind:t.kind,context:{...t.context},nodes:t.nodes.map(ee),src:t.src,dst:t.dst};case"declaration":return{kind:t.kind,property:t.property,value:t.value,important:t.important,src:t.src,dst:t.dst};case"comment":return{kind:t.kind,value:t.value,src:t.src,dst:t.dst};default:throw new Error(`Unknown node kind: ${t.kind}`)}}function qe(t){return{depth:t.depth,get context(){let r={};for(let i of t.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 t.path().filter(r=>r.kind!=="context")}}}function Te(t,r,i=3){let e=[],n=ne
`,r){i+=f.length;let m=i;i+=a.property.length,i+=2,i+=a.value?.length??0,a.important&&(i+=11);let d=i;i+=2,a.dst=[e,m,d]}}else if(a.kind==="rule"){if(u+=`${f}${a.selector} {
`,r){i+=f.length;let m=i;i+=a.selector.length,i+=1;let d=i;a.dst=[e,m,d],i+=2}for(let m of a.nodes)u+=n(m,p+1);u+=`${f}}
`,r&&(i+=f.length,i+=2)}else if(a.kind==="at-rule"){if(a.nodes.length===0){let m=`${f}${a.name} ${a.params};
`;if(r){i+=f.length;let d=i;i+=a.name.length,i+=1,i+=a.params.length;let c=i;i+=2,a.dst=[e,d,c]}return m}if(u+=`${f}${a.name}${a.params?` ${a.params} `:" "}{
`,r){i+=f.length;let m=i;i+=a.name.length,a.params&&(i+=1,i+=a.params.length),i+=1;let d=i;a.dst=[e,m,d],i+=2}for(let m of a.nodes)u+=n(m,p+1);u+=`${f}}
`,r&&(i+=f.length,i+=2)}else if(a.kind==="comment"){if(u+=`${f}/*${a.value}*/
`,r){i+=f.length;let m=i;i+=2+a.value.length+2;let d=i;a.dst=[e,m,d],i+=1}}else if(a.kind==="context"||a.kind==="at-root")return"";return u}let s="";for(let a of t)s+=n(a,0);return e.code=s,s}function an(t,r){let i=[];return I(t,(e,n)=>{if(r(e))return i=n.path(),i.push(e),E.Stop}),i}function Ar(t,r,i,e=new Set){if(e.has(t)||(e.add(t),r.getOptions(t)&24))return!0;{let s=i.get(t)??[];for(let a of s)if(Ar(a,r,i,e))return!0}return!1}function xr(t){return t.split(/[\s,]+/)}function ke(t){if(t.indexOf("(")===-1)return Ie(t);let r=B(t);return Ot(r),t=Z(r),t=Xt(t),t}function Ie(t,r=!1){let i="";for(let e=0;e<t.length;e++){let n=t[e];n==="\\"&&t[e+1]==="_"?(i+="_",e+=1):n==="_"&&!r?i+=" ":i+=n}return i}function Ot(t){for(let r of t)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Ie(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Ie(r.value);for(let i=0;i<r.nodes.length;i++){if(i==0&&r.nodes[i].kind==="word"){r.nodes[i].value=Ie(r.nodes[i].value,!0);continue}Ot([r.nodes[i]])}break}r.value=Ie(r.value),Ot(r.nodes);break}case"separator":case"word":{r.value=Ie(r.value);break}default:on(r)}}function on(t){throw new Error(`Unexpected value: ${t}`)}var Pt=new Uint8Array(256);function he(t){let r=0,i=t.length;for(let e=0;e<i;e++){let n=t.charCodeAt(e);switch(n){case 92:e+=1;break;case 39:case 34:for(;++e<i;){let s=t.charCodeAt(e);if(s===92){e+=1;continue}if(s===n)break}break;case 40:Pt[r]=41,r++;break;case 91:Pt[r]=93,r++;break;case 123:break;case 93:case 125:case 41:if(r===0)return!1;r>0&&n===Pt[r-1]&&r--;break;case 59:if(r===0)return!1;break}}return!0}var ln=58,Cr=45,$r=97,Sr=122,Dt=/^[a-zA-Z0-9_.%-]+$/;function Tr(t){switch(t.kind){case"arbitrary":return{kind:t.kind,property:t.property,value:t.value,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null,variants:t.variants.map(_e),important:t.important,raw:t.raw};case"static":return{kind:t.kind,root:t.root,variants:t.variants.map(_e),important:t.important,raw:t.raw};case"functional":return{kind:t.kind,root:t.root,value:t.value?t.value.kind==="arbitrary"?{kind:t.value.kind,dataType:t.value.dataType,value:t.value.value}:{kind:t.value.kind,value:t.value.value,fraction:t.value.fraction}:null,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null,variants:t.variants.map(_e),important:t.important,raw:t.raw};default:throw new Error("Unknown candidate kind")}}function _e(t){switch(t.kind){case"arbitrary":return{kind:t.kind,selector:t.selector,relative:t.relative};case"static":return{kind:t.kind,root:t.root};case"functional":return{kind:t.kind,root:t.root,value:t.value?{kind:t.value.kind,value:t.value.value}:null,modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null};case"compound":return{kind:t.kind,root:t.root,variant:_e(t.variant),modifier:t.modifier?{kind:t.modifier.kind,value:t.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*Vr(t,r){let i=j(t,":");if(r.theme.prefix){if(i.length===1||i[0]!==r.theme.prefix)return null;i.shift()}let e=i.pop(),n=[];for(let d=i.length-1;d>=0;--d){let c=r.parseVariant(i[d]);if(c===null)return;n.push(c)}let s=!1;e[e.length-1]==="!"?(s=!0,e=e.slice(0,-1)):e[0]==="!"&&(s=!0,e=e.slice(1)),r.utilities.has(e,"static")&&!e.includes("[")&&(yield{kind:"static",root:e,variants:n,important:s,raw:t});let[a,p=null,u]=j(e,"/");if(u)return;let f=p===null?null:It(p);if(p!==null&&f===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let d=a.charCodeAt(1);if(d!==Cr&&!(d>=$r&&d<=Sr))return;a=a.slice(1,-1);let c=a.indexOf(":");if(c===-1||c===0||c===a.length-1)return;let w=a.slice(0,c),h=ke(a.slice(c+1));if(!he(h))return;yield{kind:"arbitrary",property:w,value:h,modifier:f,variants:n,important:s,raw:t};return}let m;if(a[a.length-1]==="]"){let d=a.indexOf("-[");if(d===-1)return;let c=a.slice(0,d);if(!r.utilities.has(c,"functional"))return;let w=a.slice(d+1);m=[[c,w]]}else if(a[a.length-1]===")"){let d=a.indexOf("-(");if(d===-1)return;let c=a.slice(0,d);if(!r.utilities.has(c,"functional"))retur
Only valid data types are: ${Lt.map(y=>`"${y}"`).join(", ")}.
`);let f=u.value,m=structuredClone(a),d="\xB6";I(m.nodes,y=>{if(y.kind==="word"&&y.value===f)return E.ReplaceSkip({kind:"word",value:d})});let c="^".repeat(Z([u]).length),w=Z([m]).indexOf(d),h=["```css",Z([a])," ".repeat(w)+c,"```"].join(`
`);console.warn(h)}}),n.value=Z(s)}),i.utilities.functional(r.slice(0,-2),n=>{let s=ee(t),a=n.value,p=n.modifier;if(a===null)return;let u=!1,f=!1,m=!1,d=!1,c=new Map,w=!1;if(I([s],(h,y)=>{let x=y.parent;if(x?.kind!=="rule"&&x?.kind!=="at-rule"||h.kind!=="declaration"||!h.value)return;let $=!1,A=B(h.value);if(I(A,k=>{if(k.kind==="function"){if(k.value==="--value"){u=!0;let U=Pr(a,k,i);return U?(f=!0,U.ratio?w=!0:c.set(h,x),E.ReplaceSkip(U.nodes)):(u||=!1,$=!0,E.Stop)}else if(k.value==="--modifier"){if(p===null)return $=!0,E.Stop;m=!0;let U=Pr(p,k,i);return U?(d=!0,E.ReplaceSkip(U.nodes)):(m||=!1,$=!0,E.Stop)}}}),$)return E.ReplaceSkip([]);h.value=Z(A)}),u&&!f||m&&!d||w&&d||p&&!w&&!d)return null;if(w)for(let[h,y]of c){let x=y.nodes.indexOf(h);x!==-1&&y.nodes.splice(x,1)}return s.nodes}),i.utilities.suggest(r.slice(0,-2),()=>{let n=[],s=[];for(let[a,{literals:p,usedSpacingNumber:u,usedSpacingInteger:f,themeKeys:m}]of[[n,e["--value"]],[s,e["--modifier"]]]){for(let d of p)a.push(d);if(u)a.push(...ct);else if(f)for(let d of ct)P(d)&&a.push(d);for(let d of i.theme.keysInNamespaces(m))a.push(d.replace(_r,(c,w,h)=>`${w}.${h}`))}return[{values:n,modifiers:s}]})}:gn.test(r)?i=>{i.utilities.static(r,()=>t.nodes.map(ee))}:null}function Pr(t,r,i){for(let e of r.nodes){if(t.kind==="named"&&e.kind==="word"&&(e.value[0]==="'"||e.value[0]==='"')&&e.value[e.value.length-1]===e.value[0]&&e.value.slice(1,-1)===t.value)return{nodes:B(t.value)};if(t.kind==="named"&&e.kind==="word"&&e.value[0]==="-"&&e.value[1]==="-"){let n=e.value;if(n.endsWith("-*")){n=n.slice(0,-2);let s=i.theme.resolve(t.value,[n]);if(s)return{nodes:B(s)}}else{let s=n.split("-*");if(s.length<=1)continue;let a=[s.shift()],p=i.theme.resolveWith(t.value,a,s);if(p){let[,u={}]=p;{let f=u[s.pop()];if(f)return{nodes:B(f)}}}}}else if(t.kind==="named"&&e.kind==="word"){if(!Lt.includes(e.value))continue;let n=e.value==="ratio"&&"fraction"in t?t.fraction:t.value;if(!n)continue;let s=H(n,[e.value]);if(s===null)continue;if(s==="ratio"){let[a,p]=j(n,"/");if(!P(a)||!P(p))continue}else{if(s==="number"&&!ie(n))continue;if(s==="percentage"&&!P(n.slice(0,-1)))continue}return{nodes:B(n),ratio:s==="ratio"}}else if(t.kind==="arbitrary"&&e.kind==="word"&&e.value[0]==="["&&e.value[e.value.length-1]==="]"){let n=e.value.slice(1,-1);if(n==="*")return{nodes:B(t.value)};if("dataType"in t&&t.dataType&&t.dataType!==n)continue;if("dataType"in t&&t.dataType)return{nodes:B(t.value)};if(H(t.value,[n])!==null)return{nodes:B(t.value)}}}}function ve(t,r,i,e,n=""){let s=!1,a=Je(r,u=>i==null?e(u):u.startsWith("current")?e(Q(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(Ir(u,i))));function p(u){return n?j(u,",").map(f=>n+f).join(","):u}return s?[o(t,p(Je(r,e))),J("@supports (color: lab(from red l a b))",[o(t,p(a))])]:[o(t,p(a))]}function ft(t,r,i,e,n=""){let s=!1,a=j(r,",").map(p=>Je(p,u=>i==null?e(u):u.startsWith("current")?e(Q(u,i)):((u.startsWith("var(")||i.startsWith("var("))&&(s=!0),e(Ir(u,i))))).map(p=>`drop-shadow(${p})`).join(" ");return s?[o(t,n+j(r,",").map(p=>`drop-shadow(${Je(p,e)})`).join(" ")),J("@supports (color: lab(from red l a b))",[o(t,n+a)])]:[o(t,n+a)]}var jt={"--alpha":vn,"--spacing":wn,"--theme":yn,theme:kn};function vn(t,r,i,...e){let[n,s]=j(i,"/").map(a=>a.trim());if(!n||!s)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);if(e.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${s||"50%"})\``);return Q(n,s)}function wn(t,r,i,...e){if(!i)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(e.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${e.length+1}.`);let n=t.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${i})`}function yn(t,r,i,...e){if(!i.startsWith("--"))throw new Error("The
`,`
`);let r=[],i=[],e=null,n="",s;for(let a=0;a<t.length;a++){let p=t.charCodeAt(a);switch(p){case Jr:case Qr:case Xr:case ii:case ri:case ni:case ai:{if(n.length>0){let c=xe(n);e?e.nodes.push(c):r.push(c),n=""}let u=a,f=a+1;for(;f<t.length&&(s=t.charCodeAt(f),!(s!==Jr&&s!==Qr&&s!==Xr&&s!==ii&&s!==ri&&s!==ni&&s!==ai));f++);a=f-1;let m=t.slice(u,f),d=m.trim()===","?In(m):On(m);e?e.nodes.push(d):r.push(d);break}case ti:{let u=Pn(n,[]);if(n="",u.value!==":not"&&u.value!==":where"&&u.value!==":has"&&u.value!==":is"){let f=a+1,m=0;for(let c=a+1;c<t.length;c++){if(s=t.charCodeAt(c),s===ti){m++;continue}if(s===Hr){if(m===0){a=c;break}m--}}let d=a;u.nodes.push(_n(t.slice(f,d))),n="",a=d,e?e.nodes.push(u):r.push(u);break}e?e.nodes.push(u):r.push(u),i.push(u),e=u;break}case Hr:{let u=i.pop();if(n.length>0){let f=xe(n);u.nodes.push(f),n=""}i.length>0?e=i[i.length-1]:e=null;break}case Ln:case Kn:case jn:{if(n.length>0){let u=xe(n);e?e.nodes.push(u):r.push(u)}n=t[a];break}case ei:{if(n.length>0){let m=xe(n);e?e.nodes.push(m):r.push(m)}n="";let u=a,f=0;for(let m=a+1;m<t.length;m++){if(s=t.charCodeAt(m),s===ei){f++;continue}if(s===Dn){if(f===0){a=m;break}f--}}n+=t.slice(u,a+1);break}case zn:case Un:{let u=a;for(let f=a+1;f<t.length;f++)if(s=t.charCodeAt(f),s===Zr)f+=1;else if(s===p){a=f;break}n+=t.slice(u,a+1);break}case Mn:case Fn:{if(n.length>0){let u=xe(n);e?e.nodes.push(u):r.push(u),n=""}e?e.nodes.push(xe(t[a])):r.push(xe(t[a]));break}case Zr:{n+=t[a]+t[a+1],a+=1;break}default:n+=t[a]}}return n.length>0&&r.push(xe(n)),r}function ue(t,r){for(let i in t)delete t[i];return Object.assign(t,r)}function Oe(t){let r=[];for(let i of j(t,".")){if(!i.includes("[")){r.push(i);continue}let e=0;for(;;){let n=i.indexOf("[",e),s=i.indexOf("]",n);if(n===-1||s===-1)break;n>e&&r.push(i.slice(e,n)),r.push(i.slice(n+1,s)),e=s+1}e<=i.length-1&&r.push(i.slice(e))}return r}function zt(t,r){let i=t;return i.storage[ui]??=Wn(),i.storage[fi]??=Yn(i),i.storage[ci]??=Zn(),i.storage[pi]??=Jn(),i.storage[di]??=Xn(),i.storage[Ft]??=na(i),i.storage[ht]??=la(i,r),i.storage[de]??=ya(i),i.storage[Wt]??=ba(),i.storage[vt]??=xa(i),i.storage[Bt]??=Aa(i),i.storage[yt]??=Ca(i),i.storage[hi]??=$a(i),i}var ui=Symbol();function Wn(){return new K(t=>new K(r=>({rem:t,features:r})))}function Bn(t,r){let i=0;return r?.collapse&&(i|=1),r?.logicalToPhysical&&(i|=2),zt(t,r).storage[ui].get(r?.rem??null).get(i)}var fi=Symbol();function Yn(t){return new K(r=>new K(i=>({features:i,designSystem:t,signatureOptions:r})))}function Gn(t,r,i){let e=0;return i?.collapse&&(e|=1),zt(t).storage[fi].get(r).get(e)}function Mt(t,r,i){let e=Bn(t,i),n=Gn(t,e,i),s=zt(t),a=new Set,p=s.storage[ci].get(n);for(let u of r)a.add(p.get(u));return a.size<=1||!(n.features&1)?Array.from(a):qn(n,Array.from(a))}function qn(t,r){if(r.length<=1)return r;let i=t.designSystem,e=new K(p=>new K(u=>new Set)),n=t.designSystem.theme.prefix?`${t.designSystem.theme.prefix}:`:"";for(let p of r){let u=j(p,":"),f=u.pop(),m=f.endsWith("!");m&&(f=f.slice(0,-1));let d=u.length>0?`${u.join(":")}:`:"",c=m?"!":"";e.get(d).get(c).add(`${n}${f}`)}let s=new Set;for(let[p,u]of e.entries())for(let[f,m]of u.entries())for(let d of a(Array.from(m)))n&&d.startsWith(n)&&(d=d.slice(n.length)),s.add(`${p}${d}${f}`);return Array.from(s);function a(p){let u=t.signatureOptions,f=i.storage[vt].get(u),m=i.storage[Wt].get(u),d=p.map($=>f.get($));if(d.some($=>$.has("line-height"))){let $=i.theme.keysInNamespaces(["--text"]);if($.length>0){let A=new Set,k=new Set;for(let N of d)for(let O of N.get("line-height")){if(k.has(O))continue;k.add(O);let L=i.storage[ht]?.get(O)??null;if(L!==null)if(ie(L)){A.add(L);for(let _ of $)f.get(`text-${_}/${L}`)}else{A.add(O);for(let _ of $)f.get(`text-${_}/[${O}]`)}}let U=new Set;for(let N of d)for(let O of N.get("font-size"))if(!U.has(O)){U.add(O);for(let L of A)ie(L)?f.get(`text-[${O}]/${L}`):f.get(`text-[${O}]/[${L}]`)}}}let c=d.map($=>{let A=null;for(let k of $.keys()){let U=new Set;for(let N of m.get(k).values())for(let O of N)U.add(O);if(A===null?A=U:A=si(A,U),A.size===0)return A}return A}),w=new K($=>new Set([$])
`),s=!0;return I(B(e),a=>{if(a.kind==="function"&&a.value==="var"){let p=a.nodes[0].value;if(!new RegExp(`var\\(${p}[,)]\\s*`,"g").test(n)||n.includes(`${p}:`))return s=!1,E.Stop}}),s}function fa(t,r){if(t.kind!=="functional"||t.value?.kind!=="named")return t;let i=r.designSystem,e=i.storage[Bt].get(r.signatureOptions),n=i.storage[de].get(r.signatureOptions),s=i.printCandidate(t),a=n.get(s);if(typeof a!="string")return t;for(let u of p(a,t)){let f=i.printCandidate(u);if(n.get(f)===a)return u}return t;function*p(u,f){let m=e.get(u);if(!(m.length>1)){if(m.length===0&&f.modifier){let d={...f,modifier:null},c=n.get(i.printCandidate(d));if(typeof c=="string")for(let w of p(c,d))yield Object.assign({},w,{modifier:f.modifier})}if(m.length===1)for(let d of we(i,m[0]))yield d}}}var ca=new Map([["order-none","order-0"],["break-words","wrap-break-word"]]);function pa(t,r){let i=r.designSystem,e=i.storage[de].get(r.signatureOptions),n=oa(i,t),s=ca.get(n)??null;if(s===null)return t;let a=e.get(n);if(typeof a!="string")return t;let p=e.get(s);if(typeof p!="string"||a!==p)return t;let[u]=we(i,s);return u}function da(t,r){let i=r.designSystem,e=i.storage[yt],n=i.storage[hi],s=wt(t);for(let[a]of s){if(a.kind==="compound")continue;let p=i.printVariant(a),u=e.get(p);if(typeof u!="string")continue;let f=n.get(u);if(f.length!==1)continue;let m=f[0],d=i.parseVariant(m);d!==null&&ue(a,d)}return t}function ma(t,r){let i=r.designSystem,e=i.storage[de].get(r.signatureOptions);if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.dataType!==null){let n=i.printCandidate({...t,value:{...t.value,dataType:null}});e.get(i.printCandidate(t))===e.get(n)&&(t.value.dataType=null)}return t}function ga(t,r){if(t.kind!=="functional"||t.value?.kind!=="arbitrary")return t;let i=r.designSystem,e=i.storage[de].get(r.signatureOptions),n=e.get(i.printCandidate(t));if(n===null)return t;for(let s of mi(t))if(e.get(i.printCandidate({...t,value:s}))===n)return t.value=s,t;return t}function ha(t){let r=wt(t);for(let[i]of r)if(i.kind==="functional"&&i.root==="data"&&i.value?.kind==="arbitrary"&&!i.value.value.includes("="))i.value={kind:"named",value:i.value.value};else if(i.kind==="functional"&&i.root==="aria"&&i.value?.kind==="arbitrary"&&(i.value.value.endsWith("=true")||i.value.value.endsWith('="true"')||i.value.value.endsWith("='true'"))){let[e,n]=j(i.value.value,"=");if(e[e.length-1]==="~"||e[e.length-1]==="|"||e[e.length-1]==="^"||e[e.length-1]==="$"||e[e.length-1]==="*")continue;i.value={kind:"named",value:i.value.value.slice(0,i.value.value.indexOf("="))}}else i.kind==="functional"&&i.root==="supports"&&i.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(i.value.value)&&(i.value={kind:"named",value:i.value.value});return t}function*mi(t,r=t.value?.value??"",i=new Set){if(i.has(r))return;if(i.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&ie(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[s,a]=r.split("/");P(s)&&P(a)&&(yield{kind:"named",value:s,fraction:`${s}/${a}`})}let e=new Set;for(let s of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))e.add(s[0].trim());let n=Array.from(e).sort((s,a)=>s.length-a.length);for(let s of n)yield*mi(t,s,i)}function li(t){return!t.some(r=>r.kind==="separator"&&r.value.trim()===",")}function gt(t){let r=t.value.trim();return t.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function va(t,r){let i=[t],e=r.designSystem,n=e.storage[yt],s=wt(t);for(let[a,p]of s)if(a.kind==="compound"&&(a.root==="has"||a.root==="not"||a.root==="in")&&a.modifier!==null&&"modifier"in a.variant&&(a.variant.modifier=a.modifier,a.modifier=null),a.kind==="arbitrary"){if(a.relative)continue;let u=Re(a.selector.trim());if(!li(u))continue;if(p===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===">"&&u[2].kind==="selector"&&u[2].value==="*"){ue(a,e.parseVariant("*"));continue}if(p===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value.trim()===""&&u[2].kind==="selector"&&u[2].value==="*"){u
${re([d])}
Relies on:
${re([w])}`)}f.add(d);for(let w of s.get(d))for(let h of a.get(w))c.push(d),m(h,c),c.pop();p.add(d),f.delete(d),u.push(d)}}for(let d of n)m(d);for(let d of u)"nodes"in d&&I(d.nodes,c=>{if(c.kind!=="at-rule"||c.name!=="@apply")return;let w=c.params.split(/(\s+)/g),h={},y=0;for(let[x,$]of w.entries())x%2===0&&(h[$]=y),y+=$.length;{let x=Object.keys(h),$=Ce(x,r,{respectImportant:!1,onInvalidCandidate:N=>{if(r.theme.prefix&&!N.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${N}\`. Did you mean \`${r.theme.prefix}:${N}\`?`);if(r.invalidCandidates.has(N))throw new Error(`Cannot apply utility class \`${N}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let O=j(N,":");if(O.length>1){let L=O.pop();if(r.candidatesToCss([L])[0]){let _=r.candidatesToCss(O.map(Y=>`${Y}:[--tw-variant-check:1]`)),z=O.filter((Y,q)=>_[q]===null);if(z.length>0){if(z.length===1)throw new Error(`Cannot apply utility class \`${N}\` because the ${z.map(Y=>`\`${Y}\``)} variant does not exist.`);{let Y=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${N}\` because the ${Y.format(z.map(q=>`\`${q}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${N}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${N}\``)}}),A=c.src,k=$.astNodes.map(N=>{let O=$.nodeSorting.get(N)?.candidate,L=O?h[O]:void 0;if(N=ee(N),!A||!O||L===void 0)return I([N],z=>{z.src=A}),N;let _=[A[0],A[1],A[2]];return _[1]+=7+L,_[2]=_[1]+O.length,I([N],z=>{z.src=_}),N}),U=[];for(let N of k)if(N.kind==="rule")for(let O of N.nodes)U.push(O);else U.push(N);return E.Replace(U)}});return i}function*Si(t,r){for(let i of t.params.split(/\s+/g))for(let e of r.parseCandidate(i))switch(e.kind){case"arbitrary":break;case"static":case"functional":yield e.root;break;default:}}async function Zt(t,r,i,e=0,n=!1){let s=0,a=[];return I(t,p=>{if(p.kind==="at-rule"&&(p.name==="@import"||p.name==="@reference")){let u=Pa(B(p.params));if(u===null)return;p.name==="@reference"&&(u.media="reference"),s|=2;let{uri:f,layer:m,media:d,supports:c}=u;if(f.startsWith("data:")||f.startsWith("http://")||f.startsWith("https://"))return;let w=ce({},[]);return a.push((async()=>{if(e>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${f}\` in \`${r}\`)`);let h=await i(f,r),y=$e(h.content,{from:n?h.path:void 0});await Zt(y,h.base,i,e+1,n),w.nodes=Ia(p,[ce({base:h.base},y)],m,d,c)})()),E.ReplaceSkip(w)}}),a.length>0&&await Promise.all(a),s}function Pa(t){let r,i=null,e=null,n=null;for(let s=0;s<t.length;s++){let a=t[s];if(a.kind!=="separator"){if(a.kind==="word"&&!r){if(!a.value||a.value[0]!=='"'&&a.value[0]!=="'")return null;r=a.value.slice(1,-1);continue}if(a.kind==="function"&&a.value.toLowerCase()==="url"||!r)return null;if((a.kind==="word"||a.kind==="function")&&a.value.toLowerCase()==="layer"){if(i)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in a?i=Z(a.nodes):i="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(n)return null;n=Z(a.nodes);continue}e=Z(t.slice(s));break}}return r?{uri:r,layer:i,media:e,supports:n}:null}function Ia(t,r,i,e,n){let s=r;if(i!==null){let a=F("@layer",i,s);a.src=t.src,s=[a]}if(e!==null){let a=F("@media",e,s);a.src=t.src,s=[a]}if(n!==null){let a=F("@supports",n[0]==="("?n:`(${n})`,s);a.src=t.src,s=[a]}return s}function Me(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let r=Object.getPrototypeOf(t);return r===null||Object.getPrototypeOf(r)===null}function Xe(t,r,i,e=[]){for(let n of r)if(n!=null)for(let s of Reflect.ownKeys(n)){e.push(s);let a=i(t[s],n[s],e);a!==void 0?t[s]=a:!Me(t[s])||!Me(n[s])?t[s]=n[s]:t[s]=Xe({},[t[s],n[s]],i,e),e.pop()}return t}function bt(t,r,i){return function(n
${re([x])}
\`@plugin\` options must be a flat list of declarations.`);if(x.value===void 0)continue;let $=x.value,A=j($,",").map(k=>{if(k=k.trim(),k==="null")return null;if(k==="true")return!0;if(k==="false")return!1;if(Number.isNaN(Number(k))){if(k[0]==='"'&&k[k.length-1]==='"'||k[0]==="'"&&k[k.length-1]==="'")return k.slice(1,-1);if(k[0]==="{"&&k[k.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${re([x]).trim()}\` is not supported.
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(k);return k});y[x.property]=A.length===1?A[0]:A}return a.push([{id:h,base:w.context.base,reference:!!w.context.reference,src:d.src},Object.keys(y).length>0?y:null]),s|=4,E.Replace([])}if(d.name==="@config"){if(d.nodes.length>0)throw new Error("`@config` cannot have a body.");if(w.parent!==null)throw new Error("`@config` cannot be nested.");return p.push({id:d.params.slice(1,-1),base:w.context.base,reference:!!w.context.reference,src:d.src}),s|=4,E.Replace([])}}),Di(t);let u=t.resolveThemeValue;if(t.resolveThemeValue=function(c,w){return c.startsWith("--")?u(c,w):(s|=Li({designSystem:t,base:r,ast:i,sources:n,configs:[],pluginDetails:[]}),t.resolveThemeValue(c,w))},!a.length&&!p.length)return 0;let[f,m]=await Promise.all([Promise.all(p.map(async({id:d,base:c,reference:w,src:h})=>{let y=await e(d,c,"config");return{path:d,base:y.base,config:y.module,reference:w,src:h}})),Promise.all(a.map(async([{id:d,base:c,reference:w,src:h},y])=>{let x=await e(d,c,"plugin");return{path:d,base:x.base,plugin:x.module,options:y,reference:w,src:h}}))]);return s|=Li({designSystem:t,base:r,ast:i,sources:n,configs:f,pluginDetails:m}),s}function Li({designSystem:t,base:r,ast:i,sources:e,configs:n,pluginDetails:s}){let a=0,u=[...s.map(y=>{if(!y.options)return{config:{plugins:[y.plugin]},base:y.base,reference:y.reference,src:y.src};if("__isOptionsFunction"in y.plugin)return{config:{plugins:[y.plugin(y.options)]},base:y.base,reference:y.reference,src:y.src};throw new Error(`The plugin "${y.path}" does not accept options`)}),...n],{resolvedConfig:f}=Qt(t,[{config:Pi(t.theme),base:r,reference:!0,src:void 0},...u,{config:{plugins:[_i]},base:r,reference:!0,src:void 0}]),{resolvedConfig:m,replacedThemeKeys:d}=Qt(t,u),c={designSystem:t,ast:i,resolvedConfig:f,featuresRef:{set current(y){a|=y}}},w=Ht({...c,referenceMode:!1,src:void 0}),h=t.resolveThemeValue;t.resolveThemeValue=function(x,$){if(x[0]==="-"&&x[1]==="-")return h(x,$);let A=w.theme(x,void 0);if(Array.isArray(A)&&A.length===2)return A[0];if(Array.isArray(A))return A.join(", ");if(typeof A=="object"&&A!==null&&"DEFAULT"in A)return A.DEFAULT;if(typeof A=="string")return A};for(let{handler:y,reference:x,src:$}of f.plugins){let A=Ht({...c,referenceMode:x??!1,src:$});y(A)}if(zr(t,m,d),Oi(t,m),Ui(m,t),Ki(m,t),Ii(m,t),!t.theme.prefix&&f.prefix){if(f.prefix.endsWith("-")&&(f.prefix=f.prefix.slice(0,-1),console.warn(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only and is written as a variant before all utilities. We have fixed up the prefix for you. Remove the trailing \`-\` to silence this warning.`)),!Ma.test(f.prefix))throw new Error(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);t.theme.prefix=f.prefix}if(!t.important&&f.important===!0&&(t.important=!0),typeof f.important=="string"){let y=f.important;I(i,(x,$)=>{if(x.kind!=="at-rule"||x.name!=="@tailwind"||x.params!=="utilities")return;let A=qe($);return A.parent?.kind==="rule"&&A.parent.selector===y?E.Stop:E.ReplaceStop(G(y,[x]))})}for(let y of f.blocklist)t.invalidCandidates.add(y);for(let y of f.content.files){if("raw"in y)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
${JSON.stringify(y,null,2)}
This feature is not currently supported.`);let x=!1;y.pattern[0]=="!"&&(x=!0,y.pattern=y.pattern.slice(1)),e.push({...y,negated:x})}return a}function zi({ast:t}){let r=new K(n=>tt(n.code)),i=new K(n=>({url:n.file,content:n.code,ignore:!1})),e={file:null,sources:[],mappings:[]};I(t,n=>{if(!n.src||!n.dst)return;let s=i.get(n.src[0]);if(!s.content)return;let a=r.get(n.src[0]),p=r.get(n.dst[0]),u=s.content.slice(n.src[1],n.src[2]),f=0;for(let c of u.split(`
`)){if(c.trim()!==""){let w=a.find(n.src[1]+f),h=p.find(n.dst[1]);e.mappings.push({name:null,originalPosition:{source:s,...w},generatedPosition:h})}f+=c.length,f+=1}let m=a.find(n.src[2]),d=p.find(n.dst[2]);e.mappings.push({name:null,originalPosition:{source:s,...m},generatedPosition:d})});for(let n of r.keys())e.sources.push(i.get(n));return e.mappings.sort((n,s)=>n.generatedPosition.line-s.generatedPosition.line||n.generatedPosition.column-s.generatedPosition.column||(n.originalPosition?.line??0)-(s.originalPosition?.line??0)||(n.originalPosition?.column??0)-(s.originalPosition?.column??0)),e}var Mi=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function xt(t){let r=t.indexOf("{");if(r===-1)return[t];let i=[],e=t.slice(0,r),n=t.slice(r),s=0,a=n.lastIndexOf("}");for(let d=0;d<n.length;d++){let c=n[d];if(c==="{")s++;else if(c==="}"&&(s--,s===0)){a=d;break}}if(a===-1)throw new Error(`The pattern \`${t}\` is not balanced.`);let p=n.slice(1,a),u=n.slice(a+1),f;Fa(p)?f=Wa(p):f=j(p,","),f=f.flatMap(d=>xt(d));let m=xt(u);for(let d of m)for(let c of f)i.push(e+c+d);return i}function Fa(t){return Mi.test(t)}function Wa(t){let r=t.match(Mi);if(!r)return[t];let[,i,e,n]=r,s=n?parseInt(n,10):void 0,a=[];if(/^-?\d+$/.test(i)&&/^-?\d+$/.test(e)){let p=parseInt(i,10),u=parseInt(e,10);if(s===void 0&&(s=p<=u?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");let f=p<u;f&&s<0&&(s=-s),!f&&s>0&&(s=-s);for(let m=p;f?m<=u:m>=u;m+=s)a.push(m.toString())}return a}function Fi(t,r){let i=new Set,e=new Set,n=[];function s(a,p=[]){if(t.has(a)&&!i.has(a)){e.has(a)&&r.onCircularDependency?.(p,a),e.add(a);for(let u of t.get(a)??[])p.push(a),s(u,p),p.pop();i.add(a),e.delete(a),n.push(a)}}for(let a of t.keys())s(a);return n}var Ba=/^[a-z]+$/,Rt=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(Rt||{});function Ya(){throw new Error("No `loadModule` function provided to `compile`")}function Ga(){throw new Error("No `loadStylesheet` function provided to `compile`")}function qa(t){let r=0,i=null;for(let e of j(t," "))e==="reference"?r|=2:e==="inline"?r|=1:e==="default"?r|=4:e==="static"?r|=8:e.startsWith("prefix(")&&e.endsWith(")")&&(i=e.slice(7,-1));return[r,i]}var Ke=(u=>(u[u.None=0]="None",u[u.AtApply=1]="AtApply",u[u.AtImport=2]="AtImport",u[u.JsPluginCompat=4]="JsPluginCompat",u[u.ThemeFunction=8]="ThemeFunction",u[u.Utilities=16]="Utilities",u[u.Variants=32]="Variants",u[u.AtTheme=64]="AtTheme",u))(Ke||{});async function Wi(t,{base:r="",from:i,loadModule:e=Ya,loadStylesheet:n=Ga}={}){let s=0;t=[ce({base:r},t)],s|=await Zt(t,r,n,0,i!==void 0);let a=null,p=new lt,u=new Map,f=new Map,m=[],d=null,c=null,w=[],h=[],y=[],x=[],$=null;I(t,(k,U)=>{if(k.kind!=="at-rule")return;let N=qe(U);if(k.name==="@tailwind"&&(k.params==="utilities"||k.params.startsWith("utilities"))){if(c!==null)return E.Replace([]);if(N.context.reference)return E.Replace([]);let O=j(k.params," ");for(let L of O)if(L.startsWith("source(")){let _=L.slice(7,-1);if(_==="none"){$=_;continue}if(_[0]==='"'&&_[_.length-1]!=='"'||_[0]==="'"&&_[_.length-1]!=="'"||_[0]!=="'"&&_[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");$={base:N.context.sourceBase??N.context.base,pattern:_.slice(1,-1)}}c=k,s|=16}if(k.name==="@utility"){if(N.parent!==null)throw new Error("`@utility` cannot be nested.");if(k.nodes.length===0)throw new Error(`\`@utility ${k.params}\` is empty. Utilities should include at least one property.`);let O=Kr(k);if(O===null){if(!k.params.endsWith("-*")){if(k.params.endsWith("*"))throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(k.params.includes("*"))throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${k.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}m.push(O)}if(k.name==="@source"){if(k.nodes.length>0)throw new Error("`@source` cannot have a body.")
`).map((Y,q,ae)=>`${q===0||q>=ae.length-2?" ":">"} ${Y}`).join(`
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
${z}`)}),d?E.ReplaceSkip([]):(d=G(":root, :host",[]),d.src=k.src,E.ReplaceSkip(d))}});let A=xi(p,c?.src);if(a&&(A.important=a),x.length>0)for(let k of x)A.invalidCandidates.add(k);s|=await ji({designSystem:A,base:r,ast:t,loadModule:e,sources:h});for(let k of u.keys())A.variants.static(k,()=>{});for(let k of Fi(f,{onCircularDependency(U,N){let O=re(U.map((L,_)=>F("@custom-variant",L,[F("@variant",U[_+1]??N,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${N} {`,`@custom-variant ${N} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
${O}`)}}))u.get(k)?.(A);for(let k of m)k(A);if(d){let k=[];for(let[N,O]of A.theme.entries()){if(O.options&2)continue;let L=o(ye(N),O.value);L.src=O.src,k.push(L)}let U=A.theme.getKeyframes();for(let N of U)t.push(ce({theme:!0},[W([N])]));d.nodes=[ce({theme:!0},k)]}if(s|=Qe(t,A),s|=De(t,A),s|=Ae(t,A),c){let k=c;k.kind="context",k.context={}}return I(t,k=>{if(k.kind==="at-rule")return k.name==="@utility"?E.Replace([]):E.Skip}),{designSystem:A,ast:t,sources:h,root:$,utilitiesNode:c,features:s,inlineCandidates:y}}async function Za(t,r={}){let{designSystem:i,ast:e,sources:n,root:s,utilitiesNode:a,features:p,inlineCandidates:u}=await Wi(t,r);e.unshift(ot(`! tailwindcss v${ir} | MIT License | https://tailwindcss.com `));function f(h){i.invalidCandidates.add(h)}let m=new Set,d=null,c=0,w=!1;for(let h of u)i.invalidCandidates.has(h)||(m.add(h),w=!0);return{sources:n,root:s,features:p,build(h){if(p===0)return t;if(!a)return d??=Te(e,i,r.polyfills),d;let y=w,x=!1;w=!1;let $=m.size;for(let k of h)if(!i.invalidCandidates.has(k))if(k[0]==="-"&&k[1]==="-"){let U=i.theme.markUsedVariable(k);y||=U,x||=U}else m.add(k),y||=m.size!==$;if(!y)return d??=Te(e,i,r.polyfills),d;let A=Ce(m,i,{onInvalidCandidate:f}).astNodes;return r.from&&I(A,k=>{k.src??=a.src}),!x&&c===A.length?(d??=Te(e,i,r.polyfills),d):(c=A.length,a.nodes=A,d=Te(e,i,r.polyfills),d)}}}async function rf(t,r={}){let i=$e(t,{from:r.from}),e=await Za(i,r),n=i,s=t;return{...e,build(a){let p=e.build(a);return p===n||(s=re(p,!!r.from),n=p),s},buildSourceMap(){return zi({ast:n})}}}async function nf(t,r={}){return(await Wi($e(t,{from:r.from}),r)).designSystem}function Ha(){throw new Error("It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue using Tailwind CSS with PostCSS you'll need to install `@tailwindcss/postcss` and update your PostCSS configuration.")}export{Rt as a,Ke as b,Za as c,rf as d,nf as e,Ha as f};