@master/css 2.0.0-beta.17 → 2.0.0-beta.18
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.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Hi=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var Go=Object.prototype.hasOwnProperty;var zo=(r,o,i)=>o in r?Hi(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var _o=(r,o)=>{for(var i in o)Hi(r,i,{get:o[i],enumerable:!0})},Ho=(r,o,i,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Lo(o))!Go.call(r,s)&&s!==i&&Hi(r,s,{get:()=>o[s],enumerable:!(n=Po(o,s))||n.enumerable});return r};var Vo=r=>Ho(Hi({},"__esModule",{value:!0}),r);var e=(r,o,i)=>(zo(r,typeof o!="symbol"?o+"":o,i),i),Co=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var De=(r,o,i)=>(Co(r,o,"read from private field"),i?i.call(r):o.get(r)),fo=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},po=(r,o,i,n)=>(Co(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var hs={};_o(hs,{DefaultRules:()=>no,MasterCSSRule:()=>t,default:()=>z,defaultBreakpoints:()=>Ee,defaultColors:()=>Vi,defaultConfig:()=>ji,defaultRootSize:()=>$i,defaultScheme:()=>qi,defaultSelectors:()=>Ui,defaultSemantics:()=>Qi,defaultThemes:()=>Yi,defaultValues:()=>Zi,extend:()=>Ii,fillColorScale:()=>D,render:()=>So,renderFromHTML:()=>Gi,renderIntoHTML:()=>bo,root:()=>us});module.exports=Vo(hs);var $o={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Ee=$o;function Di(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function Ro(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function D(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let n in r)if(n&&+n>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let n=0,s="0"in r?Di(r[0]):[0,0,0],m,c,h=[],f=()=>{let p=m-n,g=c.map((l,a)=>(l-s[a])/p);for(let l of h){let a=l-n,d=s.map((x,u)=>Math.round(x+g[u]*a));r[l]="#"+Ro.call(this,...d)}};for(let p=1;p<100;p++)p in r?(h.length?(m=p,c=Di(r[p]),f(),h.length=0,s=c):s=Di(r[p]),n=p):h.push(p);h.length&&(m=100,c="100"in r?Di(r[100]):[255,255,255],f())}return o||(r[""]=r[i?"500":"50"]),r}var Uo={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"}),black:"#000000",white:"#ffffff"},Vi=Uo;var $i=16;var Qo={"::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("},Ui=Qo;var Yo={square:"aspect-ratio:1/1",video:"aspect-ratio:16/9",rounded:"border-radius:1e9em",round:"border-radius:50%",hidden:"display:none",hide:"display:none",block:"display:block",table:"display:table",flex:"display:flex",grid:"display:grid",contents:"display:contents",inline:"display:inline","inline-block":"display:inline-block","inline-flex":"display:inline-flex","inline-grid":"display:inline-grid","inline-table":"display:inline-table","table-cell":"display:table-cell","table-caption":"display:table-caption","flow-root":"display:flow-root","list-item":"display:list-item","table-row":"display:table-row","table-column":"display:table-column","table-row-group":"display:table-row-group","table-column-group":"display:table-column-group","table-header-group":"display:table-header-group","table-footer-group":"display:table-footer-group",italic:"font-style:italic",oblique:"font-style:oblique",isolate:"isolation:isolate",overflow:"overflow:visible",untouchable:"pointer-events:none",static:"position:static",fixed:"position:fixed",abs:"position:absolute",rel:"position:relative",sticky:"position:sticky",uppercase:"text-transform:uppercase",lowercase:"text-transform:lowercase",capitalize:"text-transform:capitalize",visible:"visibility:visible",invisible:"visibility:hidden","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}},Qi=Yo;var qo=["dark","light"],Yi=qo;var Xo={storage:{sync:!0,key:"scheme"}},qi=Xo;var Ei={content:"content-box",border:"border-box",padding:"padding-box"},Xi={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Ee)q[r]=Ee[r]/16+"rem";var Zo={BackgroundClip:Ei,BackgroundOrigin:Ei,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Ei,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Xi,GridAutoRows:Xi,GridTemplateColumns:Xi,GridTemplateRows:Xi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Ei,margin:"margin-box"},TransformBox:{...Ei,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q},Zi=Zo;function Ji(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function Mo(r){let o=h=>h==="+"||h==="-"||h==="*"||h==="/",i="",n,s="",m=!1;function c(){n=null,s=""}for(let h=0;h<r.length;h++){let f=r[h];if(f==="("||f===")")m=f===")",i+=s+f,c();else if(f===",")i+=s+f+" ",c();else{switch(n){case 1:break;case 2:if(o(f)){i+=s+" "+f+" ",c();continue}break;default:m&&(s+=" "),isNaN(+f)?o(f)||(n=1):n=2;break}s+=f}}return s&&(i+=s),i}var Jo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Ko="var(--";function Ki(r,o,i,n,s,m){let c=n?n[r]:"",h="",f="",p;if(c)return{value:c,unit:h,unitToken:f};if(typeof r=="number")c=r,h=o||"";else{if(i){let g=Object.keys(i),l=!1,a=!1;r=r.replace(new RegExp(`(^|,| |\\()(${g.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(d,x,u,v,S)=>{a=!0;let M=i[u]?.[v||""];if(M){let O;for(let B of m)if(O=M[B])break;if(O){l=!0;let B=O;if(S){let C=S.endsWith("%")?parseFloat(S)/100:+S;C=isNaN(C)?1:Math.min(Math.max(C,0),1),B+=Math.round(C*255).toString(16).toUpperCase().padStart(2,"0")}return x+B}}return d}),a&&(p=l)}if(o){let g=r.match(Jo);if(g)if(r.includes("/")){let l=r.split("/");return{value:+l[0]/+l[1]*100+"%",unit:h,unitToken:f}}else return c=+g[1],h=f=g[3]||"",h||((o==="rem"||o==="em")&&(c=c/s),h=o||""),{value:c,unit:h,unitToken:f}}c=(r.indexOf("calc(")===-1?r:Mo(r)).replace(/\$\(((\w|-)+)\)/g,Ko+"$1)")}return{value:c,unit:h,unitToken:f,colorMatched:p}}var Tr={"(":")","'":"'","{":"}"};var ko=[":disabled",":active",":focus",":hover"],eo="matches",es="semantics",No="symbol",wo="width",uo="max-"+wo,ho="min-"+wo,xo="motion",Oo="reduce",To=Oo+"d-"+xo,go="px",ts="rem",rs=["!","*",">","+","~",":","[","@","_"],is=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,os=r=>r.split(is).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,n){this.className=o;this.matching=i;this.css=n;let s=this.constructor,{id:m,unit:c,propName:h,colorful:f}=s,{breakpoints:p,mediaQueries:g,semantics:l,rootSize:a}=n.config,d=n.config.values[m],x=n.relationThemesMap[o],{themeNames:u,colorsThemesMap:v,selectors:S}=n,M=o,O,B,C,F;if(i.origin===es)C=M.slice(i.value.length),O=l[i.value];else{let I;if(i.origin===eo)if(m==="Group"){let N=0;for(;N<M.length&&!(M[N]==="{"&&M[N-1]!=="\\");N++);B=M.slice(0,N),I=M.slice(N)}else{let N=M.indexOf(":");this.prefix=M.slice(0,N+1),this.prefix.includes("(")?(this.prefix=void 0,I=M):I=M.slice(N+1)}else i.origin===No&&(this.symbol=M[0],I=M.slice(1));F=[];let y="",R=0;(function N(j,k,T=""){let b,w=!1;for(j&&(j===")"&&y.slice(-1)==="$"?b=y.length-1:j==="'"&&(w=!0),y+=I[R++]);R<I.length;R++){let A=I[R];if(A===j){if(y+=A,w){let W=0;for(let _=y.length-2;y[_]==="\\";_--)W++;if(W%2)continue}b!==void 0&&(y=y.slice(0,b)+y.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),k||(w?F.push(y):F.push({value:y}),T="",y="");break}else if(!w&&A in Tr)N(Tr[A],k===void 0?0:k+1,T);else if(A==="|"&&j!=="}"&&(!w||T==="path"))j?y+=" ":(F.push({value:y}),y="");else{if(!j){if(A==="."){if(isNaN(+I[R+1]))break;I[R-1]==="-"&&(y+="0")}else if(A===","){F.push({value:y},","),y="";continue}else if(A==="#"&&(y||F.length&&I[R-1]!=="|")||rs.includes(A))break;T+=A}y+=A}}})(),y&&F.push({value:y}),C=I.slice(R)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let E=I=>{let y=os(I),R=[],N="",j=0;for(let k=0;k<y.length;k++){let T=y[k];if(T==="\\"){N+=T+y[++k];continue}!j&&T===","?(R.push(N),N=""):(N+=T,j&&T===")"?j--:T==="("&&j++)}return N&&R.push(N),R};this.prefixSelectors=B?E(B):[""];let H=C.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let I=(k,T,b,w)=>{for(let[A,W]of T)if(A.test(k)){for(let _ of W)I(k.replace(A,_),T,b,!0);return}w&&b.push(k)},y=[];""in S?I($,S[""],y,!0):y.push($);let R={};for(let[k,T]of Object.entries(S)){if(!k)continue;let b=[];for(let w of y)I(w,T,b,!1);b.length&&(R[k]=b)}let N=(k,T)=>{let b=T.reduce((w,A)=>(w.push(...E(A)),w),[]);k in this.vendorSuffixSelectors?this.vendorSuffixSelectors[k].push(...b):this.vendorSuffixSelectors[k]=b},j=Object.keys(R);if(j.length)for(let k of j)N(k,R[k]);else N("",y);for(let k of Object.values(this.vendorSuffixSelectors))for(let T of k){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let b=0;b<ko.length;b++)if(T.includes(ko[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let I=1;I<H.length;I++){let y=H[I];if(y)if(u.includes(y))this.themeName=y;else if(y==="rtl"||y==="ltr")this.direction=y;else{let R,N,j=y.indexOf("_");if(j!==-1)R=y.slice(0,j),N=y.slice(j);else{let k=y.indexOf("(");k!==-1&&(R=y.slice(0,k),N=y.slice(k))}if(!R){R="media";let k=[];this.media={token:y,features:{}};let T=y.split("&");for(let b of T)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")k.push("(orientation:"+b+")");else if(b===xo||b===To)k.push("(prefers-"+To+":"+(b===xo?"no-preference":Oo)+")");else if(g&&b in g)k.push(g[b]);else{let w={token:b},A="",W="",_=0;b.startsWith("<=")?(W="<=",A=uo):b.startsWith(">=")||p[b]?(W=">=",A=ho):b.startsWith(">")?(W=">",A=ho,_=.02):b.startsWith("<")&&(W="<",A=uo,_=-.02);let Y=W?b.replace(W,""):b,P=p[Y];switch(A){case uo:case ho:P?Object.assign(w,Ki(P,go)):Object.assign(w,Ki(Y,go)),w.unit===go&&(w.value+=_),this.media.features[A]=w,k.push("("+A+":"+(w.value+w.unit)+")");break}}N="",this.media.type&&(N=this.media.type),k.length&&(N+=(N?" and ":"")+k.join(" and "))}N&&(this.at[R]=(R in this.at?this.at[R]+" and ":"")+N.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let V=(I,y)=>{let R,N,j=(T,b,w)=>{let A="";this.direction&&(A+="[dir="+this.direction+"] ");let W=this.prefixSelectors.map(P=>P+A),_=(P,zi)=>{let Fi=P?"."+P+" ":"",mo="."+CSS.escape(zi);return W.map(_i=>Fi+_i).reduce((_i,jo)=>(_i.push(w.reduce((yo,Wo)=>(yo.push(jo+mo+Wo),yo),[]).join(",")),_i),[]).join(",")},Y=_(b,o)+(x?Object.entries(x).filter(([P])=>this.themeName||!f||!b||!P||P===b).map(([P,zi])=>zi.reduce((Fi,mo)=>Fi+","+_(this.themeName??(f&&b||P),mo),"")).join(""):"")+"{"+T+"}";for(let P of Object.keys(this.at).sort((zi,Fi)=>Fi==="supports"?-1:1))Y="@"+P+" "+this.at[P]+"{"+Y+"}";return Y},k=[];if(F){let T,b;for(let w of F)typeof w=="string"?k.push(w):(T=Ki(w.value,c,f&&v,d,a,this.themeName?[this.themeName,""]:[I]),T.colorMatched!==void 0&&b!==!0&&(b=T.colorMatched),k.push(T.value+T.unit));if(y&&(b===void 0?I:!b))return;if(k.length===1?T?(R=T.value,N=T.unit):R=k[0]:R=k.reduce((w,A,W)=>w+A+(A===","||F[W+1]===","||W===F.length-1?"":" "),""),typeof R!="object"){this.parseValue&&(R=this.parseValue(R,this.css.config)),f&&R==="current"?R="currentColor":d&&R in d&&(R=d[R].toString());let w={unit:N,value:R,important:this.important};if(this.getThemeProps){let A=this.getThemeProps(w,n);for(let W in A)for(let _ of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:R,text:j(Object.entries(A[W]).map(([Y,P])=>Ji(Y,{important:this.important,unit:"",value:P})).join(";"),W,_),themeName:W});return}else this.get&&(R=this.get(w))}}else R=O;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:R,text:j(typeof R=="object"?Object.entries(R).map(([b,w])=>Ji(b,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):Ji(h,{unit:N,value:R,important:this.important}),I,T),themeName:I})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(f)for(let I of u)V(I,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(o,i){if(this.matches&&this.matches.test(o))return{origin:eo};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:eo};if(this.symbol&&o.startsWith(this.symbol))return{origin:No};if(this.propName&&o.startsWith(this.propName+":"))return{origin:eo}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",ts),e(t,"colorful");var X=class extends t{};e(X,"id","FontWeight"),e(X,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(X,"propName","font-weight"),e(X,"unit","");var je=class extends t{};e(je,"id","FontFamily"),e(je,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(je,"propName","font-family");var We=class extends t{};e(We,"id","FontSize"),e(We,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(We,"propName","font-size");var wr=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",s=i+"-right",m=i+"-top",c=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[m]:r,[c]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[m]:r};case"b":return{[c]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(wr,"id","Spacing"),e(wr,"matches",/^[pm][xytblr]?:./);var Pe=class extends t{};e(Pe,"id","Width"),e(Pe,"matches",/^w:./),e(Pe,"propName","width");var Le=class extends t{};e(Le,"id","Height"),e(Le,"matches",/^h:./),e(Le,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var ze=class extends t{};e(ze,"id","MinHeight"),e(ze,"matches",/^min-h:./),e(ze,"propName","min-height");var Z=class extends t{};e(Z,"id","LetterSpacing"),e(Z,"matches",/^ls:./),e(Z,"propName","letter-spacing"),e(Z,"unit","em");var ss="subpixel-antialiased",Ao="-webkit-font-smoothing",Io="-moz-osx-font-smoothing",_e=class extends t{get(r){let o={};switch(r.value){case ss:o[Ao]=o[Io]={...r,value:"auto"};break;case"antialiased":o[Ao]={...r,value:"antialiased"},o[Io]={...r,value:"grayscale"};break}return o}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"unit","");var J=class extends t{};e(J,"id","FontStyle"),e(J,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(J,"propName","font-style"),e(J,"unit","deg");var He=class extends t{};e(He,"id","FontVariantNumeric"),e(He,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(He,"propName","font-variant-numeric");var K=class extends t{};e(K,"id","LineHeight"),e(K,"matches",/^lh:./),e(K,"propName","line-height"),e(K,"unit","");var Ve=class extends t{};e(Ve,"id","ObjectFit"),e(Ve,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(Ve,"propName","object-fit");var $e=class extends t{};e($e,"id","ObjectPosition"),e($e,"matches",/^(object|obj):(top|bottom|right|left|center)/),e($e,"propName","object-position");var Ue=class extends t{};e(Ue,"id","TextAlign"),e(Ue,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e(Ue,"propName","text-align");var ee=class extends t{order=-1};e(ee,"id","TextDecoration"),e(ee,"matches",/^t(ext)?:(underline|line-through|overline)/),e(ee,"propName","text-decoration"),e(ee,"colorful",!0);var Qe=class extends t{};e(Qe,"id","TextTransform"),e(Qe,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Qe,"propName","text-transform");var Ye=class extends t{};e(Ye,"id","VerticalAlign"),e(Ye,"matches",/^(?:v|vertical):./),e(Ye,"propName","vertical-align");var qe=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(qe,"id","Lines"),e(qe,"matches",/^lines:./),e(qe,"unit","");var te=class extends t{};e(te,"id","TransformOrigin"),e(te,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(te,"propName","transform-origin"),e(te,"unit","px");var Xe=class extends t{};e(Xe,"id","TransformStyle"),e(Xe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(Xe,"propName","transform-style");var Ze=class extends t{};e(Ze,"id","TransformBox"),e(Ze,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ze,"propName","transform-box");var re=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,n,s,m)=>{let c,h;switch(n){case"translate":c="rem";break;case"skew":c="deg";break;case"rotate":s==="3d"&&(h=!0),c="deg";break;default:return i}let f=m.split(",");return i.replace(m,f.map((p,g)=>!h||f.length-1===g?Number.isNaN(+p)?p:p/(c==="rem"?o:1)+c:p).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Je=class extends t{order=-1};e(Je,"id","Transition"),e(Je,"symbol","~"),e(Je,"propName","transition");var ie=class extends t{};e(ie,"id","TransitionDelay"),e(ie,"matches",/^~delay:./),e(ie,"propName","transition-delay"),e(ie,"unit","ms");var oe=class extends t{};e(oe,"id","TransitionDuration"),e(oe,"matches",/^~duration:./),e(oe,"propName","transition-duration"),e(oe,"unit","ms");var Ke=class extends t{};e(Ke,"id","TransitionProperty"),e(Ke,"matches",/^~property:./),e(Ke,"propName","transition-property");var et=class extends t{};e(et,"id","TransitionTimingFunction"),e(et,"matches",/^~easing:./),e(et,"propName","transition-timing-function");var tt=class extends t{};e(tt,"id","MaxHeight"),e(tt,"matches",/^max-h:./),e(tt,"propName","max-height");var rt=class extends t{};e(rt,"id","MaxWidth"),e(rt,"matches",/^max-w:./),e(rt,"propName","max-width");var it=class extends t{};e(it,"id","Display"),e(it,"matches",/^d:./),e(it,"propName","display");var ot=class extends t{};e(ot,"id","BoxSizing"),e(ot,"matches",/^box:(content|border)(?!\|)/),e(ot,"propName","box-sizing");var st=class extends t{};e(st,"id","Opacity"),e(st,"propName","opacity"),e(st,"unit","");var Or=class extends t{};e(Or,"id","Visibility"),e(Or,"propName","visibility");var Ar=class extends t{};e(Ar,"id","Clear"),e(Ar,"propName","clear");var Ir=class extends t{};e(Ir,"id","Float"),e(Ir,"propName","float");var Br=class extends t{};e(Br,"id","Isolation"),e(Br,"propName","isolation");var Fr=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Fr,"id","Overflow"),e(Fr,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Dr=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Dr,"id","OverscrollBehavior"),e(Dr,"matches",/^overscroll-behavior(?:-[xy])?:/);var se=class extends t{};e(se,"id","ZIndex"),e(se,"matches",/^z:./),e(se,"propName","z-index"),e(se,"unit","");var ae=class extends t{};e(ae,"id","AnimationDelay"),e(ae,"matches",/^@delay:./),e(ae,"propName","animation-delay"),e(ae,"unit","ms");var at=class extends t{};e(at,"id","AnimationDirection"),e(at,"matches",/^@direction:./),e(at,"propName","animation-direction");var nt=class extends t{};e(nt,"id","AnimationFillMode"),e(nt,"matches",/^@fill-mode:./),e(nt,"propName","animation-fill-mode");var ne=class extends t{};e(ne,"id","AnimationIterationCount"),e(ne,"matches",/^@iteration-count:./),e(ne,"propName","animation-interation-count"),e(ne,"unit","");var lt=class extends t{};e(lt,"id","AnimationName"),e(lt,"matches",/^@name:./),e(lt,"propName","animation-name");var ct=class extends t{};e(ct,"id","AnimationPlayState"),e(ct,"matches",/^@play-state:./),e(ct,"propName","animation-play-state");var dt=class extends t{};e(dt,"id","AnimationTimingFunction"),e(dt,"matches",/^@easing:./),e(dt,"propName","animation-timing-function");var le=class extends t{order=-1};e(le,"id","Animation"),e(le,"symbol","@"),e(le,"propName","animation"),e(le,"unit","");var to="border-";function ce(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],s=to+"left"+i,m=to+"right"+i,c=to+"top"+i,h=to+"bottom"+i;switch(n){case"x":return{[s]:o,[m]:o};case"y":return{[c]:o,[h]:o};case"l":return{[s]:o};case"r":return{[m]:o};case"t":return{[c]:o};case"b":return{[h]:o};default:return{["border"+i]:o}}}var de=class extends t{get(r){return ce(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(de,"id","BorderColor"),e(de,"matches",/^border(-(left|right|top|bottom))?-color:./),e(de,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(de,"colorful",!0);var ro="border-top-left-radius",io="border-top-right-radius",oo="border-bottom-left-radius",so="border-bottom-right-radius",Bo="border-radius",as=[ro,io,oo,so],Er=class extends t{get(r){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)i+=n[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[ro]:r,[io]:r};case"tl":case"lt":return{[ro]:r};case"rt":case"tr":return{[io]:r};case"b":return{[oo]:r,[so]:r};case"bl":case"lb":return{[oo]:r};case"br":case"rb":return{[so]:r};case"l":return{[ro]:r,[oo]:r};case"r":return{[io]:r,[so]:r};default:return{[Bo]:r}}}let o=this.prefix?.slice(0,-1);return{[as.includes(o)?o:Bo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Er,"id","BorderRadius"),e(Er,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var jr=class extends t{get(r){return ce(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(jr,"id","BorderStyle"),e(jr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Wr=class extends t{get(r){return ce(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderWidth"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var mt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(mt,"id","Border"),e(mt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(mt,"colorful",!0);var ft=class extends t{};e(ft,"id","BackgroundAttachment"),e(ft,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(ft,"propName","background-attachment");var Pr=class extends t{};e(Pr,"id","BackgroundBlendMode"),e(Pr,"propName","background-blend-mode");var pt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(pt,"id","BackgroundClip"),e(pt,"matches",/^(bg|background):text(?!\|)/),e(pt,"propName","background-clip");var U=class extends t{};e(U,"id","BackgroundColor"),e(U,"colorStarts","(bg|background):"),e(U,"propName","background-color"),e(U,"unit",""),e(U,"colorful",!0);var ut=class extends t{};e(ut,"id","BackgroundOrigin"),e(ut,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(ut,"propName","background-origin");var me=class extends t{};e(me,"id","BackgroundPosition"),e(me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(me,"propName","background-position"),e(me,"unit","px");var ht=class extends t{};e(ht,"id","BackgroundRepeat"),e(ht,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ht,"propName","background-repeat");var gt=class extends t{};e(gt,"id","BackgroundSize"),e(gt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(gt,"propName","background-size");var fe=class extends t{};e(fe,"id","BackgroundImage"),e(fe,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(fe,"propName","background-image"),e(fe,"colorful",!0);var pe=class extends t{order=-1};e(pe,"id","Background"),e(pe,"matches",/^bg:./),e(pe,"propName","background"),e(pe,"colorful",!0);var xt=class extends t{};e(xt,"id","MixBlendMode"),e(xt,"matches",/^blend:./),e(xt,"propName","mix-blend-mode");var Lr=class extends t{};e(Lr,"id","Position"),e(Lr,"propName","position");var Gr=class extends t{get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Gr,"id","Placement"),e(Gr,"matches",/^(top|left|right|bottom|center|middle):./);function ao(r,o,{rootSize:i}){let n="",s=0;return function m(c,h){let f="",p=h?o(h):"",g=()=>{f&&(n+=!p||Number.isNaN(+f)?f:+f/(p==="rem"?i:1)+p,f="")};for(;s<r.length;s++){let l=r[s];if(l===c&&(c!=="'"||r[s+1]===")")){g(),n+=l;break}else l===","||l===" "?(g(),n+=l):!f&&l==="'"?(n+=l,s++,m(l),f=""):f&&l==="("?(n+=f+l,s++,m(")",f),f=""):f+=l}g()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return ao(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(vt,"id","BackdropFilter"),e(vt,"matches",/^bd:./),e(vt,"propName","backdrop-filter");var ue=class extends t{};e(ue,"id","Fill"),e(ue,"propName","fill"),e(ue,"colorStarts","fill:"),e(ue,"colorful",!0);var St=class extends t{};e(St,"id","Stroke"),e(St,"propName","stroke"),e(St,"colorful",!0);var bt=class extends t{};e(bt,"id","StrokeWidth"),e(bt,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(bt,"propName","stroke-width");var yt=class extends t{parseValue(r,o){return ao(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(yt,"id","Filter"),e(yt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(yt,"propName","filter");var zr=class extends t{};e(zr,"id","Cursor"),e(zr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var Hr=class extends t{};e(Hr,"id","Resize"),e(Hr,"propName","resize");var Vr=class extends t{};e(Vr,"id","TouchAction"),e(Vr,"propName","touch-action");var $r=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e($r,"id","UserDrag"),e($r,"propName","user-drag");var Ur=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Ur,"id","UserSelect"),e(Ur,"propName","user-select");var he=class extends t{};e(he,"id","BoxShadow"),e(he,"matches",/^s(?:hadow)?:./),e(he,"propName","box-shadow"),e(he,"colorful",!0);var Ct=class extends t{};e(Ct,"id","TextShadow"),e(Ct,"propName","text-shadow"),e(Ct,"colorful",!0);var Qr=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Qr,"id","TextSize"),e(Qr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Rt=class extends t{};e(Rt,"id","WordBreak"),e(Rt,"propName","word-break"),e(Rt,"unit","");var ge=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(ge,"id","GridColumns"),e(ge,"matches",/^grid-cols:./),e(ge,"propName","grid-columns"),e(ge,"unit","");var Mt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Mt,"id","GridRows"),e(Mt,"propName","grid-rows"),e(Mt,"unit","");var Yr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(Yr,"id","Gap"),e(Yr,"matches",/^gap(-x|-y)?:./);var kt=class extends t{};e(kt,"id","WordSpacing"),e(kt,"propName","word-spacing"),e(kt,"unit","em");var Nt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Nt,"id","Variable"),e(Nt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(Nt,"unit","");var xe=class extends t{};e(xe,"id","AspectRadio"),e(xe,"matches",/^aspect:./),e(xe,"propName","aspect-ratio"),e(xe,"unit","");var Tt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Tt,"id","BoxDecorationBreak"),e(Tt,"matches",/^box:(slice|clone)(?!\|)/),e(Tt,"propName","box-decoration-break");var qr=class extends t{};e(qr,"id","BreakAfter"),e(qr,"propName","break-after");var Xr=class extends t{};e(Xr,"id","BreakBefore"),e(Xr,"propName","break-before");var Zr=class extends t{};e(Zr,"id","BreakInside"),e(Zr,"propName","break-inside");var wt=class extends t{};e(wt,"id","FlexShrink"),e(wt,"propName","flex-shrink"),e(wt,"unit","");var Ot=class extends t{};e(Ot,"id","FlexDirection"),e(Ot,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(Ot,"propName","flex-direction");var At=class extends t{};e(At,"id","FlexGrow"),e(At,"propName","flex-grow"),e(At,"unit","");var It=class extends t{};e(It,"id","FlexWrap"),e(It,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(It,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var Bt=class extends t{order=-1};e(Bt,"id","Flex"),e(Bt,"propName","flex"),e(Bt,"unit","");var ve=class extends t{};e(ve,"id","Order"),e(ve,"matches",/^o:./),e(ve,"propName","order"),e(ve,"unit","");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridColumn"),e(Se,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Se,"propName","grid-column"),e(Se,"unit","");var Ft=class extends t{};e(Ft,"id","ColumnSpan"),e(Ft,"matches",/^col-span:./),e(Ft,"propName","column-span");var be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(be,"id","GridRow"),e(be,"matches",/^grid-row-span:./),e(be,"propName","grid-row"),e(be,"unit","");var Q=class extends t{};e(Q,"id","Color"),e(Q,"colorStarts","(?:color|fg|foreground):"),e(Q,"colorful",!0),e(Q,"propName","color"),e(Q,"unit","");var Dt=class extends t{};e(Dt,"id","AlignContent"),e(Dt,"matches",/^ac:./),e(Dt,"propName","align-content");var Et=class extends t{};e(Et,"id","AlignItems"),e(Et,"matches",/^ai:./),e(Et,"propName","align-items");var jt=class extends t{};e(jt,"id","AlignSelf"),e(jt,"matches",/^as:./),e(jt,"propName","align-self");var Wt=class extends t{};e(Wt,"id","GridAutoColumns"),e(Wt,"matches",/^grid-auto-cols:./),e(Wt,"propName","grid-auto-columns");var Pt=class extends t{};e(Pt,"id","GridAutoFlow"),e(Pt,"matches",/^grid-flow:./),e(Pt,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var Lt=class extends t{};e(Lt,"id","JustifyContent"),e(Lt,"matches",/^jc:./),e(Lt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var zt=class extends t{};e(zt,"id","JustifySelf"),e(zt,"matches",/^js:./),e(zt,"propName","justify-self");var ei=class extends t{order=-1};e(ei,"id","PlaceContent"),e(ei,"propName","place-content");var ti=class extends t{order=-1};e(ti,"id","PlaceItems"),e(ti,"propName","place-items");var ri=class extends t{order=-1};e(ri,"id","PlaceSelf"),e(ri,"propName","place-self");var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ii,"id","Padding"),e(ii,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var oi=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(oi,"id","Margin"),e(oi,"matches",/^margin(-(left|right|top|bottom))?:./);var _t=class extends t{};e(_t,"id","TextOverflow"),e(_t,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(_t,"propName","text-overflow");var Ht=class extends t{};e(Ht,"id","ListStylePosition"),e(Ht,"matches",/^list-style:(inside|outside)(?!\|)/),e(Ht,"propName","list-style-position");var Vt=class extends t{};e(Vt,"id","ListStyleType"),e(Vt,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Vt,"propName","list-style-type");var si=class extends t{order=-1};e(si,"id","ListStyle"),e(si,"propName","list-style");var ye=class extends t{};e(ye,"id","TextDecorationColor"),e(ye,"propName","text-decoration-color"),e(ye,"colorStarts","text-decoration:"),e(ye,"colorful",!0);var $t=class extends t{};e($t,"id","TextDecorationStyle"),e($t,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e($t,"propName","text-decoration-style");var Ce=class extends t{};e(Ce,"id","TextDecorationThickness"),e(Ce,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ce,"propName","text-decoration-thickness"),e(Ce,"unit","em");var ai=class extends t{};e(ai,"id","TextIndent"),e(ai,"propName","text-indent");var ni=class extends t{};e(ni,"id","Content"),e(ni,"propName","content");var Re=class extends t{};e(Re,"id","OutlineColor"),e(Re,"propName","outline-color"),e(Re,"colorStarts","outline:"),e(Re,"colorful",!0);var li=class extends t{};e(li,"id","OutlineOffset"),e(li,"propName","outline-offset");var Ut=class extends t{};e(Ut,"id","OutlineStyle"),e(Ut,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e(Ut,"propName","outline-style");var Qt=class extends t{};e(Qt,"id","OutlineWidth"),e(Qt,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Qt,"propName","outline-width");var Yt=class extends t{order=-1};e(Yt,"id","Outline"),e(Yt,"propName","outline"),e(Yt,"colorful",!0);var qt=class extends t{};e(qt,"id","BorderCollapse"),e(qt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(qt,"propName","border-collapse");var ci=class extends t{};e(ci,"id","BorderSpacing"),e(ci,"propName","border-spacing");var di=class extends t{};e(di,"id","TableLayout"),e(di,"propName","table-layout");var Me=class extends t{};e(Me,"id","AccentColor"),e(Me,"propName","accent-color"),e(Me,"colorStarts","accent:"),e(Me,"colorful",!0);var mi=class extends t{};e(mi,"id","Appearance"),e(mi,"propName","appearance");var ke=class extends t{};e(ke,"id","CaretColor"),e(ke,"propName","caret-color"),e(ke,"colorStarts","caret:"),e(ke,"colorful",!0);var fi=class extends t{};e(fi,"id","ScrollBehavior"),e(fi,"propName","scroll-behavior");var pi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(pi,"id","ScrollMargin"),e(pi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var ui=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(ui,"id","ScrollPadding"),e(ui,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var Xt=class extends t{};e(Xt,"id","ScrollSnapAlign"),e(Xt,"matches",/^scroll-snap:(start|end|center)/),e(Xt,"propName","scroll-snap-align");var Zt=class extends t{};e(Zt,"id","ScrollSnapStop"),e(Zt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Zt,"propName","scroll-snap-stop");var Jt=class extends t{};e(Jt,"id","ScrollSnapType"),e(Jt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Jt,"propName","scroll-snap-type");var hi=class extends t{};e(hi,"id","WillChange"),e(hi,"propName","will-change");var gi=class extends t{};e(gi,"id","TextUnderlineOffset"),e(gi,"propName","text-underline-offset");var Kt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Kt,"id","Inset"),e(Kt,"matches",/^(?:top|bottom|left|right):./),e(Kt,"propName","inset");var Ne=class extends t{order=-1};e(Ne,"id","Columns"),e(Ne,"matches",/^(columns|cols):./),e(Ne,"propName","columns"),e(Ne,"unit","");var er=class extends t{};e(er,"id","WhiteSpace"),e(er,"propName","white-space"),e(er,"unit","");var tr=class extends t{};e(tr,"id","TextOrientation"),e(tr,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(tr,"propName","text-orientation");var rr=class extends t{};e(rr,"id","WritingMode"),e(rr,"matches",/^writing:./),e(rr,"propName","writing-mode");var xi=class extends t{};e(xi,"id","Contain"),e(xi,"propName","contain");var Te=class extends t{};e(Te,"id","AnimationDuration"),e(Te,"matches",/^@duration:./),e(Te,"propName","animation-duration"),e(Te,"unit","ms");var ir=class extends t{};e(ir,"id","TextRendering"),e(ir,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(ir,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var or=class extends t{};e(or,"id","TextDecorationLine"),e(or,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(or,"propName","text-decoration-line");var we=class extends t{};e(we,"id","GridColumnStart"),e(we,"matches",/^grid-col-start:./),e(we,"propName","grid-column-start"),e(we,"unit","");var sr=class extends t{};e(sr,"id","ListStyleImage"),e(sr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(sr,"propName","list-style-image");var ar=class extends t{};e(ar,"id","ShapeOutside"),e(ar,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(ar,"propName","shape-outside");var nr=class extends t{};e(nr,"id","ShapeMargin"),e(nr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(nr,"propName","shape-margin");var lr=class extends t{};e(lr,"id","ShapeImageThreshold"),e(lr,"propName","shape-image-threshold"),e(lr,"unit","");var cr=class extends t{};e(cr,"id","ClipPath"),e(cr,"matches",/^clip:./),e(cr,"propName","clip-path");var Si=class extends t{order=-1};e(Si,"id","Grid"),e(Si,"propName","grid");var Oe=class extends t{order=-1};e(Oe,"id","Font"),e(Oe,"matches",/^f:./),e(Oe,"propName","font"),e(Oe,"unit","");var bi=class extends t{};e(bi,"id","Quotes"),e(bi,"propName","quotes");var yi=class extends t{order=-1};e(yi,"id","GridTemplate"),e(yi,"propName","grid-template");var dr=class extends t{};e(dr,"id","GridRowStart"),e(dr,"propName","grid-row-start"),e(dr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var mr=class extends t{};e(mr,"id","GridTemplateColumns"),e(mr,"matches",/^grid-template-cols:./),e(mr,"propName","grid-template-columns");var Ri=class extends t{};e(Ri,"id","GridTemplateRows"),e(Ri,"propName","grid-template-rows");var fr=class extends t{order=-1};e(fr,"id","GridArea"),e(fr,"propName","grid-area"),e(fr,"unit","");var Ae=class extends t{};e(Ae,"id","GridColumnEnd"),e(Ae,"matches",/^grid-col-end:./),e(Ae,"propName","grid-column-end"),e(Ae,"unit","");var pr=class extends t{};e(pr,"id","GridRowEnd"),e(pr,"propName","grid-row-end"),e(pr,"unit","");var Mi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Mi,"id","MaskImage"),e(Mi,"propName","mask-image");var Ie=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ie,"id","TextFillColor"),e(Ie,"matches",/^text-fill-color:./),e(Ie,"colorStarts","(text-fill|text|t):"),e(Ie,"colorful",!0);var ki=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(ki,"id","TextStroke"),e(ki,"matches",/^text-stroke:./);var Ni=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ni,"id","TextStrokeWidth"),e(Ni,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Be=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Be,"id","TextStrokeColor"),e(Be,"matches",/^text-stroke-color:./),e(Be,"colorStarts","text-stroke:"),e(Be,"colorful",!0);var Ti=class extends t{};e(Ti,"id","StrokeDasharray"),e(Ti,"propName","stroke-dasharray");var wi=class extends t{};e(wi,"id","StrokeDashoffset"),e(wi,"propName","stroke-dash-offset");var ur=class extends t{};e(ur,"id","X"),e(ur,"propName","x"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Y"),e(hr,"propName","y"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","Cx"),e(gr,"propName","cx"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Cy"),e(xr,"propName","cy"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Rx"),e(vr,"propName","rx"),e(vr,"unit","");var Sr=class extends t{};e(Sr,"id","Ry"),e(Sr,"propName","ry"),e(Sr,"unit","");var Oi=class extends t{};e(Oi,"id","BorderImageOutset"),e(Oi,"propName","border-image-outset");var br=class extends t{};e(br,"id","BorderImageRepeat"),e(br,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(br,"propName","border-image-repeat");var yr=class extends t{};e(yr,"id","BorderImageSlice"),e(yr,"propName","border-image-slice"),e(yr,"unit","");var Cr=class extends t{};e(Cr,"id","BorderImageSource"),e(Cr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(Cr,"propName","border-image-source");var Rr=class extends t{};e(Rr,"id","BorderImageWidth"),e(Rr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Rr,"propName","border-image-width");var Mr=class extends t{};e(Mr,"id","BorderImage"),e(Mr,"propName","border-image"),e(Mr,"unit","");var ns=/\{(.*)\}/,kr=class extends t{getThemeProps(r,o){let i={},n=(p,g)=>{let l=g.indexOf(":");if(l!==-1){p in i||(i[p]={});let a=i[p],d=g.slice(0,l);d in a||(a[d]=g.slice(l+1))}},s=p=>{let g=(l,a)=>{let d=a.slice(CSS.escape(p.className).length).match(ns)[1].split(";");for(let x of d)n(l,x)};if(this.themeName){let l=p.natives.find(a=>a.themeName===this.themeName)??p.natives.find(a=>!a.themeName);l&&g(this.themeName,l.text)}else for(let l of p.natives)g(l.themeName,l.text)},m=[],c="",h=()=>{c&&(m.push(c),c="")},f=1;(function p(g){for(;f<r.value.length;f++){let l=r.value[f];if(!g){if(l===";"){h();continue}if(l==="}")break}if(c+=l,g===l){if(g==="'"){let a=0;for(let d=c.length-2;c[d]==="\\";d--)a++;if(a%2)continue}break}else l in Tr&&g!=="'"&&(f++,p(Tr[l]))}})(void 0),h();for(let p of m){let g=o.findAndNew(p);if(Array.isArray(g))for(let l of g)s(l);else g?s(g):n(this.themeName??"",p)}return i}};e(kr,"id","Group"),e(kr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(kr,"unit","");var Nr=class extends t{};e(Nr,"id","CounterIncrement"),e(Nr,"propName","counter-increment"),e(Nr,"unit","");var ls=[kr,Nt,We,X,je,_e,J,He,Oe,Q,wr,oi,ii,Jr,It,At,wt,Ot,Bt,it,Pe,Le,Ge,ze,xi,ni,Nr,Z,K,Ve,$e,Ue,ye,$t,Ce,or,ee,gi,_t,tr,Qe,ir,ai,Ye,Ne,er,Kt,qe,tt,rt,ot,st,Or,Ar,Ir,Br,Fr,Dr,se,Lr,Gr,zr,_r,Hr,Vr,Rt,kt,$r,Ur,Ct,Qr,Ie,Ni,Be,ki,he,di,Ze,Xe,te,re,Ke,et,oe,ie,Je,ae,at,Te,nt,ne,lt,ct,dt,le,de,Er,jr,Wr,qt,ci,Oi,br,yr,Cr,Rr,Mr,mt,ft,Pr,pt,U,ut,me,ht,gt,fe,pe,xt,vt,yt,ue,Ti,wi,bt,St,ur,hr,gr,xr,vr,Sr,we,Ae,Se,ge,dr,pr,be,Mt,Wt,Pt,Kr,Ci,mr,Ri,yi,fr,Si,Yr,ve,Zr,Xr,qr,Tt,xe,Ft,Dt,Et,jt,Lt,Gt,zt,ei,ti,ri,Ht,Vt,sr,si,Re,li,Ut,Qt,Yt,Me,mi,ke,fi,pi,ui,Xt,Zt,Jt,hi,rr,vi,ar,nr,lr,cr,bi,Mi],no=ls;var cs={colors:Vi,breakpoints:Ee,semantics:Qi,values:Zi,selectors:Ui,themes:Yi,scheme:qi,Rules:no,rootSize:$i},ji=cs;function Fo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function lo(r){return Object.prototype.toString.call(r).slice(8,-1)}function Ai(r){return lo(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function vo(r){return lo(r)==="Symbol"}function Do(r,o,i,n){let s={}.propertyIsEnumerable.call(n,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Eo(r,o,i){if(!Ai(o))return o;let n={};if(Ai(r)){let h=Object.getOwnPropertyNames(r),f=Object.getOwnPropertySymbols(r);n=[...h,...f].reduce((p,g)=>{let l=r[g];return(!vo(g)&&!Object.getOwnPropertyNames(o).includes(g)||vo(g)&&!Object.getOwnPropertySymbols(o).includes(g))&&Do(p,g,l,r),p},{})}let s=Object.getOwnPropertyNames(o),m=Object.getOwnPropertySymbols(o);return[...s,...m].reduce((h,f)=>{let p=o[f],g=Ai(r)?r[f]:void 0;g!==void 0&&Ai(p)&&(p=Eo(g,p,i));let l=i?i(g,p,f):p;return Do(h,f,l,o),h},n)}function Ii(r,...o){return o.filter(i=>Ai(i)).reduce((i,n)=>Eo(i,n,Fo),r)}var ds=[",",".","#","[","!","*",">","+","~",":","@"],ms=/^::-[a-z]+-/m,co,Pi=typeof window<"u";Pi&&(co=document.createElement("style"),co.title="master");var G="max-width",L="min-width",fs="attributes",ps=Pi?window.MutationObserver:Object,Bi,Fe,Wi=class extends ps{constructor(i){super(n=>{let s={},m=[],c=[],h=[],f=(a,d)=>{d?a.classList.forEach(g):a.classList.forEach(p);let x=a.children;for(let u=0;u<x.length;u++){let v=x[u];v.classList&&(c.push(v),f(v,d))}},p=a=>{a in s?s[a]++:s[a]=1},g=a=>{a in s?s[a]--:s[a]=-1},l=(a,d)=>{for(let x=0;x<a.length;x++){let u=a[x];u.classList&&!c.includes(u)&&!h.includes(u)&&(u.isConnected!==d?(c.push(u),f(u,d)):h.push(u))}};for(let a=0;a<n.length;a++){let d=n[a],{addedNodes:x,removedNodes:u,type:v,target:S,oldValue:M}=d;if(v===fs){if(S.className===M||m.find(O=>O.target===S))continue;m.push(d)}else l(x,!1),l(u,!0)}if(!(!m.length&&!Object.keys(s).length)){for(let{oldValue:a,target:d}of m){let x=c.includes(d),u=d.classList,v=a?a.split(" "):[];if(x){if(d.isConnected)continue;for(let S of v)u.contains(S)||g(S)}else if(d.isConnected){u.forEach(S=>{v.includes(S)||p(S)});for(let S of v)u.contains(S)||g(S)}else for(let S of v)g(S)}for(let a in s){let d=s[a],x=(this.countOfClass[a]||0)+d;x===0?(delete this.countOfClass[a],this.delete(a)):(a in this.countOfClass||this.findAndInsert(a),this.countOfClass[a]=x)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"schemeMQL");fo(this,Bi,void 0);fo(this,Fe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ii({observe:!0},i),this.options.config&&!this.options.override?this.config=Ii(ji,this.options.config):this.config=ji,this.cache(),Pi&&this.options.observe&&this.observe(document),Wi.instances.push(this),this.ready=!0}static refresh(i){for(let n of this.instances)n.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==De(this,Bi)){po(this,Bi,i);let{storage:n}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&n.sync&&localStorage.setItem(n.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return De(this,Bi)}set theme(i){i!==De(this,Fe)&&(De(this,Fe)&&this.host.classList.remove(De(this,Fe)),po(this,Fe,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return De(this,Fe)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:i,classes:n,selectors:s,themes:m,colors:c}=this.config;function h(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let l in i)this.semantics.push([new RegExp("^"+h(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),l]);if(s)for(let[l,a]of Object.entries(s)){let d=new RegExp(h(l)+"(?![a-z-])");for(let x of Array.isArray(a)?a:[a]){let u=x.match(ms)?.[0]??"",v=this.selectors[u];v||(v=this.selectors[u]=[]);let S=v.find(([M])=>M===d);S||(S=[d,[]],v.push(S)),S[1].push(x)}}let f=[...n?Object.keys(n):[],...m&&!Array.isArray(m)?Object.entries(m).flatMap(([l,{classes:a}])=>a?Object.keys(a):[]):[]],p=l=>{if(l in this.classes)return;let a=this.classes[l]=[],d=(x,u)=>{if(!u)return;let v=Array.isArray(u)?u:u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let S of v){let M=O=>{O in this.relationThemesMap?x in this.relationThemesMap[O]?this.relationThemesMap[O][x].push(l):this.relationThemesMap[O][x]=[l]:this.relationThemesMap[O]={[x]:[l]},a.includes(O)||a.push(O)};if(f.includes(S)){p(S);for(let O of this.classes[S])M(O)}else M(S)}};if(d("",n?.[l]),m&&!Array.isArray(m))for(let[x,{classes:u}]of Object.entries(m))d(x,u?.[l])};for(let l of f)p(l);for(let l in this.relationThemesMap){let a=this.relations[l]=[];for(let d of Object.values(this.relationThemesMap[l]))for(let x of d)a.includes(x)||a.push(x)}let g=(l,a)=>{if(!!a)for(let d in a){let x=a[d];if(typeof x=="string"&&(x={"":x}),d in this.colorsThemesMap){let u=this.colorsThemesMap[d];for(let v in x){let S=x[v];v in u?u[v][l]=S:u[v]={[l]:S}}}else this.colorNames.push(d),this.colorsThemesMap[d]=Object.entries(x).reduce((u,[v,S])=>(u[v]={[l]:S},u),{})}};if(g("",c),m)if(Array.isArray(m))this.themeNames.push(...m);else for(let l in m){let a=m[l];g(l,a.colors),this.themeNames.push(l)}}observe(i,n={subtree:!0,childList:!0}){if(Pi&&i){this.root=i;let s=i===document;s&&(Wi.root=this),this.host=s?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let m=s?document.head:i,c=s?document.styleSheets:i.styleSheets;for(let h of c){let{title:f,href:p,ownerNode:g}=h;(f==="master"||p&&/master(?:\..+)?\.css/.test(p))&&(this.style=g)}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let f=g=>{if(g.selectorText){let a=g.selectorText.split(", ")[0].split(" ");for(let d=0;d<a.length;d++){let x=a[d];if(x[0]==="."){let u=x.slice(1),v="";for(let S=0;S<u.length;S++){let M=u[S],O=u[S+1];if(M==="\\"){if(S++,O!=="\\"){v+=O;continue}}else if(ds.includes(M))break;v+=M}if(!(v in this.ruleOfClass)&&!(v in this.classes)){let S=this.findAndNew(v);if(S)return S}}}}else if(g.cssRules)for(let l=0;l<g.cssRules.length;l++){let a=f(g.cssRules[l]);if(a)return a}},p=f(this.style.sheet.cssRules[h]);if(p){this.rules.push(p),this.ruleOfClass[p.className]=p;for(let g=0;g<p.natives.length;g++)p.natives[g].cssRule=this.style.sheet.cssRules[h+g];h+=p.natives.length-1}}else this.style=co.cloneNode(),m.prepend(this.style);n.subtree&&this.host.querySelectorAll("[class]").forEach(h=>{h.classList.forEach(f=>{f in this.countOfClass?this.countOfClass[f]++:(this.countOfClass[f]=1,this.findAndInsert(f))})}),super.observe(i,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let n=i.cssRules.length-1;n>=0;n--)i.deleteRule(n)}findAndNew(i){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let m of this.config.Rules){let c=m.match(s,this.colorNames);if(c)return new m(s,c,this)}for(let m of this.semantics)if(s.match(m[0]))return new t(s,{origin:"semantics",value:m[1]},this)};return i in this.classes?this.classes[i].map(n).filter(s=>s):n(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let n=co.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=Wi.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:n}=this.config;if(n&&!n(i,this))return;let s,m=this.rules.length-1,{media:c,order:h,prioritySelectorIndex:f,hasWhere:p,className:g}=i,l=(a,d,x,u)=>{let v=0,S;d&&(v=a.findIndex(d)),x&&(S=a.findIndex(x)),v===-1&&(v=a.length),(S===void 0||S===-1)&&(S=a.length);let M=a.slice(v,S);for(let O=0;O<M.length;O++){let B=M[O];if(!(B.prioritySelectorIndex===-1||u&&u(B))&&(B.prioritySelectorIndex<f||B.prioritySelectorIndex===f&&(p&&!B.hasWhere||B.order>=h)))return v+O}return v+M.length};if(c){let a=this.rules.findIndex(d=>d.media);if(a!==-1){let d=c.features[G],x=c.features[L];if(d&&x){let u=d.value-x.value;for(let v=m;v>=a;v--){s=v;let S=this.rules[v],M=S.media,O=M.features[G],B=M.features[L];if(!O||!B){s++;break}let C=O.value-B.value;if(C===u){if(p!==S.hasWhere)continue;if(f!==-1){let F=[this.rules[v]];for(let E=v-1;E>=a;E--){let H=this.rules[E];if(H.hasWhere!==p)break;let $=H.media,V=$.features[G],I=$.features[L];if(!V||!I||V.value-I.value!==C)break;F.unshift(this.rules[E])}s=l(this.rules,E=>E.media&&E.prioritySelectorIndex!==-1&&E.media.features[L]&&E.media.features[G])}break}else if(C>u)break}}else if(x)for(let u=a;u<=m;u++){s=u;let v=this.rules[u],S=v.media,M=S.features[G],O=S.features[L];if(M){if(O)break;continue}let B=O?.value;if(B===x.value){if(!p&&v.hasWhere){s++;continue}if(f!==-1)s=l(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[G],C=>!C.media.features[L]&&!C.media.features[G]);else for(let C=u;C<=m;C++){let F=this.rules[C],E=F.media,H=E.features[L];if(!E.features[G]){if(F.hasWhere!==p||H.value!==B||F.order>=h)break;s=C+1}}break}else{if(B>x.value)break;s++}}else if(d)for(let u=m;u>=a;u--){s=u;let v=this.rules[u],S=v.media,M=S.features[G];if(S.features[L])continue;let B=M?.value;if(!B||B>d.value){s++;break}else if(B===d.value){if(p&&!v.hasWhere)continue;if(f!==-1)s=l(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[G],C=>!C.media.features[L]&&!C.media.features[G]);else{let C=[this.rules[u]];for(let F=u-1;F>=a;F--){let E=this.rules[F],H=E.media,$=H.features[L],V=H.features[G];if(!$&&(!V||V.value!==B||E.hasWhere!==p))break;C.unshift(E)}for(let F=0;F<C.length;F++){let E=C[F];if(!E.media.features[L]){if(E.order>=h)break;s=u-C.length+2+F}}}break}}}if(s===void 0)if(a===-1)s=m+1;else if(f!==-1)s=a+l(this.rules.slice(a),void 0,d=>d.media.features[G]||d.media.features[L]);else if(p){let d=a;for(;d<this.rules.length;d++){let x=this.rules[d];if(x.prioritySelectorIndex!==-1||!x.hasWhere||x.order>=h){s=d;break}}s===void 0&&(s=d)}else for(let d=a;d<=m;d++){s=d;let x=this.rules[d],u=x.media;if(x.prioritySelectorIndex!==-1||u.features[G]||u.features[L])break;if(x.hasWhere)s++;else if(x.order>=h)break}}else if(f===-1)if(p)s=this.rules.findIndex(a=>!a.hasWhere||a.media||a.prioritySelectorIndex!==-1||a.order>=h),s===-1&&(s=m+1);else{let a=0;for(;a<this.rules.length;a++){let d=this.rules[a];if(d.media||!d.hasWhere&&(d.order>=h||d.prioritySelectorIndex!==-1)){s=a;break}}s===void 0&&(s=a)}else s=l(this.rules,void 0,a=>a.media);if(this.rules.splice(s,0,i),this.ruleOfClass[g]=i,this.style){let a=this.style.sheet,d=0,x=u=>{let v=this.rules[u];if(v){if(!v.natives.length)return x(u-1);let S=v.natives[v.natives.length-1].cssRule;for(let M=0;M<a.cssRules.length;M++)if(a.cssRules[M]===S){d=M+1;break}}};x(s-1);for(let u=0;u<i.natives.length;)try{let v=i.natives[u];a.insertRule(v.text,d),v.cssRule=a.cssRules[d++],u++}catch(v){console.error(v),i.natives.splice(u,1)}}}delete(i){let n=this.style.sheet,s=m=>{let c=this.ruleOfClass[m];if(!(!c||m in this.relations&&this.relations[m].some(h=>h in this.countOfClass))){if(c.natives.length){let h=c.natives[0];for(let f=0;f<n.cssRules.length;f++)if(n.cssRules[f]===h.cssRule){for(let g=0;g<c.natives.length;g++)n.deleteRule(f);this.rules.splice(this.rules.indexOf(c),1);break}}delete this.ruleOfClass[m]}};if(i in this.classes){for(let m of this.classes[i])m in this.countOfClass||s(m);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let n=this.findAndNew(i);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}get text(){return this.rules.map(i=>i.natives.map(n=>n.text).join("")).join("")}},z=Wi;Bi=new WeakMap,Fe=new WeakMap,e(z,"instances",[]),e(z,"root");Pi&&(window.MasterCSS=z);var Li=typeof global<"u"?global:window;if(!Li.CSS&&!Li.CSS?.escape){let r=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(o),n=i.length,s=-1,m="",c,h=i.charCodeAt(0);if(n==1&&h==45)return"\\"+i;for(;++s<n;){if(c=i.charCodeAt(s),c==0){m+="\uFFFD";continue}if(c>=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&h==45){m+="\\"+c.toString(16)+" ";continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){m+=i.charAt(s);continue}m+="\\"+i.charAt(s)}return m};Li.CSS||(Li.CSS={}),Li.CSS.escape=r}function So(r,o=new z){if(!!r?.length){for(let i of r)i in o.countOfClass||(o.findAndInsert(i),o.countOfClass[i]=1);return o.rules.map(i=>i.natives.reduce((n,s)=>n+s.text,"")).join("")}}function Gi(r,o=new z){if(!r)return;let i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(r);){let s=n[1].replace(/\n/g,"").split(" ").filter(m=>m);for(let m of s)m in o.countOfClass||(o.findAndInsert(m),o.countOfClass[m]=1)}return o.rules.map(s=>s.natives.reduce((m,c)=>m+c.text,"")).join("")}function bo(r,o=new z){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${Gi(r,o)}</style>`)}var us=typeof document<"u"&&document;0&&(module.exports={DefaultRules,MasterCSSRule,defaultBreakpoints,defaultColors,defaultConfig,defaultRootSize,defaultScheme,defaultSelectors,defaultSemantics,defaultThemes,defaultValues,extend,fillColorScale,render,renderFromHTML,renderIntoHTML,root});
|
|
1
|
+
var Hi=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var Go=Object.prototype.hasOwnProperty;var zo=(r,o,i)=>o in r?Hi(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var _o=(r,o)=>{for(var i in o)Hi(r,i,{get:o[i],enumerable:!0})},Ho=(r,o,i,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Lo(o))!Go.call(r,s)&&s!==i&&Hi(r,s,{get:()=>o[s],enumerable:!(n=Po(o,s))||n.enumerable});return r};var Vo=r=>Ho(Hi({},"__esModule",{value:!0}),r);var e=(r,o,i)=>(zo(r,typeof o!="symbol"?o+"":o,i),i),Co=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var De=(r,o,i)=>(Co(r,o,"read from private field"),i?i.call(r):o.get(r)),fo=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},po=(r,o,i,n)=>(Co(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var hs={};_o(hs,{DefaultRules:()=>no,MasterCSSRule:()=>t,default:()=>z,defaultBreakpoints:()=>Ee,defaultColors:()=>Vi,defaultConfig:()=>ji,defaultRootSize:()=>$i,defaultScheme:()=>qi,defaultSelectors:()=>Ui,defaultSemantics:()=>Qi,defaultThemes:()=>Yi,defaultValues:()=>Zi,extend:()=>Ii,fillColorScale:()=>D,render:()=>So,renderFromHTML:()=>Gi,renderIntoHTML:()=>bo,root:()=>us});module.exports=Vo(hs);var $o={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Ee=$o;function Di(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function Ro(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function D(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let n in r)if(n&&+n>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let n=0,s="0"in r?Di(r[0]):[0,0,0],m,c,h=[],f=()=>{let p=m-n,g=c.map((l,a)=>(l-s[a])/p);for(let l of h){let a=l-n,d=s.map((x,u)=>Math.round(x+g[u]*a));r[l]="#"+Ro.call(this,...d)}};for(let p=1;p<100;p++)p in r?(h.length?(m=p,c=Di(r[p]),f(),h.length=0,s=c):s=Di(r[p]),n=p):h.push(p);h.length&&(m=100,c="100"in r?Di(r[100]):[255,255,255],f())}return o||(r[""]=r[i?"500":"50"]),r}var Uo={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"}),black:"#000000",white:"#ffffff"},Vi=Uo;var $i=16;var Qo={"::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("},Ui=Qo;var Yo={square:"aspect-ratio:1/1",video:"aspect-ratio:16/9",rounded:"border-radius:1e9em",round:"border-radius:50%",hidden:"display:none",hide:"display:none",block:"display:block",table:"display:table",flex:"display:flex",grid:"display:grid",contents:"display:contents",inline:"display:inline","inline-block":"display:inline-block","inline-flex":"display:inline-flex","inline-grid":"display:inline-grid","inline-table":"display:inline-table","table-cell":"display:table-cell","table-caption":"display:table-caption","flow-root":"display:flow-root","list-item":"display:list-item","table-row":"display:table-row","table-column":"display:table-column","table-row-group":"display:table-row-group","table-column-group":"display:table-column-group","table-header-group":"display:table-header-group","table-footer-group":"display:table-footer-group",italic:"font-style:italic",oblique:"font-style:oblique",isolate:"isolation:isolate",overflow:"overflow:visible",untouchable:"pointer-events:none",static:"position:static",fixed:"position:fixed",abs:"position:absolute",rel:"position:relative",sticky:"position:sticky",uppercase:"text-transform:uppercase",lowercase:"text-transform:lowercase",capitalize:"text-transform:capitalize",visible:"visibility:visible",invisible:"visibility:hidden","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}},Qi=Yo;var qo=["dark","light"],Yi=qo;var Xo={storage:{sync:!0,key:"scheme"}},qi=Xo;var Ei={content:"content-box",border:"border-box",padding:"padding-box"},Xi={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Ee)q[r]=Ee[r]/16+"rem";var Zo={BackgroundClip:Ei,BackgroundOrigin:Ei,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Ei,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Xi,GridAutoRows:Xi,GridTemplateColumns:Xi,GridTemplateRows:Xi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Ei,margin:"margin-box"},TransformBox:{...Ei,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q},Zi=Zo;function Ji(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function Mo(r){let o=h=>h==="+"||h==="-"||h==="*"||h==="/",i="",n,s="",m=!1;function c(){n=null,s=""}for(let h=0;h<r.length;h++){let f=r[h];if(f==="("||f===")")m=f===")",i+=s+f,c();else if(f===",")i+=s+f+" ",c();else{switch(n){case 1:break;case 2:if(o(f)){i+=s+" "+f+" ",c();continue}break;default:m&&(s+=" "),isNaN(+f)?o(f)||(n=1):n=2;break}s+=f}}return s&&(i+=s),i}var Jo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Ko="var(--";function Ki(r,o,i,n,s,m){let c=n?n[r]:"",h="",f="",p;if(c)return{value:c,unit:h,unitToken:f};if(typeof r=="number")c=r,h=o||"";else{if(i){let g=Object.keys(i),l=!1,a=!1;r=r.replace(new RegExp(`(^|,| |\\()(${g.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(d,x,u,v,S)=>{a=!0;let M=i[u]?.[v||""];if(M){let O;for(let B of m)if(O=M[B])break;if(O){l=!0;let B=O;if(S){let C=S.endsWith("%")?parseFloat(S)/100:+S;C=isNaN(C)?1:Math.min(Math.max(C,0),1),B+=Math.round(C*255).toString(16).toUpperCase().padStart(2,"0")}return x+B}}return d}),a&&(p=l)}if(o){let g=r.match(Jo);if(g)if(r.includes("/")){let l=r.split("/");return{value:+l[0]/+l[1]*100+"%",unit:h,unitToken:f}}else return c=+g[1],h=f=g[3]||"",h||((o==="rem"||o==="em")&&(c=c/s),h=o||""),{value:c,unit:h,unitToken:f}}c=(r.indexOf("calc(")===-1?r:Mo(r)).replace(/\$\(((\w|-)+)\)/g,Ko+"$1)")}return{value:c,unit:h,unitToken:f,colorMatched:p}}var Tr={"(":")","'":"'","{":"}"};var ko=[":disabled",":active",":focus",":hover"],eo="matches",es="semantics",No="symbol",wo="width",uo="max-"+wo,ho="min-"+wo,xo="motion",Oo="reduce",To=Oo+"d-"+xo,go="px",ts="rem",rs=["!","*",">","+","~",":","[","@","_"],is=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,os=r=>r.split(is).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,n){this.className=o;this.matching=i;this.css=n;let s=this.constructor,{id:m,unit:c,propName:h,colorful:f}=s,{breakpoints:p,mediaQueries:g,semantics:l,rootSize:a}=n.config,d=n.config.values[m],x=n.relationThemesMap[o],{themeNames:u,colorsThemesMap:v,selectors:S}=n,M=o,O,B,C,F;if(i.origin===es)C=M.slice(i.value.length),O=l[i.value];else{let I;if(i.origin===eo)if(m==="Group"){let N=0;for(;N<M.length&&!(M[N]==="{"&&M[N-1]!=="\\");N++);B=M.slice(0,N),I=M.slice(N)}else{let N=M.indexOf(":");this.prefix=M.slice(0,N+1),this.prefix.includes("(")?(this.prefix=void 0,I=M):I=M.slice(N+1)}else i.origin===No&&(this.symbol=M[0],I=M.slice(1));F=[];let y="",R=0;(function N(j,k,T=""){let b,w=!1;for(j&&(j===")"&&y.slice(-1)==="$"?b=y.length-1:j==="'"&&(w=!0),y+=I[R++]);R<I.length;R++){let A=I[R];if(A===j){if(y+=A,w){let W=0;for(let _=y.length-2;y[_]==="\\";_--)W++;if(W%2)continue}b!==void 0&&(y=y.slice(0,b)+y.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),k||(w?F.push(y):F.push({value:y}),T="",y="");break}else if(!w&&A in Tr)N(Tr[A],k===void 0?0:k+1,T);else if(A==="|"&&j!=="}"&&(!w||T==="path"))j?y+=" ":(F.push({value:y}),y="");else{if(!j){if(A==="."){if(isNaN(+I[R+1]))break;I[R-1]==="-"&&(y+="0")}else if(A===","){F.push({value:y},","),y="";continue}else if(A==="#"&&(y||F.length&&I[R-1]!=="|")||rs.includes(A))break;T+=A}y+=A}}})(),y&&F.push({value:y}),C=I.slice(R)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let E=I=>{let y=os(I),R=[],N="",j=0;for(let k=0;k<y.length;k++){let T=y[k];if(T==="\\"){N+=T+y[++k];continue}!j&&T===","?(R.push(N),N=""):(N+=T,j&&T===")"?j--:T==="("&&j++)}return N&&R.push(N),R};this.prefixSelectors=B?E(B):[""];let H=C.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let I=(k,T,b,w)=>{for(let[A,W]of T)if(A.test(k)){for(let _ of W)I(k.replace(A,_),T,b,!0);return}w&&b.push(k)},y=[];""in S?I($,S[""],y,!0):y.push($);let R={};for(let[k,T]of Object.entries(S)){if(!k)continue;let b=[];for(let w of y)I(w,T,b,!1);b.length&&(R[k]=b)}let N=(k,T)=>{let b=T.reduce((w,A)=>(w.push(...E(A)),w),[]);k in this.vendorSuffixSelectors?this.vendorSuffixSelectors[k].push(...b):this.vendorSuffixSelectors[k]=b},j=Object.keys(R);if(j.length)for(let k of j)N(k,R[k]);else N("",y);for(let k of Object.values(this.vendorSuffixSelectors))for(let T of k){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let b=0;b<ko.length;b++)if(T.includes(ko[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let I=1;I<H.length;I++){let y=H[I];if(y)if(u.includes(y))this.themeName=y;else if(y==="rtl"||y==="ltr")this.direction=y;else{let R,N,j=y.indexOf("_");if(j!==-1)R=y.slice(0,j),N=y.slice(j);else{let k=y.indexOf("(");k!==-1&&(R=y.slice(0,k),N=y.slice(k))}if(!R){R="media";let k=[];this.media={token:y,features:{}};let T=y.split("&");for(let b of T)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")k.push("(orientation:"+b+")");else if(b===xo||b===To)k.push("(prefers-"+To+":"+(b===xo?"no-preference":Oo)+")");else if(g&&b in g)k.push(g[b]);else{let w={token:b},A="",W="",_=0;b.startsWith("<=")?(W="<=",A=uo):b.startsWith(">=")||p[b]?(W=">=",A=ho):b.startsWith(">")?(W=">",A=ho,_=.02):b.startsWith("<")&&(W="<",A=uo,_=-.02);let Y=W?b.replace(W,""):b,P=p[Y];switch(A){case uo:case ho:P?Object.assign(w,Ki(P,go)):Object.assign(w,Ki(Y,go)),w.unit===go&&(w.value+=_),this.media.features[A]=w,k.push("("+A+":"+(w.value+w.unit)+")");break}}N="",this.media.type&&(N=this.media.type),k.length&&(N+=(N?" and ":"")+k.join(" and "))}N&&(this.at[R]=(R in this.at?this.at[R]+" and ":"")+N.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let V=(I,y)=>{let R,N,j=(T,b,w)=>{let A="";this.direction&&(A+="[dir="+this.direction+"] ");let W=this.prefixSelectors.map(P=>P+A),_=(P,zi)=>{let Fi=P?"."+P+" ":"",mo="."+CSS.escape(zi);return W.map(_i=>Fi+_i).reduce((_i,jo)=>(_i.push(w.reduce((yo,Wo)=>(yo.push(jo+mo+Wo),yo),[]).join(",")),_i),[]).join(",")},Y=_(b,o)+(x?Object.entries(x).filter(([P])=>this.themeName||!f||!b||!P||P===b).map(([P,zi])=>zi.reduce((Fi,mo)=>Fi+","+_(this.themeName??(f&&b||P),mo),"")).join(""):"")+"{"+T+"}";for(let P of Object.keys(this.at).sort((zi,Fi)=>Fi==="supports"?-1:1))Y="@"+P+" "+this.at[P]+"{"+Y+"}";return Y},k=[];if(F){let T,b;for(let w of F)typeof w=="string"?k.push(w):(T=Ki(w.value,c,f&&v,d,a,this.themeName?[this.themeName,""]:[I]),T.colorMatched!==void 0&&b!==!0&&(b=T.colorMatched),k.push(T.value+T.unit));if(y&&(b===void 0?I:!b))return;if(k.length===1?T?(R=T.value,N=T.unit):R=k[0]:R=k.reduce((w,A,W)=>w+A+(A===","||F[W+1]===","||W===F.length-1?"":" "),""),typeof R!="object"){this.parseValue&&(R=this.parseValue(R,this.css.config)),f&&R==="current"?R="currentColor":d&&R in d&&(R=d[R].toString());let w={unit:N,value:R,important:this.important};if(this.getThemeProps){let A=this.getThemeProps(w,n);for(let W in A)for(let _ of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:R,text:j(Object.entries(A[W]).map(([Y,P])=>Ji(Y,{important:this.important,unit:"",value:P})).join(";"),W,_),themeName:W});return}else this.get&&(R=this.get(w))}}else R=O;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:N,value:R,text:j(typeof R=="object"?Object.entries(R).map(([b,w])=>Ji(b,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):Ji(h,{unit:N,value:R,important:this.important}),I,T),themeName:I})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(f)for(let I of u)V(I,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(o,i){if(this.matches&&this.matches.test(o))return{origin:eo};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:eo};if(this.symbol&&o.startsWith(this.symbol))return{origin:No};if(this.propName&&o.startsWith(this.propName+":"))return{origin:eo}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",ts),e(t,"colorful");var X=class extends t{};e(X,"id","FontWeight"),e(X,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(X,"propName","font-weight"),e(X,"unit","");var je=class extends t{};e(je,"id","FontFamily"),e(je,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(je,"propName","font-family");var We=class extends t{};e(We,"id","FontSize"),e(We,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(We,"propName","font-size");var wr=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",s=i+"-right",m=i+"-top",c=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[m]:r,[c]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[m]:r};case"b":return{[c]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(wr,"id","Spacing"),e(wr,"matches",/^[pm][xytblr]?:./);var Pe=class extends t{};e(Pe,"id","Width"),e(Pe,"matches",/^w:./),e(Pe,"propName","width");var Le=class extends t{};e(Le,"id","Height"),e(Le,"matches",/^h:./),e(Le,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var ze=class extends t{};e(ze,"id","MinHeight"),e(ze,"matches",/^min-h:./),e(ze,"propName","min-height");var Z=class extends t{};e(Z,"id","LetterSpacing"),e(Z,"matches",/^ls:./),e(Z,"propName","letter-spacing"),e(Z,"unit","em");var ss="subpixel-antialiased",Ao="-webkit-font-smoothing",Io="-moz-osx-font-smoothing",_e=class extends t{get(r){let o={};switch(r.value){case ss:o[Ao]=o[Io]={...r,value:"auto"};break;case"antialiased":o[Ao]={...r,value:"antialiased"},o[Io]={...r,value:"grayscale"};break}return o}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"unit","");var J=class extends t{};e(J,"id","FontStyle"),e(J,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(J,"propName","font-style"),e(J,"unit","deg");var He=class extends t{};e(He,"id","FontVariantNumeric"),e(He,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(He,"propName","font-variant-numeric");var K=class extends t{};e(K,"id","LineHeight"),e(K,"matches",/^lh:./),e(K,"propName","line-height"),e(K,"unit","");var Ve=class extends t{};e(Ve,"id","ObjectFit"),e(Ve,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(Ve,"propName","object-fit");var $e=class extends t{};e($e,"id","ObjectPosition"),e($e,"matches",/^(object|obj):(top|bottom|right|left|center)/),e($e,"propName","object-position");var Ue=class extends t{};e(Ue,"id","TextAlign"),e(Ue,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e(Ue,"propName","text-align");var ee=class extends t{order=-1};e(ee,"id","TextDecoration"),e(ee,"matches",/^t(ext)?:(underline|line-through|overline)/),e(ee,"propName","text-decoration"),e(ee,"colorful",!0);var Qe=class extends t{};e(Qe,"id","TextTransform"),e(Qe,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Qe,"propName","text-transform");var Ye=class extends t{};e(Ye,"id","VerticalAlign"),e(Ye,"matches",/^(?:v|vertical):./),e(Ye,"propName","vertical-align");var qe=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(qe,"id","Lines"),e(qe,"matches",/^lines:./),e(qe,"unit","");var te=class extends t{};e(te,"id","TransformOrigin"),e(te,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(te,"propName","transform-origin"),e(te,"unit","px");var Xe=class extends t{};e(Xe,"id","TransformStyle"),e(Xe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(Xe,"propName","transform-style");var Ze=class extends t{};e(Ze,"id","TransformBox"),e(Ze,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ze,"propName","transform-box");var re=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,n,s,m)=>{let c,h;switch(n){case"translate":c="rem";break;case"skew":c="deg";break;case"rotate":s==="3d"&&(h=!0),c="deg";break;default:return i}let f=m.split(",");return i.replace(m,f.map((p,g)=>!h||f.length-1===g?Number.isNaN(+p)?p:p/(c==="rem"?o:1)+c:p).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Je=class extends t{order=-1};e(Je,"id","Transition"),e(Je,"symbol","~"),e(Je,"propName","transition");var ie=class extends t{};e(ie,"id","TransitionDelay"),e(ie,"matches",/^~delay:./),e(ie,"propName","transition-delay"),e(ie,"unit","ms");var oe=class extends t{};e(oe,"id","TransitionDuration"),e(oe,"matches",/^~duration:./),e(oe,"propName","transition-duration"),e(oe,"unit","ms");var Ke=class extends t{};e(Ke,"id","TransitionProperty"),e(Ke,"matches",/^~property:./),e(Ke,"propName","transition-property");var et=class extends t{};e(et,"id","TransitionTimingFunction"),e(et,"matches",/^~easing:./),e(et,"propName","transition-timing-function");var tt=class extends t{};e(tt,"id","MaxHeight"),e(tt,"matches",/^max-h:./),e(tt,"propName","max-height");var rt=class extends t{};e(rt,"id","MaxWidth"),e(rt,"matches",/^max-w:./),e(rt,"propName","max-width");var it=class extends t{};e(it,"id","Display"),e(it,"matches",/^d:./),e(it,"propName","display");var ot=class extends t{};e(ot,"id","BoxSizing"),e(ot,"matches",/^box:(content|border)(?!\|)/),e(ot,"propName","box-sizing");var st=class extends t{};e(st,"id","Opacity"),e(st,"propName","opacity"),e(st,"unit","");var Or=class extends t{};e(Or,"id","Visibility"),e(Or,"propName","visibility");var Ar=class extends t{};e(Ar,"id","Clear"),e(Ar,"propName","clear");var Ir=class extends t{};e(Ir,"id","Float"),e(Ir,"propName","float");var Br=class extends t{};e(Br,"id","Isolation"),e(Br,"propName","isolation");var Fr=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Fr,"id","Overflow"),e(Fr,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Dr=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Dr,"id","OverscrollBehavior"),e(Dr,"matches",/^overscroll-behavior(?:-[xy])?:/);var se=class extends t{};e(se,"id","ZIndex"),e(se,"matches",/^z:./),e(se,"propName","z-index"),e(se,"unit","");var ae=class extends t{};e(ae,"id","AnimationDelay"),e(ae,"matches",/^@delay:./),e(ae,"propName","animation-delay"),e(ae,"unit","ms");var at=class extends t{};e(at,"id","AnimationDirection"),e(at,"matches",/^@direction:./),e(at,"propName","animation-direction");var nt=class extends t{};e(nt,"id","AnimationFillMode"),e(nt,"matches",/^@fill-mode:./),e(nt,"propName","animation-fill-mode");var ne=class extends t{};e(ne,"id","AnimationIterationCount"),e(ne,"matches",/^@iteration-count:./),e(ne,"propName","animation-interation-count"),e(ne,"unit","");var lt=class extends t{};e(lt,"id","AnimationName"),e(lt,"matches",/^@name:./),e(lt,"propName","animation-name");var ct=class extends t{};e(ct,"id","AnimationPlayState"),e(ct,"matches",/^@play-state:./),e(ct,"propName","animation-play-state");var dt=class extends t{};e(dt,"id","AnimationTimingFunction"),e(dt,"matches",/^@easing:./),e(dt,"propName","animation-timing-function");var le=class extends t{order=-1};e(le,"id","Animation"),e(le,"symbol","@"),e(le,"propName","animation"),e(le,"unit","");var to="border-";function ce(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],s=to+"left"+i,m=to+"right"+i,c=to+"top"+i,h=to+"bottom"+i;switch(n){case"x":return{[s]:o,[m]:o};case"y":return{[c]:o,[h]:o};case"l":return{[s]:o};case"r":return{[m]:o};case"t":return{[c]:o};case"b":return{[h]:o};default:return{["border"+i]:o}}}var de=class extends t{get(r){return ce(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(de,"id","BorderColor"),e(de,"matches",/^border(-(left|right|top|bottom))?-color:./),e(de,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(de,"colorful",!0);var ro="border-top-left-radius",io="border-top-right-radius",oo="border-bottom-left-radius",so="border-bottom-right-radius",Bo="border-radius",as=[ro,io,oo,so],Er=class extends t{get(r){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)i+=n[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[ro]:r,[io]:r};case"tl":case"lt":return{[ro]:r};case"rt":case"tr":return{[io]:r};case"b":return{[oo]:r,[so]:r};case"bl":case"lb":return{[oo]:r};case"br":case"rb":return{[so]:r};case"l":return{[ro]:r,[oo]:r};case"r":return{[io]:r,[so]:r};default:return{[Bo]:r}}}let o=this.prefix?.slice(0,-1);return{[as.includes(o)?o:Bo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Er,"id","BorderRadius"),e(Er,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var jr=class extends t{get(r){return ce(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(jr,"id","BorderStyle"),e(jr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Wr=class extends t{get(r){return ce(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderWidth"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var mt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(mt,"id","Border"),e(mt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(mt,"colorful",!0);var ft=class extends t{};e(ft,"id","BackgroundAttachment"),e(ft,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(ft,"propName","background-attachment");var Pr=class extends t{};e(Pr,"id","BackgroundBlendMode"),e(Pr,"propName","background-blend-mode");var pt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(pt,"id","BackgroundClip"),e(pt,"matches",/^(bg|background):text(?!\|)/),e(pt,"propName","background-clip");var U=class extends t{};e(U,"id","BackgroundColor"),e(U,"colorStarts","(bg|background):"),e(U,"propName","background-color"),e(U,"unit",""),e(U,"colorful",!0);var ut=class extends t{};e(ut,"id","BackgroundOrigin"),e(ut,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(ut,"propName","background-origin");var me=class extends t{};e(me,"id","BackgroundPosition"),e(me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(me,"propName","background-position"),e(me,"unit","px");var ht=class extends t{};e(ht,"id","BackgroundRepeat"),e(ht,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ht,"propName","background-repeat");var gt=class extends t{};e(gt,"id","BackgroundSize"),e(gt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(gt,"propName","background-size");var fe=class extends t{};e(fe,"id","BackgroundImage"),e(fe,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(fe,"propName","background-image"),e(fe,"colorful",!0);var pe=class extends t{order=-1};e(pe,"id","Background"),e(pe,"matches",/^bg:./),e(pe,"propName","background"),e(pe,"colorful",!0);var xt=class extends t{};e(xt,"id","MixBlendMode"),e(xt,"matches",/^blend:./),e(xt,"propName","mix-blend-mode");var Lr=class extends t{};e(Lr,"id","Position"),e(Lr,"propName","position");var Gr=class extends t{get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Gr,"id","Placement"),e(Gr,"matches",/^(top|left|right|bottom|center|middle):./);function ao(r,o,{rootSize:i}){let n="",s=0;return function m(c,h){let f="",p=h?o(h):"",g=()=>{f&&(n+=!p||Number.isNaN(+f)?f:+f/(p==="rem"?i:1)+p,f="")};for(;s<r.length;s++){let l=r[s];if(l===c&&(c!=="'"||r[s+1]===")")){g(),n+=l;break}else l===","||l===" "?(g(),n+=l):!f&&l==="'"?(n+=l,s++,m(l),f=""):f&&l==="("?(n+=f+l,s++,m(")",f),f=""):f+=l}g()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return ao(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(vt,"id","BackdropFilter"),e(vt,"matches",/^bd:./),e(vt,"propName","backdrop-filter");var ue=class extends t{};e(ue,"id","Fill"),e(ue,"propName","fill"),e(ue,"colorStarts","fill:"),e(ue,"colorful",!0);var St=class extends t{};e(St,"id","Stroke"),e(St,"propName","stroke"),e(St,"colorful",!0);var bt=class extends t{};e(bt,"id","StrokeWidth"),e(bt,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(bt,"propName","stroke-width");var yt=class extends t{parseValue(r,o){return ao(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(yt,"id","Filter"),e(yt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(yt,"propName","filter");var zr=class extends t{};e(zr,"id","Cursor"),e(zr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var Hr=class extends t{};e(Hr,"id","Resize"),e(Hr,"propName","resize");var Vr=class extends t{};e(Vr,"id","TouchAction"),e(Vr,"propName","touch-action");var $r=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e($r,"id","UserDrag"),e($r,"propName","user-drag");var Ur=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Ur,"id","UserSelect"),e(Ur,"propName","user-select");var he=class extends t{};e(he,"id","BoxShadow"),e(he,"matches",/^s(?:hadow)?:./),e(he,"propName","box-shadow"),e(he,"colorful",!0);var Ct=class extends t{};e(Ct,"id","TextShadow"),e(Ct,"propName","text-shadow"),e(Ct,"colorful",!0);var Qr=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Qr,"id","TextSize"),e(Qr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Rt=class extends t{};e(Rt,"id","WordBreak"),e(Rt,"propName","word-break"),e(Rt,"unit","");var ge=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(ge,"id","GridColumns"),e(ge,"matches",/^grid-cols:./),e(ge,"propName","grid-columns"),e(ge,"unit","");var Mt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Mt,"id","GridRows"),e(Mt,"propName","grid-rows"),e(Mt,"unit","");var Yr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(Yr,"id","Gap"),e(Yr,"matches",/^gap(-x|-y)?:./);var kt=class extends t{};e(kt,"id","WordSpacing"),e(kt,"propName","word-spacing"),e(kt,"unit","em");var Nt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Nt,"id","Variable"),e(Nt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(Nt,"unit","");var xe=class extends t{};e(xe,"id","AspectRadio"),e(xe,"matches",/^aspect:./),e(xe,"propName","aspect-ratio"),e(xe,"unit","");var Tt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Tt,"id","BoxDecorationBreak"),e(Tt,"matches",/^box:(slice|clone)(?!\|)/),e(Tt,"propName","box-decoration-break");var qr=class extends t{};e(qr,"id","BreakAfter"),e(qr,"propName","break-after");var Xr=class extends t{};e(Xr,"id","BreakBefore"),e(Xr,"propName","break-before");var Zr=class extends t{};e(Zr,"id","BreakInside"),e(Zr,"propName","break-inside");var wt=class extends t{};e(wt,"id","FlexShrink"),e(wt,"propName","flex-shrink"),e(wt,"unit","");var Ot=class extends t{};e(Ot,"id","FlexDirection"),e(Ot,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(Ot,"propName","flex-direction");var At=class extends t{};e(At,"id","FlexGrow"),e(At,"propName","flex-grow"),e(At,"unit","");var It=class extends t{};e(It,"id","FlexWrap"),e(It,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(It,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var Bt=class extends t{order=-1};e(Bt,"id","Flex"),e(Bt,"propName","flex"),e(Bt,"unit","");var ve=class extends t{};e(ve,"id","Order"),e(ve,"matches",/^o:./),e(ve,"propName","order"),e(ve,"unit","");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridColumn"),e(Se,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Se,"propName","grid-column"),e(Se,"unit","");var Ft=class extends t{};e(Ft,"id","ColumnSpan"),e(Ft,"matches",/^col-span:./),e(Ft,"propName","column-span");var be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(be,"id","GridRow"),e(be,"matches",/^grid-row-span:./),e(be,"propName","grid-row"),e(be,"unit","");var Q=class extends t{};e(Q,"id","Color"),e(Q,"colorStarts","(?:color|fg|foreground):"),e(Q,"colorful",!0),e(Q,"propName","color"),e(Q,"unit","");var Dt=class extends t{};e(Dt,"id","AlignContent"),e(Dt,"matches",/^ac:./),e(Dt,"propName","align-content");var Et=class extends t{};e(Et,"id","AlignItems"),e(Et,"matches",/^ai:./),e(Et,"propName","align-items");var jt=class extends t{};e(jt,"id","AlignSelf"),e(jt,"matches",/^as:./),e(jt,"propName","align-self");var Wt=class extends t{};e(Wt,"id","GridAutoColumns"),e(Wt,"matches",/^grid-auto-cols:./),e(Wt,"propName","grid-auto-columns");var Pt=class extends t{};e(Pt,"id","GridAutoFlow"),e(Pt,"matches",/^grid-flow:./),e(Pt,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var Lt=class extends t{};e(Lt,"id","JustifyContent"),e(Lt,"matches",/^jc:./),e(Lt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var zt=class extends t{};e(zt,"id","JustifySelf"),e(zt,"matches",/^js:./),e(zt,"propName","justify-self");var ei=class extends t{order=-1};e(ei,"id","PlaceContent"),e(ei,"propName","place-content");var ti=class extends t{order=-1};e(ti,"id","PlaceItems"),e(ti,"propName","place-items");var ri=class extends t{order=-1};e(ri,"id","PlaceSelf"),e(ri,"propName","place-self");var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ii,"id","Padding"),e(ii,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var oi=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(oi,"id","Margin"),e(oi,"matches",/^margin(-(left|right|top|bottom))?:./);var _t=class extends t{};e(_t,"id","TextOverflow"),e(_t,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(_t,"propName","text-overflow");var Ht=class extends t{};e(Ht,"id","ListStylePosition"),e(Ht,"matches",/^list-style:(inside|outside)(?!\|)/),e(Ht,"propName","list-style-position");var Vt=class extends t{};e(Vt,"id","ListStyleType"),e(Vt,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Vt,"propName","list-style-type");var si=class extends t{order=-1};e(si,"id","ListStyle"),e(si,"propName","list-style");var ye=class extends t{};e(ye,"id","TextDecorationColor"),e(ye,"propName","text-decoration-color"),e(ye,"colorStarts","text-decoration:"),e(ye,"colorful",!0);var $t=class extends t{};e($t,"id","TextDecorationStyle"),e($t,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e($t,"propName","text-decoration-style");var Ce=class extends t{};e(Ce,"id","TextDecorationThickness"),e(Ce,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ce,"propName","text-decoration-thickness"),e(Ce,"unit","em");var ai=class extends t{};e(ai,"id","TextIndent"),e(ai,"propName","text-indent");var ni=class extends t{};e(ni,"id","Content"),e(ni,"propName","content");var Re=class extends t{};e(Re,"id","OutlineColor"),e(Re,"propName","outline-color"),e(Re,"colorStarts","outline:"),e(Re,"colorful",!0);var li=class extends t{};e(li,"id","OutlineOffset"),e(li,"propName","outline-offset");var Ut=class extends t{};e(Ut,"id","OutlineStyle"),e(Ut,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e(Ut,"propName","outline-style");var Qt=class extends t{};e(Qt,"id","OutlineWidth"),e(Qt,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Qt,"propName","outline-width");var Yt=class extends t{order=-1};e(Yt,"id","Outline"),e(Yt,"propName","outline"),e(Yt,"colorful",!0);var qt=class extends t{};e(qt,"id","BorderCollapse"),e(qt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(qt,"propName","border-collapse");var ci=class extends t{};e(ci,"id","BorderSpacing"),e(ci,"propName","border-spacing");var di=class extends t{};e(di,"id","TableLayout"),e(di,"propName","table-layout");var Me=class extends t{};e(Me,"id","AccentColor"),e(Me,"propName","accent-color"),e(Me,"colorStarts","accent:"),e(Me,"colorful",!0);var mi=class extends t{};e(mi,"id","Appearance"),e(mi,"propName","appearance");var ke=class extends t{};e(ke,"id","CaretColor"),e(ke,"propName","caret-color"),e(ke,"colorStarts","caret:"),e(ke,"colorful",!0);var fi=class extends t{};e(fi,"id","ScrollBehavior"),e(fi,"propName","scroll-behavior");var pi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(pi,"id","ScrollMargin"),e(pi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var ui=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(ui,"id","ScrollPadding"),e(ui,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var Xt=class extends t{};e(Xt,"id","ScrollSnapAlign"),e(Xt,"matches",/^scroll-snap:(start|end|center)/),e(Xt,"propName","scroll-snap-align");var Zt=class extends t{};e(Zt,"id","ScrollSnapStop"),e(Zt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Zt,"propName","scroll-snap-stop");var Jt=class extends t{};e(Jt,"id","ScrollSnapType"),e(Jt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Jt,"propName","scroll-snap-type");var hi=class extends t{};e(hi,"id","WillChange"),e(hi,"propName","will-change");var gi=class extends t{};e(gi,"id","TextUnderlineOffset"),e(gi,"propName","text-underline-offset");var Kt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Kt,"id","Inset"),e(Kt,"matches",/^(?:top|bottom|left|right):./),e(Kt,"propName","inset");var Ne=class extends t{order=-1};e(Ne,"id","Columns"),e(Ne,"matches",/^(columns|cols):./),e(Ne,"propName","columns"),e(Ne,"unit","");var er=class extends t{};e(er,"id","WhiteSpace"),e(er,"propName","white-space"),e(er,"unit","");var tr=class extends t{};e(tr,"id","TextOrientation"),e(tr,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(tr,"propName","text-orientation");var rr=class extends t{};e(rr,"id","WritingMode"),e(rr,"matches",/^writing:./),e(rr,"propName","writing-mode");var xi=class extends t{};e(xi,"id","Contain"),e(xi,"propName","contain");var Te=class extends t{};e(Te,"id","AnimationDuration"),e(Te,"matches",/^@duration:./),e(Te,"propName","animation-duration"),e(Te,"unit","ms");var ir=class extends t{};e(ir,"id","TextRendering"),e(ir,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(ir,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var or=class extends t{};e(or,"id","TextDecorationLine"),e(or,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(or,"propName","text-decoration-line");var we=class extends t{};e(we,"id","GridColumnStart"),e(we,"matches",/^grid-col-start:./),e(we,"propName","grid-column-start"),e(we,"unit","");var sr=class extends t{};e(sr,"id","ListStyleImage"),e(sr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(sr,"propName","list-style-image");var ar=class extends t{};e(ar,"id","ShapeOutside"),e(ar,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(ar,"propName","shape-outside");var nr=class extends t{};e(nr,"id","ShapeMargin"),e(nr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(nr,"propName","shape-margin");var lr=class extends t{};e(lr,"id","ShapeImageThreshold"),e(lr,"propName","shape-image-threshold"),e(lr,"unit","");var cr=class extends t{};e(cr,"id","ClipPath"),e(cr,"matches",/^clip:./),e(cr,"propName","clip-path");var Si=class extends t{order=-1};e(Si,"id","Grid"),e(Si,"propName","grid");var Oe=class extends t{order=-1};e(Oe,"id","Font"),e(Oe,"matches",/^f:./),e(Oe,"propName","font"),e(Oe,"unit","");var bi=class extends t{};e(bi,"id","Quotes"),e(bi,"propName","quotes");var yi=class extends t{order=-1};e(yi,"id","GridTemplate"),e(yi,"propName","grid-template");var dr=class extends t{};e(dr,"id","GridRowStart"),e(dr,"propName","grid-row-start"),e(dr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var mr=class extends t{};e(mr,"id","GridTemplateColumns"),e(mr,"matches",/^grid-template-cols:./),e(mr,"propName","grid-template-columns");var Ri=class extends t{};e(Ri,"id","GridTemplateRows"),e(Ri,"propName","grid-template-rows");var fr=class extends t{order=-1};e(fr,"id","GridArea"),e(fr,"propName","grid-area"),e(fr,"unit","");var Ae=class extends t{};e(Ae,"id","GridColumnEnd"),e(Ae,"matches",/^grid-col-end:./),e(Ae,"propName","grid-column-end"),e(Ae,"unit","");var pr=class extends t{};e(pr,"id","GridRowEnd"),e(pr,"propName","grid-row-end"),e(pr,"unit","");var Mi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Mi,"id","MaskImage"),e(Mi,"propName","mask-image");var Ie=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ie,"id","TextFillColor"),e(Ie,"matches",/^text-fill-color:./),e(Ie,"colorStarts","(text-fill|text|t):"),e(Ie,"colorful",!0);var ki=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(ki,"id","TextStroke"),e(ki,"matches",/^text-stroke:./);var Ni=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ni,"id","TextStrokeWidth"),e(Ni,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Be=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Be,"id","TextStrokeColor"),e(Be,"matches",/^text-stroke-color:./),e(Be,"colorStarts","text-stroke:"),e(Be,"colorful",!0);var Ti=class extends t{};e(Ti,"id","StrokeDasharray"),e(Ti,"propName","stroke-dasharray");var wi=class extends t{};e(wi,"id","StrokeDashoffset"),e(wi,"propName","stroke-dash-offset");var ur=class extends t{};e(ur,"id","X"),e(ur,"propName","x"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Y"),e(hr,"propName","y"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","Cx"),e(gr,"propName","cx"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Cy"),e(xr,"propName","cy"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Rx"),e(vr,"propName","rx"),e(vr,"unit","");var Sr=class extends t{};e(Sr,"id","Ry"),e(Sr,"propName","ry"),e(Sr,"unit","");var Oi=class extends t{};e(Oi,"id","BorderImageOutset"),e(Oi,"propName","border-image-outset");var br=class extends t{};e(br,"id","BorderImageRepeat"),e(br,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(br,"propName","border-image-repeat");var yr=class extends t{};e(yr,"id","BorderImageSlice"),e(yr,"propName","border-image-slice"),e(yr,"unit","");var Cr=class extends t{};e(Cr,"id","BorderImageSource"),e(Cr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(Cr,"propName","border-image-source");var Rr=class extends t{};e(Rr,"id","BorderImageWidth"),e(Rr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Rr,"propName","border-image-width");var Mr=class extends t{};e(Mr,"id","BorderImage"),e(Mr,"propName","border-image"),e(Mr,"unit","");var ns=/\{(.*)\}/,kr=class extends t{getThemeProps(r,o){let i={},n=(p,g)=>{let l=g.indexOf(":");if(l!==-1){p in i||(i[p]={});let a=i[p],d=g.slice(0,l);d in a||(a[d]=g.slice(l+1))}},s=p=>{let g=(l,a)=>{let d=a.slice(CSS.escape(p.className).length).match(ns)[1].split(";");for(let x of d)n(l,x)};if(this.themeName){let l=p.natives.find(a=>a.themeName===this.themeName)??p.natives.find(a=>!a.themeName);l&&g(this.themeName,l.text)}else for(let l of p.natives)g(l.themeName,l.text)},m=[],c="",h=()=>{c&&(m.push(c),c="")},f=1;(function p(g){for(;f<r.value.length;f++){let l=r.value[f];if(!g){if(l===";"){h();continue}if(l==="}")break}if(c+=l,g===l){if(g==="'"){let a=0;for(let d=c.length-2;c[d]==="\\";d--)a++;if(a%2)continue}break}else l in Tr&&g!=="'"&&(f++,p(Tr[l]))}})(void 0),h();for(let p of m){let g=o.findAndNew(p);if(Array.isArray(g))for(let l of g)s(l);else g?s(g):n(this.themeName??"",p)}return i}};e(kr,"id","Group"),e(kr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(kr,"unit","");var Nr=class extends t{};e(Nr,"id","CounterIncrement"),e(Nr,"propName","counter-increment"),e(Nr,"unit","");var ls=[kr,Nt,We,X,je,_e,J,He,Oe,Q,wr,oi,ii,Jr,It,At,wt,Ot,Bt,it,Pe,Le,Ge,ze,xi,ni,Nr,Z,K,Ve,$e,Ue,ye,$t,Ce,or,ee,gi,_t,tr,Qe,ir,ai,Ye,Ne,er,Kt,qe,tt,rt,ot,st,Or,Ar,Ir,Br,Fr,Dr,se,Lr,Gr,zr,_r,Hr,Vr,Rt,kt,$r,Ur,Ct,Qr,Ie,Ni,Be,ki,he,di,Ze,Xe,te,re,Ke,et,oe,ie,Je,ae,at,Te,nt,ne,lt,ct,dt,le,de,Er,jr,Wr,qt,ci,Oi,br,yr,Cr,Rr,Mr,mt,ft,Pr,pt,U,ut,me,ht,gt,fe,pe,xt,vt,yt,ue,Ti,wi,bt,St,ur,hr,gr,xr,vr,Sr,we,Ae,Se,ge,dr,pr,be,Mt,Wt,Pt,Kr,Ci,mr,Ri,yi,fr,Si,Yr,ve,Zr,Xr,qr,Tt,xe,Ft,Dt,Et,jt,Lt,Gt,zt,ei,ti,ri,Ht,Vt,sr,si,Re,li,Ut,Qt,Yt,Me,mi,ke,fi,pi,ui,Xt,Zt,Jt,hi,rr,vi,ar,nr,lr,cr,bi,Mi],no=ls;var cs={colors:Vi,breakpoints:Ee,semantics:Qi,values:Zi,selectors:Ui,themes:Yi,scheme:qi,Rules:no,rootSize:$i},ji=cs;function Fo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function lo(r){return Object.prototype.toString.call(r).slice(8,-1)}function Ai(r){return lo(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function vo(r){return lo(r)==="Symbol"}function Do(r,o,i,n){let s={}.propertyIsEnumerable.call(n,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Eo(r,o,i){if(!Ai(o))return o;let n={};if(Ai(r)){let h=Object.getOwnPropertyNames(r),f=Object.getOwnPropertySymbols(r);n=[...h,...f].reduce((p,g)=>{let l=r[g];return(!vo(g)&&!Object.getOwnPropertyNames(o).includes(g)||vo(g)&&!Object.getOwnPropertySymbols(o).includes(g))&&Do(p,g,l,r),p},{})}let s=Object.getOwnPropertyNames(o),m=Object.getOwnPropertySymbols(o);return[...s,...m].reduce((h,f)=>{let p=o[f],g=Ai(r)?r[f]:void 0;g!==void 0&&Ai(p)&&(p=Eo(g,p,i));let l=i?i(g,p,f):p;return Do(h,f,l,o),h},n)}function Ii(r,...o){return o.filter(i=>Ai(i)).reduce((i,n)=>Eo(i,n,Fo),r)}var ds=[",",".","#","[","!","*",">","+","~",":","@"],ms=/^::-[a-z]+-/m,co,Pi=typeof window<"u";Pi&&(co=document.createElement("style"),co.title="master");var G="max-width",L="min-width",fs="attributes",ps=Pi?window.MutationObserver:Object,Bi,Fe,Wi=class extends ps{constructor(i){super(n=>{let s={},m=[],c=[],h=[],f=(a,d)=>{d?a.classList.forEach(g):a.classList.forEach(p);let x=a.children;for(let u=0;u<x.length;u++){let v=x[u];v.classList&&(c.push(v),f(v,d))}},p=a=>{a in s?s[a]++:s[a]=1},g=a=>{a in s?s[a]--:s[a]=-1},l=(a,d)=>{for(let x=0;x<a.length;x++){let u=a[x];u.classList&&!c.includes(u)&&!h.includes(u)&&(u.isConnected!==d?(c.push(u),f(u,d)):h.push(u))}};for(let a=0;a<n.length;a++){let d=n[a],{addedNodes:x,removedNodes:u,type:v,target:S,oldValue:M}=d;if(v===fs){if(S.className===M||m.find(O=>O.target===S))continue;m.push(d)}else l(x,!1),l(u,!0)}if(!(!m.length&&!Object.keys(s).length)){for(let{oldValue:a,target:d}of m){let x=c.includes(d),u=d.classList,v=a?a.split(" "):[];if(x){if(d.isConnected)continue;for(let S of v)u.contains(S)||g(S)}else if(d.isConnected){u.forEach(S=>{v.includes(S)||p(S)});for(let S of v)u.contains(S)||g(S)}else for(let S of v)g(S)}for(let a in s){let d=s[a],x=(this.countOfClass[a]||0)+d;x===0?(delete this.countOfClass[a],this.delete(a)):(a in this.countOfClass||this.findAndInsert(a),this.countOfClass[a]=x)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"schemeMQL");fo(this,Bi,void 0);fo(this,Fe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ii({observe:!0},i),this.options.config&&!this.options.override?this.config=Ii(ji,this.options.config):this.config=ji,this.cache(),Pi&&this.options.observe&&this.observe(document),Wi.instances.push(this),this.ready=!0}static refresh(i){for(let n of this.instances)n.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==De(this,Bi)){po(this,Bi,i);let{storage:n}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&n.sync&&localStorage.setItem(n.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return De(this,Bi)}set theme(i){i!==De(this,Fe)&&(De(this,Fe)&&this.host.classList.remove(De(this,Fe)),po(this,Fe,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return De(this,Fe)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:i,classes:n,selectors:s,themes:m,colors:c}=this.config;function h(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let l in i)this.semantics.push([new RegExp("^"+h(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),l]);if(s)for(let[l,a]of Object.entries(s)){let d=new RegExp(h(l)+"(?![a-z-])");for(let x of Array.isArray(a)?a:[a]){let u=x.match(ms)?.[0]??"",v=this.selectors[u];v||(v=this.selectors[u]=[]);let S=v.find(([M])=>M===d);S||(S=[d,[]],v.push(S)),S[1].push(x)}}let f=[...n?Object.keys(n):[],...m&&!Array.isArray(m)?Object.entries(m).flatMap(([l,{classes:a}])=>a?Object.keys(a):[]):[]],p=l=>{if(l in this.classes)return;let a=this.classes[l]=[],d=(x,u)=>{if(!u)return;let v=Array.isArray(u)?u:u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let S of v){let M=O=>{O in this.relationThemesMap?x in this.relationThemesMap[O]?this.relationThemesMap[O][x].push(l):this.relationThemesMap[O][x]=[l]:this.relationThemesMap[O]={[x]:[l]},a.includes(O)||a.push(O)};if(f.includes(S)){p(S);for(let O of this.classes[S])M(O)}else M(S)}};if(d("",n?.[l]),m&&!Array.isArray(m))for(let[x,{classes:u}]of Object.entries(m))d(x,u?.[l])};for(let l of f)p(l);for(let l in this.relationThemesMap){let a=this.relations[l]=[];for(let d of Object.values(this.relationThemesMap[l]))for(let x of d)a.includes(x)||a.push(x)}let g=(l,a)=>{if(!!a)for(let d in a){let x=a[d];if(typeof x=="string"&&(x={"":x}),d in this.colorsThemesMap){let u=this.colorsThemesMap[d];for(let v in x){let S=x[v];v in u?u[v][l]=S:u[v]={[l]:S}}}else this.colorNames.push(d),this.colorsThemesMap[d]=Object.entries(x).reduce((u,[v,S])=>(u[v]={[l]:S},u),{})}};if(g("",c),m)if(Array.isArray(m))this.themeNames.push(...m);else for(let l in m){let a=m[l];g(l,a.colors),this.themeNames.push(l)}}observe(i,n={subtree:!0,childList:!0}){if(Pi&&i){this.root=i;let s=i===document;s&&(Wi.root=this),this.host=s?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let m=s?document.head:i,c=s?document.styleSheets:i.styleSheets;for(let h of c){let{title:f,href:p,ownerNode:g}=h;(f==="master"||p&&/master(?:\..+)?\.css/.test(p))&&(this.style=g)}if(this.style)for(let h=0;h<this.style.sheet.cssRules.length;h++){let f=g=>{if(g.selectorText){let a=g.selectorText.split(", ")[0].split(" ");for(let d=0;d<a.length;d++){let x=a[d];if(x[0]==="."){let u=x.slice(1),v="";for(let S=0;S<u.length;S++){let M=u[S],O=u[S+1];if(M==="\\"){if(S++,O!=="\\"){v+=O;continue}}else if(ds.includes(M))break;v+=M}if(!(v in this.ruleOfClass)&&!(v in this.classes)){let S=this.findAndNew(v);if(S)return S}}}}else if(g.cssRules)for(let l=0;l<g.cssRules.length;l++){let a=f(g.cssRules[l]);if(a)return a}},p=f(this.style.sheet.cssRules[h]);if(p){this.rules.push(p),this.ruleOfClass[p.className]=p;for(let g=0;g<p.natives.length;g++)p.natives[g].cssRule=this.style.sheet.cssRules[h+g];h+=p.natives.length-1}}else this.style=co.cloneNode(),m.prepend(this.style);n.subtree&&this.host.querySelectorAll("[class]").forEach(h=>{h.classList.forEach(f=>{f in this.countOfClass?this.countOfClass[f]++:(this.countOfClass[f]=1,this.findAndInsert(f))})}),super.observe(i,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let n=i.cssRules.length-1;n>=0;n--)i.deleteRule(n)}findAndNew(i){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let m of this.config.Rules){let c=m.match(s,this.colorNames);if(c)return new m(s,c,this)}for(let m of this.semantics)if(s.match(m[0]))return new t(s,{origin:"semantics",value:m[1]},this)};return i in this.classes?this.classes[i].map(n).filter(s=>s):n(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let n=co.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=Wi.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:n}=this.config;if(n&&!n(i,this))return;let s,m=this.rules.length-1,{media:c,order:h,prioritySelectorIndex:f,hasWhere:p,className:g}=i,l=(a,d,x,u)=>{let v=0,S;d&&(v=a.findIndex(d)),x&&(S=a.findIndex(x)),v===-1&&(v=a.length),(S===void 0||S===-1)&&(S=a.length);let M=a.slice(v,S);for(let O=0;O<M.length;O++){let B=M[O];if(!(B.prioritySelectorIndex===-1||u&&u(B))&&(B.prioritySelectorIndex<f||B.prioritySelectorIndex===f&&(p&&!B.hasWhere||B.order>=h)))return v+O}return v+M.length};if(c){let a=this.rules.findIndex(d=>d.media);if(a!==-1){let d=c.features[G],x=c.features[L];if(d&&x){let u=d.value-x.value;for(let v=m;v>=a;v--){s=v;let S=this.rules[v],M=S.media,O=M.features[G],B=M.features[L];if(!O||!B){s++;break}let C=O.value-B.value;if(C===u){if(p!==S.hasWhere)continue;if(f!==-1){let F=[this.rules[v]];for(let E=v-1;E>=a;E--){let H=this.rules[E];if(H.hasWhere!==p)break;let $=H.media,V=$.features[G],I=$.features[L];if(!V||!I||V.value-I.value!==C)break;F.unshift(this.rules[E])}s=l(this.rules,E=>E.media&&E.prioritySelectorIndex!==-1&&E.media.features[L]&&E.media.features[G])}break}else if(C>u)break}}else if(x)for(let u=a;u<=m;u++){s=u;let v=this.rules[u],S=v.media,M=S.features[G],O=S.features[L];if(M){if(O)break;continue}let B=O?.value;if(B===x.value){if(!p&&v.hasWhere){s++;continue}if(f!==-1)s=l(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[G],C=>!C.media.features[L]&&!C.media.features[G]);else for(let C=u;C<=m;C++){let F=this.rules[C],E=F.media,H=E.features[L];if(!E.features[G]){if(F.hasWhere!==p||H.value!==B||F.order>=h)break;s=C+1}}break}else{if(B>x.value)break;s++}}else if(d)for(let u=m;u>=a;u--){s=u;let v=this.rules[u],S=v.media,M=S.features[G];if(S.features[L])continue;let B=M?.value;if(!B||B>d.value){s++;break}else if(B===d.value){if(p&&!v.hasWhere)continue;if(f!==-1)s=l(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[G],C=>!C.media.features[L]&&!C.media.features[G]);else{let C=[this.rules[u]];for(let F=u-1;F>=a;F--){let E=this.rules[F],H=E.media,$=H.features[L],V=H.features[G];if(!$&&(!V||V.value!==B||E.hasWhere!==p))break;C.unshift(E)}for(let F=0;F<C.length;F++){let E=C[F];if(!E.media.features[L]){if(E.order>=h)break;s=u-C.length+2+F}}}break}}}if(s===void 0)if(a===-1)s=m+1;else if(f!==-1)s=a+l(this.rules.slice(a),void 0,d=>d.media.features[G]||d.media.features[L]);else if(p){let d=a;for(;d<this.rules.length;d++){let x=this.rules[d];if(x.prioritySelectorIndex!==-1||!x.hasWhere||x.order>=h){s=d;break}}s===void 0&&(s=d)}else for(let d=a;d<=m;d++){s=d;let x=this.rules[d],u=x.media;if(x.prioritySelectorIndex!==-1||u.features[G]||u.features[L])break;if(x.hasWhere)s++;else if(x.order>=h)break}}else if(f===-1)if(p)s=this.rules.findIndex(a=>!a.hasWhere||a.media||a.prioritySelectorIndex!==-1||a.order>=h),s===-1&&(s=m+1);else{let a=0;for(;a<this.rules.length;a++){let d=this.rules[a];if(d.media||!d.hasWhere&&(d.order>=h||d.prioritySelectorIndex!==-1)){s=a;break}}s===void 0&&(s=a)}else s=l(this.rules,void 0,a=>a.media);if(this.rules.splice(s,0,i),this.ruleOfClass[g]=i,this.style){let a=this.style.sheet,d=0,x=u=>{let v=this.rules[u];if(v){if(!v.natives.length)return x(u-1);let S=v.natives[v.natives.length-1].cssRule;for(let M=0;M<a.cssRules.length;M++)if(a.cssRules[M]===S){d=M+1;break}}};x(s-1);for(let u=0;u<i.natives.length;)try{let v=i.natives[u];a.insertRule(v.text,d),v.cssRule=a.cssRules[d++],u++}catch(v){console.error(v),i.natives.splice(u,1)}}}delete(i){let n=this.style.sheet,s=m=>{let c=this.ruleOfClass[m];if(!(!c||m in this.relations&&this.relations[m].some(h=>h in this.countOfClass))){if(c.natives.length){let h=c.natives[0];for(let f=0;f<n.cssRules.length;f++)if(n.cssRules[f]===h.cssRule){for(let g=0;g<c.natives.length;g++)n.deleteRule(f);this.rules.splice(this.rules.indexOf(c),1);break}}delete this.ruleOfClass[m]}};if(i in this.classes){for(let m of this.classes[i])m in this.countOfClass||s(m);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let n=this.findAndNew(i);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}get text(){return this.rules.map(i=>i.natives.map(n=>n.text).join("")).join("")}},z=Wi;Bi=new WeakMap,Fe=new WeakMap,e(z,"instances",[]),e(z,"root");Pi&&(window.MasterCSS=z);var Li=typeof global<"u"?global:window;if(!Li.CSS&&!Li.CSS?.escape){let r=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(o),n=i.length,s=-1,m="",c,h=i.charCodeAt(0);if(n==1&&h==45)return"\\"+i;for(;++s<n;){if(c=i.charCodeAt(s),c==0){m+="\uFFFD";continue}if(c>=1&&c<=31||c==127||s==0&&c>=48&&c<=57||s==1&&c>=48&&c<=57&&h==45){m+="\\"+c.toString(16)+" ";continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){m+=i.charAt(s);continue}m+="\\"+i.charAt(s)}return m};Li.CSS||(Li.CSS={}),Li.CSS.escape=r}function So(r,o=new z({observe:!1})){if(!!r?.length){for(let i of r)i in o.countOfClass||(o.findAndInsert(i),o.countOfClass[i]=1);return o.rules.map(i=>i.natives.reduce((n,s)=>n+s.text,"")).join("")}}function Gi(r,o=new z({observe:!1})){if(!r)return;let i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(r);){let s=n[1].replace(/\n/g,"").split(" ").filter(m=>m);for(let m of s)m in o.countOfClass||(o.findAndInsert(m),o.countOfClass[m]=1)}return o.rules.map(s=>s.natives.reduce((m,c)=>m+c.text,"")).join("")}function bo(r,o=new z({observe:!1})){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${Gi(r,o)}</style>`)}var us=typeof document<"u"&&document;0&&(module.exports={DefaultRules,MasterCSSRule,defaultBreakpoints,defaultColors,defaultConfig,defaultRootSize,defaultScheme,defaultSelectors,defaultSemantics,defaultThemes,defaultValues,extend,fillColorScale,render,renderFromHTML,renderIntoHTML,root});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|