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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var m=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var p=(e,n)=>{for(var a in n)m(e,a,{get:n[a],enumerable:!0})},N=(e,n,a,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of b(n))!k.call(e,s)&&s!==a&&m(e,s,{get:()=>n[s],enumerable:!(l=w(n,s))||l.enumerable});return e};var V=e=>N(m({},"__esModule",{value:!0}),e);var v={};p(v,{functions:()=>h});module.exports=V(v);var h={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let n=this.values,a=this.css.globalValues,l="",s,i="",g=!1,c="",f=!0,u=(r,t="",o="")=>{if(s===2&&!g){let d=this.analyzeUnitValue(i,h.calc.unit);d&&(i=d.value+d.unit)}r!=="("?n&&i in n?i=n[i].toString():a&&i in a&&(i=a[i].toString()):c=i,r===")"&&(c=""),l+=i+t+r+o,s=null,g=!1,i=""};for(let r=0;r<e.length;r++){let t=e[r];if(t==="("||t===")"){u(t),f=!0;continue}else if(t===",")u(t,""," ");else if(t==="-"&&s!==1){let o=e[r-1];o==="("?l+=t:o===")"?u(t," "," "):isNaN(+e[r+1])?o==="-"?(u(t),s=1):u(t,f?"":" ",f?"":" "):u(t,i?" ":"",i?" ":"")}else if(t==="+"||t==="*"||t==="/"||c!=="var"&&t==="-")u(t," "," ");else{switch(s){case 1:break;case 2:t!=="."&&!/[0-9]/.test(t)&&(g=!0);break;default:s=isNaN(+t)?1:2}s?i+=t:l+=t}f=!1}return u(""),l}},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:""}};0&&(module.exports={functions});
1
+ var f=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var V=(n,i)=>{for(var a in i)f(n,a,{get:i[a],enumerable:!0})},C=(n,i,a,l)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of p(i))!v.call(n,r)&&r!==a&&f(n,r,{get:()=>i[r],enumerable:!(l=w(i,r))||l.enumerable});return n};var R=n=>C(f({},"__esModule",{value:!0}),n);var X={};V(X,{functions:()=>b});module.exports=R(X);var b={$:{name:"var",transform(n){return"--"+n}},calc:{transform(n){let i=this.values,a=this.css.globalValues,l=this,r=0,d="",t="";return function h(k,m){let o=!1,s=(e,u="",g="")=>{if(e!=="("&&(i&&t in i?t=i[t].toString():a&&t in a&&(t=a[t].toString())),t&&!o&&!m){let c=l.analyzeUnitValue(t,b.calc.unit);c&&(t=c.value+c.unit)}d+=t+u+e+g,t="",o=!1};for(;r<n.length;r++){let e=n[r];if(e==="("){let u=t,g=o;s(e),r++,h(u,g||m)}else if(e===")"){s(e);break}else if(e===",")s(e,""," ");else{let u=n[r-1];switch(e){case"+":!t&&u!==")"?t+=e:s(e," "," ");break;case"-":k==="var"||!t&&u!==")"?t+=e:s(e," "," ");break;case"*":s(e," "," ");break;case"/":s(e," "," "),o=!0;break;default:t+=e;break}}}r>=n.length-1&&s("")}("",!1),d}},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:""}};0&&(module.exports={functions});
@@ -1 +1 @@
1
- var m={$:{name:"var",transform(r){return"--"+r}},calc:{transform(r){let o=this.values,f=this.css.globalValues,u="",s,e="",g=!1,c="",l=!0,n=(i,t="",a="")=>{if(s===2&&!g){let d=this.analyzeUnitValue(e,m.calc.unit);d&&(e=d.value+d.unit)}i!=="("?o&&e in o?e=o[e].toString():f&&e in f&&(e=f[e].toString()):c=e,i===")"&&(c=""),u+=e+t+i+a,s=null,g=!1,e=""};for(let i=0;i<r.length;i++){let t=r[i];if(t==="("||t===")"){n(t),l=!0;continue}else if(t===",")n(t,""," ");else if(t==="-"&&s!==1){let a=r[i-1];a==="("?u+=t:a===")"?n(t," "," "):isNaN(+r[i+1])?a==="-"?(n(t),s=1):n(t,l?"":" ",l?"":" "):n(t,e?" ":"",e?" ":"")}else if(t==="+"||t==="*"||t==="/"||c!=="var"&&t==="-")n(t," "," ");else{switch(s){case 1:break;case 2:t!=="."&&!/[0-9]/.test(t)&&(g=!0);break;default:s=isNaN(+t)?1:2}s?e+=t:u+=t}l=!1}return n(""),u}},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:""}};export{m as functions};
1
+ var h={$:{name:"var",transform(i){return"--"+i}},calc:{transform(i){let u=this.values,l=this.css.globalValues,d=this,r=0,c="",t="";return function m(b,f){let s=!1,n=(e,a="",o="")=>{if(e!=="("&&(u&&t in u?t=u[t].toString():l&&t in l&&(t=l[t].toString())),t&&!s&&!f){let g=d.analyzeUnitValue(t,h.calc.unit);g&&(t=g.value+g.unit)}c+=t+a+e+o,t="",s=!1};for(;r<i.length;r++){let e=i[r];if(e==="("){let a=t,o=s;n(e),r++,m(a,o||f)}else if(e===")"){n(e);break}else if(e===",")n(e,""," ");else{let a=i[r-1];switch(e){case"+":!t&&a!==")"?t+=e:n(e," "," ");break;case"-":b==="var"||!t&&a!==")"?t+=e:n(e," "," ");break;case"*":n(e," "," ");break;case"/":n(e," "," "),s=!0;break;default:t+=e;break}}}r>=i.length-1&&n("")}("",!1),c}},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:""}};export{h as functions};
@@ -1 +1 @@
1
- (()=>{var De=Object.defineProperty;var ze=(t,e,r)=>e in t?De(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(ze(t,typeof e!="symbol"?e+"":e,r),r);function we(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ke(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,a){typeof r=="object"&&r!==null?Array.isArray(r)?e[a]=Se(r):we(r)?e[a]=ke(r):e[a]=J({},r):e[a]=r}),e}function ye(t,e){return e==="__proto__"?void 0:t[e]}function J(...t){let e={},r,a;return t.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(s){if(a=ye(e,s),r=ye(c,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=Se(r);return}else if(we(r)){e[s]=ke(r);return}else if(typeof a!="object"||a===null||Array.isArray(a)){e[s]=J({},r);return}else{e[s]=J(a,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,a=-1,c="",s,y=e.charCodeAt(0);if(r==1&&y==45)return"\\"+e;for(;++a<r;){if(s=e.charCodeAt(a),s==0){c+="\uFFFD";continue}if(s>=1&&s<=31||s==127||a==0&&s>=48&&s<=57||a==1&&s>=48&&s<=57&&y==45){c+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){c+=e.charAt(a);continue}c+="\\"+e.charAt(a)}return c}var Ve={unit:"",order:0,separators:[","]},ce=class{constructor(e,r={},a){this.className=e;this.meta=r;this.css=a;this.config=J(Ve,r.config);let{unit:c,order:s,colored:y,native:w,analyze:g,transform:l,declare:f,create:n}=this.config,{scope:m,important:x,functions:S,themeDriver:k}=a.config,{themeNames:b,colorNames:u,colorThemesMap:i,selectors:o,breakpoints:d,mediaQueries:v,themeAffectedClassesBy:R,globalValues:T}=a,I=R[e];n&&n.call(this,e);let A,X,L,Q,Z;if(r.origin==="semantics"){let[N,O]=r.value;Q=e.slice(N.length),A=O}else{let N;if(g)[N,L]=g.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),N=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],N=e.slice(1));Z=[];let O=this,E=this.values,V=[","];this.config.separators.length&&V.push(...this.config.separators);let C="",p=0;(function M(h,j,B,$=void 0,W=[],H=[],D){let _=$===void 0,F,ee=z=>z==="'"||z==='"',te=()=>F=C.length,K=()=>{if(C){let z=C,P=_?z:C.slice(F);if(C="",q="",E&&P in E&&!W.includes(P)){let U=p;p=0,M(E[P].toString(),j,void 0,$,[...W,P],H,D),p=U,_||(C=C.slice(0,F)+C)}else if(T&&P in T&&!H.includes(P)){let U=p;p=0,M(T[P].toString(),j,void 0,$,W,[...H,P],D),p=U,_||(C=C.slice(0,F)+C)}else if(_){let U=!D&&O.analyzeUnitValue(P,j);Z.push({value:U?.value??P,unit:U?.unit})}else{let U=!D&&O.analyzeUnitValue(P,j);C=U?z.slice(0,F)+U.value+U.unit:z}te()}},G=ee(B);te();let q="";for(;p<h.length;p++){let z=h[p];if(z===B){if(G){C+=z;let P=0;for(let U=C.length-2;C[U]==="\\";U--)P++;if(P%2)continue}else K(),C+=z;return}else if(!G&&z in ie){let P=z==="("&&q&&S?.[q];P?.name&&(C=C.slice(0,C.length-q.length)+P.name,q=P.name),C+=z,p++;let U=ie[z];M(h,P?.unit??j,U,q||$||"",W,H,D||!!P?.transform),P?.transform&&(C=C.slice(0,F+q.length+1)+P.transform.call(O,C.slice(F+q.length+1,-1))+C.slice(-1)),_&&(ee(U)?(Z.push(C),C=""):K()),q=""}else if((z==="|"||z===" ")&&B!=="}"&&(!G||$==="path"))K(),_||(C+=" ",F++);else{if(!G){if(z==="."){if(isNaN(+h[p+1]))break;h[p-1]==="-"&&(C+="0")}else if(V.includes(z)){K(),_?Z.push(z):(C+=z,F++);continue}else if(_&&(z==="#"&&(C||Z.length&&h[p-1]!=="|"&&Z[p-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(z)))break;q+=z}C+=z}}$===void 0&&K()})(N,c),Q=N.slice(p)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let xe=N=>{let O=N.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((p,M)=>M%3?p:p.replace(/_/g," ")).join(""),E=[],V="",C=0;for(let p=0;p<O.length;p++){let M=O[p];if(M==="\\"){V+=M+O[++p];continue}!C&&M===","?(E.push(V),V=""):(V+=M,C&&M===")"?C--:M==="("&&C++)}return V&&E.push(V),E};this.prefixSelectors=L?xe(L):[""];let fe=Q.split("@"),me=fe[0];if(me){this.vendorSuffixSelectors={};let N=(p,M,h,j)=>{for(let[B,$]of M)if(B.test(p)){for(let W of $)N(p.replace(B,W),M,h,!0);return}j&&h.push(p)},O=[];""in o?N(me,o[""],O,!0):O.push(me);let E={};for(let[p,M]of Object.entries(o)){if(!p)continue;let h=[];for(let j of O)N(j,M,h,!1);h.length&&(E[p]=h)}let V=(p,M)=>{let h=M.reduce((j,B)=>(j.push(...xe(B)),j),[]);p in this.vendorSuffixSelectors?this.vendorSuffixSelectors[p].push(...h):this.vendorSuffixSelectors[p]=h},C=Object.keys(E);if(C.length)for(let p of C)V(p,E[p]);else V("",O);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 j=0;j<h.length;j++)if(M.includes(h[j])){(this.priority===-1||this.priority>j)&&(this.priority=j);break}}}else this.vendorSuffixSelectors={"":[""]};for(let N=1;N<fe.length;N++){let O=fe[N];if(O)if(b.includes(O))this.theme=O;else if(O==="rtl"||O==="ltr")this.direction=O;else{let E,V,C=O.indexOf("_");if(C!==-1)E=O.slice(0,C),V=O.slice(C);else{let p=O.indexOf("(");p!==-1&&(E=O.slice(0,p),V=O.slice(p))}if(!E){E="media";let p=[];this.media={token:O,features:{}};let M=O.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 j={token:h},B="",$="",W=0;h.startsWith("<=")?($="<=",B="max-width"):h.startsWith(">=")||d[h]?($=">=",B="min-width"):h.startsWith(">")?($=">",B="min-width",W=.02):h.startsWith("<")&&($="<",B="max-width",W=-.02);let H=$?h.replace($,""):h,D=d[H];switch(B){case"max-width":case"min-width":D?Object.assign(j,this.analyzeUnitValue(D.toString(),"px")):Object.assign(j,this.analyzeUnitValue(H,"px")),j.unit==="px"&&(j.value+=W),this.media.features[B]=j,p.push("("+B+":"+(j.value+j.unit)+")");break}}V="",this.media.type&&(V=this.media.type),p.length&&(V+=(V?" and ":"")+p.join(" and "))}V&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+V.replace(/_/g," "))}}let he=(N,O)=>{let E,V=(M,h,j)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(D=>D+B),W=(D,_)=>$.map(F=>(D&&k!=="media"?k==="host"?`:host(.${D}) `:`.${D} `:"")+(m?m+" ":"")+F).reduce((F,ee)=>(F.push(j.reduce((te,K)=>(te.push(ee+"."+le(_)+K),te),[]).join(",")),F),[]).join(","),H=W(h,e)+(I?Object.entries(I).filter(([D])=>this.theme||!y||!h||!D||D===h).map(([D,_])=>_.reduce((F,ee)=>F+","+W(this.theme??((y||X)&&h||D),ee),"")).join(""):"")+"{"+M+"}";for(let D of Object.keys(this.at).sort((_,F)=>F==="supports"?-1:1))H="@"+D+" "+this.at[D]+"{"+H+"}";return h&&k==="media"&&(H=`@media(prefers-color-scheme:${h}){`+H+"}"),H},C=[];if(Z){let M=[this.theme??N,""],h,j=!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 W=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${u.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,D,_,F)=>{let ee=i[_];if(ee){let te,K;for(let G of M)if(te=ee[G]){K=G;break}if(te){W=!O||K===N,h||(h=W);let G=te;if(F){let q=F.endsWith("%")?parseFloat(F)/100:+F;q=isNaN(q)?1:Math.min(Math.max(q,0),1),G+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return D+G}else j=!0}return H})}C.push($)}if(O&&(j||(h===void 0?N:!h)))return;if(E=C.reduce((B,$,W)=>B+$+($===","||Z[W+1]===","||W===Z.length-1?"":" "),""),l&&(E=l.call(this,E,this.css.config)),y&&E==="current"&&(E="currentColor"),f){let B,$;if(Z.length===1){let W=Z[0];typeof W=="object"&&(B=W.value,$=W.unit)}A=f.call(this,$?B:E,$||"")}else A={[w]:E}}let p={};for(let M in A){let h=($,W)=>{let H=W+((this.important||x)&&!W.endsWith("!important")?"!important":"");$ in p?p[$].push(H):p[$]=[H]},j=M+":",B=A[M];if(typeof B=="object")if(Array.isArray(B))for(let $ of B)h(N,j+$.toString());else{X=!0;for(let $ in B)h($,j+B[$])}else h(N,j+B.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let h in p)this.natives.push({text:V(p[h].join(";"),h,M),theme:h})};if(this.theme)he(this.theme,!1);else if(y)for(let N of b)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,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let a=r??this.config.unit;if(a){let c="",s=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(e.includes("/")){let[y,w]=e.split("/");return{value:+y/+w*100+"%",unit:c}}else{let y=+s[1];return c=s[3]||"",c||((a==="rem"||a==="em")&&(y=y/this.css.config.rootSize),c=a||""),{value:y,unit:c}}}}};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 a in t)if(a&&+a>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let a=0,c="0"in t?se(t[0]):[0,0,0],s,y,w=[],g=()=>{let l=s-a,f=y.map((n,m)=>(n-c[m])/l);for(let n of w){let m=n-a,x=c.map((S,k)=>Math.round(S+f[k]*m));t[n]="#"+ue.call(this,...x)}};for(let l=1;l<100;l++)l in t?(w.length?(s=l,y=se(t[l]),g(),w.length=0,c=y):c=se(t[l]),a=l):w.push(l);w.length&&(s=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="";var Te={"::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 Be={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 Me=["dark","light"];var Fe={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=(l,f)=>{let n=f.indexOf(":");if(n!==-1){l in e||(e[l]={});let m=e[l],x=f.slice(0,n);x in m||(m[x]=f.slice(n+1))}},a=l=>{let f=(n,m)=>{let x=m.slice(le(l.className).length).match(/\{(.*)\}/)[1].split(";");for(let S of x)r(n,S)};if(this.theme){let n=l.natives.find(m=>m.theme===this.theme)??l.natives.find(m=>!m.theme);n&&f(this.theme,n.text)}else for(let n of l.natives)f(n.theme,n.text);if(l.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let n of l.keyframeNames)this.keyframeNames.includes(n)||this.keyframeNames.push(n)}},c=[],s="",y=()=>{s&&(c.push(s.replace(/ /g,"|")),s="")},w=1;(function l(f){for(;w<t.length;w++){let n=t[w];if(!f){if(n===";"){y();continue}if(n==="}")break}if(s+=n,f===n){if(f==="'"||f==='"'){let m=0;for(let x=s.length-2;s[x]==="\\";x--)m++;if(m%2)continue}break}else n in ie&&f!=="'"&&f!=='"'&&(w++,l(ie[n]))}})(void 0),y();for(let l of c){let f=this.css.create(l);if(Array.isArray(f))for(let n of f)a(n);else f?a(f):r(this.theme??"",l)}let g={};for(let l in e)for(let[f,n]of Object.entries(e[l]))f in g?g[f][l]=n:g[f]={[l]:n};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}}}},Oe=Fe;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 a=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(a),t.natives.splice(a,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:a}=this.css,c=r?.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(([g,l])=>`${g}{${Object.entries(l).map(([f,n])=>f+":"+n).join(";")}}`).join("")+"}",theme:""},w;if(Object.keys(e).length?(w=a[0]).natives.push(y):a.splice(0,0,w={natives:[y],get text(){return this.natives.map(g=>g.text).join("")}}),c){let g;for(let l=0;l<c.cssRules.length;l++){let f=c.cssRules[l];if(f.constructor.name!=="CSSKeyframesRule")break;if(f.name===s){g=f;break}}if(g)y.cssRule=g;else{let l=w.natives.length-1;c.insertRule(y.text,l),y.cssRule=c.cssRules[l]}}e[s]={native:y,count:1}}}}var Ie={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,a="",c,s="",y=!1,w="",g=!0,l=(f,n="",m="")=>{if(c===2&&!y){let x=this.analyzeUnitValue(s,be.calc.unit);x&&(s=x.value+x.unit)}f!=="("?e&&s in e?s=e[s].toString():r&&s in r&&(s=r[s].toString()):w=s,f===")"&&(w=""),a+=s+n+f+m,c=null,y=!1,s=""};for(let f=0;f<t.length;f++){let n=t[f];if(n==="("||n===")"){l(n),g=!0;continue}else if(n===",")l(n,""," ");else if(n==="-"&&c!==1){let m=t[f-1];m==="("?a+=n:m===")"?l(n," "," "):isNaN(+t[f+1])?m==="-"?(l(n),c=1):l(n,g?"":" ",g?"":" "):l(n,s?" ":"",s?" ":"")}else if(n==="+"||n==="*"||n==="/"||w!=="var"&&n==="-")l(n," "," ");else{switch(c){case 1:break;case 2:n!=="."&&!/[0-9]/.test(n)&&(y=!0);break;default:c=isNaN(+n)?1:2}c?s+=n:a+=n}g=!1}return l(""),a}},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 Ae="class";var ae={breakpoints:Ce,colors:Re,rootSize:16,scope:$e,selectors:Te,semantics:Be,themes:Me,rules:Oe,override:!1,observe:!0,important:!1,functions:be,keyframes:Ie,themeDriver:Ae};var Le=[",",".","#","[","!","*",">","+","~",":","@"];var ve=typeof window<"u",Ee=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e=ae){this.config=e;e?.override||(this.config=J(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:a,themes:c,colors:s,values:y,breakpoints:w,mediaQueries:g,rules:l}=this.config;function f(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function n(o,d,v="",R={}){let T=L=>L?(v?v+"-":"")+L:v,I=Object.entries(o),A=[],X=[];for(let L of I){let Q=L[1];(typeof Q=="object"&&!Array.isArray(Q)?A:X).push(L)}for(let[L,Q]of A)n(Q,d,T(L),R);if(d&&v)X.length&&(R[v]=X.reduce((L,[Q,Z])=>(L[Q]=Z,L),{}));else for(let[L,Q]of X)R[T(L)]=Q;return R}function m(o){for(let[d,v]of Object.entries(o))/^[0-9]+x$/.test(d)&&typeof v=="number"&&(o["-"+d]=v*-1);return o}if(e)for(let[o,d]of Object.entries(n(e,!0)))this.semantics.push([new RegExp("^"+f(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[o,d]]);if(a)for(let[o,d]of Object.entries(n(a,!1))){let v=new RegExp(f(o)+"(?![a-z-])");for(let R of Array.isArray(d)?d:[d]){let T=R.match(/^::-[a-z]+-/m)?.[0]??"",I=this.selectors[T];I||(I=this.selectors[T]=[]);let A=I.find(([X])=>X===v);A||(A=[v,[]],I.push(A)),A[1].push(R)}}y&&(this.globalValues=m(n(y,!1))),w&&(this.breakpoints=n(w,!1)),g&&(this.mediaQueries=n(g,!1));let x=r?n(r,!1):{},S=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:o}])=>o).reduce((o,[d,{classes:v}])=>(o[d]=n(v,!1),o),{}):{},k=[...Object.keys(x),...Object.entries(S).flatMap(([o,d])=>Object.keys(d))],b=o=>{if(o in this.classes)return;let d=this.classes[o]=[],v=(R,T)=>{if(!T)return;let I=Array.isArray(T)?T:T.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let A of I){let X=L=>{L in this.themeAffectedClassesBy?R in this.themeAffectedClassesBy[L]?this.themeAffectedClassesBy[L][R].push(o):this.themeAffectedClassesBy[L][R]=[o]:this.themeAffectedClassesBy[L]={[R]:[o]},d.includes(L)||d.push(L)};if(k.includes(A)){b(A);for(let L of this.classes[A])X(L)}else X(A)}};v("",x?.[o]);for(let[R,T]of Object.entries(S))v(R,T?.[o])};for(let o of k)b(o);for(let o in this.themeAffectedClassesBy){let d=this.classesBy[o]=[];for(let v of Object.values(this.themeAffectedClassesBy[o]))for(let R of v)d.includes(R)||d.push(R)}let u=(o,d)=>{if(!d)return;let v=n(d,!0);for(let[R,T]of Object.entries(v)){let I=typeof T=="string"?{"":T}:T;for(let[A,X]of Object.entries(I)){let L=R+(A?"-"+A:"");L in this.colorThemesMap?this.colorThemesMap[L][o]=X:this.colorThemesMap[L]={[o]:X}}}for(let R in d)this.colorNames.includes(R)||this.colorNames.push(R)};if(u("",s),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let o in c){let d=c[o];u(o,d.colors),this.themeNames.push(o)}let i=o=>{for(let[d,v]of Object.entries(this.colorThemesMap))for(let[R,T]of Object.entries(v))T.startsWith("#")||o(d,v,R,T)};if(i((o,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 I="#"+ue(+T[1],+T[2],+T[3]);T[4]&&(I+=Math.round(255*+T[4]).toString(16)),d[v]=I}}),i((o,d,v,R)=>{let[T,I]=R.split("/"),A=this.colorThemesMap[T];if(A){let X=(v?A[v]:void 0)??A[""];d[v]=I?X.slice(0,7)+Math.round(255*+I).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[o]}),l)for(let o in l){let d=l[o],{native:v,values:R,colored:T}=d,I=d.match;if(d.id=o,d.native=v===!0?o.replace(/(?!^)[A-Z]/g,A=>"-"+A).toLowerCase():void 0,R&&(this.values[o]=m(n(R,!1))),I){let A=Object.keys(this.values[o]??{});I.includes("$values")&&(I=A.length?I.replace(/\$values/,A.join("|")):I.replace(/(?:\|)?\$values/,"")),T&&I.includes("$colors")&&(I=this.colorNames.length?I.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):I.replace(/(?:\|)?\$colors/,"")),this.matches[o]=new RegExp(I)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ve&&e){this.root=e;let a=e===document;a&&(ne.root=this),this.host=a?document.documentElement:this.root.host;let c=a?document.head:e,s=a?document.styleSheets:e.styleSheets;for(let w of s){let{ownerNode:g}=w;if(g&&g.id==="master"){this.style=g;break}}if(this.style)for(let w=0;w<this.style.sheet.cssRules.length;w++){let g=this.style.sheet.cssRules[w];if(g.constructor.name==="CSSKeyframesRule")continue;let l=n=>{if(n.selectorText){let x=n.selectorText.split(", ")[0].split(" ");for(let S=0;S<x.length;S++){let k=x[S];if(k[0]==="."){let b=k.slice(1),u="";for(let i=0;i<b.length;i++){let o=b[i],d=b[i+1];if(o==="\\"){if(i++,d!=="\\"){u+=d;continue}}else if(Le.includes(o))break;u+=o}if(!(u in this.ruleBy)&&!(u in this.classes)){let i=this.create(u)[0];if(i)return i}}}}else if(n.cssRules)for(let m=0;m<n.cssRules.length;m++){let x=l(n.cssRules[m]);if(x)return x}},f=l(g);if(f){this.rules.push(f),this.ruleBy[f.className]=f;for(let n=0;n<f.natives.length;n++)f.natives[n].cssRule=this.style.sheet.cssRules[w+n];w+=f.natives.length-1,f.config.insert?.call(f)}}else this.style=Ee(),c.append(this.style);let y=w=>{w.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(w=>y(w.classList)),this.observer=new MutationObserver(w=>{let g={},l=[],f=[],n=[],m=(b,u)=>{u?b.classList.forEach(S):b.classList.forEach(x);let i=b.children;for(let o=0;o<i.length;o++){let d=i[o];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)},k=(b,u)=>{for(let i=0;i<b.length;i++){let o=b[i];o.classList&&!f.includes(o)&&!n.includes(o)&&(o.isConnected!==u?(f.push(o),m(o,u)):n.push(o))}};for(let b=0;b<w.length;b++){let u=w[b],{addedNodes:i,removedNodes:o,type:d,target:v}=u;if(d==="attributes"){if(l.find(R=>R.target===v))continue;l.push(u)}else k(i,!1),(!v.isConnected||!f.includes(v))&&k(o,!0)}if(!(!l.length&&!Object.keys(g).length)){for(let{oldValue:b,target:u}of l){let i=f.includes(u),o=u.classList,d=b?b.split(" "):[];if(i){if(u.isConnected)continue;for(let v of d)o.contains(v)||S(v)}else if(u.isConnected){o.forEach(v=>{d.includes(v)||x(v)});for(let v of d)o.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 a=this.config.rules[r],c=this.matches[r],{symbol:s,native:y}=a;if(c&&c.test(e))return{origin:"match",config:a};if(s&&e.startsWith(s))return{origin:"symbol",config:a};if(y&&e.startsWith(y+":"))return{origin:"match",config:a}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=a=>{if(a in this.ruleBy)return this.ruleBy[a];let c=this.match(a);if(c)return new ce(a,c,this)};return(e in this.classes?this.classes[e].map(a=>r(a)):[r(e)]).filter(a=>a&&a.text)}refresh(e){if(e?.override?this.config=e:this.config=J(ae,e),this.cache(),!this.style)return;let r=Ee();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let a in this.countBy)this.insert(a)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,a=c=>{let s=this.ruleBy[c];if(!(!s||c in this.classesBy&&this.classesBy[c].some(y=>y in this.countBy))){if(r&&s.natives.length){let y=s.natives[0];for(let w=0;w<r.cssRules.length;w++)if(r.cssRules[w]===y.cssRule){for(let l=0;l<s.natives.length;l++)r.deleteRule(w);break}}this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[c],s.config.delete&&s.config.delete.call(s,c)}};if(e in this.classes){for(let c of this.classes[e])c in this.countBy||a(c);delete this.ruleBy[e]}else a(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 a,c=Object.keys(this.keyframes).length,s=this.rules.length-1,{media:y,order:w,priority:g,hasWhere:l,className:f}=r,n=(S,k,b)=>{let u=S;for(;u<=s;u++){let i=this.rules[u];if(k?.(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(k=>k.media);if(S===-1)a=s+1;else{let{"max-width":k,"min-width":b}=y.features;if(k||b){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)a=s+1;else if(k&&b){if(g===-1?(m=n(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),x=n(u,i=>i.priority!==-1)):(m=n(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),x=s),m!==-1){let i=k.value-b.value,o=x,d=m;for(m=void 0;o>=d;o--){let{"max-width":v,"min-width":R}=this.rules[o].media.features,T=v.value-R.value;if(T<i)x=o-1;else if(T===i)m=o;else break}}if(m!==-1){let i=k.value-b.value;for(let o=x;o>=m;o--){let{"max-width":d,"min-width":v}=this.rules[o].media.features,R=d.value-v.value;if(R<i)x=o-1;else if(R>i){m=o+1;break}}}}else if(b){if(g===-1?(m=n(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=n(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(m=n(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=n(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 o=this.rules[i].media.features["min-width"].value;if(o>b.value)x=i-1;else if(o<b.value){m=i+1;break}}}else if(g===-1?(m=n(u,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),x=n(u,i=>i.media.features["min-width"]||i.priority!==-1)):(m=n(u,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),x=n(u,i=>i.media.features["min-width"]&&i.priority!==-1)),m!==-1)for(let i=x;i>=m;i--){let o=this.rules[i].media.features["max-width"].value;if(o<k.value)x=i-1;else if(o>k.value){m=i+1;break}}}else g===-1?(m=S,x=n(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(m=n(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),x=n(S,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let S=c?1:0;g===-1?(m=S,x=n(S,k=>k.media||k.priority!==-1)):(m=n(S,k=>k.media,k=>k.priority!==-1),x=n(S,k=>k.media))}if(a===void 0)if(m===-1)a=x+1;else{if(g===-1)for(let S=m;S<=x;S++){let k=this.rules[S];if(!(!l&&k.hasWhere)&&(l&&!k.hasWhere||k.order>=w)){a=S;break}}else for(let S=m;S<=x;S++){let k=this.rules[S];if(!(!l&&k.hasWhere)){if(l&&!k.hasWhere){a=S;break}if(k.priority<g){a=S;break}else if(k.priority===g){if(k.order>=w){a=S;break}}else a=S+1}}a===void 0&&(a=x+1)}if(this.rules.splice(a,0,r),this.ruleBy[f]=r,this.style){let S=this.style.sheet,k=0,b=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return b(u-1);let o=i.natives[i.natives.length-1].cssRule;for(let d=0;d<S.cssRules.length;d++)if(S.cssRules[d]===o){k=d+1;break}}};b(a-1);for(let u=0;u<r.natives.length;)try{let i=r.natives[u];S.insertRule(i.text,k),i.cssRule=S.cssRules[k++],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("")}},re=ne;oe(re,"root"),oe(re,"config",ae),oe(re,"instances",[]),oe(re,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ve&&(window.MasterCSS=re);var We={store:"theme",init:!0},Pe=typeof document<"u",Ne=typeof localStorage<"u",de=class{constructor(e,r=Pe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?J(We,e):We,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(Ne&&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,Ne&&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()}};new re(window.masterCSSConfig);new de(window.masterCSSThemeSettings);})();
1
+ (()=>{var De=Object.defineProperty;var Ne=(t,e,r)=>e in t?De(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ne(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,s){typeof r=="object"&&r!==null?Array.isArray(r)?e[s]=Se(r):ke(r)?e[s]=we(r):e[s]=J({},r):e[s]=r}),e}function ye(t,e){return e==="__proto__"?void 0:t[e]}function J(...t){let e={},r,s;return t.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(a){if(s=ye(e,a),r=ye(c,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 s!="object"||s===null||Array.isArray(s)){e[a]=J({},r);return}else{e[a]=J(s,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,s=-1,c="",a,m=e.charCodeAt(0);if(r==1&&m==45)return"\\"+e;for(;++s<r;){if(a=e.charCodeAt(s),a==0){c+="\uFFFD";continue}if(a>=1&&a<=31||a==127||s==0&&a>=48&&a<=57||s==1&&a>=48&&a<=57&&m==45){c+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){c+=e.charAt(s);continue}c+="\\"+e.charAt(s)}return c}var Ve={unit:"",order:0,separators:[","]},ce=class{constructor(e,r={},s){this.className=e;this.meta=r;this.css=s;this.config=J(Ve,r.config);let{unit:c,order:a,colored:m,native:C,analyze:b,transform:d,declare:g,create:o}=this.config,{scope:l,important:x,functions:w,themeDriver:k}=s.config,{themeNames:v,colorNames:u,colorThemesMap:i,selectors:n,breakpoints:f,mediaQueries:y,themeAffectedClassesBy:R,globalValues:T}=s,I=R[e];o&&o.call(this,e);let A,X,L,Q,Z;if(r.origin==="semantics"){let[z,O]=r.value;Q=e.slice(z.length),A=O}else{let z;if(b)[z,L]=b.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),z=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));Z=[];let O=this,E=this.values,V=[","];this.config.separators.length&&V.push(...this.config.separators);let S="",p=0;(function M(h,j,B,$=void 0,W=[],H=[],D){let _=$===void 0,F,ee=N=>N==="'"||N==='"',te=()=>F=S.length,K=()=>{if(S){let N=S,P=_?N:S.slice(F);if(S="",q="",E&&P in E&&!W.includes(P)){let U=p;p=0,M(E[P].toString(),j,void 0,$,[...W,P],H,D),p=U,_||(S=S.slice(0,F)+S)}else if(T&&P in T&&!H.includes(P)){let U=p;p=0,M(T[P].toString(),j,void 0,$,W,[...H,P],D),p=U,_||(S=S.slice(0,F)+S)}else if(_){let U=!D&&O.analyzeUnitValue(P,j);Z.push({value:U?.value??P,unit:U?.unit})}else{let U=!D&&O.analyzeUnitValue(P,j);S=U?N.slice(0,F)+U.value+U.unit:N}te()}},G=ee(B);te();let q="";for(;p<h.length;p++){let N=h[p];if(N===B){if(G){S+=N;let P=0;for(let U=S.length-2;S[U]==="\\";U--)P++;if(P%2)continue}else K(),S+=N;return}else if(!G&&N in ie){let P=N==="("&&q&&w?.[q];P?.name&&(S=S.slice(0,S.length-q.length)+P.name,q=P.name),S+=N,p++;let U=ie[N];M(h,P?.unit??j,U,q||$||"",W,H,D||!!P?.transform),P?.transform&&(S=S.slice(0,F+q.length+1)+P.transform.call(O,S.slice(F+q.length+1,-1))+S.slice(-1)),_&&(ee(U)?(Z.push(S),S=""):K()),q=""}else if((N==="|"||N===" ")&&B!=="}"&&(!G||$==="path"))K(),_||(S+=" ",F++);else{if(!G){if(N==="."){if(isNaN(+h[p+1]))break;h[p-1]==="-"&&(S+="0")}else if(V.includes(N)){K(),_?Z.push(N):(S+=N,F++);continue}else if(_&&(N==="#"&&(S||Z.length&&h[p-1]!=="|"&&Z[p-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(N)))break;q+=N}S+=N}}$===void 0&&K()})(z,c),Q=z.slice(p)}this.order=typeof a=="function"?a.call(this,this.prefix):a,Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let xe=z=>{let O=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((p,M)=>M%3?p:p.replace(/_/g," ")).join(""),E=[],V="",S=0;for(let p=0;p<O.length;p++){let M=O[p];if(M==="\\"){V+=M+O[++p];continue}!S&&M===","?(E.push(V),V=""):(V+=M,S&&M===")"?S--:M==="("&&S++)}return V&&E.push(V),E};this.prefixSelectors=L?xe(L):[""];let fe=Q.split("@"),me=fe[0];if(me){this.vendorSuffixSelectors={};let z=(p,M,h,j)=>{for(let[B,$]of M)if(B.test(p)){for(let W of $)z(p.replace(B,W),M,h,!0);return}j&&h.push(p)},O=[];""in n?z(me,n[""],O,!0):O.push(me);let E={};for(let[p,M]of Object.entries(n)){if(!p)continue;let h=[];for(let j of O)z(j,M,h,!1);h.length&&(E[p]=h)}let V=(p,M)=>{let h=M.reduce((j,B)=>(j.push(...xe(B)),j),[]);p in this.vendorSuffixSelectors?this.vendorSuffixSelectors[p].push(...h):this.vendorSuffixSelectors[p]=h},S=Object.keys(E);if(S.length)for(let p of S)V(p,E[p]);else V("",O);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 j=0;j<h.length;j++)if(M.includes(h[j])){(this.priority===-1||this.priority>j)&&(this.priority=j);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<fe.length;z++){let O=fe[z];if(O)if(v.includes(O))this.theme=O;else if(O==="rtl"||O==="ltr")this.direction=O;else{let E,V,S=O.indexOf("_");if(S!==-1)E=O.slice(0,S),V=O.slice(S);else{let p=O.indexOf("(");p!==-1&&(E=O.slice(0,p),V=O.slice(p))}if(!E){E="media";let p=[];this.media={token:O,features:{}};let M=O.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(y&&h in y)p.push(y[h]);else{let j={token:h},B="",$="",W=0;h.startsWith("<=")?($="<=",B="max-width"):h.startsWith(">=")||f[h]?($=">=",B="min-width"):h.startsWith(">")?($=">",B="min-width",W=.02):h.startsWith("<")&&($="<",B="max-width",W=-.02);let H=$?h.replace($,""):h,D=f[H];switch(B){case"max-width":case"min-width":D?Object.assign(j,this.analyzeUnitValue(D.toString(),"px")):Object.assign(j,this.analyzeUnitValue(H,"px")),j.unit==="px"&&(j.value+=W),this.media.features[B]=j,p.push("("+B+":"+(j.value+j.unit)+")");break}}V="",this.media.type&&(V=this.media.type),p.length&&(V+=(V?" and ":"")+p.join(" and "))}V&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+V.replace(/_/g," "))}}let he=(z,O)=>{let E,V=(M,h,j)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(D=>D+B),W=(D,_)=>$.map(F=>(D&&k!=="media"?k==="host"?`:host(.${D}) `:`.${D} `:"")+(l?l+" ":"")+F).reduce((F,ee)=>(F.push(j.reduce((te,K)=>(te.push(ee+"."+le(_)+K),te),[]).join(",")),F),[]).join(","),H=W(h,e)+(I?Object.entries(I).filter(([D])=>this.theme||!m||!h||!D||D===h).map(([D,_])=>_.reduce((F,ee)=>F+","+W(this.theme??((m||X)&&h||D),ee),"")).join(""):"")+"{"+M+"}";for(let D of Object.keys(this.at).sort((_,F)=>F==="supports"?-1:1))H="@"+D+" "+this.at[D]+"{"+H+"}";return h&&k==="media"&&(H=`@media(prefers-color-scheme:${h}){`+H+"}"),H},S=[];if(Z){let M=[this.theme??z,""],h,j=!1;for(let B of Z)if(typeof B=="string")S.push(B);else{let $=B.value;if(B.unit)$+=B.unit;else if(m&&i&&u){let W=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${u.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,D,_,F)=>{let ee=i[_];if(ee){let te,K;for(let G of M)if(te=ee[G]){K=G;break}if(te){W=!O||K===z,h||(h=W);let G=te;if(F){let q=F.endsWith("%")?parseFloat(F)/100:+F;q=isNaN(q)?1:Math.min(Math.max(q,0),1),G+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return D+G}else j=!0}return H})}S.push($)}if(O&&(j||(h===void 0?z:!h)))return;if(E=S.reduce((B,$,W)=>B+$+($===","||Z[W+1]===","||W===Z.length-1?"":" "),""),d&&(E=d.call(this,E,this.css.config)),m&&E==="current"&&(E="currentColor"),g){let B,$;if(Z.length===1){let W=Z[0];typeof W=="object"&&(B=W.value,$=W.unit)}A=g.call(this,$?B:E,$||"")}else A={[C]:E}}let p={};for(let M in A){let h=($,W)=>{let H=W+((this.important||x)&&!W.endsWith("!important")?"!important":"");$ in p?p[$].push(H):p[$]=[H]},j=M+":",B=A[M];if(typeof B=="object")if(Array.isArray(B))for(let $ of B)h(z,j+$.toString());else{X=!0;for(let $ in B)h($,j+B[$])}else h(z,j+B.toString())}for(let M of Object.values(this.vendorSuffixSelectors))for(let h in p)this.natives.push({text:V(p[h].join(";"),h,M),theme:h})};if(this.theme)he(this.theme,!1);else if(m)for(let z of v)he(z,!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 s=r??this.config.unit;if(s){let c="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[m,C]=e.split("/");return{value:+m/+C*100+"%",unit:c}}else{let m=+a[1];return c=a[3]||"",c||((s==="rem"||s==="em")&&(m=m/this.css.config.rootSize),c=s||""),{value:m,unit:c}}}}};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 s in t)if(s&&+s>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let s=0,c="0"in t?se(t[0]):[0,0,0],a,m,C=[],b=()=>{let d=a-s,g=m.map((o,l)=>(o-c[l])/d);for(let o of C){let l=o-s,x=c.map((w,k)=>Math.round(w+g[k]*l));t[o]="#"+ue.call(this,...x)}};for(let d=1;d<100;d++)d in t?(C.length?(a=d,m=se(t[d]),b(),C.length=0,c=m):c=se(t[d]),s=d):C.push(d);C.length&&(a=100,m="100"in t?se(t[100]):[255,255,255],b())}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="";var Te={"::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 Be={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 Me=["dark","light"];var Fe={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=(d,g)=>{let o=g.indexOf(":");if(o!==-1){d in e||(e[d]={});let l=e[d],x=g.slice(0,o);x in l||(l[x]=g.slice(o+1))}},s=d=>{let g=(o,l)=>{let x=l.slice(le(d.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of x)r(o,w)};if(this.theme){let o=d.natives.find(l=>l.theme===this.theme)??d.natives.find(l=>!l.theme);o&&g(this.theme,o.text)}else for(let o of d.natives)g(o.theme,o.text);if(d.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let o of d.keyframeNames)this.keyframeNames.includes(o)||this.keyframeNames.push(o)}},c=[],a="",m=()=>{a&&(c.push(a.replace(/ /g,"|")),a="")},C=1;(function d(g){for(;C<t.length;C++){let o=t[C];if(!g){if(o===";"){m();continue}if(o==="}")break}if(a+=o,g===o){if(g==="'"||g==='"'){let l=0;for(let x=a.length-2;a[x]==="\\";x--)l++;if(l%2)continue}break}else o in ie&&g!=="'"&&g!=='"'&&(C++,d(ie[o]))}})(void 0),m();for(let d of c){let g=this.css.create(d);if(Array.isArray(g))for(let o of g)s(o);else g?s(g):r(this.theme??"",d)}let b={};for(let d in e)for(let[g,o]of Object.entries(e[d]))g in b?b[g][d]=o:b[g]={[d]:o};return b},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}}}},Oe=Fe;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 s=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(s),t.natives.splice(s,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:s}=this.css,c=r?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let m={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([b,d])=>`${b}{${Object.entries(d).map(([g,o])=>g+":"+o).join(";")}}`).join("")+"}",theme:""},C;if(Object.keys(e).length?(C=s[0]).natives.push(m):s.splice(0,0,C={natives:[m],get text(){return this.natives.map(b=>b.text).join("")}}),c){let b;for(let d=0;d<c.cssRules.length;d++){let g=c.cssRules[d];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===a){b=g;break}}if(b)m.cssRule=b;else{let d=C.natives.length-1;c.insertRule(m.text,d),m.cssRule=c.cssRules[d]}}e[a]={native:m,count:1}}}}var Ie={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,s=this,c=0,a="",m="";return function C(b,d){let g=!1,o=(l,x="",w="")=>{if(l!=="("&&(e&&m in e?m=e[m].toString():r&&m in r&&(m=r[m].toString())),m&&!g&&!d){let k=s.analyzeUnitValue(m,be.calc.unit);k&&(m=k.value+k.unit)}a+=m+x+l+w,m="",g=!1};for(;c<t.length;c++){let l=t[c];if(l==="("){let x=m,w=g;o(l),c++,C(x,w||d)}else if(l===")"){o(l);break}else if(l===",")o(l,""," ");else{let x=t[c-1];switch(l){case"+":!m&&x!==")"?m+=l:o(l," "," ");break;case"-":b==="var"||!m&&x!==")"?m+=l:o(l," "," ");break;case"*":o(l," "," ");break;case"/":o(l," "," "),g=!0;break;default:m+=l;break}}}c>=t.length-1&&o("")}("",!1),a}},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 Ae="class";var ae={breakpoints:Ce,colors:Re,rootSize:16,scope:$e,selectors:Te,semantics:Be,themes:Me,rules:Oe,override:!1,observe:!0,important:!1,functions:be,keyframes:Ie,themeDriver:Ae};var Le=[",",".","#","[","!","*",">","+","~",":","@"];var ve=typeof window<"u",Ee=()=>{let t=document.createElement("style");return t.id="master",t},ne=class{constructor(e=ae){this.config=e;e?.override||(this.config=J(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:s,themes:c,colors:a,values:m,breakpoints:C,mediaQueries:b,rules:d}=this.config;function g(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function o(n,f,y="",R={}){let T=L=>L?(y?y+"-":"")+L:y,I=Object.entries(n),A=[],X=[];for(let L of I){let Q=L[1];(typeof Q=="object"&&!Array.isArray(Q)?A:X).push(L)}for(let[L,Q]of A)o(Q,f,T(L),R);if(f&&y)X.length&&(R[y]=X.reduce((L,[Q,Z])=>(L[Q]=Z,L),{}));else for(let[L,Q]of X)R[T(L)]=Q;return R}function l(n){for(let[f,y]of Object.entries(n))/^[0-9]+x$/.test(f)&&typeof y=="number"&&(n["-"+f]=y*-1);return n}if(e)for(let[n,f]of Object.entries(o(e,!0)))this.semantics.push([new RegExp("^"+g(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,f]]);if(s)for(let[n,f]of Object.entries(o(s,!1))){let y=new RegExp(g(n)+"(?![a-z-])");for(let R of Array.isArray(f)?f:[f]){let T=R.match(/^::-[a-z]+-/m)?.[0]??"",I=this.selectors[T];I||(I=this.selectors[T]=[]);let A=I.find(([X])=>X===y);A||(A=[y,[]],I.push(A)),A[1].push(R)}}m&&(this.globalValues=l(o(m,!1))),C&&(this.breakpoints=o(C,!1)),b&&(this.mediaQueries=o(b,!1));let x=r?o(r,!1):{},w=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:n}])=>n).reduce((n,[f,{classes:y}])=>(n[f]=o(y,!1),n),{}):{},k=[...Object.keys(x),...Object.entries(w).flatMap(([n,f])=>Object.keys(f))],v=n=>{if(n in this.classes)return;let f=this.classes[n]=[],y=(R,T)=>{if(!T)return;let I=Array.isArray(T)?T:T.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let A of I){let X=L=>{L in this.themeAffectedClassesBy?R in this.themeAffectedClassesBy[L]?this.themeAffectedClassesBy[L][R].push(n):this.themeAffectedClassesBy[L][R]=[n]:this.themeAffectedClassesBy[L]={[R]:[n]},f.includes(L)||f.push(L)};if(k.includes(A)){v(A);for(let L of this.classes[A])X(L)}else X(A)}};y("",x?.[n]);for(let[R,T]of Object.entries(w))y(R,T?.[n])};for(let n of k)v(n);for(let n in this.themeAffectedClassesBy){let f=this.classesBy[n]=[];for(let y of Object.values(this.themeAffectedClassesBy[n]))for(let R of y)f.includes(R)||f.push(R)}let u=(n,f)=>{if(!f)return;let y=o(f,!0);for(let[R,T]of Object.entries(y)){let I=typeof T=="string"?{"":T}:T;for(let[A,X]of Object.entries(I)){let L=R+(A?"-"+A:"");L in this.colorThemesMap?this.colorThemesMap[L][n]=X:this.colorThemesMap[L]={[n]:X}}}for(let R in f)this.colorNames.includes(R)||this.colorNames.push(R)};if(u("",a),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let n in c){let f=c[n];u(n,f.colors),this.themeNames.push(n)}let i=n=>{for(let[f,y]of Object.entries(this.colorThemesMap))for(let[R,T]of Object.entries(y))T.startsWith("#")||n(f,y,R,T)};if(i((n,f,y,R)=>{let T=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(R);if(T){let I="#"+ue(+T[1],+T[2],+T[3]);T[4]&&(I+=Math.round(255*+T[4]).toString(16)),f[y]=I}}),i((n,f,y,R)=>{let[T,I]=R.split("/"),A=this.colorThemesMap[T];if(A){let X=(y?A[y]:void 0)??A[""];f[y]=I?X.slice(0,7)+Math.round(255*+I).toString(16):X}else console.warn(`\`${R}\` doesn't exist in the extended config \`.colors\``),delete f[y],Object.keys(f).length||delete this.colorThemesMap[n]}),d)for(let n in d){let f=d[n],{native:y,values:R,colored:T}=f,I=f.match;if(f.id=n,f.native=y===!0?n.replace(/(?!^)[A-Z]/g,A=>"-"+A).toLowerCase():void 0,R&&(this.values[n]=l(o(R,!1))),I){let A=Object.keys(this.values[n]??{});I.includes("$values")&&(I=A.length?I.replace(/\$values/,A.join("|")):I.replace(/(?:\|)?\$values/,"")),T&&I.includes("$colors")&&(I=this.colorNames.length?I.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):I.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(I)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ve&&e){this.root=e;let s=e===document;s&&(ne.root=this),this.host=s?document.documentElement:this.root.host;let c=s?document.head:e,a=s?document.styleSheets:e.styleSheets;for(let C of a){let{ownerNode:b}=C;if(b&&b.id==="master"){this.style=b;break}}if(this.style)for(let C=0;C<this.style.sheet.cssRules.length;C++){let b=this.style.sheet.cssRules[C];if(b.constructor.name==="CSSKeyframesRule")continue;let d=o=>{if(o.selectorText){let x=o.selectorText.split(", ")[0].split(" ");for(let w=0;w<x.length;w++){let k=x[w];if(k[0]==="."){let v=k.slice(1),u="";for(let i=0;i<v.length;i++){let n=v[i],f=v[i+1];if(n==="\\"){if(i++,f!=="\\"){u+=f;continue}}else if(Le.includes(n))break;u+=n}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 l=0;l<o.cssRules.length;l++){let x=d(o.cssRules[l]);if(x)return x}},g=d(b);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let o=0;o<g.natives.length;o++)g.natives[o].cssRule=this.style.sheet.cssRules[C+o];C+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=Ee(),c.append(this.style);let m=C=>{C.forEach(b=>{b in this.countBy?this.countBy[b]++:(this.countBy[b]=1,this.insert(b))})};m(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(C=>m(C.classList)),this.observer=new MutationObserver(C=>{let b={},d=[],g=[],o=[],l=(v,u)=>{u?v.classList.forEach(w):v.classList.forEach(x);let i=v.children;for(let n=0;n<i.length;n++){let f=i[n];f.classList&&(g.push(f),l(f,u))}},x=v=>{v in b?b[v]++:b[v]=1},w=v=>{v in b?b[v]--:v in this.countBy&&(b[v]=-1)},k=(v,u)=>{for(let i=0;i<v.length;i++){let n=v[i];n.classList&&!g.includes(n)&&!o.includes(n)&&(n.isConnected!==u?(g.push(n),l(n,u)):o.push(n))}};for(let v=0;v<C.length;v++){let u=C[v],{addedNodes:i,removedNodes:n,type:f,target:y}=u;if(f==="attributes"){if(d.find(R=>R.target===y))continue;d.push(u)}else k(i,!1),(!y.isConnected||!g.includes(y))&&k(n,!0)}if(!(!d.length&&!Object.keys(b).length)){for(let{oldValue:v,target:u}of d){let i=g.includes(u),n=u.classList,f=v?v.split(" "):[];if(i){if(u.isConnected)continue;for(let y of f)n.contains(y)||w(y)}else if(u.isConnected){n.forEach(y=>{f.includes(y)||x(y)});for(let y of f)n.contains(y)||w(y)}}for(let v in b){let u=b[v],i=(this.countBy[v]||0)+u;i===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=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 s=this.config.rules[r],c=this.matches[r],{symbol:a,native:m}=s;if(c&&c.test(e))return{origin:"match",config:s};if(a&&e.startsWith(a))return{origin:"symbol",config:s};if(m&&e.startsWith(m+":"))return{origin:"match",config:s}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=s=>{if(s in this.ruleBy)return this.ruleBy[s];let c=this.match(s);if(c)return new ce(s,c,this)};return(e in this.classes?this.classes[e].map(s=>r(s)):[r(e)]).filter(s=>s&&s.text)}refresh(e){if(e?.override?this.config=e:this.config=J(ae,e),this.cache(),!this.style)return;let r=Ee();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let s in this.countBy)this.insert(s)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,s=c=>{let a=this.ruleBy[c];if(!(!a||c in this.classesBy&&this.classesBy[c].some(m=>m in this.countBy))){if(r&&a.natives.length){let m=a.natives[0];for(let C=0;C<r.cssRules.length;C++)if(r.cssRules[C]===m.cssRule){for(let d=0;d<a.natives.length;d++)r.deleteRule(C);break}}this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[c],a.config.delete&&a.config.delete.call(a,c)}};if(e in this.classes){for(let c of this.classes[e])c in this.countBy||s(c);delete this.ruleBy[e]}else s(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let s,c=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:m,order:C,priority:b,hasWhere:d,className:g}=r,o=(w,k,v)=>{let u=w;for(;u<=a;u++){let i=this.rules[u];if(k?.(i))return v?-1:u-1;if(v?.(i))return u}return v?-1:u-1},l,x;if(m){let w=this.rules.findIndex(k=>k.media);if(w===-1)s=a+1;else{let{"max-width":k,"min-width":v}=m.features;if(k||v){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)s=a+1;else if(k&&v){if(b===-1?(l=o(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),x=o(u,i=>i.priority!==-1)):(l=o(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),x=a),l!==-1){let i=k.value-v.value,n=x,f=l;for(l=void 0;n>=f;n--){let{"max-width":y,"min-width":R}=this.rules[n].media.features,T=y.value-R.value;if(T<i)x=n-1;else if(T===i)l=n;else break}}if(l!==-1){let i=k.value-v.value;for(let n=x;n>=l;n--){let{"max-width":f,"min-width":y}=this.rules[n].media.features,R=f.value-y.value;if(R<i)x=n-1;else if(R>i){l=n+1;break}}}}else if(v){if(b===-1?(l=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)):(l=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)),l!==-1)for(let i=x;i>=l;i--){let n=this.rules[i].media.features["min-width"].value;if(n>v.value)x=i-1;else if(n<v.value){l=i+1;break}}}else if(b===-1?(l=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)):(l=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)),l!==-1)for(let i=x;i>=l;i--){let n=this.rules[i].media.features["max-width"].value;if(n<k.value)x=i-1;else if(n>k.value){l=i+1;break}}}else b===-1?(l=w,x=o(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(l=o(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),x=o(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let w=c?1:0;b===-1?(l=w,x=o(w,k=>k.media||k.priority!==-1)):(l=o(w,k=>k.media,k=>k.priority!==-1),x=o(w,k=>k.media))}if(s===void 0)if(l===-1)s=x+1;else{if(b===-1)for(let w=l;w<=x;w++){let k=this.rules[w];if(!(!d&&k.hasWhere)&&(d&&!k.hasWhere||k.order>=C)){s=w;break}}else for(let w=l;w<=x;w++){let k=this.rules[w];if(!(!d&&k.hasWhere)){if(d&&!k.hasWhere){s=w;break}if(k.priority<b){s=w;break}else if(k.priority===b){if(k.order>=C){s=w;break}}else s=w+1}}s===void 0&&(s=x+1)}if(this.rules.splice(s,0,r),this.ruleBy[g]=r,this.style){let w=this.style.sheet,k=0,v=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return v(u-1);let n=i.natives[i.natives.length-1].cssRule;for(let f=0;f<w.cssRules.length;f++)if(w.cssRules[f]===n){k=f+1;break}}};v(s-1);for(let u=0;u<r.natives.length;)try{let i=r.natives[u];w.insertRule(i.text,k),i.cssRule=w.cssRules[k++],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("")}},re=ne;oe(re,"root"),oe(re,"config",ae),oe(re,"instances",[]),oe(re,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ve&&(window.MasterCSS=re);var We={store:"theme",init:!0},Pe=typeof document<"u",ze=typeof localStorage<"u",de=class{constructor(e,r=Pe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?J(We,e):We,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(ze&&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,ze&&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()}};new re(window.masterCSSConfig);new de(window.masterCSSThemeSettings);})();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var ue=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Qe=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var qe=(t,e,r)=>e in t?ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ze=(t,e)=>{for(var r in e)ue(t,r,{get:e[r],enumerable:!0})},Ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of Qe(e))!Ue.call(t,l)&&l!==r&&ue(t,l,{get:()=>e[l],enumerable:!(n=_e(e,l))||n.enumerable});return t};var Ke=t=>Ge(ue({},"__esModule",{value:!0}),t);var se=(t,e,r)=>(qe(t,typeof e!="symbol"?e+"":e,r),r);var dt={};Ze(dt,{CONFIG_ESM_TEXT:()=>nt,CONFIG_TEXT:()=>it,CONFIG_TS_TEXT:()=>ot,MasterCSS:()=>Z,Rule:()=>ae,SELECTOR_SYMBOLS:()=>Le,START_SYMBOLS:()=>ie,Theme:()=>Ae,breakpoints:()=>be,colors:()=>ve,config:()=>ne,default:()=>Z,extend:()=>K,extractClassesFromHTML:()=>ce,fillColorScale:()=>Y,functions:()=>me,getDocThemeInitScript:()=>rt,important:()=>Me,keyframes:()=>Oe,observe:()=>Be,override:()=>Te,render:()=>st,renderFromHTML:()=>Ne,renderIntoHTML:()=>ct,renderRules:()=>We,renderRulesFromHTML:()=>ut,rootSize:()=>xe,rules:()=>$e,scope:()=>ye,selectors:()=>ke,semantics:()=>we,themeDriver:()=>je,themeSettings:()=>Ee,themes:()=>Se});module.exports=Ke(dt);function Fe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ve(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 Pe(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=Pe(r):Fe(r)?e[n]=Ve(r):e[n]=K({},r):e[n]=r}),e}function De(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=De(e,a),r=De(l,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=Pe(r);return}else if(Fe(r)){e[a]=Ve(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 de(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 Je={unit:"",order:0,separators:[","]},ae=class{constructor(e,r={},n){this.className=e;this.meta=r;this.css=n;this.config=K(Je,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,G;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));G=[];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);G.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(_)?(G.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?G.push(D):(C+=D,V++);continue}else if(U&&(D==="#"&&(C||G.length&&h[p-1]!=="|"&&G[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 ze=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?ze(E):[""];let he=Q.split("@"),ge=he[0];if(ge){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(ge,s[""],j,!0):j.push(ge);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(...ze(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<he.length;W++){let j=he[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 pe=(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+"."+de(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(G){let M=[this.theme??W,""],h,O=!1;for(let B of G)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+$+($===","||G[N+1]===","||N===G.length-1?"":" "),""),c&&(A=c.call(this,A,this.css.config)),y&&A==="current"&&(A="currentColor"),f){let B,$;if(G.length===1){let N=G[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)pe(this.theme,!1);else if(y)for(let W of b)pe(W,!0);else pe("",!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 be={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function le(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 fe(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?le(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]="#"+fe.call(this,...x)}};for(let c=1;c<100;c++)c in t?(k.length?(a=c,y=le(t[c]),g(),k.length=0,l=y):l=le(t[c]),n=c):k.push(c);k.length&&(a=100,y="100"in t?le(t[100]):[255,255,255],g())}return e||(t[""]=t[r?"500":"50"]),t}var ve={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 xe=16;var ye="";var ke={"::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 we={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 Se=["dark","light"];var et={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(de(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 Ce.call(this)},insert(){return Re.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 Ye.call(this,t)},delete(){return Ce.call(this)},insert(){return Re.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Ye.call(this,t)},delete(){return Ce.call(this)},insert(){return Re.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}}}},$e=et;function Ye(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 Ce(){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 Re(){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 Te=!1;var Be=!0;var Me=!1;var Oe={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 me={$:{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,me.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 je="class";var ne={breakpoints:be,colors:ve,rootSize:16,scope:ye,selectors:ke,semantics:we,themes:Se,rules:$e,override:!1,observe:!0,important:!1,functions:me,keyframes:Oe,themeDriver:je};var Le=[",",".","#","[","!","*",">","+","~",":","@"];var Ie=typeof window<"u",Xe=()=>{let t=document.createElement("style");return t.id="master",t},oe=class{constructor(e=ne){this.config=e;e?.override||(this.config=K(ne,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),Ie&&this.config.observe&&this.observe(document),oe.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,G])=>(E[Q]=G,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="#"+fe(+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(Ie&&e){this.root=e;let n=e===document;n&&(oe.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(Le.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=Xe(),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 ae(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(ne,e),this.cache(),!this.style)return;let r=Xe();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=oe.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("")}},Z=oe;se(Z,"root"),se(Z,"config",ne),se(Z,"instances",[]),se(Z,"refresh",e=>{for(let r of oe.instances)r.refresh(e)});Ie&&(window.MasterCSS=Z);var Ee={store:"theme",init:!0},tt=typeof document<"u",He=typeof localStorage<"u",Ae=class{constructor(e,r=tt?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?K(Ee,e):Ee,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(He&&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,He&&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 rt(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 it=`/** @type {import('@master/css').Config} */
1
+ var ue=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Qe=Object.getOwnPropertyNames;var Ue=Object.prototype.hasOwnProperty;var qe=(t,e,r)=>e in t?ue(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ze=(t,e)=>{for(var r in e)ue(t,r,{get:e[r],enumerable:!0})},Ge=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Qe(e))!Ue.call(t,a)&&a!==r&&ue(t,a,{get:()=>e[a],enumerable:!(n=_e(e,a))||n.enumerable});return t};var Ke=t=>Ge(ue({},"__esModule",{value:!0}),t);var se=(t,e,r)=>(qe(t,typeof e!="symbol"?e+"":e,r),r);var dt={};Ze(dt,{CONFIG_ESM_TEXT:()=>nt,CONFIG_TEXT:()=>it,CONFIG_TS_TEXT:()=>ot,MasterCSS:()=>Z,Rule:()=>ae,SELECTOR_SYMBOLS:()=>Le,START_SYMBOLS:()=>ie,Theme:()=>Ae,breakpoints:()=>be,colors:()=>ve,config:()=>ne,default:()=>Z,extend:()=>K,extractClassesFromHTML:()=>ce,fillColorScale:()=>Y,functions:()=>me,getDocThemeInitScript:()=>rt,important:()=>Me,keyframes:()=>Oe,observe:()=>Be,override:()=>Te,render:()=>st,renderFromHTML:()=>Ne,renderIntoHTML:()=>ct,renderRules:()=>ze,renderRulesFromHTML:()=>ut,rootSize:()=>xe,rules:()=>$e,scope:()=>ye,selectors:()=>ke,semantics:()=>we,themeDriver:()=>je,themeSettings:()=>Ee,themes:()=>Se});module.exports=Ke(dt);function Fe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ve(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 Pe(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=Pe(r):Fe(r)?e[n]=Ve(r):e[n]=K({},r):e[n]=r}),e}function De(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},r,n;return t.forEach(function(a){typeof a!="object"||a===null||Array.isArray(a)||Object.keys(a).forEach(function(l){if(n=De(e,l),r=De(a,l),r!==e)if(typeof r!="object"||r===null){e[l]=r;return}else if(Array.isArray(r)){e[l]=Pe(r);return}else if(Fe(r)){e[l]=Ve(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[l]=K({},r);return}else{e[l]=K(n,r);return}})}),e}var ie={"(":")","'":"'",'"':'"',"{":"}"};function de(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,a="",l,m=e.charCodeAt(0);if(r==1&&m==45)return"\\"+e;for(;++n<r;){if(l=e.charCodeAt(n),l==0){a+="\uFFFD";continue}if(l>=1&&l<=31||l==127||n==0&&l>=48&&l<=57||n==1&&l>=48&&l<=57&&m==45){a+="\\"+l.toString(16)+" ";continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){a+=e.charAt(n);continue}a+="\\"+e.charAt(n)}return a}var Je={unit:"",order:0,separators:[","]},ae=class{constructor(e,r={},n){this.className=e;this.meta=r;this.css=n;this.config=K(Je,r.config);let{unit:a,order:l,colored:m,native:C,analyze:b,transform:d,declare:g,create:s}=this.config,{scope:c,important:x,functions:w,themeDriver:k}=n.config,{themeNames:v,colorNames:u,colorThemesMap:i,selectors:o,breakpoints:f,mediaQueries:y,themeAffectedClassesBy:R,globalValues:T}=n,L=R[e];s&&s.call(this,e);let I,X,E,Q,G;if(r.origin==="semantics"){let[z,j]=r.value;Q=e.slice(z.length),I=j}else{let z;if(b)[z,E]=b.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),z=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));G=[];let j=this,A=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",p=0;(function M(h,O,B,$=void 0,N=[],H=[],W){let U=$===void 0,V,te=D=>D==="'"||D==='"',re=()=>V=S.length,J=()=>{if(S){let D=S,P=U?D:S.slice(V);if(S="",q="",A&&P in A&&!N.includes(P)){let _=p;p=0,M(A[P].toString(),O,void 0,$,[...N,P],H,W),p=_,U||(S=S.slice(0,V)+S)}else if(T&&P in T&&!H.includes(P)){let _=p;p=0,M(T[P].toString(),O,void 0,$,N,[...H,P],W),p=_,U||(S=S.slice(0,V)+S)}else if(U){let _=!W&&j.analyzeUnitValue(P,O);G.push({value:_?.value??P,unit:_?.unit})}else{let _=!W&&j.analyzeUnitValue(P,O);S=_?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){S+=D;let P=0;for(let _=S.length-2;S[_]==="\\";_--)P++;if(P%2)continue}else J(),S+=D;return}else if(!ee&&D in ie){let P=D==="("&&q&&w?.[q];P?.name&&(S=S.slice(0,S.length-q.length)+P.name,q=P.name),S+=D,p++;let _=ie[D];M(h,P?.unit??O,_,q||$||"",N,H,W||!!P?.transform),P?.transform&&(S=S.slice(0,V+q.length+1)+P.transform.call(j,S.slice(V+q.length+1,-1))+S.slice(-1)),U&&(te(_)?(G.push(S),S=""):J()),q=""}else if((D==="|"||D===" ")&&B!=="}"&&(!ee||$==="path"))J(),U||(S+=" ",V++);else{if(!ee){if(D==="."){if(isNaN(+h[p+1]))break;h[p-1]==="-"&&(S+="0")}else if(F.includes(D)){J(),U?G.push(D):(S+=D,V++);continue}else if(U&&(D==="#"&&(S||G.length&&h[p-1]!=="|"&&G[p-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}S+=D}}$===void 0&&J()})(z,a),Q=z.slice(p)}this.order=typeof l=="function"?l.call(this,this.prefix):l,Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let We=z=>{let j=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((p,M)=>M%3?p:p.replace(/_/g," ")).join(""),A=[],F="",S=0;for(let p=0;p<j.length;p++){let M=j[p];if(M==="\\"){F+=M+j[++p];continue}!S&&M===","?(A.push(F),F=""):(F+=M,S&&M===")"?S--:M==="("&&S++)}return F&&A.push(F),A};this.prefixSelectors=E?We(E):[""];let he=Q.split("@"),ge=he[0];if(ge){this.vendorSuffixSelectors={};let z=(p,M,h,O)=>{for(let[B,$]of M)if(B.test(p)){for(let N of $)z(p.replace(B,N),M,h,!0);return}O&&h.push(p)},j=[];""in o?z(ge,o[""],j,!0):j.push(ge);let A={};for(let[p,M]of Object.entries(o)){if(!p)continue;let h=[];for(let O of j)z(O,M,h,!1);h.length&&(A[p]=h)}let F=(p,M)=>{let h=M.reduce((O,B)=>(O.push(...We(B)),O),[]);p in this.vendorSuffixSelectors?this.vendorSuffixSelectors[p].push(...h):this.vendorSuffixSelectors[p]=h},S=Object.keys(A);if(S.length)for(let p of S)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 z=1;z<he.length;z++){let j=he[z];if(j)if(v.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let A,F,S=j.indexOf("_");if(S!==-1)A=j.slice(0,S),F=j.slice(S);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(y&&h in y)p.push(y[h]);else{let O={token:h},B="",$="",N=0;h.startsWith("<=")?($="<=",B="max-width"):h.startsWith(">=")||f[h]?($=">=",B="min-width"):h.startsWith(">")?($=">",B="min-width",N=.02):h.startsWith("<")&&($="<",B="max-width",N=-.02);let H=$?h.replace($,""):h,W=f[H];switch(B){case"max-width":case"min-width":W?Object.assign(O,this.analyzeUnitValue(W.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 pe=(z,j)=>{let A,F=(M,h,O)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(W=>W+B),N=(W,U)=>$.map(V=>(W&&k!=="media"?k==="host"?`:host(.${W}) `:`.${W} `:"")+(c?c+" ":"")+V).reduce((V,te)=>(V.push(O.reduce((re,J)=>(re.push(te+"."+de(U)+J),re),[]).join(",")),V),[]).join(","),H=N(h,e)+(L?Object.entries(L).filter(([W])=>this.theme||!m||!h||!W||W===h).map(([W,U])=>U.reduce((V,te)=>V+","+N(this.theme??((m||X)&&h||W),te),"")).join(""):"")+"{"+M+"}";for(let W of Object.keys(this.at).sort((U,V)=>V==="supports"?-1:1))H="@"+W+" "+this.at[W]+"{"+H+"}";return h&&k==="media"&&(H=`@media(prefers-color-scheme:${h}){`+H+"}"),H},S=[];if(G){let M=[this.theme??z,""],h,O=!1;for(let B of G)if(typeof B=="string")S.push(B);else{let $=B.value;if(B.unit)$+=B.unit;else if(m&&i&&u){let N=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${u.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,W,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===z,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 W+ee}else O=!0}return H})}S.push($)}if(j&&(O||(h===void 0?z:!h)))return;if(A=S.reduce((B,$,N)=>B+$+($===","||G[N+1]===","||N===G.length-1?"":" "),""),d&&(A=d.call(this,A,this.css.config)),m&&A==="current"&&(A="currentColor"),g){let B,$;if(G.length===1){let N=G[0];typeof N=="object"&&(B=N.value,$=N.unit)}I=g.call(this,$?B:A,$||"")}else I={[C]: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(z,O+$.toString());else{X=!0;for(let $ in B)h($,O+B[$])}else h(z,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)pe(this.theme,!1);else if(m)for(let z of v)pe(z,!0);else pe("",!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 a="",l=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(l)if(e.includes("/")){let[m,C]=e.split("/");return{value:+m/+C*100+"%",unit:a}}else{let m=+l[1];return a=l[3]||"",a||((n==="rem"||n==="em")&&(m=m/this.css.config.rootSize),a=n||""),{value:m,unit:a}}}}};var be={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function le(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 fe(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,a="0"in t?le(t[0]):[0,0,0],l,m,C=[],b=()=>{let d=l-n,g=m.map((s,c)=>(s-a[c])/d);for(let s of C){let c=s-n,x=a.map((w,k)=>Math.round(w+g[k]*c));t[s]="#"+fe.call(this,...x)}};for(let d=1;d<100;d++)d in t?(C.length?(l=d,m=le(t[d]),b(),C.length=0,a=m):a=le(t[d]),n=d):C.push(d);C.length&&(l=100,m="100"in t?le(t[100]):[255,255,255],b())}return e||(t[""]=t[r?"500":"50"]),t}var ve={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 xe=16;var ye="";var ke={"::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 we={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 Se=["dark","light"];var et={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=(d,g)=>{let s=g.indexOf(":");if(s!==-1){d in e||(e[d]={});let c=e[d],x=g.slice(0,s);x in c||(c[x]=g.slice(s+1))}},n=d=>{let g=(s,c)=>{let x=c.slice(de(d.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of x)r(s,w)};if(this.theme){let s=d.natives.find(c=>c.theme===this.theme)??d.natives.find(c=>!c.theme);s&&g(this.theme,s.text)}else for(let s of d.natives)g(s.theme,s.text);if(d.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let s of d.keyframeNames)this.keyframeNames.includes(s)||this.keyframeNames.push(s)}},a=[],l="",m=()=>{l&&(a.push(l.replace(/ /g,"|")),l="")},C=1;(function d(g){for(;C<t.length;C++){let s=t[C];if(!g){if(s===";"){m();continue}if(s==="}")break}if(l+=s,g===s){if(g==="'"||g==='"'){let c=0;for(let x=l.length-2;l[x]==="\\";x--)c++;if(c%2)continue}break}else s in ie&&g!=="'"&&g!=='"'&&(C++,d(ie[s]))}})(void 0),m();for(let d of a){let g=this.css.create(d);if(Array.isArray(g))for(let s of g)n(s);else g?n(g):r(this.theme??"",d)}let b={};for(let d in e)for(let[g,s]of Object.entries(e[d]))g in b?b[g][d]=s:b[g]={[d]:s};return b},delete(){return Ce.call(this)},insert(){return Re.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 Ye.call(this,t)},delete(){return Ce.call(this)},insert(){return Re.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Ye.call(this,t)},delete(){return Ce.call(this)},insert(){return Re.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}}}},$e=et;function Ye(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 Ce(){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 Re(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:n}=this.css,a=r?.sheet;for(let l of this.keyframeNames)if(l in e)e[l].count++;else{let m={text:`@keyframes ${l}{`+Object.entries(t.keyframes[l]).map(([b,d])=>`${b}{${Object.entries(d).map(([g,s])=>g+":"+s).join(";")}}`).join("")+"}",theme:""},C;if(Object.keys(e).length?(C=n[0]).natives.push(m):n.splice(0,0,C={natives:[m],get text(){return this.natives.map(b=>b.text).join("")}}),a){let b;for(let d=0;d<a.cssRules.length;d++){let g=a.cssRules[d];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===l){b=g;break}}if(b)m.cssRule=b;else{let d=C.natives.length-1;a.insertRule(m.text,d),m.cssRule=a.cssRules[d]}}e[l]={native:m,count:1}}}}var Te=!1;var Be=!0;var Me=!1;var Oe={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 me={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=this.values,r=this.css.globalValues,n=this,a=0,l="",m="";return function C(b,d){let g=!1,s=(c,x="",w="")=>{if(c!=="("&&(e&&m in e?m=e[m].toString():r&&m in r&&(m=r[m].toString())),m&&!g&&!d){let k=n.analyzeUnitValue(m,me.calc.unit);k&&(m=k.value+k.unit)}l+=m+x+c+w,m="",g=!1};for(;a<t.length;a++){let c=t[a];if(c==="("){let x=m,w=g;s(c),a++,C(x,w||d)}else if(c===")"){s(c);break}else if(c===",")s(c,""," ");else{let x=t[a-1];switch(c){case"+":!m&&x!==")"?m+=c:s(c," "," ");break;case"-":b==="var"||!m&&x!==")"?m+=c:s(c," "," ");break;case"*":s(c," "," ");break;case"/":s(c," "," "),g=!0;break;default:m+=c;break}}}a>=t.length-1&&s("")}("",!1),l}},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 je="class";var ne={breakpoints:be,colors:ve,rootSize:16,scope:ye,selectors:ke,semantics:we,themes:Se,rules:$e,override:!1,observe:!0,important:!1,functions:me,keyframes:Oe,themeDriver:je};var Le=[",",".","#","[","!","*",">","+","~",":","@"];var Ie=typeof window<"u",Xe=()=>{let t=document.createElement("style");return t.id="master",t},oe=class{constructor(e=ne){this.config=e;e?.override||(this.config=K(ne,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),Ie&&this.config.observe&&this.observe(document),oe.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:a,colors:l,values:m,breakpoints:C,mediaQueries:b,rules:d}=this.config;function g(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(o,f,y="",R={}){let T=E=>E?(y?y+"-":"")+E:y,L=Object.entries(o),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)s(Q,f,T(E),R);if(f&&y)X.length&&(R[y]=X.reduce((E,[Q,G])=>(E[Q]=G,E),{}));else for(let[E,Q]of X)R[T(E)]=Q;return R}function c(o){for(let[f,y]of Object.entries(o))/^[0-9]+x$/.test(f)&&typeof y=="number"&&(o["-"+f]=y*-1);return o}if(e)for(let[o,f]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+g(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[o,f]]);if(n)for(let[o,f]of Object.entries(s(n,!1))){let y=new RegExp(g(o)+"(?![a-z-])");for(let R of Array.isArray(f)?f:[f]){let T=R.match(/^::-[a-z]+-/m)?.[0]??"",L=this.selectors[T];L||(L=this.selectors[T]=[]);let I=L.find(([X])=>X===y);I||(I=[y,[]],L.push(I)),I[1].push(R)}}m&&(this.globalValues=c(s(m,!1))),C&&(this.breakpoints=s(C,!1)),b&&(this.mediaQueries=s(b,!1));let x=r?s(r,!1):{},w=a&&!Array.isArray(a)?Object.entries(a).filter(([,{classes:o}])=>o).reduce((o,[f,{classes:y}])=>(o[f]=s(y,!1),o),{}):{},k=[...Object.keys(x),...Object.entries(w).flatMap(([o,f])=>Object.keys(f))],v=o=>{if(o in this.classes)return;let f=this.classes[o]=[],y=(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(o):this.themeAffectedClassesBy[E][R]=[o]:this.themeAffectedClassesBy[E]={[R]:[o]},f.includes(E)||f.push(E)};if(k.includes(I)){v(I);for(let E of this.classes[I])X(E)}else X(I)}};y("",x?.[o]);for(let[R,T]of Object.entries(w))y(R,T?.[o])};for(let o of k)v(o);for(let o in this.themeAffectedClassesBy){let f=this.classesBy[o]=[];for(let y of Object.values(this.themeAffectedClassesBy[o]))for(let R of y)f.includes(R)||f.push(R)}let u=(o,f)=>{if(!f)return;let y=s(f,!0);for(let[R,T]of Object.entries(y)){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][o]=X:this.colorThemesMap[E]={[o]:X}}}for(let R in f)this.colorNames.includes(R)||this.colorNames.push(R)};if(u("",l),a)if(Array.isArray(a))this.themeNames.push(...a);else for(let o in a){let f=a[o];u(o,f.colors),this.themeNames.push(o)}let i=o=>{for(let[f,y]of Object.entries(this.colorThemesMap))for(let[R,T]of Object.entries(y))T.startsWith("#")||o(f,y,R,T)};if(i((o,f,y,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="#"+fe(+T[1],+T[2],+T[3]);T[4]&&(L+=Math.round(255*+T[4]).toString(16)),f[y]=L}}),i((o,f,y,R)=>{let[T,L]=R.split("/"),I=this.colorThemesMap[T];if(I){let X=(y?I[y]:void 0)??I[""];f[y]=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 f[y],Object.keys(f).length||delete this.colorThemesMap[o]}),d)for(let o in d){let f=d[o],{native:y,values:R,colored:T}=f,L=f.match;if(f.id=o,f.native=y===!0?o.replace(/(?!^)[A-Z]/g,I=>"-"+I).toLowerCase():void 0,R&&(this.values[o]=c(s(R,!1))),L){let I=Object.keys(this.values[o]??{});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[o]=new RegExp(L)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(Ie&&e){this.root=e;let n=e===document;n&&(oe.root=this),this.host=n?document.documentElement:this.root.host;let a=n?document.head:e,l=n?document.styleSheets:e.styleSheets;for(let C of l){let{ownerNode:b}=C;if(b&&b.id==="master"){this.style=b;break}}if(this.style)for(let C=0;C<this.style.sheet.cssRules.length;C++){let b=this.style.sheet.cssRules[C];if(b.constructor.name==="CSSKeyframesRule")continue;let d=s=>{if(s.selectorText){let x=s.selectorText.split(", ")[0].split(" ");for(let w=0;w<x.length;w++){let k=x[w];if(k[0]==="."){let v=k.slice(1),u="";for(let i=0;i<v.length;i++){let o=v[i],f=v[i+1];if(o==="\\"){if(i++,f!=="\\"){u+=f;continue}}else if(Le.includes(o))break;u+=o}if(!(u in this.ruleBy)&&!(u in this.classes)){let i=this.create(u)[0];if(i)return i}}}}else if(s.cssRules)for(let c=0;c<s.cssRules.length;c++){let x=d(s.cssRules[c]);if(x)return x}},g=d(b);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let s=0;s<g.natives.length;s++)g.natives[s].cssRule=this.style.sheet.cssRules[C+s];C+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=Xe(),a.append(this.style);let m=C=>{C.forEach(b=>{b in this.countBy?this.countBy[b]++:(this.countBy[b]=1,this.insert(b))})};m(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(C=>m(C.classList)),this.observer=new MutationObserver(C=>{let b={},d=[],g=[],s=[],c=(v,u)=>{u?v.classList.forEach(w):v.classList.forEach(x);let i=v.children;for(let o=0;o<i.length;o++){let f=i[o];f.classList&&(g.push(f),c(f,u))}},x=v=>{v in b?b[v]++:b[v]=1},w=v=>{v in b?b[v]--:v in this.countBy&&(b[v]=-1)},k=(v,u)=>{for(let i=0;i<v.length;i++){let o=v[i];o.classList&&!g.includes(o)&&!s.includes(o)&&(o.isConnected!==u?(g.push(o),c(o,u)):s.push(o))}};for(let v=0;v<C.length;v++){let u=C[v],{addedNodes:i,removedNodes:o,type:f,target:y}=u;if(f==="attributes"){if(d.find(R=>R.target===y))continue;d.push(u)}else k(i,!1),(!y.isConnected||!g.includes(y))&&k(o,!0)}if(!(!d.length&&!Object.keys(b).length)){for(let{oldValue:v,target:u}of d){let i=g.includes(u),o=u.classList,f=v?v.split(" "):[];if(i){if(u.isConnected)continue;for(let y of f)o.contains(y)||w(y)}else if(u.isConnected){o.forEach(y=>{f.includes(y)||x(y)});for(let y of f)o.contains(y)||w(y)}}for(let v in b){let u=b[v],i=(this.countBy[v]||0)+u;i===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=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],a=this.matches[r],{symbol:l,native:m}=n;if(a&&a.test(e))return{origin:"match",config:n};if(l&&e.startsWith(l))return{origin:"symbol",config:n};if(m&&e.startsWith(m+":"))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 a=this.match(n);if(a)return new ae(n,a,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(ne,e),this.cache(),!this.style)return;let r=Xe();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=oe.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,n=a=>{let l=this.ruleBy[a];if(!(!l||a in this.classesBy&&this.classesBy[a].some(m=>m in this.countBy))){if(r&&l.natives.length){let m=l.natives[0];for(let C=0;C<r.cssRules.length;C++)if(r.cssRules[C]===m.cssRule){for(let d=0;d<l.natives.length;d++)r.deleteRule(C);break}}this.rules.splice(this.rules.indexOf(l),1),delete this.ruleBy[a],l.config.delete&&l.config.delete.call(l,a)}};if(e in this.classes){for(let a of this.classes[e])a in this.countBy||n(a);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,a=Object.keys(this.keyframes).length,l=this.rules.length-1,{media:m,order:C,priority:b,hasWhere:d,className:g}=r,s=(w,k,v)=>{let u=w;for(;u<=l;u++){let i=this.rules[u];if(k?.(i))return v?-1:u-1;if(v?.(i))return u}return v?-1:u-1},c,x;if(m){let w=this.rules.findIndex(k=>k.media);if(w===-1)n=l+1;else{let{"max-width":k,"min-width":v}=m.features;if(k||v){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)n=l+1;else if(k&&v){if(b===-1?(c=s(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),x=s(u,i=>i.priority!==-1)):(c=s(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),x=l),c!==-1){let i=k.value-v.value,o=x,f=c;for(c=void 0;o>=f;o--){let{"max-width":y,"min-width":R}=this.rules[o].media.features,T=y.value-R.value;if(T<i)x=o-1;else if(T===i)c=o;else break}}if(c!==-1){let i=k.value-v.value;for(let o=x;o>=c;o--){let{"max-width":f,"min-width":y}=this.rules[o].media.features,R=f.value-y.value;if(R<i)x=o-1;else if(R>i){c=o+1;break}}}}else if(v){if(b===-1?(c=s(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=s(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(c=s(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=s(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),c!==-1)for(let i=x;i>=c;i--){let o=this.rules[i].media.features["min-width"].value;if(o>v.value)x=i-1;else if(o<v.value){c=i+1;break}}}else if(b===-1?(c=s(u,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),x=s(u,i=>i.media.features["min-width"]||i.priority!==-1)):(c=s(u,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),x=s(u,i=>i.media.features["min-width"]&&i.priority!==-1)),c!==-1)for(let i=x;i>=c;i--){let o=this.rules[i].media.features["max-width"].value;if(o<k.value)x=i-1;else if(o>k.value){c=i+1;break}}}else b===-1?(c=w,x=s(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(c=s(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),x=s(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let w=a?1:0;b===-1?(c=w,x=s(w,k=>k.media||k.priority!==-1)):(c=s(w,k=>k.media,k=>k.priority!==-1),x=s(w,k=>k.media))}if(n===void 0)if(c===-1)n=x+1;else{if(b===-1)for(let w=c;w<=x;w++){let k=this.rules[w];if(!(!d&&k.hasWhere)&&(d&&!k.hasWhere||k.order>=C)){n=w;break}}else for(let w=c;w<=x;w++){let k=this.rules[w];if(!(!d&&k.hasWhere)){if(d&&!k.hasWhere){n=w;break}if(k.priority<b){n=w;break}else if(k.priority===b){if(k.order>=C){n=w;break}}else n=w+1}}n===void 0&&(n=x+1)}if(this.rules.splice(n,0,r),this.ruleBy[g]=r,this.style){let w=this.style.sheet,k=0,v=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return v(u-1);let o=i.natives[i.natives.length-1].cssRule;for(let f=0;f<w.cssRules.length;f++)if(w.cssRules[f]===o){k=f+1;break}}};v(n-1);for(let u=0;u<r.natives.length;)try{let i=r.natives[u];w.insertRule(i.text,k),i.cssRule=w.cssRules[k++],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("")}},Z=oe;se(Z,"root"),se(Z,"config",ne),se(Z,"instances",[]),se(Z,"refresh",e=>{for(let r of oe.instances)r.refresh(e)});Ie&&(window.MasterCSS=Z);var Ee={store:"theme",init:!0},tt=typeof document<"u",He=typeof localStorage<"u",Ae=class{constructor(e,r=tt?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?K(Ee,e):Ee,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(He&&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,He&&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 rt(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 it=`/** @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 st(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let n of t)n in r.countBy||r.insert(n)&&(r.countBy[n]=1);return r.text}var at=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,lt={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};function ce(t){if(t)return t.split(/\sclass="([^"]*)"/gm).filter((e,r)=>r%2===1).map(e=>e.split(" ")).flat().map(e=>e.replace(at,(r,n)=>lt[n]))}function Ne(t,e){if(!t)return;let r=ce(t);if(!r.length)return;let n=new Z({...e,observe:!1});for(let l of r)l in n.countBy||n.insert(l)&&(n.countBy[l]=1);return n.text}function ct(t,e){if(!t)return;let r=`<style id="master">${Ne(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function We(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let n of t)n in r.countBy||r.insert(n)&&(r.countBy[n]=1);return r.rules}function ut(t,e){if(!t)return;let r=ce(t);if(r.length)return We(r,e)}
47
+ `;function st(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let n of t)n in r.countBy||r.insert(n)&&(r.countBy[n]=1);return r.text}var at=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,lt={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};function ce(t){if(t)return t.split(/\sclass="([^"]*)"/gm).filter((e,r)=>r%2===1).map(e=>e.split(" ")).flat().map(e=>e.replace(at,(r,n)=>lt[n]))}function Ne(t,e){if(!t)return;let r=ce(t);if(!r.length)return;let n=new Z({...e,observe:!1});for(let a of r)a in n.countBy||n.insert(a)&&(n.countBy[a]=1);return n.text}function ct(t,e){if(!t)return;let r=`<style id="master">${Ne(t,e)}</style>`;return t.replace(/<\/head>/,`${r}$&`)}function ze(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let n of t)n in r.countBy||r.insert(n)&&(r.countBy[n]=1);return r.rules}function ut(t,e){if(!t)return;let r=ce(t);if(r.length)return ze(r,e)}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
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} */
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(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(a){if(n=ye(e,a),r=ye(c,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,c="",a,m=e.charCodeAt(0);if(r==1&&m==45)return"\\"+e;for(;++n<r;){if(a=e.charCodeAt(n),a==0){c+="\uFFFD";continue}if(a>=1&&a<=31||a==127||n==0&&a>=48&&a<=57||n==1&&a>=48&&a<=57&&m==45){c+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){c+=e.charAt(n);continue}c+="\\"+e.charAt(n)}return c}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:c,order:a,colored:m,native:C,analyze:b,transform:d,declare:g,create:s}=this.config,{scope:l,important:x,functions:w,themeDriver:k}=n.config,{themeNames:v,colorNames:u,colorThemesMap:i,selectors:o,breakpoints:f,mediaQueries:y,themeAffectedClassesBy:R,globalValues:T}=n,L=R[e];s&&s.call(this,e);let I,X,E,Q,Z;if(r.origin==="semantics"){let[z,j]=r.value;Q=e.slice(z.length),I=j}else{let z;if(b)[z,E]=b.call(this,e);else if(r.origin==="match"){let M=e.indexOf(":");this.prefix=e.slice(0,M+1),z=e.slice(M+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));Z=[];let j=this,A=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",p=0;(function M(h,O,B,$=void 0,N=[],H=[],W){let U=$===void 0,V,te=D=>D==="'"||D==='"',re=()=>V=S.length,J=()=>{if(S){let D=S,P=U?D:S.slice(V);if(S="",q="",A&&P in A&&!N.includes(P)){let _=p;p=0,M(A[P].toString(),O,void 0,$,[...N,P],H,W),p=_,U||(S=S.slice(0,V)+S)}else if(T&&P in T&&!H.includes(P)){let _=p;p=0,M(T[P].toString(),O,void 0,$,N,[...H,P],W),p=_,U||(S=S.slice(0,V)+S)}else if(U){let _=!W&&j.analyzeUnitValue(P,O);Z.push({value:_?.value??P,unit:_?.unit})}else{let _=!W&&j.analyzeUnitValue(P,O);S=_?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){S+=D;let P=0;for(let _=S.length-2;S[_]==="\\";_--)P++;if(P%2)continue}else J(),S+=D;return}else if(!ee&&D in ie){let P=D==="("&&q&&w?.[q];P?.name&&(S=S.slice(0,S.length-q.length)+P.name,q=P.name),S+=D,p++;let _=ie[D];M(h,P?.unit??O,_,q||$||"",N,H,W||!!P?.transform),P?.transform&&(S=S.slice(0,V+q.length+1)+P.transform.call(j,S.slice(V+q.length+1,-1))+S.slice(-1)),U&&(te(_)?(Z.push(S),S=""):J()),q=""}else if((D==="|"||D===" ")&&B!=="}"&&(!ee||$==="path"))J(),U||(S+=" ",V++);else{if(!ee){if(D==="."){if(isNaN(+h[p+1]))break;h[p-1]==="-"&&(S+="0")}else if(F.includes(D)){J(),U?Z.push(D):(S+=D,V++);continue}else if(U&&(D==="#"&&(S||Z.length&&h[p-1]!=="|"&&Z[p-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;q+=D}S+=D}}$===void 0&&J()})(z,c),Q=z.slice(p)}this.order=typeof a=="function"?a.call(this,this.prefix):a,Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let xe=z=>{let j=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((p,M)=>M%3?p:p.replace(/_/g," ")).join(""),A=[],F="",S=0;for(let p=0;p<j.length;p++){let M=j[p];if(M==="\\"){F+=M+j[++p];continue}!S&&M===","?(A.push(F),F=""):(F+=M,S&&M===")"?S--:M==="("&&S++)}return F&&A.push(F),A};this.prefixSelectors=E?xe(E):[""];let fe=Q.split("@"),me=fe[0];if(me){this.vendorSuffixSelectors={};let z=(p,M,h,O)=>{for(let[B,$]of M)if(B.test(p)){for(let N of $)z(p.replace(B,N),M,h,!0);return}O&&h.push(p)},j=[];""in o?z(me,o[""],j,!0):j.push(me);let A={};for(let[p,M]of Object.entries(o)){if(!p)continue;let h=[];for(let O of j)z(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},S=Object.keys(A);if(S.length)for(let p of S)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 z=1;z<fe.length;z++){let j=fe[z];if(j)if(v.includes(j))this.theme=j;else if(j==="rtl"||j==="ltr")this.direction=j;else{let A,F,S=j.indexOf("_");if(S!==-1)A=j.slice(0,S),F=j.slice(S);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(y&&h in y)p.push(y[h]);else{let O={token:h},B="",$="",N=0;h.startsWith("<=")?($="<=",B="max-width"):h.startsWith(">=")||f[h]?($=">=",B="min-width"):h.startsWith(">")?($=">",B="min-width",N=.02):h.startsWith("<")&&($="<",B="max-width",N=-.02);let H=$?h.replace($,""):h,W=f[H];switch(B){case"max-width":case"min-width":W?Object.assign(O,this.analyzeUnitValue(W.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=(z,j)=>{let A,F=(M,h,O)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(W=>W+B),N=(W,U)=>$.map(V=>(W&&k!=="media"?k==="host"?`:host(.${W}) `:`.${W} `:"")+(l?l+" ":"")+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(([W])=>this.theme||!m||!h||!W||W===h).map(([W,U])=>U.reduce((V,te)=>V+","+N(this.theme??((m||X)&&h||W),te),"")).join(""):"")+"{"+M+"}";for(let W of Object.keys(this.at).sort((U,V)=>V==="supports"?-1:1))H="@"+W+" "+this.at[W]+"{"+H+"}";return h&&k==="media"&&(H=`@media(prefers-color-scheme:${h}){`+H+"}"),H},S=[];if(Z){let M=[this.theme??z,""],h,O=!1;for(let B of Z)if(typeof B=="string")S.push(B);else{let $=B.value;if(B.unit)$+=B.unit;else if(m&&i&&u){let N=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${u.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,W,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===z,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 W+ee}else O=!0}return H})}S.push($)}if(j&&(O||(h===void 0?z:!h)))return;if(A=S.reduce((B,$,N)=>B+$+($===","||Z[N+1]===","||N===Z.length-1?"":" "),""),d&&(A=d.call(this,A,this.css.config)),m&&A==="current"&&(A="currentColor"),g){let B,$;if(Z.length===1){let N=Z[0];typeof N=="object"&&(B=N.value,$=N.unit)}I=g.call(this,$?B:A,$||"")}else I={[C]: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(z,O+$.toString());else{X=!0;for(let $ in B)h($,O+B[$])}else h(z,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(m)for(let z of v)he(z,!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 c="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[m,C]=e.split("/");return{value:+m/+C*100+"%",unit:c}}else{let m=+a[1];return c=a[3]||"",c||((n==="rem"||n==="em")&&(m=m/this.css.config.rootSize),c=n||""),{value:m,unit:c}}}}};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,c="0"in t?se(t[0]):[0,0,0],a,m,C=[],b=()=>{let d=a-n,g=m.map((s,l)=>(s-c[l])/d);for(let s of C){let l=s-n,x=c.map((w,k)=>Math.round(w+g[k]*l));t[s]="#"+ue.call(this,...x)}};for(let d=1;d<100;d++)d in t?(C.length?(a=d,m=se(t[d]),b(),C.length=0,c=m):c=se(t[d]),n=d):C.push(d);C.length&&(a=100,m="100"in t?se(t[100]):[255,255,255],b())}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=(d,g)=>{let s=g.indexOf(":");if(s!==-1){d in e||(e[d]={});let l=e[d],x=g.slice(0,s);x in l||(l[x]=g.slice(s+1))}},n=d=>{let g=(s,l)=>{let x=l.slice(le(d.className).length).match(/\{(.*)\}/)[1].split(";");for(let w of x)r(s,w)};if(this.theme){let s=d.natives.find(l=>l.theme===this.theme)??d.natives.find(l=>!l.theme);s&&g(this.theme,s.text)}else for(let s of d.natives)g(s.theme,s.text);if(d.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let s of d.keyframeNames)this.keyframeNames.includes(s)||this.keyframeNames.push(s)}},c=[],a="",m=()=>{a&&(c.push(a.replace(/ /g,"|")),a="")},C=1;(function d(g){for(;C<t.length;C++){let s=t[C];if(!g){if(s===";"){m();continue}if(s==="}")break}if(a+=s,g===s){if(g==="'"||g==='"'){let l=0;for(let x=a.length-2;a[x]==="\\";x--)l++;if(l%2)continue}break}else s in ie&&g!=="'"&&g!=='"'&&(C++,d(ie[s]))}})(void 0),m();for(let d of c){let g=this.css.create(d);if(Array.isArray(g))for(let s of g)n(s);else g?n(g):r(this.theme??"",d)}let b={};for(let d in e)for(let[g,s]of Object.entries(e[d]))g in b?b[g][d]=s:b[g]={[d]:s};return b},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,c=r?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let m={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([b,d])=>`${b}{${Object.entries(d).map(([g,s])=>g+":"+s).join(";")}}`).join("")+"}",theme:""},C;if(Object.keys(e).length?(C=n[0]).natives.push(m):n.splice(0,0,C={natives:[m],get text(){return this.natives.map(b=>b.text).join("")}}),c){let b;for(let d=0;d<c.cssRules.length;d++){let g=c.cssRules[d];if(g.constructor.name!=="CSSKeyframesRule")break;if(g.name===a){b=g;break}}if(b)m.cssRule=b;else{let d=C.natives.length-1;c.insertRule(m.text,d),m.cssRule=c.cssRules[d]}}e[a]={native:m,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=this,c=0,a="",m="";return function C(b,d){let g=!1,s=(l,x="",w="")=>{if(l!=="("&&(e&&m in e?m=e[m].toString():r&&m in r&&(m=r[m].toString())),m&&!g&&!d){let k=n.analyzeUnitValue(m,be.calc.unit);k&&(m=k.value+k.unit)}a+=m+x+l+w,m="",g=!1};for(;c<t.length;c++){let l=t[c];if(l==="("){let x=m,w=g;s(l),c++,C(x,w||d)}else if(l===")"){s(l);break}else if(l===",")s(l,""," ");else{let x=t[c-1];switch(l){case"+":!m&&x!==")"?m+=l:s(l," "," ");break;case"-":b==="var"||!m&&x!==")"?m+=l:s(l," "," ");break;case"*":s(l," "," ");break;case"/":s(l," "," "),g=!0;break;default:m+=l;break}}}c>=t.length-1&&s("")}("",!1),a}},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 ze="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:ze};var We=[",",".","#","[","!","*",">","+","~",":","@"];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:c,colors:a,values:m,breakpoints:C,mediaQueries:b,rules:d}=this.config;function g(o){return o.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(o,f,y="",R={}){let T=E=>E?(y?y+"-":"")+E:y,L=Object.entries(o),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)s(Q,f,T(E),R);if(f&&y)X.length&&(R[y]=X.reduce((E,[Q,Z])=>(E[Q]=Z,E),{}));else for(let[E,Q]of X)R[T(E)]=Q;return R}function l(o){for(let[f,y]of Object.entries(o))/^[0-9]+x$/.test(f)&&typeof y=="number"&&(o["-"+f]=y*-1);return o}if(e)for(let[o,f]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+g(o)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[o,f]]);if(n)for(let[o,f]of Object.entries(s(n,!1))){let y=new RegExp(g(o)+"(?![a-z-])");for(let R of Array.isArray(f)?f:[f]){let T=R.match(/^::-[a-z]+-/m)?.[0]??"",L=this.selectors[T];L||(L=this.selectors[T]=[]);let I=L.find(([X])=>X===y);I||(I=[y,[]],L.push(I)),I[1].push(R)}}m&&(this.globalValues=l(s(m,!1))),C&&(this.breakpoints=s(C,!1)),b&&(this.mediaQueries=s(b,!1));let x=r?s(r,!1):{},w=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:o}])=>o).reduce((o,[f,{classes:y}])=>(o[f]=s(y,!1),o),{}):{},k=[...Object.keys(x),...Object.entries(w).flatMap(([o,f])=>Object.keys(f))],v=o=>{if(o in this.classes)return;let f=this.classes[o]=[],y=(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(o):this.themeAffectedClassesBy[E][R]=[o]:this.themeAffectedClassesBy[E]={[R]:[o]},f.includes(E)||f.push(E)};if(k.includes(I)){v(I);for(let E of this.classes[I])X(E)}else X(I)}};y("",x?.[o]);for(let[R,T]of Object.entries(w))y(R,T?.[o])};for(let o of k)v(o);for(let o in this.themeAffectedClassesBy){let f=this.classesBy[o]=[];for(let y of Object.values(this.themeAffectedClassesBy[o]))for(let R of y)f.includes(R)||f.push(R)}let u=(o,f)=>{if(!f)return;let y=s(f,!0);for(let[R,T]of Object.entries(y)){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][o]=X:this.colorThemesMap[E]={[o]:X}}}for(let R in f)this.colorNames.includes(R)||this.colorNames.push(R)};if(u("",a),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let o in c){let f=c[o];u(o,f.colors),this.themeNames.push(o)}let i=o=>{for(let[f,y]of Object.entries(this.colorThemesMap))for(let[R,T]of Object.entries(y))T.startsWith("#")||o(f,y,R,T)};if(i((o,f,y,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)),f[y]=L}}),i((o,f,y,R)=>{let[T,L]=R.split("/"),I=this.colorThemesMap[T];if(I){let X=(y?I[y]:void 0)??I[""];f[y]=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 f[y],Object.keys(f).length||delete this.colorThemesMap[o]}),d)for(let o in d){let f=d[o],{native:y,values:R,colored:T}=f,L=f.match;if(f.id=o,f.native=y===!0?o.replace(/(?!^)[A-Z]/g,I=>"-"+I).toLowerCase():void 0,R&&(this.values[o]=l(s(R,!1))),L){let I=Object.keys(this.values[o]??{});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[o]=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 c=n?document.head:e,a=n?document.styleSheets:e.styleSheets;for(let C of a){let{ownerNode:b}=C;if(b&&b.id==="master"){this.style=b;break}}if(this.style)for(let C=0;C<this.style.sheet.cssRules.length;C++){let b=this.style.sheet.cssRules[C];if(b.constructor.name==="CSSKeyframesRule")continue;let d=s=>{if(s.selectorText){let x=s.selectorText.split(", ")[0].split(" ");for(let w=0;w<x.length;w++){let k=x[w];if(k[0]==="."){let v=k.slice(1),u="";for(let i=0;i<v.length;i++){let o=v[i],f=v[i+1];if(o==="\\"){if(i++,f!=="\\"){u+=f;continue}}else if(We.includes(o))break;u+=o}if(!(u in this.ruleBy)&&!(u in this.classes)){let i=this.create(u)[0];if(i)return i}}}}else if(s.cssRules)for(let l=0;l<s.cssRules.length;l++){let x=d(s.cssRules[l]);if(x)return x}},g=d(b);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let s=0;s<g.natives.length;s++)g.natives[s].cssRule=this.style.sheet.cssRules[C+s];C+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=De(),c.append(this.style);let m=C=>{C.forEach(b=>{b in this.countBy?this.countBy[b]++:(this.countBy[b]=1,this.insert(b))})};m(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(C=>m(C.classList)),this.observer=new MutationObserver(C=>{let b={},d=[],g=[],s=[],l=(v,u)=>{u?v.classList.forEach(w):v.classList.forEach(x);let i=v.children;for(let o=0;o<i.length;o++){let f=i[o];f.classList&&(g.push(f),l(f,u))}},x=v=>{v in b?b[v]++:b[v]=1},w=v=>{v in b?b[v]--:v in this.countBy&&(b[v]=-1)},k=(v,u)=>{for(let i=0;i<v.length;i++){let o=v[i];o.classList&&!g.includes(o)&&!s.includes(o)&&(o.isConnected!==u?(g.push(o),l(o,u)):s.push(o))}};for(let v=0;v<C.length;v++){let u=C[v],{addedNodes:i,removedNodes:o,type:f,target:y}=u;if(f==="attributes"){if(d.find(R=>R.target===y))continue;d.push(u)}else k(i,!1),(!y.isConnected||!g.includes(y))&&k(o,!0)}if(!(!d.length&&!Object.keys(b).length)){for(let{oldValue:v,target:u}of d){let i=g.includes(u),o=u.classList,f=v?v.split(" "):[];if(i){if(u.isConnected)continue;for(let y of f)o.contains(y)||w(y)}else if(u.isConnected){o.forEach(y=>{f.includes(y)||x(y)});for(let y of f)o.contains(y)||w(y)}}for(let v in b){let u=b[v],i=(this.countBy[v]||0)+u;i===0?(delete this.countBy[v],this.delete(v)):(v in this.countBy||this.insert(v),this.countBy[v]=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],c=this.matches[r],{symbol:a,native:m}=n;if(c&&c.test(e))return{origin:"match",config:n};if(a&&e.startsWith(a))return{origin:"symbol",config:n};if(m&&e.startsWith(m+":"))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 c=this.match(n);if(c)return new ce(n,c,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=c=>{let a=this.ruleBy[c];if(!(!a||c in this.classesBy&&this.classesBy[c].some(m=>m in this.countBy))){if(r&&a.natives.length){let m=a.natives[0];for(let C=0;C<r.cssRules.length;C++)if(r.cssRules[C]===m.cssRule){for(let d=0;d<a.natives.length;d++)r.deleteRule(C);break}}this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[c],a.config.delete&&a.config.delete.call(a,c)}};if(e in this.classes){for(let c of this.classes[e])c in this.countBy||n(c);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,c=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:m,order:C,priority:b,hasWhere:d,className:g}=r,s=(w,k,v)=>{let u=w;for(;u<=a;u++){let i=this.rules[u];if(k?.(i))return v?-1:u-1;if(v?.(i))return u}return v?-1:u-1},l,x;if(m){let w=this.rules.findIndex(k=>k.media);if(w===-1)n=a+1;else{let{"max-width":k,"min-width":v}=m.features;if(k||v){let u=this.rules.findIndex(i=>i.media?.features["max-width"]||i.media?.features["min-width"]);if(u===-1)n=a+1;else if(k&&v){if(b===-1?(l=s(u,i=>i.priority!==-1,i=>i.media.features["max-width"]&&i.media.features["min-width"]),x=s(u,i=>i.priority!==-1)):(l=s(u,void 0,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1),x=a),l!==-1){let i=k.value-v.value,o=x,f=l;for(l=void 0;o>=f;o--){let{"max-width":y,"min-width":R}=this.rules[o].media.features,T=y.value-R.value;if(T<i)x=o-1;else if(T===i)l=o;else break}}if(l!==-1){let i=k.value-v.value;for(let o=x;o>=l;o--){let{"max-width":f,"min-width":y}=this.rules[o].media.features,R=f.value-y.value;if(R<i)x=o-1;else if(R>i){l=o+1;break}}}}else if(v){if(b===-1?(l=s(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=s(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]||i.priority!==-1)):(l=s(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=s(u,i=>i.media.features["max-width"]&&i.media.features["min-width"]&&i.priority!==-1)),l!==-1)for(let i=x;i>=l;i--){let o=this.rules[i].media.features["min-width"].value;if(o>v.value)x=i-1;else if(o<v.value){l=i+1;break}}}else if(b===-1?(l=s(u,i=>i.media.features["min-width"]||i.priority!==-1,i=>i.media.features["max-width"]),x=s(u,i=>i.media.features["min-width"]||i.priority!==-1)):(l=s(u,i=>i.media.features["min-width"]&&i.priority!==-1,i=>i.media.features["max-width"]&&i.priority!==-1),x=s(u,i=>i.media.features["min-width"]&&i.priority!==-1)),l!==-1)for(let i=x;i>=l;i--){let o=this.rules[i].media.features["max-width"].value;if(o<k.value)x=i-1;else if(o>k.value){l=i+1;break}}}else b===-1?(l=w,x=s(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(l=s(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),x=s(w,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let w=c?1:0;b===-1?(l=w,x=s(w,k=>k.media||k.priority!==-1)):(l=s(w,k=>k.media,k=>k.priority!==-1),x=s(w,k=>k.media))}if(n===void 0)if(l===-1)n=x+1;else{if(b===-1)for(let w=l;w<=x;w++){let k=this.rules[w];if(!(!d&&k.hasWhere)&&(d&&!k.hasWhere||k.order>=C)){n=w;break}}else for(let w=l;w<=x;w++){let k=this.rules[w];if(!(!d&&k.hasWhere)){if(d&&!k.hasWhere){n=w;break}if(k.priority<b){n=w;break}else if(k.priority===b){if(k.order>=C){n=w;break}}else n=w+1}}n===void 0&&(n=x+1)}if(this.rules.splice(n,0,r),this.ruleBy[g]=r,this.style){let w=this.style.sheet,k=0,v=u=>{let i=this.rules[u];if(i){if(!i.natives.length)return v(u-1);let o=i.natives[i.natives.length-1].cssRule;for(let f=0;f<w.cssRules.length;f++)if(w.cssRules[f]===o){k=f+1;break}}};v(n-1);for(let u=0;u<r.natives.length;)try{let i=r.natives[u];w.insertRule(i.text,k),i.cssRule=w.cssRules[k++],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 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};
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 c of r)c in n.countBy||n.insert(c)&&(n.countBy[c]=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,We 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,ze 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.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"}
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.149","@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.149"}