@master/css 2.0.0-beta.43 → 2.0.0-beta.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -27
- package/dist/config/index.d.ts +10 -4
- package/dist/css.d.ts +1 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var $i=Object.defineProperty;var zo=Object.getOwnPropertyDescriptor;var _o=Object.getOwnPropertyNames;var Vo=Object.prototype.hasOwnProperty;var Ho=(r,o,i)=>o in r?$i(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var $o=(r,o)=>{for(var i in o)$i(r,i,{get:o[i],enumerable:!0})},Uo=(r,o,i,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of _o(o))!Vo.call(r,s)&&s!==i&&$i(r,s,{get:()=>o[s],enumerable:!(a=zo(o,s))||a.enumerable});return r};var Qo=r=>Uo($i({},"__esModule",{value:!0}),r);var e=(r,o,i)=>(Ho(r,typeof o!="symbol"?o+"":o,i),i),ko=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var te=(r,o,i)=>(ko(r,o,"read from private field"),i?i.call(r):o.get(r)),po=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},ho=(r,o,i,a)=>(ko(r,o,"write to private field"),a?a.call(r,i):o.set(r,i),i);var vs={};$o(vs,{Rule:()=>t,Rules:()=>lo,breakpoints:()=>re,colors:()=>Ui,config:()=>Ni,default:()=>z,extend:()=>Ur,fillColorScale:()=>P,render:()=>Ro,renderFromHTML:()=>_i,renderIntoHTML:()=>So,root:()=>xs,rootSize:()=>Qi,scheme:()=>Ji,selectors:()=>Yi,semantics:()=>Xi,themes:()=>Zi,values:()=>Ki});module.exports=Qo(vs);var Yo={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},re=Yo;function Xr(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function Co(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function P(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let a in r)if(a&&+a>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let a=0,s="0"in r?Xr(r[0]):[0,0,0],l,m,b=[],f=()=>{let u=l-a,v=m.map((h,n)=>(h-s[n])/u);for(let h of b){let n=h-a,p=s.map((d,c)=>Math.round(d+v[c]*n));r[h]="#"+Co.call(this,...p)}};for(let u=1;u<100;u++)u in r?(b.length?(l=u,m=Xr(r[u]),f(),b.length=0,s=m):s=Xr(r[u]),a=u):b.push(u);b.length&&(l=100,m="100"in r?Xr(r[100]):[255,255,255],f())}return o||(r[""]=r[i?"500":"50"]),r}var Xo={slate:P({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:P({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:P({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:P({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:P({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:P({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:P({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:P({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:P({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:P({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:P({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:P({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:P({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:P({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:P({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:P({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:P({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:P({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:P({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:P({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"},Ui=Xo;var Qi=16;var Zo={"::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("},Yi=Zo;var Jo={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"}},Xi=Jo;var qo=["dark","light"],Zi=qo;var Ko={storage:{sync:!0,key:"scheme"}},Ji=Ko;var Zr={content:"content-box",border:"border-box",padding:"padding-box"},qi={min:"min-content",max:"max-content"},Q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in re)Q[r]=re[r]/16+"rem";var es={BackgroundClip:Zr,BackgroundOrigin:Zr,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Zr,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:qi,GridAutoRows:qi,GridTemplateColumns:qi,GridTemplateRows:qi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Zr,margin:"margin-box"},TransformBox:{...Zr,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:Q,MinWidth:Q,MinHeight:Q,MaxWidth:Q,MaxHeight:Q,Height:Q,FlexBasis:Q},Ki=es;function eo(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function wo(r){let o=b=>b==="+"||b==="-"||b==="*"||b==="/",i="",a,s="",l=!1;function m(){a=null,s=""}for(let b=0;b<r.length;b++){let f=r[b];if(f==="("||f===")")l=f===")",i+=s+f,m();else if(f===",")i+=s+f+" ",m();else{switch(a){case 1:break;case 2:if(o(f)){i+=s+" "+f+" ",m();continue}break;default:l&&(s+=" "),isNaN(+f)?o(f)||(a=1):a=2;break}s+=f}}return s&&(i+=s),i}var ts=/^([+-.]?\d+(\.?\d+)?)(.*)?/,rs="var(--";function to(r,o,i,a,s,l,m){let b="",f="",u="",v,h=a&&r in a?a[r]:s&&r in s?s[r]:"";if(h){if(!o)return{value:h.toString(),unit:f,unitToken:u};r=h}if(typeof r=="number")b=r,f=o||"";else{if(i){let n=Object.keys(i),p=!1,d=!1;r=r.replace(new RegExp(`(^|,| |\\()(${n.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(c,g,x,y,C)=>{d=!0;let T=i[x]?.[y||""];if(T){let R;for(let O of m)if(R=T[O])break;if(R){p=!0;let O=R;if(C){let W=C.endsWith("%")?parseFloat(C)/100:+C;W=isNaN(W)?1:Math.min(Math.max(W,0),1),O+=Math.round(W*255).toString(16).toUpperCase().padStart(2,"0")}return g+O}}return c}),d&&(v=p)}if(o){let n=r.match(ts);if(n)if(r.includes("/")){let p=r.split("/");return{value:+p[0]/+p[1]*100+"%",unit:f,unitToken:u}}else return b=+n[1],f=u=n[3]||"",f||((o==="rem"||o==="em")&&(b=b/l),f=o||""),{value:b,unit:f,unitToken:u}}b=(r.indexOf("calc(")===-1?r:wo(r)).replace(/\$\(((\w|-)+)\)/g,rs+"$1)")}return{value:b,unit:f,unitToken:u,colorMatched:v}}var Ve={"(":")","'":"'","{":"}"};var Oo=[":disabled",":active",":focus",":hover"],ro="matches",is="semantics",Mo="symbol",Bo="width",go="max-"+Bo,xo="min-"+Bo,bo="motion",Io="reduce",Ao=Io+"d-"+bo,vo="px",os="rem",ss=["!","*",">","+","~",":","[","@","_"],as=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,ns=r=>r.split(as).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,a){this.className=o;this.matching=i;this.css=a;let s=this.constructor,{id:l,unit:m,colorful:b,prop:f}=s,{mediaQueries:u,rootSize:v}=a.config,{themeNames:h,colorsThemesMap:n,selectors:p,globalValues:d,breakpoints:c}=a,g=a.values[l],x=a.relationThemesMap[o],y=o,C,T,R,O;if(i.origin===is){let[F,k]=i.value;R=y.slice(F.length),C=k}else{let F;if(i.origin===ro)if(l==="Group"){let A=0;for(;A<y.length&&!(y[A]==="{"&&y[A-1]!=="\\");A++);T=y.slice(0,A),F=y.slice(A)}else{let A=y.indexOf(":");this.prefix=y.slice(0,A+1),this.prefix.includes("(")?(this.prefix=void 0,F=y):F=y.slice(A+1)}else i.origin===Mo&&(this.symbol=y[0],F=y.slice(1));O=[];let k="",w=0;(function A(j,M,B=""){let S,I=!1;for(j&&(j===")"&&k.slice(-1)==="$"?S=k.length-1:j==="'"&&(I=!0),k+=F[w++]);w<F.length;w++){let D=F[w];if(D===j){if(k+=D,I){let E=0;for(let _=k.length-2;k[_]==="\\";_--)E++;if(E%2)continue}S!==void 0&&(k=k.slice(0,S)+k.slice(S).replace(/\$\((.*)\)/,"var(--$1)")),M||(I?O.push(k):O.push({value:k}),B="",k="");break}else if(!I&&D in Ve)A(Ve[D],M===void 0?0:M+1,B);else if(D==="|"&&j!=="}"&&(!I||B==="path"))j?k+=" ":(O.push({value:k}),k="");else{if(!j){if(D==="."){if(isNaN(+F[w+1]))break;F[w-1]==="-"&&(k+="0")}else if(D===","){k&&(O.push({value:k}),k=""),O.push(",");continue}else if(D==="#"&&(k||O.length&&F[w-1]!=="|")||ss.includes(D))break;B+=D}k+=D}}})(),k&&O.push({value:k}),R=F.slice(w)}R[0]==="!"&&(this.important=!0,R=R.slice(1));let W=F=>{let k=ns(F),w=[],A="",j=0;for(let M=0;M<k.length;M++){let B=k[M];if(B==="\\"){A+=B+k[++M];continue}!j&&B===","?(w.push(A),A=""):(A+=B,j&&B===")"?j--:B==="("&&j++)}return A&&w.push(A),w};this.prefixSelectors=T?W(T):[""];let V=R.split("@"),$=V[0];if($){this.vendorSuffixSelectors={};let F=(M,B,S,I)=>{for(let[D,E]of B)if(D.test(M)){for(let _ of E)F(M.replace(D,_),B,S,!0);return}I&&S.push(M)},k=[];""in p?F($,p[""],k,!0):k.push($);let w={};for(let[M,B]of Object.entries(p)){if(!M)continue;let S=[];for(let I of k)F(I,B,S,!1);S.length&&(w[M]=S)}let A=(M,B)=>{let S=B.reduce((I,D)=>(I.push(...W(D)),I),[]);M in this.vendorSuffixSelectors?this.vendorSuffixSelectors[M].push(...S):this.vendorSuffixSelectors[M]=S},j=Object.keys(w);if(j.length)for(let M of j)A(M,w[M]);else A("",k);for(let M of Object.values(this.vendorSuffixSelectors))for(let B of M){this.hasWhere!==!1&&(this.hasWhere=B.includes(":where("));for(let S=0;S<Oo.length;S++)if(B.includes(Oo[S])){(this.priority===-1||this.priority>S)&&(this.priority=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let F=1;F<V.length;F++){let k=V[F];if(k)if(h.includes(k))this.theme=k;else if(k==="rtl"||k==="ltr")this.direction=k;else{let w,A,j=k.indexOf("_");if(j!==-1)w=k.slice(0,j),A=k.slice(j);else{let M=k.indexOf("(");M!==-1&&(w=k.slice(0,M),A=k.slice(M))}if(!w){w="media";let M=[];this.media={token:k,features:{}};let B=k.split("&");for(let S of B)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===bo||S===Ao)M.push("(prefers-"+Ao+":"+(S===bo?"no-preference":Io)+")");else if(u&&S in u)M.push(u[S]);else{let I={token:S},D="",E="",_=0;S.startsWith("<=")?(E="<=",D=go):S.startsWith(">=")||c[S]?(E=">=",D=xo):S.startsWith(">")?(E=">",D=xo,_=.02):S.startsWith("<")&&(E="<",D=go,_=-.02);let U=E?S.replace(E,""):S,N=c[U];switch(D){case go:case xo:N?Object.assign(I,to(N,vo)):Object.assign(I,to(U,vo)),I.unit===vo&&(I.value+=_),this.media.features[D]=I,M.push("("+D+":"+(I.value+I.unit)+")");break}}A="",this.media.type&&(A=this.media.type),M.length&&(A+=(A?" and ":"")+M.join(" and "))}A&&(this.at[w]=(w in this.at?this.at[w]+" and ":"")+A.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let H=(F,k)=>{let w,A,j=(B,S,I)=>{let D="";this.direction&&(D+="[dir="+this.direction+"] ");let E=this.prefixSelectors.map(N=>N+D),_=(N,Vi)=>{let Yr=N?"."+N+" ":"",uo="."+CSS.escape(Vi);return E.map(Hi=>Yr+Hi).reduce((Hi,Lo)=>(Hi.push(I.reduce((To,Go)=>(To.push(Lo+uo+Go),To),[]).join(",")),Hi),[]).join(",")},U=_(S,o)+(x?Object.entries(x).filter(([N])=>this.theme||!b||!S||!N||N===S).map(([N,Vi])=>Vi.reduce((Yr,uo)=>Yr+","+_(this.theme??(b&&S||N),uo),"")).join(""):"")+"{"+B+"}";for(let N of Object.keys(this.at).sort((Vi,Yr)=>Yr==="supports"?-1:1))U="@"+N+" "+this.at[N]+"{"+U+"}";return U},M=[];if(O){let B,S;for(let I of O)typeof I=="string"?M.push(I):(B=to(I.value,m,b&&n,g,d,v,this.theme?[this.theme,""]:[F]),B.colorMatched!==void 0&&S!==!0&&(S=B.colorMatched),M.push(B.value+B.unit));if(k&&(S===void 0?F:!S))return;if(M.length===1?B?(w=B.value,A=B.unit):w=M[0]:w=M.reduce((I,D,E)=>I+D+(D===","||O[E+1]===","||E===O.length-1?"":" "),""),typeof w!="object"){this.parseValue&&(w=this.parseValue(w,this.css.config)),b&&w==="current"?w="currentColor":g&&w in g?w=g[w].toString():w in d&&(w=d[w].toString());let I={unit:A,value:w,important:this.important};if(this.getThemeProps){let D=this.getThemeProps(I,a);for(let E in D)for(let _ of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:A,value:w,text:j(Object.entries(D[E]).map(([U,N])=>eo(U,{important:this.important,unit:"",value:N})).join(";"),E,_),theme:E});return}else this.get&&(w=this.get(I))}}else w=C;for(let B of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:A,value:w,text:j(typeof w=="object"?Object.entries(w).map(([S,I])=>eo(S,{...typeof I=="object"?I:{unit:"",value:I},important:this.important})).join(";"):eo(f,{unit:A,value:w,important:this.important}),F,B),theme:F})};if(this.getThemeProps)H(void 0,!1);else if(this.theme)H(this.theme,!1);else if(b)for(let F of h)H(F,!0);else H("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;theme;unitToken;hasWhere;priority=-1;natives=[];static get prop(){return this.id?.replace(/(?!^)[A-Z]/g,o=>"-"+o).toLowerCase()}static match(o,i){let{matches:a,colorStarts:s,symbol:l,prop:m}=this;if(a&&a.test(o))return{origin:ro};if(s&&(o.match("^"+s+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))")||i.length&&o.match("^"+s+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:ro};if(l&&o.startsWith(l))return{origin:Mo};if(m&&o.startsWith(m+":"))return{origin:ro}}};e(t,"id"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",os),e(t,"colorful");var ie=class extends t{};e(ie,"id","FontWeight"),e(ie,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(ie,"unit","");var He=class extends t{};e(He,"id","FontFamily"),e(He,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/);var $e=class extends t{};e($e,"id","FontSize"),e($e,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Ue=class extends t{static get prop(){return""}get(r){let i=this.prefix[0]==="m"?"margin":"padding",a=i+"-left",s=i+"-right",l=i+"-top",m=i+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[s]:r};case"y":return{[l]:r,[m]:r};case"l":return{[a]:r};case"r":return{[s]:r};case"t":return{[l]:r};case"b":return{[m]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Ue,"id","Spacing"),e(Ue,"matches",/^[pm][xytblr]?:./);var Qe=class extends t{};e(Qe,"id","Width"),e(Qe,"matches",/^w:./);var Ye=class extends t{};e(Ye,"id","Height"),e(Ye,"matches",/^h:./);var Xe=class extends t{};e(Xe,"id","MinWidth"),e(Xe,"matches",/^min-w:./);var Ze=class extends t{};e(Ze,"id","MinHeight"),e(Ze,"matches",/^min-h:./);var oe=class extends t{};e(oe,"id","LetterSpacing"),e(oe,"matches",/^ls:./),e(oe,"unit","em");var cs="subpixel-antialiased",Fo="-webkit-font-smoothing",Do="-moz-osx-font-smoothing",se=class extends t{static get prop(){return""}get(r){let o={};switch(r.value){case cs:o[Fo]=o[Do]={...r,value:"auto"};break;case"antialiased":o[Fo]={...r,value:"antialiased"},o[Do]={...r,value:"grayscale"};break}return o}};e(se,"id","FontSmoothing"),e(se,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(se,"unit","");var ae=class extends t{};e(ae,"id","FontStyle"),e(ae,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(ae,"unit","deg");var Je=class extends t{};e(Je,"id","FontVariantNumeric"),e(Je,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/);var qe=class extends t{};e(qe,"id","FontFeatureSettings"),e(qe,"matches",/^font-feature:./);var ne=class extends t{};e(ne,"id","LineHeight"),e(ne,"matches",/^lh:./),e(ne,"unit","");var Ke=class extends t{};e(Ke,"id","ObjectFit"),e(Ke,"matches",/^(object|obj):(contain|cover|fill|scale-down)/);var et=class extends t{};e(et,"id","ObjectPosition"),e(et,"matches",/^(object|obj):(top|bottom|right|left|center)/);var tt=class extends t{};e(tt,"id","TextAlign"),e(tt,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/);var ce=class extends t{order=-1};e(ce,"id","TextDecoration"),e(ce,"matches",/^t(ext)?:(underline|line-through|overline)/),e(ce,"colorful",!0);var rt=class extends t{};e(rt,"id","TextTransform"),e(rt,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/);var it=class extends t{};e(it,"id","VerticalAlign"),e(it,"matches",/^(?:v|vertical):./);var le=class extends t{static get prop(){return""}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(le,"id","Lines"),e(le,"matches",/^lines:./),e(le,"unit","");var de=class extends t{};e(de,"id","TransformOrigin"),e(de,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(de,"unit","px");var ot=class extends t{};e(ot,"id","TransformStyle"),e(ot,"matches",/^transform:(flat|preserve-3d)(?!\|)/);var st=class extends t{};e(st,"id","TransformBox"),e(st,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/);var fe=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,a,s,l)=>{let m,b;switch(a){case"translate":m="rem";break;case"skew":m="deg";break;case"rotate":s==="3d"&&(b=!0),m="deg";break;default:return i}let f=l.split(",");return i.replace(l,f.map((u,v)=>!b||f.length-1===v?Number.isNaN(+u)?u:u/(m==="rem"?o:1)+m:u).join(","))})}};e(fe,"id","Transform"),e(fe,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(fe,"unit","");var at=class extends t{order=-1};e(at,"id","Transition"),e(at,"symbol","~");var me=class extends t{};e(me,"id","TransitionDelay"),e(me,"matches",/^~delay:./),e(me,"unit","ms");var ue=class extends t{};e(ue,"id","TransitionDuration"),e(ue,"matches",/^~duration:./),e(ue,"unit","ms");var nt=class extends t{};e(nt,"id","TransitionProperty"),e(nt,"matches",/^~property:./);var ct=class extends t{};e(ct,"id","TransitionTimingFunction"),e(ct,"matches",/^~easing:./);var lt=class extends t{};e(lt,"id","MaxHeight"),e(lt,"matches",/^max-h:./);var dt=class extends t{};e(dt,"id","MaxWidth"),e(dt,"matches",/^max-w:./);var ft=class extends t{};e(ft,"id","Display"),e(ft,"matches",/^d:./);var mt=class extends t{};e(mt,"id","BoxSizing"),e(mt,"matches",/^box:(content|border)(?!\|)/);var ut=class extends t{};e(ut,"id","Opacity"),e(ut,"unit","");var Jr=class extends t{};e(Jr,"id","Visibility");var qr=class extends t{};e(qr,"id","Clear");var Kr=class extends t{};e(Kr,"id","Float");var ei=class extends t{};e(ei,"id","Isolation");var pt=class extends t{static get prop(){return""}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(pt,"id","Overflow"),e(pt,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var ht=class extends t{static get prop(){return""}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(ht,"id","OverscrollBehavior"),e(ht,"matches",/^overscroll-behavior(?:-[xy])?:/);var pe=class extends t{};e(pe,"id","ZIndex"),e(pe,"matches",/^z:./),e(pe,"unit","");var he=class extends t{};e(he,"id","AnimationDelay"),e(he,"matches",/^@delay:./),e(he,"unit","ms");var gt=class extends t{};e(gt,"id","AnimationDirection"),e(gt,"matches",/^@direction:./);var xt=class extends t{};e(xt,"id","AnimationFillMode"),e(xt,"matches",/^@fill-mode:./);var ge=class extends t{};e(ge,"id","AnimationIterationCount"),e(ge,"matches",/^@iteration-count:./),e(ge,"unit","");var vt=class extends t{};e(vt,"id","AnimationName"),e(vt,"matches",/^@name:./);var bt=class extends t{};e(bt,"id","AnimationPlayState"),e(bt,"matches",/^@play-state:./);var yt=class extends t{};e(yt,"id","AnimationTimingFunction"),e(yt,"matches",/^@easing:./);var xe=class extends t{order=-1};e(xe,"id","Animation"),e(xe,"symbol","@"),e(xe,"unit","");var io="border-";function Y(r,o,i=""){i&&(i="-"+i);let a=/^b(order)?-?(.)?/.exec(r)[2],s=io+"left"+i,l=io+"right"+i,m=io+"top"+i,b=io+"bottom"+i;switch(a){case"x":return{[s]:o,[l]:o};case"y":return{[m]:o,[b]:o};case"l":return{[s]:o};case"r":return{[l]:o};case"t":return{[m]:o};case"b":return{[b]:o};default:return{["border"+i]:o}}}var X=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(X,"id","BorderColor"),e(X,"matches",/^border(-(left|right|top|bottom))?-color:./),e(X,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(X,"colorful",!0);var oo="border-top-left-radius",so="border-top-right-radius",ao="border-bottom-left-radius",no="border-bottom-right-radius",Wo="border-radius",ls=[oo,so,ao,no],Rt=class extends t{static get prop(){return""}get(r){if(this.prefix){let i="",a=this.prefix.split("-");if(a.length>1)for(let s=1;s<a.length-1;s++)i+=a[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[oo]:r,[so]:r};case"tl":case"lt":return{[oo]:r};case"rt":case"tr":return{[so]:r};case"b":return{[ao]:r,[no]:r};case"bl":case"lb":return{[ao]:r};case"br":case"rb":return{[no]:r};case"l":return{[oo]:r,[ao]:r};case"r":return{[so]:r,[no]:r};default:return{[Wo]:r}}}let o=this.prefix?.slice(0,-1);return{[ls.includes(o)?o:Wo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Rt,"id","BorderRadius"),e(Rt,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var St=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(St,"id","BorderStyle"),e(St,"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 Tt=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Tt,"id","BorderWidth"),e(Tt,"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 ve=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(ve,"id","Border"),e(ve,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(ve,"colorful",!0);var kt=class extends t{};e(kt,"id","BackgroundAttachment"),e(kt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/);var ti=class extends t{};e(ti,"id","BackgroundBlendMode");var Ct=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(Ct,"id","BackgroundClip"),e(Ct,"matches",/^(bg|background):text(?!\|)/);var Z=class extends t{};e(Z,"id","BackgroundColor"),e(Z,"colorStarts","(bg|background):"),e(Z,"unit",""),e(Z,"colorful",!0);var wt=class extends t{};e(wt,"id","BackgroundOrigin"),e(wt,"matches",/^(bg|background):(content|border|padding)(?!\|)/);var be=class extends t{};e(be,"id","BackgroundPosition"),e(be,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(be,"unit","px");var Ot=class extends t{};e(Ot,"id","BackgroundRepeat"),e(Ot,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/);var Mt=class extends t{};e(Mt,"id","BackgroundSize"),e(Mt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/);var ye=class extends t{};e(ye,"id","BackgroundImage"),e(ye,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(ye,"colorful",!0);var Re=class extends t{order=-1};e(Re,"id","Background"),e(Re,"matches",/^bg:./),e(Re,"colorful",!0);var At=class extends t{};e(At,"id","MixBlendMode"),e(At,"matches",/^blend:./);var ri=class extends t{};e(ri,"id","Position");var Bt=class extends t{static get prop(){return""}get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Bt,"id","Placement"),e(Bt,"matches",/^(top|left|right|bottom|center|middle):./);function co(r,o,{rootSize:i}){let a="",s=0;return function l(m,b){let f="",u=b?o(b):"",v=()=>{f&&(a+=!u||Number.isNaN(+f)?f:+f/(u==="rem"?i:1)+u,f="")};for(;s<r.length;s++){let h=r[s];if(h===m&&(m!=="'"||r[s+1]===")")){v(),a+=h;break}else h===","||h===" "?(v(),a+=h):!f&&h==="'"?(a+=h,s++,l(h),f=""):f&&h==="("?(a+=f+h,s++,l(")",f),f=""):f+=h}v()}(),a}var Se=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return co(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(Se,"id","BackdropFilter"),e(Se,"matches",/^bd:./),e(Se,"colorful",!0);var Te=class extends t{};e(Te,"id","Fill"),e(Te,"colorStarts","fill:"),e(Te,"colorful",!0);var It=class extends t{};e(It,"id","Stroke"),e(It,"colorful",!0);var Ft=class extends t{};e(Ft,"id","StrokeWidth"),e(Ft,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var ke=class extends t{parseValue(r,o){return co(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(ke,"id","Filter"),e(ke,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(ke,"colorful",!0);var ii=class extends t{};e(ii,"id","Cursor");var oi=class extends t{};e(oi,"id","PointerEvents");var si=class extends t{};e(si,"id","Resize");var ai=class extends t{};e(ai,"id","TouchAction");var ni=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(ni,"id","UserDrag");var ci=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(ci,"id","UserSelect");var Ce=class extends t{};e(Ce,"id","BoxShadow"),e(Ce,"matches",/^s(?:hadow)?:./),e(Ce,"colorful",!0);var Dt=class extends t{};e(Dt,"id","TextShadow"),e(Dt,"colorful",!0);var Po=.5,Wt=class extends t{static get prop(){return""}get(r){let{unit:o,value:i}=r;return{"font-size":r,"line-height":{...r,value:o==="rem"?i+Po+o:`calc(${i}${o} + ${Po}rem)`,unit:""}}}};e(Wt,"id","TextSize"),e(Wt,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Pt=class extends t{};e(Pt,"id","WordBreak"),e(Pt,"unit","");var we=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(we,"id","GridColumns"),e(we,"matches",/^grid-cols:./),e(we,"unit","");var jt=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(jt,"id","GridRows"),e(jt,"unit","");var Et=class extends t{static get prop(){return""}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(Et,"id","Gap"),e(Et,"matches",/^gap(-x|-y)?:./);var Nt=class extends t{};e(Nt,"id","WordSpacing"),e(Nt,"unit","em");var Oe=class extends t{static get prop(){return""}get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Oe,"id","Variable"),e(Oe,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(Oe,"unit","");var Me=class extends t{};e(Me,"id","AspectRatio"),e(Me,"matches",/^aspect:./),e(Me,"unit","");var Lt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Lt,"id","BoxDecorationBreak"),e(Lt,"matches",/^box:(slice|clone)(?!\|)/);var li=class extends t{};e(li,"id","BreakAfter");var di=class extends t{};e(di,"id","BreakBefore");var fi=class extends t{};e(fi,"id","BreakInside");var Gt=class extends t{};e(Gt,"id","FlexShrink"),e(Gt,"unit","");var zt=class extends t{};e(zt,"id","FlexDirection"),e(zt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/);var _t=class extends t{};e(_t,"id","FlexGrow"),e(_t,"unit","");var Vt=class extends t{};e(Vt,"id","FlexWrap"),e(Vt,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/);var mi=class extends t{};e(mi,"id","FlexBasis");var Ht=class extends t{order=-1};e(Ht,"id","Flex"),e(Ht,"unit","");var Ae=class extends t{};e(Ae,"id","Order"),e(Ae,"matches",/^o:./),e(Ae,"unit","");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","GridColumn"),e(Be,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Be,"unit","");var $t=class extends t{};e($t,"id","ColumnSpan"),e($t,"matches",/^col-span:./);var Ie=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Ie,"id","GridRow"),e(Ie,"matches",/^grid-row-span:./),e(Ie,"unit","");var J=class extends t{};e(J,"id","Color"),e(J,"colorStarts","(?:color|fg|foreground):"),e(J,"colorful",!0),e(J,"unit","");var Ut=class extends t{};e(Ut,"id","AlignContent"),e(Ut,"matches",/^ac:./);var Qt=class extends t{};e(Qt,"id","AlignItems"),e(Qt,"matches",/^ai:./);var Yt=class extends t{};e(Yt,"id","AlignSelf"),e(Yt,"matches",/^as:./);var Xt=class extends t{};e(Xt,"id","GridAutoColumns"),e(Xt,"matches",/^grid-auto-cols:./);var Zt=class extends t{};e(Zt,"id","GridAutoFlow"),e(Zt,"matches",/^grid-flow:./);var ui=class extends t{};e(ui,"id","GridAutoRows");var Jt=class extends t{};e(Jt,"id","JustifyContent"),e(Jt,"matches",/^jc:./);var qt=class extends t{};e(qt,"id","JustifyItems"),e(qt,"matches",/^ji:./);var Kt=class extends t{};e(Kt,"id","JustifySelf"),e(Kt,"matches",/^js:./);var pi=class extends t{order=-1};e(pi,"id","PlaceContent");var hi=class extends t{order=-1};e(hi,"id","PlaceItems");var gi=class extends t{order=-1};e(gi,"id","PlaceSelf");var er=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(er,"id","Padding"),e(er,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var tr=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(tr,"id","Margin"),e(tr,"matches",/^margin(-(left|right|top|bottom))?:./);var rr=class extends t{};e(rr,"id","TextOverflow"),e(rr,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/);var ir=class extends t{};e(ir,"id","ListStylePosition"),e(ir,"matches",/^list-style:(inside|outside)(?!\|)/);var or=class extends t{};e(or,"id","ListStyleType"),e(or,"matches",/^list-style:(disc|decimal)(?!\|)/);var xi=class extends t{order=-1};e(xi,"id","ListStyle");var Fe=class extends t{};e(Fe,"id","TextDecorationColor"),e(Fe,"colorStarts","text-decoration:"),e(Fe,"colorful",!0);var sr=class extends t{};e(sr,"id","TextDecorationStyle"),e(sr,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/);var De=class extends t{};e(De,"id","TextDecorationThickness"),e(De,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(De,"unit","em");var vi=class extends t{};e(vi,"id","TextIndent");var bi=class extends t{};e(bi,"id","Content");var We=class extends t{};e(We,"id","OutlineColor"),e(We,"colorStarts","outline:"),e(We,"colorful",!0);var yi=class extends t{};e(yi,"id","OutlineOffset");var ar=class extends t{};e(ar,"id","OutlineStyle"),e(ar,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/);var nr=class extends t{};e(nr,"id","OutlineWidth"),e(nr,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var cr=class extends t{order=-1};e(cr,"id","Outline"),e(cr,"colorful",!0);var lr=class extends t{};e(lr,"id","BorderCollapse"),e(lr,"matches",/^b(order)?:(collapse|separate)(?!\|)/);var Ri=class extends t{};e(Ri,"id","BorderSpacing");var Si=class extends t{};e(Si,"id","TableLayout");var Pe=class extends t{};e(Pe,"id","AccentColor"),e(Pe,"colorStarts","accent:"),e(Pe,"colorful",!0);var Ti=class extends t{};e(Ti,"id","Appearance");var je=class extends t{};e(je,"id","CaretColor"),e(je,"colorStarts","caret:"),e(je,"colorful",!0);var ki=class extends t{};e(ki,"id","ScrollBehavior");var dr=class extends t{static get prop(){return""}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(dr,"id","ScrollMargin"),e(dr,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var fr=class extends t{static get prop(){return""}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(fr,"id","ScrollPadding"),e(fr,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var mr=class extends t{};e(mr,"id","ScrollSnapAlign"),e(mr,"matches",/^scroll-snap:(start|end|center)/);var ur=class extends t{};e(ur,"id","ScrollSnapStop"),e(ur,"matches",/^scroll-snap:(normal|always)(?!\|)/);var pr=class extends t{};e(pr,"id","ScrollSnapType"),e(pr,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/);var Ci=class extends t{};e(Ci,"id","WillChange");var wi=class extends t{};e(wi,"id","TextUnderlineOffset");var hr=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(hr,"id","Inset"),e(hr,"matches",/^(?:top|bottom|left|right):./);var Ee=class extends t{order=-1};e(Ee,"id","Columns"),e(Ee,"matches",/^(columns|cols):./),e(Ee,"unit","");var gr=class extends t{};e(gr,"id","WhiteSpace"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","TextOrientation"),e(xr,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/);var vr=class extends t{};e(vr,"id","WritingMode"),e(vr,"matches",/^writing:./);var Oi=class extends t{};e(Oi,"id","Contain");var Ne=class extends t{};e(Ne,"id","AnimationDuration"),e(Ne,"matches",/^@duration:./),e(Ne,"unit","ms");var br=class extends t{};e(br,"id","TextRendering"),e(br,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/);var Mi=class extends t{};e(Mi,"id","Direction");var yr=class extends t{};e(yr,"id","TextDecorationLine"),e(yr,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/);var Le=class extends t{};e(Le,"id","GridColumnStart"),e(Le,"matches",/^grid-col-start:./),e(Le,"unit","");var Rr=class extends t{};e(Rr,"id","ListStyleImage"),e(Rr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/);var Sr=class extends t{};e(Sr,"id","ShapeOutside"),e(Sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/);var Tr=class extends t{};e(Tr,"id","ShapeMargin"),e(Tr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var kr=class extends t{};e(kr,"id","ShapeImageThreshold"),e(kr,"unit","");var Cr=class extends t{};e(Cr,"id","ClipPath"),e(Cr,"matches",/^clip:./);var Ai=class extends t{order=-1};e(Ai,"id","Grid");var Ge=class extends t{order=-1};e(Ge,"id","Font"),e(Ge,"matches",/^f:./),e(Ge,"unit","");var Bi=class extends t{};e(Bi,"id","Quotes");var Ii=class extends t{order=-1};e(Ii,"id","GridTemplate");var wr=class extends t{};e(wr,"id","GridRowStart"),e(wr,"unit","");var Fi=class extends t{};e(Fi,"id","GridTemplateAreas");var Or=class extends t{};e(Or,"id","GridTemplateColumns"),e(Or,"matches",/^grid-template-cols:./);var Di=class extends t{};e(Di,"id","GridTemplateRows");var Mr=class extends t{order=-1};e(Mr,"id","GridArea"),e(Mr,"unit","");var ze=class extends t{};e(ze,"id","GridColumnEnd"),e(ze,"matches",/^grid-col-end:./),e(ze,"unit","");var Ar=class extends t{};e(Ar,"id","GridRowEnd"),e(Ar,"unit","");var Wi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Wi,"id","MaskImage");var q=class extends t{static get prop(){return""}get(r){return{"-webkit-text-fill-color":r}}};e(q,"id","TextFillColor"),e(q,"matches",/^text-fill-color:./),e(q,"colorStarts","(text-fill|text|t):"),e(q,"colorful",!0);var Br=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke":r}}};e(Br,"id","TextStroke"),e(Br,"matches",/^text-stroke:./);var Ir=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-width":r}}};e(Ir,"id","TextStrokeWidth"),e(Ir,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var K=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-color":r}}};e(K,"id","TextStrokeColor"),e(K,"matches",/^text-stroke-color:./),e(K,"colorStarts","text-stroke:"),e(K,"colorful",!0);var Pi=class extends t{};e(Pi,"id","StrokeDasharray");var ji=class extends t{};e(ji,"id","StrokeDashoffset");var Fr=class extends t{};e(Fr,"id","X"),e(Fr,"unit","");var Dr=class extends t{};e(Dr,"id","Y"),e(Dr,"unit","");var Wr=class extends t{};e(Wr,"id","Cx"),e(Wr,"unit","");var Pr=class extends t{};e(Pr,"id","Cy"),e(Pr,"unit","");var jr=class extends t{};e(jr,"id","Rx"),e(jr,"unit","");var Er=class extends t{};e(Er,"id","Ry"),e(Er,"unit","");var Ei=class extends t{};e(Ei,"id","BorderImageOutset");var Nr=class extends t{};e(Nr,"id","BorderImageRepeat"),e(Nr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/);var Lr=class extends t{};e(Lr,"id","BorderImageSlice"),e(Lr,"unit","");var Gr=class extends t{};e(Gr,"id","BorderImageSource"),e(Gr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/);var zr=class extends t{};e(zr,"id","BorderImageWidth"),e(zr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/);var _r=class extends t{};e(_r,"id","BorderImage"),e(_r,"unit","");var ds=/\{(.*)\}/,_e=class extends t{static get prop(){return""}getThemeProps(r,o){let i={},a=(u,v)=>{let h=v.indexOf(":");if(h!==-1){u in i||(i[u]={});let n=i[u],p=v.slice(0,h);p in n||(n[p]=v.slice(h+1))}},s=u=>{let v=(h,n)=>{let p=n.slice(CSS.escape(u.className).length).match(ds)[1].split(";");for(let d of p)a(h,d)};if(this.theme){let h=u.natives.find(n=>n.theme===this.theme)??u.natives.find(n=>!n.theme);h&&v(this.theme,h.text)}else for(let h of u.natives)v(h.theme,h.text)},l=[],m="",b=()=>{m&&(l.push(m),m="")},f=1;(function u(v){for(;f<r.value.length;f++){let h=r.value[f];if(!v){if(h===";"){b();continue}if(h==="}")break}if(m+=h,v===h){if(v==="'"){let n=0;for(let p=m.length-2;m[p]==="\\";p--)n++;if(n%2)continue}break}else h in Ve&&v!=="'"&&(f++,u(Ve[h]))}})(void 0),b();for(let u of l){let v=o.findAndNew(u);if(Array.isArray(v))for(let h of v)s(h);else v?s(v):a(this.theme??"",u)}return i}};e(_e,"id","Group"),e(_e,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(_e,"unit","");var Vr=class extends t{};e(Vr,"id","CounterIncrement"),e(Vr,"unit","");var Hr=class extends t{};e(Hr,"id","CounterReset"),e(Hr,"unit","");var fs=[_e,Oe,$e,ie,He,se,ae,Je,qe,Ge,J,Ue,tr,er,mi,Vt,_t,Gt,zt,Ht,ft,Qe,Ye,Xe,Ze,Oi,bi,Vr,Hr,oe,ne,Ke,et,tt,Fe,sr,De,yr,ce,wi,rr,xr,rt,br,vi,it,Ee,gr,hr,le,lt,dt,mt,ut,Jr,qr,Kr,ei,pt,ht,pe,ri,Bt,ii,oi,si,ai,Pt,Nt,ni,ci,Dt,Wt,q,Ir,K,Br,Ce,Si,st,ot,de,fe,nt,ct,ue,me,at,he,gt,Ne,xt,ge,vt,bt,yt,xe,X,Rt,St,Tt,lr,Ri,Ei,Nr,Lr,Gr,zr,_r,ve,kt,ti,Ct,Z,wt,be,Ot,Mt,ye,Re,At,Se,ke,Te,Pi,ji,Ft,It,Fr,Dr,Wr,Pr,jr,Er,Le,ze,Be,we,wr,Ar,Ie,jt,Xt,Zt,ui,Fi,Or,Di,Ii,Mr,Ai,Et,Ae,fi,di,li,Lt,Me,$t,Ut,Qt,Yt,Jt,qt,Kt,pi,hi,gi,ir,or,Rr,xi,We,yi,ar,nr,cr,Pe,Ti,je,ki,dr,fr,mr,ur,pr,Ci,vr,Mi,Sr,Tr,kr,Cr,Bi,Wi],lo=fs;var ms={colors:Ui,breakpoints:re,semantics:Xi,values:Ki,selectors:Yi,themes:Zi,scheme:Ji,Rules:lo,rootSize:Qi},Ni=ms;function jo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function fo(r){return Object.prototype.toString.call(r).slice(8,-1)}function $r(r){return fo(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function yo(r){return fo(r)==="Symbol"}function Eo(r,o,i,a){let s={}.propertyIsEnumerable.call(a,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function No(r,o,i){if(!$r(o))return o;let a={};if($r(r)){let b=Object.getOwnPropertyNames(r),f=Object.getOwnPropertySymbols(r);a=[...b,...f].reduce((u,v)=>{let h=r[v];return(!yo(v)&&!Object.getOwnPropertyNames(o).includes(v)||yo(v)&&!Object.getOwnPropertySymbols(o).includes(v))&&Eo(u,v,h,r),u},{})}let s=Object.getOwnPropertyNames(o),l=Object.getOwnPropertySymbols(o);return[...s,...l].reduce((b,f)=>{let u=o[f],v=$r(r)?r[f]:void 0;v!==void 0&&$r(u)&&(u=No(v,u,i));let h=i?i(v,u,f):u;return Eo(b,f,h,o),b},a)}function Ur(r,...o){return o.filter(i=>$r(i)).reduce((i,a)=>No(i,a,jo),r)}var us=[",",".","#","[","!","*",">","+","~",":","@"],ps=/^::-[a-z]+-/m,mo,Gi=typeof window<"u";Gi&&(mo=document.createElement("style"),mo.title="master");var G="max-width",L="min-width",hs="attributes",gs=Gi?window.MutationObserver:Object,Qr,ee,Li=class extends gs{constructor(i){super(a=>{let s={},l=[],m=[],b=[],f=(n,p)=>{p?n.classList.forEach(v):n.classList.forEach(u);let d=n.children;for(let c=0;c<d.length;c++){let g=d[c];g.classList&&(m.push(g),f(g,p))}},u=n=>{n in s?s[n]++:s[n]=1},v=n=>{n in s?s[n]--:n in this.countOfClass&&(s[n]=-1)},h=(n,p)=>{for(let d=0;d<n.length;d++){let c=n[d];c.classList&&!m.includes(c)&&!b.includes(c)&&(c.isConnected!==p?(m.push(c),f(c,p)):b.push(c))}};for(let n=0;n<a.length;n++){let p=a[n],{addedNodes:d,removedNodes:c,type:g,target:x,oldValue:y}=p;if(g===hs){if(l.find(C=>C.target===x))continue;l.push(p)}else h(d,!1),(!x.isConnected||!m.includes(x))&&h(c,!0)}if(!(!l.length&&!Object.keys(s).length)){for(let{oldValue:n,target:p}of l){let d=m.includes(p),c=p.classList,g=n?n.split(" "):[];if(d){if(p.isConnected)continue;for(let x of g)c.contains(x)||v(x)}else if(p.isConnected){c.forEach(x=>{g.includes(x)||u(x)});for(let x of g)c.contains(x)||v(x)}}for(let n in s){let p=s[n],d=(this.countOfClass[n]||0)+p;d===0?(delete this.countOfClass[n],this.delete(n)):(n in this.countOfClass||this.findAndInsert(n),this.countOfClass[n]=d)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"values");e(this,"globalValues");e(this,"breakpoints");e(this,"schemeMQL");po(this,Qr,void 0);po(this,ee,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ur({observe:!0},i),this.options.config&&!this.options.override?this.config=Ur(Ni,this.options.config):this.config=Ni,this.cache(),Gi&&this.options.observe&&this.observe(document),Li.instances.push(this),this.ready=!0}static refresh(i){for(let a of this.instances)a.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==te(this,Qr)){ho(this,Qr,i);let{storage:a}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&a.sync&&localStorage.setItem(a.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return te(this,Qr)}set theme(i){i!==te(this,ee)&&(te(this,ee)&&this.host.classList.remove(te(this,ee)),ho(this,ee,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return te(this,ee)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={};let{semantics:i,classes:a,selectors:s,themes:l,colors:m,values:b,breakpoints:f}=this.config;function u(d){return d.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function v(d,c,g="",x={}){let y=Object.entries(d);if(c&&g){let C={};for(let[T,R]of y)typeof R=="object"&&!Array.isArray(R)?v(R,c,g+"-"+T,x):C[T]=R;Object.keys(C).length&&(x[g]=C)}else for(let[C,T]of y){let R=(g?g+"-":"")+C;typeof T=="object"&&!Array.isArray(T)?v(T,c,R,x):x[R]=T}return x}if(i)for(let[d,c]of Object.entries(v(i,!0)))this.semantics.push([new RegExp("^"+u(d)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[d,c]]);if(s)for(let[d,c]of Object.entries(v(s,!1))){let g=new RegExp(u(d)+"(?![a-z-])");for(let x of Array.isArray(c)?c:[c]){let y=x.match(ps)?.[0]??"",C=this.selectors[y];C||(C=this.selectors[y]=[]);let T=C.find(([R])=>R===g);T||(T=[g,[]],C.push(T)),T[1].push(x)}}if(b)for(let[d,c]of Object.entries(b))typeof c=="object"?this.values[d]=v(c,!1):this.globalValues[d]=c;f&&(this.breakpoints=v(f,!1));let h=[...a?Object.keys(a):[],...l&&!Array.isArray(l)?Object.entries(l).flatMap(([d,{classes:c}])=>c?Object.keys(c):[]):[]],n=d=>{if(d in this.classes)return;let c=this.classes[d]=[],g=(x,y)=>{if(!y)return;let C=Array.isArray(y)?y:y.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let T of C){let R=O=>{O in this.relationThemesMap?x in this.relationThemesMap[O]?this.relationThemesMap[O][x].push(d):this.relationThemesMap[O][x]=[d]:this.relationThemesMap[O]={[x]:[d]},c.includes(O)||c.push(O)};if(h.includes(T)){n(T);for(let O of this.classes[T])R(O)}else R(T)}};if(g("",a?.[d]),l&&!Array.isArray(l))for(let[x,{classes:y}]of Object.entries(l))g(x,y?.[d])};for(let d of h)n(d);for(let d in this.relationThemesMap){let c=this.relations[d]=[];for(let g of Object.values(this.relationThemesMap[d]))for(let x of g)c.includes(x)||c.push(x)}let p=(d,c)=>{if(!!c)for(let g in c){let x=c[g];if(typeof x=="string"&&(x={"":x}),g in this.colorsThemesMap){let y=this.colorsThemesMap[g];for(let C in x){let T=x[C];C in y?y[C][d]=T:y[C]={[d]:T}}}else this.colorNames.push(g),this.colorsThemesMap[g]=Object.entries(x).reduce((y,[C,T])=>(y[C]={[d]:T},y),{})}};if(p("",v(m,!0)),l)if(Array.isArray(l))this.themeNames.push(...l);else for(let d in l){let c=l[d];p(d,v(c.colors,!0)),this.themeNames.push(d)}for(let[d,c]of Object.entries(this.colorsThemesMap))for(let[g,x]of Object.entries(c))for(let[y,C]of Object.entries(x))if(!C.startsWith("#")){let[T,R]=C.split("-"),O=this.colorsThemesMap[T]?.[R??""],W="";O&&(W=(y?O[y]:void 0)??O[""],W&&(x[y]=W)),W||(console.warn(`\`${C}\` doesn't exist in the extended config \`.colors\``),Object.keys(x).length>1?delete x[y]:Object.keys(c).length>1?delete c[g]:(delete this.colorsThemesMap[d],this.colorNames.splice(this.colorNames.indexOf(d),1)))}}observe(i,a={subtree:!0,childList:!0}){if(Gi&&i){this.root=i;let s=i===document;s&&(Li.root=this),this.host=s?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let l=s?document.head:i,m=s?document.styleSheets:i.styleSheets;for(let f of m){let{title:u,href:v,ownerNode:h}=f;(u==="master"||v&&v.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(v))&&(this.style=h)}if(this.style)for(let f=0;f<this.style.sheet.cssRules.length;f++){let u=h=>{if(h.selectorText){let p=h.selectorText.split(", ")[0].split(" ");for(let d=0;d<p.length;d++){let c=p[d];if(c[0]==="."){let g=c.slice(1),x="";for(let y=0;y<g.length;y++){let C=g[y],T=g[y+1];if(C==="\\"){if(y++,T!=="\\"){x+=T;continue}}else if(us.includes(C))break;x+=C}if(!(x in this.ruleOfClass)&&!(x in this.classes)){let y=this.findAndNew(x);if(y)return y}}}}else if(h.cssRules)for(let n=0;n<h.cssRules.length;n++){let p=u(h.cssRules[n]);if(p)return p}},v=u(this.style.sheet.cssRules[f]);if(v){this.rules.push(v),this.ruleOfClass[v.className]=v;for(let h=0;h<v.natives.length;h++)v.natives[h].cssRule=this.style.sheet.cssRules[f+h];f+=v.natives.length-1}}else this.style=mo.cloneNode(),l.prepend(this.style);let b=f=>{f.forEach(u=>{u in this.countOfClass?this.countOfClass[u]++:(this.countOfClass[u]=1,this.findAndInsert(u))})};b(this.host.classList),a.subtree&&this.host.querySelectorAll("[class]").forEach(f=>b(f.classList)),super.observe(i,{...a,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a)}findAndNew(i){let a=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let l of this.config.Rules){let m=l.match(s,this.colorNames);if(m)return new l(s,m,this)}for(let l of this.semantics)if(s.match(l[0]))return new t(s,{origin:"semantics",value:l[1]},this)};return i in this.classes?this.classes[i].map(a).filter(s=>s):a(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let a=mo.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=Li.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:a}=this.config;if(a&&!a(i,this))return;let s,l=this.rules.length-1,{media:m,order:b,priority:f,hasWhere:u,className:v}=i,h=(n,p,d,c)=>{let g=0,x;p&&(g=n.findIndex(p)),d&&(x=n.findIndex(d)),g===-1&&(g=n.length),(x===void 0||x===-1)&&(x=n.length);let y=n.slice(g,x);for(let C=0;C<y.length;C++){let T=y[C];if(!(T.priority===-1||c&&c(T))&&(T.priority<f||T.priority===f&&(u&&!T.hasWhere||T.order>=b)))return g+C}return g+y.length};if(m){let n=this.rules.findIndex(p=>p.media);if(n!==-1){let p=m.features[G],d=m.features[L];if(p&&d){let c=p.value-d.value;for(let g=l;g>=n;g--){s=g;let x=this.rules[g],y=x.media,C=y.features[G],T=y.features[L];if(!C||!T){s++;break}let R=C.value-T.value;if(R===c){if(u!==x.hasWhere)continue;if(f!==-1){let O=[this.rules[g]];for(let W=g-1;W>=n;W--){let V=this.rules[W];if(V.hasWhere!==u)break;let $=V.media,H=$.features[G],F=$.features[L];if(!H||!F||H.value-F.value!==R)break;O.unshift(this.rules[W])}s=h(this.rules,W=>W.media&&W.priority!==-1&&W.media.features[L]&&W.media.features[G])}break}else if(R>c)break}}else if(d)for(let c=n;c<=l;c++){s=c;let g=this.rules[c],x=g.media,y=x.features[G],C=x.features[L];if(y){if(C)break;continue}let T=C?.value;if(T===d.value){if(!u&&g.hasWhere){s++;continue}if(f!==-1)s=h(this.rules,R=>R.media,R=>R.media&&R.priority!==-1&&R.media.features[L]&&R.media.features[G],R=>!R.media.features[L]&&!R.media.features[G]);else for(let R=c;R<=l;R++){let O=this.rules[R],W=O.media,V=W.features[L];if(!W.features[G]){if(O.hasWhere!==u||V.value!==T||O.order>=b)break;s=R+1}}break}else{if(T>d.value)break;s++}}else if(p)for(let c=l;c>=n;c--){s=c;let g=this.rules[c],x=g.media,y=x.features[G];if(x.features[L])continue;let T=y?.value;if(!T||T>p.value){s++;break}else if(T===p.value){if(u&&!g.hasWhere)continue;if(f!==-1)s=h(this.rules,R=>R.media,R=>R.media&&R.priority!==-1&&R.media.features[L]&&R.media.features[G],R=>!R.media.features[L]&&!R.media.features[G]);else{let R=[this.rules[c]];for(let O=c-1;O>=n;O--){let W=this.rules[O],V=W.media,$=V.features[L],H=V.features[G];if(!$&&(!H||H.value!==T||W.hasWhere!==u))break;R.unshift(W)}for(let O=0;O<R.length;O++){let W=R[O];if(!W.media.features[L]){if(W.order>=b)break;s=c-R.length+2+O}}}break}}}if(s===void 0)if(n===-1)s=l+1;else if(f!==-1)s=n+h(this.rules.slice(n),void 0,p=>p.media.features[G]||p.media.features[L]);else if(u){let p=n;for(;p<this.rules.length;p++){let d=this.rules[p];if(d.priority!==-1||!d.hasWhere||d.order>=b){s=p;break}}s===void 0&&(s=p)}else for(let p=n;p<=l;p++){s=p;let d=this.rules[p],c=d.media;if(d.priority!==-1||c.features[G]||c.features[L])break;if(d.hasWhere)s++;else if(d.order>=b)break}}else if(f===-1)if(u)s=this.rules.findIndex(n=>!n.hasWhere||n.media||n.priority!==-1||n.order>=b),s===-1&&(s=l+1);else{let n=0;for(;n<this.rules.length;n++){let p=this.rules[n];if(p.media||!p.hasWhere&&(p.order>=b||p.priority!==-1)){s=n;break}}s===void 0&&(s=n)}else s=h(this.rules,void 0,n=>n.media);if(this.rules.splice(s,0,i),this.ruleOfClass[v]=i,this.style){let n=this.style.sheet,p=0,d=c=>{let g=this.rules[c];if(g){if(!g.natives.length)return d(c-1);let x=g.natives[g.natives.length-1].cssRule;for(let y=0;y<n.cssRules.length;y++)if(n.cssRules[y]===x){p=y+1;break}}};d(s-1);for(let c=0;c<i.natives.length;)try{let g=i.natives[c];n.insertRule(g.text,p),g.cssRule=n.cssRules[p++],c++}catch(g){console.error(g),i.natives.splice(c,1)}}}delete(i){let a=this.style.sheet,s=l=>{let m=this.ruleOfClass[l];if(!(!m||l in this.relations&&this.relations[l].some(b=>b in this.countOfClass))){if(m.natives.length){let b=m.natives[0];for(let f=0;f<a.cssRules.length;f++)if(a.cssRules[f]===b.cssRule){for(let v=0;v<m.natives.length;v++)a.deleteRule(f);this.rules.splice(this.rules.indexOf(m),1);break}}delete this.ruleOfClass[l]}};if(i in this.classes){for(let l of this.classes[i])l in this.countOfClass||s(l);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let a=this.findAndNew(i);if(Array.isArray(a))for(let s of a)this.insert(s);else a&&this.insert(a)}get text(){return this.rules.map(i=>i.natives.map(a=>a.text).join("")).join("")}},z=Li;Qr=new WeakMap,ee=new WeakMap,e(z,"instances",[]),e(z,"root");Gi&&(window.MasterCSS=z);var zi=typeof global<"u"?global:window;if(!zi.CSS&&!zi.CSS?.escape){let r=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(o),a=i.length,s=-1,l="",m,b=i.charCodeAt(0);if(a==1&&b==45)return"\\"+i;for(;++s<a;){if(m=i.charCodeAt(s),m==0){l+="\uFFFD";continue}if(m>=1&&m<=31||m==127||s==0&&m>=48&&m<=57||s==1&&m>=48&&m<=57&&b==45){l+="\\"+m.toString(16)+" ";continue}if(m>=128||m==45||m==95||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122){l+=i.charAt(s);continue}l+="\\"+i.charAt(s)}return l};zi.CSS||(zi.CSS={}),zi.CSS.escape=r}function Ro(r,o=new z({observe:!1})){if(!!r?.length){for(let i of r)i in o.countOfClass||(o.findAndInsert(i),o.countOfClass[i]=1);return o.rules.map(i=>i.natives.reduce((a,s)=>a+s.text,"")).join("")}}function _i(r,o=new z({observe:!1})){if(!r)return;let i=/\sclass="([^"]*)"/gm,a;for(;a=i.exec(r);){let s=a[1].replace(/\n/g,"").split(" ").filter(l=>l);for(let l of s)l in o.countOfClass||(o.findAndInsert(l),o.countOfClass[l]=1)}return o.rules.map(s=>s.natives.reduce((l,m)=>l+m.text,"")).join("")}function So(r,o=new z({observe:!1})){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${_i(r,o)}</style>`)}var xs=typeof document<"u"&&document;0&&(module.exports={Rule,Rules,breakpoints,colors,config,extend,fillColorScale,render,renderFromHTML,renderIntoHTML,root,rootSize,scheme,selectors,semantics,themes,values});
|
|
1
|
+
var $i=Object.defineProperty;var zo=Object.getOwnPropertyDescriptor;var _o=Object.getOwnPropertyNames;var Vo=Object.prototype.hasOwnProperty;var Ho=(r,o,i)=>o in r?$i(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var $o=(r,o)=>{for(var i in o)$i(r,i,{get:o[i],enumerable:!0})},Uo=(r,o,i,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of _o(o))!Vo.call(r,s)&&s!==i&&$i(r,s,{get:()=>o[s],enumerable:!(a=zo(o,s))||a.enumerable});return r};var Qo=r=>Uo($i({},"__esModule",{value:!0}),r);var e=(r,o,i)=>(Ho(r,typeof o!="symbol"?o+"":o,i),i),ko=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var te=(r,o,i)=>(ko(r,o,"read from private field"),i?i.call(r):o.get(r)),po=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},ho=(r,o,i,a)=>(ko(r,o,"write to private field"),a?a.call(r,i):o.set(r,i),i);var vs={};$o(vs,{Rule:()=>t,Rules:()=>co,breakpoints:()=>re,colors:()=>Ui,config:()=>Ni,default:()=>H,extend:()=>Ur,fillColorScale:()=>j,render:()=>Ro,renderFromHTML:()=>_i,renderIntoHTML:()=>So,root:()=>xs,rootSize:()=>Qi,scheme:()=>Ji,selectors:()=>Yi,semantics:()=>Xi,themes:()=>Zi,values:()=>Ki});module.exports=Qo(vs);var Yo={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},re=Yo;function Xr(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function Co(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function j(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let a in r)if(a&&+a>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let a=0,s="0"in r?Xr(r[0]):[0,0,0],c,d,g=[],l=()=>{let p=c-a,v=d.map((f,n)=>(f-s[n])/p);for(let f of g){let n=f-a,u=s.map((C,b)=>Math.round(C+v[b]*n));r[f]="#"+Co.call(this,...u)}};for(let p=1;p<100;p++)p in r?(g.length?(c=p,d=Xr(r[p]),l(),g.length=0,s=d):s=Xr(r[p]),a=p):g.push(p);g.length&&(c=100,d="100"in r?Xr(r[100]):[255,255,255],l())}return o||(r[""]=r[i?"500":"50"]),r}var Xo={slate:j({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:j({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:j({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:j({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:j({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:j({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:j({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:j({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:j({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:j({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:j({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:j({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:j({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:j({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:j({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:j({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:j({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:j({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:j({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:j({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"},Ui=Xo;var Qi=16;var Zo={"::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("},Yi=Zo;var Jo={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"}},Xi=Jo;var qo=["dark","light"],Zi=qo;var Ko={storage:{sync:!0,key:"scheme"}},Ji=Ko;var Zr={content:"content-box",border:"border-box",padding:"padding-box"},qi={min:"min-content",max:"max-content"},Q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in re)Q[r]=re[r]/16+"rem";var es={BackgroundClip:Zr,BackgroundOrigin:Zr,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Zr,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:qi,GridAutoRows:qi,GridTemplateColumns:qi,GridTemplateRows:qi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Zr,margin:"margin-box"},TransformBox:{...Zr,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:Q,MinWidth:Q,MinHeight:Q,MaxWidth:Q,MaxHeight:Q,Height:Q,FlexBasis:Q},Ki=es;function eo(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function wo(r){let o=g=>g==="+"||g==="-"||g==="*"||g==="/",i="",a,s="",c=!1;function d(){a=null,s=""}for(let g=0;g<r.length;g++){let l=r[g];if(l==="("||l===")")c=l===")",i+=s+l,d();else if(l===",")i+=s+l+" ",d();else{switch(a){case 1:break;case 2:if(o(l)){i+=s+" "+l+" ",d();continue}break;default:c&&(s+=" "),isNaN(+l)?o(l)||(a=1):a=2;break}s+=l}}return s&&(i+=s),i}var ts=/^([+-.]?\d+(\.?\d+)?)(.*)?/,rs="var(--";function to(r,o,i,a,s,c,d){let g="",l="",p="",v,f=a&&r in a?a[r]:s&&r in s?s[r]:"";if(f){if(!o)return{value:f.toString(),unit:l,unitToken:p};r=f}if(typeof r=="number")g=r,l=o||"";else{if(i){let n=Object.keys(i),u=!1,C=!1;r=r.replace(new RegExp(`(^|,| |\\()(${n.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(b,T,m,h,O)=>{C=!0;let y=i[m]?.[h||""];if(y){let x;for(let R of d)if(x=y[R])break;if(x){u=!0;let R=x;if(O){let k=O.endsWith("%")?parseFloat(O)/100:+O;k=isNaN(k)?1:Math.min(Math.max(k,0),1),R+=Math.round(k*255).toString(16).toUpperCase().padStart(2,"0")}return T+R}}return b}),C&&(v=u)}if(o){let n=r.match(ts);if(n)if(r.includes("/")){let u=r.split("/");return{value:+u[0]/+u[1]*100+"%",unit:l,unitToken:p}}else return g=+n[1],l=p=n[3]||"",l||((o==="rem"||o==="em")&&(g=g/c),l=o||""),{value:g,unit:l,unitToken:p}}g=(r.indexOf("calc(")===-1?r:wo(r)).replace(/\$\(((\w|-)+)\)/g,rs+"$1)")}return{value:g,unit:l,unitToken:p,colorMatched:v}}var Ve={"(":")","'":"'","{":"}"};var Oo=[":disabled",":active",":focus",":hover"],ro="matches",is="semantics",Mo="symbol",Bo="width",go="max-"+Bo,xo="min-"+Bo,bo="motion",Io="reduce",Ao=Io+"d-"+bo,vo="px",os="rem",ss=["!","*",">","+","~",":","[","@","_"],as=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,ns=r=>r.split(as).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,a){this.className=o;this.matching=i;this.css=a;let s=this.constructor,{id:c,unit:d,colorful:g,prop:l}=s,{rootSize:p}=a.config,{themeNames:v,colorsThemesMap:f,selectors:n,globalValues:u,breakpoints:C,mediaQueries:b}=a,T=a.values[c],m=a.relationThemesMap[o],h=o,O,y,x,R;if(i.origin===is){let[D,w]=i.value;x=h.slice(D.length),O=w}else{let D;if(i.origin===ro)if(c==="Group"){let B=0;for(;B<h.length&&!(h[B]==="{"&&h[B-1]!=="\\");B++);y=h.slice(0,B),D=h.slice(B)}else{let B=h.indexOf(":");this.prefix=h.slice(0,B+1),this.prefix.includes("(")?(this.prefix=void 0,D=h):D=h.slice(B+1)}else i.origin===Mo&&(this.symbol=h[0],D=h.slice(1));R=[];let w="",M=0;(function B(N,A,I=""){let S,F=!1;for(N&&(N===")"&&w.slice(-1)==="$"?S=w.length-1:N==="'"&&(F=!0),w+=D[M++]);M<D.length;M++){let W=D[M];if(W===N){if(w+=W,F){let L=0;for(let $=w.length-2;w[$]==="\\";$--)L++;if(L%2)continue}S!==void 0&&(w=w.slice(0,S)+w.slice(S).replace(/\$\((.*)\)/,"var(--$1)")),A||(F?R.push(w):R.push({value:w}),I="",w="");break}else if(!F&&W in Ve)B(Ve[W],A===void 0?0:A+1,I);else if(W==="|"&&N!=="}"&&(!F||I==="path"))N?w+=" ":(R.push({value:w}),w="");else{if(!N){if(W==="."){if(isNaN(+D[M+1]))break;D[M-1]==="-"&&(w+="0")}else if(W===","){w&&(R.push({value:w}),w=""),R.push(",");continue}else if(W==="#"&&(w||R.length&&D[M-1]!=="|")||ss.includes(W))break;I+=W}w+=W}}})(),w&&R.push({value:w}),x=D.slice(M)}x[0]==="!"&&(this.important=!0,x=x.slice(1));let k=D=>{let w=ns(D),M=[],B="",N=0;for(let A=0;A<w.length;A++){let I=w[A];if(I==="\\"){B+=I+w[++A];continue}!N&&I===","?(M.push(B),B=""):(B+=I,N&&I===")"?N--:I==="("&&N++)}return B&&M.push(B),M};this.prefixSelectors=y?k(y):[""];let P=x.split("@"),E=P[0];if(E){this.vendorSuffixSelectors={};let D=(A,I,S,F)=>{for(let[W,L]of I)if(W.test(A)){for(let $ of L)D(A.replace(W,$),I,S,!0);return}F&&S.push(A)},w=[];""in n?D(E,n[""],w,!0):w.push(E);let M={};for(let[A,I]of Object.entries(n)){if(!A)continue;let S=[];for(let F of w)D(F,I,S,!1);S.length&&(M[A]=S)}let B=(A,I)=>{let S=I.reduce((F,W)=>(F.push(...k(W)),F),[]);A in this.vendorSuffixSelectors?this.vendorSuffixSelectors[A].push(...S):this.vendorSuffixSelectors[A]=S},N=Object.keys(M);if(N.length)for(let A of N)B(A,M[A]);else B("",w);for(let A of Object.values(this.vendorSuffixSelectors))for(let I of A){this.hasWhere!==!1&&(this.hasWhere=I.includes(":where("));for(let S=0;S<Oo.length;S++)if(I.includes(Oo[S])){(this.priority===-1||this.priority>S)&&(this.priority=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let D=1;D<P.length;D++){let w=P[D];if(w)if(v.includes(w))this.theme=w;else if(w==="rtl"||w==="ltr")this.direction=w;else{let M,B,N=w.indexOf("_");if(N!==-1)M=w.slice(0,N),B=w.slice(N);else{let A=w.indexOf("(");A!==-1&&(M=w.slice(0,A),B=w.slice(A))}if(!M){M="media";let A=[];this.media={token:w,features:{}};let I=w.split("&");for(let S of I)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")A.push("(orientation:"+S+")");else if(S===bo||S===Ao)A.push("(prefers-"+Ao+":"+(S===bo?"no-preference":Io)+")");else if(b&&S in b)A.push(b[S]);else{let F={token:S},W="",L="",$=0;S.startsWith("<=")?(L="<=",W=go):S.startsWith(">=")||C[S]?(L=">=",W=xo):S.startsWith(">")?(L=">",W=xo,$=.02):S.startsWith("<")&&(L="<",W=go,$=-.02);let U=L?S.replace(L,""):S,G=C[U];switch(W){case go:case xo:G?Object.assign(F,to(G,vo)):Object.assign(F,to(U,vo)),F.unit===vo&&(F.value+=$),this.media.features[W]=F,A.push("("+W+":"+(F.value+F.unit)+")");break}}B="",this.media.type&&(B=this.media.type),A.length&&(B+=(B?" and ":"")+A.join(" and "))}B&&(this.at[M]=(M in this.at?this.at[M]+" and ":"")+B.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let z=(D,w)=>{let M,B,N=(I,S,F)=>{let W="";this.direction&&(W+="[dir="+this.direction+"] ");let L=this.prefixSelectors.map(G=>G+W),$=(G,Vi)=>{let Yr=G?"."+G+" ":"",uo="."+CSS.escape(Vi);return L.map(Hi=>Yr+Hi).reduce((Hi,Lo)=>(Hi.push(F.reduce((To,Go)=>(To.push(Lo+uo+Go),To),[]).join(",")),Hi),[]).join(",")},U=$(S,o)+(m?Object.entries(m).filter(([G])=>this.theme||!g||!S||!G||G===S).map(([G,Vi])=>Vi.reduce((Yr,uo)=>Yr+","+$(this.theme??(g&&S||G),uo),"")).join(""):"")+"{"+I+"}";for(let G of Object.keys(this.at).sort((Vi,Yr)=>Yr==="supports"?-1:1))U="@"+G+" "+this.at[G]+"{"+U+"}";return U},A=[];if(R){let I,S;for(let F of R)typeof F=="string"?A.push(F):(I=to(F.value,d,g&&f,T,u,p,this.theme?[this.theme,""]:[D]),I.colorMatched!==void 0&&S!==!0&&(S=I.colorMatched),A.push(I.value+I.unit));if(w&&(S===void 0?D:!S))return;if(A.length===1?I?(M=I.value,B=I.unit):M=A[0]:M=A.reduce((F,W,L)=>F+W+(W===","||R[L+1]===","||L===R.length-1?"":" "),""),typeof M!="object"){this.parseValue&&(M=this.parseValue(M,this.css.config)),g&&M==="current"?M="currentColor":T&&M in T?M=T[M].toString():M in u&&(M=u[M].toString());let F={unit:B,value:M,important:this.important};if(this.getThemeProps){let W=this.getThemeProps(F,a);for(let L in W)for(let $ of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:B,value:M,text:N(Object.entries(W[L]).map(([U,G])=>eo(U,{important:this.important,unit:"",value:G})).join(";"),L,$),theme:L});return}else this.get&&(M=this.get(F))}}else M=O;for(let I of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:B,value:M,text:N(typeof M=="object"?Object.entries(M).map(([S,F])=>eo(S,{...typeof F=="object"?F:{unit:"",value:F},important:this.important})).join(";"):eo(l,{unit:B,value:M,important:this.important}),D,I),theme:D})};if(this.getThemeProps)z(void 0,!1);else if(this.theme)z(this.theme,!1);else if(g)for(let D of v)z(D,!0);else z("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;theme;unitToken;hasWhere;priority=-1;natives=[];static get prop(){return this.id?.replace(/(?!^)[A-Z]/g,o=>"-"+o).toLowerCase()}static match(o,i){let{matches:a,colorStarts:s,symbol:c,prop:d}=this;if(a&&a.test(o))return{origin:ro};if(s&&(o.match("^"+s+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))")||i.length&&o.match("^"+s+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:ro};if(c&&o.startsWith(c))return{origin:Mo};if(d&&o.startsWith(d+":"))return{origin:ro}}};e(t,"id"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",os),e(t,"colorful");var ie=class extends t{};e(ie,"id","FontWeight"),e(ie,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(ie,"unit","");var He=class extends t{};e(He,"id","FontFamily"),e(He,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/);var $e=class extends t{};e($e,"id","FontSize"),e($e,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Ue=class extends t{static get prop(){return""}get(r){let i=this.prefix[0]==="m"?"margin":"padding",a=i+"-left",s=i+"-right",c=i+"-top",d=i+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[s]:r};case"y":return{[c]:r,[d]:r};case"l":return{[a]:r};case"r":return{[s]:r};case"t":return{[c]:r};case"b":return{[d]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Ue,"id","Spacing"),e(Ue,"matches",/^[pm][xytblr]?:./);var Qe=class extends t{};e(Qe,"id","Width"),e(Qe,"matches",/^w:./);var Ye=class extends t{};e(Ye,"id","Height"),e(Ye,"matches",/^h:./);var Xe=class extends t{};e(Xe,"id","MinWidth"),e(Xe,"matches",/^min-w:./);var Ze=class extends t{};e(Ze,"id","MinHeight"),e(Ze,"matches",/^min-h:./);var oe=class extends t{};e(oe,"id","LetterSpacing"),e(oe,"matches",/^ls:./),e(oe,"unit","em");var ls="subpixel-antialiased",Fo="-webkit-font-smoothing",Do="-moz-osx-font-smoothing",se=class extends t{static get prop(){return""}get(r){let o={};switch(r.value){case ls:o[Fo]=o[Do]={...r,value:"auto"};break;case"antialiased":o[Fo]={...r,value:"antialiased"},o[Do]={...r,value:"grayscale"};break}return o}};e(se,"id","FontSmoothing"),e(se,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(se,"unit","");var ae=class extends t{};e(ae,"id","FontStyle"),e(ae,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(ae,"unit","deg");var Je=class extends t{};e(Je,"id","FontVariantNumeric"),e(Je,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/);var qe=class extends t{};e(qe,"id","FontFeatureSettings"),e(qe,"matches",/^font-feature:./);var ne=class extends t{};e(ne,"id","LineHeight"),e(ne,"matches",/^lh:./),e(ne,"unit","");var Ke=class extends t{};e(Ke,"id","ObjectFit"),e(Ke,"matches",/^(object|obj):(contain|cover|fill|scale-down)/);var et=class extends t{};e(et,"id","ObjectPosition"),e(et,"matches",/^(object|obj):(top|bottom|right|left|center)/);var tt=class extends t{};e(tt,"id","TextAlign"),e(tt,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/);var le=class extends t{order=-1};e(le,"id","TextDecoration"),e(le,"matches",/^t(ext)?:(underline|line-through|overline)/),e(le,"colorful",!0);var rt=class extends t{};e(rt,"id","TextTransform"),e(rt,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/);var it=class extends t{};e(it,"id","VerticalAlign"),e(it,"matches",/^(?:v|vertical):./);var ce=class extends t{static get prop(){return""}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(ce,"id","Lines"),e(ce,"matches",/^lines:./),e(ce,"unit","");var de=class extends t{};e(de,"id","TransformOrigin"),e(de,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(de,"unit","px");var ot=class extends t{};e(ot,"id","TransformStyle"),e(ot,"matches",/^transform:(flat|preserve-3d)(?!\|)/);var st=class extends t{};e(st,"id","TransformBox"),e(st,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/);var fe=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,a,s,c)=>{let d,g;switch(a){case"translate":d="rem";break;case"skew":d="deg";break;case"rotate":s==="3d"&&(g=!0),d="deg";break;default:return i}let l=c.split(",");return i.replace(c,l.map((p,v)=>!g||l.length-1===v?Number.isNaN(+p)?p:p/(d==="rem"?o:1)+d:p).join(","))})}};e(fe,"id","Transform"),e(fe,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(fe,"unit","");var at=class extends t{order=-1};e(at,"id","Transition"),e(at,"symbol","~");var me=class extends t{};e(me,"id","TransitionDelay"),e(me,"matches",/^~delay:./),e(me,"unit","ms");var ue=class extends t{};e(ue,"id","TransitionDuration"),e(ue,"matches",/^~duration:./),e(ue,"unit","ms");var nt=class extends t{};e(nt,"id","TransitionProperty"),e(nt,"matches",/^~property:./);var lt=class extends t{};e(lt,"id","TransitionTimingFunction"),e(lt,"matches",/^~easing:./);var ct=class extends t{};e(ct,"id","MaxHeight"),e(ct,"matches",/^max-h:./);var dt=class extends t{};e(dt,"id","MaxWidth"),e(dt,"matches",/^max-w:./);var ft=class extends t{};e(ft,"id","Display"),e(ft,"matches",/^d:./);var mt=class extends t{};e(mt,"id","BoxSizing"),e(mt,"matches",/^box:(content|border)(?!\|)/);var ut=class extends t{};e(ut,"id","Opacity"),e(ut,"unit","");var Jr=class extends t{};e(Jr,"id","Visibility");var qr=class extends t{};e(qr,"id","Clear");var Kr=class extends t{};e(Kr,"id","Float");var ei=class extends t{};e(ei,"id","Isolation");var pt=class extends t{static get prop(){return""}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(pt,"id","Overflow"),e(pt,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var ht=class extends t{static get prop(){return""}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(ht,"id","OverscrollBehavior"),e(ht,"matches",/^overscroll-behavior(?:-[xy])?:/);var pe=class extends t{};e(pe,"id","ZIndex"),e(pe,"matches",/^z:./),e(pe,"unit","");var he=class extends t{};e(he,"id","AnimationDelay"),e(he,"matches",/^@delay:./),e(he,"unit","ms");var gt=class extends t{};e(gt,"id","AnimationDirection"),e(gt,"matches",/^@direction:./);var xt=class extends t{};e(xt,"id","AnimationFillMode"),e(xt,"matches",/^@fill-mode:./);var ge=class extends t{};e(ge,"id","AnimationIterationCount"),e(ge,"matches",/^@iteration-count:./),e(ge,"unit","");var vt=class extends t{};e(vt,"id","AnimationName"),e(vt,"matches",/^@name:./);var bt=class extends t{};e(bt,"id","AnimationPlayState"),e(bt,"matches",/^@play-state:./);var yt=class extends t{};e(yt,"id","AnimationTimingFunction"),e(yt,"matches",/^@easing:./);var xe=class extends t{order=-1};e(xe,"id","Animation"),e(xe,"symbol","@"),e(xe,"unit","");var io="border-";function Y(r,o,i=""){i&&(i="-"+i);let a=/^b(order)?-?(.)?/.exec(r)[2],s=io+"left"+i,c=io+"right"+i,d=io+"top"+i,g=io+"bottom"+i;switch(a){case"x":return{[s]:o,[c]:o};case"y":return{[d]:o,[g]:o};case"l":return{[s]:o};case"r":return{[c]:o};case"t":return{[d]:o};case"b":return{[g]:o};default:return{["border"+i]:o}}}var X=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(X,"id","BorderColor"),e(X,"matches",/^border(-(left|right|top|bottom))?-color:./),e(X,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(X,"colorful",!0);var oo="border-top-left-radius",so="border-top-right-radius",ao="border-bottom-left-radius",no="border-bottom-right-radius",Wo="border-radius",cs=[oo,so,ao,no],Rt=class extends t{static get prop(){return""}get(r){if(this.prefix){let i="",a=this.prefix.split("-");if(a.length>1)for(let s=1;s<a.length-1;s++)i+=a[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[oo]:r,[so]:r};case"tl":case"lt":return{[oo]:r};case"rt":case"tr":return{[so]:r};case"b":return{[ao]:r,[no]:r};case"bl":case"lb":return{[ao]:r};case"br":case"rb":return{[no]:r};case"l":return{[oo]:r,[ao]:r};case"r":return{[so]:r,[no]:r};default:return{[Wo]:r}}}let o=this.prefix?.slice(0,-1);return{[cs.includes(o)?o:Wo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Rt,"id","BorderRadius"),e(Rt,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var St=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(St,"id","BorderStyle"),e(St,"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 Tt=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Tt,"id","BorderWidth"),e(Tt,"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 ve=class extends t{static get prop(){return""}get(r){return Y(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(ve,"id","Border"),e(ve,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(ve,"colorful",!0);var kt=class extends t{};e(kt,"id","BackgroundAttachment"),e(kt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/);var ti=class extends t{};e(ti,"id","BackgroundBlendMode");var Ct=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(Ct,"id","BackgroundClip"),e(Ct,"matches",/^(bg|background):text(?!\|)/);var Z=class extends t{};e(Z,"id","BackgroundColor"),e(Z,"colorStarts","(bg|background):"),e(Z,"unit",""),e(Z,"colorful",!0);var wt=class extends t{};e(wt,"id","BackgroundOrigin"),e(wt,"matches",/^(bg|background):(content|border|padding)(?!\|)/);var be=class extends t{};e(be,"id","BackgroundPosition"),e(be,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(be,"unit","px");var Ot=class extends t{};e(Ot,"id","BackgroundRepeat"),e(Ot,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/);var Mt=class extends t{};e(Mt,"id","BackgroundSize"),e(Mt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/);var ye=class extends t{};e(ye,"id","BackgroundImage"),e(ye,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(ye,"colorful",!0);var Re=class extends t{order=-1};e(Re,"id","Background"),e(Re,"matches",/^bg:./),e(Re,"colorful",!0);var At=class extends t{};e(At,"id","MixBlendMode"),e(At,"matches",/^blend:./);var ri=class extends t{};e(ri,"id","Position");var Bt=class extends t{static get prop(){return""}get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Bt,"id","Placement"),e(Bt,"matches",/^(top|left|right|bottom|center|middle):./);function lo(r,o,{rootSize:i}){let a="",s=0;return function c(d,g){let l="",p=g?o(g):"",v=()=>{l&&(a+=!p||Number.isNaN(+l)?l:+l/(p==="rem"?i:1)+p,l="")};for(;s<r.length;s++){let f=r[s];if(f===d&&(d!=="'"||r[s+1]===")")){v(),a+=f;break}else f===","||f===" "?(v(),a+=f):!l&&f==="'"?(a+=f,s++,c(f),l=""):l&&f==="("?(a+=l+f,s++,c(")",l),l=""):l+=f}v()}(),a}var Se=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return lo(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(Se,"id","BackdropFilter"),e(Se,"matches",/^bd:./),e(Se,"colorful",!0);var Te=class extends t{};e(Te,"id","Fill"),e(Te,"colorStarts","fill:"),e(Te,"colorful",!0);var It=class extends t{};e(It,"id","Stroke"),e(It,"colorful",!0);var Ft=class extends t{};e(Ft,"id","StrokeWidth"),e(Ft,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var ke=class extends t{parseValue(r,o){return lo(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(ke,"id","Filter"),e(ke,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(ke,"colorful",!0);var ii=class extends t{};e(ii,"id","Cursor");var oi=class extends t{};e(oi,"id","PointerEvents");var si=class extends t{};e(si,"id","Resize");var ai=class extends t{};e(ai,"id","TouchAction");var ni=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(ni,"id","UserDrag");var li=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(li,"id","UserSelect");var Ce=class extends t{};e(Ce,"id","BoxShadow"),e(Ce,"matches",/^s(?:hadow)?:./),e(Ce,"colorful",!0);var Dt=class extends t{};e(Dt,"id","TextShadow"),e(Dt,"colorful",!0);var Po=.5,Wt=class extends t{static get prop(){return""}get(r){let{unit:o,value:i}=r;return{"font-size":r,"line-height":{...r,value:o==="rem"?i+Po+o:`calc(${i}${o} + ${Po}rem)`,unit:""}}}};e(Wt,"id","TextSize"),e(Wt,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Pt=class extends t{};e(Pt,"id","WordBreak"),e(Pt,"unit","");var we=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(we,"id","GridColumns"),e(we,"matches",/^grid-cols:./),e(we,"unit","");var jt=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(jt,"id","GridRows"),e(jt,"unit","");var Et=class extends t{static get prop(){return""}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(Et,"id","Gap"),e(Et,"matches",/^gap(-x|-y)?:./);var Nt=class extends t{};e(Nt,"id","WordSpacing"),e(Nt,"unit","em");var Oe=class extends t{static get prop(){return""}get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Oe,"id","Variable"),e(Oe,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(Oe,"unit","");var Me=class extends t{};e(Me,"id","AspectRatio"),e(Me,"matches",/^aspect:./),e(Me,"unit","");var Lt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Lt,"id","BoxDecorationBreak"),e(Lt,"matches",/^box:(slice|clone)(?!\|)/);var ci=class extends t{};e(ci,"id","BreakAfter");var di=class extends t{};e(di,"id","BreakBefore");var fi=class extends t{};e(fi,"id","BreakInside");var Gt=class extends t{};e(Gt,"id","FlexShrink"),e(Gt,"unit","");var zt=class extends t{};e(zt,"id","FlexDirection"),e(zt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/);var _t=class extends t{};e(_t,"id","FlexGrow"),e(_t,"unit","");var Vt=class extends t{};e(Vt,"id","FlexWrap"),e(Vt,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/);var mi=class extends t{};e(mi,"id","FlexBasis");var Ht=class extends t{order=-1};e(Ht,"id","Flex"),e(Ht,"unit","");var Ae=class extends t{};e(Ae,"id","Order"),e(Ae,"matches",/^o:./),e(Ae,"unit","");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","GridColumn"),e(Be,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Be,"unit","");var $t=class extends t{};e($t,"id","ColumnSpan"),e($t,"matches",/^col-span:./);var Ie=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Ie,"id","GridRow"),e(Ie,"matches",/^grid-row-span:./),e(Ie,"unit","");var J=class extends t{};e(J,"id","Color"),e(J,"colorStarts","(?:color|fg|foreground):"),e(J,"colorful",!0),e(J,"unit","");var Ut=class extends t{};e(Ut,"id","AlignContent"),e(Ut,"matches",/^ac:./);var Qt=class extends t{};e(Qt,"id","AlignItems"),e(Qt,"matches",/^ai:./);var Yt=class extends t{};e(Yt,"id","AlignSelf"),e(Yt,"matches",/^as:./);var Xt=class extends t{};e(Xt,"id","GridAutoColumns"),e(Xt,"matches",/^grid-auto-cols:./);var Zt=class extends t{};e(Zt,"id","GridAutoFlow"),e(Zt,"matches",/^grid-flow:./);var ui=class extends t{};e(ui,"id","GridAutoRows");var Jt=class extends t{};e(Jt,"id","JustifyContent"),e(Jt,"matches",/^jc:./);var qt=class extends t{};e(qt,"id","JustifyItems"),e(qt,"matches",/^ji:./);var Kt=class extends t{};e(Kt,"id","JustifySelf"),e(Kt,"matches",/^js:./);var pi=class extends t{order=-1};e(pi,"id","PlaceContent");var hi=class extends t{order=-1};e(hi,"id","PlaceItems");var gi=class extends t{order=-1};e(gi,"id","PlaceSelf");var er=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(er,"id","Padding"),e(er,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var tr=class extends t{static get prop(){return""}get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(tr,"id","Margin"),e(tr,"matches",/^margin(-(left|right|top|bottom))?:./);var rr=class extends t{};e(rr,"id","TextOverflow"),e(rr,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/);var ir=class extends t{};e(ir,"id","ListStylePosition"),e(ir,"matches",/^list-style:(inside|outside)(?!\|)/);var or=class extends t{};e(or,"id","ListStyleType"),e(or,"matches",/^list-style:(disc|decimal)(?!\|)/);var xi=class extends t{order=-1};e(xi,"id","ListStyle");var Fe=class extends t{};e(Fe,"id","TextDecorationColor"),e(Fe,"colorStarts","text-decoration:"),e(Fe,"colorful",!0);var sr=class extends t{};e(sr,"id","TextDecorationStyle"),e(sr,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/);var De=class extends t{};e(De,"id","TextDecorationThickness"),e(De,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(De,"unit","em");var vi=class extends t{};e(vi,"id","TextIndent");var bi=class extends t{};e(bi,"id","Content");var We=class extends t{};e(We,"id","OutlineColor"),e(We,"colorStarts","outline:"),e(We,"colorful",!0);var yi=class extends t{};e(yi,"id","OutlineOffset");var ar=class extends t{};e(ar,"id","OutlineStyle"),e(ar,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/);var nr=class extends t{};e(nr,"id","OutlineWidth"),e(nr,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var lr=class extends t{order=-1};e(lr,"id","Outline"),e(lr,"colorful",!0);var cr=class extends t{};e(cr,"id","BorderCollapse"),e(cr,"matches",/^b(order)?:(collapse|separate)(?!\|)/);var Ri=class extends t{};e(Ri,"id","BorderSpacing");var Si=class extends t{};e(Si,"id","TableLayout");var Pe=class extends t{};e(Pe,"id","AccentColor"),e(Pe,"colorStarts","accent:"),e(Pe,"colorful",!0);var Ti=class extends t{};e(Ti,"id","Appearance");var je=class extends t{};e(je,"id","CaretColor"),e(je,"colorStarts","caret:"),e(je,"colorful",!0);var ki=class extends t{};e(ki,"id","ScrollBehavior");var dr=class extends t{static get prop(){return""}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(dr,"id","ScrollMargin"),e(dr,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var fr=class extends t{static get prop(){return""}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(fr,"id","ScrollPadding"),e(fr,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var mr=class extends t{};e(mr,"id","ScrollSnapAlign"),e(mr,"matches",/^scroll-snap:(start|end|center)/);var ur=class extends t{};e(ur,"id","ScrollSnapStop"),e(ur,"matches",/^scroll-snap:(normal|always)(?!\|)/);var pr=class extends t{};e(pr,"id","ScrollSnapType"),e(pr,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/);var Ci=class extends t{};e(Ci,"id","WillChange");var wi=class extends t{};e(wi,"id","TextUnderlineOffset");var hr=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(hr,"id","Inset"),e(hr,"matches",/^(?:top|bottom|left|right):./);var Ee=class extends t{order=-1};e(Ee,"id","Columns"),e(Ee,"matches",/^(columns|cols):./),e(Ee,"unit","");var gr=class extends t{};e(gr,"id","WhiteSpace"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","TextOrientation"),e(xr,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/);var vr=class extends t{};e(vr,"id","WritingMode"),e(vr,"matches",/^writing:./);var Oi=class extends t{};e(Oi,"id","Contain");var Ne=class extends t{};e(Ne,"id","AnimationDuration"),e(Ne,"matches",/^@duration:./),e(Ne,"unit","ms");var br=class extends t{};e(br,"id","TextRendering"),e(br,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/);var Mi=class extends t{};e(Mi,"id","Direction");var yr=class extends t{};e(yr,"id","TextDecorationLine"),e(yr,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/);var Le=class extends t{};e(Le,"id","GridColumnStart"),e(Le,"matches",/^grid-col-start:./),e(Le,"unit","");var Rr=class extends t{};e(Rr,"id","ListStyleImage"),e(Rr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/);var Sr=class extends t{};e(Sr,"id","ShapeOutside"),e(Sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/);var Tr=class extends t{};e(Tr,"id","ShapeMargin"),e(Tr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var kr=class extends t{};e(kr,"id","ShapeImageThreshold"),e(kr,"unit","");var Cr=class extends t{};e(Cr,"id","ClipPath"),e(Cr,"matches",/^clip:./);var Ai=class extends t{order=-1};e(Ai,"id","Grid");var Ge=class extends t{order=-1};e(Ge,"id","Font"),e(Ge,"matches",/^f:./),e(Ge,"unit","");var Bi=class extends t{};e(Bi,"id","Quotes");var Ii=class extends t{order=-1};e(Ii,"id","GridTemplate");var wr=class extends t{};e(wr,"id","GridRowStart"),e(wr,"unit","");var Fi=class extends t{};e(Fi,"id","GridTemplateAreas");var Or=class extends t{};e(Or,"id","GridTemplateColumns"),e(Or,"matches",/^grid-template-cols:./);var Di=class extends t{};e(Di,"id","GridTemplateRows");var Mr=class extends t{order=-1};e(Mr,"id","GridArea"),e(Mr,"unit","");var ze=class extends t{};e(ze,"id","GridColumnEnd"),e(ze,"matches",/^grid-col-end:./),e(ze,"unit","");var Ar=class extends t{};e(Ar,"id","GridRowEnd"),e(Ar,"unit","");var Wi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Wi,"id","MaskImage");var q=class extends t{static get prop(){return""}get(r){return{"-webkit-text-fill-color":r}}};e(q,"id","TextFillColor"),e(q,"matches",/^text-fill-color:./),e(q,"colorStarts","(text-fill|text|t):"),e(q,"colorful",!0);var Br=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke":r}}};e(Br,"id","TextStroke"),e(Br,"matches",/^text-stroke:./);var Ir=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-width":r}}};e(Ir,"id","TextStrokeWidth"),e(Ir,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var K=class extends t{static get prop(){return""}get(r){return{"-webkit-text-stroke-color":r}}};e(K,"id","TextStrokeColor"),e(K,"matches",/^text-stroke-color:./),e(K,"colorStarts","text-stroke:"),e(K,"colorful",!0);var Pi=class extends t{};e(Pi,"id","StrokeDasharray");var ji=class extends t{};e(ji,"id","StrokeDashoffset");var Fr=class extends t{};e(Fr,"id","X"),e(Fr,"unit","");var Dr=class extends t{};e(Dr,"id","Y"),e(Dr,"unit","");var Wr=class extends t{};e(Wr,"id","Cx"),e(Wr,"unit","");var Pr=class extends t{};e(Pr,"id","Cy"),e(Pr,"unit","");var jr=class extends t{};e(jr,"id","Rx"),e(jr,"unit","");var Er=class extends t{};e(Er,"id","Ry"),e(Er,"unit","");var Ei=class extends t{};e(Ei,"id","BorderImageOutset");var Nr=class extends t{};e(Nr,"id","BorderImageRepeat"),e(Nr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/);var Lr=class extends t{};e(Lr,"id","BorderImageSlice"),e(Lr,"unit","");var Gr=class extends t{};e(Gr,"id","BorderImageSource"),e(Gr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/);var zr=class extends t{};e(zr,"id","BorderImageWidth"),e(zr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/);var _r=class extends t{};e(_r,"id","BorderImage"),e(_r,"unit","");var ds=/\{(.*)\}/,_e=class extends t{static get prop(){return""}getThemeProps(r,o){let i={},a=(p,v)=>{let f=v.indexOf(":");if(f!==-1){p in i||(i[p]={});let n=i[p],u=v.slice(0,f);u in n||(n[u]=v.slice(f+1))}},s=p=>{let v=(f,n)=>{let u=n.slice(CSS.escape(p.className).length).match(ds)[1].split(";");for(let C of u)a(f,C)};if(this.theme){let f=p.natives.find(n=>n.theme===this.theme)??p.natives.find(n=>!n.theme);f&&v(this.theme,f.text)}else for(let f of p.natives)v(f.theme,f.text)},c=[],d="",g=()=>{d&&(c.push(d),d="")},l=1;(function p(v){for(;l<r.value.length;l++){let f=r.value[l];if(!v){if(f===";"){g();continue}if(f==="}")break}if(d+=f,v===f){if(v==="'"){let n=0;for(let u=d.length-2;d[u]==="\\";u--)n++;if(n%2)continue}break}else f in Ve&&v!=="'"&&(l++,p(Ve[f]))}})(void 0),g();for(let p of c){let v=o.findAndNew(p);if(Array.isArray(v))for(let f of v)s(f);else v?s(v):a(this.theme??"",p)}return i}};e(_e,"id","Group"),e(_e,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(_e,"unit","");var Vr=class extends t{};e(Vr,"id","CounterIncrement"),e(Vr,"unit","");var Hr=class extends t{};e(Hr,"id","CounterReset"),e(Hr,"unit","");var fs=[_e,Oe,$e,ie,He,se,ae,Je,qe,Ge,J,Ue,tr,er,mi,Vt,_t,Gt,zt,Ht,ft,Qe,Ye,Xe,Ze,Oi,bi,Vr,Hr,oe,ne,Ke,et,tt,Fe,sr,De,yr,le,wi,rr,xr,rt,br,vi,it,Ee,gr,hr,ce,ct,dt,mt,ut,Jr,qr,Kr,ei,pt,ht,pe,ri,Bt,ii,oi,si,ai,Pt,Nt,ni,li,Dt,Wt,q,Ir,K,Br,Ce,Si,st,ot,de,fe,nt,lt,ue,me,at,he,gt,Ne,xt,ge,vt,bt,yt,xe,X,Rt,St,Tt,cr,Ri,Ei,Nr,Lr,Gr,zr,_r,ve,kt,ti,Ct,Z,wt,be,Ot,Mt,ye,Re,At,Se,ke,Te,Pi,ji,Ft,It,Fr,Dr,Wr,Pr,jr,Er,Le,ze,Be,we,wr,Ar,Ie,jt,Xt,Zt,ui,Fi,Or,Di,Ii,Mr,Ai,Et,Ae,fi,di,ci,Lt,Me,$t,Ut,Qt,Yt,Jt,qt,Kt,pi,hi,gi,ir,or,Rr,xi,We,yi,ar,nr,lr,Pe,Ti,je,ki,dr,fr,mr,ur,pr,Ci,vr,Mi,Sr,Tr,kr,Cr,Bi,Wi],co=fs;var ms={colors:Ui,breakpoints:re,semantics:Xi,values:Ki,selectors:Yi,themes:Zi,scheme:Ji,Rules:co,rootSize:Qi},Ni=ms;function jo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function fo(r){return Object.prototype.toString.call(r).slice(8,-1)}function $r(r){return fo(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function yo(r){return fo(r)==="Symbol"}function Eo(r,o,i,a){let s={}.propertyIsEnumerable.call(a,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function No(r,o,i){if(!$r(o))return o;let a={};if($r(r)){let g=Object.getOwnPropertyNames(r),l=Object.getOwnPropertySymbols(r);a=[...g,...l].reduce((p,v)=>{let f=r[v];return(!yo(v)&&!Object.getOwnPropertyNames(o).includes(v)||yo(v)&&!Object.getOwnPropertySymbols(o).includes(v))&&Eo(p,v,f,r),p},{})}let s=Object.getOwnPropertyNames(o),c=Object.getOwnPropertySymbols(o);return[...s,...c].reduce((g,l)=>{let p=o[l],v=$r(r)?r[l]:void 0;v!==void 0&&$r(p)&&(p=No(v,p,i));let f=i?i(v,p,l):p;return Eo(g,l,f,o),g},a)}function Ur(r,...o){return o.filter(i=>$r(i)).reduce((i,a)=>No(i,a,jo),r)}var us=[",",".","#","[","!","*",">","+","~",":","@"],ps=/^::-[a-z]+-/m,mo,Gi=typeof window<"u";Gi&&(mo=document.createElement("style"),mo.title="master");var V="max-width",_="min-width",hs="attributes",gs=Gi?window.MutationObserver:Object,Qr,ee,Li=class extends gs{constructor(i){super(a=>{let s={},c=[],d=[],g=[],l=(n,u)=>{u?n.classList.forEach(v):n.classList.forEach(p);let C=n.children;for(let b=0;b<C.length;b++){let T=C[b];T.classList&&(d.push(T),l(T,u))}},p=n=>{n in s?s[n]++:s[n]=1},v=n=>{n in s?s[n]--:n in this.countOfClass&&(s[n]=-1)},f=(n,u)=>{for(let C=0;C<n.length;C++){let b=n[C];b.classList&&!d.includes(b)&&!g.includes(b)&&(b.isConnected!==u?(d.push(b),l(b,u)):g.push(b))}};for(let n=0;n<a.length;n++){let u=a[n],{addedNodes:C,removedNodes:b,type:T,target:m,oldValue:h}=u;if(T===hs){if(c.find(O=>O.target===m))continue;c.push(u)}else f(C,!1),(!m.isConnected||!d.includes(m))&&f(b,!0)}if(!(!c.length&&!Object.keys(s).length)){for(let{oldValue:n,target:u}of c){let C=d.includes(u),b=u.classList,T=n?n.split(" "):[];if(C){if(u.isConnected)continue;for(let m of T)b.contains(m)||v(m)}else if(u.isConnected){b.forEach(m=>{T.includes(m)||p(m)});for(let m of T)b.contains(m)||v(m)}}for(let n in s){let u=s[n],C=(this.countOfClass[n]||0)+u;C===0?(delete this.countOfClass[n],this.delete(n)):(n in this.countOfClass||this.findAndInsert(n),this.countOfClass[n]=C)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"values");e(this,"globalValues");e(this,"breakpoints");e(this,"mediaQueries");e(this,"schemeMQL");po(this,Qr,void 0);po(this,ee,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ur({observe:!0},i),this.options.config&&!this.options.override?this.config=Ur(Ni,this.options.config):this.config=Ni,this.cache(),Gi&&this.options.observe&&this.observe(document),Li.instances.push(this),this.ready=!0}static refresh(i){for(let a of this.instances)a.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==te(this,Qr)){ho(this,Qr,i);let{storage:a}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&a.sync&&localStorage.setItem(a.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return te(this,Qr)}set theme(i){i!==te(this,ee)&&(te(this,ee)&&this.host.classList.remove(te(this,ee)),ho(this,ee,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return te(this,ee)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={};let{semantics:i,classes:a,selectors:s,themes:c,colors:d,values:g,breakpoints:l,mediaQueries:p}=this.config;function v(m){return m.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function f(m,h,O="",y={}){let x=Object.entries(m);if(h&&O){let R={};for(let[k,P]of x)typeof P=="object"&&!Array.isArray(P)?f(P,h,O+"-"+k,y):R[k]=P;Object.keys(R).length&&(y[O]=R)}else for(let[R,k]of x){let P=(O?O+"-":"")+R;typeof k=="object"&&!Array.isArray(k)?f(k,h,P,y):y[P]=k}return y}if(i)for(let[m,h]of Object.entries(f(i,!0)))this.semantics.push([new RegExp("^"+v(m)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[m,h]]);if(s)for(let[m,h]of Object.entries(f(s,!1))){let O=new RegExp(v(m)+"(?![a-z-])");for(let y of Array.isArray(h)?h:[h]){let x=y.match(ps)?.[0]??"",R=this.selectors[x];R||(R=this.selectors[x]=[]);let k=R.find(([P])=>P===O);k||(k=[O,[]],R.push(k)),k[1].push(y)}}if(g)for(let[m,h]of Object.entries(g))typeof h=="object"?this.values[m]=f(h,!1):this.globalValues[m]=h;l&&(this.breakpoints=f(l,!1)),p&&(this.mediaQueries=f(p,!1));let n=a?f(a,!1):{},u=c&&!Array.isArray(c)?Object.entries(c).filter(([,{classes:m}])=>m).reduce((m,[h,{classes:O}])=>(m[h]=f(O,!1),m),{}):{},C=[...Object.keys(n),...Object.entries(u).flatMap(([m,h])=>Object.keys(h))],b=m=>{if(m in this.classes)return;let h=this.classes[m]=[],O=(y,x)=>{if(!x)return;let R=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let k of R){let P=E=>{E in this.relationThemesMap?y in this.relationThemesMap[E]?this.relationThemesMap[E][y].push(m):this.relationThemesMap[E][y]=[m]:this.relationThemesMap[E]={[y]:[m]},h.includes(E)||h.push(E)};if(C.includes(k)){b(k);for(let E of this.classes[k])P(E)}else P(k)}};O("",n?.[m]);for(let[y,x]of Object.entries(u))O(y,x?.[m])};for(let m of C)b(m);for(let m in this.relationThemesMap){let h=this.relations[m]=[];for(let O of Object.values(this.relationThemesMap[m]))for(let y of O)h.includes(y)||h.push(y)}let T=(m,h)=>{if(!!h)for(let O in h){let y=h[O];if(typeof y=="string"&&(y={"":y}),O in this.colorsThemesMap){let x=this.colorsThemesMap[O];for(let R in y){let k=y[R];R in x?x[R][m]=k:x[R]={[m]:k}}}else this.colorNames.push(O),this.colorsThemesMap[O]=Object.entries(y).reduce((x,[R,k])=>(x[R]={[m]:k},x),{})}};if(T("",f(d,!0)),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let m in c){let h=c[m];T(m,f(h.colors,!0)),this.themeNames.push(m)}for(let[m,h]of Object.entries(this.colorsThemesMap))for(let[O,y]of Object.entries(h))for(let[x,R]of Object.entries(y))if(!R.startsWith("#")){let[k,P]=R.split("-"),E=this.colorsThemesMap[k]?.[P??""],z="";E&&(z=(x?E[x]:void 0)??E[""],z&&(y[x]=z)),z||(console.warn(`\`${R}\` doesn't exist in the extended config \`.colors\``),Object.keys(y).length>1?delete y[x]:Object.keys(h).length>1?delete h[O]:(delete this.colorsThemesMap[m],this.colorNames.splice(this.colorNames.indexOf(m),1)))}}observe(i,a={subtree:!0,childList:!0}){if(Gi&&i){this.root=i;let s=i===document;s&&(Li.root=this),this.host=s?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let c=s?document.head:i,d=s?document.styleSheets:i.styleSheets;for(let l of d){let{title:p,href:v,ownerNode:f}=l;(p==="master"||v&&v.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(v))&&(this.style=f)}if(this.style)for(let l=0;l<this.style.sheet.cssRules.length;l++){let p=f=>{if(f.selectorText){let u=f.selectorText.split(", ")[0].split(" ");for(let C=0;C<u.length;C++){let b=u[C];if(b[0]==="."){let T=b.slice(1),m="";for(let h=0;h<T.length;h++){let O=T[h],y=T[h+1];if(O==="\\"){if(h++,y!=="\\"){m+=y;continue}}else if(us.includes(O))break;m+=O}if(!(m in this.ruleOfClass)&&!(m in this.classes)){let h=this.findAndNew(m);if(h)return h}}}}else if(f.cssRules)for(let n=0;n<f.cssRules.length;n++){let u=p(f.cssRules[n]);if(u)return u}},v=p(this.style.sheet.cssRules[l]);if(v){this.rules.push(v),this.ruleOfClass[v.className]=v;for(let f=0;f<v.natives.length;f++)v.natives[f].cssRule=this.style.sheet.cssRules[l+f];l+=v.natives.length-1}}else this.style=mo.cloneNode(),c.prepend(this.style);let g=l=>{l.forEach(p=>{p in this.countOfClass?this.countOfClass[p]++:(this.countOfClass[p]=1,this.findAndInsert(p))})};g(this.host.classList),a.subtree&&this.host.querySelectorAll("[class]").forEach(l=>g(l.classList)),super.observe(i,{...a,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a)}findAndNew(i){let a=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let c of this.config.Rules){let d=c.match(s,this.colorNames);if(d)return new c(s,d,this)}for(let c of this.semantics)if(s.match(c[0]))return new t(s,{origin:"semantics",value:c[1]},this)};return i in this.classes?this.classes[i].map(a).filter(s=>s):a(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let a=mo.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=Li.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:a}=this.config;if(a&&!a(i,this))return;let s,c=this.rules.length-1,{media:d,order:g,priority:l,hasWhere:p,className:v}=i,f=(n,u,C,b)=>{let T=0,m;u&&(T=n.findIndex(u)),C&&(m=n.findIndex(C)),T===-1&&(T=n.length),(m===void 0||m===-1)&&(m=n.length);let h=n.slice(T,m);for(let O=0;O<h.length;O++){let y=h[O];if(!(y.priority===-1||b&&b(y))&&(y.priority<l||y.priority===l&&(p&&!y.hasWhere||y.order>=g)))return T+O}return T+h.length};if(d){let n=this.rules.findIndex(u=>u.media);if(n!==-1){let u=d.features[V],C=d.features[_];if(u&&C){let b=u.value-C.value;for(let T=c;T>=n;T--){s=T;let m=this.rules[T],h=m.media,O=h.features[V],y=h.features[_];if(!O||!y){s++;break}let x=O.value-y.value;if(x===b){if(p!==m.hasWhere)continue;if(l!==-1){let R=[this.rules[T]];for(let k=T-1;k>=n;k--){let P=this.rules[k];if(P.hasWhere!==p)break;let E=P.media,z=E.features[V],D=E.features[_];if(!z||!D||z.value-D.value!==x)break;R.unshift(this.rules[k])}s=f(this.rules,k=>k.media&&k.priority!==-1&&k.media.features[_]&&k.media.features[V])}break}else if(x>b)break}}else if(C)for(let b=n;b<=c;b++){s=b;let T=this.rules[b],m=T.media,h=m.features[V],O=m.features[_];if(h){if(O)break;continue}let y=O?.value;if(y===C.value){if(!p&&T.hasWhere){s++;continue}if(l!==-1)s=f(this.rules,x=>x.media,x=>x.media&&x.priority!==-1&&x.media.features[_]&&x.media.features[V],x=>!x.media.features[_]&&!x.media.features[V]);else for(let x=b;x<=c;x++){let R=this.rules[x],k=R.media,P=k.features[_];if(!k.features[V]){if(R.hasWhere!==p||P.value!==y||R.order>=g)break;s=x+1}}break}else{if(y>C.value)break;s++}}else if(u)for(let b=c;b>=n;b--){s=b;let T=this.rules[b],m=T.media,h=m.features[V];if(m.features[_])continue;let y=h?.value;if(!y||y>u.value){s++;break}else if(y===u.value){if(p&&!T.hasWhere)continue;if(l!==-1)s=f(this.rules,x=>x.media,x=>x.media&&x.priority!==-1&&x.media.features[_]&&x.media.features[V],x=>!x.media.features[_]&&!x.media.features[V]);else{let x=[this.rules[b]];for(let R=b-1;R>=n;R--){let k=this.rules[R],P=k.media,E=P.features[_],z=P.features[V];if(!E&&(!z||z.value!==y||k.hasWhere!==p))break;x.unshift(k)}for(let R=0;R<x.length;R++){let k=x[R];if(!k.media.features[_]){if(k.order>=g)break;s=b-x.length+2+R}}}break}}}if(s===void 0)if(n===-1)s=c+1;else if(l!==-1)s=n+f(this.rules.slice(n),void 0,u=>u.media.features[V]||u.media.features[_]);else if(p){let u=n;for(;u<this.rules.length;u++){let C=this.rules[u];if(C.priority!==-1||!C.hasWhere||C.order>=g){s=u;break}}s===void 0&&(s=u)}else for(let u=n;u<=c;u++){s=u;let C=this.rules[u],b=C.media;if(C.priority!==-1||b.features[V]||b.features[_])break;if(C.hasWhere)s++;else if(C.order>=g)break}}else if(l===-1)if(p)s=this.rules.findIndex(n=>!n.hasWhere||n.media||n.priority!==-1||n.order>=g),s===-1&&(s=c+1);else{let n=0;for(;n<this.rules.length;n++){let u=this.rules[n];if(u.media||!u.hasWhere&&(u.order>=g||u.priority!==-1)){s=n;break}}s===void 0&&(s=n)}else s=f(this.rules,void 0,n=>n.media);if(this.rules.splice(s,0,i),this.ruleOfClass[v]=i,this.style){let n=this.style.sheet,u=0,C=b=>{let T=this.rules[b];if(T){if(!T.natives.length)return C(b-1);let m=T.natives[T.natives.length-1].cssRule;for(let h=0;h<n.cssRules.length;h++)if(n.cssRules[h]===m){u=h+1;break}}};C(s-1);for(let b=0;b<i.natives.length;)try{let T=i.natives[b];n.insertRule(T.text,u),T.cssRule=n.cssRules[u++],b++}catch(T){console.error(T),i.natives.splice(b,1)}}}delete(i){let a=this.style.sheet,s=c=>{let d=this.ruleOfClass[c];if(!(!d||c in this.relations&&this.relations[c].some(g=>g in this.countOfClass))){if(d.natives.length){let g=d.natives[0];for(let l=0;l<a.cssRules.length;l++)if(a.cssRules[l]===g.cssRule){for(let v=0;v<d.natives.length;v++)a.deleteRule(l);this.rules.splice(this.rules.indexOf(d),1);break}}delete this.ruleOfClass[c]}};if(i in this.classes){for(let c of this.classes[i])c in this.countOfClass||s(c);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let a=this.findAndNew(i);if(Array.isArray(a))for(let s of a)this.insert(s);else a&&this.insert(a)}get text(){return this.rules.map(i=>i.natives.map(a=>a.text).join("")).join("")}},H=Li;Qr=new WeakMap,ee=new WeakMap,e(H,"instances",[]),e(H,"root");Gi&&(window.MasterCSS=H);var zi=typeof global<"u"?global:window;if(!zi.CSS&&!zi.CSS?.escape){let r=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let i=String(o),a=i.length,s=-1,c="",d,g=i.charCodeAt(0);if(a==1&&g==45)return"\\"+i;for(;++s<a;){if(d=i.charCodeAt(s),d==0){c+="\uFFFD";continue}if(d>=1&&d<=31||d==127||s==0&&d>=48&&d<=57||s==1&&d>=48&&d<=57&&g==45){c+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){c+=i.charAt(s);continue}c+="\\"+i.charAt(s)}return c};zi.CSS||(zi.CSS={}),zi.CSS.escape=r}function Ro(r,o=new H({observe:!1})){if(!!r?.length){for(let i of r)i in o.countOfClass||(o.findAndInsert(i),o.countOfClass[i]=1);return o.rules.map(i=>i.natives.reduce((a,s)=>a+s.text,"")).join("")}}function _i(r,o=new H({observe:!1})){if(!r)return;let i=/\sclass="([^"]*)"/gm,a;for(;a=i.exec(r);){let s=a[1].replace(/\n/g,"").split(" ").filter(c=>c);for(let c of s)c in o.countOfClass||(o.findAndInsert(c),o.countOfClass[c]=1)}return o.rules.map(s=>s.natives.reduce((c,d)=>c+d.text,"")).join("")}function So(r,o=new H({observe:!1})){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${_i(r,o)}</style>`)}var xs=typeof document<"u"&&document;0&&(module.exports={Rule,Rules,breakpoints,colors,config,extend,fillColorScale,render,renderFromHTML,renderIntoHTML,root,rootSize,scheme,selectors,semantics,themes,values});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|