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