@master/css 2.0.0-beta.164 → 2.0.0-beta.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.bundle.js +9 -9
- package/dist/config/animations.d.ts +8 -0
- package/dist/config/classes.d.ts +3 -0
- package/dist/config/colors.d.ts +4 -23
- package/dist/config/functions.d.ts +3 -1
- package/dist/config/important.d.ts +2 -1
- package/dist/config/index.d.ts +21 -43
- package/dist/config/media-queries.d.ts +3 -0
- package/dist/config/override.d.ts +2 -1
- package/dist/config/root-size.d.ts +2 -1
- package/dist/config/rules.d.ts +274 -263
- package/dist/config/scope.d.ts +2 -1
- package/dist/config/selectors.d.ts +4 -18
- package/dist/config/semantics.d.ts +8 -189
- package/dist/config/theme-driver.d.ts +3 -0
- package/dist/config/values.d.ts +3 -0
- package/dist/config/viewports.d.ts +5 -0
- package/dist/constants/config-esm-text.d.ts +1 -1
- package/dist/constants/config-text.d.ts +1 -1
- package/dist/constants/config-ts-text.d.ts +1 -1
- package/dist/core.d.ts +4 -3
- package/dist/index.browser.bundle.js +1 -1
- package/dist/index.bundle.js +10 -10
- package/dist/index.bundle.mjs +10 -10
- package/dist/rule.d.ts +1 -1
- package/dist/types/css-properties.d.ts +4 -0
- package/dist/utils/camel-2-kebab.d.ts +1 -0
- package/package.json +1 -1
- package/dist/config/breakpoints.d.ts +0 -12
- package/dist/config/keyframes.d.ts +0 -109
- package/dist/config/themeDriver.d.ts +0 -1
|
@@ -1,190 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'border-radius': string;
|
|
10
|
-
};
|
|
11
|
-
round: {
|
|
12
|
-
'border-radius': string;
|
|
13
|
-
};
|
|
14
|
-
hidden: {
|
|
15
|
-
display: string;
|
|
16
|
-
};
|
|
17
|
-
hide: {
|
|
18
|
-
display: string;
|
|
19
|
-
};
|
|
20
|
-
block: {
|
|
21
|
-
display: string;
|
|
22
|
-
};
|
|
23
|
-
table: {
|
|
24
|
-
display: string;
|
|
25
|
-
};
|
|
26
|
-
flex: {
|
|
27
|
-
display: string;
|
|
28
|
-
};
|
|
29
|
-
grid: {
|
|
30
|
-
display: string;
|
|
31
|
-
};
|
|
32
|
-
contents: {
|
|
33
|
-
display: string;
|
|
34
|
-
};
|
|
35
|
-
inline: {
|
|
36
|
-
display: string;
|
|
37
|
-
};
|
|
38
|
-
'inline-block': {
|
|
39
|
-
display: string;
|
|
40
|
-
};
|
|
41
|
-
'inline-flex': {
|
|
42
|
-
display: string;
|
|
43
|
-
};
|
|
44
|
-
'inline-grid': {
|
|
45
|
-
display: string;
|
|
46
|
-
};
|
|
47
|
-
'inline-table': {
|
|
48
|
-
display: string;
|
|
49
|
-
};
|
|
50
|
-
'table-cell': {
|
|
51
|
-
display: string;
|
|
52
|
-
};
|
|
53
|
-
'table-caption': {
|
|
54
|
-
display: string;
|
|
55
|
-
};
|
|
56
|
-
'flow-root': {
|
|
57
|
-
display: string;
|
|
58
|
-
};
|
|
59
|
-
'list-item': {
|
|
60
|
-
display: string;
|
|
61
|
-
};
|
|
62
|
-
'table-row': {
|
|
63
|
-
display: string;
|
|
64
|
-
};
|
|
65
|
-
'table-column': {
|
|
66
|
-
display: string;
|
|
67
|
-
};
|
|
68
|
-
'table-row-group': {
|
|
69
|
-
display: string;
|
|
70
|
-
};
|
|
71
|
-
'table-column-group': {
|
|
72
|
-
display: string;
|
|
73
|
-
};
|
|
74
|
-
'table-header-group': {
|
|
75
|
-
display: string;
|
|
76
|
-
};
|
|
77
|
-
'table-footer-group': {
|
|
78
|
-
display: string;
|
|
79
|
-
};
|
|
80
|
-
italic: {
|
|
81
|
-
'font-style': string;
|
|
82
|
-
};
|
|
83
|
-
oblique: {
|
|
84
|
-
'font-style': string;
|
|
85
|
-
};
|
|
86
|
-
isolate: {
|
|
87
|
-
isolation: string;
|
|
88
|
-
};
|
|
89
|
-
overflowed: {
|
|
90
|
-
overflow: string;
|
|
91
|
-
};
|
|
92
|
-
untouchable: {
|
|
93
|
-
'pointer-events': string;
|
|
94
|
-
};
|
|
95
|
-
static: {
|
|
96
|
-
position: string;
|
|
97
|
-
};
|
|
98
|
-
fixed: {
|
|
99
|
-
position: string;
|
|
100
|
-
};
|
|
101
|
-
abs: {
|
|
102
|
-
position: string;
|
|
103
|
-
};
|
|
104
|
-
rel: {
|
|
105
|
-
position: string;
|
|
106
|
-
};
|
|
107
|
-
sticky: {
|
|
108
|
-
position: string;
|
|
109
|
-
};
|
|
110
|
-
uppercase: {
|
|
111
|
-
'text-transform': string;
|
|
112
|
-
};
|
|
113
|
-
lowercase: {
|
|
114
|
-
'text-transform': string;
|
|
115
|
-
};
|
|
116
|
-
capitalize: {
|
|
117
|
-
'text-transform': string;
|
|
118
|
-
};
|
|
119
|
-
visible: {
|
|
120
|
-
visibility: string;
|
|
121
|
-
};
|
|
122
|
-
invisible: {
|
|
123
|
-
visibility: string;
|
|
124
|
-
};
|
|
125
|
-
vw: {
|
|
126
|
-
width: string;
|
|
127
|
-
};
|
|
128
|
-
vh: {
|
|
129
|
-
height: string;
|
|
130
|
-
};
|
|
131
|
-
'max-vw': {
|
|
132
|
-
'max-width': string;
|
|
133
|
-
};
|
|
134
|
-
'max-vh': {
|
|
135
|
-
'max-height': string;
|
|
136
|
-
};
|
|
137
|
-
'min-vw': {
|
|
138
|
-
'min-width': string;
|
|
139
|
-
};
|
|
140
|
-
'min-vh': {
|
|
141
|
-
'min-height': string;
|
|
142
|
-
};
|
|
143
|
-
'center-content': {
|
|
144
|
-
'justify-content': string;
|
|
145
|
-
'align-items': string;
|
|
146
|
-
};
|
|
147
|
-
'sr-only': {
|
|
148
|
-
position: string;
|
|
149
|
-
width: string;
|
|
150
|
-
height: string;
|
|
151
|
-
padding: string;
|
|
152
|
-
margin: string;
|
|
153
|
-
overflow: string;
|
|
154
|
-
clip: string;
|
|
155
|
-
'white-space': string;
|
|
156
|
-
'border-width': string;
|
|
157
|
-
};
|
|
158
|
-
full: {
|
|
159
|
-
width: string;
|
|
160
|
-
height: string;
|
|
161
|
-
};
|
|
162
|
-
center: {
|
|
163
|
-
left: number;
|
|
164
|
-
right: number;
|
|
165
|
-
'margin-left': string;
|
|
166
|
-
'margin-right': string;
|
|
167
|
-
};
|
|
168
|
-
middle: {
|
|
169
|
-
top: number;
|
|
170
|
-
bottom: number;
|
|
171
|
-
'margin-top': string;
|
|
172
|
-
'margin-bottom': string;
|
|
173
|
-
};
|
|
174
|
-
'break-spaces': {
|
|
175
|
-
'white-space': string;
|
|
176
|
-
};
|
|
177
|
-
'break-word': {
|
|
178
|
-
'overflow-wrap': string;
|
|
179
|
-
overflow: string;
|
|
180
|
-
};
|
|
181
|
-
'gradient-text': {
|
|
182
|
-
'-webkit-text-fill-color': string;
|
|
183
|
-
'-webkit-background-clip': string;
|
|
184
|
-
'background-clip': string;
|
|
185
|
-
};
|
|
186
|
-
fit: {
|
|
187
|
-
width: string;
|
|
188
|
-
height: string;
|
|
189
|
-
};
|
|
1
|
+
import type { CSSProperties } from '../types/css-properties';
|
|
2
|
+
declare const semantics: Semantics;
|
|
3
|
+
export default semantics;
|
|
4
|
+
type SemanticsBase = CSSProperties | {
|
|
5
|
+
[key: string]: SemanticsBase;
|
|
6
|
+
};
|
|
7
|
+
export type Semantics = {
|
|
8
|
+
[key: string]: SemanticsBase;
|
|
190
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CONFIG_ESM_TEXT = "/** @type {import('@master/css').Config} */\nexport default {\n classes: {},\n colors: {},\n themes: {},\n rules: {},\n values: {},\n semantics: {},\n
|
|
1
|
+
export declare const CONFIG_ESM_TEXT = "/** @type {import('@master/css').Config} */\nexport default {\n classes: {},\n colors: {},\n themes: {},\n rules: {},\n values: {},\n semantics: {},\n viewports: {},\n mediaQueries: {},\n animations: {},\n selectors: {},\n functions: {}\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CONFIG_TEXT = "/** @type {import('@master/css').Config} */\nmodule.exports = {\n classes: {},\n colors: {},\n themes: {},\n rules: {},\n values: {},\n semantics: {},\n
|
|
1
|
+
export declare const CONFIG_TEXT = "/** @type {import('@master/css').Config} */\nmodule.exports = {\n classes: {},\n colors: {},\n themes: {},\n rules: {},\n values: {},\n semantics: {},\n viewports: {},\n mediaQueries: {},\n animations: {},\n selectors: {},\n functions: {}\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CONFIG_TS_TEXT = "import type { Config } from '@master/css'\n\nexport default {\n classes: {},\n colors: {},\n themes: {},\n rules: {},\n values: {},\n semantics: {},\n
|
|
1
|
+
export declare const CONFIG_TS_TEXT = "import type { Config } from '@master/css'\n\nexport default {\n classes: {},\n colors: {},\n themes: {},\n rules: {},\n values: {},\n semantics: {},\n viewports: {},\n mediaQueries: {},\n animations: {},\n selectors: {},\n functions: {}\n} as Config\n";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule, RuleMeta, RuleNative } from './rule';
|
|
2
|
-
import type { Config } from './config';
|
|
2
|
+
import type { Config, Animations } from './config';
|
|
3
3
|
export interface MasterCSS {
|
|
4
4
|
readonly style: HTMLStyleElement;
|
|
5
5
|
readonly host: Element;
|
|
@@ -13,13 +13,14 @@ export interface MasterCSS {
|
|
|
13
13
|
selectors: Record<string, [RegExp, string[]][]>;
|
|
14
14
|
values: Record<string, Record<string, string | number>>;
|
|
15
15
|
globalValues: Record<string, string | number>;
|
|
16
|
-
|
|
16
|
+
viewports: Record<string, number>;
|
|
17
17
|
mediaQueries: Record<string, string>;
|
|
18
18
|
matches: Record<string, RegExp>;
|
|
19
|
-
|
|
19
|
+
keyframesMap: Record<string, {
|
|
20
20
|
native: RuleNative;
|
|
21
21
|
count: number;
|
|
22
22
|
}>;
|
|
23
|
+
animations: Animations;
|
|
23
24
|
}
|
|
24
25
|
export declare class MasterCSS {
|
|
25
26
|
config: Config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function be(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function ve(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function xe(e){let t=[];return e.forEach(function(o,a){typeof o=="object"&&o!==null?Array.isArray(o)?t[a]=xe(o):be(o)?t[a]=ve(o):t[a]=ne({},o):t[a]=o}),t}function pe(e,t){return t==="__proto__"?void 0:e[t]}function ne(...e){let t={},o,a;return e.forEach(function(x){typeof x!="object"||x===null||Array.isArray(x)||Object.keys(x).forEach(function(s){if(a=pe(t,s),o=pe(x,s),o!==t)if(typeof o!="object"||o===null){t[s]=o;return}else if(Array.isArray(o)){t[s]=xe(o);return}else if(be(o)){t[s]=ve(o);return}else if(typeof a!="object"||a===null||Array.isArray(a)){t[s]=ne({},o);return}else{t[s]=ne(a,o);return}})}),t}var se={"(":")","'":"'",'"':'"',"{":"}"};function le(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),o=t.length,a=-1,x="",s,d=t.charCodeAt(0);if(o==1&&d==45)return"\\"+t;for(;++a<o;){if(s=t.charCodeAt(a),s==0){x+="\uFFFD";continue}if(s>=1&&s<=31||s==127||a==0&&s>=48&&s<=57||a==1&&s>=48&&s<=57&&d==45){x+="\\"+s.toString(16)+" ";continue}if(s>=128||s==45||s==95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){x+=t.charAt(a);continue}x+="\\"+t.charAt(a)}return x}var je={unit:"",order:0,separators:[","]},Me=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,fe=class{constructor(t,o={},a){this.className=t;this.meta=o;this.css=a;this.config=ne(je,o.config);let{unit:x,order:s,colored:d,native:u,analyze:v,transform:b,declare:g,create:c}=this.config,{scope:m,important:h,functions:p,themeDriver:l,keyframes:i}=a.config,{themeNames:n,colorNames:r,colorThemesMap:f,selectors:y,breakpoints:w,mediaQueries:S,classesBy:P,globalValues:j}=a,L=P[t];c&&c.call(this,t);let _,G,te,Q,F;if(o.origin==="semantics"){let[A,E]=o.value;Q=t.slice(A.length),_=E}else{let A;if(v)[A,te]=v.call(this,t);else{let O=t.indexOf(":");this.prefix=t.slice(0,O+1),A=t.slice(O+1)}F=[];let E=this,W=this.values,Y=[","];this.config.separators.length&&Y.push(...this.config.separators);let R="",C=0;(function O($,k,B,T=void 0,M=[],H=[],I){let V=T===void 0,X,oe=N=>N==="'"||N==='"',re=()=>X=R.length,J=()=>{if(R){let N=R,z=V?N:R.slice(X);if(R="",Z="",W&&z in W&&!M.includes(z)){let U=C;C=0,O(W[z].toString(),k,void 0,T,[...M,z],H,I),C=U,V||(R=R.slice(0,X)+R)}else if(j&&z in j&&!H.includes(z)){let U=C;C=0,O(j[z].toString(),k,void 0,T,M,[...H,z],I),C=U,V||(R=R.slice(0,X)+R)}else if(V){let U=!I&&E.analyzeUnitValue(z,k);F.push({value:U?.value??z,unit:U?.unit})}else{let U=!I&&E.analyzeUnitValue(z,k);R=U?N.slice(0,X)+U.value+U.unit:N}re()}},ee=oe(B);re();let Z="";for(;C<$.length;C++){let N=$[C];if(N===B){if(ee){R+=N;let z=0;for(let U=R.length-2;R[U]==="\\";U--)z++;if(z%2)continue}else J(),R+=N;return}else if(!ee&&N in se){let z=N==="("&&Z&&p?.[Z];z?.name&&(R=R.slice(0,R.length-Z.length)+z.name,Z=z.name),R+=N,C++;let U=se[N];O($,z?.unit??k,U,Z||T||"",M,H,I||!!z?.transform),z?.transform&&(R=R.slice(0,X+Z.length+1)+z.transform.call(E,R.slice(X+Z.length+1,-1))+R.slice(-1)),V&&(oe(U)?(F.push(R),R=""):J()),Z=""}else if((N==="|"||N===" ")&&B!=="}"&&(!ee||T==="path"))J(),V||(R+=" ",X++);else{if(!ee){if(N==="."){if(isNaN(+$[C+1]))break;$[C-1]==="-"&&(R+="0")}else if(Y.includes(N)){J(),V?F.push(N):(R+=N,X++);continue}else if(V&&(N==="#"&&(R||F.length&&$[C-1]!=="|"&&F[C-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(N)))break;Z+=N}R+=N}}T===void 0&&J()})(A,x),Q=A.slice(C)}this.order=typeof s=="function"?s.call(this,this.prefix):s,Q[0]==="!"&&(this.important=!0,Q=Q.slice(1));let q=A=>{let E=A.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((C,O)=>O%3?C:C.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),W=[],Y="",R=0;for(let C=0;C<E.length;C++){let O=E[C];if(O==="\\"){Y+=O+E[++C];continue}!R&&O===","?(W.push(Y),Y=""):(Y+=O,R&&O===")"?R--:O==="("&&R++)}return Y&&W.push(Y),W};this.prefixSelectors=te?q(te):[""];let K=Q.split("@"),ie=K[0];if(ie){this.vendorSuffixSelectors={};let A=(C,O,$,k)=>{for(let[B,T]of O)if(B.test(C)){for(let M of T)A(C.replace(B,M),O,$,!0);return}k&&$.push(C)},E=[];""in y?A(ie,y[""],E,!0):E.push(ie);let W={};for(let[C,O]of Object.entries(y)){if(!C)continue;let $=[];for(let k of E)A(k,O,$,!1);$.length&&(W[C]=$)}let Y=(C,O)=>{let $=O.reduce((k,B)=>(k.push(...q(B)),k),[]);C in this.vendorSuffixSelectors?this.vendorSuffixSelectors[C].push(...$):this.vendorSuffixSelectors[C]=$},R=Object.keys(W);if(R.length)for(let C of R)Y(C,W[C]);else Y("",E);for(let C of Object.values(this.vendorSuffixSelectors))for(let O of C){this.hasWhere!==!1&&(this.hasWhere=O.includes(":where("));let $=[":disabled",":active",":focus",":hover"];for(let k=0;k<$.length;k++)if(O.includes($[k])){(this.priority===-1||this.priority>k)&&(this.priority=k);break}}}else this.vendorSuffixSelectors={"":[""]};for(let A=1;A<K.length;A++){let E=K[A];if(E)if(E==="rtl"||E==="ltr")this.direction=E;else{let W,Y,R=Me.exec(E);if(R)W=R[1],Y=E.slice(W.length);else{this.media={token:E,features:{}};let C=[],O=k=>{if(k==="all"||k==="print"||k==="screen"||k==="speech")this.media.type=k;else if(k==="\u{1F5A8}")this.media.type="print";else if(k==="landscape"||k==="portrait")C.push("(orientation:"+k+")");else if(k==="motion"||k==="reduced-motion")C.push("(prefers-reduced-motion:"+(k==="motion"?"no-preference":"reduce")+")");else if(S&&k in S)C.push(S[k]);else{let B={token:k},T="",M="",H=0;k.startsWith("<=")?(M="<=",T="max-width"):k.startsWith(">=")||w[k]?(M=">=",T="min-width"):k.startsWith(">")?(M=">",T="min-width",H=.02):k.startsWith("<")&&(M="<",T="max-width",H=-.02);let I=M?k.replace(M,""):k,V=w[I];switch(T){case"max-width":case"min-width":V?Object.assign(B,this.analyzeUnitValue(V.toString(),"px")):Object.assign(B,this.analyzeUnitValue(I,"px")),B.unit==="px"&&(B.value+=H),this.media.features[T]=B,C.push("("+T+":"+(B.value+B.unit)+")");break}}},$=E.includes("&");if($){let k=E.split("&");for(let B of k)O(B)}else O(E);if(this.media.type&&(Y=this.media.type),C.length&&(Y=C.join(" and ")),Y)W="media";else if(!$){this.theme=E;continue}}Y&&(this.at[W]=(W in this.at?this.at[W]+" and ":"")+Y.replace(/\|/g," "))}}let ae=(A,E)=>{let W,Y=(O,$,k)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let T=this.prefixSelectors.map(I=>I+B),M=(I,V)=>T.map(X=>(I&&l!=="media"?l==="host"?`:host(.${I}) `:`.${I} `:"")+(m?m+" ":"")+X).reduce((X,oe)=>(X.push(k.reduce((re,J)=>(re.push(oe+"."+le(V)+J),re),[]).join(",")),X),[]).join(","),H=M($,t)+(L?L.reduce((I,V)=>I+","+M(this.theme??(d||G?$:""),V),""):"")+"{"+O+"}";for(let I of Object.keys(this.at).sort((V,X)=>X==="supports"?-1:1))H="@"+I+(I.includes(" ")?"":" ")+this.at[I]+"{"+H+"}";return $&&l==="media"&&(H=`@media(prefers-color-scheme:${$}){`+H+"}"),H},R=[];if(F){let O=[this.theme??A,""],$,k=!1;for(let B of F)if(typeof B=="string")R.push(B);else{let T=B.value;if(B.unit)T+=B.unit;else if(d&&f&&r){let M=!1;T=T.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(H,I,V,X)=>{let oe=f[V];if(oe){let re,J;for(let ee of O)if(re=oe[ee]){J=ee;break}if(re){M=!E||J===A,$||($=M);let ee=re;if(X){let Z=X.endsWith("%")?parseFloat(X)/100:+X;Z=isNaN(Z)?1:Math.min(Math.max(Z,0),1),ee+=Math.round(Z*255).toString(16).toUpperCase().padStart(2,"0")}return I+ee}else k=!0}return H})}R.push(T)}if(E&&(k||($===void 0?A:!$)))return;if(W=R.reduce((B,T,M)=>B+T+(T===","||F[M+1]===","||M===F.length-1?"":" "),""),b&&(W=b.call(this,W,this.css.config)),d&&W==="current"&&(W="currentColor"),g){let B,T;if(F.length===1){let M=F[0];typeof M=="object"&&(B=M.value,T=M.unit)}_=g.call(this,T?B:W,T||"")}else _={[u]:W}}let C={};for(let O in _){let $=(T,M)=>{if(i&&(M.startsWith("animation")||M.startsWith("animation-name"))){let I=M.split(":")[1].split("!important")[0].split(" ").filter(V=>V in this.css.config.keyframes&&(!this.keyframeNames||!this.keyframeNames.includes(V)));I.length&&(this.keyframeNames||(this.keyframeNames=[]),this.keyframeNames.push(...I))}let H=M+((this.important||h)&&!M.endsWith("!important")?"!important":"");T in C?C[T].push(H):C[T]=[H]},k=O+":",B=_[O];if(typeof B=="object")if(Array.isArray(B))for(let T of B)$(A,k+T.toString());else{G=!0;for(let T in B)$(T,k+B[T])}else $(A,k+B.toString())}for(let O of Object.values(this.vendorSuffixSelectors))for(let $ in C)this.natives.push({text:Y(C[$].join(";"),$,O),theme:$})};if(this.theme)ae(this.theme,!1);else if(d)for(let A of n)ae(A,!0);else ae("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,o){return Number.isNaN(+t)?t:t/(o==="rem"||o==="em"?this.css.config.rootSize:1)+o}analyzeUnitValue(t,o){let a=o??this.config.unit;if(a){let x="",s=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(s)if(t.includes("/")){let[d,u]=t.split("/");return{value:+d/+u*100+"%",unit:x}}else{let d=+s[1];return x=s[3]||"",x||((a==="rem"||a==="em")&&(d=d/this.css.config.rootSize),x=a||""),{value:d,unit:x}}}}};var ye={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function ce(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function me(e,t,o){return((1<<24)+(e<<16)+(t<<8)+o).toString(16).slice(1)}function D(e){typeof e=="string"&&(e={"":e});let t=""in e,o=!1;for(let a in e)if(a&&+a>=100){o=!0;break}if(!o&&(!t||Object.keys(e).length>1)){let a=0,x="0"in e?ce(e[0]):[0,0,0],s,d,u=[],v=()=>{let b=s-a,g=d.map((c,m)=>(c-x[m])/b);for(let c of u){let m=c-a,h=x.map((p,l)=>Math.round(p+g[l]*m));e[c]="#"+me.call(this,...h)}};for(let b=1;b<100;b++)b in e?(u.length?(s=b,d=ce(e[b]),v(),u.length=0,x=d):x=ce(e[b]),a=b):u.push(b);u.length&&(s=100,d="100"in e?ce(e[100]):[255,255,255],v())}return t||(e[""]=e[o?"500":"50"]),e}var we={black:"#000000",white:"#ffffff",slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Ce="";var ke={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"};var Se={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},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%"},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"}};var Ee={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},o=(b,g)=>{let c=g.indexOf(":");if(c!==-1){b in t||(t[b]={});let m=t[b],h=g.slice(0,c);h in m||(m[h]=g.slice(c+1))}},a=b=>{let g=(c,m)=>{let h=m.slice(le(b.className).length).match(/\{(.*)\}/)[1].split(";");for(let p of h)o(c,p)};if(this.theme){let c=b.natives.find(m=>m.theme===this.theme)??b.natives.find(m=>!m.theme);c&&g(this.theme,c.text)}else for(let c of b.natives)g(c.theme,c.text);if(b.keyframeNames){this.keyframeNames||(this.keyframeNames=[]);for(let c of b.keyframeNames)this.keyframeNames.includes(c)||this.keyframeNames.push(c)}},x=[],s="",d=()=>{s&&(x.push(s.replace(/ /g,"|")),s="")},u=1;(function b(g){for(;u<e.length;u++){let c=e[u];if(!g){if(c===";"){d();continue}if(c==="}")break}if(s+=c,g===c){if(g==="'"||g==='"'){let m=0;for(let h=s.length-2;s[h]==="\\";h--)m++;if(m%2)continue}break}else c in se&&g!=="'"&&g!=='"'&&(u++,b(se[c]))}})(void 0),d();for(let b of x){let g=this.css.create(b);if(Array.isArray(g))if(g.length)for(let c of g)a(c);else o(this.theme??"",b);else a(g)}let v={};for(let b in t)for(let[g,c]of Object.entries(t[b]))g in v?v[g][b]=c:v[g]={[b]:c};return v}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,o]=e.split(" x ");return{width:t,height:o}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,o]=e.split(" x ");return{"min-width":t,"min-height":o}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,o]=e.split(" x ");return{"max-width":t,"max-height":o}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",native:!0,unit:"rem",order:-1},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Re=Ee;var $e={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"}}};var Be={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,o=this.css.globalValues,a=this.css.config.functions,x=this,s=0,d="",u="";return function v(b,g){let c=!1,m=(h,p=!1,l=!1)=>{if(h!=="("&&(t&&u in t?u=t[u].toString():o&&u in o&&(u=o[u].toString())),u&&!c&&!g){let i=x.analyzeUnitValue(u,a.calc.unit);i&&(u=i.value+i.unit)}d+=u+(p&&e[s-1]!==" "?" ":"")+h+(l&&e[s+1]!==" "?" ":""),u="",c=!1};for(;s<e.length;s++){let h=e[s];if(h==="("){let p=u,l=c,i=d.length;if(m(h),s++,v(p,l||g),p!=="calc"){let n=a[p];if(n){let r=d.slice(i+2,d.length-1);d=d.slice(0,i-p.length+1)+(n.name??p)+"("+(n.transform?.(r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let p=e[s-1];switch(h){case"+":!u&&p!==")"?u+=h:m(h,!0,!0);break;case"-":b==="var"||!u&&p!==")"?u+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),c=!0;break;default:u+=h;break}}}s>=e.length-1&&m("")}("",!1),d}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},repeat:{unit:""}};var Te="class";var ue={breakpoints:ye,colors:we,rootSize:16,scope:Ce,selectors:ke,semantics:Se,rules:Re,override:!1,important:!1,functions:Be,keyframes:$e,themeDriver:Te};var Oe=[",",".","#","[","!","*",">","+","~",":","@"];var he="_CNO_",de=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;static instances=[];static refresh=t=>{for(let o of this.instances)o.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:t,classes:o,selectors:a,colors:x,values:s,breakpoints:d,mediaQueries:u,rules:v}=this.config;function b(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function g(i,n,r="",f={}){let y=j=>j?(r?r+"-":"")+j:r,w=Object.entries(i),S=[],P=[];for(let j of w){let L=j[1];(typeof L=="object"&&!Array.isArray(L)?S:P).push(j)}for(let[j,L]of S)g(L,n,y(j),f);if(n&&r)P.length&&(f[r]=P.reduce((j,[L,_])=>(j[L]=_,j),{}));else for(let[j,L]of P)f[y(j)]=L;return f}function c(i){for(let[n,r]of Object.entries(i))/^[0-9]+x$/.test(n)&&typeof r=="number"&&(i["-"+n]=r*-1);return i}if(t)for(let[i,n]of Object.entries(g(t,!0)))this.semantics.push([new RegExp("^"+b(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[i,n]]);if(a)for(let[i,n]of Object.entries(g(a,!1))){let r=new RegExp(b(i)+"(?![a-z-])");for(let f of Array.isArray(n)?n:[n]){let y=f.match(/^::-[a-z]+-/m)?.[0]??"",w=this.selectors[y];w||(w=this.selectors[y]=[]);let S=w.find(([P])=>P===r);S||(S=[r,[]],w.push(S)),S[1].push(f)}}s&&(this.globalValues=c(g(s,!1))),d&&(this.breakpoints=g(d,!1)),u&&(this.mediaQueries=g(u,!1));let m=o?g(o,!1):{},h=Object.keys(m),p=i=>{if(Object.prototype.hasOwnProperty.call(this.classes,i))return;let n=this.classes[i]=[],r=m[i];if(!r)return;let f=r.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let y of f){let w=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let P=this.classesBy[S];P.includes(i)||P.push(i)}else this.classesBy[S]=[i];n.includes(S)||n.push(S)};if(h.includes(y)){p(y);for(let S of this.classes[y])w(S)}else w(y)}};for(let i of h)p(i);this.colorNames=Object.keys(x);let l=Object.entries(this.colorByThemeByColorName).reduce((i,[n,r])=>(i[n]=()=>{let f=(S,P)=>P?S.slice(0,7)+Math.round(255*+P).toString(16):S,y={};for(let S in r){let P=r[S].split(" ");for(let j of P){let L=j.lastIndexOf("@"),_=L!==-1?j.slice(0,L):j,G=L!==-1?j.slice(L+1):"",te=S.slice(1)||G;if(j.startsWith("#"))y[te]=_;else if(j.startsWith(he)){let[Q,F]=_.slice(he.length).split("/");if(Object.prototype.hasOwnProperty.call(l,Q)){let K=l[Q];delete l[Q],K()}let q=Object.prototype.hasOwnProperty.call(this.colorThemesMap,Q)&&this.colorThemesMap[Q];if(q)for(let K in q){let ie=q[K];y[K]=f(ie,F)}else console.error(`"${n}${S}: ${j}" is an invalid ".colors" config`)}else{let[Q,F]=_.split("@"),[q,K]=Q.split("/");if(Object.prototype.hasOwnProperty.call(l,q)){let ae=l[q];delete l[q],ae()}let ie=Object.prototype.hasOwnProperty.call(this.colorThemesMap,q)&&this.colorThemesMap[q][(S?G:F)||""];ie?y[te]=f(ie,K):console.error(`"${n}${S}: ${j}" is an invalid ".colors" config`)}}}let w=Object.keys(y);if(w.length){this.colorThemesMap[n]=y;for(let S of w)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete l[n]},i),{});for(let i of Object.keys(l))l[i]?.();if(v)for(let i in v){let n=v[i],{native:r,values:f,colored:y}=n,w=n.match;if(n.id=i,n.native=r===!0?i.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,f&&(this.values[i]=c(g(f,!1))),w){let S=Object.keys(this.values[i]??{});w.includes("$values")&&(w=S.length?w.replace(/\$values/,S.join("|")):w.replace(/(?:\|)?\$values/,"")),y&&w.includes("$colors")&&(w=this.colorNames.length?w.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):w.replace(/(?:\|)?\$colors/,"")),this.matches[i]=new RegExp(w)}}}observe(t,o={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let a=t===document;a&&(e.root=this),this.host=a?document.documentElement:this.root.host;let x=a?document.head:t,s=a?document.styleSheets:t.styleSheets;for(let u of s){let{ownerNode:v}=u;if(v&&v.id==="master"){this.style=v;break}}if(this.style)for(let u=0;u<this.style.sheet.cssRules.length;u++){let v=this.style.sheet.cssRules[u];if(v.constructor.name==="CSSKeyframesRule")continue;let b=c=>{if(c.selectorText){let h=c.selectorText.split(", ")[0].split(" ");for(let p=0;p<h.length;p++){let l=h[p];if(l[0]==="."){let i=l.slice(1),n="";for(let r=0;r<i.length;r++){let f=i[r],y=i[r+1];if(f==="\\"){if(r++,y!=="\\"){n+=y;continue}}else if(Oe.includes(f))break;n+=f}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,n)&&!Object.prototype.hasOwnProperty.call(this.classes,n)){let r=this.create(n)[0];if(r)return r}}}}else if(c.cssRules)for(let m=0;m<c.cssRules.length;m++){let h=b(c.cssRules[m]);if(h)return h}},g=b(v);if(g){this.rules.push(g),this.ruleBy[g.className]=g;for(let c=0;c<g.natives.length;c++)g.natives[c].cssRule=this.style.sheet.cssRules[u+c];u+=g.natives.length-1,g.config.insert?.call(g)}}else this.style=document.createElement("style"),this.style.id="master",x.append(this.style);let d=u=>{u.forEach(v=>{Object.prototype.hasOwnProperty.call(this.countBy,v)?this.countBy[v]++:(this.countBy[v]=1,this.insert(v))})};d(this.host.classList),o.subtree&&this.host.querySelectorAll("[class]").forEach(u=>d(u.classList)),this.observer=new MutationObserver(u=>{let v={},b=[],g=[],c=[],m=(i,n)=>{n?i.classList.forEach(p):i.classList.forEach(h);let r=i.children;for(let f=0;f<r.length;f++){let y=r[f];y.classList&&(g.push(y),m(y,n))}},h=i=>{Object.prototype.hasOwnProperty.call(v,i)?v[i]++:v[i]=1},p=i=>{Object.prototype.hasOwnProperty.call(v,i)?v[i]--:Object.prototype.hasOwnProperty.call(this.countBy,i)&&(v[i]=-1)},l=(i,n)=>{for(let r=0;r<i.length;r++){let f=i[r];f.classList&&!g.includes(f)&&!c.includes(f)&&(f.isConnected!==n?(g.push(f),m(f,n)):c.push(f))}};for(let i=0;i<u.length;i++){let n=u[i],{addedNodes:r,removedNodes:f,type:y,target:w}=n;if(y==="attributes"){if(b.find(S=>S.target===w))continue;b.push(n)}else l(r,!1),(!w.isConnected||!g.includes(w))&&l(f,!0)}if(!(!b.length&&!Object.keys(v).length)){for(let{oldValue:i,target:n}of b){let r=g.includes(n),f=n.classList,y=i?i.split(" "):[];if(r){if(n.isConnected)continue;for(let w of y)f.contains(w)||p(w)}else if(n.isConnected){f.forEach(w=>{y.includes(w)||h(w)});for(let w of y)f.contains(w)||p(w)}}for(let i in v){let n=v[i],r=(this.countBy[i]||0)+n;r===0?(delete this.countBy[i],this.delete(i)):(Object.prototype.hasOwnProperty.call(this.countBy,i)||this.insert(i),this.countBy[i]=r)}}}),this.observer.observe(t,{...o,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let t=this.style?.sheet;if(t?.cssRules)for(let o=t.cssRules.length-1;o>=0;o--)t.deleteRule(o);this.style?.remove(),this.style=null,this.root=null}match(t){for(let o in this.config.rules){let a=this.config.rules[o],x=this.matches[o],{native:s}=a;if(x&&x.test(t))return{origin:"match",config:a};if(s&&t.startsWith(s+":"))return{origin:"match",config:a}}for(let o of this.semantics)if(t.match(o[0]))return{origin:"semantics",value:o[1]}}create(t){let o=a=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,a))return this.ruleBy[a];let x=this.match(a);if(x)return new fe(a,x,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(a=>o(a)):[o(t)]).filter(a=>a&&a.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ue,t),this.cache(),!this.style)return;let o=document.createElement("style");o.id="master",this.style.replaceWith(o),this.style=o,this.rules.length=0,this.ruleBy={};for(let a in this.countBy)this.insert(a)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let o=this.style?.sheet,a=x=>{let s=this.ruleBy[x];if(!(!s||Object.prototype.hasOwnProperty.call(this.classesBy,x)&&this.classesBy[x].some(d=>Object.prototype.hasOwnProperty.call(this.countBy,d)))){if(o&&s.natives.length){let d=s.natives[0];for(let u=0;u<o.cssRules.length;u++)if(o.cssRules[u]===d.cssRule){for(let b=0;b<s.natives.length;b++)o.deleteRule(u);break}}if(this.rules.splice(this.rules.indexOf(s),1),delete this.ruleBy[x],s.keyframeNames){let d=this.rules[0];for(let u of s.keyframeNames){let v=this.keyframes[u];if(!--v.count){let b=d.natives.indexOf(v.native);this.style.sheet.deleteRule(b),d.natives.splice(b,1),delete this.keyframes[u]}}d.natives.length||this.rules.splice(0,1)}s.config.delete?.call(s,x)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let x of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,x)||a(x);delete this.ruleBy[t]}else a(t)}insert(t){let o=this.create(t);return o.length?(this.insertRules(o),!0):!1}insertRules(t){for(let o of t){if(this.ruleBy[o.className])continue;let a,x=Object.keys(this.keyframes).length,s=this.rules.length-1,{media:d,order:u,priority:v,hasWhere:b,className:g}=o,c=(p,l,i)=>{let n=p;for(;n<=s;n++){let r=this.rules[n];if(l?.(r))return i?-1:n-1;if(i?.(r))return n}return i?-1:n-1},m,h;if(d){let p=this.rules.findIndex(l=>l.media);if(p===-1)a=s+1;else{let{"max-width":l,"min-width":i}=d.features;if(l||i){let n=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(n===-1)a=s+1;else if(l&&i){if(v===-1?(m=c(n,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=c(n,r=>r.priority!==-1)):(m=c(n,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=s),m!==-1){let r=l.value-i.value,f=h,y=m;for(m=void 0;f>=y;f--){let{"max-width":w,"min-width":S}=this.rules[f].media.features,P=w.value-S.value;if(P<r)h=f-1;else if(P===r)m=f;else break}}if(m!==-1){let r=l.value-i.value;for(let f=h;f>=m;f--){let{"max-width":y,"min-width":w}=this.rules[f].media.features,S=y.value-w.value;if(S<r)h=f-1;else if(S>r){m=f+1;break}}}}else if(i){if(v===-1?(m=c(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),h=c(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(m=c(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=c(n,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let f=this.rules[r].media.features["min-width"].value;if(f>i.value)h=r-1;else if(f<i.value){m=r+1;break}}}else if(v===-1?(m=c(n,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=c(n,r=>r.media.features["min-width"]||r.priority!==-1)):(m=c(n,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=c(n,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let f=this.rules[r].media.features["max-width"].value;if(f<l.value)h=r-1;else if(f>l.value){m=r+1;break}}}else v===-1?(m=p,h=c(p,n=>n.media?.features["max-width"]||n.media?.features["min-width"]||n.priority!==-1)):(m=c(p,n=>n.media?.features["max-width"]||n.media?.features["min-width"],n=>n.priority!==-1),h=c(p,n=>n.media?.features["max-width"]||n.media?.features["min-width"]))}}else{let p=x?1:0;v===-1?(m=p,h=c(p,l=>l.media||l.priority!==-1)):(m=c(p,l=>l.media,l=>l.priority!==-1),h=c(p,l=>l.media))}if(a===void 0)if(m===-1)a=h+1;else{if(v===-1)for(let p=m;p<=h;p++){let l=this.rules[p];if(!(!b&&l.hasWhere)&&(b&&!l.hasWhere||l.order>=u)){a=p;break}}else for(let p=m;p<=h;p++){let l=this.rules[p];if(!(!b&&l.hasWhere)){if(b&&!l.hasWhere){a=p;break}if(l.priority<v){a=p;break}else if(l.priority===v){if(l.order>=u){a=p;break}}else a=p+1}}a===void 0&&(a=h+1)}if(this.rules.splice(a,0,o),this.ruleBy[g]=o,this.style){let p=this.style.sheet,l=0,i=n=>{let r=this.rules[n];if(r){if(!r.natives.length)return i(n-1);let f=r.natives[r.natives.length-1].cssRule;for(let y=0;y<p.cssRules.length;y++)if(p.cssRules[y]===f){l=y+1;break}}};i(a-1);for(let n=0;n<o.natives.length;)try{let r=o.natives[n];p.insertRule(r.text,l),r.cssRule=p.cssRules[l++],n++}catch(r){console.error(r),o.natives.splice(n,1)}}if(o.keyframeNames){let p=this.style?.sheet;for(let l of o.keyframeNames)if(Object.prototype.hasOwnProperty.call(this.keyframes,l))this.keyframes[l].count++;else{let i={text:`@keyframes ${l}{`+Object.entries(this.config.keyframes[l]).map(([r,f])=>`${r}{${Object.entries(f).map(([y,w])=>y+":"+w).join(";")}}`).join("")+"}",theme:""},n;if(Object.keys(this.keyframes).length?(n=this.rules[0]).natives.push(i):this.rules.splice(0,0,n={natives:[i],get text(){return this.natives.map(r=>r.text).join("")}}),p){let r;for(let f=0;f<p.cssRules.length;f++){let y=p.cssRules[f];if(y.constructor.name!=="CSSKeyframesRule")break;if(y.name===l){r=y;break}}if(r)i.cssRule=r;else{let f=n.natives.length-1;p.insertRule(i.text,f),i.cssRule=p.cssRules[f]}}this.keyframes[l]={native:i,count:1}}}o.config.insert?.call(o)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let o=s=>{let d=ne({},s),u=v=>{for(let b in v){let g=v[b];typeof g=="object"&&!Array.isArray(g)?u(g):b&&(v[b]={"":g})}};if(d.classes?u(d.classes):d.classes={},d.breakpoints?u(d.breakpoints):d.breakpoints={},d.mediaQueries?u(d.mediaQueries):d.mediaQueries={},d.selectors?u(d.selectors):d.selectors={},d.values?u(d.values):d.values={},d.colors){let v=(b,g)=>{let c=(l,i,n)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,l)||(this.colorByThemeByColorName[l]={});let r=this.colorByThemeByColorName[l],f=r[""]?.includes(he),y=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(S,P,j,L,_)=>{let G="#"+me(+P,+j,+L);return _&&(G+=Math.round(255*+_).toString(16)),G});for(let[w,S]of i)if(S){let P=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,j;for(;(j=P.exec(S))!==null;){let L=j[0].trimStart(),_=L.lastIndexOf("@"),G=_!==-1?L.slice(0,_):L,te=_!==-1?L.slice(_):"",Q=w||te,F=n&&j[2]&&!j[2].startsWith("#")&&!te,q=j[1]?y(G):w?j[0]:G;if(f||F){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let K in r)K&&(r[""]+=" "+r[K],delete r[K]);r[""]+=(r[""]?" ":"")+(F?he:"")+q+Q}else r[Q]=q;if(w)break}}else if(n){delete this.colorByThemeByColorName[l];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[l]},m=Object.entries(b),h=m.filter(([l])=>l===""||l.startsWith("@"));h.length&&c(g,h,!1);let p=m.filter(([l])=>l!==""&&!l.startsWith("@"));for(let[l,i]of p){let n=(g?g+"-":"")+l;typeof i=="string"?c(n,[["",i]],!0):v(i,n)}};v(d.colors,"")}return d},a=[];for(let s of t)(function d(u){if(u.extends?.length)for(let v of u.extends)d("config"in v?v.config:v);a.push(o(u))})(s);let x=a[0];for(let s=1;s<a.length;s++){let d=a[s];x=ne(x,d),Object.prototype.hasOwnProperty.call(d,"keyframes")&&Object.assign(x.keyframes,d.keyframes)}return x}};typeof window<"u"&&(window.MasterCSS=de);function ge(e,t){return new de(e).observe(t)}ge(window.masterCSSConfig);})();
|
|
1
|
+
(()=>{function ve(e){let t=typeof Buffer<"u"?Buffer:null;return!!(t&&e instanceof t||e instanceof Date||e instanceof RegExp)}function Ce(e){if(typeof Buffer<"u"&&Buffer&&e instanceof Buffer){let t=Buffer.alloc(e.length);return e.copy(t),t}else{if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}}function xe(e){let t=[];return e.forEach(function(n,s){typeof n=="object"&&n!==null?Array.isArray(n)?t[s]=xe(n):ve(n)?t[s]=Ce(n):t[s]=oe({},n):t[s]=n}),t}function be(e,t){return t==="__proto__"?void 0:e[t]}function oe(...e){let t={},n,s;return e.forEach(function(C){typeof C!="object"||C===null||Array.isArray(C)||Object.keys(C).forEach(function(o){if(s=be(t,o),n=be(C,o),n!==t)if(typeof n!="object"||n===null){t[o]=n;return}else if(Array.isArray(n)){t[o]=xe(n);return}else if(ve(n)){t[o]=Ce(n);return}else if(typeof s!="object"||s===null||Array.isArray(s)){t[o]=oe({},n);return}else{t[o]=oe(s,n);return}})}),t}var ae={"(":")","'":"'",'"':'"',"{":"}"};function le(e){if(typeof CSS<"u")return CSS.escape(e);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,s=-1,C="",o,d=t.charCodeAt(0);if(n==1&&d==45)return"\\"+t;for(;++s<n;){if(o=t.charCodeAt(s),o==0){C+="\uFFFD";continue}if(o>=1&&o<=31||o==127||s==0&&o>=48&&o<=57||s==1&&o>=48&&o<=57&&d==45){C+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){C+=t.charAt(s);continue}C+="\\"+t.charAt(s)}return C}var We={unit:"",order:0,separators:[","]},Ae=/^(media|supports|page|font-face|keyframes|counter-style|font-feature-values|property|layer)(?=\||{|\(|$)/,de=class{constructor(t,n={},s){this.className=t;this.meta=n;this.css=s;this.config=oe(We,n.config);let{unit:C,order:o,colored:d,native:f,analyze:b,transform:p,declare:v,create:a}=this.config,{scope:m,important:h,functions:g,themeDriver:u}=s.config,{themeNames:c,colorNames:i,colorThemesMap:r,selectors:l,viewports:x,mediaQueries:w,classesBy:B,globalValues:S,animations:z}=s,E=B[t];a&&a.call(this,t);let W,K,te,Z,D;if(n.origin==="semantics"){let[A,N]=n.value;Z=t.slice(A.length),W=N}else{let A;if(b)[A,te]=b.call(this,t);else{let j=t.indexOf(":");this.prefix=t.slice(0,j+1),A=t.slice(j+1)}D=[];let N=this,P=this.values,_=[","];this.config.separators.length&&_.push(...this.config.separators);let k="",R=0;(function j($,y,O,T=void 0,M=[],F=[],I){let X=T===void 0,H,se=L=>L==="'"||L==='"',ie=()=>H=k.length,J=()=>{if(k){let L=k,V=X?L:k.slice(H);if(k="",q="",P&&V in P&&!M.includes(V)){let U=R;R=0,j(P[V].toString(),y,void 0,T,[...M,V],F,I),R=U,X||(k=k.slice(0,H)+k)}else if(S&&V in S&&!F.includes(V)){let U=R;R=0,j(S[V].toString(),y,void 0,T,M,[...F,V],I),R=U,X||(k=k.slice(0,H)+k)}else if(X){let U=!I&&N.analyzeUnitValue(V,y);D.push({value:U?.value??V,unit:U?.unit})}else{let U=!I&&N.analyzeUnitValue(V,y);k=U?L.slice(0,H)+U.value+U.unit:L}ie()}},ee=se(O);ie();let q="";for(;R<$.length;R++){let L=$[R];if(L===O){if(ee){k+=L;let V=0;for(let U=k.length-2;k[U]==="\\";U--)V++;if(V%2)continue}else J(),k+=L;return}else if(!ee&&L in ae){let V=L==="("&&q&&g?.[q];V?.name&&(k=k.slice(0,k.length-q.length)+V.name,q=V.name),k+=L,R++;let U=ae[L];j($,V?.unit??y,U,q||T||"",M,F,I||!!V?.transform),V?.transform&&(k=k.slice(0,H+q.length+1)+V.transform.call(N,k.slice(H+q.length+1,-1))+k.slice(-1)),X&&(se(U)?(D.push(k),k=""):J()),q=""}else if((L==="|"||L===" ")&&O!=="}"&&(!ee||T==="path"))J(),X||(k+=" ",H++);else{if(!ee){if(L==="."){if(isNaN(+$[R+1]))break;$[R-1]==="-"&&(k+="0")}else if(_.includes(L)){J(),X?D.push(L):(k+=L,H++);continue}else if(X&&(L==="#"&&(k||D.length&&$[R-1]!=="|"&&D[R-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(L)))break;q+=L}k+=L}}T===void 0&&J()})(A,C),Z=A.slice(R)}this.order=typeof o=="function"?o.call(this,this.prefix):o,Z[0]==="!"&&(this.important=!0,Z=Z.slice(1));let re=A=>{let N=A.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((R,j)=>j%3?R:R.replace(/(^|[^_])_(?!_)/g,"$1 ")).join(""),P=[],_="",k=0;for(let R=0;R<N.length;R++){let j=N[R];if(j==="\\"){_+=j+N[++R];continue}!k&&j===","?(P.push(_),_=""):(_+=j,k&&j===")"?k--:j==="("&&k++)}return _&&P.push(_),P};this.prefixSelectors=te?re(te):[""];let Q=Z.split("@"),G=Q[0];if(G){this.vendorSuffixSelectors={};let A=(R,j,$,y)=>{for(let[O,T]of j)if(O.test(R)){for(let M of T)A(R.replace(O,M),j,$,!0);return}y&&$.push(R)},N=[];""in l?A(G,l[""],N,!0):N.push(G);let P={};for(let[R,j]of Object.entries(l)){if(!R)continue;let $=[];for(let y of N)A(y,j,$,!1);$.length&&(P[R]=$)}let _=(R,j)=>{let $=j.reduce((y,O)=>(y.push(...re(O)),y),[]);R in this.vendorSuffixSelectors?this.vendorSuffixSelectors[R].push(...$):this.vendorSuffixSelectors[R]=$},k=Object.keys(P);if(k.length)for(let R of k)_(R,P[R]);else _("",N);for(let R of Object.values(this.vendorSuffixSelectors))for(let j of R){this.hasWhere!==!1&&(this.hasWhere=j.includes(":where("));let $=[":disabled",":active",":focus",":hover"];for(let y=0;y<$.length;y++)if(j.includes($[y])){(this.priority===-1||this.priority>y)&&(this.priority=y);break}}}else this.vendorSuffixSelectors={"":[""]};for(let A=1;A<Q.length;A++){let N=Q[A];if(N)if(N==="rtl"||N==="ltr")this.direction=N;else{let P,_,k=Ae.exec(N);if(k)P=k[1],_=N.slice(P.length);else{this.media={token:N,features:{}};let R=[],j=y=>{if(y==="all"||y==="print"||y==="screen"||y==="speech")this.media.type=y;else if(y==="\u{1F5A8}")this.media.type="print";else if(y==="landscape"||y==="portrait")R.push("(orientation:"+y+")");else if(y==="motion"||y==="reduced-motion")R.push("(prefers-reduced-motion:"+(y==="motion"?"no-preference":"reduce")+")");else if(w&&y in w)R.push(w[y]);else{let O={token:y},T="",M="",F=0;y.startsWith("<=")?(M="<=",T="max-width"):y.startsWith(">=")||x[y]?(M=">=",T="min-width"):y.startsWith(">")?(M=">",T="min-width",F=.02):y.startsWith("<")&&(M="<",T="max-width",F=-.02);let I=M?y.replace(M,""):y,X=x[I];switch(T){case"max-width":case"min-width":X?Object.assign(O,this.analyzeUnitValue(X.toString(),"px")):Object.assign(O,this.analyzeUnitValue(I,"px")),O.unit==="px"&&(O.value+=F),this.media.features[T]=O,R.push("("+T+":"+(O.value+O.unit)+")");break}}},$=N.includes("&");if($){let y=N.split("&");for(let O of y)j(O)}else j(N);if(this.media.type&&(_=this.media.type),R.length&&(_=R.join(" and ")),_)P="media";else if(!$){this.theme=N;continue}}_&&(this.at[P]=(P in this.at?this.at[P]+" and ":"")+_.replace(/\|/g," "))}}let ne=(A,N)=>{let P,_=(j,$,y)=>{let O="";this.direction&&(O+="[dir="+this.direction+"] ");let T=this.prefixSelectors.map(I=>I+O),M=(I,X)=>T.map(H=>(I&&u!=="media"?u==="host"?`:host(.${I}) `:`.${I} `:"")+(m?m+" ":"")+H).reduce((H,se)=>(H.push(y.reduce((ie,J)=>(ie.push(se+"."+le(X)+J),ie),[]).join(",")),H),[]).join(","),F=M($,t)+(E?E.reduce((I,X)=>I+","+M(this.theme??(d||K?$:""),X),""):"")+"{"+j+"}";for(let I of Object.keys(this.at).sort((X,H)=>H==="supports"?-1:1))F="@"+I+(I.includes(" ")?"":" ")+this.at[I]+"{"+F+"}";return $&&u==="media"&&(F=`@media(prefers-color-scheme:${$}){`+F+"}"),F},k=[];if(D){let j=[this.theme??A,""],$,y=!1;for(let O of D)if(typeof O=="string")k.push(O);else{let T=O.value;if(O.unit)T+=O.unit;else if(d&&r&&i){let M=!1;T=T.replace(new RegExp(`(^|,| |\\()((?:${i.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(F,I,X,H)=>{let se=r[X];if(se){let ie,J;for(let ee of j)if(ie=se[ee]){J=ee;break}if(ie){M=!N||J===A,$||($=M);let ee=ie;if(H){let q=H.endsWith("%")?parseFloat(H)/100:+H;q=isNaN(q)?1:Math.min(Math.max(q,0),1),ee+=Math.round(q*255).toString(16).toUpperCase().padStart(2,"0")}return I+ee}else y=!0}return F})}k.push(T)}if(N&&(y||($===void 0?A:!$)))return;if(P=k.reduce((O,T,M)=>O+T+(T===","||D[M+1]===","||M===D.length-1?"":" "),""),p&&(P=p.call(this,P,this.css.config)),d&&P==="current"&&(P="currentColor"),v){let O,T;if(D.length===1){let M=D[0];typeof M=="object"&&(O=M.value,T=M.unit)}W=v.call(this,T?O:P,T||"")}else W={[f]:P}}let R={};for(let j in W){let $=(T,M)=>{if(z&&(M.startsWith("animation")||M.startsWith("animation-name"))){let I=M.split(":")[1].split("!important")[0].split(" ").filter(X=>X in this.css.animations&&(!this.animationNames||!this.animationNames.includes(X)));I.length&&(this.animationNames||(this.animationNames=[]),this.animationNames.push(...I))}let F=M+((this.important||h)&&!M.endsWith("!important")?"!important":"");T in R?R[T].push(F):R[T]=[F]},y=j+":",O=W[j];if(typeof O=="object")if(Array.isArray(O))for(let T of O)$(A,y+T.toString());else{K=!0;for(let T in O)$(T,y+O[T])}else $(A,y+O.toString())}for(let j of Object.values(this.vendorSuffixSelectors))for(let $ in R)this.natives.push({text:_(R[$].join(";"),$,j),theme:$})};if(this.theme)ne(this.theme,!1);else if(d)for(let A of c)ne(A,!0);else ne("",!1)}at={};priority=-1;natives=[];animationNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(t=>t.text).join("")}resolveValue(t,n){return Number.isNaN(+t)?t:t/(n==="rem"||n==="em"?this.css.config.rootSize:1)+n}analyzeUnitValue(t,n){let s=n??this.config.unit;if(s){let C="",o=t.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(t.includes("/")){let[d,f]=t.split("/");return{value:+d/+f*100+"%",unit:C}}else{let d=+o[1];return C=o[3]||"",C||((s==="rem"||s==="em")&&(d=d/this.css.config.rootSize),C=s||""),{value:d,unit:C}}}}};var Pe={"4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Re=Pe;function ce(e){e.startsWith("#")&&(e=e.slice(1));let t=e.match(/.{1,2}/g);return[parseInt(t[0],16),parseInt(t[1],16),parseInt(t[2],16)]}function me(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}function Y(e){typeof e=="string"&&(e={"":e});let t=""in e,n=!1;for(let s in e)if(s&&+s>=100){n=!0;break}if(!n&&(!t||Object.keys(e).length>1)){let s=0,C="0"in e?ce(e[0]):[0,0,0],o,d,f=[],b=()=>{let p=o-s,v=d.map((a,m)=>(a-C[m])/p);for(let a of f){let m=a-s,h=C.map((g,u)=>Math.round(g+v[u]*m));e[a]="#"+me.call(this,...h)}};for(let p=1;p<100;p++)p in e?(f.length?(o=p,d=ce(e[p]),b(),f.length=0,C=d):C=ce(e[p]),s=p):f.push(p);f.length&&(o=100,d="100"in e?ce(e[100]):[255,255,255],b())}return t||(e[""]=e[n?"500":"50"]),e}var ze={black:"#000000",white:"#ffffff",slate:Y({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:Y({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:Y({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:Y({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:Y({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:Y({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:Y({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:Y({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:Y({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:Y({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:Y({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:Y({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:Y({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:Y({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:Y({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:Y({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:Y({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:Y({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:Y({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:Y({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})},ye=ze;var Ie={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child(",":only":":only-child"},we=Ie;var Le={square:{aspectRatio:"1/1"},video:{aspectRatio:"16/9"},rounded:{borderRadius:"1e9em"},round:{borderRadius:"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{fontStyle:"italic"},oblique:{fontStyle:"oblique"},isolate:{isolation:"isolate"},overflowed:{overflow:"visible"},untouchable:{pointerEvents:"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{maxWidth:"100vw"},"max-vh":{maxHeight:"100vh"},"min-vw":{minWidth:"100vw"},"min-vh":{minHeight:"100vh"},"center-content":{justifyContent:"center",alignItems:"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",borderWidth:"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,marginLeft:"auto",marginRight:"auto"},middle:{top:0,bottom:0,marginTop:"auto",marginBottom:"auto"},"break-spaces":{whiteSpace:"break-spaces"},"break-word":{overflowWrap:"break-word",overflow:"hidden"},"gradient-text":{WebkitTextFillColor:"transparent",WebkitBackgroundClip:"text",backgroundClip:"text"},fit:{width:"fit-content",height:"fit-content"}},Se=Le;var De={fade:{"0%":{opacity:0},to:{opacity:1}},flash:{"0%,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},to:{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,to":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(.8,0,1,1)"},"50%":{transform:"translateY(0)",animationTimingFunction:"cubic-bezier(0,0,.2,1)"}},ping:{"75%,to":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},to:{transform:"none"}},rotate:{"0%":{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{"0%":{transform:"scale(0)"},to:{transform:"none"}}},ke=De;var Ve={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(e){let t=0;for(;t<e.length&&!(e[t]==="{"&&e[t-1]!=="\\");t++);return[e.slice(t),e.slice(0,t)]},declare(e){let t={},n=(p,v)=>{let a=v.indexOf(":");if(a!==-1){p in t||(t[p]={});let m=t[p],h=v.slice(0,a);h in m||(m[h]=v.slice(a+1))}},s=p=>{let v=(a,m)=>{let h=m.slice(le(p.className).length).match(/\{(.*)\}/)[1].split(";");for(let g of h)n(a,g)};if(this.theme){let a=p.natives.find(m=>m.theme===this.theme)??p.natives.find(m=>!m.theme);a&&v(this.theme,a.text)}else for(let a of p.natives)v(a.theme,a.text);if(p.animationNames){this.animationNames||(this.animationNames=[]);for(let a of p.animationNames)this.animationNames.includes(a)||this.animationNames.push(a)}},C=[],o="",d=()=>{o&&(C.push(o.replace(/ /g,"|")),o="")},f=1;(function p(v){for(;f<e.length;f++){let a=e[f];if(!v){if(a===";"){d();continue}if(a==="}")break}if(o+=a,v===a){if(v==="'"||v==='"'){let m=0;for(let h=o.length-2;o[h]==="\\";h--)m++;if(m%2)continue}break}else a in ae&&v!=="'"&&v!=='"'&&(f++,p(ae[a]))}})(void 0),d();for(let p of C){let v=this.css.create(p);if(Array.isArray(v))if(v.length)for(let a of v)s(a);else n(this.theme??"",p);else s(v)}let b={};for(let p in t)for(let[v,a]of Object.entries(t[p]))v in b?b[v][p]=a:b[v]={[p]:a};return b}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(e){return{["--"+this.prefix.slice(1,-1)]:e}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(e){switch(e){case"subpixel-antialiased":return{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"};case"antialiased":return{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}}}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},marginLeft:{match:"^ml:.",native:!0,unit:"rem"},marginRight:{match:"^mr:.",native:!0,unit:"rem"},marginTop:{match:"^mt:.",native:!0,unit:"rem"},marginBottom:{match:"^mb:.",native:!0,unit:"rem"},marginX:{match:"^(?:mx|margin-x):.",unit:"rem",order:-.5,declare(e,t){return{"margin-left":e+t,"margin-right":e+t}}},marginY:{match:"^(?:my|margin-y):.",unit:"rem",order:-.5,declare(e,t){return{"margin-top":e+t,"margin-bottom":e+t}}},margin:{match:"^m:.",native:!0,unit:"rem",order:-1},paddingLeft:{match:"^pl:.",native:!0,unit:"rem"},paddingRight:{match:"^pr:.",native:!0,unit:"rem"},paddingTop:{match:"^pt:.",native:!0,unit:"rem"},paddingBottom:{match:"^pb:.",native:!0,unit:"rem"},paddingX:{match:"^(?:px|padding-x):.",unit:"rem",order:-.5,declare(e,t){return{"padding-left":e+t,"padding-right":e+t}}},paddingY:{match:"^(?:py|padding-y):.",unit:"rem",order:-.5,declare(e,t){return{"padding-top":e+t,"padding-bottom":e+t}}},padding:{match:"^p:.",native:!0,unit:"rem",order:-1},flexBasis:{values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},height:{match:"^h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e]},declare(e){let[t,n]=e.split(" x ");return{width:t,height:n}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,n]=e.split(" x ");return{"min-width":t,"min-height":n}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(e){return[e.slice(4)]},declare(e){let[t,n]=e.split(" x ");return{"max-width":t,"max-height":n}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},top:{native:!0,unit:"rem"},bottom:{native:!0,unit:"rem"},left:{native:!0,unit:"rem"},right:{native:!0,unit:"rem"},inset:{native:!0,unit:"rem",order:-1},lines:{match:"^lines:.",declare(e,t){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":e+t}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:{full:"100%",fit:"fit-content",max:"max-content",min:"min-content","4xs":360,"3xs":480,"2xs":600,xs:768,sm:834,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560}},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflowX:{native:!0,declare(e,t){return e==="overlay"?{"overflow-x":["auto",e]}:{"overflow-x":e}}},overflowY:{native:!0,declare(e,t){return e==="overlay"?{"overflow-y":["auto",e]}:{"overflow-y":e}}},overflow:{native:!0,order:-1,declare(e,t){return e==="overlay"?{overflow:["auto",e]}:{overflow:e}}},overscrollBehaviorX:{native:!0},overscrollBehaviorY:{native:!0},overscrollBehavior:{native:!0,order:-1},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{native:!0,declare(e,t){return{"user-drag":e+t,"-webkit-user-drag":e+t}}},userSelect:{native:!0,declare(e,t){return{"user-select":e+t,"-webkit-user-select":e+t}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(e,t){return{"font-size":e+t,"line-height":t==="em"?e+.875+t:`calc(${e}${t} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-fill-color":e+t}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(e,t){return{"-webkit-text-stroke-width":e+t}}},textStrokeColor:{match:"^text-stroke:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"-webkit-text-stroke-color":e+t}}},textStroke:{unit:"rem",native:!0,declare(e,t){return{"-webkit-text-stroke":e+t}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0,analyze(e){return[e.startsWith("transform")?e.slice(10):e]}},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{match:"^~[^!*>+~:[@_]+\\|",native:!0,analyze(e){if(e.startsWith("~"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0,values:{alt:"alternate","alt-reverse":"alternate-reverse"}},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill:.",native:!0},animationIterationCount:{match:"^@iteration:.",native:!0},animationName:{match:"^@name:.",native:!0},animationPlayState:{match:"^@play:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{match:"^@[^!*>+~:[@_]+\\|",native:!0,order:-1,analyze(e){if(e.startsWith("@"))return[e.slice(1)];{let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderTopColor:{match:"^b(?:t|order-top(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderBottomColor:{match:"^b(?:b|order-bottom(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderLeftColor:{match:"^b(?:l|order-left(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderRightColor:{match:"^b(?:r|order-right(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},borderXColor:{match:"^b(?:x|order-x(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-left-color":e+t,"border-right-color":e+t}}},borderYColor:{match:"^b(?:y|order-y(?:-color)?):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",order:-.5,colored:!0,values:{current:"currentColor"},declare(e,t){return{"border-top-color":e+t,"border-bottom-color":e+t}}},borderColor:{match:"^b(?:order)?(?:-color)?:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,order:-1,colored:!0,values:{current:"currentColor"}},borderTopLeftRadius:{match:"^r(?:tl|lt):.",unit:"rem",native:!0},borderTopRightRadius:{match:"^r(?:tr|rt):.",unit:"rem",native:!0},borderBottomLeftRadius:{match:"^r(?:bl|lb):.",unit:"rem",native:!0},borderBottomRightRadius:{match:"^r(?:br|rb):.",unit:"rem",native:!0},borderTopRadius:{match:"^rt:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-top-right-radius":e+t}}},borderBottomRadius:{match:"^rb:.",unit:"rem",order:-.5,declare(e,t){return{"border-bottom-left-radius":e+t,"border-bottom-right-radius":e+t}}},borderLeftRadius:{match:"^rl:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-left-radius":e+t,"border-bottom-left-radius":e+t}}},borderRightRadius:{match:"^rr:.",unit:"rem",order:-.5,declare(e,t){return{"border-top-right-radius":e+t,"border-bottom-right-radius":e+t}}},borderRadius:{match:"^r:.",unit:"rem",native:!0,order:-1},borderTopStyle:{match:"^b(?:t|order-top(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderBottomStyle:{match:"^b(?:b|order-bottom(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderLeftStyle:{match:"^b(?:l|order-left(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderRightStyle:{match:"^b(?:r|order-right(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},borderXStyle:{match:"^b(?:x|order-x(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-left-style":e+t,"border-right-style":e+t}}},borderYStyle:{match:"^b(?:y|order-y(?:-style)?):(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",order:-.5,declare(e,t){return{"border-top-style":e+t,"border-bottom-style":e+t}}},borderStyle:{match:"^b(?:order)?(?:-style)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0,order:-1},borderTopWidth:{match:"^b(?:t|order-top(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderBottomWidth:{match:"^b(?:b|order-bottom(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderLeftWidth:{match:"^b(?:l|order-left(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderRightWidth:{match:"^b(?:r|order-right(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderXWidth:{match:"^b(?:x|order-x(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-left-width":e+t,"border-right-width":e+t}}},borderYWidth:{match:"^b(?:y|order-y(?:-width)?):(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",order:-.5,declare(e,t){return{"border-top-width":e+t,"border-bottom-width":e+t}}},borderWidth:{match:"^b(?:order)?(?:-width)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0,order:-1},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0,order:-1},borderTop:{match:"^bt:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderBottom:{match:"^bb:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderLeft:{match:"^bl:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderRight:{match:"^br:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},borderX:{match:"^(?:bx|border-x):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-left":e,"border-right":e}}},borderY:{match:"^(?:by|border-y):.",unit:"rem",colored:!0,order:-.5,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},declare(e){return{"border-top":e,"border-bottom":e}}},border:{match:"^b:.",native:!0,unit:"rem",colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e},order:-2},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(e,t){return{"-webkit-background-clip":e+t,"background-clip":e+t}},values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box"}},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)|gradient\\(.*\\))(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"},analyze(e){if(e.startsWith("gradient"))return["linear-"+e];let t=e.indexOf(":");return this.prefix=e.slice(0,t+1),[e.slice(t+1)]}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(e,t){return{"backdrop-filter":e+t,"-webkit-backdrop-filter":e+t}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridColumns:{match:"^grid-cols:.",declare(e,t){return{display:"grid","grid-template-columns":"repeat("+e+t+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(e){return this.prefix.slice(-5,-1)==="span"&&e!=="auto"?"span "+e+"/span "+e:e}},gridRows:{match:"^grid-rows:.",declare(e,t){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+e+t+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:{min:"min-content",max:"max-content"}},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:{min:"min-content",max:"max-content"},native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplateRows:{native:!0,unit:"rem",values:{min:"min-content",max:"max-content"}},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},columnGap:{match:"^gap-x:.",unit:"rem",native:!0},rowGap:{match:"^gap-y:.",unit:"rem",native:!0},gap:{unit:"rem",native:!0,order:-1},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(e,t){return{"box-decoration-break":e+t,"-webkit-box-decoration-break":e+t}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"},transform(e){return/none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(e)||(e+=" solid"),e}},accentColor:{match:"^accent:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:#|(?:rgb|hsl)\\(.*\\)|transparent|currentColor|inherit|$values|$colors)[^|]*$",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMarginLeft:{match:"^scroll-ml:.",native:!0,unit:"rem"},scrollMarginRight:{match:"^scroll-mr:.",native:!0,unit:"rem"},scrollMarginTop:{match:"^scroll-mt:.",native:!0,unit:"rem"},scrollMarginBottom:{match:"^scroll-mb:.",native:!0,unit:"rem"},scrollMarginX:{match:"^(?:scroll-margin-x|scroll-mx):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-left":e+t,"scroll-margin-right":e+t}}},scrollMarginY:{match:"^(?:scroll-margin-y|scroll-my):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-margin-top":e+t,"scroll-margin-bottom":e+t}}},scrollMargin:{match:"^scroll-m:.",native:!0,unit:"rem",order:-1},scrollPaddingLeft:{match:"^scroll-pl:.",native:!0,unit:"rem"},scrollPaddingRight:{match:"^scroll-pr:.",native:!0,unit:"rem"},scrollPaddingTop:{match:"^scroll-pt:.",native:!0,unit:"rem"},scrollPaddingBottom:{match:"^scroll-pb:.",native:!0,unit:"rem"},scrollPaddingX:{match:"^(?:scroll-padding-x|scroll-px):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-left":e+t,"scroll-padding-right":e+t}}},scrollPaddingY:{match:"^(?:scroll-padding-y|scroll-py):.",unit:"rem",order:-.5,declare(e,t){return{"scroll-padding-top":e+t,"scroll-padding-bottom":e+t}}},scrollPadding:{match:"^scroll-p:.",native:!0,unit:"rem",order:-1},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{content:"content-box",border:"border-box",padding:"padding-box",margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(e,t){return{"mask-image":e+t,"-webkit-mask-image":e+t}}}},Ye=Ve,$e=Ye;var _e={$:{name:"var",transform(e){return"--"+e}},calc:{transform(e){let t=this.values,n=this.css.globalValues,s=this.css.config.functions,C=this,o=0,d="",f="";return function b(p,v){let a=!1,m=(h,g=!1,u=!1)=>{if(h!=="("&&(t&&f in t?f=t[f].toString():n&&f in n&&(f=n[f].toString())),f&&!a&&!v){let c=C.analyzeUnitValue(f,s.calc.unit);c&&(f=c.value+c.unit)}d+=f+(g&&e[o-1]!==" "?" ":"")+h+(u&&e[o+1]!==" "?" ":""),f="",a=!1};for(;o<e.length;o++){let h=e[o];if(h==="("){let g=f,u=a,c=d.length;if(m(h),o++,b(g,u||v),g!=="calc"){let i=s[g];if(i){let r=d.slice(c+2,d.length-1);d=d.slice(0,c-g.length+1)+(i.name??g)+"("+(i.transform?.(r)??r)+")"}}}else if(h===")"){m(h);break}else if(h===",")m(h,!1,!0);else if(h===" ")m(h);else{let g=e[o-1];switch(h){case"+":!f&&g!==")"?f+=h:m(h,!0,!0);break;case"-":p==="var"||!f&&g!==")"?f+=h:m(h,!0,!0);break;case"*":m(h,!0,!0);break;case"/":m(h,!0,!0),a=!0;break;default:f+=h;break}}}o>=e.length-1&&m("")}("",!1),d}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""},repeat:{unit:""}},Be=_e;var Oe=16;var Xe="",Te=Xe;var je=!1;var Me=!1;var He="class",Ee=He;var ue={viewports:Re,colors:ye,rootSize:Oe,scope:Te,selectors:we,semantics:Se,rules:$e,override:je,important:Me,functions:Be,animations:ke,themeDriver:Ee};var Ne=[",",".","#","[","!","*",">","+","~",":","@"];function ge(e){return e.replace(/(^|[a-z0-9]+)([A-Z])/g,"$1-$2").toLowerCase()}var he="_CNO_",fe=class e{constructor(t=ue){this.config=t;t?.override?this.config=this.getExtendedConfig(this.config):this.config=this.getExtendedConfig(ue,t),this.cache(),e.instances.push(this)}static root;static config=ue;static instances=[];static refresh=t=>{for(let n of this.instances)n.refresh(t)};rules=[];ruleBy={};countBy={};observing=!1;observer;colorByThemeByColorName;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.classesBy={},this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.viewports={},this.mediaQueries={},this.matches={},this.keyframesMap={},this.animations={};let{semantics:t,classes:n,selectors:s,colors:C,values:o,viewports:d,mediaQueries:f,rules:b,animations:p}=this.config;function v(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function a(i,r,l="",x={}){let w=E=>E?(l?l+"-":"")+E:l,B=Object.entries(i),S=[],z=[];for(let E of B){let W=E[1];(typeof W=="object"&&!Array.isArray(W)?S:z).push(E)}for(let[E,W]of S)a(W,r,w(E),x);if(r&&l)z.length&&(x[l]=z.reduce((E,[W,K])=>(E[W]=K,E),{}));else for(let[E,W]of z)x[w(E)]=W;return x}function m(i){for(let[r,l]of Object.entries(i))/^[0-9]+x$/.test(r)&&typeof l=="number"&&(i["-"+r]=l*-1);return i}if(t)for(let[i,r]of Object.entries(a(t,!0))){let l={};for(let x of Object.keys(r))l[ge(x)]=r[x];this.semantics.push([new RegExp("^"+v(i)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[i,l]])}if(s)for(let[i,r]of Object.entries(a(s,!1))){let l=new RegExp(v(i)+"(?![a-z-])");for(let x of Array.isArray(r)?r:[r]){let w=x.match(/^::-[a-z]+-/m)?.[0]??"",B=this.selectors[w];B||(B=this.selectors[w]=[]);let S=B.find(([z])=>z===l);S||(S=[l,[]],B.push(S)),S[1].push(x)}}if(o&&(this.globalValues=m(a(o,!1))),d&&(this.viewports=a(d,!1)),f&&(this.mediaQueries=a(f,!1)),p)for(let i in p){let r=this.animations[i]={},l=p[i];for(let x in l){let w=r[x]={},B=l[x];for(let S in B)w[ge(S)]=B[S]}}let h=n?a(n,!1):{},g=Object.keys(h),u=i=>{if(Object.prototype.hasOwnProperty.call(this.classes,i))return;let r=this.classes[i]=[],l=h[i];if(!l)return;let x=l.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let w of x){let B=S=>{if(Object.prototype.hasOwnProperty.call(this.classesBy,S)){let z=this.classesBy[S];z.includes(i)||z.push(i)}else this.classesBy[S]=[i];r.includes(S)||r.push(S)};if(g.includes(w)){u(w);for(let S of this.classes[w])B(S)}else B(w)}};for(let i of g)u(i);this.colorNames=Object.keys(C);let c=Object.entries(this.colorByThemeByColorName).reduce((i,[r,l])=>(i[r]=()=>{let x=(S,z)=>z?S.slice(0,7)+Math.round(255*+z).toString(16):S,w={};for(let S in l){let z=l[S].split(" ");for(let E of z){let W=E.lastIndexOf("@"),K=W!==-1?E.slice(0,W):E,te=W!==-1?E.slice(W+1):"",Z=S.slice(1)||te;if(E.startsWith("#"))w[Z]=K;else if(E.startsWith(he)){let[D,re]=K.slice(he.length).split("/");if(Object.prototype.hasOwnProperty.call(c,D)){let G=c[D];delete c[D],G()}let Q=Object.prototype.hasOwnProperty.call(this.colorThemesMap,D)&&this.colorThemesMap[D];if(Q)for(let G in Q){let ne=Q[G];w[G]=x(ne,re)}else console.error(`"${r}${S}: ${E}" is an invalid ".colors" config`)}else{let[D,re]=K.split("@"),[Q,G]=D.split("/");if(Object.prototype.hasOwnProperty.call(c,Q)){let A=c[Q];delete c[Q],A()}let ne=Object.prototype.hasOwnProperty.call(this.colorThemesMap,Q)&&this.colorThemesMap[Q][(S?te:re)||""];ne?w[Z]=x(ne,G):console.error(`"${r}${S}: ${E}" is an invalid ".colors" config`)}}}let B=Object.keys(w);if(B.length){this.colorThemesMap[r]=w;for(let S of B)S&&!this.themeNames.includes(S)&&this.themeNames.push(S)}delete c[r]},i),{});for(let i of Object.keys(c))c[i]?.();if(b)for(let i in b){let r=b[i],{native:l,values:x,colored:w}=r,B=r.match;if(r.id=i,r.native=l===!0?i.replace(/(?!^)[A-Z]/g,S=>"-"+S).toLowerCase():void 0,x&&(this.values[i]=m(a(x,!1))),B){let S=Object.keys(this.values[i]??{});B.includes("$values")&&(B=S.length?B.replace(/\$values/,S.join("|")):B.replace(/(?:\|)?\$values/,"")),w&&B.includes("$colors")&&(B=this.colorNames.length?B.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):B.replace(/(?:\|)?\$colors/,"")),this.matches[i]=new RegExp(B)}}}observe(t,n={subtree:!0,childList:!0}){if(typeof window<"u"){if(t||(t=document),this.root===t)return this;this.root=t;let s=t===document;s&&(e.root=this),this.host=s?document.documentElement:this.root.host;let C=s?document.head:t,o=s?document.styleSheets:t.styleSheets;for(let f of o){let{ownerNode:b}=f;if(b&&b.id==="master"){this.style=b;break}}if(this.style)for(let f=0;f<this.style.sheet.cssRules.length;f++){let b=this.style.sheet.cssRules[f];if(b.constructor.name==="CSSKeyframesRule")continue;let p=a=>{if(a.selectorText){let h=a.selectorText.split(", ")[0].split(" ");for(let g=0;g<h.length;g++){let u=h[g];if(u[0]==="."){let c=u.slice(1),i="";for(let r=0;r<c.length;r++){let l=c[r],x=c[r+1];if(l==="\\"){if(r++,x!=="\\"){i+=x;continue}}else if(Ne.includes(l))break;i+=l}if(!Object.prototype.hasOwnProperty.call(this.ruleBy,i)&&!Object.prototype.hasOwnProperty.call(this.classes,i)){let r=this.create(i)[0];if(r)return r}}}}else if(a.cssRules)for(let m=0;m<a.cssRules.length;m++){let h=p(a.cssRules[m]);if(h)return h}},v=p(b);if(v){this.rules.push(v),this.ruleBy[v.className]=v;for(let a=0;a<v.natives.length;a++)v.natives[a].cssRule=this.style.sheet.cssRules[f+a];f+=v.natives.length-1,v.config.insert?.call(v)}}else this.style=document.createElement("style"),this.style.id="master",C.append(this.style);let d=f=>{f.forEach(b=>{Object.prototype.hasOwnProperty.call(this.countBy,b)?this.countBy[b]++:(this.countBy[b]=1,this.insert(b))})};d(this.host.classList),n.subtree&&this.host.querySelectorAll("[class]").forEach(f=>d(f.classList)),this.observer=new MutationObserver(f=>{let b={},p=[],v=[],a=[],m=(c,i)=>{i?c.classList.forEach(g):c.classList.forEach(h);let r=c.children;for(let l=0;l<r.length;l++){let x=r[l];x.classList&&(v.push(x),m(x,i))}},h=c=>{Object.prototype.hasOwnProperty.call(b,c)?b[c]++:b[c]=1},g=c=>{Object.prototype.hasOwnProperty.call(b,c)?b[c]--:Object.prototype.hasOwnProperty.call(this.countBy,c)&&(b[c]=-1)},u=(c,i)=>{for(let r=0;r<c.length;r++){let l=c[r];l.classList&&!v.includes(l)&&!a.includes(l)&&(l.isConnected!==i?(v.push(l),m(l,i)):a.push(l))}};for(let c=0;c<f.length;c++){let i=f[c],{addedNodes:r,removedNodes:l,type:x,target:w}=i;if(x==="attributes"){if(p.find(B=>B.target===w))continue;p.push(i)}else u(r,!1),(!w.isConnected||!v.includes(w))&&u(l,!0)}if(!(!p.length&&!Object.keys(b).length)){for(let{oldValue:c,target:i}of p){let r=v.includes(i),l=i.classList,x=c?c.split(" "):[];if(r){if(i.isConnected)continue;for(let w of x)l.contains(w)||g(w)}else if(i.isConnected){l.forEach(w=>{x.includes(w)||h(w)});for(let w of x)l.contains(w)||g(w)}}for(let c in b){let i=b[c],r=(this.countBy[c]||0)+i;r===0?(delete this.countBy[c],this.delete(c)):(Object.prototype.hasOwnProperty.call(this.countBy,c)||this.insert(c),this.countBy[c]=r)}}}),this.observer.observe(t,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}disconnect(){this.observer&&(this.observer.disconnect(),this.observer=null),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let t=this.style?.sheet;if(t?.cssRules)for(let n=t.cssRules.length-1;n>=0;n--)t.deleteRule(n);this.style?.remove(),this.style=null,this.root=null}match(t){for(let n in this.config.rules){let s=this.config.rules[n],C=this.matches[n],{native:o}=s;if(C&&C.test(t))return{origin:"match",config:s};if(o&&t.startsWith(o+":"))return{origin:"match",config:s}}for(let n of this.semantics)if(t.match(n[0]))return{origin:"semantics",value:n[1]}}create(t){let n=s=>{if(Object.prototype.hasOwnProperty.call(this.ruleBy,s))return this.ruleBy[s];let C=this.match(s);if(C)return new de(s,C,this)};return(Object.prototype.hasOwnProperty.call(this.classes,t)?this.classes[t].map(s=>n(s)):[n(t)]).filter(s=>s&&s.text)}refresh(t){if(t?.override?this.config=this.getExtendedConfig(t):this.config=this.getExtendedConfig(ue,t),this.cache(),!this.style)return;let n=document.createElement("style");n.id="master",this.style.replaceWith(n),this.style=n,this.rules.length=0,this.ruleBy={};for(let s in this.countBy)this.insert(s)}destroy(){let t=e.instances;this.disconnect(),t.splice(t.indexOf(this),1)}delete(t){let n=this.style?.sheet,s=C=>{let o=this.ruleBy[C];if(!(!o||Object.prototype.hasOwnProperty.call(this.classesBy,C)&&this.classesBy[C].some(d=>Object.prototype.hasOwnProperty.call(this.countBy,d)))){if(n&&o.natives.length){let d=o.natives[0];for(let f=0;f<n.cssRules.length;f++)if(n.cssRules[f]===d.cssRule){for(let p=0;p<o.natives.length;p++)n.deleteRule(f);break}}if(this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[C],o.animationNames){let d=this.rules[0];for(let f of o.animationNames){let b=this.keyframesMap[f];if(!--b.count){let p=d.natives.indexOf(b.native);this.style.sheet.deleteRule(p),d.natives.splice(p,1),delete this.keyframesMap[f]}}d.natives.length||this.rules.splice(0,1)}o.config.delete?.call(o,C)}};if(Object.prototype.hasOwnProperty.call(this.classes,t)){for(let C of this.classes[t])Object.prototype.hasOwnProperty.call(this.countBy,C)||s(C);delete this.ruleBy[t]}else s(t)}insert(t){let n=this.create(t);return n.length?(this.insertRules(n),!0):!1}insertRules(t){for(let n of t){if(this.ruleBy[n.className])continue;let s,C=Object.keys(this.keyframesMap).length,o=this.rules.length-1,{media:d,order:f,priority:b,hasWhere:p,className:v}=n,a=(g,u,c)=>{let i=g;for(;i<=o;i++){let r=this.rules[i];if(u?.(r))return c?-1:i-1;if(c?.(r))return i}return c?-1:i-1},m,h;if(d){let g=this.rules.findIndex(u=>u.media);if(g===-1)s=o+1;else{let{"max-width":u,"min-width":c}=d.features;if(u||c){let i=this.rules.findIndex(r=>r.media?.features["max-width"]||r.media?.features["min-width"]);if(i===-1)s=o+1;else if(u&&c){if(b===-1?(m=a(i,r=>r.priority!==-1,r=>r.media.features["max-width"]&&r.media.features["min-width"]),h=a(i,r=>r.priority!==-1)):(m=a(i,void 0,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=o),m!==-1){let r=u.value-c.value,l=h,x=m;for(m=void 0;l>=x;l--){let{"max-width":w,"min-width":B}=this.rules[l].media.features,S=w.value-B.value;if(S<r)h=l-1;else if(S===r)m=l;else break}}if(m!==-1){let r=u.value-c.value;for(let l=h;l>=m;l--){let{"max-width":x,"min-width":w}=this.rules[l].media.features,B=x.value-w.value;if(B<r)h=l-1;else if(B>r){m=l+1;break}}}}else if(c){if(b===-1?(m=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]),h=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]||r.priority!==-1)):(m=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1,r=>!r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1),h=a(i,r=>r.media.features["max-width"]&&r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let l=this.rules[r].media.features["min-width"].value;if(l>c.value)h=r-1;else if(l<c.value){m=r+1;break}}}else if(b===-1?(m=a(i,r=>r.media.features["min-width"]||r.priority!==-1,r=>r.media.features["max-width"]),h=a(i,r=>r.media.features["min-width"]||r.priority!==-1)):(m=a(i,r=>r.media.features["min-width"]&&r.priority!==-1,r=>r.media.features["max-width"]&&r.priority!==-1),h=a(i,r=>r.media.features["min-width"]&&r.priority!==-1)),m!==-1)for(let r=h;r>=m;r--){let l=this.rules[r].media.features["max-width"].value;if(l<u.value)h=r-1;else if(l>u.value){m=r+1;break}}}else b===-1?(m=g,h=a(g,i=>i.media?.features["max-width"]||i.media?.features["min-width"]||i.priority!==-1)):(m=a(g,i=>i.media?.features["max-width"]||i.media?.features["min-width"],i=>i.priority!==-1),h=a(g,i=>i.media?.features["max-width"]||i.media?.features["min-width"]))}}else{let g=C?1:0;b===-1?(m=g,h=a(g,u=>u.media||u.priority!==-1)):(m=a(g,u=>u.media,u=>u.priority!==-1),h=a(g,u=>u.media))}if(s===void 0)if(m===-1)s=h+1;else{if(b===-1)for(let g=m;g<=h;g++){let u=this.rules[g];if(!(!p&&u.hasWhere)&&(p&&!u.hasWhere||u.order>=f)){s=g;break}}else for(let g=m;g<=h;g++){let u=this.rules[g];if(!(!p&&u.hasWhere)){if(p&&!u.hasWhere){s=g;break}if(u.priority<b){s=g;break}else if(u.priority===b){if(u.order>=f){s=g;break}}else s=g+1}}s===void 0&&(s=h+1)}if(this.rules.splice(s,0,n),this.ruleBy[v]=n,this.style){let g=this.style.sheet,u=0,c=i=>{let r=this.rules[i];if(r){if(!r.natives.length)return c(i-1);let l=r.natives[r.natives.length-1].cssRule;for(let x=0;x<g.cssRules.length;x++)if(g.cssRules[x]===l){u=x+1;break}}};c(s-1);for(let i=0;i<n.natives.length;)try{let r=n.natives[i];g.insertRule(r.text,u),r.cssRule=g.cssRules[u++],i++}catch(r){console.error(r),n.natives.splice(i,1)}}if(n.animationNames){let g=this.style?.sheet;for(let u of n.animationNames)if(Object.prototype.hasOwnProperty.call(this.keyframesMap,u))this.keyframesMap[u].count++;else{let c={text:`@keyframes ${u}{`+Object.entries(this.animations[u]).map(([r,l])=>`${r}{${Object.entries(l).map(([x,w])=>x+":"+w).join(";")}}`).join("")+"}",theme:""},i;if(Object.keys(this.keyframesMap).length?(i=this.rules[0]).natives.push(c):this.rules.splice(0,0,i={natives:[c],get text(){return this.natives.map(r=>r.text).join("")}}),g){let r;for(let l=0;l<g.cssRules.length;l++){let x=g.cssRules[l];if(x.constructor.name!=="CSSKeyframesRule")break;if(x.name===u){r=x;break}}if(r)c.cssRule=r;else{let l=i.natives.length-1;g.insertRule(c.text,l),c.cssRule=g.cssRules[l]}}this.keyframesMap[u]={native:c,count:1}}}n.config.insert?.call(n)}}get text(){return this.rules.map(t=>t.text).join("")}getExtendedConfig(...t){this.colorByThemeByColorName={};let n=o=>{let d=oe({},o),f=b=>{for(let p in b){let v=b[p];typeof v=="object"&&!Array.isArray(v)?f(v):p&&(b[p]={"":v})}};if(d.classes?f(d.classes):d.classes={},d.viewports?f(d.viewports):d.viewports={},d.mediaQueries?f(d.mediaQueries):d.mediaQueries={},d.selectors?f(d.selectors):d.selectors={},d.values?f(d.values):d.values={},d.colors){let b=(p,v)=>{let a=(u,c,i)=>{Object.prototype.hasOwnProperty.call(this.colorByThemeByColorName,u)||(this.colorByThemeByColorName[u]={});let r=this.colorByThemeByColorName[u],l=r[""]?.includes(he),x=w=>w.replace(/^rgba?\( *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:\|| |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,(B,S,z,E,W)=>{let K="#"+me(+S,+z,+E);return W&&(K+=Math.round(255*+W).toString(16)),K});for(let[w,B]of c)if(B){let S=/(?:^| )(?:(rgba?\(.*?\).*?)|([^ ]+))(?= |$)/g,z;for(;(z=S.exec(B))!==null;){let E=z[0].trimStart(),W=E.lastIndexOf("@"),K=W!==-1?E.slice(0,W):E,te=W!==-1?E.slice(W):"",Z=w||te,D=i&&z[2]&&!z[2].startsWith("#")&&!te,re=z[1]?x(K):w?z[0]:K;if(l||D){Object.prototype.hasOwnProperty.call(r,"")||(r[""]="");for(let Q in r)Q&&(r[""]+=" "+r[Q],delete r[Q]);r[""]+=(r[""]?" ":"")+(D?he:"")+re+Z}else r[Z]=re;if(w)break}}else if(i){delete this.colorByThemeByColorName[u];return}else delete r[w];Object.keys(r).length||delete this.colorByThemeByColorName[u]},m=Object.entries(p),h=m.filter(([u])=>u===""||u.startsWith("@"));h.length&&a(v,h,!1);let g=m.filter(([u])=>u!==""&&!u.startsWith("@"));for(let[u,c]of g){let i=(v?v+"-":"")+u;typeof c=="string"?a(i,[["",c]],!0):b(c,i)}};b(d.colors,"")}return d},s=[];for(let o of t)(function d(f){if(f.extends?.length)for(let b of f.extends)d("config"in b?b.config:b);s.push(n(f))})(o);let C=s[0];for(let o=1;o<s.length;o++){let d=s[o];C=oe(C,d),Object.prototype.hasOwnProperty.call(d,"animations")&&Object.assign(C.animations,d.animations)}return C}};typeof window<"u"&&(window.MasterCSS=fe);function pe(e,t){return new fe(e).observe(t)}pe(window.masterCSSConfig);})();
|