Files
glastree/node_modules/tailwindcss/dist/lib.js
T

39 lines
275 KiB
JavaScript
Raw Normal View History

"use strict";var $n=Object.defineProperty;var Vn=(e,i)=>{for(var r in i)$n(e,r,{get:i[r],enumerable:!0})};var jt={};Vn(jt,{Features:()=>De,Polyfills:()=>wt,__unstable__loadDesignSystem:()=>ba,compile:()=>ka,compileAst:()=>Sn,default:()=>ft});var Cr="4.3.1";function pt(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,o=i.length;for(;o>0;){let u=(o|0)>>1,f=s+u;i[f]<=n?(s=f+1,o=o-u-1):o=u}s-=1;let c=n-i[s];return{line:s+1,column:c}}function t({line:n,column:s}){n-=1,n=Math.min(Math.max(n,0),i.length-1);let o=i[n],c=i[n+1]??o;return Math.min(Math.max(o+s,0),c)}return{find:r,findOffset:t}}var Je=92,dt=47,mt=42,Sr=34,$r=39,Nn=58,gt=59,me=10,ht=13,Xe=32,et=9,Vr=123,Wt=125,qt=40,Tr=41,En=91,Rn=93,Nr=45,Bt=64,On=33,ge=class e extends Error{loc;constructor(i,r){if(r){let t=r[0],n=pt(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 Pe(e,i){let r=i?.from?{file:i.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let t=[],n=[],s=[],o=null,c=null,u="",f="",d=0,m;for(let p=0;p<e.length;p++){let h=e.charCodeAt(p);if(!(h===ht&&(m=e.charCodeAt(p+1),m===me)))if(h===Je)u===""&&(d=p),u+=e.slice(p,p+2),p+=1;else if(h===dt&&e.charCodeAt(p+1)===mt){let v=p;for(let y=p+2;y<e.length;y++)if(m=e.charCodeAt(y),m===Je)y+=1;else if(m===mt&&e.charCodeAt(y+1)===dt){p=y+1;break}let b=e.slice(v,p+1);if(b.charCodeAt(2)===On){let y=vt(b.slice(2,-2));n.push(y),r&&(y.src=[r,v,p+1],y.dst=[r,v,p+1])}}else if(h===$r||h===Sr){let v=Er(e,p,h,r);u+=e.slice(p,v+1),p=v}else{if((h===Xe||h===me||h===et)&&(m=e.charCodeAt(p+1))&&(m===Xe||m===me||m===et||m===ht&&(m=e.charCodeAt(p+2))&&m==me))continue;if(h===me){if(u.length===0)continue;m=u.charCodeAt(u.length-1),m!==Xe&&m!==me&&m!==et&&(u+=" ")}else if(h===Nr&&e.charCodeAt(p+1)===Nr&&u.length===0){let v="",b=p,y=-1;for(let A=p+2;A<e.length;A++)if(m=e.charCodeAt(A),m===Je)A+=1;else if(m===$r||m===Sr)A=Er(e,A,m,r);else if(m===dt&&e.charCodeAt(A+1)===mt){for(let w=A+2;w<e.length;w++)if(m=e.charCodeAt(w),m===Je)w+=1;else if(m===mt&&e.charCodeAt(w+1)===dt){A=w+1;break}}else if(y===-1&&m===Nn)y=u.length+A-b;else if(m===gt&&v.length===0){u+=e.slice(b,A),p=A;break}else if(m===qt)v+=")";else if(m===En)v+="]";else if(m===Vr)v+="}";else if((m===Wt||e.length-1===A)&&v.length===0){p=A-1,u+=e.slice(b,A);break}else(m===Tr||m===Rn||m===Wt)&&v.length>0&&e[A]===v[v.length-1]&&(v=v.slice(0,-1));let N=Yt(u,y);if(!N)throw new ge("Invalid custom property, expected a value",r?[r,b,p]:null);r&&(N.src=[r,b,p],N.dst=[r,b,p]),o?o.nodes.push(N):t.push(N),u=""}else if(h===gt&&u.charCodeAt(0)===Bt)c=tt(u),r&&(c.src=[r,d,p],c.dst=[r,d,p]),o?o.nodes.push(c):t.push(c),u="",c=null;else if(h===gt&&f[f.length-1]!==")"){let v=Yt(u);if(!v){if(u.length===0)continue;throw new ge(`Invalid declaration: \`${u.trim()}\``,r?[r,d,p]:null)}r&&(v.src=[r,d,p],v.dst=[r,d,p]),o?o.nodes.push(v):t.push(v),u=""}else if(h===Vr&&f[f.length-1]!==")")f+="}",c=Z(u.trim()),r&&(c.src=[r,d,p],c.dst=[r,d,p]),o&&o.nodes.push(c),s.push(o),o=c,u="",c=null;else if(h===Wt&&f[f.length-1]!==")"){if(f==="")throw new ge("Missing opening {",r?[r,p,p]:null);if(f=f.slice(0,-1),u.length>0)if(u.charCodeAt(0)===Bt)c=tt(u),r&&(c.src=[r,d,p],c.dst=[r,d,p]),o?o.nodes.push(c):t.push(c),u="",c=null;else{let b=u.indexOf(":");if(o){let y=Yt(u,b);if(!y)throw new ge(`Invalid declaration: \`${u.trim()}\``,r?[r,d,p]:null);r&&(y.src=[r,d,p],y.dst=[r,d,p]),o.nodes.push(y)}}let v=s.pop()??null;v===null&&o&&t.push(o),o=v,u="",c=null}else if(h===qt)f+=")",u+="(";else if(h===Tr){if(f[f.length-1]!==")")throw new ge("Missing opening (",r?[r,p,p]:null);f=f.slice(0,-1),u+=")"}else{if(u.length===0&&(h===Xe||h===me||h===et))continue;u===""&&(d=p),u+=String.fromCharCode(h)}}}if(u.charCodeAt(0)===Bt){let p=tt(u);r&&(p.src=[r,d,e.length],p.dst=[r,d,e.length]),t.push(p)}if(f.length>0&&o){if(o.kind==="rule")throw new ge(`Missing closing } at ${o.selector}`,o.src?[o.src[0],o.src[1],o.src[1]]:null);if(o.kind==="at-rule")throw new ge(`Missing closing }
`,`
`);let i=[],r=[],t=null,n="",s;for(let o=0;o<e.length;o++){let c=e.charCodeAt(o);switch(c){case Pr:{n+=e[o]+e[o+1],o++;break}case zn:{if(n.length>0){let f=ne(n);t?t.nodes.push(f):i.push(f),n=""}let u=ne(e[o]);t?t.nodes.push(u):i.push(u);break}case _r:case Ir:case Dr:case Ur:case Lr:case zr:case Kr:case Mr:{if(n.length>0){let m=ne(n);t?t.nodes.push(m):i.push(m),n=""}let u=o,f=o+1;for(;f<e.length&&(s=e.charCodeAt(f),!(s!==_r&&s!==Ir&&s!==Dr&&s!==Ur&&s!==Lr&&s!==zr&&s!==Kr&&s!==Mr));f++);o=f-1;let d=_n(e.slice(u,f));t?t.nodes.push(d):i.push(d);break}case Ln:case Dn:{let u=o;for(let f=o+1;f<e.length;f++)if(s=e.charCodeAt(f),s===Pr)f+=1;else if(s===c){o=f;break}n+=e.slice(u,o+1);break}case Un:{let u=Pn(n,[]);n="",t?t.nodes.push(u):i.push(u),r.push(u),t=u;break}case In:{let u=r.pop();if(n.length>0){let f=ne(n);u?.nodes.push(f),n=""}r.length>0?t=r[r.length-1]:t=null;break}default:n+=String.fromCharCode(c)}}return n.length>0&&i.push(ne(n)),i}var Ht=(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))(Ht||{}),S={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 I(e,i){typeof i=="function"?jr(e,i):jr(e,i.enter,i.exit)}function jr(e,i=()=>S.Continue,r=()=>S.Continue){let t={value:[e,0,null],prev:null},n={parent:null,depth:0,index:0,siblings:e,path(){let s=[],o=t;for(;o;){let c=o.value[2];c&&s.push(c),o=o.prev}return s.reverse(),s}};for(;t!==null;){let s=t.value,o=s[0],c=s[1],u=s[2];if(c>=o.length){t=t.prev,n.depth-=1;continue}if(n.parent=u,n.siblings=o,c>=0){n.index=c;let p=o[c],h=i(p,n)??S.Continue;switch(h.kind){case 0:{p.nodes&&p.nodes.length>0&&(n.depth+=1,t={value:[p.nodes,0,p],prev:t}),s[1]=~c;continue}case 2:return;case 1:{s[1]=~c;continue}case 3:{o.splice(c,1,...h.nodes);continue}case 5:{o.splice(c,1,...h.nodes);return}case 4:{o.splice(c,1,...h.nodes),s[1]+=h.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ht[h.kind]??`Unknown(${h.kind})`}\` in enter.`)}}let f=~c;n.index=f;let d=o[f],m=r(d,n)??S.Continue;switch(m.kind){case 0:s[1]=f+1;continue;case 2:return;case 3:{o.splice(f,1,...m.nodes),s[1]=f+m.nodes.length;continue}case 5:{o.splice(f,1,...m.nodes);return}case 4:{o.splice(f,1,...m.nodes),s[1]=f+m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${Ht[m.kind]??`Unknown(${m.kind})`}\` in exit.`)}}}function bt(e){let i=[];return I(j(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return I(r.nodes,t=>{t.kind!=="word"||t.value[0]!=="-"||t.value[1]!=="-"||i.push(t.value)}),S.Skip}),i}var Kn=64;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)===Kn?tt(e,i):H(e,i)}function l(e,i,r=!1){return{kind:"declaration",property:e,value:i,important:r}}function vt(e){return{kind:"comment",value:e}}function ke(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 it(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.defin
`,i){r+=f.length;let d=r;r+=o.property.length,r+=2,r+=o.value?.length??0,o.important&&(r+=11);let m=r;r+=2,o.dst=[t,d,m]}}else if(o.kind==="rule"){if(u+=`${f}${o.selector} {
`,i){r+=f.length;let d=r;r+=o.selector.length,r+=1;let m=r;o.dst=[t,d,m],r+=2}for(let d of o.nodes)u+=n(d,c+1);u+=`${f}}
`,i&&(r+=f.length,r+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let d=`${f}${o.name} ${o.params};
`;if(i){r+=f.length;let m=r;r+=o.name.length,r+=1,r+=o.params.length;let p=r;r+=2,o.dst=[t,m,p]}return d}if(u+=`${f}${o.name}${o.params?` ${o.params} `:" "}{
`,i){r+=f.length;let d=r;r+=o.name.length,o.params&&(r+=1,r+=o.params.length),r+=1;let m=r;o.dst=[t,d,m],r+=2}for(let d of o.nodes)u+=n(d,c+1);u+=`${f}}
`,i&&(r+=f.length,r+=2)}else if(o.kind==="comment"){if(u+=`${f}/*${o.value}*/
`,i){r+=f.length;let d=r;r+=2+o.value.length+2;let m=r;o.dst=[t,d,m],r+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return u}let s="";for(let o of e)s+=n(o,0);return t.code=s,s}function Mn(e,i){let r=[];return I(e,(t,n)=>{if(i(t))return r=n.path(),r.push(t),S.Stop}),r}function Wr(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 o of s)if(Wr(o,i,r,t))return!0}return!1}function Fr(e){return e.split(/[\s,]+/)}var Zt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function nt(e){return e.indexOf("(")!==-1&&Zt.some(i=>e.includes(`${i}(`))}function yt(e){if(!Zt.some(s=>e.includes(s)))return e;let i="",r=[],t=null,n=null;for(let s=0;s<e.length;s++){let o=e.charCodeAt(s);if(o>=48&&o<=57||t!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?t=s:(n=t,t=null),o===40){i+=e[s];let c=s;for(let f=s-1;f>=0;f--){let d=e.charCodeAt(f);if(d>=48&&d<=57)c=f;else if(d>=97&&d<=122)c=f;else break}let u=e.slice(c,s);if(Zt.includes(u)){r.unshift(!0);continue}else if(r[0]&&u===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(o===41)i+=e[s],r.shift();else if(o===44&&r[0]){i+=", ";continue}else{if(o===32&&r[0]&&i.charCodeAt(i.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&r[0]){let c=i.trimEnd(),u=c.charCodeAt(c.length-1),f=c.charCodeAt(c.length-2),d=e.charCodeAt(s+1);if((u===101||u===69)&&f>=48&&f<=57){i+=e[s];continue}else if(u===43||u===42||u===47||u===45){i+=e[s];continue}else if(u===40||u===44){i+=e[s];continue}else e.charCodeAt(s-1)===32?i+=`${e[s]} `:u>=48&&u<=57||d>=48&&d<=57||u===41||d===40||d===43||d===42||d===47||d===45||n!==null&&n===s-1?i+=` ${e[s]} `:i+=e[s]}else i+=e[s]}}return i}function Ve(e){if(e.indexOf("(")===-1)return Fe(e);let i=j(e);return Qt(i),e=F(i),e=yt(e),e}function Fe(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 Qt(e){for(let i of e)switch(i.kind){case"function":{if(i.value==="url"||i.value.endsWith("_url")){i.value=Fe(i.value);break}if(i.value==="var"||i.value.endsWith("_var")||i.value==="theme"||i.value.endsWith("_theme")){i.value=Fe(i.value);for(let r=0;r<i.nodes.length;r++){if(r==0&&i.nodes[r].kind==="word"){i.nodes[r].value=Fe(i.nodes[r].value,!0);continue}Qt([i.nodes[r]])}break}i.value=Fe(i.value),Qt(i.nodes);break}case"separator":case"word":{i.value=Fe(i.value);break}default:jn(i)}}function jn(e){throw new Error(`Unexpected value: ${e}`)}var Jt=new Uint8Array(256);function xe(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 xt=new Uint8Array(256);function K(e,i){let r=0,t=[],n=0,s=e.length,o=i.charCodeAt(0);for(let c=0;c<s;c++){let u=e.charCodeAt(c);if(r===0&&u===o){t.push(e.slice(n,c)),n=c+1;continue}switch(u){case 92:c+=1;break;case 39:case 34:for(;++c<s;){let f=e.charCodeAt(c);if(f===92){c+=1;continue}if(f===u)break}break;case 40:xt[r]=41,r++;break;case 91:xt[r]=93,r++;break;case 123:xt[r]=125,r++;break;case 93:case 125:case 41:r>0&&u===xt[r-1]&&r--;break}}return t.push(e.slice(n)),t}var Fn=58,Br=45,Yr=97,qr=122,tr=/^[a-zA-Z0-9_.%-]+$/;function Be(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(We),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(We),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.modif
Only valid data types are: ${lr.map(b=>`"${b}"`).join(", ")}.
`);let f=u.value,d=structuredClone(o),m="\xB6";I(d.nodes,b=>{if(b.kind==="word"&&b.value===f)return S.ReplaceSkip({kind:"word",value:m})});let p="^".repeat(F([u]).length),h=F([d]).indexOf(m),v=["```css",F([o])," ".repeat(h)+p,"```"].join(`
`);console.warn(v)}}),n.value=F(s)}),r.utilities.functional(i.slice(0,-2),n=>{let s=re(e),o=n.value,c=n.modifier,u=!1,f=!1,d=!1,m=!1,p=new Map,h=!1;if(I([s],(v,b)=>{let y=b.parent;if(y?.kind!=="rule"&&y?.kind!=="at-rule"||v.kind!=="declaration"||!v.value)return;let N=!1,A=j(v.value);if(I(A,w=>{if(w.kind==="function"){if(w.value==="--value"){u=!0;let D=ni(o,w,r);return D?(f=!0,D.ratio?h=!0:p.set(v,y),S.ReplaceSkip(D.nodes)):(N=!0,S.Stop)}else if(w.value==="--modifier"){d=!0;let D=ni(c,w,r);return D?(m=!0,S.ReplaceSkip(D.nodes)):(N=!0,S.Stop)}}}),N)return S.ReplaceSkip([]);v.value=F(A)}),!u||!f||d&&!m&&c!==null||h&&m||c&&!h&&!m)return null;if(h)for(let[v,b]of p){let y=b.nodes.indexOf(v);y!==-1&&b.nodes.splice(y,1)}return s.nodes}),r.utilities.suggest(i.slice(0,-2),()=>{let n=[],s=[];for(let[o,{literals:c,usedSpacingNumber:u,usedSpacingInteger:f,themeKeys:d}]of[[n,t["--value"]],[s,t["--modifier"]]]){for(let m of c)o.push(m);if(u)o.push(...Tt);else if(f)for(let m of Tt)O(m)&&o.push(m);for(let m of r.theme.keysInNamespaces(d))o.push(m.replace(li,(p,h,v)=>`${h}.${v}`))}return[{values:n,modifiers:s}]})}:_o(i)?r=>{r.utilities.static(i,()=>e.nodes.map(re))}:null}function ni(e,i,r){if(e===null){for(let t of i.nodes)if(t.kind==="function"&&t.value==="--default")return{nodes:t.nodes};return}for(let t of i.nodes){if(e.kind==="named"&&t.kind==="word"&&(t.value[0]==="'"||t.value[0]==='"')&&t.value[t.value.length-1]===t.value[0]&&t.value.slice(1,-1)===e.value)return{nodes:j(e.value)};if(e.kind==="named"&&t.kind==="word"&&t.value[0]==="-"&&t.value[1]==="-"){let n=t.value;if(n.endsWith("-*")){n=n.slice(0,-2);let s=r.theme.resolve(e.value,[n]);if(s)return{nodes:j(s)}}else{let s=n.split("-*");if(s.length<=1)continue;let o=[s.shift()],c=r.theme.resolveWith(e.value,o,s);if(c){let[,u={}]=c;{let f=u[s.pop()];if(f)return{nodes:j(f)}}}}}else if(e.kind==="named"&&t.kind==="word"){if(!lr.includes(t.value))continue;let n=t.value==="ratio"&&"fraction"in e?e.fraction:e.value;if(!n)continue;let s=Q(n,[t.value]);if(s===null)continue;if(s==="ratio"){let[o,c]=K(n,"/").map(Number);if(!O(o)||!O(c))continue}else{if(s==="number"&&!ee(n))continue;if(s==="percentage"&&!O(n.slice(0,-1)))continue}if(s==="ratio"){let[o,c]=K(n,"/");return{nodes:j(`${o.trim()} / ${c.trim()}`),ratio:!0}}return{nodes:j(n),ratio:!1}}else if(e.kind==="arbitrary"&&t.kind==="word"&&t.value[0]==="["&&t.value[t.value.length-1]==="]"){let n=t.value.slice(1,-1);if(n==="*")return{nodes:j(e.value)};if("dataType"in e&&e.dataType&&e.dataType!==n)continue;if("dataType"in e&&e.dataType)return{nodes:j(e.value)};if(Q(e.value,[n])!==null)return{nodes:j(e.value)}}}}function Se(e,i,r,t,n=""){let s=!1,o=at(i,u=>r==null?t(u):u.startsWith("current")?t(J(u,r)):((u.startsWith("var(")||r.startsWith("var("))&&(s=!0),t(oi(u,r))));function c(u){return n?K(u,",").map(f=>n.trim()+" "+f.trim()).join(", "):u}return s?[l(e,c(at(i,t))),Z("@supports (color: lab(from red l a b))",[l(e,c(o))])]:[l(e,c(o))]}function St(e,i,r,t,n=""){let s=!1,o=K(i,",").map(c=>at(c,u=>r==null?t(u):u.startsWith("current")?t(J(u,r)):((u.startsWith("var(")||r.startsWith("var("))&&(s=!0),t(oi(u,r))))).map(c=>`drop-shadow(${c})`).join(" ");return s?[l(e,n+K(i,",").map(c=>`drop-shadow(${at(c,t)})`).join(" ")),Z("@supports (color: lab(from red l a b))",[l(e,n+o)])]:[l(e,n+o)]}var ui=/^-?[a-z][a-zA-Z0-9_-]*/,So=37,$o=47,Vo=46,To=97,No=122,Eo=65,Ro=90,$t=48,Vt=57,Oo=95,Po=45;function _o(e){let i=ui.exec(e);if(i===null)return!1;let r=i[0],t=e.slice(r.length);if(t.length===0&&r.endsWith("-"))return!1;if(t.length===0)return!0;let n=!1;for(let s=0;s<t.length;s++){let o=t.charCodeAt(s);switch(o){case So:{if(s!==t.length-1)return!1;let u=(t[s-1]||r[r.length-1]||"").charCodeAt(0);if(u<$t||u>Vt)return!1;break}case $o:{if(s===t.length-1||n)return!1;n=!0;break}case Vo:{let u=(t[s-1]||r[r.length-1]||"").charCodeAt(0);if(u<$t||u>Vt)return!1;let d=(t[s+1]||"").charCodeAt(0);if(d<$t||d>Vt)return!1;break}case Oo:case Po:continue;default:{if(o>=To&&o<=No||o>=Eo&&o<=Ro||o>=$t&&o<=Vt)continue;return!1}}}return!0}function Io(e){if(!e.endsWith("-*"))return!1;e=e.slic
`,`
`);let i=[],r=i,t=!1,n=[],s=null,o="",c;function u(d=r){return d.length===1?d[0]:t?sr(d):xi(d)}function f(d){let m=r[r.length-1];m?.kind==="compound"?m.nodes.push(d):m&&m.kind!=="list"&&m.kind!=="combinator"?r[r.length-1]=xi([m,d]):r.push(d)}for(let d=0;d<e.length;d++){let m=e.charCodeAt(d);switch(m){case $i:{for(o.length>0&&(f(Ne(o)),o="");d+1<e.length&&(c=e.charCodeAt(d+1),!(c!==ur&&c!==cr&&c!==fr));d++);if(s)s.nodes.push(u()),r=[],t=!1;else{let p=r.splice(0),h=u(p),v=Jo([h]);r.push(v),s=v,r=[],t=!1}break}case Vi:case ur:case cr:case Ei:case fr:case Ri:{o.length>0&&(f(Ne(o)),o="");let p=d,h=d+1;for(;h<e.length&&(c=e.charCodeAt(h),!(c!==Vi&&c!==ur&&c!==cr&&c!==Ei&&c!==fr&&c!==Ri));h++);d=h-1;let v=e.slice(p,h).trim();if(v===""&&(r.length===0||h>=e.length||e.charCodeAt(h)===$i))break;r.push(Zo(v===""?" ":v)),t=!0;break}case Ni:{let p=Qo(o,[]);if(o="",p.value!==":not"&&p.value!==":where"&&p.value!==":has"&&p.value!==":is"){let h=d+1,v=0;for(let y=d+1;y<e.length;y++){if(c=e.charCodeAt(y),c===Ni){v++;continue}if(c===Ci){if(v===0){d=y;break}v--}}let b=d;p.nodes.push(Xo(e.slice(h,b))),o="",d=b,f(p);break}f(p),n.push({target:r,currentList:s,containsCombinator:t}),r=p.nodes,t=!1,s=null;break}case Ci:{o.length>0&&(f(Ne(o)),o=""),s?s.nodes.push(u()):t&&r.splice(0,r.length,sr(r.splice(0)));let p=n.pop();r=p?.target??i,s=p?.currentList??null,t=p?.containsCombinator??!1;break}case rl:case Si:case il:{if(m===Si&&o===":"){o+=e[d];break}o.length>0&&f(Ne(o)),o=e[d];break}case Ti:{o.length>0&&f(Ne(o)),o="";let p=d,h=0;for(let v=d+1;v<e.length;v++){if(c=e.charCodeAt(v),c===Ti){h++;continue}if(c===el){if(h===0){d=v;break}h--}}o+=e.slice(p,d+1);break}case nl:case tl:{let p=d;for(let h=d+1;h<e.length;h++)if(c=e.charCodeAt(h),c===Ai)h+=1;else if(c===m){d=h;break}o+=e.slice(p,d+1);break}case ol:case ll:{o.length>0&&(f(Ne(o)),o=""),f(Ne(e[d]));break}case Ai:{o+=e[d]+e[d+1],d+=1;break}default:o+=e[d]}}return o.length>0&&f(Ne(o)),s?s.nodes.push(u()):t&&r.splice(0,r.length,sr(r.splice(0))),i}function pe(e,i){for(let r in e)delete e[r];return Object.assign(e,i)}function ze(e){let i=[];for(let r of K(e,".")){if(!r.includes("[")){i.push(r);continue}let t=0;for(;;){let n=r.indexOf("[",t),s=r.indexOf("]",n);if(n===-1||s===-1)break;n>t&&i.push(r.slice(t,n)),i.push(r.slice(n+1,s)),t=s+1}t<=r.length-1&&i.push(r.slice(t))}return i}function pr(e,i){let r=e;return r.storage[Ui]??=al(),r.storage[Li]??=cl(r),r.storage[zi]??=dl(),r.storage[Ki]??=gl(),r.storage[Mi]??=vl(),r.storage[mr]??=Al(r),r.storage[Pt]??=$l(r,i),r.storage[be]??=Ml(r),r.storage[gr]??=Fl(),r.storage[_t]??=Wl(r),r.storage[hr]??=Bl(r),r.storage[Dt]??=Yl(r),r.storage[Yi]??=ql(r),r.storage[ut]??=sl(r),r}var Ui=Symbol();function al(){return new L(e=>new L(i=>({rem:e,features:i})))}var ut=Symbol();function sl(e){return new L(i=>{let r=e.storage[be].get(i);return function(n,s){let o=typeof n=="string"?n:e.printCandidate(n),c=r.get(o);if(typeof c!="string")return!1;let u=typeof s=="string"?s:e.printCandidate(s),f=r.get(u);return typeof f!="string"?!1:c===f}})}function ul(e,i){let r=0;return i?.collapse&&(r|=1),i?.logicalToPhysical&&(r|=2),pr(e,i).storage[Ui].get(i?.rem??null).get(r)}var Li=Symbol();function cl(e){return new L(i=>new L(r=>({features:r,designSystem:e,signatureOptions:i})))}function fl(e,i,r){let t=0;return r?.collapse&&(t|=1),pr(e).storage[Li].get(i).get(t)}function dr(e,i,r){let t=ul(e,r),n=fl(e,t,r),s=pr(e),o=new Set,c=s.storage[zi].get(n);for(let u of i)o.add(c.get(u));return o.size<=1||!(n.features&1)?Array.from(o):pl(n,Array.from(o))}function pl(e,i){let r=e.designSystem,t=new L(c=>new L(u=>new Set)),n=e.designSystem.theme.prefix?`${e.designSystem.theme.prefix}:`:"";for(let c of i){let u=K(c,":"),f=u.pop(),d=f.endsWith("!");d&&(f=f.slice(0,-1));let m=u.length>0?`${u.join(":")}:`:"",p=d?"!":"";t.get(m).get(p).add(`${n}${f}`)}let s=new Set;for(let[c,u]of t.entries())for(let[f,d]of u.entries())for(let m of o(Array.from(d)))n&&m.startsWith(n)&&(m=m.slice(n.length)),s.add(`${c}${m}${f}`);return Array.from(s);function o(c){let u=e.signatureOptions,f=r.storage[_t].get(u),d=r.storage[gr]
`),s=!0;return I(j(t),o=>{if(o.kind==="function"&&o.value==="var"){let c=o.nodes[0].value;if(!new RegExp(`var\\(${c}[,)]\\s*`,"g").test(n)||n.includes(`${c}:`))return s=!1,S.Stop}}),s}function Nl(e,i){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=i.designSystem,t=r.storage[hr].get(i.signatureOptions),n=r.storage[be].get(i.signatureOptions),s=r.storage[ut].get(i.signatureOptions),o=r.printCandidate(e),c=n.get(o);if(typeof c!="string")return e;for(let f of u(c,e))if(s(e,f))return f;return e;function*u(f,d){let m=t.get(f);if(m.length>1){let p;for(let h of m)if(h[0]!=="-"){if(p)return;p=h}if(p)for(let h of de(r,p))yield h;return}if(m.length===0&&d.modifier){let p={...d,modifier:null},h=n.get(r.printCandidate(p));if(typeof h=="string")for(let v of u(h,p))yield Object.assign({},v,{modifier:d.modifier})}if(m.length===1)for(let p of de(r,m[0]))yield p}}var El=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),Rl=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*Ol(e){let i=El.get(e);i&&(yield i);for(let[r,t]of Rl){let n=e.replace(r,t);n!==e&&(yield n)}}function Pl(e,i){let r=i.designSystem,t=r.storage[ut].get(i.signatureOptions),n=ji(r,e);for(let s of Ol(n)){if(!t(e,s))continue;let[o]=de(r,s);return o}return e}function _l(e,i){let r=i.designSystem,t=r.storage[Dt],n=r.storage[Yi],s=It(e);for(let[o]of s){if(o.kind==="compound")continue;let c=r.printVariant(o),u=t.get(c);if(typeof u!="string")continue;let f=n.get(u);if(f.length!==1)continue;let d=f[0],m=r.parseVariant(d);m!==null&&pe(o,m)}return e}function Il(e,i){let r=i.designSystem,t=r.storage[be].get(i.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=r.printCandidate({...e,value:{...e.value,dataType:null}});t.get(r.printCandidate(e))===t.get(n)&&(e.value.dataType=null)}return e}function Dl(e,i){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=i.designSystem,t=r.storage[be].get(i.signatureOptions),n=t.get(r.printCandidate(e));if(n===null)return e;for(let s of Wi(e))if(t.get(r.printCandidate({...e,value:s}))===n)return e.value=s,e;return e}function Ul(e){let i=It(e);for(let[r]of i)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[t,n]=K(r.value.value,"=");if(t[t.length-1]==="~"||t[t.length-1]==="|"||t[t.length-1]==="^"||t[t.length-1]==="$"||t[t.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*Wi(e,i=e.value?.value??"",r=new Set){if(r.has(i))return;if(r.add(i),yield{kind:"named",value:i,fraction:null},i.endsWith("%")&&ee(i.slice(0,-1))&&(yield{kind:"named",value:i.slice(0,-1),fraction:null}),i.includes("/")){let[s,o]=i.split("/");O(s)&&O(o)&&(yield{kind:"named",value:s,fraction:`${s}/${o}`})}let t=new Set;for(let s of i.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))t.add(s[0].trim());let n=Array.from(t).sort((s,o)=>s.length-o.length);for(let s of n)yield*Wi(e,s,r)}function Ii(e){return!(e.length===1&&e[0].kind==="list")}function Ot(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function Ll(e,i){let r=[e],t=i.designSystem,n=t.storage[Dt],s=It(e);for(let[o,c]of s)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let u=Le(o.selector);if(!Ii(u))continue;if(u.length===1&&u[0].kind==="complex"&&(u=u[0].nodes),c===null&&u.length===3&&u[0].kind==="selector"&&u[0].value==="&"&&u[1].kind==="combinator"&&u[1].value===">"&&u[2].kind==
${se([m])}
Relies on:
${se([h])}`)}f.add(m);for(let h of s.get(m))for(let v of o.get(h))p.push(m),d(v,p),p.pop();c.add(m),f.delete(m),u.push(m)}}for(let m of n)d(m);for(let m of u)"nodes"in m&&I(m.nodes,p=>{if(p.kind!=="at-rule"||p.name!=="@apply")return;let h=p.params.split(/(\s+)/g),v={},b=[],y=[],N=0;for(let[w,D]of h.entries())w%2===0&&(D[0]==="-"&&D[1]==="-"?y.push(D):b.push(D),v[D]=N),N+=D.length;if(y.length){if(b.length===0)return S.Skip;let w=y.join(" ");throw new Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${w}\` into a separate rule.`)}if(p.nodes.length>0&&b.length){let w=b.join(" ");throw new Error(`The rule \`@apply ${w}\` must not have a body.`)}{let w=Object.keys(v),D=Re(w,i,{respectImportant:!1,onInvalidCandidate:E=>{if(i.theme.prefix&&!E.startsWith(i.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${E}\`. Did you mean \`${i.theme.prefix}:${E}\`?`);if(i.invalidCandidates.has(E))throw new Error(`Cannot apply utility class \`${E}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let M=K(E,":");if(M.length>1){let G=M.pop();if(i.candidatesToCss([G])[0]){let q=i.candidatesToCss(M.map(ie=>`${ie}:[--tw-variant-check:1]`)),X=M.filter((ie,a)=>q[a]===null);if(X.length>0){if(X.length===1)throw new Error(`Cannot apply utility class \`${E}\` because the ${X.map(ie=>`\`${ie}\``)} variant does not exist.`);{let ie=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${E}\` because the ${ie.format(X.map(a=>`\`${a}\``))} variants do not exist.`)}}}}throw i.theme.size===0?new Error(`Cannot apply unknown utility class \`${E}\`. 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 \`${E}\``)}}),_=p.src,P=D.astNodes.map(E=>{let M=D.nodeSorting.get(E)?.candidate,G=M?v[M]:void 0;if(E=re(E),!_||!M||G===void 0)return I([E],X=>{X.src=_}),E;let q=[_[0],_[1],_[2]];return q[1]+=7+G,q[2]=q[1]+M.length,I([E],X=>{X.src=q}),E}),z=[];for(let E of P)if(E.kind==="rule")for(let M of E.nodes)z.push(M);else z.push(E);return S.Replace(z)}});return r}function*rn(e,i){for(let r of e.params.split(/\s+/g))for(let t of i.parseCandidate(r))switch(t.kind){case"arbitrary":break;case"static":case"functional":yield t.root;break;default:}}async function wr(e,i,r,t=0,n=!1){let s=0,o=[];return I(e,c=>{if(c.kind==="at-rule"&&(c.name==="@import"||c.name==="@reference")){let u=ta(j(c.params));if(u===null)return;c.name==="@reference"&&(u.media="reference"),s|=2;let{uri:f,layer:d,media:m,supports:p}=u;if(f.startsWith("data:")||f.startsWith("http://")||f.startsWith("https://"))return;let h=ke({},[]);return o.push((async()=>{if(t>100)throw new Error(`Exceeded maximum recursion depth while resolving \`${f}\` in \`${i}\`)`);let v=await r(f,i),b=Pe(v.content,{from:n?v.path:void 0});await wr(b,v.base,r,t+1,n),h.nodes=ra(c,[ke({base:v.base},b)],d,m,p)})()),S.ReplaceSkip(h)}}),o.length>0&&await Promise.all(o),s}function ta(e){let i,r=null,t=null,n=null;for(let s=0;s<e.length;s++){let o=e[s];if(o.kind!=="separator"){if(o.kind==="word"&&!i){if(!o.value||o.value[0]!=='"'&&o.value[0]!=="'")return null;i=o.value.slice(1,-1);continue}if(o.kind==="function"&&o.value.toLowerCase()==="url"||!i)return null;if((o.kind==="word"||o.kind==="function")&&o.value.toLowerCase()==="layer"){if(r)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in o?r=F(o.nodes):r="";continue}if(o.kind==="function"&&o.value.toLowerCase()==="supports"){if(n)return null;n=F(o.nodes);continue}t=F(e.slice(s));break}}return i?{uri:i,layer:r,media:t,supports:n}:null}function ra(e,i,r,t,n){let s=i;if(r!==null){let o=B("@layer",r,s);o.src=e.src,s=[o]}if(t!==null){let o=B("@media",t,s);o.src=e.src,s=[o]}if(n!==null){let o=B("@supports",n[0]==="("?n:`(${n})`,s);o.src=e.src,s=[o]}return s}function Qe(e){if(Object.prototype.toStrin
${se([y])}
\`@plugin\` options must be a flat list of declarations.`);if(y.value===void 0)continue;let N=y.value,A=K(N,",").map(w=>{if(w=w.trim(),w==="null")return null;if(w==="true")return!0;if(w==="false")return!1;if(Number.isNaN(Number(w))){if(w[0]==='"'&&w[w.length-1]==='"'||w[0]==="'"&&w[w.length-1]==="'")return w.slice(1,-1);if(w[0]==="{"&&w[w.length-1]==="}")throw new Error(`Unexpected \`@plugin\` option: Value of declaration \`${se([y]).trim()}\` is not supported.
Using an object as a plugin option is currently only supported in JavaScript configuration files.`)}else return Number(w);return w});b[y.property]=A.length===1?A[0]:A}return o.push([{id:v,base:h.context.base,reference:!!h.context.reference,src:m.src},Object.keys(b).length>0?b:null]),s|=4,S.Replace([])}if(m.name==="@config"){if(m.nodes.length>0)throw new Error("`@config` cannot have a body.");if(h.parent!==null)throw new Error("`@config` cannot be nested.");return c.push({id:m.params.slice(1,-1),base:h.context.base,reference:!!h.context.reference,src:m.src}),s|=4,S.Replace([])}}),hn(e);let u=e.resolveThemeValue;if(e.resolveThemeValue=function(p,h){return p.startsWith("--")?u(p,h):(s|=bn({designSystem:e,base:i,ast:r,sources:n,configs:[],pluginDetails:[]}),e.resolveThemeValue(p,h))},!o.length&&!c.length)return 0;let[f,d]=await Promise.all([Promise.all(c.map(async({id:m,base:p,reference:h,src:v})=>{let b=await t(m,p,"config");return{path:m,base:b.base,config:b.module,reference:h,src:v}})),Promise.all(o.map(async([{id:m,base:p,reference:h,src:v},b])=>{let y=await t(m,p,"plugin");return{path:m,base:y.base,plugin:y.module,options:b,reference:h,src:v}}))]);return s|=bn({designSystem:e,base:i,ast:r,sources:n,configs:f,pluginDetails:d}),s}function bn({designSystem:e,base:i,ast:r,sources:t,configs:n,pluginDetails:s}){let o=0,u=[...s.map(b=>{if(!b.options)return{config:{plugins:[b.plugin]},base:b.base,reference:b.reference,src:b.src};if("__isOptionsFunction"in b.plugin)return{config:{plugins:[b.plugin(b.options)]},base:b.base,reference:b.reference,src:b.src};throw new Error(`The plugin "${b.path}" does not accept options`)}),...n],{resolvedConfig:f}=Ar(e,[{config:dn(e.theme),base:i,reference:!0,src:void 0},...u,{config:{plugins:[gn]},base:i,reference:!0,src:void 0}]),{resolvedConfig:d,replacedThemeKeys:m}=Ar(e,u),p={designSystem:e,ast:r,resolvedConfig:f,featuresRef:{set current(b){o|=b}}},h=yr({...p,referenceMode:!1,src:void 0}),v=e.resolveThemeValue;e.resolveThemeValue=function(y,N){if(y[0]==="-"&&y[1]==="-")return v(y,N);let A=h.theme(y,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:b,reference:y,src:N}of f.plugins){let A=yr({...p,referenceMode:y??!1,src:N});b(A)}if(mi(e,d,m),un(e,d),kn(d,e),vn(d,e),mn(d,e),!e.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.`)),!fa.test(f.prefix))throw new Error(`The prefix "${f.prefix}" is invalid. Prefixes must be lowercase ASCII letters (a-z) only.`);e.theme.prefix=f.prefix}if(!e.important&&f.important===!0&&(e.important=!0),typeof f.important=="string"){let b=f.important;I(r,(y,N)=>{if(y.kind!=="at-rule"||y.name!=="@tailwind"||y.params!=="utilities")return;let A=it(N);return A.parent?.kind==="rule"&&A.parent.selector===b?S.Stop:S.ReplaceStop(H(b,[y]))})}for(let b of f.blocklist)e.invalidCandidates.add(b);for(let b of f.content.files){if("raw"in b)throw new Error(`Error in the config file/plugin/preset. The \`content\` key contains a \`raw\` entry:
${JSON.stringify(b,null,2)}
This feature is not currently supported.`);let y=!1;b.pattern[0]=="!"&&(y=!0,b.pattern=b.pattern.slice(1)),t.push({...b,negated:y})}return o}function yn({ast:e}){let i=new L(n=>pt(n.code)),r=new L(n=>({url:n.file,content:n.code,ignore:!1})),t={file:null,sources:[],mappings:[]};I(e,n=>{if(!n.src||!n.dst)return;let s=r.get(n.src[0]);if(!s.content)return;let o=i.get(n.src[0]),c=i.get(n.dst[0]),u=s.content.slice(n.src[1],n.src[2]),f=0;for(let p of u.split(`
`)){if(p.trim()!==""){let h=o.find(n.src[1]+f),v=c.find(n.dst[1]);t.mappings.push({name:null,originalPosition:{source:s,...h},generatedPosition:v})}f+=p.length,f+=1}let d=o.find(n.src[2]),m=c.find(n.dst[2]);t.mappings.push({name:null,originalPosition:{source:s,...d},generatedPosition:m})});for(let n of i.keys())t.sources.push(r.get(n));return t.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)),t}var xn=/^(-?\d+)\.\.(-?\d+)(?:\.\.(-?\d+))?$/;function Mt(e){let i=e.indexOf("{");if(i===-1)return[e];let r=[],t=e.slice(0,i),n=e.slice(i),s=0,o=n.lastIndexOf("}");for(let m=0;m<n.length;m++){let p=n[m];if(p==="{")s++;else if(p==="}"&&(s--,s===0)){o=m;break}}if(o===-1)throw new Error(`The pattern \`${e}\` is not balanced.`);let c=n.slice(1,o),u=n.slice(o+1),f;pa(c)?f=da(c):f=K(c,","),f=f.flatMap(m=>Mt(m));let d=Mt(u);for(let m of d)for(let p of f)r.push(t+p+m);return r}function pa(e){return xn.test(e)}function da(e){let i=e.match(xn);if(!i)return[e];let[,r,t,n]=i,s=n?parseInt(n,10):void 0,o=[];if(/^-?\d+$/.test(r)&&/^-?\d+$/.test(t)){let c=parseInt(r,10),u=parseInt(t,10);if(s===void 0&&(s=c<=u?1:-1),s===0)throw new Error("Step cannot be zero in sequence expansion.");let f=c<u;f&&s<0&&(s=-s),!f&&s>0&&(s=-s);for(let d=c;f?d<=u:d>=u;d+=s)o.push(d.toString())}return o}function An(e,i){let r=new Set,t=new Set,n=[];function s(o,c=[]){if(e.has(o)&&!r.has(o)){t.has(o)&&i.onCircularDependency?.(c,o),t.add(o);for(let u of e.get(o)??[])c.push(o),s(u,c),c.pop();r.add(o),t.delete(o),n.push(o)}}for(let o of e.keys())s(o);return n}var ma=/^[a-z]+$/,wt=(n=>(n[n.None=0]="None",n[n.AtProperty=1]="AtProperty",n[n.ColorMix=2]="ColorMix",n[n.All=3]="All",n))(wt||{});function ga(){throw new Error("No `loadModule` function provided to `compile`")}function ha(){throw new Error("No `loadStylesheet` function provided to `compile`")}function va(e){let i=0,r=null;for(let t of K(e," "))t==="reference"?i|=2:t==="inline"?i|=1:t==="default"?i|=4:t==="static"?i|=8:t.startsWith("prefix(")&&t.endsWith(")")&&(r=t.slice(7,-1));return[i,r]}var De=(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))(De||{});async function Cn(e,{base:i="",from:r,loadModule:t=ga,loadStylesheet:n=ha}={}){let s=0;e=[ke({base:i},e)],s|=await wr(e,i,n,0,r!==void 0);let o=null,c=new kt,u=new Map,f=new Map,d=[],m=null,p=null,h=[],v=[],b=[],y=[],N=null;I(e,(w,D)=>{if(w.kind!=="at-rule")return;let _=it(D);if(w.name==="@tailwind"&&(w.params==="utilities"||w.params.startsWith("utilities"))){if(p!==null)return S.Replace([]);if(_.context.reference)return S.Replace([]);let P=K(w.params," ");for(let z of P)if(z.startsWith("source(")){let E=z.slice(7,-1);if(E==="none"){N=E;continue}if(E[0]==='"'&&E[E.length-1]!=='"'||E[0]==="'"&&E[E.length-1]!=="'"||E[0]!=="'"&&E[0]!=='"')throw new Error("`source(\u2026)` paths must be quoted.");N={base:_.context.sourceBase??_.context.base,pattern:E.slice(1,-1)}}p=w,s|=16}if(w.name==="@utility"){if(_.parent!==null)throw new Error("`@utility` cannot be nested.");if(w.nodes.length===0)throw new Error(`\`@utility ${w.params}\` is empty. Utilities should include at least one property.`);let P=si(w);if(P===null){if(!w.params.endsWith("-*")){if(w.params.endsWith("*"))throw new Error(`\`@utility ${w.params}\` defines an invalid utility name. A functional utility must end in \`-*\`.`);if(w.params.includes("*"))throw new Error(`\`@utility ${w.params}\` defines an invalid utility name. The dynamic portion marked by \`-*\` must appear once at the end.`)}throw new Error(`\`@utility ${w.params}\` defines an invalid utility name. Utilities should be alphanumeric and start with a lowercase letter.`)}d.push(P)}if(w.name==="@source"){if(w.nodes.length>0)throw new Error("`@source` cannot have a body.")
`).map((G,q,X)=>`${q===0||q>=X.length-2?" ":">"} ${G}`).join(`
`);throw new Error(`\`@theme\` blocks must only contain custom properties or \`@keyframes\`.
${M}`)}),m?S.ReplaceSkip([]):(m=H(":root, :host",[]),m.src=w.src,S.ReplaceSkip(m))}});let A=Ji(c,p?.src);if(o&&(A.important=o),y.length>0)for(let w of y)A.invalidCandidates.add(w);s|=await wn({designSystem:A,base:i,ast:e,loadModule:t,sources:v});for(let w of u.keys())A.variants.static(w,()=>{});for(let w of An(f,{onCircularDependency(D,_){let P=se(D.map((z,E)=>B("@custom-variant",z,[B("@variant",D[E+1]??_,[])]))).replaceAll(";"," { \u2026 }").replace(`@custom-variant ${_} {`,`@custom-variant ${_} { /* \u2190 */`);throw new Error(`Circular dependency detected in custom variants:
${P}`)}}))u.get(w)?.(A);for(let w of d)w(A);if(m){let w=[];for(let[_,P]of A.theme.entries()){if(P.options&2)continue;let z=l($e(_),P.value);z.src=P.src,w.push(z)}let D=A.theme.getKeyframes();for(let _ of D)e.push(ke({theme:!0},[Y([_])]));m.nodes=[ke({theme:!0},w)]}if(s|=Me(e,A),s|=Ye(e,A),s|=Ee(e,A),p){let w=p;w.kind="context",w.context={}}return I(e,w=>{if(w.kind==="at-rule")return w.name==="@utility"?S.Replace([]):S.Skip}),{designSystem:A,ast:e,sources:v,root:N,utilitiesNode:p,features:s,inlineCandidates:b}}async function Sn(e,i={}){let{designSystem:r,ast:t,sources:n,root:s,utilitiesNode:o,features:c,inlineCandidates:u}=await Cn(e,i);t.unshift(vt(`! tailwindcss v${Cr} | MIT License | https://tailwindcss.com `));function f(v){r.invalidCandidates.add(v)}let d=new Set,m=null,p=0,h=!1;for(let v of u)r.invalidCandidates.has(v)||(d.add(v),h=!0);return{sources:n,root:s,features:c,build(v){if(c===0)return e;if(!o)return m??=_e(t,r,i.polyfills),m;let b=h,y=!1;h=!1;let N=d.size;for(let w of v)if(!r.invalidCandidates.has(w))if(w[0]==="-"&&w[1]==="-"){let D=r.theme.markUsedVariable(w);b||=D,y||=D}else d.add(w),b||=d.size!==N;if(!b)return m??=_e(t,r,i.polyfills),m;let A=Re(d,r,{onInvalidCandidate:f}).astNodes;return i.from&&I(A,w=>{w.src??=o.src}),!y&&p===A.length?(m??=_e(t,r,i.polyfills),m):(p=A.length,o.nodes=A,m=_e(t,r,i.polyfills),m)}}}async function ka(e,i={}){let r=Pe(e,{from:i.from}),t=await Sn(r,i),n=r,s=e;return{...t,build(o){let c=t.build(o);return c===n||(s=se(c,!!i.from),n=c),s},buildSourceMap(){return yn({ast:n})}}}async function ba(e,i={}){return(await Cn(Pe(e,{from:i.from}),i)).designSystem}function ft(){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.")}for(let e in jt)e!=="default"&&(ft[e]=jt[e]);module.exports=ft;