@master/css-runtime 2.0.0-rc.41 → 2.0.0-rc.42

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.
@@ -1 +1 @@
1
- !function(){var e,t,i={},a={},r={all:"media all",print:"media print",screen:"media screen",speech:"media speech",landscape:"media (orientation:landscape)",portrait:"media (orientation:portrait)",motion:"media (prefers-reduced-motion:no-preference)","reduced-motion":"media (prefers-reduced-motion:reduce)"},s={"::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"],"::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},l={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%","aspect-ratio":"1/1"},hidden:{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"},overflowed:{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"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"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%"},top:{top:0},left:{left:0},right:{right:0},bottom:{bottom:0},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"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},o={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};function n(e){let t="undefined"!=typeof Buffer?Buffer:null;return!!t&&e instanceof t||e instanceof Date||e instanceof RegExp}function u(e){if(("undefined"!=typeof Buffer?Buffer:null)&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error("Unexpected situation")}function c(e,t){return"__proto__"===t?void 0:e[t]}function d(...e){let t,i;let a={};return e.forEach(function(e){"object"!=typeof e||null===e||Array.isArray(e)||Object.keys(e).forEach(function(r){if(i=c(a,r),(t=c(e,r))!==a){if("object"!=typeof t||null===t){a[r]=t;return}if(Array.isArray(t)){a[r]=function e(t){let i=[];return t.forEach(function(t,a){"object"==typeof t&&null!==t?Array.isArray(t)?i[a]=e(t):n(t)?i[a]=u(t):i[a]=d({},t):i[a]=t}),i}(t);return}if(n(t)){a[r]=u(t);return}if("object"!=typeof i||null===i||Array.isArray(i)){a[r]=d({},t);return}else{a[r]=d(i,t);return}}})}),a}let h=d({gray:{5:"#f6f5f7",10:"#efeef0",20:"#cdccce",30:"#a2a1a3",40:"#89888a",50:"#737274",60:"#585759",70:"#444345",80:"#323133",90:"#29282a",95:"#222123"},slate:{5:"#f8f9fb",10:"#eff2f9",20:"#c8d0e3",30:"#9fabc6",40:"#7c8cab",50:"#5f7395",60:"#455572",70:"#37455d",80:"#283348",90:"#1d273a",95:"#182030"},brown:{5:"#fff6f0",10:"#feefe3",20:"#f3bea4",30:"#e7976e",40:"#da7c4d",50:"#cc6633",60:"#b65325",70:"#9d4119",80:"#833111",90:"#692007",95:"#431304"},orange:{5:"#fff5ea",10:"#fff5df",20:"#ffcb9e",30:"#ff9b47",40:"#ff8528",50:"#ff6c0a",60:"#e05200",70:"#bc3e00",80:"#992d00",90:"#701d00",95:"#471100"},amber:{5:"#fff9eb",10:"#fff4db",20:"#ffe099",30:"#ffc133",40:"#ffb10a",50:"#f99e00",60:"#e57e00",70:"#c15d00",80:"#a34900",90:"#753200",95:"#4c1f00"},yellow:{5:"#fffae5",10:"#fffed1",20:"#ffe993",30:"#ffd233",40:"#ffc300",50:"#efaf00",60:"#d69200",70:"#b77400",80:"#9e5c00",90:"#753c00",95:"#4c2600"},lime:{5:"#f5ffe5",10:"#f5ffd6",20:"#d1fb8d",30:"#acec46",40:"#91d91a",50:"#77c012",60:"#61a60c",70:"#4c8d07",80:"#367604",90:"#256000",95:"#1b3d00"},green:{5:"#e7fdea",10:"#dbfee4",20:"#a5f7b8",30:"#35ed66",40:"#00d655",50:"#00c147",60:"#00ad3f",70:"#008e34",80:"#007a2c",90:"#006023",95:"#003d16"},beryl:{5:"#e0fef2",10:"#d2fff7",20:"#6cffd4",30:"#0fefa4",40:"#04e09e",50:"#04cb8f",60:"#00b277",70:"#009360",80:"#007f50",90:"#00663e",95:"#003d24"},teal:{5:"#dbfefd",10:"#cfffff",20:"#7ffff6",30:"#00f4e4",40:"#00e4d4",50:"#00ccc8",60:"#00aeb7",70:"#0092a3",80:"#00798e",90:"#005d75",95:"#003747"},cyan:{5:"#e0ffff",10:"#d1ffff",20:"#7ff6ff",30:"#1ee1ff",40:"#00ccf9",50:"#00b3ea",60:"#0099d6",70:"#007dbc",80:"#0067a8",90:"#005089",95:"#003156"},sky:{5:"#e5f5ff",10:"#d9f8ff",20:"#a3deff",30:"#6bc6ff",40:"#34b2fd",50:"#059fff",60:"#008df9",70:"#0073e0",80:"#005cc6",90:"#0041a3",95:"#002566"},blue:{5:"#e5f3fe",10:"#dbf2fe",20:"#add7ff",30:"#70b0ff",40:"#4c93fd",50:"#3a7cff",60:"#2563fd",70:"#1b53ec",80:"#1947d1",90:"#1735a2",95:"#102069"},indigo:{5:"#f0f1fe",10:"#e9ecfe",20:"#c8cdfe",30:"#939eff",40:"#7e81fe",50:"#7068ff",60:"#5b4cfd",70:"#4e39ed",80:"#4732d2",90:"#3623a3",95:"#26176c"},violet:{5:"#f2efff",10:"#efe8ff",20:"#d7c5ff",30:"#b198fe",40:"#9a70ff",50:"#8e56fe",60:"#812fff",70:"#7407f2",80:"#6405d1",90:"#4f05a3",95:"#35036e"},purple:{5:"#f6f0ff",10:"#f6e8fe",20:"#e2bffe",30:"#c492fd",40:"#b266ff",50:"#a849fe",60:"#9514ff",70:"#8200e5",80:"#7100c1",90:"#58008e",95:"#3e0060"},fuchsia:{5:"#faf0ff",10:"#fde8fe",20:"#f0baff",30:"#dd89fe",40:"#d760fe",50:"#cf33ff",60:"#b700e5",70:"#a200c6",80:"#8700a3",90:"#660175",95:"#480051"},pink:{5:"#fef1f9",10:"#fee9f8",20:"#ffb8df",30:"#f986c1",40:"#fa65b2",50:"#f747a2",60:"#ef2188",70:"#d61673",80:"#b80c5c",90:"#8f0543",95:"#64032f"},crimson:{5:"#ffeff2",10:"#ffe8ec",20:"#ffbac7",30:"#ff849d",40:"#ff6684",50:"#fc4065",60:"#ed2a51",70:"#d7173e",80:"#bb1536",90:"#8f132c",95:"#620e1f"},red:{5:"#ffefef",10:"#fee8e8",20:"#ffbcbc",30:"#ff8787",40:"#fd5f5f",50:"#f73f3f",60:"#e52e2e",70:"#d01b1b",80:"#b81919",90:"#921515",95:"#650f0f"}},{full:"100%",fit:"fit-content",max:"max-content",min:"min-content",screen:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},"font-family":{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"]},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},current:"currentColor",white:"#ffffff",black:"#000000",base:{"@light":"$(white)","@dark":"$(gray-95)"},canvas:{"@light":"$(slate-5)","@dark":"$(gray-90)"},surface:{"@light":"$(white)","@dark":"$(gray-80)"},invert:{"@light":"$(black)","@dark":"$(white)"},line:{neutral:{"@light":"$(slate-60)","@dark":"$(gray-30)"}},gray:{"@light":"$(gray-30)","@dark":"$(gray-40)"},slate:{"@light":"$(slate-30)","@dark":"$(slate-40)"},brown:{"@light":"$(brown-40)","@dark":"$(brown-50)"},orange:{"@light":"$(orange-40)","@dark":"$(orange-50)"},amber:{"@light":"$(amber-40)","@dark":"$(amber-50)"},yellow:{"@light":"$(yellow-40)","@dark":"$(yellow-50)"},lime:{"@light":"$(lime-40)","@dark":"$(lime-50)"},green:{"@light":"$(green-40)","@dark":"$(green-50)"},beryl:{"@light":"$(beryl-40)","@dark":"$(beryl-50)"},teal:{"@light":"$(teal-40)","@dark":"$(teal-50)"},cyan:{"@light":"$(cyan-40)","@dark":"$(cyan-50)"},sky:{"@light":"$(sky-60)","@dark":"$(sky-50)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-50)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-50)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-50)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-50)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-50)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-50)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-50)"},red:{"@light":"$(red-60)","@dark":"$(red-50)"},text:{invert:{"@light":"$(black)","@dark":"$(white)"},strong:{"@light":"$(slate-95)","@dark":"$(gray-10)"},neutral:{"@light":"$(slate-70)","@dark":"$(gray-30)"},lightest:{"@light":"$(slate-30)","@dark":"$(gray-60)"},lighter:{"@light":"$(slate-40)","@dark":"$(gray-50)"},light:{"@light":"$(slate-50)","@dark":"$(gray-40)"},gray:{"@light":"$(gray-60)","@dark":"$(gray-30)"},slate:{"@light":"$(slate-60)","@dark":"$(slate-30)"},brown:{"@light":"$(brown-60)","@dark":"$(brown-30)"},orange:{"@light":"$(orange-60)","@dark":"$(orange-30)"},amber:{"@light":"$(amber-60)","@dark":"$(amber-40)"},yellow:{"@light":"$(yellow-60)","@dark":"$(yellow-40)"},lime:{"@light":"$(lime-70)","@dark":"$(lime-40)"},green:{"@light":"$(green-70)","@dark":"$(green-40)"},beryl:{"@light":"$(beryl-70)","@dark":"$(beryl-40)"},teal:{"@light":"$(teal-70)","@dark":"$(teal-40)"},cyan:{"@light":"$(cyan-70)","@dark":"$(cyan-40)"},sky:{"@light":"$(sky-70)","@dark":"$(sky-30)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-30)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-30)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-30)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-30)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-30)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-30)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-30)"},red:{"@light":"$(red-60)","@dark":"$(red-30)"}}});var f=function(e){let t;if("undefined"!=typeof CSS)return CSS.escape(e);if(0==arguments.length)throw TypeError("`CSS.escape` requires an argument.");let i=String(e),a=i.length,r=-1,s="",l=i.charCodeAt(0);if(1==a&&45==l)return"\\"+i;for(;++r<a;){if(0==(t=i.charCodeAt(r))){s+="�";continue}if(t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==l){s+="\\"+t.toString(16)+" ";continue}if(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){s+=i.charAt(r);continue}s+="\\"+i.charAt(r)}return s};(e=t||(t={}))[e.Utility=-4]="Utility",e[e.NativeShorthand=-3]="NativeShorthand",e[e.Shorthand=-2]="Shorthand",e[e.Native=-1]="Native",e[e.Normal=0]="Normal";var y=t,m={};let b=new URL("https://rc.css.master.co");m.ANIMATION_SIGN="@",m.AT_SIGN="@",m.BASE_UNIT_REGEX=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m,m.BORDER_STYLE_VALUES=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],m.CLASS_ATTRIBUTES=["class","className"],m.CLASS_DECLARATIONS=["styles"],m.CLASS_FUNCTIONS=["clsx","cva","ctl","cv","class","classnames","classVariant","styled(?:\\s+)?(?:\\.\\w+)?","classList(?:\\s+)?\\.(?:add|remove|toggle|replace)"],m.COLOR_VALUE_REGEX=/(?:#|(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\(.*\)|(?:\$colors)(?![a-zA-Z0-9-]))/,m.DELIMITER_SIGN="|",m.IMAGE_VALUE_REGEX=/(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)/,m.NUMBER_VALUE_REGEX=/(?:[\d.]|(?:max|min|calc|clamp)\([^|]*\))/,m.OFFICIAL_URL=b,m.QUERY_COMPARISON_OPERATORS=[">","<","="],m.QUERY_LOGICAL_OPERATORS=["&"],m.SELECTOR_SIGNS=[":","_",">","+","~"],m.SEPARATOR_SIGN=",",m.SEPARATOR_SIGNS=[",","|"],m.TRANSITION_SIGN="~",m.UNIT_REGEX=/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/,m.VALUE_DELIMITERS={"(":")","'":"'",'"':'"',"{":"}"},m.VALUE_UNITS=["%","cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","grad","rad","turn","s","ms","hz","khz","dpi","dpcm","dppx","x","fr","db","st"];var g=function(e){if(e.length<2)return e;let t=!1,i=!1;for(let a of e)("string"===a.type&&m.BORDER_STYLE_VALUES.includes(a.value)||"variable"===a.type&&m.BORDER_STYLE_VALUES.includes(String(a.variable?.value)))&&(t=!0),"function"===a.type&&"var"===a.name&&(i=!0);return t||i||e.push({type:"separator",value:" ",token:"|"},{type:"string",value:"solid",token:"solid"}),e};let p={group:{matcher:/^(?:.+?[*_>~+])?\{.+?\}/,layer:y.Shorthand,analyze(e){let t=0;for(;t<e.length&&("{"!==e[t]||"\\"===e[t-1]);t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=e=>{let i=e.indexOf(":");-1!==i&&(t[e.slice(0,i)]=e.slice(i+1))},a=e=>{let t=t=>{let a=t.slice(f(e.className).length).match(/\{(.*)\}/)?.[1].split(";");if(a)for(let e of a)i(e)};for(let i of e.natives)t(i.text);if(e.animationNames)for(let t of(this.animationNames||(this.animationNames=[]),e.animationNames))this.animationNames.includes(t)||this.animationNames.push(t);if(e.variableNames)for(let t of(this.variableNames||(this.variableNames=[]),e.variableNames))this.variableNames.includes(t)||this.variableNames.push(t)},r=[],s="",l=()=>{s&&(r.push(s.replace(/ /g,"|")),s="")},o=1;for(let t of(!function t(i){for(;o<e.length;o++){let a=e[o];if(!i){if(";"===a){l();continue}if("}"===a)break}if(s+=a,i===a){if("'"===i||'"'===i){let e=0;for(let t=s.length-2;"\\"===s[t];t--)e++;if(e%2)continue}break}a in m.VALUE_DELIMITERS&&"'"!==i&&'"'!==i&&(o++,t(m.VALUE_DELIMITERS[a]))}}(""),l(),r)){let e=this.css.generate(t);if(e.length)for(let t of e)a(t);else i(t)}return t}},variable:{matcher:/^\$[\w-]+:/,layer:y.Shorthand,declare(e){return{["--"+this.keyToken.slice(1,-1)]:e}}},"font-size":{ambiguousKeys:["font","f"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"font-weight":{ambiguousKeys:["font","f"],ambiguousValues:["bolder"],layer:y.Native},"font-family":{ambiguousKeys:["font","f"],layer:y.Native},"font-smoothing":{ambiguousKeys:["font","f"],ambiguousValues:["antialiased","subpixel-antialiased"],layer:y.Native,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{ambiguousKeys:["font","f"],ambiguousValues:["normal","italic","oblique"],layer:y.Native,unit:"deg"},"font-variant-numeric":{ambiguousKeys:["font","f"],ambiguousValues:["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],layer:y.Native},"font-variant":{ambiguousKeys:["font","f"],layer:y.NativeShorthand},font:{subkey:"f",layer:y.NativeShorthand,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},"font-feature-settings":{key:"font-feature",layer:y.Native},color:{key:"fg",layer:y.Native,variables:["text"]},"margin-left":{key:"ml",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-right":{key:"mr",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-top":{key:"mt",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-bottom":{key:"mb",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-x":{key:"mx",subkey:"margin-x",unit:"rem",layer:y.Shorthand,declare:e=>({"margin-left":e,"margin-right":e}),variables:["spacing"]},"margin-y":{key:"my",unit:"rem",layer:y.Shorthand,declare:e=>({"margin-top":e,"margin-bottom":e}),variables:["spacing"]},margin:{key:"m",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"margin-inline-start":{key:"mis",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-inline-end":{key:"mie",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-inline":{key:"mi",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"padding-left":{key:"pl",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-right":{key:"pr",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-top":{key:"pt",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-bottom":{key:"pb",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-x":{key:"px",unit:"rem",layer:y.Shorthand,declare:e=>({"padding-left":e,"padding-right":e}),variables:["spacing"]},"padding-y":{key:"py",unit:"rem",layer:y.Shorthand,declare:e=>({"padding-top":e,"padding-bottom":e}),variables:["spacing"]},padding:{key:"p",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"padding-inline-start":{key:"pis",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-inline-end":{key:"pie",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-inline":{key:"pi",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"flex-basis":{ambiguousKeys:["flex"],unit:"rem",layer:y.Native},"flex-wrap":{ambiguousKeys:["flex"],ambiguousValues:["wrap","nowrap","wrap-reverse"],layer:y.Native},"flex-grow":{ambiguousKeys:["flex"],layer:y.Native},"flex-shrink":{ambiguousKeys:["flex"],layer:y.Native},"flex-direction":{ambiguousKeys:["flex"],ambiguousValues:["row","row-reverse","column","column-reverse"],layer:y.Native},flex:{layer:y.NativeShorthand},display:{key:"d",layer:y.Native},width:{key:"w",unit:"rem",layer:y.Native},height:{key:"h",unit:"rem",layer:y.Native},"min-width":{key:"min-w",unit:"rem",layer:y.Native},"min-height":{key:"min-h",unit:"rem",layer:y.Native},size:{layer:y.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{width:t[0].text,height:1===i?t[0].text:t[2].text}}},"min-size":{key:"min",layer:y.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"min-width":t[0].text,"min-height":1===i?t[0].text:t[2].text}}},"max-size":{key:"max",layer:y.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"max-width":t[0].text,"max-height":1===i?t[0].text:t[2].text}}},"box-sizing":{ambiguousKeys:["box"],layer:y.Native},"box-decoration-break":{key:"box-decoration",layer:y.Native,declare:e=>({"-webkit-box-decoration-break":e,"box-decoration-break":e})},contain:{layer:y.Native},content:{layer:y.Native},"counter-increment":{layer:y.Native},"counter-reset":{layer:y.Native},"letter-spacing":{key:"tracking",subkey:"ls",layer:y.Native,unit:"em"},"line-height":{key:"leading",subkey:"line-h",layer:y.Native},"object-fit":{ambiguousKeys:["object","obj"],ambiguousValues:["contain","cover","fill","scale-down"],layer:y.Native},"object-position":{ambiguousKeys:["object","obj"],ambiguousValues:["top","bottom","right","left","center"],layer:y.Native},"text-align":{ambiguousKeys:["text","t"],ambiguousValues:["justify","center","left","right","start","end"],layer:y.Native},"text-decoration-color":{ambiguousKeys:["text-decoration"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native,variables:["text"]},"text-decoration-style":{ambiguousKeys:["text-decoration"],ambiguousValues:["solid","double","dotted","dashed","wavy"],layer:y.Native},"text-decoration-thickness":{ambiguousKeys:["text-decoration"],ambiguousValues:["from-font",m.NUMBER_VALUE_REGEX],layer:y.Native,unit:"em"},"text-decoration-line":{ambiguousKeys:["text-decoration"],ambiguousValues:["underline","overline","line-through"],layer:y.Native},"text-decoration":{ambiguousKeys:["text","t"],ambiguousValues:["underline","overline","line-through"],unit:"rem",layer:y.NativeShorthand,variables:["text"],declare:e=>({"-webkit-text-decoration":e,"text-decoration":e})},"text-underline-offset":{ambiguousKeys:["text-underline"],unit:"rem",layer:y.Native,variables:["spacing"]},"text-underline-position":{ambiguousKeys:["text-underline"],ambiguousValues:["front-font","under","left","right"],layer:y.Native},"text-overflow":{ambiguousKeys:["text","t"],ambiguousValues:["ellipsis","clip"],layer:y.Native},"text-orientation":{ambiguousKeys:["text","t"],ambiguousValues:["mixed","upright","sideways-right","sideways","use-glyph-orientation"],layer:y.Native},"text-transform":{ambiguousKeys:["text","t"],ambiguousValues:["uppercase","lowercase","capitalize"],layer:y.Native},"text-rendering":{ambiguousKeys:["text","t"],ambiguousValues:["optimizeSpeed","optimizeLegibility","geometricPrecision"],layer:y.Native},"text-wrap":{ambiguousKeys:["text","t"],ambiguousValues:["wrap","nowrap","balance","pretty"],layer:y.NativeShorthand},"text-indent":{unit:"rem",layer:y.Native},"vertical-align":{key:"v",subkey:"vertical",layer:y.Native},columns:{key:"cols",layer:y.NativeShorthand},"white-space":{layer:y.Native},top:{layer:y.Native,unit:"rem",variables:["spacing"]},bottom:{layer:y.Native,unit:"rem",variables:["spacing"]},left:{layer:y.Native,unit:"rem",variables:["spacing"]},right:{layer:y.Native,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"max-height":{key:"max-h",unit:"rem",layer:y.Native},"max-width":{key:"max-w",unit:"rem",layer:y.Native},opacity:{layer:y.Native},visibility:{layer:y.Native},clear:{layer:y.Native},float:{layer:y.Native},isolation:{layer:y.Native},"overflow-x":{layer:y.Native,declare:e=>"overlay"===e?{"overflow-x":["auto",e]}:{"overflow-x":e}},"overflow-y":{layer:y.Native,declare:e=>"overlay"===e?{"overflow-y":["auto",e]}:{"overflow-y":e}},overflow:{layer:y.NativeShorthand,declare:e=>"overlay"===e?{overflow:["auto",e]}:{overflow:e}},"overscroll-behavior-x":{layer:y.Native},"overscroll-behavior-y":{layer:y.Native},"overscroll-behavior":{layer:y.NativeShorthand},"z-index":{key:"z",layer:y.Native},position:{layer:y.Native},cursor:{layer:y.Native},"pointer-events":{layer:y.Native},resize:{layer:y.Native},"touch-action":{layer:y.Native},"word-break":{layer:y.Native},"word-spacing":{layer:y.Native,unit:"em"},"user-drag":{layer:y.Native,declare:e=>({"-webkit-user-drag":e,"user-drag":e})},"user-select":{layer:y.Native,declare:e=>({"-webkit-user-select":e,"user-select":e})},"text-shadow":{unit:"rem",layer:y.Native},"text-size":{ambiguousKeys:["text","t"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",declare:e=>({"font-size":e,"line-height":`calc(${e} + 0.875em)`}),layer:y.Shorthand},"text-fill-color":{ambiguousKeys:["text","t"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native,variables:["text"],declare:e=>({"-webkit-text-fill-color":e})},"text-stroke-width":{ambiguousKeys:["text-stroke"],ambiguousValues:["thin","medium","thick",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native,declare:e=>({"-webkit-text-stroke-width":e})},"text-stroke-color":{ambiguousKeys:["text-stroke"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native,variables:["text"],declare:e=>({"-webkit-text-stroke-color":e})},"text-stroke":{unit:"rem",layer:y.Native,declare:e=>({"-webkit-text-stroke":e})},"text-truncate":{subkey:"lines",declare:e=>({display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e,overflow:"hidden","overflow-wrap":"break-word","text-overflow":"ellipsis"}),layer:y.Shorthand},"box-shadow":{key:"shadow",subkey:"s",unit:"rem",layer:y.Native},"table-layout":{layer:y.Native},"transform-box":{ambiguousKeys:["transform"],layer:y.Native},"transform-style":{ambiguousKeys:["transform"],ambiguousValues:["flat","preserve-3d"],layer:y.Native},"transform-origin":{ambiguousKeys:["transform"],ambiguousValues:["top","bottom","right","left","center",m.NUMBER_VALUE_REGEX],unit:"px",layer:y.Native},transform:{matcher:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:y.Native,analyze:e=>[e.startsWith("transform")?e.slice(10):e],variables:["spacing"]},"transition-property":{key:"~property",layer:y.Native},"transition-timing-function":{key:"~easing",layer:y.Native},"transition-duration":{key:"~duration",layer:y.Native,unit:"ms"},"transition-delay":{key:"~delay",layer:y.Native,unit:"ms"},transition:{sign:"~",analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}},layer:y.NativeShorthand},"animation-delay":{key:"@delay",layer:y.Native,unit:"ms"},"animation-direction":{key:"@direction",layer:y.Native},"animation-duration":{key:"@duration",layer:y.Native,unit:"ms"},"animation-fill-mode":{key:"@fill",layer:y.Native},"animation-iteration-count":{key:"@iteration",layer:y.Native},"animation-name":{key:"@name",layer:y.Native,includeAnimations:!0},"animation-play-state":{key:"@play",layer:y.Native},"animation-timing-function":{key:"@easing",layer:y.Native},animation:{sign:"@",layer:y.NativeShorthand,includeAnimations:!0,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{ambiguousKeys:["b","border"],ambiguousValues:["collapse","separate"],layer:y.Native},"border-spacing":{unit:"rem",layer:y.Native,variables:["spacing"]},"border-top-color":{ambiguousKeys:["bt","border-top"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-bottom-color":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-left-color":{ambiguousKeys:["bl","border-left"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-right-color":{ambiguousKeys:["br","border-right"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-x-color":{ambiguousKeys:["bx","border-x"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Shorthand,declare:e=>({"border-left-color":e,"border-right-color":e})},"border-y-color":{ambiguousKeys:["by","border-y"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Shorthand,declare:e=>({"border-top-color":e,"border-bottom-color":e})},"border-color":{ambiguousKeys:["b","border"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.NativeShorthand},"border-top-left-radius":{key:"rtl",unit:"rem",layer:y.Native},"border-top-right-radius":{key:"rtr",unit:"rem",layer:y.Native},"border-bottom-left-radius":{key:"rbl",unit:"rem",layer:y.Native},"border-bottom-right-radius":{key:"rbr",unit:"rem",layer:y.Native},"border-top-radius":{key:"rt",unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-left-radius":e,"border-top-right-radius":e})},"border-bottom-radius":{key:"rb",unit:"rem",layer:y.Shorthand,declare:e=>({"border-bottom-left-radius":e,"border-bottom-right-radius":e})},"border-left-radius":{key:"rl",unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-left-radius":e,"border-bottom-left-radius":e})},"border-right-radius":{key:"rr",unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-right-radius":e,"border-bottom-right-radius":e})},"border-radius":{key:"r",unit:"rem",layer:y.NativeShorthand},"border-top-style":{ambiguousKeys:["bt","border-top"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-bottom-style":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-left-style":{ambiguousKeys:["bl","border-left"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-right-style":{ambiguousKeys:["br","border-right"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-x-style":{ambiguousKeys:["bx","border-x"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Shorthand,declare:e=>({"border-left-style":e,"border-right-style":e})},"border-y-style":{ambiguousKeys:["by","border-y"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Shorthand,declare:e=>({"border-top-style":e,"border-bottom-style":e})},"border-style":{ambiguousKeys:["b","border"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.NativeShorthand},"border-top-width":{ambiguousKeys:["bt","border-top"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-bottom-width":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-left-width":{ambiguousKeys:["bl","border-left"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-right-width":{ambiguousKeys:["br","border-right"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-x-width":{ambiguousKeys:["bx","border-x"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Shorthand,declare:e=>({"border-left-width":e,"border-right-width":e})},"border-y-width":{ambiguousKeys:["by","border-y"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-width":e,"border-bottom-width":e})},"border-width":{ambiguousKeys:["b","border"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.NativeShorthand},"border-image-repeat":{ambiguousKeys:["border-image"],ambiguousValues:["stretch","repeat","round","space"],layer:y.Native},"border-image-slice":{ambiguousKeys:["border-image"],layer:y.Native},"border-image-source":{ambiguousKeys:["border-image"],ambiguousValues:[m.IMAGE_VALUE_REGEX],layer:y.Native},"border-image-width":{ambiguousKeys:["border-image"],ambiguousValues:["auto",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-image-outset":{ambiguousKeys:["border-image"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-image":{layer:y.NativeShorthand},"border-top":{key:"bt",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-bottom":{key:"bb",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-left":{key:"bl",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-right":{key:"br",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-x":{key:"bx",unit:"rem",layer:y.Shorthand,transformValueComponents:g,declare:e=>({"border-left":e,"border-right":e})},"border-y":{key:"by",unit:"rem",layer:y.Shorthand,transformValueComponents:g,declare:e=>({"border-top":e,"border-bottom":e})},border:{key:"b",unit:"rem",layer:y.NativeShorthand,transformValueComponents:g},"background-attachment":{ambiguousKeys:["bg"],ambiguousValues:["fixed","local","scroll"],layer:y.Native},"background-blend-mode":{key:"bg-blend",layer:y.Native},"background-color":{ambiguousKeys:["bg"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"background-clip":{key:"bg-clip",layer:y.Native,declare:e=>({"-webkit-background-clip":e,"background-clip":e})},"background-origin":{key:"bg-origin",layer:y.Native},"background-position":{ambiguousKeys:["bg"],ambiguousValues:["top","bottom","right","left","center"],layer:y.Native,unit:"px"},"background-repeat":{ambiguousKeys:["bg"],ambiguousValues:["space","round","repeat","no-repeat","repeat-x","repeat-y"],layer:y.Native},"background-size":{ambiguousKeys:["bg"],ambiguousValues:["auto","cover","contain",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"background-image":{ambiguousKeys:["bg"],ambiguousValues:[m.IMAGE_VALUE_REGEX],layer:y.Native},background:{key:"bg",layer:y.NativeShorthand},gradient:{matcher:/^gradient\(/,layer:y.Shorthand,declare:e=>({"background-image":"linear-"+e})},"mix-blend-mode":{key:"blend",layer:y.Native},"backdrop-filter":{key:"bd",layer:y.Native,declare:e=>({"-webkit-backdrop-filter":e,"backdrop-filter":e})},filter:{matcher:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:y.Native},fill:{layer:y.Native},"stroke-dasharray":{layer:y.Native},"stroke-dashoffset":{layer:y.Native,variables:["spacing"]},"stroke-width":{ambiguousKeys:["stroke"],ambiguousValues:[m.NUMBER_VALUE_REGEX],layer:y.Native},stroke:{layer:y.Native},x:{layer:y.Native,variables:["spacing"]},y:{layer:y.Native,variables:["spacing"]},cx:{layer:y.Native,variables:["spacing"]},cy:{layer:y.Native,variables:["spacing"]},rx:{layer:y.Native},ry:{layer:y.Native},"grid-column-start":{key:"grid-col-start",layer:y.Native},"grid-column-end":{key:"grid-col-end",layer:y.Native},"grid-column-span":{key:"grid-col-span",layer:y.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-column":e})},"grid-column":{key:"grid-col",layer:y.NativeShorthand},"grid-columns":{key:"grid-cols",declare:e=>({display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}),layer:y.Shorthand},"grid-row-start":{layer:y.Native},"grid-row-end":{layer:y.Native},"grid-row-span":{layer:y.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-row":e})},"grid-row":{layer:y.NativeShorthand},"grid-rows":{declare:e=>({display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}),layer:y.Shorthand},"grid-auto-columns":{key:"grid-auto-cols",layer:y.Native},"grid-auto-flow":{key:"grid-flow",layer:y.Native},"grid-auto-rows":{layer:y.Native},"grid-template-areas":{layer:y.Native},"grid-template-columns":{key:"grid-template-cols",layer:y.Native,unit:"rem"},"grid-template-rows":{layer:y.Native,unit:"rem"},"grid-template":{layer:y.NativeShorthand},"grid-area":{layer:y.NativeShorthand},grid:{layer:y.NativeShorthand},"column-gap":{key:"gap-x",unit:"rem",layer:y.Native,variables:["spacing"]},"row-gap":{key:"gap-y",unit:"rem",layer:y.Native,variables:["spacing"]},gap:{unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},order:{key:"o",layer:y.Native},"break-inside":{layer:y.Native},"break-before":{layer:y.Native},"break-after":{layer:y.Native},"aspect-ratio":{key:"aspect",layer:y.Native},"column-span":{key:"col-span",layer:y.Native},"align-content":{subkey:"ac",layer:y.Native},"align-items":{subkey:"ai",layer:y.Native},"align-self":{subkey:"as",layer:y.Native},"justify-content":{subkey:"jc",layer:y.Native},"justify-items":{subkey:"ji",layer:y.Native},"justify-self":{subkey:"js",layer:y.Native},"place-content":{layer:y.NativeShorthand},"place-items":{layer:y.NativeShorthand},"place-self":{layer:y.NativeShorthand},"list-style-position":{ambiguousKeys:["list-style"],ambiguousValues:["inside","outside"],layer:y.Native},"list-style-type":{ambiguousKeys:["list-style"],ambiguousValues:["disc","decimal"],layer:y.Native},"list-style-image":{ambiguousKeys:["list-style"],ambiguousValues:[m.IMAGE_VALUE_REGEX],layer:y.Native},"list-style":{layer:y.NativeShorthand},"outline-color":{ambiguousKeys:["outline"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"outline-offset":{unit:"rem",layer:y.Native,variables:["spacing"]},"outline-style":{ambiguousKeys:["outline"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"outline-width":{ambiguousKeys:["outline"],ambiguousValues:["medium","thick","thin",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},outline:{unit:"rem",layer:y.NativeShorthand,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:g},"accent-color":{key:"accent",layer:y.Native},appearance:{layer:y.Native},"caret-color":{key:"caret",layer:y.Native,variables:["text"]},"scroll-behavior":{layer:y.Native},"scroll-margin-left":{key:"scroll-ml",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-right":{key:"scroll-mr",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-top":{key:"scroll-mt",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{key:"scroll-mb",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-x":{key:"scroll-mx",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-margin-left":e,"scroll-margin-right":e}),variables:["spacing"]},"scroll-margin-y":{key:"scroll-my",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-margin-top":e,"scroll-margin-bottom":e}),variables:["spacing"]},"scroll-margin":{key:"scroll-m",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"scroll-padding-left":{key:"scroll-pl",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-right":{key:"scroll-pr",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-top":{key:"scroll-pt",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{key:"scroll-pb",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-x":{key:"scroll-px",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-padding-left":e,"scroll-padding-right":e}),variables:["spacing"]},"scroll-padding-y":{key:"scroll-py",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-padding-top":e,"scroll-padding-bottom":e}),variables:["spacing"]},"scroll-padding":{key:"scroll-p",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"scroll-snap-align":{ambiguousKeys:["scroll-snap"],ambiguousValues:["start","end","center"],layer:y.Native},"scroll-snap-stop":{ambiguousKeys:["scroll-snap"],ambiguousValues:["normal","always"],layer:y.Native},"scroll-snap-type":{ambiguousKeys:["scroll-snap"],ambiguousValues:["x","y","block","inline","both"],layer:y.Native},"will-change":{layer:y.Native},"writing-mode":{key:"writing",layer:y.Native},direction:{layer:y.Native},"shape-outside":{ambiguousKeys:["shape"],ambiguousValues:[/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/],layer:y.Native},"shape-margin":{ambiguousKeys:["shape"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native,variables:["spacing"]},"shape-image-threshold":{layer:y.Native},"clip-path":{key:"clip",layer:y.Native},quotes:{layer:y.Native},"mask-image":{layer:y.Native,declare:e=>({"-webkit-mask-image":e,"mask-image":e})}};var v={dark:"class",light:"class"};let k={$:{transform(e){let t,i;let a=e.indexOf(",");return -1!==a?(t=e.slice(0,a),i=e.slice(a+1)):t=e,[{type:"variable",name:t,fallback:i,token:e}]}},calc:{transform(e,t){let i=[],a=0,r=(t,s,l,o,n)=>{let u;let c=i!==t,d=[],h=!1,f=!1,y=!1,b=!1,g="",p=(i,r="",o="")=>{if(!1===u&&" "!==i&&this.definition.unit&&(u=void 0,b||v()),g){if(!n){let e=m.BASE_UNIT_REGEX.exec(g);e&&(g=(+e[1]*(this.css.config.baseUnit??1)).toString())}if(h||l)t.push({type:"string",value:g,token:g});else{let e={...this.parseValue(g),token:g};if(!f&&isNaN(+g)&&"number"===e.type&&(f=!0),b)isNaN(+g)?"number"===e.type?(t.push(e),y=!0):t.push(e):t.push({type:"number",value:+g,token:g});else if(c){let e={type:"string",value:g,token:g};d.push(e),t.push(e)}else t.push(e)}g=""}i&&(("+"===i||"-"===i)&&N(),r&&" "===e[a-1]&&(r=""),o&&" "===e[a+1]&&(o=""),s?t.push({type:"separator",value:i,text:i,token:i}):t.push({type:"separator",value:i,text:r+i+o,token:i})),h=!1},v=()=>{("rem"===this.definition.unit||"em"===this.definition.unit)&&t.push({type:"separator",value:"/",text:" / ",token:"/"},{type:"number",value:this.css.config.rootSize,token:String(this.css.config.rootSize)}),t.push({type:"separator",value:"*",text:" * ",token:"*"},{type:"number",value:1,unit:this.definition.unit,token:this.definition.unit})},N=()=>{!b||y||o||c&&!f||v(),b=!1,y=!1};for(;a<e.length;a++){let i=e[a];if("("===i){let e=/^([+-])/.exec(g);e&&t.push({type:"string",value:e[1],token:e[1]});let s=e?g.slice(1):g,l={type:"function",name:s,symbol:i,children:[],bypassTransform:"calc"===s,token:g};t.push(l),g="",a++;let o="$"===s||"var"===s;if(!(u=r(l.children,""!==s&&"calc"!==s&&(o||Object.prototype.hasOwnProperty.call(k,s)),h||o||b&&y,b,o)||"var"===s)&&"$"===s){let e=this.css.variables[l.children[0].value]?.type;u=!e||"string"===e}u&&(f=!0,y=!0)}else if(")"===i){if(p(""),f)for(let e of d)Object.assign(e,this.parseValue(e.value));return f}else if(","===i)p(i,""," ");else if(" "===i)p(i);else{let t=e[a-1];switch(i){case"+":case"-":g||")"===t?p(i," "," "):g+=i;break;case"*":this.definition.unit&&(b=!0),p(i," "," ");break;case"/":this.definition.unit&&(b=!0),p(i," "," "),h=!0;break;default:g+=i}}}p(""),N()};return r(i,!1,!1,!1,!1),"calc("+this.resolveValue(i,k.calc.unit??this.definition.unit,t,!0)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:""},"color-contrast":{unit:""},"color-mix":{unit:""},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{},"radial-gradient":{},"conic-gradient":{},"repeating-linear-gradient":{},"repeating-radial-gradient":{},"repeating-conic-gradient":{}};a.at=r,a.selectors=s,a.utilities=l,a.animations=o,a.variables=h,a.syntaxes=p,a.modes=v,a.functions=k,a.config={at:r,selectors:s,utilities:l,syntaxes:p,functions:k,animations:o,variables:h,modes:v,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1};var N={};N.Rule=class{className;RegisteredRule;css;at;priority;natives;order;layer;declarations;animationNames;variableNames;constructor(e,t,i){let a,r,s;this.className=e,this.RegisteredRule=t,this.css=i,this.at={},this.priority=-1,this.natives=[],this.order=0,this.layer=0,this.resolveValue=(e,t,i,a)=>{let{functions:r}=this.css.config,s="";for(let l of e)switch(l.type){case"function":let e=r&&r[l.name];if(e?.transform&&!l.bypassTransform){let r=e.transform.call(this,this.resolveValue(l.children,e.unit??t,i,a||"calc"===l.name),i);s+=l.token=l.text="string"==typeof r?r:this.resolveValue(r,e?.unit??t,i,a)}else s+=l.token=l.text=l.name+l.symbol+this.resolveValue(l.children,e?.unit??t,i,a)+m.VALUE_DELIMITERS[l.symbol];break;case"variable":let o=this.css.variables[l.name];if(o){let e=(e,t)=>{if(o.modes){if(this.mode){let t=o.modes[this.mode]??o;t?.value&&e(t)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),t()}else e(o)};switch(o.type){case"string":e(e=>{let r=[];this.parseValues(r,0,e.value,t,"",void 0,a,[...i,l.name]),s+=l.text=this.resolveValue(r,t,[...i,l.name],a)},()=>{s+=l.text=`var(--${l.name})`});break;case"number":e(e=>{if(a)s+=l.text=String(e.value);else{let i=this.parseValue(e.value,t);s+=l.text=i.value+(i.unit??"")}},()=>{s+=l.text=t?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let r=l.alpha?"/"+l.alpha:"";e(e=>{s+=l.text=`${e.space}(${e.value}${r})`},()=>{s+=l.text=`${o.space}(var(--${l.name})${r})`})}}else s+=l.text=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":s+=l.text?l.text:l.text=l.value;break;case"number":s+=l.text=l.value+(l.unit||"");break;default:s+=l.text=l.value}return s},this.parseValues=(e,t,i,a,r,s,l=!1,o=[])=>{let n=void 0===s,u=!n&&(s.endsWith("$")||s.endsWith("var")),c="'"===r||'"'===r,d=[","];this.definition.separators?.length&&d.push(...this.definition.separators);let h="",f=()=>{if(h){let t=!1;if(!u||e.length){let i=(i,a)=>{let r=Object.prototype.hasOwnProperty.call(this.variables,i)?this.variables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(r){let s=r.name??i;if(!o.includes(s)){t=!0;let i={type:"variable",name:s,variable:this.css.variables[s],token:h};a&&(i.alpha=a),e.push(i)}}};if(i(h),!t){let[e,t]=h.split("/");i(e,t)}}if(!t){if(!u){let e=m.BASE_UNIT_REGEX.exec(h);e&&(h=String(+e[1]*(this.css.config.baseUnit??1)))}l?e.push({type:"string",value:h,token:h}):e.push({...this.parseValue(h,a),token:h})}h=""}};for(;t<i.length;t++){let o=i[t];if(o===r){if(c){let e=0;for(let t=h.length-1;"\\"===h[t];t--)e++;if(e%2){h+=o;continue}f()}else f();return t}if(!c&&o in m.VALUE_DELIMITERS){let r=h,n={type:"function",name:r,symbol:o,children:[],token:""};e.push(n),h="";let u="("===o?this.css.config.functions?.[r]:void 0;t=this.parseValues(n.children,++t,i,u?.unit??a,m.VALUE_DELIMITERS[o],r||s||"",l||"calc"===r)}else if("|"!==o&&" "!==o||"}"===r||c&&"path"!==s){if(!c){if("."===o){if(isNaN(+i[t+1])){if(n)break}else"-"===i[t-1]&&(h+="0")}else if(d.includes(o)){f(),e.push({type:"separator",value:o,text:(","===o?"":" ")+o+(","===o?"":" "),token:o});continue}else if(n&&("#"===o&&(h||e.length&&"separator"!==e[e.length-1].type)||["!","*",">","+","~",":","[","@","_"].includes(o)))break}h+=o}else f(),e.push({type:"separator",value:" ",token:o})}return f(),t},Object.assign(this,t);let{id:l,definition:o}=t,{analyze:n,transformValue:u,declare:c,transformValueComponents:d,create:h,layer:b,unit:g}=o;this.layer=b,o.unit||(o.unit=""),o.separators||(o.separators=[","]);let{scope:p,important:v,modes:k}=i.config,{selectors:N,at:x,stylesBy:E,animations:S}=i,R=E[e];if(h&&h.call(this,e),this.declarations=o.declarations,b===y.Utility)a=e.slice(l.length-1);else{let t;if(n)[t,r]=n.call(this,e);else{let i=e.indexOf(":");this.keyToken=e.slice(0,i+1),t=e.slice(i+1)}this.valueComponents=[];let i=this.parseValues(this.valueComponents,0,t,g,"",void 0,!1,o.includeAnimations?Object.keys(this.css.animations):[]);this.valueToken=t.slice(0,i),a=t.slice(i)}"!"===a[0]&&(this.important=!0,a=a.slice(1)),this.stateToken=a;let w=(e,t)=>{let i=(e,t,a,r)=>{for(let[r,s]of t)if(r.test(e)){for(let l of s)i(e.replace(r,l),t,a,!0);return}r&&a.push(e)},a=e=>{let t=e.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((e,t)=>t%3?e:e.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),i=[],a="",r=0;for(let e=0;e<t.length;e++){let s=t[e];if("\\"===s){a+=s+t[++e];continue}r||","!==s?(a+=s,r&&")"===s?r--:"("===s&&r++):(i.push(a),a="")}return a&&i.push(a),i},r=[];""in N?i(e,N[""],r,!0):r.push(e);let s={};for(let[e,t]of Object.entries(N)){if(!e)continue;let a=[];for(let e of r)i(e,t,a,!1);a.length&&(s[e]=a)}let l=(e,i)=>{let r=i.reduce((e,t)=>(e.push(...a(t)),e),[]);e in t?t[e].push(...r):t[e]=r},o=Object.keys(s);if(o.length)for(let e of o)l(e,s[e]);else l("",r)};r?(this.vendorPrefixSelectors={},w(r,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let O=a.split("@"),_=O[0];if(_)for(let e of(this.vendorSuffixSelectors={},w(_,this.vendorSuffixSelectors),Object.values(this.vendorSuffixSelectors)))for(let t of e){!1!==this.hasWhere&&(this.hasWhere=t.includes(":where("));let e=[":disabled",":active",":focus",":hover"];for(let i=0;i<e.length;i++)if(t.includes(e[i])){(-1===this.priority||this.priority>i)&&(this.priority=i);break}}else this.vendorSuffixSelectors={"":[""]};let V={},A=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),$=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(A)V[""]=$?[""]:Object.keys(this.vendorSuffixSelectors);else if($)for(let e in this.vendorPrefixSelectors)V[e]=[""];else for(let e in this.vendorPrefixSelectors){let t=V[e]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,e))t.push(e);else for(let e in this.vendorSuffixSelectors)t.push(e)}for(let e=1;e<O.length;e++){let t=O[e];if(this.atToken=(this.atToken||"")+"@"+t,t){if("rtl"===t||"ltr"===t)this.direction=t;else{let e;let i=[],a=/^(media|supports|container|layer)/,r=a.exec(t);if(r)e=r[1],i.push({type:"arbitrary",token:t,value:t.slice(e.length).replace(/\|/g," ")});else{let r=t=>{if("&"===t)i.push({type:"operator",token:t,value:"and"});else if(t.startsWith("")){let r=x[t];if(r&&"string"==typeof r){let s=r.match(a);if(!(e=s?s[1]:""))throw Error(`Invalid query '${t}': '${r}'`);i.push({type:"arbitrary",value:r.slice(s?s[1].length+1:0)})}else{e="media";let a="",s="",l=0;t.startsWith("<=")?(s="<=",a="max-width"):t.startsWith(">")&&!t.startsWith(">=")?(s=">",a="min-width",l=.02):t.startsWith("<")?(s="<",a="max-width",l=-.02):(t.startsWith(">=")||r)&&(s=">=",a="min-width");let o=s?t.replace(s,""):t,n=x[o];switch(a){case"max-width":case"min-width":if("number"==typeof n)i.push({type:"feature",name:a,valueType:"number",value:n+l,unit:"px"});else{let e=this.parseValue(o,"px");"number"===e.type?i.push({type:"feature",name:a,valueType:"number",value:e.value+l,unit:e.unit}):i.push({type:"feature",name:a,valueType:"string",value:o})}}}}},s=t.includes("&");if(s)for(let e of t.split(/(&|,)/))r(e);else r(t);if(!i.length&&!s&&k?.[t]){this.mode=t;continue}}e&&(this.at[e]=i)}}}this.valueComponents&&(d&&(this.valueComponents=d.call(this,this.valueComponents)),s=this.resolveValue(this.valueComponents,g,[],!1),u&&(s=u.call(this,s)),c?this.declarations=c.call(this,s,this.valueComponents):l&&(this.declarations={[l]:s}));let L=[];for(let e in this.declarations){let t=e=>{if(S&&(e.startsWith("animation")||e.startsWith("animation-name"))){let t=e.split(":")[1].split("!important")[0].split(" ").filter(e=>e in this.css.animations&&(!this.animationNames||!this.animationNames.includes(e)));t.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=t)}L.push(e+((this.important||v)&&!e.endsWith("!important")?"!important":""))},i=e+":",a=this.declarations[e];if(Array.isArray(a))for(let e of a)t(i+String(e));else t(i+String(a))}if(L.length)for(let t in V)for(let i of V[t]){let a="";this.direction&&(a+="[dir="+this.direction+"] ");let r=this.vendorPrefixSelectors[t],s=this.vendorSuffixSelectors[i],l=r.map(e=>e+a),o=e=>l.map(e=>(this.mode&&k?.[this.mode]!=="media"?k?.[this.mode]==="host"?`:host(.${this.mode}) `:`.${this.mode} `:"")+(p?p+" ":"")+e).reduce((t,i)=>(t.push(s.reduce((t,a)=>(t.push(i+"."+f(e)+a),t),[]).join(",")),t),[]).join(","),n=o(e)+(R?R.reduce((e,t)=>e+","+o(t),""):"")+"{"+L.join(";")+"}";for(let e of Object.keys(this.at).sort((e,t)=>"supports"===t?-1:1))n="@"+e+(e.includes(" ")?"":" ")+this.at[e].map(e=>this.resolveAtComponent(e)).join(" ")+"{"+n+"}";this.mode&&k?.[this.mode]==="media"&&(n=`@media(prefers-color-scheme:${this.mode}){`+n+"}"),this.natives.push({text:n})}}resolveAtComponent(e){switch(e.type){case"arbitrary":case"operator":return e.value;case"feature":return"("+e.name+":"+e.value+(e.unit||"")+")"}}resolveValue;get text(){return this.natives.map(e=>e.text).join("")}parseValues;parseValue(e,t=this.definition.unit){let i;let a=t??this.definition.unit,r="";if("number"==typeof e)return a&&!r?(("rem"===a||"em"===a)&&(i=e/(this.css.config.rootSize||1)),r=a||""):i=e,{value:i,unit:r,type:"number"};if(a){if(/^\d+\/\d+/.test(e)){let[t,i]=e.split("/");return{value:+t/+i*100,unit:"%",type:"number"}}let t=e.match(m.UNIT_REGEX);if(t)return i=+t[1],(r=t[3]||"")||(("rem"===a||"em"===a)&&(i/=this.css.config.rootSize||1),r=a||""),{value:i,unit:r,type:"number"}}return{value:e,type:"string"}}};var x={},E={};E.flattenObject=function e(t,i=""){return Object.entries(t).reduce((t,[a,r])=>{let s=i?`${i}${a?"-"+a:""}`:a;return"object"!=typeof r||Array.isArray(r)?t[s]=r:Object.assign(t,e(r,s)),t},{})};var S=function(...e){let t=e=>{let t=d({},e),i=e=>{for(let t in e){let a=e[t];"object"!=typeof a||Array.isArray(a)?t&&!t.startsWith("@")&&(e[t]={"":a}):i(a)}};return t.styles&&i(t.styles),t.at&&i(t.at),t.variables&&i(t.variables),t},i=[];for(let a of e)a&&function e(a){if(a.extends?.length)for(let t of a.extends)e("config"in t?t.config:t);i.push(t(a))}(a);let a={animations:{},styles:{},at:{},variables:{}};for(let e=0;e<i.length;e++){let t=i[e];for(let e in t)"animations"===e?t.animations&&Object.assign(a.animations,t.animations):t[e]&&(a=d(a,{[e]:t[e]}))}return a};Object.defineProperty(x,"__esModule",{value:!0});var R=function(e){let t,i,a,r;return e.startsWith("#")&&(e=e.slice(1)),3===e.length||4===e.length?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),a=parseInt(e[2]+e[2],16),r=4===e.length?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(6===e.length||8===e.length)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),r=8===e.length?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,a,r]};let w=class e{customConfig;static config=a.config;syntaxes;ruleBy;classesUsage;config;Rules;constructor(t){this.customConfig=t,this.syntaxes=[],this.ruleBy={},this.classesUsage={},this.Rules=[],t?.override?this.config=S(t):this.config=S(a.config,t),this.resolve(),this.constructor===e&&O.push(this)}resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.at={},this.animations={},this.Rules.length=0,this.variablesNativeRules={},this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:t,selectors:i,variables:a,utilities:r,at:s,syntaxes:l,animations:o}=this.config;function n(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i){let e=E.flattenObject(i);for(let t in e){let i=e[t],a=RegExp(n(t)+"(?![a-z-])");for(let e of Array.isArray(i)?i:[i]){let t=e.match(/^::-[a-z]+-/m)?.[0]??"",i=this.selectors[t];i||(i=this.selectors[t]=[]);let r=i.find(([e])=>e===a);r||(r=[a,[]],i.push(r)),r[1].push(e)}}}if(a){let t={},i=(a,r,s)=>{if(null===a)return;let l=(t,i,a,r)=>{if(void 0===i)return;let l=t.join("-"),o=t.slice(0,-1).filter(Boolean),n=(""===t[0]?"-":"")+t[t.length-1];if(i.key=n,i.name=l,o.length&&(i.group=o.join(".")),"color"===i.type){if(r){let e=i.value.indexOf("/");i={...i,value:-1===e?i.value+" / "+(r.startsWith("0.")?r.slice(1):r):i.value.slice(0,e+2)+String(+i.value.slice(e+2)*+r).slice(1)}}e[l]=void 0}i.name.startsWith("screen-")&&"number"===i.type&&(this.at[i.name.slice(7)]=i.value);let u=a??s;if(void 0!==u){if(Object.prototype.hasOwnProperty.call(this.variables,l)){let e=this.variables[l];u?(e.modes||(e.modes={}),e.modes[u]=i):(e.value=i.value,"color"===i.type&&(e.space=i.space))}else if(u){let e={key:i.key,name:i.name,group:i.group,type:i.type,modes:{[u]:i}};"color"===i.type&&(e.space=i.space),this.variables[l]=e}else this.variables[l]=i}else this.variables[l]=i};if("object"==typeof a){if(Array.isArray(a))l(r,{type:"string",value:a.join(",")});else{let e=Object.keys(a);for(let t of e)""===t||t.startsWith("@")?i(a[t],r,t||e.some(e=>e.startsWith("@"))?t.slice(1):void 0):i(a[t],[...r,t])}}else if("number"==typeof a)l(r,{type:"number",value:a}),l(["",...r],{type:"number",value:-1*a});else if("string"==typeof a){let e=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(a),i=r.join("-");if(e)Object.prototype.hasOwnProperty.call(t,i)||(t[i]={}),t[i][s]=()=>{delete t[i][s];let[a,o]=e[1].split("@");if(a){if(Object.prototype.hasOwnProperty.call(t,a))for(let e of Object.keys(t[a]))t[a][e]?.();let i=this.variables[a];if(i){if(void 0===o&&i.modes)for(let t in l(r,{type:i.type,value:i.value,space:i.space},"",e[2]),i.modes)l(r,i.modes[t],t,e[2]);else{let t=void 0!==o?i.modes?.[o]:i;if(t){let i={type:t.type,value:t.value};"color"===t.type&&(i.space=t.space),l(r,i,void 0,e[2])}}}}};else{let e=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(a);if(e){let[t,i,a,s]=R(e[1]);l(r,{type:"color",value:`${t} ${i} ${a}${1===s?"":" / "+s}`,space:"rgb"})}else{let e=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(a);if(e)l(r,{type:"color",value:e[1]+" "+e[2]+" "+e[3]+(e[4]?" / "+(e[4].startsWith("0.")?e[4].slice(1):e[4]):""),space:"rgb"});else{let e=/^hsl\((.*?)\)$/.exec(a);e?l(r,{type:"color",value:e[1],space:"hsl"}):l(r,{type:"string",value:a})}}}}};for(let e in a)i(a[e],[e]);for(let e of Object.keys(t))for(let i of Object.keys(t[e]))t[e][i]?.()}if(s&&Object.assign(this.at,E.flattenObject(s)),o)for(let e in o){let t=this.animations[e]={},i=o[e];for(let e in i){let a=t[e]={},r=i[e];for(let e in r)a[e]=r[e]}}let u=t?E.flattenObject(t):{},c=Object.keys(u),d=e=>{if(Object.prototype.hasOwnProperty.call(this.styles,e))return;let t=this.styles[e]=[],i=u[e];if(i)for(let a of i.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ")){let i=i=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,i)){let t=this.stylesBy[i];t.includes(e)||t.push(e)}else this.stylesBy[i]=[e];t.includes(i)||t.push(i)};if(c.includes(a))for(let e of(d(a),this.styles[a]))i(e);else i(a)}};for(let e of c)d(e);if(l||r){let t=[];if(r)for(let e in r){let i=r[e];t.push([e,{declarations:i,layer:y.Utility}])}l&&t.push(...Object.entries(l));let i=t.length,a=Object.keys(e);t.sort((e,t)=>e[1].layer!==t[1].layer?(t[1].layer||0)-(e[1].layer||0):t[0].localeCompare(e[0])).forEach(([e,t],r)=>{let s={id:e,keys:[],variables:{},matchers:{},order:i-1-r,definition:t};this.Rules.push(s);let{matcher:l,layer:o,subkey:u,ambiguousKeys:c,ambiguousValues:d,sign:h}=t;o===y.Utility&&(s.id="."+e,s.matchers.arbitrary=RegExp("^"+n(e)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"));let f=e=>{for(let t in this.variables){let i=this.variables[t];i.group===e&&(s.variables[i.key]=i)}};if(t.variables)for(let e of t.variables)f(e);f(e);let m=[],{key:b}=t;if((o===y.NativeShorthand||o===y.Native)&&(b||(t.key=b=e),m.push(e)),h)s.matchers.arbitrary=RegExp(`^${h}[^!*>+~:[@_]+\\|`);else if(l)s.matchers.arbitrary=l;else{let t=a.join("|");if(b||u?(b&&!m.includes(b)&&m.push(b),u&&m.push(u),o===y.Shorthand&&m.push(e)):m.push(e),c?.length){let e=c.length>1?`(?:${c.join("|")})`:c[0],i=Object.keys(s.variables);if(d?.length){let i=[];for(let e of d)e instanceof RegExp?i.push(e.source.replace("\\$colors",t)):i.unshift(`${e}(?:\\b|_)`);s.matchers.value=RegExp(`^${e}:(?:${i.join("|")})[^|]*?(?:@|$)`)}i.length&&(s.matchers.variable=RegExp(`^${e}:(?:${i.join("|")}(?![a-zA-Z0-9-]))[^|]*?(?:@|$)`))}}m.length&&(s.keys=m,s.matchers.key=RegExp(`^${m.length>1?`(${m.join("|")})`:m[0]}:.`))})}}match(e){for(let t of this.Rules)if(t.matchers.variable?.test(e))return t;for(let t of this.Rules)if(t.matchers.value?.test(e))return t;for(let t of this.Rules)if(t.matchers.key?.test(e))return t;for(let t of this.Rules)if(t.matchers.arbitrary?.test(e))return t}generate(e){return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(e=>this.create(e)):[this.create(e)]).filter(e=>e&&e?.text)}create(e){if(Object.prototype.hasOwnProperty.call(this.ruleBy,e))return this.ruleBy[e];let t=this.match(e);if(t)return new N.Rule(e,t,this)}refresh(e){for(let t in e?this.customConfig=e:e=this.customConfig,e?.override?this.config=S(e):this.config=S(a.config,e),this.resolve(),this.syntaxes.length=0,this.ruleBy={},this.classesUsage)this.add(t);return this}reset(){for(let e in this.ruleBy={},this.classesUsage={},this.syntaxes.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={},this.animations){let t=this.animations[e];t.usage=0,t.native=void 0}for(let e in this.variables)this.variables[e].usage=0;return this}destroy(){return this.reset(),O.splice(O.indexOf(this),1),this}add(...e){for(let t of e){let e=this.generate(t);if(e.length)for(let t of e)this.insert(t)}return this}delete(...e){let t=this.style?.sheet,i=e=>{let i=this.ruleBy[e];if(!(!i||Object.prototype.hasOwnProperty.call(this.stylesBy,e)&&this.stylesBy[e].some(e=>Object.prototype.hasOwnProperty.call(this.classesUsage,e)))){if(t&&i.natives.length){let e=i.natives[0];for(let a=0;a<t.cssRules.length;a++)if(t.cssRules[a]===e.cssRule){for(let e=0;e<i.natives.length;e++)t.deleteRule(a);break}}if(this.syntaxes.splice(this.syntaxes.indexOf(i),1),delete this.ruleBy[e],i.variableNames)for(let e of i.variableNames){let i=this.variables[e];if(i.usage||(i.usage=0),!--i.usage){let a=i=>{let a=this.variablesNativeRules[i];if(a.cssRule.style.removeProperty("--"+e),!a.cssRule.style.length){let e=this.syntaxes[0],r=e.natives.indexOf(a);t?.deleteRule(r),e.natives.splice(r,1),delete this.variablesNativeRules[i],e.natives.length||(this.syntaxes.splice(0,1),this.variablesNativeRules={})}};if(i.value&&a(""),i.modes)for(let e in i.modes)a(e)}}if(i.animationNames){let e=Object.keys(this.variablesNativeRules).length?1:0,a=this.syntaxes[e];for(let e of i.animationNames){let i=this.animations[e];if(i.usage||(i.usage=0),!--i.usage&&i.native){let e=a.natives.indexOf(i.native);t?.deleteRule(Object.keys(this.variablesNativeRules).length+e),a.natives.splice(e,1),i.native=void 0}}a.natives.length||(this.syntaxes.splice(e,1),this.hasKeyframesRule=!1)}i.definition.delete?.call(i,e)}};for(let t of e)if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let e of this.styles[t])Object.prototype.hasOwnProperty.call(this.classesUsage,e)||i(e);delete this.ruleBy[t]}else i(t)}insert(e){let t,i,a;if(this.ruleBy[e.className])return;let r=this.syntaxes.length-1,{at:s,atToken:l,order:o,priority:n,hasWhere:u,className:c}=e,d=(e,t,i)=>{let a=e;for(;a<=r;a++){let e=this.syntaxes[a];if(t?.(e))break;if(i?.(e))return a}return i?-1:a-1};if(l){let e=this.syntaxes.findIndex(e=>e.at?.media);if(-1===e)t=r+1;else{let l=s.media?.find(({name:e})=>"max-width"===e),o=s.media?.find(({name:e})=>"min-width"===e);if(l||o){let e=this.syntaxes.findIndex(e=>e.at?.media?.find(({name:e})=>"max-width"===e||"min-width"===e));if(-1===e)t=r+1;else if(l&&o){if(-1===n?(i=d(e,e=>-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=d(e,e=>-1!==e.priority)):(i=d(e,void 0,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=r),-1!==i){let e=l.value-o.value,t=a,r=i;for(i=a+1;t>=r;t--){let r=this.syntaxes[t],s=r.at.media?.find(({name:e})=>"max-width"===e),l=r.at.media?.find(({name:e})=>"min-width"===e);if(s&&l){let r=s.value-l.value;if(r<e)a=t-1;else if(r===e)i=t;else break}else break}}}else if(o){if(-1===n?(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.syntaxes[e].at.media?.find(({name:e})=>"min-width"===e)).value;if(t>o.value)a=e-1;else if(t<o.value){i=e+1;break}}}else if(-1===n?(i=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)),a=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.syntaxes[e].at.media?.find(({name:e})=>"max-width"===e)).value;if(t<l.value)a=e-1;else if(t>l.value){i=e+1;break}}}else -1===n?(i=e,a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e),e=>-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)))}}else{let e=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;-1===n?(i=e,a=d(e,e=>e.atToken||-1!==e.priority)):(i=d(e,e=>e.atToken,e=>-1!==e.priority),a=d(e,e=>e.atToken))}if(void 0===t&&void 0!==a&&void 0!==i){if(-1===i)t=a+1;else{if(-1===n)for(let e=i;e<=a;e++){let i=this.syntaxes[e];if((u||!i.hasWhere)&&(u&&!i.hasWhere||i.order>=o)){t=e;break}}else for(let e=i;e<=a;e++){let i=this.syntaxes[e];if(u||!i.hasWhere){if(u&&!i.hasWhere||i.priority<n){t=e;break}if(i.priority===n){if(i.order>=o){t=e;break}}else t=e+1}}void 0===t&&(t=a+1)}}if(this.syntaxes.splice(t,0,e),this.ruleBy[c]=e,this.style){let i=this.style.sheet,a=0,r=e=>{let t=this.syntaxes[e];if(t){if(!t.natives.length)return r(e-1);let s=t.natives[t.natives.length-1],l=s.cssRule?.parentRule??s.cssRule;if(i){for(let e=0;e<i.cssRules.length;e++)if(i.cssRules[e]===l){a=e+1;break}}}};r(t-1);for(let t=0;t<e.natives.length;)try{let r=e.natives[t];i?.insertRule(r.text,a),r.cssRule=i?.cssRules[a++],t++}catch(i){console.error(i),e.natives.splice(t,1)}}return this.handleRuleWithVariableNames(e),this.handleRuleWithAnimationNames(e),e.definition.insert?.call(e),t}get text(){return this.syntaxes.map(e=>e.text).join("")}handleRuleWithAnimationNames(e,t=!1){if(e.animationNames){let i=this.style?.sheet;for(let a of e.animationNames){let e=this.animations[a];if(e.usage)e.usage++;else{let r;let s={text:`@keyframes ${a}{`+Object.entries(e).filter(([e])=>"usage"!==e&&"native"!==e).map(([e,t])=>`${e}{${Object.entries(t).map(([e,t])=>e+":"+t).join(";")}}`).join("")+"}"},l=Object.keys(this.variablesNativeRules).length?1:0;if(this.hasKeyframesRule?(r=this.syntaxes[l]).natives.push(s):(this.syntaxes.splice(l,0,r={natives:[s],get text(){return this.natives.map(e=>e.text).join("")}}),this.hasKeyframesRule=!0),i){let e;if(t)for(let t=0;t<i.cssRules.length;t++){let r=i.cssRules[t];if("CSSKeyframesRule"===r.constructor.name&&r.name===a){e=r;break}}if(e)s.cssRule=e;else{let e=Object.keys(this.variablesNativeRules).length+r.natives.length-1;i.insertRule(s.text,e),s.cssRule=i.cssRules[e]}}e.usage=1,e.native=s}}}}handleRuleWithVariableNames(e,t=!1){if(e.variableNames){let i=this.style?.sheet;for(let a of e.variableNames){let e=this.variables[a];if(e.usage)e.usage++;else{let r=(e,r)=>{let s=this.variablesNativeRules[e];if(!s){let t,a,r;if(e)switch(this.config.modes?.[e]){case"media":a=`@media(prefers-color-scheme:${e})`,r=":root";break;case"host":r=`:host(.${e})`;break;case"class":r=`.${e}`;break;default:return}else r=":root";if(i){let e=Object.keys(this.variablesNativeRules).length?this.syntaxes[0].natives.length:0;i.insertRule((a?a+"{":"")+r+"{}"+(a?a+"}":""),e),t=a?i.cssRules[e].cssRules[0]:i.cssRules[e]}else{let e=new Map,i=Object.defineProperties({},{getPropertyValue:{value:t=>e.get(t)},removeProperty:{value:t=>{e.delete(t);for(let e=0;e<i.length;e++)i[e]===t&&delete i[e]}},setProperty:{value:(t,a)=>{i[i.length]=t,e.set(t,a)}},length:{get:()=>Object.keys(i).length}});t={selectorText:r,style:i,styleMap:e},a&&(t.parentRule={conditionText:a})}s=this.pushVariableNativeRule(e,t)}let l="--"+a;t&&s.cssRule.style.getPropertyValue(l)||s.cssRule.style.setProperty(l,String(r.value))};if(e.value&&r("",e),e.modes)for(let t in e.modes)r(t,e.modes[t]);e.usage=1}}}}pushVariableNativeRule(e,t){Object.keys(this.variablesNativeRules).length||(this.variablesNativeRules={},this.syntaxes.splice(0,0,{natives:[],get text(){return this.natives.map(e=>e.text).join("")}}));let i="",a="}";t.parentRule&&(i+=t.parentRule.conditionText.replace(/ /g,"")+"{",a+="}"),i+=t.selectorText+"{";let r={cssRule:t,get text(){let e=[];for(let i=0;i<t.style.length;i++){let a=t.style[i];e.push(a+":"+t.style.getPropertyValue(a))}return i+e.join(";")+a}};return this.syntaxes[0].natives.push(this.variablesNativeRules[e]=r),r}},O=[];globalThis.MasterCSS=w,globalThis.masterCSSs=O,x.default=w,x.masterCSSs=O;var _=function(e,t){return e.mode===t.mode},V=function(e,t){let i=Object.keys(e.at),a=Object.keys(t.at);if(i.length!==a.length)return!1;for(let a of i){let i=e.at[a],r=t.at[a];for(let a of i){let i=e.resolveAtComponent(a);if(!r.find(e=>t.resolveAtComponent(e)===i))return!1}}return!0},A=function(e,t){let i=Object.keys(e.vendorSuffixSelectors),a=Object.keys(t.vendorSuffixSelectors);if(i.length!==a.length||!i.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorSuffixSelectors,i))return!1;let a=e.vendorSuffixSelectors[i],r=t.vendorSuffixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))return!1;let r=Object.keys(e.vendorPrefixSelectors),s=Object.keys(t.vendorPrefixSelectors);return!!(r.length===s.length&&r.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorPrefixSelectors,i))return!1;let a=e.vendorPrefixSelectors[i],r=t.vendorPrefixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))};Object.defineProperty(i,"__esModule",{value:!0});var $=i.config=a.config;i.Rule=N.Rule,i.ANIMATION_SIGN=m.ANIMATION_SIGN,i.AT_SIGN=m.AT_SIGN,i.BASE_UNIT_REGEX=m.BASE_UNIT_REGEX,i.BORDER_STYLE_VALUES=m.BORDER_STYLE_VALUES,i.CLASS_ATTRIBUTES=m.CLASS_ATTRIBUTES,i.CLASS_DECLARATIONS=m.CLASS_DECLARATIONS,i.CLASS_FUNCTIONS=m.CLASS_FUNCTIONS,i.COLOR_VALUE_REGEX=m.COLOR_VALUE_REGEX,i.DELIMITER_SIGN=m.DELIMITER_SIGN,i.IMAGE_VALUE_REGEX=m.IMAGE_VALUE_REGEX,i.NUMBER_VALUE_REGEX=m.NUMBER_VALUE_REGEX,i.OFFICIAL_URL=m.OFFICIAL_URL,i.QUERY_COMPARISON_OPERATORS=m.QUERY_COMPARISON_OPERATORS,i.QUERY_LOGICAL_OPERATORS=m.QUERY_LOGICAL_OPERATORS,i.SELECTOR_SIGNS=m.SELECTOR_SIGNS,i.SEPARATOR_SIGN=m.SEPARATOR_SIGN,i.SEPARATOR_SIGNS=m.SEPARATOR_SIGNS,i.TRANSITION_SIGN=m.TRANSITION_SIGN,i.UNIT_REGEX=m.UNIT_REGEX,i.VALUE_DELIMITERS=m.VALUE_DELIMITERS,i.VALUE_UNITS=m.VALUE_UNITS;var L=i.MasterCSS=x.default;i.default=x.default,i.masterCSSs=x.masterCSSs,i.Layer=y,i.extendConfig=S,i.reorderForReadableClasses=function(e,t=new x.default){t.add(...e);let i=t.syntaxes.filter(e=>e.layer).sort((e,t)=>{if(e.layer===y.Utility&&t.layer!==y.Utility)return -1;if(e.layer!==y.Utility&&t.layer===y.Utility)return 1;if(e.id!==t.id)return e.className.localeCompare(t.className);{let i=e.vendorSuffixSelectors?.[""]?.[0],a=t.vendorSuffixSelectors?.[""]?.[0];if(-1===e.priority&&-1===t.priority){if(i&&a)return i.localeCompare(a);let r=e.atToken,s=t.atToken;if(r&&s&&!e.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e)&&!t.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e))return r.localeCompare(s);if(i&&!a)return 1;if(!i&&a)return -1;if(r&&!s)return 1;if(!r&&s)return -1}return e.id===t.id&&e.stateToken===t.stateToken?e.className.localeCompare(t.className):e.order-t.order}}).map(e=>e.className);return t.delete(...e),i},i.areRuleModesEqual=_,i.areRuleAtEqual=V,i.areRuleSelectorsEqual=A,i.areRuleStatesEqual=function(e,t){return A(e,t)&&_(e,t)&&V(e,t)},i.areRulesDuplicated=function(e,t){let i=Object.keys(e.declarations||{}),a=Object.keys(t.declarations||{});if(i.length!==a.length)return!1;for(let e of i)if(!Object.prototype.hasOwnProperty.call(t.declarations,e))return!1;return!0},i.generateCSS=function(e,t=new x.default){let i="";return t.add(...e),i=t.text,t.delete(...e),i},i.isCoreRule=function(e){return Object.hasOwnProperty.call(p,e)},i.at=r,i.selectors=s,i.utilities=l,i.functions=k,i.animations=o,i.variables=h,i.modes=v,i.syntaxes=p;class U extends L{root;customConfig;host;observing;progressive;container;observer;constructor(e=document,t=$){super(t),this.root=e,this.customConfig=t,this.observing=!1,this.progressive=!1,e||(this.root=document),this.root?.constructor.name==="HTMLDocument"?(this.root.defaultView.globalThis.runtimeCSS=this,this.container=this.root.head,this.host=this.root.documentElement):(this.container=this.root,this.host=this.root.host),j.push(this)}observe(e={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(j.find(e=>e!==this&&e.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let e of this.root.styleSheets){let{ownerNode:t}=e;if(t&&"master"===t.id){this.style=t,this.progressive=!0;break}}if(this.style?.sheet){let e=0;for(;e<this.style.sheet.cssRules.length;e++){let t=this.style.sheet.cssRules[e];switch(t.constructor.name){case"CSSKeyframesRule":continue;case"CSSMeidaRule":let i=/\(prefers-color-scheme: (.*?)\)/.exec(t.conditionText);if(i){let e=t.cssRules[0];if(e?.constructor.name==="CSSStyleRule"&&":root"===e.selectorText){this.pushVariableNativeRule(i[1],e);continue}}break;case"CSSStyleRule":let a=t.selectorText;if(t.style.length){let e=!0;for(let i=0;i<t.style.length;i++)if(!t.style[i]?.startsWith("--")){e=!1;break}if(e){if(":root"===a){this.pushVariableNativeRule("",t);continue}{let e=/:host(.*?)/.exec(a);if(e){this.pushVariableNativeRule(e[1],t);continue}if(!a.startsWith(".\\$")){this.pushVariableNativeRule(a.slice(1),t);continue}}}}}break}for(;e<this.style.sheet.cssRules.length;e++){let t=e=>{if(e.selectorText){let t=e.selectorText.split(", ")[0].split(" ");for(let e=0;e<t.length;e++){let i=t[e];if("."===i[0]){let e=i.slice(1),t="";for(let i=0;i<e.length;i++){let a=e[i],r=e[i+1];if("\\"===a){if(i++,"\\"!==r){t+=r;continue}}else if([",",".","#","[","!","*",">","+","~",":","@"].includes(a))break;t+=a}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,t)&&!Object.prototype.hasOwnProperty.call(this.styles,t)){let e=this.generate(t)[0];if(e)return e}}}}else if(e.cssRules)for(let i=0;i<e.cssRules.length;i++){let a=t(e.cssRules[i]);if(a)return a}},i=t(this.style.sheet.cssRules[e]);if(i){this.syntaxes.push(i),this.ruleBy[i.className]=i;for(let t=0;t<i.natives.length;t++)i.natives[t].cssRule=this.style.sheet.cssRules[e+t];e+=i.natives.length-1,this.handleRuleWithVariableNames(i,!0),this.handleRuleWithAnimationNames(i,!0),i.definition.insert?.call(i)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let t=e=>{e.forEach(e=>{Object.prototype.hasOwnProperty.call(this.classesUsage,e)?this.classesUsage[e]++:(this.classesUsage[e]=1,this.add(e))})};return t(this.host.classList),e.subtree&&("HTMLDocument"===this.root.constructor.name?this.host:this.container).querySelectorAll("[class]").forEach(e=>t(e.classList)),this.observer=new MutationObserver(e=>{let t={},i=[],a=[],r=[],s=(e,t)=>{t?e.classList.forEach(o):e.classList.forEach(l);let i=e.children;for(let e=0;e<i.length;e++){let r=i[e];r.classList&&!a.includes(r)&&(a.push(r),s(r,t))}},l=e=>{Object.prototype.hasOwnProperty.call(t,e)?t[e]++:t[e]=1},o=e=>{Object.prototype.hasOwnProperty.call(t,e)?t[e]--:Object.prototype.hasOwnProperty.call(this.classesUsage,e)&&(t[e]=-1)},n=(e,t)=>{for(let i=0;i<e.length;i++){let l=e[i];!l.classList||a.includes(l)||r.includes(l)||(l.isConnected!==t?(a.push(l),s(l,t)):r.push(l))}};for(let t=0;t<e.length;t++){let r=e[t],{addedNodes:s,removedNodes:l,type:o,target:u}=r;if("attributes"===o){if(i.find(e=>e.target===u))continue;i.push(r)}else n(s,!1),u.isConnected&&a.includes(u)||n(l,!0)}if(i.length||Object.keys(t).length){for(let{oldValue:e,target:t}of i){let i=a.includes(t),r=t.classList,s=e?e.split(" "):[];if(i){if(t.isConnected)continue;for(let e of s)r.contains(e)||o(e)}else if(t.isConnected)for(let e of(r.forEach(e=>{s.includes(e)||l(e)}),s))r.contains(e)||o(e)}for(let e in t){let i=t[e],a=(this.classesUsage[e]||0)+i;0===a?(delete this.classesUsage[e],this.delete(e)):(Object.prototype.hasOwnProperty.call(this.classesUsage,e)||this.add(e),this.classesUsage[e]=a)}}}),this.observer.observe(this.root,{...e,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(e=this.customConfig){let t=this.style?.sheet;if(t?.cssRules)for(let e=t.cssRules.length-1;e>=0;e--)t.deleteRule(e);return super.refresh(e),this}reset(){super.reset();let e=this.style?.sheet;if(e?.cssRules)for(let t=e.cssRules.length-1;t>=0;t--)e.deleteRule(t);return this.progressive||(this.style?.remove(),this.style=null),this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),j.splice(j.indexOf(this),1),this}}let j=[];globalThis.RuntimeCSS=U,globalThis.runtimeCSSs=j,new U(document,window.masterCSSConfig).observe()}();
1
+ !function(){var e,t,i={},a={},r={all:"media all",print:"media print",screen:"media screen",speech:"media speech",landscape:"media (orientation:landscape)",portrait:"media (orientation:portrait)",motion:"media (prefers-reduced-motion:no-preference)","reduced-motion":"media (prefers-reduced-motion:reduce)"},s={"::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"],"::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},l={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%","aspect-ratio":"1/1"},hidden:{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"},overflowed:{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"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"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%"},top:{top:0},left:{left:0},right:{right:0},bottom:{bottom:0},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"},"gradient-text":{"-webkit-text-fill-color":"transparent","-webkit-background-clip":"text","background-clip":"text"},fit:{width:"fit-content",height:"fit-content"}},o={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}};function n(e){let t="undefined"!=typeof Buffer?Buffer:null;return!!t&&e instanceof t||e instanceof Date||e instanceof RegExp}function u(e){if(("undefined"!=typeof Buffer?Buffer:null)&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error("Unexpected situation")}function c(e,t){return"__proto__"===t?void 0:e[t]}function d(...e){let t,i;let a={};return e.forEach(function(e){"object"!=typeof e||null===e||Array.isArray(e)||Object.keys(e).forEach(function(r){if(i=c(a,r),(t=c(e,r))!==a){if("object"!=typeof t||null===t){a[r]=t;return}if(Array.isArray(t)){a[r]=function e(t){let i=[];return t.forEach(function(t,a){"object"==typeof t&&null!==t?Array.isArray(t)?i[a]=e(t):n(t)?i[a]=u(t):i[a]=d({},t):i[a]=t}),i}(t);return}if(n(t)){a[r]=u(t);return}if("object"!=typeof i||null===i||Array.isArray(i)){a[r]=d({},t);return}else{a[r]=d(i,t);return}}})}),a}let h=d({gray:{5:"#f6f5f7",10:"#efeef0",20:"#cdccce",30:"#a2a1a3",40:"#89888a",50:"#737274",60:"#585759",70:"#444345",80:"#323133",90:"#29282a",95:"#222123"},slate:{5:"#f8f9fb",10:"#eff2f9",20:"#c8d0e3",30:"#9fabc6",40:"#7c8cab",50:"#5f7395",60:"#455572",70:"#37455d",80:"#283348",90:"#1d273a",95:"#182030"},brown:{5:"#fff6f0",10:"#feefe3",20:"#f3bea4",30:"#e7976e",40:"#da7c4d",50:"#cc6633",60:"#b65325",70:"#9d4119",80:"#833111",90:"#692007",95:"#431304"},orange:{5:"#fff5ea",10:"#fff5df",20:"#ffcb9e",30:"#ff9b47",40:"#ff8528",50:"#ff6c0a",60:"#e05200",70:"#bc3e00",80:"#992d00",90:"#701d00",95:"#471100"},amber:{5:"#fff9eb",10:"#fff4db",20:"#ffe099",30:"#ffc133",40:"#ffb10a",50:"#f99e00",60:"#e57e00",70:"#c15d00",80:"#a34900",90:"#753200",95:"#4c1f00"},yellow:{5:"#fffae5",10:"#fffed1",20:"#ffe993",30:"#ffd233",40:"#ffc300",50:"#efaf00",60:"#d69200",70:"#b77400",80:"#9e5c00",90:"#753c00",95:"#4c2600"},lime:{5:"#f5ffe5",10:"#f5ffd6",20:"#d1fb8d",30:"#acec46",40:"#91d91a",50:"#77c012",60:"#61a60c",70:"#4c8d07",80:"#367604",90:"#256000",95:"#1b3d00"},green:{5:"#e7fdea",10:"#dbfee4",20:"#a5f7b8",30:"#35ed66",40:"#00d655",50:"#00c147",60:"#00ad3f",70:"#008e34",80:"#007a2c",90:"#006023",95:"#003d16"},beryl:{5:"#e0fef2",10:"#d2fff7",20:"#6cffd4",30:"#0fefa4",40:"#04e09e",50:"#04cb8f",60:"#00b277",70:"#009360",80:"#007f50",90:"#00663e",95:"#003d24"},teal:{5:"#dbfefd",10:"#cfffff",20:"#7ffff6",30:"#00f4e4",40:"#00e4d4",50:"#00ccc8",60:"#00aeb7",70:"#0092a3",80:"#00798e",90:"#005d75",95:"#003747"},cyan:{5:"#e0ffff",10:"#d1ffff",20:"#7ff6ff",30:"#1ee1ff",40:"#00ccf9",50:"#00b3ea",60:"#0099d6",70:"#007dbc",80:"#0067a8",90:"#005089",95:"#003156"},sky:{5:"#e5f5ff",10:"#d9f8ff",20:"#a3deff",30:"#6bc6ff",40:"#34b2fd",50:"#059fff",60:"#008df9",70:"#0073e0",80:"#005cc6",90:"#0041a3",95:"#002566"},blue:{5:"#e5f3fe",10:"#dbf2fe",20:"#add7ff",30:"#70b0ff",40:"#4c93fd",50:"#3a7cff",60:"#2563fd",70:"#1b53ec",80:"#1947d1",90:"#1735a2",95:"#102069"},indigo:{5:"#f0f1fe",10:"#e9ecfe",20:"#c8cdfe",30:"#939eff",40:"#7e81fe",50:"#7068ff",60:"#5b4cfd",70:"#4e39ed",80:"#4732d2",90:"#3623a3",95:"#26176c"},violet:{5:"#f2efff",10:"#efe8ff",20:"#d7c5ff",30:"#b198fe",40:"#9a70ff",50:"#8e56fe",60:"#812fff",70:"#7407f2",80:"#6405d1",90:"#4f05a3",95:"#35036e"},purple:{5:"#f6f0ff",10:"#f6e8fe",20:"#e2bffe",30:"#c492fd",40:"#b266ff",50:"#a849fe",60:"#9514ff",70:"#8200e5",80:"#7100c1",90:"#58008e",95:"#3e0060"},fuchsia:{5:"#faf0ff",10:"#fde8fe",20:"#f0baff",30:"#dd89fe",40:"#d760fe",50:"#cf33ff",60:"#b700e5",70:"#a200c6",80:"#8700a3",90:"#660175",95:"#480051"},pink:{5:"#fef1f9",10:"#fee9f8",20:"#ffb8df",30:"#f986c1",40:"#fa65b2",50:"#f747a2",60:"#ef2188",70:"#d61673",80:"#b80c5c",90:"#8f0543",95:"#64032f"},crimson:{5:"#ffeff2",10:"#ffe8ec",20:"#ffbac7",30:"#ff849d",40:"#ff6684",50:"#fc4065",60:"#ed2a51",70:"#d7173e",80:"#bb1536",90:"#8f132c",95:"#620e1f"},red:{5:"#ffefef",10:"#fee8e8",20:"#ffbcbc",30:"#ff8787",40:"#fd5f5f",50:"#f73f3f",60:"#e52e2e",70:"#d01b1b",80:"#b81919",90:"#921515",95:"#650f0f"}},{full:"100%",fit:"fit-content",max:"max-content",min:"min-content",screen:{"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},"font-family":{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"]},"font-weight":{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},"flex-direction":{col:"column","col-reverse":"column-reverse"},"box-sizing":{content:"content-box",border:"border-box"},position:{abs:"absolute",rel:"relative"},"transform-box":{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},"animation-direction":{alt:"alternate","alt-reverse":"alternate-reverse"},"background-clip":{content:"content-box",border:"border-box",padding:"padding-box"},"background-origin":{content:"content-box",border:"border-box",padding:"padding-box"},order:{first:-999999,last:999999},"shape-outside":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"},"clip-path":{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},current:"currentColor",white:"#ffffff",black:"#000000",base:{"@light":"$(white)","@dark":"$(gray-95)"},canvas:{"@light":"$(slate-5)","@dark":"$(gray-90)"},surface:{"@light":"$(white)","@dark":"$(gray-80)"},invert:{"@light":"$(black)","@dark":"$(white)"},line:{neutral:{"@light":"$(slate-60)","@dark":"$(gray-30)"}},gray:{"@light":"$(gray-30)","@dark":"$(gray-40)"},slate:{"@light":"$(slate-30)","@dark":"$(slate-40)"},brown:{"@light":"$(brown-40)","@dark":"$(brown-50)"},orange:{"@light":"$(orange-40)","@dark":"$(orange-50)"},amber:{"@light":"$(amber-40)","@dark":"$(amber-50)"},yellow:{"@light":"$(yellow-40)","@dark":"$(yellow-50)"},lime:{"@light":"$(lime-40)","@dark":"$(lime-50)"},green:{"@light":"$(green-40)","@dark":"$(green-50)"},beryl:{"@light":"$(beryl-40)","@dark":"$(beryl-50)"},teal:{"@light":"$(teal-40)","@dark":"$(teal-50)"},cyan:{"@light":"$(cyan-40)","@dark":"$(cyan-50)"},sky:{"@light":"$(sky-60)","@dark":"$(sky-50)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-50)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-50)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-50)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-50)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-50)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-50)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-50)"},red:{"@light":"$(red-60)","@dark":"$(red-50)"},text:{invert:{"@light":"$(white)","@dark":"$(black)"},strong:{"@light":"$(slate-95)","@dark":"$(gray-10)"},neutral:{"@light":"$(slate-70)","@dark":"$(gray-30)"},lightest:{"@light":"$(slate-30)","@dark":"$(gray-60)"},lighter:{"@light":"$(slate-40)","@dark":"$(gray-50)"},light:{"@light":"$(slate-50)","@dark":"$(gray-40)"},gray:{"@light":"$(gray-60)","@dark":"$(gray-30)"},slate:{"@light":"$(slate-60)","@dark":"$(slate-30)"},brown:{"@light":"$(brown-60)","@dark":"$(brown-30)"},orange:{"@light":"$(orange-60)","@dark":"$(orange-30)"},amber:{"@light":"$(amber-60)","@dark":"$(amber-40)"},yellow:{"@light":"$(yellow-60)","@dark":"$(yellow-40)"},lime:{"@light":"$(lime-70)","@dark":"$(lime-40)"},green:{"@light":"$(green-70)","@dark":"$(green-40)"},beryl:{"@light":"$(beryl-70)","@dark":"$(beryl-40)"},teal:{"@light":"$(teal-70)","@dark":"$(teal-40)"},cyan:{"@light":"$(cyan-70)","@dark":"$(cyan-40)"},sky:{"@light":"$(sky-70)","@dark":"$(sky-30)"},blue:{"@light":"$(blue-60)","@dark":"$(blue-30)"},indigo:{"@light":"$(indigo-60)","@dark":"$(indigo-30)"},violet:{"@light":"$(violet-60)","@dark":"$(violet-30)"},purple:{"@light":"$(purple-60)","@dark":"$(purple-30)"},fuchsia:{"@light":"$(fuchsia-60)","@dark":"$(fuchsia-30)"},pink:{"@light":"$(pink-60)","@dark":"$(pink-30)"},crimson:{"@light":"$(crimson-60)","@dark":"$(crimson-30)"},red:{"@light":"$(red-60)","@dark":"$(red-30)"}}});var f=function(e){let t;if("undefined"!=typeof CSS)return CSS.escape(e);if(0==arguments.length)throw TypeError("`CSS.escape` requires an argument.");let i=String(e),a=i.length,r=-1,s="",l=i.charCodeAt(0);if(1==a&&45==l)return"\\"+i;for(;++r<a;){if(0==(t=i.charCodeAt(r))){s+="�";continue}if(t>=1&&t<=31||127==t||0==r&&t>=48&&t<=57||1==r&&t>=48&&t<=57&&45==l){s+="\\"+t.toString(16)+" ";continue}if(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122){s+=i.charAt(r);continue}s+="\\"+i.charAt(r)}return s};(e=t||(t={}))[e.Utility=-4]="Utility",e[e.NativeShorthand=-3]="NativeShorthand",e[e.Shorthand=-2]="Shorthand",e[e.Native=-1]="Native",e[e.Normal=0]="Normal";var y=t,m={};let b=new URL("https://rc.css.master.co");m.ANIMATION_SIGN="@",m.AT_SIGN="@",m.BASE_UNIT_REGEX=/^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m,m.BORDER_STYLE_VALUES=["none","auto","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],m.CLASS_ATTRIBUTES=["class","className"],m.CLASS_DECLARATIONS=["styles"],m.CLASS_FUNCTIONS=["clsx","cva","ctl","cv","class","classnames","classVariant","styled(?:\\s+)?(?:\\.\\w+)?","classList(?:\\s+)?\\.(?:add|remove|toggle|replace)"],m.COLOR_VALUE_REGEX=/(?:#|(?:color|color-contrast|color-mix|hwb|lab|lch|oklab|oklch|rgb|rgba|hsl|hsla)\(.*\)|(?:\$colors)(?![a-zA-Z0-9-]))/,m.DELIMITER_SIGN="|",m.IMAGE_VALUE_REGEX=/(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)/,m.NUMBER_VALUE_REGEX=/(?:[\d.]|(?:max|min|calc|clamp)\([^|]*\))/,m.OFFICIAL_URL=b,m.QUERY_COMPARISON_OPERATORS=[">","<","="],m.QUERY_LOGICAL_OPERATORS=["&"],m.SELECTOR_SIGNS=[":","_",">","+","~"],m.SEPARATOR_SIGN=",",m.SEPARATOR_SIGNS=[",","|"],m.TRANSITION_SIGN="~",m.UNIT_REGEX=/^([+-.]?\d+(\.?\d+)?)(%|cm|mm|q|in|pt|pc|px|em|rem|ex|rex|cap|rcap|ch|rch|ic|ric|lh|rlh|vw|svw|lvw|dvw|vh|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax|cqw|cqh|cqi|cqb|cqmin|cqmax|deg|grad|rad|turn|s|ms|hz|khz|dpi|dpcm|dppx|x|fr|db|st)?$/,m.VALUE_DELIMITERS={"(":")","'":"'",'"':'"',"{":"}"},m.VALUE_UNITS=["%","cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","grad","rad","turn","s","ms","hz","khz","dpi","dpcm","dppx","x","fr","db","st"];var g=function(e){if(e.length<2)return e;let t=!1,i=!1;for(let a of e)("string"===a.type&&m.BORDER_STYLE_VALUES.includes(a.value)||"variable"===a.type&&m.BORDER_STYLE_VALUES.includes(String(a.variable?.value)))&&(t=!0),"function"===a.type&&"var"===a.name&&(i=!0);return t||i||e.push({type:"separator",value:" ",token:"|"},{type:"string",value:"solid",token:"solid"}),e};let p={group:{matcher:/^(?:.+?[*_>~+])?\{.+?\}/,layer:y.Shorthand,analyze(e){let t=0;for(;t<e.length&&("{"!==e[t]||"\\"===e[t-1]);t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},i=e=>{let i=e.indexOf(":");-1!==i&&(t[e.slice(0,i)]=e.slice(i+1))},a=e=>{let t=t=>{let a=t.slice(f(e.className).length).match(/\{(.*)\}/)?.[1].split(";");if(a)for(let e of a)i(e)};for(let i of e.natives)t(i.text);if(e.animationNames)for(let t of(this.animationNames||(this.animationNames=[]),e.animationNames))this.animationNames.includes(t)||this.animationNames.push(t);if(e.variableNames)for(let t of(this.variableNames||(this.variableNames=[]),e.variableNames))this.variableNames.includes(t)||this.variableNames.push(t)},r=[],s="",l=()=>{s&&(r.push(s.replace(/ /g,"|")),s="")},o=1;for(let t of(!function t(i){for(;o<e.length;o++){let a=e[o];if(!i){if(";"===a){l();continue}if("}"===a)break}if(s+=a,i===a){if("'"===i||'"'===i){let e=0;for(let t=s.length-2;"\\"===s[t];t--)e++;if(e%2)continue}break}a in m.VALUE_DELIMITERS&&"'"!==i&&'"'!==i&&(o++,t(m.VALUE_DELIMITERS[a]))}}(""),l(),r)){let e=this.css.generate(t);if(e.length)for(let t of e)a(t);else i(t)}return t}},variable:{matcher:/^\$[\w-]+:/,layer:y.Shorthand,declare(e){return{["--"+this.keyToken.slice(1,-1)]:e}}},"font-size":{ambiguousKeys:["font","f"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"font-weight":{ambiguousKeys:["font","f"],ambiguousValues:["bolder"],layer:y.Native},"font-family":{ambiguousKeys:["font","f"],layer:y.Native},"font-smoothing":{ambiguousKeys:["font","f"],ambiguousValues:["antialiased","subpixel-antialiased"],layer:y.Native,declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},"font-style":{ambiguousKeys:["font","f"],ambiguousValues:["normal","italic","oblique"],layer:y.Native,unit:"deg"},"font-variant-numeric":{ambiguousKeys:["font","f"],ambiguousValues:["ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"],layer:y.Native},"font-variant":{ambiguousKeys:["font","f"],layer:y.NativeShorthand},font:{subkey:"f",layer:y.NativeShorthand,variables:["font-family","font-variant","font-weight","font-size","font-style","line-height"]},"font-feature-settings":{key:"font-feature",layer:y.Native},color:{key:"fg",layer:y.Native,variables:["text"]},"margin-left":{key:"ml",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-right":{key:"mr",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-top":{key:"mt",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-bottom":{key:"mb",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-x":{key:"mx",subkey:"margin-x",unit:"rem",layer:y.Shorthand,declare:e=>({"margin-left":e,"margin-right":e}),variables:["spacing"]},"margin-y":{key:"my",unit:"rem",layer:y.Shorthand,declare:e=>({"margin-top":e,"margin-bottom":e}),variables:["spacing"]},margin:{key:"m",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"margin-inline-start":{key:"mis",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-inline-end":{key:"mie",layer:y.Native,unit:"rem",variables:["spacing"]},"margin-inline":{key:"mi",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"padding-left":{key:"pl",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-right":{key:"pr",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-top":{key:"pt",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-bottom":{key:"pb",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-x":{key:"px",unit:"rem",layer:y.Shorthand,declare:e=>({"padding-left":e,"padding-right":e}),variables:["spacing"]},"padding-y":{key:"py",unit:"rem",layer:y.Shorthand,declare:e=>({"padding-top":e,"padding-bottom":e}),variables:["spacing"]},padding:{key:"p",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"padding-inline-start":{key:"pis",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-inline-end":{key:"pie",layer:y.Native,unit:"rem",variables:["spacing"]},"padding-inline":{key:"pi",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"flex-basis":{ambiguousKeys:["flex"],unit:"rem",layer:y.Native},"flex-wrap":{ambiguousKeys:["flex"],ambiguousValues:["wrap","nowrap","wrap-reverse"],layer:y.Native},"flex-grow":{ambiguousKeys:["flex"],layer:y.Native},"flex-shrink":{ambiguousKeys:["flex"],layer:y.Native},"flex-direction":{ambiguousKeys:["flex"],ambiguousValues:["row","row-reverse","column","column-reverse"],layer:y.Native},flex:{layer:y.NativeShorthand},display:{key:"d",layer:y.Native},width:{key:"w",unit:"rem",layer:y.Native},height:{key:"h",unit:"rem",layer:y.Native},"min-width":{key:"min-w",unit:"rem",layer:y.Native},"min-height":{key:"min-h",unit:"rem",layer:y.Native},size:{layer:y.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{width:t[0].text,height:1===i?t[0].text:t[2].text}}},"min-size":{key:"min",layer:y.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"min-width":t[0].text,"min-height":1===i?t[0].text:t[2].text}}},"max-size":{key:"max",layer:y.Shorthand,unit:"rem",declare(e,t){let i=t.length;return{"max-width":t[0].text,"max-height":1===i?t[0].text:t[2].text}}},"box-sizing":{ambiguousKeys:["box"],layer:y.Native},"box-decoration-break":{key:"box-decoration",layer:y.Native,declare:e=>({"-webkit-box-decoration-break":e,"box-decoration-break":e})},contain:{layer:y.Native},content:{layer:y.Native},"counter-increment":{layer:y.Native},"counter-reset":{layer:y.Native},"letter-spacing":{key:"tracking",subkey:"ls",layer:y.Native,unit:"em"},"line-height":{key:"leading",subkey:"line-h",layer:y.Native},"object-fit":{ambiguousKeys:["object","obj"],ambiguousValues:["contain","cover","fill","scale-down"],layer:y.Native},"object-position":{ambiguousKeys:["object","obj"],ambiguousValues:["top","bottom","right","left","center"],layer:y.Native},"text-align":{ambiguousKeys:["text","t"],ambiguousValues:["justify","center","left","right","start","end"],layer:y.Native},"text-decoration-color":{ambiguousKeys:["text-decoration"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native,variables:["text"]},"text-decoration-style":{ambiguousKeys:["text-decoration"],ambiguousValues:["solid","double","dotted","dashed","wavy"],layer:y.Native},"text-decoration-thickness":{ambiguousKeys:["text-decoration"],ambiguousValues:["from-font",m.NUMBER_VALUE_REGEX],layer:y.Native,unit:"em"},"text-decoration-line":{ambiguousKeys:["text-decoration"],ambiguousValues:["underline","overline","line-through"],layer:y.Native},"text-decoration":{ambiguousKeys:["text","t"],ambiguousValues:["underline","overline","line-through"],unit:"rem",layer:y.NativeShorthand,variables:["text"],declare:e=>({"-webkit-text-decoration":e,"text-decoration":e})},"text-underline-offset":{ambiguousKeys:["text-underline"],unit:"rem",layer:y.Native,variables:["spacing"]},"text-underline-position":{ambiguousKeys:["text-underline"],ambiguousValues:["front-font","under","left","right"],layer:y.Native},"text-overflow":{ambiguousKeys:["text","t"],ambiguousValues:["ellipsis","clip"],layer:y.Native},"text-orientation":{ambiguousKeys:["text","t"],ambiguousValues:["mixed","upright","sideways-right","sideways","use-glyph-orientation"],layer:y.Native},"text-transform":{ambiguousKeys:["text","t"],ambiguousValues:["uppercase","lowercase","capitalize"],layer:y.Native},"text-rendering":{ambiguousKeys:["text","t"],ambiguousValues:["optimizeSpeed","optimizeLegibility","geometricPrecision"],layer:y.Native},"text-wrap":{ambiguousKeys:["text","t"],ambiguousValues:["wrap","nowrap","balance","pretty"],layer:y.NativeShorthand},"text-indent":{unit:"rem",layer:y.Native},"vertical-align":{key:"v",subkey:"vertical",layer:y.Native},columns:{key:"cols",layer:y.NativeShorthand},"white-space":{layer:y.Native},top:{layer:y.Native,unit:"rem",variables:["spacing"]},bottom:{layer:y.Native,unit:"rem",variables:["spacing"]},left:{layer:y.Native,unit:"rem",variables:["spacing"]},right:{layer:y.Native,unit:"rem",variables:["spacing"]},inset:{unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"max-height":{key:"max-h",unit:"rem",layer:y.Native},"max-width":{key:"max-w",unit:"rem",layer:y.Native},opacity:{layer:y.Native},visibility:{layer:y.Native},clear:{layer:y.Native},float:{layer:y.Native},isolation:{layer:y.Native},"overflow-x":{layer:y.Native,declare:e=>"overlay"===e?{"overflow-x":["auto",e]}:{"overflow-x":e}},"overflow-y":{layer:y.Native,declare:e=>"overlay"===e?{"overflow-y":["auto",e]}:{"overflow-y":e}},overflow:{layer:y.NativeShorthand,declare:e=>"overlay"===e?{overflow:["auto",e]}:{overflow:e}},"overscroll-behavior-x":{layer:y.Native},"overscroll-behavior-y":{layer:y.Native},"overscroll-behavior":{layer:y.NativeShorthand},"z-index":{key:"z",layer:y.Native},position:{layer:y.Native},cursor:{layer:y.Native},"pointer-events":{layer:y.Native},resize:{layer:y.Native},"touch-action":{layer:y.Native},"word-break":{layer:y.Native},"word-spacing":{layer:y.Native,unit:"em"},"user-drag":{layer:y.Native,declare:e=>({"-webkit-user-drag":e,"user-drag":e})},"user-select":{layer:y.Native,declare:e=>({"-webkit-user-select":e,"user-select":e})},"text-shadow":{unit:"rem",layer:y.Native},"text-size":{ambiguousKeys:["text","t"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",declare:e=>({"font-size":e,"line-height":`calc(${e} + 0.875em)`}),layer:y.Shorthand},"text-fill-color":{ambiguousKeys:["text","t"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native,variables:["text"],declare:e=>({"-webkit-text-fill-color":e})},"text-stroke-width":{ambiguousKeys:["text-stroke"],ambiguousValues:["thin","medium","thick",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native,declare:e=>({"-webkit-text-stroke-width":e})},"text-stroke-color":{ambiguousKeys:["text-stroke"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native,variables:["text"],declare:e=>({"-webkit-text-stroke-color":e})},"text-stroke":{unit:"rem",layer:y.Native,declare:e=>({"-webkit-text-stroke":e})},"text-truncate":{subkey:"lines",declare:e=>({display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":e,overflow:"hidden","overflow-wrap":"break-word","text-overflow":"ellipsis"}),layer:y.Shorthand},"box-shadow":{key:"shadow",subkey:"s",unit:"rem",layer:y.Native},"table-layout":{layer:y.Native},"transform-box":{ambiguousKeys:["transform"],layer:y.Native},"transform-style":{ambiguousKeys:["transform"],ambiguousValues:["flat","preserve-3d"],layer:y.Native},"transform-origin":{ambiguousKeys:["transform"],ambiguousValues:["top","bottom","right","left","center",m.NUMBER_VALUE_REGEX],unit:"px",layer:y.Native},transform:{matcher:/^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\(/,layer:y.Native,analyze:e=>[e.startsWith("transform")?e.slice(10):e],variables:["spacing"]},"transition-property":{key:"~property",layer:y.Native},"transition-timing-function":{key:"~easing",layer:y.Native},"transition-duration":{key:"~duration",layer:y.Native,unit:"ms"},"transition-delay":{key:"~delay",layer:y.Native,unit:"ms"},transition:{sign:"~",analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}},layer:y.NativeShorthand},"animation-delay":{key:"@delay",layer:y.Native,unit:"ms"},"animation-direction":{key:"@direction",layer:y.Native},"animation-duration":{key:"@duration",layer:y.Native,unit:"ms"},"animation-fill-mode":{key:"@fill",layer:y.Native},"animation-iteration-count":{key:"@iteration",layer:y.Native},"animation-name":{key:"@name",layer:y.Native,includeAnimations:!0},"animation-play-state":{key:"@play",layer:y.Native},"animation-timing-function":{key:"@easing",layer:y.Native},animation:{sign:"@",layer:y.NativeShorthand,includeAnimations:!0,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.keyToken=e.slice(0,t+1),[e.slice(t+1)]}}},"border-collapse":{ambiguousKeys:["b","border"],ambiguousValues:["collapse","separate"],layer:y.Native},"border-spacing":{unit:"rem",layer:y.Native,variables:["spacing"]},"border-top-color":{ambiguousKeys:["bt","border-top"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-bottom-color":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-left-color":{ambiguousKeys:["bl","border-left"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-right-color":{ambiguousKeys:["br","border-right"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"border-x-color":{ambiguousKeys:["bx","border-x"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Shorthand,declare:e=>({"border-left-color":e,"border-right-color":e})},"border-y-color":{ambiguousKeys:["by","border-y"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Shorthand,declare:e=>({"border-top-color":e,"border-bottom-color":e})},"border-color":{ambiguousKeys:["b","border"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.NativeShorthand},"border-top-left-radius":{key:"rtl",unit:"rem",layer:y.Native},"border-top-right-radius":{key:"rtr",unit:"rem",layer:y.Native},"border-bottom-left-radius":{key:"rbl",unit:"rem",layer:y.Native},"border-bottom-right-radius":{key:"rbr",unit:"rem",layer:y.Native},"border-top-radius":{key:"rt",unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-left-radius":e,"border-top-right-radius":e})},"border-bottom-radius":{key:"rb",unit:"rem",layer:y.Shorthand,declare:e=>({"border-bottom-left-radius":e,"border-bottom-right-radius":e})},"border-left-radius":{key:"rl",unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-left-radius":e,"border-bottom-left-radius":e})},"border-right-radius":{key:"rr",unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-right-radius":e,"border-bottom-right-radius":e})},"border-radius":{key:"r",unit:"rem",layer:y.NativeShorthand},"border-top-style":{ambiguousKeys:["bt","border-top"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-bottom-style":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-left-style":{ambiguousKeys:["bl","border-left"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-right-style":{ambiguousKeys:["br","border-right"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"border-x-style":{ambiguousKeys:["bx","border-x"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Shorthand,declare:e=>({"border-left-style":e,"border-right-style":e})},"border-y-style":{ambiguousKeys:["by","border-y"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Shorthand,declare:e=>({"border-top-style":e,"border-bottom-style":e})},"border-style":{ambiguousKeys:["b","border"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.NativeShorthand},"border-top-width":{ambiguousKeys:["bt","border-top"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-bottom-width":{ambiguousKeys:["bb","border-bottom"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-left-width":{ambiguousKeys:["bl","border-left"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-right-width":{ambiguousKeys:["br","border-right"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-x-width":{ambiguousKeys:["bx","border-x"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Shorthand,declare:e=>({"border-left-width":e,"border-right-width":e})},"border-y-width":{ambiguousKeys:["by","border-y"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Shorthand,declare:e=>({"border-top-width":e,"border-bottom-width":e})},"border-width":{ambiguousKeys:["b","border"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.NativeShorthand},"border-image-repeat":{ambiguousKeys:["border-image"],ambiguousValues:["stretch","repeat","round","space"],layer:y.Native},"border-image-slice":{ambiguousKeys:["border-image"],layer:y.Native},"border-image-source":{ambiguousKeys:["border-image"],ambiguousValues:[m.IMAGE_VALUE_REGEX],layer:y.Native},"border-image-width":{ambiguousKeys:["border-image"],ambiguousValues:["auto",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-image-outset":{ambiguousKeys:["border-image"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"border-image":{layer:y.NativeShorthand},"border-top":{key:"bt",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-bottom":{key:"bb",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-left":{key:"bl",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-right":{key:"br",layer:y.NativeShorthand,unit:"rem",transformValueComponents:g},"border-x":{key:"bx",unit:"rem",layer:y.Shorthand,transformValueComponents:g,declare:e=>({"border-left":e,"border-right":e})},"border-y":{key:"by",unit:"rem",layer:y.Shorthand,transformValueComponents:g,declare:e=>({"border-top":e,"border-bottom":e})},border:{key:"b",unit:"rem",layer:y.NativeShorthand,transformValueComponents:g},"background-attachment":{ambiguousKeys:["bg"],ambiguousValues:["fixed","local","scroll"],layer:y.Native},"background-blend-mode":{key:"bg-blend",layer:y.Native},"background-color":{ambiguousKeys:["bg"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"background-clip":{key:"bg-clip",layer:y.Native,declare:e=>({"-webkit-background-clip":e,"background-clip":e})},"background-origin":{key:"bg-origin",layer:y.Native},"background-position":{ambiguousKeys:["bg"],ambiguousValues:["top","bottom","right","left","center"],layer:y.Native,unit:"px"},"background-repeat":{ambiguousKeys:["bg"],ambiguousValues:["space","round","repeat","no-repeat","repeat-x","repeat-y"],layer:y.Native},"background-size":{ambiguousKeys:["bg"],ambiguousValues:["auto","cover","contain",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},"background-image":{ambiguousKeys:["bg"],ambiguousValues:[m.IMAGE_VALUE_REGEX],layer:y.Native},background:{key:"bg",layer:y.NativeShorthand},gradient:{matcher:/^gradient\(/,layer:y.Shorthand,declare:e=>({"background-image":"linear-"+e})},"mix-blend-mode":{key:"blend",layer:y.Native},"backdrop-filter":{key:"bd",layer:y.Native,declare:e=>({"-webkit-backdrop-filter":e,"backdrop-filter":e})},filter:{matcher:/^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/,layer:y.Native},fill:{layer:y.Native},"stroke-dasharray":{layer:y.Native},"stroke-dashoffset":{layer:y.Native,variables:["spacing"]},"stroke-width":{ambiguousKeys:["stroke"],ambiguousValues:[m.NUMBER_VALUE_REGEX],layer:y.Native},stroke:{layer:y.Native},x:{layer:y.Native,variables:["spacing"]},y:{layer:y.Native,variables:["spacing"]},cx:{layer:y.Native,variables:["spacing"]},cy:{layer:y.Native,variables:["spacing"]},rx:{layer:y.Native},ry:{layer:y.Native},"grid-column-start":{key:"grid-col-start",layer:y.Native},"grid-column-end":{key:"grid-col-end",layer:y.Native},"grid-column-span":{key:"grid-col-span",layer:y.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-column":e})},"grid-column":{key:"grid-col",layer:y.NativeShorthand},"grid-columns":{key:"grid-cols",declare:e=>({display:"grid","grid-template-columns":"repeat("+e+",minmax(0,1fr))"}),layer:y.Shorthand},"grid-row-start":{layer:y.Native},"grid-row-end":{layer:y.Native},"grid-row-span":{layer:y.Shorthand,transformValue:e=>"span "+e+"/span "+e,declare:e=>({"grid-row":e})},"grid-row":{layer:y.NativeShorthand},"grid-rows":{declare:e=>({display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+",minmax(0,1fr))"}),layer:y.Shorthand},"grid-auto-columns":{key:"grid-auto-cols",layer:y.Native},"grid-auto-flow":{key:"grid-flow",layer:y.Native},"grid-auto-rows":{layer:y.Native},"grid-template-areas":{layer:y.Native},"grid-template-columns":{key:"grid-template-cols",layer:y.Native,unit:"rem"},"grid-template-rows":{layer:y.Native,unit:"rem"},"grid-template":{layer:y.NativeShorthand},"grid-area":{layer:y.NativeShorthand},grid:{layer:y.NativeShorthand},"column-gap":{key:"gap-x",unit:"rem",layer:y.Native,variables:["spacing"]},"row-gap":{key:"gap-y",unit:"rem",layer:y.Native,variables:["spacing"]},gap:{unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},order:{key:"o",layer:y.Native},"break-inside":{layer:y.Native},"break-before":{layer:y.Native},"break-after":{layer:y.Native},"aspect-ratio":{key:"aspect",layer:y.Native},"column-span":{key:"col-span",layer:y.Native},"align-content":{subkey:"ac",layer:y.Native},"align-items":{subkey:"ai",layer:y.Native},"align-self":{subkey:"as",layer:y.Native},"justify-content":{subkey:"jc",layer:y.Native},"justify-items":{subkey:"ji",layer:y.Native},"justify-self":{subkey:"js",layer:y.Native},"place-content":{layer:y.NativeShorthand},"place-items":{layer:y.NativeShorthand},"place-self":{layer:y.NativeShorthand},"list-style-position":{ambiguousKeys:["list-style"],ambiguousValues:["inside","outside"],layer:y.Native},"list-style-type":{ambiguousKeys:["list-style"],ambiguousValues:["disc","decimal"],layer:y.Native},"list-style-image":{ambiguousKeys:["list-style"],ambiguousValues:[m.IMAGE_VALUE_REGEX],layer:y.Native},"list-style":{layer:y.NativeShorthand},"outline-color":{ambiguousKeys:["outline"],ambiguousValues:[m.COLOR_VALUE_REGEX],layer:y.Native},"outline-offset":{unit:"rem",layer:y.Native,variables:["spacing"]},"outline-style":{ambiguousKeys:["outline"],ambiguousValues:m.BORDER_STYLE_VALUES,layer:y.Native},"outline-width":{ambiguousKeys:["outline"],ambiguousValues:["medium","thick","thin",m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native},outline:{unit:"rem",layer:y.NativeShorthand,variables:["outline-width","outline-style","outline-offset","outline-color"],transformValueComponents:g},"accent-color":{key:"accent",layer:y.Native},appearance:{layer:y.Native},"caret-color":{key:"caret",layer:y.Native,variables:["text"]},"scroll-behavior":{layer:y.Native},"scroll-margin-left":{key:"scroll-ml",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-right":{key:"scroll-mr",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-top":{key:"scroll-mt",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-bottom":{key:"scroll-mb",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-margin-x":{key:"scroll-mx",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-margin-left":e,"scroll-margin-right":e}),variables:["spacing"]},"scroll-margin-y":{key:"scroll-my",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-margin-top":e,"scroll-margin-bottom":e}),variables:["spacing"]},"scroll-margin":{key:"scroll-m",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"scroll-padding-left":{key:"scroll-pl",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-right":{key:"scroll-pr",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-top":{key:"scroll-pt",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-bottom":{key:"scroll-pb",layer:y.Native,unit:"rem",variables:["spacing"]},"scroll-padding-x":{key:"scroll-px",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-padding-left":e,"scroll-padding-right":e}),variables:["spacing"]},"scroll-padding-y":{key:"scroll-py",unit:"rem",layer:y.Shorthand,declare:e=>({"scroll-padding-top":e,"scroll-padding-bottom":e}),variables:["spacing"]},"scroll-padding":{key:"scroll-p",unit:"rem",layer:y.NativeShorthand,variables:["spacing"]},"scroll-snap-align":{ambiguousKeys:["scroll-snap"],ambiguousValues:["start","end","center"],layer:y.Native},"scroll-snap-stop":{ambiguousKeys:["scroll-snap"],ambiguousValues:["normal","always"],layer:y.Native},"scroll-snap-type":{ambiguousKeys:["scroll-snap"],ambiguousValues:["x","y","block","inline","both"],layer:y.Native},"will-change":{layer:y.Native},"writing-mode":{key:"writing",layer:y.Native},direction:{layer:y.Native},"shape-outside":{ambiguousKeys:["shape"],ambiguousValues:[/(?:inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)/],layer:y.Native},"shape-margin":{ambiguousKeys:["shape"],ambiguousValues:[m.NUMBER_VALUE_REGEX],unit:"rem",layer:y.Native,variables:["spacing"]},"shape-image-threshold":{layer:y.Native},"clip-path":{key:"clip",layer:y.Native},quotes:{layer:y.Native},"mask-image":{layer:y.Native,declare:e=>({"-webkit-mask-image":e,"mask-image":e})}};var v={dark:"class",light:"class"};let k={$:{transform(e){let t,i;let a=e.indexOf(",");return -1!==a?(t=e.slice(0,a),i=e.slice(a+1)):t=e,[{type:"variable",name:t,fallback:i,token:e}]}},calc:{transform(e,t){let i=[],a=0,r=(t,s,l,o,n)=>{let u;let c=i!==t,d=[],h=!1,f=!1,y=!1,b=!1,g="",p=(i,r="",o="")=>{if(!1===u&&" "!==i&&this.definition.unit&&(u=void 0,b||v()),g){if(!n){let e=m.BASE_UNIT_REGEX.exec(g);e&&(g=(+e[1]*(this.css.config.baseUnit??1)).toString())}if(h||l)t.push({type:"string",value:g,token:g});else{let e={...this.parseValue(g),token:g};if(!f&&isNaN(+g)&&"number"===e.type&&(f=!0),b)isNaN(+g)?"number"===e.type?(t.push(e),y=!0):t.push(e):t.push({type:"number",value:+g,token:g});else if(c){let e={type:"string",value:g,token:g};d.push(e),t.push(e)}else t.push(e)}g=""}i&&(("+"===i||"-"===i)&&N(),r&&" "===e[a-1]&&(r=""),o&&" "===e[a+1]&&(o=""),s?t.push({type:"separator",value:i,text:i,token:i}):t.push({type:"separator",value:i,text:r+i+o,token:i})),h=!1},v=()=>{("rem"===this.definition.unit||"em"===this.definition.unit)&&t.push({type:"separator",value:"/",text:" / ",token:"/"},{type:"number",value:this.css.config.rootSize,token:String(this.css.config.rootSize)}),t.push({type:"separator",value:"*",text:" * ",token:"*"},{type:"number",value:1,unit:this.definition.unit,token:this.definition.unit})},N=()=>{!b||y||o||c&&!f||v(),b=!1,y=!1};for(;a<e.length;a++){let i=e[a];if("("===i){let e=/^([+-])/.exec(g);e&&t.push({type:"string",value:e[1],token:e[1]});let s=e?g.slice(1):g,l={type:"function",name:s,symbol:i,children:[],bypassTransform:"calc"===s,token:g};t.push(l),g="",a++;let o="$"===s||"var"===s;if(!(u=r(l.children,""!==s&&"calc"!==s&&(o||Object.prototype.hasOwnProperty.call(k,s)),h||o||b&&y,b,o)||"var"===s)&&"$"===s){let e=this.css.variables[l.children[0].value]?.type;u=!e||"string"===e}u&&(f=!0,y=!0)}else if(")"===i){if(p(""),f)for(let e of d)Object.assign(e,this.parseValue(e.value));return f}else if(","===i)p(i,""," ");else if(" "===i)p(i);else{let t=e[a-1];switch(i){case"+":case"-":g||")"===t?p(i," "," "):g+=i;break;case"*":this.definition.unit&&(b=!0),p(i," "," ");break;case"/":this.definition.unit&&(b=!0),p(i," "," "),h=!0;break;default:g+=i}}}p(""),N()};return r(i,!1,!1,!1,!1),"calc("+this.resolveValue(i,k.calc.unit??this.definition.unit,t,!0)+")"}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},color:{unit:""},"color-contrast":{unit:""},"color-mix":{unit:""},hwb:{unit:""},lab:{unit:""},lch:{unit:""},oklab:{unit:""},oklch:{unit:""},clamp:{unit:""},repeat:{unit:""},"linear-gradient":{},"radial-gradient":{},"conic-gradient":{},"repeating-linear-gradient":{},"repeating-radial-gradient":{},"repeating-conic-gradient":{}};a.at=r,a.selectors=s,a.utilities=l,a.animations=o,a.variables=h,a.syntaxes=p,a.modes=v,a.functions=k,a.config={at:r,selectors:s,utilities:l,syntaxes:p,functions:k,animations:o,variables:h,modes:v,scope:"",rootSize:16,baseUnit:4,override:!1,important:!1,defaultMode:"light"};var N={};N.Rule=class{className;RegisteredRule;css;at;priority;natives;order;layer;declarations;animationNames;variableNames;constructor(e,t,i){let a,r,s;this.className=e,this.RegisteredRule=t,this.css=i,this.at={},this.priority=-1,this.natives=[],this.order=0,this.layer=0,this.resolveValue=(e,t,i,a)=>{let{functions:r}=this.css.config,s="";for(let l of e)switch(l.type){case"function":let e=r&&r[l.name];if(e?.transform&&!l.bypassTransform){let r=e.transform.call(this,this.resolveValue(l.children,e.unit??t,i,a||"calc"===l.name),i);s+=l.token=l.text="string"==typeof r?r:this.resolveValue(r,e?.unit??t,i,a)}else s+=l.token=l.text=l.name+l.symbol+this.resolveValue(l.children,e?.unit??t,i,a)+m.VALUE_DELIMITERS[l.symbol];break;case"variable":let o=this.css.variables[l.name];if(o){let e=(e,t)=>{if(o.modes){if(this.mode){let t=o.modes[this.mode]??o;t?.value&&e(t)}else this.variableNames||(this.variableNames=[]),this.variableNames.includes(l.name)||this.variableNames.push(l.name),t()}else e(o)};switch(o.type){case"string":e(e=>{let r=[];this.parseValues(r,0,e.value,t,"",void 0,a,[...i,l.name]),s+=l.text=this.resolveValue(r,t,[...i,l.name],a)},()=>{s+=l.text=`var(--${l.name})`});break;case"number":e(e=>{if(a)s+=l.text=String(e.value);else{let i=this.parseValue(e.value,t);s+=l.text=i.value+(i.unit??"")}},()=>{s+=l.text=t?`calc(var(--${l.name}) / 16 * 1rem)`:`var(--${l.name})`});break;case"color":let r=l.alpha?"/"+l.alpha:"";e(e=>{s+=l.text=`${e.space}(${e.value}${r})`},()=>{s+=l.text=`${o.space}(var(--${l.name})${r})`})}}else s+=l.text=`var(--${l.name}${l.fallback?","+l.fallback:""})`;break;case"separator":s+=l.text?l.text:l.text=l.value;break;case"number":s+=l.text=l.value+(l.unit||"");break;default:s+=l.text=l.value}return s},this.parseValues=(e,t,i,a,r,s,l=!1,o=[])=>{let n=void 0===s,u=!n&&(s.endsWith("$")||s.endsWith("var")),c="'"===r||'"'===r,d=[","];this.definition.separators?.length&&d.push(...this.definition.separators);let h="",f=()=>{if(h){let t=!1;if(!u||e.length){let i=(i,a)=>{let r=Object.prototype.hasOwnProperty.call(this.variables,i)?this.variables[i]:Object.prototype.hasOwnProperty.call(this.css.variables,i)?this.css.variables[i]:void 0;if(r){let s=r.name??i;if(!o.includes(s)){t=!0;let i={type:"variable",name:s,variable:this.css.variables[s],token:h};a&&(i.alpha=a),e.push(i)}}};if(i(h),!t){let[e,t]=h.split("/");i(e,t)}}if(!t){if(!u){let e=m.BASE_UNIT_REGEX.exec(h);e&&(h=String(+e[1]*(this.css.config.baseUnit??1)))}l?e.push({type:"string",value:h,token:h}):e.push({...this.parseValue(h,a),token:h})}h=""}};for(;t<i.length;t++){let o=i[t];if(o===r){if(c){let e=0;for(let t=h.length-1;"\\"===h[t];t--)e++;if(e%2){h+=o;continue}f()}else f();return t}if(!c&&o in m.VALUE_DELIMITERS){let r=h,n={type:"function",name:r,symbol:o,children:[],token:""};e.push(n),h="";let u="("===o?this.css.config.functions?.[r]:void 0;t=this.parseValues(n.children,++t,i,u?.unit??a,m.VALUE_DELIMITERS[o],r||s||"",l||"calc"===r)}else if("|"!==o&&" "!==o||"}"===r||c&&"path"!==s){if(!c){if("."===o){if(isNaN(+i[t+1])){if(n)break}else"-"===i[t-1]&&(h+="0")}else if(d.includes(o)){f(),e.push({type:"separator",value:o,text:(","===o?"":" ")+o+(","===o?"":" "),token:o});continue}else if(n&&("#"===o&&(h||e.length&&"separator"!==e[e.length-1].type)||["!","*",">","+","~",":","[","@","_"].includes(o)))break}h+=o}else f(),e.push({type:"separator",value:" ",token:o})}return f(),t},Object.assign(this,t);let{id:l,definition:o}=t,{analyze:n,transformValue:u,declare:c,transformValueComponents:d,create:h,layer:b,unit:g}=o;this.layer=b,o.unit||(o.unit=""),o.separators||(o.separators=[","]);let{scope:p,important:v,modes:k}=i.config,{selectors:N,at:x,stylesBy:E,animations:S}=i,R=E[e];if(h&&h.call(this,e),this.declarations=o.declarations,b===y.Utility)a=e.slice(l.length-1);else{let t;if(n)[t,r]=n.call(this,e);else{let i=e.indexOf(":");this.keyToken=e.slice(0,i+1),t=e.slice(i+1)}this.valueComponents=[];let i=this.parseValues(this.valueComponents,0,t,g,"",void 0,!1,o.includeAnimations?Object.keys(this.css.animations):[]);this.valueToken=t.slice(0,i),a=t.slice(i)}"!"===a[0]&&(this.important=!0,a=a.slice(1)),this.stateToken=a;let w=(e,t)=>{let i=(e,t,a,r)=>{for(let[r,s]of t)if(r.test(e)){for(let l of s)i(e.replace(r,l),t,a,!0);return}r&&a.push(e)},a=e=>{let t=e.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((e,t)=>t%3?e:e.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),i=[],a="",r=0;for(let e=0;e<t.length;e++){let s=t[e];if("\\"===s){a+=s+t[++e];continue}r||","!==s?(a+=s,r&&")"===s?r--:"("===s&&r++):(i.push(a),a="")}return a&&i.push(a),i},r=[];""in N?i(e,N[""],r,!0):r.push(e);let s={};for(let[e,t]of Object.entries(N)){if(!e)continue;let a=[];for(let e of r)i(e,t,a,!1);a.length&&(s[e]=a)}let l=(e,i)=>{let r=i.reduce((e,t)=>(e.push(...a(t)),e),[]);e in t?t[e].push(...r):t[e]=r},o=Object.keys(s);if(o.length)for(let e of o)l(e,s[e]);else l("",r)};r?(this.vendorPrefixSelectors={},w(r,this.vendorPrefixSelectors)):this.vendorPrefixSelectors={"":[""]};let O=a.split("@"),_=O[0];if(_)for(let e of(this.vendorSuffixSelectors={},w(_,this.vendorSuffixSelectors),Object.values(this.vendorSuffixSelectors)))for(let t of e){!1!==this.hasWhere&&(this.hasWhere=t.includes(":where("));let e=[":disabled",":active",":focus",":hover"];for(let i=0;i<e.length;i++)if(t.includes(e[i])){(-1===this.priority||this.priority>i)&&(this.priority=i);break}}else this.vendorSuffixSelectors={"":[""]};let V={},A=Object.prototype.hasOwnProperty.call(this.vendorPrefixSelectors,""),$=Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,"");if(A)V[""]=$?[""]:Object.keys(this.vendorSuffixSelectors);else if($)for(let e in this.vendorPrefixSelectors)V[e]=[""];else for(let e in this.vendorPrefixSelectors){let t=V[e]=[];if(Object.prototype.hasOwnProperty.call(this.vendorSuffixSelectors,e))t.push(e);else for(let e in this.vendorSuffixSelectors)t.push(e)}for(let e=1;e<O.length;e++){let t=O[e];if(this.atToken=(this.atToken||"")+"@"+t,t){if("rtl"===t||"ltr"===t)this.direction=t;else{let e;let i=[],a=/^(media|supports|container|layer)/,r=a.exec(t);if(r)e=r[1],i.push({type:"arbitrary",token:t,value:t.slice(e.length).replace(/\|/g," ")});else{let r=t=>{if("&"===t)i.push({type:"operator",token:t,value:"and"});else if(t.startsWith("")){let r=x[t];if(r&&"string"==typeof r){let s=r.match(a);if(!(e=s?s[1]:""))throw Error(`Invalid query '${t}': '${r}'`);i.push({type:"arbitrary",value:r.slice(s?s[1].length+1:0)})}else{e="media";let a="",s="",l=0;t.startsWith("<=")?(s="<=",a="max-width"):t.startsWith(">")&&!t.startsWith(">=")?(s=">",a="min-width",l=.02):t.startsWith("<")?(s="<",a="max-width",l=-.02):(t.startsWith(">=")||r)&&(s=">=",a="min-width");let o=s?t.replace(s,""):t,n=x[o];switch(a){case"max-width":case"min-width":if("number"==typeof n)i.push({type:"feature",name:a,valueType:"number",value:n+l,unit:"px"});else{let e=this.parseValue(o,"px");"number"===e.type?i.push({type:"feature",name:a,valueType:"number",value:e.value+l,unit:e.unit}):i.push({type:"feature",name:a,valueType:"string",value:o})}}}}},s=t.includes("&");if(s)for(let e of t.split(/(&|,)/))r(e);else r(t);if(!i.length&&!s&&k?.[t]){this.mode=t;continue}}e&&(this.at[e]=i)}}}this.valueComponents&&(d&&(this.valueComponents=d.call(this,this.valueComponents)),s=this.resolveValue(this.valueComponents,g,[],!1),u&&(s=u.call(this,s)),c?this.declarations=c.call(this,s,this.valueComponents):l&&(this.declarations={[l]:s}));let L=[];for(let e in this.declarations){let t=e=>{if(S&&(e.startsWith("animation")||e.startsWith("animation-name"))){let t=e.split(":")[1].split("!important")[0].split(" ").filter(e=>e in this.css.animations&&(!this.animationNames||!this.animationNames.includes(e)));t.length&&(this.animationNames||(this.animationNames=[]),this.animationNames=t)}L.push(e+((this.important||v)&&!e.endsWith("!important")?"!important":""))},i=e+":",a=this.declarations[e];if(Array.isArray(a))for(let e of a)t(i+String(e));else t(i+String(a))}if(L.length)for(let t in V)for(let i of V[t]){let a="";this.direction&&(a+="[dir="+this.direction+"] ");let r=this.vendorPrefixSelectors[t],s=this.vendorSuffixSelectors[i],l=r.map(e=>e+a),o=e=>l.map(e=>(this.mode&&k?.[this.mode]!=="media"?k?.[this.mode]==="host"?`:host(.${this.mode}) `:`.${this.mode} `:"")+(p?p+" ":"")+e).reduce((t,i)=>(t.push(s.reduce((t,a)=>(t.push(i+"."+f(e)+a),t),[]).join(",")),t),[]).join(","),n=o(e)+(R?R.reduce((e,t)=>e+","+o(t),""):"")+"{"+L.join(";")+"}";for(let e of Object.keys(this.at).sort((e,t)=>"supports"===t?-1:1))n="@"+e+(e.includes(" ")?"":" ")+this.at[e].map(e=>this.resolveAtComponent(e)).join(" ")+"{"+n+"}";this.mode&&k?.[this.mode]==="media"&&(n=`@media(prefers-color-scheme:${this.mode}){`+n+"}"),this.natives.push({text:n})}}resolveAtComponent(e){switch(e.type){case"arbitrary":case"operator":return e.value;case"feature":return"("+e.name+":"+e.value+(e.unit||"")+")"}}resolveValue;get text(){return this.natives.map(e=>e.text).join("")}parseValues;parseValue(e,t=this.definition.unit){let i;let a=t??this.definition.unit,r="";if("number"==typeof e)return a&&!r?(("rem"===a||"em"===a)&&(i=e/(this.css.config.rootSize||1)),r=a||""):i=e,{value:i,unit:r,type:"number"};if(a){if(/^\d+\/\d+/.test(e)){let[t,i]=e.split("/");return{value:+t/+i*100,unit:"%",type:"number"}}let t=e.match(m.UNIT_REGEX);if(t)return i=+t[1],(r=t[3]||"")||(("rem"===a||"em"===a)&&(i/=this.css.config.rootSize||1),r=a||""),{value:i,unit:r,type:"number"}}return{value:e,type:"string"}}};var x={},E={};E.flattenObject=function e(t,i=""){return Object.entries(t).reduce((t,[a,r])=>{let s=i?`${i}${a?"-"+a:""}`:a;return"object"!=typeof r||Array.isArray(r)?t[s]=r:Object.assign(t,e(r,s)),t},{})};var S=function(...e){let t=e=>{let t=d({},e),i=e=>{for(let t in e){let a=e[t];"object"!=typeof a||Array.isArray(a)?t&&!t.startsWith("@")&&(e[t]={"":a}):i(a)}};return t.styles&&i(t.styles),t.at&&i(t.at),t.variables&&i(t.variables),t},i=[];for(let a of e)a&&function e(a){if(a.extends?.length)for(let t of a.extends)e("config"in t?t.config:t);i.push(t(a))}(a);let a={animations:{},styles:{},at:{},variables:{}};for(let e=0;e<i.length;e++){let t=i[e];for(let e in t)"animations"===e?t.animations&&Object.assign(a.animations,t.animations):t[e]&&(a=d(a,{[e]:t[e]}))}return a};Object.defineProperty(x,"__esModule",{value:!0});var R=function(e){let t,i,a,r;return e.startsWith("#")&&(e=e.slice(1)),3===e.length||4===e.length?(t=parseInt(e[0]+e[0],16),i=parseInt(e[1]+e[1],16),a=parseInt(e[2]+e[2],16),r=4===e.length?Math.round(parseInt(e[3]+e[3],16)/255*100)/100:1):(6===e.length||8===e.length)&&(t=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16),r=8===e.length?Math.round(parseInt(e.slice(6,8),16)/255*100)/100:1),[t,i,a,r]};let w=class e{customConfig;static config=a.config;syntaxes;ruleBy;classesUsage;config;Rules;constructor(t){this.customConfig=t,this.syntaxes=[],this.ruleBy={},this.classesUsage={},this.Rules=[],t?.override?this.config=S(t):this.config=S(a.config,t),this.resolve(),this.constructor===e&&O.push(this)}resolve(){this.styles={},this.stylesBy={},this.selectors={},this.variables={},this.at={},this.animations={},this.Rules.length=0,this.variablesNativeRules={},this.hasKeyframesRule=!1;let e={current:void 0,currentColor:void 0,transparent:void 0},{styles:t,selectors:i,variables:a,utilities:r,at:s,syntaxes:l,animations:o}=this.config;function n(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i){let e=E.flattenObject(i);for(let t in e){let i=e[t],a=RegExp(n(t)+"(?![a-z-])");for(let e of Array.isArray(i)?i:[i]){let t=e.match(/^::-[a-z]+-/m)?.[0]??"",i=this.selectors[t];i||(i=this.selectors[t]=[]);let r=i.find(([e])=>e===a);r||(r=[a,[]],i.push(r)),r[1].push(e)}}}if(a){let t={},i=(a,r,s)=>{if(null===a)return;let l=(t,i,a,r)=>{if(void 0===i)return;let l=t.join("-"),o=t.slice(0,-1).filter(Boolean),n=(""===t[0]?"-":"")+t[t.length-1];if(i.key=n,i.name=l,o.length&&(i.group=o.join(".")),"color"===i.type){if(r){let e=i.value.indexOf("/");i={...i,value:-1===e?i.value+" / "+(r.startsWith("0.")?r.slice(1):r):i.value.slice(0,e+2)+String(+i.value.slice(e+2)*+r).slice(1)}}e[l]=void 0}i.name.startsWith("screen-")&&"number"===i.type&&(this.at[i.name.slice(7)]=i.value);let u=a??s;if(void 0!==u){if(Object.prototype.hasOwnProperty.call(this.variables,l)){let e=this.variables[l];u?(e.modes||(e.modes={}),e.modes[u]=i):(e.value=i.value,"color"===i.type&&(e.space=i.space))}else if(u){let e={key:i.key,name:i.name,group:i.group,type:i.type,modes:{[u]:i}};"color"===i.type&&(e.space=i.space),this.variables[l]=e}else this.variables[l]=i}else this.variables[l]=i};if("object"==typeof a){if(Array.isArray(a))l(r,{type:"string",value:a.join(",")});else{let e=Object.keys(a);for(let t of e)""===t||t.startsWith("@")?i(a[t],r,t||e.some(e=>e.startsWith("@"))?t.slice(1):void 0):i(a[t],[...r,t])}}else if("number"==typeof a)l(r,{type:"number",value:a}),l(["",...r],{type:"number",value:-1*a});else if("string"==typeof a){let e=/^\$\((.*?)\)(?: ?\/ ?(.+?))?$/.exec(a),i=r.join("-");if(e)Object.prototype.hasOwnProperty.call(t,i)||(t[i]={}),t[i][s]=()=>{delete t[i][s];let[a,o]=e[1].split("@");if(a){if(Object.prototype.hasOwnProperty.call(t,a))for(let e of Object.keys(t[a]))t[a][e]?.();let i=this.variables[a];if(i){if(void 0===o&&i.modes)for(let t in l(r,{type:i.type,value:i.value,space:i.space},"",e[2]),i.modes)l(r,i.modes[t],t,e[2]);else{let t=void 0!==o?i.modes?.[o]:i;if(t){let i={type:t.type,value:t.value};"color"===t.type&&(i.space=t.space),l(r,i,void 0,e[2])}}}}};else{let e=/^#([A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/.exec(a);if(e){let[t,i,a,s]=R(e[1]);l(r,{type:"color",value:`${t} ${i} ${a}${1===s?"":" / "+s}`,space:"rgb"})}else{let e=/^rgb\( *([0-9]{1,3})(?: *, *| +)([0-9]{1,3})(?: *, *| +)([0-9]{1,3}) *(?:(?:,|\/) *(.*?) *)?\)$/.exec(a);if(e)l(r,{type:"color",value:e[1]+" "+e[2]+" "+e[3]+(e[4]?" / "+(e[4].startsWith("0.")?e[4].slice(1):e[4]):""),space:"rgb"});else{let e=/^hsl\((.*?)\)$/.exec(a);e?l(r,{type:"color",value:e[1],space:"hsl"}):l(r,{type:"string",value:a})}}}}};for(let e in a)i(a[e],[e]);for(let e of Object.keys(t))for(let i of Object.keys(t[e]))t[e][i]?.()}if(s&&Object.assign(this.at,E.flattenObject(s)),o)for(let e in o){let t=this.animations[e]={},i=o[e];for(let e in i){let a=t[e]={},r=i[e];for(let e in r)a[e]=r[e]}}let u=t?E.flattenObject(t):{},c=Object.keys(u),d=e=>{if(Object.prototype.hasOwnProperty.call(this.styles,e))return;let t=this.styles[e]=[],i=u[e];if(i)for(let a of i.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ")){let i=i=>{if(Object.prototype.hasOwnProperty.call(this.stylesBy,i)){let t=this.stylesBy[i];t.includes(e)||t.push(e)}else this.stylesBy[i]=[e];t.includes(i)||t.push(i)};if(c.includes(a))for(let e of(d(a),this.styles[a]))i(e);else i(a)}};for(let e of c)d(e);if(l||r){let t=[];if(r)for(let e in r){let i=r[e];t.push([e,{declarations:i,layer:y.Utility}])}l&&t.push(...Object.entries(l));let i=t.length,a=Object.keys(e);t.sort((e,t)=>e[1].layer!==t[1].layer?(t[1].layer||0)-(e[1].layer||0):t[0].localeCompare(e[0])).forEach(([e,t],r)=>{let s={id:e,keys:[],variables:{},matchers:{},order:i-1-r,definition:t};this.Rules.push(s);let{matcher:l,layer:o,subkey:u,ambiguousKeys:c,ambiguousValues:d,sign:h}=t;o===y.Utility&&(s.id="."+e,s.matchers.arbitrary=RegExp("^"+n(e)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"));let f=e=>{for(let t in this.variables){let i=this.variables[t];i.group===e&&(s.variables[i.key]=i)}};if(t.variables)for(let e of t.variables)f(e);f(e);let m=[],{key:b}=t;if((o===y.NativeShorthand||o===y.Native)&&(b||(t.key=b=e),m.push(e)),h)s.matchers.arbitrary=RegExp(`^${h}[^!*>+~:[@_]+\\|`);else if(l)s.matchers.arbitrary=l;else{let t=a.join("|");if(b||u?(b&&!m.includes(b)&&m.push(b),u&&m.push(u),o===y.Shorthand&&m.push(e)):m.push(e),c?.length){let e=c.length>1?`(?:${c.join("|")})`:c[0],i=Object.keys(s.variables);if(d?.length){let i=[];for(let e of d)e instanceof RegExp?i.push(e.source.replace("\\$colors",t)):i.unshift(`${e}(?:\\b|_)`);s.matchers.value=RegExp(`^${e}:(?:${i.join("|")})[^|]*?(?:@|$)`)}i.length&&(s.matchers.variable=RegExp(`^${e}:(?:${i.join("|")}(?![a-zA-Z0-9-]))[^|]*?(?:@|$)`))}}m.length&&(s.keys=m,s.matchers.key=RegExp(`^${m.length>1?`(${m.join("|")})`:m[0]}:.`))})}}match(e){for(let t of this.Rules)if(t.matchers.variable?.test(e))return t;for(let t of this.Rules)if(t.matchers.value?.test(e))return t;for(let t of this.Rules)if(t.matchers.key?.test(e))return t;for(let t of this.Rules)if(t.matchers.arbitrary?.test(e))return t}generate(e){return(Object.prototype.hasOwnProperty.call(this.styles,e)?this.styles[e].map(e=>this.create(e)):[this.create(e)]).filter(e=>e&&e?.text)}create(e){if(Object.prototype.hasOwnProperty.call(this.ruleBy,e))return this.ruleBy[e];let t=this.match(e);if(t)return new N.Rule(e,t,this)}refresh(e){for(let t in e?this.customConfig=e:e=this.customConfig,e?.override?this.config=S(e):this.config=S(a.config,e),this.resolve(),this.syntaxes.length=0,this.ruleBy={},this.classesUsage)this.add(t);return this}reset(){for(let e in this.ruleBy={},this.classesUsage={},this.syntaxes.length=0,this.hasKeyframesRule=!1,this.variablesNativeRules={},this.animations){let t=this.animations[e];t.usage=0,t.native=void 0}for(let e in this.variables)this.variables[e].usage=0;return this}destroy(){return this.reset(),O.splice(O.indexOf(this),1),this}add(...e){for(let t of e){let e=this.generate(t);if(e.length)for(let t of e)this.insert(t)}return this}delete(...e){let t=this.style?.sheet,i=e=>{let i=this.ruleBy[e];if(!(!i||Object.prototype.hasOwnProperty.call(this.stylesBy,e)&&this.stylesBy[e].some(e=>Object.prototype.hasOwnProperty.call(this.classesUsage,e)))){if(t&&i.natives.length){let e=i.natives[0];for(let a=0;a<t.cssRules.length;a++)if(t.cssRules[a]===e.cssRule){for(let e=0;e<i.natives.length;e++)t.deleteRule(a);break}}if(this.syntaxes.splice(this.syntaxes.indexOf(i),1),delete this.ruleBy[e],i.variableNames)for(let e of i.variableNames){let i=this.variables[e];if(i.usage||(i.usage=0),!--i.usage){let a=i=>{let a=this.variablesNativeRules[i];if(a.cssRule.style.removeProperty("--"+e),!a.cssRule.style.length){let e=this.syntaxes[0],r=e.natives.indexOf(a);t?.deleteRule(r),e.natives.splice(r,1),delete this.variablesNativeRules[i],e.natives.length||(this.syntaxes.splice(0,1),this.variablesNativeRules={})}};if(i.value&&a(""),i.modes)for(let e in i.modes)a(e)}}if(i.animationNames){let e=Object.keys(this.variablesNativeRules).length?1:0,a=this.syntaxes[e];for(let e of i.animationNames){let i=this.animations[e];if(i.usage||(i.usage=0),!--i.usage&&i.native){let e=a.natives.indexOf(i.native);t?.deleteRule(Object.keys(this.variablesNativeRules).length+e),a.natives.splice(e,1),i.native=void 0}}a.natives.length||(this.syntaxes.splice(e,1),this.hasKeyframesRule=!1)}i.definition.delete?.call(i,e)}};for(let t of e)if(Object.prototype.hasOwnProperty.call(this.styles,t)){for(let e of this.styles[t])Object.prototype.hasOwnProperty.call(this.classesUsage,e)||i(e);delete this.ruleBy[t]}else i(t)}insert(e){let t,i,a;if(this.ruleBy[e.className])return;let r=this.syntaxes.length-1,{at:s,atToken:l,order:o,priority:n,hasWhere:u,className:c}=e,d=(e,t,i)=>{let a=e;for(;a<=r;a++){let e=this.syntaxes[a];if(t?.(e))break;if(i?.(e))return a}return i?-1:a-1};if(l){let e=this.syntaxes.findIndex(e=>e.at?.media);if(-1===e)t=r+1;else{let l=s.media?.find(({name:e})=>"max-width"===e),o=s.media?.find(({name:e})=>"min-width"===e);if(l||o){let e=this.syntaxes.findIndex(e=>e.at?.media?.find(({name:e})=>"max-width"===e||"min-width"===e));if(-1===e)t=r+1;else if(l&&o){if(-1===n?(i=d(e,e=>-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=d(e,e=>-1!==e.priority)):(i=d(e,void 0,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=r),-1!==i){let e=l.value-o.value,t=a,r=i;for(i=a+1;t>=r;t--){let r=this.syntaxes[t],s=r.at.media?.find(({name:e})=>"max-width"===e),l=r.at.media?.find(({name:e})=>"min-width"===e);if(s&&l){let r=s.value-l.value;if(r<e)a=t-1;else if(r===e)i=t;else break}else break}}}else if(o){if(-1===n?(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>!e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.syntaxes[e].at.media?.find(({name:e})=>"min-width"===e)).value;if(t>o.value)a=e-1;else if(t<o.value){i=e+1;break}}}else if(-1===n?(i=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)),a=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority,e=>e.at.media?.find(({name:e})=>"max-width"===e)&&-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"min-width"===e)&&-1!==e.priority)),-1!==i)for(let e=a;e>=i;e--){let t=(this.syntaxes[e].at.media?.find(({name:e})=>"max-width"===e)).value;if(t<l.value)a=e-1;else if(t>l.value){i=e+1;break}}}else -1===n?(i=e,a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)||-1!==e.priority)):(i=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e),e=>-1!==e.priority),a=d(e,e=>e.at.media?.find(({name:e})=>"max-width"===e||"min-width"===e)))}}else{let e=Object.keys(this.variablesNativeRules).length?this.hasKeyframesRule?2:1:this.hasKeyframesRule?1:0;-1===n?(i=e,a=d(e,e=>e.atToken||-1!==e.priority)):(i=d(e,e=>e.atToken,e=>-1!==e.priority),a=d(e,e=>e.atToken))}if(void 0===t&&void 0!==a&&void 0!==i){if(-1===i)t=a+1;else{if(-1===n)for(let e=i;e<=a;e++){let i=this.syntaxes[e];if((u||!i.hasWhere)&&(u&&!i.hasWhere||i.order>=o)){t=e;break}}else for(let e=i;e<=a;e++){let i=this.syntaxes[e];if(u||!i.hasWhere){if(u&&!i.hasWhere||i.priority<n){t=e;break}if(i.priority===n){if(i.order>=o){t=e;break}}else t=e+1}}void 0===t&&(t=a+1)}}if(this.syntaxes.splice(t,0,e),this.ruleBy[c]=e,this.style){let i=this.style.sheet,a=0,r=e=>{let t=this.syntaxes[e];if(t){if(!t.natives.length)return r(e-1);let s=t.natives[t.natives.length-1],l=s.cssRule?.parentRule??s.cssRule;if(i){for(let e=0;e<i.cssRules.length;e++)if(i.cssRules[e]===l){a=e+1;break}}}};r(t-1);for(let t=0;t<e.natives.length;)try{let r=e.natives[t];i?.insertRule(r.text,a),r.cssRule=i?.cssRules[a++],t++}catch(i){console.error(i),e.natives.splice(t,1)}}return this.handleRuleWithVariableNames(e),this.handleRuleWithAnimationNames(e),e.definition.insert?.call(e),t}get text(){return this.syntaxes.map(e=>e.text).join("")}handleRuleWithAnimationNames(e,t=!1){if(e.animationNames){let i=this.style?.sheet;for(let a of e.animationNames){let e=this.animations[a];if(e.usage)e.usage++;else{let r;let s={text:`@keyframes ${a}{`+Object.entries(e).filter(([e])=>"usage"!==e&&"native"!==e).map(([e,t])=>`${e}{${Object.entries(t).map(([e,t])=>e+":"+t).join(";")}}`).join("")+"}"},l=Object.keys(this.variablesNativeRules).length?1:0;if(this.hasKeyframesRule?(r=this.syntaxes[l]).natives.push(s):(this.syntaxes.splice(l,0,r={natives:[s],get text(){return this.natives.map(e=>e.text).join("")}}),this.hasKeyframesRule=!0),i){let e;if(t)for(let t=0;t<i.cssRules.length;t++){let r=i.cssRules[t];if("CSSKeyframesRule"===r.constructor.name&&r.name===a){e=r;break}}if(e)s.cssRule=e;else{let e=Object.keys(this.variablesNativeRules).length+r.natives.length-1;i.insertRule(s.text,e),s.cssRule=i.cssRules[e]}}e.usage=1,e.native=s}}}}handleRuleWithVariableNames(e,t=!1){if(e.variableNames){let i=this.style?.sheet;for(let a of e.variableNames){let e=this.variables[a];if(e.usage)e.usage++;else{let r=(e,r)=>{let s=this.variablesNativeRules[e];if(!s){let t,a,r;if(e)switch(this.config.modes?.[e]){case"media":a=`@media(prefers-color-scheme:${e})`,r=":root";break;case"host":r=`:host(.${e})`,this.config.defaultMode===e&&(r+=",:host");break;case"class":r="."+e,this.config.defaultMode===e&&(r+=",:root");break;default:return}else r=":root";if(i){let e=Object.keys(this.variablesNativeRules).length?this.syntaxes[0].natives.length:0;i.insertRule((a?a+"{":"")+r+"{}"+(a?a+"}":""),e),t=a?i.cssRules[e].cssRules[0]:i.cssRules[e]}else{let e=new Map,i=Object.defineProperties({},{getPropertyValue:{value:t=>e.get(t)},removeProperty:{value:t=>{e.delete(t);for(let e=0;e<i.length;e++)i[e]===t&&delete i[e]}},setProperty:{value:(t,a)=>{i[i.length]=t,e.set(t,a)}},length:{get:()=>Object.keys(i).length}});t={selectorText:r,style:i,styleMap:e},a&&(t.parentRule={conditionText:a})}s=this.pushVariableNativeRule(e,t)}let l="--"+a;t&&s.cssRule.style.getPropertyValue(l)||s.cssRule.style.setProperty(l,String(r.value))};if(e.value&&r("",e),e.modes)for(let t in e.modes)r(t,e.modes[t]);e.usage=1}}}}pushVariableNativeRule(e,t){Object.keys(this.variablesNativeRules).length||(this.variablesNativeRules={},this.syntaxes.splice(0,0,{natives:[],get text(){return this.natives.map(e=>e.text).join("")}}));let i="",a="}";t.parentRule&&(i+="@media"+t.parentRule.conditionText.replace(/ /g,"")+"{",a+="}"),i+=t.selectorText+"{";let r={cssRule:t,get text(){let e=[];for(let i=0;i<t.style.length;i++){let a=t.style[i];e.push(a+":"+t.style.getPropertyValue(a))}return i+e.join(";")+a}};return this.syntaxes[0].natives.push(this.variablesNativeRules[e]=r),r}},O=[];globalThis.MasterCSS=w,globalThis.masterCSSs=O,x.default=w,x.masterCSSs=O;var _=function(e,t){return e.mode===t.mode},V=function(e,t){let i=Object.keys(e.at),a=Object.keys(t.at);if(i.length!==a.length)return!1;for(let a of i){let i=e.at[a],r=t.at[a];for(let a of i){let i=e.resolveAtComponent(a);if(!r.find(e=>t.resolveAtComponent(e)===i))return!1}}return!0},A=function(e,t){let i=Object.keys(e.vendorSuffixSelectors),a=Object.keys(t.vendorSuffixSelectors);if(i.length!==a.length||!i.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorSuffixSelectors,i))return!1;let a=e.vendorSuffixSelectors[i],r=t.vendorSuffixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))return!1;let r=Object.keys(e.vendorPrefixSelectors),s=Object.keys(t.vendorPrefixSelectors);return!!(r.length===s.length&&r.every(i=>{if(!Object.prototype.hasOwnProperty.call(t.vendorPrefixSelectors,i))return!1;let a=e.vendorPrefixSelectors[i],r=t.vendorPrefixSelectors[i];return a.length===r.length&&a.every(e=>r.includes(e))}))};Object.defineProperty(i,"__esModule",{value:!0});var $=i.config=a.config;i.Rule=N.Rule,i.ANIMATION_SIGN=m.ANIMATION_SIGN,i.AT_SIGN=m.AT_SIGN,i.BASE_UNIT_REGEX=m.BASE_UNIT_REGEX,i.BORDER_STYLE_VALUES=m.BORDER_STYLE_VALUES,i.CLASS_ATTRIBUTES=m.CLASS_ATTRIBUTES,i.CLASS_DECLARATIONS=m.CLASS_DECLARATIONS,i.CLASS_FUNCTIONS=m.CLASS_FUNCTIONS,i.COLOR_VALUE_REGEX=m.COLOR_VALUE_REGEX,i.DELIMITER_SIGN=m.DELIMITER_SIGN,i.IMAGE_VALUE_REGEX=m.IMAGE_VALUE_REGEX,i.NUMBER_VALUE_REGEX=m.NUMBER_VALUE_REGEX,i.OFFICIAL_URL=m.OFFICIAL_URL,i.QUERY_COMPARISON_OPERATORS=m.QUERY_COMPARISON_OPERATORS,i.QUERY_LOGICAL_OPERATORS=m.QUERY_LOGICAL_OPERATORS,i.SELECTOR_SIGNS=m.SELECTOR_SIGNS,i.SEPARATOR_SIGN=m.SEPARATOR_SIGN,i.SEPARATOR_SIGNS=m.SEPARATOR_SIGNS,i.TRANSITION_SIGN=m.TRANSITION_SIGN,i.UNIT_REGEX=m.UNIT_REGEX,i.VALUE_DELIMITERS=m.VALUE_DELIMITERS,i.VALUE_UNITS=m.VALUE_UNITS;var L=i.MasterCSS=x.default;i.default=x.default,i.masterCSSs=x.masterCSSs,i.Layer=y,i.extendConfig=S,i.reorderForReadableClasses=function(e,t=new x.default){t.add(...e);let i=t.syntaxes.filter(e=>e.layer).sort((e,t)=>{if(e.layer===y.Utility&&t.layer!==y.Utility)return -1;if(e.layer!==y.Utility&&t.layer===y.Utility)return 1;if(e.id!==t.id)return e.className.localeCompare(t.className);{let i=e.vendorSuffixSelectors?.[""]?.[0],a=t.vendorSuffixSelectors?.[""]?.[0];if(-1===e.priority&&-1===t.priority){if(i&&a)return i.localeCompare(a);let r=e.atToken,s=t.atToken;if(r&&s&&!e.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e)&&!t.at.media?.find(({name:e})=>"min-width"===e||"max-width"===e))return r.localeCompare(s);if(i&&!a)return 1;if(!i&&a)return -1;if(r&&!s)return 1;if(!r&&s)return -1}return e.id===t.id&&e.stateToken===t.stateToken?e.className.localeCompare(t.className):e.order-t.order}}).map(e=>e.className);return t.delete(...e),i},i.areRuleModesEqual=_,i.areRuleAtEqual=V,i.areRuleSelectorsEqual=A,i.areRuleStatesEqual=function(e,t){return A(e,t)&&_(e,t)&&V(e,t)},i.areRulesDuplicated=function(e,t){let i=Object.keys(e.declarations||{}),a=Object.keys(t.declarations||{});if(i.length!==a.length)return!1;for(let e of i)if(!Object.prototype.hasOwnProperty.call(t.declarations,e))return!1;return!0},i.generateCSS=function(e,t=new x.default){let i="";return t.add(...e),i=t.text,t.delete(...e),i},i.isCoreRule=function(e){return Object.hasOwnProperty.call(p,e)},i.at=r,i.selectors=s,i.utilities=l,i.functions=k,i.animations=o,i.variables=h,i.modes=v,i.syntaxes=p;class U extends L{root;customConfig;host;observing;progressive;container;observer;constructor(e=document,t=$){super(t),this.root=e,this.customConfig=t,this.observing=!1,this.progressive=!1,e||(this.root=document);let i=this.root?.constructor.name;"HTMLDocument"===i||"Document"===i?(this.root.defaultView.globalThis.runtimeCSS=this,this.container=this.root.head,this.host=this.root.documentElement):(this.container=this.root,this.host=this.root.host),j.push(this)}observe(e={subtree:!0,childList:!0}){if(this.observing||!this.root)return this;if(j.find(e=>e!==this&&e.root===this.root))return console.warn("Cannot observe the same root element repeatedly."),this;if(this.root?.styleSheets)for(let e of this.root.styleSheets){let{ownerNode:t}=e;if(t&&"master"===t.id){this.style=t,this.progressive=!0;break}}if(this.style?.sheet){let e=0;for(;e<this.style.sheet.cssRules.length;e++){let t=this.style.sheet.cssRules[e];switch(t.constructor.name){case"CSSKeyframesRule":continue;case"CSSMediaRule":let i=/\(prefers-color-scheme: ?(.*?)\)/.exec(t.conditionText);if(i){let e=t.cssRules[0];if(e?.constructor.name==="CSSStyleRule"&&":root"===e.selectorText){this.pushVariableNativeRule(i[1],e);continue}}break;case"CSSStyleRule":let a=t.selectorText;if(t.style.length){let e=!0;for(let i=0;i<t.style.length;i++)if(!t.style[i]?.startsWith("--")){e=!1;break}if(e){if(":root"===a){this.pushVariableNativeRule("",t);continue}{let e=/:host(.*?)/.exec(a);if(e){this.pushVariableNativeRule(e[1],t);continue}if(!a.startsWith(".\\$")){let[e]=a.split(",");this.pushVariableNativeRule(e.slice(1),t);continue}}}}}break}for(;e<this.style.sheet.cssRules.length;e++){let t=e=>{if(e.selectorText){let t=e.selectorText.split(", ")[0].split(" ");for(let e=0;e<t.length;e++){let i=t[e];if("."===i[0]){let e=i.slice(1),t="";for(let i=0;i<e.length;i++){let a=e[i],r=e[i+1];if("\\"===a){if(i++,"\\"!==r){t+=r;continue}}else if([",",".","#","[","!","*",">","+","~",":","@"].includes(a))break;t+=a}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,t)&&!Object.prototype.hasOwnProperty.call(this.styles,t)){let e=this.generate(t)[0];if(e)return e}}}}else if(e.cssRules)for(let i=0;i<e.cssRules.length;i++){let a=t(e.cssRules[i]);if(a)return a}},i=t(this.style.sheet.cssRules[e]);if(i){this.syntaxes.push(i),this.ruleBy[i.className]=i;for(let t=0;t<i.natives.length;t++)i.natives[t].cssRule=this.style.sheet.cssRules[e+t];e+=i.natives.length-1,this.handleRuleWithVariableNames(i,!0),this.handleRuleWithAnimationNames(i,!0),i.definition.insert?.call(i)}}}else this.style=document.createElement("style"),this.style.id="master",this.container.append(this.style);let t=e=>{e.forEach(e=>{Object.prototype.hasOwnProperty.call(this.classesUsage,e)?this.classesUsage[e]++:(this.classesUsage[e]=1,this.add(e))})};return t(this.host.classList),e.subtree&&("HTMLDocument"===this.root.constructor.name?this.host:this.container).querySelectorAll("[class]").forEach(e=>t(e.classList)),this.observer=new MutationObserver(e=>{let t={},i=[],a=[],r=[],s=(e,t)=>{t?e.classList.forEach(o):e.classList.forEach(l);let i=e.children;for(let e=0;e<i.length;e++){let r=i[e];r.classList&&!a.includes(r)&&(a.push(r),s(r,t))}},l=e=>{Object.prototype.hasOwnProperty.call(t,e)?t[e]++:t[e]=1},o=e=>{Object.prototype.hasOwnProperty.call(t,e)?t[e]--:Object.prototype.hasOwnProperty.call(this.classesUsage,e)&&(t[e]=-1)},n=(e,t)=>{for(let i=0;i<e.length;i++){let l=e[i];!l.classList||a.includes(l)||r.includes(l)||(l.isConnected!==t?(a.push(l),s(l,t)):r.push(l))}};for(let t=0;t<e.length;t++){let r=e[t],{addedNodes:s,removedNodes:l,type:o,target:u}=r;if("attributes"===o){if(i.find(e=>e.target===u))continue;i.push(r)}else n(s,!1),u.isConnected&&a.includes(u)||n(l,!0)}if(i.length||Object.keys(t).length){for(let{oldValue:e,target:t}of i){let i=a.includes(t),r=t.classList,s=e?e.split(" "):[];if(i){if(t.isConnected)continue;for(let e of s)r.contains(e)||o(e)}else if(t.isConnected)for(let e of(r.forEach(e=>{s.includes(e)||l(e)}),s))r.contains(e)||o(e)}for(let e in t){let i=t[e],a=(this.classesUsage[e]||0)+i;0===a?(delete this.classesUsage[e],this.delete(e)):(Object.prototype.hasOwnProperty.call(this.classesUsage,e)||this.add(e),this.classesUsage[e]=a)}}}),this.observer.observe(this.root,{...e,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.removeProperty("display"),this.observing=!0,this}refresh(e=this.customConfig){let t=this.style?.sheet;if(t?.cssRules)for(let e=t.cssRules.length-1;e>=0;e--)t.deleteRule(e);return super.refresh(e),this}reset(){super.reset();let e=this.style?.sheet;if(e?.cssRules)for(let t=e.cssRules.length-1;t>=0;t--)e.deleteRule(t);return this.progressive||(this.style?.remove(),this.style=null),this}disconnect(){return this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.reset(),this}destroy(){return this.disconnect(),j.splice(j.indexOf(this),1),this}}let j=[];globalThis.RuntimeCSS=U,globalThis.runtimeCSSs=j,new U(document,window.masterCSSConfig).observe()}();
package/dist/index.cjs CHANGED
@@ -19,7 +19,8 @@ class RuntimeCSS extends css.MasterCSS {
19
19
  this.observing = false;
20
20
  this.progressive = false;
21
21
  if (!root) this.root = document;
22
- if (this.root?.constructor.name === 'HTMLDocument') {
22
+ const rootConstructorName = this.root?.constructor.name;
23
+ if (rootConstructorName === 'HTMLDocument' || rootConstructorName === 'Document') {
23
24
  // @ts-ignore
24
25
  this.root.defaultView.globalThis.runtimeCSS = this;
25
26
  this.container = this.root.head;
@@ -60,8 +61,8 @@ class RuntimeCSS extends css.MasterCSS {
60
61
  switch(eachCSSRule.constructor.name){
61
62
  case 'CSSKeyframesRule':
62
63
  continue;
63
- case 'CSSMeidaRule':
64
- const result = /\(prefers-color-scheme: (.*?)\)/.exec(eachCSSRule.conditionText);
64
+ case 'CSSMediaRule':
65
+ const result = /\(prefers-color-scheme: ?(.*?)\)/.exec(eachCSSRule.conditionText);
65
66
  if (result) {
66
67
  const firstCSSRule = eachCSSRule.cssRules[0];
67
68
  if (firstCSSRule?.constructor.name === 'CSSStyleRule' && firstCSSRule.selectorText === ':root') {
@@ -91,7 +92,8 @@ class RuntimeCSS extends css.MasterCSS {
91
92
  this.pushVariableNativeRule(result[1], eachCSSRule);
92
93
  continue;
93
94
  } else if (!selectorText.startsWith('.\\$')) {
94
- this.pushVariableNativeRule(selectorText.slice(1), eachCSSRule);
95
+ const [mode] = selectorText.split(',');
96
+ this.pushVariableNativeRule(mode.slice(1), eachCSSRule);
95
97
  continue;
96
98
  }
97
99
  }
package/dist/index.mjs CHANGED
@@ -15,7 +15,8 @@ class RuntimeCSS extends MasterCSS {
15
15
  this.observing = false;
16
16
  this.progressive = false;
17
17
  if (!root) this.root = document;
18
- if (this.root?.constructor.name === 'HTMLDocument') {
18
+ const rootConstructorName = this.root?.constructor.name;
19
+ if (rootConstructorName === 'HTMLDocument' || rootConstructorName === 'Document') {
19
20
  // @ts-ignore
20
21
  this.root.defaultView.globalThis.runtimeCSS = this;
21
22
  this.container = this.root.head;
@@ -56,8 +57,8 @@ class RuntimeCSS extends MasterCSS {
56
57
  switch(eachCSSRule.constructor.name){
57
58
  case 'CSSKeyframesRule':
58
59
  continue;
59
- case 'CSSMeidaRule':
60
- const result = /\(prefers-color-scheme: (.*?)\)/.exec(eachCSSRule.conditionText);
60
+ case 'CSSMediaRule':
61
+ const result = /\(prefers-color-scheme: ?(.*?)\)/.exec(eachCSSRule.conditionText);
61
62
  if (result) {
62
63
  const firstCSSRule = eachCSSRule.cssRules[0];
63
64
  if (firstCSSRule?.constructor.name === 'CSSStyleRule' && firstCSSRule.selectorText === ':root') {
@@ -87,7 +88,8 @@ class RuntimeCSS extends MasterCSS {
87
88
  this.pushVariableNativeRule(result[1], eachCSSRule);
88
89
  continue;
89
90
  } else if (!selectorText.startsWith('.\\$')) {
90
- this.pushVariableNativeRule(selectorText.slice(1), eachCSSRule);
91
+ const [mode] = selectorText.split(',');
92
+ this.pushVariableNativeRule(mode.slice(1), eachCSSRule);
91
93
  continue;
92
94
  }
93
95
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@master/css-runtime","type":"module","scripts":{"build":"techor build","dev":"pnpm build --watch","e2e":"playwright test","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Run Master CSS right in the browser","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/runtime"},"keywords":["utility","css","lightweight","mastercss","master","runtime","cdn"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/global.min.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.41"},"devDependencies":{"shared":"^2.0.0-rc.41","@playwright/test":"1.41.2","@types/node":"^20.11.20"},"version":"2.0.0-rc.41"}
1
+ {"name":"@master/css-runtime","type":"module","scripts":{"build":"techor build","dev":"pnpm build --watch","test":"vitest","e2e":"playwright test","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"Run Master CSS right in the browser","author":"Aoyue Design LLC.","funding":"https://rc.css.master.co/sponsor","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/runtime"},"keywords":["utility","css","lightweight","mastercss","master","runtime","cdn"],"sideEffects":false,"main":"./dist/index.cjs","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","browser":"./dist/global.min.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"publishConfig":{"access":"public","provenance":true},"dependencies":{"@master/css":"^2.0.0-rc.42"},"devDependencies":{"shared":"^2.0.0-rc.42","@playwright/test":"1.41.2","@types/node":"^20.11.20"},"version":"2.0.0-rc.42"}