@master/css 2.0.0-beta.13 → 2.0.0-beta.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -109
- package/dist/bin/index.d.ts +2 -0
- package/dist/cjs/bin/index.js +2 -0
- package/dist/cjs/config/breakpoints.js +1 -0
- package/dist/cjs/config/colors.js +1 -0
- package/dist/cjs/config/functions.js +1 -0
- package/dist/cjs/config/important.js +1 -0
- package/dist/cjs/config/index.js +1 -0
- package/dist/cjs/config/keyframes.js +1 -0
- package/dist/cjs/config/observe.js +1 -0
- package/dist/cjs/config/override.js +1 -0
- package/dist/cjs/config/precedence.js +1 -0
- package/dist/cjs/config/root-size.js +1 -0
- package/dist/cjs/config/rules.js +1 -0
- package/dist/cjs/config/scope.js +1 -0
- package/dist/cjs/config/selectors.js +1 -0
- package/dist/cjs/config/semantics.js +1 -0
- package/dist/cjs/config/themes.js +1 -0
- package/dist/cjs/constants/box-underneath.js +1 -0
- package/dist/cjs/constants/content-extrema.js +1 -0
- package/dist/cjs/constants/selector-symbols.js +1 -0
- package/dist/cjs/constants/sizing-values.js +1 -0
- package/dist/cjs/constants/sorted-selectors.js +1 -0
- package/dist/cjs/constants/start-symbol.js +1 -0
- package/dist/cjs/css.js +1 -0
- package/dist/cjs/index.browser.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/methods/define-content.js +25 -0
- package/dist/cjs/methods/fill-color-scale.js +1 -0
- package/dist/cjs/methods/index.js +1 -0
- package/dist/cjs/methods/render-from-html.js +1 -0
- package/dist/cjs/methods/render-into-html.js +1 -0
- package/dist/cjs/methods/render.js +1 -0
- package/dist/cjs/polyfills/css-escape.js +1 -0
- package/dist/cjs/rule.js +1 -0
- package/dist/cjs/theme.js +1 -0
- package/dist/cjs/utils/concat-arrays.js +1 -0
- package/dist/cjs/utils/css-escape.js +1 -0
- package/dist/cjs/utils/delay.js +1 -0
- package/dist/cjs/utils/get-type.js +1 -0
- package/dist/cjs/utils/hex-to-rgb.js +1 -0
- package/dist/cjs/utils/is-plain-object.js +1 -0
- package/dist/cjs/utils/is-symbol.js +1 -0
- package/dist/cjs/utils/parse-rule-value.js +1 -0
- package/dist/cjs/utils/read-package.js +1 -0
- package/dist/cjs/utils/rgb-to-hex.js +1 -0
- package/dist/config/breakpoints.d.ts +1 -2
- package/dist/config/colors.d.ts +3 -4
- package/dist/config/functions.d.ts +7 -0
- package/dist/config/important.d.ts +1 -0
- package/dist/config/index.d.ts +59 -23
- package/dist/config/keyframes.d.ts +109 -0
- package/dist/config/observe.d.ts +1 -0
- package/dist/config/override.d.ts +1 -0
- package/dist/config/precedence.d.ts +1 -0
- package/dist/config/root-size.d.ts +1 -2
- package/dist/config/rules.d.ts +2 -3
- package/dist/config/scope.d.ts +1 -0
- package/dist/config/selectors.d.ts +1 -2
- package/dist/config/semantics.d.ts +142 -43
- package/dist/config/themes.d.ts +1 -2
- package/dist/constants/box-underneath.d.ts +5 -0
- package/dist/constants/content-extrema.d.ts +4 -0
- package/dist/constants/selector-symbols.d.ts +1 -0
- package/dist/constants/sizing-values.d.ts +7 -0
- package/dist/constants/sorted-selectors.d.ts +1 -0
- package/dist/constants/start-symbol.d.ts +1 -0
- package/dist/css.d.ts +58 -62
- package/dist/esm/bin/index.mjs +2 -0
- package/dist/esm/config/breakpoints.mjs +1 -0
- package/dist/esm/config/colors.mjs +1 -0
- package/dist/esm/config/functions.mjs +1 -0
- package/dist/esm/config/important.mjs +1 -0
- package/dist/esm/config/index.mjs +1 -0
- package/dist/esm/config/keyframes.mjs +1 -0
- package/dist/esm/config/observe.mjs +1 -0
- package/dist/esm/config/override.mjs +1 -0
- package/dist/esm/config/precedence.mjs +1 -0
- package/dist/esm/config/root-size.mjs +1 -0
- package/dist/esm/config/rules.mjs +1 -0
- package/dist/esm/config/scope.mjs +1 -0
- package/dist/esm/config/selectors.mjs +1 -0
- package/dist/esm/config/semantics.mjs +1 -0
- package/dist/esm/config/themes.mjs +1 -0
- package/dist/esm/constants/box-underneath.mjs +1 -0
- package/dist/esm/constants/content-extrema.mjs +1 -0
- package/dist/esm/constants/selector-symbols.mjs +1 -0
- package/dist/esm/constants/sizing-values.mjs +1 -0
- package/dist/esm/constants/sorted-selectors.mjs +1 -0
- package/dist/esm/constants/start-symbol.mjs +1 -0
- package/dist/esm/css.mjs +1 -0
- package/dist/esm/index.browser.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/methods/define-content.mjs +25 -0
- package/dist/esm/methods/fill-color-scale.mjs +1 -0
- package/dist/esm/methods/index.mjs +1 -0
- package/dist/esm/methods/render-from-html.mjs +1 -0
- package/dist/esm/methods/render-into-html.mjs +1 -0
- package/dist/esm/methods/render.mjs +1 -0
- package/dist/esm/polyfills/css-escape.mjs +1 -0
- package/dist/esm/rule.mjs +1 -0
- package/dist/esm/theme.mjs +1 -0
- package/dist/esm/utils/concat-arrays.mjs +1 -0
- package/dist/esm/utils/css-escape.mjs +1 -0
- package/dist/esm/utils/delay.mjs +1 -0
- package/dist/esm/utils/get-type.mjs +1 -0
- package/dist/esm/utils/hex-to-rgb.mjs +1 -0
- package/dist/esm/utils/is-plain-object.mjs +1 -0
- package/dist/esm/utils/is-symbol.mjs +1 -0
- package/dist/esm/utils/parse-rule-value.mjs +1 -0
- package/dist/esm/utils/read-package.mjs +1 -0
- package/dist/esm/utils/rgb-to-hex.mjs +1 -0
- package/dist/index.browser.d.ts +6 -1
- package/dist/index.browser.js +1 -2
- package/dist/index.d.ts +7 -20
- package/dist/index.js +25 -0
- package/dist/index.mjs +25 -2
- package/dist/methods/define-content.d.ts +5 -0
- package/dist/methods/fill-color-scale.d.ts +1 -0
- package/dist/methods/index.d.ts +5 -0
- package/dist/methods/render-from-html.d.ts +2 -0
- package/dist/methods/render-into-html.d.ts +2 -0
- package/dist/methods/render.d.ts +2 -0
- package/dist/polyfills/css-escape.d.ts +0 -1
- package/dist/rule.d.ts +61 -46
- package/dist/theme.d.ts +30 -0
- package/dist/utils/css-escape.d.ts +1 -0
- package/dist/utils/delay.d.ts +2 -0
- package/dist/utils/is-plain-object.d.ts +1 -1
- package/dist/utils/parse-rule-value.d.ts +5 -0
- package/dist/utils/read-package.d.ts +2 -0
- package/package.json +1 -162
- package/LICENSE +0 -21
- package/dist/apis/extend.d.ts +0 -5
- package/dist/apis/fill-color-scale.d.ts +0 -1
- package/dist/apis/render-from-html.d.ts +0 -3
- package/dist/apis/render-into-html.d.ts +0 -3
- package/dist/apis/render.d.ts +0 -3
- package/dist/config/scheme.d.ts +0 -7
- package/dist/config/values.d.ts +0 -126
- package/dist/index.browser.js.map +0 -7
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/rules/accent-color.d.ts +0 -7
- package/dist/rules/align-content.d.ts +0 -6
- package/dist/rules/align-items.d.ts +0 -6
- package/dist/rules/align-self.d.ts +0 -6
- package/dist/rules/animation-delay.d.ts +0 -7
- package/dist/rules/animation-direction.d.ts +0 -6
- package/dist/rules/animation-duration.d.ts +0 -7
- package/dist/rules/animation-fill-mode.d.ts +0 -6
- package/dist/rules/animation-iteration-count.d.ts +0 -7
- package/dist/rules/animation-name.d.ts +0 -6
- package/dist/rules/animation-play-state.d.ts +0 -6
- package/dist/rules/animation-timing-function.d.ts +0 -6
- package/dist/rules/animation.d.ts +0 -8
- package/dist/rules/appearance.d.ts +0 -5
- package/dist/rules/aspect-radio.d.ts +0 -7
- package/dist/rules/backdrop-filter.d.ts +0 -11
- package/dist/rules/background-attachment.d.ts +0 -6
- package/dist/rules/background-blend-mode.d.ts +0 -5
- package/dist/rules/background-clip.d.ts +0 -9
- package/dist/rules/background-color.d.ts +0 -8
- package/dist/rules/background-image.d.ts +0 -7
- package/dist/rules/background-origin.d.ts +0 -6
- package/dist/rules/background-position.d.ts +0 -7
- package/dist/rules/background-repeat.d.ts +0 -6
- package/dist/rules/background-size.d.ts +0 -6
- package/dist/rules/background.d.ts +0 -8
- package/dist/rules/border-collapse.d.ts +0 -6
- package/dist/rules/border-color.d.ts +0 -11
- package/dist/rules/border-image-outset.d.ts +0 -5
- package/dist/rules/border-image-repeat.d.ts +0 -6
- package/dist/rules/border-image-slice.d.ts +0 -6
- package/dist/rules/border-image-source.d.ts +0 -6
- package/dist/rules/border-image-width.d.ts +0 -6
- package/dist/rules/border-image.d.ts +0 -6
- package/dist/rules/border-radius.d.ts +0 -9
- package/dist/rules/border-spacing.d.ts +0 -5
- package/dist/rules/border-style.d.ts +0 -9
- package/dist/rules/border-width.d.ts +0 -9
- package/dist/rules/border.d.ts +0 -10
- package/dist/rules/box-decoration-break.d.ts +0 -9
- package/dist/rules/box-shadow.d.ts +0 -7
- package/dist/rules/box-sizing.d.ts +0 -6
- package/dist/rules/break-after.d.ts +0 -5
- package/dist/rules/break-before.d.ts +0 -5
- package/dist/rules/break-inside.d.ts +0 -5
- package/dist/rules/caret-color.d.ts +0 -7
- package/dist/rules/clear.d.ts +0 -5
- package/dist/rules/clip-path.d.ts +0 -6
- package/dist/rules/color.d.ts +0 -8
- package/dist/rules/column-span.d.ts +0 -6
- package/dist/rules/columns.d.ts +0 -8
- package/dist/rules/contain.d.ts +0 -5
- package/dist/rules/content.d.ts +0 -5
- package/dist/rules/counter-increment.d.ts +0 -6
- package/dist/rules/cursor.d.ts +0 -5
- package/dist/rules/cx.d.ts +0 -6
- package/dist/rules/cy.d.ts +0 -6
- package/dist/rules/direction.d.ts +0 -5
- package/dist/rules/display.d.ts +0 -6
- package/dist/rules/fill.d.ts +0 -7
- package/dist/rules/filter.d.ts +0 -8
- package/dist/rules/flex-basis.d.ts +0 -5
- package/dist/rules/flex-direction.d.ts +0 -6
- package/dist/rules/flex-grow.d.ts +0 -6
- package/dist/rules/flex-shrink.d.ts +0 -6
- package/dist/rules/flex-wrap.d.ts +0 -6
- package/dist/rules/flex.d.ts +0 -7
- package/dist/rules/float.d.ts +0 -5
- package/dist/rules/font-family.d.ts +0 -6
- package/dist/rules/font-size.d.ts +0 -6
- package/dist/rules/font-smoothing.d.ts +0 -9
- package/dist/rules/font-style.d.ts +0 -7
- package/dist/rules/font-variant-numeric.d.ts +0 -6
- package/dist/rules/font-weight.d.ts +0 -7
- package/dist/rules/font.d.ts +0 -8
- package/dist/rules/gap.d.ts +0 -9
- package/dist/rules/grid-area.d.ts +0 -7
- package/dist/rules/grid-auto-columns.d.ts +0 -6
- package/dist/rules/grid-auto-flow.d.ts +0 -6
- package/dist/rules/grid-auto-rows.d.ts +0 -5
- package/dist/rules/grid-column-end.d.ts +0 -7
- package/dist/rules/grid-column-start.d.ts +0 -7
- package/dist/rules/grid-column.d.ts +0 -9
- package/dist/rules/grid-columns.d.ts +0 -10
- package/dist/rules/grid-row-end.d.ts +0 -6
- package/dist/rules/grid-row-start.d.ts +0 -6
- package/dist/rules/grid-row.d.ts +0 -9
- package/dist/rules/grid-rows.d.ts +0 -9
- package/dist/rules/grid-template-areas.d.ts +0 -5
- package/dist/rules/grid-template-columns.d.ts +0 -6
- package/dist/rules/grid-template-rows.d.ts +0 -5
- package/dist/rules/grid-template.d.ts +0 -6
- package/dist/rules/grid.d.ts +0 -6
- package/dist/rules/group.d.ts +0 -9
- package/dist/rules/height.d.ts +0 -6
- package/dist/rules/inset.d.ts +0 -9
- package/dist/rules/isolation.d.ts +0 -5
- package/dist/rules/justify-content.d.ts +0 -6
- package/dist/rules/justify-items.d.ts +0 -6
- package/dist/rules/justify-self.d.ts +0 -6
- package/dist/rules/letter-spacing.d.ts +0 -7
- package/dist/rules/line-clamp.d.ts +0 -9
- package/dist/rules/line-height.d.ts +0 -7
- package/dist/rules/lines.d.ts +0 -9
- package/dist/rules/list-style-image.d.ts +0 -6
- package/dist/rules/list-style-position.d.ts +0 -6
- package/dist/rules/list-style-type.d.ts +0 -6
- package/dist/rules/list-style.d.ts +0 -6
- package/dist/rules/margin.d.ts +0 -9
- package/dist/rules/mask-image.d.ts +0 -8
- package/dist/rules/max-height.d.ts +0 -6
- package/dist/rules/max-width.d.ts +0 -6
- package/dist/rules/min-height.d.ts +0 -6
- package/dist/rules/min-width.d.ts +0 -6
- package/dist/rules/mix-blend-mode.d.ts +0 -6
- package/dist/rules/object-fit.d.ts +0 -6
- package/dist/rules/object-position.d.ts +0 -6
- package/dist/rules/opacity.d.ts +0 -6
- package/dist/rules/order.d.ts +0 -7
- package/dist/rules/outline-color.d.ts +0 -7
- package/dist/rules/outline-offset.d.ts +0 -5
- package/dist/rules/outline-style.d.ts +0 -6
- package/dist/rules/outline-width.d.ts +0 -6
- package/dist/rules/outline.d.ts +0 -7
- package/dist/rules/overflow.d.ts +0 -9
- package/dist/rules/overscroll-behavior.d.ts +0 -8
- package/dist/rules/padding.d.ts +0 -9
- package/dist/rules/place-content.d.ts +0 -6
- package/dist/rules/place-items.d.ts +0 -6
- package/dist/rules/place-self.d.ts +0 -6
- package/dist/rules/placement.d.ts +0 -8
- package/dist/rules/pointer-events.d.ts +0 -5
- package/dist/rules/position.d.ts +0 -5
- package/dist/rules/quotes.d.ts +0 -5
- package/dist/rules/resize.d.ts +0 -5
- package/dist/rules/rx.d.ts +0 -6
- package/dist/rules/ry.d.ts +0 -6
- package/dist/rules/scroll-behavior.d.ts +0 -5
- package/dist/rules/scroll-margin.d.ts +0 -9
- package/dist/rules/scroll-padding.d.ts +0 -9
- package/dist/rules/scroll-snap-align.d.ts +0 -6
- package/dist/rules/scroll-snap-stop.d.ts +0 -6
- package/dist/rules/scroll-snap-type.d.ts +0 -6
- package/dist/rules/shape-image-threshold.d.ts +0 -6
- package/dist/rules/shape-margin.d.ts +0 -6
- package/dist/rules/shape-outside.d.ts +0 -6
- package/dist/rules/spacing.d.ts +0 -9
- package/dist/rules/stroke-dasharray.d.ts +0 -5
- package/dist/rules/stroke-dashoffset.d.ts +0 -5
- package/dist/rules/stroke-width.d.ts +0 -6
- package/dist/rules/stroke.d.ts +0 -6
- package/dist/rules/table-layout.d.ts +0 -5
- package/dist/rules/text-align.d.ts +0 -6
- package/dist/rules/text-decoration-color.d.ts +0 -7
- package/dist/rules/text-decoration-line.d.ts +0 -6
- package/dist/rules/text-decoration-style.d.ts +0 -6
- package/dist/rules/text-decoration-thickness.d.ts +0 -7
- package/dist/rules/text-decoration.d.ts +0 -8
- package/dist/rules/text-fill-color.d.ts +0 -10
- package/dist/rules/text-indent.d.ts +0 -5
- package/dist/rules/text-orientation.d.ts +0 -6
- package/dist/rules/text-overflow.d.ts +0 -6
- package/dist/rules/text-rendering.d.ts +0 -6
- package/dist/rules/text-shadow.d.ts +0 -6
- package/dist/rules/text-size.d.ts +0 -8
- package/dist/rules/text-stroke-color.d.ts +0 -10
- package/dist/rules/text-stroke-width.d.ts +0 -8
- package/dist/rules/text-stroke.d.ts +0 -8
- package/dist/rules/text-transform.d.ts +0 -6
- package/dist/rules/text-underline-offset.d.ts +0 -5
- package/dist/rules/touch-action.d.ts +0 -5
- package/dist/rules/transform-box.d.ts +0 -6
- package/dist/rules/transform-origin.d.ts +0 -7
- package/dist/rules/transform-style.d.ts +0 -6
- package/dist/rules/transform.d.ts +0 -9
- package/dist/rules/transition-delay.d.ts +0 -7
- package/dist/rules/transition-duration.d.ts +0 -7
- package/dist/rules/transition-property.d.ts +0 -6
- package/dist/rules/transition-timing-function.d.ts +0 -6
- package/dist/rules/transition.d.ts +0 -7
- package/dist/rules/user-drag.d.ts +0 -8
- package/dist/rules/user-select.d.ts +0 -8
- package/dist/rules/variable.d.ts +0 -9
- package/dist/rules/vertical-align.d.ts +0 -6
- package/dist/rules/visibility.d.ts +0 -5
- package/dist/rules/white-space.d.ts +0 -6
- package/dist/rules/width.d.ts +0 -6
- package/dist/rules/will-change.d.ts +0 -5
- package/dist/rules/word-break.d.ts +0 -6
- package/dist/rules/word-spacing.d.ts +0 -6
- package/dist/rules/writing-mode.d.ts +0 -6
- package/dist/rules/x.d.ts +0 -6
- package/dist/rules/y.d.ts +0 -6
- package/dist/rules/z-index.d.ts +0 -7
- package/dist/utils/get-border-props.d.ts +0 -3
- package/dist/utils/get-css-property-text.d.ts +0 -5
- package/dist/utils/normalize-css-calc-text.d.ts +0 -5
- package/dist/utils/parse-value-unit.d.ts +0 -2
- package/dist/utils/parse-value.d.ts +0 -6
- package/readme.md +0 -118
package/dist/index.browser.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
(()=>{var Eo=Object.defineProperty;var Fo=(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)=>(Fo(r,typeof o!="symbol"?o+"":o,i),i),lo=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var Fe=(r,o,i)=>(lo(r,o,"read from private field"),i?i.call(r):o.get(r)),Ki=(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)},eo=(r,o,i,n)=>(lo(r,o,"write to private field"),n?n.call(r,i):o.set(r,i),i);var Wo={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Bi=Wo;function Ei(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function co(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function j(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let 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?Ei(r[0]):[0,0,0],p,u,x=[],c=()=>{let h=p-n,v=u.map((a,l)=>(a-s[l])/h);for(let a of x){let l=a-n,m=s.map((d,f)=>Math.round(d+v[f]*l));r[a]="#"+co.call(this,...m)}};for(let h=1;h<100;h++)h in r?(x.length?(p=h,u=Ei(r[h]),c(),x.length=0,s=u):s=Ei(r[h]),n=h):x.push(h);x.length&&(p=100,u="100"in r?Ei(r[100]):[255,255,255],c())}return o||(r[""]=r[i?"500":"50"]),r}var jo={slate:j({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:j({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:j({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:j({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:j({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:j({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:j({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:j({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:j({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:j({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:j({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:j({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:j({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:j({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:j({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:j({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:j({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:j({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:j({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:j({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},mo=jo;var fo=16;var Do={"::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("},po=Do;var Po={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"}},uo=Po;var Lo=["dark","light"],ho=Lo;var Go={storage:{sync:!0,key:"scheme"}},vo=Go;var Fi={content:"content-box",border:"border-box",padding:"padding-box"},Li={min:"min-content",max:"max-content"},Y={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Bi)Y[r]=Bi[r]/16+"rem";var zo={BackgroundClip:Fi,BackgroundOrigin:Fi,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Fi,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Li,GridAutoRows:Li,GridTemplateColumns:Li,GridTemplateRows:Li,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Fi,margin:"margin-box"},TransformBox:{...Fi,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:Y,MinWidth:Y,MinHeight:Y,MaxWidth:Y,MaxHeight:Y,Height:Y,FlexBasis:Y},go=zo;function Gi(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function xo(r){let o=x=>x==="+"||x==="-"||x==="*"||x==="/",i="",n,s="",p=!1;function u(){n=null,s=""}for(let x=0;x<r.length;x++){let c=r[x];if(c==="("||c===")")p=c===")",i+=s+c,u();else if(c===",")i+=s+c+" ",u();else{switch(n){case 1:break;case 2:if(o(c)){i+=s+" "+c+" ",u();continue}break;default:p&&(s+=" "),isNaN(+c)?o(c)||(n=1):n=2;break}s+=c}}return s&&(i+=s),i}var _o=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Ho="var(--";function zi(r,o,i,n,s,p){let u=n?n[r]:"",x="",c="",h;if(u)return{value:u,unit:x,unitToken:c};if(typeof r=="number")u=r,x=o||"";else{if(i){let v=Object.keys(i),a=!1,l=!1;r=r.replace(new RegExp(`(^|,| |\\()(${v.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(m,d,f,g,S)=>{l=!0;let b=i[f]?.[g||""];if(b){let M;for(let I of p)if(M=b[I])break;if(M){a=!0;let I=M;if(S){let R=S.endsWith("%")?parseFloat(S)/100:+S;R=isNaN(R)?1:Math.min(Math.max(R,0),1),I+=Math.round(R*255).toString(16).toUpperCase().padStart(2,"0")}return d+I}}return m}),l&&(h=a)}if(o){let v=r.match(_o);if(v)if(r.includes("/")){let a=r.split("/");return{value:+a[0]/+a[1]*100+"%",unit:x,unitToken:c}}else return u=+v[1],x=c=v[3]||"",x||((o==="rem"||o==="em")&&(u=u/s),x=o||""),{value:u,unit:x,unitToken:c}}u=(r.indexOf("calc(")===-1?r:xo(r)).replace(/\$\(((\w|-)+)\)/g,Ho+"$1)")}return{value:u,unit:x,unitToken:c,colorMatched:h}}var Nr={"(":")","'":"'","{":"}"};var So=[":disabled",":active",":focus",":hover"],_i="matches",Vo="semantics",bo="symbol",Co="width",to="max-"+Co,ro="min-"+Co,oo="motion",Ro="reduce",yo=Ro+"d-"+oo,io="px",$o="rem",Uo=["!","*",">","+","~",":","[","@","_"],Qo=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Yo=r=>r.split(Qo).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;let s=this.constructor,{id:p,unit:u,propName:x,colorful:c}=s,{breakpoints:h,mediaQueries:v,semantics:a,rootSize:l}=n.config,m=n.config.values[p],d=n.relationThemesMap[o],{themeNames:f,colorsThemesMap:g,selectors:S}=n,b=o,M,I,R,E;if(i.origin===Vo)R=b.slice(i.value.length),M=a[i.value];else{let B;if(i.origin===_i)if(p==="Group"){let T=0;for(;T<b.length&&!(b[T]==="{"&&b[T-1]!=="\\");T++);I=b.slice(0,T),B=b.slice(T)}else{let T=b.indexOf(":");this.prefix=b.slice(0,T+1),this.prefix.includes("(")?(this.prefix=void 0,B=b):B=b.slice(T+1)}else i.origin===bo&&(this.symbol=b[0],B=b.slice(1));E=[];let C="",k=0;(function T(W,N,w=""){let y,O=!1;for(W&&(W===")"&&C.slice(-1)==="$"?y=C.length-1:W==="'"&&(O=!0),C+=B[k++]);k<B.length;k++){let A=B[k];if(A===W){if(C+=A,O){let D=0;for(let z=C.length-2;C[z]==="\\";z--)D++;if(D%2)continue}y!==void 0&&(C=C.slice(0,y)+C.slice(y).replace(/\$\((.*)\)/,"var(--$1)")),N||(O?E.push(C):E.push({value:C}),w="",C="");break}else if(!O&&A in Nr)T(Nr[A],N===void 0?0:N+1,w);else if(A==="|"&&W!=="}"&&(!O||w==="path"))W?C+=" ":(E.push({value:C}),C="");else{if(!W){if(A==="."){if(isNaN(+B[k+1]))break;B[k-1]==="-"&&(C+="0")}else if(A===","){E.push({value:C},","),C="";continue}else if(A==="#"&&(C||E.length&&B[k-1]!=="|")||Uo.includes(A))break;w+=A}C+=A}}})(),C&&E.push({value:C}),R=B.slice(k)}R[0]==="!"&&(this.important=!0,R=R.slice(1));let F=B=>{let C=Yo(B),k=[],T="",W=0;for(let N=0;N<C.length;N++){let w=C[N];if(w==="\\"){T+=w+C[++N];continue}!W&&w===","?(k.push(T),T=""):(T+=w,W&&w===")"?W--:w==="("&&W++)}return T&&k.push(T),k};this.prefixSelectors=I?F(I):[""];let _=R.split("@"),V=_[0];if(V){this.vendorSuffixSelectors={};let B=(N,w,y,O)=>{for(let[A,D]of w)if(A.test(N)){for(let z of D)B(N.replace(A,z),w,y,!0);return}O&&y.push(N)},C=[];""in S?B(V,S[""],C,!0):C.push(V);let k={};for(let[N,w]of Object.entries(S)){if(!N)continue;let y=[];for(let O of C)B(O,w,y,!1);y.length&&(k[N]=y)}let T=(N,w)=>{let y=w.reduce((O,A)=>(O.push(...F(A)),O),[]);N in this.vendorSuffixSelectors?this.vendorSuffixSelectors[N].push(...y):this.vendorSuffixSelectors[N]=y},W=Object.keys(k);if(W.length)for(let N of W)T(N,k[N]);else T("",C);for(let N of Object.values(this.vendorSuffixSelectors))for(let w of N){this.hasWhere!==!1&&(this.hasWhere=w.includes(":where("));for(let y=0;y<So.length;y++)if(w.includes(So[y])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>y)&&(this.prioritySelectorIndex=y);break}}}else this.vendorSuffixSelectors={"":[""]};for(let B=1;B<_.length;B++){let C=_[B];if(C)if(f.includes(C))this.themeName=C;else if(C==="rtl"||C==="ltr")this.direction=C;else{let k,T,W=C.indexOf("_");if(W!==-1)k=C.slice(0,W),T=C.slice(W);else{let N=C.indexOf("(");N!==-1&&(k=C.slice(0,N),T=C.slice(N))}if(!k){k="media";let N=[];this.media={token:C,features:{}};let w=C.split("&");for(let y of w)if(y==="all"||y==="print"||y==="screen"||y==="speech")this.media.type=y;else if(y==="\u{1F5A8}")this.media.type="print";else if(y==="landscape"||y==="portrait")N.push("(orientation:"+y+")");else if(y===oo||y===yo)N.push("(prefers-"+yo+":"+(y===oo?"no-preference":Ro)+")");else if(v&&y in v)N.push(v[y]);else{let O={token:y},A="",D="",z=0;y.startsWith("<=")?(D="<=",A=to):y.startsWith(">=")||h[y]?(D=">=",A=ro):y.startsWith(">")?(D=">",A=ro,z=.02):y.startsWith("<")&&(D="<",A=to,z=-.02);let Q=D?y.replace(D,""):y,P=h[Q];switch(A){case to:case ro:P?Object.assign(O,zi(P,io)):Object.assign(O,zi(Q,io)),O.unit===io&&(O.value+=z),this.media.features[A]=O,N.push("("+A+":"+(O.value+O.unit)+")");break}}T="",this.media.type&&(T=this.media.type),N.length&&(T+=(T?" and ":"")+N.join(" and "))}T&&(this.at[k]=(k in this.at?this.at[k]+" and ":"")+T.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let H=(B,C)=>{let k,T,W=(w,y,O)=>{let A="";this.direction&&(A+="[dir="+this.direction+"] ");let D=this.prefixSelectors.map(P=>P+A),z=(P,Di)=>{let Ii=P?"."+P+" ":"",Ji="."+CSS.escape(Di);return D.map(Pi=>Ii+Pi).reduce((Pi,Io)=>(Pi.push(O.reduce((no,Bo)=>(no.push(Io+Ji+Bo),no),[]).join(",")),Pi),[]).join(",")},Q=z(y,o)+(d?Object.entries(d).filter(([P])=>this.themeName||!c||!y||!P||P===y).map(([P,Di])=>Di.reduce((Ii,Ji)=>Ii+","+z(this.themeName??(c&&y||P),Ji),"")).join(""):"")+"{"+w+"}";for(let P of Object.keys(this.at).sort((Di,Ii)=>Ii==="supports"?-1:1))Q="@"+P+" "+this.at[P]+"{"+Q+"}";return Q},N=[];if(E){let w,y;for(let O of E)typeof O=="string"?N.push(O):(w=zi(O.value,u,c&&g,m,l,this.themeName?[this.themeName,""]:[B]),w.colorMatched!==void 0&&y!==!0&&(y=w.colorMatched),N.push(w.value+w.unit));if(C&&(y===void 0?B:!y))return;if(N.length===1?w?(k=w.value,T=w.unit):k=N[0]:k=N.reduce((O,A,D)=>O+A+(A===","||E[D+1]===","||D===E.length-1?"":" "),""),typeof k!="object"){this.parseValue&&(k=this.parseValue(k,this.css.config)),c&&k==="current"?k="currentColor":m&&k in m&&(k=m[k].toString());let O={unit:T,value:k,important:this.important};if(this.getThemeProps){let A=this.getThemeProps(O,n);for(let D in A)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:T,value:k,text:W(Object.entries(A[D]).map(([Q,P])=>Gi(Q,{important:this.important,unit:"",value:P})).join(";"),D,z),themeName:D});return}else this.get&&(k=this.get(O))}}else k=M;for(let w of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:T,value:k,text:W(typeof k=="object"?Object.entries(k).map(([y,O])=>Gi(y,{...typeof O=="object"?O:{unit:"",value:O},important:this.important})).join(";"):Gi(x,{unit:T,value:k,important:this.important}),B,w),themeName:B})};if(this.getThemeProps)H(void 0,!1);else if(this.themeName)H(this.themeName,!1);else if(c)for(let B of f)H(B,!0);else H("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(o,i){if(this.matches&&this.matches.test(o))return{origin:_i};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:_i};if(this.symbol&&o.startsWith(this.symbol))return{origin:bo};if(this.propName&&o.startsWith(this.propName+":"))return{origin:_i}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",$o),e(t,"colorful");var X=class extends t{};e(X,"id","FontWeight"),e(X,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(X,"propName","font-weight"),e(X,"unit","");var We=class extends t{};e(We,"id","FontFamily"),e(We,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(We,"propName","font-family");var je=class extends t{};e(je,"id","FontSize"),e(je,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(je,"propName","font-size");var Tr=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",n=i+"-left",s=i+"-right",p=i+"-top",u=i+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[p]:r,[u]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[p]:r};case"b":return{[u]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Tr,"id","Spacing"),e(Tr,"matches",/^[pm][xytblr]?:./);var De=class extends t{};e(De,"id","Width"),e(De,"matches",/^w:./),e(De,"propName","width");var Pe=class extends t{};e(Pe,"id","Height"),e(Pe,"matches",/^h:./),e(Pe,"propName","height");var Le=class extends t{};e(Le,"id","MinWidth"),e(Le,"matches",/^min-w:./),e(Le,"propName","min-width");var Ge=class extends t{};e(Ge,"id","MinHeight"),e(Ge,"matches",/^min-h:./),e(Ge,"propName","min-height");var q=class extends t{};e(q,"id","LetterSpacing"),e(q,"matches",/^ls:./),e(q,"propName","letter-spacing"),e(q,"unit","em");var Xo="subpixel-antialiased",Mo="-webkit-font-smoothing",ko="-moz-osx-font-smoothing",ze=class extends t{get(r){let o={};switch(r.value){case Xo:o[Mo]=o[ko]={...r,value:"auto"};break;case"antialiased":o[Mo]={...r,value:"antialiased"},o[ko]={...r,value:"grayscale"};break}return o}};e(ze,"id","FontSmoothing"),e(ze,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(ze,"unit","");var Z=class extends t{};e(Z,"id","FontStyle"),e(Z,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(Z,"propName","font-style"),e(Z,"unit","deg");var _e=class extends t{};e(_e,"id","FontVariantNumeric"),e(_e,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(_e,"propName","font-variant-numeric");var J=class extends t{};e(J,"id","LineHeight"),e(J,"matches",/^lh:./),e(J,"propName","line-height"),e(J,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"propName","text-align");var K=class extends t{order=-1};e(K,"id","TextDecoration"),e(K,"matches",/^t(ext)?:(underline|line-through|overline)/),e(K,"propName","text-decoration"),e(K,"colorful",!0);var Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"propName","text-transform");var Qe=class extends t{};e(Qe,"id","VerticalAlign"),e(Qe,"matches",/^(?:v|vertical):./),e(Qe,"propName","vertical-align");var Ye=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(Ye,"id","Lines"),e(Ye,"matches",/^lines:./),e(Ye,"unit","");var ee=class extends t{};e(ee,"id","TransformOrigin"),e(ee,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(ee,"propName","transform-origin"),e(ee,"unit","px");var Xe=class extends t{};e(Xe,"id","TransformStyle"),e(Xe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(Xe,"propName","transform-style");var qe=class extends t{};e(qe,"id","TransformBox"),e(qe,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(qe,"propName","transform-box");var te=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,n,s,p)=>{let u,x;switch(n){case"translate":u="rem";break;case"skew":u="deg";break;case"rotate":s==="3d"&&(x=!0),u="deg";break;default:return i}let c=p.split(",");return i.replace(p,c.map((h,v)=>!x||c.length-1===v?Number.isNaN(+h)?h:h/(u==="rem"?o:1)+u:h).join(","))})}};e(te,"id","Transform"),e(te,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(te,"propName","transform"),e(te,"unit","");var Ze=class extends t{order=-1};e(Ze,"id","Transition"),e(Ze,"symbol","~"),e(Ze,"propName","transition");var re=class extends t{};e(re,"id","TransitionDelay"),e(re,"matches",/^~delay:./),e(re,"propName","transition-delay"),e(re,"unit","ms");var ie=class extends t{};e(ie,"id","TransitionDuration"),e(ie,"matches",/^~duration:./),e(ie,"propName","transition-duration"),e(ie,"unit","ms");var Je=class extends t{};e(Je,"id","TransitionProperty"),e(Je,"matches",/^~property:./),e(Je,"propName","transition-property");var Ke=class extends t{};e(Ke,"id","TransitionTimingFunction"),e(Ke,"matches",/^~easing:./),e(Ke,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var wr=class extends t{};e(wr,"id","Visibility"),e(wr,"propName","visibility");var Or=class extends t{};e(Or,"id","Clear"),e(Or,"propName","clear");var Ar=class extends t{};e(Ar,"id","Float"),e(Ar,"propName","float");var Ir=class extends t{};e(Ir,"id","Isolation"),e(Ir,"propName","isolation");var Br=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Br,"id","Overflow"),e(Br,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Er=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(Er,"id","OverscrollBehavior"),e(Er,"matches",/^overscroll-behavior(?:-[xy])?:/);var oe=class extends t{};e(oe,"id","ZIndex"),e(oe,"matches",/^z:./),e(oe,"propName","z-index"),e(oe,"unit","");var se=class extends t{};e(se,"id","AnimationDelay"),e(se,"matches",/^@delay:./),e(se,"propName","animation-delay"),e(se,"unit","ms");var st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^@fill-mode:./),e(at,"propName","animation-fill-mode");var ae=class extends t{};e(ae,"id","AnimationIterationCount"),e(ae,"matches",/^@iteration-count:./),e(ae,"propName","animation-interation-count"),e(ae,"unit","");var nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^@easing:./),e(ct,"propName","animation-timing-function");var ne=class extends t{order=-1};e(ne,"id","Animation"),e(ne,"symbol","@"),e(ne,"propName","animation"),e(ne,"unit","");var Hi="border-";function le(r,o,i=""){i&&(i="-"+i);let n=/^b(order)?-?(.)?/.exec(r)[2],s=Hi+"left"+i,p=Hi+"right"+i,u=Hi+"top"+i,x=Hi+"bottom"+i;switch(n){case"x":return{[s]:o,[p]:o};case"y":return{[u]:o,[x]:o};case"l":return{[s]:o};case"r":return{[p]:o};case"t":return{[u]:o};case"b":return{[x]:o};default:return{["border"+i]:o}}}var ce=class extends t{get(r){return le(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(ce,"id","BorderColor"),e(ce,"matches",/^border(-(left|right|top|bottom))?-color:./),e(ce,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(ce,"colorful",!0);var Vi="border-top-left-radius",$i="border-top-right-radius",Ui="border-bottom-left-radius",Qi="border-bottom-right-radius",No="border-radius",qo=[Vi,$i,Ui,Qi],Fr=class extends t{get(r){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)i+=n[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Vi]:r,[$i]:r};case"tl":case"lt":return{[Vi]:r};case"rt":case"tr":return{[$i]:r};case"b":return{[Ui]:r,[Qi]:r};case"bl":case"lb":return{[Ui]:r};case"br":case"rb":return{[Qi]:r};case"l":return{[Vi]:r,[Ui]:r};case"r":return{[$i]:r,[Qi]:r};default:return{[No]:r}}}let o=this.prefix?.slice(0,-1);return{[qo.includes(o)?o:No]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Fr,"id","BorderRadius"),e(Fr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Wr=class extends t{get(r){return le(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderStyle"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var jr=class extends t{get(r){return le(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(jr,"id","BorderWidth"),e(jr,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var dt=class extends t{get(r){return le(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var Dr=class extends t{};e(Dr,"id","BackgroundBlendMode"),e(Dr,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"propName","background-clip");var $=class extends t{};e($,"id","BackgroundColor"),e($,"colorStarts","(bg|background):"),e($,"propName","background-color"),e($,"unit",""),e($,"colorful",!0);var pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"propName","background-origin");var de=class extends t{};e(de,"id","BackgroundPosition"),e(de,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(de,"propName","background-position"),e(de,"unit","px");var ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"propName","background-size");var me=class extends t{};e(me,"id","BackgroundImage"),e(me,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(me,"propName","background-image"),e(me,"colorful",!0);var fe=class extends t{order=-1};e(fe,"id","Background"),e(fe,"matches",/^bg:./),e(fe,"propName","background"),e(fe,"colorful",!0);var vt=class extends t{};e(vt,"id","MixBlendMode"),e(vt,"matches",/^blend:./),e(vt,"propName","mix-blend-mode");var Pr=class extends t{};e(Pr,"id","Position"),e(Pr,"propName","position");var Lr=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(Lr,"id","Placement"),e(Lr,"matches",/^(top|left|right|bottom|center|middle):./);function Yi(r,o,{rootSize:i}){let n="",s=0;return function p(u,x){let c="",h=x?o(x):"",v=()=>{c&&(n+=!h||Number.isNaN(+c)?c:+c/(h==="rem"?i:1)+h,c="")};for(;s<r.length;s++){let a=r[s];if(a===u&&(u!=="'"||r[s+1]===")")){v(),n+=a;break}else a===","||a===" "?(v(),n+=a):!c&&a==="'"?(n+=a,s++,p(a),c=""):c&&a==="("?(n+=c+a,s++,p(")",c),c=""):c+=a}v()}(),n}var gt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Yi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(gt,"id","BackdropFilter"),e(gt,"matches",/^bd:./),e(gt,"propName","backdrop-filter");var pe=class extends t{};e(pe,"id","Fill"),e(pe,"propName","fill"),e(pe,"colorStarts","fill:"),e(pe,"colorful",!0);var xt=class extends t{};e(xt,"id","Stroke"),e(xt,"propName","stroke"),e(xt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,o){return Yi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var Gr=class extends t{};e(Gr,"id","Cursor"),e(Gr,"propName","cursor");var zr=class extends t{};e(zr,"id","PointerEvents"),e(zr,"propName","pointer-events");var _r=class extends t{};e(_r,"id","Resize"),e(_r,"propName","resize");var Hr=class extends t{};e(Hr,"id","TouchAction"),e(Hr,"propName","touch-action");var Vr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Vr,"id","UserDrag"),e(Vr,"propName","user-drag");var $r=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e($r,"id","UserSelect"),e($r,"propName","user-select");var ue=class extends t{};e(ue,"id","BoxShadow"),e(ue,"matches",/^s(?:hadow)?:./),e(ue,"propName","box-shadow"),e(ue,"colorful",!0);var yt=class extends t{};e(yt,"id","TextShadow"),e(yt,"propName","text-shadow"),e(yt,"colorful",!0);var Ur=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Ur,"id","TextSize"),e(Ur,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Ct=class extends t{};e(Ct,"id","WordBreak"),e(Ct,"propName","word-break"),e(Ct,"unit","");var he=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(he,"id","GridColumns"),e(he,"matches",/^grid-cols:./),e(he,"propName","grid-columns"),e(he,"unit","");var Rt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"unit","");var Qr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(Qr,"id","Gap"),e(Qr,"matches",/^gap(-x|-y)?:./);var Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"unit","em");var kt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(kt,"id","Variable"),e(kt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(kt,"unit","");var ve=class extends t{};e(ve,"id","AspectRadio"),e(ve,"matches",/^aspect:./),e(ve,"propName","aspect-ratio"),e(ve,"unit","");var Nt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(Nt,"id","BoxDecorationBreak"),e(Nt,"matches",/^box:(slice|clone)(?!\|)/),e(Nt,"propName","box-decoration-break");var Yr=class extends t{};e(Yr,"id","BreakAfter"),e(Yr,"propName","break-after");var Xr=class extends t{};e(Xr,"id","BreakBefore"),e(Xr,"propName","break-before");var qr=class extends t{};e(qr,"id","BreakInside"),e(qr,"propName","break-inside");var Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Zr=class extends t{};e(Zr,"id","FlexBasis"),e(Zr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ge=class extends t{};e(ge,"id","Order"),e(ge,"matches",/^o:./),e(ge,"propName","order"),e(ge,"unit","");var xe=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(xe,"id","GridColumn"),e(xe,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(xe,"propName","grid-column"),e(xe,"unit","");var Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"propName","column-span");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridRow"),e(Se,"matches",/^grid-row-span:./),e(Se,"propName","grid-row"),e(Se,"unit","");var U=class extends t{};e(U,"id","Color"),e(U,"colorStarts","(?:color|fg|foreground):"),e(U,"colorful",!0),e(U,"propName","color"),e(U,"unit","");var Et=class extends t{};e(Et,"id","AlignContent"),e(Et,"matches",/^ac:./),e(Et,"propName","align-content");var Ft=class extends t{};e(Ft,"id","AlignItems"),e(Ft,"matches",/^ai:./),e(Ft,"propName","align-items");var Wt=class extends t{};e(Wt,"id","AlignSelf"),e(Wt,"matches",/^as:./),e(Wt,"propName","align-self");var jt=class extends t{};e(jt,"id","GridAutoColumns"),e(jt,"matches",/^grid-auto-cols:./),e(jt,"propName","grid-auto-columns");var Dt=class extends t{};e(Dt,"id","GridAutoFlow"),e(Dt,"matches",/^grid-flow:./),e(Dt,"propName","grid-auto-flow");var Jr=class extends t{};e(Jr,"id","GridAutoRows"),e(Jr,"propName","grid-auto-rows");var Pt=class extends t{};e(Pt,"id","JustifyContent"),e(Pt,"matches",/^jc:./),e(Pt,"propName","justify-content");var Lt=class extends t{};e(Lt,"id","JustifyItems"),e(Lt,"matches",/^ji:./),e(Lt,"propName","justify-items");var Gt=class extends t{};e(Gt,"id","JustifySelf"),e(Gt,"matches",/^js:./),e(Gt,"propName","justify-self");var Kr=class extends t{order=-1};e(Kr,"id","PlaceContent"),e(Kr,"propName","place-content");var ei=class extends t{order=-1};e(ei,"id","PlaceItems"),e(ei,"propName","place-items");var ti=class extends t{order=-1};e(ti,"id","PlaceSelf"),e(ti,"propName","place-self");var ri=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ri,"id","Padding"),e(ri,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ii,"id","Margin"),e(ii,"matches",/^margin(-(left|right|top|bottom))?:./);var zt=class extends t{};e(zt,"id","TextOverflow"),e(zt,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(zt,"propName","text-overflow");var _t=class extends t{};e(_t,"id","ListStylePosition"),e(_t,"matches",/^list-style:(inside|outside)(?!\|)/),e(_t,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var oi=class extends t{order=-1};e(oi,"id","ListStyle"),e(oi,"propName","list-style");var be=class extends t{};e(be,"id","TextDecorationColor"),e(be,"propName","text-decoration-color"),e(be,"colorStarts","text-decoration:"),e(be,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var ye=class extends t{};e(ye,"id","TextDecorationThickness"),e(ye,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(ye,"propName","text-decoration-thickness"),e(ye,"unit","em");var si=class extends t{};e(si,"id","TextIndent"),e(si,"propName","text-indent");var ai=class extends t{};e(ai,"id","Content"),e(ai,"propName","content");var Ce=class extends t{};e(Ce,"id","OutlineColor"),e(Ce,"propName","outline-color"),e(Ce,"colorStarts","outline:"),e(Ce,"colorful",!0);var ni=class extends t{};e(ni,"id","OutlineOffset"),e(ni,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"propName","outline-width");var Qt=class extends t{order=-1};e(Qt,"id","Outline"),e(Qt,"propName","outline"),e(Qt,"colorful",!0);var Yt=class extends t{};e(Yt,"id","BorderCollapse"),e(Yt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(Yt,"propName","border-collapse");var li=class extends t{};e(li,"id","BorderSpacing"),e(li,"propName","border-spacing");var ci=class extends t{};e(ci,"id","TableLayout"),e(ci,"propName","table-layout");var Re=class extends t{};e(Re,"id","AccentColor"),e(Re,"propName","accent-color"),e(Re,"colorStarts","accent:"),e(Re,"colorful",!0);var di=class extends t{};e(di,"id","Appearance"),e(di,"propName","appearance");var Me=class extends t{};e(Me,"id","CaretColor"),e(Me,"propName","caret-color"),e(Me,"colorStarts","caret:"),e(Me,"colorful",!0);var mi=class extends t{};e(mi,"id","ScrollBehavior"),e(mi,"propName","scroll-behavior");var fi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(fi,"id","ScrollMargin"),e(fi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var pi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(pi,"id","ScrollPadding"),e(pi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var Xt=class extends t{};e(Xt,"id","ScrollSnapAlign"),e(Xt,"matches",/^scroll-snap:(start|end|center)/),e(Xt,"propName","scroll-snap-align");var qt=class extends t{};e(qt,"id","ScrollSnapStop"),e(qt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(qt,"propName","scroll-snap-stop");var Zt=class extends t{};e(Zt,"id","ScrollSnapType"),e(Zt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Zt,"propName","scroll-snap-type");var ui=class extends t{};e(ui,"id","WillChange"),e(ui,"propName","will-change");var hi=class extends t{};e(hi,"id","TextUnderlineOffset"),e(hi,"propName","text-underline-offset");var Jt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Jt,"id","Inset"),e(Jt,"matches",/^(?:top|bottom|left|right):./),e(Jt,"propName","inset");var ke=class extends t{order=-1};e(ke,"id","Columns"),e(ke,"matches",/^(columns|cols):./),e(ke,"propName","columns"),e(ke,"unit","");var Kt=class extends t{};e(Kt,"id","WhiteSpace"),e(Kt,"propName","white-space"),e(Kt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"propName","writing-mode");var vi=class extends t{};e(vi,"id","Contain"),e(vi,"propName","contain");var Ne=class extends t{};e(Ne,"id","AnimationDuration"),e(Ne,"matches",/^@duration:./),e(Ne,"propName","animation-duration"),e(Ne,"unit","ms");var rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var gi=class extends t{};e(gi,"id","Direction"),e(gi,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"propName","text-decoration-line");var Te=class extends t{};e(Te,"id","GridColumnStart"),e(Te,"matches",/^grid-col-start:./),e(Te,"propName","grid-column-start"),e(Te,"unit","");var or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var xi=class extends t{order=-1};e(xi,"id","Grid"),e(xi,"propName","grid");var we=class extends t{order=-1};e(we,"id","Font"),e(we,"matches",/^f:./),e(we,"propName","font"),e(we,"unit","");var Si=class extends t{};e(Si,"id","Quotes"),e(Si,"propName","quotes");var bi=class extends t{order=-1};e(bi,"id","GridTemplate"),e(bi,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var yi=class extends t{};e(yi,"id","GridTemplateAreas"),e(yi,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var Ci=class extends t{};e(Ci,"id","GridTemplateRows"),e(Ci,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"unit","");var Oe=class extends t{};e(Oe,"id","GridColumnEnd"),e(Oe,"matches",/^grid-col-end:./),e(Oe,"propName","grid-column-end"),e(Oe,"unit","");var fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Ri=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Ri,"id","MaskImage"),e(Ri,"propName","mask-image");var Ae=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ae,"id","TextFillColor"),e(Ae,"matches",/^text-fill-color:./),e(Ae,"colorStarts","(text-fill|text|t):"),e(Ae,"colorful",!0);var Mi=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Mi,"id","TextStroke"),e(Mi,"matches",/^text-stroke:./);var ki=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(ki,"id","TextStrokeWidth"),e(ki,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Ie=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Ie,"id","TextStrokeColor"),e(Ie,"matches",/^text-stroke-color:./),e(Ie,"colorStarts","text-stroke:"),e(Ie,"colorful",!0);var Ni=class extends t{};e(Ni,"id","StrokeDasharray"),e(Ni,"propName","stroke-dasharray");var Ti=class extends t{};e(Ti,"id","StrokeDashoffset"),e(Ti,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"unit","");var vr=class extends t{};e(vr,"id","Cy"),e(vr,"propName","cy"),e(vr,"unit","");var gr=class extends t{};e(gr,"id","Rx"),e(gr,"propName","rx"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Ry"),e(xr,"propName","ry"),e(xr,"unit","");var wi=class extends t{};e(wi,"id","BorderImageOutset"),e(wi,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"unit","");var yr=class extends t{};e(yr,"id","BorderImageSource"),e(yr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(yr,"propName","border-image-source");var Cr=class extends t{};e(Cr,"id","BorderImageWidth"),e(Cr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Cr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var Zo=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,o){let i={},n=(h,v)=>{let a=v.indexOf(":");if(a!==-1){h in i||(i[h]={});let l=i[h],m=v.slice(0,a);m in l||(l[m]=v.slice(a+1))}},s=h=>{let v=(a,l)=>{let m=l.slice(CSS.escape(h.className).length).match(Zo)[1].split(";");for(let d of m)n(a,d)};if(this.themeName){let a=h.natives.find(l=>l.themeName===this.themeName)??h.natives.find(l=>!l.themeName);a&&v(this.themeName,a.text)}else for(let a of h.natives)v(a.themeName,a.text)},p=[],u="",x=()=>{u&&(p.push(u),u="")},c=1;(function h(v){for(;c<r.value.length;c++){let a=r.value[c];if(!v){if(a===";"){x();continue}if(a==="}")break}if(u+=a,v===a){if(v==="'"){let l=0;for(let m=u.length-2;u[m]==="\\";m--)l++;if(l%2)continue}break}else a in Nr&&v!=="'"&&(c++,h(Nr[a]))}})(void 0),x();for(let h of p){let v=o.findAndNew(h);if(Array.isArray(v))for(let a of v)s(a);else v?s(v):n(this.themeName??"",h)}return i}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var kr=class extends t{};e(kr,"id","CounterIncrement"),e(kr,"propName","counter-increment"),e(kr,"unit","");var Jo=[Mr,kt,je,X,We,ze,Z,_e,we,U,Tr,ii,ri,Zr,At,Ot,Tt,wt,It,rt,De,Pe,Le,Ge,vi,ai,kr,q,J,He,Ve,$e,be,Vt,ye,ir,K,hi,zt,er,Ue,rr,si,Qe,ke,Kt,Jt,Ye,et,tt,it,ot,wr,Or,Ar,Ir,Br,Er,oe,Pr,Lr,Gr,zr,_r,Hr,Ct,Mt,Vr,$r,yt,Ur,Ae,ki,Ie,Mi,ue,ci,qe,Xe,ee,te,Je,Ke,ie,re,Ze,se,st,Ne,at,ae,nt,lt,ct,ne,ce,Fr,Wr,jr,Yt,li,wi,Sr,br,yr,Cr,Rr,dt,mt,Dr,ft,$,pt,de,ut,ht,me,fe,vt,gt,bt,pe,Ni,Ti,St,xt,pr,ur,hr,vr,gr,xr,Te,Oe,xe,he,cr,fr,Se,Rt,jt,Dt,Jr,yi,dr,Ci,bi,mr,xi,Qr,ge,qr,Xr,Yr,Nt,ve,Bt,Et,Ft,Wt,Pt,Lt,Gt,Kr,ei,ti,_t,Ht,or,oi,Ce,ni,$t,Ut,Qt,Re,di,Me,mi,fi,pi,Xt,qt,Zt,ui,tr,gi,sr,ar,nr,lr,Si,Ri],To=Jo;var Ko={colors:mo,breakpoints:Bi,semantics:uo,values:go,selectors:po,themes:ho,scheme:vo,Rules:To,rootSize:fo},so=Ko;function wo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function Xi(r){return Object.prototype.toString.call(r).slice(8,-1)}function Oi(r){return Xi(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function ao(r){return Xi(r)==="Symbol"}function Oo(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 Ao(r,o,i){if(!Oi(o))return o;let n={};if(Oi(r)){let x=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...x,...c].reduce((h,v)=>{let a=r[v];return(!ao(v)&&!Object.getOwnPropertyNames(o).includes(v)||ao(v)&&!Object.getOwnPropertySymbols(o).includes(v))&&Oo(h,v,a,r),h},{})}let s=Object.getOwnPropertyNames(o),p=Object.getOwnPropertySymbols(o);return[...s,...p].reduce((x,c)=>{let h=o[c],v=Oi(r)?r[c]:void 0;v!==void 0&&Oi(h)&&(h=Ao(v,h,i));let a=i?i(v,h,c):h;return Oo(x,c,a,o),x},n)}function qi(r,...o){return o.filter(i=>Oi(i)).reduce((i,n)=>Ao(i,n,wo),r)}var es=[",",".","#","[","!","*",">","+","~",":","@"],ts=/^::-[a-z]+-/m,Zi,ji=typeof window<"u";ji&&(Zi=document.createElement("style"),Zi.title="master");var G="max-width",L="min-width",rs="attributes",is=ji?window.MutationObserver:Object,Ai,Be,Wi=class extends is{constructor(i,n){super(p=>{let u={},x=[],c=[],h=[],v=(d,f)=>{f?d.classList.forEach(l):d.classList.forEach(a);let g=d.children;for(let S=0;S<g.length;S++){let b=g[S];b.classList&&(c.push(b),v(b,f))}},a=d=>{d in u?u[d]++:u[d]=1},l=d=>{d in u?u[d]--:u[d]=-1},m=(d,f)=>{for(let g=0;g<d.length;g++){let S=d[g];S.classList&&!c.includes(S)&&!h.includes(S)&&(S.isConnected!==f?(c.push(S),v(S,f)):h.push(S))}};for(let d=0;d<p.length;d++){let f=p[d],{addedNodes:g,removedNodes:S,type:b,target:M,oldValue:I}=f;if(b===rs){if(M.className===I||x.find(R=>R.target===M))continue;x.push(f)}else m(g,!1),m(S,!0)}if(!(!x.length&&!Object.keys(u).length)){for(let{oldValue:d,target:f}of x){let g=c.includes(f),S=f.classList,b=d?d.split(" "):[];if(g){if(f.isConnected)continue;for(let M of b)S.contains(M)||l(M)}else if(f.isConnected){S.forEach(M=>{b.includes(M)||a(M)});for(let M of b)S.contains(M)||l(M)}else for(let M of b)l(M)}for(let d in u){let f=u[d],g=(this.countOfClass[d]||0)+f;g===0?(delete this.countOfClass[d],this.delete(d)):(d in this.countOfClass||this.findAndInsert(d),this.countOfClass[d]=g)}}});this.config=i;this.options=n;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"root");e(this,"ready",!1);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,"schemeMQL");Ki(this,Ai,void 0);Ki(this,Be,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});this.options=qi({observe:!0,root:ji?document:null},n);let s=this.root=this.options.root;if(i&&!this.options.override?this.config=qi(so,i):this.config=so,this.cache(),ji&&s){let p=s===document;this.host=p?document.documentElement:s.host,this.scheme=this.storageScheme||this.config.scheme.preference;let u=p?document.head:s,x=p?document.styleSheets:s.styleSheets;for(let c of x){let{title:h,href:v,ownerNode:a}=c;(h==="master"||v&&/master(?:\..+)?\.css/.test(v))&&(this.style=a)}if(this.style)for(let c=0;c<this.style.sheet.cssRules.length;c++){let h=a=>{if(a.selectorText){let m=a.selectorText.split(", ")[0].split(" ");for(let d=0;d<m.length;d++){let f=m[d];if(f[0]==="."){let g=f.slice(1),S="";for(let b=0;b<g.length;b++){let M=g[b],I=g[b+1];if(M==="\\"){if(b++,I!=="\\"){S+=I;continue}}else if(es.includes(M))break;S+=M}if(!(S in this.ruleOfClass)&&!(S in this.classes)){let b=this.findAndNew(S);if(b)return b}}}}else if(a.cssRules)for(let l=0;l<a.cssRules.length;l++){let m=h(a.cssRules[l]);if(m)return m}},v=h(this.style.sheet.cssRules[c]);if(v){this.rules.push(v),this.ruleOfClass[v.className]=v;for(let a=0;a<v.natives.length;a++)v.natives[a].cssRule=this.style.sheet.cssRules[c+a];c+=v.natives.length-1}}else this.style=Zi.cloneNode(),u.prepend(this.style);p&&(Wi.root=this,this.options.observe&&this.observe())}Wi.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!==Fe(this,Ai)){eo(this,Ai,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 Fe(this,Ai)}set theme(i){i!==Fe(this,Be)&&(Fe(this,Be)&&this.host.classList.remove(Fe(this,Be)),eo(this,Be,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 Fe(this,Be)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:i,classes:n,selectors:s,themes:p,colors:u}=this.config;function x(a){return a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let a in i)this.semantics.push([new RegExp("^"+x(a)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),a]);if(s)for(let[a,l]of Object.entries(s)){let m=new RegExp(x(a)+"(?![a-z-])");for(let d of Array.isArray(l)?l:[l]){let f=d.match(ts)?.[0]??"",g=this.selectors[f];g||(g=this.selectors[f]=[]);let S=g.find(([b])=>b===m);S||(S=[m,[]],g.push(S)),S[1].push(d)}}let c=[...n?Object.keys(n):[],...p&&!Array.isArray(p)?Object.entries(p).flatMap(([a,{classes:l}])=>l?Object.keys(l):[]):[]],h=a=>{if(a in this.classes)return;let l=this.classes[a]=[],m=(d,f)=>{if(!f)return;let g=Array.isArray(f)?f:f.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let S of g){let b=M=>{M in this.relationThemesMap?d in this.relationThemesMap[M]?this.relationThemesMap[M][d].push(a):this.relationThemesMap[M][d]=[a]:this.relationThemesMap[M]={[d]:[a]},l.includes(M)||l.push(M)};if(c.includes(S)){h(S);for(let M of this.classes[S])b(M)}else b(S)}};if(m("",n?.[a]),p&&!Array.isArray(p))for(let[d,{classes:f}]of Object.entries(p))m(d,f?.[a])};for(let a of c)h(a);for(let a in this.relationThemesMap){let l=this.relations[a]=[];for(let m of Object.values(this.relationThemesMap[a]))for(let d of m)l.includes(d)||l.push(d)}let v=(a,l)=>{if(!!l)for(let m in l){let d=l[m];if(typeof d=="string"&&(d={"":d}),m in this.colorsThemesMap){let f=this.colorsThemesMap[m];for(let g in d){let S=d[g];g in f?f[g][a]=S:f[g]={[a]:S}}}else this.colorNames.push(m),this.colorsThemesMap[m]=Object.entries(d).reduce((f,[g,S])=>(f[g]={[a]:S},f),{})}};if(v("",u),p)if(Array.isArray(p))this.themeNames.push(...p);else for(let a in p){let l=p[a];v(a,l.colors),this.themeNames.push(a)}}observe(i={subtree:!0,childList:!0}){return i.subtree&&this.host.querySelectorAll("[class]").forEach(n=>{n.classList.forEach(s=>{s in this.countOfClass?this.countOfClass[s]++:(this.countOfClass[s]=1,this.findAndInsert(s))})}),super.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),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 p of this.config.Rules){let u=p.match(s,this.colorNames);if(u)return new p(s,u,this)}for(let p of this.semantics)if(s.match(p[0]))return new t(s,{origin:"semantics",value:p[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=Zi.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=Wi.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,p=this.rules.length-1,{media:u,order:x,prioritySelectorIndex:c,hasWhere:h,className:v}=i,a=(l,m,d,f)=>{let g=0,S;m&&(g=l.findIndex(m)),d&&(S=l.findIndex(d)),g===-1&&(g=l.length),(S===void 0||S===-1)&&(S=l.length);let b=l.slice(g,S);for(let M=0;M<b.length;M++){let I=b[M];if(!(I.prioritySelectorIndex===-1||f&&f(I))&&(I.prioritySelectorIndex<c||I.prioritySelectorIndex===c&&(h&&!I.hasWhere||I.order>=x)))return g+M}return g+b.length};if(u){let l=this.rules.findIndex(m=>m.media);if(l!==-1){let m=u.features[G],d=u.features[L];if(m&&d){let f=m.value-d.value;for(let g=p;g>=l;g--){s=g;let S=this.rules[g],b=S.media,M=b.features[G],I=b.features[L];if(!M||!I){s++;break}let R=M.value-I.value;if(R===f){if(h!==S.hasWhere)continue;if(c!==-1){let E=[this.rules[g]];for(let F=g-1;F>=l;F--){let _=this.rules[F];if(_.hasWhere!==h)break;let V=_.media,H=V.features[G],B=V.features[L];if(!H||!B||H.value-B.value!==R)break;E.unshift(this.rules[F])}s=a(this.rules,F=>F.media&&F.prioritySelectorIndex!==-1&&F.media.features[L]&&F.media.features[G])}break}else if(R>f)break}}else if(d)for(let f=l;f<=p;f++){s=f;let g=this.rules[f],S=g.media,b=S.features[G],M=S.features[L];if(b){if(M)break;continue}let I=M?.value;if(I===d.value){if(!h&&g.hasWhere){s++;continue}if(c!==-1)s=a(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[L]&&R.media.features[G],R=>!R.media.features[L]&&!R.media.features[G]);else for(let R=f;R<=p;R++){let E=this.rules[R],F=E.media,_=F.features[L];if(!F.features[G]){if(E.hasWhere!==h||_.value!==I||E.order>=x)break;s=R+1}}break}else{if(I>d.value)break;s++}}else if(m)for(let f=p;f>=l;f--){s=f;let g=this.rules[f],S=g.media,b=S.features[G];if(S.features[L])continue;let I=b?.value;if(!I||I>m.value){s++;break}else if(I===m.value){if(h&&!g.hasWhere)continue;if(c!==-1)s=a(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[L]&&R.media.features[G],R=>!R.media.features[L]&&!R.media.features[G]);else{let R=[this.rules[f]];for(let E=f-1;E>=l;E--){let F=this.rules[E],_=F.media,V=_.features[L],H=_.features[G];if(!V&&(!H||H.value!==I||F.hasWhere!==h))break;R.unshift(F)}for(let E=0;E<R.length;E++){let F=R[E];if(!F.media.features[L]){if(F.order>=x)break;s=f-R.length+2+E}}}break}}}if(s===void 0)if(l===-1)s=p+1;else if(c!==-1)s=l+a(this.rules.slice(l),void 0,m=>m.media.features[G]||m.media.features[L]);else if(h){let m=l;for(;m<this.rules.length;m++){let d=this.rules[m];if(d.prioritySelectorIndex!==-1||!d.hasWhere||d.order>=x){s=m;break}}s===void 0&&(s=m)}else for(let m=l;m<=p;m++){s=m;let d=this.rules[m],f=d.media;if(d.prioritySelectorIndex!==-1||f.features[G]||f.features[L])break;if(d.hasWhere)s++;else if(d.order>=x)break}}else if(c===-1)if(h)s=this.rules.findIndex(l=>!l.hasWhere||l.media||l.prioritySelectorIndex!==-1||l.order>=x),s===-1&&(s=p+1);else{let l=0;for(;l<this.rules.length;l++){let m=this.rules[l];if(m.media||!m.hasWhere&&(m.order>=x||m.prioritySelectorIndex!==-1)){s=l;break}}s===void 0&&(s=l)}else s=a(this.rules,void 0,l=>l.media);if(this.rules.splice(s,0,i),this.ruleOfClass[v]=i,this.style){let l=this.style.sheet,m=0,d=f=>{let g=this.rules[f];if(g){if(!g.natives.length)return d(f-1);let S=g.natives[g.natives.length-1].cssRule;for(let b=0;b<l.cssRules.length;b++)if(l.cssRules[b]===S){m=b+1;break}}};d(s-1);for(let f=0;f<i.natives.length;)try{let g=i.natives[f];l.insertRule(g.text,m),g.cssRule=l.cssRules[m++],f++}catch(g){console.error(g),i.natives.splice(f,1)}}}delete(i){let n=this.style.sheet,s=p=>{let u=this.ruleOfClass[p];if(!(!u||p in this.relations&&this.relations[p].some(x=>x in this.countOfClass))){if(u.natives.length){let x=u.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===x.cssRule){for(let v=0;v<u.natives.length;v++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(u),1);break}}delete this.ruleOfClass[p]}};if(i in this.classes){for(let p of this.classes[i])p in this.countOfClass||s(p);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("")}},Ee=Wi;Ai=new WeakMap,Be=new WeakMap,e(Ee,"instances",[]),e(Ee,"root");ji&&(window.MasterCSS=Ee);new Ee(window.masterCSSConfig);})();
|
|
2
|
-
//# sourceMappingURL=index.browser.js.map
|
|
1
|
+
(()=>{var Pe=Object.defineProperty;var Ue=(t,e,r)=>e in t?Pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var oe=(t,e,r)=>(Ue(t,typeof e!="symbol"?e+"":e,r),r);function Re(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ce(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function Te(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=Te(r):Re(r)?e[i]=Ce(r):e[i]=K({},r):e[i]=r}),e}function Se(t,e){return e==="__proto__"?void 0:t[e]}function K(...t){let e={},r,i;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(i=Se(e,o),r=Se(n,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=Te(r);return}else if(Re(r)){e[o]=Ce(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=K({},r);return}else{e[o]=K(i,r);return}})}),e}var ye=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function ue(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,n="",o,h=e.charCodeAt(0);if(r==1&&h==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){n+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&h==45){n+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(i);continue}n+="\\"+e.charAt(i)}return n}var He={unit:"",order:0,separators:[","]},fe=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=K(He,r.config);let{unit:n,order:o,colored:h,native:p,analyze:m,transform:l,declare:a,create:s}=this.config,{scope:c,important:b,functions:y}=i.config,{themeNames:k,colorNames:j,colorThemesMap:A,selectors:u,breakpoints:d,mediaQueries:f,themeAffectedClassesBy:w,globalValues:x}=i,R=w[e];this.order=o,s&&s.call(this,e);let C,W,E,Y,Z;if(r.origin==="semantics"){let[L,O]=r.value;Y=e.slice(L.length),C=O}else{let L;if(m)[L,E]=m.call(this,e);else if(r.origin==="match"){let T=e.indexOf(":");this.prefix=e.slice(0,T+1),this.prefix.includes("(")?(this.prefix=void 0,L=e):L=e.slice(T+1)}else r.origin==="symbol"&&(this.symbol=e[0],L=e.slice(1));Z=[];let O=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",v=0;(function T(g,B,M,$=void 0,I=[],U=[],z){let Q=$===void 0,P,q=D=>D==="'"||D==='"',re=()=>P=S.length,G=()=>{if(S){let D=S,V=Q?D:S.slice(P);if(S="",X="",N&&V in N&&!I.includes(V)){let H=v;v=0,T(N[V].toString(),B,void 0,$,[...I,V],U,z),v=H,Q||(S=S.slice(0,P)+S)}else if(x&&V in x&&!U.includes(V)){let H=v;v=0,T(x[V].toString(),B,void 0,$,I,[...U,V],z),v=H,Q||(S=S.slice(0,P)+S)}else if(Q){let H=!z&&O.analyzeUnitValue(V,B);Z.push({value:H?.value??V,unit:H?.unit})}else{let H=!z&&O.analyzeUnitValue(V,B);S=H?D.slice(0,P)+H.value+H.unit:D}re()}},J=q(M);re();let X="";for(;v<g.length;v++){let D=g[v];if(D===M){if(J){S+=D;let V=0;for(let H=S.length-2;S[H]==="\\";H--)V++;if(V%2)continue}else G(),S+=D;return}else if(!J&&D in ie){let V=D==="("&&X&&y?.[X];V?.name&&(S=S.slice(0,S.length-X.length)+V.name,X=V.name),S+=D,v++;let H=ie[D];T(g,V?.unit??B,H,X||$||"",I,U,z||!!V?.transform),V?.transform&&(S=S.slice(0,P+X.length+1)+V.transform.call(O,S.slice(P+X.length+1,-1))+S.slice(-1)),Q&&(q(H)?(Z.push(S),S=""):G()),X=""}else if((D==="|"||D===" ")&&M!=="}"&&(!J||$==="path"))G(),Q||(S+=" ",P++);else{if(!J){if(D==="."){if(isNaN(+g[v+1]))break;g[v-1]==="-"&&(S+="0")}else if(F.includes(D)){G(),Q?Z.push(D):(S+=D,P++);continue}else if(Q&&(D==="#"&&(S||Z.length&&g[v-1]!=="|"&&Z[v-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;X+=D}S+=D}}$===void 0&&G()})(L,n),Y=L.slice(v)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let we=L=>{let O=L.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((v,T)=>T%3?v:v.replace(/_/g," ")).join(""),N=[],F="",S=0;for(let v=0;v<O.length;v++){let T=O[v];if(T==="\\"){F+=T+O[++v];continue}!S&&T===","?(N.push(F),F=""):(F+=T,S&&T===")"?S--:T==="("&&S++)}return F&&N.push(F),N};this.prefixSelectors=E?we(E):[""];let be=Y.split("@"),ve=be[0];if(ve){this.vendorSuffixSelectors={};let L=(v,T,g,B)=>{for(let[M,$]of T)if(M.test(v)){for(let I of $)L(v.replace(M,I),T,g,!0);return}B&&g.push(v)},O=[];""in u?L(ve,u[""],O,!0):O.push(ve);let N={};for(let[v,T]of Object.entries(u)){if(!v)continue;let g=[];for(let B of O)L(B,T,g,!1);g.length&&(N[v]=g)}let F=(v,T)=>{let g=T.reduce((B,M)=>(B.push(...we(M)),B),[]);v in this.vendorSuffixSelectors?this.vendorSuffixSelectors[v].push(...g):this.vendorSuffixSelectors[v]=g},S=Object.keys(N);if(S.length)for(let v of S)F(v,N[v]);else F("",O);for(let v of Object.values(this.vendorSuffixSelectors))for(let T of v){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let g=0;g<ye.length;g++)if(T.includes(ye[g])){(this.priority===-1||this.priority>g)&&(this.priority=g);break}}}else this.vendorSuffixSelectors={"":[""]};for(let L=1;L<be.length;L++){let O=be[L];if(O)if(k.includes(O))this.theme=O;else if(O==="rtl"||O==="ltr")this.direction=O;else{let N,F,S=O.indexOf("_");if(S!==-1)N=O.slice(0,S),F=O.slice(S);else{let v=O.indexOf("(");v!==-1&&(N=O.slice(0,v),F=O.slice(v))}if(!N){N="media";let v=[];this.media={token:O,features:{}};let T=O.split("&");for(let g of T)if(g==="all"||g==="print"||g==="screen"||g==="speech")this.media.type=g;else if(g==="\u{1F5A8}")this.media.type="print";else if(g==="landscape"||g==="portrait")v.push("(orientation:"+g+")");else if(g==="motion"||g==="reduced-motion")v.push("(prefers-reduced-motion:"+(g==="motion"?"no-preference":"reduce")+")");else if(f&&g in f)v.push(f[g]);else{let B={token:g},M="",$="",I=0;g.startsWith("<=")?($="<=",M="max-width"):g.startsWith(">=")||d[g]?($=">=",M="min-width"):g.startsWith(">")?($=">",M="min-width",I=.02):g.startsWith("<")&&($="<",M="max-width",I=-.02);let U=$?g.replace($,""):g,z=d[U];switch(M){case"max-width":case"min-width":z?Object.assign(B,this.analyzeUnitValue(z.toString(),"px")):Object.assign(B,this.analyzeUnitValue(U,"px")),B.unit==="px"&&(B.value+=I),this.media.features[M]=B,v.push("("+M+":"+(B.value+B.unit)+")");break}}F="",this.media.type&&(F=this.media.type),v.length&&(F+=(F?" and ":"")+v.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let xe=(L,O)=>{let N,F=(T,g,B)=>{let M="";this.direction&&(M+="[dir="+this.direction+"] ");let $=this.prefixSelectors.map(z=>z+M),I=(z,Q)=>$.map(P=>(z?"."+z+" ":"")+(c?c+" ":"")+P).reduce((P,q)=>(P.push(B.reduce((re,G)=>(re.push(q+"."+ue(Q)+G),re),[]).join(",")),P),[]).join(","),U=I(g,e)+(R?Object.entries(R).filter(([z])=>this.theme||!h||!g||!z||z===g).map(([z,Q])=>Q.reduce((P,q)=>P+","+I(this.theme??((h||W)&&g||z),q),"")).join(""):"")+"{"+T+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))U="@"+z+" "+this.at[z]+"{"+U+"}";return U},S=[];if(Z){let T=this.theme?[this.theme,""]:[L],g,B;for(let M of Z)if(typeof M=="string")S.push(M);else{let $=M.value;if(M.unit)$+=M.unit;else if(h&&A&&j){let I=!1,U=!1;$=$.replace(new RegExp(`(^|,| |\\()((?:${j.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,q)=>{U=!0;let re=A[P];if(re){let G;for(let J of T)if(G=re[J])break;if(G){I=!0;let J=G;if(q){let X=q.endsWith("%")?parseFloat(q)/100:+q;X=isNaN(X)?1:Math.min(Math.max(X,0),1),J+=Math.round(X*255).toString(16).toUpperCase().padStart(2,"0")}return Q+J}}return z}),U&&(B=I)}B!==void 0&&!g&&(g=B),S.push($)}if(O&&(g===void 0?L:!g))return;if(N=S.reduce((M,$,I)=>M+$+($===","||Z[I+1]===","||I===Z.length-1?"":" "),""),l&&(N=l.call(this,N,this.css.config)),h&&N==="current"&&(N="currentColor"),a){let M,$;if(Z.length===1){let I=Z[0];typeof I=="object"&&(M=I.value,$=I.unit)}C=a.call(this,$?M:N,$||"")}else C={[p]:N}}let v={};for(let T in C){let g=($,I)=>{let U=I+((this.important||b)&&!I.endsWith("!important")?"!important":"");$ in v?v[$].push(U):v[$]=[U]},B=T+":",M=C[T];if(typeof M=="object"){W=!0;for(let $ in M)g($,B+M[$])}else g(L,B+M.toString())}for(let T of Object.values(this.vendorSuffixSelectors))for(let g in v)this.natives.push({text:F(v[g].join(";"),g,T),theme:g})};if(this.theme)xe(this.theme,!1);else if(h)for(let L of k)xe(L,!0);else xe("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let n="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[h,p]=e.split("/");return{value:+h/+p*100+"%",unit:n}}else{let h=+o[1];return n=o[3]||"",n||((i==="rem"||i==="em")&&(h=h/this.css.config.rootSize),n=i||""),{value:h,unit:n}}}}};var ae={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function le(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function he(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,n="0"in t?le(t[0]):[0,0,0],o,h,p=[],m=()=>{let l=o-i,a=h.map((s,c)=>(s-n[c])/l);for(let s of p){let c=s-i,b=n.map((y,k)=>Math.round(y+a[k]*c));t[s]="#"+he.call(this,...b)}};for(let l=1;l<100;l++)l in t?(p.length?(o=l,h=le(t[l]),m(),p.length=0,n=h):n=le(t[l]),i=l):p.push(l);p.length&&(o=100,h="100"in t?le(t[100]):[255,255,255],m())}return e||(t[""]=t[r?"500":"50"]),t}var $e={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Me="";var Ee={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Oe={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"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var Be=["dark","light"];var se={content:"content-box",border:"border-box",padding:"padding-box"};var ce={min:"min-content",max:"max-content"};var ee={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in ae)ee[t]=ae[t]/16+"rem";var We={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(l,a)=>{let s=a.indexOf(":");if(s!==-1){l in e||(e[l]={});let c=e[l],b=a.slice(0,s);b in c||(c[b]=a.slice(s+1))}},i=l=>{let a=(s,c)=>{let b=c.slice(ue(l.className).length).match(/\{(.*)\}/)[1].split(";");for(let y of b)r(s,y)};if(this.theme){let s=l.natives.find(c=>c.theme===this.theme)??l.natives.find(c=>!c.theme);s&&a(this.theme,s.text)}else for(let s of l.natives)a(s.theme,s.text)},n=[],o="",h=()=>{o&&(n.push(o.replace(/ /g,"")),o="")},p=1;(function l(a){for(;p<t.length;p++){let s=t[p];if(!a){if(s===";"){h();continue}if(s==="}")break}if(o+=s,a===s){if(a==="'"||a==='"'){let c=0;for(let b=o.length-2;o[b]==="\\";b--)c++;if(c%2)continue}break}else s in ie&&a!=="'"&&a!=='"'&&(p++,l(ie[s]))}})(void 0),h();for(let l of n){let a=this.css.create(l);if(Array.isArray(a))for(let s of a)i(s);else a?i(a):r(this.theme??"",l)}let m={};for(let l in e)for(let[a,s]of Object.entries(e[l]))a in m?m[a][l]=s:m[a]={[l]:s};return m}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ie.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ie.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:ee,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:ee},height:{match:"^h:.",unit:"rem",native:!0,values:ee},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:ee},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:ee},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:ee},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:ee},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...se,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return je.call(this,t)},delete(t){return Ae.call(this,t)},insert(){return Ne.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return je.call(this,t)},delete(t){return Ae.call(this,t)},insert(){return Ne.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let o=1;o<n.length-1;o++)i+=n[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return de(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return de(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return de(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:se},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:se},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ce},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ce,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ce},gridTemplateRows:{native:!0,unit:"rem",values:ce},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...se,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...se,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}};function je(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function Ae(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ne(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,n=r?.sheet;for(let o of this.keyframeNames)if(o in e)e[o].count++;else{let h={text:`@keyframes ${o} {`+Object.entries(t.keyframes[o]).map(([m,l])=>`${m} {${Object.entries(l).map(([a,s])=>a+": "+s).join(";")}}`).join(",")+"}",theme:""},p;if(Object.keys(e).length?(p=i[0]).natives.push(h):i.splice(0,0,p={natives:[h],get text(){return this.natives.map(m=>m.text).join("")}}),n){let m;for(let l=0;l<n.cssRules.length;l++){let a=n.cssRules[l];if(a.constructor.name!=="CSSKeyframesRule")break;if(a.name===o){m=a;break}}if(m)h.cssRule=m;else{let l=p.natives.length-1;n.insertRule(h.text,l),h.cssRule=n.cssRules[l]}}e[o]={native:h,count:1}}}}function Ie(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",n=r+"-right",o=r+"-top",h=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[n]:t};case"y":return{[o]:t,[h]:t};case"l":return{[i]:t};case"r":return{[n]:t};case"t":return{[o]:t};case"b":return{[h]:t};default:return{[r]:t}}}function de(t,e,r=""){let i="border-";r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,h=i+"right"+r,p=i+"top"+r,m=i+"bottom"+r;switch(n){case"x":return{[o]:e,[h]:e};case"y":return{[p]:e,[m]:e};case"l":return{[o]:e};case"r":return{[h]:e};case"t":return{[p]:e};case"b":return{[m]:e};default:return{["border"+r]:e}}}var Le={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var ke={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=m=>m==="+"||m==="-"||m==="*"||m==="/",r="",i,n="",o=!1,h=!1,p=(m,l="",a="")=>{if(i===2&&!h){let s=this.analyzeUnitValue(n,ke.calc.unit);s&&(n=s.value+s.unit)}r+=n+l+m+a,i=null,h=!1,n=""};for(let m=0;m<t.length;m++){let l=t[m];if(l==="("||l===")")o=l===")",p(l);else if(l===",")p(l,""," ");else{switch(i){case 1:break;case 2:if(e(l)){p(l," "," ");continue}else/[0-9]/.test(l)||(h=!0);break;default:o&&(r+=" "),isNaN(+l)?e(l)||(i=1):i=2;break}i?n+=l:r+=l}}return p(""),r}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""}};var ze="highest";var me={breakpoints:ae,colors:$e,rootSize:16,scope:Me,selectors:Ee,semantics:Oe,themes:Be,rules:We,override:!1,observe:!0,important:!1,functions:ke,keyframes:Le,precedence:ze};var De=[",",".","#","[","!","*",">","+","~",":","@"];var ge=typeof window<"u",Fe=()=>{let t=document.createElement("style");return t.id="master",t.setAttribute("blocking","render"),t},ne=class{constructor(e){this.config=e;this.config?.override||(this.config=K(me,e)),this.cache(),ge&&this.config.observe&&this.observe(document),ne.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer=ge?new MutationObserver(e=>{let r={},i=[],n=[],o=[],h=(a,s)=>{s?a.classList.forEach(m):a.classList.forEach(p);let c=a.children;for(let b=0;b<c.length;b++){let y=c[b];y.classList&&(n.push(y),h(y,s))}},p=a=>{a in r?r[a]++:r[a]=1},m=a=>{a in r?r[a]--:a in this.countBy&&(r[a]=-1)},l=(a,s)=>{for(let c=0;c<a.length;c++){let b=a[c];b.classList&&!n.includes(b)&&!o.includes(b)&&(b.isConnected!==s?(n.push(b),h(b,s)):o.push(b))}};for(let a=0;a<e.length;a++){let s=e[a],{addedNodes:c,removedNodes:b,type:y,target:k}=s;if(y==="attributes"){if(i.find(j=>j.target===k))continue;i.push(s)}else l(c,!1),(!k.isConnected||!n.includes(k))&&l(b,!0)}if(!(!i.length&&!Object.keys(r).length)){for(let{oldValue:a,target:s}of i){let c=n.includes(s),b=s.classList,y=a?a.split(" "):[];if(c){if(s.isConnected)continue;for(let k of y)b.contains(k)||m(k)}else if(s.isConnected){b.forEach(k=>{y.includes(k)||p(k)});for(let k of y)b.contains(k)||m(k)}}for(let a in r){let s=r[a],c=(this.countBy[a]||0)+s;c===0?(delete this.countBy[a],this.delete(a)):(a in this.countBy||this.insert(a),this.countBy[a]=c)}}}):null;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:n,colors:o,values:h,breakpoints:p,mediaQueries:m,rules:l}=this.config;function a(u){return u.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(u,d,f="",w={}){let x=E=>E?(f?f+"-":"")+E:f,R=Object.entries(u),C=[],W=[];for(let E of R){let Y=E[1];(typeof Y=="object"&&!Array.isArray(Y)?C:W).push(E)}for(let[E,Y]of C)s(Y,d,x(E),w);if(d&&f)W.length&&(w[f]=W.reduce((E,[Y,Z])=>(E[Y]=Z,E),{}));else for(let[E,Y]of W)w[x(E)]=Y;return w}if(e)for(let[u,d]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+a(u)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[u,d]]);if(i)for(let[u,d]of Object.entries(s(i,!1))){let f=new RegExp(a(u)+"(?![a-z-])");for(let w of Array.isArray(d)?d:[d]){let x=w.match(/^::-[a-z]+-/m)?.[0]??"",R=this.selectors[x];R||(R=this.selectors[x]=[]);let C=R.find(([W])=>W===f);C||(C=[f,[]],R.push(C)),C[1].push(w)}}h&&(this.globalValues=s(h,!1)),p&&(this.breakpoints=s(p,!1)),m&&(this.mediaQueries=s(m,!1));let c=r?s(r,!1):{},b=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:u}])=>u).reduce((u,[d,{classes:f}])=>(u[d]=s(f,!1),u),{}):{},y=[...Object.keys(c),...Object.entries(b).flatMap(([u,d])=>Object.keys(d))],k=u=>{if(u in this.classes)return;let d=this.classes[u]=[],f=(w,x)=>{if(!x)return;let R=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let C of R){let W=E=>{E in this.themeAffectedClassesBy?w in this.themeAffectedClassesBy[E]?this.themeAffectedClassesBy[E][w].push(u):this.themeAffectedClassesBy[E][w]=[u]:this.themeAffectedClassesBy[E]={[w]:[u]},d.includes(E)||d.push(E)};if(y.includes(C)){k(C);for(let E of this.classes[C])W(E)}else W(C)}};f("",c?.[u]);for(let[w,x]of Object.entries(b))f(w,x?.[u])};for(let u of y)k(u);for(let u in this.themeAffectedClassesBy){let d=this.classesBy[u]=[];for(let f of Object.values(this.themeAffectedClassesBy[u]))for(let w of f)d.includes(w)||d.push(w)}let j=(u,d)=>{if(!d)return;let f=s(d,!0);for(let[w,x]of Object.entries(f)){let R=typeof x=="string"?{"":x}:x;for(let[C,W]of Object.entries(R)){let E=w+(C?"-"+C:"");E in this.colorThemesMap?this.colorThemesMap[E][u]=W:this.colorThemesMap[E]={[u]:W}}}for(let w in d)this.colorNames.includes(w)||this.colorNames.push(w)};if(j("",o),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let u in n){let d=n[u];j(u,d.colors),this.themeNames.push(u)}let A=u=>{for(let[d,f]of Object.entries(this.colorThemesMap))for(let[w,x]of Object.entries(f))x.startsWith("#")||u(d,f,w,x)};if(A((u,d,f,w)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(w);if(x){let R="#"+he(+x[1],+x[2],+x[3]);x[4]&&(R+=Math.round(255*+x[4]).toString(16)),d[f]=R}}),A((u,d,f,w)=>{let[x,R]=w.split("/"),C=this.colorThemesMap[x];if(C){let W=(f?C[f]:void 0)??C[""];d[f]=R?W.slice(0,7)+Math.round(255*+R).toString(16):W}else console.warn(`\`${w}\` doesn't exist in the extended config \`.colors\``),delete d[f],Object.keys(d).length||delete this.colorThemesMap[u]}),l)for(let u in l){let d=l[u],{native:f,values:w,colored:x}=d,R=d.match;if(d.id=u,d.native=f===!0?u.replace(/(?!^)[A-Z]/g,C=>"-"+C).toLowerCase():void 0,w&&(this.values[u]=s(w,!1)),R){let C=Object.keys(this.values[u]??{});R.includes("$values")&&(R=C.length?R.replace(/\$values/,C.join("|")):R.replace(/(?:\|)?\$values/,"")),x&&R.includes("$colors")&&(R=this.colorNames.length?R.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):R.replace(/(?:\|)?\$colors/,"")),this.matches[u]=new RegExp(R)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(ge&&e){this.root=e;let i=e===document;i&&(ne.root=this),this.host=i?document.documentElement:root.host;let n=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let p of o){let{href:m,ownerNode:l}=p;(l.id==="master"||m&&m.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(m))&&(this.style=l)}if(this.style)for(let p=0;p<this.style.sheet.cssRules.length;p++){let m=this.style.sheet.cssRules[p];if(m.constructor.name==="CSSKeyframesRule")continue;let l=s=>{if(s.selectorText){let b=s.selectorText.split(", ")[0].split(" ");for(let y=0;y<b.length;y++){let k=b[y];if(k[0]==="."){let j=k.slice(1),A="";for(let u=0;u<j.length;u++){let d=j[u],f=j[u+1];if(d==="\\"){if(u++,f!=="\\"){A+=f;continue}}else if(De.includes(d))break;A+=d}if(!(A in this.ruleBy)&&!(A in this.classes)){let u=this.create(A)[0];if(u)return u}}}}else if(s.cssRules)for(let c=0;c<s.cssRules.length;c++){let b=l(s.cssRules[c]);if(b)return b}},a=l(m);if(a){this.rules.push(a),this.ruleBy[a.className]=a;for(let s=0;s<a.natives.length;s++)a.natives[s].cssRule=this.style.sheet.cssRules[p+s];p+=a.natives.length-1,a.config.insert?.call(a)}}else switch(this.style=Fe(),this.config.precedence){case"highest":console.log(i?document.body:e),(i?document.body:e).append(this.style);break;case"higher":n.append(this.style);break;default:let p=n.querySelector('link[rel="styleSheet"], style');p?p.before(this.style):n.append(this.style);break}let h=p=>{p.forEach(m=>{m in this.countBy?this.countBy[m]++:(this.countBy[m]=1,this.insert(m))})};h(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(p=>h(p.classList)),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer?.disconnect?.(),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],n=this.matches[r],{symbol:o,native:h}=i;if(n&&n.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(h&&e.startsWith(h+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let n=this.match(i);if(n)return new fe(i,n,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=K(me,e),this.cache(),!this.style)return;let r=Fe();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=ne.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=n=>{let o=this.ruleBy[n];if(!(!o||n in this.classesBy&&this.classesBy[n].some(h=>h in this.countBy))){if(r&&o.natives.length){let h=o.natives[0];for(let p=0;p<r.cssRules.length;p++)if(r.cssRules[p]===h.cssRule){for(let l=0;l<o.natives.length;l++)r.deleteRule(p);break}}this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[n],o.config.delete&&o.config.delete.call(o,n)}};if(e in this.classes){for(let n of this.classes[e])n in this.countBy||i(n);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,n=this.rules.length-1,{media:o,order:h,priority:p,hasWhere:m,className:l}=r,a=(s,c,b,y)=>{let k=0,j;c&&(k=s.findIndex(c)),b&&(j=s.findIndex(b)),k===-1&&(k=s.length),(j===void 0||j===-1)&&(j=s.length);let A=s.slice(k,j);for(let u=0;u<A.length;u++){let d=A[u];if(!(d.priority===-1||y&&y(d))&&(d.priority<p||d.priority===p&&(m&&!d.hasWhere||d.order>=h)))return k+u}return k+A.length};if(o){let s=this.rules.findIndex(c=>c.media);if(s!==-1){let c=o.features["max-width"],b=o.features["min-width"];if(c&&b){let y=c.value-b.value;for(let k=n;k>=s;k--){i=k;let j=this.rules[k],A=j.media,u=A.features["max-width"],d=A.features["min-width"];if(!u||!d){i++;break}let f=u.value-d.value;if(f===y){if(m!==j.hasWhere)continue;if(p!==-1){let w=[this.rules[k]];for(let x=k-1;x>=s;x--){let R=this.rules[x];if(R.hasWhere!==m)break;let C=R.media,W=C.features["max-width"],E=C.features["min-width"];if(!W||!E||W.value-E.value!==f)break;w.unshift(this.rules[x])}i=a(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(f>y)break}}else if(b)for(let y=s;y<=n;y++){i=y;let k=this.rules[y],j=k.media,A=j.features["max-width"],u=j.features["min-width"];if(A){if(u)break;continue}let d=u?.value;if(d===b.value){if(!m&&k.hasWhere){i++;continue}if(p!==-1)i=a(this.rules,f=>f.media,f=>f.media&&f.priority!==-1&&f.media.features["min-width"]&&f.media.features["max-width"],f=>!f.media.features["min-width"]&&!f.media.features["max-width"]);else for(let f=y;f<=n;f++){let w=this.rules[f],x=w.media,R=x.features["min-width"];if(!x.features["max-width"]){if(w.hasWhere!==m||R.value!==d||w.order>=h)break;i=f+1}}break}else{if(d>b.value)break;i++}}else if(c)for(let y=n;y>=s;y--){i=y;let k=this.rules[y],j=k.media,A=j.features["max-width"];if(j.features["min-width"])continue;let d=A?.value;if(!d||d>c.value){i++;break}else if(d===c.value){if(m&&!k.hasWhere)continue;if(p!==-1)i=a(this.rules,f=>f.media,f=>f.media&&f.priority!==-1&&f.media.features["min-width"]&&f.media.features["max-width"],f=>!f.media.features["min-width"]&&!f.media.features["max-width"]);else{let f=[this.rules[y]];for(let w=y-1;w>=s;w--){let x=this.rules[w],R=x.media,C=R.features["min-width"],W=R.features["max-width"];if(!C&&(!W||W.value!==d||x.hasWhere!==m))break;f.unshift(x)}for(let w=0;w<f.length;w++){let x=f[w];if(!x.media.features["min-width"]){if(x.order>=h)break;i=y-f.length+2+w}}}break}}}if(i===void 0)if(s===-1)i=n+1;else if(p!==-1)i=s+a(this.rules.slice(s),void 0,c=>c.media.features["max-width"]||c.media.features["min-width"]);else if(m){let c=s;for(;c<this.rules.length;c++){let b=this.rules[c];if(b.priority!==-1||!b.hasWhere||b.order>=h){i=c;break}}i===void 0&&(i=c)}else for(let c=s;c<=n;c++){i=c;let b=this.rules[c],y=b.media;if(b.priority!==-1||y.features["max-width"]||y.features["min-width"])break;if(b.hasWhere)i++;else if(b.order>=h)break}}else if(p===-1){if(m)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=h),i===-1&&(i=n+1);else{let s=0;for(;s<this.rules.length;s++){let c=this.rules[s];if(c.media||!c.hasWhere&&(c.order>=h||c.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=a(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[l]=r,this.style){let s=this.style.sheet,c=0,b=y=>{let k=this.rules[y];if(k){if(!k.natives.length)return b(y-1);let j=k.natives[k.natives.length-1].cssRule;for(let A=0;A<s.cssRules.length;A++)if(s.cssRules[A]===j){c=A+1;break}}};b(i-1);for(let y=0;y<r.natives.length;)try{let k=r.natives[y];s.insertRule(k.text,c),k.cssRule=s.cssRules[c++],y++}catch(k){console.error(k),r.natives.splice(y,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},te=ne;oe(te,"root"),oe(te,"config",me),oe(te,"instances",[]),oe(te,"refresh",e=>{for(let r of ne.instances)r.refresh(e)});ge&&(window.MasterCSS=te);var Ve={store:"theme",init:!0},Ye=typeof document<"u",_e=typeof localStorage<"u",pe=class{constructor(e,r=Ye?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?K(Ve,e):Ve,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(_e&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.s(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&(r&&this.host.classList.remove(r),this.host.classList.contains(e)||(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,_e&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}s(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.s()}};new te(window.masterCSSConfig);new pe(window.masterCSSThemeSettings);})();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export {
|
|
5
|
-
export { default as
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export { default as defaultConfig } from './config';
|
|
9
|
-
export { default as defaultBreakpoints } from './config/breakpoints';
|
|
10
|
-
export { default as defaultColors } from './config/colors';
|
|
11
|
-
export { default as defaultRootSize } from './config/root-size';
|
|
12
|
-
export { default as defaultSelectors } from './config/selectors';
|
|
13
|
-
export { default as defaultSemantics } from './config/semantics';
|
|
14
|
-
export { default as defaultThemes } from './config/themes';
|
|
15
|
-
export { default as defaultScheme } from './config/scheme';
|
|
16
|
-
export { default as defaultValues } from './config/values';
|
|
17
|
-
export { default as DefaultRules } from './config/rules';
|
|
18
|
-
export type { MasterCSSConfig } from './config';
|
|
19
|
-
export type { MasterCSSDeclaration, MasterCSSMedia, MasterCSSMediaFeatureRule, MasterCSSRuleMatching } from './rule';
|
|
20
|
-
export type { MasterCSSOptions } from './css';
|
|
1
|
+
export * from './css';
|
|
2
|
+
export * from './rule';
|
|
3
|
+
export * from './theme';
|
|
4
|
+
export { MasterCSS as default } from './css';
|
|
5
|
+
export { default as extend } from 'to-extend';
|
|
6
|
+
export * from './methods';
|
|
7
|
+
export * from './config';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var he=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Ke=Object.prototype.hasOwnProperty;var Je=(t,e,r)=>e in t?he(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var et=(t,e)=>{for(var r in e)he(t,r,{get:e[r],enumerable:!0})},tt=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ge(e))!Ke.call(t,n)&&n!==r&&he(t,n,{get:()=>e[n],enumerable:!(i=Ze(e,n))||i.enumerable});return t};var rt=t=>tt(he({},"__esModule",{value:!0}),t);var ae=(t,e,r)=>(Je(t,typeof e!="symbol"?e+"":e,r),r);var ut={};et(ut,{MasterCSS:()=>Z,Rule:()=>le,Theme:()=>Ie,breakpoints:()=>se,colors:()=>we,config:()=>fe,default:()=>Z,defineContent:()=>ct,extend:()=>G,fillColorScale:()=>_,functions:()=>pe,getDocThemeInitScript:()=>nt,important:()=>Be,keyframes:()=>je,observe:()=>Ee,override:()=>Oe,precedence:()=>Ae,render:()=>ot,renderFromHTML:()=>Le,renderIntoHTML:()=>at,rootSize:()=>Se,rules:()=>Me,scope:()=>Re,selectors:()=>Ce,semantics:()=>$e,themeSettings:()=>Ne,themes:()=>Te});module.exports=rt(ut);function Fe(t){let e=typeof Buffer<"u"?Buffer:null;return!!(e&&t instanceof e||t instanceof Date||t instanceof RegExp)}function Ve(t){if(typeof Buffer<"u"&&Buffer&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function _e(t){let e=[];return t.forEach(function(r,i){typeof r=="object"&&r!==null?Array.isArray(r)?e[i]=_e(r):Fe(r)?e[i]=Ve(r):e[i]=G({},r):e[i]=r}),e}function De(t,e){return e==="__proto__"?void 0:t[e]}function G(...t){let e={},r,i;return t.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(i=De(e,o),r=De(n,o),r!==e)if(typeof r!="object"||r===null){e[o]=r;return}else if(Array.isArray(r)){e[o]=_e(r);return}else if(Fe(r)){e[o]=Ve(r);return}else if(typeof i!="object"||i===null||Array.isArray(i)){e[o]=G({},r);return}else{e[o]=G(i,r);return}})}),e}var ke=[":disabled",":active",":focus",":hover"];var ie={"(":")","'":"'",'"':'"',"{":"}"};function de(t){if(typeof CSS<"u")return CSS.escape(t);if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let e=String(t),r=e.length,i=-1,n="",o,u=e.charCodeAt(0);if(r==1&&u==45)return"\\"+e;for(;++i<r;){if(o=e.charCodeAt(i),o==0){n+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&u==45){n+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(i);continue}n+="\\"+e.charAt(i)}return n}var it={unit:"",order:0,separators:[","]},le=class{constructor(e,r={},i){this.className=e;this.meta=r;this.css=i;this.config=G(it,r.config);let{unit:n,order:o,colored:u,native:f,analyze:m,transform:l,declare:a,create:s}=this.config,{scope:c,important:g,functions:y}=i.config,{themeNames:k,colorNames:j,colorThemesMap:A,selectors:h,breakpoints:p,mediaQueries:d,themeAffectedClassesBy:w,globalValues:x}=i,R=w[e];this.order=o,s&&s.call(this,e);let C,L,O,Y,q;if(r.origin==="semantics"){let[W,E]=r.value;Y=e.slice(W.length),C=E}else{let W;if(m)[W,O]=m.call(this,e);else if(r.origin==="match"){let $=e.indexOf(":");this.prefix=e.slice(0,$+1),this.prefix.includes("(")?(this.prefix=void 0,W=e):W=e.slice($+1)}else r.origin==="symbol"&&(this.symbol=e[0],W=e.slice(1));q=[];let E=this,N=this.values,F=[","];this.config.separators.length&&F.push(...this.config.separators);let S="",v=0;(function $(b,B,M,T=void 0,I=[],H=[],z){let Q=T===void 0,P,K=D=>D==="'"||D==='"',re=()=>P=S.length,J=()=>{if(S){let D=S,V=Q?D:S.slice(P);if(S="",X="",N&&V in N&&!I.includes(V)){let U=v;v=0,$(N[V].toString(),B,void 0,T,[...I,V],H,z),v=U,Q||(S=S.slice(0,P)+S)}else if(x&&V in x&&!H.includes(V)){let U=v;v=0,$(x[V].toString(),B,void 0,T,I,[...H,V],z),v=U,Q||(S=S.slice(0,P)+S)}else if(Q){let U=!z&&E.analyzeUnitValue(V,B);q.push({value:U?.value??V,unit:U?.unit})}else{let U=!z&&E.analyzeUnitValue(V,B);S=U?D.slice(0,P)+U.value+U.unit:D}re()}},ee=K(M);re();let X="";for(;v<b.length;v++){let D=b[v];if(D===M){if(ee){S+=D;let V=0;for(let U=S.length-2;S[U]==="\\";U--)V++;if(V%2)continue}else J(),S+=D;return}else if(!ee&&D in ie){let V=D==="("&&X&&y?.[X];V?.name&&(S=S.slice(0,S.length-X.length)+V.name,X=V.name),S+=D,v++;let U=ie[D];$(b,V?.unit??B,U,X||T||"",I,H,z||!!V?.transform),V?.transform&&(S=S.slice(0,P+X.length+1)+V.transform.call(E,S.slice(P+X.length+1,-1))+S.slice(-1)),Q&&(K(U)?(q.push(S),S=""):J()),X=""}else if((D==="|"||D===" ")&&M!=="}"&&(!ee||T==="path"))J(),Q||(S+=" ",P++);else{if(!ee){if(D==="."){if(isNaN(+b[v+1]))break;b[v-1]==="-"&&(S+="0")}else if(F.includes(D)){J(),Q?q.push(D):(S+=D,P++);continue}else if(Q&&(D==="#"&&(S||q.length&&b[v-1]!=="|"&&q[v-1]!==" ")||["!","*",">","+","~",":","[","@","_"].includes(D)))break;X+=D}S+=D}}T===void 0&&J()})(W,n),Y=W.slice(v)}Y[0]==="!"&&(this.important=!0,Y=Y.slice(1));let ze=W=>{let E=W.split(/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/).map((v,$)=>$%3?v:v.replace(/_/g," ")).join(""),N=[],F="",S=0;for(let v=0;v<E.length;v++){let $=E[v];if($==="\\"){F+=$+E[++v];continue}!S&&$===","?(N.push(F),F=""):(F+=$,S&&$===")"?S--:$==="("&&S++)}return F&&N.push(F),N};this.prefixSelectors=O?ze(O):[""];let ve=Y.split("@"),xe=ve[0];if(xe){this.vendorSuffixSelectors={};let W=(v,$,b,B)=>{for(let[M,T]of $)if(M.test(v)){for(let I of T)W(v.replace(M,I),$,b,!0);return}B&&b.push(v)},E=[];""in h?W(xe,h[""],E,!0):E.push(xe);let N={};for(let[v,$]of Object.entries(h)){if(!v)continue;let b=[];for(let B of E)W(B,$,b,!1);b.length&&(N[v]=b)}let F=(v,$)=>{let b=$.reduce((B,M)=>(B.push(...ze(M)),B),[]);v in this.vendorSuffixSelectors?this.vendorSuffixSelectors[v].push(...b):this.vendorSuffixSelectors[v]=b},S=Object.keys(N);if(S.length)for(let v of S)F(v,N[v]);else F("",E);for(let v of Object.values(this.vendorSuffixSelectors))for(let $ of v){this.hasWhere!==!1&&(this.hasWhere=$.includes(":where("));for(let b=0;b<ke.length;b++)if($.includes(ke[b])){(this.priority===-1||this.priority>b)&&(this.priority=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let W=1;W<ve.length;W++){let E=ve[W];if(E)if(k.includes(E))this.theme=E;else if(E==="rtl"||E==="ltr")this.direction=E;else{let N,F,S=E.indexOf("_");if(S!==-1)N=E.slice(0,S),F=E.slice(S);else{let v=E.indexOf("(");v!==-1&&(N=E.slice(0,v),F=E.slice(v))}if(!N){N="media";let v=[];this.media={token:E,features:{}};let $=E.split("&");for(let b of $)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")v.push("(orientation:"+b+")");else if(b==="motion"||b==="reduced-motion")v.push("(prefers-reduced-motion:"+(b==="motion"?"no-preference":"reduce")+")");else if(d&&b in d)v.push(d[b]);else{let B={token:b},M="",T="",I=0;b.startsWith("<=")?(T="<=",M="max-width"):b.startsWith(">=")||p[b]?(T=">=",M="min-width"):b.startsWith(">")?(T=">",M="min-width",I=.02):b.startsWith("<")&&(T="<",M="max-width",I=-.02);let H=T?b.replace(T,""):b,z=p[H];switch(M){case"max-width":case"min-width":z?Object.assign(B,this.analyzeUnitValue(z.toString(),"px")):Object.assign(B,this.analyzeUnitValue(H,"px")),B.unit==="px"&&(B.value+=I),this.media.features[M]=B,v.push("("+M+":"+(B.value+B.unit)+")");break}}F="",this.media.type&&(F=this.media.type),v.length&&(F+=(F?" and ":"")+v.join(" and "))}F&&(this.at[N]=(N in this.at?this.at[N]+" and ":"")+F.replace(/_/g," "))}}let ye=(W,E)=>{let N,F=($,b,B)=>{let M="";this.direction&&(M+="[dir="+this.direction+"] ");let T=this.prefixSelectors.map(z=>z+M),I=(z,Q)=>T.map(P=>(z?"."+z+" ":"")+(c?c+" ":"")+P).reduce((P,K)=>(P.push(B.reduce((re,J)=>(re.push(K+"."+de(Q)+J),re),[]).join(",")),P),[]).join(","),H=I(b,e)+(R?Object.entries(R).filter(([z])=>this.theme||!u||!b||!z||z===b).map(([z,Q])=>Q.reduce((P,K)=>P+","+I(this.theme??((u||L)&&b||z),K),"")).join(""):"")+"{"+$+"}";for(let z of Object.keys(this.at).sort((Q,P)=>P==="supports"?-1:1))H="@"+z+" "+this.at[z]+"{"+H+"}";return H},S=[];if(q){let $=this.theme?[this.theme,""]:[W],b,B;for(let M of q)if(typeof M=="string")S.push(M);else{let T=M.value;if(M.unit)T+=M.unit;else if(u&&A&&j){let I=!1,H=!1;T=T.replace(new RegExp(`(^|,| |\\()((?:${j.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(z,Q,P,K)=>{H=!0;let re=A[P];if(re){let J;for(let ee of $)if(J=re[ee])break;if(J){I=!0;let ee=J;if(K){let X=K.endsWith("%")?parseFloat(K)/100:+K;X=isNaN(X)?1:Math.min(Math.max(X,0),1),ee+=Math.round(X*255).toString(16).toUpperCase().padStart(2,"0")}return Q+ee}}return z}),H&&(B=I)}B!==void 0&&!b&&(b=B),S.push(T)}if(E&&(b===void 0?W:!b))return;if(N=S.reduce((M,T,I)=>M+T+(T===","||q[I+1]===","||I===q.length-1?"":" "),""),l&&(N=l.call(this,N,this.css.config)),u&&N==="current"&&(N="currentColor"),a){let M,T;if(q.length===1){let I=q[0];typeof I=="object"&&(M=I.value,T=I.unit)}C=a.call(this,T?M:N,T||"")}else C={[f]:N}}let v={};for(let $ in C){let b=(T,I)=>{let H=I+((this.important||g)&&!I.endsWith("!important")?"!important":"");T in v?v[T].push(H):v[T]=[H]},B=$+":",M=C[$];if(typeof M=="object"){L=!0;for(let T in M)b(T,B+M[T])}else b(W,B+M.toString())}for(let $ of Object.values(this.vendorSuffixSelectors))for(let b in v)this.natives.push({text:F(v[b].join(";"),b,$),theme:b})};if(this.theme)ye(this.theme,!1);else if(u)for(let W of k)ye(W,!0);else ye("",!1)}at={};priority=-1;natives=[];keyframeNames;config;get values(){return this.css.values[this.config.id]}get text(){return this.natives.map(e=>e.text).join("")}resolveValue(e,r){return Number.isNaN(+e)?e:e/(r==="rem"||r==="em"?this.css.config.rootSize:1)+r}analyzeUnitValue(e,r){let i=r??this.config.unit;if(i){let n="",o=e.match(/^([+-.]?\d+(\.?\d+)?)(.*)?/);if(o)if(e.includes("/")){let[u,f]=e.split("/");return{value:+u/+f*100+"%",unit:n}}else{let u=+o[1];return n=o[3]||"",n||((i==="rem"||i==="em")&&(u=u/this.css.config.rootSize),n=i||""),{value:u,unit:n}}}}};var se={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function ce(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function me(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function _(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let i in t)if(i&&+i>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let i=0,n="0"in t?ce(t[0]):[0,0,0],o,u,f=[],m=()=>{let l=o-i,a=u.map((s,c)=>(s-n[c])/l);for(let s of f){let c=s-i,g=n.map((y,k)=>Math.round(y+a[k]*c));t[s]="#"+me.call(this,...g)}};for(let l=1;l<100;l++)l in t?(f.length?(o=l,u=ce(t[l]),m(),f.length=0,n=u):n=ce(t[l]),i=l):f.push(l);f.length&&(o=100,u="100"in t?ce(t[100]):[255,255,255],m())}return e||(t[""]=t[r?"500":"50"]),t}var we={black:"#000000",white:"#ffffff",slate:_({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:_({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:_({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:_({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:_({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:_({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:_({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:_({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:_({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:_({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:_({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:_({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:_({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:_({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:_({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:_({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:_({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:_({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:_({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:_({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"})};var Se=16;var Re="";var Ce={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var $e={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"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var Te=["dark","light"];var ne={content:"content-box",border:"border-box",padding:"padding-box"};var ue={min:"min-content",max:"max-content"};var te={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in se)te[t]=se[t]/16+"rem";var Me={group:{match:"^(?:.+?[*_>~+])?\\{.+?\\}",analyze(t){let e=0;for(;e<t.length&&!(t[e]==="{"&&t[e-1]!=="\\");e++);return[t.slice(e),t.slice(0,e)]},declare(t){let e={},r=(l,a)=>{let s=a.indexOf(":");if(s!==-1){l in e||(e[l]={});let c=e[l],g=a.slice(0,s);g in c||(c[g]=a.slice(s+1))}},i=l=>{let a=(s,c)=>{let g=c.slice(de(l.className).length).match(/\{(.*)\}/)[1].split(";");for(let y of g)r(s,y)};if(this.theme){let s=l.natives.find(c=>c.theme===this.theme)??l.natives.find(c=>!c.theme);s&&a(this.theme,s.text)}else for(let s of l.natives)a(s.theme,s.text)},n=[],o="",u=()=>{o&&(n.push(o.replace(/ /g,"")),o="")},f=1;(function l(a){for(;f<t.length;f++){let s=t[f];if(!a){if(s===";"){u();continue}if(s==="}")break}if(o+=s,a===s){if(a==="'"||a==='"'){let c=0;for(let g=o.length-2;o[g]==="\\";g--)c++;if(c%2)continue}break}else s in ie&&a!=="'"&&a!=='"'&&(f++,l(ie[s]))}})(void 0),u();for(let l of n){let a=this.css.create(l);if(Array.isArray(a))for(let s of a)i(s);else a?i(a):r(this.theme??"",l)}let m={};for(let l in e)for(let[a,s]of Object.entries(e[l]))a in m?m[a][l]=s:m[a]={[l]:s};return m}},variable:{match:"^\\$[^ (){}A-Z]+:[^ ]",declare(t){return{["--"+this.prefix.slice(1,-1)]:t}}},fontSize:{match:"^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},fontWeight:{match:"^f(?:ont)?:(?:bolder|$values)(?!\\|)",native:!0,values:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900}},fontFamily:{match:"^f(?:ont)?:(?:$values)(?!\\|)",native:!0,values:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"}},fontSmoothing:{match:"^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)",declare(t){let e={};switch(t){case"subpixel-antialiased":e["-webkit-font-smoothing"]=e["-moz-osx-font-smoothing"]="auto";break;case"antialiased":e["-webkit-font-smoothing"]="antialiased",e["-moz-osx-font-smoothing"]="grayscale";break}return e}},fontStyle:{match:"^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)",native:!0,unit:"deg"},fontVariantNumeric:{match:"^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)",native:!0},fontFeatureSettings:{match:"^font-feature:.",native:!0},font:{match:"^f:.",native:!0,order:-1},color:{match:"^(?:color|fg|foreground):.",native:!0,colored:!0,values:{current:"currentColor"}},margin:{match:"^m(?:argin(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ye.call(this,t+e)},get order(){return this.prefix==="margin:"||this.prefix==="m:"?-1:0}},padding:{match:"^p(?:adding(?:-(?:left|right|top|bottom))?|[xytblr]?):.",unit:"rem",declare(t,e){return Ye.call(this,t+e)},get order(){return this.prefix==="padding:"||this.prefix==="p:"?-1:0}},flexBasis:{values:te,unit:"rem",native:!0},flexWrap:{match:"^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)",native:!0},flexGrow:{native:!0},flexShrink:{native:!0},flexDirection:{match:"^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)",native:!0,values:{col:"column","col-reverse":"column-reverse"}},flex:{native:!0,order:-1},display:{match:"^d:.",native:!0},width:{match:"^w:.",unit:"rem",native:!0,values:te},height:{match:"^h:.",unit:"rem",native:!0,values:te},minWidth:{match:"^min-w:.",unit:"rem",native:!0,values:te},minHeight:{match:"^min-h:.",unit:"rem",native:!0,values:te},box:{match:"^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t]},declare(t){let[e,r]=t.split(" x ");return{width:e,height:r}}},minBox:{match:"^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"min-width":e,"min-height":r}}},maxBox:{match:"^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)",unit:"rem",separators:["x"],analyze(t){return[t.slice(4)]},declare(t){let[e,r]=t.split(" x ");return{"max-width":e,"max-height":r}}},contain:{native:!0},content:{native:!0},counterIncrement:{native:!0},counterReset:{native:!0},letterSpacing:{match:"^ls:.",native:!0,unit:"em"},lineHeight:{match:"^lh:.",native:!0},objectFit:{match:"^(?:object|obj):(?:contain|cover|fill|scale-down|$values)",native:!0},objectPosition:{match:"^(?:object|obj):(?:top|bottom|right|left|center|$values)",native:!0},textAlign:{match:"^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)",native:!0},textDecorationColor:{match:"^text-decoration:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},textDecorationStyle:{match:"^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)",native:!0},textDecorationThickness:{match:"^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$",native:!0,unit:"em"},textDecorationLine:{match:"^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)",native:!0},textDecoration:{match:"^t(?:ext)?:(?:underline|line-through|overline)",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"},order:-1},textUnderlineOffset:{unit:"rem",native:!0},textOverflow:{match:"^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))",native:!0},textOrientation:{match:"^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)",native:!0},textTransform:{match:"^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)",native:!0},textRendering:{match:"^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)",native:!0},textIndent:{unit:"rem",native:!0},verticalAlign:{match:"^(?:v|vertical):.",native:!0},columns:{match:"^(?:columns|cols):.",native:!0,order:-1},whiteSpace:{native:!0},inset:{match:"^(?:top|bottom|left|right):.",unit:"rem",native:!0,declare(t,e){return{[this.prefix.slice(0,-1)]:t+e}}},lines:{match:"^lines:.",declare(t,e){return{overflow:"hidden",display:"-webkit-box","overflow-wrap":"break-word","text-overflow":"ellipsis","-webkit-box-orient":"vertical","-webkit-line-clamp":t+e}}},maxHeight:{match:"^max-h:.",unit:"rem",native:!0,values:te},maxWidth:{match:"^max-w:.",unit:"rem",native:!0,values:te},boxSizing:{match:"^box:(?:$values)(?!\\|)",native:!0,values:{content:"content-box",border:"border-box"}},opacity:{native:!0},visibility:{native:!0},clear:{native:!0},float:{native:!0},isolation:{native:!0},overflow:{match:"^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)",declare(t,e){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t+e};case"y":return{"overflow-y":t+e}}return{overflow:t+e}},get order(){return-1}},overscrollBehavior:{match:"^overscroll-behavior(?:-[xy])?:",declare(t,e){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t+e};case"y":return{"overscroll-behavior-y":t+e};default:return{"overscroll-behavior":t+e}}}},zIndex:{match:"^z:.",native:!0},position:{native:!0,values:{abs:"absolute",rel:"relative"}},cursor:{native:!0},pointerEvents:{native:!0},resize:{native:!0},touchAction:{native:!0},wordBreak:{native:!0},wordSpacing:{native:!0,unit:"em"},userDrag:{declare(t,e){return{"user-drag":t+e,"-webkit-user-drag":t+e}}},userSelect:{native:!0,declare(t,e){return{"user-select":t+e,"-webkit-user-select":t+e}}},textShadow:{unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},textSize:{match:"^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",declare(t,e){return{"font-size":t+e,"line-height":e==="em"?t+.875+e:`calc(${t}${e} + ${.875}em)`}}},textFillColor:{native:!0,match:"^(?:text-fill|text|t):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-fill-color":t+e}}},textStrokeWidth:{match:"^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)",unit:"rem",declare(t,e){return{"-webkit-text-stroke-width":t+e}}},textStrokeColor:{match:"^text-stroke:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"-webkit-text-stroke-color":t+e}}},textStroke:{unit:"rem",native:!0,declare(t,e){return{"-webkit-text-stroke":t+e}}},boxShadow:{match:"^s(?:hadow)?:.",unit:"rem",native:!0,colored:!0,values:{current:"currentColor"}},tableLayout:{native:!0},transformBox:{match:"^transform:(?:$values)(?!\\|)",native:!0,values:{...ne,fill:"fill-box",stroke:"stroke-box",view:"view-box"}},transformStyle:{match:"^transform:(?:flat|preserve-3d|$values)(?!\\|)",native:!0},transformOrigin:{match:"^transform:(?:top|bottom|right|left|center|[0-9]|$values)",native:!0,unit:"px"},transform:{match:"^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\(",native:!0},transitionProperty:{match:"^~property:.",native:!0},transitionTimingFunction:{match:"^~easing:.",native:!0},transitionDuration:{match:"^~duration:.",native:!0,unit:"ms"},transitionDelay:{match:"^~delay:.",native:!0,unit:"ms"},transition:{symbol:"~",native:!0,order:-1},animationDelay:{match:"^@delay:.",native:!0,unit:"ms"},animationDirection:{match:"^@direction:.",native:!0},animationDuration:{match:"^@duration:.",native:!0,unit:"ms"},animationFillMode:{match:"^@fill-mode:.",native:!0},animationIterationCount:{match:"^@iteration-count:.",native:!0},animationName:{match:"^@name:.",native:!0,create(t){return Pe.call(this,t)},delete(t){return He.call(this,t)},insert(){return Ue.call(this)}},animationPlayState:{match:"^@play-state:.",native:!0},animationTimingFunction:{match:"^@easing:.",native:!0},animation:{symbol:"@",native:!0,order:-1,create(t){return Pe.call(this,t)},delete(t){return He.call(this,t)},insert(){return Ue.call(this)}},borderColor:{match:"^b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?(?:-color)?:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e,"color")},get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderRadius:{match:"^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.",unit:"rem",declare(t,e){if(this.prefix){let i="",n=this.prefix.split("-");if(n.length>1)for(let o=1;o<n.length-1;o++)i+=n[o][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{"border-top-left-radius":t+e,"border-top-right-radius":t+e};case"tl":case"lt":return{"border-top-left-radius":t+e};case"rt":case"tr":return{"border-top-right-radius":t+e};case"b":return{"border-bottom-left-radius":t+e,"border-bottom-right-radius":t+e};case"bl":case"lb":return{"border-bottom-left-radius":t+e};case"br":case"rb":return{"border-bottom-right-radius":t+e};case"l":return{"border-top-left-radius":t+e,"border-bottom-left-radius":t+e};case"r":return{"border-top-right-radius":t+e,"border-bottom-right-radius":t+e};default:return{"border-radius":t+e}}}let r=this.prefix?.slice(0,-1);return{[["border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"].includes(r)?r:"border-radius"]:t+e}},get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}},borderStyle:{match:"^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))",declare(t,e){return ge(this.prefix,t+e,"style")},get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderWidth:{match:"^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)",unit:"rem",declare(t,e){return ge(this.prefix,t+e,"width")},get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}},borderCollapse:{match:"^b(?:order)?:(?:collapse|separate|$values)(?!\\|)",native:!0},borderSpacing:{unit:"rem",native:!0},borderImageOutset:{unit:"rem",native:!0},borderImageRepeat:{match:"^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)",native:!0},borderImageSlice:{native:!0},borderImageSource:{match:"^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},borderImageWidth:{match:"^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},borderImage:{native:!0},border:{match:"^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):.",unit:"rem",colored:!0,values:{current:"currentColor"},declare(t,e){return ge(this.prefix,t+e)},get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}},backgroundAttachment:{match:"^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)",native:!0},backgroundBlendMode:{native:!0},backgroundColor:{match:"^(?:bg|background):(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},backgroundClip:{match:"^(?:bg|background):(?:text|$values)(?!\\|)",native:!0,declare(t,e){return{"-webkit-background-clip":t+e,"background-clip":t+e}},values:ne},backgroundOrigin:{match:"^(?:bg|background):(?:$values)(?!\\|)",native:!0,values:ne},backgroundPosition:{match:"^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)",native:!0,unit:"px"},backgroundRepeat:{match:"^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])",native:!0},backgroundSize:{match:"^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)",unit:"rem",native:!0},backgroundImage:{match:"^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,colored:!0,values:{current:"currentColor"}},background:{match:"^bg:.",native:!0,colored:!0,values:{current:"currentColor"},order:-1},mixBlendMode:{match:"^blend:.",native:!0},backdropFilter:{match:"^bd:.",native:!0,colored:!0,values:{current:"currentColor"},declare(t,e){return{"backdrop-filter":t+e,"-webkit-backdrop-filter":t+e}}},filter:{match:"^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\(",native:!0,colored:!0,values:{current:"currentColor"}},fill:{match:"^fill:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},strokeDasharray:{native:!0},strokeDashoffset:{native:!0},strokeWidth:{match:"^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",native:!0},stroke:{native:!0,colored:!0,values:{current:"currentColor"}},x:{native:!0},y:{native:!0},cx:{native:!0},cy:{native:!0},rx:{native:!0},ry:{native:!0},gridColumnStart:{match:"^grid-col-start:.",native:!0},gridColumnEnd:{match:"^grid-col-end:.",native:!0},gridColumn:{match:"^grid-col(?:umn)?(?:-span)?:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridColumns:{match:"^grid-cols:.",declare(t,e){return{display:"grid","grid-template-columns":"repeat("+t+e+",minmax(0,1fr))"}}},gridRowStart:{native:!0},gridRowEnd:{native:!0},gridRow:{match:"^grid-row-span:.",native:!0,order:-1,transform(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}},gridRows:{declare(t,e){return{display:"grid","grid-auto-flow":"column","grid-template-rows":"repeat("+t+e+",minmax(0,1fr))"}}},gridAutoColumns:{match:"^grid-auto-cols:.",native:!0,values:ue},gridAutoFlow:{match:"^grid-flow:.",native:!0},gridAutoRows:{values:ue,native:!0},gridTemplateAreas:{native:!0},gridTemplateColumns:{match:"^grid-template-cols:.",native:!0,unit:"rem",values:ue},gridTemplateRows:{native:!0,unit:"rem",values:ue},gridTemplate:{native:!0,order:-1},gridArea:{native:!0,order:-1},grid:{native:!0,order:-1},gap:{match:"^gap(?:-x|-y)?:.",unit:"rem",order:-1,declare(t,e){switch(this.prefix[4]){case"x":return{"column-gap":t+e};case"y":return{"row-gap":t+e};default:return{gap:t+e}}}},order:{match:"^o:.",native:!0,values:{first:-999999,last:999999}},breakInside:{native:!0},breakBefore:{native:!0},breakAfter:{native:!0},boxDecorationBreak:{match:"^box:(?:slice|clone|$values)(?!\\|)",native:!0,declare(t,e){return{"box-decoration-break":t+e,"-webkit-box-decoration-break":t+e}}},aspectRatio:{match:"^aspect:.",native:!0},columnSpan:{match:"^col-span:.",native:!0},alignContent:{match:"^ac:.",native:!0},alignItems:{match:"^ai:.",native:!0},alignSelf:{match:"^as:",native:!0},justifyContent:{match:"^jc:.",native:!0},justifyItems:{match:"^ji:.",native:!0},justifySelf:{match:"^js:.",native:!0},placeContent:{native:!0,order:-1},placeItems:{native:!0,order:-1},placeSelf:{native:!0,order:-1},listStylePosition:{match:"^list-style:(?:inside|outside|$values)(?!\\|)",native:!0},listStyleType:{match:"^list-style:(?:disc|decimal|$values)(?!\\|)",native:!0},listStyleImage:{match:"^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)",native:!0},listStyle:{native:!0,order:-1},outlineColor:{match:"^outline:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},outlineOffset:{unit:"rem",native:!0},outlineStyle:{match:"^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)",native:!0},outlineWidth:{match:"^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},outline:{native:!0,unit:"rem",order:-1,colored:!0,values:{current:"currentColor"}},accentColor:{match:"^accent:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},appearance:{native:!0},caretColor:{match:"^caret:(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|currentColor|inherit|$values|$colors))",native:!0,colored:!0,values:{current:"currentColor"}},scrollBehavior:{native:!0},scrollMargin:{match:"^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t+e,"scroll-margin-right":t+e};case"y":return{"scroll-margin-top":t+e,"scroll-margin-bottom":t+e};case"l":return{"scroll-margin-left":t+e};case"r":return{"scroll-margin-right":t+e};case"t":return{"scroll-margin-top":t+e};case"b":return{"scroll-margin-bottom":t+e}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}},scrollPadding:{match:"^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.",unit:"rem",declare(t,e){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t+e,"scroll-padding-right":t+e};case"y":return{"scroll-padding-top":t+e,"scroll-padding-bottom":t+e};case"l":return{"scroll-padding-left":t+e};case"r":return{"scroll-padding-right":t+e};case"t":return{"scroll-padding-top":t+e};case"b":return{"scroll-padding-bottom":t+e}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t+e}},get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}},scrollSnapAlign:{match:"^scroll-snap:(?:start|end|center|$values)",native:!0},scrollSnapStop:{match:"^scroll-snap:(?:normal|always|$values)(?!\\|)",native:!0},scrollSnapType:{match:"^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)",native:!0},willChange:{native:!0},writingMode:{match:"^writing:.",native:!0},direction:{native:!0},shapeOutside:{match:"^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)",native:!0,values:{...ne,margin:"margin-box"}},shapeMargin:{match:"^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$",unit:"rem",native:!0},shapeImageThreshold:{native:!0},clipPath:{match:"^clip:.",native:!0,values:{...ne,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"}},quotes:{native:!0},maskImage:{native:!0,declare(t,e){return{"mask-image":t+e,"-webkit-mask-image":t+e}}}};function Pe(t){if(!this.css.config.keyframes)return;let e=(this.meta.origin==="symbol"?t.slice(this.meta.config.symbol.length):t.slice(t.indexOf(":")+1)).split("|").filter(r=>r in this.css.config.keyframes);e?.length&&(this.keyframeNames=e)}function He(){if(this.keyframeNames?.length){let t=this.css.rules[0];for(let e of this.keyframeNames){let r=this.css.keyframes[e];if(!--r.count){let i=t.natives.indexOf(r.native);this.css.style.sheet.deleteRule(i),t.natives.splice(i,1),delete this.css.keyframes[e]}}t.natives.length||this.css.rules.splice(0,1)}}function Ue(){if(this.keyframeNames){let{config:t,keyframes:e,style:r,rules:i}=this.css,n=r?.sheet;for(let o of this.keyframeNames)if(o in e)e[o].count++;else{let u={text:`@keyframes ${o} {`+Object.entries(t.keyframes[o]).map(([m,l])=>`${m} {${Object.entries(l).map(([a,s])=>a+": "+s).join(";")}}`).join(",")+"}",theme:""},f;if(Object.keys(e).length?(f=i[0]).natives.push(u):i.splice(0,0,f={natives:[u],get text(){return this.natives.map(m=>m.text).join("")}}),n){let m;for(let l=0;l<n.cssRules.length;l++){let a=n.cssRules[l];if(a.constructor.name!=="CSSKeyframesRule")break;if(a.name===o){m=a;break}}if(m)u.cssRule=m;else{let l=f.natives.length-1;n.insertRule(u.text,l),u.cssRule=n.cssRules[l]}}e[o]={native:u,count:1}}}}function Ye(t){if(this.prefix.includes("-"))return{[this.prefix.slice(0,-1)]:t};let r=this.prefix[0]==="m"?"margin":"padding",i=r+"-left",n=r+"-right",o=r+"-top",u=r+"-bottom";switch(this.prefix[1]){case"x":return{[i]:t,[n]:t};case"y":return{[o]:t,[u]:t};case"l":return{[i]:t};case"r":return{[n]:t};case"t":return{[o]:t};case"b":return{[u]:t};default:return{[r]:t}}}function ge(t,e,r=""){let i="border-";r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],o=i+"left"+r,u=i+"right"+r,f=i+"top"+r,m=i+"bottom"+r;switch(n){case"x":return{[o]:e,[u]:e};case"y":return{[f]:e,[m]:e};case"l":return{[o]:e};case"r":return{[u]:e};case"t":return{[f]:e};case"b":return{[m]:e};default:return{["border"+r]:e}}}var Oe=!1;var Ee=!0;var Be=!1;var je={fade:{from:{opacity:0},to:{opacity:0}},flash:{"from,50%,to":{opacity:1},"25%,75%":{opacity:0}},float:{"0%":{transform:"none"},"50%":{transform:"translateY(-1.25rem)"},"100%":{transform:"none"}},heart:{"0%":{transform:"scale(1)"},"14%":{transform:"scale(1.3)"},"28%":{transform:"scale(1)"},"42%":{transform:"scale(1.3)"},"70%":{transform:"scale(1)"}},jump:{"0%,100%":{transform:"translateY(-25%)","animation-timing-function":"cubic-bezier(0.8, 0, 1, 1)"},"50%":{transform:"translateY(0)","animation-timing-function":"cubic-bezier(0, 0, 0.2, 1)"}},ping:{"75%,100%":{transform:"scale(2)",opacity:0}},pulse:{"0%":{transform:"none"},"50%":{transform:"scale(1.05)"},"100%":{transform:"none"}},rotate:{from:{transform:"rotate(-360deg)"},to:{transform:"none"}},shake:{"0%":{transform:"none"},"6.5%":{transform:"translateX(-6px) rotateY(-9deg)"},"18.5%":{transform:"translateX(5px) rotateY(7deg)"},"31.5%":{transform:"translateX(-3px) rotateY(-5deg)"},"43.5%":{transform:"translateX(2px) rotateY(3deg)"},"50%":{transform:"none"}},zoom:{from:{transform:"scale(0)"},"100%":{transform:"none"}}};var pe={$:{name:"var",transform(t){return"--"+t}},calc:{transform(t){let e=m=>m==="+"||m==="-"||m==="*"||m==="/",r="",i,n="",o=!1,u=!1,f=(m,l="",a="")=>{if(i===2&&!u){let s=this.analyzeUnitValue(n,pe.calc.unit);s&&(n=s.value+s.unit)}r+=n+l+m+a,i=null,u=!1,n=""};for(let m=0;m<t.length;m++){let l=t[m];if(l==="("||l===")")o=l===")",f(l);else if(l===",")f(l,""," ");else{switch(i){case 1:break;case 2:if(e(l)){f(l," "," ");continue}else/[0-9]/.test(l)||(u=!0);break;default:o&&(r+=" "),isNaN(+l)?e(l)||(i=1):i=2;break}i?n+=l:r+=l}}return f(""),r}},translate:{unit:"rem"},translateX:{unit:"rem"},translateY:{unit:"rem"},translateZ:{unit:"rem"},translate3d:{unit:"rem"},skew:{unit:"deg"},skewX:{unit:"deg"},skewY:{unit:"deg"},skewZ:{unit:"deg"},skew3d:{unit:"deg"},rotate:{unit:"deg"},rotateX:{unit:"deg"},rotateY:{unit:"deg"},rotateZ:{unit:"deg"},rotate3d:{unit:"deg"},blur:{unit:"rem"},"drop-shadow":{unit:"rem"},"hue-rotate":{unit:"deg"},rgb:{unit:""},rgba:{unit:""},hsl:{unit:""},hsla:{unit:""}};var Ae="highest";var fe={breakpoints:se,colors:we,rootSize:16,scope:Re,selectors:Ce,semantics:$e,themes:Te,rules:Me,override:!1,observe:!0,important:!1,functions:pe,keyframes:je,precedence:Ae};var Qe=[",",".","#","[","!","*",">","+","~",":","@"];var be=typeof window<"u",Xe=()=>{let t=document.createElement("style");return t.id="master",t.setAttribute("blocking","render"),t},oe=class{constructor(e){this.config=e;this.config?.override||(this.config=G(fe,e)),this.cache(),be&&this.config.observe&&this.observe(document),oe.instances.push(this)}rules=[];ruleBy={};countBy={};observing=!1;observer=be?new MutationObserver(e=>{let r={},i=[],n=[],o=[],u=(a,s)=>{s?a.classList.forEach(m):a.classList.forEach(f);let c=a.children;for(let g=0;g<c.length;g++){let y=c[g];y.classList&&(n.push(y),u(y,s))}},f=a=>{a in r?r[a]++:r[a]=1},m=a=>{a in r?r[a]--:a in this.countBy&&(r[a]=-1)},l=(a,s)=>{for(let c=0;c<a.length;c++){let g=a[c];g.classList&&!n.includes(g)&&!o.includes(g)&&(g.isConnected!==s?(n.push(g),u(g,s)):o.push(g))}};for(let a=0;a<e.length;a++){let s=e[a],{addedNodes:c,removedNodes:g,type:y,target:k}=s;if(y==="attributes"){if(i.find(j=>j.target===k))continue;i.push(s)}else l(c,!1),(!k.isConnected||!n.includes(k))&&l(g,!0)}if(!(!i.length&&!Object.keys(r).length)){for(let{oldValue:a,target:s}of i){let c=n.includes(s),g=s.classList,y=a?a.split(" "):[];if(c){if(s.isConnected)continue;for(let k of y)g.contains(k)||m(k)}else if(s.isConnected){g.forEach(k=>{y.includes(k)||f(k)});for(let k of y)g.contains(k)||m(k)}}for(let a in r){let s=r[a],c=(this.countBy[a]||0)+s;c===0?(delete this.countBy[a],this.delete(a)):(a in this.countBy||this.insert(a),this.countBy[a]=c)}}}):null;cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.themeAffectedClassesBy={},this.classesBy={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={},this.keyframes={};let{semantics:e,classes:r,selectors:i,themes:n,colors:o,values:u,breakpoints:f,mediaQueries:m,rules:l}=this.config;function a(h){return h.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(h,p,d="",w={}){let x=O=>O?(d?d+"-":"")+O:d,R=Object.entries(h),C=[],L=[];for(let O of R){let Y=O[1];(typeof Y=="object"&&!Array.isArray(Y)?C:L).push(O)}for(let[O,Y]of C)s(Y,p,x(O),w);if(p&&d)L.length&&(w[d]=L.reduce((O,[Y,q])=>(O[Y]=q,O),{}));else for(let[O,Y]of L)w[x(O)]=Y;return w}if(e)for(let[h,p]of Object.entries(s(e,!0)))this.semantics.push([new RegExp("^"+a(h)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[h,p]]);if(i)for(let[h,p]of Object.entries(s(i,!1))){let d=new RegExp(a(h)+"(?![a-z-])");for(let w of Array.isArray(p)?p:[p]){let x=w.match(/^::-[a-z]+-/m)?.[0]??"",R=this.selectors[x];R||(R=this.selectors[x]=[]);let C=R.find(([L])=>L===d);C||(C=[d,[]],R.push(C)),C[1].push(w)}}u&&(this.globalValues=s(u,!1)),f&&(this.breakpoints=s(f,!1)),m&&(this.mediaQueries=s(m,!1));let c=r?s(r,!1):{},g=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:h}])=>h).reduce((h,[p,{classes:d}])=>(h[p]=s(d,!1),h),{}):{},y=[...Object.keys(c),...Object.entries(g).flatMap(([h,p])=>Object.keys(p))],k=h=>{if(h in this.classes)return;let p=this.classes[h]=[],d=(w,x)=>{if(!x)return;let R=Array.isArray(x)?x:x.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let C of R){let L=O=>{O in this.themeAffectedClassesBy?w in this.themeAffectedClassesBy[O]?this.themeAffectedClassesBy[O][w].push(h):this.themeAffectedClassesBy[O][w]=[h]:this.themeAffectedClassesBy[O]={[w]:[h]},p.includes(O)||p.push(O)};if(y.includes(C)){k(C);for(let O of this.classes[C])L(O)}else L(C)}};d("",c?.[h]);for(let[w,x]of Object.entries(g))d(w,x?.[h])};for(let h of y)k(h);for(let h in this.themeAffectedClassesBy){let p=this.classesBy[h]=[];for(let d of Object.values(this.themeAffectedClassesBy[h]))for(let w of d)p.includes(w)||p.push(w)}let j=(h,p)=>{if(!p)return;let d=s(p,!0);for(let[w,x]of Object.entries(d)){let R=typeof x=="string"?{"":x}:x;for(let[C,L]of Object.entries(R)){let O=w+(C?"-"+C:"");O in this.colorThemesMap?this.colorThemesMap[O][h]=L:this.colorThemesMap[O]={[h]:L}}}for(let w in p)this.colorNames.includes(w)||this.colorNames.push(w)};if(j("",o),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let h in n){let p=n[h];j(h,p.colors),this.themeNames.push(h)}let A=h=>{for(let[p,d]of Object.entries(this.colorThemesMap))for(let[w,x]of Object.entries(d))x.startsWith("#")||h(p,d,w,x)};if(A((h,p,d,w)=>{let x=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/.exec(w);if(x){let R="#"+me(+x[1],+x[2],+x[3]);x[4]&&(R+=Math.round(255*+x[4]).toString(16)),p[d]=R}}),A((h,p,d,w)=>{let[x,R]=w.split("/"),C=this.colorThemesMap[x];if(C){let L=(d?C[d]:void 0)??C[""];p[d]=R?L.slice(0,7)+Math.round(255*+R).toString(16):L}else console.warn(`\`${w}\` doesn't exist in the extended config \`.colors\``),delete p[d],Object.keys(p).length||delete this.colorThemesMap[h]}),l)for(let h in l){let p=l[h],{native:d,values:w,colored:x}=p,R=p.match;if(p.id=h,p.native=d===!0?h.replace(/(?!^)[A-Z]/g,C=>"-"+C).toLowerCase():void 0,w&&(this.values[h]=s(w,!1)),R){let C=Object.keys(this.values[h]??{});R.includes("$values")&&(R=C.length?R.replace(/\$values/,C.join("|")):R.replace(/(?:\|)?\$values/,"")),x&&R.includes("$colors")&&(R=this.colorNames.length?R.replace(/\$colors/,"(?:"+this.colorNames.join("|")+")(?![0-9A-Za-z])"):R.replace(/(?:\|)?\$colors/,"")),this.matches[h]=new RegExp(R)}}}observe(e,r={subtree:!0,childList:!0}){if(this.root!==e){if(be&&e){this.root=e;let i=e===document;i&&(oe.root=this),this.host=i?document.documentElement:root.host;let n=i?document.head:e,o=i?document.styleSheets:e.styleSheets;for(let f of o){let{href:m,ownerNode:l}=f;(l.id==="master"||m&&m.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(m))&&(this.style=l)}if(this.style)for(let f=0;f<this.style.sheet.cssRules.length;f++){let m=this.style.sheet.cssRules[f];if(m.constructor.name==="CSSKeyframesRule")continue;let l=s=>{if(s.selectorText){let g=s.selectorText.split(", ")[0].split(" ");for(let y=0;y<g.length;y++){let k=g[y];if(k[0]==="."){let j=k.slice(1),A="";for(let h=0;h<j.length;h++){let p=j[h],d=j[h+1];if(p==="\\"){if(h++,d!=="\\"){A+=d;continue}}else if(Qe.includes(p))break;A+=p}if(!(A in this.ruleBy)&&!(A in this.classes)){let h=this.create(A)[0];if(h)return h}}}}else if(s.cssRules)for(let c=0;c<s.cssRules.length;c++){let g=l(s.cssRules[c]);if(g)return g}},a=l(m);if(a){this.rules.push(a),this.ruleBy[a.className]=a;for(let s=0;s<a.natives.length;s++)a.natives[s].cssRule=this.style.sheet.cssRules[f+s];f+=a.natives.length-1,a.config.insert?.call(a)}}else switch(this.style=Xe(),this.config.precedence){case"highest":console.log(i?document.body:e),(i?document.body:e).append(this.style);break;case"higher":n.append(this.style);break;default:let f=n.querySelector('link[rel="styleSheet"], style');f?f.before(this.style):n.append(this.style);break}let u=f=>{f.forEach(m=>{m in this.countBy?this.countBy[m]++:(this.countBy[m]=1,this.insert(m))})};u(this.host.classList),r.subtree&&this.host.querySelectorAll("[class]").forEach(f=>u(f.classList)),this.observer.observe(e,{...r,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this.host.style.display=null,this.observing=!0}return this}}disconnect(){this.observer?.disconnect?.(),this.observing=!1,this.ruleBy={},this.countBy={},this.rules.length=0;let e=this.style?.sheet;if(e?.cssRules)for(let r=e.cssRules.length-1;r>=0;r--)e.deleteRule(r);this.style?.remove(),this.style=null,this.root=null}match(e){for(let r in this.config.rules){let i=this.config.rules[r],n=this.matches[r],{symbol:o,native:u}=i;if(n&&n.test(e))return{origin:"match",config:i};if(o&&e.startsWith(o))return{origin:"symbol",config:i};if(u&&e.startsWith(u+":"))return{origin:"match",config:i}}for(let r of this.semantics)if(e.match(r[0]))return{origin:"semantics",value:r[1]}}create(e){let r=i=>{if(i in this.ruleBy)return this.ruleBy[i];let n=this.match(i);if(n)return new le(i,n,this)};return(e in this.classes?this.classes[e].map(i=>r(i)):[r(e)]).filter(i=>i&&i.text)}refresh(e){if(e?.override?this.config=e:this.config=G(fe,e),this.cache(),!this.style)return;let r=Xe();this.style.replaceWith(r),this.style=r,this.rules.length=0,this.ruleBy={};for(let i in this.countBy)this.insert(i)}destroy(){let e=oe.instances;this.disconnect(),e.splice(e.indexOf(this),1)}delete(e){let r=this.style?.sheet,i=n=>{let o=this.ruleBy[n];if(!(!o||n in this.classesBy&&this.classesBy[n].some(u=>u in this.countBy))){if(r&&o.natives.length){let u=o.natives[0];for(let f=0;f<r.cssRules.length;f++)if(r.cssRules[f]===u.cssRule){for(let l=0;l<o.natives.length;l++)r.deleteRule(f);break}}this.rules.splice(this.rules.indexOf(o),1),delete this.ruleBy[n],o.config.delete&&o.config.delete.call(o,n)}};if(e in this.classes){for(let n of this.classes[e])n in this.countBy||i(n);delete this.ruleBy[e]}else i(e)}insert(e){let r=this.create(e);return r.length?(this.insertRules(r),!0):!1}insertRules(e){for(let r of e){if(this.ruleBy[r.className])continue;let i,n=this.rules.length-1,{media:o,order:u,priority:f,hasWhere:m,className:l}=r,a=(s,c,g,y)=>{let k=0,j;c&&(k=s.findIndex(c)),g&&(j=s.findIndex(g)),k===-1&&(k=s.length),(j===void 0||j===-1)&&(j=s.length);let A=s.slice(k,j);for(let h=0;h<A.length;h++){let p=A[h];if(!(p.priority===-1||y&&y(p))&&(p.priority<f||p.priority===f&&(m&&!p.hasWhere||p.order>=u)))return k+h}return k+A.length};if(o){let s=this.rules.findIndex(c=>c.media);if(s!==-1){let c=o.features["max-width"],g=o.features["min-width"];if(c&&g){let y=c.value-g.value;for(let k=n;k>=s;k--){i=k;let j=this.rules[k],A=j.media,h=A.features["max-width"],p=A.features["min-width"];if(!h||!p){i++;break}let d=h.value-p.value;if(d===y){if(m!==j.hasWhere)continue;if(f!==-1){let w=[this.rules[k]];for(let x=k-1;x>=s;x--){let R=this.rules[x];if(R.hasWhere!==m)break;let C=R.media,L=C.features["max-width"],O=C.features["min-width"];if(!L||!O||L.value-O.value!==d)break;w.unshift(this.rules[x])}i=a(this.rules,x=>x.media&&x.priority!==-1&&x.media.features["min-width"]&&x.media.features["max-width"])}break}else if(d>y)break}}else if(g)for(let y=s;y<=n;y++){i=y;let k=this.rules[y],j=k.media,A=j.features["max-width"],h=j.features["min-width"];if(A){if(h)break;continue}let p=h?.value;if(p===g.value){if(!m&&k.hasWhere){i++;continue}if(f!==-1)i=a(this.rules,d=>d.media,d=>d.media&&d.priority!==-1&&d.media.features["min-width"]&&d.media.features["max-width"],d=>!d.media.features["min-width"]&&!d.media.features["max-width"]);else for(let d=y;d<=n;d++){let w=this.rules[d],x=w.media,R=x.features["min-width"];if(!x.features["max-width"]){if(w.hasWhere!==m||R.value!==p||w.order>=u)break;i=d+1}}break}else{if(p>g.value)break;i++}}else if(c)for(let y=n;y>=s;y--){i=y;let k=this.rules[y],j=k.media,A=j.features["max-width"];if(j.features["min-width"])continue;let p=A?.value;if(!p||p>c.value){i++;break}else if(p===c.value){if(m&&!k.hasWhere)continue;if(f!==-1)i=a(this.rules,d=>d.media,d=>d.media&&d.priority!==-1&&d.media.features["min-width"]&&d.media.features["max-width"],d=>!d.media.features["min-width"]&&!d.media.features["max-width"]);else{let d=[this.rules[y]];for(let w=y-1;w>=s;w--){let x=this.rules[w],R=x.media,C=R.features["min-width"],L=R.features["max-width"];if(!C&&(!L||L.value!==p||x.hasWhere!==m))break;d.unshift(x)}for(let w=0;w<d.length;w++){let x=d[w];if(!x.media.features["min-width"]){if(x.order>=u)break;i=y-d.length+2+w}}}break}}}if(i===void 0)if(s===-1)i=n+1;else if(f!==-1)i=s+a(this.rules.slice(s),void 0,c=>c.media.features["max-width"]||c.media.features["min-width"]);else if(m){let c=s;for(;c<this.rules.length;c++){let g=this.rules[c];if(g.priority!==-1||!g.hasWhere||g.order>=u){i=c;break}}i===void 0&&(i=c)}else for(let c=s;c<=n;c++){i=c;let g=this.rules[c],y=g.media;if(g.priority!==-1||y.features["max-width"]||y.features["min-width"])break;if(g.hasWhere)i++;else if(g.order>=u)break}}else if(f===-1){if(m)i=this.rules.findIndex(s=>!s.hasWhere||s.media||s.priority!==-1||s.order>=u),i===-1&&(i=n+1);else{let s=0;for(;s<this.rules.length;s++){let c=this.rules[s];if(c.media||!c.hasWhere&&(c.order>=u||c.priority!==-1)){i=s;break}}i===void 0&&(i=s)}!i&&Object.keys(this.keyframes).length&&i++}else i=a(this.rules,void 0,s=>s.media);if(this.rules.splice(i,0,r),this.ruleBy[l]=r,this.style){let s=this.style.sheet,c=0,g=y=>{let k=this.rules[y];if(k){if(!k.natives.length)return g(y-1);let j=k.natives[k.natives.length-1].cssRule;for(let A=0;A<s.cssRules.length;A++)if(s.cssRules[A]===j){c=A+1;break}}};g(i-1);for(let y=0;y<r.natives.length;)try{let k=r.natives[y];s.insertRule(k.text,c),k.cssRule=s.cssRules[c++],y++}catch(k){console.error(k),r.natives.splice(y,1)}}r.config.insert?.call(r)}}get text(){return this.rules.map(e=>e.text).join("")}},Z=oe;ae(Z,"root"),ae(Z,"config",fe),ae(Z,"instances",[]),ae(Z,"refresh",e=>{for(let r of oe.instances)r.refresh(e)});be&&(window.MasterCSS=Z);var Ne={store:"theme",init:!0},st=typeof document<"u",qe=typeof localStorage<"u",Ie=class{constructor(e,r=st?document.documentElement:null){this.settings=e;this.host=r;this.settings=e?G(Ne,e):Ne,this.settings.init&&this.init()}e=typeof matchMedia<"u"?matchMedia?.("(prefers-color-scheme:dark)"):void 0;r;t;init(){let e=this.settings.default,r=this.storage;r&&(e=r),this.value=e}get storage(){let{store:e}=this.settings;if(qe&&e)return localStorage.getItem(e)}get systemValue(){return this.e.matches?"dark":"light"}set value(e){this.r=e,e==="system"?(this.e?.addEventListener?.("change",this.i),this.current=this.systemValue):(this.s(),this.current=e)}get value(){return this.r}set current(e){let r=this.t;this.t=e,this.host&&(r&&this.host.classList.remove(r),this.host.classList.contains(e)||(this.host.classList.add(e),this.host.style&&(this.host.style.colorScheme=e)))}get current(){return this.t}switch(e,r={store:!0,emit:!0}){e&&e!==this.value&&(this.value=e,qe&&this.storage!==e&&this.settings.store&&localStorage.setItem(this.settings.store,e),r.emit&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}s(){this.e?.removeEventListener("change",this.i)}i=e=>{this.current=e.matches?"dark":"light"};destroy(){this.s()}};function nt(t){return t=Object.assign({store:"theme"},t),`let e${t.default?`='${t.default}'`:""};const c=localStorage.getItem("${t.store}");c&&(e=c);let t=e;e==="system"&&(t=matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light");const s=document.documentElement;s.classList.add(t);s.style.colorScheme=t;`}function ot(t,e){if(!t?.length)return;let r=new Z({...e,observe:!1});for(let i of t)i in r.countBy||r.insert(i)&&(r.countBy[i]=1);return r.text}function Le(t,e){if(!t)return;let r=new Z({...e,observe:!1}),i=/\sclass="([^"]*)"/gm,n;for(;n=i.exec(t);){let o=n[1].replace(/\n/g,"").split(" ").filter(u=>u);for(let u of o)u in r.countBy||(r.insert(u),r.countBy[u]=1)}return r.text}function at(t,e){if(!t)return;let r=`<style id="master">${Le(t,e)}</style>`;switch(e?.precedence??"highest"){case"highest":return t.replace(/<\/body>/,`${r}$&`);case"higher":return t.replace(/<\/head>/,`${r}$&`);default:return t.replace(/(<link[^>]*?rel="styleSheet".*?>|<style.*?>|<\/head>)/,`${r}$1`)}}function lt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(f,m){var l=m.match(/\n([\t ]+|(?!\s).)/g);return l?f.concat(l.map(function(a){var s,c;return(c=(s=a.match(/[\t ]/g))===null||s===void 0?void 0:s.length)!==null&&c!==void 0?c:0})):f},[]);if(n.length){var o=new RegExp(`
|
|
2
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(f){return f.replace(o,`
|
|
3
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var u=i[0];return e.forEach(function(f,m){var l=u.match(/(?:^|\n)( *)$/),a=l?l[1]:"",s=f;typeof f=="string"&&f.includes(`
|
|
4
|
+
`)&&(s=String(f).split(`
|
|
5
|
+
`).map(function(c,g){return g===0?c:""+a+c}).join(`
|
|
6
|
+
`)),u+=s+i[m+1]}),u}var We=lt;function ct({compiler:t,jit:e,ext:r}={}){let i=(s,c=", ")=>s.filter(g=>g).join(c),n=r==="ts",o=r==="js",u=r!=="ts",f=o?"":"export ",m=o?"const":"import",l=o?" = require(":" from ",a=o?")":"";return[(n||e)&&`${m} ${i([e&&(o?"{ MasterCSS }":"MasterCSS"),n?"{ Config }":""])}${l}'@master/css'${a}`,n&&t&&`${m} { Options }${l}'@master/css-compiler'${a}`,(n||e||n&&t)&&"",u&&"/** @type {import('@master/css').Config} */",We`${f}const config${n?": Config":""} = {
|
|
7
|
+
themes: {},
|
|
8
|
+
colors: {},
|
|
9
|
+
classes: {},
|
|
10
|
+
values: {},
|
|
11
|
+
semantics: {},
|
|
12
|
+
breakpoints: {},
|
|
13
|
+
selectors: {},
|
|
14
|
+
mediaQueries: {}
|
|
15
|
+
}`,t&&"",t&&u&&"/** @type {import('@master/css-compiler').Options} */",t&&We`${f}const compilerOptions${n?": Options":""} = {
|
|
16
|
+
sources: [],
|
|
17
|
+
classes: {
|
|
18
|
+
fixed: [],
|
|
19
|
+
ignored: []
|
|
20
|
+
}
|
|
21
|
+
}`,e&&`
|
|
22
|
+
${f}const css = new MasterCSS(config)`,!f&&`
|
|
23
|
+
module.exports = { ${i(["config",e&&"css",t&&"compilerOptions"])} }`].filter(s=>typeof s=="string").join(`
|
|
24
|
+
`)+`
|
|
25
|
+
`}
|