@master/css 2.0.0-beta.28 → 2.0.0-beta.29
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/config/index.d.ts +6 -1
- package/dist/config/rules.d.ts +194 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +2 -2
- package/dist/rules/accent-color.d.ts +1 -1
- package/dist/rules/align-content.d.ts +1 -1
- package/dist/rules/align-items.d.ts +1 -1
- package/dist/rules/align-self.d.ts +1 -1
- package/dist/rules/animation-delay.d.ts +1 -1
- package/dist/rules/animation-direction.d.ts +1 -1
- package/dist/rules/animation-duration.d.ts +1 -1
- package/dist/rules/animation-fill-mode.d.ts +1 -1
- package/dist/rules/animation-iteration-count.d.ts +1 -1
- package/dist/rules/animation-name.d.ts +1 -1
- package/dist/rules/animation-play-state.d.ts +1 -1
- package/dist/rules/animation-timing-function.d.ts +1 -1
- package/dist/rules/animation.d.ts +1 -1
- package/dist/rules/appearance.d.ts +1 -1
- package/dist/rules/aspect-radio.d.ts +1 -1
- package/dist/rules/backdrop-filter.d.ts +1 -1
- package/dist/rules/background-attachment.d.ts +1 -1
- package/dist/rules/background-blend-mode.d.ts +1 -1
- package/dist/rules/background-clip.d.ts +1 -1
- package/dist/rules/background-color.d.ts +1 -1
- package/dist/rules/background-image.d.ts +1 -1
- package/dist/rules/background-origin.d.ts +1 -1
- package/dist/rules/background-position.d.ts +1 -1
- package/dist/rules/background-repeat.d.ts +1 -1
- package/dist/rules/background-size.d.ts +1 -1
- package/dist/rules/background.d.ts +1 -1
- package/dist/rules/border-collapse.d.ts +1 -1
- package/dist/rules/border-color.d.ts +1 -1
- package/dist/rules/border-image-outset.d.ts +1 -1
- package/dist/rules/border-image-repeat.d.ts +1 -1
- package/dist/rules/border-image-slice.d.ts +1 -1
- package/dist/rules/border-image-source.d.ts +1 -1
- package/dist/rules/border-image-width.d.ts +1 -1
- package/dist/rules/border-image.d.ts +1 -1
- package/dist/rules/border-radius.d.ts +1 -1
- package/dist/rules/border-spacing.d.ts +1 -1
- package/dist/rules/border-style.d.ts +1 -1
- package/dist/rules/border-width.d.ts +1 -1
- package/dist/rules/border.d.ts +1 -1
- package/dist/rules/box-decoration-break.d.ts +1 -1
- package/dist/rules/box-shadow.d.ts +1 -1
- package/dist/rules/box-sizing.d.ts +1 -1
- package/dist/rules/break-after.d.ts +1 -1
- package/dist/rules/break-before.d.ts +1 -1
- package/dist/rules/break-inside.d.ts +1 -1
- package/dist/rules/caret-color.d.ts +1 -1
- package/dist/rules/clear.d.ts +1 -1
- package/dist/rules/clip-path.d.ts +1 -1
- package/dist/rules/color.d.ts +1 -1
- package/dist/rules/column-span.d.ts +1 -1
- package/dist/rules/columns.d.ts +1 -1
- package/dist/rules/contain.d.ts +1 -1
- package/dist/rules/content.d.ts +1 -1
- package/dist/rules/counter-increment.d.ts +1 -1
- package/dist/rules/counter-reset.d.ts +1 -1
- package/dist/rules/cursor.d.ts +1 -1
- package/dist/rules/cx.d.ts +1 -1
- package/dist/rules/cy.d.ts +1 -1
- package/dist/rules/direction.d.ts +1 -1
- package/dist/rules/display.d.ts +1 -1
- package/dist/rules/fill.d.ts +1 -1
- package/dist/rules/filter.d.ts +1 -1
- package/dist/rules/flex-basis.d.ts +1 -1
- package/dist/rules/flex-direction.d.ts +1 -1
- package/dist/rules/flex-grow.d.ts +1 -1
- package/dist/rules/flex-shrink.d.ts +1 -1
- package/dist/rules/flex-wrap.d.ts +1 -1
- package/dist/rules/flex.d.ts +1 -1
- package/dist/rules/float.d.ts +1 -1
- package/dist/rules/font-family.d.ts +1 -1
- package/dist/rules/font-size.d.ts +1 -1
- package/dist/rules/font-smoothing.d.ts +1 -1
- package/dist/rules/font-style.d.ts +1 -1
- package/dist/rules/font-variant-numeric.d.ts +1 -1
- package/dist/rules/font-weight.d.ts +1 -1
- package/dist/rules/font.d.ts +1 -1
- package/dist/rules/gap.d.ts +1 -1
- package/dist/rules/grid-area.d.ts +1 -1
- package/dist/rules/grid-auto-columns.d.ts +1 -1
- package/dist/rules/grid-auto-flow.d.ts +1 -1
- package/dist/rules/grid-auto-rows.d.ts +1 -1
- package/dist/rules/grid-column-end.d.ts +1 -1
- package/dist/rules/grid-column-start.d.ts +1 -1
- package/dist/rules/grid-column.d.ts +1 -1
- package/dist/rules/grid-columns.d.ts +1 -1
- package/dist/rules/grid-row-end.d.ts +1 -1
- package/dist/rules/grid-row-start.d.ts +1 -1
- package/dist/rules/grid-row.d.ts +1 -1
- package/dist/rules/grid-rows.d.ts +1 -1
- package/dist/rules/grid-template-areas.d.ts +1 -1
- package/dist/rules/grid-template-columns.d.ts +1 -1
- package/dist/rules/grid-template-rows.d.ts +1 -1
- package/dist/rules/grid-template.d.ts +1 -1
- package/dist/rules/grid.d.ts +1 -1
- package/dist/rules/group.d.ts +1 -1
- package/dist/rules/height.d.ts +1 -1
- package/dist/rules/inset.d.ts +1 -1
- package/dist/rules/isolation.d.ts +1 -1
- package/dist/rules/justify-content.d.ts +1 -1
- package/dist/rules/justify-items.d.ts +1 -1
- package/dist/rules/justify-self.d.ts +1 -1
- package/dist/rules/letter-spacing.d.ts +1 -1
- package/dist/rules/line-clamp.d.ts +1 -1
- package/dist/rules/line-height.d.ts +1 -1
- package/dist/rules/lines.d.ts +1 -1
- package/dist/rules/list-style-image.d.ts +1 -1
- package/dist/rules/list-style-position.d.ts +1 -1
- package/dist/rules/list-style-type.d.ts +1 -1
- package/dist/rules/list-style.d.ts +1 -1
- package/dist/rules/margin.d.ts +1 -1
- package/dist/rules/mask-image.d.ts +1 -1
- package/dist/rules/max-height.d.ts +1 -1
- package/dist/rules/max-width.d.ts +1 -1
- package/dist/rules/min-height.d.ts +1 -1
- package/dist/rules/min-width.d.ts +1 -1
- package/dist/rules/mix-blend-mode.d.ts +1 -1
- package/dist/rules/object-fit.d.ts +1 -1
- package/dist/rules/object-position.d.ts +1 -1
- package/dist/rules/opacity.d.ts +1 -1
- package/dist/rules/order.d.ts +1 -1
- package/dist/rules/outline-color.d.ts +1 -1
- package/dist/rules/outline-offset.d.ts +1 -1
- package/dist/rules/outline-style.d.ts +1 -1
- package/dist/rules/outline-width.d.ts +1 -1
- package/dist/rules/outline.d.ts +1 -1
- package/dist/rules/overflow.d.ts +1 -1
- package/dist/rules/overscroll-behavior.d.ts +1 -1
- package/dist/rules/padding.d.ts +1 -1
- package/dist/rules/place-content.d.ts +1 -1
- package/dist/rules/place-items.d.ts +1 -1
- package/dist/rules/place-self.d.ts +1 -1
- package/dist/rules/placement.d.ts +1 -1
- package/dist/rules/pointer-events.d.ts +1 -1
- package/dist/rules/position.d.ts +1 -1
- package/dist/rules/quotes.d.ts +1 -1
- package/dist/rules/resize.d.ts +1 -1
- package/dist/rules/rx.d.ts +1 -1
- package/dist/rules/ry.d.ts +1 -1
- package/dist/rules/scroll-behavior.d.ts +1 -1
- package/dist/rules/scroll-margin.d.ts +1 -1
- package/dist/rules/scroll-padding.d.ts +1 -1
- package/dist/rules/scroll-snap-align.d.ts +1 -1
- package/dist/rules/scroll-snap-stop.d.ts +1 -1
- package/dist/rules/scroll-snap-type.d.ts +1 -1
- package/dist/rules/shape-image-threshold.d.ts +1 -1
- package/dist/rules/shape-margin.d.ts +1 -1
- package/dist/rules/shape-outside.d.ts +1 -1
- package/dist/rules/spacing.d.ts +1 -1
- package/dist/rules/stroke-dasharray.d.ts +1 -1
- package/dist/rules/stroke-dashoffset.d.ts +1 -1
- package/dist/rules/stroke-width.d.ts +1 -1
- package/dist/rules/stroke.d.ts +1 -1
- package/dist/rules/table-layout.d.ts +1 -1
- package/dist/rules/text-align.d.ts +1 -1
- package/dist/rules/text-decoration-color.d.ts +1 -1
- package/dist/rules/text-decoration-line.d.ts +1 -1
- package/dist/rules/text-decoration-style.d.ts +1 -1
- package/dist/rules/text-decoration-thickness.d.ts +1 -1
- package/dist/rules/text-decoration.d.ts +1 -1
- package/dist/rules/text-fill-color.d.ts +1 -1
- package/dist/rules/text-indent.d.ts +1 -1
- package/dist/rules/text-orientation.d.ts +1 -1
- package/dist/rules/text-overflow.d.ts +1 -1
- package/dist/rules/text-rendering.d.ts +1 -1
- package/dist/rules/text-shadow.d.ts +1 -1
- package/dist/rules/text-size.d.ts +1 -1
- package/dist/rules/text-stroke-color.d.ts +1 -1
- package/dist/rules/text-stroke-width.d.ts +1 -1
- package/dist/rules/text-stroke.d.ts +1 -1
- package/dist/rules/text-transform.d.ts +1 -1
- package/dist/rules/text-underline-offset.d.ts +1 -1
- package/dist/rules/touch-action.d.ts +1 -1
- package/dist/rules/transform-box.d.ts +1 -1
- package/dist/rules/transform-origin.d.ts +1 -1
- package/dist/rules/transform-style.d.ts +1 -1
- package/dist/rules/transform.d.ts +1 -1
- package/dist/rules/transition-delay.d.ts +1 -1
- package/dist/rules/transition-duration.d.ts +1 -1
- package/dist/rules/transition-property.d.ts +1 -1
- package/dist/rules/transition-timing-function.d.ts +1 -1
- package/dist/rules/transition.d.ts +1 -1
- package/dist/rules/user-drag.d.ts +1 -1
- package/dist/rules/user-select.d.ts +1 -1
- package/dist/rules/variable.d.ts +1 -1
- package/dist/rules/vertical-align.d.ts +1 -1
- package/dist/rules/visibility.d.ts +1 -1
- package/dist/rules/white-space.d.ts +1 -1
- package/dist/rules/width.d.ts +1 -1
- package/dist/rules/will-change.d.ts +1 -1
- package/dist/rules/word-break.d.ts +1 -1
- package/dist/rules/word-spacing.d.ts +1 -1
- package/dist/rules/writing-mode.d.ts +1 -1
- package/dist/rules/x.d.ts +1 -1
- package/dist/rules/y.d.ts +1 -1
- package/dist/rules/z-index.d.ts +1 -1
- package/package.json +1 -1
package/dist/config/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import DefaultRules from './rules';
|
|
1
2
|
import Rule from '../rule';
|
|
2
3
|
import MasterCSS from '../css';
|
|
3
4
|
declare const defaultConfig: Config;
|
|
@@ -9,7 +10,11 @@ export interface Config {
|
|
|
9
10
|
mediaQueries?: Record<string, string>;
|
|
10
11
|
selectors?: Record<string, string | string[]>;
|
|
11
12
|
semantics?: Record<string, string | Record<string, string | number>>;
|
|
12
|
-
values?:
|
|
13
|
+
values?: {
|
|
14
|
+
[id in typeof DefaultRules[number]['id']]?: Record<string, string | number>;
|
|
15
|
+
} & {
|
|
16
|
+
[key: string]: Record<string, string | number> | string | number;
|
|
17
|
+
};
|
|
13
18
|
Rules?: typeof Rule[];
|
|
14
19
|
themes?: Record<string, {
|
|
15
20
|
classes?: Record<string, string>;
|
package/dist/config/rules.d.ts
CHANGED
|
@@ -1,3 +1,196 @@
|
|
|
1
1
|
import FontWeight from '../rules/font-weight';
|
|
2
|
-
|
|
2
|
+
import FontFamily from '../rules/font-family';
|
|
3
|
+
import FontSize from '../rules/font-size';
|
|
4
|
+
import Spacing from '../rules/spacing';
|
|
5
|
+
import Width from '../rules/width';
|
|
6
|
+
import Height from '../rules/height';
|
|
7
|
+
import MinWidth from '../rules/min-width';
|
|
8
|
+
import MinHeight from '../rules/min-height';
|
|
9
|
+
import LetterSpacing from '../rules/letter-spacing';
|
|
10
|
+
import FontSmoothing from '../rules/font-smoothing';
|
|
11
|
+
import FontStyle from '../rules/font-style';
|
|
12
|
+
import FontVariantNumeric from '../rules/font-variant-numeric';
|
|
13
|
+
import LineHeight from '../rules/line-height';
|
|
14
|
+
import ObjectFit from '../rules/object-fit';
|
|
15
|
+
import ObjectPosition from '../rules/object-position';
|
|
16
|
+
import TextAlign from '../rules/text-align';
|
|
17
|
+
import TextDecoration from '../rules/text-decoration';
|
|
18
|
+
import TextTransform from '../rules/text-transform';
|
|
19
|
+
import VerticalAlign from '../rules/vertical-align';
|
|
20
|
+
import Lines from '../rules/lines';
|
|
21
|
+
import TransformOrigin from '../rules/transform-origin';
|
|
22
|
+
import TransformStyle from '../rules/transform-style';
|
|
23
|
+
import TransformBox from '../rules/transform-box';
|
|
24
|
+
import Transform from '../rules/transform';
|
|
25
|
+
import Transition from '../rules/transition';
|
|
26
|
+
import TransitionDelay from '../rules/transition-delay';
|
|
27
|
+
import TransitionDuration from '../rules/transition-duration';
|
|
28
|
+
import TransitionProperty from '../rules/transition-property';
|
|
29
|
+
import TransitionTimingFunction from '../rules/transition-timing-function';
|
|
30
|
+
import MaxHeight from '../rules/max-height';
|
|
31
|
+
import MaxWidth from '../rules/max-width';
|
|
32
|
+
import Display from '../rules/display';
|
|
33
|
+
import BoxSizing from '../rules/box-sizing';
|
|
34
|
+
import Opacity from '../rules/opacity';
|
|
35
|
+
import Visibility from '../rules/visibility';
|
|
36
|
+
import Clear from '../rules/clear';
|
|
37
|
+
import Float from '../rules/float';
|
|
38
|
+
import Isolation from '../rules/isolation';
|
|
39
|
+
import Overflow from '../rules/overflow';
|
|
40
|
+
import OverscrollBehavior from '../rules/overscroll-behavior';
|
|
41
|
+
import ZIndex from '../rules/z-index';
|
|
42
|
+
import AnimationDelay from '../rules/animation-delay';
|
|
43
|
+
import AnimationDirection from '../rules/animation-direction';
|
|
44
|
+
import AnimationFillMode from '../rules/animation-fill-mode';
|
|
45
|
+
import AnimationIterationCount from '../rules/animation-iteration-count';
|
|
46
|
+
import AnimationName from '../rules/animation-name';
|
|
47
|
+
import AnimationPlayState from '../rules/animation-play-state';
|
|
48
|
+
import AnimationTimingFunction from '../rules/animation-timing-function';
|
|
49
|
+
import Animation from '../rules/animation';
|
|
50
|
+
import BorderColor from '../rules/border-color';
|
|
51
|
+
import BorderRadius from '../rules/border-radius';
|
|
52
|
+
import BorderStyle from '../rules/border-style';
|
|
53
|
+
import BorderWidth from '../rules/border-width';
|
|
54
|
+
import Border from '../rules/border';
|
|
55
|
+
import BackgroundAttachment from '../rules/background-attachment';
|
|
56
|
+
import BackgroundBlendMode from '../rules/background-blend-mode';
|
|
57
|
+
import BackgroundClip from '../rules/background-clip';
|
|
58
|
+
import BackgroundColor from '../rules/background-color';
|
|
59
|
+
import BackgroundOrigin from '../rules/background-origin';
|
|
60
|
+
import BackgroundPosition from '../rules/background-position';
|
|
61
|
+
import BackgroundRepeat from '../rules/background-repeat';
|
|
62
|
+
import BackgroundSize from '../rules/background-size';
|
|
63
|
+
import BackgroundImage from '../rules/background-image';
|
|
64
|
+
import Background from '../rules/background';
|
|
65
|
+
import MixBlendMode from '../rules/mix-blend-mode';
|
|
66
|
+
import Position from '../rules/position';
|
|
67
|
+
import Placement from '../rules/placement';
|
|
68
|
+
import BackdropFilter from '../rules/backdrop-filter';
|
|
69
|
+
import Fill from '../rules/fill';
|
|
70
|
+
import Stroke from '../rules/stroke';
|
|
71
|
+
import StrokeWidth from '../rules/stroke-width';
|
|
72
|
+
import Filter from '../rules/filter';
|
|
73
|
+
import Cursor from '../rules/cursor';
|
|
74
|
+
import PointerEvents from '../rules/pointer-events';
|
|
75
|
+
import Resize from '../rules/resize';
|
|
76
|
+
import TouchAction from '../rules/touch-action';
|
|
77
|
+
import UserDrag from '../rules/user-drag';
|
|
78
|
+
import UserSelect from '../rules/user-select';
|
|
79
|
+
import BoxShadow from '../rules/box-shadow';
|
|
80
|
+
import TextShadow from '../rules/text-shadow';
|
|
81
|
+
import TextSize from '../rules/text-size';
|
|
82
|
+
import WordBreak from '../rules/word-break';
|
|
83
|
+
import GridColumns from '../rules/grid-columns';
|
|
84
|
+
import GridRows from '../rules/grid-rows';
|
|
85
|
+
import Gap from '../rules/gap';
|
|
86
|
+
import WordSpacing from '../rules/word-spacing';
|
|
87
|
+
import Variable from '../rules/variable';
|
|
88
|
+
import AspectRadio from '../rules/aspect-radio';
|
|
89
|
+
import BoxDecorationBreak from '../rules/box-decoration-break';
|
|
90
|
+
import BreakAfter from '../rules/break-after';
|
|
91
|
+
import BreakBefore from '../rules/break-before';
|
|
92
|
+
import BreakInside from '../rules/break-inside';
|
|
93
|
+
import FlexShrink from '../rules/flex-shrink';
|
|
94
|
+
import FlexDirection from '../rules/flex-direction';
|
|
95
|
+
import FlexGrow from '../rules/flex-grow';
|
|
96
|
+
import FlexWrap from '../rules/flex-wrap';
|
|
97
|
+
import FlexBasis from '../rules/flex-basis';
|
|
98
|
+
import Flex from '../rules/flex';
|
|
99
|
+
import Order from '../rules/order';
|
|
100
|
+
import GridColumn from '../rules/grid-column';
|
|
101
|
+
import ColumnSpan from '../rules/column-span';
|
|
102
|
+
import GridRow from '../rules/grid-row';
|
|
103
|
+
import Color from '../rules/color';
|
|
104
|
+
import AlignContent from '../rules/align-content';
|
|
105
|
+
import AlignItems from '../rules/align-items';
|
|
106
|
+
import AlignSelf from '../rules/align-self';
|
|
107
|
+
import GridAutoColumns from '../rules/grid-auto-columns';
|
|
108
|
+
import GridAutoFlow from '../rules/grid-auto-flow';
|
|
109
|
+
import GridAutoRows from '../rules/grid-auto-rows';
|
|
110
|
+
import JustifyContent from '../rules/justify-content';
|
|
111
|
+
import JustifyItems from '../rules/justify-items';
|
|
112
|
+
import JustifySelf from '../rules/justify-self';
|
|
113
|
+
import PlaceContent from '../rules/place-content';
|
|
114
|
+
import PlaceItems from '../rules/place-items';
|
|
115
|
+
import PlaceSelf from '../rules/place-self';
|
|
116
|
+
import Padding from '../rules/padding';
|
|
117
|
+
import Margin from '../rules/margin';
|
|
118
|
+
import TextOverflow from '../rules/text-overflow';
|
|
119
|
+
import ListStylePosition from '../rules/list-style-position';
|
|
120
|
+
import ListStyleType from '../rules/list-style-type';
|
|
121
|
+
import ListStyle from '../rules/list-style';
|
|
122
|
+
import TextDecorationColor from '../rules/text-decoration-color';
|
|
123
|
+
import TextDecorationStyle from '../rules/text-decoration-style';
|
|
124
|
+
import TextDecorationThickness from '../rules/text-decoration-thickness';
|
|
125
|
+
import TextIndent from '../rules/text-indent';
|
|
126
|
+
import Content from '../rules/content';
|
|
127
|
+
import OutlineColor from '../rules/outline-color';
|
|
128
|
+
import OutlineOffset from '../rules/outline-offset';
|
|
129
|
+
import OutlineStyle from '../rules/outline-style';
|
|
130
|
+
import OutlineWidth from '../rules/outline-width';
|
|
131
|
+
import Outline from '../rules/outline';
|
|
132
|
+
import BorderCollapse from '../rules/border-collapse';
|
|
133
|
+
import BorderSpacing from '../rules/border-spacing';
|
|
134
|
+
import TableLayout from '../rules/table-layout';
|
|
135
|
+
import AccentColor from '../rules/accent-color';
|
|
136
|
+
import Appearance from '../rules/appearance';
|
|
137
|
+
import CaretColor from '../rules/caret-color';
|
|
138
|
+
import ScrollBehavior from '../rules/scroll-behavior';
|
|
139
|
+
import ScrollMargin from '../rules/scroll-margin';
|
|
140
|
+
import ScrollPadding from '../rules/scroll-padding';
|
|
141
|
+
import ScrollSnapAlign from '../rules/scroll-snap-align';
|
|
142
|
+
import ScrollSnapStop from '../rules/scroll-snap-stop';
|
|
143
|
+
import ScrollSnapType from '../rules/scroll-snap-type';
|
|
144
|
+
import WillChange from '../rules/will-change';
|
|
145
|
+
import TextUnderlineOffset from '../rules/text-underline-offset';
|
|
146
|
+
import Inset from '../rules/inset';
|
|
147
|
+
import Columns from '../rules/columns';
|
|
148
|
+
import WhiteSpace from '../rules/white-space';
|
|
149
|
+
import TextOrientation from '../rules/text-orientation';
|
|
150
|
+
import WritingMode from '../rules/writing-mode';
|
|
151
|
+
import Contain from '../rules/contain';
|
|
152
|
+
import AnimationDuration from '../rules/animation-duration';
|
|
153
|
+
import TextRendering from '../rules/text-rendering';
|
|
154
|
+
import Direction from '../rules/direction';
|
|
155
|
+
import TextDecorationLine from '../rules/text-decoration-line';
|
|
156
|
+
import GridColumnStart from '../rules/grid-column-start';
|
|
157
|
+
import ListStyleImage from '../rules/list-style-image';
|
|
158
|
+
import ShapeOutside from '../rules/shape-outside';
|
|
159
|
+
import ShapeMargin from '../rules/shape-margin';
|
|
160
|
+
import ShapeImageThreshold from '../rules/shape-image-threshold';
|
|
161
|
+
import ClipPath from '../rules/clip-path';
|
|
162
|
+
import Grid from '../rules/grid';
|
|
163
|
+
import Font from '../rules/font';
|
|
164
|
+
import Quotes from '../rules/quotes';
|
|
165
|
+
import GridTemplate from '../rules/grid-template';
|
|
166
|
+
import GridRowStart from '../rules/grid-row-start';
|
|
167
|
+
import GridTemplateAreas from '../rules/grid-template-areas';
|
|
168
|
+
import GridTemplateColumns from '../rules/grid-template-columns';
|
|
169
|
+
import GridTemplateRows from '../rules/grid-template-rows';
|
|
170
|
+
import GridArea from '../rules/grid-area';
|
|
171
|
+
import GridColumnEnd from '../rules/grid-column-end';
|
|
172
|
+
import GridRowEnd from '../rules/grid-row-end';
|
|
173
|
+
import MaskImage from '../rules/mask-image';
|
|
174
|
+
import TextFillColor from '../rules/text-fill-color';
|
|
175
|
+
import TextStroke from '../rules/text-stroke';
|
|
176
|
+
import TextStrokeWidth from '../rules/text-stroke-width';
|
|
177
|
+
import TextStrokeColor from '../rules/text-stroke-color';
|
|
178
|
+
import StrokeDasharray from '../rules/stroke-dasharray';
|
|
179
|
+
import StrokeDashoffset from '../rules/stroke-dashoffset';
|
|
180
|
+
import X from '../rules/x';
|
|
181
|
+
import Y from '../rules/y';
|
|
182
|
+
import Cx from '../rules/cx';
|
|
183
|
+
import Cy from '../rules/cy';
|
|
184
|
+
import Rx from '../rules/rx';
|
|
185
|
+
import Ry from '../rules/ry';
|
|
186
|
+
import BorderImageOutset from '../rules/border-image-outset';
|
|
187
|
+
import BorderImageRepeat from '../rules/border-image-repeat';
|
|
188
|
+
import BorderImageSlice from '../rules/border-image-slice';
|
|
189
|
+
import BorderImageSource from '../rules/border-image-source';
|
|
190
|
+
import BorderImageWidth from '../rules/border-image-width';
|
|
191
|
+
import BorderImage from '../rules/border-image';
|
|
192
|
+
import Group from '../rules/group';
|
|
193
|
+
import CounterIncrement from '../rules/counter-increment';
|
|
194
|
+
import counterReset from '../rules/counter-reset';
|
|
195
|
+
declare const DefaultRules: (typeof FontWeight | typeof FontFamily | typeof FontSize | typeof Spacing | typeof Width | typeof Height | typeof MinWidth | typeof MinHeight | typeof LetterSpacing | typeof FontSmoothing | typeof FontStyle | typeof FontVariantNumeric | typeof LineHeight | typeof ObjectFit | typeof ObjectPosition | typeof TextAlign | typeof TextDecoration | typeof TextTransform | typeof VerticalAlign | typeof Lines | typeof TransformOrigin | typeof TransformStyle | typeof TransformBox | typeof Transform | typeof Transition | typeof TransitionDelay | typeof TransitionDuration | typeof TransitionProperty | typeof TransitionTimingFunction | typeof MaxHeight | typeof MaxWidth | typeof Display | typeof BoxSizing | typeof Opacity | typeof Visibility | typeof Clear | typeof Float | typeof Isolation | typeof Overflow | typeof OverscrollBehavior | typeof ZIndex | typeof AnimationDelay | typeof AnimationDirection | typeof AnimationFillMode | typeof AnimationIterationCount | typeof AnimationName | typeof AnimationPlayState | typeof AnimationTimingFunction | typeof Animation | typeof BorderColor | typeof BorderRadius | typeof BorderStyle | typeof BorderWidth | typeof Border | typeof BackgroundAttachment | typeof BackgroundBlendMode | typeof BackgroundClip | typeof BackgroundColor | typeof BackgroundOrigin | typeof BackgroundPosition | typeof BackgroundRepeat | typeof BackgroundSize | typeof BackgroundImage | typeof Background | typeof MixBlendMode | typeof Position | typeof Placement | typeof BackdropFilter | typeof Fill | typeof Stroke | typeof StrokeWidth | typeof Filter | typeof Cursor | typeof PointerEvents | typeof Resize | typeof TouchAction | typeof UserDrag | typeof UserSelect | typeof BoxShadow | typeof TextShadow | typeof TextSize | typeof WordBreak | typeof GridColumns | typeof GridRows | typeof Gap | typeof WordSpacing | typeof Variable | typeof AspectRadio | typeof BoxDecorationBreak | typeof BreakAfter | typeof BreakBefore | typeof BreakInside | typeof FlexShrink | typeof FlexDirection | typeof FlexGrow | typeof FlexWrap | typeof FlexBasis | typeof Flex | typeof Order | typeof GridColumn | typeof ColumnSpan | typeof GridRow | typeof Color | typeof AlignContent | typeof AlignItems | typeof AlignSelf | typeof GridAutoColumns | typeof GridAutoFlow | typeof GridAutoRows | typeof JustifyContent | typeof JustifyItems | typeof JustifySelf | typeof PlaceContent | typeof PlaceItems | typeof PlaceSelf | typeof Padding | typeof Margin | typeof TextOverflow | typeof ListStylePosition | typeof ListStyleType | typeof ListStyle | typeof TextDecorationColor | typeof TextDecorationStyle | typeof TextDecorationThickness | typeof TextIndent | typeof Content | typeof OutlineColor | typeof OutlineOffset | typeof OutlineStyle | typeof OutlineWidth | typeof Outline | typeof BorderCollapse | typeof BorderSpacing | typeof TableLayout | typeof AccentColor | typeof Appearance | typeof CaretColor | typeof ScrollBehavior | typeof ScrollMargin | typeof ScrollPadding | typeof ScrollSnapAlign | typeof ScrollSnapStop | typeof ScrollSnapType | typeof WillChange | typeof TextUnderlineOffset | typeof Inset | typeof Columns | typeof WhiteSpace | typeof TextOrientation | typeof WritingMode | typeof Contain | typeof AnimationDuration | typeof TextRendering | typeof Direction | typeof TextDecorationLine | typeof GridColumnStart | typeof ListStyleImage | typeof ShapeOutside | typeof ShapeMargin | typeof ShapeImageThreshold | typeof ClipPath | typeof Grid | typeof Font | typeof Quotes | typeof GridTemplate | typeof GridRowStart | typeof GridTemplateAreas | typeof GridTemplateColumns | typeof GridTemplateRows | typeof GridArea | typeof GridColumnEnd | typeof GridRowEnd | typeof MaskImage | typeof TextFillColor | typeof TextStroke | typeof TextStrokeWidth | typeof TextStrokeColor | typeof StrokeDasharray | typeof StrokeDashoffset | typeof X | typeof Y | typeof Cx | typeof Cy | typeof Rx | typeof Ry | typeof BorderImageOutset | typeof BorderImageRepeat | typeof BorderImageSlice | typeof BorderImageSource | typeof BorderImageWidth | typeof BorderImage | typeof Group | typeof CounterIncrement | typeof counterReset)[];
|
|
3
196
|
export default DefaultRules;
|
package/dist/index.browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var Wo=Object.defineProperty;var Fo=(r,o,i)=>o in r?Wo(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var e=(r,o,i)=>(Fo(r,typeof o!="symbol"?o+"":o,i),i),fo=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var le=(r,o,i)=>(fo(r,o,"read from private field"),i?i.call(r):o.get(r)),to=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},ro=(r,o,i,n)=>(fo(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var Po={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Yr=Po;function Xr(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function mo(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function F(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let n in r)if(n&&+n>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let n=0,s="0"in r?Xr(r[0]):[0,0,0],f,v,m=[],c=()=>{let p=f-n,h=v.map((x,a)=>(x-s[a])/p);for(let x of m){let a=x-n,d=s.map((R,g)=>Math.round(R+h[g]*a));r[x]="#"+mo.call(this,...d)}};for(let p=1;p<100;p++)p in r?(m.length?(f=p,v=Xr(r[p]),c(),m.length=0,s=v):s=Xr(r[p]),n=p):m.push(p);m.length&&(f=100,v="100"in r?Xr(r[100]):[255,255,255],c())}return o||(r[""]=r[i?"500":"50"]),r}var Lo={slate:F({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:F({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:F({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:F({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:F({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:F({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:F({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:F({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:F({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:F({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:F({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:F({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:F({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:F({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:F({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:F({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:F({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:F({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:F({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:F({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},uo=Lo;var po=16;var Go={"::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("},ho=Go;var _o={square:"aspect-ratio:1/1",video:"aspect-ratio:16/9",rounded:"border-radius:1e9em",round:"border-radius:50%",hidden:"display:none",hide:"display:none",block:"display:block",table:"display:table",flex:"display:flex",grid:"display:grid",contents:"display:contents",inline:"display:inline","inline-block":"display:inline-block","inline-flex":"display:inline-flex","inline-grid":"display:inline-grid","inline-table":"display:inline-table","table-cell":"display:table-cell","table-caption":"display:table-caption","flow-root":"display:flow-root","list-item":"display:list-item","table-row":"display:table-row","table-column":"display:table-column","table-row-group":"display:table-row-group","table-column-group":"display:table-column-group","table-header-group":"display:table-header-group","table-footer-group":"display:table-footer-group",italic:"font-style:italic",oblique:"font-style:oblique",isolate:"isolation:isolate",overflow:"overflow:visible",untouchable:"pointer-events:none",static:"position:static",fixed:"position:fixed",abs:"position:absolute",rel:"position:relative",sticky:"position:sticky",uppercase:"text-transform:uppercase",lowercase:"text-transform:lowercase",capitalize:"text-transform:capitalize",visible:"visibility:visible",invisible:"visibility:hidden","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}},go=_o;var zo=["dark","light"],xo=zo;var Vo={storage:{sync:!0,key:"scheme"}},vo=Vo;var Zr={content:"content-box",border:"border-box",padding:"padding-box"},_i={min:"min-content",max:"max-content"},X={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Yr)X[r]=Yr[r]/16+"rem";var Ho={BackgroundClip:Zr,BackgroundOrigin:Zr,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Zr,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:_i,GridAutoRows:_i,GridTemplateColumns:_i,GridTemplateRows:_i,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Zr,margin:"margin-box"},TransformBox:{...Zr,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:X,MinWidth:X,MinHeight:X,MaxWidth:X,MaxHeight:X,Height:X,FlexBasis:X},bo=Ho;function zi(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function yo(r){let o=m=>m==="+"||m==="-"||m==="*"||m==="/",i="",n,s="",f=!1;function v(){n=null,s=""}for(let m=0;m<r.length;m++){let c=r[m];if(c==="("||c===")")f=c===")",i+=s+c,v();else if(c===",")i+=s+c+" ",v();else{switch(n){case 1:break;case 2:if(o(c)){i+=s+" "+c+" ",v();continue}break;default:f&&(s+=" "),isNaN(+c)?o(c)||(n=1):n=2;break}s+=c}}return s&&(i+=s),i}var $o=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Uo="var(--";function Vi(r,o,i,n,s,f,v){let m="",c="",p="",h;if(n&&r in n)return{value:n[r].toString(),unit:c,unitToken:p};if(s&&r in s)return{value:s[r].toString(),unit:c,unitToken:p};if(typeof r=="number")m=r,c=o||"";else{if(i){let x=Object.keys(i),a=!1,d=!1;r=r.replace(new RegExp(`(^|,| |\\()(${x.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(R,g,l,u,C)=>{var T;d=!0;let b=(T=i[l])==null?void 0:T[u||""];if(b){let y;for(let M of v)if(y=b[M])break;if(y){a=!0;let M=y;if(C){let O=C.endsWith("%")?parseFloat(C)/100:+C;O=isNaN(O)?1:Math.min(Math.max(O,0),1),M+=Math.round(O*255).toString(16).toUpperCase().padStart(2,"0")}return g+M}}return R}),d&&(h=a)}if(o){let x=r.match($o);if(x)if(r.includes("/")){let a=r.split("/");return{value:+a[0]/+a[1]*100+"%",unit:c,unitToken:p}}else return m=+x[1],c=p=x[3]||"",c||((o==="rem"||o==="em")&&(m=m/f),c=o||""),{value:m,unit:c,unitToken:p}}m=(r.indexOf("calc(")===-1?r:yo(r)).replace(/\$\(((\w|-)+)\)/g,Uo+"$1)")}return{value:m,unit:c,unitToken:p,colorMatched:h}}var st={"(":")","'":"'","{":"}"};var Ro=[":disabled",":active",":focus",":hover"],Hi="matches",Qo="semantics",So="symbol",ko="width",io="max-"+ko,oo="min-"+ko,ao="motion",Co="reduce",To=Co+"d-"+ao,so="px",Yo="rem",Xo=["!","*",">","+","~",":","[","@","_"],Zo=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,qo=r=>r.split(Zo).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,n){this.className=o;this.matching=i;this.css=n;e(this,"prefix");e(this,"symbol");e(this,"token");e(this,"prefixSelectors");e(this,"vendorSuffixSelectors");e(this,"important");e(this,"media");e(this,"at",{});e(this,"direction");e(this,"theme");e(this,"unitToken");e(this,"hasWhere");e(this,"priority",-1);e(this,"natives",[]);let s=this.constructor,{id:f,unit:v,colorful:m,prop:c}=s,{breakpoints:p,mediaQueries:h,semantics:x,rootSize:a}=n.config,{themeNames:d,colorsThemesMap:R,selectors:g,globalValues:l}=n,u=n.values[f],C=n.relationThemesMap[o],b=o,T,y,M,O;if(i.origin===Qo)M=b.slice(i.value.length),T=x[i.value];else{let j;if(i.origin===Hi)if(f==="Group"){let B=0;for(;B<b.length&&!(b[B]==="{"&&b[B-1]!=="\\");B++);y=b.slice(0,B),j=b.slice(B)}else{let B=b.indexOf(":");this.prefix=b.slice(0,B+1),this.prefix.includes("(")?(this.prefix=void 0,j=b):j=b.slice(B+1)}else i.origin===So&&(this.symbol=b[0],j=b.slice(1));O=[];let k="",w=0;(function B(W,A,I=""){let S,E=!1;for(W&&(W===")"&&k.slice(-1)==="$"?S=k.length-1:W==="'"&&(E=!0),k+=j[w++]);w<j.length;w++){let N=j[w];if(N===W){if(k+=N,E){let P=0;for(let V=k.length-2;k[V]==="\\";V--)P++;if(P%2)continue}S!==void 0&&(k=k.slice(0,S)+k.slice(S).replace(/\$\((.*)\)/,"var(--$1)")),A||(E?O.push(k):O.push({value:k}),I="",k="");break}else if(!E&&N in st)B(st[N],A===void 0?0:A+1,I);else if(N==="|"&&W!=="}"&&(!E||I==="path"))W?k+=" ":(O.push({value:k}),k="");else{if(!W){if(N==="."){if(isNaN(+j[w+1]))break;j[w-1]==="-"&&(k+="0")}else if(N===","){O.push({value:k},","),k="";continue}else if(N==="#"&&(k||O.length&&j[w-1]!=="|")||Xo.includes(N))break;I+=N}k+=N}}})(),k&&O.push({value:k}),M=j.slice(w)}M[0]==="!"&&(this.important=!0,M=M.slice(1));let D=j=>{let k=qo(j),w=[],B="",W=0;for(let A=0;A<k.length;A++){let I=k[A];if(I==="\\"){B+=I+k[++A];continue}!W&&I===","?(w.push(B),B=""):(B+=I,W&&I===")"?W--:I==="("&&W++)}return B&&w.push(B),w};this.prefixSelectors=y?D(y):[""];let _=M.split("@"),H=_[0];if(H){this.vendorSuffixSelectors={};let j=(A,I,S,E)=>{for(let[N,P]of I)if(N.test(A)){for(let V of P)j(A.replace(N,V),I,S,!0);return}E&&S.push(A)},k=[];""in g?j(H,g[""],k,!0):k.push(H);let w={};for(let[A,I]of Object.entries(g)){if(!A)continue;let S=[];for(let E of k)j(E,I,S,!1);S.length&&(w[A]=S)}let B=(A,I)=>{let S=I.reduce((E,N)=>(E.push(...D(N)),E),[]);A in this.vendorSuffixSelectors?this.vendorSuffixSelectors[A].push(...S):this.vendorSuffixSelectors[A]=S},W=Object.keys(w);if(W.length)for(let A of W)B(A,w[A]);else B("",k);for(let A of Object.values(this.vendorSuffixSelectors))for(let I of A){this.hasWhere!==!1&&(this.hasWhere=I.includes(":where("));for(let S=0;S<Ro.length;S++)if(I.includes(Ro[S])){(this.priority===-1||this.priority>S)&&(this.priority=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let j=1;j<_.length;j++){let k=_[j];if(k)if(d.includes(k))this.theme=k;else if(k==="rtl"||k==="ltr")this.direction=k;else{let w,B,W=k.indexOf("_");if(W!==-1)w=k.slice(0,W),B=k.slice(W);else{let A=k.indexOf("(");A!==-1&&(w=k.slice(0,A),B=k.slice(A))}if(!w){w="media";let A=[];this.media={token:k,features:{}};let I=k.split("&");for(let S of I)if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")A.push("(orientation:"+S+")");else if(S===ao||S===To)A.push("(prefers-"+To+":"+(S===ao?"no-preference":Co)+")");else if(h&&S in h)A.push(h[S]);else{let E={token:S},N="",P="",V=0;S.startsWith("<=")?(P="<=",N=io):S.startsWith(">=")||p[S]?(P=">=",N=oo):S.startsWith(">")?(P=">",N=oo,V=.02):S.startsWith("<")&&(P="<",N=io,V=-.02);let Y=P?S.replace(P,""):S,L=p[Y];switch(N){case io:case oo:L?Object.assign(E,Vi(L,so)):Object.assign(E,Vi(Y,so)),E.unit===so&&(E.value+=V),this.media.features[N]=E,A.push("("+N+":"+(E.value+E.unit)+")");break}}B="",this.media.type&&(B=this.media.type),A.length&&(B+=(B?" and ":"")+A.join(" and "))}B&&(this.at[w]=(w in this.at?this.at[w]+" and ":"")+B.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let ae=(j,k)=>{let w,B,W=(I,S,E)=>{let N="";this.direction&&(N+="[dir="+this.direction+"] ");let P=this.prefixSelectors.map(L=>L+N),V=(L,Gi)=>{let Qr=L?"."+L+" ":"",eo="."+CSS.escape(Gi);return P.map(ne=>Qr+ne).reduce((ne,jo)=>(ne.push(E.reduce((co,Do)=>(co.push(jo+eo+Do),co),[]).join(",")),ne),[]).join(",")},Y=V(S,o)+(C?Object.entries(C).filter(([L])=>this.theme||!m||!S||!L||L===S).map(([L,Gi])=>Gi.reduce((Qr,eo)=>{var ne;return Qr+","+V((ne=this.theme)!=null?ne:m&&S||L,eo)},"")).join(""):"")+"{"+I+"}";for(let L of Object.keys(this.at).sort((Gi,Qr)=>Qr==="supports"?-1:1))Y="@"+L+" "+this.at[L]+"{"+Y+"}";return Y},A=[];if(O){let I,S;for(let E of O)typeof E=="string"?A.push(E):(I=Vi(E.value,v,m&&R,u,l,a,this.theme?[this.theme,""]:[j]),I.colorMatched!==void 0&&S!==!0&&(S=I.colorMatched),A.push(I.value+I.unit));if(k&&(S===void 0?j:!S))return;if(A.length===1?I?(w=I.value,B=I.unit):w=A[0]:w=A.reduce((E,N,P)=>E+N+(N===","||O[P+1]===","||P===O.length-1?"":" "),""),typeof w!="object"){this.parseValue&&(w=this.parseValue(w,this.css.config)),m&&w==="current"?w="currentColor":u&&w in u?w=u[w].toString():w in l&&(w=l[w].toString());let E={unit:B,value:w,important:this.important};if(this.getThemeProps){let N=this.getThemeProps(E,n);for(let P in N)for(let V of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:B,value:w,text:W(Object.entries(N[P]).map(([Y,L])=>zi(Y,{important:this.important,unit:"",value:L})).join(";"),P,V),theme:P});return}else this.get&&(w=this.get(E))}}else w=T;for(let I of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:B,value:w,text:W(typeof w=="object"?Object.entries(w).map(([S,E])=>zi(S,{...typeof E=="object"?E:{unit:"",value:E},important:this.important})).join(";"):zi(c,{unit:B,value:w,important:this.important}),j,I),theme:j})};if(this.getThemeProps)ae(void 0,!1);else if(this.theme)ae(this.theme,!1);else if(m)for(let j of d)ae(j,!0);else ae("",!1)}static get prop(){var o;return(o=this.id)==null?void 0:o.replace(/(?!^)[A-Z]/g,i=>"-"+i).toLowerCase()}static match(o,i){let{matches:n,colorStarts:s,symbol:f,prop:v}=this;if(n&&n.test(o))return{origin:Hi};if(s&&(o.match("^"+s+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))")||i.length&&o.match("^"+s+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:Hi};if(f&&o.startsWith(f))return{origin:So};if(v&&o.startsWith(v+":"))return{origin:Hi}}};e(t,"id"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Yo),e(t,"colorful");var ce=class extends t{};e(ce,"id","FontWeight"),e(ce,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(ce,"unit","");var at=class extends t{};e(at,"id","FontFamily"),e(at,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/);var nt=class extends t{};e(nt,"id","FontSize"),e(nt,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var de=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",s=i+"-right",f=i+"-top",v=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[f]:r,[v]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[f]:r};case"b":return{[v]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(de,"id","Spacing"),e(de,"matches",/^[pm][xytblr]?:./),e(de,"prop","");var lt=class extends t{};e(lt,"id","Width"),e(lt,"matches",/^w:./);var ct=class extends t{};e(ct,"id","Height"),e(ct,"matches",/^h:./);var dt=class extends t{};e(dt,"id","MinWidth"),e(dt,"matches",/^min-w:./);var ft=class extends t{};e(ft,"id","MinHeight"),e(ft,"matches",/^min-h:./);var fe=class extends t{};e(fe,"id","LetterSpacing"),e(fe,"matches",/^ls:./),e(fe,"unit","em");var Jo="subpixel-antialiased",wo="-webkit-font-smoothing",Oo="-moz-osx-font-smoothing",Z=class extends t{get(r){let o={};switch(r.value){case Jo:o[wo]=o[Oo]={...r,value:"auto"};break;case"antialiased":o[wo]={...r,value:"antialiased"},o[Oo]={...r,value:"grayscale"};break}return o}};e(Z,"id","FontSmoothing"),e(Z,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(Z,"unit",""),e(Z,"prop","");var me=class extends t{};e(me,"id","FontStyle"),e(me,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(me,"unit","deg");var mt=class extends t{};e(mt,"id","FontVariantNumeric"),e(mt,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/);var ue=class extends t{};e(ue,"id","LineHeight"),e(ue,"matches",/^lh:./),e(ue,"unit","");var ut=class extends t{};e(ut,"id","ObjectFit"),e(ut,"matches",/^(object|obj):(contain|cover|fill|scale-down)/);var pt=class extends t{};e(pt,"id","ObjectPosition"),e(pt,"matches",/^(object|obj):(top|bottom|right|left|center)/);var ht=class extends t{};e(ht,"id","TextAlign"),e(ht,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/);var pe=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(pe,"id","TextDecoration"),e(pe,"matches",/^t(ext)?:(underline|line-through|overline)/),e(pe,"colorful",!0);var gt=class extends t{};e(gt,"id","TextTransform"),e(gt,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/);var xt=class extends t{};e(xt,"id","VerticalAlign"),e(xt,"matches",/^(?:v|vertical):./);var q=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(q,"id","Lines"),e(q,"matches",/^lines:./),e(q,"unit",""),e(q,"prop","");var he=class extends t{};e(he,"id","TransformOrigin"),e(he,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(he,"unit","px");var vt=class extends t{};e(vt,"id","TransformStyle"),e(vt,"matches",/^transform:(flat|preserve-3d)(?!\|)/);var bt=class extends t{};e(bt,"id","TransformBox"),e(bt,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/);var ge=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,n,s,f)=>{let v,m;switch(n){case"translate":v="rem";break;case"skew":v="deg";break;case"rotate":s==="3d"&&(m=!0),v="deg";break;default:return i}let c=f.split(",");return i.replace(f,c.map((p,h)=>!m||c.length-1===h?Number.isNaN(+p)?p:p/(v==="rem"?o:1)+v:p).join(","))})}};e(ge,"id","Transform"),e(ge,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(ge,"unit","");var yt=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(yt,"id","Transition"),e(yt,"symbol","~");var xe=class extends t{};e(xe,"id","TransitionDelay"),e(xe,"matches",/^~delay:./),e(xe,"unit","ms");var ve=class extends t{};e(ve,"id","TransitionDuration"),e(ve,"matches",/^~duration:./),e(ve,"unit","ms");var Rt=class extends t{};e(Rt,"id","TransitionProperty"),e(Rt,"matches",/^~property:./);var St=class extends t{};e(St,"id","TransitionTimingFunction"),e(St,"matches",/^~easing:./);var Tt=class extends t{};e(Tt,"id","MaxHeight"),e(Tt,"matches",/^max-h:./);var kt=class extends t{};e(kt,"id","MaxWidth"),e(kt,"matches",/^max-w:./);var Ct=class extends t{};e(Ct,"id","Display"),e(Ct,"matches",/^d:./);var wt=class extends t{};e(wt,"id","BoxSizing"),e(wt,"matches",/^box:(content|border)(?!\|)/);var Ot=class extends t{};e(Ot,"id","Opacity"),e(Ot,"unit","");var qr=class extends t{};e(qr,"id","Visibility");var Jr=class extends t{};e(Jr,"id","Clear");var Kr=class extends t{};e(Kr,"id","Float");var ei=class extends t{};e(ei,"id","Isolation");var be=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(be,"id","Overflow"),e(be,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/),e(be,"prop","");var ye=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(ye,"id","OverscrollBehavior"),e(ye,"matches",/^overscroll-behavior(?:-[xy])?:/),e(ye,"prop","");var Re=class extends t{};e(Re,"id","ZIndex"),e(Re,"matches",/^z:./),e(Re,"unit","");var Se=class extends t{};e(Se,"id","AnimationDelay"),e(Se,"matches",/^@delay:./),e(Se,"unit","ms");var Mt=class extends t{};e(Mt,"id","AnimationDirection"),e(Mt,"matches",/^@direction:./);var At=class extends t{};e(At,"id","AnimationFillMode"),e(At,"matches",/^@fill-mode:./);var Te=class extends t{};e(Te,"id","AnimationIterationCount"),e(Te,"matches",/^@iteration-count:./),e(Te,"unit","");var Bt=class extends t{};e(Bt,"id","AnimationName"),e(Bt,"matches",/^@name:./);var It=class extends t{};e(It,"id","AnimationPlayState"),e(It,"matches",/^@play-state:./);var Et=class extends t{};e(Et,"id","AnimationTimingFunction"),e(Et,"matches",/^@easing:./);var ke=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(ke,"id","Animation"),e(ke,"symbol","@"),e(ke,"unit","");var $i="border-";function J(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],s=$i+"left"+i,f=$i+"right"+i,v=$i+"top"+i,m=$i+"bottom"+i;switch(n){case"x":return{[s]:o,[f]:o};case"y":return{[v]:o,[m]:o};case"l":return{[s]:o};case"r":return{[f]:o};case"t":return{[v]:o};case"b":return{[m]:o};default:return{["border"+i]:o}}}var $=class extends t{get(r){return J(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e($,"id","BorderColor"),e($,"matches",/^border(-(left|right|top|bottom))?-color:./),e($,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e($,"colorful",!0),e($,"prop","");var Ui="border-top-left-radius",Qi="border-top-right-radius",Yi="border-bottom-left-radius",Xi="border-bottom-right-radius",Mo="border-radius",Ko=[Ui,Qi,Yi,Xi],Ce=class extends t{get(r){var i;if(this.prefix){let n="",s=this.prefix.split("-");if(s.length>1)for(let f=1;f<s.length-1;f++)n+=s[f][0];else n=this.prefix.slice(1,-1);switch(n){case"t":return{[Ui]:r,[Qi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Qi]:r};case"b":return{[Yi]:r,[Xi]:r};case"bl":case"lb":return{[Yi]:r};case"br":case"rb":return{[Xi]:r};case"l":return{[Ui]:r,[Yi]:r};case"r":return{[Qi]:r,[Xi]:r};default:return{[Mo]:r}}}let o=(i=this.prefix)==null?void 0:i.slice(0,-1);return{[Ko.includes(o)?o:Mo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Ce,"id","BorderRadius"),e(Ce,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/),e(Ce,"prop","");var we=class extends t{get(r){return J(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(we,"id","BorderStyle"),e(we,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/),e(we,"prop","");var Oe=class extends t{get(r){return J(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Oe,"id","BorderWidth"),e(Oe,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Oe,"prop","");var K=class extends t{get(r){return J(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(K,"id","Border"),e(K,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(K,"colorful",!0),e(K,"prop","");var Nt=class extends t{};e(Nt,"id","BackgroundAttachment"),e(Nt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/);var ti=class extends t{};e(ti,"id","BackgroundBlendMode");var jt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(jt,"id","BackgroundClip"),e(jt,"matches",/^(bg|background):text(?!\|)/);var ee=class extends t{};e(ee,"id","BackgroundColor"),e(ee,"colorStarts","(bg|background):"),e(ee,"unit",""),e(ee,"colorful",!0);var Dt=class extends t{};e(Dt,"id","BackgroundOrigin"),e(Dt,"matches",/^(bg|background):(content|border|padding)(?!\|)/);var Me=class extends t{};e(Me,"id","BackgroundPosition"),e(Me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(Me,"unit","px");var Wt=class extends t{};e(Wt,"id","BackgroundRepeat"),e(Wt,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/);var Ft=class extends t{};e(Ft,"id","BackgroundSize"),e(Ft,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/);var Ae=class extends t{};e(Ae,"id","BackgroundImage"),e(Ae,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(Ae,"colorful",!0);var Be=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Be,"id","Background"),e(Be,"matches",/^bg:./),e(Be,"colorful",!0);var Pt=class extends t{};e(Pt,"id","MixBlendMode"),e(Pt,"matches",/^blend:./);var ri=class extends t{};e(ri,"id","Position");var Ie=class extends t{get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Ie,"id","Placement"),e(Ie,"matches",/^(top|left|right|bottom|center|middle):./),e(Ie,"prop","");function Zi(r,o,{rootSize:i}){let n="",s=0;return function f(v,m){let c="",p=m?o(m):"",h=()=>{c&&(n+=!p||Number.isNaN(+c)?c:+c/(p==="rem"?i:1)+p,c="")};for(;s<r.length;s++){let x=r[s];if(x===v&&(v!=="'"||r[s+1]===")")){h(),n+=x;break}else x===","||x===" "?(h(),n+=x):!c&&x==="'"?(n+=x,s++,f(x),c=""):c&&x==="("?(n+=c+x,s++,f(")",c),c=""):c+=x}h()}(),n}var Ee=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Zi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(Ee,"id","BackdropFilter"),e(Ee,"matches",/^bd:./),e(Ee,"colorful",!0);var Ne=class extends t{};e(Ne,"id","Fill"),e(Ne,"colorStarts","fill:"),e(Ne,"colorful",!0);var Lt=class extends t{};e(Lt,"id","Stroke"),e(Lt,"colorful",!0);var Gt=class extends t{};e(Gt,"id","StrokeWidth"),e(Gt,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var je=class extends t{parseValue(r,o){return Zi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(je,"id","Filter"),e(je,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(je,"colorful",!0);var ii=class extends t{};e(ii,"id","Cursor");var oi=class extends t{};e(oi,"id","PointerEvents");var si=class extends t{};e(si,"id","Resize");var ai=class extends t{};e(ai,"id","TouchAction");var ni=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(ni,"id","UserDrag");var li=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(li,"id","UserSelect");var De=class extends t{};e(De,"id","BoxShadow"),e(De,"matches",/^s(?:hadow)?:./),e(De,"colorful",!0);var _t=class extends t{};e(_t,"id","TextShadow"),e(_t,"colorful",!0);var Ao=.5,We=class extends t{get(r){let{unit:o,value:i}=r;return{"font-size":r,"line-height":{...r,value:o==="rem"?i+Ao+o:`calc(${i}${o} + ${Ao}rem)`,unit:""}}}};e(We,"id","TextSize"),e(We,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(We,"prop","");var zt=class extends t{};e(zt,"id","WordBreak"),e(zt,"unit","");var Fe=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Fe,"id","GridColumns"),e(Fe,"matches",/^grid-cols:./),e(Fe,"unit","");var Vt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Vt,"id","GridRows"),e(Vt,"unit","");var Pe=class extends t{constructor(){super(...arguments);e(this,"order",-1)}get(o){switch(this.prefix[4]){case"x":return{"column-gap":o};case"y":return{"row-gap":o};default:return{gap:o}}}};e(Pe,"id","Gap"),e(Pe,"matches",/^gap(-x|-y)?:./),e(Pe,"prop","");var Ht=class extends t{};e(Ht,"id","WordSpacing"),e(Ht,"unit","em");var te=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(te,"id","Variable"),e(te,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(te,"unit",""),e(te,"prop","");var Le=class extends t{};e(Le,"id","AspectRadio"),e(Le,"matches",/^aspect:./),e(Le,"unit","");var $t=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e($t,"id","BoxDecorationBreak"),e($t,"matches",/^box:(slice|clone)(?!\|)/);var ci=class extends t{};e(ci,"id","BreakAfter");var di=class extends t{};e(di,"id","BreakBefore");var fi=class extends t{};e(fi,"id","BreakInside");var Ut=class extends t{};e(Ut,"id","FlexShrink"),e(Ut,"unit","");var Qt=class extends t{};e(Qt,"id","FlexDirection"),e(Qt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/);var Yt=class extends t{};e(Yt,"id","FlexGrow"),e(Yt,"unit","");var Xt=class extends t{};e(Xt,"id","FlexWrap"),e(Xt,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/);var mi=class extends t{};e(mi,"id","FlexBasis");var Zt=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Zt,"id","Flex"),e(Zt,"unit","");var Ge=class extends t{};e(Ge,"id","Order"),e(Ge,"matches",/^o:./),e(Ge,"unit","");var _e=class extends t{constructor(){super(...arguments);e(this,"order",-1)}parseValue(o){return this.prefix.slice(-5,-1)==="span"&&o!=="auto"?"span "+o+"/span "+o:o}};e(_e,"id","GridColumn"),e(_e,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(_e,"unit","");var qt=class extends t{};e(qt,"id","ColumnSpan"),e(qt,"matches",/^col-span:./);var ze=class extends t{constructor(){super(...arguments);e(this,"order",-1)}parseValue(o){return this.prefix.slice(-5,-1)==="span"&&o!=="auto"?"span "+o+"/span "+o:o}};e(ze,"id","GridRow"),e(ze,"matches",/^grid-row-span:./),e(ze,"unit","");var re=class extends t{};e(re,"id","Color"),e(re,"colorStarts","(?:color|fg|foreground):"),e(re,"colorful",!0),e(re,"unit","");var Jt=class extends t{};e(Jt,"id","AlignContent"),e(Jt,"matches",/^ac:./);var Kt=class extends t{};e(Kt,"id","AlignItems"),e(Kt,"matches",/^ai:./);var er=class extends t{};e(er,"id","AlignSelf"),e(er,"matches",/^as:./);var tr=class extends t{};e(tr,"id","GridAutoColumns"),e(tr,"matches",/^grid-auto-cols:./);var rr=class extends t{};e(rr,"id","GridAutoFlow"),e(rr,"matches",/^grid-flow:./);var ui=class extends t{};e(ui,"id","GridAutoRows");var ir=class extends t{};e(ir,"id","JustifyContent"),e(ir,"matches",/^jc:./);var or=class extends t{};e(or,"id","JustifyItems"),e(or,"matches",/^ji:./);var sr=class extends t{};e(sr,"id","JustifySelf"),e(sr,"matches",/^js:./);var pi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(pi,"id","PlaceContent");var hi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(hi,"id","PlaceItems");var gi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(gi,"id","PlaceSelf");var Ve=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(Ve,"id","Padding"),e(Ve,"matches",/^padding(?:-(?:left|right|top|bottom))?:./),e(Ve,"prop","");var He=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(He,"id","Margin"),e(He,"matches",/^margin(-(left|right|top|bottom))?:./),e(He,"prop","");var ar=class extends t{};e(ar,"id","TextOverflow"),e(ar,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/);var nr=class extends t{};e(nr,"id","ListStylePosition"),e(nr,"matches",/^list-style:(inside|outside)(?!\|)/);var lr=class extends t{};e(lr,"id","ListStyleType"),e(lr,"matches",/^list-style:(disc|decimal)(?!\|)/);var xi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(xi,"id","ListStyle");var $e=class extends t{};e($e,"id","TextDecorationColor"),e($e,"colorStarts","text-decoration:"),e($e,"colorful",!0);var cr=class extends t{};e(cr,"id","TextDecorationStyle"),e(cr,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/);var Ue=class extends t{};e(Ue,"id","TextDecorationThickness"),e(Ue,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ue,"unit","em");var vi=class extends t{};e(vi,"id","TextIndent");var bi=class extends t{};e(bi,"id","Content");var Qe=class extends t{};e(Qe,"id","OutlineColor"),e(Qe,"colorStarts","outline:"),e(Qe,"colorful",!0);var yi=class extends t{};e(yi,"id","OutlineOffset");var dr=class extends t{};e(dr,"id","OutlineStyle"),e(dr,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/);var fr=class extends t{};e(fr,"id","OutlineWidth"),e(fr,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var mr=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(mr,"id","Outline"),e(mr,"colorful",!0);var ur=class extends t{};e(ur,"id","BorderCollapse"),e(ur,"matches",/^b(order)?:(collapse|separate)(?!\|)/);var Ri=class extends t{};e(Ri,"id","BorderSpacing");var Si=class extends t{};e(Si,"id","TableLayout");var Ye=class extends t{};e(Ye,"id","AccentColor"),e(Ye,"colorStarts","accent:"),e(Ye,"colorful",!0);var Ti=class extends t{};e(Ti,"id","Appearance");var Xe=class extends t{};e(Xe,"id","CaretColor"),e(Xe,"colorStarts","caret:"),e(Xe,"colorful",!0);var ki=class extends t{};e(ki,"id","ScrollBehavior");var Ze=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(Ze,"id","ScrollMargin"),e(Ze,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./),e(Ze,"prop","");var qe=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(qe,"id","ScrollPadding"),e(qe,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./),e(qe,"prop","");var pr=class extends t{};e(pr,"id","ScrollSnapAlign"),e(pr,"matches",/^scroll-snap:(start|end|center)/);var hr=class extends t{};e(hr,"id","ScrollSnapStop"),e(hr,"matches",/^scroll-snap:(normal|always)(?!\|)/);var gr=class extends t{};e(gr,"id","ScrollSnapType"),e(gr,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/);var Ci=class extends t{};e(Ci,"id","WillChange");var wi=class extends t{};e(wi,"id","TextUnderlineOffset");var xr=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(xr,"id","Inset"),e(xr,"matches",/^(?:top|bottom|left|right):./);var Je=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Je,"id","Columns"),e(Je,"matches",/^(columns|cols):./),e(Je,"unit","");var vr=class extends t{};e(vr,"id","WhiteSpace"),e(vr,"unit","");var br=class extends t{};e(br,"id","TextOrientation"),e(br,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/);var yr=class extends t{};e(yr,"id","WritingMode"),e(yr,"matches",/^writing:./);var Oi=class extends t{};e(Oi,"id","Contain");var Ke=class extends t{};e(Ke,"id","AnimationDuration"),e(Ke,"matches",/^@duration:./),e(Ke,"unit","ms");var Rr=class extends t{};e(Rr,"id","TextRendering"),e(Rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/);var Mi=class extends t{};e(Mi,"id","Direction");var Sr=class extends t{};e(Sr,"id","TextDecorationLine"),e(Sr,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/);var et=class extends t{};e(et,"id","GridColumnStart"),e(et,"matches",/^grid-col-start:./),e(et,"unit","");var Tr=class extends t{};e(Tr,"id","ListStyleImage"),e(Tr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/);var kr=class extends t{};e(kr,"id","ShapeOutside"),e(kr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/);var Cr=class extends t{};e(Cr,"id","ShapeMargin"),e(Cr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var wr=class extends t{};e(wr,"id","ShapeImageThreshold"),e(wr,"unit","");var Or=class extends t{};e(Or,"id","ClipPath"),e(Or,"matches",/^clip:./);var Ai=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Ai,"id","Grid");var tt=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(tt,"id","Font"),e(tt,"matches",/^f:./),e(tt,"unit","");var Bi=class extends t{};e(Bi,"id","Quotes");var Ii=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Ii,"id","GridTemplate");var Mr=class extends t{};e(Mr,"id","GridRowStart"),e(Mr,"unit","");var Ei=class extends t{};e(Ei,"id","GridTemplateAreas");var Ar=class extends t{};e(Ar,"id","GridTemplateColumns"),e(Ar,"matches",/^grid-template-cols:./);var Ni=class extends t{};e(Ni,"id","GridTemplateRows");var Br=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Br,"id","GridArea"),e(Br,"unit","");var rt=class extends t{};e(rt,"id","GridColumnEnd"),e(rt,"matches",/^grid-col-end:./),e(rt,"unit","");var Ir=class extends t{};e(Ir,"id","GridRowEnd"),e(Ir,"unit","");var ji=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(ji,"id","MaskImage");var U=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(U,"id","TextFillColor"),e(U,"matches",/^text-fill-color:./),e(U,"colorStarts","(text-fill|text|t):"),e(U,"colorful",!0),e(U,"prop","");var it=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(it,"id","TextStroke"),e(it,"matches",/^text-stroke:./),e(it,"prop","");var ot=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(ot,"id","TextStrokeWidth"),e(ot,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/),e(ot,"prop","");var Q=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Q,"id","TextStrokeColor"),e(Q,"matches",/^text-stroke-color:./),e(Q,"colorStarts","text-stroke:"),e(Q,"colorful",!0),e(Q,"prop","");var Di=class extends t{};e(Di,"id","StrokeDasharray");var Wi=class extends t{};e(Wi,"id","StrokeDashoffset");var Er=class extends t{};e(Er,"id","X"),e(Er,"unit","");var Nr=class extends t{};e(Nr,"id","Y"),e(Nr,"unit","");var jr=class extends t{};e(jr,"id","Cx"),e(jr,"unit","");var Dr=class extends t{};e(Dr,"id","Cy"),e(Dr,"unit","");var Wr=class extends t{};e(Wr,"id","Rx"),e(Wr,"unit","");var Fr=class extends t{};e(Fr,"id","Ry"),e(Fr,"unit","");var Fi=class extends t{};e(Fi,"id","BorderImageOutset");var Pr=class extends t{};e(Pr,"id","BorderImageRepeat"),e(Pr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/);var Lr=class extends t{};e(Lr,"id","BorderImageSlice"),e(Lr,"unit","");var Gr=class extends t{};e(Gr,"id","BorderImageSource"),e(Gr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/);var _r=class extends t{};e(_r,"id","BorderImageWidth"),e(_r,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/);var zr=class extends t{};e(zr,"id","BorderImage"),e(zr,"unit","");var es=/\{(.*)\}/,ie=class extends t{getThemeProps(r,o){var p;let i={},n=(h,x)=>{let a=x.indexOf(":");if(a!==-1){h in i||(i[h]={});let d=i[h],R=x.slice(0,a);R in d||(d[R]=x.slice(a+1))}},s=h=>{var a;let x=(d,R)=>{let g=R.slice(CSS.escape(h.className).length).match(es)[1].split(";");for(let l of g)n(d,l)};if(this.theme){let d=(a=h.natives.find(R=>R.theme===this.theme))!=null?a:h.natives.find(R=>!R.theme);d&&x(this.theme,d.text)}else for(let d of h.natives)x(d.theme,d.text)},f=[],v="",m=()=>{v&&(f.push(v),v="")},c=1;(function h(x){for(;c<r.value.length;c++){let a=r.value[c];if(!x){if(a===";"){m();continue}if(a==="}")break}if(v+=a,x===a){if(x==="'"){let d=0;for(let R=v.length-2;v[R]==="\\";R--)d++;if(d%2)continue}break}else a in st&&x!=="'"&&(c++,h(st[a]))}})(void 0),m();for(let h of f){let x=o.findAndNew(h);if(Array.isArray(x))for(let a of x)s(a);else x?s(x):n((p=this.theme)!=null?p:"",h)}return i}};e(ie,"id","Group"),e(ie,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(ie,"unit",""),e(ie,"prop","");var Vr=class extends t{};e(Vr,"id","CounterIncrement"),e(Vr,"unit","");var Hr=class extends t{};e(Hr,"id","CounterReset"),e(Hr,"unit","");var ts=[ie,te,nt,ce,at,Z,me,mt,tt,re,de,He,Ve,mi,Xt,Yt,Ut,Qt,Zt,Ct,lt,ct,dt,ft,Oi,bi,Vr,Hr,fe,ue,ut,pt,ht,$e,cr,Ue,Sr,pe,wi,ar,br,gt,Rr,vi,xt,Je,vr,xr,q,Tt,kt,wt,Ot,qr,Jr,Kr,ei,be,ye,Re,ri,Ie,ii,oi,si,ai,zt,Ht,ni,li,_t,We,U,ot,Q,it,De,Si,bt,vt,he,ge,Rt,St,ve,xe,yt,Se,Mt,Ke,At,Te,Bt,It,Et,ke,$,Ce,we,Oe,ur,Ri,Fi,Pr,Lr,Gr,_r,zr,K,Nt,ti,jt,ee,Dt,Me,Wt,Ft,Ae,Be,Pt,Ee,je,Ne,Di,Wi,Gt,Lt,Er,Nr,jr,Dr,Wr,Fr,et,rt,_e,Fe,Mr,Ir,ze,Vt,tr,rr,ui,Ei,Ar,Ni,Ii,Br,Ai,Pe,Ge,fi,di,ci,$t,Le,qt,Jt,Kt,er,ir,or,sr,pi,hi,gi,nr,lr,Tr,xi,Qe,yi,dr,fr,mr,Ye,Ti,Xe,ki,Ze,qe,pr,hr,gr,Ci,yr,Mi,kr,Cr,wr,Or,Bi,ji],Bo=ts;var rs={colors:uo,breakpoints:Yr,semantics:go,values:bo,selectors:ho,themes:xo,scheme:vo,Rules:Bo,rootSize:po},no=rs;function Io(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function qi(r){return Object.prototype.toString.call(r).slice(8,-1)}function $r(r){return qi(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function lo(r){return qi(r)==="Symbol"}function Eo(r,o,i,n){let s={}.propertyIsEnumerable.call(n,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function No(r,o,i){if(!$r(o))return o;let n={};if($r(r)){let m=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...m,...c].reduce((p,h)=>{let x=r[h];return(!lo(h)&&!Object.getOwnPropertyNames(o).includes(h)||lo(h)&&!Object.getOwnPropertySymbols(o).includes(h))&&Eo(p,h,x,r),p},{})}let s=Object.getOwnPropertyNames(o),f=Object.getOwnPropertySymbols(o);return[...s,...f].reduce((m,c)=>{let p=o[c],h=$r(r)?r[c]:void 0;h!==void 0&&$r(p)&&(p=No(h,p,i));let x=i?i(h,p,c):p;return Eo(m,c,x,o),m},n)}function Ji(r,...o){return o.filter(i=>$r(i)).reduce((i,n)=>No(i,n,Io),r)}var is=[",",".","#","[","!","*",">","+","~",":","@"],os=/^::-[a-z]+-/m,Ki,Li=typeof window!="undefined";Li&&(Ki=document.createElement("style"),Ki.title="master");var z="max-width",G="min-width",ss="attributes",as=Li?window.MutationObserver:Object,Ur,oe,Pi=class extends as{constructor(i){super(n=>{let s={},f=[],v=[],m=[],c=(a,d)=>{d?a.classList.forEach(h):a.classList.forEach(p);let R=a.children;for(let g=0;g<R.length;g++){let l=R[g];l.classList&&(v.push(l),c(l,d))}},p=a=>{a in s?s[a]++:s[a]=1},h=a=>{a in s?s[a]--:s[a]=-1},x=(a,d)=>{for(let R=0;R<a.length;R++){let g=a[R];g.classList&&!v.includes(g)&&!m.includes(g)&&(g.isConnected!==d?(v.push(g),c(g,d)):m.push(g))}};for(let a=0;a<n.length;a++){let d=n[a],{addedNodes:R,removedNodes:g,type:l,target:u,oldValue:C}=d;if(l===ss){if(u.className===C||f.find(b=>b.target===u))continue;f.push(d)}else x(R,!1),x(g,!0)}if(!(!f.length&&!Object.keys(s).length)){for(let{oldValue:a,target:d}of f){let R=v.includes(d),g=d.classList,l=a?a.split(" "):[];if(R){if(d.isConnected)continue;for(let u of l)g.contains(u)||h(u)}else if(d.isConnected){g.forEach(u=>{l.includes(u)||p(u)});for(let u of l)g.contains(u)||h(u)}else for(let u of l)h(u)}for(let a in s){let d=s[a],R=(this.countOfClass[a]||0)+d;R===0?(delete this.countOfClass[a],this.delete(a)):(a in this.countOfClass||this.findAndInsert(a),this.countOfClass[a]=R)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"values");e(this,"globalValues");e(this,"schemeMQL");to(this,Ur,void 0);to(this,oe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=Ji({observe:!0},i),this.options.config&&!this.options.override?this.config=Ji(no,this.options.config):this.config=no,this.cache(),Li&&this.options.observe&&this.observe(document),Pi.instances.push(this),this.ready=!0}static refresh(i){for(let n of this.instances)n.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==le(this,Ur)){ro(this,Ur,i);let{storage:n}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&n.sync&&localStorage.setItem(n.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return le(this,Ur)}set theme(i){i!==le(this,oe)&&(le(this,oe)&&this.host.classList.remove(le(this,oe)),ro(this,oe,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return le(this,oe)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){var a,d,R,g;this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={};let{semantics:i,classes:n,selectors:s,themes:f,colors:v,values:m}=this.config;function c(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let l in i)this.semantics.push([new RegExp("^"+c(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),l]);if(s)for(let[l,u]of Object.entries(s)){let C=new RegExp(c(l)+"(?![a-z-])");for(let b of Array.isArray(u)?u:[u]){let T=(d=(a=b.match(os))==null?void 0:a[0])!=null?d:"",y=this.selectors[T];y||(y=this.selectors[T]=[]);let M=y.find(([O])=>O===C);M||(M=[C,[]],y.push(M)),M[1].push(b)}}if(m)for(let[l,u]of Object.entries(m))(typeof u=="object"?this.values:this.globalValues)[l]=u;let p=[...n?Object.keys(n):[],...f&&!Array.isArray(f)?Object.entries(f).flatMap(([l,{classes:u}])=>u?Object.keys(u):[]):[]],h=l=>{if(l in this.classes)return;let u=this.classes[l]=[],C=(b,T)=>{if(!T)return;let y=Array.isArray(T)?T:T.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let M of y){let O=D=>{D in this.relationThemesMap?b in this.relationThemesMap[D]?this.relationThemesMap[D][b].push(l):this.relationThemesMap[D][b]=[l]:this.relationThemesMap[D]={[b]:[l]},u.includes(D)||u.push(D)};if(p.includes(M)){h(M);for(let D of this.classes[M])O(D)}else O(M)}};if(C("",n==null?void 0:n[l]),f&&!Array.isArray(f))for(let[b,{classes:T}]of Object.entries(f))C(b,T==null?void 0:T[l])};for(let l of p)h(l);for(let l in this.relationThemesMap){let u=this.relations[l]=[];for(let C of Object.values(this.relationThemesMap[l]))for(let b of C)u.includes(b)||u.push(b)}let x=(l,u)=>{if(!!u)for(let C in u){let b=u[C];if(typeof b=="string"&&(b={"":b}),C in this.colorsThemesMap){let T=this.colorsThemesMap[C];for(let y in b){let M=b[y];y in T?T[y][l]=M:T[y]={[l]:M}}}else this.colorNames.push(C),this.colorsThemesMap[C]=Object.entries(b).reduce((T,[y,M])=>(T[y]={[l]:M},T),{})}};if(x("",v),f)if(Array.isArray(f))this.themeNames.push(...f);else for(let l in f){let u=f[l];x(l,u.colors),this.themeNames.push(l)}for(let[l,u]of Object.entries(this.colorsThemesMap))for(let[C,b]of Object.entries(u))for(let[T,y]of Object.entries(b))if(!y.startsWith("#")){let[M,O]=y.split("-"),D=(R=this.colorsThemesMap[M])==null?void 0:R[O!=null?O:""],_="";D&&(_=(g=T?D[T]:void 0)!=null?g:D[""],_&&(b[T]=_)),_||(console.warn(`\`${y}\` doesn't exist in the extended config \`.colors\``),Object.keys(b).length>1?delete b[T]:Object.keys(u).length>1?delete u[C]:(delete this.colorsThemesMap[l],this.colorNames.splice(this.colorNames.indexOf(l),1)))}}observe(i,n={subtree:!0,childList:!0}){if(Li&&i){this.root=i;let s=i===document;s&&(Pi.root=this),this.host=s?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let f=s?document.head:i,v=s?document.styleSheets:i.styleSheets;for(let m of v){let{title:c,href:p,ownerNode:h}=m;(c==="master"||p&&p.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(p))&&(this.style=h)}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let c=h=>{if(h.selectorText){let a=h.selectorText.split(", ")[0].split(" ");for(let d=0;d<a.length;d++){let R=a[d];if(R[0]==="."){let g=R.slice(1),l="";for(let u=0;u<g.length;u++){let C=g[u],b=g[u+1];if(C==="\\"){if(u++,b!=="\\"){l+=b;continue}}else if(is.includes(C))break;l+=C}if(!(l in this.ruleOfClass)&&!(l in this.classes)){let u=this.findAndNew(l);if(u)return u}}}}else if(h.cssRules)for(let x=0;x<h.cssRules.length;x++){let a=c(h.cssRules[x]);if(a)return a}},p=c(this.style.sheet.cssRules[m]);if(p){this.rules.push(p),this.ruleOfClass[p.className]=p;for(let h=0;h<p.natives.length;h++)p.natives[h].cssRule=this.style.sheet.cssRules[m+h];m+=p.natives.length-1}}else this.style=Ki.cloneNode(),f.prepend(this.style);n.subtree&&this.host.querySelectorAll("[class]").forEach(m=>{m.classList.forEach(c=>{c in this.countOfClass?this.countOfClass[c]++:(this.countOfClass[c]=1,this.findAndInsert(c))})}),super.observe(i,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let n=i.cssRules.length-1;n>=0;n--)i.deleteRule(n)}findAndNew(i){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let f of this.config.Rules){let v=f.match(s,this.colorNames);if(v)return new f(s,v,this)}for(let f of this.semantics)if(s.match(f[0]))return new t(s,{origin:"semantics",value:f[1]},this)};return i in this.classes?this.classes[i].map(n).filter(s=>s):n(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let n=Ki.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=Pi.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:n}=this.config;if(n&&!n(i,this))return;let s,f=this.rules.length-1,{media:v,order:m,priority:c,hasWhere:p,className:h}=i,x=(a,d,R,g)=>{let l=0,u;d&&(l=a.findIndex(d)),R&&(u=a.findIndex(R)),l===-1&&(l=a.length),(u===void 0||u===-1)&&(u=a.length);let C=a.slice(l,u);for(let b=0;b<C.length;b++){let T=C[b];if(!(T.priority===-1||g&&g(T))&&(T.priority<c||T.priority===c&&(p&&!T.hasWhere||T.order>=m)))return l+b}return l+C.length};if(v){let a=this.rules.findIndex(d=>d.media);if(a!==-1){let d=v.features[z],R=v.features[G];if(d&&R){let g=d.value-R.value;for(let l=f;l>=a;l--){s=l;let u=this.rules[l],C=u.media,b=C.features[z],T=C.features[G];if(!b||!T){s++;break}let y=b.value-T.value;if(y===g){if(p!==u.hasWhere)continue;if(c!==-1){let M=[this.rules[l]];for(let O=l-1;O>=a;O--){let D=this.rules[O];if(D.hasWhere!==p)break;let _=D.media,H=_.features[z],ae=_.features[G];if(!H||!ae||H.value-ae.value!==y)break;M.unshift(this.rules[O])}s=x(this.rules,O=>O.media&&O.priority!==-1&&O.media.features[G]&&O.media.features[z])}break}else if(y>g)break}}else if(R)for(let g=a;g<=f;g++){s=g;let l=this.rules[g],u=l.media,C=u.features[z],b=u.features[G];if(C){if(b)break;continue}let T=b==null?void 0:b.value;if(T===R.value){if(!p&&l.hasWhere){s++;continue}if(c!==-1)s=x(this.rules,y=>y.media,y=>y.media&&y.priority!==-1&&y.media.features[G]&&y.media.features[z],y=>!y.media.features[G]&&!y.media.features[z]);else for(let y=g;y<=f;y++){let M=this.rules[y],O=M.media,D=O.features[G];if(!O.features[z]){if(M.hasWhere!==p||D.value!==T||M.order>=m)break;s=y+1}}break}else{if(T>R.value)break;s++}}else if(d)for(let g=f;g>=a;g--){s=g;let l=this.rules[g],u=l.media,C=u.features[z];if(u.features[G])continue;let T=C==null?void 0:C.value;if(!T||T>d.value){s++;break}else if(T===d.value){if(p&&!l.hasWhere)continue;if(c!==-1)s=x(this.rules,y=>y.media,y=>y.media&&y.priority!==-1&&y.media.features[G]&&y.media.features[z],y=>!y.media.features[G]&&!y.media.features[z]);else{let y=[this.rules[g]];for(let M=g-1;M>=a;M--){let O=this.rules[M],D=O.media,_=D.features[G],H=D.features[z];if(!_&&(!H||H.value!==T||O.hasWhere!==p))break;y.unshift(O)}for(let M=0;M<y.length;M++){let O=y[M];if(!O.media.features[G]){if(O.order>=m)break;s=g-y.length+2+M}}}break}}}if(s===void 0)if(a===-1)s=f+1;else if(c!==-1)s=a+x(this.rules.slice(a),void 0,d=>d.media.features[z]||d.media.features[G]);else if(p){let d=a;for(;d<this.rules.length;d++){let R=this.rules[d];if(R.priority!==-1||!R.hasWhere||R.order>=m){s=d;break}}s===void 0&&(s=d)}else for(let d=a;d<=f;d++){s=d;let R=this.rules[d],g=R.media;if(R.priority!==-1||g.features[z]||g.features[G])break;if(R.hasWhere)s++;else if(R.order>=m)break}}else if(c===-1)if(p)s=this.rules.findIndex(a=>!a.hasWhere||a.media||a.priority!==-1||a.order>=m),s===-1&&(s=f+1);else{let a=0;for(;a<this.rules.length;a++){let d=this.rules[a];if(d.media||!d.hasWhere&&(d.order>=m||d.priority!==-1)){s=a;break}}s===void 0&&(s=a)}else s=x(this.rules,void 0,a=>a.media);if(this.rules.splice(s,0,i),this.ruleOfClass[h]=i,this.style){let a=this.style.sheet,d=0,R=g=>{let l=this.rules[g];if(l){if(!l.natives.length)return R(g-1);let u=l.natives[l.natives.length-1].cssRule;for(let C=0;C<a.cssRules.length;C++)if(a.cssRules[C]===u){d=C+1;break}}};R(s-1);for(let g=0;g<i.natives.length;)try{let l=i.natives[g];a.insertRule(l.text,d),l.cssRule=a.cssRules[d++],g++}catch(l){console.error(l),i.natives.splice(g,1)}}}delete(i){let n=this.style.sheet,s=f=>{let v=this.ruleOfClass[f];if(!(!v||f in this.relations&&this.relations[f].some(m=>m in this.countOfClass))){if(v.natives.length){let m=v.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===m.cssRule){for(let h=0;h<v.natives.length;h++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(v),1);break}}delete this.ruleOfClass[f]}};if(i in this.classes){for(let f of this.classes[i])f in this.countOfClass||s(f);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let n=this.findAndNew(i);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}get text(){return this.rules.map(i=>i.natives.map(n=>n.text).join("")).join("")}},se=Pi;Ur=new WeakMap,oe=new WeakMap,e(se,"instances",[]),e(se,"root");Li&&(window.MasterCSS=se);new se({config:window.masterCSSConfig});})();
|
|
1
|
+
(()=>{var Eo=Object.defineProperty;var No=(r,o,i)=>o in r?Eo(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var e=(r,o,i)=>(No(r,typeof o!="symbol"?o+"":o,i),i),fo=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var le=(r,o,i)=>(fo(r,o,"read from private field"),i?i.call(r):o.get(r)),to=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},ro=(r,o,i,n)=>(fo(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var jo={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Yr=jo;function Xr(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function mo(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function N(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let n in r)if(n&&+n>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let n=0,s="0"in r?Xr(r[0]):[0,0,0],f,v,m=[],c=()=>{let p=f-n,h=v.map((x,a)=>(x-s[a])/p);for(let x of m){let a=x-n,d=s.map((R,g)=>Math.round(R+h[g]*a));r[x]="#"+mo.call(this,...d)}};for(let p=1;p<100;p++)p in r?(m.length?(f=p,v=Xr(r[p]),c(),m.length=0,s=v):s=Xr(r[p]),n=p):m.push(p);m.length&&(f=100,v="100"in r?Xr(r[100]):[255,255,255],c())}return o||(r[""]=r[i?"500":"50"]),r}var Lo={slate:N({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:N({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:N({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:N({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:N({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:N({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:N({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:N({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:N({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:N({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:N({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:N({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:N({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:N({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:N({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:N({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:N({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:N({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:N({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:N({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},uo=Lo;var po=16;var Go={"::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("},ho=Go;var zo={square:"aspect-ratio:1/1",video:"aspect-ratio:16/9",rounded:"border-radius:1e9em",round:"border-radius:50%",hidden:"display:none",hide:"display:none",block:"display:block",table:"display:table",flex:"display:flex",grid:"display:grid",contents:"display:contents",inline:"display:inline","inline-block":"display:inline-block","inline-flex":"display:inline-flex","inline-grid":"display:inline-grid","inline-table":"display:inline-table","table-cell":"display:table-cell","table-caption":"display:table-caption","flow-root":"display:flow-root","list-item":"display:list-item","table-row":"display:table-row","table-column":"display:table-column","table-row-group":"display:table-row-group","table-column-group":"display:table-column-group","table-header-group":"display:table-header-group","table-footer-group":"display:table-footer-group",italic:"font-style:italic",oblique:"font-style:oblique",isolate:"isolation:isolate",overflow:"overflow:visible",untouchable:"pointer-events:none",static:"position:static",fixed:"position:fixed",abs:"position:absolute",rel:"position:relative",sticky:"position:sticky",uppercase:"text-transform:uppercase",lowercase:"text-transform:lowercase",capitalize:"text-transform:capitalize",visible:"visibility:visible",invisible:"visibility:hidden","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}},go=zo;var _o=["dark","light"],xo=_o;var Vo={storage:{sync:!0,key:"scheme"}},vo=Vo;var Zr={content:"content-box",border:"border-box",padding:"padding-box"},zi={min:"min-content",max:"max-content"},X={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Yr)X[r]=Yr[r]/16+"rem";var Ho={BackgroundClip:Zr,BackgroundOrigin:Zr,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Zr,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:zi,GridAutoRows:zi,GridTemplateColumns:zi,GridTemplateRows:zi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Zr,margin:"margin-box"},TransformBox:{...Zr,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:X,MinWidth:X,MinHeight:X,MaxWidth:X,MaxHeight:X,Height:X,FlexBasis:X},bo=Ho;function _i(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function yo(r){let o=m=>m==="+"||m==="-"||m==="*"||m==="/",i="",n,s="",f=!1;function v(){n=null,s=""}for(let m=0;m<r.length;m++){let c=r[m];if(c==="("||c===")")f=c===")",i+=s+c,v();else if(c===",")i+=s+c+" ",v();else{switch(n){case 1:break;case 2:if(o(c)){i+=s+" "+c+" ",v();continue}break;default:f&&(s+=" "),isNaN(+c)?o(c)||(n=1):n=2;break}s+=c}}return s&&(i+=s),i}var $o=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Uo="var(--";function Vi(r,o,i,n,s,f,v){let m="",c="",p="",h;if(n&&r in n)return{value:n[r].toString(),unit:c,unitToken:p};if(s&&r in s)return{value:s[r].toString(),unit:c,unitToken:p};if(typeof r=="number")m=r,c=o||"";else{if(i){let x=Object.keys(i),a=!1,d=!1;r=r.replace(new RegExp(`(^|,| |\\()(${x.join("|")})(?:-([0-9A-Za-z]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(R,g,l,u,C)=>{var T;d=!0;let b=(T=i[l])==null?void 0:T[u||""];if(b){let y;for(let M of v)if(y=b[M])break;if(y){a=!0;let M=y;if(C){let O=C.endsWith("%")?parseFloat(C)/100:+C;O=isNaN(O)?1:Math.min(Math.max(O,0),1),M+=Math.round(O*255).toString(16).toUpperCase().padStart(2,"0")}return g+M}}return R}),d&&(h=a)}if(o){let x=r.match($o);if(x)if(r.includes("/")){let a=r.split("/");return{value:+a[0]/+a[1]*100+"%",unit:c,unitToken:p}}else return m=+x[1],c=p=x[3]||"",c||((o==="rem"||o==="em")&&(m=m/f),c=o||""),{value:m,unit:c,unitToken:p}}m=(r.indexOf("calc(")===-1?r:yo(r)).replace(/\$\(((\w|-)+)\)/g,Uo+"$1)")}return{value:m,unit:c,unitToken:p,colorMatched:h}}var st={"(":")","'":"'","{":"}"};var Ro=[":disabled",":active",":focus",":hover"],Hi="matches",Qo="semantics",So="symbol",ko="width",io="max-"+ko,oo="min-"+ko,ao="motion",Co="reduce",To=Co+"d-"+ao,so="px",Yo="rem",Xo=["!","*",">","+","~",":","[","@","_"],Zo=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Jo=r=>r.split(Zo).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,n){this.className=o;this.matching=i;this.css=n;e(this,"prefix");e(this,"symbol");e(this,"token");e(this,"prefixSelectors");e(this,"vendorSuffixSelectors");e(this,"important");e(this,"media");e(this,"at",{});e(this,"direction");e(this,"theme");e(this,"unitToken");e(this,"hasWhere");e(this,"priority",-1);e(this,"natives",[]);let s=this.constructor,{id:f,unit:v,colorful:m,prop:c}=s,{breakpoints:p,mediaQueries:h,semantics:x,rootSize:a}=n.config,{themeNames:d,colorsThemesMap:R,selectors:g,globalValues:l}=n,u=n.values[f],C=n.relationThemesMap[o],b=o,T,y,M,O;if(i.origin===Qo)M=b.slice(i.value.length),T=x[i.value];else{let W;if(i.origin===Hi)if(f==="Group"){let A=0;for(;A<b.length&&!(b[A]==="{"&&b[A-1]!=="\\");A++);y=b.slice(0,A),W=b.slice(A)}else{let A=b.indexOf(":");this.prefix=b.slice(0,A+1),this.prefix.includes("(")?(this.prefix=void 0,W=b):W=b.slice(A+1)}else i.origin===So&&(this.symbol=b[0],W=b.slice(1));O=[];let k="",w=0;(function A(E,B,I=""){let S,F=!1;for(E&&(E===")"&&k.slice(-1)==="$"?S=k.length-1:E==="'"&&(F=!0),k+=W[w++]);w<W.length;w++){let D=W[w];if(D===E){if(k+=D,F){let j=0;for(let V=k.length-2;k[V]==="\\";V--)j++;if(j%2)continue}S!==void 0&&(k=k.slice(0,S)+k.slice(S).replace(/\$\((.*)\)/,"var(--$1)")),B||(F?O.push(k):O.push({value:k}),I="",k="");break}else if(!F&&D in st)A(st[D],B===void 0?0:B+1,I);else if(D==="|"&&E!=="}"&&(!F||I==="path"))E?k+=" ":(O.push({value:k}),k="");else{if(!E){if(D==="."){if(isNaN(+W[w+1]))break;W[w-1]==="-"&&(k+="0")}else if(D===","){O.push({value:k},","),k="";continue}else if(D==="#"&&(k||O.length&&W[w-1]!=="|")||Xo.includes(D))break;I+=D}k+=D}}})(),k&&O.push({value:k}),M=W.slice(w)}M[0]==="!"&&(this.important=!0,M=M.slice(1));let P=W=>{let k=Jo(W),w=[],A="",E=0;for(let B=0;B<k.length;B++){let I=k[B];if(I==="\\"){A+=I+k[++B];continue}!E&&I===","?(w.push(A),A=""):(A+=I,E&&I===")"?E--:I==="("&&E++)}return A&&w.push(A),w};this.prefixSelectors=y?P(y):[""];let z=M.split("@"),H=z[0];if(H){this.vendorSuffixSelectors={};let W=(B,I,S,F)=>{for(let[D,j]of I)if(D.test(B)){for(let V of j)W(B.replace(D,V),I,S,!0);return}F&&S.push(B)},k=[];""in g?W(H,g[""],k,!0):k.push(H);let w={};for(let[B,I]of Object.entries(g)){if(!B)continue;let S=[];for(let F of k)W(F,I,S,!1);S.length&&(w[B]=S)}let A=(B,I)=>{let S=I.reduce((F,D)=>(F.push(...P(D)),F),[]);B in this.vendorSuffixSelectors?this.vendorSuffixSelectors[B].push(...S):this.vendorSuffixSelectors[B]=S},E=Object.keys(w);if(E.length)for(let B of E)A(B,w[B]);else A("",k);for(let B of Object.values(this.vendorSuffixSelectors))for(let I of B){this.hasWhere!==!1&&(this.hasWhere=I.includes(":where("));for(let S=0;S<Ro.length;S++)if(I.includes(Ro[S])){(this.priority===-1||this.priority>S)&&(this.priority=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<z.length;W++){let k=z[W];if(k)if(d.includes(k))this.theme=k;else if(k==="rtl"||k==="ltr")this.direction=k;else{let w,A,E=k.indexOf("_");if(E!==-1)w=k.slice(0,E),A=k.slice(E);else{let B=k.indexOf("(");B!==-1&&(w=k.slice(0,B),A=k.slice(B))}if(!w){w="media";let B=[];this.media={token:k,features:{}};let I=k.split("&");for(let S of I)if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")B.push("(orientation:"+S+")");else if(S===ao||S===To)B.push("(prefers-"+To+":"+(S===ao?"no-preference":Co)+")");else if(h&&S in h)B.push(h[S]);else{let F={token:S},D="",j="",V=0;S.startsWith("<=")?(j="<=",D=io):S.startsWith(">=")||p[S]?(j=">=",D=oo):S.startsWith(">")?(j=">",D=oo,V=.02):S.startsWith("<")&&(j="<",D=io,V=-.02);let Y=j?S.replace(j,""):S,L=p[Y];switch(D){case io:case oo:L?Object.assign(F,Vi(L,so)):Object.assign(F,Vi(Y,so)),F.unit===so&&(F.value+=V),this.media.features[D]=F,B.push("("+D+":"+(F.value+F.unit)+")");break}}A="",this.media.type&&(A=this.media.type),B.length&&(A+=(A?" and ":"")+B.join(" and "))}A&&(this.at[w]=(w in this.at?this.at[w]+" and ":"")+A.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let ae=(W,k)=>{let w,A,E=(I,S,F)=>{let D="";this.direction&&(D+="[dir="+this.direction+"] ");let j=this.prefixSelectors.map(L=>L+D),V=(L,Gi)=>{let Qr=L?"."+L+" ":"",eo="."+CSS.escape(Gi);return j.map(ne=>Qr+ne).reduce((ne,Wo)=>(ne.push(F.reduce((co,Po)=>(co.push(Wo+eo+Po),co),[]).join(",")),ne),[]).join(",")},Y=V(S,o)+(C?Object.entries(C).filter(([L])=>this.theme||!m||!S||!L||L===S).map(([L,Gi])=>Gi.reduce((Qr,eo)=>{var ne;return Qr+","+V((ne=this.theme)!=null?ne:m&&S||L,eo)},"")).join(""):"")+"{"+I+"}";for(let L of Object.keys(this.at).sort((Gi,Qr)=>Qr==="supports"?-1:1))Y="@"+L+" "+this.at[L]+"{"+Y+"}";return Y},B=[];if(O){let I,S;for(let F of O)typeof F=="string"?B.push(F):(I=Vi(F.value,v,m&&R,u,l,a,this.theme?[this.theme,""]:[W]),I.colorMatched!==void 0&&S!==!0&&(S=I.colorMatched),B.push(I.value+I.unit));if(k&&(S===void 0?W:!S))return;if(B.length===1?I?(w=I.value,A=I.unit):w=B[0]:w=B.reduce((F,D,j)=>F+D+(D===","||O[j+1]===","||j===O.length-1?"":" "),""),typeof w!="object"){this.parseValue&&(w=this.parseValue(w,this.css.config)),m&&w==="current"?w="currentColor":u&&w in u?w=u[w].toString():w in l&&(w=l[w].toString());let F={unit:A,value:w,important:this.important};if(this.getThemeProps){let D=this.getThemeProps(F,n);for(let j in D)for(let V of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:A,value:w,text:E(Object.entries(D[j]).map(([Y,L])=>_i(Y,{important:this.important,unit:"",value:L})).join(";"),j,V),theme:j});return}else this.get&&(w=this.get(F))}}else w=T;for(let I of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:A,value:w,text:E(typeof w=="object"?Object.entries(w).map(([S,F])=>_i(S,{...typeof F=="object"?F:{unit:"",value:F},important:this.important})).join(";"):_i(c,{unit:A,value:w,important:this.important}),W,I),theme:W})};if(this.getThemeProps)ae(void 0,!1);else if(this.theme)ae(this.theme,!1);else if(m)for(let W of d)ae(W,!0);else ae("",!1)}static get prop(){var o;return(o=this.id)==null?void 0:o.replace(/(?!^)[A-Z]/g,i=>"-"+i).toLowerCase()}static match(o,i){let{matches:n,colorStarts:s,symbol:f,prop:v}=this;if(n&&n.test(o))return{origin:Hi};if(s&&(o.match("^"+s+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))")||i.length&&o.match("^"+s+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:Hi};if(f&&o.startsWith(f))return{origin:So};if(v&&o.startsWith(v+":"))return{origin:Hi}}};e(t,"id"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Yo),e(t,"colorful");var ce=class extends t{};e(ce,"id","FontWeight"),e(ce,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(ce,"unit","");var at=class extends t{};e(at,"id","FontFamily"),e(at,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/);var nt=class extends t{};e(nt,"id","FontSize"),e(nt,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var de=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",s=i+"-right",f=i+"-top",v=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[f]:r,[v]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[f]:r};case"b":return{[v]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(de,"id","Spacing"),e(de,"matches",/^[pm][xytblr]?:./),e(de,"prop","");var lt=class extends t{};e(lt,"id","Width"),e(lt,"matches",/^w:./);var ct=class extends t{};e(ct,"id","Height"),e(ct,"matches",/^h:./);var dt=class extends t{};e(dt,"id","MinWidth"),e(dt,"matches",/^min-w:./);var ft=class extends t{};e(ft,"id","MinHeight"),e(ft,"matches",/^min-h:./);var fe=class extends t{};e(fe,"id","LetterSpacing"),e(fe,"matches",/^ls:./),e(fe,"unit","em");var qo="subpixel-antialiased",wo="-webkit-font-smoothing",Oo="-moz-osx-font-smoothing",Z=class extends t{get(r){let o={};switch(r.value){case qo:o[wo]=o[Oo]={...r,value:"auto"};break;case"antialiased":o[wo]={...r,value:"antialiased"},o[Oo]={...r,value:"grayscale"};break}return o}};e(Z,"id","FontSmoothing"),e(Z,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(Z,"unit",""),e(Z,"prop","");var me=class extends t{};e(me,"id","FontStyle"),e(me,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(me,"unit","deg");var mt=class extends t{};e(mt,"id","FontVariantNumeric"),e(mt,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/);var ue=class extends t{};e(ue,"id","LineHeight"),e(ue,"matches",/^lh:./),e(ue,"unit","");var ut=class extends t{};e(ut,"id","ObjectFit"),e(ut,"matches",/^(object|obj):(contain|cover|fill|scale-down)/);var pt=class extends t{};e(pt,"id","ObjectPosition"),e(pt,"matches",/^(object|obj):(top|bottom|right|left|center)/);var ht=class extends t{};e(ht,"id","TextAlign"),e(ht,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/);var pe=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(pe,"id","TextDecoration"),e(pe,"matches",/^t(ext)?:(underline|line-through|overline)/),e(pe,"colorful",!0);var gt=class extends t{};e(gt,"id","TextTransform"),e(gt,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/);var xt=class extends t{};e(xt,"id","VerticalAlign"),e(xt,"matches",/^(?:v|vertical):./);var J=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(J,"id","Lines"),e(J,"matches",/^lines:./),e(J,"unit",""),e(J,"prop","");var he=class extends t{};e(he,"id","TransformOrigin"),e(he,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(he,"unit","px");var vt=class extends t{};e(vt,"id","TransformStyle"),e(vt,"matches",/^transform:(flat|preserve-3d)(?!\|)/);var bt=class extends t{};e(bt,"id","TransformBox"),e(bt,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/);var ge=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,n,s,f)=>{let v,m;switch(n){case"translate":v="rem";break;case"skew":v="deg";break;case"rotate":s==="3d"&&(m=!0),v="deg";break;default:return i}let c=f.split(",");return i.replace(f,c.map((p,h)=>!m||c.length-1===h?Number.isNaN(+p)?p:p/(v==="rem"?o:1)+v:p).join(","))})}};e(ge,"id","Transform"),e(ge,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(ge,"unit","");var yt=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(yt,"id","Transition"),e(yt,"symbol","~");var xe=class extends t{};e(xe,"id","TransitionDelay"),e(xe,"matches",/^~delay:./),e(xe,"unit","ms");var ve=class extends t{};e(ve,"id","TransitionDuration"),e(ve,"matches",/^~duration:./),e(ve,"unit","ms");var Rt=class extends t{};e(Rt,"id","TransitionProperty"),e(Rt,"matches",/^~property:./);var St=class extends t{};e(St,"id","TransitionTimingFunction"),e(St,"matches",/^~easing:./);var Tt=class extends t{};e(Tt,"id","MaxHeight"),e(Tt,"matches",/^max-h:./);var kt=class extends t{};e(kt,"id","MaxWidth"),e(kt,"matches",/^max-w:./);var Ct=class extends t{};e(Ct,"id","Display"),e(Ct,"matches",/^d:./);var wt=class extends t{};e(wt,"id","BoxSizing"),e(wt,"matches",/^box:(content|border)(?!\|)/);var Ot=class extends t{};e(Ot,"id","Opacity"),e(Ot,"unit","");var Jr=class extends t{};e(Jr,"id","Visibility");var qr=class extends t{};e(qr,"id","Clear");var Kr=class extends t{};e(Kr,"id","Float");var ei=class extends t{};e(ei,"id","Isolation");var be=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(be,"id","Overflow"),e(be,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/),e(be,"prop","");var ye=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(ye,"id","OverscrollBehavior"),e(ye,"matches",/^overscroll-behavior(?:-[xy])?:/),e(ye,"prop","");var Re=class extends t{};e(Re,"id","ZIndex"),e(Re,"matches",/^z:./),e(Re,"unit","");var Se=class extends t{};e(Se,"id","AnimationDelay"),e(Se,"matches",/^@delay:./),e(Se,"unit","ms");var Mt=class extends t{};e(Mt,"id","AnimationDirection"),e(Mt,"matches",/^@direction:./);var Bt=class extends t{};e(Bt,"id","AnimationFillMode"),e(Bt,"matches",/^@fill-mode:./);var Te=class extends t{};e(Te,"id","AnimationIterationCount"),e(Te,"matches",/^@iteration-count:./),e(Te,"unit","");var At=class extends t{};e(At,"id","AnimationName"),e(At,"matches",/^@name:./);var It=class extends t{};e(It,"id","AnimationPlayState"),e(It,"matches",/^@play-state:./);var Ft=class extends t{};e(Ft,"id","AnimationTimingFunction"),e(Ft,"matches",/^@easing:./);var ke=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(ke,"id","Animation"),e(ke,"symbol","@"),e(ke,"unit","");var $i="border-";function q(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],s=$i+"left"+i,f=$i+"right"+i,v=$i+"top"+i,m=$i+"bottom"+i;switch(n){case"x":return{[s]:o,[f]:o};case"y":return{[v]:o,[m]:o};case"l":return{[s]:o};case"r":return{[f]:o};case"t":return{[v]:o};case"b":return{[m]:o};default:return{["border"+i]:o}}}var $=class extends t{get(r){return q(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e($,"id","BorderColor"),e($,"matches",/^border(-(left|right|top|bottom))?-color:./),e($,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e($,"colorful",!0),e($,"prop","");var Ui="border-top-left-radius",Qi="border-top-right-radius",Yi="border-bottom-left-radius",Xi="border-bottom-right-radius",Mo="border-radius",Ko=[Ui,Qi,Yi,Xi],Ce=class extends t{get(r){var i;if(this.prefix){let n="",s=this.prefix.split("-");if(s.length>1)for(let f=1;f<s.length-1;f++)n+=s[f][0];else n=this.prefix.slice(1,-1);switch(n){case"t":return{[Ui]:r,[Qi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Qi]:r};case"b":return{[Yi]:r,[Xi]:r};case"bl":case"lb":return{[Yi]:r};case"br":case"rb":return{[Xi]:r};case"l":return{[Ui]:r,[Yi]:r};case"r":return{[Qi]:r,[Xi]:r};default:return{[Mo]:r}}}let o=(i=this.prefix)==null?void 0:i.slice(0,-1);return{[Ko.includes(o)?o:Mo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Ce,"id","BorderRadius"),e(Ce,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/),e(Ce,"prop","");var we=class extends t{get(r){return q(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(we,"id","BorderStyle"),e(we,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/),e(we,"prop","");var Oe=class extends t{get(r){return q(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Oe,"id","BorderWidth"),e(Oe,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Oe,"prop","");var K=class extends t{get(r){return q(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(K,"id","Border"),e(K,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(K,"colorful",!0),e(K,"prop","");var Dt=class extends t{};e(Dt,"id","BackgroundAttachment"),e(Dt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/);var ti=class extends t{};e(ti,"id","BackgroundBlendMode");var Wt=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(Wt,"id","BackgroundClip"),e(Wt,"matches",/^(bg|background):text(?!\|)/);var ee=class extends t{};e(ee,"id","BackgroundColor"),e(ee,"colorStarts","(bg|background):"),e(ee,"unit",""),e(ee,"colorful",!0);var Pt=class extends t{};e(Pt,"id","BackgroundOrigin"),e(Pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/);var Me=class extends t{};e(Me,"id","BackgroundPosition"),e(Me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(Me,"unit","px");var Et=class extends t{};e(Et,"id","BackgroundRepeat"),e(Et,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/);var Nt=class extends t{};e(Nt,"id","BackgroundSize"),e(Nt,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/);var Be=class extends t{};e(Be,"id","BackgroundImage"),e(Be,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(Be,"colorful",!0);var Ae=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Ae,"id","Background"),e(Ae,"matches",/^bg:./),e(Ae,"colorful",!0);var jt=class extends t{};e(jt,"id","MixBlendMode"),e(jt,"matches",/^blend:./);var ri=class extends t{};e(ri,"id","Position");var Ie=class extends t{get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Ie,"id","Placement"),e(Ie,"matches",/^(top|left|right|bottom|center|middle):./),e(Ie,"prop","");function Zi(r,o,{rootSize:i}){let n="",s=0;return function f(v,m){let c="",p=m?o(m):"",h=()=>{c&&(n+=!p||Number.isNaN(+c)?c:+c/(p==="rem"?i:1)+p,c="")};for(;s<r.length;s++){let x=r[s];if(x===v&&(v!=="'"||r[s+1]===")")){h(),n+=x;break}else x===","||x===" "?(h(),n+=x):!c&&x==="'"?(n+=x,s++,f(x),c=""):c&&x==="("?(n+=c+x,s++,f(")",c),c=""):c+=x}h()}(),n}var Fe=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Zi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(Fe,"id","BackdropFilter"),e(Fe,"matches",/^bd:./),e(Fe,"colorful",!0);var De=class extends t{};e(De,"id","Fill"),e(De,"colorStarts","fill:"),e(De,"colorful",!0);var Lt=class extends t{};e(Lt,"id","Stroke"),e(Lt,"colorful",!0);var Gt=class extends t{};e(Gt,"id","StrokeWidth"),e(Gt,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var We=class extends t{parseValue(r,o){return Zi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(We,"id","Filter"),e(We,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(We,"colorful",!0);var ii=class extends t{};e(ii,"id","Cursor");var oi=class extends t{};e(oi,"id","PointerEvents");var si=class extends t{};e(si,"id","Resize");var ai=class extends t{};e(ai,"id","TouchAction");var ni=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(ni,"id","UserDrag");var li=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(li,"id","UserSelect");var Pe=class extends t{};e(Pe,"id","BoxShadow"),e(Pe,"matches",/^s(?:hadow)?:./),e(Pe,"colorful",!0);var zt=class extends t{};e(zt,"id","TextShadow"),e(zt,"colorful",!0);var Bo=.5,Ee=class extends t{get(r){let{unit:o,value:i}=r;return{"font-size":r,"line-height":{...r,value:o==="rem"?i+Bo+o:`calc(${i}${o} + ${Bo}rem)`,unit:""}}}};e(Ee,"id","TextSize"),e(Ee,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ee,"prop","");var _t=class extends t{};e(_t,"id","WordBreak"),e(_t,"unit","");var Ne=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Ne,"id","GridColumns"),e(Ne,"matches",/^grid-cols:./),e(Ne,"unit","");var Vt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Vt,"id","GridRows"),e(Vt,"unit","");var je=class extends t{constructor(){super(...arguments);e(this,"order",-1)}get(o){switch(this.prefix[4]){case"x":return{"column-gap":o};case"y":return{"row-gap":o};default:return{gap:o}}}};e(je,"id","Gap"),e(je,"matches",/^gap(-x|-y)?:./),e(je,"prop","");var Ht=class extends t{};e(Ht,"id","WordSpacing"),e(Ht,"unit","em");var te=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(te,"id","Variable"),e(te,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(te,"unit",""),e(te,"prop","");var Le=class extends t{};e(Le,"id","AspectRadio"),e(Le,"matches",/^aspect:./),e(Le,"unit","");var $t=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e($t,"id","BoxDecorationBreak"),e($t,"matches",/^box:(slice|clone)(?!\|)/);var ci=class extends t{};e(ci,"id","BreakAfter");var di=class extends t{};e(di,"id","BreakBefore");var fi=class extends t{};e(fi,"id","BreakInside");var Ut=class extends t{};e(Ut,"id","FlexShrink"),e(Ut,"unit","");var Qt=class extends t{};e(Qt,"id","FlexDirection"),e(Qt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/);var Yt=class extends t{};e(Yt,"id","FlexGrow"),e(Yt,"unit","");var Xt=class extends t{};e(Xt,"id","FlexWrap"),e(Xt,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/);var mi=class extends t{};e(mi,"id","FlexBasis");var Zt=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Zt,"id","Flex"),e(Zt,"unit","");var Ge=class extends t{};e(Ge,"id","Order"),e(Ge,"matches",/^o:./),e(Ge,"unit","");var ze=class extends t{constructor(){super(...arguments);e(this,"order",-1)}parseValue(o){return this.prefix.slice(-5,-1)==="span"&&o!=="auto"?"span "+o+"/span "+o:o}};e(ze,"id","GridColumn"),e(ze,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(ze,"unit","");var Jt=class extends t{};e(Jt,"id","ColumnSpan"),e(Jt,"matches",/^col-span:./);var _e=class extends t{constructor(){super(...arguments);e(this,"order",-1)}parseValue(o){return this.prefix.slice(-5,-1)==="span"&&o!=="auto"?"span "+o+"/span "+o:o}};e(_e,"id","GridRow"),e(_e,"matches",/^grid-row-span:./),e(_e,"unit","");var re=class extends t{};e(re,"id","Color"),e(re,"colorStarts","(?:color|fg|foreground):"),e(re,"colorful",!0),e(re,"unit","");var qt=class extends t{};e(qt,"id","AlignContent"),e(qt,"matches",/^ac:./);var Kt=class extends t{};e(Kt,"id","AlignItems"),e(Kt,"matches",/^ai:./);var er=class extends t{};e(er,"id","AlignSelf"),e(er,"matches",/^as:./);var tr=class extends t{};e(tr,"id","GridAutoColumns"),e(tr,"matches",/^grid-auto-cols:./);var rr=class extends t{};e(rr,"id","GridAutoFlow"),e(rr,"matches",/^grid-flow:./);var ui=class extends t{};e(ui,"id","GridAutoRows");var ir=class extends t{};e(ir,"id","JustifyContent"),e(ir,"matches",/^jc:./);var or=class extends t{};e(or,"id","JustifyItems"),e(or,"matches",/^ji:./);var sr=class extends t{};e(sr,"id","JustifySelf"),e(sr,"matches",/^js:./);var pi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(pi,"id","PlaceContent");var hi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(hi,"id","PlaceItems");var gi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(gi,"id","PlaceSelf");var Ve=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(Ve,"id","Padding"),e(Ve,"matches",/^padding(?:-(?:left|right|top|bottom))?:./),e(Ve,"prop","");var He=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(He,"id","Margin"),e(He,"matches",/^margin(-(left|right|top|bottom))?:./),e(He,"prop","");var ar=class extends t{};e(ar,"id","TextOverflow"),e(ar,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/);var nr=class extends t{};e(nr,"id","ListStylePosition"),e(nr,"matches",/^list-style:(inside|outside)(?!\|)/);var lr=class extends t{};e(lr,"id","ListStyleType"),e(lr,"matches",/^list-style:(disc|decimal)(?!\|)/);var xi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(xi,"id","ListStyle");var $e=class extends t{};e($e,"id","TextDecorationColor"),e($e,"colorStarts","text-decoration:"),e($e,"colorful",!0);var cr=class extends t{};e(cr,"id","TextDecorationStyle"),e(cr,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/);var Ue=class extends t{};e(Ue,"id","TextDecorationThickness"),e(Ue,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ue,"unit","em");var vi=class extends t{};e(vi,"id","TextIndent");var bi=class extends t{};e(bi,"id","Content");var Qe=class extends t{};e(Qe,"id","OutlineColor"),e(Qe,"colorStarts","outline:"),e(Qe,"colorful",!0);var yi=class extends t{};e(yi,"id","OutlineOffset");var dr=class extends t{};e(dr,"id","OutlineStyle"),e(dr,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/);var fr=class extends t{};e(fr,"id","OutlineWidth"),e(fr,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var mr=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(mr,"id","Outline"),e(mr,"colorful",!0);var ur=class extends t{};e(ur,"id","BorderCollapse"),e(ur,"matches",/^b(order)?:(collapse|separate)(?!\|)/);var Ri=class extends t{};e(Ri,"id","BorderSpacing");var Si=class extends t{};e(Si,"id","TableLayout");var Ye=class extends t{};e(Ye,"id","AccentColor"),e(Ye,"colorStarts","accent:"),e(Ye,"colorful",!0);var Ti=class extends t{};e(Ti,"id","Appearance");var Xe=class extends t{};e(Xe,"id","CaretColor"),e(Xe,"colorStarts","caret:"),e(Xe,"colorful",!0);var ki=class extends t{};e(ki,"id","ScrollBehavior");var Ze=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(Ze,"id","ScrollMargin"),e(Ze,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./),e(Ze,"prop","");var Je=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(Je,"id","ScrollPadding"),e(Je,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./),e(Je,"prop","");var pr=class extends t{};e(pr,"id","ScrollSnapAlign"),e(pr,"matches",/^scroll-snap:(start|end|center)/);var hr=class extends t{};e(hr,"id","ScrollSnapStop"),e(hr,"matches",/^scroll-snap:(normal|always)(?!\|)/);var gr=class extends t{};e(gr,"id","ScrollSnapType"),e(gr,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/);var Ci=class extends t{};e(Ci,"id","WillChange");var wi=class extends t{};e(wi,"id","TextUnderlineOffset");var xr=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(xr,"id","Inset"),e(xr,"matches",/^(?:top|bottom|left|right):./);var qe=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(qe,"id","Columns"),e(qe,"matches",/^(columns|cols):./),e(qe,"unit","");var vr=class extends t{};e(vr,"id","WhiteSpace"),e(vr,"unit","");var br=class extends t{};e(br,"id","TextOrientation"),e(br,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/);var yr=class extends t{};e(yr,"id","WritingMode"),e(yr,"matches",/^writing:./);var Oi=class extends t{};e(Oi,"id","Contain");var Ke=class extends t{};e(Ke,"id","AnimationDuration"),e(Ke,"matches",/^@duration:./),e(Ke,"unit","ms");var Rr=class extends t{};e(Rr,"id","TextRendering"),e(Rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/);var Mi=class extends t{};e(Mi,"id","Direction");var Sr=class extends t{};e(Sr,"id","TextDecorationLine"),e(Sr,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/);var et=class extends t{};e(et,"id","GridColumnStart"),e(et,"matches",/^grid-col-start:./),e(et,"unit","");var Tr=class extends t{};e(Tr,"id","ListStyleImage"),e(Tr,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/);var kr=class extends t{};e(kr,"id","ShapeOutside"),e(kr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/);var Cr=class extends t{};e(Cr,"id","ShapeMargin"),e(Cr,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var wr=class extends t{};e(wr,"id","ShapeImageThreshold"),e(wr,"unit","");var Or=class extends t{};e(Or,"id","ClipPath"),e(Or,"matches",/^clip:./);var Bi=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Bi,"id","Grid");var tt=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(tt,"id","Font"),e(tt,"matches",/^f:./),e(tt,"unit","");var Ai=class extends t{};e(Ai,"id","Quotes");var Ii=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Ii,"id","GridTemplate");var Mr=class extends t{};e(Mr,"id","GridRowStart"),e(Mr,"unit","");var Fi=class extends t{};e(Fi,"id","GridTemplateAreas");var Br=class extends t{};e(Br,"id","GridTemplateColumns"),e(Br,"matches",/^grid-template-cols:./);var Di=class extends t{};e(Di,"id","GridTemplateRows");var Ar=class extends t{constructor(){super(...arguments);e(this,"order",-1)}};e(Ar,"id","GridArea"),e(Ar,"unit","");var rt=class extends t{};e(rt,"id","GridColumnEnd"),e(rt,"matches",/^grid-col-end:./),e(rt,"unit","");var Ir=class extends t{};e(Ir,"id","GridRowEnd"),e(Ir,"unit","");var Wi=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Wi,"id","MaskImage");var U=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(U,"id","TextFillColor"),e(U,"matches",/^text-fill-color:./),e(U,"colorStarts","(text-fill|text|t):"),e(U,"colorful",!0),e(U,"prop","");var it=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(it,"id","TextStroke"),e(it,"matches",/^text-stroke:./),e(it,"prop","");var ot=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(ot,"id","TextStrokeWidth"),e(ot,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/),e(ot,"prop","");var Q=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Q,"id","TextStrokeColor"),e(Q,"matches",/^text-stroke-color:./),e(Q,"colorStarts","text-stroke:"),e(Q,"colorful",!0),e(Q,"prop","");var Pi=class extends t{};e(Pi,"id","StrokeDasharray");var Ei=class extends t{};e(Ei,"id","StrokeDashoffset");var Fr=class extends t{};e(Fr,"id","X"),e(Fr,"unit","");var Dr=class extends t{};e(Dr,"id","Y"),e(Dr,"unit","");var Wr=class extends t{};e(Wr,"id","Cx"),e(Wr,"unit","");var Pr=class extends t{};e(Pr,"id","Cy"),e(Pr,"unit","");var Er=class extends t{};e(Er,"id","Rx"),e(Er,"unit","");var Nr=class extends t{};e(Nr,"id","Ry"),e(Nr,"unit","");var Ni=class extends t{};e(Ni,"id","BorderImageOutset");var jr=class extends t{};e(jr,"id","BorderImageRepeat"),e(jr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/);var Lr=class extends t{};e(Lr,"id","BorderImageSlice"),e(Lr,"unit","");var Gr=class extends t{};e(Gr,"id","BorderImageSource"),e(Gr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/);var zr=class extends t{};e(zr,"id","BorderImageWidth"),e(zr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/);var _r=class extends t{};e(_r,"id","BorderImage"),e(_r,"unit","");var es=/\{(.*)\}/,ie=class extends t{getThemeProps(r,o){var p;let i={},n=(h,x)=>{let a=x.indexOf(":");if(a!==-1){h in i||(i[h]={});let d=i[h],R=x.slice(0,a);R in d||(d[R]=x.slice(a+1))}},s=h=>{var a;let x=(d,R)=>{let g=R.slice(CSS.escape(h.className).length).match(es)[1].split(";");for(let l of g)n(d,l)};if(this.theme){let d=(a=h.natives.find(R=>R.theme===this.theme))!=null?a:h.natives.find(R=>!R.theme);d&&x(this.theme,d.text)}else for(let d of h.natives)x(d.theme,d.text)},f=[],v="",m=()=>{v&&(f.push(v),v="")},c=1;(function h(x){for(;c<r.value.length;c++){let a=r.value[c];if(!x){if(a===";"){m();continue}if(a==="}")break}if(v+=a,x===a){if(x==="'"){let d=0;for(let R=v.length-2;v[R]==="\\";R--)d++;if(d%2)continue}break}else a in st&&x!=="'"&&(c++,h(st[a]))}})(void 0),m();for(let h of f){let x=o.findAndNew(h);if(Array.isArray(x))for(let a of x)s(a);else x?s(x):n((p=this.theme)!=null?p:"",h)}return i}};e(ie,"id","Group"),e(ie,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(ie,"unit",""),e(ie,"prop","");var Vr=class extends t{};e(Vr,"id","CounterIncrement"),e(Vr,"unit","");var Hr=class extends t{};e(Hr,"id","CounterReset"),e(Hr,"unit","");var ts=[ie,te,nt,ce,at,Z,me,mt,tt,re,de,He,Ve,mi,Xt,Yt,Ut,Qt,Zt,Ct,lt,ct,dt,ft,Oi,bi,Vr,Hr,fe,ue,ut,pt,ht,$e,cr,Ue,Sr,pe,wi,ar,br,gt,Rr,vi,xt,qe,vr,xr,J,Tt,kt,wt,Ot,Jr,qr,Kr,ei,be,ye,Re,ri,Ie,ii,oi,si,ai,_t,Ht,ni,li,zt,Ee,U,ot,Q,it,Pe,Si,bt,vt,he,ge,Rt,St,ve,xe,yt,Se,Mt,Ke,Bt,Te,At,It,Ft,ke,$,Ce,we,Oe,ur,Ri,Ni,jr,Lr,Gr,zr,_r,K,Dt,ti,Wt,ee,Pt,Me,Et,Nt,Be,Ae,jt,Fe,We,De,Pi,Ei,Gt,Lt,Fr,Dr,Wr,Pr,Er,Nr,et,rt,ze,Ne,Mr,Ir,_e,Vt,tr,rr,ui,Fi,Br,Di,Ii,Ar,Bi,je,Ge,fi,di,ci,$t,Le,Jt,qt,Kt,er,ir,or,sr,pi,hi,gi,nr,lr,Tr,xi,Qe,yi,dr,fr,mr,Ye,Ti,Xe,ki,Ze,Je,pr,hr,gr,Ci,yr,Mi,kr,Cr,wr,Or,Ai,Wi],Ao=ts;var rs={colors:uo,breakpoints:Yr,semantics:go,values:bo,selectors:ho,themes:xo,scheme:vo,Rules:Ao,rootSize:po},no=rs;function Io(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function Ji(r){return Object.prototype.toString.call(r).slice(8,-1)}function $r(r){return Ji(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function lo(r){return Ji(r)==="Symbol"}function Fo(r,o,i,n){let s={}.propertyIsEnumerable.call(n,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Do(r,o,i){if(!$r(o))return o;let n={};if($r(r)){let m=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...m,...c].reduce((p,h)=>{let x=r[h];return(!lo(h)&&!Object.getOwnPropertyNames(o).includes(h)||lo(h)&&!Object.getOwnPropertySymbols(o).includes(h))&&Fo(p,h,x,r),p},{})}let s=Object.getOwnPropertyNames(o),f=Object.getOwnPropertySymbols(o);return[...s,...f].reduce((m,c)=>{let p=o[c],h=$r(r)?r[c]:void 0;h!==void 0&&$r(p)&&(p=Do(h,p,i));let x=i?i(h,p,c):p;return Fo(m,c,x,o),m},n)}function qi(r,...o){return o.filter(i=>$r(i)).reduce((i,n)=>Do(i,n,Io),r)}var is=[",",".","#","[","!","*",">","+","~",":","@"],os=/^::-[a-z]+-/m,Ki,Li=typeof window!="undefined";Li&&(Ki=document.createElement("style"),Ki.title="master");var _="max-width",G="min-width",ss="attributes",as=Li?window.MutationObserver:Object,Ur,oe,ji=class extends as{constructor(i){super(n=>{let s={},f=[],v=[],m=[],c=(a,d)=>{d?a.classList.forEach(h):a.classList.forEach(p);let R=a.children;for(let g=0;g<R.length;g++){let l=R[g];l.classList&&(v.push(l),c(l,d))}},p=a=>{a in s?s[a]++:s[a]=1},h=a=>{a in s?s[a]--:s[a]=-1},x=(a,d)=>{for(let R=0;R<a.length;R++){let g=a[R];g.classList&&!v.includes(g)&&!m.includes(g)&&(g.isConnected!==d?(v.push(g),c(g,d)):m.push(g))}};for(let a=0;a<n.length;a++){let d=n[a],{addedNodes:R,removedNodes:g,type:l,target:u,oldValue:C}=d;if(l===ss){if(u.className===C||f.find(b=>b.target===u))continue;f.push(d)}else x(R,!1),x(g,!0)}if(!(!f.length&&!Object.keys(s).length)){for(let{oldValue:a,target:d}of f){let R=v.includes(d),g=d.classList,l=a?a.split(" "):[];if(R){if(d.isConnected)continue;for(let u of l)g.contains(u)||h(u)}else if(d.isConnected){g.forEach(u=>{l.includes(u)||p(u)});for(let u of l)g.contains(u)||h(u)}else for(let u of l)h(u)}for(let a in s){let d=s[a],R=(this.countOfClass[a]||0)+d;R===0?(delete this.countOfClass[a],this.delete(a)):(a in this.countOfClass||this.findAndInsert(a),this.countOfClass[a]=R)}}});this.options=i;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);e(this,"config");e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"values");e(this,"globalValues");e(this,"schemeMQL");to(this,Ur,void 0);to(this,oe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=qi({observe:!0},i),this.options.config&&!this.options.override?this.config=qi(no,this.options.config):this.config=no,this.cache(),Li&&this.options.observe&&this.observe(document),ji.instances.push(this),this.ready=!0}static refresh(i){for(let n of this.instances)n.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==le(this,Ur)){ro(this,Ur,i);let{storage:n}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&n.sync&&localStorage.setItem(n.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return le(this,Ur)}set theme(i){i!==le(this,oe)&&(le(this,oe)&&this.host.classList.remove(le(this,oe)),ro(this,oe,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return le(this,oe)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){var a,d,R,g;this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={};let{semantics:i,classes:n,selectors:s,themes:f,colors:v,values:m}=this.config;function c(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let l in i)this.semantics.push([new RegExp("^"+c(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),l]);if(s)for(let[l,u]of Object.entries(s)){let C=new RegExp(c(l)+"(?![a-z-])");for(let b of Array.isArray(u)?u:[u]){let T=(d=(a=b.match(os))==null?void 0:a[0])!=null?d:"",y=this.selectors[T];y||(y=this.selectors[T]=[]);let M=y.find(([O])=>O===C);M||(M=[C,[]],y.push(M)),M[1].push(b)}}if(m)for(let[l,u]of Object.entries(m))(typeof u=="object"?this.values:this.globalValues)[l]=u;let p=[...n?Object.keys(n):[],...f&&!Array.isArray(f)?Object.entries(f).flatMap(([l,{classes:u}])=>u?Object.keys(u):[]):[]],h=l=>{if(l in this.classes)return;let u=this.classes[l]=[],C=(b,T)=>{if(!T)return;let y=Array.isArray(T)?T:T.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let M of y){let O=P=>{P in this.relationThemesMap?b in this.relationThemesMap[P]?this.relationThemesMap[P][b].push(l):this.relationThemesMap[P][b]=[l]:this.relationThemesMap[P]={[b]:[l]},u.includes(P)||u.push(P)};if(p.includes(M)){h(M);for(let P of this.classes[M])O(P)}else O(M)}};if(C("",n==null?void 0:n[l]),f&&!Array.isArray(f))for(let[b,{classes:T}]of Object.entries(f))C(b,T==null?void 0:T[l])};for(let l of p)h(l);for(let l in this.relationThemesMap){let u=this.relations[l]=[];for(let C of Object.values(this.relationThemesMap[l]))for(let b of C)u.includes(b)||u.push(b)}let x=(l,u)=>{if(!!u)for(let C in u){let b=u[C];if(typeof b=="string"&&(b={"":b}),C in this.colorsThemesMap){let T=this.colorsThemesMap[C];for(let y in b){let M=b[y];y in T?T[y][l]=M:T[y]={[l]:M}}}else this.colorNames.push(C),this.colorsThemesMap[C]=Object.entries(b).reduce((T,[y,M])=>(T[y]={[l]:M},T),{})}};if(x("",v),f)if(Array.isArray(f))this.themeNames.push(...f);else for(let l in f){let u=f[l];x(l,u.colors),this.themeNames.push(l)}for(let[l,u]of Object.entries(this.colorsThemesMap))for(let[C,b]of Object.entries(u))for(let[T,y]of Object.entries(b))if(!y.startsWith("#")){let[M,O]=y.split("-"),P=(R=this.colorsThemesMap[M])==null?void 0:R[O!=null?O:""],z="";P&&(z=(g=T?P[T]:void 0)!=null?g:P[""],z&&(b[T]=z)),z||(console.warn(`\`${y}\` doesn't exist in the extended config \`.colors\``),Object.keys(b).length>1?delete b[T]:Object.keys(u).length>1?delete u[C]:(delete this.colorsThemesMap[l],this.colorNames.splice(this.colorNames.indexOf(l),1)))}}observe(i,n={subtree:!0,childList:!0}){if(Li&&i){this.root=i;let s=i===document;s&&(ji.root=this),this.host=s?document.documentElement:i.host,this.scheme=this.storageScheme||this.config.scheme.preference;let f=s?document.head:i,v=s?document.styleSheets:i.styleSheets;for(let m of v){let{title:c,href:p,ownerNode:h}=m;(c==="master"||p&&p.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(p))&&(this.style=h)}if(this.style)for(let m=0;m<this.style.sheet.cssRules.length;m++){let c=h=>{if(h.selectorText){let a=h.selectorText.split(", ")[0].split(" ");for(let d=0;d<a.length;d++){let R=a[d];if(R[0]==="."){let g=R.slice(1),l="";for(let u=0;u<g.length;u++){let C=g[u],b=g[u+1];if(C==="\\"){if(u++,b!=="\\"){l+=b;continue}}else if(is.includes(C))break;l+=C}if(!(l in this.ruleOfClass)&&!(l in this.classes)){let u=this.findAndNew(l);if(u)return u}}}}else if(h.cssRules)for(let x=0;x<h.cssRules.length;x++){let a=c(h.cssRules[x]);if(a)return a}},p=c(this.style.sheet.cssRules[m]);if(p){this.rules.push(p),this.ruleOfClass[p.className]=p;for(let h=0;h<p.natives.length;h++)p.natives[h].cssRule=this.style.sheet.cssRules[m+h];m+=p.natives.length-1}}else this.style=Ki.cloneNode(),f.prepend(this.style);n.subtree&&this.host.querySelectorAll("[class]").forEach(m=>{m.classList.forEach(c=>{c in this.countOfClass?this.countOfClass[c]++:(this.countOfClass[c]=1,this.findAndInsert(c))})}),super.observe(i,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let n=i.cssRules.length-1;n>=0;n--)i.deleteRule(n)}findAndNew(i){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let f of this.config.Rules){let v=f.match(s,this.colorNames);if(v)return new f(s,v,this)}for(let f of this.semantics)if(s.match(f[0]))return new t(s,{origin:"semantics",value:f[1]},this)};return i in this.classes?this.classes[i].map(n).filter(s=>s):n(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let n=Ki.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=ji.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:n}=this.config;if(n&&!n(i,this))return;let s,f=this.rules.length-1,{media:v,order:m,priority:c,hasWhere:p,className:h}=i,x=(a,d,R,g)=>{let l=0,u;d&&(l=a.findIndex(d)),R&&(u=a.findIndex(R)),l===-1&&(l=a.length),(u===void 0||u===-1)&&(u=a.length);let C=a.slice(l,u);for(let b=0;b<C.length;b++){let T=C[b];if(!(T.priority===-1||g&&g(T))&&(T.priority<c||T.priority===c&&(p&&!T.hasWhere||T.order>=m)))return l+b}return l+C.length};if(v){let a=this.rules.findIndex(d=>d.media);if(a!==-1){let d=v.features[_],R=v.features[G];if(d&&R){let g=d.value-R.value;for(let l=f;l>=a;l--){s=l;let u=this.rules[l],C=u.media,b=C.features[_],T=C.features[G];if(!b||!T){s++;break}let y=b.value-T.value;if(y===g){if(p!==u.hasWhere)continue;if(c!==-1){let M=[this.rules[l]];for(let O=l-1;O>=a;O--){let P=this.rules[O];if(P.hasWhere!==p)break;let z=P.media,H=z.features[_],ae=z.features[G];if(!H||!ae||H.value-ae.value!==y)break;M.unshift(this.rules[O])}s=x(this.rules,O=>O.media&&O.priority!==-1&&O.media.features[G]&&O.media.features[_])}break}else if(y>g)break}}else if(R)for(let g=a;g<=f;g++){s=g;let l=this.rules[g],u=l.media,C=u.features[_],b=u.features[G];if(C){if(b)break;continue}let T=b==null?void 0:b.value;if(T===R.value){if(!p&&l.hasWhere){s++;continue}if(c!==-1)s=x(this.rules,y=>y.media,y=>y.media&&y.priority!==-1&&y.media.features[G]&&y.media.features[_],y=>!y.media.features[G]&&!y.media.features[_]);else for(let y=g;y<=f;y++){let M=this.rules[y],O=M.media,P=O.features[G];if(!O.features[_]){if(M.hasWhere!==p||P.value!==T||M.order>=m)break;s=y+1}}break}else{if(T>R.value)break;s++}}else if(d)for(let g=f;g>=a;g--){s=g;let l=this.rules[g],u=l.media,C=u.features[_];if(u.features[G])continue;let T=C==null?void 0:C.value;if(!T||T>d.value){s++;break}else if(T===d.value){if(p&&!l.hasWhere)continue;if(c!==-1)s=x(this.rules,y=>y.media,y=>y.media&&y.priority!==-1&&y.media.features[G]&&y.media.features[_],y=>!y.media.features[G]&&!y.media.features[_]);else{let y=[this.rules[g]];for(let M=g-1;M>=a;M--){let O=this.rules[M],P=O.media,z=P.features[G],H=P.features[_];if(!z&&(!H||H.value!==T||O.hasWhere!==p))break;y.unshift(O)}for(let M=0;M<y.length;M++){let O=y[M];if(!O.media.features[G]){if(O.order>=m)break;s=g-y.length+2+M}}}break}}}if(s===void 0)if(a===-1)s=f+1;else if(c!==-1)s=a+x(this.rules.slice(a),void 0,d=>d.media.features[_]||d.media.features[G]);else if(p){let d=a;for(;d<this.rules.length;d++){let R=this.rules[d];if(R.priority!==-1||!R.hasWhere||R.order>=m){s=d;break}}s===void 0&&(s=d)}else for(let d=a;d<=f;d++){s=d;let R=this.rules[d],g=R.media;if(R.priority!==-1||g.features[_]||g.features[G])break;if(R.hasWhere)s++;else if(R.order>=m)break}}else if(c===-1)if(p)s=this.rules.findIndex(a=>!a.hasWhere||a.media||a.priority!==-1||a.order>=m),s===-1&&(s=f+1);else{let a=0;for(;a<this.rules.length;a++){let d=this.rules[a];if(d.media||!d.hasWhere&&(d.order>=m||d.priority!==-1)){s=a;break}}s===void 0&&(s=a)}else s=x(this.rules,void 0,a=>a.media);if(this.rules.splice(s,0,i),this.ruleOfClass[h]=i,this.style){let a=this.style.sheet,d=0,R=g=>{let l=this.rules[g];if(l){if(!l.natives.length)return R(g-1);let u=l.natives[l.natives.length-1].cssRule;for(let C=0;C<a.cssRules.length;C++)if(a.cssRules[C]===u){d=C+1;break}}};R(s-1);for(let g=0;g<i.natives.length;)try{let l=i.natives[g];a.insertRule(l.text,d),l.cssRule=a.cssRules[d++],g++}catch(l){console.error(l),i.natives.splice(g,1)}}}delete(i){let n=this.style.sheet,s=f=>{let v=this.ruleOfClass[f];if(!(!v||f in this.relations&&this.relations[f].some(m=>m in this.countOfClass))){if(v.natives.length){let m=v.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===m.cssRule){for(let h=0;h<v.natives.length;h++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(v),1);break}}delete this.ruleOfClass[f]}};if(i in this.classes){for(let f of this.classes[i])f in this.countOfClass||s(f);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let n=this.findAndNew(i);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}get text(){return this.rules.map(i=>i.natives.map(n=>n.text).join("")).join("")}},se=ji;Ur=new WeakMap,oe=new WeakMap,e(se,"instances",[]),e(se,"root");Li&&(window.MasterCSS=se);new se({config:window.masterCSSConfig});})();
|
|
2
2
|
//# sourceMappingURL=index.browser.js.map
|