@master/css 2.0.0-alpha.60 → 2.0.0-alpha.62
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/esm/css.js +39 -27
- package/index.js +1 -1
- package/package.json +1 -1
package/esm/css.js
CHANGED
|
@@ -71,49 +71,63 @@ export default class MasterCSS extends MutationObserver {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
|
|
74
|
+
const semanticNames = [
|
|
75
|
+
...(classes ? Object.keys(classes) : []),
|
|
76
|
+
...((themes && !Array.isArray(themes))
|
|
77
|
+
? Object.entries(themes).flatMap(([_, { classes }]) => Object.keys(classes))
|
|
78
|
+
: [])
|
|
79
|
+
];
|
|
80
|
+
const handleSemanticName = (semanticName) => {
|
|
81
|
+
if (semanticName in this.classes)
|
|
76
82
|
return;
|
|
77
|
-
|
|
78
|
-
|
|
83
|
+
const currentClass = this.classes[semanticName] = [];
|
|
84
|
+
const handleClassNames = (theme, className) => {
|
|
85
|
+
if (!className)
|
|
86
|
+
return;
|
|
79
87
|
const classNames = Array.isArray(className)
|
|
80
88
|
? className
|
|
81
89
|
: className
|
|
82
90
|
.replace(/(?:\n(?:\s*))+/g, ' ')
|
|
83
91
|
.trim()
|
|
84
92
|
.split(' ');
|
|
85
|
-
if (!(semanticName in this.classes)) {
|
|
86
|
-
this.classes[semanticName] = [];
|
|
87
|
-
}
|
|
88
|
-
const currentClass = this.classes[semanticName];
|
|
89
93
|
for (const eachClassName of classNames) {
|
|
90
|
-
|
|
91
|
-
if (
|
|
92
|
-
this.relationThemesMap[
|
|
94
|
+
const handle = (className) => {
|
|
95
|
+
if (className in this.relationThemesMap) {
|
|
96
|
+
if (theme in this.relationThemesMap[className]) {
|
|
97
|
+
this.relationThemesMap[className][theme].push(semanticName);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this.relationThemesMap[className][theme] = [semanticName];
|
|
101
|
+
}
|
|
93
102
|
}
|
|
94
103
|
else {
|
|
95
|
-
this.relationThemesMap[
|
|
104
|
+
this.relationThemesMap[className] = { [theme]: [semanticName] };
|
|
105
|
+
}
|
|
106
|
+
if (!currentClass.includes(className)) {
|
|
107
|
+
currentClass.push(className);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
if (semanticNames.includes(eachClassName)) {
|
|
111
|
+
handleSemanticName(eachClassName);
|
|
112
|
+
for (const parentClassName of this.classes[eachClassName]) {
|
|
113
|
+
handle(parentClassName);
|
|
96
114
|
}
|
|
97
115
|
}
|
|
98
116
|
else {
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
if (!currentClass.includes(eachClassName)) {
|
|
102
|
-
currentClass.push(eachClassName);
|
|
117
|
+
handle(eachClassName);
|
|
103
118
|
}
|
|
104
119
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
for (const
|
|
109
|
-
|
|
110
|
-
if (!this.relations[semanticName].includes(eachClassName)) {
|
|
111
|
-
this.relations[semanticName].push(eachClassName);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
120
|
+
};
|
|
121
|
+
handleClassNames('', classes?.[semanticName]);
|
|
122
|
+
if (themes && !Array.isArray(themes)) {
|
|
123
|
+
for (const [eachTheme, { classes }] of Object.entries(themes)) {
|
|
124
|
+
handleClassNames(eachTheme, classes?.[semanticName]);
|
|
114
125
|
}
|
|
115
126
|
}
|
|
116
127
|
};
|
|
128
|
+
for (const eachSemanticName of semanticNames) {
|
|
129
|
+
handleSemanticName(eachSemanticName);
|
|
130
|
+
}
|
|
117
131
|
const mergeColors = (theme, colors) => {
|
|
118
132
|
if (!colors)
|
|
119
133
|
return;
|
|
@@ -145,7 +159,6 @@ export default class MasterCSS extends MutationObserver {
|
|
|
145
159
|
}
|
|
146
160
|
}
|
|
147
161
|
};
|
|
148
|
-
mergeClasses('', classes);
|
|
149
162
|
mergeColors('', colors);
|
|
150
163
|
if (themes) {
|
|
151
164
|
if (Array.isArray(themes)) {
|
|
@@ -154,7 +167,6 @@ export default class MasterCSS extends MutationObserver {
|
|
|
154
167
|
else {
|
|
155
168
|
for (const eachTheme in themes) {
|
|
156
169
|
const themeValue = themes[eachTheme];
|
|
157
|
-
mergeClasses(eachTheme, themeValue.classes);
|
|
158
170
|
mergeColors(eachTheme, themeValue.colors);
|
|
159
171
|
this.themeNames.push(eachTheme);
|
|
160
172
|
}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Po=Object.create;var Ii=Object.defineProperty;var Go=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var _o=Object.getPrototypeOf,zo=Object.prototype.hasOwnProperty;var Ho=(r,i,o)=>i in r?Ii(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var Vo=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports),$o=(r,i)=>{for(var o in i)Ii(r,o,{get:i[o],enumerable:!0})},xo=(r,i,o,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let s of Lo(i))!zo.call(r,s)&&s!==o&&Ii(r,s,{get:()=>i[s],enumerable:!(n=Go(i,s))||n.enumerable});return r};var ao=(r,i,o)=>(o=r!=null?Po(_o(r)):{},xo(i||!r||!r.__esModule?Ii(o,"default",{value:r,enumerable:!0}):o,r)),Uo=r=>xo(Ii({},"__esModule",{value:!0}),r);var e=(r,i,o)=>(Ho(r,typeof i!="symbol"?i+"":i,o),o);var io=Vo((uo,Fo)=>{(function(r,i){typeof uo=="object"?Fo.exports=i(r):typeof define=="function"&&define.amd?define([],i.bind(r,r)):i(r)})(typeof global<"u"?global:uo,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var i=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var n=String(o),s=n.length,l=-1,d,u="",c=n.charCodeAt(0);if(s==1&&c==45)return"\\"+n;for(;++l<s;){if(d=n.charCodeAt(l),d==0){u+="\uFFFD";continue}if(d>=1&&d<=31||d==127||l==0&&d>=48&&d<=57||l==1&&d>=48&&d<=57&&c==45){u+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){u+=n.charAt(l);continue}u+="\\"+n.charAt(l)}return u};return r.CSS||(r.CSS={}),r.CSS.escape=i,i})});var ns={};$o(ns,{DefaultRules:()=>Ji,MasterCSSRule:()=>t,configure:()=>Bo,default:()=>P,defaultBreakpoints:()=>De,defaultColors:()=>Ei,defaultConfig:()=>Fe,defaultRootSize:()=>no,defaultSelectors:()=>ji,defaultSemantics:()=>Pi,defaultThemes:()=>Gi,defaultValues:()=>_i,extend:()=>ro,fillColorScale:()=>F,init:()=>Ki,render:()=>Do,renderFromHTML:()=>oo,renderIntoHTML:()=>Wo});module.exports=Uo(ns);var De={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function Bi(r){r.startsWith("#")&&(r=r.slice(1));let i=r.match(/.{1,2}/g);return[parseInt(i[0],16),parseInt(i[1],16),parseInt(i[2],16)]}function vo(r,i,o){return((1<<24)+(r<<16)+(i<<8)+o).toString(16).slice(1)}function F(r){typeof r=="string"&&(r={"":r});let i=""in r,o=!1;for(let n in r)if(n&&+n>=100){o=!0;break}if(!o&&(!i||Object.keys(r).length>1)){let n=0,s="0"in r?Bi(r[0]):[0,0,0],l,d,u=[],c=()=>{let x=l-n,f=d.map((p,m)=>(p-s[m])/x);for(let p of u){let m=p-n,a=s.map((v,h)=>Math.round(v+f[h]*m));r[p]="#"+vo.call(this,...a)}};for(let x=1;x<100;x++)x in r?(u.length?(l=x,d=Bi(r[x]),c(),u.length=0,s=d):s=Bi(r[x]),n=x):u.push(x);u.length&&(l=100,d="100"in r?Bi(r[100]):[255,255,255],c())}return i||(r[""]=r[o?"500":"50"]),r}var Ei={slate:F({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:F({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:F({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:F({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:F({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:F({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:F({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:F({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:F({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:F({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:F({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:F({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:F({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:F({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:F({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:F({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:F({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:F({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:F({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:F({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"};var no=16;var ji={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Pi={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"}};var Gi=["dark","light"];var Fi={content:"content-box",border:"border-box",padding:"padding-box"},Li={min:"min-content",max:"max-content"},X={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in De)X[r]=De[r]/16+"rem";var _i={BackgroundClip:Fi,BackgroundOrigin:Fi,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Fi,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:Li,GridAutoRows:Li,GridTemplateColumns:Li,GridTemplateRows:Li,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Fi,margin:"margin-box"},TransformBox:{...Fi,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:X,MinWidth:X,MinHeight:X,MaxWidth:X,MaxHeight:X,Height:X,FlexBasis:X};function zi(r,i){return(r?r+":":"")+(i.unit?i.value+i.unit:i.value)+(i.important?"!important":"")}function go(r){let i=u=>u==="+"||u==="-"||u==="*"||u==="/",o="",n,s="",l=!1;function d(){n=null,s=""}for(let u=0;u<r.length;u++){let c=r[u];if(c==="("||c===")")l=c===")",o+=s+c,d();else if(c===",")o+=s+c+" ",d();else{switch(n){case 1:break;case 2:if(i(c)){o+=s+" "+c+" ",d();continue}break;default:l&&(s+=" "),isNaN(+c)?i(c)||(n=1):n=2;break}s+=c}}return s&&(o+=s),o}var Yo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,qo="var(--";function Hi(r,i,o,n,s,l){let d=n?n[r]:"",u="",c="",x;if(d)return{value:d,unit:u,unitToken:c};if(typeof r=="number")d=r,u=i||"";else{if(o){let f=Object.keys(o),p=!1,m=!1;r=r.replace(new RegExp(`(^|,| |\\()(${f.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(a,v,h,g,N)=>{m=!0;let R=o[h]?.[g||""];if(R){let E;for(let I of l)if(E=R[I])break;if(E){p=!0;let I=E;if(N){let C=N.endsWith("%")?parseFloat(N)/100:+N;C=isNaN(C)?1:Math.min(Math.max(C,0),1),I+=Math.round(C*255).toString(16).toUpperCase().padStart(2,"0")}return v+I}}return a}),m&&(x=p)}if(i){let f=r.match(Yo);if(f)if(r.includes("/")){let p=r.split("/");return{value:+p[0]/+p[1]*100+"%",unit:u,unitToken:c}}else return d=+f[1],u=c=f[3]||"",u||((i==="rem"||i==="em")&&(d=d/s),u=i||""),{value:d,unit:u,unitToken:c}}d=(r.indexOf("calc(")===-1?r:go(r)).replace(/\$\(((\w|-)+)\)/g,qo+"$1)")}return{value:d,unit:u,unitToken:c,colorMatched:x}}var kr={"(":")","'":"'","{":"}"};var So=[":disabled",":active",":focus",":hover"],Vi="matches",Xo="semantics",bo="symbol",yo="width",lo="max-"+yo,co="min-"+yo,fo="motion",Ro="reduce",Co=Ro+"d-"+fo,mo="px",Zo="rem",Jo=["!","*",">","+","~",":","[","@","_"],Ko=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Qo=r=>r.split(Ko).map((i,o)=>o%3?i:i.replace(/\_/g," ")).join(""),t=class{constructor(i,o,n){this.className=i;this.matching=o;this.css=n;let s=this.constructor,{id:l,unit:d,propName:u,colorful:c}=s,{breakpoints:x,mediaQueries:f,semantics:p,rootSize:m}=n.config,a=n.config.values[l],v=n.relationThemesMap[i],{themeNames:h,colorsThemesMap:g,selectors:N}=n,R=i,E,I,C,B;if(o.origin===Xo)C=R.slice(o.value.length),E=p[o.value];else{let A;if(o.origin===Vi)if(l==="Group"){let k=0;for(;k<R.length&&!(R[k]==="{"&&R[k-1]!=="\\");k++);I=R.slice(0,k),A=R.slice(k)}else{let k=R.indexOf(":");this.prefix=R.slice(0,k+1),this.prefix.includes("(")?(this.prefix=void 0,A=R):A=R.slice(k+1)}else o.origin===bo&&(this.symbol=R[0],A=R.slice(1));B=[];let b="",y=0;(function k(W,M,T=""){let S,w=!1;for(W&&(W===")"&&b.slice(-1)==="$"?S=b.length-1:W==="'"&&(w=!0),b+=A[y++]);y<A.length;y++){let O=A[y];if(O===W){if(b+=O,w){let j=0;for(let z=b.length-2;b[z]==="\\";z--)j++;if(j%2)continue}S!==void 0&&(b=b.slice(0,S)+b.slice(S).replace(/\$\((.*)\)/,"var(--$1)")),M||(w?B.push(b):B.push({value:b}),T="",b="");break}else if(!w&&O in kr)k(kr[O],M===void 0?0:M+1,T);else if(O==="|"&&W!=="}"&&(!w||T==="path"))W?b+=" ":(B.push({value:b}),b="");else{if(!W){if(O==="."){if(isNaN(+A[y+1]))break;A[y-1]==="-"&&(b+="0")}else if(O===","){B.push({value:b},","),b="";continue}else if(O==="#"&&(b||B.length&&A[y-1]!=="|")||Jo.includes(O))break;T+=O}b+=O}}})(),b&&B.push({value:b}),C=A.slice(y)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let D=A=>{let b=Qo(A),y=[],k="",W=0;for(let M=0;M<b.length;M++){let T=b[M];if(T==="\\"){k+=T+b[++M];continue}!W&&T===","?(y.push(k),k=""):(k+=T,W&&T===")"?W--:T==="("&&W++)}return k&&y.push(k),y};this.prefixSelectors=I?D(I):[""];let H=C.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let A=(M,T,S,w)=>{for(let[O,j]of T)if(O.test(M)){for(let z of j)A(M.replace(O,z),T,S,!0);return}w&&S.push(M)},b=[];""in N?A($,N[""],b,!0):b.push($);let y={};for(let[M,T]of Object.entries(N)){if(!M)continue;let S=[];for(let w of b)A(w,T,S,!1);S.length&&(y[M]=S)}let k=(M,T)=>{let S=T.reduce((w,O)=>(w.push(...D(O)),w),[]);M in this.vendorSuffixSelectors?this.vendorSuffixSelectors[M].push(...S):this.vendorSuffixSelectors[M]=S},W=Object.keys(y);if(W.length)for(let M of W)k(M,y[M]);else k("",b);for(let M of Object.values(this.vendorSuffixSelectors))for(let T of M){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let S=0;S<So.length;S++)if(T.includes(So[S])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>S)&&(this.prioritySelectorIndex=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let A=1;A<H.length;A++){let b=H[A];if(b)if(h.includes(b))this.themeName=b;else if(b==="rtl"||b==="ltr")this.direction=b;else{let y,k,W=b.indexOf("_");if(W!==-1)y=b.slice(0,W),k=b.slice(W);else{let M=b.indexOf("(");M!==-1&&(y=b.slice(0,M),k=b.slice(M))}if(!y){y="media";let M=[];this.media={token:b,features:{}};let T=b.split("&");for(let S of T)if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")M.push("(orientation:"+S+")");else if(S===fo||S===Co)M.push("(prefers-"+Co+":"+(S===fo?"no-preference":Ro)+")");else if(f&&S in f)M.push(f[S]);else{let w={token:S},O="",j="",z=0;switch(S.startsWith("<=")?(j="<=",O=lo):S.startsWith(">=")||x[S]?(j=">=",O=co):S.startsWith(">")?(j=">",O=co,z=.02):S.startsWith("<")&&(j="<",O=lo,z=-.02),O){case lo:case co:let q=j?S.replace(j,""):S,G=x[q];G?Object.assign(w,Hi(G,mo)):Object.assign(w,Hi(q,mo)),w.unit===mo&&(w.value+=z),this.media.features[O]=w,M.push("("+O+":"+(w.value+w.unit)+")");break}}k="",this.media.type&&(k=this.media.type),M.length&&(k+=(k?" and ":"")+M.join(" and "))}k&&(this.at[y]=(y in this.at?this.at[y]+" and ":"")+k.replace(/\_/g," "))}}this.order===void 0&&(this.order=0);let V=(A,b)=>{let y,k,W=(T,S,w)=>{let O="";this.direction&&(O+="[dir="+this.direction+"] ");let j=this.prefixSelectors.map(G=>G+O),z=(G,Di)=>{let Ai=G?"."+G+" ":"",so="."+CSS.escape(Di);return j.map(Wi=>Ai+Wi).reduce((Wi,Eo)=>(Wi.push(w.reduce((ho,jo)=>(ho.push(Eo+so+jo),ho),[]).join(",")),Wi),[]).join(",")},q=z(S,i)+(v?Object.entries(v).filter(([G])=>this.themeName||!c||!S||!G||G===S).map(([G,Di])=>Di.reduce((Ai,so)=>Ai+","+z(this.themeName??(c&&S||G),so),"")).join(""):"")+"{"+T+"}";for(let G of Object.keys(this.at).sort((Di,Ai)=>Ai==="supports"?-1:1))q="@"+G+" "+this.at[G]+"{"+q+"}";return q},M=[];if(B){let T,S;for(let w of B)typeof w=="string"?M.push(w):(T=Hi(w.value,d,c&&g,a,m,this.themeName?[this.themeName,""]:[A]),T.colorMatched!==void 0&&S!==!0&&(S=T.colorMatched),M.push(T.value+T.unit));if(b&&(S===void 0?A:!S))return;if(M.length===1?T?(y=T.value,k=T.unit):y=M[0]:y=M.reduce((w,O,j)=>w+O+(O===","||B[j+1]===","||j===B.length-1?"":" "),""),typeof y!="object"){this.parseValue&&(y=this.parseValue(y,this.css.config)),c&&y==="current"?y="currentColor":a&&y in a&&(y=a[y].toString());let w={unit:k,value:y,important:this.important};if(this.getThemeProps){let O=this.getThemeProps(w,n);for(let j in O)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:y,text:W(Object.entries(O[j]).map(([q,G])=>zi(q,{important:this.important,unit:"",value:G})).join(";"),j,z),themeName:j});return}else this.get&&(y=this.get(w))}}else y=E;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:y,text:W(typeof y=="object"?Object.entries(y).map(([S,w])=>zi(S,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):zi(u,{unit:k,value:y,important:this.important}),A,T),themeName:A})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(c)for(let A of h)V(A,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(i,o){if(this.matches&&this.matches.test(i))return{origin:Vi};if(this.colorStarts&&(i.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||o.length&&i.match("^"+this.colorStarts+"("+o.join("|")+")")&&i.indexOf("|")===-1))return{origin:Vi};if(this.symbol&&i.startsWith(this.symbol))return{origin:bo};if(this.propName&&i.startsWith(this.propName+":"))return{origin:Vi}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Zo),e(t,"colorful");typeof window<"u"&&(window.MasterCSSRule=t);var Z=class extends t{};e(Z,"id","FontWeight"),e(Z,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(Z,"propName","font-weight"),e(Z,"unit","");var We=class extends t{};e(We,"id","FontFamily"),e(We,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(We,"propName","font-family");var Ee=class extends t{};e(Ee,"id","FontSize"),e(Ee,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ee,"propName","font-size");var Tr=class extends t{get(r){let o=this.prefix[0]==="m"?"margin":"padding",n=o+"-left",s=o+"-right",l=o+"-top",d=o+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[l]:r,[d]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[l]:r};case"b":return{[d]:r};default:return{[o]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Tr,"id","Spacing"),e(Tr,"matches",/^[pm][xytblr]?:./);var je=class extends t{};e(je,"id","Width"),e(je,"matches",/^w:./),e(je,"propName","width");var Pe=class extends t{};e(Pe,"id","Height"),e(Pe,"matches",/^h:./),e(Pe,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var Le=class extends t{};e(Le,"id","MinHeight"),e(Le,"matches",/^min-h:./),e(Le,"propName","min-height");var J=class extends t{};e(J,"id","LetterSpacing"),e(J,"matches",/^ls:./),e(J,"propName","letter-spacing"),e(J,"unit","em");var es="subpixel-antialiased",Mo="-webkit-font-smoothing",No="-moz-osx-font-smoothing",_e=class extends t{get(r){let i={};switch(r.value){case es:i[Mo]=i[No]={...r,value:"auto"};break;case"antialiased":i[Mo]={...r,value:"antialiased"},i[No]={...r,value:"grayscale"};break}return i}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"unit","");var K=class extends t{};e(K,"id","FontStyle"),e(K,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(K,"propName","font-style"),e(K,"unit","deg");var ze=class extends t{};e(ze,"id","FontVariantNumeric"),e(ze,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(ze,"propName","font-variant-numeric");var Q=class extends t{};e(Q,"id","LineHeight"),e(Q,"matches",/^lh:./),e(Q,"propName","line-height"),e(Q,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"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 Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"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:i}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(o,n,s,l)=>{let d,u;switch(n){case"translate":d="rem";break;case"skew":d="deg";break;case"rotate":s==="3d"&&(u=!0),d="deg";break;default:return o}let c=l.split(",");return o.replace(l,c.map((x,f)=>!u||c.length-1===f?Number.isNaN(+x)?x:x/(d==="rem"?i:1)+d:x).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 Qe=class extends t{};e(Qe,"id","TransitionTimingFunction"),e(Qe,"matches",/^~easing:./),e(Qe,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var wr=class extends t{};e(wr,"id","Visibility"),e(wr,"propName","visibility");var Or=class extends t{};e(Or,"id","Clear"),e(Or,"propName","clear");var Ar=class extends t{};e(Ar,"id","Float"),e(Ar,"propName","float");var Ir=class extends t{};e(Ir,"id","Isolation"),e(Ir,"propName","isolation");var Br=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(Br,"id","Overflow"),e(Br,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Fr=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(Fr,"id","OverscrollBehavior"),e(Fr,"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 st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^\@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^\@fill-mode:./),e(at,"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 nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^\@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^\@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^\@easing:./),e(ct,"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 $i="border-";function ce(r,i,o=""){o&&(o="-"+o);let n=/^b(order)?-?(.)?/.exec(r)[2],s=$i+"left"+o,l=$i+"right"+o,d=$i+"top"+o,u=$i+"bottom"+o;switch(n){case"x":return{[s]:i,[l]:i};case"y":return{[d]:i,[u]:i};case"l":return{[s]:i};case"r":return{[l]:i};case"t":return{[d]:i};case"b":return{[u]:i};default:return{["border"+o]:i}}}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 Ui="border-top-left-radius",Yi="border-top-right-radius",qi="border-bottom-left-radius",Xi="border-bottom-right-radius",ko="border-radius",ts=[Ui,Yi,qi,Xi],Dr=class extends t{get(r){if(this.prefix){let o="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)o+=n[s][0];else o=this.prefix.slice(1,-1);switch(o){case"t":return{[Ui]:r,[Yi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Yi]:r};case"b":return{[qi]:r,[Xi]:r};case"bl":case"lb":return{[qi]:r};case"br":case"rb":return{[Xi]:r};case"l":return{[Ui]:r,[qi]:r};case"r":return{[Yi]:r,[Xi]:r};default:return{[ko]:r}}}let i=this.prefix?.slice(0,-1);return{[ts.includes(i)?i:ko]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Dr,"id","BorderRadius"),e(Dr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Wr=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(Wr,"id","BorderStyle"),e(Wr,"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 Er=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(Er,"id","BorderWidth"),e(Er,"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 dt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var jr=class extends t{};e(jr,"id","BackgroundBlendMode"),e(jr,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"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 pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"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 ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"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 Pr=class extends t{};e(Pr,"id","Position"),e(Pr,"propName","position");var Gr=class extends t{get(r){let i=this.prefix.slice(0,-1);switch(i){case"top":case"left":case"right":case"bottom":return{[i]: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 Zi(r,i,{rootSize:o}){let n="",s=0;return function l(d,u){let c="",x=u?i(u):"",f=()=>{c&&(n+=!x||Number.isNaN(+c)?c:+c/(x==="rem"?o:1)+x,c="")};for(;s<r.length;s++){let p=r[s];if(p===d&&(d!=="'"||r[s+1]===")")){f(),n+=p;break}else p===","||p===" "?(f(),n+=p):!c&&p==="'"?(n+=p,s++,l(p),c=""):c&&p==="("?(n+=c+p,s++,l(")",c),c=""):c+=p}f()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,i){return Zi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};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 gt=class extends t{};e(gt,"id","Stroke"),e(gt,"propName","stroke"),e(gt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,i){return Zi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var Lr=class extends t{};e(Lr,"id","Cursor"),e(Lr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var zr=class extends t{};e(zr,"id","Resize"),e(zr,"propName","resize");var Hr=class extends t{};e(Hr,"id","TouchAction"),e(Hr,"propName","touch-action");var Vr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Vr,"id","UserDrag"),e(Vr,"propName","user-drag");var $r=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e($r,"id","UserSelect"),e($r,"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 Ur=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(Ur,"id","TextSize"),e(Ur,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var yt=class extends t{};e(yt,"id","WordBreak"),e(yt,"propName","word-break"),e(yt,"unit","");var xe=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(xe,"id","GridColumns"),e(xe,"matches",/^grid-cols:./),e(xe,"propName","grid-columns"),e(xe,"unit","");var Rt=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(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"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 Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"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 ve=class extends t{};e(ve,"id","AspectRadio"),e(ve,"matches",/^aspect:./),e(ve,"propName","aspect-ratio"),e(ve,"unit","");var kt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(kt,"id","BoxDecorationBreak"),e(kt,"matches",/^box:(slice|clone)(?!\|)/),e(kt,"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 Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ge=class extends t{};e(ge,"id","Order"),e(ge,"matches",/^o:./),e(ge,"propName","order"),e(ge,"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 Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"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 Y=class extends t{};e(Y,"id","Color"),e(Y,"colorStarts","(?:color|fg|foreground):"),e(Y,"colorful",!0),e(Y,"propName","color"),e(Y,"unit","");var Ft=class extends t{};e(Ft,"id","AlignContent"),e(Ft,"matches",/^ac:./),e(Ft,"propName","align-content");var Dt=class extends t{};e(Dt,"id","AlignItems"),e(Dt,"matches",/^ai:./),e(Dt,"propName","align-items");var Wt=class extends t{};e(Wt,"id","AlignSelf"),e(Wt,"matches",/^as:./),e(Wt,"propName","align-self");var Et=class extends t{};e(Et,"id","GridAutoColumns"),e(Et,"matches",/^grid-auto-cols:./),e(Et,"propName","grid-auto-columns");var jt=class extends t{};e(jt,"id","GridAutoFlow"),e(jt,"matches",/^grid-flow:./),e(jt,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var Pt=class extends t{};e(Pt,"id","JustifyContent"),e(Pt,"matches",/^jc:./),e(Pt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var Lt=class extends t{};e(Lt,"id","JustifySelf"),e(Lt,"matches",/^js:./),e(Lt,"propName","justify-self");var Qr=class extends t{order=-1};e(Qr,"id","PlaceContent"),e(Qr,"propName","place-content");var ei=class extends t{order=-1};e(ei,"id","PlaceItems"),e(ei,"propName","place-items");var ti=class extends t{order=-1};e(ti,"id","PlaceSelf"),e(ti,"propName","place-self");var ri=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ri,"id","Padding"),e(ri,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ii,"id","Margin"),e(ii,"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 zt=class extends t{};e(zt,"id","ListStylePosition"),e(zt,"matches",/^list-style:(inside|outside)(?!\|)/),e(zt,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var oi=class extends t{order=-1};e(oi,"id","ListStyle"),e(oi,"propName","list-style");var Ce=class extends t{};e(Ce,"id","TextDecorationColor"),e(Ce,"propName","text-decoration-color"),e(Ce,"colorStarts","text-decoration:"),e(Ce,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var ye=class extends t{};e(ye,"id","TextDecorationThickness"),e(ye,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(ye,"propName","text-decoration-thickness"),e(ye,"unit","em");var si=class extends t{};e(si,"id","TextIndent"),e(si,"propName","text-indent");var ai=class extends t{};e(ai,"id","Content"),e(ai,"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 ni=class extends t{};e(ni,"id","OutlineOffset"),e(ni,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"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 li=class extends t{};e(li,"id","BorderSpacing"),e(li,"propName","border-spacing");var ci=class extends t{};e(ci,"id","TableLayout"),e(ci,"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 di=class extends t{};e(di,"id","Appearance"),e(di,"propName","appearance");var Ne=class extends t{};e(Ne,"id","CaretColor"),e(Ne,"propName","caret-color"),e(Ne,"colorStarts","caret:"),e(Ne,"colorful",!0);var mi=class extends t{};e(mi,"id","ScrollBehavior"),e(mi,"propName","scroll-behavior");var fi=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(fi,"id","ScrollMargin"),e(fi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var pi=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(pi,"id","ScrollPadding"),e(pi,"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 ui=class extends t{};e(ui,"id","WillChange"),e(ui,"propName","will-change");var hi=class extends t{};e(hi,"id","TextUnderlineOffset"),e(hi,"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 ke=class extends t{order=-1};e(ke,"id","Columns"),e(ke,"matches",/^(columns|cols):./),e(ke,"propName","columns"),e(ke,"unit","");var Qt=class extends t{};e(Qt,"id","WhiteSpace"),e(Qt,"propName","white-space"),e(Qt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"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 rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"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 or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var gi=class extends t{order=-1};e(gi,"id","Grid"),e(gi,"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 Si=class extends t{};e(Si,"id","Quotes"),e(Si,"propName","quotes");var bi=class extends t{order=-1};e(bi,"id","GridTemplate"),e(bi,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var yi=class extends t{};e(yi,"id","GridTemplateRows"),e(yi,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"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 fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Ri=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Ri,"id","MaskImage"),e(Ri,"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 Mi=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Mi,"id","TextStroke"),e(Mi,"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 ki=class extends t{};e(ki,"id","StrokeDasharray"),e(ki,"propName","stroke-dasharray");var Ti=class extends t{};e(Ti,"id","StrokeDashoffset"),e(Ti,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"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 gr=class extends t{};e(gr,"id","Ry"),e(gr,"propName","ry"),e(gr,"unit","");var wi=class extends t{};e(wi,"id","BorderImageOutset"),e(wi,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"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 yr=class extends t{};e(yr,"id","BorderImageWidth"),e(yr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(yr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var rs=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,i){let o={},n=(x,f)=>{let p=f.indexOf(":");if(p!==-1){x in o||(o[x]={});let m=o[x],a=f.slice(0,p);a in m||(m[a]=f.slice(p+1))}},s=x=>{let f=(p,m)=>{let a=m.slice(CSS.escape(x.className).length).match(rs)[1].split(";");for(let v of a)n(p,v)};if(this.themeName){let p=x.natives.find(m=>m.themeName===this.themeName)??x.natives.find(m=>!m.themeName);p&&f(this.themeName,p.text)}else for(let p of x.natives)f(p.themeName,p.text)},l=[],d="",u=()=>{d&&(l.push(d),d="")},c=1;(function x(f){for(;c<r.value.length;c++){let p=r.value[c];if(!f){if(p===";"){u();continue}if(p==="}")break}if(d+=p,f===p){if(f==="'"){let m=0;for(let a=d.length-2;d[a]==="\\";a--)m++;if(m%2)continue}break}else p in kr&&f!=="'"&&(c++,x(kr[p]))}})(void 0),u();for(let x of l){let f=i.findAndNew(x);if(Array.isArray(f))for(let p of f)s(p);else f?s(f):n(this.themeName??"",x)}return o}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var Nr=class extends t{};e(Nr,"id","CounterIncrement"),e(Nr,"propName","counter-increment"),e(Nr,"unit","");var Ji=[Mr,Nt,Ee,Z,We,_e,K,ze,Oe,Y,Tr,ii,ri,Jr,At,Ot,Tt,wt,It,rt,je,Pe,Ge,Le,xi,ai,Nr,J,Q,He,Ve,$e,Ce,Vt,ye,ir,ee,hi,_t,er,Ue,rr,si,Ye,ke,Qt,Kt,qe,et,tt,it,ot,wr,Or,Ar,Ir,Br,Fr,se,Pr,Gr,Lr,_r,zr,Hr,yt,Mt,Vr,$r,Ct,Ur,Ie,Ni,Be,Mi,he,ci,Ze,Xe,te,re,Ke,Qe,oe,ie,Je,ae,st,Te,at,ne,nt,lt,ct,le,de,Dr,Wr,Er,qt,li,wi,Sr,br,Cr,yr,Rr,dt,mt,jr,ft,U,pt,me,ut,ht,fe,pe,xt,vt,bt,ue,ki,Ti,St,gt,pr,ur,hr,xr,vr,gr,we,Ae,Se,xe,cr,fr,be,Rt,Et,jt,Kr,Ci,dr,yi,bi,mr,gi,Yr,ge,Zr,Xr,qr,kt,ve,Bt,Ft,Dt,Wt,Pt,Gt,Lt,Qr,ei,ti,zt,Ht,or,oi,Re,ni,$t,Ut,Yt,Me,di,Ne,mi,fi,pi,Xt,Zt,Jt,ui,tr,vi,sr,ar,nr,lr,Si,Ri];var Fe={colors:Ei,breakpoints:De,semantics:Pi,values:_i,selectors:ji,themes:Gi,Rules:Ji,rootSize:16};function Ki(r){if(typeof window<"u"){let i=new P(r,document.head);return P.root=i,i.observe(document.documentElement),i}else return new P(r)}var is=[",",".","#","[","!","*",">","+","~",":","@"],os=/^::-[a-z]+-/m,To=typeof document<"u",Qi;To&&(Qi=document.createElement("style"),Qi.title="master");var _="max-width",L="min-width",ss="attributes",wo=typeof window<"u",as=wo?window.MutationObserver:Object,eo=class extends as{constructor(o=Fe,n){super(s=>{let l={},d=[],u=[],c=[],x=(a,v)=>{v?a.classList.forEach(p):a.classList.forEach(f);let h=a.children;for(let g=0;g<h.length;g++){let N=h[g];N.classList&&(u.push(N),x(N,v))}},f=a=>{a in l?l[a]++:l[a]=1},p=a=>{a in l?l[a]--:l[a]=-1},m=(a,v)=>{for(let h=0;h<a.length;h++){let g=a[h];g.classList&&!u.includes(g)&&!c.includes(g)&&(g.isConnected!==v?(u.push(g),x(g,v)):c.push(g))}};for(let a=0;a<s.length;a++){let v=s[a],{addedNodes:h,removedNodes:g,type:N,target:R,oldValue:E}=v;if(N===ss){if(R.className===E||d.find(I=>I.target===R))continue;d.push(v)}else m(h,!1),m(g,!0)}if(!(!d.length&&!Object.keys(l).length)){for(let{oldValue:a,target:v}of d){let h=u.includes(v),g=v.classList,N=a?a.split(" "):[];if(h){if(v.isConnected)continue;for(let R of N)g.contains(R)||p(R)}else if(v.isConnected){g.forEach(R=>{N.includes(R)||f(R)});for(let R of N)g.contains(R)||p(R)}else for(let R of N)p(R)}for(let a in l){let v=l[a],h=(this.countOfName[a]||0)+v;h===0?(delete this.countOfName[a],this.delete(a)):(a in this.countOfName||this.findAndInsert(a),this.countOfName[a]=h)}}});this.config=o;this.container=n;if(this.cache(),!!To){if(n){let s;for(let l of n.shadowRoot?.styleSheets||document.styleSheets)l.title==="master"&&(s=l.ownerNode);if(s){this.style=s;for(let l=0;l<this.style.sheet.cssRules.length;l++){let d=c=>{if(c.selectorText){let f=c.selectorText.split(", ")[0].split(" ");for(let p=0;p<f.length;p++){let m=f[p];if(m[0]==="."){let a=m.slice(1),v="";for(let h=0;h<a.length;h++){let g=a[h],N=a[h+1];if(g==="\\"){if(h++,N!=="\\"){v+=N;continue}}else if(is.includes(g))break;v+=g}if(!(v in this.ruleOfClass)&&!(v in this.classes)){let h=this.findAndNew(v);if(h)return h}}}}else if(c.cssRules)for(let x=0;x<c.cssRules.length;x++){let f=d(c.cssRules[x]);if(f)return f}},u=d(this.style.sheet.cssRules[l]);if(u){this.rules.push(u),this.ruleOfClass[u.className]=u;for(let c=0;c<u.natives.length;c++)u.natives[c].cssRule=this.style.sheet.cssRules[l+c];l+=u.natives.length-1}}}else this.style=Qi.cloneNode(),this.container?.prepend(this.style)}eo.instances.push(this)}}static refresh(o){for(let n of this.instances)n.refresh(o)}style;rules=[];ruleOfClass={};countOfName={};cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:o,classes:n,selectors:s,themes:l,colors:d}=this.config;function u(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}if(o)for(let f in o)this.semantics.push([new RegExp("^"+u(f)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),f]);if(s)for(let[f,p]of Object.entries(s)){let m=new RegExp(u(f)+"(?![a-z-])");for(let a of Array.isArray(p)?p:[p]){let v=a.match(os)?.[0]??"",h=this.selectors[v];h||(h=this.selectors[v]=[]);let g=h.find(([N])=>N===m);g||(g=[m,[]],h.push(g)),g[1].push(a)}}let c=(f,p)=>{if(!!p){for(let m in p){let a=p[m],v=Array.isArray(a)?a:a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");m in this.classes||(this.classes[m]=[]);let h=this.classes[m];for(let g of v)g in this.relationThemesMap?f in this.relationThemesMap[g]?this.relationThemesMap[g][f].push(m):this.relationThemesMap[g][f]=[m]:this.relationThemesMap[g]={[f]:[m]},h.includes(g)||h.push(g)}for(let m in this.relationThemesMap){this.relations[m]=[];for(let a of Object.values(this.relationThemesMap[m]))for(let v of a)this.relations[m].includes(v)||this.relations[m].push(v)}}},x=(f,p)=>{if(!!p)for(let m in p){let a=p[m];if(typeof a=="string"&&(a={"":a}),m in this.colorsThemesMap){let v=this.colorsThemesMap[m];for(let h in a){let g=a[h];h in v?v[h][f]=g:v[h]={[f]:g}}}else this.colorNames.push(m),this.colorsThemesMap[m]=Object.entries(a).reduce((v,[h,g])=>(v[h]={[f]:g},v),{})}};if(c("",n),x("",d),l)if(Array.isArray(l))this.themeNames.push(...l);else for(let f in l){let p=l[f];c(f,p.classes),x(f,p.colors),this.themeNames.push(f)}}semantics;classes;colorsThemesMap;colorNames;themeNames;relationThemesMap;relations;selectors;observe(o,n={subtree:!0,childList:!0}){return n.subtree&&o.querySelectorAll("[class]").forEach(s=>{s.classList.forEach(l=>{l in this.countOfName?this.countOfName[l]++:(this.countOfName[l]=1,this.findAndInsert(l))})}),super.observe(o,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfName={},this.rules.length=0;let o=this.style.sheet;if(o)for(let n=o.cssRules.length-1;n>=0;n--)o.deleteRule(n)}findAndNew(o){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let l of this.config.Rules){let d=l.match(s,this.colorNames);if(d)return new l(s,d,this)}for(let l of this.semantics)if(s.match(l[0]))return new t(s,{origin:"semantics",value:l[1]},this)};return o in this.classes?this.classes[o].map(n).filter(s=>s):n(o)}refresh(o){if(this.config=o,this.cache(),!this.style)return;let n=Qi.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfName)this.findAndInsert(s)}destroy(){let o=eo.instances;this.disconnect(),o.splice(o.indexOf(this),1),this.style.remove()}insert(o){if(this.ruleOfClass[o.className])return;let{validateRule:n}=this.config;if(n&&!n(o,this))return;let s,l=this.rules.length-1,{media:d,order:u,prioritySelectorIndex:c,hasWhere:x,className:f}=o,p=(m,a,v,h)=>{let g,N=0,R;a&&(N=m.findIndex(a)),v&&(R=m.findIndex(v)),N===-1&&(N=m.length),(R===void 0||R===-1)&&(R=m.length),g=m.slice(N,R);for(let E=0;E<g.length;E++){let I=g[E];if(!(I.prioritySelectorIndex===-1||h&&h(I))&&(I.prioritySelectorIndex<c||I.prioritySelectorIndex===c&&(x&&!I.hasWhere||I.order>=u)))return N+E}return N+g.length};if(d){let m=this.rules.findIndex(a=>a.media);if(m!==-1){let a=d.features[_],v=d.features[L];if(a&&v){let h=a.value-v.value;for(let g=l;g>=m;g--){s=g;let N=this.rules[g],R=N.media,E=R.features[_],I=R.features[L];if(!E||!I){s++;break}let C=E.value-I.value;if(C===h){if(x!==N.hasWhere)continue;if(c!==-1){let B=[this.rules[g]];for(let D=g-1;D>=m;D--){let H=this.rules[D];if(H.hasWhere!==x)break;let $=H.media,V=$.features[_],A=$.features[L];if(!V||!A||V.value-A.value!==C)break;B.unshift(this.rules[D])}s=p(this.rules,D=>D.media&&D.prioritySelectorIndex!==-1&&D.media.features[L]&&D.media.features[_])}break}else if(C>h)break}}else if(v)for(let h=m;h<=l;h++){s=h;let g=this.rules[h],N=g.media,R=N.features[_],E=N.features[L];if(R){if(E)break;continue}let I=E?.value;if(I===v.value){if(!x&&g.hasWhere){s++;continue}if(c!==-1)s=p(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[_],C=>!C.media.features[L]&&!C.media.features[_]);else for(let C=h;C<=l;C++){let B=this.rules[C],D=B.media,H=D.features[L];if(!D.features[_]){if(B.hasWhere!==x||H.value!==I||B.order>=u)break;s=C+1}}break}else{if(I>v.value)break;s++}}else if(a)for(let h=l;h>=m;h--){s=h;let g=this.rules[h],N=g.media,R=N.features[_];if(N.features[L])continue;let I=R?.value;if(!I||I>a.value){s++;break}else if(I===a.value){if(x&&!g.hasWhere)continue;if(c!==-1)s=p(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[_],C=>!C.media.features[L]&&!C.media.features[_]);else{let C=[this.rules[h]];for(let B=h-1;B>=m;B--){let D=this.rules[B],H=D.media,$=H.features[L],V=H.features[_];if(!$&&(!V||V.value!==I||D.hasWhere!==x))break;C.unshift(D)}for(let B=0;B<C.length;B++){let D=C[B];if(!D.media.features[L]){if(D.order>=u)break;s=h-C.length+2+B}}}break}}}if(s===void 0)if(m===-1)s=l+1;else if(c!==-1)s=m+p(this.rules.slice(m),void 0,a=>a.media.features[_]||a.media.features[L]);else if(x){let a=m;for(;a<this.rules.length;a++){let v=this.rules[a];if(v.prioritySelectorIndex!==-1||!v.hasWhere||v.order>=u){s=a;break}}s===void 0&&(s=a)}else for(let a=m;a<=l;a++){s=a;let v=this.rules[a],h=v.media;if(v.prioritySelectorIndex!==-1||h.features[_]||h.features[L])break;if(v.hasWhere)s++;else if(v.order>=u)break}}else if(c===-1)if(x)s=this.rules.findIndex(m=>!m.hasWhere||m.media||m.prioritySelectorIndex!==-1||m.order>=u),s===-1&&(s=l+1);else{let m=0;for(;m<this.rules.length;m++){let a=this.rules[m];if(a.media||!a.hasWhere&&(a.order>=u||a.prioritySelectorIndex!==-1)){s=m;break}}s===void 0&&(s=m)}else s=p(this.rules,void 0,m=>m.media);if(this.rules.splice(s,0,o),this.ruleOfClass[f]=o,this.style)try{let m=this.style.sheet,a=0,v=this.rules[s-1];if(v){let h=v.natives[v.natives.length-1].cssRule;for(let g=0;g<m.cssRules.length;g++)if(m.cssRules[g]===h){a=g+1;break}}for(let h of o.natives)m.insertRule(h.text,a),h.cssRule=m.cssRules[a++]}catch(m){console.error(m)}}delete(o){let n=this.style.sheet,s=l=>{let d=this.ruleOfClass[l];if(!d||l in this.relations&&this.relations[l].some(c=>c in this.countOfName))return;let u=d.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===u.cssRule){for(let f=0;f<d.natives.length;f++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(d),1),delete this.ruleOfClass[o];break}};if(o in this.classes)for(let l of this.classes[o])l in this.countOfName||s(l);else s(o)}findAndInsert(o){let n=this.findAndNew(o);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}},P=eo;e(P,"init",Ki),e(P,"defaultConfig",Fe),e(P,"instances",[]),e(P,"root");wo&&(window.MasterCSS=P);function Oo(r,i){return Array.isArray(r)&&Array.isArray(i)?r.concat(i):i}function to(r){return Object.prototype.toString.call(r).slice(8,-1)}function Oi(r){return to(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function po(r){return to(r)==="Symbol"}function Ao(r,i,o,n){let s={}.propertyIsEnumerable.call(n,i)?"enumerable":"nonenumerable";s==="enumerable"&&(r[i]=o),s==="nonenumerable"&&Object.defineProperty(r,i,{value:o,enumerable:!1,writable:!0,configurable:!0})}function Io(r,i,o){if(!Oi(i))return i;let n={};if(Oi(r)){let u=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...u,...c].reduce((x,f)=>{let p=r[f];return(!po(f)&&!Object.getOwnPropertyNames(i).includes(f)||po(f)&&!Object.getOwnPropertySymbols(i).includes(f))&&Ao(x,f,p,r),x},{})}let s=Object.getOwnPropertyNames(i),l=Object.getOwnPropertySymbols(i);return[...s,...l].reduce((u,c)=>{let x=i[c],f=Oi(r)?r[c]:void 0;f!==void 0&&Oi(x)&&(x=Io(f,x,o));let p=o?o(f,x,c):x;return Ao(u,c,p,i),u},n)}function ro(r,...i){return i.filter(o=>Oi(o)).reduce((o,n)=>Io(o,n,Oo),r)}function Bo(...r){return r.length?ro(Fe,...r):Fe}var pR=ao(io());function Do(r,i=new P){if(!!r?.length){for(let o of r)o in i.countOfName||(i.findAndInsert(o),i.countOfName[o]=1);return i.rules.map(o=>o.natives.reduce((n,s)=>n+s.text,"")).join("")}}var xR=ao(io());function oo(r,i=new P){if(!r)return;let o=/\sclass="([^"]*)"/gm,n;for(;n=o.exec(r);){let s=n[1].replace(/\n/g,"").split(" ").filter(l=>l);for(let l of s)l in i.countOfName||(i.findAndInsert(l),i.countOfName[l]=1)}return i.rules.map(s=>s.natives.reduce((l,d)=>l+d.text,"")).join("")}var SR=ao(io());function Wo(r,i=new P){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${oo(r,i)}</style>`)}
|
|
1
|
+
var Po=Object.create;var Ii=Object.defineProperty;var Go=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var _o=Object.getPrototypeOf,zo=Object.prototype.hasOwnProperty;var Ho=(r,i,o)=>i in r?Ii(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var Vo=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports),$o=(r,i)=>{for(var o in i)Ii(r,o,{get:i[o],enumerable:!0})},xo=(r,i,o,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let s of Lo(i))!zo.call(r,s)&&s!==o&&Ii(r,s,{get:()=>i[s],enumerable:!(n=Go(i,s))||n.enumerable});return r};var ao=(r,i,o)=>(o=r!=null?Po(_o(r)):{},xo(i||!r||!r.__esModule?Ii(o,"default",{value:r,enumerable:!0}):o,r)),Uo=r=>xo(Ii({},"__esModule",{value:!0}),r);var e=(r,i,o)=>(Ho(r,typeof i!="symbol"?i+"":i,o),o);var io=Vo((uo,Fo)=>{(function(r,i){typeof uo=="object"?Fo.exports=i(r):typeof define=="function"&&define.amd?define([],i.bind(r,r)):i(r)})(typeof global<"u"?global:uo,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var i=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var n=String(o),s=n.length,a=-1,m,p="",d=n.charCodeAt(0);if(s==1&&d==45)return"\\"+n;for(;++a<s;){if(m=n.charCodeAt(a),m==0){p+="\uFFFD";continue}if(m>=1&&m<=31||m==127||a==0&&m>=48&&m<=57||a==1&&m>=48&&m<=57&&d==45){p+="\\"+m.toString(16)+" ";continue}if(m>=128||m==45||m==95||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122){p+=n.charAt(a);continue}p+="\\"+n.charAt(a)}return p};return r.CSS||(r.CSS={}),r.CSS.escape=i,i})});var ns={};$o(ns,{DefaultRules:()=>Ji,MasterCSSRule:()=>t,configure:()=>Bo,default:()=>P,defaultBreakpoints:()=>De,defaultColors:()=>ji,defaultConfig:()=>Fe,defaultRootSize:()=>no,defaultSelectors:()=>Ei,defaultSemantics:()=>Pi,defaultThemes:()=>Gi,defaultValues:()=>_i,extend:()=>ro,fillColorScale:()=>D,init:()=>Ki,render:()=>Do,renderFromHTML:()=>oo,renderIntoHTML:()=>Wo});module.exports=Uo(ns);var De={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function Bi(r){r.startsWith("#")&&(r=r.slice(1));let i=r.match(/.{1,2}/g);return[parseInt(i[0],16),parseInt(i[1],16),parseInt(i[2],16)]}function vo(r,i,o){return((1<<24)+(r<<16)+(i<<8)+o).toString(16).slice(1)}function D(r){typeof r=="string"&&(r={"":r});let i=""in r,o=!1;for(let n in r)if(n&&+n>=100){o=!0;break}if(!o&&(!i||Object.keys(r).length>1)){let n=0,s="0"in r?Bi(r[0]):[0,0,0],a,m,p=[],d=()=>{let h=a-n,v=m.map((c,f)=>(c-s[f])/h);for(let c of p){let f=c-n,l=s.map((x,u)=>Math.round(x+v[u]*f));r[c]="#"+vo.call(this,...l)}};for(let h=1;h<100;h++)h in r?(p.length?(a=h,m=Bi(r[h]),d(),p.length=0,s=m):s=Bi(r[h]),n=h):p.push(h);p.length&&(a=100,m="100"in r?Bi(r[100]):[255,255,255],d())}return i||(r[""]=r[o?"500":"50"]),r}var ji={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"};var no=16;var Ei={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Pi={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"}};var Gi=["dark","light"];var Fi={content:"content-box",border:"border-box",padding:"padding-box"},Li={min:"min-content",max:"max-content"},X={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in De)X[r]=De[r]/16+"rem";var _i={BackgroundClip:Fi,BackgroundOrigin:Fi,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Fi,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:Li,GridAutoRows:Li,GridTemplateColumns:Li,GridTemplateRows:Li,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Fi,margin:"margin-box"},TransformBox:{...Fi,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:X,MinWidth:X,MinHeight:X,MaxWidth:X,MaxHeight:X,Height:X,FlexBasis:X};function zi(r,i){return(r?r+":":"")+(i.unit?i.value+i.unit:i.value)+(i.important?"!important":"")}function go(r){let i=p=>p==="+"||p==="-"||p==="*"||p==="/",o="",n,s="",a=!1;function m(){n=null,s=""}for(let p=0;p<r.length;p++){let d=r[p];if(d==="("||d===")")a=d===")",o+=s+d,m();else if(d===",")o+=s+d+" ",m();else{switch(n){case 1:break;case 2:if(i(d)){o+=s+" "+d+" ",m();continue}break;default:a&&(s+=" "),isNaN(+d)?i(d)||(n=1):n=2;break}s+=d}}return s&&(o+=s),o}var Yo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,qo="var(--";function Hi(r,i,o,n,s,a){let m=n?n[r]:"",p="",d="",h;if(m)return{value:m,unit:p,unitToken:d};if(typeof r=="number")m=r,p=i||"";else{if(o){let v=Object.keys(o),c=!1,f=!1;r=r.replace(new RegExp(`(^|,| |\\()(${v.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(l,x,u,g,b)=>{f=!0;let y=o[u]?.[g||""];if(y){let I;for(let B of a)if(I=y[B])break;if(I){c=!0;let B=I;if(b){let R=b.endsWith("%")?parseFloat(b)/100:+b;R=isNaN(R)?1:Math.min(Math.max(R,0),1),B+=Math.round(R*255).toString(16).toUpperCase().padStart(2,"0")}return x+B}}return l}),f&&(h=c)}if(i){let v=r.match(Yo);if(v)if(r.includes("/")){let c=r.split("/");return{value:+c[0]/+c[1]*100+"%",unit:p,unitToken:d}}else return m=+v[1],p=d=v[3]||"",p||((i==="rem"||i==="em")&&(m=m/s),p=i||""),{value:m,unit:p,unitToken:d}}m=(r.indexOf("calc(")===-1?r:go(r)).replace(/\$\(((\w|-)+)\)/g,qo+"$1)")}return{value:m,unit:p,unitToken:d,colorMatched:h}}var kr={"(":")","'":"'","{":"}"};var So=[":disabled",":active",":focus",":hover"],Vi="matches",Xo="semantics",bo="symbol",yo="width",lo="max-"+yo,co="min-"+yo,fo="motion",Ro="reduce",Co=Ro+"d-"+fo,mo="px",Zo="rem",Jo=["!","*",">","+","~",":","[","@","_"],Ko=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Qo=r=>r.split(Ko).map((i,o)=>o%3?i:i.replace(/\_/g," ")).join(""),t=class{constructor(i,o,n){this.className=i;this.matching=o;this.css=n;let s=this.constructor,{id:a,unit:m,propName:p,colorful:d}=s,{breakpoints:h,mediaQueries:v,semantics:c,rootSize:f}=n.config,l=n.config.values[a],x=n.relationThemesMap[i],{themeNames:u,colorsThemesMap:g,selectors:b}=n,y=i,I,B,R,F;if(o.origin===Xo)R=y.slice(o.value.length),I=c[o.value];else{let A;if(o.origin===Vi)if(a==="Group"){let k=0;for(;k<y.length&&!(y[k]==="{"&&y[k-1]!=="\\");k++);B=y.slice(0,k),A=y.slice(k)}else{let k=y.indexOf(":");this.prefix=y.slice(0,k+1),this.prefix.includes("(")?(this.prefix=void 0,A=y):A=y.slice(k+1)}else o.origin===bo&&(this.symbol=y[0],A=y.slice(1));F=[];let C="",M=0;(function k(j,N,T=""){let S,w=!1;for(j&&(j===")"&&C.slice(-1)==="$"?S=C.length-1:j==="'"&&(w=!0),C+=A[M++]);M<A.length;M++){let O=A[M];if(O===j){if(C+=O,w){let E=0;for(let z=C.length-2;C[z]==="\\";z--)E++;if(E%2)continue}S!==void 0&&(C=C.slice(0,S)+C.slice(S).replace(/\$\((.*)\)/,"var(--$1)")),N||(w?F.push(C):F.push({value:C}),T="",C="");break}else if(!w&&O in kr)k(kr[O],N===void 0?0:N+1,T);else if(O==="|"&&j!=="}"&&(!w||T==="path"))j?C+=" ":(F.push({value:C}),C="");else{if(!j){if(O==="."){if(isNaN(+A[M+1]))break;A[M-1]==="-"&&(C+="0")}else if(O===","){F.push({value:C},","),C="";continue}else if(O==="#"&&(C||F.length&&A[M-1]!=="|")||Jo.includes(O))break;T+=O}C+=O}}})(),C&&F.push({value:C}),R=A.slice(M)}R[0]==="!"&&(this.important=!0,R=R.slice(1));let W=A=>{let C=Qo(A),M=[],k="",j=0;for(let N=0;N<C.length;N++){let T=C[N];if(T==="\\"){k+=T+C[++N];continue}!j&&T===","?(M.push(k),k=""):(k+=T,j&&T===")"?j--:T==="("&&j++)}return k&&M.push(k),M};this.prefixSelectors=B?W(B):[""];let H=R.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let A=(N,T,S,w)=>{for(let[O,E]of T)if(O.test(N)){for(let z of E)A(N.replace(O,z),T,S,!0);return}w&&S.push(N)},C=[];""in b?A($,b[""],C,!0):C.push($);let M={};for(let[N,T]of Object.entries(b)){if(!N)continue;let S=[];for(let w of C)A(w,T,S,!1);S.length&&(M[N]=S)}let k=(N,T)=>{let S=T.reduce((w,O)=>(w.push(...W(O)),w),[]);N in this.vendorSuffixSelectors?this.vendorSuffixSelectors[N].push(...S):this.vendorSuffixSelectors[N]=S},j=Object.keys(M);if(j.length)for(let N of j)k(N,M[N]);else k("",C);for(let N of Object.values(this.vendorSuffixSelectors))for(let T of N){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let S=0;S<So.length;S++)if(T.includes(So[S])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>S)&&(this.prioritySelectorIndex=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let A=1;A<H.length;A++){let C=H[A];if(C)if(u.includes(C))this.themeName=C;else if(C==="rtl"||C==="ltr")this.direction=C;else{let M,k,j=C.indexOf("_");if(j!==-1)M=C.slice(0,j),k=C.slice(j);else{let N=C.indexOf("(");N!==-1&&(M=C.slice(0,N),k=C.slice(N))}if(!M){M="media";let N=[];this.media={token:C,features:{}};let T=C.split("&");for(let S of T)if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")N.push("(orientation:"+S+")");else if(S===fo||S===Co)N.push("(prefers-"+Co+":"+(S===fo?"no-preference":Ro)+")");else if(v&&S in v)N.push(v[S]);else{let w={token:S},O="",E="",z=0;switch(S.startsWith("<=")?(E="<=",O=lo):S.startsWith(">=")||h[S]?(E=">=",O=co):S.startsWith(">")?(E=">",O=co,z=.02):S.startsWith("<")&&(E="<",O=lo,z=-.02),O){case lo:case co:let q=E?S.replace(E,""):S,G=h[q];G?Object.assign(w,Hi(G,mo)):Object.assign(w,Hi(q,mo)),w.unit===mo&&(w.value+=z),this.media.features[O]=w,N.push("("+O+":"+(w.value+w.unit)+")");break}}k="",this.media.type&&(k=this.media.type),N.length&&(k+=(k?" and ":"")+N.join(" and "))}k&&(this.at[M]=(M in this.at?this.at[M]+" and ":"")+k.replace(/\_/g," "))}}this.order===void 0&&(this.order=0);let V=(A,C)=>{let M,k,j=(T,S,w)=>{let O="";this.direction&&(O+="[dir="+this.direction+"] ");let E=this.prefixSelectors.map(G=>G+O),z=(G,Di)=>{let Ai=G?"."+G+" ":"",so="."+CSS.escape(Di);return E.map(Wi=>Ai+Wi).reduce((Wi,jo)=>(Wi.push(w.reduce((ho,Eo)=>(ho.push(jo+so+Eo),ho),[]).join(",")),Wi),[]).join(",")},q=z(S,i)+(x?Object.entries(x).filter(([G])=>this.themeName||!d||!S||!G||G===S).map(([G,Di])=>Di.reduce((Ai,so)=>Ai+","+z(this.themeName??(d&&S||G),so),"")).join(""):"")+"{"+T+"}";for(let G of Object.keys(this.at).sort((Di,Ai)=>Ai==="supports"?-1:1))q="@"+G+" "+this.at[G]+"{"+q+"}";return q},N=[];if(F){let T,S;for(let w of F)typeof w=="string"?N.push(w):(T=Hi(w.value,m,d&&g,l,f,this.themeName?[this.themeName,""]:[A]),T.colorMatched!==void 0&&S!==!0&&(S=T.colorMatched),N.push(T.value+T.unit));if(C&&(S===void 0?A:!S))return;if(N.length===1?T?(M=T.value,k=T.unit):M=N[0]:M=N.reduce((w,O,E)=>w+O+(O===","||F[E+1]===","||E===F.length-1?"":" "),""),typeof M!="object"){this.parseValue&&(M=this.parseValue(M,this.css.config)),d&&M==="current"?M="currentColor":l&&M in l&&(M=l[M].toString());let w={unit:k,value:M,important:this.important};if(this.getThemeProps){let O=this.getThemeProps(w,n);for(let E in O)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:M,text:j(Object.entries(O[E]).map(([q,G])=>zi(q,{important:this.important,unit:"",value:G})).join(";"),E,z),themeName:E});return}else this.get&&(M=this.get(w))}}else M=I;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:M,text:j(typeof M=="object"?Object.entries(M).map(([S,w])=>zi(S,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):zi(p,{unit:k,value:M,important:this.important}),A,T),themeName:A})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(d)for(let A of u)V(A,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(i,o){if(this.matches&&this.matches.test(i))return{origin:Vi};if(this.colorStarts&&(i.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||o.length&&i.match("^"+this.colorStarts+"("+o.join("|")+")")&&i.indexOf("|")===-1))return{origin:Vi};if(this.symbol&&i.startsWith(this.symbol))return{origin:bo};if(this.propName&&i.startsWith(this.propName+":"))return{origin:Vi}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Zo),e(t,"colorful");typeof window<"u"&&(window.MasterCSSRule=t);var Z=class extends t{};e(Z,"id","FontWeight"),e(Z,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(Z,"propName","font-weight"),e(Z,"unit","");var We=class extends t{};e(We,"id","FontFamily"),e(We,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(We,"propName","font-family");var je=class extends t{};e(je,"id","FontSize"),e(je,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(je,"propName","font-size");var Tr=class extends t{get(r){let o=this.prefix[0]==="m"?"margin":"padding",n=o+"-left",s=o+"-right",a=o+"-top",m=o+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[a]:r,[m]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[a]:r};case"b":return{[m]:r};default:return{[o]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Tr,"id","Spacing"),e(Tr,"matches",/^[pm][xytblr]?:./);var Ee=class extends t{};e(Ee,"id","Width"),e(Ee,"matches",/^w:./),e(Ee,"propName","width");var Pe=class extends t{};e(Pe,"id","Height"),e(Pe,"matches",/^h:./),e(Pe,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var Le=class extends t{};e(Le,"id","MinHeight"),e(Le,"matches",/^min-h:./),e(Le,"propName","min-height");var J=class extends t{};e(J,"id","LetterSpacing"),e(J,"matches",/^ls:./),e(J,"propName","letter-spacing"),e(J,"unit","em");var es="subpixel-antialiased",Mo="-webkit-font-smoothing",No="-moz-osx-font-smoothing",_e=class extends t{get(r){let i={};switch(r.value){case es:i[Mo]=i[No]={...r,value:"auto"};break;case"antialiased":i[Mo]={...r,value:"antialiased"},i[No]={...r,value:"grayscale"};break}return i}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"unit","");var K=class extends t{};e(K,"id","FontStyle"),e(K,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(K,"propName","font-style"),e(K,"unit","deg");var ze=class extends t{};e(ze,"id","FontVariantNumeric"),e(ze,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(ze,"propName","font-variant-numeric");var Q=class extends t{};e(Q,"id","LineHeight"),e(Q,"matches",/^lh:./),e(Q,"propName","line-height"),e(Q,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"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 Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"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:i}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(o,n,s,a)=>{let m,p;switch(n){case"translate":m="rem";break;case"skew":m="deg";break;case"rotate":s==="3d"&&(p=!0),m="deg";break;default:return o}let d=a.split(",");return o.replace(a,d.map((h,v)=>!p||d.length-1===v?Number.isNaN(+h)?h:h/(m==="rem"?i:1)+m:h).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 Qe=class extends t{};e(Qe,"id","TransitionTimingFunction"),e(Qe,"matches",/^~easing:./),e(Qe,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var wr=class extends t{};e(wr,"id","Visibility"),e(wr,"propName","visibility");var Or=class extends t{};e(Or,"id","Clear"),e(Or,"propName","clear");var Ar=class extends t{};e(Ar,"id","Float"),e(Ar,"propName","float");var Ir=class extends t{};e(Ir,"id","Isolation"),e(Ir,"propName","isolation");var Br=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(Br,"id","Overflow"),e(Br,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Fr=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(Fr,"id","OverscrollBehavior"),e(Fr,"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 st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^\@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^\@fill-mode:./),e(at,"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 nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^\@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^\@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^\@easing:./),e(ct,"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 $i="border-";function ce(r,i,o=""){o&&(o="-"+o);let n=/^b(order)?-?(.)?/.exec(r)[2],s=$i+"left"+o,a=$i+"right"+o,m=$i+"top"+o,p=$i+"bottom"+o;switch(n){case"x":return{[s]:i,[a]:i};case"y":return{[m]:i,[p]:i};case"l":return{[s]:i};case"r":return{[a]:i};case"t":return{[m]:i};case"b":return{[p]:i};default:return{["border"+o]:i}}}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 Ui="border-top-left-radius",Yi="border-top-right-radius",qi="border-bottom-left-radius",Xi="border-bottom-right-radius",ko="border-radius",ts=[Ui,Yi,qi,Xi],Dr=class extends t{get(r){if(this.prefix){let o="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)o+=n[s][0];else o=this.prefix.slice(1,-1);switch(o){case"t":return{[Ui]:r,[Yi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Yi]:r};case"b":return{[qi]:r,[Xi]:r};case"bl":case"lb":return{[qi]:r};case"br":case"rb":return{[Xi]:r};case"l":return{[Ui]:r,[qi]:r};case"r":return{[Yi]:r,[Xi]:r};default:return{[ko]:r}}}let i=this.prefix?.slice(0,-1);return{[ts.includes(i)?i:ko]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Dr,"id","BorderRadius"),e(Dr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Wr=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(Wr,"id","BorderStyle"),e(Wr,"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 jr=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(jr,"id","BorderWidth"),e(jr,"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 dt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var Er=class extends t{};e(Er,"id","BackgroundBlendMode"),e(Er,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"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 pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"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 ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"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 Pr=class extends t{};e(Pr,"id","Position"),e(Pr,"propName","position");var Gr=class extends t{get(r){let i=this.prefix.slice(0,-1);switch(i){case"top":case"left":case"right":case"bottom":return{[i]: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 Zi(r,i,{rootSize:o}){let n="",s=0;return function a(m,p){let d="",h=p?i(p):"",v=()=>{d&&(n+=!h||Number.isNaN(+d)?d:+d/(h==="rem"?o:1)+h,d="")};for(;s<r.length;s++){let c=r[s];if(c===m&&(m!=="'"||r[s+1]===")")){v(),n+=c;break}else c===","||c===" "?(v(),n+=c):!d&&c==="'"?(n+=c,s++,a(c),d=""):d&&c==="("?(n+=d+c,s++,a(")",d),d=""):d+=c}v()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,i){return Zi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};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 gt=class extends t{};e(gt,"id","Stroke"),e(gt,"propName","stroke"),e(gt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,i){return Zi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var Lr=class extends t{};e(Lr,"id","Cursor"),e(Lr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var zr=class extends t{};e(zr,"id","Resize"),e(zr,"propName","resize");var Hr=class extends t{};e(Hr,"id","TouchAction"),e(Hr,"propName","touch-action");var Vr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Vr,"id","UserDrag"),e(Vr,"propName","user-drag");var $r=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e($r,"id","UserSelect"),e($r,"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 Ur=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(Ur,"id","TextSize"),e(Ur,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var yt=class extends t{};e(yt,"id","WordBreak"),e(yt,"propName","word-break"),e(yt,"unit","");var xe=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(xe,"id","GridColumns"),e(xe,"matches",/^grid-cols:./),e(xe,"propName","grid-columns"),e(xe,"unit","");var Rt=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(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"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 Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"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 ve=class extends t{};e(ve,"id","AspectRadio"),e(ve,"matches",/^aspect:./),e(ve,"propName","aspect-ratio"),e(ve,"unit","");var kt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(kt,"id","BoxDecorationBreak"),e(kt,"matches",/^box:(slice|clone)(?!\|)/),e(kt,"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 Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ge=class extends t{};e(ge,"id","Order"),e(ge,"matches",/^o:./),e(ge,"propName","order"),e(ge,"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 Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"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 Y=class extends t{};e(Y,"id","Color"),e(Y,"colorStarts","(?:color|fg|foreground):"),e(Y,"colorful",!0),e(Y,"propName","color"),e(Y,"unit","");var Ft=class extends t{};e(Ft,"id","AlignContent"),e(Ft,"matches",/^ac:./),e(Ft,"propName","align-content");var Dt=class extends t{};e(Dt,"id","AlignItems"),e(Dt,"matches",/^ai:./),e(Dt,"propName","align-items");var Wt=class extends t{};e(Wt,"id","AlignSelf"),e(Wt,"matches",/^as:./),e(Wt,"propName","align-self");var jt=class extends t{};e(jt,"id","GridAutoColumns"),e(jt,"matches",/^grid-auto-cols:./),e(jt,"propName","grid-auto-columns");var Et=class extends t{};e(Et,"id","GridAutoFlow"),e(Et,"matches",/^grid-flow:./),e(Et,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var Pt=class extends t{};e(Pt,"id","JustifyContent"),e(Pt,"matches",/^jc:./),e(Pt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var Lt=class extends t{};e(Lt,"id","JustifySelf"),e(Lt,"matches",/^js:./),e(Lt,"propName","justify-self");var Qr=class extends t{order=-1};e(Qr,"id","PlaceContent"),e(Qr,"propName","place-content");var ei=class extends t{order=-1};e(ei,"id","PlaceItems"),e(ei,"propName","place-items");var ti=class extends t{order=-1};e(ti,"id","PlaceSelf"),e(ti,"propName","place-self");var ri=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ri,"id","Padding"),e(ri,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ii,"id","Margin"),e(ii,"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 zt=class extends t{};e(zt,"id","ListStylePosition"),e(zt,"matches",/^list-style:(inside|outside)(?!\|)/),e(zt,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var oi=class extends t{order=-1};e(oi,"id","ListStyle"),e(oi,"propName","list-style");var Ce=class extends t{};e(Ce,"id","TextDecorationColor"),e(Ce,"propName","text-decoration-color"),e(Ce,"colorStarts","text-decoration:"),e(Ce,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var ye=class extends t{};e(ye,"id","TextDecorationThickness"),e(ye,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(ye,"propName","text-decoration-thickness"),e(ye,"unit","em");var si=class extends t{};e(si,"id","TextIndent"),e(si,"propName","text-indent");var ai=class extends t{};e(ai,"id","Content"),e(ai,"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 ni=class extends t{};e(ni,"id","OutlineOffset"),e(ni,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"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 li=class extends t{};e(li,"id","BorderSpacing"),e(li,"propName","border-spacing");var ci=class extends t{};e(ci,"id","TableLayout"),e(ci,"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 di=class extends t{};e(di,"id","Appearance"),e(di,"propName","appearance");var Ne=class extends t{};e(Ne,"id","CaretColor"),e(Ne,"propName","caret-color"),e(Ne,"colorStarts","caret:"),e(Ne,"colorful",!0);var mi=class extends t{};e(mi,"id","ScrollBehavior"),e(mi,"propName","scroll-behavior");var fi=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(fi,"id","ScrollMargin"),e(fi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var pi=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(pi,"id","ScrollPadding"),e(pi,"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 ui=class extends t{};e(ui,"id","WillChange"),e(ui,"propName","will-change");var hi=class extends t{};e(hi,"id","TextUnderlineOffset"),e(hi,"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 ke=class extends t{order=-1};e(ke,"id","Columns"),e(ke,"matches",/^(columns|cols):./),e(ke,"propName","columns"),e(ke,"unit","");var Qt=class extends t{};e(Qt,"id","WhiteSpace"),e(Qt,"propName","white-space"),e(Qt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"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 rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"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 or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var gi=class extends t{order=-1};e(gi,"id","Grid"),e(gi,"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 Si=class extends t{};e(Si,"id","Quotes"),e(Si,"propName","quotes");var bi=class extends t{order=-1};e(bi,"id","GridTemplate"),e(bi,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var yi=class extends t{};e(yi,"id","GridTemplateRows"),e(yi,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"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 fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Ri=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Ri,"id","MaskImage"),e(Ri,"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 Mi=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Mi,"id","TextStroke"),e(Mi,"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 ki=class extends t{};e(ki,"id","StrokeDasharray"),e(ki,"propName","stroke-dasharray");var Ti=class extends t{};e(Ti,"id","StrokeDashoffset"),e(Ti,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"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 gr=class extends t{};e(gr,"id","Ry"),e(gr,"propName","ry"),e(gr,"unit","");var wi=class extends t{};e(wi,"id","BorderImageOutset"),e(wi,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"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 yr=class extends t{};e(yr,"id","BorderImageWidth"),e(yr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(yr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var rs=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,i){let o={},n=(h,v)=>{let c=v.indexOf(":");if(c!==-1){h in o||(o[h]={});let f=o[h],l=v.slice(0,c);l in f||(f[l]=v.slice(c+1))}},s=h=>{let v=(c,f)=>{let l=f.slice(CSS.escape(h.className).length).match(rs)[1].split(";");for(let x of l)n(c,x)};if(this.themeName){let c=h.natives.find(f=>f.themeName===this.themeName)??h.natives.find(f=>!f.themeName);c&&v(this.themeName,c.text)}else for(let c of h.natives)v(c.themeName,c.text)},a=[],m="",p=()=>{m&&(a.push(m),m="")},d=1;(function h(v){for(;d<r.value.length;d++){let c=r.value[d];if(!v){if(c===";"){p();continue}if(c==="}")break}if(m+=c,v===c){if(v==="'"){let f=0;for(let l=m.length-2;m[l]==="\\";l--)f++;if(f%2)continue}break}else c in kr&&v!=="'"&&(d++,h(kr[c]))}})(void 0),p();for(let h of a){let v=i.findAndNew(h);if(Array.isArray(v))for(let c of v)s(c);else v?s(v):n(this.themeName??"",h)}return o}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var Nr=class extends t{};e(Nr,"id","CounterIncrement"),e(Nr,"propName","counter-increment"),e(Nr,"unit","");var Ji=[Mr,Nt,je,Z,We,_e,K,ze,Oe,Y,Tr,ii,ri,Jr,At,Ot,Tt,wt,It,rt,Ee,Pe,Ge,Le,xi,ai,Nr,J,Q,He,Ve,$e,Ce,Vt,ye,ir,ee,hi,_t,er,Ue,rr,si,Ye,ke,Qt,Kt,qe,et,tt,it,ot,wr,Or,Ar,Ir,Br,Fr,se,Pr,Gr,Lr,_r,zr,Hr,yt,Mt,Vr,$r,Ct,Ur,Ie,Ni,Be,Mi,he,ci,Ze,Xe,te,re,Ke,Qe,oe,ie,Je,ae,st,Te,at,ne,nt,lt,ct,le,de,Dr,Wr,jr,qt,li,wi,Sr,br,Cr,yr,Rr,dt,mt,Er,ft,U,pt,me,ut,ht,fe,pe,xt,vt,bt,ue,ki,Ti,St,gt,pr,ur,hr,xr,vr,gr,we,Ae,Se,xe,cr,fr,be,Rt,jt,Et,Kr,Ci,dr,yi,bi,mr,gi,Yr,ge,Zr,Xr,qr,kt,ve,Bt,Ft,Dt,Wt,Pt,Gt,Lt,Qr,ei,ti,zt,Ht,or,oi,Re,ni,$t,Ut,Yt,Me,di,Ne,mi,fi,pi,Xt,Zt,Jt,ui,tr,vi,sr,ar,nr,lr,Si,Ri];var Fe={colors:ji,breakpoints:De,semantics:Pi,values:_i,selectors:Ei,themes:Gi,Rules:Ji,rootSize:16};function Ki(r){if(typeof window<"u"){let i=new P(r,document.head);return P.root=i,i.observe(document.documentElement),i}else return new P(r)}var is=[",",".","#","[","!","*",">","+","~",":","@"],os=/^::-[a-z]+-/m,To=typeof document<"u",Qi;To&&(Qi=document.createElement("style"),Qi.title="master");var _="max-width",L="min-width",ss="attributes",wo=typeof window<"u",as=wo?window.MutationObserver:Object,eo=class extends as{constructor(o=Fe,n){super(s=>{let a={},m=[],p=[],d=[],h=(l,x)=>{x?l.classList.forEach(c):l.classList.forEach(v);let u=l.children;for(let g=0;g<u.length;g++){let b=u[g];b.classList&&(p.push(b),h(b,x))}},v=l=>{l in a?a[l]++:a[l]=1},c=l=>{l in a?a[l]--:a[l]=-1},f=(l,x)=>{for(let u=0;u<l.length;u++){let g=l[u];g.classList&&!p.includes(g)&&!d.includes(g)&&(g.isConnected!==x?(p.push(g),h(g,x)):d.push(g))}};for(let l=0;l<s.length;l++){let x=s[l],{addedNodes:u,removedNodes:g,type:b,target:y,oldValue:I}=x;if(b===ss){if(y.className===I||m.find(B=>B.target===y))continue;m.push(x)}else f(u,!1),f(g,!0)}if(!(!m.length&&!Object.keys(a).length)){for(let{oldValue:l,target:x}of m){let u=p.includes(x),g=x.classList,b=l?l.split(" "):[];if(u){if(x.isConnected)continue;for(let y of b)g.contains(y)||c(y)}else if(x.isConnected){g.forEach(y=>{b.includes(y)||v(y)});for(let y of b)g.contains(y)||c(y)}else for(let y of b)c(y)}for(let l in a){let x=a[l],u=(this.countOfName[l]||0)+x;u===0?(delete this.countOfName[l],this.delete(l)):(l in this.countOfName||this.findAndInsert(l),this.countOfName[l]=u)}}});this.config=o;this.container=n;if(this.cache(),!!To){if(n){let s;for(let a of n.shadowRoot?.styleSheets||document.styleSheets)a.title==="master"&&(s=a.ownerNode);if(s){this.style=s;for(let a=0;a<this.style.sheet.cssRules.length;a++){let m=d=>{if(d.selectorText){let v=d.selectorText.split(", ")[0].split(" ");for(let c=0;c<v.length;c++){let f=v[c];if(f[0]==="."){let l=f.slice(1),x="";for(let u=0;u<l.length;u++){let g=l[u],b=l[u+1];if(g==="\\"){if(u++,b!=="\\"){x+=b;continue}}else if(is.includes(g))break;x+=g}if(!(x in this.ruleOfClass)&&!(x in this.classes)){let u=this.findAndNew(x);if(u)return u}}}}else if(d.cssRules)for(let h=0;h<d.cssRules.length;h++){let v=m(d.cssRules[h]);if(v)return v}},p=m(this.style.sheet.cssRules[a]);if(p){this.rules.push(p),this.ruleOfClass[p.className]=p;for(let d=0;d<p.natives.length;d++)p.natives[d].cssRule=this.style.sheet.cssRules[a+d];a+=p.natives.length-1}}}else this.style=Qi.cloneNode(),this.container?.prepend(this.style)}eo.instances.push(this)}}static refresh(o){for(let n of this.instances)n.refresh(o)}style;rules=[];ruleOfClass={};countOfName={};cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:o,classes:n,selectors:s,themes:a,colors:m}=this.config;function p(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}if(o)for(let c in o)this.semantics.push([new RegExp("^"+p(c)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),c]);if(s)for(let[c,f]of Object.entries(s)){let l=new RegExp(p(c)+"(?![a-z-])");for(let x of Array.isArray(f)?f:[f]){let u=x.match(os)?.[0]??"",g=this.selectors[u];g||(g=this.selectors[u]=[]);let b=g.find(([y])=>y===l);b||(b=[l,[]],g.push(b)),b[1].push(x)}}let d=[...n?Object.keys(n):[],...a&&!Array.isArray(a)?Object.entries(a).flatMap(([c,{classes:f}])=>Object.keys(f)):[]],h=c=>{if(c in this.classes)return;let f=this.classes[c]=[],l=(x,u)=>{if(!u)return;let g=Array.isArray(u)?u:u.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let b of g){let y=I=>{I in this.relationThemesMap?x in this.relationThemesMap[I]?this.relationThemesMap[I][x].push(c):this.relationThemesMap[I][x]=[c]:this.relationThemesMap[I]={[x]:[c]},f.includes(I)||f.push(I)};if(d.includes(b)){h(b);for(let I of this.classes[b])y(I)}else y(b)}};if(l("",n?.[c]),a&&!Array.isArray(a))for(let[x,{classes:u}]of Object.entries(a))l(x,u?.[c])};for(let c of d)h(c);let v=(c,f)=>{if(!!f)for(let l in f){let x=f[l];if(typeof x=="string"&&(x={"":x}),l in this.colorsThemesMap){let u=this.colorsThemesMap[l];for(let g in x){let b=x[g];g in u?u[g][c]=b:u[g]={[c]:b}}}else this.colorNames.push(l),this.colorsThemesMap[l]=Object.entries(x).reduce((u,[g,b])=>(u[g]={[c]:b},u),{})}};if(v("",m),a)if(Array.isArray(a))this.themeNames.push(...a);else for(let c in a){let f=a[c];v(c,f.colors),this.themeNames.push(c)}}semantics;classes;colorsThemesMap;colorNames;themeNames;relationThemesMap;relations;selectors;observe(o,n={subtree:!0,childList:!0}){return n.subtree&&o.querySelectorAll("[class]").forEach(s=>{s.classList.forEach(a=>{a in this.countOfName?this.countOfName[a]++:(this.countOfName[a]=1,this.findAndInsert(a))})}),super.observe(o,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfName={},this.rules.length=0;let o=this.style.sheet;if(o)for(let n=o.cssRules.length-1;n>=0;n--)o.deleteRule(n)}findAndNew(o){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let a of this.config.Rules){let m=a.match(s,this.colorNames);if(m)return new a(s,m,this)}for(let a of this.semantics)if(s.match(a[0]))return new t(s,{origin:"semantics",value:a[1]},this)};return o in this.classes?this.classes[o].map(n).filter(s=>s):n(o)}refresh(o){if(this.config=o,this.cache(),!this.style)return;let n=Qi.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfName)this.findAndInsert(s)}destroy(){let o=eo.instances;this.disconnect(),o.splice(o.indexOf(this),1),this.style.remove()}insert(o){if(this.ruleOfClass[o.className])return;let{validateRule:n}=this.config;if(n&&!n(o,this))return;let s,a=this.rules.length-1,{media:m,order:p,prioritySelectorIndex:d,hasWhere:h,className:v}=o,c=(f,l,x,u)=>{let g,b=0,y;l&&(b=f.findIndex(l)),x&&(y=f.findIndex(x)),b===-1&&(b=f.length),(y===void 0||y===-1)&&(y=f.length),g=f.slice(b,y);for(let I=0;I<g.length;I++){let B=g[I];if(!(B.prioritySelectorIndex===-1||u&&u(B))&&(B.prioritySelectorIndex<d||B.prioritySelectorIndex===d&&(h&&!B.hasWhere||B.order>=p)))return b+I}return b+g.length};if(m){let f=this.rules.findIndex(l=>l.media);if(f!==-1){let l=m.features[_],x=m.features[L];if(l&&x){let u=l.value-x.value;for(let g=a;g>=f;g--){s=g;let b=this.rules[g],y=b.media,I=y.features[_],B=y.features[L];if(!I||!B){s++;break}let R=I.value-B.value;if(R===u){if(h!==b.hasWhere)continue;if(d!==-1){let F=[this.rules[g]];for(let W=g-1;W>=f;W--){let H=this.rules[W];if(H.hasWhere!==h)break;let $=H.media,V=$.features[_],A=$.features[L];if(!V||!A||V.value-A.value!==R)break;F.unshift(this.rules[W])}s=c(this.rules,W=>W.media&&W.prioritySelectorIndex!==-1&&W.media.features[L]&&W.media.features[_])}break}else if(R>u)break}}else if(x)for(let u=f;u<=a;u++){s=u;let g=this.rules[u],b=g.media,y=b.features[_],I=b.features[L];if(y){if(I)break;continue}let B=I?.value;if(B===x.value){if(!h&&g.hasWhere){s++;continue}if(d!==-1)s=c(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[L]&&R.media.features[_],R=>!R.media.features[L]&&!R.media.features[_]);else for(let R=u;R<=a;R++){let F=this.rules[R],W=F.media,H=W.features[L];if(!W.features[_]){if(F.hasWhere!==h||H.value!==B||F.order>=p)break;s=R+1}}break}else{if(B>x.value)break;s++}}else if(l)for(let u=a;u>=f;u--){s=u;let g=this.rules[u],b=g.media,y=b.features[_];if(b.features[L])continue;let B=y?.value;if(!B||B>l.value){s++;break}else if(B===l.value){if(h&&!g.hasWhere)continue;if(d!==-1)s=c(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[L]&&R.media.features[_],R=>!R.media.features[L]&&!R.media.features[_]);else{let R=[this.rules[u]];for(let F=u-1;F>=f;F--){let W=this.rules[F],H=W.media,$=H.features[L],V=H.features[_];if(!$&&(!V||V.value!==B||W.hasWhere!==h))break;R.unshift(W)}for(let F=0;F<R.length;F++){let W=R[F];if(!W.media.features[L]){if(W.order>=p)break;s=u-R.length+2+F}}}break}}}if(s===void 0)if(f===-1)s=a+1;else if(d!==-1)s=f+c(this.rules.slice(f),void 0,l=>l.media.features[_]||l.media.features[L]);else if(h){let l=f;for(;l<this.rules.length;l++){let x=this.rules[l];if(x.prioritySelectorIndex!==-1||!x.hasWhere||x.order>=p){s=l;break}}s===void 0&&(s=l)}else for(let l=f;l<=a;l++){s=l;let x=this.rules[l],u=x.media;if(x.prioritySelectorIndex!==-1||u.features[_]||u.features[L])break;if(x.hasWhere)s++;else if(x.order>=p)break}}else if(d===-1)if(h)s=this.rules.findIndex(f=>!f.hasWhere||f.media||f.prioritySelectorIndex!==-1||f.order>=p),s===-1&&(s=a+1);else{let f=0;for(;f<this.rules.length;f++){let l=this.rules[f];if(l.media||!l.hasWhere&&(l.order>=p||l.prioritySelectorIndex!==-1)){s=f;break}}s===void 0&&(s=f)}else s=c(this.rules,void 0,f=>f.media);if(this.rules.splice(s,0,o),this.ruleOfClass[v]=o,this.style)try{let f=this.style.sheet,l=0,x=this.rules[s-1];if(x){let u=x.natives[x.natives.length-1].cssRule;for(let g=0;g<f.cssRules.length;g++)if(f.cssRules[g]===u){l=g+1;break}}for(let u of o.natives)f.insertRule(u.text,l),u.cssRule=f.cssRules[l++]}catch(f){console.error(f)}}delete(o){let n=this.style.sheet,s=a=>{let m=this.ruleOfClass[a];if(!m||a in this.relations&&this.relations[a].some(d=>d in this.countOfName))return;let p=m.natives[0];for(let d=0;d<n.cssRules.length;d++)if(n.cssRules[d]===p.cssRule){for(let v=0;v<m.natives.length;v++)n.deleteRule(d);this.rules.splice(this.rules.indexOf(m),1),delete this.ruleOfClass[o];break}};if(o in this.classes)for(let a of this.classes[o])a in this.countOfName||s(a);else s(o)}findAndInsert(o){let n=this.findAndNew(o);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}},P=eo;e(P,"init",Ki),e(P,"defaultConfig",Fe),e(P,"instances",[]),e(P,"root");wo&&(window.MasterCSS=P);function Oo(r,i){return Array.isArray(r)&&Array.isArray(i)?r.concat(i):i}function to(r){return Object.prototype.toString.call(r).slice(8,-1)}function Oi(r){return to(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function po(r){return to(r)==="Symbol"}function Ao(r,i,o,n){let s={}.propertyIsEnumerable.call(n,i)?"enumerable":"nonenumerable";s==="enumerable"&&(r[i]=o),s==="nonenumerable"&&Object.defineProperty(r,i,{value:o,enumerable:!1,writable:!0,configurable:!0})}function Io(r,i,o){if(!Oi(i))return i;let n={};if(Oi(r)){let p=Object.getOwnPropertyNames(r),d=Object.getOwnPropertySymbols(r);n=[...p,...d].reduce((h,v)=>{let c=r[v];return(!po(v)&&!Object.getOwnPropertyNames(i).includes(v)||po(v)&&!Object.getOwnPropertySymbols(i).includes(v))&&Ao(h,v,c,r),h},{})}let s=Object.getOwnPropertyNames(i),a=Object.getOwnPropertySymbols(i);return[...s,...a].reduce((p,d)=>{let h=i[d],v=Oi(r)?r[d]:void 0;v!==void 0&&Oi(h)&&(h=Io(v,h,o));let c=o?o(v,h,d):h;return Ao(p,d,c,i),p},n)}function ro(r,...i){return i.filter(o=>Oi(o)).reduce((o,n)=>Io(o,n,Oo),r)}function Bo(...r){return r.length?ro(Fe,...r):Fe}var pR=ao(io());function Do(r,i=new P){if(!!r?.length){for(let o of r)o in i.countOfName||(i.findAndInsert(o),i.countOfName[o]=1);return i.rules.map(o=>o.natives.reduce((n,s)=>n+s.text,"")).join("")}}var xR=ao(io());function oo(r,i=new P){if(!r)return;let o=/\sclass="([^"]*)"/gm,n;for(;n=o.exec(r);){let s=n[1].replace(/\n/g,"").split(" ").filter(a=>a);for(let a of s)a in i.countOfName||(i.findAndInsert(a),i.countOfName[a]=1)}return i.rules.map(s=>s.natives.reduce((a,m)=>a+m.text,"")).join("")}var SR=ao(io());function Wo(r,i=new P){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${oo(r,i)}</style>`)}
|
|
2
2
|
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
|
package/package.json
CHANGED