@master/css 2.0.0-beta.146 → 2.0.0-beta.148

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.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var He=Object.defineProperty;var _e=(t,e,i)=>e in t?He(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var oe=(t,e,i)=>(_e(t,typeof e!="symbol"?e+"":e,i),i);function ke(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function we(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 Se(t){let e=[];return t.forEach(function(i,n){typeof i=="object"&&i!==null?Array.isArray(i)?e[n]=Se(i):ke(i)?e[n]=we(i):e[n]=G({},i):e[n]=i}),e}function ye(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},i,n;return t.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(s){if(n=ye(e,s),i=ye(l,s),i!==e)if(typeof i!="object"||i===null){e[s]=i;return}else if(Array.isArray(i)){e[s]=Se(i);return}else if(ke(i)){e[s]=we(i);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[s]=G({},i);return}else{e[s]=G(n,i);return}})}),e}var ie={"(":")","'":"'",'"':'"',"{":"}"};function le(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),i=e.length,n=-1,l="",s,y=e.charCodeAt(0);if(i==1&&y==45)return"\\"+e;for(;++n<i;){if(s=e.charCodeAt(n),s==0){l+="\uFFFD";continue}if(s>=1&&s<=31||s==127||n==0&&s>=48&&s<=57||n==1&&s>=48&&s<=57&&y==45){l+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){l+=e.charAt(n);continue}l+="\\"+e.charAt(n)}return l}var Qe={unit:"",order:0,separators:[","]},ce=class{constructor(e,i={},n){this.className=e;this.meta=i;this.css=n;this.config=G(Qe,i.config);let{unit:l,order:s,colored:y,native:k,analyze:h,transform:c,declare:d,create:o}=this.config,{scope:f,important:x,functions:S,themeDriver:w}=n.config,{themeNames:p,colorNames:u,colorThemesMap:r,selectors:a,breakpoints:b,mediaQueries:v,themeAffectedClassesBy:R,globalValues:O}=n,I=R[e];o&&o.call(this,e);let P,L,q,re,Z;if(i.origin==="semantics"){let[N,j]=i.value;re=e.slice(N.length),P=j}else{let N;if(h)[N,q]=h.call(this,e);else if(i.origin==="match"){let B=e.indexOf(":");this.prefix=e.slice(0,B+1),N=e.slice(B+1)}else i.origin==="symbol"&&(this.symbol=e[0],N=e.slice(1));Z=[];let j=this,E=this.values,D=[","];this.config.separators.length&&D.push(...this.config.separators);let C="",g=0;(function B(m,M,T,$=void 0,A=[],X=[],W){let _=$===void 0,F,ee=z=>z==="'"||z==='"',te=()=>F=C.length,K=()=>{if(C){let z=C,V=_?z:C.slice(F);if(C="",Q="",E&&V in E&&!A.includes(V)){let H=g;g=0,B(E[V].toString(),M,void 0,$,[...A,V],X,W),g=H,_||(C=C.slice(0,F)+C)}else if(O&&V in O&&!X.includes(V)){let H=g;g=0,B(O[V].toString(),M,void 0,$,A,[...X,V],W),g=H,_||(C=C.slice(0,F)+C)}else if(_){let H=!W&&j.analyzeUnitValue(V,M);Z.push({value:H?.value??V,unit:H?.unit})}else{let H=!W&&j.analyzeUnitValue(V,M);C=H?z.slice(0,F)+H.value+H.unit:z}te()}},J=ee(T);te();let Q="";for(;g<m.length;g++){let z=m[g];if(z===T){if(J){C+=z;let V=0;for(let H=C.length-2;C[H]==="\\";H--)V++;if(V%2)continue}else K(),C+=z;return}else if(!J&&z in ie){let V=z==="("&&Q&&S?.[Q];V?.name&&(C=C.slice(0,C.length-Q.length)+V.name,Q=V.name),C+=z,g++;let H=ie[z];B(m,V?.unit??M,H,Q||$||"",A,X,W||!!V?.transform),V?.transform&&(C=C.slice(0,F+Q.length+1)+V.transform.call(j,C.slice(F+Q.length+1,-1))+C.slice(-1)),_&&(ee(H)?(Z.push(C),C=""):K()),Q=""}else if((z==="|"||z===" ")&&T!=="}"&&(!J||$==="path"))K(),_||(C+=" ",F++);else{if(!J){if(z==="."){if(isNaN(+m[g+1]))break;m[g-1]==="-"&&(C+="0")}else if(D.includes(z)){K(),_?Z.push(z):(C+=z,F++);continue}else if(_&&(z==="#"&&(C||Z.length&&m[g-1]!=="|"&&Z[g-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(z)))break;Q+=z}C+=z}}$===void 0&&K()})(N,l),re=N.slice(g)}this.order=typeof s=="function"?s.call(this,this.prefix):s,re[0]==="!"&&(this.important=!0,re=re.slice(1));let xe=N=>{let j=N.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((g,B)=>B%3?g:g.replace(/_/g," ")).join(""),E=[],D="",C=0;for(let g=0;g<j.length;g++){let B=j[g];if(B==="\\"){D+=B+j[++g];continue}!C&&B===","?(E.push(D),D=""):(D+=B,C&&B===")"?C--:B==="("&&C++)}return D&&E.push(D),E};this.prefixSelectors=q?xe(q):[""];let fe=re.split("@"),me=fe[0];if(me){this.vendorSuffixSelectors={};let N=(g,B,m,M)=>{for(let[T,$]of B)if(T.test(g)){for(let A of $)N(g.replace(T,A),B,m,!0);return}M&&m.push(g)},j=[];""in a?N(me,a[""],j,!0):j.push(me);let E={};for(let[g,B]of Object.entries(a)){if(!g)continue;let m=[];for(let M of j)N(M,B,m,!1);m.length&&(E[g]=m)}let D=(g,B)=>{let m=B.reduce((M,T)=>(M.push(...xe(T)),M),[]);g in this.vendorSuffixSelectors?this.vendorSuffixSelectors[g].push(...m):this.vendorSuffixSelectors[g]=m},C=Object.keys(E);if(C.length)for(let g of C)D(g,E[g]);else D("",j);for(let g of Object.values(this.vendorSuffixSelectors))for(let B of g){this.hasWhere!==!1&&(this.hasWhere=B.includes(":where("));let m=[":disabled",":active",":focus",":hover"];for(let M=0;M<m.length;M++)if(B.includes(m[M])){(this.priority===-1||this.priority>M)&&(this.priority=M);break}}}else this.vendorSuffixSelectors={"":[""]};for(let N=1;N<fe.length;N++){let j=fe[N];if(j)if(p.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let E,D,C=j.indexOf("_");if(C!==-1)E=j.slice(0,C),D=j.slice(C);else{let g=j.indexOf("(");g!==-1&&(E=j.slice(0,g),D=j.slice(g))}if(!E){E="media";let g=[];this.media={token:j,features:{}};let B=j.split("&");for(let m of B)if(m==="all"||m==="print"||m==="screen"||m==="speech")this.media.type=m;else if(m==="\u{1F5A8}")this.media.type="print";else if(m==="landscape"||m==="portrait")g.push("(orientation:"+m+")");else if(m==="motion"||m==="reduced-motion")g.push("(prefers-reduced-motion:"+(m==="motion"?"no-preference":"reduce")+")");else if(v&&m in v)g.push(v[m]);else{let M={token:m},T="",$="",A=0;m.startsWith("<=")?($="<=",T="max-width"):m.startsWith(">=")||b[m]?($=">=",T="min-width"):m.startsWith(">")?($=">",T="min-width",A=.02):m.startsWith("<")&&($="<",T="max-width",A=-.02);let X=$?m.replace($,""):m,W=b[X];switch(T){case"max-width":case"min-width":W?Object.assign(M,this.analyzeUnitValue(W.toString(),"px")):Object.assign(M,this.analyzeUnitValue(X,"px")),M.unit==="px"&&(M.value+=A),this.media.features[T]=M,g.push("("+T+":"+(M.value+M.unit)+")");break}}D="",this.media.type&&(D=this.media.type),g.length&&(D+=(D?" and ":"")+g.join(" and "))}D&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+D.replace(/_/g," "))}}let he=(N,j)=>{let E,D=(B,m,M)=>{let T="";this.direction&&(T+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(W=>W+T),A=(W,_)=>$.map(F=>(W&&w!=="media"?w==="host"?`:host(.${W}) `:`.${W} `:"")+(f?f+" ":"")+F).reduce((F,ee)=>(F.push(M.reduce((te,K)=>(te.push(ee+"."+le(_)+K),te),[]).join(",")),F),[]).join(","),X=A(m,e)+(I?Object.entries(I).filter(([W])=>this.theme||!y||!m||!W||W===m).map(([W,_])=>_.reduce((F,ee)=>F+","+A(this.theme??((y||L)&&m||W),ee),"")).join(""):"")+"{"+B+"}";for(let W of Object.keys(this.at).sort((_,F)=>F==="supports"?-1:1))X="@"+W+" "+this.at[W]+"{"+X+"}";return m&&w==="media"&&(X=`@media(prefers-color-scheme:${m}){`+X+"}"),X},C=[];if(Z){let B=[this.theme??N,""],m,M=!1;for(let T of Z)if(typeof T=="string")C.push(T);else{let $=T.value;if(T.unit)$+=T.unit;else if(y&&r&&u){let A=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${u.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(X,W,_,F)=>{let ee=r[_];if(ee){let te,K;for(let J of B)if(te=ee[J]){K=J;break}if(te){A=!j||K===N,m||(m=A);let J=te;if(F){let Q=F.endsWith("%")?parseFloat(F)/100:+F;Q=isNaN(Q)?1:Math.min(Math.max(Q,0),1),J+=Math.round(Q*255).toString(16).toUpperCase().padStart(2,"0")}return W+J}else M=!0}return X})}C.push($)}if(j&&(M||(m===void 0?N:!m)))return;if(E=C.reduce((T,$,A)=>T+$+($===","||Z[A+1]===","||A===Z.length-1?"":" "),""),c&&(E=c.call(this,E,this.css.config)),y&&E==="current"&&(E="currentColor"),d){let T,$;if(Z.length===1){let A=Z[0];typeof A=="object"&&(T=A.value,$=A.unit)}P=d.call(this,$?T:E,$||"")}else P={[k]:E}}let g={};for(let B in P){let m=($,A)=>{let X=A+((this.important||x)&&!A.endsWith("!important")?"!important":"");$ in g?g[$].push(X):g[$]=[X]},M=B+":",T=P[B];if(typeof T=="object")if(Array.isArray(T))for(let $ of T)m(N,M+$.toString());else{L=!0;for(let $ in T)m($,M+T[$])}else m(N,M+T.toString())}for(let B of Object.values(this.vendorSuffixSelectors))for(let m in g)this.natives.push({text:D(g[m].join(";"),m,B),theme:m})};if(this.theme)he(this.theme,!1);else if(y)for(let N of p)he(N,!0);else he("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,i){return Number.isNaN(+e)?e:e/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(e,i){let n=i??this.config.unit;if(n){let l="",s=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(e.includes("/")){let[y,k]=e.split("/");return{value:+y/+k*100+"%",unit:l}}else{let y=+s[1];return l=s[3]||"",l||((n==="rem"||n==="em")&&(y=y/this.css.config.rootSize),l=n||""),{value:y,unit:l}}}}};var Ce={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function se(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function ue(t,e,i){return((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}function Y(t){typeof t=="string"&&(t={"":t});let e=""in t,i=!1;for(let n in t)if(n&&+n>=100){i=!0;break}if(!i&&(!e||Object.keys(t).length>1)){let n=0,l="0"in t?se(t[0]):[0,0,0],s,y,k=[],h=()=>{let c=s-n,d=y.map((o,f)=>(o-l[f])/c);for(let o of k){let f=o-n,x=l.map((S,w)=>Math.round(S+d[w]*f));t[o]="#"+ue.call(this,...x)}};for(let c=1;c<100;c++)c in t?(k.length?(s=c,y=se(t[c]),h(),k.length=0,l=y):l=se(t[c]),n=c):k.push(c);k.length&&(s=100,y="100"in t?se(t[100]):[255,255,255],h())}return e||(t[""]=t[i?"500":"50"]),t}var Re={black:"#000000",white:"#ffffff",slate:Y({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:Y({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:Y({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:Y({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:Y({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:Y({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:Y({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:Y({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:Y({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:Y({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:Y({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:Y({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:Y({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:Y({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:Y({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:Y({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:Y({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:Y({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:Y({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:Y({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var $e=16;var Te="";var Be={"::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("};var Me={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"}};var Oe=["dark","light"];var Ue={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",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={},i=(c,d)=>{let o=d.indexOf(":");if(o!==-1){c in e||(e[c]={});let f=e[c],x=d.slice(0,o);x in f||(f[x]=d.slice(o+1))}},n=c=>{let d=(o,f)=>{let x=f.slice(le(c.className).length).match(/\{(.*)\}/)[1].split(";");for(let S of x)i(o,S)};if(this.theme){let o=c.natives.find(f=>f.theme===this.theme)??c.natives.find(f=>!f.theme);o&&d(this.theme,o.text)}else for(let o of c.natives)d(o.theme,o.text);if(c.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let o of c.keyframeNames)this.keyframeNames.includes(o)||this.keyframeNames.push(o)}},l=[],s="",y=()=>{s&&(l.push(s.replace(/ /g,"|")),s="")},k=1;(function c(d){for(;k<t.length;k++){let o=t[k];if(!d){if(o===";"){y();continue}if(o==="}")break}if(s+=o,d===o){if(d==="'"||d==='"'){let f=0;for(let x=s.length-2;s[x]==="\\";x--)f++;if(f%2)continue}break}else o in ie&&d!=="'"&&d!=='"'&&(k++,c(ie[o]))}})(void 0),y();for(let c of l){let d=this.css.create(c);if(Array.isArray(d))for(let o of d)n(o);else d?n(d):i(this.theme??"",c)}let h={};for(let c in e)for(let[d,o]of Object.entries(e[c]))d in h?h[d][c]=o:h[d]={[c]:o};return h},delete(){return ge.call(this)},insert(){return pe.call(this)}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",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|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,i]=t.split(" x ");return{width:e,height:i}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"min-width":e,"min-height":i}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"max-width":e,"max-height":i}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},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",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{native:!0,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{native:!0,order:-1,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return je.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return je.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(t){if(t.startsWith("gradient"))return["linear-"+t];let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},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)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,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))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,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))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},scrollPadding:{match:"^sp:.",native:!0,unit:"rem",order:-1},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},Le=Ue;function je(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(i=>i in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function ge(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let i=this.css.keyframes[e];if(!--i.count){let n=t.natives.indexOf(i.native);this.css.style.sheet.deleteRule(n),t.natives.splice(n,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function pe(){if(this.keyframeNames){let{config:t,keyframes:e,style:i,rules:n}=this.css,l=i?.sheet;for(let s of this.keyframeNames)if(s in e)e[s].count++;else{let y={text:`@keyframes ${s}{`+Object.entries(t.keyframes[s]).map(([h,c])=>`${h}{${Object.entries(c).map(([d,o])=>d+":"+o).join(";")}}`).join("")+"}",theme:""},k;if(Object.keys(e).length?(k=n[0]).natives.push(y):n.splice(0,0,k={natives:[y],get text(){return this.natives.map(h=>h.text).join("")}}),l){let h;for(let c=0;c<l.cssRules.length;c++){let d=l.cssRules[c];if(d.constructor.name!=="CSSKeyframesRule")break;if(d.name===s){h=d;break}}if(h)y.cssRule=h;else{let c=k.natives.length-1;l.insertRule(y.text,c),y.cssRule=l.cssRules[c]}}e[s]={native:y,count:1}}}}var Ie=!1;var Ee=!0;var Ae=!1;var Ne={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"}}};var be={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=this.values,i=this.css.globalValues,n="",l,s="",y=!1,k="",h=!0,c=(d,o="",f="")=>{if(l===2&&!y){let x=this.analyzeUnitValue(s,be.calc.unit);x&&(s=x.value+x.unit)}d!=="("?e&&s in e?s=e[s].toString():i&&s in i&&(s=i[s].toString()):k=s,d===")"&&(k=""),n+=s+o+d+f,l=null,y=!1,s=""};for(let d=0;d<t.length;d++){let o=t[d];if(o==="("||o===")"){c(o),h=!0;continue}else if(o===",")c(o,""," ");else if(o==="-"&&l!==1){let f=t[d-1];f==="("?n+=o:f===")"?c(o," "," "):isNaN(+t[d+1])?f==="-"?(c(o),l=1):c(o,h?"":" ",h?"":" "):c(o,s?" ":"",s?" ":"")}else if(o==="+"||o==="*"||o==="/"||k!=="var"&&o==="-")c(o," "," ");else{switch(l){case 1:break;case 2:o!=="."&&!/[0-9]/.test(o)&&(y=!0);break;default:l=isNaN(+o)?1:2}l?s+=o:n+=o}h=!1}return c(""),n}},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:""},repeat:{unit:""}};var We="class";var ae={breakpoints:Ce,colors:Re,rootSize:16,scope:Te,selectors:Be,semantics:Me,themes:Oe,rules:Le,override:!1,observe:!0,important:!1,functions:be,keyframes:Ne,themeDriver:We};var ze=[",",".","#","[","!","*",">","+","~",":","@"];var ve=typeof window<"u",De=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e=ae){this.config=e;e?.override||(this.config=G(ae,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),ve&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:i,selectors:n,themes:l,colors:s,values:y,breakpoints:k,mediaQueries:h,rules:c}=this.config;function d(r){return r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(r,a,b="",v={}){let R=L=>L?(b?b+"-":"")+L:b,O=Object.entries(r),I=[],P=[];for(let L of O){let q=L[1];(typeof q=="object"&&!Array.isArray(q)?I:P).push(L)}for(let[L,q]of I)o(q,a,R(L),v);if(a&&b)P.length&&(v[b]=P.reduce((L,[q,re])=>(L[q]=re,L),{}));else for(let[L,q]of P)v[R(L)]=q;return v}if(e)for(let[r,a]of Object.entries(o(e,!0)))this.semantics.push([new RegExp("^"+d(r)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[r,a]]);if(n)for(let[r,a]of Object.entries(o(n,!1))){let b=new RegExp(d(r)+"(?![a-z-])");for(let v of Array.isArray(a)?a:[a]){let R=v.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[R];O||(O=this.selectors[R]=[]);let I=O.find(([P])=>P===b);I||(I=[b,[]],O.push(I)),I[1].push(v)}}y&&(this.globalValues=o(y,!1)),k&&(this.breakpoints=o(k,!1)),h&&(this.mediaQueries=o(h,!1));let f=i?o(i,!1):{},x=l&&!Array.isArray(l)?Object.entries(l).filter(([,{classes:r}])=>r).reduce((r,[a,{classes:b}])=>(r[a]=o(b,!1),r),{}):{},S=[...Object.keys(f),...Object.entries(x).flatMap(([r,a])=>Object.keys(a))],w=r=>{if(r in this.classes)return;let a=this.classes[r]=[],b=(v,R)=>{if(!R)return;let O=Array.isArray(R)?R:R.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let I of O){let P=L=>{L in this.themeAffectedClassesBy?v in this.themeAffectedClassesBy[L]?this.themeAffectedClassesBy[L][v].push(r):this.themeAffectedClassesBy[L][v]=[r]:this.themeAffectedClassesBy[L]={[v]:[r]},a.includes(L)||a.push(L)};if(S.includes(I)){w(I);for(let L of this.classes[I])P(L)}else P(I)}};b("",f?.[r]);for(let[v,R]of Object.entries(x))b(v,R?.[r])};for(let r of S)w(r);for(let r in this.themeAffectedClassesBy){let a=this.classesBy[r]=[];for(let b of Object.values(this.themeAffectedClassesBy[r]))for(let v of b)a.includes(v)||a.push(v)}let p=(r,a)=>{if(!a)return;let b=o(a,!0);for(let[v,R]of Object.entries(b)){let O=typeof R=="string"?{"":R}:R;for(let[I,P]of Object.entries(O)){let L=v+(I?"-"+I:"");L in this.colorThemesMap?this.colorThemesMap[L][r]=P:this.colorThemesMap[L]={[r]:P}}}for(let v in a)this.colorNames.includes(v)||this.colorNames.push(v)};if(p("",s),l)if(Array.isArray(l))this.themeNames.push(...l);else for(let r in l){let a=l[r];p(r,a.colors),this.themeNames.push(r)}let u=r=>{for(let[a,b]of Object.entries(this.colorThemesMap))for(let[v,R]of Object.entries(b))R.startsWith("#")||r(a,b,v,R)};if(u((r,a,b,v)=>{let R=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(v);if(R){let O="#"+ue(+R[1],+R[2],+R[3]);R[4]&&(O+=Math.round(255*+R[4]).toString(16)),a[b]=O}}),u((r,a,b,v)=>{let[R,O]=v.split("/"),I=this.colorThemesMap[R];if(I){let P=(b?I[b]:void 0)??I[""];a[b]=O?P.slice(0,7)+Math.round(255*+O).toString(16):P}else console.warn(`\`${v}\` doesn't exist in the extended config \`.colors\``),delete a[b],Object.keys(a).length||delete this.colorThemesMap[r]}),c)for(let r in c){let a=c[r],{native:b,values:v,colored:R}=a,O=a.match;if(a.id=r,a.native=b===!0?r.replace(/(?!^)[A-Z]/g,I=>"-"+I).toLowerCase():void 0,v&&(this.values[r]=o(v,!1)),O){let I=Object.keys(this.values[r]??{});O.includes("$values")&&(O=I.length?O.replace(/\$values/,I.join("|")):O.replace(/(?:\|)?\$values/,"")),R&&O.includes("$colors")&&(O=this.colorNames.length?O.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):O.replace(/(?:\|)?\$colors/,"")),this.matches[r]=new RegExp(O)}}}observe(e,i={subtree:!0,childList:!0}){if(this.root!==e){if(ve&&e){this.root=e;let n=e===document;n&&(ne.root=this),this.host=n?document.documentElement:this.root.host;let l=n?document.head:e,s=n?document.styleSheets:e.styleSheets;for(let k of s){let{ownerNode:h}=k;if(h.id==="master"){this.style=h;break}}if(this.style)for(let k=0;k<this.style.sheet.cssRules.length;k++){let h=this.style.sheet.cssRules[k];if(h.constructor.name==="CSSKeyframesRule")continue;let c=o=>{if(o.selectorText){let x=o.selectorText.split(", ")[0].split(" ");for(let S=0;S<x.length;S++){let w=x[S];if(w[0]==="."){let p=w.slice(1),u="";for(let r=0;r<p.length;r++){let a=p[r],b=p[r+1];if(a==="\\"){if(r++,b!=="\\"){u+=b;continue}}else if(ze.includes(a))break;u+=a}if(!(u in this.ruleBy)&&!(u in this.classes)){let r=this.create(u)[0];if(r)return r}}}}else if(o.cssRules)for(let f=0;f<o.cssRules.length;f++){let x=c(o.cssRules[f]);if(x)return x}},d=c(h);if(d){this.rules.push(d),this.ruleBy[d.className]=d;for(let o=0;o<d.natives.length;o++)d.natives[o].cssRule=this.style.sheet.cssRules[k+o];k+=d.natives.length-1,d.config.insert?.call(d)}}else this.style=De(),l.append(this.style);let y=k=>{k.forEach(h=>{h in this.countBy?this.countBy[h]++:(this.countBy[h]=1,this.insert(h))})};y(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(k=>y(k.classList)),this.observer=new MutationObserver(k=>{let h={},c=[],d=[],o=[],f=(p,u)=>{u?p.classList.forEach(S):p.classList.forEach(x);let r=p.children;for(let a=0;a<r.length;a++){let b=r[a];b.classList&&(d.push(b),f(b,u))}},x=p=>{p in h?h[p]++:h[p]=1},S=p=>{p in h?h[p]--:p in this.countBy&&(h[p]=-1)},w=(p,u)=>{for(let r=0;r<p.length;r++){let a=p[r];a.classList&&!d.includes(a)&&!o.includes(a)&&(a.isConnected!==u?(d.push(a),f(a,u)):o.push(a))}};for(let p=0;p<k.length;p++){let u=k[p],{addedNodes:r,removedNodes:a,type:b,target:v}=u;if(b==="attributes"){if(c.find(R=>R.target===v))continue;c.push(u)}else w(r,!1),(!v.isConnected||!d.includes(v))&&w(a,!0)}if(!(!c.length&&!Object.keys(h).length)){for(let{oldValue:p,target:u}of c){let r=d.includes(u),a=u.classList,b=p?p.split(" "):[];if(r){if(u.isConnected)continue;for(let v of b)a.contains(v)||S(v)}else if(u.isConnected){a.forEach(v=>{b.includes(v)||x(v)});for(let v of b)a.contains(v)||S(v)}}for(let p in h){let u=h[p],r=(this.countBy[p]||0)+u;r===0?(delete this.countBy[p],this.delete(p)):(p in this.countBy||this.insert(p),this.countBy[p]=r)}}}),this.observer.observe(e,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let i=e.cssRules.length-1;i>=0;i--)e.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(e){for(let i in this.config.rules){let n=this.config.rules[i],l=this.matches[i],{symbol:s,native:y}=n;if(l&&l.test(e))return{origin:"match",config:n};if(s&&e.startsWith(s))return{origin:"symbol",config:n};if(y&&e.startsWith(y+":"))return{origin:"match",config:n}}for(let i of this.semantics)if(e.match(i[0]))return{origin:"semantics",value:i[1]}}create(e){let i=n=>{if(n in this.ruleBy)return this.ruleBy[n];let l=this.match(n);if(l)return new ce(n,l,this)};return(e in this.classes?this.classes[e].map(n=>i(n)):[i(e)]).filter(n=>n&&n.text)}refresh(e){if(e?.override?this.config=e:this.config=G(ae,e),this.cache(),!this.style)return;let i=De();this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let i=this.style?.sheet,n=l=>{let s=this.ruleBy[l];if(!(!s||l in this.classesBy&&this.classesBy[l].some(y=>y in this.countBy))){if(i&&s.natives.length){let y=s.natives[0];for(let k=0;k<i.cssRules.length;k++)if(i.cssRules[k]===y.cssRule){for(let c=0;c<s.natives.length;c++)i.deleteRule(k);break}}this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[l],s.config.delete&&s.config.delete.call(s,l)}};if(e in this.classes){for(let l of this.classes[e])l in this.countBy||n(l);delete this.ruleBy[e]}else n(e)}insert(e){let i=this.create(e);return i.length?(this.insertRules(i),!0):!1}insertRules(e){for(let i of e){if(this.ruleBy[i.className])continue;let n,l=Object.keys(this.keyframes).length,s=this.rules.length-1,{media:y,order:k,priority:h,hasWhere:c,className:d}=i,o=(S,w,p)=>{let u=S;for(;u<=s;u++){let r=this.rules[u];if(w?.(r))return p?-1:u-1;if(p?.(r))return u}return p?-1:u-1},f,x;if(y){let S=this.rules.findIndex(w=>w.media);if(S===-1)n=s+1;else{let{"max-width":w,"min-width":p}=y.features;if(w||p){let u=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(u===-1)n=s+1;else if(w&&p){if(h===-1?(f=o(u,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),x=o(u,r=>r.priority!==-1)):(f=o(u,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),x=s),f!==-1){let r=w.value-p.value,a=x,b=f;for(f=void 0;a>=b;a--){let{"max-width":v,"min-width":R}=this.rules[a].media.features,O=v.value-R.value;if(O<r)x=a-1;else if(O===r)f=a;else break}}if(f!==-1){let r=w.value-p.value;for(let a=x;a>=f;a--){let{"max-width":b,"min-width":v}=this.rules[a].media.features,R=b.value-v.value;if(R<r)x=a-1;else if(R>r){f=a+1;break}}}}else if(p){if(h===-1?(f=o(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),x=o(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(f=o(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),x=o(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),f!==-1)for(let r=x;r>=f;r--){let a=this.rules[r].media.features["min-width"].value;if(a>p.value)x=r-1;else if(a<p.value){f=r+1;break}}}else if(h===-1?(f=o(u,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),x=o(u,r=>r.media.features["min-width"]||r.priority!==-1)):(f=o(u,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),x=o(u,r=>r.media.features["min-width"]&&r.priority!==-1)),f!==-1)for(let r=x;r>=f;r--){let a=this.rules[r].media.features["max-width"].value;if(a<w.value)x=r-1;else if(a>w.value){f=r+1;break}}}else h===-1?(f=S,x=o(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(f=o(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),x=o(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let S=l?1:0;h===-1?(f=S,x=o(S,w=>w.media||w.priority!==-1)):(f=o(S,w=>w.media,w=>w.priority!==-1),x=o(S,w=>w.media))}if(n===void 0)if(f===-1)n=x+1;else{if(h===-1)for(let S=f;S<=x;S++){let w=this.rules[S];if(!(!c&&w.hasWhere)&&(c&&!w.hasWhere||w.order>=k)){n=S;break}}else for(let S=f;S<=x;S++){let w=this.rules[S];if(!(!c&&w.hasWhere)){if(c&&!w.hasWhere){n=S;break}if(w.priority<h){n=S;break}else if(w.priority===h){if(w.order>=k){n=S;break}}else n=S+1}}n===void 0&&(n=x+1)}if(this.rules.splice(n,0,i),this.ruleBy[d]=i,this.style){let S=this.style.sheet,w=0,p=u=>{let r=this.rules[u];if(r){if(!r.natives.length)return p(u-1);let a=r.natives[r.natives.length-1].cssRule;for(let b=0;b<S.cssRules.length;b++)if(S.cssRules[b]===a){w=b+1;break}}};p(n-1);for(let u=0;u<i.natives.length;)try{let r=i.natives[u];S.insertRule(r.text,w),r.cssRule=S.cssRules[w++],u++}catch(r){console.error(r),i.natives.splice(u,1)}}i.config.insert?.call(i)}}get text(){return this.rules.map(e=>e.text).join("")}},U=ne;oe(U,"root"),oe(U,"config",ae),oe(U,"instances",[]),oe(U,"refresh",e=>{for(let i of ne.instances)i.refresh(e)});ve&&(window.MasterCSS=U);var Fe={store:"theme",init:!0},qe=typeof document<"u",Ve=typeof localStorage<"u",Pe=class{constructor(e,i=qe?document.documentElement:null){this.settings=e;this.host=i;this.settings=e?G(Fe,e):Fe,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,i=this.storage;i&&(e=i),this.value=e}get storage(){let{store:e}=this.settings;if(Ve&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.r}set current(e){let i=this.t;this.t=e,this.host&&i!==e&&(i&&this.host.classList.remove(i),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,i={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Ve&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),i.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function tr(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}var ir=`/** @type {import('@master/css').Config} */
1
+ var He=Object.defineProperty;var _e=(t,e,r)=>e in t?He(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(_e(t,typeof e!="symbol"?e+"":e,r),r);function ke(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function we(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 Se(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=Se(r):ke(r)?e[n]=we(r):e[n]=K({},r):e[n]=r}),e}function ye(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},r,n;return t.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(a){if(n=ye(e,a),r=ye(l,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=Se(r);return}else if(ke(r)){e[a]=we(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[a]=K({},r);return}else{e[a]=K(n,r);return}})}),e}var ie={"(":")","'":"'",'"':'"',"{":"}"};function le(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,n=-1,l="",a,y=e.charCodeAt(0);if(r==1&&y==45)return"\\"+e;for(;++n<r;){if(a=e.charCodeAt(n),a==0){l+="\uFFFD";continue}if(a>=1&&a<=31||a==127||n==0&&a>=48&&a<=57||n==1&&a>=48&&a<=57&&y==45){l+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){l+=e.charAt(n);continue}l+="\\"+e.charAt(n)}return l}var Qe={unit:"",order:0,separators:[","]},ce=class{constructor(e,r={},n){this.className=e;this.meta=r;this.css=n;this.config=K(Qe,r.config);let{unit:l,order:a,colored:y,native:k,analyze:g,transform:c,declare:f,create:o}=this.config,{scope:m,important:x,functions:S,themeDriver:w}=n.config,{themeNames:b,colorNames:u,colorThemesMap:i,selectors:s,breakpoints:d,mediaQueries:v,themeAffectedClassesBy:R,globalValues:T}=n,L=R[e];o&&o.call(this,e);let I,X,E,Q,Z;if(r.origin==="semantics"){let[W,j]=r.value;Q=e.slice(W.length),I=j}else{let W;if(g)[W,E]=g.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),W=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));Z=[];let j=this,A=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let C="",p=0;(function M(h,O,B,$=void 0,N=[],H=[],z){let U=$===void 0,V,te=D=>D==="'"||D==='"',re=()=>V=C.length,J=()=>{if(C){let D=C,P=U?D:C.slice(V);if(C="",q="",A&&P in A&&!N.includes(P)){let _=p;p=0,M(A[P].toString(),O,void 0,$,[...N,P],H,z),p=_,U||(C=C.slice(0,V)+C)}else if(T&&P in T&&!H.includes(P)){let _=p;p=0,M(T[P].toString(),O,void 0,$,N,[...H,P],z),p=_,U||(C=C.slice(0,V)+C)}else if(U){let _=!z&&j.analyzeUnitValue(P,O);Z.push({value:_?.value??P,unit:_?.unit})}else{let _=!z&&j.analyzeUnitValue(P,O);C=_?D.slice(0,V)+_.value+_.unit:D}re()}},ee=te(B);re();let q="";for(;p<h.length;p++){let D=h[p];if(D===B){if(ee){C+=D;let P=0;for(let _=C.length-2;C[_]==="\\";_--)P++;if(P%2)continue}else J(),C+=D;return}else if(!ee&&D in ie){let P=D==="("&&q&&S?.[q];P?.name&&(C=C.slice(0,C.length-q.length)+P.name,q=P.name),C+=D,p++;let _=ie[D];M(h,P?.unit??O,_,q||$||"",N,H,z||!!P?.transform),P?.transform&&(C=C.slice(0,V+q.length+1)+P.transform.call(j,C.slice(V+q.length+1,-1))+C.slice(-1)),U&&(te(_)?(Z.push(C),C=""):J()),q=""}else if((D==="|"||D===" ")&&B!=="}"&&(!ee||$==="path"))J(),U||(C+=" ",V++);else{if(!ee){if(D==="."){if(isNaN(+h[p+1]))break;h[p-1]==="-"&&(C+="0")}else if(F.includes(D)){J(),U?Z.push(D):(C+=D,V++);continue}else if(U&&(D==="#"&&(C||Z.length&&h[p-1]!=="|"&&Z[p-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}C+=D}}$===void 0&&J()})(W,l),Q=W.slice(p)}this.order=typeof a=="function"?a.call(this,this.prefix):a,Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let xe=W=>{let j=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((p,M)=>M%3?p:p.replace(/_/g," ")).join(""),A=[],F="",C=0;for(let p=0;p<j.length;p++){let M=j[p];if(M==="\\"){F+=M+j[++p];continue}!C&&M===","?(A.push(F),F=""):(F+=M,C&&M===")"?C--:M==="("&&C++)}return F&&A.push(F),A};this.prefixSelectors=E?xe(E):[""];let fe=Q.split("@"),me=fe[0];if(me){this.vendorSuffixSelectors={};let W=(p,M,h,O)=>{for(let[B,$]of M)if(B.test(p)){for(let N of $)W(p.replace(B,N),M,h,!0);return}O&&h.push(p)},j=[];""in s?W(me,s[""],j,!0):j.push(me);let A={};for(let[p,M]of Object.entries(s)){if(!p)continue;let h=[];for(let O of j)W(O,M,h,!1);h.length&&(A[p]=h)}let F=(p,M)=>{let h=M.reduce((O,B)=>(O.push(...xe(B)),O),[]);p in this.vendorSuffixSelectors?this.vendorSuffixSelectors[p].push(...h):this.vendorSuffixSelectors[p]=h},C=Object.keys(A);if(C.length)for(let p of C)F(p,A[p]);else F("",j);for(let p of Object.values(this.vendorSuffixSelectors))for(let M of p){this.hasWhere!==!1&&(this.hasWhere=M.includes(":where("));let h=[":disabled",":active",":focus",":hover"];for(let O=0;O<h.length;O++)if(M.includes(h[O])){(this.priority===-1||this.priority>O)&&(this.priority=O);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<fe.length;W++){let j=fe[W];if(j)if(b.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let A,F,C=j.indexOf("_");if(C!==-1)A=j.slice(0,C),F=j.slice(C);else{let p=j.indexOf("(");p!==-1&&(A=j.slice(0,p),F=j.slice(p))}if(!A){A="media";let p=[];this.media={token:j,features:{}};let M=j.split("&");for(let h of M)if(h==="all"||h==="print"||h==="screen"||h==="speech")this.media.type=h;else if(h==="\u{1F5A8}")this.media.type="print";else if(h==="landscape"||h==="portrait")p.push("(orientation:"+h+")");else if(h==="motion"||h==="reduced-motion")p.push("(prefers-reduced-motion:"+(h==="motion"?"no-preference":"reduce")+")");else if(v&&h in v)p.push(v[h]);else{let O={token:h},B="",$="",N=0;h.startsWith("<=")?($="<=",B="max-width"):h.startsWith(">=")||d[h]?($=">=",B="min-width"):h.startsWith(">")?($=">",B="min-width",N=.02):h.startsWith("<")&&($="<",B="max-width",N=-.02);let H=$?h.replace($,""):h,z=d[H];switch(B){case"max-width":case"min-width":z?Object.assign(O,this.analyzeUnitValue(z.toString(),"px")):Object.assign(O,this.analyzeUnitValue(H,"px")),O.unit==="px"&&(O.value+=N),this.media.features[B]=O,p.push("("+B+":"+(O.value+O.unit)+")");break}}F="",this.media.type&&(F=this.media.type),p.length&&(F+=(F?" and ":"")+p.join(" and "))}F&&(this.at[A]=(A in this.at?this.at[A]+" and ":"")+F.replace(/_/g," "))}}let he=(W,j)=>{let A,F=(M,h,O)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(z=>z+B),N=(z,U)=>$.map(V=>(z&&w!=="media"?w==="host"?`:host(.${z}) `:`.${z} `:"")+(m?m+" ":"")+V).reduce((V,te)=>(V.push(O.reduce((re,J)=>(re.push(te+"."+le(U)+J),re),[]).join(",")),V),[]).join(","),H=N(h,e)+(L?Object.entries(L).filter(([z])=>this.theme||!y||!h||!z||z===h).map(([z,U])=>U.reduce((V,te)=>V+","+N(this.theme??((y||X)&&h||z),te),"")).join(""):"")+"{"+M+"}";for(let z of Object.keys(this.at).sort((U,V)=>V==="supports"?-1:1))H="@"+z+" "+this.at[z]+"{"+H+"}";return h&&w==="media"&&(H=`@media(prefers-color-scheme:${h}){`+H+"}"),H},C=[];if(Z){let M=[this.theme??W,""],h,O=!1;for(let B of Z)if(typeof B=="string")C.push(B);else{let $=B.value;if(B.unit)$+=B.unit;else if(y&&i&&u){let N=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${u.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,z,U,V)=>{let te=i[U];if(te){let re,J;for(let ee of M)if(re=te[ee]){J=ee;break}if(re){N=!j||J===W,h||(h=N);let ee=re;if(V){let q=V.endsWith("%")?parseFloat(V)/100:+V;q=isNaN(q)?1:Math.min(Math.max(q,0),1),ee+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return z+ee}else O=!0}return H})}C.push($)}if(j&&(O||(h===void 0?W:!h)))return;if(A=C.reduce((B,$,N)=>B+$+($===","||Z[N+1]===","||N===Z.length-1?"":" "),""),c&&(A=c.call(this,A,this.css.config)),y&&A==="current"&&(A="currentColor"),f){let B,$;if(Z.length===1){let N=Z[0];typeof N=="object"&&(B=N.value,$=N.unit)}I=f.call(this,$?B:A,$||"")}else I={[k]:A}}let p={};for(let M in I){let h=($,N)=>{let H=N+((this.important||x)&&!N.endsWith("!important")?"!important":"");$ in p?p[$].push(H):p[$]=[H]},O=M+":",B=I[M];if(typeof B=="object")if(Array.isArray(B))for(let $ of B)h(W,O+$.toString());else{X=!0;for(let $ in B)h($,O+B[$])}else h(W,O+B.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let h in p)this.natives.push({text:F(p[h].join(";"),h,M),theme:h})};if(this.theme)he(this.theme,!1);else if(y)for(let W of b)he(W,!0);else he("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let n=r??this.config.unit;if(n){let l="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[y,k]=e.split("/");return{value:+y/+k*100+"%",unit:l}}else{let y=+a[1];return l=a[3]||"",l||((n==="rem"||n==="em")&&(y=y/this.css.config.rootSize),l=n||""),{value:y,unit:l}}}}};var Ce={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function se(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function ue(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function Y(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let n in t)if(n&&+n>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let n=0,l="0"in t?se(t[0]):[0,0,0],a,y,k=[],g=()=>{let c=a-n,f=y.map((o,m)=>(o-l[m])/c);for(let o of k){let m=o-n,x=l.map((S,w)=>Math.round(S+f[w]*m));t[o]="#"+ue.call(this,...x)}};for(let c=1;c<100;c++)c in t?(k.length?(a=c,y=se(t[c]),g(),k.length=0,l=y):l=se(t[c]),n=c):k.push(c);k.length&&(a=100,y="100"in t?se(t[100]):[255,255,255],g())}return e||(t[""]=t[r?"500":"50"]),t}var Re={black:"#000000",white:"#ffffff",slate:Y({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:Y({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:Y({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:Y({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:Y({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:Y({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:Y({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:Y({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:Y({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:Y({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:Y({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:Y({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:Y({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:Y({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:Y({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:Y({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:Y({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:Y({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:Y({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:Y({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var $e=16;var Te="";var Be={"::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("};var Me={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"}};var Oe=["dark","light"];var Ue={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",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=(c,f)=>{let o=f.indexOf(":");if(o!==-1){c in e||(e[c]={});let m=e[c],x=f.slice(0,o);x in m||(m[x]=f.slice(o+1))}},n=c=>{let f=(o,m)=>{let x=m.slice(le(c.className).length).match(/\{(.*)\}/)[1].split(";");for(let S of x)r(o,S)};if(this.theme){let o=c.natives.find(m=>m.theme===this.theme)??c.natives.find(m=>!m.theme);o&&f(this.theme,o.text)}else for(let o of c.natives)f(o.theme,o.text);if(c.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let o of c.keyframeNames)this.keyframeNames.includes(o)||this.keyframeNames.push(o)}},l=[],a="",y=()=>{a&&(l.push(a.replace(/ /g,"|")),a="")},k=1;(function c(f){for(;k<t.length;k++){let o=t[k];if(!f){if(o===";"){y();continue}if(o==="}")break}if(a+=o,f===o){if(f==="'"||f==='"'){let m=0;for(let x=a.length-2;a[x]==="\\";x--)m++;if(m%2)continue}break}else o in ie&&f!=="'"&&f!=='"'&&(k++,c(ie[o]))}})(void 0),y();for(let c of l){let f=this.css.create(c);if(Array.isArray(f))for(let o of f)n(o);else f?n(f):r(this.theme??"",c)}let g={};for(let c in e)for(let[f,o]of Object.entries(e[c]))f in g?g[f][c]=o:g[f]={[c]:o};return g},delete(){return ge.call(this)},insert(){return pe.call(this)}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{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"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",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|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",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:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",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}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},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",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{native:!0,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{native:!0,order:-1,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return je.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return je.call(this,t)},delete(){return ge.call(this)},insert(){return pe.call(this)}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(t){if(t.startsWith("gradient"))return["linear-"+t];let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},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)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,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))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,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))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^sml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^smr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^smt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^smb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:smx|scroll-margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:smy|scroll-margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},scrollMargin:{match:"^sm:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^spl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^spr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^spt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^spb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:spx|scroll-padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:spy|scroll-padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},scrollPadding:{match:"^sp:.",native:!0,unit:"rem",order:-1},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}},Le=Ue;function je(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function ge(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let n=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(n),t.natives.splice(n,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function pe(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:n}=this.css,l=r?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let y={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([g,c])=>`${g}{${Object.entries(c).map(([f,o])=>f+":"+o).join(";")}}`).join("")+"}",theme:""},k;if(Object.keys(e).length?(k=n[0]).natives.push(y):n.splice(0,0,k={natives:[y],get text(){return this.natives.map(g=>g.text).join("")}}),l){let g;for(let c=0;c<l.cssRules.length;c++){let f=l.cssRules[c];if(f.constructor.name!=="CSSKeyframesRule")break;if(f.name===a){g=f;break}}if(g)y.cssRule=g;else{let c=k.natives.length-1;l.insertRule(y.text,c),y.cssRule=l.cssRules[c]}}e[a]={native:y,count:1}}}}var Ie=!1;var Ee=!0;var Ae=!1;var Ne={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"}}};var be={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=this.values,r=this.css.globalValues,n="",l,a="",y=!1,k="",g=!0,c=(f,o="",m="")=>{if(l===2&&!y){let x=this.analyzeUnitValue(a,be.calc.unit);x&&(a=x.value+x.unit)}f!=="("?e&&a in e?a=e[a].toString():r&&a in r&&(a=r[a].toString()):k=a,f===")"&&(k=""),n+=a+o+f+m,l=null,y=!1,a=""};for(let f=0;f<t.length;f++){let o=t[f];if(o==="("||o===")"){c(o),g=!0;continue}else if(o===",")c(o,""," ");else if(o==="-"&&l!==1){let m=t[f-1];m==="("?n+=o:m===")"?c(o," "," "):isNaN(+t[f+1])?m==="-"?(c(o),l=1):c(o,g?"":" ",g?"":" "):c(o,a?" ":"",a?" ":"")}else if(o==="+"||o==="*"||o==="/"||k!=="var"&&o==="-")c(o," "," ");else{switch(l){case 1:break;case 2:o!=="."&&!/[0-9]/.test(o)&&(y=!0);break;default:l=isNaN(+o)?1:2}l?a+=o:n+=o}g=!1}return c(""),n}},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:""},repeat:{unit:""}};var We="class";var ae={breakpoints:Ce,colors:Re,rootSize:16,scope:Te,selectors:Be,semantics:Me,themes:Oe,rules:Le,override:!1,observe:!0,important:!1,functions:be,keyframes:Ne,themeDriver:We};var ze=[",",".","#","[","!","*",">","+","~",":","@"];var ve=typeof window<"u",De=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e=ae){this.config=e;e?.override||(this.config=K(ae,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),ve&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:n,themes:l,colors:a,values:y,breakpoints:k,mediaQueries:g,rules:c}=this.config;function f(s){return s.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(s,d,v="",R={}){let T=E=>E?(v?v+"-":"")+E:v,L=Object.entries(s),I=[],X=[];for(let E of L){let Q=E[1];(typeof Q=="object"&&!Array.isArray(Q)?I:X).push(E)}for(let[E,Q]of I)o(Q,d,T(E),R);if(d&&v)X.length&&(R[v]=X.reduce((E,[Q,Z])=>(E[Q]=Z,E),{}));else for(let[E,Q]of X)R[T(E)]=Q;return R}function m(s){for(let[d,v]of Object.entries(s))/^[0-9]+x$/.test(d)&&typeof v=="number"&&(s["-"+d]=v*-1);return s}if(e)for(let[s,d]of Object.entries(o(e,!0)))this.semantics.push([new RegExp("^"+f(s)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[s,d]]);if(n)for(let[s,d]of Object.entries(o(n,!1))){let v=new RegExp(f(s)+"(?![a-z-])");for(let R of Array.isArray(d)?d:[d]){let T=R.match(/^::-[a-z]+-/m)?.[0]??"",L=this.selectors[T];L||(L=this.selectors[T]=[]);let I=L.find(([X])=>X===v);I||(I=[v,[]],L.push(I)),I[1].push(R)}}y&&(this.globalValues=m(o(y,!1))),k&&(this.breakpoints=o(k,!1)),g&&(this.mediaQueries=o(g,!1));let x=r?o(r,!1):{},S=l&&!Array.isArray(l)?Object.entries(l).filter(([,{classes:s}])=>s).reduce((s,[d,{classes:v}])=>(s[d]=o(v,!1),s),{}):{},w=[...Object.keys(x),...Object.entries(S).flatMap(([s,d])=>Object.keys(d))],b=s=>{if(s in this.classes)return;let d=this.classes[s]=[],v=(R,T)=>{if(!T)return;let L=Array.isArray(T)?T:T.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let I of L){let X=E=>{E in this.themeAffectedClassesBy?R in this.themeAffectedClassesBy[E]?this.themeAffectedClassesBy[E][R].push(s):this.themeAffectedClassesBy[E][R]=[s]:this.themeAffectedClassesBy[E]={[R]:[s]},d.includes(E)||d.push(E)};if(w.includes(I)){b(I);for(let E of this.classes[I])X(E)}else X(I)}};v("",x?.[s]);for(let[R,T]of Object.entries(S))v(R,T?.[s])};for(let s of w)b(s);for(let s in this.themeAffectedClassesBy){let d=this.classesBy[s]=[];for(let v of Object.values(this.themeAffectedClassesBy[s]))for(let R of v)d.includes(R)||d.push(R)}let u=(s,d)=>{if(!d)return;let v=o(d,!0);for(let[R,T]of Object.entries(v)){let L=typeof T=="string"?{"":T}:T;for(let[I,X]of Object.entries(L)){let E=R+(I?"-"+I:"");E in this.colorThemesMap?this.colorThemesMap[E][s]=X:this.colorThemesMap[E]={[s]:X}}}for(let R in d)this.colorNames.includes(R)||this.colorNames.push(R)};if(u("",a),l)if(Array.isArray(l))this.themeNames.push(...l);else for(let s in l){let d=l[s];u(s,d.colors),this.themeNames.push(s)}let i=s=>{for(let[d,v]of Object.entries(this.colorThemesMap))for(let[R,T]of Object.entries(v))T.startsWith("#")||s(d,v,R,T)};if(i((s,d,v,R)=>{let T=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(R);if(T){let L="#"+ue(+T[1],+T[2],+T[3]);T[4]&&(L+=Math.round(255*+T[4]).toString(16)),d[v]=L}}),i((s,d,v,R)=>{let[T,L]=R.split("/"),I=this.colorThemesMap[T];if(I){let X=(v?I[v]:void 0)??I[""];d[v]=L?X.slice(0,7)+Math.round(255*+L).toString(16):X}else console.warn(`\`${R}\` doesn't exist in the extended config \`.colors\``),delete d[v],Object.keys(d).length||delete this.colorThemesMap[s]}),c)for(let s in c){let d=c[s],{native:v,values:R,colored:T}=d,L=d.match;if(d.id=s,d.native=v===!0?s.replace(/(?!^)[A-Z]/g,I=>"-"+I).toLowerCase():void 0,R&&(this.values[s]=m(o(R,!1))),L){let I=Object.keys(this.values[s]??{});L.includes("$values")&&(L=I.length?L.replace(/\$values/,I.join("|")):L.replace(/(?:\|)?\$values/,"")),T&&L.includes("$colors")&&(L=this.colorNames.length?L.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):L.replace(/(?:\|)?\$colors/,"")),this.matches[s]=new RegExp(L)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ve&&e){this.root=e;let n=e===document;n&&(ne.root=this),this.host=n?document.documentElement:this.root.host;let l=n?document.head:e,a=n?document.styleSheets:e.styleSheets;for(let k of a){let{ownerNode:g}=k;if(g&&g.id==="master"){this.style=g;break}}if(this.style)for(let k=0;k<this.style.sheet.cssRules.length;k++){let g=this.style.sheet.cssRules[k];if(g.constructor.name==="CSSKeyframesRule")continue;let c=o=>{if(o.selectorText){let x=o.selectorText.split(", ")[0].split(" ");for(let S=0;S<x.length;S++){let w=x[S];if(w[0]==="."){let b=w.slice(1),u="";for(let i=0;i<b.length;i++){let s=b[i],d=b[i+1];if(s==="\\"){if(i++,d!=="\\"){u+=d;continue}}else if(ze.includes(s))break;u+=s}if(!(u in this.ruleBy)&&!(u in this.classes)){let i=this.create(u)[0];if(i)return i}}}}else if(o.cssRules)for(let m=0;m<o.cssRules.length;m++){let x=c(o.cssRules[m]);if(x)return x}},f=c(g);if(f){this.rules.push(f),this.ruleBy[f.className]=f;for(let o=0;o<f.natives.length;o++)f.natives[o].cssRule=this.style.sheet.cssRules[k+o];k+=f.natives.length-1,f.config.insert?.call(f)}}else this.style=De(),l.append(this.style);let y=k=>{k.forEach(g=>{g in this.countBy?this.countBy[g]++:(this.countBy[g]=1,this.insert(g))})};y(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(k=>y(k.classList)),this.observer=new MutationObserver(k=>{let g={},c=[],f=[],o=[],m=(b,u)=>{u?b.classList.forEach(S):b.classList.forEach(x);let i=b.children;for(let s=0;s<i.length;s++){let d=i[s];d.classList&&(f.push(d),m(d,u))}},x=b=>{b in g?g[b]++:g[b]=1},S=b=>{b in g?g[b]--:b in this.countBy&&(g[b]=-1)},w=(b,u)=>{for(let i=0;i<b.length;i++){let s=b[i];s.classList&&!f.includes(s)&&!o.includes(s)&&(s.isConnected!==u?(f.push(s),m(s,u)):o.push(s))}};for(let b=0;b<k.length;b++){let u=k[b],{addedNodes:i,removedNodes:s,type:d,target:v}=u;if(d==="attributes"){if(c.find(R=>R.target===v))continue;c.push(u)}else w(i,!1),(!v.isConnected||!f.includes(v))&&w(s,!0)}if(!(!c.length&&!Object.keys(g).length)){for(let{oldValue:b,target:u}of c){let i=f.includes(u),s=u.classList,d=b?b.split(" "):[];if(i){if(u.isConnected)continue;for(let v of d)s.contains(v)||S(v)}else if(u.isConnected){s.forEach(v=>{d.includes(v)||x(v)});for(let v of d)s.contains(v)||S(v)}}for(let b in g){let u=g[b],i=(this.countBy[b]||0)+u;i===0?(delete this.countBy[b],this.delete(b)):(b in this.countBy||this.insert(b),this.countBy[b]=i)}}}),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},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 in this.config.rules){let n=this.config.rules[r],l=this.matches[r],{symbol:a,native:y}=n;if(l&&l.test(e))return{origin:"match",config:n};if(a&&e.startsWith(a))return{origin:"symbol",config:n};if(y&&e.startsWith(y+":"))return{origin:"match",config:n}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=n=>{if(n in this.ruleBy)return this.ruleBy[n];let l=this.match(n);if(l)return new ce(n,l,this)};return(e in this.classes?this.classes[e].map(n=>r(n)):[r(e)]).filter(n=>n&&n.text)}refresh(e){if(e?.override?this.config=e:this.config=K(ae,e),this.cache(),!this.style)return;let r=De();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,n=l=>{let a=this.ruleBy[l];if(!(!a||l in this.classesBy&&this.classesBy[l].some(y=>y in this.countBy))){if(r&&a.natives.length){let y=a.natives[0];for(let k=0;k<r.cssRules.length;k++)if(r.cssRules[k]===y.cssRule){for(let c=0;c<a.natives.length;c++)r.deleteRule(k);break}}this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[l],a.config.delete&&a.config.delete.call(a,l)}};if(e in this.classes){for(let l of this.classes[e])l in this.countBy||n(l);delete this.ruleBy[e]}else n(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 n,l=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:y,order:k,priority:g,hasWhere:c,className:f}=r,o=(S,w,b)=>{let u=S;for(;u<=a;u++){let i=this.rules[u];if(w?.(i))return b?-1:u-1;if(b?.(i))return u}return b?-1:u-1},m,x;if(y){let S=this.rules.findIndex(w=>w.media);if(S===-1)n=a+1;else{let{"max-width":w,"min-width":b}=y.features;if(w||b){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)n=a+1;else if(w&&b){if(g===-1?(m=o(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),x=o(u,i=>i.priority!==-1)):(m=o(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),x=a),m!==-1){let i=w.value-b.value,s=x,d=m;for(m=void 0;s>=d;s--){let{"max-width":v,"min-width":R}=this.rules[s].media.features,T=v.value-R.value;if(T<i)x=s-1;else if(T===i)m=s;else break}}if(m!==-1){let i=w.value-b.value;for(let s=x;s>=m;s--){let{"max-width":d,"min-width":v}=this.rules[s].media.features,R=d.value-v.value;if(R<i)x=s-1;else if(R>i){m=s+1;break}}}}else if(b){if(g===-1?(m=o(u,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"]),x=o(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(m=o(u,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),x=o(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=x;i>=m;i--){let s=this.rules[i].media.features["min-width"].value;if(s>b.value)x=i-1;else if(s<b.value){m=i+1;break}}}else if(g===-1?(m=o(u,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),x=o(u,i=>i.media.features["min-width"]||i.priority!==-1)):(m=o(u,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),x=o(u,i=>i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=x;i>=m;i--){let s=this.rules[i].media.features["max-width"].value;if(s<w.value)x=i-1;else if(s>w.value){m=i+1;break}}}else g===-1?(m=S,x=o(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(m=o(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),x=o(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let S=l?1:0;g===-1?(m=S,x=o(S,w=>w.media||w.priority!==-1)):(m=o(S,w=>w.media,w=>w.priority!==-1),x=o(S,w=>w.media))}if(n===void 0)if(m===-1)n=x+1;else{if(g===-1)for(let S=m;S<=x;S++){let w=this.rules[S];if(!(!c&&w.hasWhere)&&(c&&!w.hasWhere||w.order>=k)){n=S;break}}else for(let S=m;S<=x;S++){let w=this.rules[S];if(!(!c&&w.hasWhere)){if(c&&!w.hasWhere){n=S;break}if(w.priority<g){n=S;break}else if(w.priority===g){if(w.order>=k){n=S;break}}else n=S+1}}n===void 0&&(n=x+1)}if(this.rules.splice(n,0,r),this.ruleBy[f]=r,this.style){let S=this.style.sheet,w=0,b=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return b(u-1);let s=i.natives[i.natives.length-1].cssRule;for(let d=0;d<S.cssRules.length;d++)if(S.cssRules[d]===s){w=d+1;break}}};b(n-1);for(let u=0;u<r.natives.length;)try{let i=r.natives[u];S.insertRule(i.text,w),i.cssRule=S.cssRules[w++],u++}catch(i){console.error(i),r.natives.splice(u,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},G=ne;oe(G,"root"),oe(G,"config",ae),oe(G,"instances",[]),oe(G,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ve&&(window.MasterCSS=G);var Fe={store:"theme",init:!0},qe=typeof document<"u",Ve=typeof localStorage<"u",Pe=class{constructor(e,r=qe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?K(Fe,e):Fe,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(Ve&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&r!==e&&(r&&this.host.classList.remove(r),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Ve&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};function tr(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}var ir=`/** @type {import('@master/css').Config} */
2
2
  module.exports = {
3
3
  classes: {},
4
4
  colors: {},
@@ -44,4 +44,4 @@ const config: Config = {
44
44
  }
45
45
 
46
46
  export default config
47
- `;function ur(t,e){if(!t?.length)return;let i=new U({...e,observe:!1});for(let n of t)n in i.countBy||i.insert(n)&&(i.countBy[n]=1);return i.text}var Ze=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,Ge={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};function de(t){if(t)return t.split(/\sclass="([^"]*)"/gm).filter((e,i)=>i%2===1).map(e=>e.split(" ")).flat().map(e=>e.replace(Ze,(i,n)=>Ge[n]))}function Ye(t,e){if(!t)return;let i=de(t);if(!i.length)return;let n=new U({...e,observe:!1});for(let l of i)l in n.countBy||n.insert(l)&&(n.countBy[l]=1);return n.text}function br(t,e){if(!t)return;let i=`<style id="master">${Ye(t,e)}</style>`;return t.replace(/<\/head>/,`${i}$&`)}function Xe(t,e){if(!t?.length)return;let i=new U({...e,observe:!1});for(let n of t)n in i.countBy||i.insert(n)&&(i.countBy[n]=1);return i.rules}function Sr(t,e){if(!t)return;let i=de(t);if(i.length)return Xe(i,e)}export{or as CONFIG_ESM_TEXT,ir as CONFIG_TEXT,ar as CONFIG_TS_TEXT,U as MasterCSS,ce as Rule,ze as SELECTOR_SYMBOLS,ie as START_SYMBOLS,Pe as Theme,Ce as breakpoints,Re as colors,ae as config,U as default,G as extend,de as extractClassesFromHTML,Y as fillColorScale,be as functions,tr as getDocThemeInitScript,Ae as important,Ne as keyframes,Ee as observe,Ie as override,ur as render,Ye as renderFromHTML,br as renderIntoHTML,Xe as renderRules,Sr as renderRulesFromHTML,$e as rootSize,Le as rules,Te as scope,Be as selectors,Me as semantics,We as themeDriver,Fe as themeSettings,Oe as themes};
47
+ `;function ur(t,e){if(!t?.length)return;let r=new G({...e,observe:!1});for(let n of t)n in r.countBy||r.insert(n)&&(r.countBy[n]=1);return r.text}var Ze=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,Ge={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};function de(t){if(t)return t.split(/\sclass="([^"]*)"/gm).filter((e,r)=>r%2===1).map(e=>e.split(" ")).flat().map(e=>e.replace(Ze,(r,n)=>Ge[n]))}function Ye(t,e){if(!t)return;let r=de(t);if(!r.length)return;let n=new G({...e,observe:!1});for(let l of r)l in n.countBy||n.insert(l)&&(n.countBy[l]=1);return n.text}function br(t,e){if(!t)return;let r=`<style id="master">${Ye(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function Xe(t,e){if(!t?.length)return;let r=new G({...e,observe:!1});for(let n of t)n in r.countBy||r.insert(n)&&(r.countBy[n]=1);return r.rules}function Sr(t,e){if(!t)return;let r=de(t);if(r.length)return Xe(r,e)}export{or as CONFIG_ESM_TEXT,ir as CONFIG_TEXT,ar as CONFIG_TS_TEXT,G as MasterCSS,ce as Rule,ze as SELECTOR_SYMBOLS,ie as START_SYMBOLS,Pe as Theme,Ce as breakpoints,Re as colors,ae as config,G as default,K as extend,de as extractClassesFromHTML,Y as fillColorScale,be as functions,tr as getDocThemeInitScript,Ae as important,Ne as keyframes,Ee as observe,Ie as override,ur as render,Ye as renderFromHTML,br as renderIntoHTML,Xe as renderRules,Sr as renderRulesFromHTML,$e as rootSize,Le as rules,Te as scope,Be as selectors,Me as semantics,We as themeDriver,Fe as themeSettings,Oe as themes};
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.146","@techor/fs":"^2.1.15","@techor/log":"^2.1.15","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12","techor":"^2.1.15"},"devDependencies":{"@techor/extend":"^2.1.15","vite":"^4.2.1"},"version":"2.0.0-beta.146"}
1
+ {"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.148","@techor/fs":"^2.1.15","@techor/log":"^2.1.15","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12","techor":"^2.1.15"},"devDependencies":{"@techor/extend":"^2.1.15","vite":"^4.2.1"},"version":"2.0.0-beta.148"}