@master/css 2.0.0-beta.185 → 2.0.0-beta.187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/config/index.d.ts +9 -34
- package/dist/config/rules.d.ts +6189 -270
- package/dist/config/styles.d.ts +3 -0
- package/dist/config/variables.d.ts +1 -1
- package/dist/core.d.ts +1 -2
- package/dist/index.browser.bundle.js +1 -1
- package/dist/index.bundle.js +4 -4
- package/dist/index.bundle.mjs +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/rule.d.ts +51 -4
- package/package.json +1 -1
package/dist/index.bundle.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function Ne(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Se(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 we(e){let t=[];return e.forEach(function(s,o){typeof s=="object"&&s!==null?Array.isArray(s)?t[o]=we(s):Ne(s)?t[o]=Se(s):t[o]=ae({},s):t[o]=s}),t}function Oe(e,t){return t==="__proto__"?void 0:e[t]}function ae(...e){let t={},s,o;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(a){if(o=Oe(t,a),s=Oe(l,a),s!==t)if(typeof s!="object"||s===null){t[a]=s;return}else if(Array.isArray(s)){t[a]=we(s);return}else if(Ne(s)){t[a]=Se(s);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[a]=ae({},s);return}else{t[a]=ae(o,s);return}})}),t}var ne={"(":")","'":"'",'"':'"',"{":"}"};function ce(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),s=t.length,o=-1,l="",a,u=t.charCodeAt(0);if(s==1&&u==45)return"\\"+t;for(;++o<s;){if(a=t.charCodeAt(o),a==0){l+="\uFFFD";continue}if(a>=1&&a<=31||a==127||o==0&&a>=48&&a<=57||o==1&&a>=48&&a<=57&&u==45){l+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){l+=t.charAt(o);continue}l+="\\"+t.charAt(o)}return l}function Ce(e,t){let s=t.endsWith("%")?parseFloat(t)/100:+t;return s=isNaN(s)?1:Math.min(Math.max(s,0),1),e+Math.round(s*255).toString(16).toUpperCase().padStart(2,"0")}var ke=(l=>(l[l.NativeShorthand=-300]="NativeShorthand",l[l.Shorthand=-200]="Shorthand",l[l.Native=-100]="Native",l[l.Normal=0]="Normal",l))(ke||{}),je=(a=>(a[a.Semantic=-401]="Semantic",a[a.NativeShorthand=-301]="NativeShorthand",a[a.Shorthand=-201]="Shorthand",a[a.Native=-101]="Native",a[a.Normal=-1]="Normal",a))(je||{});var _e=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,de=class{constructor(t,s={},o){this.className=t;this.options=s;this.css=o;let{layer:l,unit:a,colored:u,resolvedPropName:d,analyze:c,transform:g,declare:v,create:f,order:b,id:y}=this.options;this.order=b,this.options.unit||(this.options.unit=""),this.options.separators||(this.options.separators=[","]);let{scope:m,important:p,functions:n,themeDriver:i}=o.config,{themeNames:r,colorNames:h,colors:N,selectors:x,mediaQueries:O,stylesBy:M,animations:T}=o,z=M[t];f&&f.call(this,t);let Y=this.options.declarations,Z,te,X,_,Q=u;if(l===-401)X=t.slice(y.length-1);else{let W;if(c)[W,te]=c.call(this,t);else{let $=t.indexOf(":");this.prefix=t.slice(0,$+1),W=t.slice($+1)}_=[];let A=this,I=this.options.resolvedVariables,F=[","];this.options.separators.length&&F.push(...this.options.separators);let j="",B=0;(function $(P,R,C,S=void 0,w=[],V=[],E){let k=S===void 0,H,K=L=>L==="'"||L==='"',re=()=>H=j.length,J=()=>{if(j){let L=j,q=k?L:j.slice(H);if(j="",oe="",I&&q in I&&!w.includes(q)){let U=B;B=0,$(I[q].toString(),R,void 0,S,[...w,q],V,E),B=U,k||(j=L.slice(0,H)+j)}else if(k){let U=!E&&A.resolveUnitValue(q,R);_.push({value:U?.value??q,unit:U?.unit})}else{let U=!E&&A.resolveUnitValue(q,R);j=U?L.slice(0,H)+U.value+U.unit:L}re()}},ie=K(C);re();let oe="";for(;B<P.length;B++){let L=P[B];if(L===C){if(ie){j+=L;let q=0;for(let U=j.length-2;j[U]==="\\";U--)q++;if(q%2)continue}else J(),j+=L;return}else if(!ie&&L in ne){let q=L==="("&&oe&&n?.[oe];!Q&&q?.colored&&(Q=!0),j+=L,B++;let U=ne[L];$(P,q?.unit??R,U,oe||S||"",w,V,E||!!q?.transform),q?.transform&&(j=q.transform.call(A,j.slice(0,H+oe.length+1),j.slice(H+oe.length+1,-1),j.slice(-1))),k&&(K(U)?(_.push(j),j=""):J()),oe=""}else if((L==="|"||L===" ")&&C!=="}"&&(!ie||S==="path"))J(),k||(j+=" ",H++);else{if(!ie){if(L===".")if(isNaN(+P[B+1])){if(k)break}else P[B-1]==="-"&&(j+="0");else if(F.includes(L)){J(),k?_.push(L):(j+=L,H++);continue}else if(k&&(L==="#"&&(j||_.length&&P[B-1]!=="|"&&_[B-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(L)))break;oe+=L}j+=L}}S===void 0&&J()})(W,a),X=W.slice(B)}X[0]==="!"&&(this.important=!0,X=X.slice(1));let G=(W,A)=>{let I=(R,C,S,w)=>{for(let[V,E]of C)if(V.test(R)){for(let k of E)I(R.replace(V,k),C,S,!0);return}w&&S.push(R)},F=R=>{let C=R.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((E,k)=>k%3?E:E.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),S=[],w="",V=0;for(let E=0;E<C.length;E++){let k=C[E];if(k==="\\"){w+=k+C[++E];continue}!V&&k===","?(S.push(w),w=""):(w+=k,V&&k===")"?V--:k==="("&&V++)}return w&&S.push(w),S},j=[];""in x?I(W,x[""],j,!0):j.push(W);let B={};for(let[R,C]of Object.entries(x)){if(!R)continue;let S=[];for(let w of j)I(w,C,S,!1);S.length&&(B[R]=S)}let $=(R,C)=>{let S=C.reduce((w,V)=>(w.push(...F(V)),w),[]);R in A?A[R].push(...S):A[R]=S},P=Object.keys(B);if(P.length)for(let R of P)$(R,B[R]);else $("",j)};te?(this.vendorPrefixSelectors={},G(te,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let se=X.split("@"),me=se[0];if(me){this.vendorSuffixSelectors={},G(me,this.vendorSuffixSelectors);for(let W of Object.values(this.vendorSuffixSelectors))for(let A of W){this.hasWhere!==!1&&(this.hasWhere=A.includes(":where("));let I=[":disabled",":active",":focus",":hover"];for(let F=0;F<I.length;F++)if(A.includes(I[F])){(this.priority===-1||this.priority>F)&&(this.priority=F);break}}}else this.vendorSuffixSelectors={"":[""]};let le={},$e=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Re=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if($e)le[""]=Re?[""]:Object.keys(this.vendorSuffixSelectors);else if(Re)for(let W in this.vendorPrefixSelectors)le[W]=[""];else for(let W in this.vendorPrefixSelectors){let A=le[W]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,W))A.push(W);else for(let I in this.vendorSuffixSelectors)A.push(I)}for(let W=1;W<se.length;W++){let A=se[W];if(A)if(A==="rtl"||A==="ltr")this.direction=A;else{let I,F,j=_e.exec(A);if(j)I=j[1],F=A.slice(I.length);else{this.media={token:A,features:{}};let B=[],$=R=>{if(R==="all"||R==="print"||R==="screen"||R==="speech")this.media.type=R;else if(R==="\u{1F5A8}")this.media.type="print";else if(R==="landscape"||R==="portrait")B.push("(orientation:"+R+")");else if(R==="motion"||R==="reduced-motion")B.push("(prefers-reduced-motion:"+(R==="motion"?"no-preference":"reduce")+")");else{let C=O[R];if(C&&typeof C=="string")B.push(C);else{let S={token:R},w="",V="",E=0;R.startsWith("<=")?(V="<=",w="max-width"):R.startsWith(">=")||C?(V=">=",w="min-width"):R.startsWith(">")?(V=">",w="min-width",E=.02):R.startsWith("<")&&(V="<",w="max-width",E=-.02);let k=V?R.replace(V,""):R,H=O[k];switch(w){case"max-width":case"min-width":H?Object.assign(S,this.resolveUnitValue(H.toString(),"px")):Object.assign(S,this.resolveUnitValue(k,"px")),S.unit==="px"&&(S.value+=E),this.media.features[w]=S,B.push("("+w+":"+(S.value+S.unit)+")");break}}}},P=A.includes("&");if(P){let R=A.split("&");for(let C of R)$(C)}else $(A);if(this.media.type&&(F=this.media.type),B.length&&(F=B.join(" and ")),F)I="media";else if(!P){this.theme=A;continue}}F&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+F.replace(/\|/g," "))}}let ve=(W,A)=>{let I,F=($,P,R,C)=>{let S="";this.direction&&(S+="[dir="+this.direction+"] ");let w=R.map(k=>k+S),V=(k,H)=>w.map(K=>(k&&i!=="media"?i==="host"?`:host(.${k}) `:`.${k} `:"")+(m?m+" ":"")+K).reduce((K,re)=>(K.push(C.reduce((J,ie)=>(J.push(re+"."+ce(H)+ie),J),[]).join(",")),K),[]).join(","),E=V(P,t)+(z?z.reduce((k,H)=>k+","+V(this.theme??(Q||Z?P:""),H),""):"")+"{"+$+"}";for(let k of Object.keys(this.at).sort((H,K)=>K==="supports"?-1:1))E="@"+k+(k.includes(" ")?"":" ")+this.at[k]+"{"+E+"}";return P&&i==="media"&&(E=`@media(prefers-color-scheme:${P}){`+E+"}"),E},j=[];if(_){let $=[this.theme??W,""],P,R=!1;for(let C of _)if(typeof C=="string")j.push(C);else{let S=C.value;if(C.unit)S+=C.unit;else if(Q&&N&&h){let w=!1;S=S.replace(o.colorTokenRegExp,(V,E,k,H)=>{let K=N[k];if(K){let re,J;for(let ie of $)if(re=K[ie]){J=ie;break}if(re)return w=!A||J===W,P||(P=w),E+(H?Ce(re,H):re);R=!0}return V})}j.push(S)}if(A&&(R||(P===void 0?W:!P)))return;if(I=j.reduce((C,S,w)=>C+S+(S===","||_[w+1]===","||w===_.length-1?"":" "),""),g&&(I=g.call(this,I,this.css.config)),v){let C,S;if(_.length===1){let w=_[0];typeof w=="object"&&(C=w.value,S=w.unit)}Y=v.call(this,S?C:I,S||"")}else d&&(Y={[d]:I})}let B={};for(let $ in Y){let P=(S,w)=>{if(T&&(w.startsWith("animation")||w.startsWith("animation-name"))){let E=w.split(":")[1].split("!important")[0].split(" ").filter(k=>k in this.css.animations&&(!this.animationNames||!this.animationNames.includes(k)));E.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...E))}let V=w+((this.important||p)&&!w.endsWith("!important")?"!important":"");S in B?B[S].push(V):B[S]=[V]},R=$+":",C=Y[$];if(typeof C=="object")if(Array.isArray(C))for(let S of C)P(W,R+S.toString());else{Z=!0;for(let S in C)P(S,R+C[S])}else P(W,R+C.toString())}for(let $ in le)for(let P of le[$])for(let R in B)this.natives.push({text:F(B[R].join(";"),R,this.vendorPrefixSelectors[$],this.vendorSuffixSelectors[P]),theme:R})};if(this.theme)ve(this.theme,!1);else if(Q)for(let W of r)ve(W,!0);else ve("",!1)}at={};priority=-1;natives=[];order=0;animationNames;get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,s){return Number.isNaN(+t)?t:t/(s==="rem"||s==="em"?this.css.config.rootSize:1)+s}resolveUnitValue(t,s){let o=s??this.options.unit,l="",a;if(typeof t=="number")return o&&!l?((o==="rem"||o==="em")&&(a=t/this.css.config.rootSize),l=o||""):a=t,{value:a,unit:l};if(o){if(/^\d+\/\d+/.test(t)){let[d,c]=t.split("/");return{value:+d/+c*100+"%",unit:l}}let u=t.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(u){let d=+u[1];return l=u[3]||"",l||((o==="rem"||o==="em")&&(d=d/this.css.config.rootSize),l=o||""),{value:d,unit:l}}}}};var Fe={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Te=Fe;function ue(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 pe(e,t,s){return((1<<24)+(e<<16)+(t<<8)+s).toString(16).slice(1)}function D(e){typeof e=="string"&&(e={"":e});let t=""in e,s=!1;for(let o in e)if(o&&+o>=100){s=!0;break}if(!s&&(!t||Object.keys(e).length>1)){let o=0,l="0"in e?ue(e[0]):[0,0,0],a,u,d=[],c=()=>{let g=a-o,v=u.map((f,b)=>(f-l[b])/g);for(let f of d){let b=f-o,y=l.map((m,p)=>Math.round(m+v[p]*b));e[f]="#"+pe.call(this,...y)}};for(let g=1;g<100;g++)g in e?(d.length?(a=g,u=ue(e[g]),c(),d.length=0,l=u):l=ue(e[g]),o=g):d.push(g);d.length&&(a=100,u="100"in e?ue(e[100]):[255,255,255],c())}return t||(e[""]=e[s?"500":"50"]),e}var He={black:"#000000",white:"#ffffff",current:"currentColor",transparent:"transparent",slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},Me=He;var Ye={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},Be=Ye;var Xe={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},Ee=Xe;var Qe={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"}}},Ae=Qe;var qe={fontFamily:{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},fontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},box:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},Pe=qe;var Ue={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,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={},s=(g,v)=>{let f=v.indexOf(":");if(f!==-1){g in t||(t[g]={});let b=t[g],y=v.slice(0,f);y in b||(b[y]=v.slice(f+1))}},o=g=>{let v=(f,b)=>{let y=b.slice(ce(g.className).length).match(/\{(.*)\}/)[1].split(";");for(let m of y)s(f,m)};if(this.theme){let f=g.natives.find(b=>b.theme===this.theme)??g.natives.find(b=>!b.theme);f&&v(this.theme,f.text)}else for(let f of g.natives)v(f.theme,f.text);if(g.animationNames){this.animationNames||(this.animationNames=[]);for(let f of g.animationNames)this.animationNames.includes(f)||this.animationNames.push(f)}},l=[],a="",u=()=>{a&&(l.push(a.replace(/ /g,"|")),a="")},d=1;(function g(v){for(;d<e.length;d++){let f=e[d];if(!v){if(f===";"){u();continue}if(f==="}")break}if(a+=f,v===f){if(v==="'"||v==='"'){let b=0;for(let y=a.length-2;a[y]==="\\";y--)b++;if(b%2)continue}break}else f in ne&&v!=="'"&&v!=='"'&&(d++,g(ne[f]))}})(void 0),u();for(let g of l){let v=this.css.create(g);if(Array.isArray(v))if(v.length)for(let f of v)o(f);else s(this.theme??"",g);else o(v)}let c={};for(let g in t)for(let[v,f]of Object.entries(t[g]))v in c?c[v][g]=f:c[v]={[g]:f};return c}},variable:{match:/^\$[\w-]+:./,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101},fontFamily:{match:["f(?:ont)?"],layer:-101},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(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"]],layer:-101,unit:"deg"},fontVariantNumeric:{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-101},fontVariant:{layer:-301},fontFeatureSettings:{match:/^font-feature:./,layer:-101},font:{match:/^f:./,layer:-301,variables:["fontFamily","fontVariant","fontWeight","fontSize","fontStyle","lineHeight"]},color:{match:/^(?:color|fg|foreground):./,layer:-101,colored:!0},marginLeft:{match:/^ml:./,layer:-101,unit:"rem",variables:["spacing"]},marginRight:{match:/^mr:./,layer:-101,unit:"rem",variables:["spacing"]},marginTop:{match:/^mt:./,layer:-101,unit:"rem",variables:["spacing"]},marginBottom:{match:/^mb:./,layer:-101,unit:"rem",variables:["spacing"]},marginX:{match:/^(?:mx|margin-x):./,unit:"rem",layer:-201,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}},variables:["spacing"]},marginY:{match:/^(?:my|margin-y):./,unit:"rem",layer:-201,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}},variables:["spacing"]},margin:{match:/^m:./,unit:"rem",layer:-301,variables:["spacing"]},marginInlineStart:{match:/^mis:./,layer:-101,unit:"rem",variables:["spacing"]},marginInlineEnd:{match:/^mie:./,layer:-101,unit:"rem",variables:["spacing"]},marginInline:{match:/^mi:./,unit:"rem",layer:-301,variables:["spacing"]},paddingLeft:{match:/^pl:./,layer:-101,unit:"rem",variables:["spacing"]},paddingRight:{match:/^pr:./,layer:-101,unit:"rem",variables:["spacing"]},paddingTop:{match:/^pt:./,layer:-101,unit:"rem",variables:["spacing"]},paddingBottom:{match:/^pb:./,layer:-101,unit:"rem",variables:["spacing"]},paddingX:{match:/^(?:px|padding-x):./,unit:"rem",layer:-201,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}},variables:["spacing"]},paddingY:{match:/^(?:py|padding-y):./,unit:"rem",layer:-201,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}},variables:["spacing"]},padding:{match:/^p:./,unit:"rem",layer:-301,variables:["spacing"]},paddingInlineStart:{match:/^pis:./,layer:-101,unit:"rem",variables:["spacing"]},paddingInlineEnd:{match:/^pie:./,layer:-101,unit:"rem",variables:["spacing"]},paddingInline:{match:/^pi:./,unit:"rem",layer:-301,variables:["spacing"]},flexBasis:{variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"box"],unit:"rem",layer:-101},flexWrap:{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-101},flexGrow:{layer:-101},flexShrink:{layer:-101},flexDirection:{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-101,variables:{col:"column","col-reverse":"column-reverse"}},flex:{layer:-301},display:{match:/^d:./,layer:-101},width:{match:/^w:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"box"]},Height:{match:/^h:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"box"]},minWidth:{match:/^min-w:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"box"]},minHeight:{match:/^min-h:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"box"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,s]=e.split(" x ");return{width:t,height:s}}},minBox:{match:/^min:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,s]=e.split(" x ");return{"min-width":t,"min-height":s}}},maxBox:{match:/^max:./,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,s]=e.split(" x ");return{"max-width":t,"max-height":s}}},boxSizing:{match:/^box:./,layer:-101,variables:{content:"content-box",border:"border-box"}},boxDecorationBreak:{match:["box",["slice","clone"]],layer:-101,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},contain:{layer:-101},content:{layer:-101},counterIncrement:{layer:-101},counterReset:{layer:-101},letterSpacing:{match:/^ls:./,layer:-101,unit:"em"},lineHeight:{match:/^lh:./,layer:-101},objectFit:{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-101},objectPosition:{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-101},textAlign:{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-101},textDecorationColor:{match:["text-decoration"],layer:-101,colored:!0},textDecorationStyle:{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-101},textDecorationThickness:{match:["text-decoration",["from-font"]],numeric:!0,layer:-101,unit:"em"},textDecorationLine:{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-101},textDecoration:{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-301},textUnderlineOffset:{unit:"rem",layer:-101,variables:["spacing"]},textOverflow:{match:["t(?:ext)?",["ellipsis","clip"]],layer:-101},textOrientation:{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-101},textTransform:{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-101},textRendering:{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-101},textIndent:{unit:"rem",layer:-101},verticalAlign:{match:/^(?:v|vertical):./,layer:-101},columns:{match:/^(?:columns|cols):./,layer:-301},whiteSpace:{layer:-101},top:{layer:-101,unit:"rem",variables:["spacing"]},bottom:{layer:-101,unit:"rem",variables:["spacing"]},left:{layer:-101,unit:"rem",variables:["spacing"]},right:{layer:-101,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-301,variables:["spacing"]},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",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"box"]},maxWidth:{match:/^max-w:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"box"]},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-301,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:./,layer:-101},position:{layer:-101,variables:{abs:"absolute",rel:"relative"}},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{layer:-101,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:/^s(?:hadow)?:./,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:["transform",["flat","preserve-3d"]],layer:-101},transformOrigin:{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-101},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-101,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},transitionProperty:{match:/^~property:./,layer:-101},transitionTimingFunction:{match:/^~easing:./,layer:-101},transitionDuration:{match:/^~duration:./,layer:-101,unit:"ms"},transitionDelay:{match:/^~delay:./,layer:-101,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},layer:-301},animationDelay:{match:/^@delay:./,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:./,layer:-101,variables:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:/^@duration:./,layer:-101,unit:"ms"},animationFillMode:{match:/^@fill:./,layer:-101},animationIterationCount:{match:/^@iteration:./,layer:-101},animationName:{match:/^@name:./,layer:-101},animationPlayState:{match:/^@play:./,layer:-101},animationTimingFunction:{match:/^@easing:./,layer:-101},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-301,analyze(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"]],layer:-101},borderSpacing:{unit:"rem",layer:-101},borderTopColor:{match:["b(?:t|order-top(?:-color)?)"],layer:-101,colored:!0},borderBottomColor:{match:["b(?:b|order-bottom(?:-color)?)"],layer:-101,colored:!0},borderLeftColor:{match:["b(?:l|order-left(?:-color)?)"],layer:-101,colored:!0},borderRightColor:{match:["b(?:r|order-right(?:-color)?)"],layer:-101,colored:!0},borderXColor:{match:["b(?:x|order-x(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:["b(?:order)?(?:-color)?"],layer:-301,colored:!0},borderTopLeftRadius:{match:/^r(?:tl|lt):./,unit:"rem",layer:-101},borderTopRightRadius:{match:/^r(?:tr|rt):./,unit:"rem",layer:-101},borderBottomLeftRadius:{match:/^r(?:bl|lb):./,unit:"rem",layer:-101},borderBottomRightRadius:{match:/^r(?:br|rb):./,unit:"rem",layer:-101},borderTopRadius:{match:/^rt:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:/^rb:./,unit:"rem",layer:-201,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:/^rl:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:/^rr:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:/^r:./,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:["b(?:order)?(?:-style)?",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-301},borderTopWidth:{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderBottomWidth:{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderLeftWidth:{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderRightWidth:{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderXWidth:{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-301},borderImageOutset:{unit:"rem",layer:-101},borderImageRepeat:{match:["border-image",["stretch","repeat","round","space"]],layer:-101},borderImageSlice:{layer:-101},borderImageSource:{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-101},borderImageWidth:{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-101},borderImage:{layer:-301},borderTop:{match:/^bt:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:/^bb:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:/^bl:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:/^br:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:/^(?:bx|border-x):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:/^(?:by|border-y):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:./,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},layer:-301},backgroundAttachment:{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-101},backgroundBlendMode:{layer:-101},backgroundColor:{match:["(?:bg|background)"],layer:-101,colored:!0},backgroundClip:{match:["(?:bg|background)",["text"]],layer:-101,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},variables:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-101,unit:"px"},backgroundRepeat:{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-101},backgroundSize:{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-101},backgroundImage:{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},background:{match:/^bg:./,colored:!0,layer:-301},gradient:{match:/^gradient\(/,layer:-101,colored:!0,declare(e){return{"background-image":"linear-"+e}}},mixBlendMode:{match:/^blend:./,layer:-101},backdropFilter:{match:/^bd:./,layer:-101,colored:!0,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)\(/,layer:-101,colored:!0},fill:{match:/^fill:./,layer:-101,colored:!0},strokeDasharray:{layer:-101},strokeDashoffset:{layer:-101,variables:["spacing"]},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101,variables:["spacing"]},y:{layer:-101,variables:["spacing"]},cx:{layer:-101,variables:["spacing"]},cy:{layer:-101,variables:["spacing"]},rx:{layer:-101},ry:{layer:-101},gridColumnStart:{match:/^grid-col-start:./,layer:-101},gridColumnEnd:{match:/^grid-col-end:./,layer:-101},gridColumn:{match:/^grid-col(?:umn)?(?:-span)?:./,layer:-301,transform(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))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:./,layer:-301,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))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:./,layer:-101,variables:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:/^grid-flow:./,layer:-101},gridAutoRows:{variables:{min:"min-content",max:"max-content"},layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:./,layer:-101,unit:"rem",variables:{min:"min-content",max:"max-content"}},gridTemplateRows:{layer:-101,unit:"rem",variables:{min:"min-content",max:"max-content"}},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:./,unit:"rem",layer:-101,variables:["spacing"]},rowGap:{match:/^gap-y:./,unit:"rem",layer:-101,variables:["spacing"]},gap:{unit:"rem",layer:-301,variables:["spacing"]},order:{match:/^o:./,layer:-101,variables:{first:-999999,last:999999}},breakInside:{layer:-101},breakBefore:{layer:-101},breakAfter:{layer:-101},aspectRatio:{match:/^aspect:./,layer:-101},columnSpan:{match:/^col-span:./,layer:-101},alignContent:{match:/^ac:./,layer:-101},alignItems:{match:/^ai:./,layer:-101},alignSelf:{match:/^as:/,layer:-101},justifyContent:{match:/^jc:./,layer:-101},justifyItems:{match:/^ji:./,layer:-101},justifySelf:{match:/^js:./,layer:-101},placeContent:{layer:-301},placeItems:{layer:-301},placeSelf:{layer:-301},listStylePosition:{match:["list-style",["inside","outside"]],layer:-101},listStyleType:{match:["list-style",["disc","decimal"]],layer:-101},listStyleImage:{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},listStyle:{layer:-301},outlineColor:{match:["outline"],layer:-101,colored:!0},outlineOffset:{unit:"rem",layer:-101,variables:["spacing"]},outlineStyle:{match:["outline",["dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},outlineWidth:{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-101},outline:{unit:"rem",layer:-301,colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},variables:["outlineWidth","outlineStyle","outlineOffset","outlineColor"]},accentColor:{match:/^accent:./,layer:-101,colored:!0},appearance:{layer:-101},caretColor:{match:/^caret:./,layer:-101,colored:!0},scrollBehavior:{layer:-101},scrollMarginLeft:{match:/^scroll-ml:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginRight:{match:/^scroll-mr:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginTop:{match:/^scroll-mt:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginBottom:{match:/^scroll-mb:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}},variables:["spacing"]},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}},variables:["spacing"]},scrollMargin:{match:/^scroll-m:./,unit:"rem",layer:-301,variables:["spacing"]},scrollPaddingLeft:{match:/^scroll-pl:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingRight:{match:/^scroll-pr:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingTop:{match:/^scroll-pt:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingBottom:{match:/^scroll-pb:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}},variables:["spacing"]},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}},variables:["spacing"]},scrollPadding:{match:/^scroll-p:./,unit:"rem",layer:-301,variables:["spacing"]},scrollSnapAlign:{match:["scroll-snap",["start","end","center"]],layer:-101},scrollSnapStop:{match:["scroll-snap",["normal","always"]],layer:-101},scrollSnapType:{match:["scroll-snap",["x","y","block","inline","both"]],layer:-101},willChange:{layer:-101},writingMode:{match:/^writing:./,layer:-101},direction:{layer:-101},shapeOutside:{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101,variables:["spacing"]},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:./,layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{layer:-101},maskImage:{layer:-101,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},We=Ue;var Ge={$:{transform(e,t,s){let o=this.css.variables[t];return o||"var(--"+t+")"}},calc:{transform(e,t,s){let o=this.variables,l=this.css.config.functions,a=this,u=0,d="",c="";return function g(v,f){let b=!1,y=(m,p=!1,n=!1)=>{if(m!=="("&&o&&c in o&&(c=o[c].toString()),c&&!b&&!f){let i=a.resolveUnitValue(c,l.calc.unit);i&&(c=i.value+i.unit)}d+=c+(p&&t[u-1]!==" "?" ":"")+m+(n&&t[u+1]!==" "?" ":""),c="",b=!1};for(;u<t.length;u++){let m=t[u];if(m==="("){let p=/^[+-]/.test(c),n=p?c.slice(1):c,i=b,r=d.length;if(y(m),u++,g(n,i||f),n!=="calc"){let h=l[n];if(h){let N=d.slice(r+2+(p?1:0),d.length-1);if(d=d.slice(0,r-n.length+1+(p?1:0)),h.transform){let x=h.transform.call(a,"(",N,")"),O=a.resolveUnitValue(x,l.calc.unit);d+=O?O.value+O.unit:x}else d+=(h.name??n)+"("+N+")"}}}else if(m===")"){y(m);break}else if(m===",")y(m,!1,!0);else if(m===" ")y(m);else{let p=t[u-1];switch(m){case"+":!c&&p!==")"?c+=m:y(m,!0,!0);break;case"-":v==="var"||!c&&p!==")"?c+=m:y(m,!0,!0);break;case"*":y(m,!0,!0);break;case"/":y(m,!0,!0),b=!0;break;default:c+=m;break}}}u>=t.length-1&&y("")}("",!1),e+d+s}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},Ve=Ge;var fe={mediaQueries:Te,colors:Me,selectors:Be,semantics:Ee,rules:We,functions:Ve,animations:Ae,variables:Pe,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var Ie=[",",".","#","[","!","*",">","+","~",":","@"];function xe(e,t){let{joiner:s=".",parentKey:o=""}=t??{};return Object.keys(e).reduce((l,a)=>{let u=o?`${o}${a?s+a:""}`:a;return typeof e[a]=="object"&&!Array.isArray(e[a])?Object.assign(l,xe(e[a],{joiner:s,parentKey:u.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()})):l[u]=e[a],l},{})}var ge="_CNO_",ee=class e{constructor(t=fe){this.customConfig=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(fe,t),this.resolve(),e.instances.push(this)}static root;static config=fe;static instances=[];static refresh=t=>{for(let s of this.instances)s.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];colorTokenRegExp;observer;colorByThemeByColorName;resolve(){this.styles={},this.colors={},this.stylesBy={},this.themeNames=[""],this.selectors={},this.variables={},this.fonts={},this.mediaQueries={},this.keyframesMap={},this.animations={},this.colorTokenRegExp=null,this.ruleOptions.length=0,this.semanticRuleOptions.length=0;let{styles:t,selectors:s,variables:o,semantics:l,mediaQueries:a,rules:u,animations:d}=this.config;function c(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function g(n,i,r="",h={}){let N=T=>T?(r?r+"-":"")+T:r,x=Object.entries(n),O=[],M=[];for(let T of x){let z=T[1];(typeof z=="object"&&!Array.isArray(z)?O:M).push(T)}for(let[T,z]of O)g(z,i,N(T),h);if(i&&r)M.length&&(h[r]=M.reduce((T,[z,Y])=>(T[z]=Y,T),{}));else for(let[T,z]of M)h[N(T)]=z;return h}if(s)for(let[n,i]of Object.entries(g(s,!1))){let r=new RegExp(c(n)+"(?![a-z-])");for(let h of Array.isArray(i)?i:[i]){let N=h.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[N];x||(x=this.selectors[N]=[]);let O=x.find(([M])=>M===r);O||(O=[r,[]],x.push(O)),O[1].push(h)}}if(o){this.variables=xe(o);for(let[n,i]of Object.entries(this.variables))typeof i=="number"?this.variables["-"+n]=i*-1:Array.isArray(i)?this.variables[n]=i.join(","):this.variables[n]=i}if(a&&(this.mediaQueries=g(a,!1)),d)for(let n in d){let i=this.animations[n]={},r=d[n];for(let h in r){let N=i[h]={},x=r[h];for(let O in x)N[O]=x[O]}}let v=t?g(t,!1):{},f=Object.keys(v),b=n=>{if(Object.prototype.hasOwnProperty.call(this.styles,n))return;let i=this.styles[n]=[],r=v[n];if(!r)return;let h=r.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let N of h){let x=O=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,O)){let M=this.stylesBy[O];M.includes(n)||M.push(n)}else this.stylesBy[O]=[n];i.includes(O)||i.push(O)};if(f.includes(N)){b(N);for(let O of this.styles[N])x(O)}else x(N)}};for(let n of f)b(n);let y=Object.entries(this.colorByThemeByColorName).reduce((n,[i,r])=>(n[i]=()=>{let h=(O,M)=>M?O.slice(0,7)+Math.round(255*+M).toString(16):O,N={};for(let O in r){let M=r[O].split(" ");for(let T of M){let z=T.lastIndexOf("@"),Y=z!==-1?T.slice(0,z):T,Z=z!==-1?T.slice(z+1):"",te=O.slice(1)||Z;if(T.startsWith("#"))N[te]=Y;else if(T.startsWith(ge)){let[X,_]=Y.slice(ge.length).split("/");if(Object.prototype.hasOwnProperty.call(y,X)){let G=y[X];delete y[X],G()}let Q=Object.prototype.hasOwnProperty.call(this.colors,X)&&this.colors[X];if(Q)for(let G in Q){let se=Q[G];N[G]=h(se,_)}else N[te]=X}else{let[X,_]=Y.split("@"),[Q,G]=X.split("/");if(Object.prototype.hasOwnProperty.call(y,Q)){let me=y[Q];delete y[Q],me()}let se=Object.prototype.hasOwnProperty.call(this.colors,Q)&&this.colors[Q][(O?Z:_)||""];se?N[te]=h(se,G):console.error(`"${i}${O}: ${T}" is an invalid ".colors" config`)}}}let x=Object.keys(N);if(x.length){this.colors[i]=N;for(let O of x)O&&!this.themeNames.includes(O)&&this.themeNames.push(O)}delete y[i]},n),{});for(let n of Object.keys(y))y[n]?.();this.colorNames=Object.keys(this.colors),this.colorTokenRegExp=new RegExp(`(^|,| |\\()(${this.colorNames.join("|")})(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"g"),l&&Object.entries(l).sort((n,i)=>n[0].localeCompare(i[0])).forEach(([n,i],r)=>{this.semanticRuleOptions.push({id:"."+n,resolvedMatch:new RegExp("^"+c(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:r,declarations:i,layer:-401})});let m=Object.entries(u).sort((n,i)=>n[1].layer!==i[1].layer?(i[1].layer||0)-(n[1].layer||0):i[0].localeCompare(n[0])),p=m.length;m.forEach(([n,i],r)=>{this.ruleOptions.push(i),i.order=this.semanticRuleOptions.length+p-1-r;let h=i.match;i.id=n,(i.layer===-100||i.layer===-300||i.layer===-101||i.layer===-301)&&(i.resolvedPropName=n.replace(/(?!^)[A-Z]/g,x=>"-"+x).toLowerCase()),i.resolvedVariables={};let N=o[n];if(typeof N=="object"&&Object.assign(i.resolvedVariables,N),i.variables)if(Array.isArray(i.variables))for(let x of i.variables)typeof x=="object"?Object.assign(i.resolvedVariables,x):Object.assign(i.resolvedVariables,o[x]||{});else Object.assign(i.resolvedVariables,i.variables);if(Object.keys(i.resolvedVariables).length)for(let[x,O]of Object.entries(i.resolvedVariables))typeof O=="number"&&(i.resolvedVariables["-"+x]=O*-1);if(h)if(Array.isArray(h)){let[x,O=[]]=h,M=[];O.length&&M.push(`(?:${O.join("|")})(?![a-zA-Z0-9-])`),Object.keys(i.resolvedVariables).length&&M.push(`(?:${Object.keys(i.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),i.colored&&(M.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)"),this.colorNames.length&&M.push(`(?:${this.colorNames.join("|")})(?![a-zA-Z0-9-])`)),i.numeric&&M.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),i.resolvedMatch=new RegExp(`^${x}:(?:${M.join("|")})[^|]*?(?:@|$)`)}else i.resolvedMatch=h})}observe(t,s={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 l=o?document.head:t,a=o?document.styleSheets:t.styleSheets;for(let d of a){let{ownerNode:c}=d;if(c&&c.id==="master"){this.style=c;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let c=this.style.sheet.cssRules[d];if(c.constructor.name==="CSSKeyframesRule")continue;let g=f=>{if(f.selectorText){let y=f.selectorText.split(", ")[0].split(" ");for(let m=0;m<y.length;m++){let p=y[m];if(p[0]==="."){let n=p.slice(1),i="";for(let r=0;r<n.length;r++){let h=n[r],N=n[r+1];if(h==="\\"){if(r++,N!=="\\"){i+=N;continue}}else if(Ie.includes(h))break;i+=h}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,i)&&!Object.prototype.hasOwnProperty.call(this.styles,i)){let r=this.create(i)[0];if(r)return r}}}}else if(f.cssRules)for(let b=0;b<f.cssRules.length;b++){let y=g(f.cssRules[b]);if(y)return y}},v=g(c);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let f=0;f<v.natives.length;f++)v.natives[f].cssRule=this.style.sheet.cssRules[d+f];d+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.options.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",l.append(this.style);let u=d=>{d.forEach(c=>{Object.prototype.hasOwnProperty.call(this.countBy,c)?this.countBy[c]++:(this.countBy[c]=1,this.insert(c))})};u(this.host.classList),s.subtree&&this.host.querySelectorAll("[class]").forEach(d=>u(d.classList)),this.observer=new MutationObserver(d=>{let c={},g=[],v=[],f=[],b=(n,i)=>{i?n.classList.forEach(m):n.classList.forEach(y);let r=n.children;for(let h=0;h<r.length;h++){let N=r[h];N.classList&&(v.push(N),b(N,i))}},y=n=>{Object.prototype.hasOwnProperty.call(c,n)?c[n]++:c[n]=1},m=n=>{Object.prototype.hasOwnProperty.call(c,n)?c[n]--:Object.prototype.hasOwnProperty.call(this.countBy,n)&&(c[n]=-1)},p=(n,i)=>{for(let r=0;r<n.length;r++){let h=n[r];h.classList&&!v.includes(h)&&!f.includes(h)&&(h.isConnected!==i?(v.push(h),b(h,i)):f.push(h))}};for(let n=0;n<d.length;n++){let i=d[n],{addedNodes:r,removedNodes:h,type:N,target:x}=i;if(N==="attributes"){if(g.find(O=>O.target===x))continue;g.push(i)}else p(r,!1),(!x.isConnected||!v.includes(x))&&p(h,!0)}if(!(!g.length&&!Object.keys(c).length)){for(let{oldValue:n,target:i}of g){let r=v.includes(i),h=i.classList,N=n?n.split(" "):[];if(r){if(i.isConnected)continue;for(let x of N)h.contains(x)||m(x)}else if(i.isConnected){h.forEach(x=>{N.includes(x)||y(x)});for(let x of N)h.contains(x)||m(x)}}for(let n in c){let i=c[n],r=(this.countBy[n]||0)+i;r===0?(delete this.countBy[n],this.delete(n)):(Object.prototype.hasOwnProperty.call(this.countBy,n)||this.insert(n),this.countBy[n]=r)}}}),this.observer.observe(t,{...s,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 s=t.cssRules.length-1;s>=0;s--)t.deleteRule(s);this.style?.remove(),this.style=null,this.root=null}match(t){for(let s of this.ruleOptions)if(s.resolvedMatch&&s.resolvedMatch.test(t)||(s.layer===-100||s.layer===-300||s.layer===-101||s.layer===-301)&&t.startsWith(s.resolvedPropName+":"))return s;for(let s of this.semanticRuleOptions)if(s.resolvedMatch.test(t))return s}create(t){let s=o=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,o))return this.ruleBy[o];let l=this.match(o);if(l)return new de(o,l,this)};return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(o=>s(o)):[s(t)]).filter(o=>o&&o.text)}refresh(t=this.customConfig){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(fe,t),this.resolve(),!this.style)return;let s=document.createElement("style");s.id="master",this.style.replaceWith(s),this.style=s,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 s=this.style?.sheet,o=l=>{let a=this.ruleBy[l];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,l)&&this.stylesBy[l].some(u=>Object.prototype.hasOwnProperty.call(this.countBy,u)))){if(s&&a.natives.length){let u=a.natives[0];for(let d=0;d<s.cssRules.length;d++)if(s.cssRules[d]===u.cssRule){for(let g=0;g<a.natives.length;g++)s.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[l],a.animationNames){let u=this.rules[0];for(let d of a.animationNames){let c=this.keyframesMap[d];if(!--c.count){let g=u.natives.indexOf(c.native);this.style.sheet.deleteRule(g),u.natives.splice(g,1),delete this.keyframesMap[d]}}u.natives.length||this.rules.splice(0,1)}a.options.delete?.call(a,l)}};if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let l of this.styles[t])Object.prototype.hasOwnProperty.call(this.countBy,l)||o(l);delete this.ruleBy[t]}else o(t)}insert(t){let s=this.create(t);return s.length?(this.insertRules(s),!0):!1}insertRules(t){for(let s of t){if(this.ruleBy[s.className])continue;let o,l=Object.keys(this.keyframesMap).length,a=this.rules.length-1,{media:u,order:d,priority:c,hasWhere:g,className:v}=s,f=(m,p,n)=>{let i=m;for(;i<=a;i++){let r=this.rules[i];if(p?.(r))return n?-1:i-1;if(n?.(r))return i}return n?-1:i-1},b,y;if(u){let m=this.rules.findIndex(p=>p.media);if(m===-1)o=a+1;else{let{"max-width":p,"min-width":n}=u.features;if(p||n){let i=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(i===-1)o=a+1;else if(p&&n){if(c===-1?(b=f(i,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),y=f(i,r=>r.priority!==-1)):(b=f(i,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),y=a),b!==-1){let r=p.value-n.value,h=y,N=b;for(b=void 0;h>=N;h--){let{"max-width":x,"min-width":O}=this.rules[h].media.features,M=x.value-O.value;if(M<r)y=h-1;else if(M===r)b=h;else break}}if(b!==-1){let r=p.value-n.value;for(let h=y;h>=b;h--){let{"max-width":N,"min-width":x}=this.rules[h].media.features,O=N.value-x.value;if(O<r)y=h-1;else if(O>r){b=h+1;break}}}}else if(n){if(c===-1?(b=f(i,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"]),y=f(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(b=f(i,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),y=f(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),b!==-1)for(let r=y;r>=b;r--){let h=this.rules[r].media.features["min-width"].value;if(h>n.value)y=r-1;else if(h<n.value){b=r+1;break}}}else if(c===-1?(b=f(i,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),y=f(i,r=>r.media.features["min-width"]||r.priority!==-1)):(b=f(i,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),y=f(i,r=>r.media.features["min-width"]&&r.priority!==-1)),b!==-1)for(let r=y;r>=b;r--){let h=this.rules[r].media.features["max-width"].value;if(h<p.value)y=r-1;else if(h>p.value){b=r+1;break}}}else c===-1?(b=m,y=f(m,i=>i.media?.features["max-width"]||i.media?.features["min-width"]||i.priority!==-1)):(b=f(m,i=>i.media?.features["max-width"]||i.media?.features["min-width"],i=>i.priority!==-1),y=f(m,i=>i.media?.features["max-width"]||i.media?.features["min-width"]))}}else{let m=l?1:0;c===-1?(b=m,y=f(m,p=>p.media||p.priority!==-1)):(b=f(m,p=>p.media,p=>p.priority!==-1),y=f(m,p=>p.media))}if(o===void 0)if(b===-1)o=y+1;else{if(c===-1)for(let m=b;m<=y;m++){let p=this.rules[m];if(!(!g&&p.hasWhere)&&(g&&!p.hasWhere||p.order>=d)){o=m;break}}else for(let m=b;m<=y;m++){let p=this.rules[m];if(!(!g&&p.hasWhere)){if(g&&!p.hasWhere){o=m;break}if(p.priority<c){o=m;break}else if(p.priority===c){if(p.order>=d){o=m;break}}else o=m+1}}o===void 0&&(o=y+1)}if(this.rules.splice(o,0,s),this.ruleBy[v]=s,this.style){let m=this.style.sheet,p=0,n=i=>{let r=this.rules[i];if(r){if(!r.natives.length)return n(i-1);let h=r.natives[r.natives.length-1].cssRule;for(let N=0;N<m.cssRules.length;N++)if(m.cssRules[N]===h){p=N+1;break}}};n(o-1);for(let i=0;i<s.natives.length;)try{let r=s.natives[i];m.insertRule(r.text,p),r.cssRule=m.cssRules[p++],i++}catch(r){console.error(r),s.natives.splice(i,1)}}this.handleRuleWithAnimationNames(s),s.options.insert?.call(s)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let s=a=>{let u=ae({},a),d=c=>{for(let g in c){let v=c[g];typeof v=="object"&&!Array.isArray(v)?d(v):g&&(c[g]={"":v})}};if(u.styles?d(u.styles):u.styles={},u.mediaQueries?d(u.mediaQueries):u.mediaQueries={},u.colors){let c=(g,v)=>{let f=(p,n,i)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,p)||(this.colorByThemeByColorName[p]={});let r=this.colorByThemeByColorName[p],h=r[""]?.includes(ge),N=x=>x.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(O,M,T,z,Y)=>{let Z="#"+pe(+M,+T,+z);return Y&&(Z+=Math.round(255*+Y).toString(16)),Z});for(let[x,O]of n)if(O){let M=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,T;for(;(T=M.exec(O))!==null;){let z=T[0].trimStart(),Y=z.lastIndexOf("@"),Z=Y!==-1?z.slice(0,Y):z,te=Y!==-1?z.slice(Y):"",X=x||te,_=i&&T[2]&&!T[2].startsWith("#")&&!te,Q=T[1]?N(Z):x?T[0]:Z;if(h||_){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let G in r)G&&(r[""]+=" "+r[G],delete r[G]);r[""]+=(r[""]?" ":"")+(_?ge:"")+Q+X}else r[X]=Q;if(x)break}}else if(i){delete this.colorByThemeByColorName[p];return}else delete r[x];Object.keys(r).length||delete this.colorByThemeByColorName[p]},b=Object.entries(g),y=b.filter(([p])=>p===""||p.startsWith("@"));y.length&&f(v,y,!1);let m=b.filter(([p])=>p!==""&&!p.startsWith("@"));for(let[p,n]of m){let i=(v?v+"-":"")+p;typeof n=="string"?f(i,[["",n]],!0):c(n,i)}};c(u.colors,"")}return u},o=[];for(let a of t)(function u(d){if(d.extends?.length)for(let c of d.extends)u("config"in c?c.config:c);o.push(s(d))})(a);let l=o[0];for(let a=1;a<o.length;a++){let u=o[a];l=ae(l,u),Object.prototype.hasOwnProperty.call(u,"animations")&&Object.assign(l.animations,u.animations)}return l}handleRuleWithAnimationNames(t){if(t.animationNames){let s=this.style?.sheet;for(let o of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,o))this.keyframesMap[o].count++;else{let l={text:`@keyframes ${o}{`+Object.entries(this.animations[o]).map(([u,d])=>`${u}{${Object.entries(d).map(([c,g])=>c+":"+g).join(";")}}`).join("")+"}",theme:""},a;if(Object.keys(this.keyframesMap).length?(a=this.rules[0]).natives.push(l):this.rules.splice(0,0,a={natives:[l],get text(){return this.natives.map(u=>u.text).join("")}}),s){let u;for(let d=0;d<s.cssRules.length;d++){let c=s.cssRules[d];if(c.constructor.name!=="CSSKeyframesRule")break;if(c.name===o){u=c;break}}if(u)l.cssRule=u;else{let d=a.natives.length-1;s.insertRule(l.text,d),l.cssRule=s.cssRules[d]}}this.keyframesMap[o]={native:l,count:1}}}}};typeof window<"u"&&(window.MasterCSS=ee);var Ke=`/** @type {import('@master/css').Config} */
|
|
1
|
+
function Ne(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Se(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 we(e){let t=[];return e.forEach(function(i,s){typeof i=="object"&&i!==null?Array.isArray(i)?t[s]=we(i):Ne(i)?t[s]=Se(i):t[s]=ne({},i):t[s]=i}),t}function Re(e,t){return t==="__proto__"?void 0:e[t]}function ne(...e){let t={},i,s;return e.forEach(function(l){typeof l!="object"||l===null||Array.isArray(l)||Object.keys(l).forEach(function(a){if(s=Re(t,a),i=Re(l,a),i!==t)if(typeof i!="object"||i===null){t[a]=i;return}else if(Array.isArray(i)){t[a]=we(i);return}else if(Ne(i)){t[a]=Se(i);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[a]=ne({},i);return}else{t[a]=ne(s,i);return}})}),t}var le={"(":")","'":"'",'"':'"',"{":"}"};function ce(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,s=-1,l="",a,u=t.charCodeAt(0);if(i==1&&u==45)return"\\"+t;for(;++s<i;){if(a=t.charCodeAt(s),a==0){l+="\uFFFD";continue}if(a>=1&&a<=31||a==127||s==0&&a>=48&&a<=57||s==1&&a>=48&&a<=57&&u==45){l+="\\"+a.toString(16)+" ";continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){l+=t.charAt(s);continue}l+="\\"+t.charAt(s)}return l}function Ce(e,t){let i=t.endsWith("%")?parseFloat(t)/100:+t;return i=isNaN(i)?1:Math.min(Math.max(i,0),1),e+Math.round(i*255).toString(16).toUpperCase().padStart(2,"0")}var ke=(l=>(l[l.NativeShorthand=-300]="NativeShorthand",l[l.Shorthand=-200]="Shorthand",l[l.Native=-100]="Native",l[l.Normal=0]="Normal",l))(ke||{}),je=(a=>(a[a.Semantic=-401]="Semantic",a[a.NativeShorthand=-301]="NativeShorthand",a[a.Shorthand=-201]="Shorthand",a[a.Native=-101]="Native",a[a.Normal=-1]="Normal",a))(je||{});var $e=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,de=class{constructor(t,i={},s){this.className=t;this.options=i;this.css=s;let{layer:l,unit:a,colored:u,resolvedPropName:d,analyze:c,transform:g,declare:v,create:f,order:b,id:y}=i;this.order=b,i.unit||(i.unit=""),i.separators||(i.separators=[","]);let{scope:m,important:p,functions:n,themeDriver:o}=s.config,{themeNames:r,colorNames:h,colors:S,selectors:x,mediaQueries:N,stylesBy:M,animations:O}=s,z=M[t];f&&f.call(this,t),this.declarations=i.declarations;let Y,K,q,D,Z=u;if(l===-401)q=t.slice(y.length-1);else{let W;if(c)[W,K]=c.call(this,t);else{let _=t.indexOf(":");this.prefix=t.slice(0,_+1),W=t.slice(_+1)}D=[];let A=this,V=i.resolvedVariables,H=[","];i.separators.length&&H.push(...i.separators);let T="",B=0;(function _(P,R,k,w=void 0,C=[],I=[],E){let j=w===void 0,F,J=L=>L==="'"||L==='"',re=()=>F=T.length,ee=()=>{if(T){let L=T,X=j?L:T.slice(F);if(T="",oe="",V&&X in V&&!C.includes(X)){let G=B;B=0,_(V[X].toString(),R,void 0,w,[...C,X],I,E),B=G,j||(T=L.slice(0,F)+T)}else if(j){let G=!E&&A.resolveUnitValue(X,R);D.push({value:G?.value??X,unit:G?.unit})}else{let G=!E&&A.resolveUnitValue(X,R);T=G?L.slice(0,F)+G.value+G.unit:L}re()}},ie=J(k);re();let oe="";for(;B<P.length;B++){let L=P[B];if(L===k){if(ie){T+=L;let X=0;for(let G=T.length-2;T[G]==="\\";G--)X++;if(X%2)continue}else ee(),T+=L;return}else if(!ie&&L in le){let X=L==="("&&oe&&n?.[oe];!Z&&X?.colored&&(Z=!0),T+=L,B++;let G=le[L];_(P,X?.unit??R,G,oe||w||"",C,I,E||!!X?.transform),X?.transform&&(T=T.slice(0,F)+X.transform.call(A,oe+"(",T.slice(F+(T.slice(F).startsWith(oe)?oe.length+1:0),-1),T.slice(-1))),j&&(J(G)?(D.push(T),T=""):ee()),oe=""}else if((L==="|"||L===" ")&&k!=="}"&&(!ie||w==="path"))ee(),j||(T+=" ",F++);else{if(!ie){if(L===".")if(isNaN(+P[B+1])){if(j)break}else P[B-1]==="-"&&(T+="0");else if(H.includes(L)){ee(),j?D.push(L):(T+=L,F++);continue}else if(j&&(L==="#"&&(T||D.length&&P[B-1]!=="|"&&D[B-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(L)))break;oe+=L}T+=L}}w===void 0&&ee()})(W,a),q=W.slice(B)}q[0]==="!"&&(this.important=!0,q=q.slice(1)),this.stateToken=q;let Q=(W,A)=>{let V=(R,k,w,C)=>{for(let[I,E]of k)if(I.test(R)){for(let j of E)V(R.replace(I,j),k,w,!0);return}C&&w.push(R)},H=R=>{let k=R.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((E,j)=>j%3?E:E.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),w=[],C="",I=0;for(let E=0;E<k.length;E++){let j=k[E];if(j==="\\"){C+=j+k[++E];continue}!I&&j===","?(w.push(C),C=""):(C+=j,I&&j===")"?I--:j==="("&&I++)}return C&&w.push(C),w},T=[];""in x?V(W,x[""],T,!0):T.push(W);let B={};for(let[R,k]of Object.entries(x)){if(!R)continue;let w=[];for(let C of T)V(C,k,w,!1);w.length&&(B[R]=w)}let _=(R,k)=>{let w=k.reduce((C,I)=>(C.push(...H(I)),C),[]);R in A?A[R].push(...w):A[R]=w},P=Object.keys(B);if(P.length)for(let R of P)_(R,B[R]);else _("",T)};K?(this.vendorPrefixSelectors={},Q(K,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let U=q.split("@"),se=U[0];if(se){this.vendorSuffixSelectors={},Q(se,this.vendorSuffixSelectors);for(let W of Object.values(this.vendorSuffixSelectors))for(let A of W){this.hasWhere!==!1&&(this.hasWhere=A.includes(":where("));let V=[":disabled",":active",":focus",":hover"];for(let H=0;H<V.length;H++)if(A.includes(V[H])){(this.priority===-1||this.priority>H)&&(this.priority=H);break}}}else this.vendorSuffixSelectors={"":[""]};let ae={},ze=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),xe=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(ze)ae[""]=xe?[""]:Object.keys(this.vendorSuffixSelectors);else if(xe)for(let W in this.vendorPrefixSelectors)ae[W]=[""];else for(let W in this.vendorPrefixSelectors){let A=ae[W]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,W))A.push(W);else for(let V in this.vendorSuffixSelectors)A.push(V)}for(let W=1;W<U.length;W++){let A=U[W];if(A)if(A==="rtl"||A==="ltr")this.direction=A;else{let V,H,T=$e.exec(A);if(T)V=T[1],H=A.slice(V.length);else{this.media={token:A,features:{}};let B=[],_=R=>{if(R==="all"||R==="print"||R==="screen"||R==="speech")this.media.type=R;else if(R==="\u{1F5A8}")this.media.type="print";else if(R==="landscape"||R==="portrait")B.push("(orientation:"+R+")");else if(R==="motion"||R==="reduced-motion")B.push("(prefers-reduced-motion:"+(R==="motion"?"no-preference":"reduce")+")");else{let k=N[R];if(k&&typeof k=="string")B.push(k);else{let w={token:R},C="",I="",E=0;R.startsWith("<=")?(I="<=",C="max-width"):R.startsWith(">=")||k?(I=">=",C="min-width"):R.startsWith(">")?(I=">",C="min-width",E=.02):R.startsWith("<")&&(I="<",C="max-width",E=-.02);let j=I?R.replace(I,""):R,F=N[j];switch(C){case"max-width":case"min-width":F?Object.assign(w,this.resolveUnitValue(F.toString(),"px")):Object.assign(w,this.resolveUnitValue(j,"px")),w.unit==="px"&&(w.value+=E),this.media.features[C]=w,B.push("("+C+":"+(w.value+w.unit)+")");break}}}},P=A.includes("&");if(P){let R=A.split("&");for(let k of R)_(k)}else _(A);if(this.media.type&&(H=this.media.type),B.length&&(H=B.join(" and ")),H)V="media";else if(!P){this.theme=A;continue}}H&&(this.at[V]=(V in this.at?this.at[V]+" and ":"")+H.replace(/\|/g," "))}}let be=(W,A)=>{let V,H=(_,P,R,k)=>{let w="";this.direction&&(w+="[dir="+this.direction+"] ");let C=R.map(j=>j+w),I=(j,F)=>C.map(J=>(j&&o!=="media"?o==="host"?`:host(.${j}) `:`.${j} `:"")+(m?m+" ":"")+J).reduce((J,re)=>(J.push(k.reduce((ee,ie)=>(ee.push(re+"."+ce(F)+ie),ee),[]).join(",")),J),[]).join(","),E=I(P,t)+(z?z.reduce((j,F)=>j+","+I(this.theme??(Z||Y?P:""),F),""):"")+"{"+_+"}";for(let j of Object.keys(this.at).sort((F,J)=>J==="supports"?-1:1))E="@"+j+(j.includes(" ")?"":" ")+this.at[j]+"{"+E+"}";return P&&o==="media"&&(E=`@media(prefers-color-scheme:${P}){`+E+"}"),E},T=[];if(D){let _=[this.theme??W,""],P,R=!1;for(let k of D)if(typeof k=="string")T.push(k);else{let w=k.value;if(k.unit)w+=k.unit;else if(Z&&S&&h){let C=!1;w=w.replace(s.colorTokenRegExp,(I,E,j,F)=>{let J=S[j];if(J){let re,ee;for(let ie of _)if(re=J[ie]){ee=ie;break}if(re)return C=!A||ee===W,P||(P=C),E+(F?Ce(re,F):re);R=!0}return I})}T.push(w)}if(A&&(R||(P===void 0?W:!P)))return;if(V=T.reduce((k,w,C)=>k+w+(w===","||D[C+1]===","||C===D.length-1?"":" "),""),g&&(V=g.call(this,V,this.css.config)),v){let k,w;if(D.length===1){let C=D[0];typeof C=="object"&&(k=C.value,w=C.unit)}this.declarations=v.call(this,w?k:V,w||"")}else d&&(this.declarations={[d]:V})}let B={};for(let _ in this.declarations){let P=(w,C)=>{if(O&&(C.startsWith("animation")||C.startsWith("animation-name"))){let E=C.split(":")[1].split("!important")[0].split(" ").filter(j=>j in this.css.animations&&(!this.animationNames||!this.animationNames.includes(j)));E.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...E))}let I=C+((this.important||p)&&!C.endsWith("!important")?"!important":"");w in B?B[w].push(I):B[w]=[I]},R=_+":",k=this.declarations[_];if(typeof k=="object")if(Array.isArray(k))for(let w of k)P(W,R+w.toString());else{Y=!0;for(let w in k)P(w,R+k[w])}else P(W,R+k.toString())}for(let _ in ae)for(let P of ae[_])for(let R in B)this.natives.push({text:H(B[R].join(";"),R,this.vendorPrefixSelectors[_],this.vendorSuffixSelectors[P]),theme:R})};if(this.theme)be(this.theme,!1);else if(Z)for(let W of r)be(W,!0);else be("",!1)}at={};priority=-1;natives=[];order=0;stateToken;declarations;animationNames;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}resolveUnitValue(t,i){let s=i??this.options.unit,l="",a;if(typeof t=="number")return s&&!l?((s==="rem"||s==="em")&&(a=t/this.css.config.rootSize),l=s||""):a=t,{value:a,unit:l};if(s){if(/^\d+\/\d+/.test(t)){let[d,c]=t.split("/");return{value:+d/+c*100+"%",unit:l}}let u=t.match(/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/);if(u){let d=+u[1];return l=u[3]||"",l||((s==="rem"||s==="em")&&(d=d/this.css.config.rootSize),l=s||""),{value:d,unit:l}}}}};var _e={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Te=_e;function ue(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 me(e,t,i){return((1<<24)+(e<<16)+(t<<8)+i).toString(16).slice(1)}function $(e){typeof e=="string"&&(e={"":e});let t=""in e,i=!1;for(let s in e)if(s&&+s>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let s=0,l="0"in e?ue(e[0]):[0,0,0],a,u,d=[],c=()=>{let g=a-s,v=u.map((f,b)=>(f-l[b])/g);for(let f of d){let b=f-s,y=l.map((m,p)=>Math.round(m+v[p]*b));e[f]="#"+me.call(this,...y)}};for(let g=1;g<100;g++)g in e?(d.length?(a=g,u=ue(e[g]),c(),d.length=0,l=u):l=ue(e[g]),s=g):d.push(g);d.length&&(a=100,u="100"in e?ue(e[100]):[255,255,255],c())}return t||(e[""]=e[i?"500":"50"]),e}var Fe={black:"#000000",white:"#ffffff",current:"currentColor",transparent:"transparent",slate:$({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:$({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:$({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:$({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:$({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:$({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:$({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:$({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:$({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:$({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:$({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:$({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:$({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:$({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:$({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:$({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:$({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:$({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:$({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:$({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},Oe=Fe;var He={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},Me=He;var Ye={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},Be=Ye;var Xe={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"}}},Ee=Xe;var Qe={fontFamily:{mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Helvetica Neue","Arial","Noto Sans","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"],serif:["ui-serif","Georgia","Cambria","Times New Roman","Times","serif"]},fontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},section:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},Ae=Qe;var qe={group:{match:/^(?:.+?[*_>~+])?\{.+?\}/,layer:-1,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=(g,v)=>{let f=v.indexOf(":");if(f!==-1){g in t||(t[g]={});let b=t[g],y=v.slice(0,f);y in b||(b[y]=v.slice(f+1))}},s=g=>{let v=(f,b)=>{let y=b.slice(ce(g.className).length).match(/\{(.*)\}/)[1].split(";");for(let m of y)i(f,m)};if(this.theme){let f=g.natives.find(b=>b.theme===this.theme)??g.natives.find(b=>!b.theme);f&&v(this.theme,f.text)}else for(let f of g.natives)v(f.theme,f.text);if(g.animationNames){this.animationNames||(this.animationNames=[]);for(let f of g.animationNames)this.animationNames.includes(f)||this.animationNames.push(f)}},l=[],a="",u=()=>{a&&(l.push(a.replace(/ /g,"|")),a="")},d=1;(function g(v){for(;d<e.length;d++){let f=e[d];if(!v){if(f===";"){u();continue}if(f==="}")break}if(a+=f,v===f){if(v==="'"||v==='"'){let b=0;for(let y=a.length-2;a[y]==="\\";y--)b++;if(b%2)continue}break}else f in le&&v!=="'"&&v!=='"'&&(d++,g(le[f]))}})(void 0),u();for(let g of l){let v=this.css.create(g);if(Array.isArray(v))if(v.length)for(let f of v)s(f);else i(this.theme??"",g);else s(v)}let c={};for(let g in t)for(let[v,f]of Object.entries(t[g]))v in c?c[v][g]=f:c[v]={[g]:f};return c}},variable:{match:/^\$[\w-]+:./,colored:!0,layer:-1,declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:["f(?:ont)?"],numeric:!0,unit:"rem",layer:-101},fontWeight:{match:["f(?:ont)?",["bolder"]],layer:-101},fontFamily:{match:["f(?:ont)?"],layer:-101},fontSmoothing:{match:["f(?:ont)?",["antialiased","subpixel-antialiased"]],layer:-101,declare(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"]],layer:-101,unit:"deg"},fontVariantNumeric:{match:["f(?:ont)?",["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]],layer:-101},fontVariant:{layer:-301},fontFeatureSettings:{match:/^font-feature:./,layer:-101},font:{match:/^f:./,layer:-301,variables:["fontFamily","fontVariant","fontWeight","fontSize","fontStyle","lineHeight"]},color:{match:/^(?:color|fg|foreground):./,layer:-101,colored:!0},marginLeft:{match:/^ml:./,layer:-101,unit:"rem",variables:["spacing"]},marginRight:{match:/^mr:./,layer:-101,unit:"rem",variables:["spacing"]},marginTop:{match:/^mt:./,layer:-101,unit:"rem",variables:["spacing"]},marginBottom:{match:/^mb:./,layer:-101,unit:"rem",variables:["spacing"]},marginX:{match:/^(?:mx|margin-x):./,unit:"rem",layer:-201,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}},variables:["spacing"]},marginY:{match:/^(?:my|margin-y):./,unit:"rem",layer:-201,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}},variables:["spacing"]},margin:{match:/^m:./,unit:"rem",layer:-301,variables:["spacing"]},marginInlineStart:{match:/^mis:./,layer:-101,unit:"rem",variables:["spacing"]},marginInlineEnd:{match:/^mie:./,layer:-101,unit:"rem",variables:["spacing"]},marginInline:{match:/^mi:./,unit:"rem",layer:-301,variables:["spacing"]},paddingLeft:{match:/^pl:./,layer:-101,unit:"rem",variables:["spacing"]},paddingRight:{match:/^pr:./,layer:-101,unit:"rem",variables:["spacing"]},paddingTop:{match:/^pt:./,layer:-101,unit:"rem",variables:["spacing"]},paddingBottom:{match:/^pb:./,layer:-101,unit:"rem",variables:["spacing"]},paddingX:{match:/^(?:px|padding-x):./,unit:"rem",layer:-201,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}},variables:["spacing"]},paddingY:{match:/^(?:py|padding-y):./,unit:"rem",layer:-201,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}},variables:["spacing"]},padding:{match:/^p:./,unit:"rem",layer:-301,variables:["spacing"]},paddingInlineStart:{match:/^pis:./,layer:-101,unit:"rem",variables:["spacing"]},paddingInlineEnd:{match:/^pie:./,layer:-101,unit:"rem",variables:["spacing"]},paddingInline:{match:/^pi:./,unit:"rem",layer:-301,variables:["spacing"]},flexBasis:{variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"section"],unit:"rem",layer:-101},flexWrap:{match:["flex",["wrap","nowrap","wrap-reverse"]],layer:-101},flexGrow:{layer:-101},flexShrink:{layer:-101},flexDirection:{match:["flex",["row","row-reverse","column","column-reverse"]],layer:-101,variables:{col:"column","col-reverse":"column-reverse"}},flex:{layer:-301},display:{match:/^d:./,layer:-101},width:{match:/^w:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"section"]},height:{match:/^h:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"section"]},minWidth:{match:/^min-w:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"section"]},minHeight:{match:/^min-h:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"section"]},box:{match:/^(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\(.+\)|[0-9]+[a-z]*?)/,layer:-201,unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,i]=e.split(" x ");return{width:t,height:i}}},minBox:{match:/^min:./,layer:-201,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:./,layer:-201,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}}},boxSizing:{match:/^box:./,layer:-101,variables:{content:"content-box",border:"border-box"}},boxDecorationBreak:{match:["section",["slice","clone"]],layer:-101,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},contain:{layer:-101},content:{layer:-101},counterIncrement:{layer:-101},counterReset:{layer:-101},letterSpacing:{match:/^ls:./,layer:-101,unit:"em"},lineHeight:{match:/^lh:./,layer:-101},objectFit:{match:["(?:object|obj)",["contain","cover","fill","scale-down"]],layer:-101},objectPosition:{match:["(?:object|obj)",["top","bottom","right","left","center"]],layer:-101},textAlign:{match:["t(?:ext)?",["justify","center","left","right","start","end"]],layer:-101},textDecorationColor:{match:["text-decoration"],layer:-101,colored:!0},textDecorationStyle:{match:["t(?:ext)?",["solid","double","dotted","dashed","wavy"]],layer:-101},textDecorationThickness:{match:["text-decoration",["from-font"]],numeric:!0,layer:-101,unit:"em"},textDecorationLine:{match:["t(?:ext)?",["none","underline","overline","line-through"]],layer:-101},textDecoration:{match:["t(?:ext)?",["underline","overline","line-through"]],unit:"rem",colored:!0,layer:-301},textUnderlineOffset:{unit:"rem",layer:-101,variables:["spacing"]},textOverflow:{match:["t(?:ext)?",["ellipsis","clip"]],layer:-101},textOrientation:{match:["t(?:ext)?",["mixed","upright","sideways-right","sideways","use-glyph-orientation"]],layer:-101},textTransform:{match:["t(?:ext)?",["uppercase","lowercase","capitalize"]],layer:-101},textRendering:{match:["t(?:ext)?",["optimizeSpeed","optimizeLegibility","geometricPrecision"]],layer:-101},textIndent:{unit:"rem",layer:-101},verticalAlign:{match:/^(?:v|vertical):./,layer:-101},columns:{match:/^(?:columns|cols):./,layer:-301},whiteSpace:{layer:-101},top:{layer:-101,unit:"rem",variables:["spacing"]},bottom:{layer:-101,unit:"rem",variables:["spacing"]},left:{layer:-101,unit:"rem",variables:["spacing"]},right:{layer:-101,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:-301,variables:["spacing"]},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",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"section"]},maxWidth:{match:/^max-w:./,unit:"rem",layer:-101,variables:[{full:"100%",fit:"fit-content",max:"max-content",min:"min-content"},"section"]},opacity:{layer:-101},visibility:{layer:-101},clear:{layer:-101},float:{layer:-101},isolation:{layer:-101},overflowX:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{layer:-101,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{layer:-301,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{layer:-101},overscrollBehaviorY:{layer:-101},overscrollBehavior:{layer:-301},zIndex:{match:/^z:./,layer:-101},position:{layer:-101,variables:{abs:"absolute",rel:"relative"}},cursor:{layer:-101},pointerEvents:{layer:-101},resize:{layer:-101},touchAction:{layer:-101},wordBreak:{layer:-101},wordSpacing:{layer:-101,unit:"em"},userDrag:{layer:-101,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{layer:-101,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",layer:-101,colored:!0},textSize:{match:["t(?:ext)?"],numeric:!0,unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{match:["(?:text-fill|text|t)"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:["text-stroke",["thin","medium","thick"]],numeric:!0,unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:["text-stroke"],layer:-101,colored:!0,declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",layer:-101,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:/^s(?:hadow)?:./,unit:"rem",layer:-101,colored:!0},tableLayout:{layer:-101},transformBox:{match:["transform"],layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:["transform",["flat","preserve-3d"]],layer:-101},transformOrigin:{match:["transform",["top","bottom","right","left","center"]],numeric:!0,unit:"px",layer:-101},transform:{match:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:-101,analyze(e){return[e.startsWith("transform")?e.slice(10):e]},variables:["spacing"]},transitionProperty:{match:/^~property:./,layer:-101},transitionTimingFunction:{match:/^~easing:./,layer:-101},transitionDuration:{match:/^~duration:./,layer:-101,unit:"ms"},transitionDelay:{match:/^~delay:./,layer:-101,unit:"ms"},transition:{match:/^~[^!*>+~:[@_]+\|/,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},layer:-301},animationDelay:{match:/^@delay:./,layer:-101,unit:"ms"},animationDirection:{match:/^@direction:./,layer:-101,variables:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:/^@duration:./,layer:-101,unit:"ms"},animationFillMode:{match:/^@fill:./,layer:-101},animationIterationCount:{match:/^@iteration:./,layer:-101},animationName:{match:/^@name:./,layer:-101},animationPlayState:{match:/^@play:./,layer:-101},animationTimingFunction:{match:/^@easing:./,layer:-101},animation:{match:/^@[^!*>+~:[@_]+\|/,layer:-301,analyze(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"]],layer:-101},borderSpacing:{unit:"rem",layer:-101},borderTopColor:{match:["b(?:t|order-top(?:-color)?)"],layer:-101,colored:!0},borderBottomColor:{match:["b(?:b|order-bottom(?:-color)?)"],layer:-101,colored:!0},borderLeftColor:{match:["b(?:l|order-left(?:-color)?)"],layer:-101,colored:!0},borderRightColor:{match:["b(?:r|order-right(?:-color)?)"],layer:-101,colored:!0},borderXColor:{match:["b(?:x|order-x(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:["b(?:y|order-y(?:-color)?)"],layer:-201,colored:!0,declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:["b(?:order)?(?:-color)?"],layer:-301,colored:!0},borderTopLeftRadius:{match:/^r(?:tl|lt):./,unit:"rem",layer:-101},borderTopRightRadius:{match:/^r(?:tr|rt):./,unit:"rem",layer:-101},borderBottomLeftRadius:{match:/^r(?:bl|lb):./,unit:"rem",layer:-101},borderBottomRightRadius:{match:/^r(?:br|rb):./,unit:"rem",layer:-101},borderTopRadius:{match:/^rt:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:/^rb:./,unit:"rem",layer:-201,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:/^rl:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:/^rr:./,unit:"rem",layer:-201,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:/^r:./,unit:"rem",layer:-301},borderTopStyle:{match:["b(?:t|order-top(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderBottomStyle:{match:["b(?:b|order-bottom(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderLeftStyle:{match:["b(?:l|order-left(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderRightStyle:{match:["b(?:r|order-right(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},borderXStyle:{match:["b(?:x|order-x(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:["b(?:y|order-y(?:-style)?)",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-201,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:["b(?:order)?(?:-style)?",["hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-301},borderTopWidth:{match:["b(?:t|order-top(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderBottomWidth:{match:["b(?:b|order-bottom(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderLeftWidth:{match:["b(?:l|order-left(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderRightWidth:{match:["b(?:r|order-right(?:-width)?)"],numeric:!0,unit:"rem",layer:-101},borderXWidth:{match:["b(?:x|order-x(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:["b(?:y|order-y(?:-width)?)"],numeric:!0,unit:"rem",layer:-201,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:["b(?:order)?(?:-width)?"],numeric:!0,unit:"rem",layer:-301},borderImageOutset:{unit:"rem",layer:-101},borderImageRepeat:{match:["border-image",["stretch","repeat","round","space"]],layer:-101},borderImageSlice:{layer:-101},borderImageSource:{match:["border-image",["url","linear-gradient","radial-gradient","repeating-linear-gradient","repeating-radial-gradient","conic-gradient"]],layer:-101},borderImageWidth:{match:["border-image",["auto"]],numeric:!0,unit:"rem",layer:-101},borderImage:{layer:-301},borderTop:{match:/^bt:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:/^bb:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:/^bl:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:/^br:./,layer:-101,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:/^(?:bx|border-x):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:/^(?:by|border-y):./,unit:"rem",colored:!0,layer:-201,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:/^b:./,unit:"rem",colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},layer:-301},backgroundAttachment:{match:["(?:bg|background)",["fixed","local","scroll"]],layer:-101},backgroundBlendMode:{layer:-101},backgroundColor:{match:["(?:bg|background)"],layer:-101,colored:!0},backgroundClip:{match:["(?:bg|background)",["text"]],layer:-101,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},variables:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:["(?:bg|background)"],layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:["(?:bg|background)",["top","bottom","right","left","center"]],layer:-101,unit:"px"},backgroundRepeat:{match:["(?:bg|background)",["space","round","repeat","no-repeat","repeat-x","repeat-y"]],layer:-101},backgroundSize:{match:["(?:bg|background)",["auto","cover","contain"]],numeric:!0,unit:"rem",layer:-101},backgroundImage:{match:["(?:bg|background)",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},background:{match:/^bg:./,colored:!0,layer:-301},gradient:{match:/^gradient\(/,layer:-101,colored:!0,declare(e){return{"background-image":"linear-"+e}}},mixBlendMode:{match:/^blend:./,layer:-101},backdropFilter:{match:/^bd:./,layer:-101,colored:!0,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)\(/,layer:-101,colored:!0},fill:{match:/^fill:./,layer:-101,colored:!0},strokeDasharray:{layer:-101},strokeDashoffset:{layer:-101,variables:["spacing"]},strokeWidth:{match:["stroke(?:-width)?"],numeric:!0,layer:-101},stroke:{match:["stroke"],layer:-101,colored:!0},x:{layer:-101,variables:["spacing"]},y:{layer:-101,variables:["spacing"]},cx:{layer:-101,variables:["spacing"]},cy:{layer:-101,variables:["spacing"]},rx:{layer:-101},ry:{layer:-101},gridColumnStart:{match:/^grid-col-start:./,layer:-101},gridColumnEnd:{match:/^grid-col-end:./,layer:-101},gridColumn:{match:/^grid-col(?:umn)?(?:-span)?:./,layer:-301,transform(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))"}},layer:-1},gridRowStart:{layer:-101},gridRowEnd:{layer:-101},gridRow:{match:/^grid-row-span:./,layer:-301,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))"}},layer:-1},gridAutoColumns:{match:/^grid-auto-cols:./,layer:-101,variables:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:/^grid-flow:./,layer:-101},gridAutoRows:{variables:{min:"min-content",max:"max-content"},layer:-101},gridTemplateAreas:{layer:-101},gridTemplateColumns:{match:/^grid-template-cols:./,layer:-101,unit:"rem",variables:{min:"min-content",max:"max-content"}},gridTemplateRows:{layer:-101,unit:"rem",variables:{min:"min-content",max:"max-content"}},gridTemplate:{layer:-301},gridArea:{layer:-301},grid:{layer:-301},columnGap:{match:/^gap-x:./,unit:"rem",layer:-101,variables:["spacing"]},rowGap:{match:/^gap-y:./,unit:"rem",layer:-101,variables:["spacing"]},gap:{unit:"rem",layer:-301,variables:["spacing"]},order:{match:/^o:./,layer:-101,variables:{first:-999999,last:999999}},breakInside:{layer:-101},breakBefore:{layer:-101},breakAfter:{layer:-101},aspectRatio:{match:/^aspect:./,layer:-101},columnSpan:{match:/^col-span:./,layer:-101},alignContent:{match:/^ac:./,layer:-101},alignItems:{match:/^ai:./,layer:-101},alignSelf:{match:/^as:/,layer:-101},justifyContent:{match:/^jc:./,layer:-101},justifyItems:{match:/^ji:./,layer:-101},justifySelf:{match:/^js:./,layer:-101},placeContent:{layer:-301},placeItems:{layer:-301},placeSelf:{layer:-301},listStylePosition:{match:["list-style",["inside","outside"]],layer:-101},listStyleType:{match:["list-style",["disc","decimal"]],layer:-101},listStyleImage:{match:["list-style",["(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)"]],layer:-101},listStyle:{layer:-301},outlineColor:{match:["outline"],layer:-101,colored:!0},outlineOffset:{unit:"rem",layer:-101,variables:["spacing"]},outlineStyle:{match:["outline",["dotted","dashed","solid","double","groove","ridge","inset","outset"]],layer:-101},outlineWidth:{match:["outline",["medium","thick","thin"]],numeric:!0,unit:"rem",layer:-101},outline:{unit:"rem",layer:-301,colored:!0,transform(e){return/hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},variables:["outlineWidth","outlineStyle","outlineOffset","outlineColor"]},accentColor:{match:/^accent:./,layer:-101,colored:!0},appearance:{layer:-101},caretColor:{match:/^caret:./,layer:-101,colored:!0},scrollBehavior:{layer:-101},scrollMarginLeft:{match:/^scroll-ml:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginRight:{match:/^scroll-mr:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginTop:{match:/^scroll-mt:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginBottom:{match:/^scroll-mb:./,layer:-101,unit:"rem",variables:["spacing"]},scrollMarginX:{match:/^(?:scroll-margin-x|scroll-mx):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}},variables:["spacing"]},scrollMarginY:{match:/^(?:scroll-margin-y|scroll-my):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}},variables:["spacing"]},scrollMargin:{match:/^scroll-m:./,unit:"rem",layer:-301,variables:["spacing"]},scrollPaddingLeft:{match:/^scroll-pl:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingRight:{match:/^scroll-pr:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingTop:{match:/^scroll-pt:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingBottom:{match:/^scroll-pb:./,layer:-101,unit:"rem",variables:["spacing"]},scrollPaddingX:{match:/^(?:scroll-padding-x|scroll-px):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}},variables:["spacing"]},scrollPaddingY:{match:/^(?:scroll-padding-y|scroll-py):./,unit:"rem",layer:-201,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}},variables:["spacing"]},scrollPadding:{match:/^scroll-p:./,unit:"rem",layer:-301,variables:["spacing"]},scrollSnapAlign:{match:["scroll-snap",["start","end","center"]],layer:-101},scrollSnapStop:{match:["scroll-snap",["normal","always"]],layer:-101},scrollSnapType:{match:["scroll-snap",["x","y","block","inline","both"]],layer:-101},willChange:{layer:-101},writingMode:{match:/^writing:./,layer:-101},direction:{layer:-101},shapeOutside:{match:["shape",["(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)"]],layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:["shape"],numeric:!0,unit:"rem",layer:-101,variables:["spacing"]},shapeImageThreshold:{layer:-101},clipPath:{match:/^clip:./,layer:-101,variables:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{layer:-101},maskImage:{layer:-101,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Pe=qe;var Ue={$:{transform(e,t,i){let s=this.css.variables[t];return s||"var(--"+t+")"}},calc:{transform(e,t,i){let s=this.variables,l=this.css.config.functions,a=this,u=0,d="",c="";return function g(v,f){let b=!1,y=(m,p=!1,n=!1)=>{if(m!=="("&&s&&c in s&&(c=s[c].toString()),c&&!b&&!f){let o=a.resolveUnitValue(c,l.calc.unit);o&&(c=o.value+o.unit)}d+=c+(p&&t[u-1]!==" "?" ":"")+m+(n&&t[u+1]!==" "?" ":""),c="",b=!1};for(;u<t.length;u++){let m=t[u];if(m==="("){let p=/^[+-]/.test(c),n=p?c.slice(1):c,o=b,r=d.length;if(y(m),u++,g(n,o||f),n!=="calc"){let h=l[n];if(h){let S=d.slice(r+2+(p?1:0),d.length-1);if(d=d.slice(0,r-n.length+1+(p?1:0)),h.transform){let x=h.transform.call(a,"(",S,")"),N=a.resolveUnitValue(x,l.calc.unit);d+=N?N.value+N.unit:x}else d+=(h.name??n)+"("+S+")"}}}else if(m===")"){y(m);break}else if(m===",")y(m,!1,!0);else if(m===" ")y(m);else{let p=t[u-1];switch(m){case"+":!c&&p!==")"?c+=m:y(m,!0,!0);break;case"-":v==="var"||!c&&p!==")"?c+=m:y(m,!0,!0);break;case"*":y(m,!0,!0);break;case"/":y(m,!0,!0),b=!0;break;default:c+=m;break}}}u>=t.length-1&&y("")}("",!1),e+d+i}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:"",colored:!0},"color-contrast":{unit:"",colored:!0},"color-mix":{unit:"",colored:!0},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{colored:!0},"radial-gradient":{colored:!0},"conic-gradient":{colored:!0},"repeating-linear-gradient":{colored:!0},"repeating-radial-gradient":{colored:!0},"repeating-conic-gradient":{colored:!0}},We=Ue;var fe={mediaQueries:Te,colors:Oe,selectors:Me,semantics:Be,rules:Pe,functions:We,animations:Ee,variables:Ae,scope:"",rootSize:16,override:!1,important:!1,themeDriver:"class"};var Ie=[",",".","#","[","!","*",">","+","~",":","@"];function ve(e,t){let{joiner:i=".",parentKey:s=""}=t??{};return Object.keys(e).reduce((l,a)=>{let u=s?`${s}${a?i+a:""}`:a;return typeof e[a]=="object"&&!Array.isArray(e[a])?Object.assign(l,ve(e[a],{joiner:i,parentKey:u.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()})):l[u]=e[a],l},{})}var pe="_CNO_",te=class e{constructor(t=fe){this.customConfig=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(fe,t),this.resolve(),e.instances.push(this)}static root;static config=fe;static instances=[];static refresh=t=>{for(let i of this.instances)i.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;config;semanticRuleOptions=[];ruleOptions=[];colorTokenRegExp;observer;colorByThemeByColorName;resolve(){this.styles={},this.colors={},this.stylesBy={},this.themeNames=[""],this.selectors={},this.variables={},this.fonts={},this.mediaQueries={},this.keyframesMap={},this.animations={},this.colorTokenRegExp=null,this.ruleOptions.length=0,this.semanticRuleOptions.length=0;let{styles:t,selectors:i,variables:s,semantics:l,mediaQueries:a,rules:u,animations:d}=this.config;function c(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function g(n,o,r="",h={}){let S=O=>O?(r?r+"-":"")+O:r,x=Object.entries(n),N=[],M=[];for(let O of x){let z=O[1];(typeof z=="object"&&!Array.isArray(z)?N:M).push(O)}for(let[O,z]of N)g(z,o,S(O),h);if(o&&r)M.length&&(h[r]=M.reduce((O,[z,Y])=>(O[z]=Y,O),{}));else for(let[O,z]of M)h[S(O)]=z;return h}if(i)for(let[n,o]of Object.entries(g(i,!1))){let r=new RegExp(c(n)+"(?![a-z-])");for(let h of Array.isArray(o)?o:[o]){let S=h.match(/^::-[a-z]+-/m)?.[0]??"",x=this.selectors[S];x||(x=this.selectors[S]=[]);let N=x.find(([M])=>M===r);N||(N=[r,[]],x.push(N)),N[1].push(h)}}if(s){this.variables=ve(s);for(let[n,o]of Object.entries(this.variables))typeof o=="number"?this.variables["-"+n]=o*-1:Array.isArray(o)?this.variables[n]=o.join(","):this.variables[n]=o}if(a&&(this.mediaQueries=g(a,!1)),d)for(let n in d){let o=this.animations[n]={},r=d[n];for(let h in r){let S=o[h]={},x=r[h];for(let N in x)S[N]=x[N]}}let v=t?g(t,!1):{},f=Object.keys(v),b=n=>{if(Object.prototype.hasOwnProperty.call(this.styles,n))return;let o=this.styles[n]=[],r=v[n];if(!r)return;let h=r.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let S of h){let x=N=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,N)){let M=this.stylesBy[N];M.includes(n)||M.push(n)}else this.stylesBy[N]=[n];o.includes(N)||o.push(N)};if(f.includes(S)){b(S);for(let N of this.styles[S])x(N)}else x(S)}};for(let n of f)b(n);let y=Object.entries(this.colorByThemeByColorName).reduce((n,[o,r])=>(n[o]=()=>{let h=(N,M)=>M?N.slice(0,7)+Math.round(255*+M).toString(16):N,S={};for(let N in r){let M=r[N].split(" ");for(let O of M){let z=O.lastIndexOf("@"),Y=z!==-1?O.slice(0,z):O,K=z!==-1?O.slice(z+1):"",q=N.slice(1)||K;if(O.startsWith("#"))S[q]=Y;else if(O.startsWith(pe)){let[D,Z]=Y.slice(pe.length).split("/");if(Object.prototype.hasOwnProperty.call(y,D)){let U=y[D];delete y[D],U()}let Q=Object.prototype.hasOwnProperty.call(this.colors,D)&&this.colors[D];if(Q)for(let U in Q){let se=Q[U];S[U]=h(se,Z)}else S[q]=D}else{let[D,Z]=Y.split("@"),[Q,U]=D.split("/");if(Object.prototype.hasOwnProperty.call(y,Q)){let ae=y[Q];delete y[Q],ae()}let se=Object.prototype.hasOwnProperty.call(this.colors,Q)&&this.colors[Q][(N?K:Z)||""];se?S[q]=h(se,U):console.error(`"${o}${N}: ${O}" is an invalid ".colors" config`)}}}let x=Object.keys(S);if(x.length){this.colors[o]=S;for(let N of x)N&&!this.themeNames.includes(N)&&this.themeNames.push(N)}delete y[o]},n),{});for(let n of Object.keys(y))y[n]?.();this.colorNames=Object.keys(this.colors),this.colorTokenRegExp=new RegExp(`(^|,| |\\()(${this.colorNames.join("|")})(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"g"),l&&Object.entries(l).sort((n,o)=>n[0].localeCompare(o[0])).forEach(([n,o],r)=>{this.semanticRuleOptions.push({id:"."+n,resolvedMatch:new RegExp("^"+c(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),order:r,declarations:o,layer:-401})});let m=Object.entries(u).sort((n,o)=>n[1].layer!==o[1].layer?(o[1].layer||0)-(n[1].layer||0):o[0].localeCompare(n[0])),p=m.length;m.forEach(([n,o],r)=>{this.ruleOptions.push(o),o.order=this.semanticRuleOptions.length+p-1-r;let h=o.match;o.id=n,(o.layer===-100||o.layer===-300||o.layer===-101||o.layer===-301)&&(o.resolvedPropName=n.replace(/(?!^)[A-Z]/g,x=>"-"+x).toLowerCase()),o.resolvedVariables={};let S=s[n];if(typeof S=="object"&&Object.assign(o.resolvedVariables,S),o.variables)if(Array.isArray(o.variables))for(let x of o.variables)typeof x=="object"?Object.assign(o.resolvedVariables,x):Object.assign(o.resolvedVariables,s[x]||{});else Object.assign(o.resolvedVariables,o.variables);if(Object.keys(o.resolvedVariables).length)for(let[x,N]of Object.entries(o.resolvedVariables))typeof N=="number"&&(o.resolvedVariables["-"+x]=N*-1);if(h)if(Array.isArray(h)){let[x,N=[]]=h,M=[];N.length&&M.push(`(?:${N.join("|")})(?![a-zA-Z0-9-])`),Object.keys(o.resolvedVariables).length&&M.push(`(?:${Object.keys(o.resolvedVariables).join("|")})(?![a-zA-Z0-9-])`),o.colored&&(M.push("#","(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\\(.*\\)"),this.colorNames.length&&M.push(`(?:${this.colorNames.join("|")})(?![a-zA-Z0-9-])`)),o.numeric&&M.push("[\\d\\.]","(?:max|min|calc|clamp)\\(.*\\)"),o.resolvedMatch=new RegExp(`^${x}:(?:${M.join("|")})[^|]*?(?:@|$)`)}else o.resolvedMatch=h})}observe(t,i={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let s=t===document;s&&(e.root=this),this.host=s?document.documentElement:this.root.host;let l=s?document.head:t,a=s?document.styleSheets:t.styleSheets;for(let d of a){let{ownerNode:c}=d;if(c&&c.id==="master"){this.style=c;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let c=this.style.sheet.cssRules[d];if(c.constructor.name==="CSSKeyframesRule")continue;let g=f=>{if(f.selectorText){let y=f.selectorText.split(", ")[0].split(" ");for(let m=0;m<y.length;m++){let p=y[m];if(p[0]==="."){let n=p.slice(1),o="";for(let r=0;r<n.length;r++){let h=n[r],S=n[r+1];if(h==="\\"){if(r++,S!=="\\"){o+=S;continue}}else if(Ie.includes(h))break;o+=h}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,o)&&!Object.prototype.hasOwnProperty.call(this.styles,o)){let r=this.create(o)[0];if(r)return r}}}}else if(f.cssRules)for(let b=0;b<f.cssRules.length;b++){let y=g(f.cssRules[b]);if(y)return y}},v=g(c);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let f=0;f<v.natives.length;f++)v.natives[f].cssRule=this.style.sheet.cssRules[d+f];d+=v.natives.length-1,this.handleRuleWithAnimationNames(v),v.options.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",l.append(this.style);let u=d=>{d.forEach(c=>{Object.prototype.hasOwnProperty.call(this.countBy,c)?this.countBy[c]++:(this.countBy[c]=1,this.insert(c))})};u(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(d=>u(d.classList)),this.observer=new MutationObserver(d=>{let c={},g=[],v=[],f=[],b=(n,o)=>{o?n.classList.forEach(m):n.classList.forEach(y);let r=n.children;for(let h=0;h<r.length;h++){let S=r[h];S.classList&&(v.push(S),b(S,o))}},y=n=>{Object.prototype.hasOwnProperty.call(c,n)?c[n]++:c[n]=1},m=n=>{Object.prototype.hasOwnProperty.call(c,n)?c[n]--:Object.prototype.hasOwnProperty.call(this.countBy,n)&&(c[n]=-1)},p=(n,o)=>{for(let r=0;r<n.length;r++){let h=n[r];h.classList&&!v.includes(h)&&!f.includes(h)&&(h.isConnected!==o?(v.push(h),b(h,o)):f.push(h))}};for(let n=0;n<d.length;n++){let o=d[n],{addedNodes:r,removedNodes:h,type:S,target:x}=o;if(S==="attributes"){if(g.find(N=>N.target===x))continue;g.push(o)}else p(r,!1),(!x.isConnected||!v.includes(x))&&p(h,!0)}if(!(!g.length&&!Object.keys(c).length)){for(let{oldValue:n,target:o}of g){let r=v.includes(o),h=o.classList,S=n?n.split(" "):[];if(r){if(o.isConnected)continue;for(let x of S)h.contains(x)||m(x)}else if(o.isConnected){h.forEach(x=>{S.includes(x)||y(x)});for(let x of S)h.contains(x)||m(x)}}for(let n in c){let o=c[n],r=(this.countBy[n]||0)+o;r===0?(delete this.countBy[n],this.delete(n)):(Object.prototype.hasOwnProperty.call(this.countBy,n)||this.insert(n),this.countBy[n]=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 of this.ruleOptions)if(i.resolvedMatch&&i.resolvedMatch.test(t)||(i.layer===-100||i.layer===-300||i.layer===-101||i.layer===-301)&&t.startsWith(i.resolvedPropName+":"))return i;for(let i of this.semanticRuleOptions)if(i.resolvedMatch.test(t))return i}create(t){let i=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let l=this.match(s);if(l)return new de(s,l,this)};return(Object.prototype.hasOwnProperty.call(this.styles,t)?this.styles[t].map(s=>i(s)):[i(t)]).filter(s=>s&&s.text)}refresh(t=this.customConfig){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(fe,t),this.resolve(),!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 s in this.countBy)this.insert(s)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let i=this.style?.sheet,s=l=>{let a=this.ruleBy[l];if(!(!a||Object.prototype.hasOwnProperty.call(this.stylesBy,l)&&this.stylesBy[l].some(u=>Object.prototype.hasOwnProperty.call(this.countBy,u)))){if(i&&a.natives.length){let u=a.natives[0];for(let d=0;d<i.cssRules.length;d++)if(i.cssRules[d]===u.cssRule){for(let g=0;g<a.natives.length;g++)i.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(a),1),delete this.ruleBy[l],a.animationNames){let u=this.rules[0];for(let d of a.animationNames){let c=this.keyframesMap[d];if(!--c.count){let g=u.natives.indexOf(c.native);this.style.sheet.deleteRule(g),u.natives.splice(g,1),delete this.keyframesMap[d]}}u.natives.length||this.rules.splice(0,1)}a.options.delete?.call(a,l)}};if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let l of this.styles[t])Object.prototype.hasOwnProperty.call(this.countBy,l)||s(l);delete this.ruleBy[t]}else s(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 s,l=Object.keys(this.keyframesMap).length,a=this.rules.length-1,{media:u,order:d,priority:c,hasWhere:g,className:v}=i,f=(m,p,n)=>{let o=m;for(;o<=a;o++){let r=this.rules[o];if(p?.(r))return n?-1:o-1;if(n?.(r))return o}return n?-1:o-1},b,y;if(u){let m=this.rules.findIndex(p=>p.media);if(m===-1)s=a+1;else{let{"max-width":p,"min-width":n}=u.features;if(p||n){let o=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(o===-1)s=a+1;else if(p&&n){if(c===-1?(b=f(o,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),y=f(o,r=>r.priority!==-1)):(b=f(o,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),y=a),b!==-1){let r=p.value-n.value,h=y,S=b;for(b=void 0;h>=S;h--){let{"max-width":x,"min-width":N}=this.rules[h].media.features,M=x.value-N.value;if(M<r)y=h-1;else if(M===r)b=h;else break}}if(b!==-1){let r=p.value-n.value;for(let h=y;h>=b;h--){let{"max-width":S,"min-width":x}=this.rules[h].media.features,N=S.value-x.value;if(N<r)y=h-1;else if(N>r){b=h+1;break}}}}else if(n){if(c===-1?(b=f(o,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"]),y=f(o,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(b=f(o,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),y=f(o,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),b!==-1)for(let r=y;r>=b;r--){let h=this.rules[r].media.features["min-width"].value;if(h>n.value)y=r-1;else if(h<n.value){b=r+1;break}}}else if(c===-1?(b=f(o,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),y=f(o,r=>r.media.features["min-width"]||r.priority!==-1)):(b=f(o,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),y=f(o,r=>r.media.features["min-width"]&&r.priority!==-1)),b!==-1)for(let r=y;r>=b;r--){let h=this.rules[r].media.features["max-width"].value;if(h<p.value)y=r-1;else if(h>p.value){b=r+1;break}}}else c===-1?(b=m,y=f(m,o=>o.media?.features["max-width"]||o.media?.features["min-width"]||o.priority!==-1)):(b=f(m,o=>o.media?.features["max-width"]||o.media?.features["min-width"],o=>o.priority!==-1),y=f(m,o=>o.media?.features["max-width"]||o.media?.features["min-width"]))}}else{let m=l?1:0;c===-1?(b=m,y=f(m,p=>p.media||p.priority!==-1)):(b=f(m,p=>p.media,p=>p.priority!==-1),y=f(m,p=>p.media))}if(s===void 0)if(b===-1)s=y+1;else{if(c===-1)for(let m=b;m<=y;m++){let p=this.rules[m];if(!(!g&&p.hasWhere)&&(g&&!p.hasWhere||p.order>=d)){s=m;break}}else for(let m=b;m<=y;m++){let p=this.rules[m];if(!(!g&&p.hasWhere)){if(g&&!p.hasWhere){s=m;break}if(p.priority<c){s=m;break}else if(p.priority===c){if(p.order>=d){s=m;break}}else s=m+1}}s===void 0&&(s=y+1)}if(this.rules.splice(s,0,i),this.ruleBy[v]=i,this.style){let m=this.style.sheet,p=0,n=o=>{let r=this.rules[o];if(r){if(!r.natives.length)return n(o-1);let h=r.natives[r.natives.length-1].cssRule;for(let S=0;S<m.cssRules.length;S++)if(m.cssRules[S]===h){p=S+1;break}}};n(s-1);for(let o=0;o<i.natives.length;)try{let r=i.natives[o];m.insertRule(r.text,p),r.cssRule=m.cssRules[p++],o++}catch(r){console.error(r),i.natives.splice(o,1)}}this.handleRuleWithAnimationNames(i),i.options.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=a=>{let u=ne({},a),d=c=>{for(let g in c){let v=c[g];typeof v=="object"&&!Array.isArray(v)?d(v):g&&(c[g]={"":v})}};if(u.styles?d(u.styles):u.styles={},u.mediaQueries?d(u.mediaQueries):u.mediaQueries={},u.colors){let c=(g,v)=>{let f=(p,n,o)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,p)||(this.colorByThemeByColorName[p]={});let r=this.colorByThemeByColorName[p],h=r[""]?.includes(pe),S=x=>x.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(N,M,O,z,Y)=>{let K="#"+me(+M,+O,+z);return Y&&(K+=Math.round(255*+Y).toString(16)),K});for(let[x,N]of n)if(N){let M=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,O;for(;(O=M.exec(N))!==null;){let z=O[0].trimStart(),Y=z.lastIndexOf("@"),K=Y!==-1?z.slice(0,Y):z,q=Y!==-1?z.slice(Y):"",D=x||q,Z=o&&O[2]&&!O[2].startsWith("#")&&!q,Q=O[1]?S(K):x?O[0]:K;if(h||Z){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let U in r)U&&(r[""]+=" "+r[U],delete r[U]);r[""]+=(r[""]?" ":"")+(Z?pe:"")+Q+D}else r[D]=Q;if(x)break}}else if(o){delete this.colorByThemeByColorName[p];return}else delete r[x];Object.keys(r).length||delete this.colorByThemeByColorName[p]},b=Object.entries(g),y=b.filter(([p])=>p===""||p.startsWith("@"));y.length&&f(v,y,!1);let m=b.filter(([p])=>p!==""&&!p.startsWith("@"));for(let[p,n]of m){let o=(v?v+"-":"")+p;typeof n=="string"?f(o,[["",n]],!0):c(n,o)}};c(u.colors,"")}return u},s=[];for(let a of t)(function u(d){if(d.extends?.length)for(let c of d.extends)u("config"in c?c.config:c);s.push(i(d))})(a);let l=s[0];for(let a=1;a<s.length;a++){let u=s[a];l=ne(l,u),Object.prototype.hasOwnProperty.call(u,"animations")&&Object.assign(l.animations,u.animations)}return l}handleRuleWithAnimationNames(t){if(t.animationNames){let i=this.style?.sheet;for(let s of t.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,s))this.keyframesMap[s].count++;else{let l={text:`@keyframes ${s}{`+Object.entries(this.animations[s]).map(([u,d])=>`${u}{${Object.entries(d).map(([c,g])=>c+":"+g).join(";")}}`).join("")+"}",theme:""},a;if(Object.keys(this.keyframesMap).length?(a=this.rules[0]).natives.push(l):this.rules.splice(0,0,a={natives:[l],get text(){return this.natives.map(u=>u.text).join("")}}),i){let u;for(let d=0;d<i.cssRules.length;d++){let c=i.cssRules[d];if(c.constructor.name!=="CSSKeyframesRule")break;if(c.name===s){u=c;break}}if(u)l.cssRule=u;else{let d=a.natives.length-1;i.insertRule(l.text,d),l.cssRule=i.cssRules[d]}}this.keyframesMap[s]={native:l,count:1}}}}};typeof window<"u"&&(window.MasterCSS=te);var Ge=`/** @type {import('@master/css').Config} */
|
|
2
2
|
module.exports = {
|
|
3
3
|
styles: {},
|
|
4
4
|
colors: {},
|
|
@@ -10,7 +10,7 @@ module.exports = {
|
|
|
10
10
|
selectors: {},
|
|
11
11
|
functions: {}
|
|
12
12
|
}
|
|
13
|
-
`;var
|
|
13
|
+
`;var Ke=`/** @type {import('@master/css').Config} */
|
|
14
14
|
export default {
|
|
15
15
|
styles: {},
|
|
16
16
|
colors: {},
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
selectors: {},
|
|
23
23
|
functions: {}
|
|
24
24
|
}
|
|
25
|
-
`;var
|
|
25
|
+
`;var Ze=`import type { Config } from '@master/css'
|
|
26
26
|
|
|
27
27
|
export default {
|
|
28
28
|
styles: {},
|
|
@@ -35,4 +35,4 @@ export default {
|
|
|
35
35
|
selectors: {},
|
|
36
36
|
functions: {}
|
|
37
37
|
} as Config
|
|
38
|
-
`;function
|
|
38
|
+
`;function ge(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((s,l)=>l%2===1).map(s=>s.split(" ")).flat().map(s=>s.replace(t,(l,a)=>i[a]))}function ye(e,t){if(!e.length)return;let i=new te(t);for(let s of e)i.insert(s);return i.text}function he(e,t){if(!e)return;let i=ge(e);if(i.length)return ye(i,t)}function Ve(e,t){return new te(e).observe(t)}function Le(e,t){if(!e)return;let i=!1;if(e=e.replace(/(<style id="master">).*?(<\/style>)/,(l,a,u)=>(i=!0,a+he(e,t)+u)),i)return e;let s=`<style id="master">${he(e,t)}</style>`;return e.replace(/<\/head>/,`${s}$&`)}function De(e,t){if(!e.length)return;let i=new te(t);for(let s of e)i.insert(s);return i.rules.sort((s,l)=>{if(s.options.layer===-401&&l.options.layer!==-401)return-1;if(s.options.layer!==-401&&l.options.layer===-401)return 1;if(s.options.id!==l.options.id)return s.options.id.localeCompare(l.options.id);{let a=s.vendorSuffixSelectors?.[""]?.[0],u=l.vendorSuffixSelectors?.[""]?.[0],d=s.media?.token,c=l.media?.token;if(s.priority===-1&&l.priority===-1){if(a&&u)return a.localeCompare(u);if(d&&c&&!Object.keys(s.media.features||{}).length&&!Object.keys(l.media.features||{}).length)return d.localeCompare(c);if(a&&!u)return 1;if(!a&&u)return-1;if(d&&!c)return 1;if(!d&&c)return-1}return s.options.id===l.options.id&&s.stateToken===l.stateToken?s.className.localeCompare(l.className):s.order-l.order}}).map(s=>s.className)}export{Ke as CONFIG_ESM_TEXT,Ge as CONFIG_TEXT,Ze as CONFIG_TS_TEXT,je as CoreLayer,ke as Layer,te as MasterCSS,de as Rule,Ee as animations,Oe as colors,fe as config,te as default,ne as extend,ge as extractClassesFromHTML,$ as fillColorScale,We as functions,ye as generateFromClasses,he as generateFromHTML,Ve as initRuntime,Te as mediaQueries,Le as renderHTML,De as reorderForReadableClasses,Pe as rules,Me as selectors,Be as semantics,Ae as variables};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { MasterCSS, MasterCSS as default } from './core';
|
|
2
|
-
export { Rule,
|
|
2
|
+
export { Rule, RuleNative, MediaFeatureRule, MediaQuery } from './rule';
|
|
3
3
|
export { CONFIG_TEXT } from './constants/config-text';
|
|
4
4
|
export { CONFIG_ESM_TEXT } from './constants/config-esm-text';
|
|
5
5
|
export { CONFIG_TS_TEXT } from './constants/config-ts-text';
|
package/dist/rule.d.ts
CHANGED
|
@@ -1,15 +1,62 @@
|
|
|
1
1
|
import type { MasterCSS } from './core';
|
|
2
|
-
import {
|
|
2
|
+
import { CSSDeclarations } from './types/css-declarations';
|
|
3
|
+
import { CoreLayer, Layer } from './layer';
|
|
3
4
|
export declare class Rule {
|
|
4
5
|
readonly className: string;
|
|
5
|
-
readonly options:
|
|
6
|
+
readonly options: {
|
|
7
|
+
id?: string;
|
|
8
|
+
match?: RegExp | [string, string[]?];
|
|
9
|
+
resolvedMatch?: RegExp;
|
|
10
|
+
resolvedVariables?: any;
|
|
11
|
+
variables?: Record<string, string | number> | Array<string | number | Record<string, string | number>>;
|
|
12
|
+
order?: number;
|
|
13
|
+
separators?: string[];
|
|
14
|
+
shorthand?: string;
|
|
15
|
+
colored?: boolean;
|
|
16
|
+
numeric?: boolean;
|
|
17
|
+
unit?: any;
|
|
18
|
+
native?: boolean;
|
|
19
|
+
declarations?: CSSDeclarations;
|
|
20
|
+
resolvedPropName?: string;
|
|
21
|
+
layer?: Layer | CoreLayer;
|
|
22
|
+
analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
|
|
23
|
+
transform?(this: Rule, value: string): string;
|
|
24
|
+
declare?(this: Rule, value: string, unit: string): CSSDeclarations;
|
|
25
|
+
delete?(this: Rule, className: string): void;
|
|
26
|
+
create?(this: Rule, className: string): void;
|
|
27
|
+
insert?(this: Rule): void;
|
|
28
|
+
};
|
|
6
29
|
css: MasterCSS;
|
|
7
30
|
readonly at: Record<string, string>;
|
|
8
31
|
readonly priority: number;
|
|
9
32
|
readonly natives: RuleNative[];
|
|
10
33
|
readonly order: number;
|
|
34
|
+
readonly stateToken: string;
|
|
35
|
+
readonly declarations: CSSDeclarations;
|
|
11
36
|
animationNames: string[];
|
|
12
|
-
constructor(className: string, options:
|
|
37
|
+
constructor(className: string, options: {
|
|
38
|
+
id?: string;
|
|
39
|
+
match?: RegExp | [string, string[]?];
|
|
40
|
+
resolvedMatch?: RegExp;
|
|
41
|
+
resolvedVariables?: any;
|
|
42
|
+
variables?: Record<string, string | number> | Array<string | number | Record<string, string | number>>;
|
|
43
|
+
order?: number;
|
|
44
|
+
separators?: string[];
|
|
45
|
+
shorthand?: string;
|
|
46
|
+
colored?: boolean;
|
|
47
|
+
numeric?: boolean;
|
|
48
|
+
unit?: any;
|
|
49
|
+
native?: boolean;
|
|
50
|
+
declarations?: CSSDeclarations;
|
|
51
|
+
resolvedPropName?: string;
|
|
52
|
+
layer?: Layer | CoreLayer;
|
|
53
|
+
analyze?: (this: Rule, className: string) => [valueToken: string, prefixToken?: string];
|
|
54
|
+
transform?(this: Rule, value: string): string;
|
|
55
|
+
declare?(this: Rule, value: string, unit: string): CSSDeclarations;
|
|
56
|
+
delete?(this: Rule, className: string): void;
|
|
57
|
+
create?(this: Rule, className: string): void;
|
|
58
|
+
insert?(this: Rule): void;
|
|
59
|
+
}, css: MasterCSS);
|
|
13
60
|
get text(): string;
|
|
14
61
|
resolveValue(value: any, unit: any): any;
|
|
15
62
|
resolveUnitValue(token: string | number, unit?: string): {
|
|
@@ -53,5 +100,5 @@ export interface MediaQuery {
|
|
|
53
100
|
}
|
|
54
101
|
export interface RuleMeta {
|
|
55
102
|
value?: [string, string | Record<string, string>];
|
|
56
|
-
config?:
|
|
103
|
+
config?: Rule['options'];
|
|
57
104
|
}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","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://css.master.co/docs/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.
|
|
1
|
+
{"name":"@master/css","scripts":{"build":"techor pack --external @master/css-renderer @master/css-extractor","dev":"pnpm run build --watch --no-declare","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://css.master.co/docs/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.187","@techor/fs":"^2.5.4","@techor/log":"^2.5.4","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.4","@techor/pack":"^2.5.4","csstype":"^3.1.2","shared":"^2.0.0-beta.187","vite":"^4.2.1","puppeteer":"^21.0.1"},"version":"2.0.0-beta.187"}
|