@master/css 2.0.0-beta.205 → 2.0.0-beta.207

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- function ne(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function se(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function oe(e){let t=[];return e.forEach(function(i,n){typeof i=="object"&&i!==null?Array.isArray(i)?t[n]=oe(i):ne(i)?t[n]=se(i):t[n]=K({},i):t[n]=i}),t}function ae(e,t){return t==="__proto__"?void 0:e[t]}function K(...e){let t={},i,n;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(a){if(n=ae(t,a),i=ae(l,a),i!==t)if(typeof i!="object"||i===null){t[a]=i;return}else if(Array.isArray(i)){t[a]=oe(i);return}else if(ne(i)){t[a]=se(i);return}else if(typeof n!="object"||n===null||Array.isArray(n)){t[a]=K({},i);return}else{t[a]=K(n,i);return}})}),t}var X={"(":")","'":"'",'"':'"',"{":"}"};function ee(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,n=-1,l="",a,s=t.charCodeAt(0);if(i==1&&s==45)return"\\"+t;for(;++n<i;){if(a=t.charCodeAt(n),a==0){l+="\uFFFD";continue}if(a>=1&&a<=31||a==127||n==0&&a>=48&&a<=57||n==1&&a>=48&&a<=57&&s==45){l+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){l+=t.charAt(n);continue}l+="\\"+t.charAt(n)}return l}var le=(c=>(c[c.Semantic=-8]="Semantic",c[c.CoreNativeShorthand=-7]="CoreNativeShorthand",c[c.NativeShorthand=-6]="NativeShorthand",c[c.CoreShorthand=-5]="CoreShorthand",c[c.Shorthand=-4]="Shorthand",c[c.CoreNative=-3]="CoreNative",c[c.Native=-2]="Native",c[c.Core=-1]="Core",c[c.Normal=0]="Normal",c))(le||{});var Re=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,te=class{constructor(t,i={},n){this.className=t;this.definition=i;this.css=n;let{layer:l,unit:a,colored:s,analyze:d,transformValue:p,declare:c,transformValueComponents:h,create:b,order:y,id:u}=i;this.order=y,this.layer=l,i.unit||(i.unit=""),i.separators||(i.separators=[","]);let{scope:o,important:m,themeDriver:f}=n.config,{selectors:r,mediaQueries:g,stylesBy:D,animations:C}=n,w=D[t];b&&b.call(this,t),this.declarations=i.declarations;let R,v;if(this.colored=s,l===-8)R=t.slice(u.length-1);else{let k;if(d)[k,v]=d.call(this,t);else{let N=t.indexOf(":");this.prefix=t.slice(0,N+1),k=t.slice(N+1)}this.valueComponents=[],R=k.slice(this.parseValue(this.valueComponents,0,k,a))}R[0]==="!"&&(this.important=!0,R=R.slice(1)),this.stateToken=R;let S=(k,N)=>{let E=(x,O,V,T)=>{for(let[B,_]of O)if(B.test(x)){for(let I of _)E(x.replace(B,I),O,V,!0);return}T&&V.push(x)},P=x=>{let O=x.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((_,I)=>I%3?_:_.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),V=[],T="",B=0;for(let _=0;_<O.length;_++){let I=O[_];if(I==="\\"){T+=I+O[++_];continue}!B&&I===","?(V.push(T),T=""):(T+=I,B&&I===")"?B--:I==="("&&B++)}return T&&V.push(T),V},$=[];""in r?E(k,r[""],$,!0):$.push(k);let A={};for(let[x,O]of Object.entries(r)){if(!x)continue;let V=[];for(let T of $)E(T,O,V,!1);V.length&&(A[x]=V)}let F=(x,O)=>{let V=O.reduce((T,B)=>(T.push(...P(B)),T),[]);x in N?N[x].push(...V):N[x]=V},L=Object.keys(A);if(L.length)for(let x of L)F(x,A[x]);else F("",$)};v?(this.vendorPrefixSelectors={},S(v,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let j=R.split("@"),z=j[0];if(z){this.vendorSuffixSelectors={},S(z,this.vendorSuffixSelectors);for(let k of Object.values(this.vendorSuffixSelectors))for(let N of k){this.hasWhere!==!1&&(this.hasWhere=N.includes(":where("));let E=[":disabled",":active",":focus",":hover"];for(let P=0;P<E.length;P++)if(N.includes(E[P])){(this.priority===-1||this.priority>P)&&(this.priority=P);break}}}else this.vendorSuffixSelectors={"":[""]};let W={},Ce=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),re=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(Ce)W[""]=re?[""]:Object.keys(this.vendorSuffixSelectors);else if(re)for(let k in this.vendorPrefixSelectors)W[k]=[""];else for(let k in this.vendorPrefixSelectors){let N=W[k]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,k))N.push(k);else for(let E in this.vendorSuffixSelectors)N.push(E)}for(let k=1;k<j.length;k++){let N=j[k];if(N)if(N==="rtl"||N==="ltr")this.direction=N;else{let E,P,$=Re.exec(N);if($)E=$[1],P=N.slice(E.length);else{this.media={token:N,features:{}};let A=[],F=x=>{if(x==="all"||x==="print"||x==="screen"||x==="speech")this.media.type=x;else if(x==="\u{1F5A8}")this.media.type="print";else if(x==="landscape"||x==="portrait")A.push("(orientation:"+x+")");else if(x==="motion"||x==="reduced-motion")A.push("(prefers-reduced-motion:"+(x==="motion"?"no-preference":"reduce")+")");else{let O=g[x];if(O&&typeof O=="string")A.push(O);else{let V="",T="",B=0;x.startsWith("<=")?(T="<=",V="max-width"):x.startsWith(">=")||O?(T=">=",V="min-width"):x.startsWith(">")?(T=">",V="min-width",B=.02):x.startsWith("<")&&(T="<",V="max-width",B=-.02);let _=T?x.replace(T,""):x,I=g[_];switch(V){case"max-width":case"min-width":let U={};typeof I=="number"?U={type:"number",value:I+B,unit:"px"}:(U=this.parseValueComponent(_,"px"),U.type==="number"&&U.unit==="px"&&(U.value+=B)),this.media.features[V]=U,U.type==="number"?A.push("("+V+":"+(U.value+U.unit)+")"):A.push("("+V+":"+U.value+")");break}}}},L=N.includes("&");if(L){let x=N.split("&");for(let O of x)F(O)}else F(N);if(this.media.type&&(P=this.media.type),A.length&&(P=A.join(" and ")),P)E="media";else if(!L){this.theme=N;continue}}P&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+P.replace(/\|/g," "))}}let J;if(this.valueComponents)if(h&&(this.valueComponents=h.call(this,this.valueComponents)),J=this.resolveValue(this.valueComponents,a,[]),p&&(J=p.call(this,J,this.css.config)),c){let k,N;this.declarations=c.call(this,N?k:J,N||"")}else u&&(this.declarations={[u]:J});let ie=[];for(let k in this.declarations){let N=$=>{if(C&&($.startsWith("animation")||$.startsWith("animation-name"))){let A=$.split(":")[1].split("!important")[0].split(" ").filter(F=>F in this.css.animations&&(!this.animationNames||!this.animationNames.includes(F)));A.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...A))}ie.push($+((this.important||m)&&!$.endsWith("!important")?"!important":""))},E=k+":",P=this.declarations[k];if(typeof P=="object")for(let $ of P)N(E+$.toString());else N(E+P.toString())}if(ie.length)for(let k in W)for(let N of W[k]){let E="";this.direction&&(E+="[dir="+this.direction+"] ");let P=this.vendorPrefixSelectors[k],$=this.vendorSuffixSelectors[N],A=P.map(x=>x+E),F=x=>A.map(O=>(this.theme&&f!=="media"?f==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(o?o+" ":"")+O).reduce((O,V)=>(O.push($.reduce((T,B)=>(T.push(V+"."+ee(x)+B),T),[]).join(",")),O),[]).join(","),L=F(t)+(w?w.reduce((x,O)=>x+","+F(O),""):"")+"{"+ie.join(";")+"}";for(let x of Object.keys(this.at).sort((O,V)=>V==="supports"?-1:1))L="@"+x+(x.includes(" ")?"":" ")+this.at[x]+"{"+L+"}";this.theme&&f==="media"&&(L=`@media(prefers-color-scheme:${this.theme}){`+L+"}"),this.natives.push({text:L})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;resolveValue=(t,i,n)=>{let{functions:l}=this.css.config,a="";for(let s of t)switch(s.type){case"function":let d=l&&l[s.name];if(d?.transform){let c=d.transform.call(this,this.resolveValue(s.children,d.unit??i,n),n);a+=typeof c=="string"?c:this.resolveValue(c,d?.unit??i,n)}else a+=s.name+s.symbol+this.resolveValue(s.children,d?.unit??i,n)+X[s.symbol];break;case"variable":let p=this.css.variables[s.name];if(p){let c=(h,b)=>{if(p.themes)if(this.theme){let y=p.themes[this.theme]??p;y?.value&&h(y)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(s.name)||this.variableNames.push(s.name),b();else h(p)};switch(p.type){case"string":c(b=>{let y=[];this.parseValue(y,0,b.value,i,void 0,void 0,[...n,s.name]),a+=this.resolveValue(y,i,[...n,s.name])},()=>{a+=`var(--${s.name})`});break;case"number":c(b=>{let y=this.parseValueComponent(b.value,i);a+=y.value+(y.unit??"")},()=>{a+=i?`calc(var(--${s.name}) / 16 * 1rem)`:`var(--${s.name})`});break;case"color":let h=s.alpha?"/"+s.alpha:"";c(b=>{a+=`${b.space}(${b.value}${h})`},()=>{a+=`${p.space}(var(--${s.name})${h})`});break}}else a+=`var(--${s.name}${s.fallback?","+s.fallback:""})`;break;case"separator":a+=s.text||s.value;break;case"number":a+=s.value+s.unit;break;default:a+=s.value;break}return a};get text(){return this.natives.map(t=>t.text).join("")}parseValue=(t,i,n,l,a,s=void 0,d=[])=>{let p=s===void 0,c=!p&&(s.endsWith("$")||s.endsWith("var")),b=(m=>m==="'"||m==='"')(a),y=[","];this.definition.separators.length&&y.push(...this.definition.separators);let u="",o=()=>{if(u){let m=!1;if(!c||t.length){let f=(r,g)=>{let D=Object.prototype.hasOwnProperty.call(this.definition.resolvedVariables,r)?this.definition.resolvedVariables[r]:Object.prototype.hasOwnProperty.call(this.css.variables,r)?this.css.variables[r]:void 0;if(D){let C=D.name??r;if(!d.includes(C)){m=!0;let w={type:"variable",name:C,variable:this.css.variables[C]};g&&(w.alpha=g),t.push(w)}}};if(f(u),!m&&this.colored){let[r,g]=u.split("/");f(r,g)}}m||t.push(this.parseValueComponent(u,l)),u=""}};for(;i<n.length;i++){let m=n[i];if(m===a){if(b){let f=0;for(let r=u.length-1;u[r]==="\\";r--)f++;if(f%2){u+=m;continue}else o()}else o();return i}else if(!b&&m in X){let f=u,r={type:"function",name:f,symbol:m,children:[]};t.push(r),u="";let g=m==="("&&this.css.config.functions?.[f];!this.colored&&g?.colored&&(this.colored=!0),i=this.parseValue(r.children,++i,n,g?.unit??l,X[m],f||s||"")}else if((m==="|"||m===" ")&&a!=="}"&&(!b||s==="path"))o(),t.push({type:"separator",value:" "});else{if(!b){if(m===".")if(isNaN(+n[i+1])){if(p)break}else n[i-1]==="-"&&(u+="0");else if(y.includes(m)){o(),t.push({type:"separator",value:m,text:(m===","?"":" ")+m+(m===","?"":" ")});continue}else if(p&&(m==="#"&&(u||t.length&&t[t.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(m)))break}u+=m}}return o(),i};parseValueComponent(t,i=this.definition.unit){let n=i??this.definition.unit,l="",a;if(typeof t=="number")return n&&!l?((n==="rem"||n==="em")&&(a=t/this.css.config.rootSize),l=n||""):a=t,{value:a,unit:l,type:"number"};if(n){if(/^\d+\/\d+/.test(t)){let[d,p]=t.split("/");return{value:+d/+p*100,unit:"%",type:"number"}}let s=t.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(s)return a=+s[1],l=s[3]||"",l||((n==="rem"||n==="em")&&(a=a/this.css.config.rootSize),l=n||""),{value:a,unit:l,type:"number"}}return{value:t,type:"string"}}};var xe={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ce=xe;var Se={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},fe=Se;var Ne={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},ue=Ne;var De={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},de=De;function H(e){e.startsWith("#")&&(e=e.slice(1));let t,i,n,l;return e.length===3||e.length===4?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),n=parseInt(e[2]+e[2],16),l=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),n=parseInt(e.slice(4,6),16),l=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,n,l]}function he(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function M(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let n in e)if(n&&+n>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let n=0,l="0"in e?H(e[0]):[0,0,0],a,s,d=[],p=()=>{let c=a-n,h=s.map((b,y)=>(b-l[y])/c);for(let b of d){let y=b-n,u=l.map((o,m)=>Math.round(o+h[m]*y));e[b]="#"+he.call(this,...u)}};for(let c=1;c<100;c++)c in e?(d.length?(a=c,s=H(e[c]),p(),d.length=0,l=s):l=H(e[c]),n=c):d.push(c);d.length&&(a=100,s="100"in e?H(e[100]):[255,255,255],p())}return t||(e[""]=e[i?"500":"50"]),e}var we={font:{family:{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},weight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},sizing:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flex:{direction:{col:"column","col-reverse":"column-reverse"}},box:{sizing:{content:"content-box",border:"border-box"}},position:{abs:"absolute",rel:"relative"},transform:{box:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},animation:{direction:{alt:"alternate","alt-reverse":"alternate-reverse"}},background:{clip:{content:"content-box",border:"border-box",padding:"padding-box"},origin:{content:"content-box",border:"border-box",padding:"padding-box"}},order:{first:-999999,last:999999},shape:{outside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},clip:{path:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"}},black:"#000000",white:"#ffffff",current:"currentColor",slate:M({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:M({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:M({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:M({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:M({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:M({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:M({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:M({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:M({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:M({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:M({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:M({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:M({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:M({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:M({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:M({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:M({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:M({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:M({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:M({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},me=we;var Q=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],q=function(e){return e.length<2||e.find(i=>i.type==="string"&&Q.includes(i.value)||i.type==="variable"&&Q.includes(i.variable.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},ke={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=p=>{let c=p.indexOf(":");c!==-1&&(t[p.slice(0,c)]=p.slice(c+1))},n=p=>{let c=h=>{let b=h.slice(ee(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let y of b)i(y)};for(let h of p.natives)c(h.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let h of p.animationNames)this.animationNames.includes(h)||this.animationNames.push(h)}if(p.variableNames){this.variableNames||(this.variableNames=[]);for(let h of p.variableNames)this.variableNames.includes(h)||this.variableNames.push(h)}},l=[],a="",s=()=>{a&&(l.push(a.replace(/ /g,"|")),a="")},d=1;(function p(c){for(;d<e.length;d++){let h=e[d];if(!c){if(h===";"){s();continue}if(h==="}")break}if(a+=h,c===h){if(c==="'"||c==='"'){let b=0;for(let y=a.length-2;a[y]==="\\";y--)b++;if(b%2)continue}break}else h in X&&c!=="'"&&c!=='"'&&(d++,p(X[h]))}})(void 0),s();for(let p of l){let c=this.css.create(p);if(c.length)for(let h of c)n(h);else i(p)}return t}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0,variables:["foreground"]},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["sizing"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["sizing"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["sizing"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["sizing"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["sizing"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"min-height":i}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"max-height":i}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["sizing",["slice","clone"]],layer:-3,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0,variables:["foreground"]},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7,variables:["foreground"]},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["sizing"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["sizing"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},"overflow-y":{layer:-3,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-7,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},"user-select":{layer:-3,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,variables:["foreground"],declare(e,t){return{"-webkit-text-fill-color":e+t}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(e,t){return{"-webkit-text-stroke-width":e+t}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,variables:["foreground"],declare(e,t){return{"-webkit-text-stroke-color":e+t}}},"text-stroke":{unit:"rem",layer:-3,declare(e,t){return{"-webkit-text-stroke":e+t}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",Q],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",Q],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",Q],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",Q],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",Q],layer:-5,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",Q],layer:-5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},"border-style":{match:["b(?:order)?(?:-style)?",Q],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:q},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:q,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:q,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:q},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(e){return{"background-image":"linear-"+e}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0,variables:["foreground"]},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0,variables:["foreground"]},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-columns":{match:/^grid-cols:/,declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-rows":{match:/^grid-rows:/,declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["sizing"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["sizing"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["sizing"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["sizing"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",Q],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:q},"accent-color":{match:/^accent:/,layer:-3,colored:!0,variables:["foreground"]},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["foreground"]},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},pe=ke;var Ve={$:{colored:!0,transform(e){let t,i,n=e.indexOf(",");return n!==-1?(t=e.slice(0,n),i=e.slice(n+1)):t=e,[{type:"variable",name:t,fallback:i}]}},calc:{transform(e,t){let i=[],n=this.css.config.functions,l=0,a=(s,d,p)=>{let c=!1,h="",b=(y,u="",o="")=>{h&&(!c&&!p?s.push(this.parseValueComponent(h,n.calc.unit)):s.push({type:"string",value:h}),h=""),y&&(u&&e[l-1]===" "&&(u=""),o&&e[l+1]===" "&&(o=""),d?s.push({type:"separator",value:y,text:y}):s.push({type:"separator",value:y,text:u+y+o})),c=!1};for(;l<e.length;l++){let y=e[l];if(y==="("){let u=/^([+-])/.exec(h);u&&s.push({type:"string",value:u[1]});let o=u?h.slice(1):h,m={type:"function",name:o,symbol:y,children:[]};s.push(m),h="",l++;let f=m.name==="$"||m.name==="var";a(m.children,o!==""&&o!=="calc"&&(f||Object.prototype.hasOwnProperty.call(n,o)),c||f)}else if(y===")"){b("");break}else if(y===",")b(y,""," ");else if(y===" ")b(y);else{let u=e[l-1];switch(y){case"+":!h&&u!==")"?h+=y:b(y," "," ");break;case"-":!h&&u!==")"?h+=y:b(y," "," ");break;case"*":b(y," "," ");break;case"/":b(y," "," "),c=!0;break;default:h+=y;break}}}b("")};return a(i,!1,!1),"calc("+this.resolveValue(i,n.calc.unit??this.definition.unit,t)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},ge=Ve;var G={mediaQueries:ce,selectors:fe,semantics:ue,rules:pe,functions:ge,animations:de,variables:me,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var Y=class e{constructor(t=G){this.customConfig=t;t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(G,t),this.resolve(),this.constructor===e&&globalThis.masterCSSs.push(this)}static config=G;rules=[];ruleBy={};classesUsage={};config;semanticRuleOptions=[];ruleOptions=[];resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.variablesNativeRules=void 0,this.hasKeyframesRule=!1;let t={current:void 0,currentColor:void 0,transparent:void 0},{styles:i,selectors:n,variables:l,semantics:a,mediaQueries:s,rules:d,animations:p}=this.config;function c(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(o,m,f="",r={}){let g=R=>R?(f?f+"-":"")+R:f,D=Object.entries(o),C=[],w=[];for(let R of D){let v=R[1];(typeof v=="object"&&!Array.isArray(v)?C:w).push(R)}for(let[R,v]of C)h(v,m,g(R),r);if(m&&f)w.length&&(r[f]=w.reduce((R,[v,S])=>(R[v]=S,R),{}));else for(let[R,v]of w)r[g(R)]=v;return r}if(n)for(let[o,m]of Object.entries(h(n,!1))){let f=new RegExp(c(o)+"(?![a-z-])");for(let r of Array.isArray(m)?m:[m]){let g=r.match(/^::-[a-z]+-/m)?.[0]??"",D=this.selectors[g];D||(D=this.selectors[g]=[]);let C=D.find(([w])=>w===f);C||(C=[f,[]],D.push(C)),C[1].push(r)}}if(l){let o={};for(let m in l){let f=(r,g,D=void 0)=>{if(!r)return;let C=(R,v,S=void 0,j=void 0)=>{if(v===void 0)return;if(v.type==="color"){if(j){let W=v.value.indexOf("/");v={...v,value:W===-1?v.value+" / "+(j.startsWith("0.")?j.slice(1):j):v.value.slice(0,W+2)+(+v.value.slice(W+2)*+j).toString().slice(1)}}t[R]=void 0}let z=S??D;if(z!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,R)){let W=this.variables[R];z?(W.themes||(W.themes={}),W.themes[z]=v):(W.value=v.value,W.space=v.space)}else z?this.variables[R]={type:v.type,space:v.space,themes:{[z]:v}}:this.variables[R]=v;else this.variables[R]=v},w=typeof r;if(w==="object")if(Array.isArray(r))C(g,{type:"string",value:r.join(",")});else{let R=Object.keys(r);for(let v of R)v===""||v.startsWith("@")?f(r[v],g,v||R.some(S=>S.startsWith("@"))?v.slice(1):void 0):f(r[v],g+"-"+v)}else if(w==="number")C(g,{type:"number",value:r}),C("-"+g,{type:"number",value:r*-1});else if(w==="string"){let R=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(r);if(R)Object.prototype.hasOwnProperty.call(o,g)||(o[g]={}),o[g][D]=()=>{delete o[g][D];let[v,S]=R[1].split("@");if(v){if(Object.prototype.hasOwnProperty.call(o,v))for(let z of Object.keys(o[v]))o[v][z]?.();let j=this.variables[v];if(j)if(S===void 0&&j.themes){C(g,{type:j.type,value:j.value,space:j.space},"",R[2]);for(let z in j.themes)C(g,j.themes[z],z,R[2])}else{let z=S!==void 0?j.themes?.[S]:j;z&&C(g,{type:z.type,value:z.value,space:z.space},void 0,R[2])}}};else{let v=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(r);if(v){let[S,j,z,W]=H(v[1]);C(g,{type:"color",value:`${S} ${j} ${z}${W===1?"":" / "+W}`,space:"rgb"})}else{let S=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(r);if(S)C(g,{type:"color",value:S[1]+" "+S[2]+" "+S[3]+(S[4]?" / "+(S[4].startsWith("0.")?S[4].slice(1):S[4]):""),space:"rgb"});else{let j=/^hsl\((.*?)\)$/.exec(r);j?C(g,{type:"color",value:j[1],space:"hsl"}):C(g,{type:"string",value:r})}}}}};f(l[m],m)}for(let m of Object.keys(o))for(let f of Object.keys(o[m]))o[m][f]?.()}if(s&&(this.mediaQueries=h(s,!1)),p)for(let o in p){let m=this.animations[o]={},f=p[o];for(let r in f){let g=m[r]={},D=f[r];for(let C in D)g[C]=D[C]}}let b=i?h(i,!1):{},y=Object.keys(b),u=o=>{if(Object.prototype.hasOwnProperty.call(this.styles,o))return;let m=this.styles[o]=[],f=b[o];if(!f)return;let r=f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let g of r){let D=C=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,C)){let w=this.stylesBy[C];w.includes(o)||w.push(o)}else this.stylesBy[C]=[o];m.includes(C)||m.push(C)};if(y.includes(g)){u(g);for(let C of this.styles[g])D(C)}else D(g)}};for(let o of y)u(o);if(a&&Object.entries(a).sort((o,m)=>o[0].localeCompare(m[0])).forEach(([o,m],f)=>{this.semanticRuleOptions.push({id:"."+o,resolvedMatch:new RegExp("^"+c(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:f,declarations:m,layer:-8})}),d){let o=Object.entries(d).sort((r,g)=>r[1].layer!==g[1].layer?(g[1].layer||0)-(r[1].layer||0):g[0].localeCompare(r[0])),m=o.length,f=Object.keys(t);o.forEach(([r,g],D)=>{this.ruleOptions.push(g),g.order=this.semanticRuleOptions.length+m-1-D;let C=g.match;g.id=r,g.resolvedVariables={};let w=R=>{Object.assign(g.resolvedVariables,Object.keys(this.variables).filter(v=>v.startsWith(R+"-")||v.startsWith("-"+R+"-")).reduce((v,S)=>(v[S.slice(R.length+(R.startsWith("-")?0:1))]={...this.variables[S],name:S},v),{}))};if(g.variables)for(let R of g.variables)w(R);if(w(r),C)if(Array.isArray(C)){let[R,v=[]]=C,S=[];v.length&&S.push(`(?:${v.join("|")})(?![a-zA-Z0-9-])`),Object.keys(g.resolvedVariables).length&&S.push(`(?:${Object.keys(g.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),g.colored&&S.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${f.join("|")})(?![a-zA-Z0-9-])`),g.numeric&&S.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),S.length&&(g.resolvedMatch=new RegExp(`^${R}:(?:${S.join("|")})[^|]*?(?:@|$)`))}else g.resolvedMatch=C})}}match(t){for(let i of this.ruleOptions)if(i.resolvedMatch&&i.resolvedMatch.test(t)||(i.layer===-2||i.layer===-6||i.layer===-3||i.layer===-7)&&t.startsWith(i.id+":"))return i;for(let i of this.semanticRuleOptions)if(i.resolvedMatch.test(t))return i}create(t){let i=n=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,n))return this.ruleBy[n];let l=this.match(n);if(l)return new te(n,l,this)};return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(n=>i(n)):[i(t)]).filter(n=>n&&n.text)}refresh(t=this.customConfig){t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(G,t),this.resolve(),this.rules.length=0,this.ruleBy={};for(let i in this.classesUsage)this.add(i);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules=void 0;for(let t in this.animations){let i=this.animations[t];i.usage=void 0,i.native=void 0}for(let t in this.variables){let i=this.variables[t];i.usage=void 0}return this}destroy(){return this.reset(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1),this}add(t){let i=this.create(t);return i.length?(this.insert(i),!0):!1}delete(t){let i=this.style?.sheet,n=l=>{let a=this.ruleBy[l];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,l)&&this.stylesBy[l].some(s=>Object.prototype.hasOwnProperty.call(this.classesUsage,s)))){if(i&&a.natives.length){let s=a.natives[0];for(let d=0;d<i.cssRules.length;d++)if(i.cssRules[d]===s.cssRule){for(let c=0;c<a.natives.length;c++)i.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[l],a.variableNames)for(let s of a.variableNames){let d=this.variables[s];if(!--d.usage){let p=c=>{let h=this.variablesNativeRules[c];if(h.cssRule.style.removeProperty("--"+s),!h.cssRule.style.length){let b=this.rules[0],y=b.natives.indexOf(h);i?.deleteRule(y),b.natives.splice(y,1),delete this.variablesNativeRules[c],b.natives.length||(this.rules.splice(0,1),this.variablesNativeRules=void 0)}};if(d.value&&p(""),d.themes)for(let c in d.themes)p(c)}}if(a.animationNames){let s=this.variablesNativeRules?1:0,d=this.rules[s];for(let p of a.animationNames){let c=this.animations[p];if(!--c.usage){let h=d.natives.indexOf(c.native);this.style.sheet.deleteRule((this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+h),d.natives.splice(h,1),c.native=void 0}}d.natives.length||(this.rules.splice(s,1),this.hasKeyframesRule=!1)}a.definition.delete?.call(a,l)}};if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let l of this.styles[t])Object.prototype.hasOwnProperty.call(this.classesUsage,l)||n(l);delete this.ruleBy[t]}else n(t)}insert(t){for(let i of t){if(this.ruleBy[i.className])continue;let n,l=this.rules.length-1,{media:a,order:s,priority:d,hasWhere:p,className:c}=i,h=(u,o,m)=>{let f=u;for(;f<=l;f++){let r=this.rules[f];if(o?.(r))return m?-1:f-1;if(m?.(r))return f}return m?-1:f-1},b,y;if(a){let u=this.rules.findIndex(o=>o.media);if(u===-1)n=l+1;else{let{"max-width":o,"min-width":m}=a.features;if(o||m){let f=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(f===-1)n=l+1;else if(o&&m){if(d===-1?(b=h(f,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),y=h(f,r=>r.priority!==-1)):(b=h(f,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),y=l),b!==-1){let r=o.value-m.value,g=y,D=b;for(b=void 0;g>=D;g--){let{"max-width":C,"min-width":w}=this.rules[g].media.features,R=C.value-w.value;if(R<r)y=g-1;else if(R===r)b=g;else break}}if(b!==-1){let r=o.value-m.value;for(let g=y;g>=b;g--){let{"max-width":D,"min-width":C}=this.rules[g].media.features,w=D.value-C.value;if(w<r)y=g-1;else if(w>r){b=g+1;break}}}}else if(m){if(d===-1?(b=h(f,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),y=h(f,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(b=h(f,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),y=h(f,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),b!==-1)for(let r=y;r>=b;r--){let g=this.rules[r].media.features["min-width"].value;if(g>m.value)y=r-1;else if(g<m.value){b=r+1;break}}}else if(d===-1?(b=h(f,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),y=h(f,r=>r.media.features["min-width"]||r.priority!==-1)):(b=h(f,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),y=h(f,r=>r.media.features["min-width"]&&r.priority!==-1)),b!==-1)for(let r=y;r>=b;r--){let g=this.rules[r].media.features["max-width"].value;if(g<o.value)y=r-1;else if(g>o.value){b=r+1;break}}}else d===-1?(b=u,y=h(u,f=>f.media?.features["max-width"]||f.media?.features["min-width"]||f.priority!==-1)):(b=h(u,f=>f.media?.features["max-width"]||f.media?.features["min-width"],f=>f.priority!==-1),y=h(u,f=>f.media?.features["max-width"]||f.media?.features["min-width"]))}}else{let u=this.variablesNativeRules?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;d===-1?(b=u,y=h(u,o=>o.media||o.priority!==-1)):(b=h(u,o=>o.media,o=>o.priority!==-1),y=h(u,o=>o.media))}if(n===void 0)if(b===-1)n=y+1;else{if(d===-1)for(let u=b;u<=y;u++){let o=this.rules[u];if(!(!p&&o.hasWhere)&&(p&&!o.hasWhere||o.order>=s)){n=u;break}}else for(let u=b;u<=y;u++){let o=this.rules[u];if(!(!p&&o.hasWhere)){if(p&&!o.hasWhere){n=u;break}if(o.priority<d){n=u;break}else if(o.priority===d){if(o.order>=s){n=u;break}}else n=u+1}}n===void 0&&(n=y+1)}if(this.rules.splice(n,0,i),this.ruleBy[c]=i,this.style){let u=this.style.sheet,o=0,m=f=>{let r=this.rules[f];if(r){if(!r.natives.length)return m(f-1);let g=r.natives[r.natives.length-1],D=g.cssRule.parentRule??g.cssRule;for(let C=0;C<u.cssRules.length;C++)if(u.cssRules[C]===D){o=C+1;break}}};m(n-1);for(let f=0;f<i.natives.length;)try{let r=i.natives[f];u.insertRule(r.text,o),r.cssRule=u.cssRules[o++],f++}catch(r){console.error(r),i.natives.splice(f,1)}}this.handleRuleWithVariableNames(i),this.handleRuleWithAnimationNames(i),i.definition.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){let i=a=>{let s=K({},a),d=p=>{for(let c in p){let h=p[c];typeof h=="object"&&!Array.isArray(h)?d(h):c&&!c.startsWith("@")&&(p[c]={"":h})}};return s.styles?d(s.styles):s.styles={},s.mediaQueries?d(s.mediaQueries):s.mediaQueries={},s.variables?d(s.variables):s.variables={},s},n=[];for(let a of t)(function s(d){if(d.extends?.length)for(let p of d.extends)s("config"in p?p.config:p);n.push(i(d))})(a);let l=n[0];for(let a=1;a<n.length;a++){let s=n[a];l=K(l,s),Object.prototype.hasOwnProperty.call(s,"animations")&&Object.assign(l.animations,s.animations)}return l}handleRuleWithAnimationNames(t,i=!1){if(t.animationNames){let n=this.style?.sheet;for(let l of t.animationNames){let a=this.animations[l];if(a.usage)a.usage++;else{let s={text:`@keyframes ${l}{`+Object.entries(a).filter(([c])=>c!=="usage"&&c!=="native").map(([c,h])=>`${c}{${Object.entries(h).map(([b,y])=>b+":"+y).join(";")}}`).join("")+"}"},d=this.variablesNativeRules?1:0,p;if(this.hasKeyframesRule?(p=this.rules[d]).natives.push(s):(this.rules.splice(d,0,p={natives:[s],get text(){return this.natives.map(c=>c.text).join("")}}),this.hasKeyframesRule=!0),n){let c;if(i)for(let h=0;h<n.cssRules.length;h++){let b=n.cssRules[h];if(b.constructor.name==="CSSKeyframesRule"&&b.name===l){c=b;break}}if(c)s.cssRule=c;else{let h=(this.variablesNativeRules?Object.keys(this.variablesNativeRules).length:0)+p.natives.length-1;n.insertRule(s.text,h),s.cssRule=n.cssRules[h]}}a.usage=1,a.native=s}}}}handleRuleWithVariableNames(t,i=!1){if(t.variableNames){let n=this.style?.sheet;for(let l of t.variableNames){let a=this.variables[l];if(a.usage)a.usage++;else{let s=(d,p)=>{let c=this.variablesNativeRules?.[d];if(!c){let b,y,u;if(d)switch(this.config.themeDriver){case"media":y=`@media(prefers-color-scheme:${d})`,u=":root";break;case"host":u=`:host(.${d})`;break;default:u=`.${d}`;break}else u=":root";if(n){let o=this.variablesNativeRules?this.rules[0].natives.length:0;n.insertRule((y?y+"{":"")+u+"{}"+(y?y+"}":""),o),b=y?n.cssRules[o].cssRules[0]:n.cssRules[o]}else{let o=new Map,m=Object.defineProperties({},{getPropertyValue:{value:f=>o.get(f)},removeProperty:{value:f=>{o.delete(f);for(let r=0;r<m.length;r++)m[r]===f&&delete m[r]}},setProperty:{value:(f,r)=>{m[m.length]=f,o.set(f,r)}},length:{get(){return Object.keys(m).length}}});b={selectorText:u,style:m,styleMap:o},y&&(b.parentRule={conditionText:y})}c=this.pushVariableNativeRule(d,b)}let h="--"+l;(!i||!c.cssRule.style.getPropertyValue(h))&&c.cssRule.style.setProperty(h,p.value.toString())};if(a.value&&s("",a),a.themes)for(let d in a.themes)s(d,a.themes[d]);a.usage=1}}}}pushVariableNativeRule(t,i){this.variablesNativeRules||(this.variablesNativeRules={},this.rules.splice(0,0,{natives:[],get text(){return this.natives.map(s=>s.text).join("")}}));let n="",l="}";i.parentRule&&(n+=i.parentRule.conditionText.replace(/ /g,"")+"{",l+="}"),n+=i.selectorText+"{";let a={cssRule:i,get text(){let s=[];for(let d=0;d<i.style.length;d++){let p=i.style[d];s.push(p+":"+i.style.getPropertyValue(p))}return n+s.join(";")+l}};return this.rules[0].natives.push(this.variablesNativeRules[t]=a),a}};globalThis.MasterCSS=Y,globalThis.masterCSSs||(globalThis.masterCSSs=[]);var ye=[",",".","#","[","!","*",">","+","~",":","@"];var Z=class extends Y{constructor(i=document,n=G){super(n);this.root=i;this.customConfig=n;i||(this.root=document),this.root===document?(globalThis.runtimeCSS=this,this.container=document.head,this.host=document.documentElement):(this.container=this.root,this.host=this.root.host,this.styleSheets=this.root.styleSheets),this.styleSheets=this.root.styleSheets,globalThis.runtimeCSSs.push(this)}host;observing=!1;container;styleSheets;observer;observe(i={subtree:!0,childList:!0}){if(this.observing)return;if(globalThis.runtimeCSSs.find(l=>l!==this&&l.root===this.root)){console.warn("Cannot observe the same root element repeatedly.");return}for(let l of this.styleSheets){let{ownerNode:a}=l;if(a&&a.id==="master"){this.style=a;break}}if(this.style){let l=0;for(;l<this.style.sheet.cssRules.length;l++){let a=this.style.sheet.cssRules[l];switch(a.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let d=/\(prefers-color-scheme: (.*?)\)/.exec(a.conditionText);if(d){let p=a.cssRules[0];if(p?.constructor.name==="CSSStyleRule"&&p.selectorText===":root"){this.pushVariableNativeRule(d[1],p);continue}}}break;case"CSSStyleRule":let s=a.selectorText;if(a.style.length){let d=!0;for(let p=0;p<a.style.length;p++)if(!a.style[p]?.startsWith("--")){d=!1;break}if(d){if(s===":root"){this.pushVariableNativeRule("",a);continue}else if(this.config.themeDriver==="host"){let p=/:host(.*?)/.exec(s);if(p){this.pushVariableNativeRule(p[1],a);continue}}else if(!s.startsWith(".\\$")){this.pushVariableNativeRule(s.slice(1),a);continue}}}break}break}for(;l<this.style.sheet.cssRules.length;l++){let a=d=>{if(d.selectorText){let c=d.selectorText.split(", ")[0].split(" ");for(let h=0;h<c.length;h++){let b=c[h];if(b[0]==="."){let y=b.slice(1),u="";for(let o=0;o<y.length;o++){let m=y[o],f=y[o+1];if(m==="\\"){if(o++,f!=="\\"){u+=f;continue}}else if(ye.includes(m))break;u+=m}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,u)&&!Object.prototype.hasOwnProperty.call(this.styles,u)){let o=this.create(u)[0];if(o)return o}}}}else if(d.cssRules)for(let p=0;p<d.cssRules.length;p++){let c=a(d.cssRules[p]);if(c)return c}},s=a(this.style.sheet.cssRules[l]);if(s){this.rules.push(s),this.ruleBy[s.className]=s;for(let d=0;d<s.natives.length;d++)s.natives[d].cssRule=this.style.sheet.cssRules[l+d];l+=s.natives.length-1,this.handleRuleWithVariableNames(s,!0),this.handleRuleWithAnimationNames(s,!0),s.definition.insert?.call(s)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let n=l=>{l.forEach(a=>{Object.prototype.hasOwnProperty.call(this.classesUsage,a)?this.classesUsage[a]++:(this.classesUsage[a]=1,this.add(a))})};return n(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(l=>n(l.classList)),this.observer=new MutationObserver(l=>{let a={},s=[],d=[],p=[],c=(u,o)=>{o?u.classList.forEach(b):u.classList.forEach(h);let m=u.children;for(let f=0;f<m.length;f++){let r=m[f];r.classList&&(d.push(r),c(r,o))}},h=u=>{Object.prototype.hasOwnProperty.call(a,u)?a[u]++:a[u]=1},b=u=>{Object.prototype.hasOwnProperty.call(a,u)?a[u]--:Object.prototype.hasOwnProperty.call(this.classesUsage,u)&&(a[u]=-1)},y=(u,o)=>{for(let m=0;m<u.length;m++){let f=u[m];f.classList&&!d.includes(f)&&!p.includes(f)&&(f.isConnected!==o?(d.push(f),c(f,o)):p.push(f))}};for(let u=0;u<l.length;u++){let o=l[u],{addedNodes:m,removedNodes:f,type:r,target:g}=o;if(r==="attributes"){if(s.find(D=>D.target===g))continue;s.push(o)}else y(m,!1),(!g.isConnected||!d.includes(g))&&y(f,!0)}if(!(!s.length&&!Object.keys(a).length)){for(let{oldValue:u,target:o}of s){let m=d.includes(o),f=o.classList,r=u?u.split(" "):[];if(m){if(o.isConnected)continue;for(let g of r)f.contains(g)||b(g)}else if(o.isConnected){f.forEach(g=>{r.includes(g)||h(g)});for(let g of r)f.contains(g)||b(g)}}for(let u in a){let o=a[u],m=(this.classesUsage[u]||0)+o;m===0?(delete this.classesUsage[u],this.delete(u)):(Object.prototype.hasOwnProperty.call(this.classesUsage,u)||this.add(u),this.classesUsage[u]=m)}}}),this.observer.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}refresh(i=this.customConfig){let n=document.createElement("style");return n.id="master",this.style.replaceWith(n),this.style=n,super.refresh(i),this}reset(){super.reset();let i=this.style?.sheet;if(i?.cssRules)for(let n=i.cssRules.length-1;n>=0;n--)i.deleteRule(n);return this.style?.remove(),this.style=null,this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),globalThis.runtimeCSSs.splice(globalThis.runtimeCSSs.indexOf(this),1),this}};globalThis.RuntimeCSS=Z,globalThis.runtimeCSSs||(globalThis.runtimeCSSs=[]);var Oe=`/** @type {import('@master/css').Config} */
1
+ var Y={"(":")","'":"'",'"':'"',"{":"}"};function J(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let a=String(e),i=a.length,r=-1,c="",t,d=a.charCodeAt(0);if(i==1&&d==45)return"\\"+a;for(;++r<i;){if(t=a.charCodeAt(r),t==0){c+="\uFFFD";continue}if(t>=1&&t<=31||t==127||r==0&&t>=48&&t<=57||r==1&&t>=48&&t<=57&&d==45){c+="\\"+t.toString(16)+" ";continue}if(t>=128||t==45||t==95||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){c+=a.charAt(r);continue}c+="\\"+a.charAt(r)}return c}var ce=(u=>(u[u.Semantic=-8]="Semantic",u[u.CoreNativeShorthand=-7]="CoreNativeShorthand",u[u.NativeShorthand=-6]="NativeShorthand",u[u.CoreShorthand=-5]="CoreShorthand",u[u.Shorthand=-4]="Shorthand",u[u.CoreNative=-3]="CoreNative",u[u.Native=-2]="Native",u[u.Core=-1]="Core",u[u.Normal=0]="Normal",u))(ce||{});var we=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ee=class{constructor(a,i,r){this.className=a;this.css=r;Object.assign(this,i);let{id:c,definition:t}=i,{analyze:d,transformValue:l,declare:m,transformValueComponents:u,create:p,layer:y,unit:g,colored:o}=t;this.layer=y,this.colored=!!o,t.unit||(t.unit=""),t.separators||(t.separators=[","]);let{scope:f,important:h,themeDriver:s}=r.config,{selectors:n,mediaQueries:b,stylesBy:x,animations:v}=r,R=x[a];p&&p.call(this,a),this.declarations=t.declarations;let C,N;if(y===-8)C=a.slice(c.length-1);else{let V;if(d)[V,N]=d.call(this,a);else{let w=a.indexOf(":");this.prefix=a.slice(0,w+1),V=a.slice(w+1)}this.valueComponents=[],C=V.slice(this.parseValue(this.valueComponents,0,V,g,""))}C[0]==="!"&&(this.important=!0,C=C.slice(1)),this.stateToken=C;let D=(V,w)=>{let E=(S,O,k,j)=>{for(let[P,B]of O)if(P.test(S)){for(let W of B)E(S.replace(P,W),O,k,!0);return}j&&k.push(S)},z=S=>{let O=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((B,W)=>W%3?B:B.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),k=[],j="",P=0;for(let B=0;B<O.length;B++){let W=O[B];if(W==="\\"){j+=W+O[++B];continue}!P&&W===","?(k.push(j),j=""):(j+=W,P&&W===")"?P--:W==="("&&P++)}return j&&k.push(j),k},A=[];""in n?E(V,n[""],A,!0):A.push(V);let $={};for(let[S,O]of Object.entries(n)){if(!S)continue;let k=[];for(let j of A)E(j,O,k,!1);k.length&&($[S]=k)}let I=(S,O)=>{let k=O.reduce((j,P)=>(j.push(...z(P)),j),[]);S in w?w[S].push(...k):w[S]=k},_=Object.keys($);if(_.length)for(let S of _)I(S,$[S]);else I("",A)};N?(this.vendorPrefixSelectors={},D(N,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let M=C.split("@"),oe=M[0];if(oe){this.vendorSuffixSelectors={},D(oe,this.vendorSuffixSelectors);for(let V of Object.values(this.vendorSuffixSelectors))for(let w of V){this.hasWhere!==!1&&(this.hasWhere=w.includes(":where("));let E=[":disabled",":active",":focus",":hover"];for(let z=0;z<E.length;z++)if(w.includes(E[z])){(this.priority===-1||this.priority>z)&&(this.priority=z);break}}}else this.vendorSuffixSelectors={"":[""]};let G={},De=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),le=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(De)G[""]=le?[""]:Object.keys(this.vendorSuffixSelectors);else if(le)for(let V in this.vendorPrefixSelectors)G[V]=[""];else for(let V in this.vendorPrefixSelectors){let w=G[V]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,V))w.push(V);else for(let E in this.vendorSuffixSelectors)w.push(E)}for(let V=1;V<M.length;V++){let w=M[V];if(w)if(w==="rtl"||w==="ltr")this.direction=w;else{let E="",z,A=we.exec(w);if(A)E=A[1],z=w.slice(E.length);else{this.media={token:w,features:{}};let $=[],I=S=>{if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")$.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")$.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let O=b[S];if(O&&typeof O=="string")$.push(O);else{let k="",j="",P=0;S.startsWith("<=")?(j="<=",k="max-width"):S.startsWith(">=")||O?(j=">=",k="min-width"):S.startsWith(">")?(j=">",k="min-width",P=.02):S.startsWith("<")&&(j="<",k="max-width",P=-.02);let B=j?S.replace(j,""):S,W=b[B];switch(k){case"max-width":case"min-width":let U={};typeof W=="number"?U={type:"number",value:W+P,unit:"px"}:(U=this.parseValueComponent(B,"px"),U.type==="number"&&U.unit==="px"&&(U.value+=P)),this.media.features[k]=U,U.type==="number"?$.push("("+k+":"+(U.value+U.unit)+")"):$.push("("+k+":"+U.value+")");break}}}},_=w.includes("&");if(_){let S=w.split("&");for(let O of S)I(O)}else I(w);if(this.media.type&&(z=this.media.type),$.length&&(z=$.join(" and ")),z)E="media";else if(!_){this.theme=w;continue}}z&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+z.replace(/\|/g," "))}}let Z;this.valueComponents&&(u&&(this.valueComponents=u.call(this,this.valueComponents)),Z=this.resolveValue(this.valueComponents,g,[],!1),l&&(Z=l.call(this,Z)),m?this.declarations=m.call(this,Z):c&&(this.declarations={[c]:Z}));let ne=[];for(let V in this.declarations){let w=A=>{if(v&&(A.startsWith("animation")||A.startsWith("animation-name"))){let $=A.split(":")[1].split("!important")[0].split(" ").filter(I=>I in this.css.animations&&(!this.animationNames||!this.animationNames.includes(I)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=$)}ne.push(A+((this.important||h)&&!A.endsWith("!important")?"!important":""))},E=V+":",z=this.declarations[V];if(Array.isArray(z))for(let A of z)w(E+A.toString());else w(E+z.toString())}if(ne.length)for(let V in G)for(let w of G[V]){let E="";this.direction&&(E+="[dir="+this.direction+"] ");let z=this.vendorPrefixSelectors[V],A=this.vendorSuffixSelectors[w],$=z.map(S=>S+E),I=S=>$.map(O=>(this.theme&&s!=="media"?s==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(f?f+" ":"")+O).reduce((O,k)=>(O.push(A.reduce((j,P)=>(j.push(k+"."+J(S)+P),j),[]).join(",")),O),[]).join(","),_=I(a)+(R?R.reduce((S,O)=>S+","+I(O),""):"")+"{"+ne.join(";")+"}";for(let S of Object.keys(this.at).sort((O,k)=>k==="supports"?-1:1))_="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+_+"}";this.theme&&s==="media"&&(_=`@media(prefers-color-scheme:${this.theme}){`+_+"}"),this.natives.push({text:_})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;animationNames;variableNames;resolveValue=(a,i,r,c)=>{let{functions:t}=this.css.config,d="";for(let l of a)switch(l.type){case"function":let m=t&&t[l.name];if(m?.transform&&!l.bypassTransform){let p=m.transform.call(this,this.resolveValue(l.children,m.unit??i,r,c||l.name==="calc"),r);d+=typeof p=="string"?p:this.resolveValue(p,m?.unit??i,r,c)}else d+=l.name+l.symbol+this.resolveValue(l.children,m?.unit??i,r,c)+Y[l.symbol];break;case"variable":let u=this.css.variables[l.name];if(u){let p=(y,g)=>{if(u.themes)if(this.theme){let o=u.themes[this.theme]??u;o?.value&&y(o)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),g();else y(u)};switch(u.type){case"string":p(g=>{let o=[];this.parseValue(o,0,g.value,i,"",void 0,c,[...r,l.name]),d+=this.resolveValue(o,i,[...r,l.name],c)},()=>{d+=`var(--${l.name})`});break;case"number":p(g=>{if(c)d+=g.value;else{let o=this.parseValueComponent(g.value,i);d+=o.value+(o.unit??"")}},()=>{d+=i?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let y=l.alpha?"/"+l.alpha:"";p(g=>{d+=`${g.space}(${g.value}${y})`},()=>{d+=`${u.space}(var(--${l.name})${y})`});break}}else d+=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":d+=l.text||l.value;break;case"number":d+=l.value+(l.unit||"");break;default:d+=l.value;break}return d};get text(){return this.natives.map(a=>a.text).join("")}parseValue=(a,i,r,c,t,d,l=!1,m=[])=>{let u=d===void 0,p=!u&&(d.endsWith("$")||d.endsWith("var")),g=(s=>s==="'"||s==='"')(t),o=[","];this.definition.separators?.length&&o.push(...this.definition.separators);let f="",h=()=>{if(f){let s=!1;if(!p||a.length){let n=(b,x)=>{let v=Object.prototype.hasOwnProperty.call(this.variables,b)?this.variables[b]:Object.prototype.hasOwnProperty.call(this.css.variables,b)?this.css.variables[b]:void 0;if(v){let R=v.name??b;if(!m.includes(R)){s=!0;let C={type:"variable",name:R,variable:this.css.variables[R]};x&&(C.alpha=x),a.push(C)}}};if(n(f),!s&&this.colored){let[b,x]=f.split("/");n(b,x)}}s||(l?a.push({type:"string",value:f}):a.push(this.parseValueComponent(f,c))),f=""}};for(;i<r.length;i++){let s=r[i];if(s===t){if(g){let n=0;for(let b=f.length-1;f[b]==="\\";b--)n++;if(n%2){f+=s;continue}else h()}else h();return i}else if(!g&&s in Y){let n=f,b={type:"function",name:n,symbol:s,children:[]};a.push(b),f="";let x=s==="("?this.css.config.functions?.[n]:void 0;!this.colored&&x?.colored&&(this.colored=!0),i=this.parseValue(b.children,++i,r,x?.unit??c,Y[s],n||d||"",l||n==="calc")}else if((s==="|"||s===" ")&&t!=="}"&&(!g||d==="path"))h(),a.push({type:"separator",value:" "});else{if(!g){if(s===".")if(isNaN(+r[i+1])){if(u)break}else r[i-1]==="-"&&(f+="0");else if(o.includes(s)){h(),a.push({type:"separator",value:s,text:(s===","?"":" ")+s+(s===","?"":" ")});continue}else if(u&&(s==="#"&&(f||a.length&&a[a.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(s)))break}f+=s}}return h(),i};parseValueComponent(a,i=this.definition.unit){let r=i??this.definition.unit,c="",t;if(typeof a=="number")return r&&!c?((r==="rem"||r==="em")&&(t=a/(this.css.config.rootSize||1)),c=r||""):t=a,{value:t,unit:c,type:"number"};if(r){if(/^\d+\/\d+/.test(a)){let[l,m]=a.split("/");return{value:+l/+m*100,unit:"%",type:"number"}}let d=a.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(d)return t=+d[1],c=d[3]||"",c||((r==="rem"||r==="em")&&(t=t/(this.css.config.rootSize||1)),c=r||""),{value:t,unit:c,type:"number"}}return{value:a,type:"string"}}};var ke={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},fe=ke;var Ve={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},ue=Ve;var Oe={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},de=Oe;var je={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},he=je;function K(e){e.startsWith("#")&&(e=e.slice(1));let a,i,r,c;return e.length===3||e.length===4?(a=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),r=parseInt(e[2]+e[2],16),c=e.length===4?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(e.length===6||e.length===8)&&(a=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16),c=e.length===8?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[a,i,r,c]}function me(e,a,i){return((1<<24)+(e<<16)+(a<<8)+i).toString(16).slice(1)}function T(e){typeof e=="string"&&(e={"":e});let a=""in e,i=!1;for(let r in e)if(r&&+r>=100){i=!0;break}if(!i&&(!a||Object.keys(e).length>1)){let r=0,c="0"in e?K(e[0]):[0,0,0],t,d,l=[],m=()=>{let u=t-r,p=d.map((y,g)=>(y-c[g])/u);for(let y of l){let g=y-r,o=c.map((f,h)=>Math.round(f+p[h]*g));e[y]="#"+me(o[0],o[1],o[2])}};for(let u=1;u<100;u++)u in e?(l.length?(t=u,d=K(e[u]),m(),l.length=0,c=d):c=K(e[u]),r=u):l.push(u);l.length&&(t=100,d="100"in e?K(e[100]):[255,255,255],m())}return a||(e[""]=e[i?"500":"50"]),e}var Te={"font-family":{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},"box-size":{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560,full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box",black:"#000000"},black:"#000000",white:"#ffffff",current:"currentColor",slate:T({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:T({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:T({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:T({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:T({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:T({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:T({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:T({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:T({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:T({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:T({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:T({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:T({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:T({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:T({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:T({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:T({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:T({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:T({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:T({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},pe=Te;var F=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Q=function(e){return e.length<2||e.find(i=>i.type==="string"&&F.includes(i.value)||i.type==="variable"&&F.includes(i.variable?.value))||e.push({type:"separator",value:" "},{type:"string",value:"solid"}),e},Me={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(e){let a=0;for(;a<e.length&&!(e[a]==="{"&&e[a-1]!=="\\");a++);return[e.slice(a),e.slice(0,a)]},declare(e){let a={},i=m=>{let u=m.indexOf(":");if(u!==-1){let p=m.slice(0,u);a[p]=m.slice(u+1)}},r=m=>{let u=p=>{let y=p.slice(J(m.className).length).match(/\{(.*)\}/)?.[1].split(";");if(y)for(let g of y)i(g)};for(let p of m.natives)u(p.text);if(m.animationNames){this.animationNames||(this.animationNames=[]);for(let p of m.animationNames)this.animationNames.includes(p)||this.animationNames.push(p)}if(m.variableNames){this.variableNames||(this.variableNames=[]);for(let p of m.variableNames)this.variableNames.includes(p)||this.variableNames.push(p)}},c=[],t="",d=()=>{t&&(c.push(t.replace(/ /g,"|")),t="")},l=1;(function m(u){for(;l<e.length;l++){let p=e[l];if(!u){if(p===";"){d();continue}if(p==="}")break}if(t+=p,u===p){if(u==="'"||u==='"'){let y=0;for(let g=t.length-2;t[g]==="\\";g--)y++;if(y%2)continue}break}else p in Y&&u!=="'"&&u!=='"'&&(l++,m(Y[p]))}})(""),d();for(let m of c){let u=this.css.create(m);if(u.length)for(let p of u)r(p);else i(m)}return a}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},"font-size":{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-3},"font-weight":{match:["f(?:ont)?",["bolder"]],layer:-3},"font-family":{match:["f(?:ont)?"],layer:-3},"font-smoothing":{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-3,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-3,unit:"deg"},"font-variant-numeric":{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-3},"font-variant":{layer:-7},"font-feature-settings":{match:/^font-feature:/,layer:-3},font:{match:/^f:/,layer:-7,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},color:{match:/^(?:color|fg|foreground):/,layer:-3,colored:!0,variables:["foreground"]},"margin-left":{match:/^ml:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-right":{match:/^mr:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-top":{match:/^mt:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-bottom":{match:/^mb:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-x":{match:/^(?:mx|margin-x):/,unit:"rem",layer:-5,declare(e){return{"margin-left":e,"margin-right":e}},variables:["spacing"]},"margin-y":{match:/^(?:my|margin-y):/,unit:"rem",layer:-5,declare(e){return{"margin-top":e,"margin-bottom":e}},variables:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-7,variables:["spacing"]},"margin-inline-start":{match:/^mis:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline-end":{match:/^mie:/,layer:-3,unit:"rem",variables:["spacing"]},"margin-inline":{match:/^mi:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-left":{match:/^pl:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-right":{match:/^pr:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-top":{match:/^pt:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-bottom":{match:/^pb:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-x":{match:/^(?:px|padding-x):/,unit:"rem",layer:-5,declare(e){return{"padding-left":e,"padding-right":e}},variables:["spacing"]},"padding-y":{match:/^(?:py|padding-y):/,unit:"rem",layer:-5,declare(e){return{"padding-top":e,"padding-bottom":e}},variables:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-7,variables:["spacing"]},"padding-inline-start":{match:/^pis:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline-end":{match:/^pie:/,layer:-3,unit:"rem",variables:["spacing"]},"padding-inline":{match:/^pi:/,unit:"rem",layer:-7,variables:["spacing"]},"flex-basis":{variables:["box-size"],unit:"rem",layer:-3},"flex-wrap":{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-3},"flex-grow":{layer:-3},"flex-shrink":{layer:-3},"flex-direction":{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-3},flex:{layer:-7},display:{match:/^d:/,layer:-3},width:{match:/^w:/,unit:"rem",layer:-3,variables:["box-size"]},height:{match:/^h:/,unit:"rem",layer:-3,variables:["box-size"]},"min-width":{match:/^min-w:/,unit:"rem",layer:-3,variables:["box-size"]},"min-height":{match:/^min-h:/,unit:"rem",layer:-3,variables:["box-size"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[a,i]=e.split(" x ");return{width:a,height:i}}},"min-box":{match:/^min:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[a,i]=e.split(" x ");return{"min-width":a,"min-height":i}}},"max-box":{match:/^max:/,layer:-5,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[a,i]=e.split(" x ");return{"max-width":a,"max-height":i}}},"box-sizing":{match:/^box:/,layer:-3},"box-decoration-break":{match:["box-size",["slice","clone"]],layer:-3,declare(e){return{"box-decoration-break":e,"-webkit-box-decoration-break":e}}},contain:{layer:-3},content:{layer:-3},"counter-increment":{layer:-3},"counter-reset":{layer:-3},"letter-spacing":{match:/^ls:/,layer:-3,unit:"em"},"line-height":{match:/^lh:/,layer:-3},"object-fit":{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-3},"object-position":{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-3},"text-align":{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-3},"text-decoration-color":{match:["text-decoration"],layer:-3,colored:!0,variables:["foreground"]},"text-decoration-style":{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-3},"text-decoration-thickness":{match:["text-decoration",["from-font"]],numeric:!0,layer:-3,unit:"em"},"text-decoration-line":{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-3},"text-decoration":{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-7,variables:["foreground"]},"text-underline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"text-overflow":{match:["t(?:ext)?",["ellipsis","clip"]],layer:-3},"text-orientation":{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-3},"text-transform":{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-3},"text-rendering":{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-3},"text-indent":{unit:"rem",layer:-3},"vertical-align":{match:/^(?:v|vertical):/,layer:-3},columns:{match:/^(?:columns|cols):/,layer:-7},"white-space":{layer:-3},top:{layer:-3,unit:"rem",variables:["spacing"]},bottom:{layer:-3,unit:"rem",variables:["spacing"]},left:{layer:-3,unit:"rem",variables:["spacing"]},right:{layer:-3,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-7,variables:["spacing"]},lines:{match:/^lines:/,declare(e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e}}},"max-height":{match:/^max-h:/,unit:"rem",layer:-3,variables:["box-size"]},"max-width":{match:/^max-w:/,unit:"rem",layer:-3,variables:["box-size"]},opacity:{layer:-3},visibility:{layer:-3},clear:{layer:-3},float:{layer:-3},isolation:{layer:-3},"overflow-x":{layer:-3,declare(e){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},"overflow-y":{layer:-3,declare(e){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-7,declare(e){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},"overscroll-behavior-x":{layer:-3},"overscroll-behavior-y":{layer:-3},"overscroll-behavior":{layer:-7},"z-index":{match:/^z:/,layer:-3},position:{layer:-3},cursor:{layer:-3},"pointer-events":{layer:-3},resize:{layer:-3},"touch-action":{layer:-3},"word-break":{layer:-3},"word-spacing":{layer:-3,unit:"em"},"user-drag":{layer:-3,declare(e){return{"user-drag":e,"-webkit-user-drag":e}}},"user-select":{layer:-3,declare(e){return{"user-select":e,"-webkit-user-select":e}}},"text-shadow":{unit:"rem",layer:-3,colored:!0},"text-size":{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e){return{"font-size":e,"line-height":`calc(${e} + ${.875}em)`}}},"text-fill-color":{match:["(?:text-fill|text|t)"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-fill-color":e}}},"text-stroke-width":{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke-width":e}}},"text-stroke-color":{match:["text-stroke"],layer:-3,colored:!0,variables:["foreground"],declare(e){return{"-webkit-text-stroke-color":e}}},"text-stroke":{unit:"rem",layer:-3,declare(e){return{"-webkit-text-stroke":e}}},"box-shadow":{match:/^s(?:hadow)?:/,unit:"rem",layer:-3,colored:!0},"table-layout":{layer:-3},"transform-box":{match:["transform"],layer:-3},"transform-style":{match:["transform",["flat","preserve-3d"]],layer:-3},"transform-origin":{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-3},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-3,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},"transition-property":{match:/^~property:/,layer:-3},"transitionTiming-function":{match:/^~easing:/,layer:-3},"transition-duration":{match:/^~duration:/,layer:-3,unit:"ms"},"transition-delay":{match:/^~delay:/,layer:-3,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let a=e.indexOf(":");return this.prefix=e.slice(0,a+1),[e.slice(a+1)]}},layer:-7},"animation-delay":{match:/^@delay:/,layer:-3,unit:"ms"},"animation-direction":{match:/^@direction:/,layer:-3},"animation-duration":{match:/^@duration:/,layer:-3,unit:"ms"},"animation-fill-mode":{match:/^@fill:/,layer:-3},"animation-iteration-count":{match:/^@iteration:/,layer:-3},"animation-name":{match:/^@name:/,layer:-3},"animation-play-state":{match:/^@play:/,layer:-3},"animation-timing-function":{match:/^@easing:/,layer:-3},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-7,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let a=e.indexOf(":");return this.prefix=e.slice(0,a+1),[e.slice(a+1)]}}},"border-collapse":{match:["b(?:order)?",["collapse","separate"]],layer:-3},"border-spacing":{unit:"rem",layer:-3},"border-top-color":{match:["b(?:t|order-top(?:-color)?)"],layer:-3,colored:!0},"border-bottom-color":{match:["b(?:b|order-bottom(?:-color)?)"],layer:-3,colored:!0},"border-left-color":{match:["b(?:l|order-left(?:-color)?)"],layer:-3,colored:!0},"border-right-color":{match:["b(?:r|order-right(?:-color)?)"],layer:-3,colored:!0},"border-x-color":{match:["b(?:x|order-x(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-left-color":e,"border-right-color":e}}},"border-y-color":{match:["b(?:y|order-y(?:-color)?)"],layer:-5,colored:!0,declare(e){return{"border-top-color":e,"border-bottom-color":e}}},"border-color":{match:["b(?:order)?(?:-color)?"],layer:-7,colored:!0},"border-top-left-radius":{match:/^r(?:tl|lt):/,unit:"rem",layer:-3},"border-top-right-radius":{match:/^r(?:tr|rt):/,unit:"rem",layer:-3},"border-bottom-left-radius":{match:/^r(?:bl|lb):/,unit:"rem",layer:-3},"border-bottom-right-radius":{match:/^r(?:br|rb):/,unit:"rem",layer:-3},"border-top-radius":{match:/^rt:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-top-right-radius":e}}},"border-bottom-radius":{match:/^rb:/,unit:"rem",layer:-5,declare(e){return{"border-bottom-left-radius":e,"border-bottom-right-radius":e}}},"border-left-radius":{match:/^rl:/,unit:"rem",layer:-5,declare(e){return{"border-top-left-radius":e,"border-bottom-left-radius":e}}},"border-right-radius":{match:/^rr:/,unit:"rem",layer:-5,declare(e){return{"border-top-right-radius":e,"border-bottom-right-radius":e}}},"border-radius":{match:/^r:/,unit:"rem",layer:-7},"border-top-style":{match:["b(?:t|order-top(?:-style)?)",F],layer:-3},"border-bottom-style":{match:["b(?:b|order-bottom(?:-style)?)",F],layer:-3},"border-left-style":{match:["b(?:l|order-left(?:-style)?)",F],layer:-3},"border-right-style":{match:["b(?:r|order-right(?:-style)?)",F],layer:-3},"border-x-style":{match:["b(?:x|order-x(?:-style)?)",F],layer:-5,declare(e){return{"border-left-style":e,"border-right-style":e}}},"border-y-style":{match:["b(?:y|order-y(?:-style)?)",F],layer:-5,declare(e){return{"border-top-style":e,"border-bottom-style":e}}},"border-style":{match:["b(?:order)?(?:-style)?",F],layer:-7},"border-top-width":{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-bottom-width":{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-left-width":{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-right-width":{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-3},"border-x-width":{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-left-width":e,"border-right-width":e}}},"border-y-width":{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-5,declare(e){return{"border-top-width":e,"border-bottom-width":e}}},"border-width":{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-7},"border-image-outset":{unit:"rem",layer:-3},"border-image-repeat":{match:["border-image",["stretch","repeat","round","space"]],layer:-3},"border-image-slice":{layer:-3},"border-image-source":{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-3},"border-image-width":{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-3},"border-image":{layer:-7},"border-top":{match:/^bt:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-bottom":{match:/^bb:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-left":{match:/^bl:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-right":{match:/^br:/,layer:-7,unit:"rem",colored:!0,transformValueComponents:Q},"border-x":{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Q,declare(e){return{"border-left":e,"border-right":e}}},"border-y":{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-5,transformValueComponents:Q,declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-7,transformValueComponents:Q},"background-attachment":{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-3},"background-blend-mode":{layer:-3},"background-color":{match:["(?:bg|background)"],layer:-3,colored:!0},"background-clip":{match:["(?:bg|background)",["text"]],layer:-3,declare(e){return{"-webkit-background-clip":e,"background-clip":e}}},"background-origin":{match:["(?:bg|background)"],layer:-3},"background-position":{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-3,unit:"px"},"background-repeat":{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-3},"background-size":{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-3},"background-image":{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},background:{match:/^bg:/,colored:!0,layer:-7},gradient:{match:/^gradient\(/,layer:-3,colored:!0,declare(e){return{"background-image":"linear-"+e}}},"mix-blend-mode":{match:/^blend:/,layer:-3},"backdrop-filter":{match:/^bd:/,layer:-3,colored:!0,declare(e){return{"backdrop-filter":e,"-webkit-backdrop-filter":e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-3,colored:!0},fill:{match:/^fill:/,layer:-3,colored:!0,variables:["foreground"]},"stroke-dasharray":{layer:-3},"stroke-dashoffset":{layer:-3,variables:["spacing"]},"stroke-width":{match:["stroke(?:-width)?"],numeric:!0,layer:-3},stroke:{match:["stroke"],layer:-3,colored:!0,variables:["foreground"]},x:{layer:-3,variables:["spacing"]},y:{layer:-3,variables:["spacing"]},cx:{layer:-3,variables:["spacing"]},cy:{layer:-3,variables:["spacing"]},rx:{layer:-3},ry:{layer:-3},"grid-column-start":{match:/^grid-col-start:/,layer:-3},"grid-column-end":{match:/^grid-col-end:/,layer:-3},"grid-column":{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-columns":{match:/^grid-cols:/,declare(e){return{display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-row-start":{layer:-3},"grid-row-end":{layer:-3},"grid-row":{match:/^grid-row-span:/,layer:-7,transformValue(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},"grid-rows":{match:/^grid-rows:/,declare(e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}},layer:-1},"grid-auto-columns":{match:/^grid-auto-cols:/,layer:-3,variables:["box-size"]},"grid-auto-flow":{match:/^grid-flow:/,layer:-3},"grid-auto-rows":{layer:-3,variables:["box-size"]},"grid-template-areas":{layer:-3},"grid-template-columns":{match:/^grid-template-cols:/,layer:-3,unit:"rem",variables:["box-size"]},"grid-template-rows":{layer:-3,unit:"rem",variables:["box-size"]},"grid-template":{layer:-7},"grid-area":{layer:-7},grid:{layer:-7},"column-gap":{match:/^gap-x:/,unit:"rem",layer:-3,variables:["spacing"]},"row-gap":{match:/^gap-y:/,unit:"rem",layer:-3,variables:["spacing"]},gap:{unit:"rem",layer:-7,variables:["spacing"]},order:{match:/^o:/,layer:-3},"break-inside":{layer:-3},"break-before":{layer:-3},"break-after":{layer:-3},"aspect-ratio":{match:/^aspect:/,layer:-3},"column-span":{match:/^col-span:/,layer:-3},"align-content":{match:/^ac:/,layer:-3},"align-items":{match:/^ai:/,layer:-3},"align-self":{match:/^as:/,layer:-3},"justify-content":{match:/^jc:/,layer:-3},"justify-items":{match:/^ji:/,layer:-3},"justify-self":{match:/^js:/,layer:-3},"place-content":{layer:-7},"place-items":{layer:-7},"place-self":{layer:-7},"list-style-position":{match:["list-style",["inside","outside"]],layer:-3},"list-style-type":{match:["list-style",["disc","decimal"]],layer:-3},"list-style-image":{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-3},"list-style":{layer:-7},"outline-color":{match:["outline"],layer:-3,colored:!0},"outline-offset":{unit:"rem",layer:-3,variables:["spacing"]},"outline-style":{match:["outline",F],layer:-3},"outline-width":{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-3},outline:{unit:"rem",layer:-7,colored:!0,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:Q},"accent-color":{match:/^accent:/,layer:-3,colored:!0,variables:["foreground"]},appearance:{layer:-3},"caret-color":{match:/^caret:/,layer:-3,colored:!0,variables:["foreground"]},"scroll-behavior":{layer:-3},"scroll-margin-left":{match:/^scroll-ml:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-right":{match:/^scroll-mr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-top":{match:/^scroll-mt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{match:/^scroll-mb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-margin-x":{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-left":e,"scroll-margin-right":e}},variables:["spacing"]},"scroll-margin-y":{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-5,declare(e){return{"scroll-margin-top":e,"scroll-margin-bottom":e}},variables:["spacing"]},"scroll-margin":{match:/^scroll-m:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-padding-left":{match:/^scroll-pl:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-right":{match:/^scroll-pr:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-top":{match:/^scroll-pt:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{match:/^scroll-pb:/,layer:-3,unit:"rem",variables:["spacing"]},"scroll-padding-x":{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-left":e,"scroll-padding-right":e}},variables:["spacing"]},"scroll-padding-y":{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-5,declare(e){return{"scroll-padding-top":e,"scroll-padding-bottom":e}},variables:["spacing"]},"scroll-padding":{match:/^scroll-p:/,unit:"rem",layer:-7,variables:["spacing"]},"scroll-snap-align":{match:["scroll-snap",["start","end","center"]],layer:-3},"scroll-snap-stop":{match:["scroll-snap",["normal","always"]],layer:-3},"scroll-snap-type":{match:["scroll-snap",["x","y","block","inline","both"]],layer:-3},"will-change":{layer:-3},"writing-mode":{match:/^writing:/,layer:-3},direction:{layer:-3},"shape-outside":{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-3},"shape-margin":{match:["shape"],numeric:!0,unit:"rem",layer:-3,variables:["spacing"]},"shape-image-threshold":{layer:-3},"clip-path":{match:/^clip:/,layer:-3},quotes:{layer:-3},"mask-image":{layer:-3,declare(e){return{"mask-image":e,"-webkit-mask-image":e}}}},ge=Me;var se={$:{colored:!0,transform(e){let a,i,r=e.indexOf(",");return r!==-1?(a=e.slice(0,r),i=e.slice(r+1)):a=e,[{type:"variable",name:a,fallback:i}]}},calc:{transform(e,a){let i=[],r=0,c=(t,d,l,m)=>{let u=i!==t,p=[],y=!1,g=!1,o=!1,f=!1,h,s="",n=(v,R="",C="")=>{if(h===!1&&v!==" "&&this.definition.unit&&(h=void 0,f||b()),s){if(!y&&!l){let N=this.parseValueComponent(s);if(!g&&isNaN(+s)&&N.type==="number"&&N.unit!=="%"&&(g=!0),f)isNaN(+s)?N.type==="number"?(t.push(N),N.unit!=="%"&&(o=!0)):t.push(N):t.push({type:"number",value:+s});else if(u){let D={type:"string",value:s};p.push(D),t.push(D)}else t.push(N)}else t.push({type:"string",value:s});s=""}v&&((v==="+"||v==="-")&&x(),R&&e[r-1]===" "&&(R=""),C&&e[r+1]===" "&&(C=""),d?t.push({type:"separator",value:v,text:v}):t.push({type:"separator",value:v,text:R+v+C})),y=!1},b=()=>{(this.definition.unit==="rem"||this.definition.unit==="em")&&t.push({type:"separator",value:"/",text:" / "},{type:"number",value:this.css.config.rootSize}),t.push({type:"separator",value:"*",text:" * "},{type:"number",value:1,unit:this.definition.unit})},x=()=>{f&&!o&&!m&&(!u||g)&&b(),f=!1,o=!1};for(;r<e.length;r++){let v=e[r];if(v==="("){let R=/^([+-])/.exec(s);R&&t.push({type:"string",value:R[1]});let C=R?s.slice(1):s,N={type:"function",name:C,symbol:v,children:[],bypassTransform:C==="calc"};t.push(N),s="",r++;let D=C==="$"||C==="var";h=c(N.children,C!==""&&C!=="calc"&&(D||Object.prototype.hasOwnProperty.call(se,C)),y||D||f&&o,f),!h&&C==="$"&&(h=this.css.variables[N.children[0].value]?.type==="string"),h&&(g=!0,o=!0)}else if(v===")"){if(n(""),g)for(let R of p)Object.assign(R,this.parseValueComponent(R.value));return g}else if(v===",")n(v,""," ");else if(v===" ")n(v);else{let R=e[r-1];switch(v){case"+":!s&&R!==")"?s+=v:n(v," "," ");break;case"-":!s&&R!==")"?s+=v:n(v," "," ");break;case"*":this.definition.unit&&(f=!0),n(v," "," ");break;case"/":this.definition.unit&&(f=!0),n(v," "," "),y=!0;break;default:s+=v;break}}}n(""),x()};return c(i,!1,!1,!1),"calc("+this.resolveValue(i,se.calc.unit??this.definition.unit,a,!0)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},ye=se;var q={mediaQueries:fe,selectors:ue,semantics:de,rules:ge,functions:ye,animations:he,variables:pe,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};function te(e,a=""){return Object.entries(e).reduce((i,[r,c])=>{let t=a?`${a}${r?"-"+r:""}`:r;return typeof c=="object"&&!Array.isArray(c)?Object.assign(i,te(c,t)):i[t]=c,i},{})}function ve(e){let a=typeof Buffer<"u"?Buffer:null;return!!(a&&e instanceof a||e instanceof Date||e instanceof RegExp)}function Re(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let a=Buffer.alloc(e.length);return e.copy(a),a}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function Ce(e){let a=[];return e.forEach(function(i,r){typeof i=="object"&&i!==null?Array.isArray(i)?a[r]=Ce(i):ve(i)?a[r]=Re(i):a[r]=H({},i):a[r]=i}),a}function be(e,a){return a==="__proto__"?void 0:e[a]}function H(...e){let a={},i,r;return e.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(t){if(r=be(a,t),i=be(c,t),i!==a)if(typeof i!="object"||i===null){a[t]=i;return}else if(Array.isArray(i)){a[t]=Ce(i);return}else if(ve(i)){a[t]=Re(i);return}else if(typeof r!="object"||r===null||Array.isArray(r)){a[t]=H({},i);return}else{a[t]=H(r,i);return}})}),a}function ie(...e){let a=c=>{let t=H({},c),d=l=>{for(let m in l){let u=l[m];typeof u=="object"&&!Array.isArray(u)?d(u):m&&!m.startsWith("@")&&(l[m]={"":u})}};return t.styles?d(t.styles):t.styles={},t.mediaQueries?d(t.mediaQueries):t.mediaQueries={},t.variables?d(t.variables):t.variables={},t},i=[];for(let c of e)(function t(d){if(d.extends?.length)for(let l of d.extends)t("config"in l?l.config:l);i.push(a(d))})(c);let r=i[0];for(let c=1;c<i.length;c++){let t=i[c];r=H(r,t),Object.prototype.hasOwnProperty.call(t,"animations")&&r.animations&&Object.assign(r.animations,t.animations)}return r}var L=class e{constructor(a=q){this.customConfig=a;a?.override?this.config=ie(a):this.config=ie(q,a),this.resolve(),this.constructor===e&&ae.push(this)}static config=q;rules=[];ruleBy={};classesUsage={};config;RegisteredSemanticRules=[];RegisteredRules=[];resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.RegisteredRules.length=0,this.RegisteredSemanticRules.length=0,this.variablesNativeRules={},this.hasKeyframesRule=!1;let a={current:void 0,currentColor:void 0,transparent:void 0},{styles:i,selectors:r,variables:c,semantics:t,mediaQueries:d,rules:l,animations:m}=this.config;function u(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(r){let o=te(r);for(let f in o){let h=o[f],s=new RegExp(u(f)+"(?![a-z-])");for(let n of Array.isArray(h)?h:[h]){let b=n.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[b];x||(x=this.selectors[b]=[]);let v=x.find(([R])=>R===s);v||(v=[s,[]],x.push(v)),v[1].push(n)}}}if(c){let o={},f=(h,s,n)=>{if(!h)return;let b=(v,R,C,N)=>{if(R===void 0)return;if(R.type==="color"){if(N){let M=R.value.indexOf("/");R={...R,value:M===-1?R.value+" / "+(N.startsWith("0.")?N.slice(1):N):R.value.slice(0,M+2)+(+R.value.slice(M+2)*+N).toString().slice(1)}}a[v]=void 0}let D=C??n;if(D!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,v)){let M=this.variables[v];D?(M.themes||(M.themes={}),M.themes[D]=R):(M.value=R.value,R.type==="color"&&(M.space=R.space))}else if(D){let M={type:R.type,themes:{[D]:R}};R.type==="color"&&(M.space=R.space),this.variables[v]=M}else this.variables[v]=R;else this.variables[v]=R},x=typeof h;if(x==="object")if(Array.isArray(h))b(s,{type:"string",value:h.join(",")});else{let v=Object.keys(h);for(let R of v)R===""||R.startsWith("@")?f(h[R],s,R||v.some(C=>C.startsWith("@"))?R.slice(1):void 0):f(h[R],s+"-"+R,void 0)}else if(x==="number")b(s,{type:"number",value:h}),b("-"+s,{type:"number",value:h*-1});else if(x==="string"){let v=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(h);if(v)Object.prototype.hasOwnProperty.call(o,s)||(o[s]={}),o[s][n]=()=>{delete o[s][n];let[R,C]=v[1].split("@");if(R){if(Object.prototype.hasOwnProperty.call(o,R))for(let D of Object.keys(o[R]))o[R][D]?.();let N=this.variables[R];if(N)if(C===void 0&&N.themes){b(s,{type:N.type,value:N.value,space:N.space},"",v[2]);for(let D in N.themes)b(s,N.themes[D],D,v[2])}else{let D=C!==void 0?N.themes?.[C]:N;if(D){let M={type:D.type,value:D.value};D.type==="color"&&(M.space=D.space),b(s,M,void 0,v[2])}}}};else{let R=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(h);if(R){let[C,N,D,M]=K(R[1]);b(s,{type:"color",value:`${C} ${N} ${D}${M===1?"":" / "+M}`,space:"rgb"})}else{let C=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(h);if(C)b(s,{type:"color",value:C[1]+" "+C[2]+" "+C[3]+(C[4]?" / "+(C[4].startsWith("0.")?C[4].slice(1):C[4]):""),space:"rgb"});else{let N=/^hsl\((.*?)\)$/.exec(h);N?b(s,{type:"color",value:N[1],space:"hsl"}):b(s,{type:"string",value:h})}}}}};for(let h in c)f(c[h],h);for(let h of Object.keys(o))for(let s of Object.keys(o[h]))o[h][s]?.()}if(d&&(this.mediaQueries=te(d)),m)for(let o in m){let f=this.animations[o]={},h=m[o];for(let s in h){let n=f[s]={},b=h[s];for(let x in b)n[x]=b[x]}}let p=i?te(i):{},y=Object.keys(p),g=o=>{if(Object.prototype.hasOwnProperty.call(this.styles,o))return;let f=this.styles[o]=[],h=p[o];if(!h)return;let s=h.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let n of s){let b=x=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,x)){let v=this.stylesBy[x];v.includes(o)||v.push(o)}else this.stylesBy[x]=[o];f.includes(x)||f.push(x)};if(y.includes(n)){g(n);for(let x of this.styles[n])b(x)}else b(n)}};for(let o of y)g(o);if(t&&Object.entries(t).sort((o,f)=>o[0].localeCompare(f[0])).forEach(([o,f],h)=>{this.RegisteredSemanticRules.push({id:"."+o,match:new RegExp("^"+u(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:h,definition:{declarations:f,layer:-8}})}),l){let o=Object.entries(l).sort((s,n)=>s[1].layer!==n[1].layer?(n[1].layer||0)-(s[1].layer||0):n[0].localeCompare(s[0])),f=o.length,h=Object.keys(a);o.forEach(([s,n],b)=>{let x={id:s,variables:{},order:this.RegisteredSemanticRules.length+f-1-b,definition:n};this.RegisteredRules.push(x);let v=n.match,R=C=>{for(let N in this.variables)if(N.startsWith(C+"-")||N.startsWith("-"+C+"-")){let D=N.slice(C.length+(C.startsWith("-")?0:1));x.variables[D]={...this.variables[N],name:N}}};if(n.variables)for(let C of n.variables)R(C);if(R(s),v)if(Array.isArray(v)){let[C,N=[]]=v,D=[];N.length&&D.push(`(?:${N.join("|")})(?![a-zA-Z0-9-])`),Object.keys(x.variables).length&&D.push(`(?:${Object.keys(x.variables).join("|")})(?![a-zA-Z0-9-])`),n.colored&&D.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${h.join("|")})(?![a-zA-Z0-9-])`),n.numeric&&D.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),D.length&&(x.match=new RegExp(`^${C}:(?:${D.join("|")})[^|]*?(?:@|$)`))}else x.match=v})}}match(a){for(let i of this.RegisteredRules)if(i.match?.test(a)||(i.definition.layer===-2||i.definition.layer===-6||i.definition.layer===-3||i.definition.layer===-7)&&a.startsWith(i.id+":"))return i;for(let i of this.RegisteredSemanticRules)if(i.match?.test(a))return i}create(a){let i=r=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,r))return this.ruleBy[r];let c=this.match(r);if(c)return new ee(r,c,this)};return(Object.prototype.hasOwnProperty.call(this.styles,a)?this.styles[a].map(r=>i(r)):[i(a)]).filter(r=>r&&r.text)}refresh(a=this.customConfig){a?.override?this.config=ie(a):this.config=ie(q,a),this.resolve(),this.rules.length=0,this.ruleBy={};for(let i in this.classesUsage)this.add(i);return this}reset(){this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={};for(let a in this.animations){let i=this.animations[a];i.usage=0,i.native=void 0}for(let a in this.variables){let i=this.variables[a];i.usage=0}return this}destroy(){return this.reset(),ae.splice(ae.indexOf(this),1),this}add(a){let i=this.create(a);return i.length?(this.insert(i),!0):!1}delete(a){let i=this.style?.sheet,r=c=>{let t=this.ruleBy[c];if(!(!t||Object.prototype.hasOwnProperty.call(this.stylesBy,c)&&this.stylesBy[c].some(d=>Object.prototype.hasOwnProperty.call(this.classesUsage,d)))){if(i&&t.natives.length){let d=t.natives[0];for(let l=0;l<i.cssRules.length;l++)if(i.cssRules[l]===d.cssRule){for(let u=0;u<t.natives.length;u++)i.deleteRule(l);break}}if(this.rules.splice(this.rules.indexOf(t),1),delete this.ruleBy[c],t.variableNames)for(let d of t.variableNames){let l=this.variables[d];if(l.usage||(l.usage=0),!--l.usage){let m=u=>{let p=this.variablesNativeRules[u];if(p.cssRule.style.removeProperty("--"+d),!p.cssRule.style.length){let y=this.rules[0],g=y.natives.indexOf(p);i?.deleteRule(g),y.natives.splice(g,1),delete this.variablesNativeRules[u],y.natives.length||(this.rules.splice(0,1),this.variablesNativeRules={})}};if(l.value&&m(""),l.themes)for(let u in l.themes)m(u)}}if(t.animationNames){let d=Object.keys(this.variablesNativeRules).length?1:0,l=this.rules[d];for(let m of t.animationNames){let u=this.animations[m];if(u.usage||(u.usage=0),!--u.usage&&u.native){let p=l.natives.indexOf(u.native);this.style.sheet?.deleteRule(Object.keys(this.variablesNativeRules).length+p),l.natives.splice(p,1),u.native=void 0}}l.natives.length||(this.rules.splice(d,1),this.hasKeyframesRule=!1)}t.definition.delete?.call(t,c)}};if(Object.prototype.hasOwnProperty.call(this.styles,a)){for(let c of this.styles[a])Object.prototype.hasOwnProperty.call(this.classesUsage,c)||r(c);delete this.ruleBy[a]}else r(a)}insert(a){for(let i of a){if(this.ruleBy[i.className])continue;let r,c=this.rules.length-1,{media:t,order:d,priority:l,hasWhere:m,className:u}=i,p=(o,f,h)=>{let s=o;for(;s<=c;s++){let n=this.rules[s];if(f?.(n))return h?-1:s-1;if(h?.(n))return s}return h?-1:s-1},y,g;if(t){let o=this.rules.findIndex(f=>f.media);if(o===-1)r=c+1;else{let{"max-width":f,"min-width":h}=t.features;if(f||h){let s=this.rules.findIndex(n=>n.media?.features["max-width"]||n.media?.features["min-width"]);if(s===-1)r=c+1;else if(f&&h){if(l===-1?(y=p(s,n=>n.priority!==-1,n=>n.media.features["max-width"]&&n.media.features["min-width"]),g=p(s,n=>n.priority!==-1)):(y=p(s,void 0,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1),g=c),y!==-1){let n=f.value-h.value,b=g,x=y;for(y=void 0;b>=x;b--){let{"max-width":v,"min-width":R}=this.rules[b].media.features,C=v.value-R.value;if(C<n)g=b-1;else if(C===n)y=b;else break}}if(y!==-1&&y!==void 0){let n=f.value-h.value;for(let b=g;b>=y;b--){let{"max-width":x,"min-width":v}=this.rules[b].media.features,R=x.value-v.value;if(R<n)g=b-1;else if(R>n){y=b+1;break}}}}else if(h){if(l===-1?(y=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]||n.priority!==-1,n=>!n.media.features["max-width"]&&n.media.features["min-width"]),g=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]||n.priority!==-1)):(y=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1,n=>!n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1),g=p(s,n=>n.media.features["max-width"]&&n.media.features["min-width"]&&n.priority!==-1)),y!==-1)for(let n=g;n>=y;n--){let b=this.rules[n].media.features["min-width"].value;if(b>h.value)g=n-1;else if(b<h.value){y=n+1;break}}}else if(l===-1?(y=p(s,n=>n.media.features["min-width"]||n.priority!==-1,n=>n.media.features["max-width"]),g=p(s,n=>n.media.features["min-width"]||n.priority!==-1)):(y=p(s,n=>n.media.features["min-width"]&&n.priority!==-1,n=>n.media.features["max-width"]&&n.priority!==-1),g=p(s,n=>n.media.features["min-width"]&&n.priority!==-1)),y!==-1)for(let n=g;n>=y;n--){let b=this.rules[n].media.features["max-width"].value;if(b<f.value)g=n-1;else if(b>f.value){y=n+1;break}}}else l===-1?(y=o,g=p(o,s=>s.media?.features["max-width"]||s.media?.features["min-width"]||s.priority!==-1)):(y=p(o,s=>s.media?.features["max-width"]||s.media?.features["min-width"],s=>s.priority!==-1),g=p(o,s=>s.media?.features["max-width"]||s.media?.features["min-width"]))}}else{let o=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;l===-1?(y=o,g=p(o,f=>f.media||f.priority!==-1)):(y=p(o,f=>f.media,f=>f.priority!==-1),g=p(o,f=>f.media))}if(r===void 0&&g!==void 0&&y!==void 0)if(y===-1)r=g+1;else{if(l===-1)for(let o=y;o<=g;o++){let f=this.rules[o];if(!(!m&&f.hasWhere)&&(m&&!f.hasWhere||f.order>=d)){r=o;break}}else for(let o=y;o<=g;o++){let f=this.rules[o];if(!(!m&&f.hasWhere)){if(m&&!f.hasWhere){r=o;break}if(f.priority<l){r=o;break}else if(f.priority===l){if(f.order>=d){r=o;break}}else r=o+1}}r===void 0&&(r=g+1)}if(this.rules.splice(r,0,i),this.ruleBy[u]=i,this.style){let o=this.style.sheet,f=0,h=s=>{let n=this.rules[s];if(n){if(!n.natives.length)return h(s-1);let b=n.natives[n.natives.length-1],x=b.cssRule?.parentRule??b.cssRule;if(o){for(let v=0;v<o.cssRules.length;v++)if(o.cssRules[v]===x){f=v+1;break}}}};h(r-1);for(let s=0;s<i.natives.length;)try{let n=i.natives[s];o?.insertRule(n.text,f),n.cssRule=o?.cssRules[f++],s++}catch(n){console.error(n),i.natives.splice(s,1)}}this.handleRuleWithVariableNames(i),this.handleRuleWithAnimationNames(i),i.definition.insert?.call(i)}}get text(){return this.rules.map(a=>a.text).join("")}handleRuleWithAnimationNames(a,i=!1){if(a.animationNames){let r=this.style?.sheet;for(let c of a.animationNames){let t=this.animations[c];if(t.usage)t.usage++;else{let d={text:`@keyframes ${c}{`+Object.entries(t).filter(([u])=>u!=="usage"&&u!=="native").map(([u,p])=>`${u}{${Object.entries(p).map(([y,g])=>y+":"+g).join(";")}}`).join("")+"}"},l=Object.keys(this.variablesNativeRules).length?1:0,m;if(this.hasKeyframesRule?(m=this.rules[l]).natives.push(d):(this.rules.splice(l,0,m={natives:[d],get text(){return this.natives.map(u=>u.text).join("")}}),this.hasKeyframesRule=!0),r){let u;if(i)for(let p=0;p<r.cssRules.length;p++){let y=r.cssRules[p];if(y.constructor.name==="CSSKeyframesRule"&&y.name===c){u=y;break}}if(u)d.cssRule=u;else{let p=Object.keys(this.variablesNativeRules).length+m.natives.length-1;r.insertRule(d.text,p),d.cssRule=r.cssRules[p]}}t.usage=1,t.native=d}}}}handleRuleWithVariableNames(a,i=!1){if(a.variableNames){let r=this.style?.sheet;for(let c of a.variableNames){let t=this.variables[c];if(t.usage)t.usage++;else{let d=(l,m)=>{let u=this.variablesNativeRules[l];if(!u){let y,g,o;if(l)switch(this.config.themeDriver){case"media":g=`@media(prefers-color-scheme:${l})`,o=":root";break;case"host":o=`:host(.${l})`;break;default:o=`.${l}`;break}else o=":root";if(r){let f=Object.keys(this.variablesNativeRules).length?this.rules[0].natives.length:0;r.insertRule((g?g+"{":"")+o+"{}"+(g?g+"}":""),f),y=g?r.cssRules[f].cssRules[0]:r.cssRules[f]}else{let f=new Map,h=Object.defineProperties({},{getPropertyValue:{value:s=>f.get(s)},removeProperty:{value:s=>{f.delete(s);for(let n=0;n<h.length;n++)h[n]===s&&delete h[n]}},setProperty:{value:(s,n)=>{h[h.length]=s,f.set(s,n)}},length:{get(){return Object.keys(h).length}}});y={selectorText:o,style:h,styleMap:f},g&&(y.parentRule={conditionText:g})}u=this.pushVariableNativeRule(l,y)}let p="--"+c;(!i||!u.cssRule.style.getPropertyValue(p))&&u.cssRule.style.setProperty(p,m.value.toString())};if(t.value&&d("",t),t.themes)for(let l in t.themes)d(l,t.themes[l]);t.usage=1}}}}pushVariableNativeRule(a,i){if(!Object.keys(this.variablesNativeRules).length){this.variablesNativeRules={};let d={natives:[],get text(){return this.natives.map(l=>l.text).join("")}};this.rules.splice(0,0,d)}let r="",c="}";i.parentRule&&(r+=i.parentRule.conditionText.replace(/ /g,"")+"{",c+="}"),r+=i.selectorText+"{";let t={cssRule:i,get text(){let d=[];for(let l=0;l<i.style.length;l++){let m=i.style[l];d.push(m+":"+i.style.getPropertyValue(m))}return r+d.join(";")+c}};return this.rules[0].natives.push(this.variablesNativeRules[a]=t),t}},ae=[];globalThis.MasterCSS=L,globalThis.masterCSSs=ae;var xe=[",",".","#","[","!","*",">","+","~",":","@"];var X=class extends L{constructor(i=document,r=q){super(r);this.root=i;this.customConfig=r;i||(this.root=document),this.root===document?(globalThis.runtimeCSS=this,this.container=document.head,this.host=document.documentElement):(this.container=this.root,this.host=this.root.host),re.push(this)}host;observing=!1;container;observer;observe(i={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(re.find(c=>c!==this&&c.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let c of this.root.styleSheets){let{ownerNode:t}=c;if(t&&t.id==="master"){this.style=t;break}}if(this.style?.sheet){let c=0;for(;c<this.style.sheet.cssRules.length;c++){let t=this.style.sheet.cssRules[c];switch(t.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":if(this.config.themeDriver==="media"){let l=/\(prefers-color-scheme: (.*?)\)/.exec(t.conditionText);if(l){let m=t.cssRules[0];if(m?.constructor.name==="CSSStyleRule"&&m.selectorText===":root"){this.pushVariableNativeRule(l[1],m);continue}}}break;case"CSSStyleRule":let d=t.selectorText;if(t.style.length){let l=!0;for(let m=0;m<t.style.length;m++)if(!t.style[m]?.startsWith("--")){l=!1;break}if(l){if(d===":root"){this.pushVariableNativeRule("",t);continue}else if(this.config.themeDriver==="host"){let m=/:host(.*?)/.exec(d);if(m){this.pushVariableNativeRule(m[1],t);continue}}else if(!d.startsWith(".\\$")){this.pushVariableNativeRule(d.slice(1),t);continue}}}break}break}for(;c<this.style.sheet.cssRules.length;c++){let t=l=>{if(l.selectorText){let u=l.selectorText.split(", ")[0].split(" ");for(let p=0;p<u.length;p++){let y=u[p];if(y[0]==="."){let g=y.slice(1),o="";for(let f=0;f<g.length;f++){let h=g[f],s=g[f+1];if(h==="\\"){if(f++,s!=="\\"){o+=s;continue}}else if(xe.includes(h))break;o+=h}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,o)&&!Object.prototype.hasOwnProperty.call(this.styles,o)){let f=this.create(o)[0];if(f)return f}}}}else if(l.cssRules)for(let m=0;m<l.cssRules.length;m++){let u=t(l.cssRules[m]);if(u)return u}},d=t(this.style.sheet.cssRules[c]);if(d){this.rules.push(d),this.ruleBy[d.className]=d;for(let l=0;l<d.natives.length;l++)d.natives[l].cssRule=this.style.sheet.cssRules[c+l];c+=d.natives.length-1,this.handleRuleWithVariableNames(d,!0),this.handleRuleWithAnimationNames(d,!0),d.definition.insert?.call(d)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let r=c=>{c.forEach(t=>{Object.prototype.hasOwnProperty.call(this.classesUsage,t)?this.classesUsage[t]++:(this.classesUsage[t]=1,this.add(t))})};return r(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(c=>r(c.classList)),this.observer=new MutationObserver(c=>{let t={},d=[],l=[],m=[],u=(o,f)=>{f?o.classList.forEach(y):o.classList.forEach(p);let h=o.children;for(let s=0;s<h.length;s++){let n=h[s];n.classList&&(l.push(n),u(n,f))}},p=o=>{Object.prototype.hasOwnProperty.call(t,o)?t[o]++:t[o]=1},y=o=>{Object.prototype.hasOwnProperty.call(t,o)?t[o]--:Object.prototype.hasOwnProperty.call(this.classesUsage,o)&&(t[o]=-1)},g=(o,f)=>{for(let h=0;h<o.length;h++){let s=o[h];s.classList&&!l.includes(s)&&!m.includes(s)&&(s.isConnected!==f?(l.push(s),u(s,f)):m.push(s))}};for(let o=0;o<c.length;o++){let f=c[o],{addedNodes:h,removedNodes:s,type:n,target:b}=f;if(n==="attributes"){if(d.find(x=>x.target===b))continue;d.push(f)}else g(h,!1),(!b.isConnected||!l.includes(b))&&g(s,!0)}if(!(!d.length&&!Object.keys(t).length)){for(let{oldValue:o,target:f}of d){let h=l.includes(f),s=f.classList,n=o?o.split(" "):[];if(h){if(f.isConnected)continue;for(let b of n)s.contains(b)||y(b)}else if(f.isConnected){s.forEach(b=>{n.includes(b)||p(b)});for(let b of n)s.contains(b)||y(b)}}for(let o in t){let f=t[o],h=(this.classesUsage[o]||0)+f;h===0?(delete this.classesUsage[o],this.delete(o)):(Object.prototype.hasOwnProperty.call(this.classesUsage,o)||this.add(o),this.classesUsage[o]=h)}}}),this.observer.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(i=this.customConfig){let r=document.createElement("style");return r.id="master",this.style.replaceWith(r),this.style=r,super.refresh(i),this}reset(){super.reset();let i=this.style?.sheet;if(i?.cssRules)for(let r=i.cssRules.length-1;r>=0;r--)i.deleteRule(r);return this.style?.remove(),this.style=null,this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),re.splice(re.indexOf(this),1),this}},re=[];globalThis.RuntimeCSS=X,globalThis.runtimeCSSs=re;var Ee=`/** @type {import('@master/css').Config} */
2
2
  module.exports = {
3
3
  styles: {},
4
4
  rules: {},
@@ -9,7 +9,7 @@ module.exports = {
9
9
  selectors: {},
10
10
  functions: {}
11
11
  }
12
- `;var je=`/** @type {import('@master/css').Config} */
12
+ `;var ze=`/** @type {import('@master/css').Config} */
13
13
  export default {
14
14
  styles: {},
15
15
  rules: {},
@@ -20,7 +20,7 @@ export default {
20
20
  selectors: {},
21
21
  functions: {}
22
22
  }
23
- `;var Te=`import type { Config } from '@master/css'
23
+ `;var Ae=`import type { Config } from '@master/css'
24
24
 
25
25
  export default {
26
26
  styles: {},
@@ -32,4 +32,4 @@ export default {
32
32
  selectors: {},
33
33
  functions: {}
34
34
  } as Config
35
- `;function be(e){return new Z(document,e).observe()}function ve(e,t){if(!e.length)return;let i;t?.css?i=t?.css:i=new Y(t?.config);for(let n of e)i.add(n);return i.rules.filter(n=>n.layer).sort((n,l)=>{if(n.definition.layer===-8&&l.definition.layer!==-8)return-1;if(n.definition.layer!==-8&&l.definition.layer===-8)return 1;if(n.definition.id!==l.definition.id)return n.className.localeCompare(l.className);{let a=n.vendorSuffixSelectors?.[""]?.[0],s=l.vendorSuffixSelectors?.[""]?.[0],d=n.media?.token,p=l.media?.token;if(n.priority===-1&&l.priority===-1){if(a&&s)return a.localeCompare(s);if(d&&p&&!Object.keys(n.media.features||{}).length&&!Object.keys(l.media.features||{}).length)return d.localeCompare(p);if(a&&!s)return 1;if(!a&&s)return-1;if(d&&!p)return 1;if(!d&&p)return-1}return n.definition.id===l.definition.id&&n.stateToken===l.stateToken?n.className.localeCompare(l.className):n.order-l.order}}).map(n=>n.className)}export{je as CONFIG_ESM_TEXT,Oe as CONFIG_TEXT,Te as CONFIG_TS_TEXT,le as Layer,Y as MasterCSS,te as Rule,Z as RuntimeCSS,de as animations,G as config,Y as default,K as extend,M as fillColorScale,ge as functions,be as initRuntime,ce as mediaQueries,ve as reorderForReadableClasses,pe as rules,fe as selectors,ue as semantics,me as variables};
35
+ `;function Se(e){return new X(document,e).observe()}function Ne(e,a){let i;a?.css?i=a?.css:i=new L(a?.config);for(let r of e)i.add(r);return i.rules.filter(r=>r.layer).sort((r,c)=>{if(r.layer===-8&&c.layer!==-8)return-1;if(r.layer!==-8&&c.layer===-8)return 1;if(r.id!==c.id)return r.className.localeCompare(c.className);{let t=r.vendorSuffixSelectors?.[""]?.[0],d=c.vendorSuffixSelectors?.[""]?.[0],l=r.media?.token,m=c.media?.token;if(r.priority===-1&&c.priority===-1){if(t&&d)return t.localeCompare(d);if(l&&m&&!Object.keys(r.media.features||{}).length&&!Object.keys(c.media.features||{}).length)return l.localeCompare(m);if(t&&!d)return 1;if(!t&&d)return-1;if(l&&!m)return 1;if(!l&&m)return-1}return r.id===c.id&&r.stateToken===c.stateToken?r.className.localeCompare(c.className):r.order-c.order}}).map(r=>r.className)}export{ze as CONFIG_ESM_TEXT,Ee as CONFIG_TEXT,Ae as CONFIG_TS_TEXT,ce as Layer,L as MasterCSS,ee as Rule,X as RuntimeCSS,he as animations,q as config,L as default,H as extend,T as fillColorScale,ye as functions,Se as initRuntime,fe as mediaQueries,Ne as reorderForReadableClasses,ge as rules,ue as selectors,de as semantics,pe as variables};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { MasterCSS, MasterCSS as default } from './core';
2
2
  export { RuntimeCSS } from './runtime';
3
- export { Rule, NativeRule, MediaFeatureComponent, MediaQuery } from './rule';
3
+ export { Rule } from './rule';
4
+ export type { NativeRule, MediaFeatureComponent, MediaQuery } from './rule';
4
5
  export { CONFIG_TEXT } from './constants/config-text';
5
6
  export { CONFIG_ESM_TEXT } from './constants/config-esm-text';
6
7
  export { CONFIG_TS_TEXT } from './constants/config-ts-text';
package/dist/rule.d.ts CHANGED
@@ -3,7 +3,6 @@ import { CSSDeclarations } from './types/css-declarations';
3
3
  import { Layer } from './layer';
4
4
  export declare class Rule {
5
5
  readonly className: string;
6
- readonly definition: RuleDefinition;
7
6
  css: MasterCSS;
8
7
  readonly at: Record<string, string>;
9
8
  readonly priority: number;
@@ -11,14 +10,13 @@ export declare class Rule {
11
10
  readonly order: number;
12
11
  readonly layer: Layer;
13
12
  readonly stateToken: string;
14
- readonly declarations: CSSDeclarations;
15
- readonly colored: boolean;
16
- animationNames: string[];
17
- variableNames: string[];
18
- constructor(className: string, definition: RuleDefinition, css: MasterCSS);
19
- resolveValue: (valueComponents: ValueComponent[], unit: string, bypassVariableNames: string[]) => string;
13
+ readonly declarations?: CSSDeclarations;
14
+ animationNames?: string[];
15
+ variableNames?: string[];
16
+ constructor(className: string, RegisteredRule: RegisteredRule, css: MasterCSS);
17
+ resolveValue: (valueComponents: ValueComponent[], unit: string, bypassVariableNames: string[], bypassParsing: boolean) => string;
20
18
  get text(): string;
21
- parseValue: (currentValueComponents: ValueComponent[], i: number, value: string, unit: string, endSymbol?: string, parentFunctionName?: any, bypassVariableNames?: string[]) => number;
19
+ parseValue: (currentValueComponents: ValueComponent[], i: number, value: string, unit: string, endSymbol: string, parentFunctionName?: string, bypassParsing?: boolean, bypassVariableNames?: string[]) => number;
22
20
  parseValueComponent(token: string | number, unit?: any): StringValueComponent | NumericValueComponent;
23
21
  }
24
22
  export type ValueComponent = StringValueComponent | NumericValueComponent | FunctionValueComponent | VariableValueComponent | SeparatorValueComponent;
@@ -42,6 +40,7 @@ export interface FunctionValueComponent {
42
40
  name: string;
43
41
  symbol: string;
44
42
  children: ValueComponent[];
43
+ bypassTransform?: boolean;
45
44
  }
46
45
  export interface VariableValueComponent {
47
46
  text?: string;
@@ -57,29 +56,31 @@ export interface SeparatorValueComponent {
57
56
  type: 'separator';
58
57
  value: string;
59
58
  }
60
- export interface Rule {
61
- prefix?: string;
62
- token?: string;
63
- vendorPrefixSelectors?: Record<string, string[]>;
64
- vendorSuffixSelectors?: Record<string, string[]>;
65
- important?: boolean;
66
- media?: MediaQuery;
67
- direction?: string;
68
- theme?: string;
69
- unitToken?: string;
70
- hasWhere?: boolean;
71
- valueComponents?: Array<ValueComponent>;
72
- constructor: {
73
- match?(name: string, matches: RegExp, colors: Record<string, Record<string, string>>, colorNames: string[]): RuleMeta;
74
- };
59
+ export interface Rule extends RegisteredRule {
60
+ colored: boolean;
61
+ prefix: string;
62
+ token: string;
63
+ vendorPrefixSelectors: Record<string, string[]>;
64
+ vendorSuffixSelectors: Record<string, string[]>;
65
+ important: boolean;
66
+ media: MediaQuery;
67
+ direction: string;
68
+ theme: string;
69
+ unitToken: string;
70
+ hasWhere: boolean;
71
+ valueComponents: Array<ValueComponent>;
72
+ }
73
+ export interface RegisteredRule {
74
+ id: string;
75
+ match?: RegExp;
76
+ variables?: any;
77
+ order: number;
78
+ definition: RuleDefinition;
75
79
  }
76
80
  export interface RuleDefinition {
77
- id?: string;
81
+ layer?: Layer;
78
82
  match?: RegExp | [string, string[]?];
79
- resolvedMatch?: RegExp;
80
- resolvedVariables?: any;
81
83
  variables?: string[];
82
- order?: number;
83
84
  separators?: string[];
84
85
  shorthand?: string;
85
86
  colored?: boolean;
@@ -87,11 +88,10 @@ export interface RuleDefinition {
87
88
  unit?: any;
88
89
  native?: boolean;
89
90
  declarations?: CSSDeclarations;
90
- layer?: Layer;
91
91
  analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
92
92
  transformValue?(this: Rule, value: string): string;
93
93
  transformValueComponents?(this: Rule, valueComponents: ValueComponent[]): ValueComponent[];
94
- declare?(this: Rule, value: string, unit: string): CSSDeclarations;
94
+ declare?(this: Rule, value: string): CSSDeclarations;
95
95
  delete?(this: Rule, className: string): void;
96
96
  create?(this: Rule, className: string): void;
97
97
  insert?(this: Rule): void;
@@ -109,12 +109,8 @@ export type MediaFeatureComponent = {
109
109
  };
110
110
  export interface MediaQuery {
111
111
  token: string;
112
- features?: {
112
+ features: {
113
113
  [key: string]: MediaFeatureComponent;
114
114
  };
115
115
  type?: string;
116
116
  }
117
- export interface RuleMeta {
118
- value?: [string, string | Record<string, string>];
119
- config?: RuleDefinition;
120
- }