@master/css 2.0.0-beta.159 → 2.0.0-beta.160

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.
Files changed (122) hide show
  1. package/README.md +30 -18
  2. package/dist/bin/index.bundle.js +45 -0
  3. package/dist/config/index.d.ts +4 -8
  4. package/dist/config/rules.d.ts +2 -2
  5. package/dist/constants/config-esm-text.d.ts +1 -1
  6. package/dist/constants/config-ts-text.d.ts +1 -0
  7. package/dist/core.d.ts +15 -6
  8. package/dist/functions/extract-classes-from-html.d.ts +5 -0
  9. package/dist/functions/fill-color-scale.d.ts +1 -0
  10. package/dist/functions/generate-from-classes.d.ts +8 -0
  11. package/dist/functions/generate-from-html.d.ts +8 -0
  12. package/dist/functions/init-runtime.d.ts +9 -0
  13. package/dist/functions/render-html.d.ts +8 -0
  14. package/dist/index.browser.bundle.js +1 -0
  15. package/dist/index.browser.d.ts +1 -1
  16. package/dist/index.bundle.js +44 -0
  17. package/dist/index.bundle.mjs +44 -0
  18. package/dist/index.d.ts +11 -5
  19. package/dist/rule.d.ts +1 -3
  20. package/package.json +1 -1
  21. package/dist/cjs/bin/index.js +0 -2
  22. package/dist/cjs/config/breakpoints.js +0 -1
  23. package/dist/cjs/config/colors.js +0 -1
  24. package/dist/cjs/config/functions.js +0 -1
  25. package/dist/cjs/config/important.js +0 -1
  26. package/dist/cjs/config/index.js +0 -1
  27. package/dist/cjs/config/keyframes.js +0 -1
  28. package/dist/cjs/config/observe.js +0 -1
  29. package/dist/cjs/config/override.js +0 -1
  30. package/dist/cjs/config/root-size.js +0 -1
  31. package/dist/cjs/config/rules.js +0 -1
  32. package/dist/cjs/config/scope.js +0 -1
  33. package/dist/cjs/config/selectors.js +0 -1
  34. package/dist/cjs/config/semantics.js +0 -1
  35. package/dist/cjs/config/themeDriver.js +0 -1
  36. package/dist/cjs/config/themes.js +0 -1
  37. package/dist/cjs/constants/config-esm-text.js +0 -17
  38. package/dist/cjs/constants/config-text.js +0 -15
  39. package/dist/cjs/constants/index.js +0 -1
  40. package/dist/cjs/constants/selector-symbols.js +0 -1
  41. package/dist/cjs/constants/start-symbol.js +0 -1
  42. package/dist/cjs/core.js +0 -1
  43. package/dist/cjs/index.browser.js +0 -1
  44. package/dist/cjs/index.js +0 -1
  45. package/dist/cjs/methods/extract-classes-from-html.js +0 -1
  46. package/dist/cjs/methods/fill-color-scale.js +0 -1
  47. package/dist/cjs/methods/index.js +0 -1
  48. package/dist/cjs/methods/render-from-html.js +0 -1
  49. package/dist/cjs/methods/render-into-html.js +0 -1
  50. package/dist/cjs/methods/render-rules-from-html.js +0 -1
  51. package/dist/cjs/methods/render-rules.js +0 -1
  52. package/dist/cjs/methods/render.js +0 -1
  53. package/dist/cjs/polyfills/css-escape.js +0 -1
  54. package/dist/cjs/rule.js +0 -1
  55. package/dist/cjs/utils/concat-arrays.js +0 -1
  56. package/dist/cjs/utils/css-escape.js +0 -1
  57. package/dist/cjs/utils/delay.js +0 -1
  58. package/dist/cjs/utils/get-type.js +0 -1
  59. package/dist/cjs/utils/hex-to-rgb.js +0 -1
  60. package/dist/cjs/utils/is-plain-object.js +0 -1
  61. package/dist/cjs/utils/is-symbol.js +0 -1
  62. package/dist/cjs/utils/parse-rule-value.js +0 -1
  63. package/dist/cjs/utils/rgb-to-hex.js +0 -1
  64. package/dist/config/observe.d.ts +0 -1
  65. package/dist/config/themes.d.ts +0 -1
  66. package/dist/constants/index.d.ts +0 -4
  67. package/dist/esm/bin/index.mjs +0 -2
  68. package/dist/esm/config/breakpoints.mjs +0 -1
  69. package/dist/esm/config/colors.mjs +0 -1
  70. package/dist/esm/config/functions.mjs +0 -1
  71. package/dist/esm/config/important.mjs +0 -1
  72. package/dist/esm/config/index.mjs +0 -1
  73. package/dist/esm/config/keyframes.mjs +0 -1
  74. package/dist/esm/config/observe.mjs +0 -1
  75. package/dist/esm/config/override.mjs +0 -1
  76. package/dist/esm/config/root-size.mjs +0 -1
  77. package/dist/esm/config/rules.mjs +0 -1
  78. package/dist/esm/config/scope.mjs +0 -1
  79. package/dist/esm/config/selectors.mjs +0 -1
  80. package/dist/esm/config/semantics.mjs +0 -1
  81. package/dist/esm/config/themeDriver.mjs +0 -1
  82. package/dist/esm/config/themes.mjs +0 -1
  83. package/dist/esm/constants/config-esm-text.mjs +0 -17
  84. package/dist/esm/constants/config-text.mjs +0 -15
  85. package/dist/esm/constants/index.mjs +0 -1
  86. package/dist/esm/constants/selector-symbols.mjs +0 -1
  87. package/dist/esm/constants/start-symbol.mjs +0 -1
  88. package/dist/esm/core.mjs +0 -1
  89. package/dist/esm/index.browser.mjs +0 -1
  90. package/dist/esm/index.mjs +0 -1
  91. package/dist/esm/methods/extract-classes-from-html.mjs +0 -1
  92. package/dist/esm/methods/fill-color-scale.mjs +0 -1
  93. package/dist/esm/methods/index.mjs +0 -1
  94. package/dist/esm/methods/render-from-html.mjs +0 -1
  95. package/dist/esm/methods/render-into-html.mjs +0 -1
  96. package/dist/esm/methods/render-rules-from-html.mjs +0 -1
  97. package/dist/esm/methods/render-rules.mjs +0 -1
  98. package/dist/esm/methods/render.mjs +0 -1
  99. package/dist/esm/polyfills/css-escape.mjs +0 -1
  100. package/dist/esm/rule.mjs +0 -1
  101. package/dist/esm/utils/concat-arrays.mjs +0 -1
  102. package/dist/esm/utils/css-escape.mjs +0 -1
  103. package/dist/esm/utils/delay.mjs +0 -1
  104. package/dist/esm/utils/get-type.mjs +0 -1
  105. package/dist/esm/utils/hex-to-rgb.mjs +0 -1
  106. package/dist/esm/utils/is-plain-object.mjs +0 -1
  107. package/dist/esm/utils/is-symbol.mjs +0 -1
  108. package/dist/esm/utils/parse-rule-value.mjs +0 -1
  109. package/dist/esm/utils/rgb-to-hex.mjs +0 -1
  110. package/dist/index.browser.js +0 -1
  111. package/dist/index.js +0 -31
  112. package/dist/index.mjs +0 -31
  113. package/dist/methods/extract-classes-from-html.d.ts +0 -1
  114. package/dist/methods/fill-color-scale.d.ts +0 -1
  115. package/dist/methods/index.d.ts +0 -7
  116. package/dist/methods/render-from-html.d.ts +0 -2
  117. package/dist/methods/render-into-html.d.ts +0 -2
  118. package/dist/methods/render-rules-from-html.d.ts +0 -3
  119. package/dist/methods/render-rules.d.ts +0 -3
  120. package/dist/methods/render.d.ts +0 -2
  121. package/dist/utils/css-escape.d.ts +0 -1
  122. package/dist/utils/delay.d.ts +0 -1
