@master/css 2.0.0-beta.194 → 2.0.0-beta.196

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
- var re=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var Ce=Object.prototype.hasOwnProperty;var ke=(t,e)=>{for(var r in e)re(t,r,{get:e[r],enumerable:!0})},je=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of we(e))!Ce.call(t,n)&&n!==r&&re(t,n,{get:()=>e[n],enumerable:!(s=Ne(e,n))||s.enumerable});return t};var Ve=t=>je(re({},"__esModule",{value:!0}),t);var Ae={};ke(Ae,{CONFIG_ESM_TEXT:()=>Oe,CONFIG_TEXT:()=>xe,CONFIG_TS_TEXT:()=>Se,CoreLayer:()=>ae,Layer:()=>se,MasterCSS:()=>Q,Rule:()=>J,animations:()=>ce,config:()=>ee,default:()=>Q,extend:()=>q,fillColorScale:()=>G,functions:()=>fe,initRuntime:()=>pe,mediaQueries:()=>oe,reorderForReadableClasses:()=>me,rules:()=>de,selectors:()=>ne,semantics:()=>le,variables:()=>ue});module.exports=Ve(Ae);function ge(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ye(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function be(t){let e=[];return t.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?e[s]=be(r):ge(r)?e[s]=ye(r):e[s]=q({},r):e[s]=r}),e}function he(t,e){return e==="__proto__"?void 0:t[e]}function q(...t){let e={},r,s;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(a){if(s=he(e,a),r=he(n,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=be(r);return}else if(ge(r)){e[a]=ye(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){e[a]=q({},r);return}else{e[a]=q(s,r);return}})}),e}var H={"(":")","'":"'",'"':'"',"{":"}"};function te(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,s=-1,n="",a,c=e.charCodeAt(0);if(r==1&&c==45)return"\\"+e;for(;++s<r;){if(a=e.charCodeAt(s),a==0){n+="\uFFFD";continue}if(a>=1&&a<=31||a==127||s==0&&a>=48&&a<=57||s==1&&a>=48&&a<=57&&c==45){n+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){n+=e.charAt(s);continue}n+="\\"+e.charAt(s)}return n}var se=(n=>(n[n.NativeShorthand=-300]="NativeShorthand",n[n.Shorthand=-200]="Shorthand",n[n.Native=-100]="Native",n[n.Normal=0]="Normal",n))(se||{}),ae=(a=>(a[a.Semantic=-401]="Semantic",a[a.NativeShorthand=-301]="NativeShorthand",a[a.Shorthand=-201]="Shorthand",a[a.Native=-101]="Native",a[a.Normal=-1]="Normal",a))(ae||{});var Te=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,J=class{constructor(e,r={},s){this.className=e;this.options=r;this.css=s;let{layer:n,unit:a,colored:c,resolvedPropName:m,analyze:o,transform:f,declare:l,create:p,order:h,id:g}=r;this.order=h,this.layer=n,r.unit||(r.unit=""),r.separators||(r.separators=[","]);let{scope:y,important:v,themeDriver:d}=s.config,{selectors:i,mediaQueries:u,stylesBy:b,animations:R}=s,x=b[e];p&&p.call(this,e),this.declarations=r.declarations;let w,N;if(this.colored=c,n===-401)w=e.slice(g.length-1);else{let j;if(o)[j,N]=o.call(this,e);else{let k=e.indexOf(":");this.prefix=e.slice(0,k+1),j=e.slice(k+1)}this.valueComponents=[],w=j.slice(this.parseValue(this.valueComponents,0,j,a))}w[0]==="!"&&(this.important=!0,w=w.slice(1)),this.stateToken=w;let V=(j,k)=>{let I=(O,E,M,W)=>{for(let[L,_]of E)if(L.test(O)){for(let F of _)I(O.replace(L,F),E,M,!0);return}W&&M.push(O)},A=O=>{let E=O.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((_,F)=>F%3?_:_.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),M=[],W="",L=0;for(let _=0;_<E.length;_++){let F=E[_];if(F==="\\"){W+=F+E[++_];continue}!L&&F===","?(M.push(W),W=""):(W+=F,L&&F===")"?L--:F==="("&&L++)}return W&&M.push(W),M},z=[];""in i?I(j,i[""],z,!0):z.push(j);let $={};for(let[O,E]of Object.entries(i)){if(!O)continue;let M=[];for(let W of z)I(W,E,M,!1);M.length&&($[O]=M)}let Y=(O,E)=>{let M=E.reduce((W,L)=>(W.push(...A(L)),W),[]);O in k?k[O].push(...M):k[O]=M},U=Object.keys($);if(U.length)for(let O of U)Y(O,$[O]);else Y("",z)};N?(this.vendorPrefixSelectors={},V(N,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let C=w.split("@"),S=C[0];if(S){this.vendorSuffixSelectors={},V(S,this.vendorSuffixSelectors);for(let j of Object.values(this.vendorSuffixSelectors))for(let k of j){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let I=[":disabled",":active",":focus",":hover"];for(let A=0;A<I.length;A++)if(k.includes(I[A])){(this.priority===-1||this.priority>A)&&(this.priority=A);break}}}else this.vendorSuffixSelectors={"":[""]};let T={},B=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),P=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(B)T[""]=P?[""]:Object.keys(this.vendorSuffixSelectors);else if(P)for(let j in this.vendorPrefixSelectors)T[j]=[""];else for(let j in this.vendorPrefixSelectors){let k=T[j]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,j))k.push(j);else for(let I in this.vendorSuffixSelectors)k.push(I)}for(let j=1;j<C.length;j++){let k=C[j];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let I,A,z=Te.exec(k);if(z)I=z[1],A=k.slice(I.length);else{this.media={token:k,features:{}};let $=[],Y=O=>{if(O==="all"||O==="print"||O==="screen"||O==="speech")this.media.type=O;else if(O==="\u{1F5A8}")this.media.type="print";else if(O==="landscape"||O==="portrait")$.push("(orientation:"+O+")");else if(O==="motion"||O==="reduced-motion")$.push("(prefers-reduced-motion:"+(O==="motion"?"no-preference":"reduce")+")");else{let E=u[O];if(E&&typeof E=="string")$.push(E);else{let M="",W="",L=0;O.startsWith("<=")?(W="<=",M="max-width"):O.startsWith(">=")||E?(W=">=",M="min-width"):O.startsWith(">")?(W=">",M="min-width",L=.02):O.startsWith("<")&&(W="<",M="max-width",L=-.02);let _=W?O.replace(W,""):O,F=u[_];switch(M){case"max-width":case"min-width":let X={};typeof F=="number"?X={type:"number",value:F+L,unit:"px"}:(X=this.parseValueComponent(_,"px"),X.type==="number"&&X.unit==="px"&&(X.value+=L)),this.media.features[M]=X,X.type==="number"?$.push("("+M+":"+(X.value+X.unit)+")"):$.push("("+M+":"+X.value+")");break}}}},U=k.includes("&");if(U){let O=k.split("&");for(let E of O)Y(E)}else Y(k);if(this.media.type&&(A=this.media.type),$.length&&(A=$.join(" and ")),A)I="media";else if(!U){this.theme=k;continue}}A&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+A.replace(/\|/g," "))}}let D;if(this.valueComponents)if(D=this.transformValueComponents(this.valueComponents,a,[]),f&&(D=f.call(this,D,this.css.config)),l){let j,k;this.declarations=l.call(this,k?j:D,k||"")}else m&&(this.declarations={[m]:D});let ie=[];for(let j in this.declarations){let k=z=>{if(R&&(z.startsWith("animation")||z.startsWith("animation-name"))){let $=z.split(":")[1].split("!important")[0].split(" ").filter(Y=>Y in this.css.animations&&(!this.animationNames||!this.animationNames.includes(Y)));$.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...$))}ie.push(z+((this.important||v)&&!z.endsWith("!important")?"!important":""))},I=j+":",A=this.declarations[j];if(typeof A=="object")for(let z of A)k(I+z.toString());else k(I+A.toString())}if(ie.length)for(let j in T)for(let k of T[j]){let I="";this.direction&&(I+="[dir="+this.direction+"] ");let A=this.vendorPrefixSelectors[j],z=this.vendorSuffixSelectors[k],$=A.map(O=>O+I),Y=O=>$.map(E=>(this.theme&&d!=="media"?d==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(y?y+" ":"")+E).reduce((E,M)=>(E.push(z.reduce((W,L)=>(W.push(M+"."+te(O)+L),W),[]).join(",")),E),[]).join(","),U=Y(e)+(x?x.reduce((O,E)=>O+","+Y(E),""):"")+"{"+ie.join(";")+"}";for(let O of Object.keys(this.at).sort((E,M)=>M==="supports"?-1:1))U="@"+O+(O.includes(" ")?"":" ")+this.at[O]+"{"+U+"}";this.theme&&d==="media"&&(U=`@media(prefers-color-scheme:${this.theme}){`+U+"}"),this.natives.push({text:U})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;transformValueComponents=(e,r,s)=>{let{functions:n}=this.css.config,a="";for(let c of e)switch(c.type){case"function":let m=n&&n[c.name];if(m?.transform){let f=m.transform.call(this,this.transformValueComponents(c.childrens,m.unit??r,s),s);a+=typeof f=="string"?f:this.transformValueComponents(f,m?.unit??r,s)}else a+=c.name+c.symbol+this.transformValueComponents(c.childrens,m?.unit??r,s)+H[c.symbol];break;case"variable":let o=this.css.variables[c.name];if(o){let f=(l,p)=>{if(o.themes)if(this.theme){let h=o.themes[this.theme]??o;h?.value&&l(h)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(c.name)||this.variableNames.push(c.name),p();else l(o)};switch(o.type){case"string":f(p=>{let h=[];this.parseValue(h,0,p.value,r,void 0,void 0,[...s,c.name]),a+=this.transformValueComponents(h,r,[...s,c.name])},()=>{a+=`var(--${c.name})`});break;case"number":f(p=>{let h=this.parseValueComponent(p.value,r);a+=h.value+(h.unit??"")},()=>{a+=r?`calc(var(--${c.name}) / 16 * 1rem)`:`var(--${c.name})`});break;case"color":let l=c.alpha?"/"+c.alpha:"";f(p=>{a+=`${p.space}(${p.value}${l})`},()=>{a+=`${o.space}(var(--${c.name})${l})`});break}}else a+="var(--"+c.name+")";break;case"separator":a+=(c.prefix||"")+c.value+(c.suffix||"");break;case"number":a+=c.value+c.unit;break;default:a+=c.value;break}return a};get text(){return this.natives.map(e=>e.text).join("")}parseValue=(e,r,s,n,a,c=void 0,m=[])=>{let o=c===void 0,f=!o&&(c.endsWith("$")||c.endsWith("var")),p=(v=>v==="'"||v==='"')(a),h=[","];this.options.separators.length&&h.push(...this.options.separators);let g="",y=()=>{if(g){let v=!1;if(!f){let d=(i,u)=>{let b=Object.prototype.hasOwnProperty.call(this.options.resolvedVariables,i)?this.options.resolvedVariables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(b){let R=b.name??i;m.includes(R)||(v=!0,e.push({type:"variable",name:R,alpha:u}))}};if(d(g),!v&&this.colored){let[i,u]=g.split("/");d(i,u)}}v||e.push(this.parseValueComponent(g,n)),g=""}};for(;r<s.length;r++){let v=s[r];if(v===a){if(p){let d=0;for(let i=g.length-1;g[i]==="\\";i--)d++;if(d%2){g+=v;continue}else y()}else y();return r}else if(!p&&v in H){let d=g,i={type:"function",name:d,symbol:v,childrens:[]};e.push(i),g="";let u=v==="("&&this.css.config.functions?.[d];!this.colored&&u?.colored&&(this.colored=!0),r=this.parseValue(i.childrens,++r,s,u?.unit??n,H[v],d||c||"")}else if((v==="|"||v===" ")&&a!=="}"&&(!p||c==="path"))y(),e.push({type:"separator",value:" "});else{if(!p){if(v===".")if(isNaN(+s[r+1])){if(o)break}else s[r-1]==="-"&&(g+="0");else if(h.includes(v)){y(),e.push({type:"separator",value:v,prefix:v===","?"":" ",suffix:v===","?"":" "});continue}else if(o&&(v==="#"&&(g||e.length&&e[e.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(v)))break}g+=v}}return y(),r};resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}parseValueComponent(e,r=this.options.unit){let s=r??this.options.unit,n="",a;if(typeof e=="number")return s&&!n?((s==="rem"||s==="em")&&(a=e/this.css.config.rootSize),n=s||""):a=e,{value:a,unit:n,type:"number"};if(s){if(/^\d+\/\d+/.test(e)){let[m,o]=e.split("/");return{value:+m/+o*100,unit:"%",type:"number"}}let c=e.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(c)return a=+c[1],n=c[3]||"",n||((s==="rem"||s==="em")&&(a=a/this.css.config.rootSize),n=s||""),{value:a,unit:n,type:"number"}}return{value:e,type:"string"}}};var Me={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},oe=Me;var Ee={"::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"},ne=Ee;var Ge={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"}},le=Ge;var We={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"}}},ce=We;function K(t){t.startsWith("#")&&(t=t.slice(1));let e,r,s,n;return t.length===3||t.length===4?(e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),s=parseInt(t[2]+t[2],16),n=t.length===4?Math.round(parseInt(t[3]+t[3],16)/255*100)/100:1):(t.length===6||t.length===8)&&(e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),s=parseInt(t.slice(4,6),16),n=t.length===8?Math.round(parseInt(t.slice(6,8),16)/255*100)/100:1),[e,r,s,n]}function ve(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function G(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let s in t)if(s&&+s>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let s=0,n="0"in t?K(t[0]):[0,0,0],a,c,m=[],o=()=>{let f=a-s,l=c.map((p,h)=>(p-n[h])/f);for(let p of m){let h=p-s,g=n.map((y,v)=>Math.round(y+l[v]*h));t[p]="#"+ve.call(this,...g)}};for(let f=1;f<100;f++)f in t?(m.length?(a=f,c=K(t[f]),o(),m.length=0,n=c):n=K(t[f]),s=f):m.push(f);m.length&&(a=100,c="100"in t?K(t[100]):[255,255,255],o())}return e||(t[""]=t[r?"500":"50"]),t}var Be={fontFamily:{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"]},fontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},section:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},flexBasis:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flexDirection:{col:"column","col-reverse":"column-reverse"},width:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},height:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},minWidth:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},boxSizing:{content:"content-box",border:"border-box"},maxHeight:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},position:{abs:"absolute",rel:"relative"},transformBox:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},animationDirection:{alt:"alternate","alt-reverse":"alternate-reverse"},backgroundClip:{content:"content-box",border:"border-box",padding:"padding-box"},backgroundOrigin:{content:"content-box",border:"border-box",padding:"padding-box"},gridAutoColumns:{min:"min-content",max:"max-content"},gridAutoRows:{min:"min-content",max:"max-content"},gridTemplateColumns:{min:"min-content",max:"max-content"},gridTemplateRows:{min:"min-content",max:"max-content"},order:{first:-999999,last:999999},shapeOutside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},clipPath:{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:G({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:G({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:G({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:G({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:G({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:G({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:G({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:G({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:G({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:G({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:G({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:G({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:G({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:G({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:G({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:G({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:G({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:G({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:G({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:G({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},ue=Be;var Z=["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Ie={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=o=>{let f=o.indexOf(":");f!==-1&&(e[o.slice(0,f)]=o.slice(f+1))},s=o=>{let f=l=>{let p=l.slice(te(o.className).length).match(/\{(.*)\}/)[1].split(";");for(let h of p)r(h)};for(let l of o.natives)f(l.text);if(o.animationNames){this.animationNames||(this.animationNames=[]);for(let l of o.animationNames)this.animationNames.includes(l)||this.animationNames.push(l)}if(o.variableNames){this.variableNames||(this.variableNames=[]);for(let l of o.variableNames)this.variableNames.includes(l)||this.variableNames.push(l)}},n=[],a="",c=()=>{a&&(n.push(a.replace(/ /g,"|")),a="")},m=1;(function o(f){for(;m<t.length;m++){let l=t[m];if(!f){if(l===";"){c();continue}if(l==="}")break}if(a+=l,f===l){if(f==="'"||f==='"'){let p=0;for(let h=a.length-2;a[h]==="\\";h--)p++;if(p%2)continue}break}else l in H&&f!=="'"&&f!=='"'&&(m++,o(H[l]))}})(void 0),c();for(let o of n){let f=this.css.create(o);if(f.length)for(let l of f)s(l);else r(o)}return e}},variable:{match:/^\$[\w-]+:./,colored:!0,layer:-1,declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101},fontFamily:{match:["f(?:ont)?"],layer:-101},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(t){switch(t){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"}}}},fontStyle:{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-101,unit:"deg"},fontVariantNumeric:{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-101},fontVariant:{layer:-301},fontFeatureSettings:{match:/^font-feature:./,layer:-101},font:{match:/^f:./,layer:-301,variableGroups:["fontFamily","fontVariant","fontWeight","fontSize","fontStyle","lineHeight"]},color:{match:/^(?:color|fg|foreground):./,layer:-101,colored:!0},marginLeft:{match:/^ml:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginRight:{match:/^mr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginTop:{match:/^mt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginBottom:{match:/^mb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginX:{match:/^(?:mx|margin-x):./,unit:"rem",layer:-201,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}},variableGroups:["spacing"]},marginY:{match:/^(?:my|margin-y):./,unit:"rem",layer:-201,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}},variableGroups:["spacing"]},margin:{match:/^m:./,unit:"rem",layer:-301,variableGroups:["spacing"]},marginInlineStart:{match:/^mis:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInlineEnd:{match:/^mie:./,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInline:{match:/^mi:./,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingLeft:{match:/^pl:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingRight:{match:/^pr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingTop:{match:/^pt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingBottom:{match:/^pb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingX:{match:/^(?:px|padding-x):./,unit:"rem",layer:-201,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}},variableGroups:["spacing"]},paddingY:{match:/^(?:py|padding-y):./,unit:"rem",layer:-201,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}},variableGroups:["spacing"]},padding:{match:/^p:./,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingInlineStart:{match:/^pis:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInlineEnd:{match:/^pie:./,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInline:{match:/^pi:./,unit:"rem",layer:-301,variableGroups:["spacing"]},flexBasis:{variableGroups:["section"],unit:"rem",layer:-101},flexWrap:{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-101},flexGrow:{layer:-101},flexShrink:{layer:-101},flexDirection:{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-101},flex:{layer:-301},display:{match:/^d:./,layer:-101},width:{match:/^w:./,unit:"rem",layer:-101,variableGroups:["section"]},height:{match:/^h:./,unit:"rem",layer:-101,variableGroups:["section"]},minWidth:{match:/^min-w:./,unit:"rem",layer:-101,variableGroups:["section"]},minHeight:{match:/^min-h:./,unit:"rem",layer:-101,variableGroups:["section"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:/^min:./,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:/^max:./,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},boxSizing:{match:/^box:./,layer:-101},boxDecorationBreak:{match:["section",["slice","clone"]],layer:-101,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},contain:{layer:-101},content:{layer:-101},counterIncrement:{layer:-101},counterReset:{layer:-101},letterSpacing:{match:/^ls:./,layer:-101,unit:"em"},lineHeight:{match:/^lh:./,layer:-101},objectFit:{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-101},objectPosition:{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-101},textAlign:{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-101},textDecorationColor:{match:["text-decoration"],layer:-101,colored:!0},textDecorationStyle:{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-101},textDecorationThickness:{match:["text-decoration",["from-font"]],numeric:!0,layer:-101,unit:"em"},textDecorationLine:{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-101},textDecoration:{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-301},textUnderlineOffset:{unit:"rem",layer:-101,variableGroups:["spacing"]},textOverflow:{match:["t(?:ext)?",["ellipsis","clip"]],layer:-101},textOrientation:{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-101},textTransform:{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-101},textRendering:{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-101},textIndent:{unit:"rem",layer:-101},verticalAlign:{match:/^(?:v|vertical):./,layer:-101},columns:{match:/^(?:columns|cols):./,layer:-301},whiteSpace:{layer:-101},top:{layer:-101,unit:"rem",variableGroups:["spacing"]},bottom:{layer:-101,unit:"rem",variableGroups:["spacing"]},left:{layer:-101,unit:"rem",variableGroups:["spacing"]},right:{layer:-101,unit:"rem",variableGroups:["spacing"]},inset:{unit:"rem",layer:-301,variableGroups:["spacing"]},lines:{match:/^lines:./,declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:/^max-h:./,unit:"rem",layer:-101,variableGroups:["section"]},maxWidth:{match:/^max-w:./,unit:"rem",layer:-101,variableGroups:["section"]},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{layer:-301,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:./,layer:-101},position:{layer:-101},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{layer:-101,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:/^s(?:hadow)?:./,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101},transformStyle:{match:["transform",["flat","preserve-3d"]],layer:-101},transformOrigin:{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-101},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-101,analyze(t){return[t.startsWith("transform")?t.slice(10):t]},variableGroups:["spacing"]},transitionProperty:{match:/^~property:./,layer:-101},transitionTimingFunction:{match:/^~easing:./,layer:-101},transitionDuration:{match:/^~duration:./,layer:-101,unit:"ms"},transitionDelay:{match:/^~delay:./,layer:-101,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},layer:-301},animationDelay:{match:/^@delay:./,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:./,layer:-101},animationDuration:{match:/^@duration:./,layer:-101,unit:"ms"},animationFillMode:{match:/^@fill:./,layer:-101},animationIterationCount:{match:/^@iteration:./,layer:-101},animationName:{match:/^@name:./,layer:-101},animationPlayState:{match:/^@play:./,layer:-101},animationTimingFunction:{match:/^@easing:./,layer:-101},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-301,analyze(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}}},borderCollapse:{match:["b(?:order)?",["collapse","separate"]],layer:-101},borderSpacing:{unit:"rem",layer:-101},borderTopColor:{match:["b(?:t|order-top(?:-color)?)"],layer:-101,colored:!0},borderBottomColor:{match:["b(?:b|order-bottom(?:-color)?)"],layer:-101,colored:!0},borderLeftColor:{match:["b(?:l|order-left(?:-color)?)"],layer:-101,colored:!0},borderRightColor:{match:["b(?:r|order-right(?:-color)?)"],layer:-101,colored:!0},borderXColor:{match:["b(?:x|order-x(?:-color)?)"],layer:-201,colored:!0,declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:["b(?:order)?(?:-color)?"],layer:-301,colored:!0},borderTopLeftRadius:{match:/^r(?:tl|lt):./,unit:"rem",layer:-101},borderTopRightRadius:{match:/^r(?:tr|rt):./,unit:"rem",layer:-101},borderBottomLeftRadius:{match:/^r(?:bl|lb):./,unit:"rem",layer:-101},borderBottomRightRadius:{match:/^r(?:br|rb):./,unit:"rem",layer:-101},borderTopRadius:{match:/^rt:./,unit:"rem",layer:-201,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:/^rb:./,unit:"rem",layer:-201,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:/^rl:./,unit:"rem",layer:-201,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:/^rr:./,unit:"rem",layer:-201,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:/^r:./,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",Z],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",Z],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",Z],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",Z],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",Z],layer:-201,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",Z],layer:-201,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:["b(?:order)?(?:-style)?",Z],layer:-301},borderTopWidth:{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderBottomWidth:{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderLeftWidth:{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderRightWidth:{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderXWidth:{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-301},borderImageOutset:{unit:"rem",layer:-101},borderImageRepeat:{match:["border-image",["stretch","repeat","round","space"]],layer:-101},borderImageSlice:{layer:-101},borderImageSource:{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-101},borderImageWidth:{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-101},borderImage:{layer:-301},borderTop:{match:/^bt:./,layer:-101,unit:"rem",colored:!0},borderBottom:{match:/^bb:./,layer:-101,unit:"rem",colored:!0},borderLeft:{match:/^bl:./,layer:-101,unit:"rem",colored:!0},borderRight:{match:/^br:./,layer:-101,unit:"rem",colored:!0},borderX:{match:/^(?:bx|border-x):./,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:/^(?:by|border-y):./,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:/^b:./,unit:"rem",colored:!0,layer:-301},backgroundAttachment:{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-101},backgroundBlendMode:{layer:-101},backgroundColor:{match:["(?:bg|background)"],layer:-101,colored:!0},backgroundClip:{match:["(?:bg|background)",["text"]],layer:-101,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101},backgroundPosition:{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-101,unit:"px"},backgroundRepeat:{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-101},backgroundSize:{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-101},backgroundImage:{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},background:{match:/^bg:./,colored:!0,layer:-301},gradient:{match:/^gradient\(/,layer:-101,colored:!0,declare(t){return{"background-image":"linear-"+t}}},mixBlendMode:{match:/^blend:./,layer:-101},backdropFilter:{match:/^bd:./,layer:-101,colored:!0,declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-101,colored:!0},fill:{match:/^fill:./,layer:-101,colored:!0},strokeDasharray:{layer:-101},strokeDashoffset:{layer:-101,variableGroups:["spacing"]},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101,variableGroups:["spacing"]},y:{layer:-101,variableGroups:["spacing"]},cx:{layer:-101,variableGroups:["spacing"]},cy:{layer:-101,variableGroups:["spacing"]},rx:{layer:-101},ry:{layer:-101},gridColumnStart:{match:/^grid-col-start:./,layer:-101},gridColumnEnd:{match:/^grid-col-end:./,layer:-101},gridColumn:{match:/^grid-col(?:umn)?(?:-span)?:./,layer:-301,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:/^grid-cols:./,declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:./,layer:-301,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:/^grid-rows:./,declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:./,layer:-101},gridAutoFlow:{match:/^grid-flow:./,layer:-101},gridAutoRows:{layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:./,layer:-101,unit:"rem"},gridTemplateRows:{layer:-101,unit:"rem"},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:./,unit:"rem",layer:-101,variableGroups:["spacing"]},rowGap:{match:/^gap-y:./,unit:"rem",layer:-101,variableGroups:["spacing"]},gap:{unit:"rem",layer:-301,variableGroups:["spacing"]},order:{match:/^o:./,layer:-101},breakInside:{layer:-101},breakBefore:{layer:-101},breakAfter:{layer:-101},aspectRatio:{match:/^aspect:./,layer:-101},columnSpan:{match:/^col-span:./,layer:-101},alignContent:{match:/^ac:./,layer:-101},alignItems:{match:/^ai:./,layer:-101},alignSelf:{match:/^as:/,layer:-101},justifyContent:{match:/^jc:./,layer:-101},justifyItems:{match:/^ji:./,layer:-101},justifySelf:{match:/^js:./,layer:-101},placeContent:{layer:-301},placeItems:{layer:-301},placeSelf:{layer:-301},listStylePosition:{match:["list-style",["inside","outside"]],layer:-101},listStyleType:{match:["list-style",["disc","decimal"]],layer:-101},listStyleImage:{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},listStyle:{layer:-301},outlineColor:{match:["outline"],layer:-101,colored:!0},outlineOffset:{unit:"rem",layer:-101,variableGroups:["spacing"]},outlineStyle:{match:["outline",["dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},outlineWidth:{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-101},outline:{unit:"rem",layer:-301,colored:!0,variableGroups:["outlineWidth","outlineStyle","outlineOffset","outlineColor"]},accentColor:{match:/^accent:./,layer:-101,colored:!0},appearance:{layer:-101},caretColor:{match:/^caret:./,layer:-101,colored:!0},scrollBehavior:{layer:-101},scrollMarginLeft:{match:/^scroll-ml:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginRight:{match:/^scroll-mr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginTop:{match:/^scroll-mt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginBottom:{match:/^scroll-mb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}},variableGroups:["spacing"]},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}},variableGroups:["spacing"]},scrollMargin:{match:/^scroll-m:./,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollPaddingLeft:{match:/^scroll-pl:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingRight:{match:/^scroll-pr:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingTop:{match:/^scroll-pt:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingBottom:{match:/^scroll-pb:./,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}},variableGroups:["spacing"]},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):./,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}},variableGroups:["spacing"]},scrollPadding:{match:/^scroll-p:./,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollSnapAlign:{match:["scroll-snap",["start","end","center"]],layer:-101},scrollSnapStop:{match:["scroll-snap",["normal","always"]],layer:-101},scrollSnapType:{match:["scroll-snap",["x","y","block","inline","both"]],layer:-101},willChange:{layer:-101},writingMode:{match:/^writing:./,layer:-101},direction:{layer:-101},shapeOutside:{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-101},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101,variableGroups:["spacing"]},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:./,layer:-101},quotes:{layer:-101},maskImage:{layer:-101,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},de=Ie;var Pe={$:{transform(t){return[{type:"variable",name:t}]}},calc:{transform(t,e){let r=[],s=this.css.config.functions,n=0,a=(c,m,o)=>{let f=!1,l="",p=(h,g="",y="")=>{l&&(!f&&!o?c.push(this.parseValueComponent(l,s.calc.unit)):c.push({type:"string",value:l}),l=""),h&&(g&&t[n-1]===" "&&(g=""),y&&t[n+1]===" "&&(y=""),m?c.push({type:"separator",value:h}):c.push({type:"separator",value:h,prefix:g,suffix:y})),f=!1};for(;n<t.length;n++){let h=t[n];if(h==="("){let g=/^([+-])/.exec(l);g&&c.push({type:"string",value:g[1]});let y=g?l.slice(1):l,v={type:"function",name:y,symbol:h,childrens:[]};c.push(v),l="",n++;let d=v.name==="$"||v.name==="var";a(v.childrens,y!==""&&y!=="calc"&&(d||Object.prototype.hasOwnProperty.call(s,y)),f||d)}else if(h===")"){p("");break}else if(h===",")p(h,""," ");else if(h===" ")p(h);else{let g=t[n-1];switch(h){case"+":!l&&g!==")"?l+=h:p(h," "," ");break;case"-":!l&&g!==")"?l+=h:p(h," "," ");break;case"*":p(h," "," ");break;case"/":p(h," "," "),f=!0;break;default:l+=h;break}}}p("")};return a(r,!1,!1),"calc("+this.transformValueComponents(r,s.calc.unit??this.options.unit,e)+")"}},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}},fe=Pe;var ee={mediaQueries:oe,selectors:ne,semantics:le,rules:de,functions:fe,animations:ce,variables:ue,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var Re=[",",".","#","[","!","*",">","+","~",":","@"];var Q=class{constructor(e=ee){this.customConfig=e;e?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ee,e),this.resolve(),globalThis.masterCSSs.push(this)}static config=ee;static refresh=e=>{for(let r of globalThis.masterCSSs)r.refresh(e)};rules=[];ruleBy={};classesUsage={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.hasVariablesRule=!1,this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:s,variables:n,semantics:a,mediaQueries:c,rules:m,animations:o}=this.config;function f(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function l(i,u,b="",R={}){let x=C=>C?(b?b+"-":"")+C:b,w=Object.entries(i),N=[],V=[];for(let C of w){let S=C[1];(typeof S=="object"&&!Array.isArray(S)?N:V).push(C)}for(let[C,S]of N)l(S,u,x(C),R);if(u&&b)V.length&&(R[b]=V.reduce((C,[S,T])=>(C[S]=T,C),{}));else for(let[C,S]of V)R[x(C)]=S;return R}if(s)for(let[i,u]of Object.entries(l(s,!1))){let b=new RegExp(f(i)+"(?![a-z-])");for(let R of Array.isArray(u)?u:[u]){let x=R.match(/^::-[a-z]+-/m)?.[0]??"",w=this.selectors[x];w||(w=this.selectors[x]=[]);let N=w.find(([V])=>V===b);N||(N=[b,[]],w.push(N)),N[1].push(R)}}if(n){let i={};for(let u in n){let b=(R,x,w=void 0)=>{if(!R)return;let N=(C,S,T=void 0,B=void 0)=>{if(S===void 0)return;if(S.type==="color"){if(B){let D=S.value.indexOf("/");S={...S,value:D===-1?S.value+" / "+(B.startsWith("0.")?B.slice(1):B):S.value.slice(0,D+2)+(+S.value.slice(D+2)*+B).toString().slice(1)}}e[C]=void 0}let P=T??w;if(P!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,C)){let D=this.variables[C];P?(D.themes||(D.themes={}),D.themes[P]=S):(D.value=S.value,D.space=S.space)}else P?this.variables[C]={type:S.type,space:S.space,themes:{[P]:S}}:this.variables[C]=S;else this.variables[C]=S},V=typeof R;if(V==="object")if(Array.isArray(R))N(x,{type:"string",value:R.join(",")});else{let C=Object.keys(R);for(let S of C)S===""||S.startsWith("@")?b(R[S],x,S||C.some(T=>T.startsWith("@"))?S.slice(1):void 0):b(R[S],x+"-"+S)}else if(V==="number")N(x,{type:"number",value:R}),N("-"+x,{type:"number",value:R*-1});else if(V==="string"){let C=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(R);if(C)Object.prototype.hasOwnProperty.call(i,x)||(i[x]={}),i[x][w]=()=>{delete i[x][w];let[S,T]=C[1].split("@");if(S){if(Object.prototype.hasOwnProperty.call(i,S))for(let P of Object.keys(i[S]))i[S][P]?.();let B=this.variables[S];if(B)if(T===void 0&&B.themes){N(x,{type:B.type,value:B.value,space:B.space},"",C[2]);for(let P in B.themes)N(x,B.themes[P],P,C[2])}else{let P=T!==void 0?B.themes?.[T]:B;P&&N(x,{type:P.type,value:P.value,space:P.space},void 0,C[2])}}};else{let S=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(R);if(S){let[T,B,P,D]=K(S[1]);N(x,{type:"color",value:`${T} ${B} ${P}${D===1?"":" / "+D}`,space:"rgb"})}else{let T=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(R);if(T)N(x,{type:"color",value:T[1]+" "+T[2]+" "+T[3]+(T[4]?" / "+(T[4].startsWith("0.")?T[4].slice(1):T[4]):""),space:"rgb"});else{let B=/^hsl\((.*?)\)$/.exec(R);B?N(x,{type:"color",value:B[1],space:"hsl"}):N(x,{type:"string",value:R})}}}}};b(n[u],u)}for(let u of Object.keys(i))for(let b of Object.keys(i[u]))i[u][b]?.()}if(c&&(this.mediaQueries=l(c,!1)),o)for(let i in o){let u=this.animations[i]={},b=o[i];for(let R in b){let x=u[R]={},w=b[R];for(let N in w)x[N]=w[N]}}let p=r?l(r,!1):{},h=Object.keys(p),g=i=>{if(Object.prototype.hasOwnProperty.call(this.styles,i))return;let u=this.styles[i]=[],b=p[i];if(!b)return;let R=b.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let x of R){let w=N=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,N)){let V=this.stylesBy[N];V.includes(i)||V.push(i)}else this.stylesBy[N]=[i];u.includes(N)||u.push(N)};if(h.includes(x)){g(x);for(let N of this.styles[x])w(N)}else w(x)}};for(let i of h)g(i);a&&Object.entries(a).sort((i,u)=>i[0].localeCompare(u[0])).forEach(([i,u],b)=>{this.semanticRuleOptions.push({id:"."+i,resolvedMatch:new RegExp("^"+f(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:b,declarations:u,layer:-401})});let y=Object.entries(m).sort((i,u)=>i[1].layer!==u[1].layer?(u[1].layer||0)-(i[1].layer||0):u[0].localeCompare(i[0])),v=y.length,d=Object.keys(e);y.forEach(([i,u],b)=>{this.ruleOptions.push(u),u.order=this.semanticRuleOptions.length+v-1-b;let R=u.match;u.id=i,(u.layer===-100||u.layer===-300||u.layer===-101||u.layer===-301)&&(u.resolvedPropName=i.replace(/(?!^)[A-Z]/g,w=>"-"+w).toLowerCase()),u.resolvedVariables={};let x=w=>{Object.assign(u.resolvedVariables,Object.keys(this.variables).filter(N=>N.startsWith(w+"-")||N.startsWith("-"+w+"-")).reduce((N,V)=>(N[V.slice(w.length+(w.startsWith("-")?0:1))]={...this.variables[V],name:V},N),{}))};if(u.variableGroups)for(let w of u.variableGroups)x(w);if(x(i),R)if(Array.isArray(R)){let[w,N=[]]=R,V=[];N.length&&V.push(`(?:${N.join("|")})(?![a-zA-Z0-9-])`),Object.keys(u.resolvedVariables).length&&V.push(`(?:${Object.keys(u.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),u.colored&&V.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${d.join("|")})(?![a-zA-Z0-9-])`),u.numeric&&V.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),u.resolvedMatch=new RegExp(`^${w}:(?:${V.join("|")})[^|]*?(?:@|$)`)}else u.resolvedMatch=R})}observe(e,r={subtree:!0,childList:!0}){if(this.root===e)return this;this.root=e;let s=e===document;s&&(globalThis.masterCSS=this),this.host=s?document.documentElement:this.root.host;let n=s?document.head:e,a=s?document.styleSheets:e.styleSheets;for(let m of a){let{ownerNode:o}=m;if(o&&o.id==="master"){this.style=o;break}}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let o=this.style.sheet.cssRules[m];if(o instanceof CSSStyleRule&&o.style[0].startsWith("--")&&!o.selectorText.startsWith(".\\$")||o.constructor.name==="CSSKeyframesRule")continue;let f=p=>{if(p.selectorText){let g=p.selectorText.split(", ")[0].split(" ");for(let y=0;y<g.length;y++){let v=g[y];if(v[0]==="."){let d=v.slice(1),i="";for(let u=0;u<d.length;u++){let b=d[u],R=d[u+1];if(b==="\\"){if(u++,R!=="\\"){i+=R;continue}}else if(Re.includes(b))break;i+=b}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,i)&&!Object.prototype.hasOwnProperty.call(this.styles,i)){let u=this.create(i)[0];if(u)return u}}}}else if(p.cssRules)for(let h=0;h<p.cssRules.length;h++){let g=f(p.cssRules[h]);if(g)return g}},l=f(o);if(l){this.rules.push(l),this.ruleBy[l.className]=l;for(let p=0;p<l.natives.length;p++)l.natives[p].cssRule=this.style.sheet.cssRules[m+p];m+=l.natives.length-1,this.handleRuleWithVariableNames(l),this.handleRuleWithAnimationNames(l),l.options.insert?.call(l)}}else this.style=document.createElement("style"),this.style.id="master",n.append(this.style);let c=m=>{m.forEach(o=>{Object.prototype.hasOwnProperty.call(this.classesUsage,o)?this.classesUsage[o]++:(this.classesUsage[o]=1,this.insert(o))})};return c(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(m=>c(m.classList)),this.observer=new MutationObserver(m=>{let o={},f=[],l=[],p=[],h=(d,i)=>{i?d.classList.forEach(y):d.classList.forEach(g);let u=d.children;for(let b=0;b<u.length;b++){let R=u[b];R.classList&&(l.push(R),h(R,i))}},g=d=>{Object.prototype.hasOwnProperty.call(o,d)?o[d]++:o[d]=1},y=d=>{Object.prototype.hasOwnProperty.call(o,d)?o[d]--:Object.prototype.hasOwnProperty.call(this.classesUsage,d)&&(o[d]=-1)},v=(d,i)=>{for(let u=0;u<d.length;u++){let b=d[u];b.classList&&!l.includes(b)&&!p.includes(b)&&(b.isConnected!==i?(l.push(b),h(b,i)):p.push(b))}};for(let d=0;d<m.length;d++){let i=m[d],{addedNodes:u,removedNodes:b,type:R,target:x}=i;if(R==="attributes"){if(f.find(w=>w.target===x))continue;f.push(i)}else v(u,!1),(!x.isConnected||!l.includes(x))&&v(b,!0)}if(!(!f.length&&!Object.keys(o).length)){for(let{oldValue:d,target:i}of f){let u=l.includes(i),b=i.classList,R=d?d.split(" "):[];if(u){if(i.isConnected)continue;for(let x of R)b.contains(x)||y(x)}else if(i.isConnected){b.forEach(x=>{R.includes(x)||g(x)});for(let x of R)b.contains(x)||y(x)}}for(let d in o){let i=o[d],u=(this.classesUsage[d]||0)+i;u===0?(delete this.classesUsage[d],this.delete(d)):(Object.prototype.hasOwnProperty.call(this.classesUsage,d)||this.insert(d),this.classesUsage[d]=u)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.classesUsage={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r of this.ruleOptions)if(r.resolvedMatch&&r.resolvedMatch.test(e)||(r.layer===-100||r.layer===-300||r.layer===-101||r.layer===-301)&&e.startsWith(r.resolvedPropName+":"))return r;for(let r of this.semanticRuleOptions)if(r.resolvedMatch.test(e))return r}create(e){let r=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let n=this.match(s);if(n)return new J(s,n,this)};return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(s=>r(s)):[r(e)]).filter(s=>s&&s.text)}refresh(e=this.customConfig){if(e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(ee,e),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let s in this.classesUsage)this.insert(s)}destroy(){this.disconnect(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1)}delete(e){let r=this.style?.sheet,s=n=>{let a=this.ruleBy[n];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,n)&&this.stylesBy[n].some(c=>Object.prototype.hasOwnProperty.call(this.classesUsage,c)))){if(r&&a.natives.length){let c=a.natives[0];for(let m=0;m<r.cssRules.length;m++)if(r.cssRules[m]===c.cssRule){for(let f=0;f<a.natives.length;f++)r.deleteRule(m);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[n],a.variableNames){let c=this.rules[0];for(let m of a.variableNames){let o=this.variables[m];if(!--o.usage){let f=c.natives.indexOf(o.natives[0]);for(let l=0;l<o.natives.length;l++)this.style.sheet.deleteRule(f),c.natives.splice(f,1);o.natives=void 0}}c.natives.length||(this.rules.splice(0,1),this.hasVariablesRule=!1)}if(a.animationNames){let c=this.hasVariablesRule?1:0,m=this.hasVariablesRule?this.rules[0].natives.length:0,o=this.rules[c];for(let f of a.animationNames){let l=this.animations[f];if(!--l.usage){let p=o.natives.indexOf(l.native);this.style.sheet.deleteRule(m+p),o.natives.splice(p,1),l.native=void 0}}o.natives.length||(this.rules.splice(c,1),this.hasKeyframesRule=!1)}a.options.delete?.call(a,n)}};if(Object.prototype.hasOwnProperty.call(this.styles,e)){for(let n of this.styles[e])Object.prototype.hasOwnProperty.call(this.classesUsage,n)||s(n);delete this.ruleBy[e]}else s(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let s,n=this.rules.length-1,{media:a,order:c,priority:m,hasWhere:o,className:f}=r,l=(g,y,v)=>{let d=g;for(;d<=n;d++){let i=this.rules[d];if(y?.(i))return v?-1:d-1;if(v?.(i))return d}return v?-1:d-1},p,h;if(a){let g=this.rules.findIndex(y=>y.media);if(g===-1)s=n+1;else{let{"max-width":y,"min-width":v}=a.features;if(y||v){let d=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(d===-1)s=n+1;else if(y&&v){if(m===-1?(p=l(d,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),h=l(d,i=>i.priority!==-1)):(p=l(d,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),h=n),p!==-1){let i=y.value-v.value,u=h,b=p;for(p=void 0;u>=b;u--){let{"max-width":R,"min-width":x}=this.rules[u].media.features,w=R.value-x.value;if(w<i)h=u-1;else if(w===i)p=u;else break}}if(p!==-1){let i=y.value-v.value;for(let u=h;u>=p;u--){let{"max-width":b,"min-width":R}=this.rules[u].media.features,x=b.value-R.value;if(x<i)h=u-1;else if(x>i){p=u+1;break}}}}else if(v){if(m===-1?(p=l(d,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),h=l(d,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(p=l(d,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),h=l(d,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),p!==-1)for(let i=h;i>=p;i--){let u=this.rules[i].media.features["min-width"].value;if(u>v.value)h=i-1;else if(u<v.value){p=i+1;break}}}else if(m===-1?(p=l(d,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),h=l(d,i=>i.media.features["min-width"]||i.priority!==-1)):(p=l(d,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),h=l(d,i=>i.media.features["min-width"]&&i.priority!==-1)),p!==-1)for(let i=h;i>=p;i--){let u=this.rules[i].media.features["max-width"].value;if(u<y.value)h=i-1;else if(u>y.value){p=i+1;break}}}else m===-1?(p=g,h=l(g,d=>d.media?.features["max-width"]||d.media?.features["min-width"]||d.priority!==-1)):(p=l(g,d=>d.media?.features["max-width"]||d.media?.features["min-width"],d=>d.priority!==-1),h=l(g,d=>d.media?.features["max-width"]||d.media?.features["min-width"]))}}else{let g=this.hasVariablesRule?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;m===-1?(p=g,h=l(g,y=>y.media||y.priority!==-1)):(p=l(g,y=>y.media,y=>y.priority!==-1),h=l(g,y=>y.media))}if(s===void 0)if(p===-1)s=h+1;else{if(m===-1)for(let g=p;g<=h;g++){let y=this.rules[g];if(!(!o&&y.hasWhere)&&(o&&!y.hasWhere||y.order>=c)){s=g;break}}else for(let g=p;g<=h;g++){let y=this.rules[g];if(!(!o&&y.hasWhere)){if(o&&!y.hasWhere){s=g;break}if(y.priority<m){s=g;break}else if(y.priority===m){if(y.order>=c){s=g;break}}else s=g+1}}s===void 0&&(s=h+1)}if(this.rules.splice(s,0,r),this.ruleBy[f]=r,this.style){let g=this.style.sheet,y=0,v=d=>{let i=this.rules[d];if(i){if(!i.natives.length)return v(d-1);let u=i.natives[i.natives.length-1].cssRule;for(let b=0;b<g.cssRules.length;b++)if(g.cssRules[b]===u){y=b+1;break}}};v(s-1);for(let d=0;d<r.natives.length;)try{let i=r.natives[d];g.insertRule(i.text,y),i.cssRule=g.cssRules[y++],d++}catch(i){console.error(i),r.natives.splice(d,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.options.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}getExtendedConfig(...e){let r=a=>{let c=q({},a),m=o=>{for(let f in o){let l=o[f];typeof l=="object"&&!Array.isArray(l)?m(l):f&&!f.startsWith("@")&&(o[f]={"":l})}};return c.styles?m(c.styles):c.styles={},c.mediaQueries?m(c.mediaQueries):c.mediaQueries={},c.variables?m(c.variables):c.variables={},c},s=[];for(let a of e)(function c(m){if(m.extends?.length)for(let o of m.extends)c("config"in o?o.config:o);s.push(r(m))})(a);let n=s[0];for(let a=1;a<s.length;a++){let c=s[a];n=q(n,c),Object.prototype.hasOwnProperty.call(c,"animations")&&Object.assign(n.animations,c.animations)}return n}handleRuleWithAnimationNames(e){if(e.animationNames){let r=this.style?.sheet;for(let s of e.animationNames){let n=this.animations[s];if(n.usage)n.usage++;else{let a={text:`@keyframes ${s}{`+Object.entries(n).filter(([o])=>o!=="usage"&&o!=="native").map(([o,f])=>`${o}{${Object.entries(f).map(([l,p])=>l+":"+p).join(";")}}`).join("")+"}"},c=this.hasVariablesRule?1:0,m;if(this.hasKeyframesRule?(m=this.rules[c]).natives.push(a):(this.rules.splice(c,0,m={natives:[a],get text(){return this.natives.map(o=>o.text).join("")}}),this.hasKeyframesRule=!0),r){let o;for(let f=0;f<r.cssRules.length;f++){let l=r.cssRules[f];if(l.constructor.name!=="CSSKeyframesRule")break;if(l.name===s){o=l;break}}if(o)a.cssRule=o;else{let f=(this.hasVariablesRule?this.rules[0].natives.length:0)+m.natives.length;r.insertRule(a.text,f),a.cssRule=r.cssRules[f]}}n.usage=1,n.native=a}}}}handleRuleWithVariableNames(e){if(e.variableNames){let r=this.style?.sheet;for(let s of e.variableNames){let n=this.variables[s];if(n.usage)n.usage++;else{let a=[],c=(o,f)=>{f.value&&a.push({text:`${o?this.config.themeDriver==="media"?`@media(prefers-color-scheme:${o})`:this.config.themeDriver==="host"?`:host(.${o})`:`.${o}`:":root"}{--${s}:${f.value}}`})};if(c("",n),n.themes)for(let o in n.themes)c(o,n.themes[o]);let m=0;if(this.hasVariablesRule?(m=this.rules[0].natives.length,this.rules[0].natives.push(...a)):(this.rules.splice(0,0,{natives:[...a],get text(){return this.natives.map(o=>o.text).join("")}}),this.hasVariablesRule=!0),r)for(let o=0;o<a.length;o++){let f=a[o],l=m+o;r.insertRule(f.text,l),f.cssRule=r.cssRules[l]}n.usage=1,n.natives=a}}}}};globalThis.MasterCSS=Q,globalThis.masterCSSs||(globalThis.masterCSSs=[]);var xe=`/** @type {import('@master/css').Config} */
1
+ var re=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var we=Object.prototype.hasOwnProperty;var ke=(t,e)=>{for(var r in e)re(t,r,{get:e[r],enumerable:!0})},je=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ce(e))!we.call(t,n)&&n!==r&&re(t,n,{get:()=>e[n],enumerable:!(s=Ne(e,n))||s.enumerable});return t};var Te=t=>je(re({},"__esModule",{value:!0}),t);var Ae={};ke(Ae,{CONFIG_ESM_TEXT:()=>Se,CONFIG_TEXT:()=>xe,CONFIG_TS_TEXT:()=>Oe,CoreLayer:()=>ae,Layer:()=>se,MasterCSS:()=>Q,Rule:()=>J,animations:()=>ce,config:()=>ee,default:()=>Q,extend:()=>q,fillColorScale:()=>G,functions:()=>fe,initRuntime:()=>he,mediaQueries:()=>ne,reorderForReadableClasses:()=>me,rules:()=>de,selectors:()=>oe,semantics:()=>le,variables:()=>ue});module.exports=Te(Ae);function ge(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ye(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function be(t){let e=[];return t.forEach(function(r,s){typeof r=="object"&&r!==null?Array.isArray(r)?e[s]=be(r):ge(r)?e[s]=ye(r):e[s]=q({},r):e[s]=r}),e}function pe(t,e){return e==="__proto__"?void 0:t[e]}function q(...t){let e={},r,s;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(a){if(s=pe(e,a),r=pe(n,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=be(r);return}else if(ge(r)){e[a]=ye(r);return}else if(typeof s!="object"||s===null||Array.isArray(s)){e[a]=q({},r);return}else{e[a]=q(s,r);return}})}),e}var H={"(":")","'":"'",'"':'"',"{":"}"};function te(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,s=-1,n="",a,o=e.charCodeAt(0);if(r==1&&o==45)return"\\"+e;for(;++s<r;){if(a=e.charCodeAt(s),a==0){n+="\uFFFD";continue}if(a>=1&&a<=31||a==127||s==0&&a>=48&&a<=57||s==1&&a>=48&&a<=57&&o==45){n+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){n+=e.charAt(s);continue}n+="\\"+e.charAt(s)}return n}var se=(n=>(n[n.NativeShorthand=-300]="NativeShorthand",n[n.Shorthand=-200]="Shorthand",n[n.Native=-100]="Native",n[n.Normal=0]="Normal",n))(se||{}),ae=(a=>(a[a.Semantic=-401]="Semantic",a[a.NativeShorthand=-301]="NativeShorthand",a[a.Shorthand=-201]="Shorthand",a[a.Native=-101]="Native",a[a.Normal=-1]="Normal",a))(ae||{});var Ve=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,J=class{constructor(e,r={},s){this.className=e;this.options=r;this.css=s;let{layer:n,unit:a,colored:o,resolvedPropName:p,analyze:u,transform:h,declare:c,create:l,order:d,id:g}=r;this.order=d,this.layer=n,r.unit||(r.unit=""),r.separators||(r.separators=[","]);let{scope:y,important:v,themeDriver:m}=s.config,{selectors:i,mediaQueries:f,stylesBy:b,animations:x}=s,R=b[e];l&&l.call(this,e),this.declarations=r.declarations;let C,N;if(this.colored=o,n===-401)C=e.slice(g.length-1);else{let j;if(u)[j,N]=u.call(this,e);else{let k=e.indexOf(":");this.prefix=e.slice(0,k+1),j=e.slice(k+1)}this.valueComponents=[],C=j.slice(this.parseValue(this.valueComponents,0,j,a))}C[0]==="!"&&(this.important=!0,C=C.slice(1)),this.stateToken=C;let T=(j,k)=>{let I=(S,E,M,W)=>{for(let[L,_]of E)if(L.test(S)){for(let F of _)I(S.replace(L,F),E,M,!0);return}W&&M.push(S)},A=S=>{let E=S.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((_,F)=>F%3?_:_.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),M=[],W="",L=0;for(let _=0;_<E.length;_++){let F=E[_];if(F==="\\"){W+=F+E[++_];continue}!L&&F===","?(M.push(W),W=""):(W+=F,L&&F===")"?L--:F==="("&&L++)}return W&&M.push(W),M},$=[];""in i?I(j,i[""],$,!0):$.push(j);let z={};for(let[S,E]of Object.entries(i)){if(!S)continue;let M=[];for(let W of $)I(W,E,M,!1);M.length&&(z[S]=M)}let Y=(S,E)=>{let M=E.reduce((W,L)=>(W.push(...A(L)),W),[]);S in k?k[S].push(...M):k[S]=M},U=Object.keys(z);if(U.length)for(let S of U)Y(S,z[S]);else Y("",$)};N?(this.vendorPrefixSelectors={},T(N,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let w=C.split("@"),O=w[0];if(O){this.vendorSuffixSelectors={},T(O,this.vendorSuffixSelectors);for(let j of Object.values(this.vendorSuffixSelectors))for(let k of j){this.hasWhere!==!1&&(this.hasWhere=k.includes(":where("));let I=[":disabled",":active",":focus",":hover"];for(let A=0;A<I.length;A++)if(k.includes(I[A])){(this.priority===-1||this.priority>A)&&(this.priority=A);break}}}else this.vendorSuffixSelectors={"":[""]};let V={},B=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),P=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(B)V[""]=P?[""]:Object.keys(this.vendorSuffixSelectors);else if(P)for(let j in this.vendorPrefixSelectors)V[j]=[""];else for(let j in this.vendorPrefixSelectors){let k=V[j]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,j))k.push(j);else for(let I in this.vendorSuffixSelectors)k.push(I)}for(let j=1;j<w.length;j++){let k=w[j];if(k)if(k==="rtl"||k==="ltr")this.direction=k;else{let I,A,$=Ve.exec(k);if($)I=$[1],A=k.slice(I.length);else{this.media={token:k,features:{}};let z=[],Y=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")z.push("(orientation:"+S+")");else if(S==="motion"||S==="reduced-motion")z.push("(prefers-reduced-motion:"+(S==="motion"?"no-preference":"reduce")+")");else{let E=f[S];if(E&&typeof E=="string")z.push(E);else{let M="",W="",L=0;S.startsWith("<=")?(W="<=",M="max-width"):S.startsWith(">=")||E?(W=">=",M="min-width"):S.startsWith(">")?(W=">",M="min-width",L=.02):S.startsWith("<")&&(W="<",M="max-width",L=-.02);let _=W?S.replace(W,""):S,F=f[_];switch(M){case"max-width":case"min-width":let X={};typeof F=="number"?X={type:"number",value:F+L,unit:"px"}:(X=this.parseValueComponent(_,"px"),X.type==="number"&&X.unit==="px"&&(X.value+=L)),this.media.features[M]=X,X.type==="number"?z.push("("+M+":"+(X.value+X.unit)+")"):z.push("("+M+":"+X.value+")");break}}}},U=k.includes("&");if(U){let S=k.split("&");for(let E of S)Y(E)}else Y(k);if(this.media.type&&(A=this.media.type),z.length&&(A=z.join(" and ")),A)I="media";else if(!U){this.theme=k;continue}}A&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+A.replace(/\|/g," "))}}let D;if(this.valueComponents)if(D=this.transformValueComponents(this.valueComponents,a,[]),h&&(D=h.call(this,D,this.css.config)),c){let j,k;this.declarations=c.call(this,k?j:D,k||"")}else p&&(this.declarations={[p]:D});let ie=[];for(let j in this.declarations){let k=$=>{if(x&&($.startsWith("animation")||$.startsWith("animation-name"))){let z=$.split(":")[1].split("!important")[0].split(" ").filter(Y=>Y in this.css.animations&&(!this.animationNames||!this.animationNames.includes(Y)));z.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...z))}ie.push($+((this.important||v)&&!$.endsWith("!important")?"!important":""))},I=j+":",A=this.declarations[j];if(typeof A=="object")for(let $ of A)k(I+$.toString());else k(I+A.toString())}if(ie.length)for(let j in V)for(let k of V[j]){let I="";this.direction&&(I+="[dir="+this.direction+"] ");let A=this.vendorPrefixSelectors[j],$=this.vendorSuffixSelectors[k],z=A.map(S=>S+I),Y=S=>z.map(E=>(this.theme&&m!=="media"?m==="host"?`:host(.${this.theme}) `:`.${this.theme} `:"")+(y?y+" ":"")+E).reduce((E,M)=>(E.push($.reduce((W,L)=>(W.push(M+"."+te(S)+L),W),[]).join(",")),E),[]).join(","),U=Y(e)+(R?R.reduce((S,E)=>S+","+Y(E),""):"")+"{"+ie.join(";")+"}";for(let S of Object.keys(this.at).sort((E,M)=>M==="supports"?-1:1))U="@"+S+(S.includes(" ")?"":" ")+this.at[S]+"{"+U+"}";this.theme&&m==="media"&&(U=`@media(prefers-color-scheme:${this.theme}){`+U+"}"),this.natives.push({text:U})}}at={};priority=-1;natives=[];order=0;layer=0;stateToken;declarations;colored=!1;animationNames;variableNames;transformValueComponents=(e,r,s)=>{let{functions:n}=this.css.config,a="";for(let o of e)switch(o.type){case"function":let p=n&&n[o.name];if(p?.transform){let h=p.transform.call(this,this.transformValueComponents(o.childrens,p.unit??r,s),s);a+=typeof h=="string"?h:this.transformValueComponents(h,p?.unit??r,s)}else a+=o.name+o.symbol+this.transformValueComponents(o.childrens,p?.unit??r,s)+H[o.symbol];break;case"variable":let u=this.css.variables[o.name];if(u){let h=(c,l)=>{if(u.themes)if(this.theme){let d=u.themes[this.theme]??u;d?.value&&c(d)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(o.name)||this.variableNames.push(o.name),l();else c(u)};switch(u.type){case"string":h(l=>{let d=[];this.parseValue(d,0,l.value,r,void 0,void 0,[...s,o.name]),a+=this.transformValueComponents(d,r,[...s,o.name])},()=>{a+=`var(--${o.name})`});break;case"number":h(l=>{let d=this.parseValueComponent(l.value,r);a+=d.value+(d.unit??"")},()=>{a+=r?`calc(var(--${o.name}) / 16 * 1rem)`:`var(--${o.name})`});break;case"color":let c=o.alpha?"/"+o.alpha:"";h(l=>{a+=`${l.space}(${l.value}${c})`},()=>{a+=`${u.space}(var(--${o.name})${c})`});break}}else a+="var(--"+o.name+")";break;case"separator":a+=(o.prefix||"")+o.value+(o.suffix||"");break;case"number":a+=o.value+o.unit;break;default:a+=o.value;break}return a};get text(){return this.natives.map(e=>e.text).join("")}parseValue=(e,r,s,n,a,o=void 0,p=[])=>{let u=o===void 0,h=!u&&(o.endsWith("$")||o.endsWith("var")),l=(v=>v==="'"||v==='"')(a),d=[","];this.options.separators.length&&d.push(...this.options.separators);let g="",y=()=>{if(g){let v=!1;if(!h){let m=(i,f)=>{let b=Object.prototype.hasOwnProperty.call(this.options.resolvedVariables,i)?this.options.resolvedVariables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(b){let x=b.name??i;p.includes(x)||(v=!0,e.push({type:"variable",name:x,alpha:f}))}};if(m(g),!v&&this.colored){let[i,f]=g.split("/");m(i,f)}}v||e.push(this.parseValueComponent(g,n)),g=""}};for(;r<s.length;r++){let v=s[r];if(v===a){if(l){let m=0;for(let i=g.length-1;g[i]==="\\";i--)m++;if(m%2){g+=v;continue}else y()}else y();return r}else if(!l&&v in H){let m=g,i={type:"function",name:m,symbol:v,childrens:[]};e.push(i),g="";let f=v==="("&&this.css.config.functions?.[m];!this.colored&&f?.colored&&(this.colored=!0),r=this.parseValue(i.childrens,++r,s,f?.unit??n,H[v],m||o||"")}else if((v==="|"||v===" ")&&a!=="}"&&(!l||o==="path"))y(),e.push({type:"separator",value:" "});else{if(!l){if(v===".")if(isNaN(+s[r+1])){if(u)break}else s[r-1]==="-"&&(g+="0");else if(d.includes(v)){y(),e.push({type:"separator",value:v,prefix:v===","?"":" ",suffix:v===","?"":" "});continue}else if(u&&(v==="#"&&(g||e.length&&e[e.length-1].type!=="separator")||["!","*",">","+","~",":","[","@","_"].includes(v)))break}g+=v}}return y(),r};resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}parseValueComponent(e,r=this.options.unit){let s=r??this.options.unit,n="",a;if(typeof e=="number")return s&&!n?((s==="rem"||s==="em")&&(a=e/this.css.config.rootSize),n=s||""):a=e,{value:a,unit:n,type:"number"};if(s){if(/^\d+\/\d+/.test(e)){let[p,u]=e.split("/");return{value:+p/+u*100,unit:"%",type:"number"}}let o=e.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(o)return a=+o[1],n=o[3]||"",n||((s==="rem"||s==="em")&&(a=a/this.css.config.rootSize),n=s||""),{value:a,unit:n,type:"number"}}return{value:e,type:"string"}}};var Me={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ne=Me;var Ee={"::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"},oe=Ee;var Ge={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"}},le=Ge;var We={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"}}},ce=We;function K(t){t.startsWith("#")&&(t=t.slice(1));let e,r,s,n;return t.length===3||t.length===4?(e=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),s=parseInt(t[2]+t[2],16),n=t.length===4?Math.round(parseInt(t[3]+t[3],16)/255*100)/100:1):(t.length===6||t.length===8)&&(e=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),s=parseInt(t.slice(4,6),16),n=t.length===8?Math.round(parseInt(t.slice(6,8),16)/255*100)/100:1),[e,r,s,n]}function ve(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function G(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let s in t)if(s&&+s>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let s=0,n="0"in t?K(t[0]):[0,0,0],a,o,p=[],u=()=>{let h=a-s,c=o.map((l,d)=>(l-n[d])/h);for(let l of p){let d=l-s,g=n.map((y,v)=>Math.round(y+c[v]*d));t[l]="#"+ve.call(this,...g)}};for(let h=1;h<100;h++)h in t?(p.length?(a=h,o=K(t[h]),u(),p.length=0,n=o):n=K(t[h]),s=h):p.push(h);p.length&&(a=100,o="100"in t?K(t[100]):[255,255,255],u())}return e||(t[""]=t[r?"500":"50"]),t}var Be={fontFamily:{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"]},fontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},section:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},flexBasis:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},flexDirection:{col:"column","col-reverse":"column-reverse"},width:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},height:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},minWidth:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},boxSizing:{content:"content-box",border:"border-box"},maxHeight:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},position:{abs:"absolute",rel:"relative"},transformBox:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},animationDirection:{alt:"alternate","alt-reverse":"alternate-reverse"},backgroundClip:{content:"content-box",border:"border-box",padding:"padding-box"},backgroundOrigin:{content:"content-box",border:"border-box",padding:"padding-box"},gridAutoColumns:{min:"min-content",max:"max-content"},gridAutoRows:{min:"min-content",max:"max-content"},gridTemplateColumns:{min:"min-content",max:"max-content"},gridTemplateRows:{min:"min-content",max:"max-content"},order:{first:-999999,last:999999},shapeOutside:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},clipPath:{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:G({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:G({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:G({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:G({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:G({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:G({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:G({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:G({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:G({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:G({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:G({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:G({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:G({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:G({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:G({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:G({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:G({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:G({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:G({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:G({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},ue=Be;var Z=["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Ie={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=u=>{let h=u.indexOf(":");h!==-1&&(e[u.slice(0,h)]=u.slice(h+1))},s=u=>{let h=c=>{let l=c.slice(te(u.className).length).match(/\{(.*)\}/)[1].split(";");for(let d of l)r(d)};for(let c of u.natives)h(c.text);if(u.animationNames){this.animationNames||(this.animationNames=[]);for(let c of u.animationNames)this.animationNames.includes(c)||this.animationNames.push(c)}if(u.variableNames){this.variableNames||(this.variableNames=[]);for(let c of u.variableNames)this.variableNames.includes(c)||this.variableNames.push(c)}},n=[],a="",o=()=>{a&&(n.push(a.replace(/ /g,"|")),a="")},p=1;(function u(h){for(;p<t.length;p++){let c=t[p];if(!h){if(c===";"){o();continue}if(c==="}")break}if(a+=c,h===c){if(h==="'"||h==='"'){let l=0;for(let d=a.length-2;a[d]==="\\";d--)l++;if(l%2)continue}break}else c in H&&h!=="'"&&h!=='"'&&(p++,u(H[c]))}})(void 0),o();for(let u of n){let h=this.css.create(u);if(h.length)for(let c of h)s(c);else r(u)}return e}},variable:{match:/^\$[\w-]+:/,colored:!0,layer:-1,declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101},fontFamily:{match:["f(?:ont)?"],layer:-101},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(t){switch(t){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"}}}},fontStyle:{match:["f(?:ont)?",["normal","italic","oblique"]],layer:-101,unit:"deg"},fontVariantNumeric:{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-101},fontVariant:{layer:-301},fontFeatureSettings:{match:/^font-feature:/,layer:-101},font:{match:/^f:/,layer:-301,variableGroups:["fontFamily","fontVariant","fontWeight","fontSize","fontStyle","lineHeight"]},color:{match:/^(?:color|fg|foreground):/,layer:-101,colored:!0},marginLeft:{match:/^ml:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginRight:{match:/^mr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginTop:{match:/^mt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginBottom:{match:/^mb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginX:{match:/^(?:mx|margin-x):/,unit:"rem",layer:-201,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}},variableGroups:["spacing"]},marginY:{match:/^(?:my|margin-y):/,unit:"rem",layer:-201,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}},variableGroups:["spacing"]},margin:{match:/^m:/,unit:"rem",layer:-301,variableGroups:["spacing"]},marginInlineStart:{match:/^mis:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInlineEnd:{match:/^mie:/,layer:-101,unit:"rem",variableGroups:["spacing"]},marginInline:{match:/^mi:/,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingLeft:{match:/^pl:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingRight:{match:/^pr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingTop:{match:/^pt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingBottom:{match:/^pb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingX:{match:/^(?:px|padding-x):/,unit:"rem",layer:-201,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}},variableGroups:["spacing"]},paddingY:{match:/^(?:py|padding-y):/,unit:"rem",layer:-201,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}},variableGroups:["spacing"]},padding:{match:/^p:/,unit:"rem",layer:-301,variableGroups:["spacing"]},paddingInlineStart:{match:/^pis:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInlineEnd:{match:/^pie:/,layer:-101,unit:"rem",variableGroups:["spacing"]},paddingInline:{match:/^pi:/,unit:"rem",layer:-301,variableGroups:["spacing"]},flexBasis:{variableGroups:["section"],unit:"rem",layer:-101},flexWrap:{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-101},flexGrow:{layer:-101},flexShrink:{layer:-101},flexDirection:{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-101},flex:{layer:-301},display:{match:/^d:/,layer:-101},width:{match:/^w:/,unit:"rem",layer:-101,variableGroups:["section"]},height:{match:/^h:/,unit:"rem",layer:-101,variableGroups:["section"]},minWidth:{match:/^min-w:/,unit:"rem",layer:-101,variableGroups:["section"]},minHeight:{match:/^min-h:/,unit:"rem",layer:-101,variableGroups:["section"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:/^min:/,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:/^max:/,layer:-201,unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},boxSizing:{match:/^box:/,layer:-101},boxDecorationBreak:{match:["section",["slice","clone"]],layer:-101,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},contain:{layer:-101},content:{layer:-101},counterIncrement:{layer:-101},counterReset:{layer:-101},letterSpacing:{match:/^ls:/,layer:-101,unit:"em"},lineHeight:{match:/^lh:/,layer:-101},objectFit:{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-101},objectPosition:{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-101},textAlign:{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-101},textDecorationColor:{match:["text-decoration"],layer:-101,colored:!0},textDecorationStyle:{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-101},textDecorationThickness:{match:["text-decoration",["from-font"]],numeric:!0,layer:-101,unit:"em"},textDecorationLine:{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-101},textDecoration:{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-301},textUnderlineOffset:{unit:"rem",layer:-101,variableGroups:["spacing"]},textOverflow:{match:["t(?:ext)?",["ellipsis","clip"]],layer:-101},textOrientation:{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-101},textTransform:{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-101},textRendering:{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-101},textIndent:{unit:"rem",layer:-101},verticalAlign:{match:/^(?:v|vertical):/,layer:-101},columns:{match:/^(?:columns|cols):/,layer:-301},whiteSpace:{layer:-101},top:{layer:-101,unit:"rem",variableGroups:["spacing"]},bottom:{layer:-101,unit:"rem",variableGroups:["spacing"]},left:{layer:-101,unit:"rem",variableGroups:["spacing"]},right:{layer:-101,unit:"rem",variableGroups:["spacing"]},inset:{unit:"rem",layer:-301,variableGroups:["spacing"]},lines:{match:/^lines:/,declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:/^max-h:/,unit:"rem",layer:-101,variableGroups:["section"]},maxWidth:{match:/^max-w:/,unit:"rem",layer:-101,variableGroups:["section"]},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{layer:-101,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{layer:-301,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:/,layer:-101},position:{layer:-101},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{layer:-101,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",layer:-101,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:/^s(?:hadow)?:/,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101},transformStyle:{match:["transform",["flat","preserve-3d"]],layer:-101},transformOrigin:{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-101},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-101,analyze(t){return[t.startsWith("transform")?t.slice(10):t]},variableGroups:["spacing"]},transitionProperty:{match:/^~property:/,layer:-101},transitionTimingFunction:{match:/^~easing:/,layer:-101},transitionDuration:{match:/^~duration:/,layer:-101,unit:"ms"},transitionDelay:{match:/^~delay:/,layer:-101,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},layer:-301},animationDelay:{match:/^@delay:/,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:/,layer:-101},animationDuration:{match:/^@duration:/,layer:-101,unit:"ms"},animationFillMode:{match:/^@fill:/,layer:-101},animationIterationCount:{match:/^@iteration:/,layer:-101},animationName:{match:/^@name:/,layer:-101},animationPlayState:{match:/^@play:/,layer:-101},animationTimingFunction:{match:/^@easing:/,layer:-101},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-301,analyze(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}}},borderCollapse:{match:["b(?:order)?",["collapse","separate"]],layer:-101},borderSpacing:{unit:"rem",layer:-101},borderTopColor:{match:["b(?:t|order-top(?:-color)?)"],layer:-101,colored:!0},borderBottomColor:{match:["b(?:b|order-bottom(?:-color)?)"],layer:-101,colored:!0},borderLeftColor:{match:["b(?:l|order-left(?:-color)?)"],layer:-101,colored:!0},borderRightColor:{match:["b(?:r|order-right(?:-color)?)"],layer:-101,colored:!0},borderXColor:{match:["b(?:x|order-x(?:-color)?)"],layer:-201,colored:!0,declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:["b(?:order)?(?:-color)?"],layer:-301,colored:!0},borderTopLeftRadius:{match:/^r(?:tl|lt):/,unit:"rem",layer:-101},borderTopRightRadius:{match:/^r(?:tr|rt):/,unit:"rem",layer:-101},borderBottomLeftRadius:{match:/^r(?:bl|lb):/,unit:"rem",layer:-101},borderBottomRightRadius:{match:/^r(?:br|rb):/,unit:"rem",layer:-101},borderTopRadius:{match:/^rt:/,unit:"rem",layer:-201,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:/^rb:/,unit:"rem",layer:-201,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:/^rl:/,unit:"rem",layer:-201,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:/^rr:/,unit:"rem",layer:-201,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:/^r:/,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",Z],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",Z],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",Z],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",Z],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",Z],layer:-201,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",Z],layer:-201,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:["b(?:order)?(?:-style)?",Z],layer:-301},borderTopWidth:{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderBottomWidth:{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderLeftWidth:{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderRightWidth:{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderXWidth:{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-301},borderImageOutset:{unit:"rem",layer:-101},borderImageRepeat:{match:["border-image",["stretch","repeat","round","space"]],layer:-101},borderImageSlice:{layer:-101},borderImageSource:{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-101},borderImageWidth:{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-101},borderImage:{layer:-301},borderTop:{match:/^bt:/,layer:-301,unit:"rem",colored:!0},borderBottom:{match:/^bb:/,layer:-301,unit:"rem",colored:!0},borderLeft:{match:/^bl:/,layer:-301,unit:"rem",colored:!0},borderRight:{match:/^br:/,layer:-301,unit:"rem",colored:!0},borderX:{match:/^(?:bx|border-x):/,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:/^(?:by|border-y):/,unit:"rem",colored:!0,layer:-201,declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:/^b:/,unit:"rem",colored:!0,layer:-301},backgroundAttachment:{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-101},backgroundBlendMode:{layer:-101},backgroundColor:{match:["(?:bg|background)"],layer:-101,colored:!0},backgroundClip:{match:["(?:bg|background)",["text"]],layer:-101,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101},backgroundPosition:{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-101,unit:"px"},backgroundRepeat:{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-101},backgroundSize:{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-101},backgroundImage:{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},background:{match:/^bg:/,colored:!0,layer:-301},gradient:{match:/^gradient\(/,layer:-101,colored:!0,declare(t){return{"background-image":"linear-"+t}}},mixBlendMode:{match:/^blend:/,layer:-101},backdropFilter:{match:/^bd:/,layer:-101,colored:!0,declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:-101,colored:!0},fill:{match:/^fill:/,layer:-101,colored:!0},strokeDasharray:{layer:-101},strokeDashoffset:{layer:-101,variableGroups:["spacing"]},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101,variableGroups:["spacing"]},y:{layer:-101,variableGroups:["spacing"]},cx:{layer:-101,variableGroups:["spacing"]},cy:{layer:-101,variableGroups:["spacing"]},rx:{layer:-101},ry:{layer:-101},gridColumnStart:{match:/^grid-col-start:/,layer:-101},gridColumnEnd:{match:/^grid-col-end:/,layer:-101},gridColumn:{match:/^grid-col(?:umn)?(?:-span)?:/,layer:-301,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:/^grid-cols:/,declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:/,layer:-301,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:/^grid-rows:/,declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:/,layer:-101},gridAutoFlow:{match:/^grid-flow:/,layer:-101},gridAutoRows:{layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:/,layer:-101,unit:"rem"},gridTemplateRows:{layer:-101,unit:"rem"},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:/,unit:"rem",layer:-101,variableGroups:["spacing"]},rowGap:{match:/^gap-y:/,unit:"rem",layer:-101,variableGroups:["spacing"]},gap:{unit:"rem",layer:-301,variableGroups:["spacing"]},order:{match:/^o:/,layer:-101},breakInside:{layer:-101},breakBefore:{layer:-101},breakAfter:{layer:-101},aspectRatio:{match:/^aspect:/,layer:-101},columnSpan:{match:/^col-span:/,layer:-101},alignContent:{match:/^ac:/,layer:-101},alignItems:{match:/^ai:/,layer:-101},alignSelf:{match:/^as:/,layer:-101},justifyContent:{match:/^jc:/,layer:-101},justifyItems:{match:/^ji:/,layer:-101},justifySelf:{match:/^js:/,layer:-101},placeContent:{layer:-301},placeItems:{layer:-301},placeSelf:{layer:-301},listStylePosition:{match:["list-style",["inside","outside"]],layer:-101},listStyleType:{match:["list-style",["disc","decimal"]],layer:-101},listStyleImage:{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},listStyle:{layer:-301},outlineColor:{match:["outline"],layer:-101,colored:!0},outlineOffset:{unit:"rem",layer:-101,variableGroups:["spacing"]},outlineStyle:{match:["outline",["dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},outlineWidth:{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-101},outline:{unit:"rem",layer:-301,colored:!0,variableGroups:["outlineWidth","outlineStyle","outlineOffset","outlineColor"]},accentColor:{match:/^accent:/,layer:-101,colored:!0},appearance:{layer:-101},caretColor:{match:/^caret:/,layer:-101,colored:!0},scrollBehavior:{layer:-101},scrollMarginLeft:{match:/^scroll-ml:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginRight:{match:/^scroll-mr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginTop:{match:/^scroll-mt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginBottom:{match:/^scroll-mb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}},variableGroups:["spacing"]},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}},variableGroups:["spacing"]},scrollMargin:{match:/^scroll-m:/,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollPaddingLeft:{match:/^scroll-pl:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingRight:{match:/^scroll-pr:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingTop:{match:/^scroll-pt:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingBottom:{match:/^scroll-pb:/,layer:-101,unit:"rem",variableGroups:["spacing"]},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}},variableGroups:["spacing"]},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):/,unit:"rem",layer:-201,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}},variableGroups:["spacing"]},scrollPadding:{match:/^scroll-p:/,unit:"rem",layer:-301,variableGroups:["spacing"]},scrollSnapAlign:{match:["scroll-snap",["start","end","center"]],layer:-101},scrollSnapStop:{match:["scroll-snap",["normal","always"]],layer:-101},scrollSnapType:{match:["scroll-snap",["x","y","block","inline","both"]],layer:-101},willChange:{layer:-101},writingMode:{match:/^writing:/,layer:-101},direction:{layer:-101},shapeOutside:{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-101},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101,variableGroups:["spacing"]},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:/,layer:-101},quotes:{layer:-101},maskImage:{layer:-101,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},de=Ie;var Pe={$:{colored:!0,transform(t){return[{type:"variable",name:t}]}},calc:{transform(t,e){let r=[],s=this.css.config.functions,n=0,a=(o,p,u)=>{let h=!1,c="",l=(d,g="",y="")=>{c&&(!h&&!u?o.push(this.parseValueComponent(c,s.calc.unit)):o.push({type:"string",value:c}),c=""),d&&(g&&t[n-1]===" "&&(g=""),y&&t[n+1]===" "&&(y=""),p?o.push({type:"separator",value:d}):o.push({type:"separator",value:d,prefix:g,suffix:y})),h=!1};for(;n<t.length;n++){let d=t[n];if(d==="("){let g=/^([+-])/.exec(c);g&&o.push({type:"string",value:g[1]});let y=g?c.slice(1):c,v={type:"function",name:y,symbol:d,childrens:[]};o.push(v),c="",n++;let m=v.name==="$"||v.name==="var";a(v.childrens,y!==""&&y!=="calc"&&(m||Object.prototype.hasOwnProperty.call(s,y)),h||m)}else if(d===")"){l("");break}else if(d===",")l(d,""," ");else if(d===" ")l(d);else{let g=t[n-1];switch(d){case"+":!c&&g!==")"?c+=d:l(d," "," ");break;case"-":!c&&g!==")"?c+=d:l(d," "," ");break;case"*":l(d," "," ");break;case"/":l(d," "," "),h=!0;break;default:c+=d;break}}}l("")};return a(r,!1,!1),"calc("+this.transformValueComponents(r,s.calc.unit??this.options.unit,e)+")"}},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}},fe=Pe;var ee={mediaQueries:ne,selectors:oe,semantics:le,rules:de,functions:fe,animations:ce,variables:ue,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var Re=[",",".","#","[","!","*",">","+","~",":","@"];var Q=class{constructor(e=ee){this.customConfig=e;e?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ee,e),this.resolve(),globalThis.masterCSSs.push(this)}static config=ee;static refresh=e=>{for(let r of globalThis.masterCSSs)r.refresh(e)};rules=[];ruleBy={};classesUsage={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];observer;resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.mediaQueries={},this.animations={},this.ruleOptions.length=0,this.semanticRuleOptions.length=0,this.hasVariablesRule=!1,this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:r,selectors:s,variables:n,semantics:a,mediaQueries:o,rules:p,animations:u}=this.config;function h(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(i,f,b="",x={}){let R=w=>w?(b?b+"-":"")+w:b,C=Object.entries(i),N=[],T=[];for(let w of C){let O=w[1];(typeof O=="object"&&!Array.isArray(O)?N:T).push(w)}for(let[w,O]of N)c(O,f,R(w),x);if(f&&b)T.length&&(x[b]=T.reduce((w,[O,V])=>(w[O]=V,w),{}));else for(let[w,O]of T)x[R(w)]=O;return x}if(s)for(let[i,f]of Object.entries(c(s,!1))){let b=new RegExp(h(i)+"(?![a-z-])");for(let x of Array.isArray(f)?f:[f]){let R=x.match(/^::-[a-z]+-/m)?.[0]??"",C=this.selectors[R];C||(C=this.selectors[R]=[]);let N=C.find(([T])=>T===b);N||(N=[b,[]],C.push(N)),N[1].push(x)}}if(n){let i={};for(let f in n){let b=(x,R,C=void 0)=>{if(!x)return;let N=(w,O,V=void 0,B=void 0)=>{if(O===void 0)return;if(O.type==="color"){if(B){let D=O.value.indexOf("/");O={...O,value:D===-1?O.value+" / "+(B.startsWith("0.")?B.slice(1):B):O.value.slice(0,D+2)+(+O.value.slice(D+2)*+B).toString().slice(1)}}e[w]=void 0}let P=V??C;if(P!==void 0)if(Object.prototype.hasOwnProperty.call(this.variables,w)){let D=this.variables[w];P?(D.themes||(D.themes={}),D.themes[P]=O):(D.value=O.value,D.space=O.space)}else P?this.variables[w]={type:O.type,space:O.space,themes:{[P]:O}}:this.variables[w]=O;else this.variables[w]=O},T=typeof x;if(T==="object")if(Array.isArray(x))N(R,{type:"string",value:x.join(",")});else{let w=Object.keys(x);for(let O of w)O===""||O.startsWith("@")?b(x[O],R,O||w.some(V=>V.startsWith("@"))?O.slice(1):void 0):b(x[O],R+"-"+O)}else if(T==="number")N(R,{type:"number",value:x}),N("-"+R,{type:"number",value:x*-1});else if(T==="string"){let w=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(x);if(w)Object.prototype.hasOwnProperty.call(i,R)||(i[R]={}),i[R][C]=()=>{delete i[R][C];let[O,V]=w[1].split("@");if(O){if(Object.prototype.hasOwnProperty.call(i,O))for(let P of Object.keys(i[O]))i[O][P]?.();let B=this.variables[O];if(B)if(V===void 0&&B.themes){N(R,{type:B.type,value:B.value,space:B.space},"",w[2]);for(let P in B.themes)N(R,B.themes[P],P,w[2])}else{let P=V!==void 0?B.themes?.[V]:B;P&&N(R,{type:P.type,value:P.value,space:P.space},void 0,w[2])}}};else{let O=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(x);if(O){let[V,B,P,D]=K(O[1]);N(R,{type:"color",value:`${V} ${B} ${P}${D===1?"":" / "+D}`,space:"rgb"})}else{let V=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(x);if(V)N(R,{type:"color",value:V[1]+" "+V[2]+" "+V[3]+(V[4]?" / "+(V[4].startsWith("0.")?V[4].slice(1):V[4]):""),space:"rgb"});else{let B=/^hsl\((.*?)\)$/.exec(x);B?N(R,{type:"color",value:B[1],space:"hsl"}):N(R,{type:"string",value:x})}}}}};b(n[f],f)}for(let f of Object.keys(i))for(let b of Object.keys(i[f]))i[f][b]?.()}if(o&&(this.mediaQueries=c(o,!1)),u)for(let i in u){let f=this.animations[i]={},b=u[i];for(let x in b){let R=f[x]={},C=b[x];for(let N in C)R[N]=C[N]}}let l=r?c(r,!1):{},d=Object.keys(l),g=i=>{if(Object.prototype.hasOwnProperty.call(this.styles,i))return;let f=this.styles[i]=[],b=l[i];if(!b)return;let x=b.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let R of x){let C=N=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,N)){let T=this.stylesBy[N];T.includes(i)||T.push(i)}else this.stylesBy[N]=[i];f.includes(N)||f.push(N)};if(d.includes(R)){g(R);for(let N of this.styles[R])C(N)}else C(R)}};for(let i of d)g(i);a&&Object.entries(a).sort((i,f)=>i[0].localeCompare(f[0])).forEach(([i,f],b)=>{this.semanticRuleOptions.push({id:"."+i,resolvedMatch:new RegExp("^"+h(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:b,declarations:f,layer:-401})});let y=Object.entries(p).sort((i,f)=>i[1].layer!==f[1].layer?(f[1].layer||0)-(i[1].layer||0):f[0].localeCompare(i[0])),v=y.length,m=Object.keys(e);y.forEach(([i,f],b)=>{this.ruleOptions.push(f),f.order=this.semanticRuleOptions.length+v-1-b;let x=f.match;f.id=i,(f.layer===-100||f.layer===-300||f.layer===-101||f.layer===-301)&&(f.resolvedPropName=i.replace(/(?!^)[A-Z]/g,C=>"-"+C).toLowerCase()),f.resolvedVariables={};let R=C=>{Object.assign(f.resolvedVariables,Object.keys(this.variables).filter(N=>N.startsWith(C+"-")||N.startsWith("-"+C+"-")).reduce((N,T)=>(N[T.slice(C.length+(C.startsWith("-")?0:1))]={...this.variables[T],name:T},N),{}))};if(f.variableGroups)for(let C of f.variableGroups)R(C);if(R(i),x)if(Array.isArray(x)){let[C,N=[]]=x,T=[];N.length&&T.push(`(?:${N.join("|")})(?![a-zA-Z0-9-])`),Object.keys(f.resolvedVariables).length&&T.push(`(?:${Object.keys(f.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),f.colored&&T.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)",`(?:${m.join("|")})(?![a-zA-Z0-9-])`),f.numeric&&T.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),f.resolvedMatch=new RegExp(`^${C}:(?:${T.join("|")})[^|]*?(?:@|$)`)}else f.resolvedMatch=x})}observe(e,r={subtree:!0,childList:!0}){if(this.root===e)return this;e||(e=document),this.root=e;let s=e===document;s&&(globalThis.masterCSS=this),this.host=s?document.documentElement:this.root.host;let n=s?document.head:e,a=s?document.styleSheets:e.styleSheets;for(let p of a){let{ownerNode:u}=p;if(u&&u.id==="master"){this.style=u;break}}if(this.style)for(let p=0;p<this.style.sheet.cssRules.length;p++){let u=this.style.sheet.cssRules[p],h=u.constructor.name;if(h==="CSSStyleRule"&&u.style.length===1&&u.style[0].startsWith("--")&&!u.selectorText.startsWith(".\\$")||h==="CSSKeyframesRule")continue;let c=d=>{if(d.selectorText){let y=d.selectorText.split(", ")[0].split(" ");for(let v=0;v<y.length;v++){let m=y[v];if(m[0]==="."){let i=m.slice(1),f="";for(let b=0;b<i.length;b++){let x=i[b],R=i[b+1];if(x==="\\"){if(b++,R!=="\\"){f+=R;continue}}else if(Re.includes(x))break;f+=x}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,f)&&!Object.prototype.hasOwnProperty.call(this.styles,f)){let b=this.create(f)[0];if(b)return b}}}}else if(d.cssRules)for(let g=0;g<d.cssRules.length;g++){let y=c(d.cssRules[g]);if(y)return y}},l=c(u);if(l){this.rules.push(l),this.ruleBy[l.className]=l;for(let d=0;d<l.natives.length;d++)l.natives[d].cssRule=this.style.sheet.cssRules[p+d];p+=l.natives.length-1,this.handleRuleWithVariableNames(l,!0),this.handleRuleWithAnimationNames(l,!0),l.options.insert?.call(l)}}else this.style=document.createElement("style"),this.style.id="master",n.append(this.style);let o=p=>{p.forEach(u=>{Object.prototype.hasOwnProperty.call(this.classesUsage,u)?this.classesUsage[u]++:(this.classesUsage[u]=1,this.insert(u))})};return o(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(p=>o(p.classList)),this.observer=new MutationObserver(p=>{let u={},h=[],c=[],l=[],d=(m,i)=>{i?m.classList.forEach(y):m.classList.forEach(g);let f=m.children;for(let b=0;b<f.length;b++){let x=f[b];x.classList&&(c.push(x),d(x,i))}},g=m=>{Object.prototype.hasOwnProperty.call(u,m)?u[m]++:u[m]=1},y=m=>{Object.prototype.hasOwnProperty.call(u,m)?u[m]--:Object.prototype.hasOwnProperty.call(this.classesUsage,m)&&(u[m]=-1)},v=(m,i)=>{for(let f=0;f<m.length;f++){let b=m[f];b.classList&&!c.includes(b)&&!l.includes(b)&&(b.isConnected!==i?(c.push(b),d(b,i)):l.push(b))}};for(let m=0;m<p.length;m++){let i=p[m],{addedNodes:f,removedNodes:b,type:x,target:R}=i;if(x==="attributes"){if(h.find(C=>C.target===R))continue;h.push(i)}else v(f,!1),(!R.isConnected||!c.includes(R))&&v(b,!0)}if(!(!h.length&&!Object.keys(u).length)){for(let{oldValue:m,target:i}of h){let f=c.includes(i),b=i.classList,x=m?m.split(" "):[];if(f){if(i.isConnected)continue;for(let R of x)b.contains(R)||y(R)}else if(i.isConnected){b.forEach(R=>{x.includes(R)||g(R)});for(let R of x)b.contains(R)||y(R)}}for(let m in u){let i=u[m],f=(this.classesUsage[m]||0)+i;f===0?(delete this.classesUsage[m],this.delete(m)):(Object.prototype.hasOwnProperty.call(this.classesUsage,m)||this.insert(m),this.classesUsage[m]=f)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0,this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.classesUsage={},this.rules.length=0,this.hasKeyframesRule=!1,this.hasVariablesRule=!1;for(let r in this.animations){let s=this.animations[r];s.usage=void 0,s.native=void 0}for(let r in this.variables){let s=this.variables[r];s.usage=void 0,s.natives=void 0}let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r of this.ruleOptions)if(r.resolvedMatch&&r.resolvedMatch.test(e)||(r.layer===-100||r.layer===-300||r.layer===-101||r.layer===-301)&&e.startsWith(r.resolvedPropName+":"))return r;for(let r of this.semanticRuleOptions)if(r.resolvedMatch.test(e))return r}create(e){let r=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let n=this.match(s);if(n)return new J(s,n,this)};return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(s=>r(s)):[r(e)]).filter(s=>s&&s.text)}refresh(e=this.customConfig){if(e?.override?this.config=this.getExtendedConfig(e):this.config=this.getExtendedConfig(ee,e),this.resolve(),!this.style)return;let r=document.createElement("style");r.id="master",this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let s in this.classesUsage)this.insert(s)}destroy(){this.disconnect(),globalThis.masterCSSs.splice(globalThis.masterCSSs.indexOf(this),1)}delete(e){let r=this.style?.sheet,s=n=>{let a=this.ruleBy[n];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,n)&&this.stylesBy[n].some(o=>Object.prototype.hasOwnProperty.call(this.classesUsage,o)))){if(r&&a.natives.length){let o=a.natives[0];for(let p=0;p<r.cssRules.length;p++)if(r.cssRules[p]===o.cssRule){for(let h=0;h<a.natives.length;h++)r.deleteRule(p);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[n],a.variableNames){let o=this.rules[0];for(let p of a.variableNames){let u=this.variables[p];if(!--u.usage){for(let h=0;h<u.natives.length;h++){let c=u.natives[h];for(let l=0;l<this.style.sheet.cssRules.length;l++)if(this.style.sheet.cssRules[l]===c.cssRule){this.style.sheet.deleteRule(l);break}o.natives.splice(o.natives.indexOf(c),1)}u.natives=void 0}}o.natives.length||(this.rules.splice(0,1),this.hasVariablesRule=!1)}if(a.animationNames){let o=this.hasVariablesRule?1:0,p=this.hasVariablesRule?this.rules[0].natives.length:0,u=this.rules[o];for(let h of a.animationNames){let c=this.animations[h];if(!--c.usage){let l=u.natives.indexOf(c.native);this.style.sheet.deleteRule(p+l),u.natives.splice(l,1),c.native=void 0}}u.natives.length||(this.rules.splice(o,1),this.hasKeyframesRule=!1)}a.options.delete?.call(a,n)}};if(Object.prototype.hasOwnProperty.call(this.styles,e)){for(let n of this.styles[e])Object.prototype.hasOwnProperty.call(this.classesUsage,n)||s(n);delete this.ruleBy[e]}else s(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let s,n=this.rules.length-1,{media:a,order:o,priority:p,hasWhere:u,className:h}=r,c=(g,y,v)=>{let m=g;for(;m<=n;m++){let i=this.rules[m];if(y?.(i))return v?-1:m-1;if(v?.(i))return m}return v?-1:m-1},l,d;if(a){let g=this.rules.findIndex(y=>y.media);if(g===-1)s=n+1;else{let{"max-width":y,"min-width":v}=a.features;if(y||v){let m=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(m===-1)s=n+1;else if(y&&v){if(p===-1?(l=c(m,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),d=c(m,i=>i.priority!==-1)):(l=c(m,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),d=n),l!==-1){let i=y.value-v.value,f=d,b=l;for(l=void 0;f>=b;f--){let{"max-width":x,"min-width":R}=this.rules[f].media.features,C=x.value-R.value;if(C<i)d=f-1;else if(C===i)l=f;else break}}if(l!==-1){let i=y.value-v.value;for(let f=d;f>=l;f--){let{"max-width":b,"min-width":x}=this.rules[f].media.features,R=b.value-x.value;if(R<i)d=f-1;else if(R>i){l=f+1;break}}}}else if(v){if(p===-1?(l=c(m,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]),d=c(m,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(l=c(m,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1,i=>!i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),d=c(m,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),l!==-1)for(let i=d;i>=l;i--){let f=this.rules[i].media.features["min-width"].value;if(f>v.value)d=i-1;else if(f<v.value){l=i+1;break}}}else if(p===-1?(l=c(m,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),d=c(m,i=>i.media.features["min-width"]||i.priority!==-1)):(l=c(m,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),d=c(m,i=>i.media.features["min-width"]&&i.priority!==-1)),l!==-1)for(let i=d;i>=l;i--){let f=this.rules[i].media.features["max-width"].value;if(f<y.value)d=i-1;else if(f>y.value){l=i+1;break}}}else p===-1?(l=g,d=c(g,m=>m.media?.features["max-width"]||m.media?.features["min-width"]||m.priority!==-1)):(l=c(g,m=>m.media?.features["max-width"]||m.media?.features["min-width"],m=>m.priority!==-1),d=c(g,m=>m.media?.features["max-width"]||m.media?.features["min-width"]))}}else{let g=this.hasVariablesRule?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;p===-1?(l=g,d=c(g,y=>y.media||y.priority!==-1)):(l=c(g,y=>y.media,y=>y.priority!==-1),d=c(g,y=>y.media))}if(s===void 0)if(l===-1)s=d+1;else{if(p===-1)for(let g=l;g<=d;g++){let y=this.rules[g];if(!(!u&&y.hasWhere)&&(u&&!y.hasWhere||y.order>=o)){s=g;break}}else for(let g=l;g<=d;g++){let y=this.rules[g];if(!(!u&&y.hasWhere)){if(u&&!y.hasWhere){s=g;break}if(y.priority<p){s=g;break}else if(y.priority===p){if(y.order>=o){s=g;break}}else s=g+1}}s===void 0&&(s=d+1)}if(this.rules.splice(s,0,r),this.ruleBy[h]=r,this.style){let g=this.style.sheet,y=0,v=m=>{let i=this.rules[m];if(i){if(!i.natives.length)return v(m-1);let f=i.natives[i.natives.length-1].cssRule;for(let b=0;b<g.cssRules.length;b++)if(g.cssRules[b]===f){y=b+1;break}}};v(s-1);for(let m=0;m<r.natives.length;)try{let i=r.natives[m];g.insertRule(i.text,y),i.cssRule=g.cssRules[y++],m++}catch(i){console.error(i),r.natives.splice(m,1)}}this.handleRuleWithVariableNames(r),this.handleRuleWithAnimationNames(r),r.options.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}getExtendedConfig(...e){let r=a=>{let o=q({},a),p=u=>{for(let h in u){let c=u[h];typeof c=="object"&&!Array.isArray(c)?p(c):h&&!h.startsWith("@")&&(u[h]={"":c})}};return o.styles?p(o.styles):o.styles={},o.mediaQueries?p(o.mediaQueries):o.mediaQueries={},o.variables?p(o.variables):o.variables={},o},s=[];for(let a of e)(function o(p){if(p.extends?.length)for(let u of p.extends)o("config"in u?u.config:u);s.push(r(p))})(a);let n=s[0];for(let a=1;a<s.length;a++){let o=s[a];n=q(n,o),Object.prototype.hasOwnProperty.call(o,"animations")&&Object.assign(n.animations,o.animations)}return n}handleRuleWithAnimationNames(e,r=!1){if(e.animationNames){let s=this.style?.sheet;for(let n of e.animationNames){let a=this.animations[n];if(a.usage)a.usage++;else{let o={text:`@keyframes ${n}{`+Object.entries(a).filter(([h])=>h!=="usage"&&h!=="native").map(([h,c])=>`${h}{${Object.entries(c).map(([l,d])=>l+":"+d).join(";")}}`).join("")+"}"},p=this.hasVariablesRule?1:0,u;if(this.hasKeyframesRule?(u=this.rules[p]).natives.push(o):(this.rules.splice(p,0,u={natives:[o],get text(){return this.natives.map(h=>h.text).join("")}}),this.hasKeyframesRule=!0),s){let h;if(r)for(let c=0;c<s.cssRules.length;c++){let l=s.cssRules[c];if(!(l.constructor.name==="CSSStyleRule"&&l.style.length===1&&l.style[0].startsWith("--")&&!l.selectorText.startsWith(".\\$"))){if(l.constructor.name!=="CSSKeyframesRule")break;if(l.name===n){h=l;break}}}if(h)o.cssRule=h;else{let c=(this.hasVariablesRule?this.rules[0].natives.length:0)+u.natives.length;s.insertRule(o.text,c),o.cssRule=s.cssRules[c]}}a.usage=1,a.native=o}}}}handleRuleWithVariableNames(e,r=!1){if(e.variableNames){let s=this.style?.sheet;for(let n of e.variableNames){let a=this.variables[n];if(a.usage)a.usage++;else{let o=[],p=(h,c)=>{c.value&&o.push({text:`${h?this.config.themeDriver==="media"?`@media(prefers-color-scheme:${h})`:this.config.themeDriver==="host"?`:host(.${h})`:`.${h}`:":root"}{--${n}:${c.value}}`})};if(p("",a),a.themes)for(let h in a.themes)p(h,a.themes[h]);let u=0;if(this.hasVariablesRule?(u=this.rules[0].natives.length,this.rules[0].natives.push(...o)):(this.rules.splice(0,0,{natives:[...o],get text(){return this.natives.map(h=>h.text).join("")}}),this.hasVariablesRule=!0),s){let h=o[0],c;if(r)for(let l=0;l<s.cssRules.length;l++){let d=s.cssRules[l];if(d.constructor.name!=="CSSStyleRule"||d.style.length!==1||!d.style[0].startsWith("--")||d.selectorText.startsWith(".\\$"))break;if(h.text.startsWith(d.selectorText+"{")&&d.style[0].startsWith("--"+n)){c=l;break}}for(let l=0;l<o.length;l++){let d=o[l];if(c!==void 0)d.cssRule=s.cssRules[c+l];else{let g=u+l;s.insertRule(d.text,g),d.cssRule=s.cssRules[g]}}}a.usage=1,a.natives=o}}}}};globalThis.MasterCSS=Q,globalThis.masterCSSs||(globalThis.masterCSSs=[]);var xe=`/** @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 Oe=`/** @type {import('@master/css').Config} */
12
+ `;var Se=`/** @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 Se=`import type { Config } from '@master/css'
23
+ `;var Oe=`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 pe(t,e){return new Q(t).observe(e)}function me(t,e){if(!t.length)return;let r=new Q(e);for(let s of t)r.insert(s);return r.rules.filter(s=>s.layer).sort((s,n)=>{if(s.options.layer===-401&&n.options.layer!==-401)return-1;if(s.options.layer!==-401&&n.options.layer===-401)return 1;if(s.options.id!==n.options.id)return s.className.localeCompare(n.className);{let a=s.vendorSuffixSelectors?.[""]?.[0],c=n.vendorSuffixSelectors?.[""]?.[0],m=s.media?.token,o=n.media?.token;if(s.priority===-1&&n.priority===-1){if(a&&c)return a.localeCompare(c);if(m&&o&&!Object.keys(s.media.features||{}).length&&!Object.keys(n.media.features||{}).length)return m.localeCompare(o);if(a&&!c)return 1;if(!a&&c)return-1;if(m&&!o)return 1;if(!m&&o)return-1}return s.options.id===n.options.id&&s.stateToken===n.stateToken?s.className.localeCompare(n.className):s.order-n.order}}).map(s=>s.className)}
35
+ `;function he(t,e){return new Q(t).observe(e)}function me(t,e){if(!t.length)return;let r=new Q(e);for(let s of t)r.insert(s);return r.rules.filter(s=>s.layer).sort((s,n)=>{if(s.options.layer===-401&&n.options.layer!==-401)return-1;if(s.options.layer!==-401&&n.options.layer===-401)return 1;if(s.options.id!==n.options.id)return s.className.localeCompare(n.className);{let a=s.vendorSuffixSelectors?.[""]?.[0],o=n.vendorSuffixSelectors?.[""]?.[0],p=s.media?.token,u=n.media?.token;if(s.priority===-1&&n.priority===-1){if(a&&o)return a.localeCompare(o);if(p&&u&&!Object.keys(s.media.features||{}).length&&!Object.keys(n.media.features||{}).length)return p.localeCompare(u);if(a&&!o)return 1;if(!a&&o)return-1;if(p&&!u)return 1;if(!p&&u)return-1}return s.options.id===n.options.id&&s.stateToken===n.stateToken?s.className.localeCompare(n.className):s.order-n.order}}).map(s=>s.className)}