@master/css 2.0.0-beta.139 → 2.0.0-beta.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config/functions.js +1 -1
- package/dist/cjs/config/rules.js +1 -1
- package/dist/cjs/css.js +1 -1
- package/dist/cjs/methods/extract-classes-from-html.js +1 -1
- package/dist/cjs/rule.js +1 -1
- package/dist/css.d.ts +7 -5
- package/dist/esm/config/functions.mjs +1 -1
- package/dist/esm/config/rules.mjs +1 -1
- package/dist/esm/css.mjs +1 -1
- package/dist/esm/methods/extract-classes-from-html.mjs +1 -1
- package/dist/esm/rule.mjs +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
- package/dist/cjs/constants/sizing-values.js +0 -1
- package/dist/cjs/constants/sorted-selectors.js +0 -1
- package/dist/constants/sizing-values.d.ts +0 -7
- package/dist/constants/sorted-selectors.d.ts +0 -1
- package/dist/esm/constants/sizing-values.mjs +0 -1
- package/dist/esm/constants/sorted-selectors.mjs +0 -1
package/dist/esm/rule.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{START_SYMBOL as re}from"./constants/start-symbol.mjs";import{cssEscape as ae}from"./utils/css-escape.mjs";function ie(y){let n=typeof Buffer<"u"?Buffer:null;return!!(n&&y instanceof n||y instanceof Date||y instanceof RegExp)}function ne(y){if(typeof Buffer<"u"&&Buffer&&y instanceof Buffer){let n=Buffer.alloc(y.length);return y.copy(n),n}else{if(y instanceof Date)return new Date(y.getTime());if(y instanceof RegExp)return new RegExp(y);throw new Error("Unexpected situation")}}function se(y){let n=[];return y.forEach(function(f,S){typeof f=="object"&&f!==null?Array.isArray(f)?n[S]=se(f):ie(f)?n[S]=ne(f):n[S]=A({},f):n[S]=f}),n}function te(y,n){return n==="__proto__"?void 0:y[n]}function A(...y){let n={},f,S;return y.forEach(function(j){typeof j!="object"||j===null||Array.isArray(j)||Object.keys(j).forEach(function(R){if(S=te(n,R),f=te(j,R),f!==n)if(typeof f!="object"||f===null){n[R]=f;return}else if(Array.isArray(f)){n[R]=se(f);return}else if(ie(f)){n[R]=ne(f);return}else if(typeof S!="object"||S===null||Array.isArray(S)){n[R]=A({},f);return}else{n[R]=A(S,f);return}})}),n}var ue={unit:"",order:0,separators:[","]},oe=class{constructor(n,f={},S){this.className=n;this.meta=f;this.css=S;this.config=A(ue,f.config);let{unit:j,order:R,colored:C,native:N,analyze:Q,transform:q,declare:$,create:F}=this.config,{scope:Y,important:le,functions:fe}=S.config,{themeNames:Z,colorNames:H,colorThemesMap:J,selectors:W,breakpoints:K,mediaQueries:z,themeAffectedClassesBy:ce,globalValues:D}=S,X=ce[n];F&&F.call(this,n);let _,G,I,B,w;if(f.origin==="semantics"){let[h,c]=f.value;B=n.slice(h.length),_=c}else{let h;if(Q)[h,I]=Q.call(this,n);else if(f.origin==="match"){let s=n.indexOf(":");this.prefix=n.slice(0,s+1),this.prefix.includes("(")?(this.prefix=void 0,h=n):h=n.slice(s+1)}else f.origin==="symbol"&&(this.symbol=n[0],h=n.slice(1));w=[];let c=this,a=this.values,p=[","];this.config.separators.length&&p.push(...this.config.separators);let i="",t=0;(function s(e,l,o,r=void 0,u=[],v=[],g){let k=r===void 0,m,E=d=>d==="'"||d==='"',V=()=>m=i.length,M=()=>{if(i){let d=i,x=k?d:i.slice(m);if(i="",T="",a&&x in a&&!u.includes(x)){let b=t;t=0,s(a[x].toString(),l,void 0,r,[...u,x],v,g),t=b,k||(i=i.slice(0,m)+i)}else if(D&&x in D&&!v.includes(x)){let b=t;t=0,s(D[x].toString(),l,void 0,r,u,[...v,x],g),t=b,k||(i=i.slice(0,m)+i)}else if(k){let b=!g&&c.analyzeUnitValue(x,l);w.push({value:b?.value??x,unit:b?.unit})}else{let b=!g&&c.analyzeUnitValue(x,l);i=b?d.slice(0,m)+b.value+b.unit:d}V()}},O=E(o);V();let T="";for(;t<e.length;t++){let d=e[t];if(d===o){if(O){i+=d;let x=0;for(let b=i.length-2;i[b]==="\\";b--)x++;if(x%2)continue}else M(),i+=d;return}else if(!O&&d in re){let x=d==="("&&T&&fe?.[T];x?.name&&(i=i.slice(0,i.length-T.length)+x.name,T=x.name),i+=d,t++;let b=re[d];s(e,x?.unit??l,b,T||r||"",u,v,g||!!x?.transform),x?.transform&&(i=i.slice(0,m+T.length+1)+x.transform.call(c,i.slice(m+T.length+1,-1))+i.slice(-1)),k&&(E(b)?(w.push(i),i=""):M()),T=""}else if((d==="|"||d===" ")&&o!=="}"&&(!O||r==="path"))M(),k||(i+=" ",m++);else{if(!O){if(d==="."){if(isNaN(+e[t+1]))break;e[t-1]==="-"&&(i+="0")}else if(p.includes(d)){M(),k?w.push(d):(i+=d,m++);continue}else if(k&&(d==="#"&&(i||w.length&&e[t-1]!=="|"&&w[t-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(d)))break;T+=d}i+=d}}r===void 0&&M()})(h,j),B=h.slice(t)}this.order=typeof R=="function"?R.call(this,this.prefix):R,B[0]==="!"&&(this.important=!0,B=B.slice(1));let ee=h=>{let c=h.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((t,s)=>s%3?t:t.replace(/_/g," ")).join(""),a=[],p="",i=0;for(let t=0;t<c.length;t++){let s=c[t];if(s==="\\"){p+=s+c[++t];continue}!i&&s===","?(a.push(p),p=""):(p+=s,i&&s===")"?i--:s==="("&&i++)}return p&&a.push(p),a};this.prefixSelectors=I?ee(I):[""];let P=B.split("@"),U=P[0];if(U){this.vendorSuffixSelectors={};let h=(t,s,e,l)=>{for(let[o,r]of s)if(o.test(t)){for(let u of r)h(t.replace(o,u),s,e,!0);return}l&&e.push(t)},c=[];""in W?h(U,W[""],c,!0):c.push(U);let a={};for(let[t,s]of Object.entries(W)){if(!t)continue;let e=[];for(let l of c)h(l,s,e,!1);e.length&&(a[t]=e)}let p=(t,s)=>{let e=s.reduce((l,o)=>(l.push(...ee(o)),l),[]);t in this.vendorSuffixSelectors?this.vendorSuffixSelectors[t].push(...e):this.vendorSuffixSelectors[t]=e},i=Object.keys(a);if(i.length)for(let t of i)p(t,a[t]);else p("",c);for(let t of Object.values(this.vendorSuffixSelectors))for(let s of t){this.hasWhere!==!1&&(this.hasWhere=s.includes(":where("));let e=[":disabled",":active",":focus",":hover"];for(let l=0;l<e.length;l++)if(s.includes(e[l])){(this.priority===-1||this.priority>l)&&(this.priority=l);break}}}else this.vendorSuffixSelectors={"":[""]};for(let h=1;h<P.length;h++){let c=P[h];if(c)if(Z.includes(c))this.theme=c;else if(c==="rtl"||c==="ltr")this.direction=c;else{let a,p,i=c.indexOf("_");if(i!==-1)a=c.slice(0,i),p=c.slice(i);else{let t=c.indexOf("(");t!==-1&&(a=c.slice(0,t),p=c.slice(t))}if(!a){a="media";let t=[];this.media={token:c,features:{}};let s=c.split("&");for(let e of s)if(e==="all"||e==="print"||e==="screen"||e==="speech")this.media.type=e;else if(e==="\u{1F5A8}")this.media.type="print";else if(e==="landscape"||e==="portrait")t.push("(orientation:"+e+")");else if(e==="motion"||e==="reduced-motion")t.push("(prefers-reduced-motion:"+(e==="motion"?"no-preference":"reduce")+")");else if(z&&e in z)t.push(z[e]);else{let l={token:e},o="",r="",u=0;e.startsWith("<=")?(r="<=",o="max-width"):e.startsWith(">=")||K[e]?(r=">=",o="min-width"):e.startsWith(">")?(r=">",o="min-width",u=.02):e.startsWith("<")&&(r="<",o="max-width",u=-.02);let v=r?e.replace(r,""):e,g=K[v];switch(o){case"max-width":case"min-width":g?Object.assign(l,this.analyzeUnitValue(g.toString(),"px")):Object.assign(l,this.analyzeUnitValue(v,"px")),l.unit==="px"&&(l.value+=u),this.media.features[o]=l,t.push("("+o+":"+(l.value+l.unit)+")");break}}p="",this.media.type&&(p=this.media.type),t.length&&(p+=(p?" and ":"")+t.join(" and "))}p&&(this.at[a]=(a in this.at?this.at[a]+" and ":"")+p.replace(/_/g," "))}}let L=(h,c)=>{let a,p=(s,e,l)=>{let o="";this.direction&&(o+="[dir="+this.direction+"] ");let r=this.prefixSelectors.map(g=>g+o),u=(g,k)=>r.map(m=>(g?"."+g+" ":"")+(Y?Y+" ":"")+m).reduce((m,E)=>(m.push(l.reduce((V,M)=>(V.push(E+"."+ae(k)+M),V),[]).join(",")),m),[]).join(","),v=u(e,n)+(X?Object.entries(X).filter(([g])=>this.theme||!C||!e||!g||g===e).map(([g,k])=>k.reduce((m,E)=>m+","+u(this.theme??((C||G)&&e||g),E),"")).join(""):"")+"{"+s+"}";for(let g of Object.keys(this.at).sort((k,m)=>m==="supports"?-1:1))v="@"+g+" "+this.at[g]+"{"+v+"}";return v},i=[];if(w){let s=[this.theme??h,""],e,l=!1;for(let o of w)if(typeof o=="string")i.push(o);else{let r=o.value;if(o.unit)r+=o.unit;else if(C&&J&&H){let u=!1;r=r.replace(new RegExp(`(^|,| |\\()((?:${H.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(v,g,k,m)=>{let E=J[k];if(E){let V,M;for(let O of s)if(V=E[O]){M=O;break}if(V){u=!c||M===h,e||(e=u);let O=V;if(m){let T=m.endsWith("%")?parseFloat(m)/100:+m;T=isNaN(T)?1:Math.min(Math.max(T,0),1),O+=Math.round(T*255).toString(16).toUpperCase().padStart(2,"0")}return g+O}else l=!0}return v})}i.push(r)}if(c&&(l||(e===void 0?h:!e)))return;if(a=i.reduce((o,r,u)=>o+r+(r===","||w[u+1]===","||u===w.length-1?"":" "),""),q&&(a=q.call(this,a,this.css.config)),C&&a==="current"&&(a="currentColor"),$){let o,r;if(w.length===1){let u=w[0];typeof u=="object"&&(o=u.value,r=u.unit)}_=$.call(this,r?o:a,r||"")}else _={[N]:a}}let t={};for(let s in _){let e=(r,u)=>{let v=u+((this.important||le)&&!u.endsWith("!important")?"!important":"");r in t?t[r].push(v):t[r]=[v]},l=s+":",o=_[s];if(typeof o=="object"){G=!0;for(let r in o)e(r,l+o[r])}else e(h,l+o.toString())}for(let s of Object.values(this.vendorSuffixSelectors))for(let e in t)this.natives.push({text:p(t[e].join(";"),e,s),theme:e})};if(this.theme)L(this.theme,!1);else if(C)for(let h of Z)L(h,!0);else L("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(n=>n.text).join("")}resolveValue(n,f){return Number.isNaN(+n)?n:n/(f==="rem"||f==="em"?this.css.config.rootSize:1)+f}analyzeUnitValue(n,f){let S=f??this.config.unit;if(S){let j="",R=n.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(R)if(n.includes("/")){let[C,N]=n.split("/");return{value:+C/+N*100+"%",unit:j}}else{let C=+R[1];return j=R[3]||"",j||((S==="rem"||S==="em")&&(C=C/this.css.config.rootSize),j=S||""),{value:C,unit:j}}}}};export{oe as Rule};
|
package/dist/index.browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var ze=Object.defineProperty;var De=(t,e,r)=>e in t?ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ne=(t,e,r)=>(De(t,typeof e!="symbol"?e+"":e,r),r);function xe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function ye(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function ke(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=ke(r):xe(r)?e[i]=ye(r):e[i]=G({},r):e[i]=r}),e}function ve(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},r,i;return t.forEach(function(u){typeof u!="object"||u===null||Array.isArray(u)||Object.keys(u).forEach(function(a){if(i=ve(e,a),r=ve(u,a),r!==e)if(typeof r!="object"||r===null){e[a]=r;return}else if(Array.isArray(r)){e[a]=ke(r);return}else if(xe(r)){e[a]=ye(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[a]=G({},r);return}else{e[a]=G(i,r);return}})}),e}var me=[":disabled",":active",":focus",":hover"];var re={"(":")","'":"'",'"':'"',"{":"}"};function ae(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,i=-1,u="",a,k=e.charCodeAt(0);if(r==1&&k==45)return"\\"+e;for(;++i<r;){if(a=e.charCodeAt(i),a==0){u+="\uFFFD";continue}if(a>=1&&a<=31||a==127||i==0&&a>=48&&a<=57||i==1&&a>=48&&a<=57&&k==45){u+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){u+=e.charAt(i);continue}u+="\\"+e.charAt(i)}return u}var Ne={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=G(Ne,r.config);let{unit:u,order:a,colored:k,native:x,analyze:m,transform:o,declare:b,create:d}=this.config,{scope:h,important:g,functions:T}=i.config,{themeNames:w,colorNames:c,colorThemesMap:C,selectors:n,breakpoints:l,mediaQueries:f,themeAffectedClassesBy:s,globalValues:y}=i,R=s[e];d&&d.call(this,e);let $,I,M,X,q;if(r.origin==="semantics"){let[z,W]=r.value;X=e.slice(z.length),$=W}else{let z;if(m)[z,M]=m.call(this,e);else if(r.origin==="match"){let B=e.indexOf(":");this.prefix=e.slice(0,B+1),this.prefix.includes("(")?(this.prefix=void 0,z=e):z=e.slice(B+1)}else r.origin==="symbol"&&(this.symbol=e[0],z=e.slice(1));q=[];let W=this,E=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",v=0;(function B(p,L,O,j=void 0,A=[],H=[],D){let _=j===void 0,Y,Z=N=>N==="'"||N==='"',te=()=>Y=S.length,K=()=>{if(S){let N=S,P=_?N:S.slice(Y);if(S="",Q="",E&&P in E&&!A.includes(P)){let U=v;v=0,B(E[P].toString(),L,void 0,j,[...A,P],H,D),v=U,_||(S=S.slice(0,Y)+S)}else if(y&&P in y&&!H.includes(P)){let U=v;v=0,B(y[P].toString(),L,void 0,j,A,[...H,P],D),v=U,_||(S=S.slice(0,Y)+S)}else if(_){let U=!D&&W.analyzeUnitValue(P,L);q.push({value:U?.value??P,unit:U?.unit})}else{let U=!D&&W.analyzeUnitValue(P,L);S=U?N.slice(0,Y)+U.value+U.unit:N}te()}},J=Z(O);te();let Q="";for(;v<p.length;v++){let N=p[v];if(N===O){if(J){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(!J&&N in re){let P=N==="("&&Q&&T?.[Q];P?.name&&(S=S.slice(0,S.length-Q.length)+P.name,Q=P.name),S+=N,v++;let U=re[N];B(p,P?.unit??L,U,Q||j||"",A,H,D||!!P?.transform),P?.transform&&(S=S.slice(0,Y+Q.length+1)+P.transform.call(W,S.slice(Y+Q.length+1,-1))+S.slice(-1)),_&&(Z(U)?(q.push(S),S=""):K()),Q=""}else if((N==="|"||N===" ")&&O!=="}"&&(!J||j==="path"))K(),_||(S+=" ",Y++);else{if(!J){if(N==="."){if(isNaN(+p[v+1]))break;p[v-1]==="-"&&(S+="0")}else if(F.includes(N)){K(),_?q.push(N):(S+=N,Y++);continue}else if(_&&(N==="#"&&(S||q.length&&p[v-1]!=="|"&&q[v-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(N)))break;Q+=N}S+=N}}j===void 0&&K()})(z,u),X=z.slice(v)}this.order=typeof a=="function"?a.call(this,this.prefix):a,X[0]==="!"&&(this.important=!0,X=X.slice(1));let be=z=>{let W=z.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((v,B)=>B%3?v:v.replace(/_/g," ")).join(""),E=[],F="",S=0;for(let v=0;v<W.length;v++){let B=W[v];if(B==="\\"){F+=B+W[++v];continue}!S&&B===","?(E.push(F),F=""):(F+=B,S&&B===")"?S--:B==="("&&S++)}return F&&E.push(F),E};this.prefixSelectors=M?be(M):[""];let de=X.split("@"),fe=de[0];if(fe){this.vendorSuffixSelectors={};let z=(v,B,p,L)=>{for(let[O,j]of B)if(O.test(v)){for(let A of j)z(v.replace(O,A),B,p,!0);return}L&&p.push(v)},W=[];""in n?z(fe,n[""],W,!0):W.push(fe);let E={};for(let[v,B]of Object.entries(n)){if(!v)continue;let p=[];for(let L of W)z(L,B,p,!1);p.length&&(E[v]=p)}let F=(v,B)=>{let p=B.reduce((L,O)=>(L.push(...be(O)),L),[]);v in this.vendorSuffixSelectors?this.vendorSuffixSelectors[v].push(...p):this.vendorSuffixSelectors[v]=p},S=Object.keys(E);if(S.length)for(let v of S)F(v,E[v]);else F("",W);for(let v of Object.values(this.vendorSuffixSelectors))for(let B of v){this.hasWhere!==!1&&(this.hasWhere=B.includes(":where("));for(let p=0;p<me.length;p++)if(B.includes(me[p])){(this.priority===-1||this.priority>p)&&(this.priority=p);break}}}else this.vendorSuffixSelectors={"":[""]};for(let z=1;z<de.length;z++){let W=de[z];if(W)if(w.includes(W))this.theme=W;else if(W==="rtl"||W==="ltr")this.direction=W;else{let E,F,S=W.indexOf("_");if(S!==-1)E=W.slice(0,S),F=W.slice(S);else{let v=W.indexOf("(");v!==-1&&(E=W.slice(0,v),F=W.slice(v))}if(!E){E="media";let v=[];this.media={token:W,features:{}};let B=W.split("&");for(let p of B)if(p==="all"||p==="print"||p==="screen"||p==="speech")this.media.type=p;else if(p==="\u{1F5A8}")this.media.type="print";else if(p==="landscape"||p==="portrait")v.push("(orientation:"+p+")");else if(p==="motion"||p==="reduced-motion")v.push("(prefers-reduced-motion:"+(p==="motion"?"no-preference":"reduce")+")");else if(f&&p in f)v.push(f[p]);else{let L={token:p},O="",j="",A=0;p.startsWith("<=")?(j="<=",O="max-width"):p.startsWith(">=")||l[p]?(j=">=",O="min-width"):p.startsWith(">")?(j=">",O="min-width",A=.02):p.startsWith("<")&&(j="<",O="max-width",A=-.02);let H=j?p.replace(j,""):p,D=l[H];switch(O){case"max-width":case"min-width":D?Object.assign(L,this.analyzeUnitValue(D.toString(),"px")):Object.assign(L,this.analyzeUnitValue(H,"px")),L.unit==="px"&&(L.value+=A),this.media.features[O]=L,v.push("("+O+":"+(L.value+L.unit)+")");break}}F="",this.media.type&&(F=this.media.type),v.length&&(F+=(F?" and ":"")+v.join(" and "))}F&&(this.at[E]=(E in this.at?this.at[E]+" and ":"")+F.replace(/_/g," "))}}let he=(z,W)=>{let E,F=(B,p,L)=>{let O="";this.direction&&(O+="[dir="+this.direction+"] ");let j=this.prefixSelectors.map(D=>D+O),A=(D,_)=>j.map(Y=>(D?"."+D+" ":"")+(h?h+" ":"")+Y).reduce((Y,Z)=>(Y.push(L.reduce((te,K)=>(te.push(Z+"."+ae(_)+K),te),[]).join(",")),Y),[]).join(","),H=A(p,e)+(R?Object.entries(R).filter(([D])=>this.theme||!k||!p||!D||D===p).map(([D,_])=>_.reduce((Y,Z)=>Y+","+A(this.theme??((k||I)&&p||D),Z),"")).join(""):"")+"{"+B+"}";for(let D of Object.keys(this.at).sort((_,Y)=>Y==="supports"?-1:1))H="@"+D+" "+this.at[D]+"{"+H+"}";return H},S=[];if(q){let B=this.theme?[this.theme,""]:[z],p,L;for(let O of q)if(typeof O=="string")S.push(O);else{let j=O.value;if(O.unit)j+=O.unit;else if(k&&C&&c){let A=!1,H=!1;j=j.replace(new RegExp(`(^|,| |\\()((?:${c.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(D,_,Y,Z)=>{H=!0;let te=C[Y];if(te){let K;for(let J of B)if(K=te[J])break;if(K){A=!0;let J=K;if(Z){let Q=Z.endsWith("%")?parseFloat(Z)/100:+Z;Q=isNaN(Q)?1:Math.min(Math.max(Q,0),1),J+=Math.round(Q*255).toString(16).toUpperCase().padStart(2,"0")}return _+J}}return D}),H&&(L=A)}L!==void 0&&!p&&(p=L),S.push(j)}if(W&&(p===void 0?z:!p))return;if(E=S.reduce((O,j,A)=>O+j+(j===","||q[A+1]===","||A===q.length-1?"":" "),""),o&&(E=o.call(this,E,this.css.config)),k&&E==="current"&&(E="currentColor"),b){let O,j;if(q.length===1){let A=q[0];typeof A=="object"&&(O=A.value,j=A.unit)}$=b.call(this,j?O:E,j||"")}else $={[x]:E}}let v={};for(let B in $){let p=(j,A)=>{let H=A+((this.important||g)&&!A.endsWith("!important")?"!important":"");j in v?v[j].push(H):v[j]=[H]},L=B+":",O=$[B];if(typeof O=="object"){I=!0;for(let j in O)p(j,L+O[j])}else p(z,L+O.toString())}for(let B of Object.values(this.vendorSuffixSelectors))for(let p in v)this.natives.push({text:F(v[p].join(";"),p,B),theme:p})};if(this.theme)he(this.theme,!1);else if(k)for(let z of w)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 i=r??this.config.unit;if(i){let u="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[k,x]=e.split("/");return{value:+k/+x*100+"%",unit:u}}else{let k=+a[1];return u=a[3]||"",u||((i==="rem"||i==="em")&&(k=k/this.css.config.rootSize),u=i||""),{value:k,unit:u}}}}};var Re={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function oe(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 ce(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function V(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,u="0"in t?oe(t[0]):[0,0,0],a,k,x=[],m=()=>{let o=a-i,b=k.map((d,h)=>(d-u[h])/o);for(let d of x){let h=d-i,g=u.map((T,w)=>Math.round(T+b[w]*h));t[d]="#"+ce.call(this,...g)}};for(let o=1;o<100;o++)o in t?(x.length?(a=o,k=oe(t[o]),m(),x.length=0,u=k):u=oe(t[o]),i=o):x.push(o);x.length&&(a=100,k="100"in t?oe(t[100]):[255,255,255],m())}return e||(t[""]=t[r?"500":"50"]),t}var Se={black:"#000000",white:"#ffffff",slate:V({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:V({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:V({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:V({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:V({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:V({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:V({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:V({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:V({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:V({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:V({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:V({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:V({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:V({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:V({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:V({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:V({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:V({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:V({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:V({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var we="";var Ce={"::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 $e={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"}};var Te=["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=(o,b)=>{let d=b.indexOf(":");if(d!==-1){o in e||(e[o]={});let h=e[o],g=b.slice(0,d);g in h||(h[g]=b.slice(d+1))}},i=o=>{let b=(d,h)=>{let g=h.slice(ae(o.className).length).match(/\{(.*)\}/)[1].split(";");for(let T of g)r(d,T)};if(this.theme){let d=o.natives.find(h=>h.theme===this.theme)??o.natives.find(h=>!h.theme);d&&b(this.theme,d.text)}else for(let d of o.natives)b(d.theme,d.text)},u=[],a="",k=()=>{a&&(u.push(a.replace(/ /g,"")),a="")},x=1;(function o(b){for(;x<t.length;x++){let d=t[x];if(!b){if(d===";"){k();continue}if(d==="}")break}if(a+=d,b===d){if(b==="'"||b==='"'){let h=0;for(let g=a.length-2;a[g]==="\\";g--)h++;if(h%2)continue}break}else d in re&&b!=="'"&&b!=='"'&&(x++,o(re[d]))}})(void 0),k();for(let o of u){let b=this.css.create(o);if(Array.isArray(b))for(let d of b)i(d);else b?i(b):r(this.theme??"",o)}let m={};for(let o in e)for(let[b,d]of Object.entries(e[o]))b in m?m[b][o]=d:m[b]={[o]:d};return m}},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},overflowY:{native:!0},overflow:{native:!0,order:-1},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 Me.call(this,t)},delete(t){return Be.call(this,t)},insert(){return je.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Me.call(this,t)},delete(t){return Be.call(this,t)},insert(){return je.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)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},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:{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 Me(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 Be(){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 i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function je(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,u=r?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let k={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([m,o])=>`${m}{${Object.entries(o).map(([b,d])=>b+":"+d).join(";")}}`).join("")+"}",theme:""},x;if(Object.keys(e).length?(x=i[0]).natives.push(k):i.splice(0,0,x={natives:[k],get text(){return this.natives.map(m=>m.text).join("")}}),u){let m;for(let o=0;o<u.cssRules.length;o++){let b=u.cssRules[o];if(b.constructor.name!=="CSSKeyframesRule")break;if(b.name===a){m=b;break}}if(m)k.cssRule=m;else{let o=x.natives.length-1;u.insertRule(k.text,o),k.cssRule=u.cssRules[o]}}e[a]={native:k,count:1}}}}var We={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};var ge={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=m=>m==="+"||m==="-"||m==="*"||m==="/",r="",i,u="",a=!1,k=!1,x=(m,o="",b="")=>{if(i===2&&!k){let d=this.analyzeUnitValue(u,ge.calc.unit);d&&(u=d.value+d.unit)}r+=u+o+m+b,i=null,k=!1,u=""};for(let m=0;m<t.length;m++){let o=t[m];if(o==="("||o===")")a=o===")",x(o);else if(o===",")x(o,""," ");else{switch(i){case 1:break;case 2:if(e(o)){x(o," "," ");continue}else/[0-9]/.test(o)||(k=!0);break;default:a&&(r+=" "),isNaN(+o)?e(o)||(i=1):i=2;break}i?u+=o:r+=o}}return x(""),r}},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:""}};var se={breakpoints:Re,colors:Se,rootSize:16,scope:we,selectors:Ce,semantics:$e,themes:Te,rules:Oe,override:!1,observe:!0,important:!1,functions:ge,keyframes:We};var Le=[",",".","#","[","!","*",">","+","~",":","@"];var pe=typeof window<"u",Ee=()=>{let t=document.createElement("style");return t.id="master",t},ie=class{constructor(e=se){this.config=e;e?.override||(this.config=G(se,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),pe&&this.config.observe&&this.observe(document),ie.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:i,themes:u,colors:a,values:k,breakpoints:x,mediaQueries:m,rules:o}=this.config;function b(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function d(n,l,f="",s={}){let y=M=>M?(f?f+"-":"")+M:f,R=Object.entries(n),$=[],I=[];for(let M of R){let X=M[1];(typeof X=="object"&&!Array.isArray(X)?$:I).push(M)}for(let[M,X]of $)d(X,l,y(M),s);if(l&&f)I.length&&(s[f]=I.reduce((M,[X,q])=>(M[X]=q,M),{}));else for(let[M,X]of I)s[y(M)]=X;return s}if(e)for(let[n,l]of Object.entries(d(e,!0)))this.semantics.push([new RegExp("^"+b(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,l]]);if(i)for(let[n,l]of Object.entries(d(i,!1))){let f=new RegExp(b(n)+"(?![a-z-])");for(let s of Array.isArray(l)?l:[l]){let y=s.match(/^::-[a-z]+-/m)?.[0]??"",R=this.selectors[y];R||(R=this.selectors[y]=[]);let $=R.find(([I])=>I===f);$||($=[f,[]],R.push($)),$[1].push(s)}}k&&(this.globalValues=d(k,!1)),x&&(this.breakpoints=d(x,!1)),m&&(this.mediaQueries=d(m,!1));let h=r?d(r,!1):{},g=u&&!Array.isArray(u)?Object.entries(u).filter(([,{classes:n}])=>n).reduce((n,[l,{classes:f}])=>(n[l]=d(f,!1),n),{}):{},T=[...Object.keys(h),...Object.entries(g).flatMap(([n,l])=>Object.keys(l))],w=n=>{if(n in this.classes)return;let l=this.classes[n]=[],f=(s,y)=>{if(!y)return;let R=Array.isArray(y)?y:y.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let $ of R){let I=M=>{M in this.themeAffectedClassesBy?s in this.themeAffectedClassesBy[M]?this.themeAffectedClassesBy[M][s].push(n):this.themeAffectedClassesBy[M][s]=[n]:this.themeAffectedClassesBy[M]={[s]:[n]},l.includes(M)||l.push(M)};if(T.includes($)){w($);for(let M of this.classes[$])I(M)}else I($)}};f("",h?.[n]);for(let[s,y]of Object.entries(g))f(s,y?.[n])};for(let n of T)w(n);for(let n in this.themeAffectedClassesBy){let l=this.classesBy[n]=[];for(let f of Object.values(this.themeAffectedClassesBy[n]))for(let s of f)l.includes(s)||l.push(s)}let c=(n,l)=>{if(!l)return;let f=d(l,!0);for(let[s,y]of Object.entries(f)){let R=typeof y=="string"?{"":y}:y;for(let[$,I]of Object.entries(R)){let M=s+($?"-"+$:"");M in this.colorThemesMap?this.colorThemesMap[M][n]=I:this.colorThemesMap[M]={[n]:I}}}for(let s in l)this.colorNames.includes(s)||this.colorNames.push(s)};if(c("",a),u)if(Array.isArray(u))this.themeNames.push(...u);else for(let n in u){let l=u[n];c(n,l.colors),this.themeNames.push(n)}let C=n=>{for(let[l,f]of Object.entries(this.colorThemesMap))for(let[s,y]of Object.entries(f))y.startsWith("#")||n(l,f,s,y)};if(C((n,l,f,s)=>{let y=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(s);if(y){let R="#"+ce(+y[1],+y[2],+y[3]);y[4]&&(R+=Math.round(255*+y[4]).toString(16)),l[f]=R}}),C((n,l,f,s)=>{let[y,R]=s.split("/"),$=this.colorThemesMap[y];if($){let I=(f?$[f]:void 0)??$[""];l[f]=R?I.slice(0,7)+Math.round(255*+R).toString(16):I}else console.warn(`\`${s}\` doesn't exist in the extended config \`.colors\``),delete l[f],Object.keys(l).length||delete this.colorThemesMap[n]}),o)for(let n in o){let l=o[n],{native:f,values:s,colored:y}=l,R=l.match;if(l.id=n,l.native=f===!0?n.replace(/(?!^)[A-Z]/g,$=>"-"+$).toLowerCase():void 0,s&&(this.values[n]=d(s,!1)),R){let $=Object.keys(this.values[n]??{});R.includes("$values")&&(R=$.length?R.replace(/\$values/,$.join("|")):R.replace(/(?:\|)?\$values/,"")),y&&R.includes("$colors")&&(R=this.colorNames.length?R.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):R.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(R)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(pe&&e){this.root=e;let i=e===document;i&&(ie.root=this),this.host=i?document.documentElement:root.host;let u=i?document.head:e,a=i?document.styleSheets:e.styleSheets;for(let x of a){let{ownerNode:m}=x;if(m.id==="master"){this.style=m;break}}if(this.style)for(let x=0;x<this.style.sheet.cssRules.length;x++){let m=this.style.sheet.cssRules[x];if(m.constructor.name==="CSSKeyframesRule")continue;let o=d=>{if(d.selectorText){let g=d.selectorText.split(", ")[0].split(" ");for(let T=0;T<g.length;T++){let w=g[T];if(w[0]==="."){let c=w.slice(1),C="";for(let n=0;n<c.length;n++){let l=c[n],f=c[n+1];if(l==="\\"){if(n++,f!=="\\"){C+=f;continue}}else if(Le.includes(l))break;C+=l}if(!(C in this.ruleBy)&&!(C in this.classes)){let n=this.create(C)[0];if(n)return n}}}}else if(d.cssRules)for(let h=0;h<d.cssRules.length;h++){let g=o(d.cssRules[h]);if(g)return g}},b=o(m);if(b){this.rules.push(b),this.ruleBy[b.className]=b;for(let d=0;d<b.natives.length;d++)b.natives[d].cssRule=this.style.sheet.cssRules[x+d];x+=b.natives.length-1,b.config.insert?.call(b)}}else this.style=Ee(),u.append(this.style);let k=x=>{x.forEach(m=>{m in this.countBy?this.countBy[m]++:(this.countBy[m]=1,this.insert(m))})};k(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(x=>k(x.classList)),this.observer=new MutationObserver(x=>{let m={},o=[],b=[],d=[],h=(c,C)=>{C?c.classList.forEach(T):c.classList.forEach(g);let n=c.children;for(let l=0;l<n.length;l++){let f=n[l];f.classList&&(b.push(f),h(f,C))}},g=c=>{c in m?m[c]++:m[c]=1},T=c=>{c in m?m[c]--:c in this.countBy&&(m[c]=-1)},w=(c,C)=>{for(let n=0;n<c.length;n++){let l=c[n];l.classList&&!b.includes(l)&&!d.includes(l)&&(l.isConnected!==C?(b.push(l),h(l,C)):d.push(l))}};for(let c=0;c<x.length;c++){let C=x[c],{addedNodes:n,removedNodes:l,type:f,target:s}=C;if(f==="attributes"){if(o.find(y=>y.target===s))continue;o.push(C)}else w(n,!1),(!s.isConnected||!b.includes(s))&&w(l,!0)}if(!(!o.length&&!Object.keys(m).length)){for(let{oldValue:c,target:C}of o){let n=b.includes(C),l=C.classList,f=c?c.split(" "):[];if(n){if(C.isConnected)continue;for(let s of f)l.contains(s)||T(s)}else if(C.isConnected){l.forEach(s=>{f.includes(s)||g(s)});for(let s of f)l.contains(s)||T(s)}}for(let c in m){let C=m[c],n=(this.countBy[c]||0)+C;n===0?(delete this.countBy[c],this.delete(c)):(c in this.countBy||this.insert(c),this.countBy[c]=n)}}}),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 i=this.config.rules[r],u=this.matches[r],{symbol:a,native:k}=i;if(u&&u.test(e))return{origin:"match",config:i};if(a&&e.startsWith(a))return{origin:"symbol",config:i};if(k&&e.startsWith(k+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let u=this.match(i);if(u)return new le(i,u,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=G(se,e),this.cache(),!this.style)return;let r=Ee();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=ie.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=u=>{let a=this.ruleBy[u];if(!(!a||u in this.classesBy&&this.classesBy[u].some(k=>k in this.countBy))){if(r&&a.natives.length){let k=a.natives[0];for(let x=0;x<r.cssRules.length;x++)if(r.cssRules[x]===k.cssRule){for(let o=0;o<a.natives.length;o++)r.deleteRule(x);break}}this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[u],a.config.delete&&a.config.delete.call(a,u)}};if(e in this.classes){for(let u of this.classes[e])u in this.countBy||i(u);delete this.ruleBy[e]}else i(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 i,u=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:k,order:x,priority:m,hasWhere:o,className:b}=r,d=(h,g,T,w)=>{let c=u?1:0,C;g&&(c=h.findIndex(g)),T&&(C=h.findIndex(T)),c===-1&&(c=h.length),(C===void 0||C===-1)&&(C=h.length);let n=h.slice(c,C);for(let l=0;l<n.length;l++){let f=n[l];if(!(f.priority===-1||w&&w(f))&&(f.priority<m||f.priority===m&&(o&&!f.hasWhere||f.order>=x)))return c+l}return c+n.length};if(k){let h=this.rules.findIndex(g=>g.media);if(h!==-1){let g=k.features["max-width"],T=k.features["min-width"];if(g&&T){let w=g.value-T.value;for(let c=a;c>=h;c--){i=c;let C=this.rules[c],n=C.media,l=n.features["max-width"],f=n.features["min-width"];if(!l||!f){i++;break}let s=l.value-f.value;if(s===w){if(o!==C.hasWhere)continue;if(m!==-1){let y=[this.rules[c]];for(let R=c-1;R>=h;R--){let $=this.rules[R];if($.hasWhere!==o)break;let I=$.media,M=I.features["max-width"],X=I.features["min-width"];if(!M||!X||M.value-X.value!==s)break;y.unshift(this.rules[R])}i=d(this.rules,R=>R.media&&R.priority!==-1&&R.media.features["min-width"]&&R.media.features["max-width"])}break}else if(s>w)break}}else if(T)for(let w=h;w<=a;w++){i=w;let c=this.rules[w],C=c.media,n=C.features["max-width"],l=C.features["min-width"];if(n){if(l)break;continue}let f=l?.value;if(f===T.value){if(!o&&c.hasWhere){i++;continue}if(m!==-1)i=d(this.rules,s=>s.media,s=>s.media&&s.priority!==-1&&s.media.features["min-width"]&&s.media.features["max-width"],s=>!s.media.features["min-width"]&&!s.media.features["max-width"]);else for(let s=w;s<=a;s++){let y=this.rules[s],R=y.media,$=R.features["min-width"];if(!R.features["max-width"]){if(y.hasWhere!==o||$.value!==f||y.order>=x)break;i=s+1}}break}else{if(f>T.value)break;i++}}else if(g)for(let w=a;w>=h;w--){i=w;let c=this.rules[w],C=c.media,n=C.features["max-width"];if(C.features["min-width"])continue;let f=n?.value;if(!f||f>g.value){i++;break}else if(f===g.value){if(o&&!c.hasWhere)continue;if(m!==-1)i=d(this.rules,s=>s.media,s=>s.media&&s.priority!==-1&&s.media.features["min-width"]&&s.media.features["max-width"],s=>!s.media.features["min-width"]&&!s.media.features["max-width"]);else{let s=[this.rules[w]];for(let y=w-1;y>=h;y--){let R=this.rules[y],$=R.media,I=$.features["min-width"],M=$.features["max-width"];if(!I&&(!M||M.value!==f||R.hasWhere!==o))break;s.unshift(R)}for(let y=0;y<s.length;y++){let R=s[y];if(!R.media.features["min-width"]){if(R.order>=x)break;i=w-s.length+2+y}}}break}}}if(i===void 0)if(h===-1)i=a+1;else if(m!==-1)i=h+d(this.rules.slice(h),void 0,g=>g.media.features["max-width"]||g.media.features["min-width"]);else if(o){let g=h;for(;g<this.rules.length;g++){let T=this.rules[g];if(T.priority!==-1||!T.hasWhere||T.order>=x){i=g;break}}i===void 0&&(i=g)}else for(let g=h;g<=a;g++){i=g;let T=this.rules[g],w=T.media;if(T.priority!==-1||w.features["max-width"]||w.features["min-width"])break;if(T.hasWhere)i++;else if(T.order>=x)break}}else if(m===-1){let h=u?1:0;if(o)for(;h<this.rules.length;h++){let g=this.rules[h];if(!g.hasWhere||g.media||g.priority!==-1||g.order>=x){i=h;break}}else for(;h<this.rules.length;h++){let g=this.rules[h];if(g.media||!g.hasWhere&&(g.order>=x||g.priority!==-1)){i=h;break}}i===void 0&&(i=h)}else i=d(this.rules,void 0,h=>h.media);if(this.rules.splice(i,0,r),this.ruleBy[b]=r,this.style){let h=this.style.sheet,g=0,T=w=>{let c=this.rules[w];if(c){if(!c.natives.length)return T(w-1);let C=c.natives[c.natives.length-1].cssRule;for(let n=0;n<h.cssRules.length;n++)if(h.cssRules[n]===C){g=n+1;break}}};T(i-1);for(let w=0;w<r.natives.length;)try{let c=r.natives[w];h.insertRule(c.text,g),c.cssRule=h.cssRules[g++],w++}catch(c){console.error(c),r.natives.splice(w,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},ee=ie;ne(ee,"root"),ne(ee,"config",se),ne(ee,"instances",[]),ne(ee,"refresh",e=>{for(let r of ie.instances)r.refresh(e)});pe&&(window.MasterCSS=ee);var Ae={store:"theme",init:!0},Pe=typeof document<"u",Ie=typeof localStorage<"u",ue=class{constructor(e,r=Pe?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?G(Ae,e):Ae,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(Ie&&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,Ie&&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 ee(window.masterCSSConfig);new ue(window.masterCSSThemeSettings);})();
|
|
1
|
+
(()=>{var We=Object.defineProperty;var ze=(t,e,i)=>e in t?We(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ne=(t,e,i)=>(ze(t,typeof e!="symbol"?e+"":e,i),i);function ve(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function xe(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 ye(t){let e=[];return t.forEach(function(i,n){typeof i=="object"&&i!==null?Array.isArray(i)?e[n]=ye(i):ve(i)?e[n]=xe(i):e[n]=G({},i):e[n]=i}),e}function be(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},i,n;return t.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(a){if(n=be(e,a),i=be(c,a),i!==e)if(typeof i!="object"||i===null){e[a]=i;return}else if(Array.isArray(i)){e[a]=ye(i);return}else if(ve(i)){e[a]=xe(i);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[a]=G({},i);return}else{e[a]=G(n,i);return}})}),e}var re={"(":")","'":"'",'"':'"',"{":"}"};function ae(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),i=e.length,n=-1,c="",a,x=e.charCodeAt(0);if(i==1&&x==45)return"\\"+e;for(;++n<i;){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&&x==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 De={unit:"",order:0,separators:[","]},le=class{constructor(e,i={},n){this.className=e;this.meta=i;this.css=n;this.config=G(De,i.config);let{unit:c,order:a,colored:x,native:y,analyze:d,transform:l,declare:m,create:s}=this.config,{scope:h,important:C,functions:k}=n.config,{themeNames:w,colorNames:p,colorThemesMap:u,selectors:r,breakpoints:o,mediaQueries:b,themeAffectedClassesBy:v,globalValues:R}=n,j=v[e];s&&s.call(this,e);let I,Y,L,U,q;if(i.origin==="semantics"){let[W,O]=i.value;U=e.slice(W.length),I=O}else{let W;if(d)[W,L]=d.call(this,e);else if(i.origin==="match"){let $=e.indexOf(":");this.prefix=e.slice(0,$+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice($+1)}else i.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));q=[];let O=this,A=this.values,N=[","];this.config.separators.length&&N.push(...this.config.separators);let S="",g=0;(function $(f,M,B,T=void 0,E=[],X=[],z){let Q=T===void 0,F,J=D=>D==="'"||D==='"',ee=()=>F=S.length,Z=()=>{if(S){let D=S,P=Q?D:S.slice(F);if(S="",_="",A&&P in A&&!E.includes(P)){let H=g;g=0,$(A[P].toString(),M,void 0,T,[...E,P],X,z),g=H,Q||(S=S.slice(0,F)+S)}else if(R&&P in R&&!X.includes(P)){let H=g;g=0,$(R[P].toString(),M,void 0,T,E,[...X,P],z),g=H,Q||(S=S.slice(0,F)+S)}else if(Q){let H=!z&&O.analyzeUnitValue(P,M);q.push({value:H?.value??P,unit:H?.unit})}else{let H=!z&&O.analyzeUnitValue(P,M);S=H?D.slice(0,F)+H.value+H.unit:D}ee()}},K=J(B);ee();let _="";for(;g<f.length;g++){let D=f[g];if(D===B){if(K){S+=D;let P=0;for(let H=S.length-2;S[H]==="\\";H--)P++;if(P%2)continue}else Z(),S+=D;return}else if(!K&&D in re){let P=D==="("&&_&&k?.[_];P?.name&&(S=S.slice(0,S.length-_.length)+P.name,_=P.name),S+=D,g++;let H=re[D];$(f,P?.unit??M,H,_||T||"",E,X,z||!!P?.transform),P?.transform&&(S=S.slice(0,F+_.length+1)+P.transform.call(O,S.slice(F+_.length+1,-1))+S.slice(-1)),Q&&(J(H)?(q.push(S),S=""):Z()),_=""}else if((D==="|"||D===" ")&&B!=="}"&&(!K||T==="path"))Z(),Q||(S+=" ",F++);else{if(!K){if(D==="."){if(isNaN(+f[g+1]))break;f[g-1]==="-"&&(S+="0")}else if(N.includes(D)){Z(),Q?q.push(D):(S+=D,F++);continue}else if(Q&&(D==="#"&&(S||q.length&&f[g-1]!=="|"&&q[g-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;_+=D}S+=D}}T===void 0&&Z()})(W,c),U=W.slice(g)}this.order=typeof a=="function"?a.call(this,this.prefix):a,U[0]==="!"&&(this.important=!0,U=U.slice(1));let pe=W=>{let O=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((g,$)=>$%3?g:g.replace(/_/g," ")).join(""),A=[],N="",S=0;for(let g=0;g<O.length;g++){let $=O[g];if($==="\\"){N+=$+O[++g];continue}!S&&$===","?(A.push(N),N=""):(N+=$,S&&$===")"?S--:$==="("&&S++)}return N&&A.push(N),A};this.prefixSelectors=L?pe(L):[""];let de=U.split("@"),fe=de[0];if(fe){this.vendorSuffixSelectors={};let W=(g,$,f,M)=>{for(let[B,T]of $)if(B.test(g)){for(let E of T)W(g.replace(B,E),$,f,!0);return}M&&f.push(g)},O=[];""in r?W(fe,r[""],O,!0):O.push(fe);let A={};for(let[g,$]of Object.entries(r)){if(!g)continue;let f=[];for(let M of O)W(M,$,f,!1);f.length&&(A[g]=f)}let N=(g,$)=>{let f=$.reduce((M,B)=>(M.push(...pe(B)),M),[]);g in this.vendorSuffixSelectors?this.vendorSuffixSelectors[g].push(...f):this.vendorSuffixSelectors[g]=f},S=Object.keys(A);if(S.length)for(let g of S)N(g,A[g]);else N("",O);for(let g of Object.values(this.vendorSuffixSelectors))for(let $ of g){this.hasWhere!==!1&&(this.hasWhere=$.includes(":where("));let f=[":disabled",":active",":focus",":hover"];for(let M=0;M<f.length;M++)if($.includes(f[M])){(this.priority===-1||this.priority>M)&&(this.priority=M);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<de.length;W++){let O=de[W];if(O)if(w.includes(O))this.theme=O;else if(O==="rtl"||O==="ltr")this.direction=O;else{let A,N,S=O.indexOf("_");if(S!==-1)A=O.slice(0,S),N=O.slice(S);else{let g=O.indexOf("(");g!==-1&&(A=O.slice(0,g),N=O.slice(g))}if(!A){A="media";let g=[];this.media={token:O,features:{}};let $=O.split("&");for(let f of $)if(f==="all"||f==="print"||f==="screen"||f==="speech")this.media.type=f;else if(f==="\u{1F5A8}")this.media.type="print";else if(f==="landscape"||f==="portrait")g.push("(orientation:"+f+")");else if(f==="motion"||f==="reduced-motion")g.push("(prefers-reduced-motion:"+(f==="motion"?"no-preference":"reduce")+")");else if(b&&f in b)g.push(b[f]);else{let M={token:f},B="",T="",E=0;f.startsWith("<=")?(T="<=",B="max-width"):f.startsWith(">=")||o[f]?(T=">=",B="min-width"):f.startsWith(">")?(T=">",B="min-width",E=.02):f.startsWith("<")&&(T="<",B="max-width",E=-.02);let X=T?f.replace(T,""):f,z=o[X];switch(B){case"max-width":case"min-width":z?Object.assign(M,this.analyzeUnitValue(z.toString(),"px")):Object.assign(M,this.analyzeUnitValue(X,"px")),M.unit==="px"&&(M.value+=E),this.media.features[B]=M,g.push("("+B+":"+(M.value+M.unit)+")");break}}N="",this.media.type&&(N=this.media.type),g.length&&(N+=(N?" and ":"")+g.join(" and "))}N&&(this.at[A]=(A in this.at?this.at[A]+" and ":"")+N.replace(/_/g," "))}}let me=(W,O)=>{let A,N=($,f,M)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let T=this.prefixSelectors.map(z=>z+B),E=(z,Q)=>T.map(F=>(z?"."+z+" ":"")+(h?h+" ":"")+F).reduce((F,J)=>(F.push(M.reduce((ee,Z)=>(ee.push(J+"."+ae(Q)+Z),ee),[]).join(",")),F),[]).join(","),X=E(f,e)+(j?Object.entries(j).filter(([z])=>this.theme||!x||!f||!z||z===f).map(([z,Q])=>Q.reduce((F,J)=>F+","+E(this.theme??((x||Y)&&f||z),J),"")).join(""):"")+"{"+$+"}";for(let z of Object.keys(this.at).sort((Q,F)=>F==="supports"?-1:1))X="@"+z+" "+this.at[z]+"{"+X+"}";return X},S=[];if(q){let $=[this.theme??W,""],f,M=!1;for(let B of q)if(typeof B=="string")S.push(B);else{let T=B.value;if(B.unit)T+=B.unit;else if(x&&u&&p){let E=!1;T=T.replace(new RegExp(`(^|,| |\\()((?:${p.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(X,z,Q,F)=>{let J=u[Q];if(J){let ee,Z;for(let K of $)if(ee=J[K]){Z=K;break}if(ee){E=!O||Z===W,f||(f=E);let K=ee;if(F){let _=F.endsWith("%")?parseFloat(F)/100:+F;_=isNaN(_)?1:Math.min(Math.max(_,0),1),K+=Math.round(_*255).toString(16).toUpperCase().padStart(2,"0")}return z+K}else M=!0}return X})}S.push(T)}if(O&&(M||(f===void 0?W:!f)))return;if(A=S.reduce((B,T,E)=>B+T+(T===","||q[E+1]===","||E===q.length-1?"":" "),""),l&&(A=l.call(this,A,this.css.config)),x&&A==="current"&&(A="currentColor"),m){let B,T;if(q.length===1){let E=q[0];typeof E=="object"&&(B=E.value,T=E.unit)}I=m.call(this,T?B:A,T||"")}else I={[y]:A}}let g={};for(let $ in I){let f=(T,E)=>{let X=E+((this.important||C)&&!E.endsWith("!important")?"!important":"");T in g?g[T].push(X):g[T]=[X]},M=$+":",B=I[$];if(typeof B=="object"){Y=!0;for(let T in B)f(T,M+B[T])}else f(W,M+B.toString())}for(let $ of Object.values(this.vendorSuffixSelectors))for(let f in g)this.natives.push({text:N(g[f].join(";"),f,$),theme:f})};if(this.theme)me(this.theme,!1);else if(x)for(let W of w)me(W,!0);else me("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,i){return Number.isNaN(+e)?e:e/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(e,i){let n=i??this.config.unit;if(n){let c="",a=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(a)if(e.includes("/")){let[x,y]=e.split("/");return{value:+x/+y*100+"%",unit:c}}else{let x=+a[1];return c=a[3]||"",c||((n==="rem"||n==="em")&&(x=x/this.css.config.rootSize),c=n||""),{value:x,unit:c}}}}};var ke={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function oe(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 ce(t,e,i){return((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}function V(t){typeof t=="string"&&(t={"":t});let e=""in t,i=!1;for(let n in t)if(n&&+n>=100){i=!0;break}if(!i&&(!e||Object.keys(t).length>1)){let n=0,c="0"in t?oe(t[0]):[0,0,0],a,x,y=[],d=()=>{let l=a-n,m=x.map((s,h)=>(s-c[h])/l);for(let s of y){let h=s-n,C=c.map((k,w)=>Math.round(k+m[w]*h));t[s]="#"+ce.call(this,...C)}};for(let l=1;l<100;l++)l in t?(y.length?(a=l,x=oe(t[l]),d(),y.length=0,c=x):c=oe(t[l]),n=l):y.push(l);y.length&&(a=100,x="100"in t?oe(t[100]):[255,255,255],d())}return e||(t[""]=t[i?"500":"50"]),t}var we={black:"#000000",white:"#ffffff",slate:V({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:V({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:V({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:V({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:V({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:V({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:V({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:V({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:V({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:V({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:V({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:V({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:V({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:V({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:V({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:V({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:V({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:V({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:V({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:V({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Se="";var Ce={"::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 Re={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"}};var $e=["dark","light"];var Ne={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},i=(l,m)=>{let s=m.indexOf(":");if(s!==-1){l in e||(e[l]={});let h=e[l],C=m.slice(0,s);C in h||(h[C]=m.slice(s+1))}},n=l=>{let m=(s,h)=>{let C=h.slice(ae(l.className).length).match(/\{(.*)\}/)[1].split(";");for(let k of C)i(s,k)};if(this.theme){let s=l.natives.find(h=>h.theme===this.theme)??l.natives.find(h=>!h.theme);s&&m(this.theme,s.text)}else for(let s of l.natives)m(s.theme,s.text)},c=[],a="",x=()=>{a&&(c.push(a.replace(/ /g,"")),a="")},y=1;(function l(m){for(;y<t.length;y++){let s=t[y];if(!m){if(s===";"){x();continue}if(s==="}")break}if(a+=s,m===s){if(m==="'"||m==='"'){let h=0;for(let C=a.length-2;a[C]==="\\";C--)h++;if(h%2)continue}break}else s in re&&m!=="'"&&m!=='"'&&(y++,l(re[s]))}})(void 0),x();for(let l of c){let m=this.css.create(l);if(Array.isArray(m))for(let s of m)n(s);else m?n(m):i(this.theme??"",l)}let d={};for(let l in e)for(let[m,s]of Object.entries(e[l]))m in d?d[m][l]=s:d[m]={[l]:s};return d}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,i]=t.split(" x ");return{width:e,height:i}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"min-width":e,"min-height":i}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"max-width":e,"max-height":i}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0},overflowY:{native:!0},overflow:{native:!0,order:-1},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 Te.call(this,t)},delete(t){return Be.call(this,t)},insert(){return Me.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Te.call(this,t)},delete(t){return Be.call(this,t)},insert(){return Me.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)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},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:{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}}}},je=Ne;function Te(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(i=>i in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Be(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let i=this.css.keyframes[e];if(!--i.count){let n=t.natives.indexOf(i.native);this.css.style.sheet.deleteRule(n),t.natives.splice(n,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Me(){if(this.keyframeNames){let{config:t,keyframes:e,style:i,rules:n}=this.css,c=i?.sheet;for(let a of this.keyframeNames)if(a in e)e[a].count++;else{let x={text:`@keyframes ${a}{`+Object.entries(t.keyframes[a]).map(([d,l])=>`${d}{${Object.entries(l).map(([m,s])=>m+":"+s).join(";")}}`).join("")+"}",theme:""},y;if(Object.keys(e).length?(y=n[0]).natives.push(x):n.splice(0,0,y={natives:[x],get text(){return this.natives.map(d=>d.text).join("")}}),c){let d;for(let l=0;l<c.cssRules.length;l++){let m=c.cssRules[l];if(m.constructor.name!=="CSSKeyframesRule")break;if(m.name===a){d=m;break}}if(d)x.cssRule=d;else{let l=y.natives.length-1;c.insertRule(x.text,l),x.cssRule=c.cssRules[l]}}e[a]={native:x,count: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 he={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=d=>d==="+"||d==="-"||d==="*"||d==="/",i="",n,c="",a=!1,x=!1,y=(d,l="",m="")=>{if(n===2&&!x){let s=this.analyzeUnitValue(c,he.calc.unit);s&&(c=s.value+s.unit)}i+=c+l+d+m,n=null,x=!1,c=""};for(let d=0;d<t.length;d++){let l=t[d];if(l==="("||l===")")a=l===")",y(l);else if(l===",")y(l,""," ");else{switch(n){case 1:break;case 2:if(e(l)){y(l," "," ");continue}else/[0-9]/.test(l)||(x=!0);break;default:a&&(i+=" "),isNaN(+l)?e(l)||(n=1):n=2;break}n?c+=l:i+=l}}return y(""),i}},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 se={breakpoints:ke,colors:we,rootSize:16,scope:Se,selectors:Ce,semantics:Re,themes:$e,rules:je,override:!1,observe:!0,important:!1,functions:he,keyframes:Oe};var Ie=[",",".","#","[","!","*",">","+","~",":","@"];var ge=typeof window<"u",Le=()=>{let t=document.createElement("style");return t.id="master",t},ie=class{constructor(e=se){this.config=e;e?.override||(this.config=G(se,e),"keyframes"in e&&Object.assign(this.config.keyframes,e.keyframes)),this.cache(),ge&&this.config.observe&&this.observe(document),ie.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:i,selectors:n,themes:c,colors:a,values:x,breakpoints:y,mediaQueries:d,rules:l}=this.config;function m(r){return r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(r,o,b="",v={}){let R=L=>L?(b?b+"-":"")+L:b,j=Object.entries(r),I=[],Y=[];for(let L of j){let U=L[1];(typeof U=="object"&&!Array.isArray(U)?I:Y).push(L)}for(let[L,U]of I)s(U,o,R(L),v);if(o&&b)Y.length&&(v[b]=Y.reduce((L,[U,q])=>(L[U]=q,L),{}));else for(let[L,U]of Y)v[R(L)]=U;return v}if(e)for(let[r,o]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+m(r)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[r,o]]);if(n)for(let[r,o]of Object.entries(s(n,!1))){let b=new RegExp(m(r)+"(?![a-z-])");for(let v of Array.isArray(o)?o:[o]){let R=v.match(/^::-[a-z]+-/m)?.[0]??"",j=this.selectors[R];j||(j=this.selectors[R]=[]);let I=j.find(([Y])=>Y===b);I||(I=[b,[]],j.push(I)),I[1].push(v)}}x&&(this.globalValues=s(x,!1)),y&&(this.breakpoints=s(y,!1)),d&&(this.mediaQueries=s(d,!1));let h=i?s(i,!1):{},C=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:r}])=>r).reduce((r,[o,{classes:b}])=>(r[o]=s(b,!1),r),{}):{},k=[...Object.keys(h),...Object.entries(C).flatMap(([r,o])=>Object.keys(o))],w=r=>{if(r in this.classes)return;let o=this.classes[r]=[],b=(v,R)=>{if(!R)return;let j=Array.isArray(R)?R:R.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let I of j){let Y=L=>{L in this.themeAffectedClassesBy?v in this.themeAffectedClassesBy[L]?this.themeAffectedClassesBy[L][v].push(r):this.themeAffectedClassesBy[L][v]=[r]:this.themeAffectedClassesBy[L]={[v]:[r]},o.includes(L)||o.push(L)};if(k.includes(I)){w(I);for(let L of this.classes[I])Y(L)}else Y(I)}};b("",h?.[r]);for(let[v,R]of Object.entries(C))b(v,R?.[r])};for(let r of k)w(r);for(let r in this.themeAffectedClassesBy){let o=this.classesBy[r]=[];for(let b of Object.values(this.themeAffectedClassesBy[r]))for(let v of b)o.includes(v)||o.push(v)}let p=(r,o)=>{if(!o)return;let b=s(o,!0);for(let[v,R]of Object.entries(b)){let j=typeof R=="string"?{"":R}:R;for(let[I,Y]of Object.entries(j)){let L=v+(I?"-"+I:"");L in this.colorThemesMap?this.colorThemesMap[L][r]=Y:this.colorThemesMap[L]={[r]:Y}}}for(let v in o)this.colorNames.includes(v)||this.colorNames.push(v)};if(p("",a),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let r in c){let o=c[r];p(r,o.colors),this.themeNames.push(r)}let u=r=>{for(let[o,b]of Object.entries(this.colorThemesMap))for(let[v,R]of Object.entries(b))R.startsWith("#")||r(o,b,v,R)};if(u((r,o,b,v)=>{let R=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(v);if(R){let j="#"+ce(+R[1],+R[2],+R[3]);R[4]&&(j+=Math.round(255*+R[4]).toString(16)),o[b]=j}}),u((r,o,b,v)=>{let[R,j]=v.split("/"),I=this.colorThemesMap[R];if(I){let Y=(b?I[b]:void 0)??I[""];o[b]=j?Y.slice(0,7)+Math.round(255*+j).toString(16):Y}else console.warn(`\`${v}\` doesn't exist in the extended config \`.colors\``),delete o[b],Object.keys(o).length||delete this.colorThemesMap[r]}),l)for(let r in l){let o=l[r],{native:b,values:v,colored:R}=o,j=o.match;if(o.id=r,o.native=b===!0?r.replace(/(?!^)[A-Z]/g,I=>"-"+I).toLowerCase():void 0,v&&(this.values[r]=s(v,!1)),j){let I=Object.keys(this.values[r]??{});j.includes("$values")&&(j=I.length?j.replace(/\$values/,I.join("|")):j.replace(/(?:\|)?\$values/,"")),R&&j.includes("$colors")&&(j=this.colorNames.length?j.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):j.replace(/(?:\|)?\$colors/,"")),this.matches[r]=new RegExp(j)}}}observe(e,i={subtree:!0,childList:!0}){if(this.root!==e){if(ge&&e){this.root=e;let n=e===document;n&&(ie.root=this),this.host=n?document.documentElement:root.host;let c=n?document.head:e,a=n?document.styleSheets:e.styleSheets;for(let y of a){let{ownerNode:d}=y;if(d.id==="master"){this.style=d;break}}if(this.style)for(let y=0;y<this.style.sheet.cssRules.length;y++){let d=this.style.sheet.cssRules[y];if(d.constructor.name==="CSSKeyframesRule")continue;let l=s=>{if(s.selectorText){let C=s.selectorText.split(", ")[0].split(" ");for(let k=0;k<C.length;k++){let w=C[k];if(w[0]==="."){let p=w.slice(1),u="";for(let r=0;r<p.length;r++){let o=p[r],b=p[r+1];if(o==="\\"){if(r++,b!=="\\"){u+=b;continue}}else if(Ie.includes(o))break;u+=o}if(!(u in this.ruleBy)&&!(u in this.classes)){let r=this.create(u)[0];if(r)return r}}}}else if(s.cssRules)for(let h=0;h<s.cssRules.length;h++){let C=l(s.cssRules[h]);if(C)return C}},m=l(d);if(m){this.rules.push(m),this.ruleBy[m.className]=m;for(let s=0;s<m.natives.length;s++)m.natives[s].cssRule=this.style.sheet.cssRules[y+s];y+=m.natives.length-1,m.config.insert?.call(m)}}else this.style=Le(),c.append(this.style);let x=y=>{y.forEach(d=>{d in this.countBy?this.countBy[d]++:(this.countBy[d]=1,this.insert(d))})};x(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(y=>x(y.classList)),this.observer=new MutationObserver(y=>{let d={},l=[],m=[],s=[],h=(p,u)=>{u?p.classList.forEach(k):p.classList.forEach(C);let r=p.children;for(let o=0;o<r.length;o++){let b=r[o];b.classList&&(m.push(b),h(b,u))}},C=p=>{p in d?d[p]++:d[p]=1},k=p=>{p in d?d[p]--:p in this.countBy&&(d[p]=-1)},w=(p,u)=>{for(let r=0;r<p.length;r++){let o=p[r];o.classList&&!m.includes(o)&&!s.includes(o)&&(o.isConnected!==u?(m.push(o),h(o,u)):s.push(o))}};for(let p=0;p<y.length;p++){let u=y[p],{addedNodes:r,removedNodes:o,type:b,target:v}=u;if(b==="attributes"){if(l.find(R=>R.target===v))continue;l.push(u)}else w(r,!1),(!v.isConnected||!m.includes(v))&&w(o,!0)}if(!(!l.length&&!Object.keys(d).length)){for(let{oldValue:p,target:u}of l){let r=m.includes(u),o=u.classList,b=p?p.split(" "):[];if(r){if(u.isConnected)continue;for(let v of b)o.contains(v)||k(v)}else if(u.isConnected){o.forEach(v=>{b.includes(v)||C(v)});for(let v of b)o.contains(v)||k(v)}}for(let p in d){let u=d[p],r=(this.countBy[p]||0)+u;r===0?(delete this.countBy[p],this.delete(p)):(p in this.countBy||this.insert(p),this.countBy[p]=r)}}}),this.observer.observe(e,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let i=e.cssRules.length-1;i>=0;i--)e.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(e){for(let i in this.config.rules){let n=this.config.rules[i],c=this.matches[i],{symbol:a,native:x}=n;if(c&&c.test(e))return{origin:"match",config:n};if(a&&e.startsWith(a))return{origin:"symbol",config:n};if(x&&e.startsWith(x+":"))return{origin:"match",config:n}}for(let i of this.semantics)if(e.match(i[0]))return{origin:"semantics",value:i[1]}}create(e){let i=n=>{if(n in this.ruleBy)return this.ruleBy[n];let c=this.match(n);if(c)return new le(n,c,this)};return(e in this.classes?this.classes[e].map(n=>i(n)):[i(e)]).filter(n=>n&&n.text)}refresh(e){if(e?.override?this.config=e:this.config=G(se,e),this.cache(),!this.style)return;let i=Le();this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let n in this.countBy)this.insert(n)}destroy(){let e=ie.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let i=this.style?.sheet,n=c=>{let a=this.ruleBy[c];if(!(!a||c in this.classesBy&&this.classesBy[c].some(x=>x in this.countBy))){if(i&&a.natives.length){let x=a.natives[0];for(let y=0;y<i.cssRules.length;y++)if(i.cssRules[y]===x.cssRule){for(let l=0;l<a.natives.length;l++)i.deleteRule(y);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 i=this.create(e);return i.length?(this.insertRules(i),!0):!1}insertRules(e){for(let i of e){if(this.ruleBy[i.className])continue;let n,c=Object.keys(this.keyframes).length,a=this.rules.length-1,{media:x,order:y,priority:d,hasWhere:l,className:m}=i,s=(k,w,p)=>{let u=k;for(;u<=a;u++){let r=this.rules[u];if(w?.(r))return p?-1:u-1;if(p?.(r))return u}return p?-1:u-1},h,C;if(x){let k=this.rules.findIndex(w=>w.media);if(k===-1)n=a+1;else{let{"max-width":w,"min-width":p}=x.features;if(w||p){let u=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(u===-1)n=a+1;else if(w&&p){if(d===-1?(h=s(u,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),C=s(u,r=>r.priority!==-1)):(h=s(u,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),C=a),h!==-1){let r=w.value-p.value,o=C,b=h;for(h=void 0;o>=b;o--){let{"max-width":v,"min-width":R}=this.rules[o].media.features,j=v.value-R.value;if(j<r)C=o-1;else if(j===r)h=o;else break}}if(h!==-1){let r=w.value-p.value;for(let o=C;o>=h;o--){let{"max-width":b,"min-width":v}=this.rules[o].media.features,R=b.value-v.value;if(R<r)C=o-1;else if(R>r){h=o+1;break}}}}else if(p){if(d===-1?(h=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),C=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(h=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),C=s(u,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),h!==-1)for(let r=C;r>=h;r--){let o=this.rules[r].media.features["min-width"].value;if(o>p.value)C=r-1;else if(o<p.value){h=r+1;break}}}else if(d===-1?(h=s(u,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),C=s(u,r=>r.media.features["min-width"]||r.priority!==-1)):(h=s(u,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),C=s(u,r=>r.media.features["min-width"]&&r.priority!==-1)),h!==-1)for(let r=C;r>=h;r--){let o=this.rules[r].media.features["max-width"].value;if(o<w.value)C=r-1;else if(o>w.value){h=r+1;break}}}else d===-1?(h=k,C=s(k,u=>u.media?.features["max-width"]||u.media?.features["min-width"]||u.priority!==-1)):(h=s(k,u=>u.media?.features["max-width"]||u.media?.features["min-width"],u=>u.priority!==-1),C=s(k,u=>u.media?.features["max-width"]||u.media?.features["min-width"]))}}else{let k=c?1:0;d===-1?(h=k,C=s(k,w=>w.media||w.priority!==-1)):(h=s(k,w=>w.media,w=>w.priority!==-1),C=s(k,w=>w.media))}if(n===void 0)if(h===-1)n=C+1;else{if(d===-1)for(let k=h;k<=C;k++){let w=this.rules[k];if(!(!l&&w.hasWhere)&&(l&&!w.hasWhere||w.order>=y)){n=k;break}}else for(let k=h;k<=C;k++){let w=this.rules[k];if(!(!l&&w.hasWhere)){if(l&&!w.hasWhere){n=k;break}if(w.priority<d){n=k;break}else if(w.priority===d){if(w.order>=y){n=k;break}}else n=k+1}}n===void 0&&(n=C+1)}if(this.rules.splice(n,0,i),this.ruleBy[m]=i,this.style){let k=this.style.sheet,w=0,p=u=>{let r=this.rules[u];if(r){if(!r.natives.length)return p(u-1);let o=r.natives[r.natives.length-1].cssRule;for(let b=0;b<k.cssRules.length;b++)if(k.cssRules[b]===o){w=b+1;break}}};p(n-1);for(let u=0;u<i.natives.length;)try{let r=i.natives[u];k.insertRule(r.text,w),r.cssRule=k.cssRules[w++],u++}catch(r){console.error(r),i.natives.splice(u,1)}}i.config.insert?.call(i)}}get text(){return this.rules.map(e=>e.text).join("")}},te=ie;ne(te,"root"),ne(te,"config",se),ne(te,"instances",[]),ne(te,"refresh",e=>{for(let i of ie.instances)i.refresh(e)});ge&&(window.MasterCSS=te);var Ae={store:"theme",init:!0},Fe=typeof document<"u",Ee=typeof localStorage<"u",ue=class{constructor(e,i=Fe?document.documentElement:null){this.settings=e;this.host=i;this.settings=e?G(Ae,e):Ae,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,i=this.storage;i&&(e=i),this.value=e}get storage(){let{store:e}=this.settings;if(Ee&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.n(),this.current=e)}get value(){return this.r}set current(e){let i=this.t;this.t=e,this.host&&i!==e&&(i&&this.host.classList.remove(i),e&&!this.host.classList.contains(e)&&(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,i={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,Ee&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),i.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}n(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.n()}};new te(window.masterCSSConfig);new ue(window.masterCSSThemeSettings);})();
|