@@ -0,0 +1,44 @@
1
+ var pe=Object.defineProperty;var Ae=Object.getOwnPropertyDescriptor;var Ye=Object.getOwnPropertyNames;var Fe=Object.prototype.hasOwnProperty;var Ve=(t,e)=>{for(var i in e)pe(t,i,{get:e[i],enumerable:!0})},Xe=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of Ye(e))!Fe.call(t,c)&&c!==i&&pe(t,c,{get:()=>e[c],enumerable:!(o=Ae(e,c))||o.enumerable});return t};var _e=t=>Xe(pe({},"__esModule",{value:!0}),t);var qe={};Ve(qe,{CONFIG_ESM_TEXT:()=>Pe,CONFIG_TEXT:()=>ze,CONFIG_TS_TEXT:()=>De,MasterCSS:()=>K,Rule:()=>ie,breakpoints:()=>be,colors:()=>ve,config:()=>ne,default:()=>K,extend:()=>q,extractClassesFromHTML:()=>le,fillColorScale:()=>z,functions:()=>Te,generateFromClasses:()=>ce,generateFromHTML:()=>oe,important:()=>Re,initRuntime:()=>Be,keyframes:()=>$e,override:()=>Ce,renderHTML:()=>Oe,rootSize:()=>xe,rules:()=>ke,scope:()=>ye,selectors:()=>we,semantics:()=>Se,themeDriver:()=>Me});module.exports=_e(qe);function Ie(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Le(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 Ne(t){let e=[];return t.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?e[o]=Ne(i):Ie(i)?e[o]=Le(i):e[o]=q({},i):e[o]=i}),e}function Ee(t,e){return e==="__proto__"?void 0:t[e]}function q(...t){let e={},i,o;return t.forEach(function(c){typeof c!="object"||c===null||Array.isArray(c)||Object.keys(c).forEach(function(s){if(o=Ee(e,s),i=Ee(c,s),i!==e)if(typeof i!="object"||i===null){e[s]=i;return}else if(Array.isArray(i)){e[s]=Ne(i);return}else if(Ie(i)){e[s]=Le(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){e[s]=q({},i);return}else{e[s]=q(o,i);return}})}),e}var re={"(":")","'":"'",'"':'"',"{":"}"};function se(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,o=-1,c="",s,x=e.charCodeAt(0);if(i==1&&x==45)return"\\"+e;for(;++o<i;){if(s=e.charCodeAt(o),s==0){c+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&x==45){c+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){c+=e.charAt(o);continue}c+="\\"+e.charAt(o)}return c}var He={unit:"",order:0,separators:[","]},Qe=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ie=class{constructor(e,i={},o){this.className=e;this.meta=i;this.css=o;this.config=q(He,i.config);let{unit:c,order:s,colored:x,native:m,analyze:S,transform:b,declare:g,create:l}=this.config,{scope:d,important:f,functions:h,themeDriver:p,keyframes:u}=o.config,{themeNames:n,colorNames:r,colorThemesMap:a,selectors:v,breakpoints:k,mediaQueries:$,classesBy:O,globalValues:F}=o,_=O[e];l&&l.call(this,e);let Q,ue,fe,te,U;if(i.origin==="semantics"){let[N,E]=i.value;te=e.slice(N.length),Q=E}else{let N;if(S)[N,fe]=S.call(this,e);else{let B=e.indexOf(":");this.prefix=e.slice(0,B+1),N=e.slice(B+1)}U=[];let E=this,I=this.values,D=[","];this.config.separators.length&&D.push(...this.config.separators);let C="",y=0;(function B(R,w,T,M=void 0,j=[],V=[],L){let A=M===void 0,Y,ee=W=>W==="'"||W==='"',J=()=>Y=C.length,G=()=>{if(C){let W=C,P=A?W:C.slice(Y);if(C="",H="",I&&P in I&&!j.includes(P)){let X=y;y=0,B(I[P].toString(),w,void 0,M,[...j,P],V,L),y=X,A||(C=C.slice(0,Y)+C)}else if(F&&P in F&&!V.includes(P)){let X=y;y=0,B(F[P].toString(),w,void 0,M,j,[...V,P],L),y=X,A||(C=C.slice(0,Y)+C)}else if(A){let X=!L&&E.analyzeUnitValue(P,w);U.push({value:X?.value??P,unit:X?.unit})}else{let X=!L&&E.analyzeUnitValue(P,w);C=X?W.slice(0,Y)+X.value+X.unit:W}J()}},Z=ee(T);J();let H="";for(;y<R.length;y++){let W=R[y];if(W===T){if(Z){C+=W;let P=0;for(let X=C.length-2;C[X]==="\\";X--)P++;if(P%2)continue}else G(),C+=W;return}else if(!Z&&W in re){let P=W==="("&&H&&h?.[H];P?.name&&(C=C.slice(0,C.length-H.length)+P.name,H=P.name),C+=W,y++;let X=re[W];B(R,P?.unit??w,X,H||M||"",j,V,L||!!P?.transform),P?.transform&&(C=C.slice(0,Y+H.length+1)+P.transform.call(E,C.slice(Y+H.length+1,-1))+C.slice(-1)),A&&(ee(X)?(U.push(C),C=""):G()),H=""}else if((W==="|"||W===" ")&&T!=="}"&&(!Z||M==="path"))G(),A||(C+=" ",Y++);else{if(!Z){if(W==="."){if(isNaN(+R[y+1]))break;R[y-1]==="-"&&(C+="0")}else if(D.includes(W)){G(),A?U.push(W):(C+=W,Y++);continue}else if(A&&(W==="#"&&(C||U.length&&R[y-1]!=="|"&&U[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(W)))break;H+=W}C+=W}}M===void 0&&G()})(N,c),te=N.slice(y)}this.order=typeof s=="function"?s.call(this,this.prefix):s,te[0]==="!"&&(this.important=!0,te=te.slice(1));let je=N=>{let E=N.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,B)=>B%3?y:y.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),I=[],D="",C=0;for(let y=0;y<E.length;y++){let B=E[y];if(B==="\\"){D+=B+E[++y];continue}!C&&B===","?(I.push(D),D=""):(D+=B,C&&B===")"?C--:B==="("&&C++)}return D&&I.push(D),I};this.prefixSelectors=fe?je(fe):[""];let me=te.split("@"),he=me[0];if(he){this.vendorSuffixSelectors={};let N=(y,B,R,w)=>{for(let[T,M]of B)if(T.test(y)){for(let j of M)N(y.replace(T,j),B,R,!0);return}w&&R.push(y)},E=[];""in v?N(he,v[""],E,!0):E.push(he);let I={};for(let[y,B]of Object.entries(v)){if(!y)continue;let R=[];for(let w of E)N(w,B,R,!1);R.length&&(I[y]=R)}let D=(y,B)=>{let R=B.reduce((w,T)=>(w.push(...je(T)),w),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...R):this.vendorSuffixSelectors[y]=R},C=Object.keys(I);if(C.length)for(let y of C)D(y,I[y]);else D("",E);for(let y of Object.values(this.vendorSuffixSelectors))for(let B of y){this.hasWhere!==!1&&(this.hasWhere=B.includes(":where("));let R=[":disabled",":active",":focus",":hover"];for(let w=0;w<R.length;w++)if(B.includes(R[w])){(this.priority===-1||this.priority>w)&&(this.priority=w);break}}}else this.vendorSuffixSelectors={"":[""]};for(let N=1;N<me.length;N++){let E=me[N];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let I,D,C=Qe.exec(E);if(C)I=C[1],D=E.slice(I.length);else{this.media={token:E,features:{}};let y=[],B=w=>{if(w==="all"||w==="print"||w==="screen"||w==="speech")this.media.type=w;else if(w==="\u{1F5A8}")this.media.type="print";else if(w==="landscape"||w==="portrait")y.push("(orientation:"+w+")");else if(w==="motion"||w==="reduced-motion")y.push("(prefers-reduced-motion:"+(w==="motion"?"no-preference":"reduce")+")");else if($&&w in $)y.push($[w]);else{let T={token:w},M="",j="",V=0;w.startsWith("<=")?(j="<=",M="max-width"):w.startsWith(">=")||k[w]?(j=">=",M="min-width"):w.startsWith(">")?(j=">",M="min-width",V=.02):w.startsWith("<")&&(j="<",M="max-width",V=-.02);let L=j?w.replace(j,""):w,A=k[L];switch(M){case"max-width":case"min-width":A?Object.assign(T,this.analyzeUnitValue(A.toString(),"px")):Object.assign(T,this.analyzeUnitValue(L,"px")),T.unit==="px"&&(T.value+=V),this.media.features[M]=T,y.push("("+M+":"+(T.value+T.unit)+")");break}}},R=E.includes("&");if(R){let w=E.split("&");for(let T of w)B(T)}else B(E);if(this.media.type&&(D=this.media.type),y.length&&(D=y.join(" and ")),D)I="media";else if(!R){this.theme=E;continue}}D&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+D.replace(/\|/g," "))}}let ge=(N,E)=>{let I,D=(B,R,w)=>{let T="";this.direction&&(T+="[dir="+this.direction+"] ");let M=this.prefixSelectors.map(L=>L+T),j=(L,A)=>M.map(Y=>(L&&p!=="media"?p==="host"?`:host(.${L}) `:`.${L} `:"")+(d?d+" ":"")+Y).reduce((Y,ee)=>(Y.push(w.reduce((J,G)=>(J.push(ee+"."+se(A)+G),J),[]).join(",")),Y),[]).join(","),V=j(R,e)+(_&&(this.theme||!x||!R)?_.reduce((L,A)=>L+","+j(this.theme??(x||ue?R:""),A),""):"")+"{"+B+"}";for(let L of Object.keys(this.at).sort((A,Y)=>Y==="supports"?-1:1))V="@"+L+(L.includes(" ")?"":" ")+this.at[L]+"{"+V+"}";return R&&p==="media"&&(V=`@media(prefers-color-scheme:${R}){`+V+"}"),V},C=[];if(U){let B=[this.theme??N,""],R,w=!1;for(let T of U)if(typeof T=="string")C.push(T);else{let M=T.value;if(T.unit)M+=T.unit;else if(x&&a&&r){let j=!1;M=M.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(V,L,A,Y)=>{let ee=a[A];if(ee){let J,G;for(let Z of B)if(J=ee[Z]){G=Z;break}if(J){j=!E||G===N,R||(R=j);let Z=J;if(Y){let H=Y.endsWith("%")?parseFloat(Y)/100:+Y;H=isNaN(H)?1:Math.min(Math.max(H,0),1),Z+=Math.round(H*255).toString(16).toUpperCase().padStart(2,"0")}return L+Z}else w=!0}return V})}C.push(M)}if(E&&(w||(R===void 0?N:!R)))return;if(I=C.reduce((T,M,j)=>T+M+(M===","||U[j+1]===","||j===U.length-1?"":" "),""),b&&(I=b.call(this,I,this.css.config)),x&&I==="current"&&(I="currentColor"),g){let T,M;if(U.length===1){let j=U[0];typeof j=="object"&&(T=j.value,M=j.unit)}Q=g.call(this,M?T:I,M||"")}else Q={[m]:I}}let y={};for(let B in Q){let R=(M,j)=>{if(u&&(j.startsWith("animation")||j.startsWith("animation-name"))){let L=j.split(":")[1].split("!important")[0].split(" ").filter(A=>A in this.css.config.keyframes&&(!this.keyframeNames||!this.keyframeNames.includes(A)));L.length&&(this.keyframeNames||(this.keyframeNames=[]),this.keyframeNames.push(...L))}let V=j+((this.important||f)&&!j.endsWith("!important")?"!important":"");M in y?y[M].push(V):y[M]=[V]},w=B+":",T=Q[B];if(typeof T=="object")if(Array.isArray(T))for(let M of T)R(N,w+M.toString());else{ue=!0;for(let M in T)R(M,w+T[M])}else R(N,w+T.toString())}for(let B of Object.values(this.vendorSuffixSelectors))for(let R in y)this.natives.push({text:D(y[R].join(";"),R,B),theme:R})};if(this.theme)ge(this.theme,!1);else if(x)for(let N of n)ge(N,!0);else ge("",!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 o=i??this.config.unit;if(o){let c="",s=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(e.includes("/")){let[x,m]=e.split("/");return{value:+x/+m*100+"%",unit:c}}else{let x=+s[1];return c=s[3]||"",c||((o==="rem"||o==="em")&&(x=x/this.css.config.rootSize),c=o||""),{value:x,unit:c}}}}};var be={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function ae(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 de(t,e,i){return((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)}function z(t){typeof t=="string"&&(t={"":t});let e=""in t,i=!1;for(let o in t)if(o&&+o>=100){i=!0;break}if(!i&&(!e||Object.keys(t).length>1)){let o=0,c="0"in t?ae(t[0]):[0,0,0],s,x,m=[],S=()=>{let b=s-o,g=x.map((l,d)=>(l-c[d])/b);for(let l of m){let d=l-o,f=c.map((h,p)=>Math.round(h+g[p]*d));t[l]="#"+de.call(this,...f)}};for(let b=1;b<100;b++)b in t?(m.length?(s=b,x=ae(t[b]),S(),m.length=0,c=x):c=ae(t[b]),o=b):m.push(b);m.length&&(s=100,x="100"in t?ae(t[100]):[255,255,255],S())}return e||(t[""]=t[i?"500":"50"]),t}var ve={black:"#000000",white:"#ffffff",slate:z({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:z({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:z({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:z({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:z({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:z({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:z({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:z({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:z({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:z({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:z({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:z({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:z({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:z({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:z({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:z({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:z({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:z({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:z({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:z({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var xe=16;var ye="";var we={"::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 Se={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"}};var Ue={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},i=(b,g)=>{let l=g.indexOf(":");if(l!==-1){b in e||(e[b]={});let d=e[b],f=g.slice(0,l);f in d||(d[f]=g.slice(l+1))}},o=b=>{let g=(l,d)=>{let f=d.slice(se(b.className).length).match(/\{(.*)\}/)[1].split(";");for(let h of f)i(l,h)};if(this.theme){let l=b.natives.find(d=>d.theme===this.theme)??b.natives.find(d=>!d.theme);l&&g(this.theme,l.text)}else for(let l of b.natives)g(l.theme,l.text);if(b.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let l of b.keyframeNames)this.keyframeNames.includes(l)||this.keyframeNames.push(l)}},c=[],s="",x=()=>{s&&(c.push(s.replace(/ /g,"|")),s="")},m=1;(function b(g){for(;m<t.length;m++){let l=t[m];if(!g){if(l===";"){x();continue}if(l==="}")break}if(s+=l,g===l){if(g==="'"||g==='"'){let d=0;for(let f=s.length-2;s[f]==="\\";f--)d++;if(d%2)continue}break}else l in re&&g!=="'"&&g!=='"'&&(m++,b(re[l]))}})(void 0),x();for(let b of c){let g=this.css.create(b);if(Array.isArray(g))if(g.length)for(let l of g)o(l);else i(this.theme??"",b);else o(g)}let S={};for(let b in e)for(let[g,l]of Object.entries(e[b]))g in S?S[g][b]=l:S[g]={[b]:l};return S}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){switch(t){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(t,e){return{"margin-left":t+e,"margin-right":t+e}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(t,e){return{"margin-top":t+e,"margin-bottom":t+e}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(t,e){return{"padding-left":t+e,"padding-right":t+e}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(t,e){return{"padding-top":t+e,"padding-bottom":t+e}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,i]=t.split(" x ");return{width:e,height:i}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"min-width":e,"min-height":i}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,i]=t.split(" x ");return{"max-width":e,"max-height":i}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(t,e){return t==="overlay"?{"overflow-x":["auto",t]}:{"overflow-x":t}}},overflowY:{native:!0,declare(t,e){return t==="overlay"?{"overflow-y":["auto",t]}:{"overflow-y":t}}},overflow:{native:!0,order:-1,declare(t,e){return t==="overlay"?{overflow:["auto",t]}:{overflow:t}}},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{native:!0,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,analyze(t){return[t.startsWith("transform")?t.slice(10):t]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(t){if(t.startsWith("~"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(t){if(t.startsWith("@"))return[t.slice(1)];{let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-left-color":t+e,"border-right-color":t+e}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(t,e){return{"border-top-color":t+e,"border-bottom-color":t+e}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-top-right-radius":t+e}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(t,e){return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(t,e){return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-left-style":t+e,"border-right-style":t+e}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(t,e){return{"border-top-style":t+e,"border-bottom-style":t+e}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-left-width":t+e,"border-right-width":t+e}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(t,e){return{"border-top-width":t+e,"border-bottom-width":t+e}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-left":t,"border-right":t}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(t){return{"border-top":t,"border-bottom":t}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(t){if(t.startsWith("gradient"))return["linear-"+t];let e=t.indexOf(":");return this.prefix=t.slice(0,e+1),[t.slice(e+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{match:"^grid-rows:.",declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-left":t+e,"scroll-margin-right":t+e}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-left":t+e,"scroll-padding-right":t+e}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(t,e){return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e}}},scrollPadding:{match:"^scroll-p:.",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}}}},ke=Ue;var Ce=!1;var Re=!1;var $e={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 Te={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=this.values,i=this.css.globalValues,o=this.css.config.functions,c=this,s=0,x="",m="";return function S(b,g){let l=!1,d=(f,h=!1,p=!1)=>{if(f!=="("&&(e&&m in e?m=e[m].toString():i&&m in i&&(m=i[m].toString())),m&&!l&&!g){let u=c.analyzeUnitValue(m,o.calc.unit);u&&(m=u.value+u.unit)}x+=m+(h&&t[s-1]!==" "?" ":"")+f+(p&&t[s+1]!==" "?" ":""),m="",l=!1};for(;s<t.length;s++){let f=t[s];if(f==="("){let h=m,p=l,u=x.length;if(d(f),s++,S(h,p||g),h!=="calc"){let n=o[h];if(n){let r=x.slice(u+2,x.length-1);x=x.slice(0,u-h.length+1)+(n.name??h)+"("+(n.transform?.(r)??r)+")"}}}else if(f===")"){d(f);break}else if(f===",")d(f,!1,!0);else if(f===" ")d(f);else{let h=t[s-1];switch(f){case"+":!m&&h!==")"?m+=f:d(f,!0,!0);break;case"-":b==="var"||!m&&h!==")"?m+=f:d(f,!0,!0);break;case"*":d(f,!0,!0);break;case"/":d(f,!0,!0),l=!0;break;default:m+=f;break}}}s>=t.length-1&&d("")}("",!1),x}},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 Me="class";var ne={breakpoints:be,colors:ve,rootSize:16,scope:ye,selectors:we,semantics:Se,rules:ke,override:!1,important:!1,functions:Te,keyframes:$e,themeDriver:Me};var We=[",",".","#","[","!","*",">","+","~",":","@"];var K=class t{constructor(e=ne){this.config=e;if(!e?.override){let i=(o,c)=>{let s=c.extends?.length?q({},c,...c.extends.map(m=>i(c,"config"in m?m.config:m))):c,x=q(o,s);return Object.prototype.hasOwnProperty.call(s,"keyframes")&&Object.assign(x.keyframes,s.keyframes),x};this.config=i(ne,e)}this.cache(),t.instances.push(this)}static root;static config=ne;static instances=[];static refresh=e=>{for(let i of this.instances)i.refresh(e)};rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:i,selectors:o,colors:c,values:s,breakpoints:x,mediaQueries:m,rules:S}=this.config;function b(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function g(n,r,a="",v={}){let k=_=>_?(a?a+"-":"")+_:a,$=Object.entries(n),O=[],F=[];for(let _ of $){let Q=_[1];(typeof Q=="object"&&!Array.isArray(Q)?O:F).push(_)}for(let[_,Q]of O)g(Q,r,k(_),v);if(r&&a)F.length&&(v[a]=F.reduce((_,[Q,ue])=>(_[Q]=ue,_),{}));else for(let[_,Q]of F)v[k(_)]=Q;return v}function l(n){for(let[r,a]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof a=="number"&&(n["-"+r]=a*-1);return n}if(e)for(let[n,r]of Object.entries(g(e,!0)))this.semantics.push([new RegExp("^"+b(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,r]]);if(o)for(let[n,r]of Object.entries(g(o,!1))){let a=new RegExp(b(n)+"(?![a-z-])");for(let v of Array.isArray(r)?r:[r]){let k=v.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[k];$||($=this.selectors[k]=[]);let O=$.find(([F])=>F===a);O||(O=[a,[]],$.push(O)),O[1].push(v)}}s&&(this.globalValues=l(g(s,!1))),x&&(this.breakpoints=g(x,!1)),m&&(this.mediaQueries=g(m,!1));let d=i?g(i,!1):{},f=Object.keys(d),h=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],a=d[n];if(!a)return;let v=a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let k of v){let $=O=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,O)){let F=this.classesBy[O];F.includes(n)||F.push(n)}else this.classesBy[O]=[n];r.includes(O)||r.push(O)};if(f.includes(k)){h(k);for(let O of this.classes[k])$(O)}else $(k)}};for(let n of f)h(n);let p=c?g(c,!0):{};for(let[n,r]of Object.entries(p)){let a=typeof r=="string"?{"":r}:r;for(let[v,k]of Object.entries(a)){let $=(O,F)=>{Object.prototype.hasOwnProperty.call(this.colorThemesMap,F)?this.colorThemesMap[F][O]=k:this.colorThemesMap[F]={[O]:k}};if(v.startsWith("@")){let O=v.slice(1);$(O,n),this.themeNames.includes(O)||this.themeNames.push(O)}else $("",n+(v?"-"+v:""))}}this.colorNames=c?Object.keys(c):[];let u=n=>{for(let[r,a]of Object.entries(this.colorThemesMap))for(let[v,k]of Object.entries(a))k.startsWith("#")||n(r,a,v,k)};if(u((n,r,a,v)=>{let k=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(v);if(k){let $="#"+de(+k[1],+k[2],+k[3]);k[4]&&($+=Math.round(255*+k[4]).toString(16)),r[a]=$}}),u((n,r,a,v)=>{let[k,$]=v.split("/"),O=this.colorThemesMap[k];if(O){let F=(a?O[a]:void 0)??O[""];r[a]=$?F.slice(0,7)+Math.round(255*+$).toString(16):F}else console.warn(`\`${v}\` doesn't exist in the extended config \`.colors\``),delete r[a],Object.keys(r).length||delete this.colorThemesMap[n]}),S)for(let n in S){let r=S[n],{native:a,values:v,colored:k}=r,$=r.match;if(r.id=n,r.native=a===!0?n.replace(/(?!^)[A-Z]/g,O=>"-"+O).toLowerCase():void 0,v&&(this.values[n]=l(g(v,!1))),$){let O=Object.keys(this.values[n]??{});$.includes("$values")&&($=O.length?$.replace(/\$values/,O.join("|")):$.replace(/(?:\|)?\$values/,"")),k&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp($)}}}observe(e,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(e||(e=document),this.root===e)return this;this.root=e;let o=e===document;o&&(t.root=this),this.host=o?document.documentElement:this.root.host;let c=o?document.head:e,s=o?document.styleSheets:e.styleSheets;for(let m of s){let{ownerNode:S}=m;if(S&&S.id==="master"){this.style=S;break}}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let S=this.style.sheet.cssRules[m];if(S.constructor.name==="CSSKeyframesRule")continue;let b=l=>{if(l.selectorText){let f=l.selectorText.split(", ")[0].split(" ");for(let h=0;h<f.length;h++){let p=f[h];if(p[0]==="."){let u=p.slice(1),n="";for(let r=0;r<u.length;r++){let a=u[r],v=u[r+1];if(a==="\\"){if(r++,v!=="\\"){n+=v;continue}}else if(We.includes(a))break;n+=a}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(l.cssRules)for(let d=0;d<l.cssRules.length;d++){let f=b(l.cssRules[d]);if(f)return f}},g=b(S);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let l=0;l<g.natives.length;l++)g.natives[l].cssRule=this.style.sheet.cssRules[m+l];m+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=document.createElement("style"),this.style.id="master",c.append(this.style);let x=m=>{m.forEach(S=>{Object.prototype.hasOwnProperty.call(this.countBy,S)?this.countBy[S]++:(this.countBy[S]=1,this.insert(S))})};x(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(m=>x(m.classList)),this.observer=new MutationObserver(m=>{let S={},b=[],g=[],l=[],d=(u,n)=>{n?u.classList.forEach(h):u.classList.forEach(f);let r=u.children;for(let a=0;a<r.length;a++){let v=r[a];v.classList&&(g.push(v),d(v,n))}},f=u=>{Object.prototype.hasOwnProperty.call(S,u)?S[u]++:S[u]=1},h=u=>{Object.prototype.hasOwnProperty.call(S,u)?S[u]--:Object.prototype.hasOwnProperty.call(this.countBy,u)&&(S[u]=-1)},p=(u,n)=>{for(let r=0;r<u.length;r++){let a=u[r];a.classList&&!g.includes(a)&&!l.includes(a)&&(a.isConnected!==n?(g.push(a),d(a,n)):l.push(a))}};for(let u=0;u<m.length;u++){let n=m[u],{addedNodes:r,removedNodes:a,type:v,target:k}=n;if(v==="attributes"){if(b.find($=>$.target===k))continue;b.push(n)}else p(r,!1),(!k.isConnected||!g.includes(k))&&p(a,!0)}if(!(!b.length&&!Object.keys(S).length)){for(let{oldValue:u,target:n}of b){let r=g.includes(n),a=n.classList,v=u?u.split(" "):[];if(r){if(n.isConnected)continue;for(let k of v)a.contains(k)||h(k)}else if(n.isConnected){a.forEach(k=>{v.includes(k)||f(k)});for(let k of v)a.contains(k)||h(k)}}for(let u in S){let n=S[u],r=(this.countBy[u]||0)+n;r===0?(delete this.countBy[u],this.delete(u)):(Object.prototype.hasOwnProperty.call(this.countBy,u)||this.insert(u),this.countBy[u]=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 o=this.config.rules[i],c=this.matches[i],{native:s}=o;if(c&&c.test(e))return{origin:"match",config:o};if(s&&e.startsWith(s+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(e.match(i[0]))return{origin:"semantics",value:i[1]}}create(e){let i=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let c=this.match(o);if(c)return new ie(o,c,this)};return(Object.prototype.hasOwnProperty.call(this.classes,e)?this.classes[e].map(o=>i(o)):[i(e)]).filter(o=>o&&o.text)}refresh(e){if(e?.override?this.config=e:this.config=q(ne,e),this.cache(),!this.style)return;let i=document.createElement("style");i.id="master",this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let e=t.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let i=this.style?.sheet,o=c=>{let s=this.ruleBy[c];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,c)&&this.classesBy[c].some(x=>Object.prototype.hasOwnProperty.call(this.countBy,x)))){if(i&&s.natives.length){let x=s.natives[0];for(let m=0;m<i.cssRules.length;m++)if(i.cssRules[m]===x.cssRule){for(let b=0;b<s.natives.length;b++)i.deleteRule(m);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[c],s.keyframeNames){let x=this.rules[0];for(let m of s.keyframeNames){let S=this.keyframes[m];if(!--S.count){let b=x.natives.indexOf(S.native);this.style.sheet.deleteRule(b),x.natives.splice(b,1),delete this.keyframes[m]}}x.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,c)}};if(Object.prototype.hasOwnProperty.call(this.classes,e)){for(let c of this.classes[e])Object.prototype.hasOwnProperty.call(this.countBy,c)||o(c);delete this.ruleBy[e]}else o(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 o,c=Object.keys(this.keyframes).length,s=this.rules.length-1,{media:x,order:m,priority:S,hasWhere:b,className:g}=i,l=(h,p,u)=>{let n=h;for(;n<=s;n++){let r=this.rules[n];if(p?.(r))return u?-1:n-1;if(u?.(r))return n}return u?-1:n-1},d,f;if(x){let h=this.rules.findIndex(p=>p.media);if(h===-1)o=s+1;else{let{"max-width":p,"min-width":u}=x.features;if(p||u){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(p&&u){if(S===-1?(d=l(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),f=l(n,r=>r.priority!==-1)):(d=l(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),f=s),d!==-1){let r=p.value-u.value,a=f,v=d;for(d=void 0;a>=v;a--){let{"max-width":k,"min-width":$}=this.rules[a].media.features,O=k.value-$.value;if(O<r)f=a-1;else if(O===r)d=a;else break}}if(d!==-1){let r=p.value-u.value;for(let a=f;a>=d;a--){let{"max-width":v,"min-width":k}=this.rules[a].media.features,$=v.value-k.value;if($<r)f=a-1;else if($>r){d=a+1;break}}}}else if(u){if(S===-1?(d=l(n,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"]),f=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(d=l(n,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),f=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=f;r>=d;r--){let a=this.rules[r].media.features["min-width"].value;if(a>u.value)f=r-1;else if(a<u.value){d=r+1;break}}}else if(S===-1?(d=l(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),f=l(n,r=>r.media.features["min-width"]||r.priority!==-1)):(d=l(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),f=l(n,r=>r.media.features["min-width"]&&r.priority!==-1)),d!==-1)for(let r=f;r>=d;r--){let a=this.rules[r].media.features["max-width"].value;if(a<p.value)f=r-1;else if(a>p.value){d=r+1;break}}}else S===-1?(d=h,f=l(h,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(d=l(h,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),f=l(h,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let h=c?1:0;S===-1?(d=h,f=l(h,p=>p.media||p.priority!==-1)):(d=l(h,p=>p.media,p=>p.priority!==-1),f=l(h,p=>p.media))}if(o===void 0)if(d===-1)o=f+1;else{if(S===-1)for(let h=d;h<=f;h++){let p=this.rules[h];if(!(!b&&p.hasWhere)&&(b&&!p.hasWhere||p.order>=m)){o=h;break}}else for(let h=d;h<=f;h++){let p=this.rules[h];if(!(!b&&p.hasWhere)){if(b&&!p.hasWhere){o=h;break}if(p.priority<S){o=h;break}else if(p.priority===S){if(p.order>=m){o=h;break}}else o=h+1}}o===void 0&&(o=f+1)}if(this.rules.splice(o,0,i),this.ruleBy[g]=i,this.style){let h=this.style.sheet,p=0,u=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return u(n-1);let a=r.natives[r.natives.length-1].cssRule;for(let v=0;v<h.cssRules.length;v++)if(h.cssRules[v]===a){p=v+1;break}}};u(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];h.insertRule(r.text,p),r.cssRule=h.cssRules[p++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}if(i.keyframeNames){let h=this.style?.sheet;for(let p of i.keyframeNames)if(Object.prototype.hasOwnProperty.call(this.keyframes,p))this.keyframes[p].count++;else{let u={text:`@keyframes ${p}{`+Object.entries(this.config.keyframes[p]).map(([r,a])=>`${r}{${Object.entries(a).map(([v,k])=>v+":"+k).join(";")}}`).join("")+"}",theme:""},n;if(Object.keys(this.keyframes).length?(n=this.rules[0]).natives.push(u):this.rules.splice(0,0,n={natives:[u],get text(){return this.natives.map(r=>r.text).join("")}}),h){let r;for(let a=0;a<h.cssRules.length;a++){let v=h.cssRules[a];if(v.constructor.name!=="CSSKeyframesRule")break;if(v.name===p){r=v;break}}if(r)u.cssRule=r;else{let a=n.natives.length-1;h.insertRule(u.text,a),u.cssRule=h.cssRules[a]}}this.keyframes[p]={native:u,count:1}}}i.config.insert?.call(i)}}get text(){return this.rules.map(e=>e.text).join("")}};typeof window<"u"&&(window.MasterCSS=K);var ze=`/** @type {import('@master/css').Config} */
2
+ module.exports = {
3
+ classes: {},
4
+ colors: {},
5
+ themes: {},
6
+ rules: {},
7
+ values: {},
8
+ semantics: {},
9
+ breakpoints: {},
10
+ mediaQueries: {},
11
+ keyframes: {},
12
+ selectors: {},
13
+ functions: {}
14
+ }
15
+ `;var Pe=`/** @type {import('@master/css').Config} */
16
+ export default {
17
+ classes: {},
18
+ colors: {},
19
+ themes: {},
20
+ rules: {},
21
+ values: {},
22
+ semantics: {},
23
+ breakpoints: {},
24
+ mediaQueries: {},
25
+ keyframes: {},
26
+ selectors: {},
27
+ functions: {}
28
+ }
29
+ `;var De=`import type { Config } from '@master/css'
30
+
31
+ export default {
32
+ classes: {},
33
+ colors: {},
34
+ themes: {},
35
+ rules: {},
36
+ values: {},
37
+ semantics: {},
38
+ breakpoints: {},
39
+ mediaQueries: {},
40
+ keyframes: {},
41
+ selectors: {},
42
+ functions: {}
43
+ } as Config
44
+ `;function le(t){if(!t)return;let e=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,i={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return t.split(/\sclass="([^"]*)"/gm).filter((o,c)=>c%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(e,(c,s)=>i[s]))}function ce(t,e){if(!t.length)return;let i=new K(e);for(let o of t)i.insert(o);return i.text}function oe(t,e){if(!t)return;let i=le(t);if(i.length)return ce(i,e)}function Be(t,e){return new K(t).observe(e)}function Oe(t,e){if(!t)return;let i=!1;if(t=t.replace(/(<style id="master">).*?(<\/style>)/,(c,s,x)=>(i=!0,s+oe(t,e)+x)),i)return t;let o=`<style id="master">${oe(t,e)}</style>`;return t.replace(/<\/head>/,`${o}$&`)}
@@ -0,0 +1,44 @@
1
+ function ve(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function xe(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function ye(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=ye(i):ve(i)?t[o]=xe(i):t[o]=Z({},i):t[o]=i}),t}function be(e,t){return t==="__proto__"?void 0:e[t]}function Z(...e){let t={},i,o;return e.forEach(function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach(function(s){if(o=be(t,s),i=be(h,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=ye(i);return}else if(ve(i)){t[s]=xe(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=Z({},i);return}else{t[s]=Z(o,i);return}})}),t}var re={"(":")","'":"'",'"':'"',"{":"}"};function ie(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),i=t.length,o=-1,h="",s,x=t.charCodeAt(0);if(i==1&&x==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){h+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&x==45){h+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){h+=t.charAt(o);continue}h+="\\"+t.charAt(o)}return h}var We={unit:"",order:0,separators:[","]},ze=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ne=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=Z(We,i.config);let{unit:h,order:s,colored:x,native:f,analyze:S,transform:b,declare:g,create:l}=this.config,{scope:u,important:d,functions:m,themeDriver:p,keyframes:c}=o.config,{themeNames:n,colorNames:r,colorThemesMap:a,selectors:v,breakpoints:k,mediaQueries:$,classesBy:O,globalValues:F}=o,_=O[t];l&&l.call(this,t);let Q,le,fe,te,U;if(i.origin==="semantics"){let[N,E]=i.value;te=t.slice(N.length),Q=E}else{let N;if(S)[N,fe]=S.call(this,t);else{let B=t.indexOf(":");this.prefix=t.slice(0,B+1),N=t.slice(B+1)}U=[];let E=this,I=this.values,D=[","];this.config.separators.length&&D.push(...this.config.separators);let C="",y=0;(function B(R,w,T,M=void 0,j=[],V=[],L){let A=M===void 0,Y,ee=W=>W==="'"||W==='"',K=()=>Y=C.length,q=()=>{if(C){let W=C,P=A?W:C.slice(Y);if(C="",H="",I&&P in I&&!j.includes(P)){let X=y;y=0,B(I[P].toString(),w,void 0,M,[...j,P],V,L),y=X,A||(C=C.slice(0,Y)+C)}else if(F&&P in F&&!V.includes(P)){let X=y;y=0,B(F[P].toString(),w,void 0,M,j,[...V,P],L),y=X,A||(C=C.slice(0,Y)+C)}else if(A){let X=!L&&E.analyzeUnitValue(P,w);U.push({value:X?.value??P,unit:X?.unit})}else{let X=!L&&E.analyzeUnitValue(P,w);C=X?W.slice(0,Y)+X.value+X.unit:W}K()}},G=ee(T);K();let H="";for(;y<R.length;y++){let W=R[y];if(W===T){if(G){C+=W;let P=0;for(let X=C.length-2;C[X]==="\\";X--)P++;if(P%2)continue}else q(),C+=W;return}else if(!G&&W in re){let P=W==="("&&H&&m?.[H];P?.name&&(C=C.slice(0,C.length-H.length)+P.name,H=P.name),C+=W,y++;let X=re[W];B(R,P?.unit??w,X,H||M||"",j,V,L||!!P?.transform),P?.transform&&(C=C.slice(0,Y+H.length+1)+P.transform.call(E,C.slice(Y+H.length+1,-1))+C.slice(-1)),A&&(ee(X)?(U.push(C),C=""):q()),H=""}else if((W==="|"||W===" ")&&T!=="}"&&(!G||M==="path"))q(),A||(C+=" ",Y++);else{if(!G){if(W==="."){if(isNaN(+R[y+1]))break;R[y-1]==="-"&&(C+="0")}else if(D.includes(W)){q(),A?U.push(W):(C+=W,Y++);continue}else if(A&&(W==="#"&&(C||U.length&&R[y-1]!=="|"&&U[y-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(W)))break;H+=W}C+=W}}M===void 0&&q()})(N,h),te=N.slice(y)}this.order=typeof s=="function"?s.call(this,this.prefix):s,te[0]==="!"&&(this.important=!0,te=te.slice(1));let pe=N=>{let E=N.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((y,B)=>B%3?y:y.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),I=[],D="",C=0;for(let y=0;y<E.length;y++){let B=E[y];if(B==="\\"){D+=B+E[++y];continue}!C&&B===","?(I.push(D),D=""):(D+=B,C&&B===")"?C--:B==="("&&C++)}return D&&I.push(D),I};this.prefixSelectors=fe?pe(fe):[""];let me=te.split("@"),he=me[0];if(he){this.vendorSuffixSelectors={};let N=(y,B,R,w)=>{for(let[T,M]of B)if(T.test(y)){for(let j of M)N(y.replace(T,j),B,R,!0);return}w&&R.push(y)},E=[];""in v?N(he,v[""],E,!0):E.push(he);let I={};for(let[y,B]of Object.entries(v)){if(!y)continue;let R=[];for(let w of E)N(w,B,R,!1);R.length&&(I[y]=R)}let D=(y,B)=>{let R=B.reduce((w,T)=>(w.push(...pe(T)),w),[]);y in this.vendorSuffixSelectors?this.vendorSuffixSelectors[y].push(...R):this.vendorSuffixSelectors[y]=R},C=Object.keys(I);if(C.length)for(let y of C)D(y,I[y]);else D("",E);for(let y of Object.values(this.vendorSuffixSelectors))for(let B of y){this.hasWhere!==!1&&(this.hasWhere=B.includes(":where("));let R=[":disabled",":active",":focus",":hover"];for(let w=0;w<R.length;w++)if(B.includes(R[w])){(this.priority===-1||this.priority>w)&&(this.priority=w);break}}}else this.vendorSuffixSelectors={"":[""]};for(let N=1;N<me.length;N++){let E=me[N];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let I,D,C=ze.exec(E);if(C)I=C[1],D=E.slice(I.length);else{this.media={token:E,features:{}};let y=[],B=w=>{if(w==="all"||w==="print"||w==="screen"||w==="speech")this.media.type=w;else if(w==="\u{1F5A8}")this.media.type="print";else if(w==="landscape"||w==="portrait")y.push("(orientation:"+w+")");else if(w==="motion"||w==="reduced-motion")y.push("(prefers-reduced-motion:"+(w==="motion"?"no-preference":"reduce")+")");else if($&&w in $)y.push($[w]);else{let T={token:w},M="",j="",V=0;w.startsWith("<=")?(j="<=",M="max-width"):w.startsWith(">=")||k[w]?(j=">=",M="min-width"):w.startsWith(">")?(j=">",M="min-width",V=.02):w.startsWith("<")&&(j="<",M="max-width",V=-.02);let L=j?w.replace(j,""):w,A=k[L];switch(M){case"max-width":case"min-width":A?Object.assign(T,this.analyzeUnitValue(A.toString(),"px")):Object.assign(T,this.analyzeUnitValue(L,"px")),T.unit==="px"&&(T.value+=V),this.media.features[M]=T,y.push("("+M+":"+(T.value+T.unit)+")");break}}},R=E.includes("&");if(R){let w=E.split("&");for(let T of w)B(T)}else B(E);if(this.media.type&&(D=this.media.type),y.length&&(D=y.join(" and ")),D)I="media";else if(!R){this.theme=E;continue}}D&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+D.replace(/\|/g," "))}}let ge=(N,E)=>{let I,D=(B,R,w)=>{let T="";this.direction&&(T+="[dir="+this.direction+"] ");let M=this.prefixSelectors.map(L=>L+T),j=(L,A)=>M.map(Y=>(L&&p!=="media"?p==="host"?`:host(.${L}) `:`.${L} `:"")+(u?u+" ":"")+Y).reduce((Y,ee)=>(Y.push(w.reduce((K,q)=>(K.push(ee+"."+ie(A)+q),K),[]).join(",")),Y),[]).join(","),V=j(R,t)+(_&&(this.theme||!x||!R)?_.reduce((L,A)=>L+","+j(this.theme??(x||le?R:""),A),""):"")+"{"+B+"}";for(let L of Object.keys(this.at).sort((A,Y)=>Y==="supports"?-1:1))V="@"+L+(L.includes(" ")?"":" ")+this.at[L]+"{"+V+"}";return R&&p==="media"&&(V=`@media(prefers-color-scheme:${R}){`+V+"}"),V},C=[];if(U){let B=[this.theme??N,""],R,w=!1;for(let T of U)if(typeof T=="string")C.push(T);else{let M=T.value;if(T.unit)M+=T.unit;else if(x&&a&&r){let j=!1;M=M.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(V,L,A,Y)=>{let ee=a[A];if(ee){let K,q;for(let G of B)if(K=ee[G]){q=G;break}if(K){j=!E||q===N,R||(R=j);let G=K;if(Y){let H=Y.endsWith("%")?parseFloat(Y)/100:+Y;H=isNaN(H)?1:Math.min(Math.max(H,0),1),G+=Math.round(H*255).toString(16).toUpperCase().padStart(2,"0")}return L+G}else w=!0}return V})}C.push(M)}if(E&&(w||(R===void 0?N:!R)))return;if(I=C.reduce((T,M,j)=>T+M+(M===","||U[j+1]===","||j===U.length-1?"":" "),""),b&&(I=b.call(this,I,this.css.config)),x&&I==="current"&&(I="currentColor"),g){let T,M;if(U.length===1){let j=U[0];typeof j=="object"&&(T=j.value,M=j.unit)}Q=g.call(this,M?T:I,M||"")}else Q={[f]:I}}let y={};for(let B in Q){let R=(M,j)=>{if(c&&(j.startsWith("animation")||j.startsWith("animation-name"))){let L=j.split(":")[1].split("!important")[0].split(" ").filter(A=>A in this.css.config.keyframes&&(!this.keyframeNames||!this.keyframeNames.includes(A)));L.length&&(this.keyframeNames||(this.keyframeNames=[]),this.keyframeNames.push(...L))}let V=j+((this.important||d)&&!j.endsWith("!important")?"!important":"");M in y?y[M].push(V):y[M]=[V]},w=B+":",T=Q[B];if(typeof T=="object")if(Array.isArray(T))for(let M of T)R(N,w+M.toString());else{le=!0;for(let M in T)R(M,w+T[M])}else R(N,w+T.toString())}for(let B of Object.values(this.vendorSuffixSelectors))for(let R in y)this.natives.push({text:D(y[R].join(";"),R,B),theme:R})};if(this.theme)ge(this.theme,!1);else if(x)for(let N of n)ge(N,!0);else ge("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,i){return Number.isNaN(+t)?t:t/(i==="rem"||i==="em"?this.css.config.rootSize:1)+i}analyzeUnitValue(t,i){let o=i??this.config.unit;if(o){let h="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[x,f]=t.split("/");return{value:+x/+f*100+"%",unit:h}}else{let x=+s[1];return h=s[3]||"",h||((o==="rem"||o==="em")&&(x=x/this.css.config.rootSize),h=o||""),{value:x,unit:h}}}}};var we={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function oe(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function ce(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function z(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,h="0"in e?oe(e[0]):[0,0,0],s,x,f=[],S=()=>{let b=s-o,g=x.map((l,u)=>(l-h[u])/b);for(let l of f){let u=l-o,d=h.map((m,p)=>Math.round(m+g[p]*u));e[l]="#"+ce.call(this,...d)}};for(let b=1;b<100;b++)b in e?(f.length?(s=b,x=oe(e[b]),S(),f.length=0,h=x):h=oe(e[b]),o=b):f.push(b);f.length&&(s=100,x="100"in e?oe(e[100]):[255,255,255],S())}return t||(e[""]=e[i?"500":"50"]),e}var Se={black:"#000000",white:"#ffffff",slate:z({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:z({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:z({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:z({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:z({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:z({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:z({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:z({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:z({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:z({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:z({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:z({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:z({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:z({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:z({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:z({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:z({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:z({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:z({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:z({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var ke=16;var Ce="";var Re={"::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"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"}};var Pe={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(b,g)=>{let l=g.indexOf(":");if(l!==-1){b in t||(t[b]={});let u=t[b],d=g.slice(0,l);d in u||(u[d]=g.slice(l+1))}},o=b=>{let g=(l,u)=>{let d=u.slice(ie(b.className).length).match(/\{(.*)\}/)[1].split(";");for(let m of d)i(l,m)};if(this.theme){let l=b.natives.find(u=>u.theme===this.theme)??b.natives.find(u=>!u.theme);l&&g(this.theme,l.text)}else for(let l of b.natives)g(l.theme,l.text);if(b.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let l of b.keyframeNames)this.keyframeNames.includes(l)||this.keyframeNames.push(l)}},h=[],s="",x=()=>{s&&(h.push(s.replace(/ /g,"|")),s="")},f=1;(function b(g){for(;f<e.length;f++){let l=e[f];if(!g){if(l===";"){x();continue}if(l==="}")break}if(s+=l,g===l){if(g==="'"||g==='"'){let u=0;for(let d=s.length-2;s[d]==="\\";d--)u++;if(u%2)continue}break}else l in re&&g!=="'"&&g!=='"'&&(f++,b(re[l]))}})(void 0),x();for(let b of h){let g=this.css.create(b);if(Array.isArray(g))if(g.length)for(let l of g)o(l);else i(this.theme??"",b);else o(g)}let S={};for(let b in t)for(let[g,l]of Object.entries(t[b]))g in S?S[g][b]=l:S[g]={[b]:l};return S}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},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(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},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(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},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(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},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(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"min-width":t,"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(e){return[e.slice(4)]},declare(e){let[t,i]=e.split(" x ");return{"max-width":t,"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(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},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:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},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,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},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:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},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(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},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(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},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(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},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(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},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(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},declare(e){return{"border-top":e,"border-bottom":e}}},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(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",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(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",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(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},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:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",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(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Te=Pe;var Me=!1;var Be=!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 je={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,h=this,s=0,x="",f="";return function S(b,g){let l=!1,u=(d,m=!1,p=!1)=>{if(d!=="("&&(t&&f in t?f=t[f].toString():i&&f in i&&(f=i[f].toString())),f&&!l&&!g){let c=h.analyzeUnitValue(f,o.calc.unit);c&&(f=c.value+c.unit)}x+=f+(m&&e[s-1]!==" "?" ":"")+d+(p&&e[s+1]!==" "?" ":""),f="",l=!1};for(;s<e.length;s++){let d=e[s];if(d==="("){let m=f,p=l,c=x.length;if(u(d),s++,S(m,p||g),m!=="calc"){let n=o[m];if(n){let r=x.slice(c+2,x.length-1);x=x.slice(0,c-m.length+1)+(n.name??m)+"("+(n.transform?.(r)??r)+")"}}}else if(d===")"){u(d);break}else if(d===",")u(d,!1,!0);else if(d===" ")u(d);else{let m=e[s-1];switch(d){case"+":!f&&m!==")"?f+=d:u(d,!0,!0);break;case"-":b==="var"||!f&&m!==")"?f+=d:u(d,!0,!0);break;case"*":u(d,!0,!0);break;case"/":u(d,!0,!0),l=!0;break;default:f+=d;break}}}s>=e.length-1&&u("")}("",!1),x}},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 Ee="class";var se={breakpoints:we,colors:Se,rootSize:16,scope:Ce,selectors:Re,semantics:$e,rules:Te,override:!1,important:!1,functions:je,keyframes:Oe,themeDriver:Ee};var Ie=[",",".","#","[","!","*",">","+","~",":","@"];var J=class e{constructor(t=se){this.config=t;if(!t?.override){let i=(o,h)=>{let s=h.extends?.length?Z({},h,...h.extends.map(f=>i(h,"config"in f?f.config:f))):h,x=Z(o,s);return Object.prototype.hasOwnProperty.call(s,"keyframes")&&Object.assign(x.keyframes,s.keyframes),x};this.config=i(se,t)}this.cache(),e.instances.push(this)}static root;static config=se;static instances=[];static refresh=t=>{for(let i of this.instances)i.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:t,classes:i,selectors:o,colors:h,values:s,breakpoints:x,mediaQueries:f,rules:S}=this.config;function b(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function g(n,r,a="",v={}){let k=_=>_?(a?a+"-":"")+_:a,$=Object.entries(n),O=[],F=[];for(let _ of $){let Q=_[1];(typeof Q=="object"&&!Array.isArray(Q)?O:F).push(_)}for(let[_,Q]of O)g(Q,r,k(_),v);if(r&&a)F.length&&(v[a]=F.reduce((_,[Q,le])=>(_[Q]=le,_),{}));else for(let[_,Q]of F)v[k(_)]=Q;return v}function l(n){for(let[r,a]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof a=="number"&&(n["-"+r]=a*-1);return n}if(t)for(let[n,r]of Object.entries(g(t,!0)))this.semantics.push([new RegExp("^"+b(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,r]]);if(o)for(let[n,r]of Object.entries(g(o,!1))){let a=new RegExp(b(n)+"(?![a-z-])");for(let v of Array.isArray(r)?r:[r]){let k=v.match(/^::-[a-z]+-/m)?.[0]??"",$=this.selectors[k];$||($=this.selectors[k]=[]);let O=$.find(([F])=>F===a);O||(O=[a,[]],$.push(O)),O[1].push(v)}}s&&(this.globalValues=l(g(s,!1))),x&&(this.breakpoints=g(x,!1)),f&&(this.mediaQueries=g(f,!1));let u=i?g(i,!1):{},d=Object.keys(u),m=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],a=u[n];if(!a)return;let v=a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let k of v){let $=O=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,O)){let F=this.classesBy[O];F.includes(n)||F.push(n)}else this.classesBy[O]=[n];r.includes(O)||r.push(O)};if(d.includes(k)){m(k);for(let O of this.classes[k])$(O)}else $(k)}};for(let n of d)m(n);let p=h?g(h,!0):{};for(let[n,r]of Object.entries(p)){let a=typeof r=="string"?{"":r}:r;for(let[v,k]of Object.entries(a)){let $=(O,F)=>{Object.prototype.hasOwnProperty.call(this.colorThemesMap,F)?this.colorThemesMap[F][O]=k:this.colorThemesMap[F]={[O]:k}};if(v.startsWith("@")){let O=v.slice(1);$(O,n),this.themeNames.includes(O)||this.themeNames.push(O)}else $("",n+(v?"-"+v:""))}}this.colorNames=h?Object.keys(h):[];let c=n=>{for(let[r,a]of Object.entries(this.colorThemesMap))for(let[v,k]of Object.entries(a))k.startsWith("#")||n(r,a,v,k)};if(c((n,r,a,v)=>{let k=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(v);if(k){let $="#"+ce(+k[1],+k[2],+k[3]);k[4]&&($+=Math.round(255*+k[4]).toString(16)),r[a]=$}}),c((n,r,a,v)=>{let[k,$]=v.split("/"),O=this.colorThemesMap[k];if(O){let F=(a?O[a]:void 0)??O[""];r[a]=$?F.slice(0,7)+Math.round(255*+$).toString(16):F}else console.warn(`\`${v}\` doesn't exist in the extended config \`.colors\``),delete r[a],Object.keys(r).length||delete this.colorThemesMap[n]}),S)for(let n in S){let r=S[n],{native:a,values:v,colored:k}=r,$=r.match;if(r.id=n,r.native=a===!0?n.replace(/(?!^)[A-Z]/g,O=>"-"+O).toLowerCase():void 0,v&&(this.values[n]=l(g(v,!1))),$){let O=Object.keys(this.values[n]??{});$.includes("$values")&&($=O.length?$.replace(/\$values/,O.join("|")):$.replace(/(?:\|)?\$values/,"")),k&&$.includes("$colors")&&($=this.colorNames.length?$.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):$.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp($)}}}observe(t,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let o=t===document;o&&(e.root=this),this.host=o?document.documentElement:this.root.host;let h=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let f of s){let{ownerNode:S}=f;if(S&&S.id==="master"){this.style=S;break}}if(this.style)for(let f=0;f<this.style.sheet.cssRules.length;f++){let S=this.style.sheet.cssRules[f];if(S.constructor.name==="CSSKeyframesRule")continue;let b=l=>{if(l.selectorText){let d=l.selectorText.split(", ")[0].split(" ");for(let m=0;m<d.length;m++){let p=d[m];if(p[0]==="."){let c=p.slice(1),n="";for(let r=0;r<c.length;r++){let a=c[r],v=c[r+1];if(a==="\\"){if(r++,v!=="\\"){n+=v;continue}}else if(Ie.includes(a))break;n+=a}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(l.cssRules)for(let u=0;u<l.cssRules.length;u++){let d=b(l.cssRules[u]);if(d)return d}},g=b(S);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let l=0;l<g.natives.length;l++)g.natives[l].cssRule=this.style.sheet.cssRules[f+l];f+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=document.createElement("style"),this.style.id="master",h.append(this.style);let x=f=>{f.forEach(S=>{Object.prototype.hasOwnProperty.call(this.countBy,S)?this.countBy[S]++:(this.countBy[S]=1,this.insert(S))})};x(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(f=>x(f.classList)),this.observer=new MutationObserver(f=>{let S={},b=[],g=[],l=[],u=(c,n)=>{n?c.classList.forEach(m):c.classList.forEach(d);let r=c.children;for(let a=0;a<r.length;a++){let v=r[a];v.classList&&(g.push(v),u(v,n))}},d=c=>{Object.prototype.hasOwnProperty.call(S,c)?S[c]++:S[c]=1},m=c=>{Object.prototype.hasOwnProperty.call(S,c)?S[c]--:Object.prototype.hasOwnProperty.call(this.countBy,c)&&(S[c]=-1)},p=(c,n)=>{for(let r=0;r<c.length;r++){let a=c[r];a.classList&&!g.includes(a)&&!l.includes(a)&&(a.isConnected!==n?(g.push(a),u(a,n)):l.push(a))}};for(let c=0;c<f.length;c++){let n=f[c],{addedNodes:r,removedNodes:a,type:v,target:k}=n;if(v==="attributes"){if(b.find($=>$.target===k))continue;b.push(n)}else p(r,!1),(!k.isConnected||!g.includes(k))&&p(a,!0)}if(!(!b.length&&!Object.keys(S).length)){for(let{oldValue:c,target:n}of b){let r=g.includes(n),a=n.classList,v=c?c.split(" "):[];if(r){if(n.isConnected)continue;for(let k of v)a.contains(k)||m(k)}else if(n.isConnected){a.forEach(k=>{v.includes(k)||d(k)});for(let k of v)a.contains(k)||m(k)}}for(let c in S){let n=S[c],r=(this.countBy[c]||0)+n;r===0?(delete this.countBy[c],this.delete(c)):(Object.prototype.hasOwnProperty.call(this.countBy,c)||this.insert(c),this.countBy[c]=r)}}}),this.observer.observe(t,{...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 t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],h=this.matches[i],{native:s}=o;if(h&&h.test(t))return{origin:"match",config:o};if(s&&t.startsWith(s+":"))return{origin:"match",config:o}}for(let i of this.semantics)if(t.match(i[0]))return{origin:"semantics",value:i[1]}}create(t){let i=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let h=this.match(o);if(h)return new ne(o,h,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(o=>i(o)):[i(t)]).filter(o=>o&&o.text)}refresh(t){if(t?.override?this.config=t:this.config=Z(se,t),this.cache(),!this.style)return;let i=document.createElement("style");i.id="master",this.style.replaceWith(i),this.style=i,this.rules.length=0,this.ruleBy={};for(let o in this.countBy)this.insert(o)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let i=this.style?.sheet,o=h=>{let s=this.ruleBy[h];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,h)&&this.classesBy[h].some(x=>Object.prototype.hasOwnProperty.call(this.countBy,x)))){if(i&&s.natives.length){let x=s.natives[0];for(let f=0;f<i.cssRules.length;f++)if(i.cssRules[f]===x.cssRule){for(let b=0;b<s.natives.length;b++)i.deleteRule(f);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[h],s.keyframeNames){let x=this.rules[0];for(let f of s.keyframeNames){let S=this.keyframes[f];if(!--S.count){let b=x.natives.indexOf(S.native);this.style.sheet.deleteRule(b),x.natives.splice(b,1),delete this.keyframes[f]}}x.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,h)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let h of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,h)||o(h);delete this.ruleBy[t]}else o(t)}insert(t){let i=this.create(t);return i.length?(this.insertRules(i),!0):!1}insertRules(t){for(let i of t){if(this.ruleBy[i.className])continue;let o,h=Object.keys(this.keyframes).length,s=this.rules.length-1,{media:x,order:f,priority:S,hasWhere:b,className:g}=i,l=(m,p,c)=>{let n=m;for(;n<=s;n++){let r=this.rules[n];if(p?.(r))return c?-1:n-1;if(c?.(r))return n}return c?-1:n-1},u,d;if(x){let m=this.rules.findIndex(p=>p.media);if(m===-1)o=s+1;else{let{"max-width":p,"min-width":c}=x.features;if(p||c){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(p&&c){if(S===-1?(u=l(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),d=l(n,r=>r.priority!==-1)):(u=l(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),d=s),u!==-1){let r=p.value-c.value,a=d,v=u;for(u=void 0;a>=v;a--){let{"max-width":k,"min-width":$}=this.rules[a].media.features,O=k.value-$.value;if(O<r)d=a-1;else if(O===r)u=a;else break}}if(u!==-1){let r=p.value-c.value;for(let a=d;a>=u;a--){let{"max-width":v,"min-width":k}=this.rules[a].media.features,$=v.value-k.value;if($<r)d=a-1;else if($>r){u=a+1;break}}}}else if(c){if(S===-1?(u=l(n,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"]),d=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(u=l(n,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),d=l(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),u!==-1)for(let r=d;r>=u;r--){let a=this.rules[r].media.features["min-width"].value;if(a>c.value)d=r-1;else if(a<c.value){u=r+1;break}}}else if(S===-1?(u=l(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),d=l(n,r=>r.media.features["min-width"]||r.priority!==-1)):(u=l(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),d=l(n,r=>r.media.features["min-width"]&&r.priority!==-1)),u!==-1)for(let r=d;r>=u;r--){let a=this.rules[r].media.features["max-width"].value;if(a<p.value)d=r-1;else if(a>p.value){u=r+1;break}}}else S===-1?(u=m,d=l(m,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(u=l(m,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),d=l(m,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let m=h?1:0;S===-1?(u=m,d=l(m,p=>p.media||p.priority!==-1)):(u=l(m,p=>p.media,p=>p.priority!==-1),d=l(m,p=>p.media))}if(o===void 0)if(u===-1)o=d+1;else{if(S===-1)for(let m=u;m<=d;m++){let p=this.rules[m];if(!(!b&&p.hasWhere)&&(b&&!p.hasWhere||p.order>=f)){o=m;break}}else for(let m=u;m<=d;m++){let p=this.rules[m];if(!(!b&&p.hasWhere)){if(b&&!p.hasWhere){o=m;break}if(p.priority<S){o=m;break}else if(p.priority===S){if(p.order>=f){o=m;break}}else o=m+1}}o===void 0&&(o=d+1)}if(this.rules.splice(o,0,i),this.ruleBy[g]=i,this.style){let m=this.style.sheet,p=0,c=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return c(n-1);let a=r.natives[r.natives.length-1].cssRule;for(let v=0;v<m.cssRules.length;v++)if(m.cssRules[v]===a){p=v+1;break}}};c(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];m.insertRule(r.text,p),r.cssRule=m.cssRules[p++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}if(i.keyframeNames){let m=this.style?.sheet;for(let p of i.keyframeNames)if(Object.prototype.hasOwnProperty.call(this.keyframes,p))this.keyframes[p].count++;else{let c={text:`@keyframes ${p}{`+Object.entries(this.config.keyframes[p]).map(([r,a])=>`${r}{${Object.entries(a).map(([v,k])=>v+":"+k).join(";")}}`).join("")+"}",theme:""},n;if(Object.keys(this.keyframes).length?(n=this.rules[0]).natives.push(c):this.rules.splice(0,0,n={natives:[c],get text(){return this.natives.map(r=>r.text).join("")}}),m){let r;for(let a=0;a<m.cssRules.length;a++){let v=m.cssRules[a];if(v.constructor.name!=="CSSKeyframesRule")break;if(v.name===p){r=v;break}}if(r)c.cssRule=r;else{let a=n.natives.length-1;m.insertRule(c.text,a),c.cssRule=m.cssRules[a]}}this.keyframes[p]={native:c,count:1}}}i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}};typeof window<"u"&&(window.MasterCSS=J);var De=`/** @type {import('@master/css').Config} */
2
+ module.exports = {
3
+ classes: {},
4
+ colors: {},
5
+ themes: {},
6
+ rules: {},
7
+ values: {},
8
+ semantics: {},
9
+ breakpoints: {},
10
+ mediaQueries: {},
11
+ keyframes: {},
12
+ selectors: {},
13
+ functions: {}
14
+ }
15
+ `;var Ae=`/** @type {import('@master/css').Config} */
16
+ export default {
17
+ classes: {},
18
+ colors: {},
19
+ themes: {},
20
+ rules: {},
21
+ values: {},
22
+ semantics: {},
23
+ breakpoints: {},
24
+ mediaQueries: {},
25
+ keyframes: {},
26
+ selectors: {},
27
+ functions: {}
28
+ }
29
+ `;var Ye=`import type { Config } from '@master/css'
30
+
31
+ export default {
32
+ classes: {},
33
+ colors: {},
34
+ themes: {},
35
+ rules: {},
36
+ values: {},
37
+ semantics: {},
38
+ breakpoints: {},
39
+ mediaQueries: {},
40
+ keyframes: {},
41
+ selectors: {},
42
+ functions: {}
43
+ } as Config
44
+ `;function ue(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,i={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,h)=>h%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(t,(h,s)=>i[s]))}function de(e,t){if(!e.length)return;let i=new J(t);for(let o of e)i.insert(o);return i.text}function ae(e,t){if(!e)return;let i=ue(e);if(i.length)return de(i,t)}function Le(e,t){return new J(e).observe(t)}function Ne(e,t){if(!e)return;let i=!1;if(e=e.replace(/(<style id="master">).*?(<\/style>)/,(h,s,x)=>(i=!0,s+ae(e,t)+x)),i)return e;let o=`<style id="master">${ae(e,t)}</style>`;return e.replace(/<\/head>/,`${o}$&`)}export{Ae as CONFIG_ESM_TEXT,De as CONFIG_TEXT,Ye as CONFIG_TS_TEXT,J as MasterCSS,ne as Rule,we as breakpoints,Se as colors,se as config,J as default,Z as extend,ue as extractClassesFromHTML,z as fillColorScale,je as functions,de as generateFromClasses,ae as generateFromHTML,Be as important,Le as initRuntime,Oe as keyframes,Me as override,Ne as renderHTML,ke as rootSize,Te as rules,Ce as scope,Re as selectors,$e as semantics,Ee as themeDriver};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
- export * from './core';
2
- export * from './rule';
3
- export * from './constants';
4
- export { MasterCSS as default } from './core';
1
+ export { MasterCSS, MasterCSS as default } from './core';
2
+ export { Rule, RuleConfig, RuleMeta, RuleNative, MediaFeatureRule, MediaQuery, PropValue, Declarations } from './rule';
3
+ export { CONFIG_TEXT } from './constants/config-text';
4
+ export { CONFIG_ESM_TEXT } from './constants/config-esm-text';
5
+ export { CONFIG_TS_TEXT } from './constants/config-ts-text';
5
6
  export { default as extend } from '@techor/extend';
6
- export * from './methods';
7
+ export { default as extractClassesFromHTML } from './functions/extract-classes-from-html';
8
+ export { default as fillColorScale } from './functions/fill-color-scale';
9
+ export { default as generateFromClasses } from './functions/generate-from-classes';
10
+ export { default as generateFromHTML } from './functions/generate-from-html';
11
+ export { default as initRuntime } from './functions/init-runtime';
12
+ export { default as renderHTML } from './functions/render-html';
7
13
  export * from './config';
package/dist/rule.d.ts CHANGED
@@ -20,7 +20,6 @@ export declare class Rule {
20
20
  }
21
21
  export interface Rule {
22
22
  prefix?: string;
23
- symbol?: string;
24
23
  token?: string;
25
24
  prefixSelectors?: string[];
26
25
  vendorSuffixSelectors?: Record<string, string[]>;
@@ -57,7 +56,7 @@ export interface MediaQuery {
57
56
  export declare type PropValue = string | number;
58
57
  export declare type Declarations = Record<string, PropValue | PropValue[] | Record<string, PropValue>>;
59
58
  export interface RuleMeta {
60
- origin?: 'match' | 'semantics' | 'symbol';
59
+ origin?: 'match' | 'semantics';
61
60
  value?: [string, string | Record<string, string>];
62
61
  config?: RuleConfig;
63
62
  }
@@ -65,7 +64,6 @@ export interface RuleConfig {
65
64
  id?: string;
66
65
  match?: string;
67
66
  separators?: string[];
68
- symbol?: string;
69
67
  colored?: boolean;
70
68
  unit?: any;
71
69
  native?: string | true;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/css","scripts":{"build":"techor pack --extra-external @master/css-compiler --shakable","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A Virtual CSS language with enhanced syntax ~13KB","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":["./dist/polyfills/*","./src/polyfills/*","./polyfills/css-escape","./polyfills/*"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/index.browser.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/cjs/bin/index.js","mastercss":"./dist/cjs/bin/index.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.159","@techor/fs":"^2.1.15","@techor/log":"^2.1.15","chokidar":"^3.5.3","commander":"^10.0.0","fast-glob":"^3.2.12","techor":"^2.1.15"},"devDependencies":{"@techor/extend":"^2.1.15","vite":"^4.2.1"},"version":"2.0.0-beta.159"}
1
+ {"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"npm run build -- --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"A markup-driven CSS language with enhanced syntax","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","browser":"./dist/index.browser.bundle.js","types":"./dist/index.d.ts","exports":{".":{"browser":{"import":"./dist/index.bundle.mjs","types":"./dist/index.browser.d.ts"},"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"bin":{"mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-beta.160","@techor/fs":"^2.4.1","@techor/log":"^2.4.1","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.4.1","shared":"","vite":"^4.2.1"},"version":"2.0.0-beta.160"}
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- var E=Object.create;var C=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var b=(t,o,i,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of P(o))!M.call(t,s)&&s!==i&&C(t,s,{get:()=>o[s],enumerable:!(e=I(o,s))||e.enumerable});return t};var m=(t,o,i)=>(i=t!=null?E(x(t)):{},b(o||!t||!t.__esModule?C(i,"default",{value:t,enumerable:!0}):i,t));var f=require("commander"),k=m(require("path")),S=m(require("chokidar")),a=m(require("fs")),u=require("../constants"),c=m(require("@techor/log")),y=require("@techor/fs"),F=m(require("fast-glob")),O=require("../methods/render-into-html"),v=require("../methods/render-from-html"),_=m(require("techor"));f.program.command("init").description("Initialize definition files for Master CSS").option("-c, --compiler","Comes with a `./master.css-compiler.*` for compiler options").option("-o, --override","Override existing definition file").option("-f, --format <esm,cjs,ts>","With ES Module / CommonJS / TypeScript").action(async function(t){let{format:o}=t;if(!o)if(a.default.existsSync("tsconfig.json"))o="ts";else{let{type:e}=(0,y.readFileAsJSON)("./package.json")||{};o=e==="module"?"esm":"cjs"}let i=(e,s)=>{let n=a.default.existsSync(k.default.join(process.cwd(),e));n?n&&t.override?(a.default.writeFileSync(e,s),c.default.ok`**${e}** file is overridden`):c.default.x`**${e}** file already exists`:(a.default.writeFileSync(e,s),c.default.ok`**${e}** file is created`)};switch(o){case"esm":i("master.css.mjs",u.CONFIG_ESM_TEXT);break;case"ts":i("master.css.ts",u.CONFIG_ESM_TEXT);break;default:i("master.css.js",u.CONFIG_TEXT)}if(t.compiler){let{OPTIONS_TEXT:e,OPTIONS_ESM_TEXT:s,OPTIONS_TS_TEXT:n}=await import("@master/css-compiler");switch(o){case"esm":i("master.css-compiler.mjs",s);break;case"ts":i("master.css-compiler.ts",n);break;default:i("master.css-compiler.js",e)}}});f.program.command("build",{isDefault:!0}).option("-w, --watch","Watch file changed and generate CSS rules.").option("-o, --output <path>","Specify your master CSS file output path","master.css").action(async function({watch:t,output:o}){let{MasterCSSCompiler:i}=await import("@master/css-compiler"),e=await new i().compile(),s=async r=>await e.insert(r,a.default.readFileSync(r,{encoding:"utf-8"})),n=()=>a.default.writeFileSync(o,e.css.text);if(t){let r=[],p=async()=>{let{include:l,exclude:j,sources:T}=e.options;l?.length&&w(S.default.watch(l,{ignored:j,ignoreInitial:!0})),T?.length&&w(S.default.watch(T,{ignoreInitial:!0})),n(),console.log(""),c.default`[sources] ${e.sources}`,c.default.tree(e.options)},d=async l=>{await s(l),n()},w=l=>{r.push(l.on("add",d).on("change",d))},h=async()=>{await Promise.all(r.map(l=>l.close())),r.length=0,await e.refresh(),await p()},g=[];e.resolvedConfigPath&&g.push(e.resolvedConfigPath),e.resolvedOptionsPath&&g.push(e.resolvedOptionsPath),g.length&&S.default.watch(g,{ignoreInitial:!0}).on("add",h).on("change",h).on("unlink",h),await p(),console.log(""),c.default.t`Start watching source changes`}else n(),console.log(""),c.default`[sources] ${e.sources}`,c.default.tree(e.options)});f.program.command("render").description("Manual to generate CSS rules").argument("<file path>","file path").option("-c --config").action(async function(t,o){let i=F.default.sync(t);if(i.length){let s=new _.default({config:o.config}).readConfig();await Promise.all(i.map(async n=>{let r=!1,p=a.default.readFileSync(n,{encoding:"utf-8"}),d=p.replace(/(<style id="master">).*?(<\/style>)/,(w,h,g)=>(r=!0,h+(0,v.renderFromHTML)(p,s)+g));r||(d=(0,O.renderIntoHTML)(p,s)),p!==d&&a.default.writeFileSync(n,d)}))}});var{version:X,name:$,description:W}=(0,y.readFileAsJSON)("../../../package.json",{cwd:__dirname})||{};f.program.name($);f.program.description(W);f.program.version(X);f.program.parse();
@@ -1 +0,0 @@
1
- var t=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var r=(s,x)=>{for(var o in x)t(s,o,{get:x[o],enumerable:!0})},a=(s,x,o,e)=>{if(x&&typeof x=="object"||typeof x=="function")for(let l of n(x))!p.call(s,l)&&l!==o&&t(s,l,{get:()=>x[l],enumerable:!(e=m(x,l))||e.enumerable});return s};var b=s=>a(t({},"__esModule",{value:!0}),s);var d={};r(d,{breakpoints:()=>c});module.exports=b(d);var c={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};0&&(module.exports={breakpoints});
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var n=(a,e)=>{for(var d in e)c(a,d,{get:e[d],enumerable:!0})},s=(a,e,d,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let b of r(e))!i.call(a,b)&&b!==d&&c(a,b,{get:()=>e[b],enumerable:!(l=o(e,b))||l.enumerable});return a};var t=a=>s(c({},"__esModule",{value:!0}),a);var p={};n(p,{colors:()=>g});module.exports=t(p);var f=require("../methods/fill-color-scale"),g={black:"#000000",white:"#ffffff",slate:(0,f.fillColorScale)({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:(0,f.fillColorScale)({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:(0,f.fillColorScale)({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:(0,f.fillColorScale)({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:(0,f.fillColorScale)({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:(0,f.fillColorScale)({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:(0,f.fillColorScale)({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:(0,f.fillColorScale)({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:(0,f.fillColorScale)({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:(0,f.fillColorScale)({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:(0,f.fillColorScale)({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:(0,f.fillColorScale)({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:(0,f.fillColorScale)({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:(0,f.fillColorScale)({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:(0,f.fillColorScale)({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:(0,f.fillColorScale)({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:(0,f.fillColorScale)({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:(0,f.fillColorScale)({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:(0,f.fillColorScale)({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:(0,f.fillColorScale)({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};0&&(module.exports={colors});
@@ -1 +0,0 @@
1
- var m=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var X=(n,i)=>{for(var a in i)m(n,a,{get:i[a],enumerable:!0})},Y=(n,i,a,f)=>{if(i&&typeof i=="object"||typeof i=="function")for(let o of C(i))!R.call(n,o)&&o!==a&&m(n,o,{get:()=>i[o],enumerable:!(f=V(i,o))||f.enumerable});return n};var Z=n=>Y(m({},"__esModule",{value:!0}),n);var x={};X(x,{functions:()=>v});module.exports=Z(x);var v={$:{name:"var",transform(n){return"--"+n}},calc:{transform(n){let i=this.values,a=this.css.globalValues,f=this.css.config.functions,o=this,u=0,l="",e="";return function w(p,b){let g=!1,r=(t,s=!1,d=!1)=>{if(t!=="("&&(i&&e in i?e=i[e].toString():a&&e in a&&(e=a[e].toString())),e&&!g&&!b){let c=o.analyzeUnitValue(e,f.calc.unit);c&&(e=c.value+c.unit)}l+=e+(s&&n[u-1]!==" "?" ":"")+t+(d&&n[u+1]!==" "?" ":""),e="",g=!1};for(;u<n.length;u++){let t=n[u];if(t==="("){let s=e,d=g,c=l.length;if(r(t),u++,w(s,d||b),s!=="calc"){let h=f[s];if(h){let k=l.slice(c+2,l.length-1);l=l.slice(0,c-s.length+1)+(h.name??s)+"("+(h.transform?.(k)??k)+")"}}}else if(t===")"){r(t);break}else if(t===",")r(t,!1,!0);else if(t===" ")r(t);else{let s=n[u-1];switch(t){case"+":!e&&s!==")"?e+=t:r(t,!0,!0);break;case"-":p==="var"||!e&&s!==")"?e+=t:r(t,!0,!0);break;case"*":r(t,!0,!0);break;case"/":r(t,!0,!0),g=!0;break;default:e+=t;break}}}u>=n.length-1&&r("")}("",!1),l}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},repeat:{unit:""}};0&&(module.exports={functions});
@@ -1 +0,0 @@
1
- var n=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var f=(o,t)=>{for(var e in t)n(o,e,{get:t[e],enumerable:!0})},i=(o,t,e,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of s(t))!c.call(o,a)&&a!==e&&n(o,a,{get:()=>t[a],enumerable:!(p=r(t,a))||p.enumerable});return o};var l=o=>i(n({},"__esModule",{value:!0}),o);var x={};f(x,{important:()=>m});module.exports=l(x);var m=!1;0&&(module.exports={important});
@@ -1 +0,0 @@
1
- var t=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var v=(r,e)=>{for(var o in e)t(r,o,{get:e[o],enumerable:!0})},B=(r,e,o,b)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of h(e))!R.call(r,s)&&s!==o&&t(r,s,{get:()=>e[s],enumerable:!(b=S(e,s))||b.enumerable});return r};var Q=r=>B(t({},"__esModule",{value:!0}),r);var M={};v(M,{breakpoints:()=>i.breakpoints,colors:()=>n.colors,config:()=>x,functions:()=>d.functions,important:()=>y.important,keyframes:()=>k.keyframes,observe:()=>u.observe,override:()=>f.override,rootSize:()=>m.rootSize,rules:()=>l.rules,scope:()=>a.scope,selectors:()=>p.selectors,semantics:()=>c.semantics,themeDriver:()=>C.themeDriver,themes:()=>g.themes});module.exports=Q(M);var i=require("./breakpoints"),n=require("./colors"),m=require("./root-size"),a=require("./scope"),p=require("./selectors"),c=require("./semantics"),g=require("./themes"),l=require("./rules"),f=require("./override"),u=require("./observe"),y=require("./important"),k=require("./keyframes"),d=require("./functions"),C=require("./themeDriver"),x={breakpoints:i.breakpoints,colors:n.colors,rootSize:m.rootSize,scope:a.scope,selectors:p.selectors,semantics:c.semantics,themes:g.themes,rules:l.rules,override:f.override,observe:u.observe,important:y.important,functions:d.functions,keyframes:k.keyframes,themeDriver:C.themeDriver};0&&(module.exports={breakpoints,colors,config,functions,important,keyframes,observe,override,rootSize,rules,scope,selectors,semantics,themeDriver,themes});
@@ -1 +0,0 @@
1
- var n=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(a,t)=>{for(var o in t)n(a,o,{get:t[o],enumerable:!0})},i=(a,t,o,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of m(t))!f.call(a,r)&&r!==o&&n(a,r,{get:()=>t[r],enumerable:!(e=s(t,r))||e.enumerable});return a};var l=a=>i(n({},"__esModule",{value:!0}),a);var g={};c(g,{keyframes:()=>p});module.exports=l(g);var p={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"}}};0&&(module.exports={keyframes});
@@ -1 +0,0 @@
1
- var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(o,e)=>{for(var t in e)s(o,t,{get:e[t],enumerable:!0})},v=(o,e,t,b)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of n(e))!p.call(o,r)&&r!==t&&s(o,r,{get:()=>e[r],enumerable:!(b=c(e,r))||b.enumerable});return o};var x=o=>v(s({},"__esModule",{value:!0}),o);var d={};u(d,{observe:()=>a});module.exports=x(d);var a=!0;0&&(module.exports={observe});
@@ -1 +0,0 @@
1
- var t=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var i=(o,e)=>{for(var s in e)t(o,s,{get:e[s],enumerable:!0})},l=(o,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of d(e))!f.call(o,r)&&r!==s&&t(o,r,{get:()=>e[r],enumerable:!(a=c(e,r))||a.enumerable});return o};var n=o=>l(t({},"__esModule",{value:!0}),o);var v={};i(v,{override:()=>p});module.exports=n(v);var p=!1;0&&(module.exports={override});
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var x=(t,o)=>{for(var r in o)c(t,r,{get:o[r],enumerable:!0})},z=(t,o,r,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of p(o))!s.call(t,e)&&e!==r&&c(t,e,{get:()=>o[e],enumerable:!(i=n(o,e))||i.enumerable});return t};var S=t=>z(c({},"__esModule",{value:!0}),t);var b={};x(b,{rootSize:()=>a});module.exports=S(b);var a=16;0&&(module.exports={rootSize});