@master/css 2.0.0-beta.166 → 2.0.0-beta.168
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/index.bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var ve=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var He=Object.prototype.hasOwnProperty;var Ye=(e,t)=>{for(var i in t)ve(e,i,{get:t[i],enumerable:!0})},Xe=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of _e(t))!He.call(e,p)&&p!==i&&ve(e,p,{get:()=>t[p],enumerable:!(o=Fe(t,p))||o.enumerable});return e};var Qe=e=>Xe(ve({},"__esModule",{value:!0}),e);var st={};Ye(st,{CONFIG_ESM_TEXT:()=>De,CONFIG_TEXT:()=>ze,CONFIG_TS_TEXT:()=>Ve,MasterCSS:()=>re,Rule:()=>ce,animations:()=>we,colors:()=>Ce,config:()=>ue,default:()=>re,extend:()=>te,extractClassesFromHTML:()=>he,fillColorScale:()=>D,functions:()=>ke,generateFromClasses:()=>ge,generateFromHTML:()=>fe,important:()=>Oe,initRuntime:()=>Ee,override:()=>Me,renderHTML:()=>Ne,rootSize:()=>$e,rules:()=>Se,scope:()=>Te,selectors:()=>Re,semantics:()=>ye,themeDriver:()=>Be,viewports:()=>xe});module.exports=Qe(st);function We(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Pe(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 Ie(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=Ie(i):We(i)?t[o]=Pe(i):t[o]=te({},i):t[o]=i}),t}function Ae(e,t){return t==="__proto__"?void 0:e[t]}function te(...e){let t={},i,o;return e.forEach(function(p){typeof p!="object"||p===null||Array.isArray(p)||Object.keys(p).forEach(function(s){if(o=Ae(t,s),i=Ae(p,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=Ie(i);return}else if(We(i)){t[s]=Pe(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=te({},i);return}else{t[s]=te(o,i);return}})}),t}var le={"(":")","'":"'",'"':'"',"{":"}"};function de(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,p="",s,u=t.charCodeAt(0);if(i==1&&u==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){p+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&u==45){p+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){p+=t.charAt(o);continue}p+="\\"+t.charAt(o)}return p}var qe={unit:"",order:0,separators:[","]},Ue=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ce=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=te(qe,i.config);let{unit:p,order:s,colored:u,native:d,analyze:v,transform:b,declare:x,create:a}=this.config,{scope:m,important:h,functions:g,themeDriver:f}=o.config,{themeNames:c,colorNames:n,colorThemesMap:r,selectors:l,viewports:C,mediaQueries:w,classesBy:T,globalValues:S,animations:I}=o,E=T[t];a&&a.call(this,t);let A,K,ie,Z,V;if(i.origin==="semantics"){let[W,N]=i.value;Z=t.slice(W.length),A=N}else{let W;if(v)[W,ie]=v.call(this,t);else{let B=t.indexOf(":");this.prefix=t.slice(0,B+1),W=t.slice(B+1)}V=[];let N=this,P=this.values,_=[","];this.config.separators.length&&_.push(...this.config.separators);let k="",R=0;(function B($,y,M,O=void 0,j=[],X=[],L){let H=O===void 0,Y,ae=z=>z==="'"||z==='"',oe=()=>Y=k.length,J=()=>{if(k){let z=k,F=H?z:k.slice(Y);if(k="",U="",P&&F in P&&!j.includes(F)){let q=R;R=0,B(P[F].toString(),y,void 0,O,[...j,F],X,L),R=q,H||(k=k.slice(0,Y)+k)}else if(S&&F in S&&!X.includes(F)){let q=R;R=0,B(S[F].toString(),y,void 0,O,j,[...X,F],L),R=q,H||(k=k.slice(0,Y)+k)}else if(H){let q=!L&&N.analyzeUnitValue(F,y);V.push({value:q?.value??F,unit:q?.unit})}else{let q=!L&&N.analyzeUnitValue(F,y);k=q?z.slice(0,Y)+q.value+q.unit:z}oe()}},ee=ae(M);oe();let U="";for(;R<$.length;R++){let z=$[R];if(z===M){if(ee){k+=z;let F=0;for(let q=k.length-2;k[q]==="\\";q--)F++;if(F%2)continue}else J(),k+=z;return}else if(!ee&&z in le){let F=z==="("&&U&&g?.[U];F?.name&&(k=k.slice(0,k.length-U.length)+F.name,U=F.name),k+=z,R++;let q=le[z];B($,F?.unit??y,q,U||O||"",j,X,L||!!F?.transform),F?.transform&&(k=k.slice(0,Y+U.length+1)+F.transform.call(N,k.slice(Y+U.length+1,-1))+k.slice(-1)),H&&(ae(q)?(V.push(k),k=""):J()),U=""}else if((z==="|"||z===" ")&&M!=="}"&&(!ee||O==="path"))J(),H||(k+=" ",Y++);else{if(!ee){if(z==="."){if(isNaN(+$[R+1]))break;$[R-1]==="-"&&(k+="0")}else if(_.includes(z)){J(),H?V.push(z):(k+=z,Y++);continue}else if(H&&(z==="#"&&(k||V.length&&$[R-1]!=="|"&&V[R-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(z)))break;U+=z}k+=z}}O===void 0&&J()})(W,p),Z=W.slice(R)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let ne=W=>{let N=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((R,B)=>B%3?R:R.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),P=[],_="",k=0;for(let R=0;R<N.length;R++){let B=N[R];if(B==="\\"){_+=B+N[++R];continue}!k&&B===","?(P.push(_),_=""):(_+=B,k&&B===")"?k--:B==="("&&k++)}return _&&P.push(_),P};this.prefixSelectors=ie?ne(ie):[""];let Q=Z.split("@"),G=Q[0];if(G){this.vendorSuffixSelectors={};let W=(R,B,$,y)=>{for(let[M,O]of B)if(M.test(R)){for(let j of O)W(R.replace(M,j),B,$,!0);return}y&&$.push(R)},N=[];""in l?W(G,l[""],N,!0):N.push(G);let P={};for(let[R,B]of Object.entries(l)){if(!R)continue;let $=[];for(let y of N)W(y,B,$,!1);$.length&&(P[R]=$)}let _=(R,B)=>{let $=B.reduce((y,M)=>(y.push(...ne(M)),y),[]);R in this.vendorSuffixSelectors?this.vendorSuffixSelectors[R].push(...$):this.vendorSuffixSelectors[R]=$},k=Object.keys(P);if(k.length)for(let R of k)_(R,P[R]);else _("",N);for(let R of Object.values(this.vendorSuffixSelectors))for(let B of R){this.hasWhere!==!1&&(this.hasWhere=B.includes(":where("));let $=[":disabled",":active",":focus",":hover"];for(let y=0;y<$.length;y++)if(B.includes($[y])){(this.priority===-1||this.priority>y)&&(this.priority=y);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<Q.length;W++){let N=Q[W];if(N)if(N==="rtl"||N==="ltr")this.direction=N;else{let P,_,k=Ue.exec(N);if(k)P=k[1],_=N.slice(P.length);else{this.media={token:N,features:{}};let R=[],B=y=>{if(y==="all"||y==="print"||y==="screen"||y==="speech")this.media.type=y;else if(y==="\u{1F5A8}")this.media.type="print";else if(y==="landscape"||y==="portrait")R.push("(orientation:"+y+")");else if(y==="motion"||y==="reduced-motion")R.push("(prefers-reduced-motion:"+(y==="motion"?"no-preference":"reduce")+")");else if(w&&y in w)R.push(w[y]);else{let M={token:y},O="",j="",X=0;y.startsWith("<=")?(j="<=",O="max-width"):y.startsWith(">=")||C[y]?(j=">=",O="min-width"):y.startsWith(">")?(j=">",O="min-width",X=.02):y.startsWith("<")&&(j="<",O="max-width",X=-.02);let L=j?y.replace(j,""):y,H=C[L];switch(O){case"max-width":case"min-width":H?Object.assign(M,this.analyzeUnitValue(H.toString(),"px")):Object.assign(M,this.analyzeUnitValue(L,"px")),M.unit==="px"&&(M.value+=X),this.media.features[O]=M,R.push("("+O+":"+(M.value+M.unit)+")");break}}},$=N.includes("&");if($){let y=N.split("&");for(let M of y)B(M)}else B(N);if(this.media.type&&(_=this.media.type),R.length&&(_=R.join(" and ")),_)P="media";else if(!$){this.theme=N;continue}}_&&(this.at[P]=(P in this.at?this.at[P]+" and ":"")+_.replace(/\|/g," "))}}let se=(W,N)=>{let P,_=(B,$,y)=>{let M="";this.direction&&(M+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(L=>L+M),j=(L,H)=>O.map(Y=>(L&&f!=="media"?f==="host"?`:host(.${L}) `:`.${L} `:"")+(m?m+" ":"")+Y).reduce((Y,ae)=>(Y.push(y.reduce((oe,J)=>(oe.push(ae+"."+de(H)+J),oe),[]).join(",")),Y),[]).join(","),X=j($,t)+(E?E.reduce((L,H)=>L+","+j(this.theme??(u||K?$:""),H),""):"")+"{"+B+"}";for(let L of Object.keys(this.at).sort((H,Y)=>Y==="supports"?-1:1))X="@"+L+(L.includes(" ")?"":" ")+this.at[L]+"{"+X+"}";return $&&f==="media"&&(X=`@media(prefers-color-scheme:${$}){`+X+"}"),X},k=[];if(V){let B=[this.theme??W,""],$,y=!1;for(let M of V)if(typeof M=="string")k.push(M);else{let O=M.value;if(M.unit)O+=M.unit;else if(u&&r&&n){let j=!1;O=O.replace(new RegExp(`(^|,| |\\()((?:${n.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(X,L,H,Y)=>{let ae=r[H];if(ae){let oe,J;for(let ee of B)if(oe=ae[ee]){J=ee;break}if(oe){j=!N||J===W,$||($=j);let ee=oe;if(Y){let U=Y.endsWith("%")?parseFloat(Y)/100:+Y;U=isNaN(U)?1:Math.min(Math.max(U,0),1),ee+=Math.round(U*255).toString(16).toUpperCase().padStart(2,"0")}return L+ee}else y=!0}return X})}k.push(O)}if(N&&(y||($===void 0?W:!$)))return;if(P=k.reduce((M,O,j)=>M+O+(O===","||V[j+1]===","||j===V.length-1?"":" "),""),b&&(P=b.call(this,P,this.css.config)),u&&P==="current"&&(P="currentColor"),x){let M,O;if(V.length===1){let j=V[0];typeof j=="object"&&(M=j.value,O=j.unit)}A=x.call(this,O?M:P,O||"")}else A={[d]:P}}let R={};for(let B in A){let $=(O,j)=>{if(I&&(j.startsWith("animation")||j.startsWith("animation-name"))){let L=j.split(":")[1].split("!important")[0].split(" ").filter(H=>H in this.css.animations&&(!this.animationNames||!this.animationNames.includes(H)));L.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...L))}let X=j+((this.important||h)&&!j.endsWith("!important")?"!important":"");O in R?R[O].push(X):R[O]=[X]},y=B+":",M=A[B];if(typeof M=="object")if(Array.isArray(M))for(let O of M)$(W,y+O.toString());else{K=!0;for(let O in M)$(O,y+M[O])}else $(W,y+M.toString())}for(let B of Object.values(this.vendorSuffixSelectors))for(let $ in R)this.natives.push({text:_(R[$].join(";"),$,B),theme:$})};if(this.theme)se(this.theme,!1);else if(u)for(let W of c)se(W,!0);else se("",!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 p="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[u,d]=t.split("/");return{value:+u/+d*100+"%",unit:p}}else{let u=+s[1];return p=s[3]||"",p||((o==="rem"||o==="em")&&(u=u/this.css.config.rootSize),p=o||""),{value:u,unit:p}}}}};var Ke={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},xe=Ke;function me(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function pe(e,t,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 o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,p="0"in e?me(e[0]):[0,0,0],s,u,d=[],v=()=>{let b=s-o,x=u.map((a,m)=>(a-p[m])/b);for(let a of d){let m=a-o,h=p.map((g,f)=>Math.round(g+x[f]*m));e[a]="#"+pe.call(this,...h)}};for(let b=1;b<100;b++)b in e?(d.length?(s=b,u=me(e[b]),v(),d.length=0,p=u):p=me(e[b]),o=b):d.push(b);d.length&&(s=100,u="100"in e?me(e[100]):[255,255,255],v())}return t||(e[""]=e[i?"500":"50"]),e}var Ze={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"})},Ce=Ze;var Ge={"::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"},Re=Ge;var Je={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"}},ye=Je;var et={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"}}},we=et;var tt={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(b,x)=>{let a=x.indexOf(":");if(a!==-1){b in t||(t[b]={});let m=t[b],h=x.slice(0,a);h in m||(m[h]=x.slice(a+1))}},o=b=>{let x=(a,m)=>{let h=m.slice(de(b.className).length).match(/\{(.*)\}/)[1].split(";");for(let g of h)i(a,g)};if(this.theme){let a=b.natives.find(m=>m.theme===this.theme)??b.natives.find(m=>!m.theme);a&&x(this.theme,a.text)}else for(let a of b.natives)x(a.theme,a.text);if(b.animationNames){this.animationNames||(this.animationNames=[]);for(let a of b.animationNames)this.animationNames.includes(a)||this.animationNames.push(a)}},p=[],s="",u=()=>{s&&(p.push(s.replace(/ /g,"|")),s="")},d=1;(function b(x){for(;d<e.length;d++){let a=e[d];if(!x){if(a===";"){u();continue}if(a==="}")break}if(s+=a,x===a){if(x==="'"||x==='"'){let m=0;for(let h=s.length-2;s[h]==="\\";h--)m++;if(m%2)continue}break}else a in le&&x!=="'"&&x!=='"'&&(d++,b(le[a]))}})(void 0),u();for(let b of p){let x=this.css.create(b);if(Array.isArray(x))if(x.length)for(let a of x)o(a);else i(this.theme??"",b);else o(x)}let v={};for(let b in t)for(let[x,a]of Object.entries(t[b]))x in v?v[x][b]=a:v[x]={[b]:a};return v}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","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}}}},rt=tt,Se=rt;var it={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,p=this,s=0,u="",d="";return function v(b,x){let a=!1,m=(h,g=!1,f=!1)=>{if(h!=="("&&(t&&d in t?d=t[d].toString():i&&d in i&&(d=i[d].toString())),d&&!a&&!x){let c=p.analyzeUnitValue(d,o.calc.unit);c&&(d=c.value+c.unit)}u+=d+(g&&e[s-1]!==" "?" ":"")+h+(f&&e[s+1]!==" "?" ":""),d="",a=!1};for(;s<e.length;s++){let h=e[s];if(h==="("){let g=d,f=a,c=u.length;if(m(h),s++,v(g,f||x),g!=="calc"){let n=o[g];if(n){let r=u.slice(c+2,u.length-1);u=u.slice(0,c-g.length+1)+(n.name??g)+"("+(n.transform?.(r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let g=e[s-1];switch(h){case"+":!d&&g!==")"?d+=h:m(h,!0,!0);break;case"-":b==="var"||!d&&g!==")"?d+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),a=!0;break;default:d+=h;break}}}s>=e.length-1&&m("")}("",!1),u}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},repeat:{unit:""}},ke=it;var $e=16;var nt="",Te=nt;var Me=!1;var Oe=!1;var ot="class",Be=ot;var ue={viewports:xe,colors:Ce,rootSize:$e,scope:Te,selectors:Re,semantics:ye,rules:Se,override:Me,important:Oe,functions:ke,animations:we,themeDriver:Be};var Le=[",",".","#","[","!","*",">","+","~",":","@"];function je(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var be="_CNO_",re=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;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:p,values:s,viewports:u,mediaQueries:d,rules:v,animations:b}=this.config;function x(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(n,r,l="",C={}){let w=E=>E?(l?l+"-":"")+E:l,T=Object.entries(n),S=[],I=[];for(let E of T){let A=E[1];(typeof A=="object"&&!Array.isArray(A)?S:I).push(E)}for(let[E,A]of S)a(A,r,w(E),C);if(r&&l)I.length&&(C[l]=I.reduce((E,[A,K])=>(E[A]=K,E),{}));else for(let[E,A]of I)C[w(E)]=A;return C}function m(n){for(let[r,l]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof l=="number"&&(n["-"+r]=l*-1);return n}if(t)for(let[n,r]of Object.entries(a(t,!0))){let l={};for(let C of Object.keys(r))l[je(C)]=r[C];this.semantics.push([new RegExp("^"+x(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,l]])}if(o)for(let[n,r]of Object.entries(a(o,!1))){let l=new RegExp(x(n)+"(?![a-z-])");for(let C of Array.isArray(r)?r:[r]){let w=C.match(/^::-[a-z]+-/m)?.[0]??"",T=this.selectors[w];T||(T=this.selectors[w]=[]);let S=T.find(([I])=>I===l);S||(S=[l,[]],T.push(S)),S[1].push(C)}}if(s&&(this.globalValues=m(a(s,!1))),u&&(this.viewports=a(u,!1)),d&&(this.mediaQueries=a(d,!1)),b)for(let n in b){let r=this.animations[n]={},l=b[n];for(let C in l){let w=r[C]={},T=l[C];for(let S in T)w[je(S)]=T[S]}}let h=i?a(i,!1):{},g=Object.keys(h),f=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],l=h[n];if(!l)return;let C=l.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of C){let T=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let I=this.classesBy[S];I.includes(n)||I.push(n)}else this.classesBy[S]=[n];r.includes(S)||r.push(S)};if(g.includes(w)){f(w);for(let S of this.classes[w])T(S)}else T(w)}};for(let n of g)f(n);this.colorNames=Object.keys(p);let c=Object.entries(this.colorByThemeByColorName).reduce((n,[r,l])=>(n[r]=()=>{let C=(S,I)=>I?S.slice(0,7)+Math.round(255*+I).toString(16):S,w={};for(let S in l){let I=l[S].split(" ");for(let E of I){let A=E.lastIndexOf("@"),K=A!==-1?E.slice(0,A):E,ie=A!==-1?E.slice(A+1):"",Z=S.slice(1)||ie;if(E.startsWith("#"))w[Z]=K;else if(E.startsWith(be)){let[V,ne]=K.slice(be.length).split("/");if(Object.prototype.hasOwnProperty.call(c,V)){let G=c[V];delete c[V],G()}let Q=Object.prototype.hasOwnProperty.call(this.colorThemesMap,V)&&this.colorThemesMap[V];if(Q)for(let G in Q){let se=Q[G];w[G]=C(se,ne)}else console.error(`"${r}${S}: ${E}" is an invalid ".colors" config`)}else{let[V,ne]=K.split("@"),[Q,G]=V.split("/");if(Object.prototype.hasOwnProperty.call(c,Q)){let W=c[Q];delete c[Q],W()}let se=Object.prototype.hasOwnProperty.call(this.colorThemesMap,Q)&&this.colorThemesMap[Q][(S?ie:ne)||""];se?w[Z]=C(se,G):console.error(`"${r}${S}: ${E}" is an invalid ".colors" config`)}}}let T=Object.keys(w);if(T.length){this.colorThemesMap[r]=w;for(let S of T)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete c[r]},n),{});for(let n of Object.keys(c))c[n]?.();if(v)for(let n in v){let r=v[n],{native:l,values:C,colored:w}=r,T=r.match;if(r.id=n,r.native=l===!0?n.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,C&&(this.values[n]=m(a(C,!1))),T){let S=Object.keys(this.values[n]??{});T.includes("$values")&&(T=S.length?T.replace(/\$values/,S.join("|")):T.replace(/(?:\|)?\$values/,"")),w&&T.includes("$colors")&&(T=this.colorNames.length?T.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):T.replace(/(?:\|)?\$colors/,"")),this.matches[n]=new RegExp(T)}}}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 p=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let d of s){let{ownerNode:v}=d;if(v&&v.id==="master"){this.style=v;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let v=this.style.sheet.cssRules[d];if(v.constructor.name==="CSSKeyframesRule")continue;let b=a=>{if(a.selectorText){let h=a.selectorText.split(", ")[0].split(" ");for(let g=0;g<h.length;g++){let f=h[g];if(f[0]==="."){let c=f.slice(1),n="";for(let r=0;r<c.length;r++){let l=c[r],C=c[r+1];if(l==="\\"){if(r++,C!=="\\"){n+=C;continue}}else if(Le.includes(l))break;n+=l}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(a.cssRules)for(let m=0;m<a.cssRules.length;m++){let h=b(a.cssRules[m]);if(h)return h}},x=b(v);if(x){this.rules.push(x),this.ruleBy[x.className]=x;for(let a=0;a<x.natives.length;a++)x.natives[a].cssRule=this.style.sheet.cssRules[d+a];d+=x.natives.length-1,x.config.insert?.call(x)}}else this.style=document.createElement("style"),this.style.id="master",p.append(this.style);let u=d=>{d.forEach(v=>{Object.prototype.hasOwnProperty.call(this.countBy,v)?this.countBy[v]++:(this.countBy[v]=1,this.insert(v))})};u(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(d=>u(d.classList)),this.observer=new MutationObserver(d=>{let v={},b=[],x=[],a=[],m=(c,n)=>{n?c.classList.forEach(g):c.classList.forEach(h);let r=c.children;for(let l=0;l<r.length;l++){let C=r[l];C.classList&&(x.push(C),m(C,n))}},h=c=>{Object.prototype.hasOwnProperty.call(v,c)?v[c]++:v[c]=1},g=c=>{Object.prototype.hasOwnProperty.call(v,c)?v[c]--:Object.prototype.hasOwnProperty.call(this.countBy,c)&&(v[c]=-1)},f=(c,n)=>{for(let r=0;r<c.length;r++){let l=c[r];l.classList&&!x.includes(l)&&!a.includes(l)&&(l.isConnected!==n?(x.push(l),m(l,n)):a.push(l))}};for(let c=0;c<d.length;c++){let n=d[c],{addedNodes:r,removedNodes:l,type:C,target:w}=n;if(C==="attributes"){if(b.find(T=>T.target===w))continue;b.push(n)}else f(r,!1),(!w.isConnected||!x.includes(w))&&f(l,!0)}if(!(!b.length&&!Object.keys(v).length)){for(let{oldValue:c,target:n}of b){let r=x.includes(n),l=n.classList,C=c?c.split(" "):[];if(r){if(n.isConnected)continue;for(let w of C)l.contains(w)||g(w)}else if(n.isConnected){l.forEach(w=>{C.includes(w)||h(w)});for(let w of C)l.contains(w)||g(w)}}for(let c in v){let n=v[c],r=(this.countBy[c]||0)+n;r===0?(delete this.countBy[c],this.delete(c)):(Object.prototype.hasOwnProperty.call(this.countBy,c)||this.insert(c),this.countBy[c]=r)}}}),this.observer.observe(t,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],p=this.matches[i],{native:s}=o;if(p&&p.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 p=this.match(o);if(p)return new ce(o,p,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(ue,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=p=>{let s=this.ruleBy[p];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,p)&&this.classesBy[p].some(u=>Object.prototype.hasOwnProperty.call(this.countBy,u)))){if(i&&s.natives.length){let u=s.natives[0];for(let d=0;d<i.cssRules.length;d++)if(i.cssRules[d]===u.cssRule){for(let b=0;b<s.natives.length;b++)i.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[p],s.animationNames){let u=this.rules[0];for(let d of s.animationNames){let v=this.keyframesMap[d];if(!--v.count){let b=u.natives.indexOf(v.native);this.style.sheet.deleteRule(b),u.natives.splice(b,1),delete this.keyframesMap[d]}}u.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,p)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let p of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,p)||o(p);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,p=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:u,order:d,priority:v,hasWhere:b,className:x}=i,a=(g,f,c)=>{let n=g;for(;n<=s;n++){let r=this.rules[n];if(f?.(r))return c?-1:n-1;if(c?.(r))return n}return c?-1:n-1},m,h;if(u){let g=this.rules.findIndex(f=>f.media);if(g===-1)o=s+1;else{let{"max-width":f,"min-width":c}=u.features;if(f||c){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(f&&c){if(v===-1?(m=a(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=a(n,r=>r.priority!==-1)):(m=a(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=s),m!==-1){let r=f.value-c.value,l=h,C=m;for(m=void 0;l>=C;l--){let{"max-width":w,"min-width":T}=this.rules[l].media.features,S=w.value-T.value;if(S<r)h=l-1;else if(S===r)m=l;else break}}if(m!==-1){let r=f.value-c.value;for(let l=h;l>=m;l--){let{"max-width":C,"min-width":w}=this.rules[l].media.features,T=C.value-w.value;if(T<r)h=l-1;else if(T>r){m=l+1;break}}}}else if(c){if(v===-1?(m=a(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=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(m=a(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=a(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 l=this.rules[r].media.features["min-width"].value;if(l>c.value)h=r-1;else if(l<c.value){m=r+1;break}}}else if(v===-1?(m=a(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=a(n,r=>r.media.features["min-width"]||r.priority!==-1)):(m=a(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=a(n,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let l=this.rules[r].media.features["max-width"].value;if(l<f.value)h=r-1;else if(l>f.value){m=r+1;break}}}else v===-1?(m=g,h=a(g,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(m=a(g,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),h=a(g,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let g=p?1:0;v===-1?(m=g,h=a(g,f=>f.media||f.priority!==-1)):(m=a(g,f=>f.media,f=>f.priority!==-1),h=a(g,f=>f.media))}if(o===void 0)if(m===-1)o=h+1;else{if(v===-1)for(let g=m;g<=h;g++){let f=this.rules[g];if(!(!b&&f.hasWhere)&&(b&&!f.hasWhere||f.order>=d)){o=g;break}}else for(let g=m;g<=h;g++){let f=this.rules[g];if(!(!b&&f.hasWhere)){if(b&&!f.hasWhere){o=g;break}if(f.priority<v){o=g;break}else if(f.priority===v){if(f.order>=d){o=g;break}}else o=g+1}}o===void 0&&(o=h+1)}if(this.rules.splice(o,0,i),this.ruleBy[x]=i,this.style){let g=this.style.sheet,f=0,c=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return c(n-1);let l=r.natives[r.natives.length-1].cssRule;for(let C=0;C<g.cssRules.length;C++)if(g.cssRules[C]===l){f=C+1;break}}};c(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];g.insertRule(r.text,f),r.cssRule=g.cssRules[f++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}if(i.animationNames){let g=this.style?.sheet;for(let f of i.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,f))this.keyframesMap[f].count++;else{let c={text:`@keyframes ${f}{`+Object.entries(this.animations[f]).map(([r,l])=>`${r}{${Object.entries(l).map(([C,w])=>C+":"+w).join(";")}}`).join("")+"}",theme:""},n;if(Object.keys(this.keyframesMap).length?(n=this.rules[0]).natives.push(c):this.rules.splice(0,0,n={natives:[c],get text(){return this.natives.map(r=>r.text).join("")}}),g){let r;for(let l=0;l<g.cssRules.length;l++){let C=g.cssRules[l];if(C.constructor.name!=="CSSKeyframesRule")break;if(C.name===f){r=C;break}}if(r)c.cssRule=r;else{let l=n.natives.length-1;g.insertRule(c.text,l),c.cssRule=g.cssRules[l]}}this.keyframesMap[f]={native:c,count:1}}}i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=s=>{let u=te({},s),d=v=>{for(let b in v){let x=v[b];typeof x=="object"&&!Array.isArray(x)?d(x):b&&(v[b]={"":x})}};if(u.classes?d(u.classes):u.classes={},u.viewports?d(u.viewports):u.viewports={},u.mediaQueries?d(u.mediaQueries):u.mediaQueries={},u.selectors?d(u.selectors):u.selectors={},u.values?d(u.values):u.values={},u.colors){let v=(b,x)=>{let a=(f,c,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,f)||(this.colorByThemeByColorName[f]={});let r=this.colorByThemeByColorName[f],l=r[""]?.includes(be),C=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(T,S,I,E,A)=>{let K="#"+pe(+S,+I,+E);return A&&(K+=Math.round(255*+A).toString(16)),K});for(let[w,T]of c)if(T){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,I;for(;(I=S.exec(T))!==null;){let E=I[0].trimStart(),A=E.lastIndexOf("@"),K=A!==-1?E.slice(0,A):E,ie=A!==-1?E.slice(A):"",Z=w||ie,V=n&&I[2]&&!I[2].startsWith("#")&&!ie,ne=I[1]?C(K):w?I[0]:K;if(l||V){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let Q in r)Q&&(r[""]+=" "+r[Q],delete r[Q]);r[""]+=(r[""]?" ":"")+(V?be:"")+ne+Z}else r[Z]=ne;if(w)break}}else if(n){delete this.colorByThemeByColorName[f];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[f]},m=Object.entries(b),h=m.filter(([f])=>f===""||f.startsWith("@"));h.length&&a(x,h,!1);let g=m.filter(([f])=>f!==""&&!f.startsWith("@"));for(let[f,c]of g){let n=(x?x+"-":"")+f;typeof c=="string"?a(n,[["",c]],!0):v(c,n)}};v(u.colors,"")}return u},o=[];for(let s of t)(function u(d){if(d.extends?.length)for(let v of d.extends)u("config"in v?v.config:v);o.push(i(d))})(s);let p=o[0];for(let s=1;s<o.length;s++){let u=o[s];p=te(p,u),Object.prototype.hasOwnProperty.call(u,"animations")&&Object.assign(p.animations,u.animations)}return p}};typeof window<"u"&&(window.MasterCSS=re);var ze=`/** @type {import('@master/css').Config} */
|
|
1
|
+
var Ce=Object.defineProperty;var Ye=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Qe=Object.prototype.hasOwnProperty;var Ue=(e,t)=>{for(var i in t)Ce(e,i,{get:t[i],enumerable:!0})},qe=(e,t,i,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of Xe(t))!Qe.call(e,p)&&p!==i&&Ce(e,p,{get:()=>t[p],enumerable:!(o=Ye(t,p))||o.enumerable});return e};var Ke=e=>qe(Ce({},"__esModule",{value:!0}),e);var ct={};Ue(ct,{CONFIG_ESM_TEXT:()=>_e,CONFIG_TEXT:()=>Fe,CONFIG_TS_TEXT:()=>He,MasterCSS:()=>ie,Rule:()=>ce,animations:()=>ke,colors:()=>Re,config:()=>ue,default:()=>ie,extend:()=>re,extractClassesFromHTML:()=>he,fillColorScale:()=>D,functions:()=>Te,generateFromClasses:()=>ge,generateFromHTML:()=>fe,important:()=>je,initRuntime:()=>Pe,override:()=>Be,renderHTML:()=>We,rootSize:()=>Oe,rules:()=>$e,scope:()=>Me,selectors:()=>we,semantics:()=>Se,themeDriver:()=>Ee,viewports:()=>ye});module.exports=Ke(ct);function Le(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function ze(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 Ve(e){let t=[];return e.forEach(function(i,o){typeof i=="object"&&i!==null?Array.isArray(i)?t[o]=Ve(i):Le(i)?t[o]=ze(i):t[o]=re({},i):t[o]=i}),t}function Ie(e,t){return t==="__proto__"?void 0:e[t]}function re(...e){let t={},i,o;return e.forEach(function(p){typeof p!="object"||p===null||Array.isArray(p)||Object.keys(p).forEach(function(s){if(o=Ie(t,s),i=Ie(p,s),i!==t)if(typeof i!="object"||i===null){t[s]=i;return}else if(Array.isArray(i)){t[s]=Ve(i);return}else if(Le(i)){t[s]=ze(i);return}else if(typeof o!="object"||o===null||Array.isArray(o)){t[s]=re({},i);return}else{t[s]=re(o,i);return}})}),t}var le={"(":")","'":"'",'"':'"',"{":"}"};function de(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,p="",s,u=t.charCodeAt(0);if(i==1&&u==45)return"\\"+t;for(;++o<i;){if(s=t.charCodeAt(o),s==0){p+="\uFFFD";continue}if(s>=1&&s<=31||s==127||o==0&&s>=48&&s<=57||o==1&&s>=48&&s<=57&&u==45){p+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){p+=t.charAt(o);continue}p+="\\"+t.charAt(o)}return p}var Ze={unit:"",order:0,separators:[","]},Ge=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,ce=class{constructor(t,i={},o){this.className=t;this.meta=i;this.css=o;this.config=re(Ze,i.config);let{unit:p,order:s,colored:u,native:d,analyze:v,transform:b,declare:x,create:a}=this.config,{scope:m,important:h,functions:g,themeDriver:f}=o.config,{themeNames:c,colorNames:n,colorThemesMap:r,selectors:l,viewports:y,mediaQueries:w,classesBy:O,globalValues:S,animations:z}=o,j=O[t];a&&a.call(this,t);let A,K,ne,Z,F;if(i.origin==="semantics"){let[P,E]=i.value;Z=t.slice(P.length),A=E}else{let P;if(v)[P,ne]=v.call(this,t);else{let _=t.indexOf(":");this.prefix=t.slice(0,_+1),P=t.slice(_+1)}F=[];let E=this,I=this.values,Y=[","];this.config.separators.length&&Y.push(...this.config.separators);let $="",B=0;(function _(W,C,k,R=void 0,T=[],L=[],N){let M=R===void 0,X,G=V=>V==="'"||V==='"',ae=()=>X=$.length,ee=()=>{if($){let V=$,H=M?V:$.slice(X);if($="",q="",I&&H in I&&!T.includes(H)){let U=B;B=0,_(I[H].toString(),C,void 0,R,[...T,H],L,N),B=U,M||($=$.slice(0,X)+$)}else if(S&&H in S&&!L.includes(H)){let U=B;B=0,_(S[H].toString(),C,void 0,R,T,[...L,H],N),B=U,M||($=$.slice(0,X)+$)}else if(M){let U=!N&&E.analyzeUnitValue(H,C);F.push({value:U?.value??H,unit:U?.unit})}else{let U=!N&&E.analyzeUnitValue(H,C);$=U?V.slice(0,X)+U.value+U.unit:V}ae()}},J=G(k);ae();let q="";for(;B<W.length;B++){let V=W[B];if(V===k){if(J){$+=V;let H=0;for(let U=$.length-2;$[U]==="\\";U--)H++;if(H%2)continue}else ee(),$+=V;return}else if(!J&&V in le){let H=V==="("&&q&&g?.[q];H?.name&&($=$.slice(0,$.length-q.length)+H.name,q=H.name),$+=V,B++;let U=le[V];_(W,H?.unit??C,U,q||R||"",T,L,N||!!H?.transform),H?.transform&&($=$.slice(0,X+q.length+1)+H.transform.call(E,$.slice(X+q.length+1,-1))+$.slice(-1)),M&&(G(U)?(F.push($),$=""):ee()),q=""}else if((V==="|"||V===" ")&&k!=="}"&&(!J||R==="path"))ee(),M||($+=" ",X++);else{if(!J){if(V==="."){if(isNaN(+W[B+1]))break;W[B-1]==="-"&&($+="0")}else if(Y.includes(V)){ee(),M?F.push(V):($+=V,X++);continue}else if(M&&(V==="#"&&($||F.length&&W[B-1]!=="|"&&F[B-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(V)))break;q+=V}$+=V}}R===void 0&&ee()})(P,p),Z=P.slice(B)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let oe=(P,E)=>{let I=(C,k,R,T)=>{for(let[L,N]of k)if(L.test(C)){for(let M of N)I(C.replace(L,M),k,R,!0);return}T&&R.push(C)},Y=C=>{let k=C.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((N,M)=>M%3?N:N.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),R=[],T="",L=0;for(let N=0;N<k.length;N++){let M=k[N];if(M==="\\"){T+=M+k[++N];continue}!L&&M===","?(R.push(T),T=""):(T+=M,L&&M===")"?L--:M==="("&&L++)}return T&&R.push(T),R},$=[];""in l?I(P,l[""],$,!0):$.push(P);let B={};for(let[C,k]of Object.entries(l)){if(!C)continue;let R=[];for(let T of $)I(T,k,R,!1);R.length&&(B[C]=R)}let _=(C,k)=>{let R=k.reduce((T,L)=>(T.push(...Y(L)),T),[]);C in E?E[C].push(...R):E[C]=R},W=Object.keys(B);if(W.length)for(let C of W)_(C,B[C]);else _("",$)};ne?(this.vendorPrefixSelectors={},oe(ne,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let Q=Z.split("@"),se=Q[0];if(se){this.vendorSuffixSelectors={},oe(se,this.vendorSuffixSelectors);for(let P of Object.values(this.vendorSuffixSelectors))for(let E of P){this.hasWhere!==!1&&(this.hasWhere=E.includes(":where("));let I=[":disabled",":active",":focus",":hover"];for(let Y=0;Y<I.length;Y++)if(E.includes(I[Y])){(this.priority===-1||this.priority>Y)&&(this.priority=Y);break}}}else this.vendorSuffixSelectors={"":[""]};let te={},ve=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),Ae=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(ve)te[""]=Ae?[""]:Object.keys(this.vendorSuffixSelectors);else if(Ae)for(let P in this.vendorPrefixSelectors)te[P]=[""];else for(let P in this.vendorPrefixSelectors){let E=te[P]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,P))E.push(P);else for(let I in this.vendorSuffixSelectors)E.push(I)}for(let P=1;P<Q.length;P++){let E=Q[P];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let I,Y,$=Ge.exec(E);if($)I=$[1],Y=E.slice(I.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},R="",T="",L=0;C.startsWith("<=")?(T="<=",R="max-width"):C.startsWith(">=")||y[C]?(T=">=",R="min-width"):C.startsWith(">")?(T=">",R="min-width",L=.02):C.startsWith("<")&&(T="<",R="max-width",L=-.02);let N=T?C.replace(T,""):C,M=y[N];switch(R){case"max-width":case"min-width":M?Object.assign(k,this.analyzeUnitValue(M.toString(),"px")):Object.assign(k,this.analyzeUnitValue(N,"px")),k.unit==="px"&&(k.value+=L),this.media.features[R]=k,B.push("("+R+":"+(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)I="media";else if(!W){this.theme=E;continue}}Y&&(this.at[I]=(I in this.at?this.at[I]+" and ":"")+Y.replace(/\|/g," "))}}let xe=(P,E)=>{let I,Y=(_,W,C,k)=>{let R="";this.direction&&(R+="[dir="+this.direction+"] ");let T=C.map(M=>M+R),L=(M,X)=>T.map(G=>(M&&f!=="media"?f==="host"?`:host(.${M}) `:`.${M} `:"")+(m?m+" ":"")+G).reduce((G,ae)=>(G.push(k.reduce((ee,J)=>(ee.push(ae+"."+de(X)+J),ee),[]).join(",")),G),[]).join(","),N=L(W,t)+(j?j.reduce((M,X)=>M+","+L(this.theme??(u||K?W:""),X),""):"")+"{"+_+"}";for(let M of Object.keys(this.at).sort((X,G)=>G==="supports"?-1:1))N="@"+M+(M.includes(" ")?"":" ")+this.at[M]+"{"+N+"}";return W&&f==="media"&&(N=`@media(prefers-color-scheme:${W}){`+N+"}"),console.log(t,N),N},$=[];if(F){let _=[this.theme??P,""],W,C=!1;for(let k of F)if(typeof k=="string")$.push(k);else{let R=k.value;if(k.unit)R+=k.unit;else if(u&&r&&n){let T=!1;R=R.replace(new RegExp(`(^|,| |\\()((?:${n.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(L,N,M,X)=>{let G=r[M];if(G){let ae,ee;for(let J of _)if(ae=G[J]){ee=J;break}if(ae){T=!E||ee===P,W||(W=T);let J=ae;if(X){let q=X.endsWith("%")?parseFloat(X)/100:+X;q=isNaN(q)?1:Math.min(Math.max(q,0),1),J+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return N+J}else C=!0}return L})}$.push(R)}if(E&&(C||(W===void 0?P:!W)))return;if(I=$.reduce((k,R,T)=>k+R+(R===","||F[T+1]===","||T===F.length-1?"":" "),""),b&&(I=b.call(this,I,this.css.config)),u&&I==="current"&&(I="currentColor"),x){let k,R;if(F.length===1){let T=F[0];typeof T=="object"&&(k=T.value,R=T.unit)}A=x.call(this,R?k:I,R||"")}else A={[d]:I}}let B={};for(let _ in A){let W=(R,T)=>{if(z&&(T.startsWith("animation")||T.startsWith("animation-name"))){let N=T.split(":")[1].split("!important")[0].split(" ").filter(M=>M in this.css.animations&&(!this.animationNames||!this.animationNames.includes(M)));N.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...N))}let L=T+((this.important||h)&&!T.endsWith("!important")?"!important":"");R in B?B[R].push(L):B[R]=[L]},C=_+":",k=A[_];if(typeof k=="object")if(Array.isArray(k))for(let R of k)W(P,C+R.toString());else{K=!0;for(let R in k)W(R,C+k[R])}else W(P,C+k.toString())}for(let _ in te)for(let W of te[_])for(let C in B)this.natives.push({text:Y(B[C].join(";"),C,this.vendorPrefixSelectors[_],this.vendorSuffixSelectors[W]),theme:C})};if(this.theme)xe(this.theme,!1);else if(u)for(let P of c)xe(P,!0);else xe("",!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 p="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[u,d]=t.split("/");return{value:+u/+d*100+"%",unit:p}}else{let u=+s[1];return p=s[3]||"",p||((o==="rem"||o==="em")&&(u=u/this.css.config.rootSize),p=o||""),{value:u,unit:p}}}}};var Je={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},ye=Je;function me(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function pe(e,t,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 o in e)if(o&&+o>=100){i=!0;break}if(!i&&(!t||Object.keys(e).length>1)){let o=0,p="0"in e?me(e[0]):[0,0,0],s,u,d=[],v=()=>{let b=s-o,x=u.map((a,m)=>(a-p[m])/b);for(let a of d){let m=a-o,h=p.map((g,f)=>Math.round(g+x[f]*m));e[a]="#"+pe.call(this,...h)}};for(let b=1;b<100;b++)b in e?(d.length?(s=b,u=me(e[b]),v(),d.length=0,p=u):p=me(e[b]),o=b):d.push(b);d.length&&(s=100,u="100"in e?me(e[100]):[255,255,255],v())}return t||(e[""]=e[i?"500":"50"]),e}var et={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"})},Re=et;var tt={"::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"},we=tt;var rt={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"}},Se=rt;var it={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"}}},ke=it;var nt={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=(b,x)=>{let a=x.indexOf(":");if(a!==-1){b in t||(t[b]={});let m=t[b],h=x.slice(0,a);h in m||(m[h]=x.slice(a+1))}},o=b=>{let x=(a,m)=>{let h=m.slice(de(b.className).length).match(/\{(.*)\}/)[1].split(";");for(let g of h)i(a,g)};if(this.theme){let a=b.natives.find(m=>m.theme===this.theme)??b.natives.find(m=>!m.theme);a&&x(this.theme,a.text)}else for(let a of b.natives)x(a.theme,a.text);if(b.animationNames){this.animationNames||(this.animationNames=[]);for(let a of b.animationNames)this.animationNames.includes(a)||this.animationNames.push(a)}},p=[],s="",u=()=>{s&&(p.push(s.replace(/ /g,"|")),s="")},d=1;(function b(x){for(;d<e.length;d++){let a=e[d];if(!x){if(a===";"){u();continue}if(a==="}")break}if(s+=a,x===a){if(x==="'"||x==='"'){let m=0;for(let h=s.length-2;s[h]==="\\";h--)m++;if(m%2)continue}break}else a in le&&x!=="'"&&x!=='"'&&(d++,b(le[a]))}})(void 0),u();for(let b of p){let x=this.css.create(b);if(Array.isArray(x))if(x.length)for(let a of x)o(a);else i(this.theme??"",b);else o(x)}let v={};for(let b in t)for(let[x,a]of Object.entries(t[b]))x in v?v[x][b]=a:v[x]={[b]:a};return v}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","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}}}},ot=nt,$e=ot;var st={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,i=this.css.globalValues,o=this.css.config.functions,p=this,s=0,u="",d="";return function v(b,x){let a=!1,m=(h,g=!1,f=!1)=>{if(h!=="("&&(t&&d in t?d=t[d].toString():i&&d in i&&(d=i[d].toString())),d&&!a&&!x){let c=p.analyzeUnitValue(d,o.calc.unit);c&&(d=c.value+c.unit)}u+=d+(g&&e[s-1]!==" "?" ":"")+h+(f&&e[s+1]!==" "?" ":""),d="",a=!1};for(;s<e.length;s++){let h=e[s];if(h==="("){let g=d,f=a,c=u.length;if(m(h),s++,v(g,f||x),g!=="calc"){let n=o[g];if(n){let r=u.slice(c+2,u.length-1);u=u.slice(0,c-g.length+1)+(n.name??g)+"("+(n.transform?.(r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let g=e[s-1];switch(h){case"+":!d&&g!==")"?d+=h:m(h,!0,!0);break;case"-":b==="var"||!d&&g!==")"?d+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),a=!0;break;default:d+=h;break}}}s>=e.length-1&&m("")}("",!1),u}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},repeat:{unit:""}},Te=st;var Oe=16;var at="",Me=at;var Be=!1;var je=!1;var lt="class",Ee=lt;var ue={viewports:ye,colors:Re,rootSize:Oe,scope:Me,selectors:we,semantics:Se,rules:$e,override:Be,important:je,functions:Te,animations:ke,themeDriver:Ee};var De=[",",".","#","[","!","*",">","+","~",":","@"];function Ne(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var be="_CNO_",ie=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;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:p,values:s,viewports:u,mediaQueries:d,rules:v,animations:b}=this.config;function x(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(n,r,l="",y={}){let w=j=>j?(l?l+"-":"")+j:l,O=Object.entries(n),S=[],z=[];for(let j of O){let A=j[1];(typeof A=="object"&&!Array.isArray(A)?S:z).push(j)}for(let[j,A]of S)a(A,r,w(j),y);if(r&&l)z.length&&(y[l]=z.reduce((j,[A,K])=>(j[A]=K,j),{}));else for(let[j,A]of z)y[w(j)]=A;return y}function m(n){for(let[r,l]of Object.entries(n))/^[0-9]+x$/.test(r)&&typeof l=="number"&&(n["-"+r]=l*-1);return n}if(t)for(let[n,r]of Object.entries(a(t,!0))){let l={};for(let y of Object.keys(r))l[Ne(y)]=r[y];this.semantics.push([new RegExp("^"+x(n)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[n,l]])}if(o)for(let[n,r]of Object.entries(a(o,!1))){let l=new RegExp(x(n)+"(?![a-z-])");for(let y of Array.isArray(r)?r:[r]){let w=y.match(/^::-[a-z]+-/m)?.[0]??"",O=this.selectors[w];O||(O=this.selectors[w]=[]);let S=O.find(([z])=>z===l);S||(S=[l,[]],O.push(S)),S[1].push(y)}}if(s&&(this.globalValues=m(a(s,!1))),u&&(this.viewports=a(u,!1)),d&&(this.mediaQueries=a(d,!1)),b)for(let n in b){let r=this.animations[n]={},l=b[n];for(let y in l){let w=r[y]={},O=l[y];for(let S in O)w[Ne(S)]=O[S]}}let h=i?a(i,!1):{},g=Object.keys(h),f=n=>{if(Object.prototype.hasOwnProperty.call(this.classes,n))return;let r=this.classes[n]=[],l=h[n];if(!l)return;let y=l.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of y){let O=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let z=this.classesBy[S];z.includes(n)||z.push(n)}else this.classesBy[S]=[n];r.includes(S)||r.push(S)};if(g.includes(w)){f(w);for(let S of this.classes[w])O(S)}else O(w)}};for(let n of g)f(n);this.colorNames=Object.keys(p);let c=Object.entries(this.colorByThemeByColorName).reduce((n,[r,l])=>(n[r]=()=>{let y=(S,z)=>z?S.slice(0,7)+Math.round(255*+z).toString(16):S,w={};for(let S in l){let z=l[S].split(" ");for(let j of z){let A=j.lastIndexOf("@"),K=A!==-1?j.slice(0,A):j,ne=A!==-1?j.slice(A+1):"",Z=S.slice(1)||ne;if(j.startsWith("#"))w[Z]=K;else if(j.startsWith(be)){let[F,oe]=K.slice(be.length).split("/");if(Object.prototype.hasOwnProperty.call(c,F)){let se=c[F];delete c[F],se()}let Q=Object.prototype.hasOwnProperty.call(this.colorThemesMap,F)&&this.colorThemesMap[F];if(Q)for(let se in Q){let te=Q[se];w[se]=y(te,oe)}else console.error(`"${r}${S}: ${j}" is an invalid ".colors" config`)}else{let[F,oe]=K.split("@"),[Q,se]=F.split("/");if(Object.prototype.hasOwnProperty.call(c,Q)){let ve=c[Q];delete c[Q],ve()}let te=Object.prototype.hasOwnProperty.call(this.colorThemesMap,Q)&&this.colorThemesMap[Q][(S?ne:oe)||""];te?w[Z]=y(te,se):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 c[r]},n),{});for(let n of Object.keys(c))c[n]?.();if(v)for(let n in v){let r=v[n],{native:l,values:y,colored:w}=r,O=r.match;if(r.id=n,r.native=l===!0?n.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,y&&(this.values[n]=m(a(y,!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 p=o?document.head:t,s=o?document.styleSheets:t.styleSheets;for(let d of s){let{ownerNode:v}=d;if(v&&v.id==="master"){this.style=v;break}}if(this.style)for(let d=0;d<this.style.sheet.cssRules.length;d++){let v=this.style.sheet.cssRules[d];if(v.constructor.name==="CSSKeyframesRule")continue;let b=a=>{if(a.selectorText){let h=a.selectorText.split(", ")[0].split(" ");for(let g=0;g<h.length;g++){let f=h[g];if(f[0]==="."){let c=f.slice(1),n="";for(let r=0;r<c.length;r++){let l=c[r],y=c[r+1];if(l==="\\"){if(r++,y!=="\\"){n+=y;continue}}else if(De.includes(l))break;n+=l}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(a.cssRules)for(let m=0;m<a.cssRules.length;m++){let h=b(a.cssRules[m]);if(h)return h}},x=b(v);if(x){this.rules.push(x),this.ruleBy[x.className]=x;for(let a=0;a<x.natives.length;a++)x.natives[a].cssRule=this.style.sheet.cssRules[d+a];d+=x.natives.length-1,x.config.insert?.call(x)}}else this.style=document.createElement("style"),this.style.id="master",p.append(this.style);let u=d=>{d.forEach(v=>{Object.prototype.hasOwnProperty.call(this.countBy,v)?this.countBy[v]++:(this.countBy[v]=1,this.insert(v))})};u(this.host.classList),i.subtree&&this.host.querySelectorAll("[class]").forEach(d=>u(d.classList)),this.observer=new MutationObserver(d=>{let v={},b=[],x=[],a=[],m=(c,n)=>{n?c.classList.forEach(g):c.classList.forEach(h);let r=c.children;for(let l=0;l<r.length;l++){let y=r[l];y.classList&&(x.push(y),m(y,n))}},h=c=>{Object.prototype.hasOwnProperty.call(v,c)?v[c]++:v[c]=1},g=c=>{Object.prototype.hasOwnProperty.call(v,c)?v[c]--:Object.prototype.hasOwnProperty.call(this.countBy,c)&&(v[c]=-1)},f=(c,n)=>{for(let r=0;r<c.length;r++){let l=c[r];l.classList&&!x.includes(l)&&!a.includes(l)&&(l.isConnected!==n?(x.push(l),m(l,n)):a.push(l))}};for(let c=0;c<d.length;c++){let n=d[c],{addedNodes:r,removedNodes:l,type:y,target:w}=n;if(y==="attributes"){if(b.find(O=>O.target===w))continue;b.push(n)}else f(r,!1),(!w.isConnected||!x.includes(w))&&f(l,!0)}if(!(!b.length&&!Object.keys(v).length)){for(let{oldValue:c,target:n}of b){let r=x.includes(n),l=n.classList,y=c?c.split(" "):[];if(r){if(n.isConnected)continue;for(let w of y)l.contains(w)||g(w)}else if(n.isConnected){l.forEach(w=>{y.includes(w)||h(w)});for(let w of y)l.contains(w)||g(w)}}for(let c in v){let n=v[c],r=(this.countBy[c]||0)+n;r===0?(delete this.countBy[c],this.delete(c)):(Object.prototype.hasOwnProperty.call(this.countBy,c)||this.insert(c),this.countBy[c]=r)}}}),this.observer.observe(t,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let t=this.style?.sheet;if(t?.cssRules)for(let i=t.cssRules.length-1;i>=0;i--)t.deleteRule(i);this.style?.remove(),this.style=null,this.root=null}match(t){for(let i in this.config.rules){let o=this.config.rules[i],p=this.matches[i],{native:s}=o;if(p&&p.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 p=this.match(o);if(p)return new ce(o,p,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(ue,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=p=>{let s=this.ruleBy[p];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,p)&&this.classesBy[p].some(u=>Object.prototype.hasOwnProperty.call(this.countBy,u)))){if(i&&s.natives.length){let u=s.natives[0];for(let d=0;d<i.cssRules.length;d++)if(i.cssRules[d]===u.cssRule){for(let b=0;b<s.natives.length;b++)i.deleteRule(d);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[p],s.animationNames){let u=this.rules[0];for(let d of s.animationNames){let v=this.keyframesMap[d];if(!--v.count){let b=u.natives.indexOf(v.native);this.style.sheet.deleteRule(b),u.natives.splice(b,1),delete this.keyframesMap[d]}}u.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,p)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let p of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,p)||o(p);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,p=Object.keys(this.keyframesMap).length,s=this.rules.length-1,{media:u,order:d,priority:v,hasWhere:b,className:x}=i,a=(g,f,c)=>{let n=g;for(;n<=s;n++){let r=this.rules[n];if(f?.(r))return c?-1:n-1;if(c?.(r))return n}return c?-1:n-1},m,h;if(u){let g=this.rules.findIndex(f=>f.media);if(g===-1)o=s+1;else{let{"max-width":f,"min-width":c}=u.features;if(f||c){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)o=s+1;else if(f&&c){if(v===-1?(m=a(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=a(n,r=>r.priority!==-1)):(m=a(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=s),m!==-1){let r=f.value-c.value,l=h,y=m;for(m=void 0;l>=y;l--){let{"max-width":w,"min-width":O}=this.rules[l].media.features,S=w.value-O.value;if(S<r)h=l-1;else if(S===r)m=l;else break}}if(m!==-1){let r=f.value-c.value;for(let l=h;l>=m;l--){let{"max-width":y,"min-width":w}=this.rules[l].media.features,O=y.value-w.value;if(O<r)h=l-1;else if(O>r){m=l+1;break}}}}else if(c){if(v===-1?(m=a(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=a(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(m=a(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=a(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 l=this.rules[r].media.features["min-width"].value;if(l>c.value)h=r-1;else if(l<c.value){m=r+1;break}}}else if(v===-1?(m=a(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=a(n,r=>r.media.features["min-width"]||r.priority!==-1)):(m=a(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=a(n,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let l=this.rules[r].media.features["max-width"].value;if(l<f.value)h=r-1;else if(l>f.value){m=r+1;break}}}else v===-1?(m=g,h=a(g,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(m=a(g,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),h=a(g,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let g=p?1:0;v===-1?(m=g,h=a(g,f=>f.media||f.priority!==-1)):(m=a(g,f=>f.media,f=>f.priority!==-1),h=a(g,f=>f.media))}if(o===void 0)if(m===-1)o=h+1;else{if(v===-1)for(let g=m;g<=h;g++){let f=this.rules[g];if(!(!b&&f.hasWhere)&&(b&&!f.hasWhere||f.order>=d)){o=g;break}}else for(let g=m;g<=h;g++){let f=this.rules[g];if(!(!b&&f.hasWhere)){if(b&&!f.hasWhere){o=g;break}if(f.priority<v){o=g;break}else if(f.priority===v){if(f.order>=d){o=g;break}}else o=g+1}}o===void 0&&(o=h+1)}if(this.rules.splice(o,0,i),this.ruleBy[x]=i,this.style){let g=this.style.sheet,f=0,c=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return c(n-1);let l=r.natives[r.natives.length-1].cssRule;for(let y=0;y<g.cssRules.length;y++)if(g.cssRules[y]===l){f=y+1;break}}};c(o-1);for(let n=0;n<i.natives.length;)try{let r=i.natives[n];g.insertRule(r.text,f),r.cssRule=g.cssRules[f++],n++}catch(r){console.error(r),i.natives.splice(n,1)}}if(i.animationNames){let g=this.style?.sheet;for(let f of i.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,f))this.keyframesMap[f].count++;else{let c={text:`@keyframes ${f}{`+Object.entries(this.animations[f]).map(([r,l])=>`${r}{${Object.entries(l).map(([y,w])=>y+":"+w).join(";")}}`).join("")+"}",theme:""},n;if(Object.keys(this.keyframesMap).length?(n=this.rules[0]).natives.push(c):this.rules.splice(0,0,n={natives:[c],get text(){return this.natives.map(r=>r.text).join("")}}),g){let r;for(let l=0;l<g.cssRules.length;l++){let y=g.cssRules[l];if(y.constructor.name!=="CSSKeyframesRule")break;if(y.name===f){r=y;break}}if(r)c.cssRule=r;else{let l=n.natives.length-1;g.insertRule(c.text,l),c.cssRule=g.cssRules[l]}}this.keyframesMap[f]={native:c,count:1}}}i.config.insert?.call(i)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let i=s=>{let u=re({},s),d=v=>{for(let b in v){let x=v[b];typeof x=="object"&&!Array.isArray(x)?d(x):b&&(v[b]={"":x})}};if(u.classes?d(u.classes):u.classes={},u.viewports?d(u.viewports):u.viewports={},u.mediaQueries?d(u.mediaQueries):u.mediaQueries={},u.selectors?d(u.selectors):u.selectors={},u.values?d(u.values):u.values={},u.colors){let v=(b,x)=>{let a=(f,c,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,f)||(this.colorByThemeByColorName[f]={});let r=this.colorByThemeByColorName[f],l=r[""]?.includes(be),y=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(O,S,z,j,A)=>{let K="#"+pe(+S,+z,+j);return A&&(K+=Math.round(255*+A).toString(16)),K});for(let[w,O]of c)if(O){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,z;for(;(z=S.exec(O))!==null;){let j=z[0].trimStart(),A=j.lastIndexOf("@"),K=A!==-1?j.slice(0,A):j,ne=A!==-1?j.slice(A):"",Z=w||ne,F=n&&z[2]&&!z[2].startsWith("#")&&!ne,oe=z[1]?y(K):w?z[0]:K;if(l||F){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let Q in r)Q&&(r[""]+=" "+r[Q],delete r[Q]);r[""]+=(r[""]?" ":"")+(F?be:"")+oe+Z}else r[Z]=oe;if(w)break}}else if(n){delete this.colorByThemeByColorName[f];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[f]},m=Object.entries(b),h=m.filter(([f])=>f===""||f.startsWith("@"));h.length&&a(x,h,!1);let g=m.filter(([f])=>f!==""&&!f.startsWith("@"));for(let[f,c]of g){let n=(x?x+"-":"")+f;typeof c=="string"?a(n,[["",c]],!0):v(c,n)}};v(u.colors,"")}return u},o=[];for(let s of t)(function u(d){if(d.extends?.length)for(let v of d.extends)u("config"in v?v.config:v);o.push(i(d))})(s);let p=o[0];for(let s=1;s<o.length;s++){let u=o[s];p=re(p,u),Object.prototype.hasOwnProperty.call(u,"animations")&&Object.assign(p.animations,u.animations)}return p}};typeof window<"u"&&(window.MasterCSS=ie);var Fe=`/** @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 _e=`/** @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 He=`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 he(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,i={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,p)=>p%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(t,(p,s)=>i[s]))}function ge(e,t){if(!e.length)return;let i=new
|
|
44
|
+
`;function he(e){if(!e)return;let t=/&(amp|#38|lt|#60|gt|#62|apos|#39|#x27|quot|#34);/g,i={amp:"&","#38":"&",lt:"<","#60":"<",gt:">","#62":">",apos:"'","#39":"'","#x27":"'",quot:'"',"#34":'"'};return e.split(/\sclass="([^"]*)"/gm).filter((o,p)=>p%2===1).map(o=>o.split(" ")).flat().map(o=>o.replace(t,(p,s)=>i[s]))}function ge(e,t){if(!e.length)return;let i=new ie(t);for(let o of e)i.insert(o);return i.text}function fe(e,t){if(!e)return;let i=he(e);if(i.length)return ge(i,t)}function Pe(e,t){return new ie(e).observe(t)}function We(e,t){if(!e)return;let i=!1;if(e=e.replace(/(<style id="master">).*?(<\/style>)/,(p,s,u)=>(i=!0,s+fe(e,t)+u)),i)return e;let o=`<style id="master">${fe(e,t)}</style>`;return e.replace(/<\/head>/,`${o}$&`)}
|