@mhmo91/schmancy 0.8.6 → 0.9.3
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 +54 -1
- package/ai/INDEX.md +321 -0
- package/ai/animation.md +64 -0
- package/ai/area.md +170 -237
- package/ai/audio.md +50 -222
- package/ai/autocomplete.md +44 -162
- package/ai/avatar.md +47 -178
- package/ai/badge.md +41 -108
- package/ai/boat.md +35 -41
- package/ai/busy.md +25 -184
- package/ai/button.md +52 -150
- package/ai/card.md +42 -215
- package/ai/charts.md +93 -0
- package/ai/checkbox.md +32 -135
- package/ai/chips.md +73 -383
- package/ai/code-highlight.md +33 -226
- package/ai/connectivity.md +36 -0
- package/ai/content-drawer.md +65 -232
- package/ai/date-range-inline.md +40 -258
- package/ai/date-range.md +43 -198
- package/ai/delay.md +31 -139
- package/ai/details.md +48 -453
- package/ai/dialog.md +55 -164
- package/ai/directives.md +258 -405
- package/ai/discovery.md +67 -0
- package/ai/divider.md +15 -137
- package/ai/dropdown.md +44 -235
- package/ai/expand.md +63 -0
- package/ai/extra.md +59 -0
- package/ai/float.md +14 -0
- package/ai/form.md +41 -137
- package/ai/icons.md +31 -235
- package/ai/iframe.md +44 -0
- package/ai/input.md +50 -210
- package/ai/json.md +33 -0
- package/ai/layout.md +45 -169
- package/ai/lightbox.md +25 -370
- package/ai/list.md +51 -130
- package/ai/mailbox.md +80 -508
- package/ai/map.md +47 -226
- package/ai/menu.md +25 -134
- package/ai/mixins.md +201 -0
- package/ai/nav-drawer.md +30 -184
- package/ai/navigation-bar.md +27 -184
- package/ai/navigation-rail.md +62 -630
- package/ai/notification.md +49 -183
- package/ai/option.md +30 -160
- package/ai/page.md +42 -0
- package/ai/progress.md +26 -65
- package/ai/qr-scanner.md +51 -0
- package/ai/radio-group.md +45 -189
- package/ai/range.md +47 -0
- package/ai/rxjs-utils.md +60 -0
- package/ai/select.md +49 -209
- package/ai/sheet.md +74 -506
- package/ai/slider.md +30 -214
- package/ai/steps.md +30 -392
- package/ai/store.md +173 -251
- package/ai/surface.md +58 -245
- package/ai/table.md +56 -330
- package/ai/tabs.md +31 -176
- package/ai/teleport.md +35 -177
- package/ai/textarea.md +48 -232
- package/ai/theme-button.md +16 -163
- package/ai/theme.md +40 -1089
- package/ai/tooltip.md +35 -146
- package/ai/tree.md +45 -271
- package/ai/typewriter.md +28 -317
- package/ai/typography.md +43 -296
- package/ai/utils.md +95 -0
- package/ai/window.md +67 -0
- package/custom-elements.json +10955 -0
- package/dist/ai/INDEX.md +321 -0
- package/dist/ai/animation.md +64 -0
- package/dist/ai/area.md +170 -237
- package/dist/ai/audio.md +50 -222
- package/dist/ai/autocomplete.md +44 -162
- package/dist/ai/avatar.md +47 -178
- package/dist/ai/badge.md +41 -108
- package/dist/ai/boat.md +35 -41
- package/dist/ai/busy.md +25 -184
- package/dist/ai/button.md +52 -150
- package/dist/ai/card.md +42 -215
- package/dist/ai/charts.md +93 -0
- package/dist/ai/checkbox.md +32 -135
- package/dist/ai/chips.md +73 -383
- package/dist/ai/code-highlight.md +33 -226
- package/dist/ai/connectivity.md +36 -0
- package/dist/ai/content-drawer.md +65 -232
- package/dist/ai/date-range-inline.md +40 -258
- package/dist/ai/date-range.md +43 -198
- package/dist/ai/delay.md +31 -139
- package/dist/ai/details.md +48 -453
- package/dist/ai/dialog.md +55 -164
- package/dist/ai/directives.md +258 -405
- package/dist/ai/discovery.md +67 -0
- package/dist/ai/divider.md +15 -137
- package/dist/ai/dropdown.md +44 -235
- package/dist/ai/expand.md +63 -0
- package/dist/ai/extra.md +59 -0
- package/dist/ai/float.md +14 -0
- package/dist/ai/form.md +41 -137
- package/dist/ai/icons.md +31 -235
- package/dist/ai/iframe.md +44 -0
- package/dist/ai/input.md +50 -210
- package/dist/ai/json.md +33 -0
- package/dist/ai/layout.md +45 -169
- package/dist/ai/lightbox.md +25 -370
- package/dist/ai/list.md +51 -130
- package/dist/ai/mailbox.md +80 -508
- package/dist/ai/map.md +47 -226
- package/dist/ai/menu.md +25 -134
- package/dist/ai/mixins.md +201 -0
- package/dist/ai/nav-drawer.md +30 -184
- package/dist/ai/navigation-bar.md +27 -184
- package/dist/ai/navigation-rail.md +62 -630
- package/dist/ai/notification.md +49 -183
- package/dist/ai/option.md +30 -160
- package/dist/ai/page.md +42 -0
- package/dist/ai/progress.md +26 -65
- package/dist/ai/qr-scanner.md +51 -0
- package/dist/ai/radio-group.md +45 -189
- package/dist/ai/range.md +47 -0
- package/dist/ai/rxjs-utils.md +60 -0
- package/dist/ai/select.md +49 -209
- package/dist/ai/sheet.md +74 -506
- package/dist/ai/slider.md +30 -214
- package/dist/ai/steps.md +30 -392
- package/dist/ai/store.md +173 -251
- package/dist/ai/surface.md +58 -245
- package/dist/ai/table.md +56 -330
- package/dist/ai/tabs.md +31 -176
- package/dist/ai/teleport.md +35 -177
- package/dist/ai/textarea.md +48 -232
- package/dist/ai/theme-button.md +16 -163
- package/dist/ai/theme.md +40 -1089
- package/dist/ai/tooltip.md +35 -146
- package/dist/ai/tree.md +45 -271
- package/dist/ai/typewriter.md +28 -317
- package/dist/ai/typography.md +43 -296
- package/dist/ai/utils.md +95 -0
- package/dist/ai/window.md +67 -0
- package/dist/animation-BK-8BwY8.js +173 -0
- package/dist/animation-BK-8BwY8.js.map +1 -0
- package/dist/animation-CO_Csq84.cjs +16 -0
- package/dist/animation-CO_Csq84.cjs.map +1 -0
- package/dist/area-CC8fUnra.js +590 -0
- package/dist/area-CC8fUnra.js.map +1 -0
- package/dist/area-wnWUAHEn.cjs +12 -0
- package/dist/area-wnWUAHEn.cjs.map +1 -0
- package/dist/area.cjs +1 -2
- package/dist/area.js +2 -29
- package/dist/audio-DtYYgzYD.cjs +1 -0
- package/dist/audio-DtYYgzYD.cjs.map +1 -0
- package/dist/audio-kz8UgPTO.js +335 -0
- package/dist/audio-kz8UgPTO.js.map +1 -0
- package/dist/audio.cjs +1 -2
- package/dist/audio.js +3 -9
- package/dist/autocomplete-B2Z3WK_7.cjs +111 -0
- package/dist/autocomplete-B2Z3WK_7.cjs.map +1 -0
- package/dist/autocomplete-CJ7YgtKN.js +378 -0
- package/dist/autocomplete-CJ7YgtKN.js.map +1 -0
- package/dist/autocomplete.cjs +1 -2
- package/dist/autocomplete.js +1 -2
- package/dist/badge.cjs +1 -2
- package/dist/badge.js +2 -6
- package/dist/boat-B57_4TzJ.cjs +80 -0
- package/dist/boat-B57_4TzJ.cjs.map +1 -0
- package/dist/boat-C9eU6NO-.js +347 -0
- package/dist/boat-C9eU6NO-.js.map +1 -0
- package/dist/boat.cjs +1 -2
- package/dist/boat.js +2 -5
- package/dist/busy--6oimtop.cjs +134 -0
- package/dist/busy--6oimtop.cjs.map +1 -0
- package/dist/busy-CGZXy0h-.js +167 -0
- package/dist/busy-CGZXy0h-.js.map +1 -0
- package/dist/busy.cjs +1 -2
- package/dist/busy.js +1 -2
- package/dist/button.cjs +113 -2
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +398 -5
- package/dist/button.js.map +1 -1
- package/dist/card-BGJ0Hb1O.cjs +177 -0
- package/dist/card-BGJ0Hb1O.cjs.map +1 -0
- package/dist/card-C-ee-l5O.js +284 -0
- package/dist/card-C-ee-l5O.js.map +1 -0
- package/dist/card.cjs +1 -2
- package/dist/card.js +1 -2
- package/dist/charts.cjs +112 -2
- package/dist/charts.cjs.map +1 -1
- package/dist/charts.js +368 -8
- package/dist/charts.js.map +1 -1
- package/dist/checkbox-DuYaKoDZ.cjs +39 -0
- package/dist/checkbox-DuYaKoDZ.cjs.map +1 -0
- package/dist/checkbox-FRcorDrD.js +610 -0
- package/dist/checkbox-FRcorDrD.js.map +1 -0
- package/dist/checkbox.cjs +1 -2
- package/dist/checkbox.js +2 -5
- package/dist/chips-BpA0A-qr.cjs +253 -0
- package/dist/chips-BpA0A-qr.cjs.map +1 -0
- package/dist/chips-CyzNbKJD.js +645 -0
- package/dist/chips-CyzNbKJD.js.map +1 -0
- package/dist/chips.cjs +1 -2
- package/dist/chips.js +3 -10
- package/dist/chunk-BCfY8kxB.cjs +1 -0
- package/dist/chunk-C_1VqBVD.js +11 -0
- package/dist/code-highlight-C7O9ltXm.js +290 -0
- package/dist/code-highlight-C7O9ltXm.js.map +1 -0
- package/dist/code-highlight-DsBdSQBG.cjs +190 -0
- package/dist/code-highlight-DsBdSQBG.cjs.map +1 -0
- package/dist/code-highlight.cjs +1 -2
- package/dist/code-highlight.js +2 -7
- package/dist/components-CkMvOiTR.js +730 -0
- package/dist/components-CkMvOiTR.js.map +1 -0
- package/dist/components-dDI3xeIf.cjs +73 -0
- package/dist/components-dDI3xeIf.cjs.map +1 -0
- package/dist/components.cjs +1 -2
- package/dist/components.js +2 -5
- package/dist/connectivity.cjs +59 -0
- package/dist/connectivity.cjs.map +1 -0
- package/dist/connectivity.js +86 -0
- package/dist/connectivity.js.map +1 -0
- package/dist/content-drawer.cjs +1 -2
- package/dist/content-drawer.js +2 -13
- package/dist/cursor-glow-Ah7VXSj7.js +46 -0
- package/dist/cursor-glow-Ah7VXSj7.js.map +1 -0
- package/dist/cursor-glow-DtSy_PJd.cjs +1 -0
- package/dist/cursor-glow-DtSy_PJd.cjs.map +1 -0
- package/dist/date-range-70zhLUKE.cjs +131 -0
- package/dist/date-range-70zhLUKE.cjs.map +1 -0
- package/dist/date-range-BrN_Bs6_.js +946 -0
- package/dist/date-range-BrN_Bs6_.js.map +1 -0
- package/dist/date-range-inline-CPzD-tIv.cjs +43 -0
- package/dist/date-range-inline-CPzD-tIv.cjs.map +1 -0
- package/dist/date-range-inline-Cp294DxR.js +267 -0
- package/dist/date-range-inline-Cp294DxR.js.map +1 -0
- package/dist/date-range-inline.cjs +1 -2
- package/dist/date-range-inline.js +2 -5
- package/dist/date-range.cjs +1 -2
- package/dist/date-range.js +2 -6
- package/dist/delay-COcAkBqB.cjs +9 -0
- package/dist/delay-COcAkBqB.cjs.map +1 -0
- package/dist/delay-IV0Swce2.js +346 -0
- package/dist/delay-IV0Swce2.js.map +1 -0
- package/dist/delay.cjs +1 -2
- package/dist/delay.js +2 -6
- package/dist/details-CuKmr3Qw.js +293 -0
- package/dist/details-CuKmr3Qw.js.map +1 -0
- package/dist/details-DgWkPqmt.cjs +168 -0
- package/dist/details-DgWkPqmt.cjs.map +1 -0
- package/dist/details.cjs +1 -2
- package/dist/details.js +2 -5
- package/dist/dialog-service-NZEvyEK-.js +193 -0
- package/dist/dialog-service-NZEvyEK-.js.map +1 -0
- package/dist/dialog-service-VnW4gkmE.cjs +1 -0
- package/dist/dialog-service-VnW4gkmE.cjs.map +1 -0
- package/dist/dialog.cjs +82 -2
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.js +396 -9
- package/dist/dialog.js.map +1 -1
- package/dist/directives.cjs +108 -2
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.js +1362 -14
- package/dist/directives.js.map +1 -1
- package/dist/discovery.cjs +1 -2
- package/dist/discovery.cjs.map +1 -1
- package/dist/discovery.js +61 -6
- package/dist/discovery.js.map +1 -1
- package/dist/divider-BWoUbfgZ.js +87 -0
- package/dist/divider-BWoUbfgZ.js.map +1 -0
- package/dist/divider-BghtrMbn.cjs +57 -0
- package/dist/divider-BghtrMbn.cjs.map +1 -0
- package/dist/divider.cjs +1 -2
- package/dist/divider.js +1 -2
- package/dist/dropdown.cjs +57 -2
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.js +160 -5
- package/dist/dropdown.js.map +1 -1
- package/dist/expand-CJU9m4ga.js +336 -0
- package/dist/expand-CJU9m4ga.js.map +1 -0
- package/dist/expand-XyDE5SsO.cjs +141 -0
- package/dist/expand-XyDE5SsO.cjs.map +1 -0
- package/dist/expand.cjs +1 -0
- package/dist/expand.js +2 -0
- package/dist/extra-BxXFmW1w.js +3435 -0
- package/dist/extra-BxXFmW1w.js.map +1 -0
- package/dist/extra-CsrRKKqE.cjs +31 -0
- package/dist/extra-CsrRKKqE.cjs.map +1 -0
- package/dist/extra.cjs +1 -2
- package/dist/extra.js +2 -6
- package/dist/float-BD86t_NU.js +5 -0
- package/dist/float-BD86t_NU.js.map +1 -0
- package/dist/float-DBv1FINW.cjs +1 -0
- package/dist/float-DBv1FINW.cjs.map +1 -0
- package/dist/float.cjs +1 -0
- package/dist/float.js +2 -0
- package/dist/flow-Bbwn6dRN.cjs +1 -0
- package/dist/flow-Bbwn6dRN.cjs.map +1 -0
- package/dist/flow-CUj0fDT_.js +386 -0
- package/dist/flow-CUj0fDT_.js.map +1 -0
- package/dist/form-Cp5-I_ZV.js +270 -0
- package/dist/form-Cp5-I_ZV.js.map +1 -0
- package/dist/form-D0bIeDWT.cjs +1 -0
- package/dist/form-D0bIeDWT.cjs.map +1 -0
- package/dist/form.cjs +1 -2
- package/dist/form.js +1 -2
- package/dist/hashContent-DYM21p6t.js +6 -0
- package/dist/hashContent-DYM21p6t.js.map +1 -0
- package/dist/hashContent-DaeGmY-p.cjs +1 -0
- package/dist/hashContent-DaeGmY-p.cjs.map +1 -0
- package/dist/icons-BpU0_l92.js +161 -0
- package/dist/icons-BpU0_l92.js.map +1 -0
- package/dist/icons-D8w_20mO.cjs +52 -0
- package/dist/icons-D8w_20mO.cjs.map +1 -0
- package/dist/icons.cjs +1 -2
- package/dist/icons.js +1 -2
- package/dist/iframe-BjwxA2Pg.cjs +24 -0
- package/dist/iframe-BjwxA2Pg.cjs.map +1 -0
- package/dist/iframe-tY1GY5g1.js +44 -0
- package/dist/iframe-tY1GY5g1.js.map +1 -0
- package/dist/iframe.cjs +1 -0
- package/dist/iframe.js +2 -0
- package/dist/index.cjs +1 -2
- package/dist/index.js +69 -285
- package/dist/input-BnfTpRN9.js +364 -0
- package/dist/input-BnfTpRN9.js.map +1 -0
- package/dist/input-BwxwognS.cjs +51 -0
- package/dist/input-BwxwognS.cjs.map +1 -0
- package/dist/input-chip-CkM2aYmO.js +301 -0
- package/dist/input-chip-CkM2aYmO.js.map +1 -0
- package/dist/input-chip-MjOwX5EY.cjs +146 -0
- package/dist/input-chip-MjOwX5EY.cjs.map +1 -0
- package/dist/input.cjs +1 -2
- package/dist/input.js +2 -6
- package/dist/intersection-BPLpqYEd.js +12 -0
- package/dist/intersection-BPLpqYEd.js.map +1 -0
- package/dist/intersection-CZpaIHeT.cjs +1 -0
- package/dist/intersection-CZpaIHeT.cjs.map +1 -0
- package/dist/json.cjs +11 -2
- package/dist/json.cjs.map +1 -1
- package/dist/json.js +40 -4
- package/dist/json.js.map +1 -1
- package/dist/layout-4C-6_cre.cjs +1 -0
- package/dist/layout-4C-6_cre.cjs.map +1 -0
- package/dist/layout-BV0EeyUS.cjs +17 -0
- package/dist/layout-BV0EeyUS.cjs.map +1 -0
- package/dist/layout-CJSlZlFL.js +267 -0
- package/dist/layout-CJSlZlFL.js.map +1 -0
- package/dist/layout-yxSlLybo.js +94 -0
- package/dist/layout-yxSlLybo.js.map +1 -0
- package/dist/layout.cjs +1 -2
- package/dist/layout.js +3 -9
- package/dist/lightbox-CpNMZHZW.cjs +202 -0
- package/dist/lightbox-CpNMZHZW.cjs.map +1 -0
- package/dist/lightbox-groqGmJH.js +678 -0
- package/dist/lightbox-groqGmJH.js.map +1 -0
- package/dist/lightbox.cjs +1 -2
- package/dist/lightbox.js +2 -8
- package/dist/list-CyHd0Zc2.cjs +40 -0
- package/dist/list-CyHd0Zc2.cjs.map +1 -0
- package/dist/list-DzkqT_r-.js +105 -0
- package/dist/list-DzkqT_r-.js.map +1 -0
- package/dist/list.cjs +1 -2
- package/dist/list.js +2 -7
- package/dist/litElement.mixin-BG6_-nYX.cjs +1 -0
- package/dist/litElement.mixin-BG6_-nYX.cjs.map +1 -0
- package/dist/litElement.mixin-Dm-4L8zL.js +12 -0
- package/dist/litElement.mixin-Dm-4L8zL.js.map +1 -0
- package/dist/magnetic-BZGFxAWG.js +47 -0
- package/dist/magnetic-BZGFxAWG.js.map +1 -0
- package/dist/magnetic-Dux4QwO4.cjs +1 -0
- package/dist/magnetic-Dux4QwO4.cjs.map +1 -0
- package/dist/mailbox-BcqnXYVP.js +1584 -0
- package/dist/mailbox-BcqnXYVP.js.map +1 -0
- package/dist/mailbox-C5eYTd7p.cjs +1142 -0
- package/dist/mailbox-C5eYTd7p.cjs.map +1 -0
- package/dist/mailbox.cjs +1 -2
- package/dist/mailbox.js +2 -9
- package/dist/map-BncheFt5.cjs +80 -0
- package/dist/map-BncheFt5.cjs.map +1 -0
- package/dist/map-C0o1PgLE.js +205 -0
- package/dist/map-C0o1PgLE.js.map +1 -0
- package/dist/map.cjs +1 -2
- package/dist/map.js +2 -5
- package/dist/menu-uwqlQbLd.js +51 -0
- package/dist/menu-uwqlQbLd.js.map +1 -0
- package/dist/menu-yXzwJZFf.cjs +23 -0
- package/dist/menu-yXzwJZFf.cjs.map +1 -0
- package/dist/menu.cjs +1 -2
- package/dist/menu.js +1 -2
- package/dist/mixins.cjs +1 -2
- package/dist/mixins.cjs.map +1 -1
- package/dist/mixins.js +59 -12
- package/dist/mixins.js.map +1 -1
- package/dist/nav-drawer.cjs +1 -2
- package/dist/nav-drawer.js +2 -12
- package/dist/navigation-bar.cjs +1 -2
- package/dist/navigation-bar.js +2 -6
- package/dist/navigation-rail.cjs +71 -2
- package/dist/navigation-rail.cjs.map +1 -1
- package/dist/navigation-rail.js +363 -5
- package/dist/navigation-rail.js.map +1 -1
- package/dist/notification-BjwTfLAl.cjs +23 -0
- package/dist/notification-BjwTfLAl.cjs.map +1 -0
- package/dist/notification-DzYT4deA.js +304 -0
- package/dist/notification-DzYT4deA.js.map +1 -0
- package/dist/notification.cjs +1 -2
- package/dist/notification.js +2 -9
- package/dist/option-BJsD3u2D.cjs +43 -0
- package/dist/option-BJsD3u2D.cjs.map +1 -0
- package/dist/option-JFHxgiYl.js +97 -0
- package/dist/option-JFHxgiYl.js.map +1 -0
- package/dist/option.cjs +1 -2
- package/dist/option.js +1 -2
- package/dist/overlay-stack-DQey9Qph.cjs +1 -0
- package/dist/overlay-stack-DQey9Qph.cjs.map +1 -0
- package/dist/overlay-stack-DT1SdaGW.js +39 -0
- package/dist/overlay-stack-DT1SdaGW.js.map +1 -0
- package/dist/page.cjs +20 -2
- package/dist/page.cjs.map +1 -1
- package/dist/page.js +71 -4
- package/dist/page.js.map +1 -1
- package/dist/progress-BUh5WBqx.js +128 -0
- package/dist/progress-BUh5WBqx.js.map +1 -0
- package/dist/progress-BoRmyGAa.cjs +51 -0
- package/dist/progress-BoRmyGAa.cjs.map +1 -0
- package/dist/progress.cjs +1 -2
- package/dist/progress.js +1 -2
- package/dist/provide-8MrDz_qX.js +107 -0
- package/dist/provide-8MrDz_qX.js.map +1 -0
- package/dist/provide-CDkxgjHb.cjs +1 -0
- package/dist/provide-CDkxgjHb.cjs.map +1 -0
- package/dist/qr-scanner.cjs +35 -2
- package/dist/qr-scanner.cjs.map +1 -1
- package/dist/qr-scanner.js +119 -4
- package/dist/qr-scanner.js.map +1 -1
- package/dist/radio-group-DbOWUPhi.js +105 -0
- package/dist/radio-group-DbOWUPhi.js.map +1 -0
- package/dist/radio-group-rhrvhB5X.cjs +40 -0
- package/dist/radio-group-rhrvhB5X.cjs.map +1 -0
- package/dist/radio-group.cjs +1 -2
- package/dist/radio-group.js +2 -6
- package/dist/range.cjs +62 -0
- package/dist/range.cjs.map +1 -0
- package/dist/range.js +85 -0
- package/dist/range.js.map +1 -0
- package/dist/reduced-motion-D-L12p7G.js +7 -0
- package/dist/reduced-motion-D-L12p7G.js.map +1 -0
- package/dist/reduced-motion-Ds05GPyz.cjs +1 -0
- package/dist/reduced-motion-Ds05GPyz.cjs.map +1 -0
- package/dist/rxjs-utils-BSjmI9-Q.js +32 -0
- package/dist/rxjs-utils-BSjmI9-Q.js.map +1 -0
- package/dist/rxjs-utils-DCsfzeap.cjs +1 -0
- package/dist/rxjs-utils-DCsfzeap.cjs.map +1 -0
- package/dist/rxjs-utils.cjs +1 -2
- package/dist/rxjs-utils.js +2 -14
- package/dist/scroll-BE9W9PF2.cjs +26 -0
- package/dist/scroll-BE9W9PF2.cjs.map +1 -0
- package/dist/scroll-qGks1R0k.js +112 -0
- package/dist/scroll-qGks1R0k.js.map +1 -0
- package/dist/search-C4dFHYbX.js +91 -0
- package/dist/search-C4dFHYbX.js.map +1 -0
- package/dist/search-Ds8tt7Et.cjs +1 -0
- package/dist/search-Ds8tt7Et.cjs.map +1 -0
- package/dist/select-D9sgBRjU.js +305 -0
- package/dist/select-D9sgBRjU.js.map +1 -0
- package/dist/select-DXU2kzg4.cjs +56 -0
- package/dist/select-DXU2kzg4.cjs.map +1 -0
- package/dist/select.cjs +1 -2
- package/dist/select.js +2 -5
- package/dist/sheet-CIxCCJ3H.js +168 -0
- package/dist/sheet-CIxCCJ3H.js.map +1 -0
- package/dist/sheet-CeX6BbNp.cjs +35 -0
- package/dist/sheet-CeX6BbNp.cjs.map +1 -0
- package/dist/sheet.cjs +1 -2
- package/dist/sheet.js +3 -7
- package/dist/sheet.service-CAB7weBc.js +86 -0
- package/dist/sheet.service-CAB7weBc.js.map +1 -0
- package/dist/sheet.service-DPAp7E3x.cjs +1 -0
- package/dist/sheet.service-DPAp7E3x.cjs.map +1 -0
- package/dist/slider.cjs +82 -2
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.js +143 -5
- package/dist/slider.js.map +1 -1
- package/dist/sound.service-Bu3EQLv2.cjs +1 -0
- package/dist/sound.service-Bu3EQLv2.cjs.map +1 -0
- package/dist/sound.service-m3BrSfuH.js +2353 -0
- package/dist/sound.service-m3BrSfuH.js.map +1 -0
- package/dist/src-CbO5kJ2O.js +1244 -0
- package/dist/src-CbO5kJ2O.js.map +1 -0
- package/dist/src-SraDxEeg.cjs +269 -0
- package/dist/src-SraDxEeg.cjs.map +1 -0
- package/dist/steps.cjs +70 -2
- package/dist/steps.cjs.map +1 -1
- package/dist/steps.js +178 -7
- package/dist/steps.js.map +1 -1
- package/dist/store-CorvD3bT.cjs +1 -0
- package/dist/store-CorvD3bT.cjs.map +1 -0
- package/dist/store-DYqDLAvT.js +1654 -0
- package/dist/store-DYqDLAvT.js.map +1 -0
- package/dist/store.cjs +1 -2
- package/dist/store.js +2 -47
- package/dist/surface-DuH0pm2v.cjs +7 -0
- package/dist/surface-DuH0pm2v.cjs.map +1 -0
- package/dist/surface-eN_Jy2MJ.js +21 -0
- package/dist/surface-eN_Jy2MJ.js.map +1 -0
- package/dist/surface.cjs +1 -2
- package/dist/surface.js +2 -6
- package/dist/surface.mixin-CIXgN6iw.cjs +297 -0
- package/dist/surface.mixin-CIXgN6iw.cjs.map +1 -0
- package/dist/surface.mixin-D9jv1sKG.js +320 -0
- package/dist/surface.mixin-D9jv1sKG.js.map +1 -0
- package/dist/table-C9rRQJEB.cjs +63 -0
- package/dist/table-C9rRQJEB.cjs.map +1 -0
- package/dist/table-Dg_tUGB_.js +631 -0
- package/dist/table-Dg_tUGB_.js.map +1 -0
- package/dist/table.cjs +1 -2
- package/dist/table.js +2 -6
- package/dist/tabs-BbFC9omR.js +125 -0
- package/dist/tabs-BbFC9omR.js.map +1 -0
- package/dist/tabs-soTL-x4G.cjs +31 -0
- package/dist/tabs-soTL-x4G.cjs.map +1 -0
- package/dist/tabs.cjs +1 -2
- package/dist/tabs.js +1 -2
- package/dist/tailwind.mixin-BIVhjNvD.js +225 -0
- package/dist/tailwind.mixin-BIVhjNvD.js.map +1 -0
- package/dist/tailwind.mixin-DSuEu-y3.cjs +2 -0
- package/dist/tailwind.mixin-DSuEu-y3.cjs.map +1 -0
- package/dist/teleport.cjs +1 -2
- package/dist/teleport.js +2 -8
- package/dist/textarea-DaRUJ0ri.cjs +35 -0
- package/dist/textarea-DaRUJ0ri.cjs.map +1 -0
- package/dist/textarea-hChvHbNM.js +195 -0
- package/dist/textarea-hChvHbNM.js.map +1 -0
- package/dist/textarea.cjs +1 -2
- package/dist/textarea.js +1 -2
- package/dist/theme-B0M8Hlyo.js +4121 -0
- package/dist/theme-B0M8Hlyo.js.map +1 -0
- package/dist/theme-ZYH2MqX9.cjs +181 -0
- package/dist/theme-ZYH2MqX9.cjs.map +1 -0
- package/dist/theme-button-BtlX_Zgd.js +19 -0
- package/dist/theme-button-BtlX_Zgd.js.map +1 -0
- package/dist/theme-button-Dvqg-rE_.cjs +8 -0
- package/dist/theme-button-Dvqg-rE_.cjs.map +1 -0
- package/dist/theme-button.cjs +1 -2
- package/dist/theme-button.js +1 -2
- package/dist/theme.cjs +1 -2
- package/dist/theme.events-Cv7N4Toe.js +2 -0
- package/dist/theme.events-Cv7N4Toe.js.map +1 -0
- package/dist/theme.events-DM4H5F2d.cjs +1 -0
- package/dist/theme.events-DM4H5F2d.cjs.map +1 -0
- package/dist/theme.interface-CXloMUCw.js +276 -0
- package/dist/theme.interface-CXloMUCw.js.map +1 -0
- package/dist/theme.interface-Da23QAYb.cjs +1 -0
- package/dist/theme.interface-Da23QAYb.cjs.map +1 -0
- package/dist/theme.js +6 -21
- package/dist/theme.service-C_tjlqgy.cjs +1 -0
- package/dist/theme.service-C_tjlqgy.cjs.map +1 -0
- package/dist/theme.service-D9lEas89.js +108 -0
- package/dist/theme.service-D9lEas89.js.map +1 -0
- package/dist/tooltip.cjs +6 -2
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.js +200 -5
- package/dist/tooltip.js.map +1 -1
- package/dist/tree.cjs +26 -2
- package/dist/tree.cjs.map +1 -1
- package/dist/tree.js +64 -4
- package/dist/tree.js.map +1 -1
- package/dist/tslib.es6-D7BIeDVB.cjs +1 -0
- package/dist/tslib.es6-D7BIeDVB.cjs.map +1 -0
- package/dist/tslib.es6-ErZEp3OO.js +7 -0
- package/dist/tslib.es6-ErZEp3OO.js.map +1 -0
- package/dist/types.cjs +1 -2
- package/dist/types.cjs.map +1 -1
- package/dist/types.js +4 -5
- package/dist/types.js.map +1 -1
- package/dist/typewriter-CCel8Nta.js +700 -0
- package/dist/typewriter-CCel8Nta.js.map +1 -0
- package/dist/typewriter-Cf9f2bdx.cjs +123 -0
- package/dist/typewriter-Cf9f2bdx.cjs.map +1 -0
- package/dist/typewriter.cjs +1 -2
- package/dist/typewriter.js +2 -5
- package/dist/typography.cjs +282 -2
- package/dist/typography.cjs.map +1 -1
- package/dist/typography.js +353 -4
- package/dist/typography.js.map +1 -1
- package/dist/utils-BcaKtQuA.cjs +1 -0
- package/dist/utils-BcaKtQuA.cjs.map +1 -0
- package/dist/utils-CoU7M2YS.js +259 -0
- package/dist/utils-CoU7M2YS.js.map +1 -0
- package/dist/utils.cjs +1 -2
- package/dist/utils.js +6 -9
- package/dist/window-B9_14c12.cjs +59 -0
- package/dist/window-B9_14c12.cjs.map +1 -0
- package/dist/window-CbgdwOZD.js +548 -0
- package/dist/window-CbgdwOZD.js.map +1 -0
- package/dist/window.cjs +1 -0
- package/dist/window.js +2 -0
- package/mixins/baseElement.ts +118 -1
- package/mixins/discovery.service.ts +162 -1
- package/mixins/formField.mixin.ts +13 -8
- package/mixins/index.ts +2 -0
- package/mixins/surface.mixin.ts +93 -0
- package/mixins/tailwind.css +331 -14
- package/package.json +32 -28
- package/src/CLAUDE.md +428 -0
- package/src/area/.excalidraw +357 -0
- package/src/area/area.component.ts +449 -0
- package/src/area/area.service.test.ts +1007 -0
- package/src/area/area.service.ts +748 -0
- package/src/area/ecrypt.ts +7 -0
- package/src/area/index.ts +7 -0
- package/src/area/lazy.ts +83 -0
- package/src/area/readme.md +338 -0
- package/src/area/route.component.ts +79 -0
- package/src/area/router-guide.md +360 -0
- package/src/area/router.types.ts +101 -0
- package/src/area/utils.ts +354 -0
- package/src/audio/emotional-sounds.ts +940 -0
- package/src/audio/index.ts +53 -0
- package/src/audio/sound.service.ts +1079 -0
- package/src/autocomplete/README.md +485 -0
- package/src/autocomplete/autocomplete.scss +24 -0
- package/src/autocomplete/autocomplete.ts +733 -0
- package/src/autocomplete/index.ts +1 -0
- package/src/avatar.ts +164 -0
- package/src/badge/badge.ts +286 -0
- package/src/badge/index.ts +1 -0
- package/src/boat/boat.ts +664 -0
- package/src/boat/index.ts +1 -0
- package/src/busy/busy.ts +39 -0
- package/src/busy/index.ts +2 -0
- package/src/busy/spinner.ts +165 -0
- package/src/button/button.ts +382 -0
- package/src/button/icon-button.ts +287 -0
- package/src/button/index.ts +2 -0
- package/src/card/actions.ts +28 -0
- package/src/card/card.ts +319 -0
- package/src/card/content.ts +24 -0
- package/src/card/index.ts +4 -0
- package/src/card/media.ts +77 -0
- package/src/charts/area-chart.ts +495 -0
- package/src/charts/index.ts +4 -0
- package/src/charts/pills.ts +350 -0
- package/src/charts/types.ts +66 -0
- package/src/charts/utils.ts +65 -0
- package/src/checkbox/checkbox.ts +122 -0
- package/src/checkbox/index.ts +1 -0
- package/src/chips/assist-chip.ts +261 -0
- package/src/chips/chips.ts +259 -0
- package/src/chips/filter-chip.ts +255 -0
- package/src/chips/index.ts +5 -0
- package/src/chips/input-chip.ts +408 -0
- package/src/chips/suggestion-chip.ts +266 -0
- package/src/code-highlight/code-highlight.ts +344 -0
- package/src/code-highlight/code-preview.ts +123 -0
- package/src/code-highlight/index.ts +3 -0
- package/src/components/form-elements/index.ts +1 -0
- package/src/components/form-elements/payment-card-form.ts +331 -0
- package/src/components/index.ts +1 -0
- package/src/connectivity/connectivity-status.ts +153 -0
- package/src/connectivity/index.ts +1 -0
- package/src/content-drawer/context.ts +13 -0
- package/src/content-drawer/drawer.service.ts +148 -0
- package/src/content-drawer/drawer.ts +183 -0
- package/src/content-drawer/index.ts +5 -0
- package/src/content-drawer/main.ts +83 -0
- package/src/content-drawer/readme.md +709 -0
- package/src/content-drawer/sheet.ts +180 -0
- package/src/date-range/date-range-dialog.ts +230 -0
- package/src/date-range/date-range-helpers.ts +135 -0
- package/src/date-range/date-range-presets.ts +220 -0
- package/src/date-range/date-range.ts +530 -0
- package/src/date-range/date-utils.ts +58 -0
- package/src/date-range/index.ts +2 -0
- package/src/date-range-inline/date-range-inline.ts +522 -0
- package/src/date-range-inline/index.ts +2 -0
- package/src/delay/delay.ts +136 -0
- package/src/delay/index.ts +1 -0
- package/src/details/details.ts +429 -0
- package/src/details/index.ts +1 -0
- package/src/dialog/dialog-base.mixin.ts +565 -0
- package/src/dialog/dialog-events.ts +17 -0
- package/src/dialog/dialog-service.ts +482 -0
- package/src/dialog/dialog.component.ts +394 -0
- package/src/dialog/index.ts +3 -0
- package/src/directives/animate-text.ts +551 -0
- package/src/directives/color.ts +41 -0
- package/src/directives/confirm-click.ts +350 -0
- package/src/directives/cursor-glow.ts +142 -0
- package/src/directives/cycle-text.ts +496 -0
- package/src/directives/depth-of-field.ts +83 -0
- package/src/directives/drag.ts +370 -0
- package/src/directives/gravity.ts +117 -0
- package/src/directives/index.ts +19 -0
- package/src/directives/intersect.ts +204 -0
- package/src/directives/layout.ts +261 -0
- package/src/directives/liquid.ts +150 -0
- package/src/directives/living-border.ts +166 -0
- package/src/directives/long-press.ts +150 -0
- package/src/directives/magnetic.ts +133 -0
- package/src/directives/nebula.ts +773 -0
- package/src/directives/reduced-motion.ts +30 -0
- package/src/directives/reveal.ts +158 -0
- package/src/directives/ripple.ts +102 -0
- package/src/directives/typewriter.ts +349 -0
- package/src/discovery/discovery.service.ts +210 -0
- package/src/discovery/index.ts +1 -0
- package/src/divider/divider.ts +100 -0
- package/src/divider/index.ts +1 -0
- package/src/dropdown/dropdown-component.ts +264 -0
- package/src/dropdown/dropdown-content.ts +108 -0
- package/src/dropdown/index.ts +2 -0
- package/src/expand/expand-root.component.ts +278 -0
- package/src/expand/expand.component.ts +287 -0
- package/src/expand/index.ts +2 -0
- package/src/extra/countries/countries.data.ts +196 -0
- package/src/extra/countries/countries.ts +107 -0
- package/src/extra/countries/index.ts +2 -0
- package/src/extra/index.ts +2 -0
- package/src/extra/timezone/index.ts +2 -0
- package/src/extra/timezone/timezone.ts +116 -0
- package/src/extra/timezone/timezones.data.ts +2546 -0
- package/src/float/float.ts +18 -0
- package/src/float/index.ts +1 -0
- package/src/form/form-v2.ts +268 -0
- package/src/form/form.ts +194 -0
- package/src/form/index.ts +2 -0
- package/src/icons/icon.ts +293 -0
- package/src/icons/index.ts +1 -0
- package/src/icons/readme.md +37 -0
- package/src/iframe/iframe.ts +98 -0
- package/src/iframe/index.ts +1 -0
- package/src/index.ts +69 -0
- package/src/input/index.ts +8 -0
- package/src/input/input.scss +211 -0
- package/src/input/input.ts +951 -0
- package/src/json/index.ts +1 -0
- package/src/json/json.ts +55 -0
- package/src/layout/flex/flex.scss +4 -0
- package/src/layout/flex/flex.ts +74 -0
- package/src/layout/flex/index.ts +1 -0
- package/src/layout/grid/.readme +79 -0
- package/src/layout/grid/grid.scss +5 -0
- package/src/layout/grid/grid.ts +121 -0
- package/src/layout/grid/index.ts +1 -0
- package/src/layout/index.ts +5 -0
- package/src/layout/layout.ts +122 -0
- package/src/layout/scroll/index.ts +1 -0
- package/src/layout/scroll/scroll.ts +351 -0
- package/src/layout/v2/flex.ts +243 -0
- package/src/layout/v2/grid.ts +93 -0
- package/src/layout/v2/index.ts +1 -0
- package/src/lightbox/flip-directive.ts +270 -0
- package/src/lightbox/index.ts +4 -0
- package/src/lightbox/lightbox-service.ts +378 -0
- package/src/lightbox/lightbox.directive.ts +256 -0
- package/src/lightbox/lightbox.ts +417 -0
- package/src/list/context.ts +3 -0
- package/src/list/index.ts +3 -0
- package/src/list/list-item.ts +94 -0
- package/src/list/list.ts +87 -0
- package/src/list/readme.md +62 -0
- package/src/mailbox/README.md +131 -0
- package/src/mailbox/email-editor.ts +1071 -0
- package/src/mailbox/email-layout-selector.ts +58 -0
- package/src/mailbox/email-recipients.ts +594 -0
- package/src/mailbox/email-template-picker.ts +296 -0
- package/src/mailbox/email-viewer.ts +715 -0
- package/src/mailbox/index.ts +31 -0
- package/src/mailbox/mailbox.ts +363 -0
- package/src/mailbox/types.ts +181 -0
- package/src/map/index.ts +1 -0
- package/src/map/map.ts +483 -0
- package/src/menu/index.ts +2 -0
- package/src/menu/menu-item.ts +26 -0
- package/src/menu/menu.ts +83 -0
- package/src/nav-drawer/$navbar.ts +51 -0
- package/src/nav-drawer/appbar.ts +26 -0
- package/src/nav-drawer/content.ts +32 -0
- package/src/nav-drawer/context.ts +6 -0
- package/src/nav-drawer/drawer.ts +128 -0
- package/src/nav-drawer/index.ts +6 -0
- package/src/nav-drawer/navbar.ts +191 -0
- package/src/navigation-bar/index.ts +2 -0
- package/src/navigation-bar/navigation-bar-item.ts +417 -0
- package/src/navigation-bar/navigation-bar.ts +482 -0
- package/src/navigation-rail/index.ts +2 -0
- package/src/navigation-rail/navigation-rail-item.ts +443 -0
- package/src/navigation-rail/navigation-rail.ts +492 -0
- package/src/notification/index.ts +6 -0
- package/src/notification/notification-service.ts +324 -0
- package/src/notification/notification.scss +117 -0
- package/src/notification/notification.ts +263 -0
- package/src/notification/notify.ts +207 -0
- package/src/notification/outlet.ts +16 -0
- package/src/option/index.ts +1 -0
- package/src/option/option.ts +180 -0
- package/src/page/index.ts +1 -0
- package/src/page/page.ts +135 -0
- package/src/progress/index.ts +1 -0
- package/src/progress/progress.ts +143 -0
- package/src/qr-scanner/index.ts +1 -0
- package/src/qr-scanner/qr-scanner.ts +240 -0
- package/src/radio-group/index.ts +2 -0
- package/src/radio-group/radio-button.ts +81 -0
- package/src/radio-group/radio-group.scss +4 -0
- package/src/radio-group/radio-group.ts +110 -0
- package/src/radio-group/readme.md +315 -0
- package/src/range/index.ts +1 -0
- package/src/range/range.ts +102 -0
- package/src/rxjs-utils/index.ts +6 -0
- package/src/rxjs-utils/mutation-observer.ts +22 -0
- package/src/rxjs-utils/waitForElement.ts +33 -0
- package/src/rxjs-utils/waitForElementAll.ts +34 -0
- package/src/rxjs-utils/waitForElements.ts +40 -0
- package/src/rxjs-utils/waitForElementsAll.ts +42 -0
- package/src/rxjs-utils/waitUntil.ts +16 -0
- package/src/select/README.md +405 -0
- package/src/select/index.ts +2 -0
- package/src/select/select.ts +766 -0
- package/src/sheet/hook.ts +40 -0
- package/src/sheet/index.ts +2 -0
- package/src/sheet/sheet.service.ts +235 -0
- package/src/sheet/sheet.ts +236 -0
- package/src/slider/index.ts +2 -0
- package/src/slider/slide.ts +107 -0
- package/src/slider/slider.ts +164 -0
- package/src/steps/index.ts +3 -0
- package/src/steps/schmancy-step.ts +213 -0
- package/src/steps/schmancy-steps-container.ts +109 -0
- package/src/steps/steps.context.ts +23 -0
- package/src/store/context-array.ts +358 -0
- package/src/store/context-collection.ts +218 -0
- package/src/store/context-create.ts +284 -0
- package/src/store/context-object.ts +298 -0
- package/src/store/filter-directive.ts +614 -0
- package/src/store/immer-integration.ts +99 -0
- package/src/store/index.ts +10 -0
- package/src/store/selector-hook.ts +259 -0
- package/src/store/selectors.ts +289 -0
- package/src/store/storage-manager.ts +269 -0
- package/src/store/store.class.ts +239 -0
- package/src/store/types.ts +327 -0
- package/src/surface/context.ts +3 -0
- package/src/surface/index.ts +1 -0
- package/src/surface/surface.styles.ts +334 -0
- package/src/surface/surface.ts +59 -0
- package/src/table/index.ts +2 -0
- package/src/table/row.ts +60 -0
- package/src/table/table.ts +266 -0
- package/src/tabs/Readme.md +397 -0
- package/src/tabs/context.ts +5 -0
- package/src/tabs/index.ts +4 -0
- package/src/tabs/tab.ts +39 -0
- package/src/tabs/tabs-compatibility.ts +20 -0
- package/src/tabs/tabs-group.ts +184 -0
- package/src/teleport/.excalidraw +2511 -0
- package/src/teleport/index.ts +2 -0
- package/src/teleport/readme.md +91 -0
- package/src/teleport/teleport.component.ts +132 -0
- package/src/teleport/teleport.service.ts +139 -0
- package/src/teleport/watcher.ts +20 -0
- package/src/textarea/index.ts +1 -0
- package/src/textarea/textarea.scss +54 -0
- package/src/textarea/textarea.ts +432 -0
- package/src/theme/context.ts +28 -0
- package/src/theme/index.ts +17 -0
- package/src/theme/theme-audio-player.ts +470 -0
- package/src/theme/theme-controller-boat.ts +49 -0
- package/src/theme/theme-controller-example.md +152 -0
- package/src/theme/theme-controller.ts +205 -0
- package/src/theme/theme.component.ts +305 -0
- package/src/theme/theme.events.ts +59 -0
- package/src/theme/theme.format.ts +417 -0
- package/src/theme/theme.interface.ts +399 -0
- package/src/theme/theme.service.ts +520 -0
- package/src/theme/theme.style.css +619 -0
- package/src/theme-button/index.ts +1 -0
- package/src/theme-button/theme-button.ts +35 -0
- package/src/tooltip/index.ts +2 -0
- package/src/tooltip/tooltip.directive.ts +277 -0
- package/src/tooltip/tooltip.ts +216 -0
- package/src/tree/README.md +59 -0
- package/src/tree/index.ts +1 -0
- package/src/tree/tree.ts +132 -0
- package/src/types/events.ts +5 -0
- package/src/types/index.ts +3 -0
- package/src/types/mood-audio.types.ts +220 -0
- package/src/types/surface.ts +52 -0
- package/src/typewriter/IMPROVEMENTS.md +174 -0
- package/src/typewriter/QUICK_REFERENCE.md +166 -0
- package/src/typewriter/index.ts +1 -0
- package/src/typewriter/test-typewriter.html +97 -0
- package/src/typewriter/typewriter.ts +376 -0
- package/src/typography/index.ts +1 -0
- package/src/typography/typography.ts +448 -0
- package/src/utils/animation.ts +418 -0
- package/src/utils/hashContent.ts +12 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/intersection.ts +22 -0
- package/src/utils/number.ts +529 -0
- package/src/utils/overlay-stack.ts +101 -0
- package/src/utils/search.ts +322 -0
- package/src/vite-env.d.ts +2 -0
- package/src/window/index.ts +10 -0
- package/src/window/window-manager.ts +204 -0
- package/src/window/window-position.ts +136 -0
- package/src/window/window-registry.ts +34 -0
- package/src/window/window.ts +724 -0
- package/types/mixins/baseElement.d.ts +12 -0
- package/types/mixins/discovery.service.d.ts +72 -0
- package/types/mixins/index.d.ts +2 -0
- package/types/mixins/surface.mixin.d.ts +39 -0
- package/types/src/area/area.service.d.ts +2 -0
- package/types/src/badge/badge.d.ts +1 -1
- package/types/src/boat/boat.d.ts +40 -33
- package/types/src/button/icon-button.d.ts +10 -0
- package/types/src/chips/filter-chip.d.ts +0 -12
- package/types/src/connectivity/connectivity-status.d.ts +25 -0
- package/types/src/connectivity/index.d.ts +1 -0
- package/types/src/content-drawer/drawer.service.d.ts +3 -0
- package/types/src/date-range/date-range.d.ts +2 -0
- package/types/src/details/details.d.ts +26 -2
- package/types/src/dialog/dialog-base.mixin.d.ts +7 -3
- package/types/src/dialog/dialog-service.d.ts +27 -1
- package/types/src/dialog/dialog.component.d.ts +35 -1
- package/types/src/directives/animate-text.d.ts +67 -0
- package/types/src/directives/color.d.ts +2 -3
- package/types/src/directives/confirm-click.d.ts +38 -0
- package/types/src/directives/cursor-glow.d.ts +38 -0
- package/types/src/directives/cycle-text.d.ts +44 -0
- package/types/src/directives/depth-of-field.d.ts +38 -0
- package/types/src/directives/drag.d.ts +8 -8
- package/types/src/directives/gravity.d.ts +40 -0
- package/types/src/directives/index.d.ts +16 -2
- package/types/src/directives/intersect.d.ts +60 -0
- package/types/src/directives/layout.d.ts +62 -0
- package/types/src/directives/liquid.d.ts +38 -0
- package/types/src/directives/living-border.d.ts +39 -0
- package/types/src/directives/long-press.d.ts +38 -0
- package/types/src/directives/magnetic.d.ts +35 -0
- package/types/src/directives/nebula.d.ts +80 -0
- package/types/src/directives/reduced-motion.d.ts +2 -0
- package/types/src/directives/reveal.d.ts +54 -0
- package/types/src/directives/ripple.d.ts +15 -5
- package/types/src/directives/typewriter.d.ts +50 -0
- package/types/src/discovery/discovery.service.d.ts +72 -0
- package/types/src/expand/expand-root.component.d.ts +30 -0
- package/types/src/expand/expand.component.d.ts +38 -0
- package/types/src/expand/index.d.ts +2 -0
- package/types/src/float/float.d.ts +14 -0
- package/types/src/float/index.d.ts +1 -0
- package/types/src/icons/icon.d.ts +14 -0
- package/types/src/iframe/iframe.d.ts +37 -0
- package/types/src/iframe/index.d.ts +1 -0
- package/types/src/index.d.ts +6 -1
- package/types/src/input/index.d.ts +1 -1
- package/types/src/layout/scroll/scroll.d.ts +11 -0
- package/types/src/lightbox/lightbox.d.ts +1 -0
- package/types/src/mailbox/email-recipients.d.ts +2 -2
- package/types/src/mailbox/types.d.ts +1 -1
- package/types/src/navigation-bar/navigation-bar.d.ts +17 -0
- package/types/src/notification/notification.d.ts +1 -0
- package/types/src/page/page.d.ts +6 -0
- package/types/src/range/index.d.ts +1 -0
- package/types/src/range/range.d.ts +25 -0
- package/types/src/sheet/sheet.d.ts +0 -1
- package/types/src/steps/schmancy-steps-container.d.ts +8 -6
- package/types/src/surface/surface.d.ts +4 -27
- package/types/src/surface/surface.styles.d.ts +31 -0
- package/types/src/tabs/tab.d.ts +1 -0
- package/types/src/textarea/textarea.d.ts +3 -2
- package/types/src/theme/context.d.ts +2 -282
- package/types/src/theme/theme.component.d.ts +9 -1
- package/types/src/theme/theme.format.d.ts +1 -1
- package/types/src/theme/theme.interface.d.ts +8 -1
- package/types/src/theme/theme.service.d.ts +20 -282
- package/types/src/types/surface.d.ts +27 -1
- package/types/src/typography/typography.d.ts +17 -3
- package/types/src/utils/animation.d.ts +254 -0
- package/types/src/utils/index.d.ts +2 -0
- package/types/src/utils/number.d.ts +18 -2
- package/types/src/utils/overlay-stack.d.ts +54 -0
- package/types/src/window/index.d.ts +3 -0
- package/types/src/window/window-manager.d.ts +49 -0
- package/types/src/window/window-position.d.ts +64 -0
- package/types/src/window/window-registry.d.ts +28 -0
- package/types/src/window/window.d.ts +67 -0
- package/ai/animated-text.md +0 -116
- package/ai/component-relationships.md +0 -93
- package/ai/context.md +0 -572
- package/ai/countries.md +0 -271
- package/ai/index.md +0 -112
- package/ai/navigation-bar-item.md +0 -259
- package/ai/payment-card-form.md +0 -242
- package/ai/spinner.md +0 -165
- package/ai/template.md +0 -144
- package/ai/timezone.md +0 -276
- package/dist/_commonjsHelpers-Dw9sPFZy.js +0 -7
- package/dist/_commonjsHelpers-Dw9sPFZy.js.map +0 -1
- package/dist/_commonjsHelpers-k2hpEU-q.cjs +0 -2
- package/dist/_commonjsHelpers-k2hpEU-q.cjs.map +0 -1
- package/dist/ai/animated-text.md +0 -116
- package/dist/ai/component-relationships.md +0 -93
- package/dist/ai/context.md +0 -572
- package/dist/ai/countries.md +0 -271
- package/dist/ai/index.md +0 -112
- package/dist/ai/navigation-bar-item.md +0 -259
- package/dist/ai/payment-card-form.md +0 -242
- package/dist/ai/spinner.md +0 -165
- package/dist/ai/template.md +0 -144
- package/dist/ai/timezone.md +0 -276
- package/dist/animated-text-B3DQRJBy.cjs +0 -37
- package/dist/animated-text-B3DQRJBy.cjs.map +0 -1
- package/dist/animated-text-BAj4-6hE.js +0 -76
- package/dist/animated-text-BAj4-6hE.js.map +0 -1
- package/dist/animated-text.cjs +0 -2
- package/dist/animated-text.cjs.map +0 -1
- package/dist/animated-text.js +0 -2
- package/dist/animated-text.js.map +0 -1
- package/dist/area.cjs.map +0 -1
- package/dist/area.component-CP4DZ0d8.js +0 -330
- package/dist/area.component-CP4DZ0d8.js.map +0 -1
- package/dist/area.component-ChxSLt16.cjs +0 -12
- package/dist/area.component-ChxSLt16.cjs.map +0 -1
- package/dist/area.js.map +0 -1
- package/dist/audio.cjs.map +0 -1
- package/dist/audio.js.map +0 -1
- package/dist/autocomplete-CAaVSg4g.cjs +0 -112
- package/dist/autocomplete-CAaVSg4g.cjs.map +0 -1
- package/dist/autocomplete-CGbACUYd.js +0 -333
- package/dist/autocomplete-CGbACUYd.js.map +0 -1
- package/dist/autocomplete.cjs.map +0 -1
- package/dist/autocomplete.js.map +0 -1
- package/dist/avatar-nWOZXEsW.cjs +0 -273
- package/dist/avatar-nWOZXEsW.cjs.map +0 -1
- package/dist/avatar-rLCF6MSI.js +0 -895
- package/dist/avatar-rLCF6MSI.js.map +0 -1
- package/dist/badge.cjs.map +0 -1
- package/dist/badge.js.map +0 -1
- package/dist/boat-Ckt9v__d.js +0 -301
- package/dist/boat-Ckt9v__d.js.map +0 -1
- package/dist/boat-yNAZ2LLB.cjs +0 -97
- package/dist/boat-yNAZ2LLB.cjs.map +0 -1
- package/dist/boat.cjs.map +0 -1
- package/dist/boat.js.map +0 -1
- package/dist/busy.cjs.map +0 -1
- package/dist/busy.js.map +0 -1
- package/dist/card.cjs.map +0 -1
- package/dist/card.js.map +0 -1
- package/dist/checkbox-BnAlpsJN.cjs +0 -40
- package/dist/checkbox-BnAlpsJN.cjs.map +0 -1
- package/dist/checkbox-D22yfGe3.js +0 -526
- package/dist/checkbox-D22yfGe3.js.map +0 -1
- package/dist/checkbox.cjs.map +0 -1
- package/dist/checkbox.js.map +0 -1
- package/dist/chips.cjs.map +0 -1
- package/dist/chips.js.map +0 -1
- package/dist/code-highlight.cjs.map +0 -1
- package/dist/code-highlight.js.map +0 -1
- package/dist/code-preview-DPlQayFd.js +0 -967
- package/dist/code-preview-DPlQayFd.js.map +0 -1
- package/dist/code-preview-jPnX60FF.cjs +0 -193
- package/dist/code-preview-jPnX60FF.cjs.map +0 -1
- package/dist/components.cjs.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/consume-5D1qfVWM.js +0 -38
- package/dist/consume-5D1qfVWM.js.map +0 -1
- package/dist/consume-edta5ng5.cjs +0 -2
- package/dist/consume-edta5ng5.cjs.map +0 -1
- package/dist/content-drawer.cjs.map +0 -1
- package/dist/content-drawer.js.map +0 -1
- package/dist/context-create-B_S-sD5B.js +0 -1107
- package/dist/context-create-B_S-sD5B.js.map +0 -1
- package/dist/context-create-DTybDbZp.cjs +0 -2
- package/dist/context-create-DTybDbZp.cjs.map +0 -1
- package/dist/date-range-GFm5NG33.js +0 -639
- package/dist/date-range-GFm5NG33.js.map +0 -1
- package/dist/date-range-inline-CgX2o0FP.cjs +0 -44
- package/dist/date-range-inline-CgX2o0FP.cjs.map +0 -1
- package/dist/date-range-inline-DTQLESAZ.js +0 -197
- package/dist/date-range-inline-DTQLESAZ.js.map +0 -1
- package/dist/date-range-inline.cjs.map +0 -1
- package/dist/date-range-inline.js.map +0 -1
- package/dist/date-range-ug3B9CFT.cjs +0 -119
- package/dist/date-range-ug3B9CFT.cjs.map +0 -1
- package/dist/date-range.cjs.map +0 -1
- package/dist/date-range.js.map +0 -1
- package/dist/delay-CWtBL0VD.cjs +0 -10
- package/dist/delay-CWtBL0VD.cjs.map +0 -1
- package/dist/delay-DEe1CmHc.js +0 -288
- package/dist/delay-DEe1CmHc.js.map +0 -1
- package/dist/delay.cjs.map +0 -1
- package/dist/delay.js.map +0 -1
- package/dist/details-D-LXW23W.js +0 -100
- package/dist/details-D-LXW23W.js.map +0 -1
- package/dist/details-DVke77dU.cjs +0 -55
- package/dist/details-DVke77dU.cjs.map +0 -1
- package/dist/details.cjs.map +0 -1
- package/dist/details.js.map +0 -1
- package/dist/dialog-service-C86xTS8q.cjs +0 -2
- package/dist/dialog-service-C86xTS8q.cjs.map +0 -1
- package/dist/dialog-service-D9E3jLAR.js +0 -118
- package/dist/dialog-service-D9E3jLAR.js.map +0 -1
- package/dist/dialog.component-BM0D-hK9.cjs +0 -48
- package/dist/dialog.component-BM0D-hK9.cjs.map +0 -1
- package/dist/dialog.component-a7FlKhGD.js +0 -145
- package/dist/dialog.component-a7FlKhGD.js.map +0 -1
- package/dist/discovery.service-BbYjU5x8.js +0 -21
- package/dist/discovery.service-BbYjU5x8.js.map +0 -1
- package/dist/discovery.service-BpGCuXPd.cjs +0 -2
- package/dist/discovery.service-BpGCuXPd.cjs.map +0 -1
- package/dist/divider-CzTpxOqt.js +0 -84
- package/dist/divider-CzTpxOqt.js.map +0 -1
- package/dist/divider-D8KStUhN.cjs +0 -58
- package/dist/divider-D8KStUhN.cjs.map +0 -1
- package/dist/divider.cjs.map +0 -1
- package/dist/divider.js.map +0 -1
- package/dist/dropdown-content-CngZN3vv.cjs +0 -58
- package/dist/dropdown-content-CngZN3vv.cjs.map +0 -1
- package/dist/dropdown-content-DCn-g0-f.js +0 -147
- package/dist/dropdown-content-DCn-g0-f.js.map +0 -1
- package/dist/email-recipients-BhntMZMf.cjs +0 -1173
- package/dist/email-recipients-BhntMZMf.cjs.map +0 -1
- package/dist/email-recipients-BzjAKNJ0.js +0 -1733
- package/dist/email-recipients-BzjAKNJ0.js.map +0 -1
- package/dist/emotional-sounds-BRnFhww6.js +0 -234
- package/dist/emotional-sounds-BRnFhww6.js.map +0 -1
- package/dist/emotional-sounds-DVGhmoZf.cjs +0 -2
- package/dist/emotional-sounds-DVGhmoZf.cjs.map +0 -1
- package/dist/extra.cjs.map +0 -1
- package/dist/extra.js.map +0 -1
- package/dist/flex-5dR48zie.js +0 -183
- package/dist/flex-5dR48zie.js.map +0 -1
- package/dist/flex-oHl2EfYB.cjs +0 -18
- package/dist/flex-oHl2EfYB.cjs.map +0 -1
- package/dist/flow-D0e7hGXO.cjs +0 -2
- package/dist/flow-D0e7hGXO.cjs.map +0 -1
- package/dist/flow-DXYqC9OA.js +0 -340
- package/dist/flow-DXYqC9OA.js.map +0 -1
- package/dist/form-BlPiAPt7.cjs +0 -2
- package/dist/form-BlPiAPt7.cjs.map +0 -1
- package/dist/form-BxVM6JTn.js +0 -141
- package/dist/form-BxVM6JTn.js.map +0 -1
- package/dist/form.cjs.map +0 -1
- package/dist/form.js.map +0 -1
- package/dist/formField.mixin-BCGA7Ea3.js +0 -48
- package/dist/formField.mixin-BCGA7Ea3.js.map +0 -1
- package/dist/formField.mixin-BfJMifU9.cjs +0 -2
- package/dist/formField.mixin-BfJMifU9.cjs.map +0 -1
- package/dist/height-CfECBO2j.js +0 -44
- package/dist/height-CfECBO2j.js.map +0 -1
- package/dist/height-Z70qJYJK.cjs +0 -2
- package/dist/height-Z70qJYJK.cjs.map +0 -1
- package/dist/icon-DHEXr3c-.cjs +0 -49
- package/dist/icon-DHEXr3c-.cjs.map +0 -1
- package/dist/icon-DYpLoegR.js +0 -84
- package/dist/icon-DYpLoegR.js.map +0 -1
- package/dist/icon-button-CmZBLHWC.js +0 -164
- package/dist/icon-button-CmZBLHWC.js.map +0 -1
- package/dist/icon-button-IbSX8C98.cjs +0 -70
- package/dist/icon-button-IbSX8C98.cjs.map +0 -1
- package/dist/icons.cjs.map +0 -1
- package/dist/icons.js.map +0 -1
- package/dist/index-CCi1otmh.cjs +0 -2
- package/dist/index-CCi1otmh.cjs.map +0 -1
- package/dist/index-CW6PhEkx.js +0 -17
- package/dist/index-CW6PhEkx.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/input-BByjYlgl.cjs +0 -51
- package/dist/input-BByjYlgl.cjs.map +0 -1
- package/dist/input-D0cQ9DOY.js +0 -237
- package/dist/input-D0cQ9DOY.js.map +0 -1
- package/dist/input-chip-B5ErXgCB.js +0 -206
- package/dist/input-chip-B5ErXgCB.js.map +0 -1
- package/dist/input-chip-DkWaTciP.cjs +0 -147
- package/dist/input-chip-DkWaTciP.cjs.map +0 -1
- package/dist/input.cjs.map +0 -1
- package/dist/input.js.map +0 -1
- package/dist/intersection-CJxzz8c-.js +0 -15
- package/dist/intersection-CJxzz8c-.js.map +0 -1
- package/dist/intersection-CVvaDv96.cjs +0 -2
- package/dist/intersection-CVvaDv96.cjs.map +0 -1
- package/dist/json-BZVe74np.cjs +0 -12
- package/dist/json-BZVe74np.cjs.map +0 -1
- package/dist/json-PKewOWuJ.js +0 -51
- package/dist/json-PKewOWuJ.js.map +0 -1
- package/dist/layout.cjs.map +0 -1
- package/dist/layout.js.map +0 -1
- package/dist/lightbox-service-D-0JtxB1.cjs +0 -202
- package/dist/lightbox-service-D-0JtxB1.cjs.map +0 -1
- package/dist/lightbox-service-DZMnb1eU.js +0 -458
- package/dist/lightbox-service-DZMnb1eU.js.map +0 -1
- package/dist/lightbox.cjs.map +0 -1
- package/dist/lightbox.js.map +0 -1
- package/dist/list-B_2m7l3g.cjs +0 -17
- package/dist/list-B_2m7l3g.cjs.map +0 -1
- package/dist/list-CW56LV-v.js +0 -69
- package/dist/list-CW56LV-v.js.map +0 -1
- package/dist/list.cjs.map +0 -1
- package/dist/list.js.map +0 -1
- package/dist/litElement.mixin-CrpeGpZ7.cjs +0 -2
- package/dist/litElement.mixin-CrpeGpZ7.cjs.map +0 -1
- package/dist/litElement.mixin-DHZXtvYq.js +0 -15
- package/dist/litElement.mixin-DHZXtvYq.js.map +0 -1
- package/dist/mailbox.cjs.map +0 -1
- package/dist/mailbox.js.map +0 -1
- package/dist/map-2Hl60a0A.js +0 -175
- package/dist/map-2Hl60a0A.js.map +0 -1
- package/dist/map-DyPS9G7M.cjs +0 -81
- package/dist/map-DyPS9G7M.cjs.map +0 -1
- package/dist/map.cjs.map +0 -1
- package/dist/map.js.map +0 -1
- package/dist/media-CS8HpKnK.cjs +0 -152
- package/dist/media-CS8HpKnK.cjs.map +0 -1
- package/dist/media-DtWbcRxL.js +0 -244
- package/dist/media-DtWbcRxL.js.map +0 -1
- package/dist/menu-Caju5-zd.js +0 -60
- package/dist/menu-Caju5-zd.js.map +0 -1
- package/dist/menu-rX5RPAI2.cjs +0 -24
- package/dist/menu-rX5RPAI2.cjs.map +0 -1
- package/dist/menu.cjs.map +0 -1
- package/dist/menu.js.map +0 -1
- package/dist/nav-drawer.cjs.map +0 -1
- package/dist/nav-drawer.js.map +0 -1
- package/dist/navigation-bar.cjs.map +0 -1
- package/dist/navigation-bar.js.map +0 -1
- package/dist/navigation-rail-Ctketq5a.js +0 -256
- package/dist/navigation-rail-Ctketq5a.js.map +0 -1
- package/dist/navigation-rail-DC9_oSIM.cjs +0 -79
- package/dist/navigation-rail-DC9_oSIM.cjs.map +0 -1
- package/dist/notification-service-CUlfXqmj.js +0 -155
- package/dist/notification-service-CUlfXqmj.js.map +0 -1
- package/dist/notification-service-DknbpqTt.cjs +0 -19
- package/dist/notification-service-DknbpqTt.cjs.map +0 -1
- package/dist/notification.cjs.map +0 -1
- package/dist/notification.js.map +0 -1
- package/dist/notify-DJSOWTxv.js +0 -35
- package/dist/notify-DJSOWTxv.js.map +0 -1
- package/dist/notify-DickIEHW.cjs +0 -2
- package/dist/notify-DickIEHW.cjs.map +0 -1
- package/dist/number-B7aCRYnH.cjs +0 -2
- package/dist/number-B7aCRYnH.cjs.map +0 -1
- package/dist/number-BhTiptLA.js +0 -99
- package/dist/number-BhTiptLA.js.map +0 -1
- package/dist/option-Bng41-rY.js +0 -77
- package/dist/option-Bng41-rY.js.map +0 -1
- package/dist/option-DYT5Rkgy.cjs +0 -44
- package/dist/option-DYT5Rkgy.cjs.map +0 -1
- package/dist/option.cjs.map +0 -1
- package/dist/option.js.map +0 -1
- package/dist/page-BLn9gtSd.cjs +0 -20
- package/dist/page-BLn9gtSd.cjs.map +0 -1
- package/dist/page-D-ROcQDd.js +0 -48
- package/dist/page-D-ROcQDd.js.map +0 -1
- package/dist/payment-card-form-5UtfWzoW.cjs +0 -74
- package/dist/payment-card-form-5UtfWzoW.cjs.map +0 -1
- package/dist/payment-card-form-BJa4RgF2.js +0 -515
- package/dist/payment-card-form-BJa4RgF2.js.map +0 -1
- package/dist/pills-BS5rZ6C3.js +0 -346
- package/dist/pills-BS5rZ6C3.js.map +0 -1
- package/dist/pills-Blf7IAeq.cjs +0 -113
- package/dist/pills-Blf7IAeq.cjs.map +0 -1
- package/dist/progress-DlhYniW_.cjs +0 -35
- package/dist/progress-DlhYniW_.cjs.map +0 -1
- package/dist/progress-yTIX6EqC.js +0 -56
- package/dist/progress-yTIX6EqC.js.map +0 -1
- package/dist/progress.cjs.map +0 -1
- package/dist/progress.js.map +0 -1
- package/dist/provide-BxZ2kn_p.cjs +0 -2
- package/dist/provide-BxZ2kn_p.cjs.map +0 -1
- package/dist/provide-tcktw8xB.js +0 -100
- package/dist/provide-tcktw8xB.js.map +0 -1
- package/dist/qr-scanner-DOs7uNS_.cjs +0 -29
- package/dist/qr-scanner-DOs7uNS_.cjs.map +0 -1
- package/dist/qr-scanner-DjZ8mgHV.js +0 -743
- package/dist/qr-scanner-DjZ8mgHV.js.map +0 -1
- package/dist/radio-button-N_PrrxKB.cjs +0 -41
- package/dist/radio-button-N_PrrxKB.cjs.map +0 -1
- package/dist/radio-button-me3SRHGu.js +0 -115
- package/dist/radio-button-me3SRHGu.js.map +0 -1
- package/dist/radio-group.cjs.map +0 -1
- package/dist/radio-group.js.map +0 -1
- package/dist/ripple-BgJXbNSP.js +0 -124
- package/dist/ripple-BgJXbNSP.js.map +0 -1
- package/dist/ripple-x6sTX02K.cjs +0 -16
- package/dist/ripple-x6sTX02K.cjs.map +0 -1
- package/dist/rxjs-utils.cjs.map +0 -1
- package/dist/rxjs-utils.js.map +0 -1
- package/dist/schmancy-steps-container-J6P-NNNj.js +0 -156
- package/dist/schmancy-steps-container-J6P-NNNj.js.map +0 -1
- package/dist/schmancy-steps-container-T57BKMzi.cjs +0 -70
- package/dist/schmancy-steps-container-T57BKMzi.cjs.map +0 -1
- package/dist/scroll-C_gfUgjn.js +0 -87
- package/dist/scroll-C_gfUgjn.js.map +0 -1
- package/dist/scroll-CecsowP7.cjs +0 -27
- package/dist/scroll-CecsowP7.cjs.map +0 -1
- package/dist/search-B1s7thB0.cjs +0 -2
- package/dist/search-B1s7thB0.cjs.map +0 -1
- package/dist/search-DxxnLa5u.js +0 -95
- package/dist/search-DxxnLa5u.js.map +0 -1
- package/dist/select-BBA0gBHf.js +0 -280
- package/dist/select-BBA0gBHf.js.map +0 -1
- package/dist/select-D9oCjv7N.cjs +0 -57
- package/dist/select-D9oCjv7N.cjs.map +0 -1
- package/dist/select.cjs.map +0 -1
- package/dist/select.js.map +0 -1
- package/dist/selector-hook-9w2auh2O.cjs +0 -2
- package/dist/selector-hook-9w2auh2O.cjs.map +0 -1
- package/dist/selector-hook-CHV4kDMd.js +0 -319
- package/dist/selector-hook-CHV4kDMd.js.map +0 -1
- package/dist/sheet-0oUfBmXX.cjs +0 -15
- package/dist/sheet-0oUfBmXX.cjs.map +0 -1
- package/dist/sheet-CNcDT3VP.js +0 -97
- package/dist/sheet-CNcDT3VP.js.map +0 -1
- package/dist/sheet.cjs.map +0 -1
- package/dist/sheet.js.map +0 -1
- package/dist/sheet.service-2MobB-9z.js +0 -68
- package/dist/sheet.service-2MobB-9z.js.map +0 -1
- package/dist/sheet.service-su_7yDQ-.cjs +0 -2
- package/dist/sheet.service-su_7yDQ-.cjs.map +0 -1
- package/dist/slider-CV-Ehp_5.cjs +0 -83
- package/dist/slider-CV-Ehp_5.cjs.map +0 -1
- package/dist/slider-CkE-iFUy.js +0 -161
- package/dist/slider-CkE-iFUy.js.map +0 -1
- package/dist/sound.service-Nza4c6wv.js +0 -102
- package/dist/sound.service-Nza4c6wv.js.map +0 -1
- package/dist/sound.service-eRirZw59.cjs +0 -2
- package/dist/sound.service-eRirZw59.cjs.map +0 -1
- package/dist/spinner-Bfn8KC-9.cjs +0 -135
- package/dist/spinner-Bfn8KC-9.cjs.map +0 -1
- package/dist/spinner-DiMbWXp9.js +0 -168
- package/dist/spinner-DiMbWXp9.js.map +0 -1
- package/dist/store.cjs.map +0 -1
- package/dist/store.js.map +0 -1
- package/dist/suggestion-chip-CEDqUNoS.js +0 -481
- package/dist/suggestion-chip-CEDqUNoS.js.map +0 -1
- package/dist/suggestion-chip-HhsLtZXR.cjs +0 -271
- package/dist/suggestion-chip-HhsLtZXR.cjs.map +0 -1
- package/dist/surface-CW3H23Va.cjs +0 -199
- package/dist/surface-CW3H23Va.cjs.map +0 -1
- package/dist/surface-eBfnSwQS.js +0 -220
- package/dist/surface-eBfnSwQS.js.map +0 -1
- package/dist/surface.cjs.map +0 -1
- package/dist/surface.js.map +0 -1
- package/dist/table-D0tiSL_u.cjs +0 -64
- package/dist/table-D0tiSL_u.cjs.map +0 -1
- package/dist/table-Dmo4TvTx.js +0 -561
- package/dist/table-Dmo4TvTx.js.map +0 -1
- package/dist/table.cjs.map +0 -1
- package/dist/table.js.map +0 -1
- package/dist/tabs-compatibility-Bit6y6en.js +0 -104
- package/dist/tabs-compatibility-Bit6y6en.js.map +0 -1
- package/dist/tabs-compatibility-Vq_2-ekz.cjs +0 -35
- package/dist/tabs-compatibility-Vq_2-ekz.cjs.map +0 -1
- package/dist/tabs.cjs.map +0 -1
- package/dist/tabs.js.map +0 -1
- package/dist/tailwind.mixin-Bp_PR6yc.js +0 -67
- package/dist/tailwind.mixin-Bp_PR6yc.js.map +0 -1
- package/dist/tailwind.mixin-Cp4PyXok.cjs +0 -2
- package/dist/tailwind.mixin-Cp4PyXok.cjs.map +0 -1
- package/dist/teleport.cjs.map +0 -1
- package/dist/teleport.js.map +0 -1
- package/dist/textarea-B1d1QCqT.js +0 -134
- package/dist/textarea-B1d1QCqT.js.map +0 -1
- package/dist/textarea-DG8CHhZA.cjs +0 -44
- package/dist/textarea-DG8CHhZA.cjs.map +0 -1
- package/dist/textarea.cjs.map +0 -1
- package/dist/textarea.js.map +0 -1
- package/dist/theme-button-CPL6Eaqd.cjs +0 -9
- package/dist/theme-button-CPL6Eaqd.cjs.map +0 -1
- package/dist/theme-button-CrLuMQNe.js +0 -27
- package/dist/theme-button-CrLuMQNe.js.map +0 -1
- package/dist/theme-button.cjs.map +0 -1
- package/dist/theme-button.js.map +0 -1
- package/dist/theme-controller-boat-CXbNJSI3.cjs +0 -178
- package/dist/theme-controller-boat-CXbNJSI3.cjs.map +0 -1
- package/dist/theme-controller-boat-CzSmjyKq.js +0 -1159
- package/dist/theme-controller-boat-CzSmjyKq.js.map +0 -1
- package/dist/theme.cjs.map +0 -1
- package/dist/theme.events-CPSLaOlR.js +0 -6
- package/dist/theme.events-CPSLaOlR.js.map +0 -1
- package/dist/theme.events-Car6U_SQ.cjs +0 -2
- package/dist/theme.events-Car6U_SQ.cjs.map +0 -1
- package/dist/theme.interface-BLfE5J_1.js +0 -5
- package/dist/theme.interface-BLfE5J_1.js.map +0 -1
- package/dist/theme.interface-BMeNadVb.cjs +0 -2
- package/dist/theme.interface-BMeNadVb.cjs.map +0 -1
- package/dist/theme.js.map +0 -1
- package/dist/timezone-4vwX0BgA.js +0 -112
- package/dist/timezone-4vwX0BgA.js.map +0 -1
- package/dist/timezone-BxvQcqe1.cjs +0 -32
- package/dist/timezone-BxvQcqe1.cjs.map +0 -1
- package/dist/tooltip-CjdvBf4X.js +0 -119
- package/dist/tooltip-CjdvBf4X.js.map +0 -1
- package/dist/tooltip-ZtnGjoJd.cjs +0 -7
- package/dist/tooltip-ZtnGjoJd.cjs.map +0 -1
- package/dist/tree-CBEjV7jP.js +0 -65
- package/dist/tree-CBEjV7jP.js.map +0 -1
- package/dist/tree-DP5U00NA.cjs +0 -27
- package/dist/tree-DP5U00NA.cjs.map +0 -1
- package/dist/tslib.es6-DgOcxv4s.cjs +0 -2
- package/dist/tslib.es6-DgOcxv4s.cjs.map +0 -1
- package/dist/tslib.es6-ujVQHAQ4.js +0 -10
- package/dist/tslib.es6-ujVQHAQ4.js.map +0 -1
- package/dist/typewriter-C6kFjLcX.cjs +0 -124
- package/dist/typewriter-C6kFjLcX.cjs.map +0 -1
- package/dist/typewriter-Eo5qXoGC.js +0 -555
- package/dist/typewriter-Eo5qXoGC.js.map +0 -1
- package/dist/typewriter.cjs.map +0 -1
- package/dist/typewriter.js.map +0 -1
- package/dist/typography-C_1gdM2I.js +0 -264
- package/dist/typography-C_1gdM2I.js.map +0 -1
- package/dist/typography-DGyjlLCE.cjs +0 -243
- package/dist/typography-DGyjlLCE.cjs.map +0 -1
- package/dist/utils-C38P63L6.cjs +0 -2
- package/dist/utils-C38P63L6.cjs.map +0 -1
- package/dist/utils-CYOVFxSx.js +0 -150
- package/dist/utils-CYOVFxSx.js.map +0 -1
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.js.map +0 -1
- package/types/src/animated-text/animated-text.d.ts +0 -30
- package/types/src/animated-text/index.d.ts +0 -1
- package/types/src/directives/height.d.ts +0 -20
|
@@ -0,0 +1,4121 @@
|
|
|
1
|
+
import { a as e, i as t } from "./tailwind.mixin-BIVhjNvD.js";
|
|
2
|
+
import { t as n } from "./provide-8MrDz_qX.js";
|
|
3
|
+
import { t as r } from "./litElement.mixin-Dm-4L8zL.js";
|
|
4
|
+
import "./mixins.js";
|
|
5
|
+
import { n as i } from "./sound.service-m3BrSfuH.js";
|
|
6
|
+
import { n as a, t as o } from "./theme.events-Cv7N4Toe.js";
|
|
7
|
+
import "./theme.service-D9lEas89.js";
|
|
8
|
+
import "./theme.interface-CXloMUCw.js";
|
|
9
|
+
import { Observable as s, Subject as c, debounceTime as l, fromEvent as u, of as d, switchMap as f, takeUntil as p, tap as m } from "rxjs";
|
|
10
|
+
import { customElement as h, property as g, state as _ } from "lit/decorators.js";
|
|
11
|
+
import { css as v, html as y, unsafeCSS as b } from "lit";
|
|
12
|
+
import { when as x } from "lit/directives/when.js";
|
|
13
|
+
function S(e) {
|
|
14
|
+
return e < 0 ? -1 : e === 0 ? 0 : 1;
|
|
15
|
+
}
|
|
16
|
+
function C(e, t, n) {
|
|
17
|
+
return (1 - n) * e + n * t;
|
|
18
|
+
}
|
|
19
|
+
function w(e, t, n) {
|
|
20
|
+
return n < e ? e : n > t ? t : n;
|
|
21
|
+
}
|
|
22
|
+
function T(e) {
|
|
23
|
+
return (e %= 360) < 0 && (e += 360), e;
|
|
24
|
+
}
|
|
25
|
+
function E(e) {
|
|
26
|
+
return (e %= 360) < 0 && (e += 360), e;
|
|
27
|
+
}
|
|
28
|
+
function ee(e, t) {
|
|
29
|
+
return 180 - Math.abs(Math.abs(e - t) - 180);
|
|
30
|
+
}
|
|
31
|
+
function te(e, t) {
|
|
32
|
+
return [
|
|
33
|
+
e[0] * t[0][0] + e[1] * t[0][1] + e[2] * t[0][2],
|
|
34
|
+
e[0] * t[1][0] + e[1] * t[1][1] + e[2] * t[1][2],
|
|
35
|
+
e[0] * t[2][0] + e[1] * t[2][1] + e[2] * t[2][2]
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
var D = [
|
|
39
|
+
[
|
|
40
|
+
.41233895,
|
|
41
|
+
.35762064,
|
|
42
|
+
.18051042
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
.2126,
|
|
46
|
+
.7152,
|
|
47
|
+
.0722
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
.01932141,
|
|
51
|
+
.11916382,
|
|
52
|
+
.95034478
|
|
53
|
+
]
|
|
54
|
+
], ne = [
|
|
55
|
+
[
|
|
56
|
+
3.2413774792388685,
|
|
57
|
+
-1.5376652402851851,
|
|
58
|
+
-.49885366846268053
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
-.9691452513005321,
|
|
62
|
+
1.8758853451067872,
|
|
63
|
+
.04156585616912061
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
.05562093689691305,
|
|
67
|
+
-.20395524564742123,
|
|
68
|
+
1.0571799111220335
|
|
69
|
+
]
|
|
70
|
+
], O = [
|
|
71
|
+
95.047,
|
|
72
|
+
100,
|
|
73
|
+
108.883
|
|
74
|
+
];
|
|
75
|
+
function re(e, t, n) {
|
|
76
|
+
return (255 << 24 | (255 & e) << 16 | (255 & t) << 8 | 255 & n) >>> 0;
|
|
77
|
+
}
|
|
78
|
+
function ie(e) {
|
|
79
|
+
return re(ue(e[0]), ue(e[1]), ue(e[2]));
|
|
80
|
+
}
|
|
81
|
+
function ae(e) {
|
|
82
|
+
return e >> 16 & 255;
|
|
83
|
+
}
|
|
84
|
+
function oe(e) {
|
|
85
|
+
return e >> 8 & 255;
|
|
86
|
+
}
|
|
87
|
+
function se(e) {
|
|
88
|
+
return 255 & e;
|
|
89
|
+
}
|
|
90
|
+
function ce(e) {
|
|
91
|
+
let t = function(e) {
|
|
92
|
+
return te([
|
|
93
|
+
A(ae(e)),
|
|
94
|
+
A(oe(e)),
|
|
95
|
+
A(se(e))
|
|
96
|
+
], D);
|
|
97
|
+
}(e)[1];
|
|
98
|
+
return 116 * de(t / 100) - 16;
|
|
99
|
+
}
|
|
100
|
+
function k(e) {
|
|
101
|
+
return 100 * function(e) {
|
|
102
|
+
let t = e * e * e;
|
|
103
|
+
return t > .008856451679035631 ? t : (116 * e - 16) / 903.2962962962963;
|
|
104
|
+
}((e + 16) / 116);
|
|
105
|
+
}
|
|
106
|
+
function le(e) {
|
|
107
|
+
return 116 * de(e / 100) - 16;
|
|
108
|
+
}
|
|
109
|
+
function A(e) {
|
|
110
|
+
let t = e / 255;
|
|
111
|
+
return t <= .040449936 ? t / 12.92 * 100 : 100 * ((t + .055) / 1.055) ** 2.4;
|
|
112
|
+
}
|
|
113
|
+
function ue(e) {
|
|
114
|
+
let t = e / 100, n = 0;
|
|
115
|
+
return n = t <= .0031308 ? 12.92 * t : 1.055 * t ** (1 / 2.4) - .055, r = 0, i = 255, (a = Math.round(255 * n)) < r ? r : a > i ? i : a;
|
|
116
|
+
var r, i, a;
|
|
117
|
+
}
|
|
118
|
+
function de(e) {
|
|
119
|
+
return e > 216 / 24389 ? e ** (1 / 3) : (24389 / 27 * e + 16) / 116;
|
|
120
|
+
}
|
|
121
|
+
var j = class e {
|
|
122
|
+
static make(t = function() {
|
|
123
|
+
return O;
|
|
124
|
+
}(), n = 200 / Math.PI * k(50) / 100, r = 50, i = 2, a = !1) {
|
|
125
|
+
let o = t, s = .401288 * o[0] + .650173 * o[1] + -.051461 * o[2], c = -.250268 * o[0] + 1.204414 * o[1] + .045854 * o[2], l = -.002079 * o[0] + .048952 * o[1] + .953127 * o[2], u = .8 + i / 10, d = u >= .9 ? C(.59, .69, 10 * (u - .9)) : C(.525, .59, 10 * (u - .8)), f = a ? 1 : u * (1 - 1 / 3.6 * Math.exp((-n - 42) / 92));
|
|
126
|
+
f = f > 1 ? 1 : f < 0 ? 0 : f;
|
|
127
|
+
let p = u, m = [
|
|
128
|
+
100 / s * f + 1 - f,
|
|
129
|
+
100 / c * f + 1 - f,
|
|
130
|
+
100 / l * f + 1 - f
|
|
131
|
+
], h = 1 / (5 * n + 1), g = h * h * h * h, _ = 1 - g, v = g * n + .1 * _ * _ * Math.cbrt(5 * n), y = k(r) / t[1], b = 1.48 + Math.sqrt(y), x = .725 / y ** .2, S = x, w = [
|
|
132
|
+
(v * m[0] * s / 100) ** .42,
|
|
133
|
+
(v * m[1] * c / 100) ** .42,
|
|
134
|
+
(v * m[2] * l / 100) ** .42
|
|
135
|
+
], T = [
|
|
136
|
+
400 * w[0] / (w[0] + 27.13),
|
|
137
|
+
400 * w[1] / (w[1] + 27.13),
|
|
138
|
+
400 * w[2] / (w[2] + 27.13)
|
|
139
|
+
];
|
|
140
|
+
return new e(y, (2 * T[0] + T[1] + .05 * T[2]) * x, x, S, d, p, m, v, v ** .25, b);
|
|
141
|
+
}
|
|
142
|
+
constructor(e, t, n, r, i, a, o, s, c, l) {
|
|
143
|
+
this.n = e, this.aw = t, this.nbb = n, this.ncb = r, this.c = i, this.nc = a, this.rgbD = o, this.fl = s, this.fLRoot = c, this.z = l;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
j.DEFAULT = j.make();
|
|
147
|
+
var M = class e {
|
|
148
|
+
constructor(e, t, n, r, i, a, o, s, c) {
|
|
149
|
+
this.hue = e, this.chroma = t, this.j = n, this.q = r, this.m = i, this.s = a, this.jstar = o, this.astar = s, this.bstar = c;
|
|
150
|
+
}
|
|
151
|
+
distance(e) {
|
|
152
|
+
let t = this.jstar - e.jstar, n = this.astar - e.astar, r = this.bstar - e.bstar;
|
|
153
|
+
return 1.41 * Math.sqrt(t * t + n * n + r * r) ** .63;
|
|
154
|
+
}
|
|
155
|
+
static fromInt(t) {
|
|
156
|
+
return e.fromIntInViewingConditions(t, j.DEFAULT);
|
|
157
|
+
}
|
|
158
|
+
static fromIntInViewingConditions(t, n) {
|
|
159
|
+
let r = (65280 & t) >> 8, i = 255 & t, a = A((16711680 & t) >> 16), o = A(r), s = A(i), c = .41233895 * a + .35762064 * o + .18051042 * s, l = .2126 * a + .7152 * o + .0722 * s, u = .01932141 * a + .11916382 * o + .95034478 * s, d = .401288 * c + .650173 * l - .051461 * u, f = -.250268 * c + 1.204414 * l + .045854 * u, p = -.002079 * c + .048952 * l + .953127 * u, m = n.rgbD[0] * d, h = n.rgbD[1] * f, g = n.rgbD[2] * p, _ = (n.fl * Math.abs(m) / 100) ** .42, v = (n.fl * Math.abs(h) / 100) ** .42, y = (n.fl * Math.abs(g) / 100) ** .42, b = 400 * S(m) * _ / (_ + 27.13), x = 400 * S(h) * v / (v + 27.13), C = 400 * S(g) * y / (y + 27.13), w = (11 * b + -12 * x + C) / 11, T = (b + x - 2 * C) / 9, ee = (20 * b + 20 * x + 21 * C) / 20, te = (40 * b + 20 * x + C) / 20, D = E(180 * Math.atan2(T, w) / Math.PI), ne = D * Math.PI / 180, O = 100 * (te * n.nbb / n.aw) ** +(n.c * n.z), re = 4 / n.c * Math.sqrt(O / 100) * (n.aw + 4) * n.fLRoot, ie = D < 20.14 ? D + 360 : D, ae = (5e4 / 13 * (.25 * (Math.cos(ie * Math.PI / 180 + 2) + 3.8)) * n.nc * n.ncb * Math.sqrt(w * w + T * T) / (ee + .305)) ** .9 * (1.64 - .29 ** n.n) ** .73, oe = ae * Math.sqrt(O / 100), se = oe * n.fLRoot, ce = 50 * Math.sqrt(ae * n.c / (n.aw + 4)), k = 1.7000000000000002 * O / (1 + .007 * O), le = 1 / .0228 * Math.log(1 + .0228 * se);
|
|
160
|
+
return new e(D, oe, O, re, se, ce, k, le * Math.cos(ne), le * Math.sin(ne));
|
|
161
|
+
}
|
|
162
|
+
static fromJch(t, n, r) {
|
|
163
|
+
return e.fromJchInViewingConditions(t, n, r, j.DEFAULT);
|
|
164
|
+
}
|
|
165
|
+
static fromJchInViewingConditions(t, n, r, i) {
|
|
166
|
+
let a = 4 / i.c * Math.sqrt(t / 100) * (i.aw + 4) * i.fLRoot, o = n * i.fLRoot, s = n / Math.sqrt(t / 100), c = 50 * Math.sqrt(s * i.c / (i.aw + 4)), l = r * Math.PI / 180, u = 1.7000000000000002 * t / (1 + .007 * t), d = 1 / .0228 * Math.log(1 + .0228 * o);
|
|
167
|
+
return new e(r, n, t, a, o, c, u, d * Math.cos(l), d * Math.sin(l));
|
|
168
|
+
}
|
|
169
|
+
static fromUcs(t, n, r) {
|
|
170
|
+
return e.fromUcsInViewingConditions(t, n, r, j.DEFAULT);
|
|
171
|
+
}
|
|
172
|
+
static fromUcsInViewingConditions(t, n, r, i) {
|
|
173
|
+
let a = n, o = r, s = Math.sqrt(a * a + o * o), c = (Math.exp(.0228 * s) - 1) / .0228 / i.fLRoot, l = 180 / Math.PI * Math.atan2(o, a);
|
|
174
|
+
l < 0 && (l += 360);
|
|
175
|
+
let u = t / (1 - .007 * (t - 100));
|
|
176
|
+
return e.fromJchInViewingConditions(u, c, l, i);
|
|
177
|
+
}
|
|
178
|
+
toInt() {
|
|
179
|
+
return this.viewed(j.DEFAULT);
|
|
180
|
+
}
|
|
181
|
+
viewed(e) {
|
|
182
|
+
let t = ((this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100)) / (1.64 - .29 ** e.n) ** .73) ** (1 / .9), n = this.hue * Math.PI / 180, r = .25 * (Math.cos(n + 2) + 3.8), i = e.aw * (this.j / 100) ** (1 / e.c / e.z), a = 5e4 / 13 * r * e.nc * e.ncb, o = i / e.nbb, s = Math.sin(n), c = Math.cos(n), l = 23 * (o + .305) * t / (23 * a + 11 * t * c + 108 * t * s), u = l * c, d = l * s, f = (460 * o + 451 * u + 288 * d) / 1403, p = (460 * o - 891 * u - 261 * d) / 1403, m = (460 * o - 220 * u - 6300 * d) / 1403, h = Math.max(0, 27.13 * Math.abs(f) / (400 - Math.abs(f))), g = S(f) * (100 / e.fl) * h ** (1 / .42), _ = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), v = S(p) * (100 / e.fl) * _ ** (1 / .42), y = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), b = S(m) * (100 / e.fl) * y ** (1 / .42), x = g / e.rgbD[0], C = v / e.rgbD[1], w = b / e.rgbD[2];
|
|
183
|
+
return function(e, t, n) {
|
|
184
|
+
let r = ne, i = r[0][0] * e + r[0][1] * t + r[0][2] * n, a = r[1][0] * e + r[1][1] * t + r[1][2] * n, o = r[2][0] * e + r[2][1] * t + r[2][2] * n;
|
|
185
|
+
return re(ue(i), ue(a), ue(o));
|
|
186
|
+
}(1.86206786 * x - 1.01125463 * C + .14918677 * w, .38752654 * x + .62144744 * C - .00897398 * w, -.0158415 * x - .03412294 * C + 1.04996444 * w);
|
|
187
|
+
}
|
|
188
|
+
static fromXyzInViewingConditions(t, n, r, i) {
|
|
189
|
+
let a = .401288 * t + .650173 * n - .051461 * r, o = -.250268 * t + 1.204414 * n + .045854 * r, s = -.002079 * t + .048952 * n + .953127 * r, c = i.rgbD[0] * a, l = i.rgbD[1] * o, u = i.rgbD[2] * s, d = (i.fl * Math.abs(c) / 100) ** .42, f = (i.fl * Math.abs(l) / 100) ** .42, p = (i.fl * Math.abs(u) / 100) ** .42, m = 400 * S(c) * d / (d + 27.13), h = 400 * S(l) * f / (f + 27.13), g = 400 * S(u) * p / (p + 27.13), _ = (11 * m + -12 * h + g) / 11, v = (m + h - 2 * g) / 9, y = (20 * m + 20 * h + 21 * g) / 20, b = (40 * m + 20 * h + g) / 20, x = 180 * Math.atan2(v, _) / Math.PI, C = x < 0 ? x + 360 : x >= 360 ? x - 360 : x, w = C * Math.PI / 180, T = 100 * (b * i.nbb / i.aw) ** +(i.c * i.z), E = 4 / i.c * Math.sqrt(T / 100) * (i.aw + 4) * i.fLRoot, ee = C < 20.14 ? C + 360 : C, te = (5e4 / 13 * (1 / 4 * (Math.cos(ee * Math.PI / 180 + 2) + 3.8)) * i.nc * i.ncb * Math.sqrt(_ * _ + v * v) / (y + .305)) ** .9 * (1.64 - .29 ** i.n) ** .73, D = te * Math.sqrt(T / 100), ne = D * i.fLRoot, O = 50 * Math.sqrt(te * i.c / (i.aw + 4)), re = 1.7000000000000002 * T / (1 + .007 * T), ie = Math.log(1 + .0228 * ne) / .0228;
|
|
190
|
+
return new e(C, D, T, E, ne, O, re, ie * Math.cos(w), ie * Math.sin(w));
|
|
191
|
+
}
|
|
192
|
+
xyzInViewingConditions(e) {
|
|
193
|
+
let t = ((this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100)) / (1.64 - .29 ** e.n) ** .73) ** (1 / .9), n = this.hue * Math.PI / 180, r = .25 * (Math.cos(n + 2) + 3.8), i = e.aw * (this.j / 100) ** (1 / e.c / e.z), a = 5e4 / 13 * r * e.nc * e.ncb, o = i / e.nbb, s = Math.sin(n), c = Math.cos(n), l = 23 * (o + .305) * t / (23 * a + 11 * t * c + 108 * t * s), u = l * c, d = l * s, f = (460 * o + 451 * u + 288 * d) / 1403, p = (460 * o - 891 * u - 261 * d) / 1403, m = (460 * o - 220 * u - 6300 * d) / 1403, h = Math.max(0, 27.13 * Math.abs(f) / (400 - Math.abs(f))), g = S(f) * (100 / e.fl) * h ** (1 / .42), _ = Math.max(0, 27.13 * Math.abs(p) / (400 - Math.abs(p))), v = S(p) * (100 / e.fl) * _ ** (1 / .42), y = Math.max(0, 27.13 * Math.abs(m) / (400 - Math.abs(m))), b = S(m) * (100 / e.fl) * y ** (1 / .42), x = g / e.rgbD[0], C = v / e.rgbD[1], w = b / e.rgbD[2];
|
|
194
|
+
return [
|
|
195
|
+
1.86206786 * x - 1.01125463 * C + .14918677 * w,
|
|
196
|
+
.38752654 * x + .62144744 * C - .00897398 * w,
|
|
197
|
+
-.0158415 * x - .03412294 * C + 1.04996444 * w
|
|
198
|
+
];
|
|
199
|
+
}
|
|
200
|
+
}, N = class e {
|
|
201
|
+
static sanitizeRadians(e) {
|
|
202
|
+
return (e + 8 * Math.PI) % (2 * Math.PI);
|
|
203
|
+
}
|
|
204
|
+
static trueDelinearized(e) {
|
|
205
|
+
let t = e / 100, n = 0;
|
|
206
|
+
return n = t <= .0031308 ? 12.92 * t : 1.055 * t ** (1 / 2.4) - .055, 255 * n;
|
|
207
|
+
}
|
|
208
|
+
static chromaticAdaptation(e) {
|
|
209
|
+
let t = Math.abs(e) ** .42;
|
|
210
|
+
return 400 * S(e) * t / (t + 27.13);
|
|
211
|
+
}
|
|
212
|
+
static hueOf(t) {
|
|
213
|
+
let n = te(t, e.SCALED_DISCOUNT_FROM_LINRGB), r = e.chromaticAdaptation(n[0]), i = e.chromaticAdaptation(n[1]), a = e.chromaticAdaptation(n[2]), o = (11 * r + -12 * i + a) / 11, s = (r + i - 2 * a) / 9;
|
|
214
|
+
return Math.atan2(s, o);
|
|
215
|
+
}
|
|
216
|
+
static areInCyclicOrder(t, n, r) {
|
|
217
|
+
return e.sanitizeRadians(n - t) < e.sanitizeRadians(r - t);
|
|
218
|
+
}
|
|
219
|
+
static intercept(e, t, n) {
|
|
220
|
+
return (t - e) / (n - e);
|
|
221
|
+
}
|
|
222
|
+
static lerpPoint(e, t, n) {
|
|
223
|
+
return [
|
|
224
|
+
e[0] + (n[0] - e[0]) * t,
|
|
225
|
+
e[1] + (n[1] - e[1]) * t,
|
|
226
|
+
e[2] + (n[2] - e[2]) * t
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
static setCoordinate(t, n, r, i) {
|
|
230
|
+
let a = e.intercept(t[i], n, r[i]);
|
|
231
|
+
return e.lerpPoint(t, a, r);
|
|
232
|
+
}
|
|
233
|
+
static isBounded(e) {
|
|
234
|
+
return 0 <= e && e <= 100;
|
|
235
|
+
}
|
|
236
|
+
static nthVertex(t, n) {
|
|
237
|
+
let r = e.Y_FROM_LINRGB[0], i = e.Y_FROM_LINRGB[1], a = e.Y_FROM_LINRGB[2], o = n % 4 <= 1 ? 0 : 100, s = n % 2 == 0 ? 0 : 100;
|
|
238
|
+
if (n < 4) {
|
|
239
|
+
let n = o, c = s, l = (t - n * i - c * a) / r;
|
|
240
|
+
return e.isBounded(l) ? [
|
|
241
|
+
l,
|
|
242
|
+
n,
|
|
243
|
+
c
|
|
244
|
+
] : [
|
|
245
|
+
-1,
|
|
246
|
+
-1,
|
|
247
|
+
-1
|
|
248
|
+
];
|
|
249
|
+
}
|
|
250
|
+
if (n < 8) {
|
|
251
|
+
let n = o, c = s, l = (t - c * r - n * a) / i;
|
|
252
|
+
return e.isBounded(l) ? [
|
|
253
|
+
c,
|
|
254
|
+
l,
|
|
255
|
+
n
|
|
256
|
+
] : [
|
|
257
|
+
-1,
|
|
258
|
+
-1,
|
|
259
|
+
-1
|
|
260
|
+
];
|
|
261
|
+
}
|
|
262
|
+
{
|
|
263
|
+
let n = o, c = s, l = (t - n * r - c * i) / a;
|
|
264
|
+
return e.isBounded(l) ? [
|
|
265
|
+
n,
|
|
266
|
+
c,
|
|
267
|
+
l
|
|
268
|
+
] : [
|
|
269
|
+
-1,
|
|
270
|
+
-1,
|
|
271
|
+
-1
|
|
272
|
+
];
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
static bisectToSegment(t, n) {
|
|
276
|
+
let r = [
|
|
277
|
+
-1,
|
|
278
|
+
-1,
|
|
279
|
+
-1
|
|
280
|
+
], i = r, a = 0, o = 0, s = !1, c = !0;
|
|
281
|
+
for (let l = 0; l < 12; l++) {
|
|
282
|
+
let u = e.nthVertex(t, l);
|
|
283
|
+
if (u[0] < 0) continue;
|
|
284
|
+
let d = e.hueOf(u);
|
|
285
|
+
s ? (c || e.areInCyclicOrder(a, d, o)) && (c = !1, e.areInCyclicOrder(a, n, d) ? (i = u, o = d) : (r = u, a = d)) : (r = u, i = u, a = d, o = d, s = !0);
|
|
286
|
+
}
|
|
287
|
+
return [r, i];
|
|
288
|
+
}
|
|
289
|
+
static midpoint(e, t) {
|
|
290
|
+
return [
|
|
291
|
+
(e[0] + t[0]) / 2,
|
|
292
|
+
(e[1] + t[1]) / 2,
|
|
293
|
+
(e[2] + t[2]) / 2
|
|
294
|
+
];
|
|
295
|
+
}
|
|
296
|
+
static criticalPlaneBelow(e) {
|
|
297
|
+
return Math.floor(e - .5);
|
|
298
|
+
}
|
|
299
|
+
static criticalPlaneAbove(e) {
|
|
300
|
+
return Math.ceil(e - .5);
|
|
301
|
+
}
|
|
302
|
+
static bisectToLimit(t, n) {
|
|
303
|
+
let r = e.bisectToSegment(t, n), i = r[0], a = e.hueOf(i), o = r[1];
|
|
304
|
+
for (let t = 0; t < 3; t++) if (i[t] !== o[t]) {
|
|
305
|
+
let r = -1, s = 255;
|
|
306
|
+
i[t] < o[t] ? (r = e.criticalPlaneBelow(e.trueDelinearized(i[t])), s = e.criticalPlaneAbove(e.trueDelinearized(o[t]))) : (r = e.criticalPlaneAbove(e.trueDelinearized(i[t])), s = e.criticalPlaneBelow(e.trueDelinearized(o[t])));
|
|
307
|
+
for (let c = 0; c < 8 && !(Math.abs(s - r) <= 1); c++) {
|
|
308
|
+
let c = Math.floor((r + s) / 2), l = e.CRITICAL_PLANES[c], u = e.setCoordinate(i, l, o, t), d = e.hueOf(u);
|
|
309
|
+
e.areInCyclicOrder(a, n, d) ? (o = u, s = c) : (i = u, a = d, r = c);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return e.midpoint(i, o);
|
|
313
|
+
}
|
|
314
|
+
static inverseChromaticAdaptation(e) {
|
|
315
|
+
let t = Math.abs(e), n = Math.max(0, 27.13 * t / (400 - t));
|
|
316
|
+
return S(e) * n ** (1 / .42);
|
|
317
|
+
}
|
|
318
|
+
static findResultByJ(t, n, r) {
|
|
319
|
+
let i = 11 * Math.sqrt(r), a = j.DEFAULT, o = 1 / (1.64 - .29 ** a.n) ** .73, s = .25 * (Math.cos(t + 2) + 3.8) * (5e4 / 13) * a.nc * a.ncb, c = Math.sin(t), l = Math.cos(t);
|
|
320
|
+
for (let t = 0; t < 5; t++) {
|
|
321
|
+
let u = i / 100, d = ((n === 0 || i === 0 ? 0 : n / Math.sqrt(u)) * o) ** (1 / .9), f = a.aw * u ** (1 / a.c / a.z) / a.nbb, p = 23 * (f + .305) * d / (23 * s + 11 * d * l + 108 * d * c), m = p * l, h = p * c, g = (460 * f + 451 * m + 288 * h) / 1403, _ = (460 * f - 891 * m - 261 * h) / 1403, v = (460 * f - 220 * m - 6300 * h) / 1403, y = te([
|
|
322
|
+
e.inverseChromaticAdaptation(g),
|
|
323
|
+
e.inverseChromaticAdaptation(_),
|
|
324
|
+
e.inverseChromaticAdaptation(v)
|
|
325
|
+
], e.LINRGB_FROM_SCALED_DISCOUNT);
|
|
326
|
+
if (y[0] < 0 || y[1] < 0 || y[2] < 0) return 0;
|
|
327
|
+
let b = e.Y_FROM_LINRGB[0], x = e.Y_FROM_LINRGB[1], S = e.Y_FROM_LINRGB[2], C = b * y[0] + x * y[1] + S * y[2];
|
|
328
|
+
if (C <= 0) return 0;
|
|
329
|
+
if (t === 4 || Math.abs(C - r) < .002) return y[0] > 100.01 || y[1] > 100.01 || y[2] > 100.01 ? 0 : ie(y);
|
|
330
|
+
i -= (C - r) * i / (2 * C);
|
|
331
|
+
}
|
|
332
|
+
return 0;
|
|
333
|
+
}
|
|
334
|
+
static solveToInt(t, n, r) {
|
|
335
|
+
if (n < 1e-4 || r < 1e-4 || r > 99.9999) return function(e) {
|
|
336
|
+
let t = ue(k(e));
|
|
337
|
+
return re(t, t, t);
|
|
338
|
+
}(r);
|
|
339
|
+
let i = (t = E(t)) / 180 * Math.PI, a = k(r), o = e.findResultByJ(i, n, a);
|
|
340
|
+
return o === 0 ? ie(e.bisectToLimit(a, i)) : o;
|
|
341
|
+
}
|
|
342
|
+
static solveToCam(t, n, r) {
|
|
343
|
+
return M.fromInt(e.solveToInt(t, n, r));
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
N.SCALED_DISCOUNT_FROM_LINRGB = [
|
|
347
|
+
[
|
|
348
|
+
.001200833568784504,
|
|
349
|
+
.002389694492170889,
|
|
350
|
+
.0002795742885861124
|
|
351
|
+
],
|
|
352
|
+
[
|
|
353
|
+
.0005891086651375999,
|
|
354
|
+
.0029785502573438758,
|
|
355
|
+
.0003270666104008398
|
|
356
|
+
],
|
|
357
|
+
[
|
|
358
|
+
.00010146692491640572,
|
|
359
|
+
.0005364214359186694,
|
|
360
|
+
.0032979401770712076
|
|
361
|
+
]
|
|
362
|
+
], N.LINRGB_FROM_SCALED_DISCOUNT = [
|
|
363
|
+
[
|
|
364
|
+
1373.2198709594231,
|
|
365
|
+
-1100.4251190754821,
|
|
366
|
+
-7.278681089101213
|
|
367
|
+
],
|
|
368
|
+
[
|
|
369
|
+
-271.815969077903,
|
|
370
|
+
559.6580465940733,
|
|
371
|
+
-32.46047482791194
|
|
372
|
+
],
|
|
373
|
+
[
|
|
374
|
+
1.9622899599665666,
|
|
375
|
+
-57.173814538844006,
|
|
376
|
+
308.7233197812385
|
|
377
|
+
]
|
|
378
|
+
], N.Y_FROM_LINRGB = [
|
|
379
|
+
.2126,
|
|
380
|
+
.7152,
|
|
381
|
+
.0722
|
|
382
|
+
], N.CRITICAL_PLANES = [
|
|
383
|
+
.015176349177441876,
|
|
384
|
+
.045529047532325624,
|
|
385
|
+
.07588174588720938,
|
|
386
|
+
.10623444424209313,
|
|
387
|
+
.13658714259697685,
|
|
388
|
+
.16693984095186062,
|
|
389
|
+
.19729253930674434,
|
|
390
|
+
.2276452376616281,
|
|
391
|
+
.2579979360165119,
|
|
392
|
+
.28835063437139563,
|
|
393
|
+
.3188300904430532,
|
|
394
|
+
.350925934958123,
|
|
395
|
+
.3848314933096426,
|
|
396
|
+
.42057480301049466,
|
|
397
|
+
.458183274052838,
|
|
398
|
+
.4976837250274023,
|
|
399
|
+
.5391024159806381,
|
|
400
|
+
.5824650784040898,
|
|
401
|
+
.6277969426914107,
|
|
402
|
+
.6751227633498623,
|
|
403
|
+
.7244668422128921,
|
|
404
|
+
.775853049866786,
|
|
405
|
+
.829304845476233,
|
|
406
|
+
.8848452951698498,
|
|
407
|
+
.942497089126609,
|
|
408
|
+
1.0022825574869039,
|
|
409
|
+
1.0642236851973577,
|
|
410
|
+
1.1283421258858297,
|
|
411
|
+
1.1946592148522128,
|
|
412
|
+
1.2631959812511864,
|
|
413
|
+
1.3339731595349034,
|
|
414
|
+
1.407011200216447,
|
|
415
|
+
1.4823302800086415,
|
|
416
|
+
1.5599503113873272,
|
|
417
|
+
1.6398909516233677,
|
|
418
|
+
1.7221716113234105,
|
|
419
|
+
1.8068114625156377,
|
|
420
|
+
1.8938294463134073,
|
|
421
|
+
1.9832442801866852,
|
|
422
|
+
2.075074464868551,
|
|
423
|
+
2.1693382909216234,
|
|
424
|
+
2.2660538449872063,
|
|
425
|
+
2.36523901573795,
|
|
426
|
+
2.4669114995532007,
|
|
427
|
+
2.5710888059345764,
|
|
428
|
+
2.6777882626779785,
|
|
429
|
+
2.7870270208169257,
|
|
430
|
+
2.898822059350997,
|
|
431
|
+
3.0131901897720907,
|
|
432
|
+
3.1301480604002863,
|
|
433
|
+
3.2497121605402226,
|
|
434
|
+
3.3718988244681087,
|
|
435
|
+
3.4967242352587946,
|
|
436
|
+
3.624204428461639,
|
|
437
|
+
3.754355295633311,
|
|
438
|
+
3.887192587735158,
|
|
439
|
+
4.022731918402185,
|
|
440
|
+
4.160988767090289,
|
|
441
|
+
4.301978482107941,
|
|
442
|
+
4.445716283538092,
|
|
443
|
+
4.592217266055746,
|
|
444
|
+
4.741496401646282,
|
|
445
|
+
4.893568542229298,
|
|
446
|
+
5.048448422192488,
|
|
447
|
+
5.20615066083972,
|
|
448
|
+
5.3666897647573375,
|
|
449
|
+
5.5300801301023865,
|
|
450
|
+
5.696336044816294,
|
|
451
|
+
5.865471690767354,
|
|
452
|
+
6.037501145825082,
|
|
453
|
+
6.212438385869475,
|
|
454
|
+
6.390297286737924,
|
|
455
|
+
6.571091626112461,
|
|
456
|
+
6.7548350853498045,
|
|
457
|
+
6.941541251256611,
|
|
458
|
+
7.131223617812143,
|
|
459
|
+
7.323895587840543,
|
|
460
|
+
7.5195704746346665,
|
|
461
|
+
7.7182615035334345,
|
|
462
|
+
7.919981813454504,
|
|
463
|
+
8.124744458384042,
|
|
464
|
+
8.332562408825165,
|
|
465
|
+
8.543448553206703,
|
|
466
|
+
8.757415699253682,
|
|
467
|
+
8.974476575321063,
|
|
468
|
+
9.194643831691977,
|
|
469
|
+
9.417930041841839,
|
|
470
|
+
9.644347703669503,
|
|
471
|
+
9.873909240696694,
|
|
472
|
+
10.106627003236781,
|
|
473
|
+
10.342513269534024,
|
|
474
|
+
10.58158024687427,
|
|
475
|
+
10.8238400726681,
|
|
476
|
+
11.069304815507364,
|
|
477
|
+
11.317986476196008,
|
|
478
|
+
11.569896988756009,
|
|
479
|
+
11.825048221409341,
|
|
480
|
+
12.083451977536606,
|
|
481
|
+
12.345119996613247,
|
|
482
|
+
12.610063955123938,
|
|
483
|
+
12.878295467455942,
|
|
484
|
+
13.149826086772048,
|
|
485
|
+
13.42466730586372,
|
|
486
|
+
13.702830557985108,
|
|
487
|
+
13.984327217668513,
|
|
488
|
+
14.269168601521828,
|
|
489
|
+
14.55736596900856,
|
|
490
|
+
14.848930523210871,
|
|
491
|
+
15.143873411576273,
|
|
492
|
+
15.44220572664832,
|
|
493
|
+
15.743938506781891,
|
|
494
|
+
16.04908273684337,
|
|
495
|
+
16.35764934889634,
|
|
496
|
+
16.66964922287304,
|
|
497
|
+
16.985093187232053,
|
|
498
|
+
17.30399201960269,
|
|
499
|
+
17.62635644741625,
|
|
500
|
+
17.95219714852476,
|
|
501
|
+
18.281524751807332,
|
|
502
|
+
18.614349837764564,
|
|
503
|
+
18.95068293910138,
|
|
504
|
+
19.290534541298456,
|
|
505
|
+
19.633915083172692,
|
|
506
|
+
19.98083495742689,
|
|
507
|
+
20.331304511189067,
|
|
508
|
+
20.685334046541502,
|
|
509
|
+
21.042933821039977,
|
|
510
|
+
21.404114048223256,
|
|
511
|
+
21.76888489811322,
|
|
512
|
+
22.137256497705877,
|
|
513
|
+
22.50923893145328,
|
|
514
|
+
22.884842241736916,
|
|
515
|
+
23.264076429332462,
|
|
516
|
+
23.6469514538663,
|
|
517
|
+
24.033477234264016,
|
|
518
|
+
24.42366364919083,
|
|
519
|
+
24.817520537484558,
|
|
520
|
+
25.21505769858089,
|
|
521
|
+
25.61628489293138,
|
|
522
|
+
26.021211842414342,
|
|
523
|
+
26.429848230738664,
|
|
524
|
+
26.842203703840827,
|
|
525
|
+
27.258287870275353,
|
|
526
|
+
27.678110301598522,
|
|
527
|
+
28.10168053274597,
|
|
528
|
+
28.529008062403893,
|
|
529
|
+
28.96010235337422,
|
|
530
|
+
29.39497283293396,
|
|
531
|
+
29.83362889318845,
|
|
532
|
+
30.276079891419332,
|
|
533
|
+
30.722335150426627,
|
|
534
|
+
31.172403958865512,
|
|
535
|
+
31.62629557157785,
|
|
536
|
+
32.08401920991837,
|
|
537
|
+
32.54558406207592,
|
|
538
|
+
33.010999283389665,
|
|
539
|
+
33.4802739966603,
|
|
540
|
+
33.953417292456834,
|
|
541
|
+
34.430438229418264,
|
|
542
|
+
34.911345834551085,
|
|
543
|
+
35.39614910352207,
|
|
544
|
+
35.88485700094671,
|
|
545
|
+
36.37747846067349,
|
|
546
|
+
36.87402238606382,
|
|
547
|
+
37.37449765026789,
|
|
548
|
+
37.87891309649659,
|
|
549
|
+
38.38727753828926,
|
|
550
|
+
38.89959975977785,
|
|
551
|
+
39.41588851594697,
|
|
552
|
+
39.93615253289054,
|
|
553
|
+
40.460400508064545,
|
|
554
|
+
40.98864111053629,
|
|
555
|
+
41.520882981230194,
|
|
556
|
+
42.05713473317016,
|
|
557
|
+
42.597404951718396,
|
|
558
|
+
43.141702194811224,
|
|
559
|
+
43.6900349931913,
|
|
560
|
+
44.24241185063697,
|
|
561
|
+
44.798841244188324,
|
|
562
|
+
45.35933162437017,
|
|
563
|
+
45.92389141541209,
|
|
564
|
+
46.49252901546552,
|
|
565
|
+
47.065252796817916,
|
|
566
|
+
47.64207110610409,
|
|
567
|
+
48.22299226451468,
|
|
568
|
+
48.808024568002054,
|
|
569
|
+
49.3971762874833,
|
|
570
|
+
49.9904556690408,
|
|
571
|
+
50.587870934119984,
|
|
572
|
+
51.189430279724725,
|
|
573
|
+
51.79514187861014,
|
|
574
|
+
52.40501387947288,
|
|
575
|
+
53.0190544071392,
|
|
576
|
+
53.637271562750364,
|
|
577
|
+
54.259673423945976,
|
|
578
|
+
54.88626804504493,
|
|
579
|
+
55.517063457223934,
|
|
580
|
+
56.15206766869424,
|
|
581
|
+
56.79128866487574,
|
|
582
|
+
57.43473440856916,
|
|
583
|
+
58.08241284012621,
|
|
584
|
+
58.734331877617365,
|
|
585
|
+
59.39049941699807,
|
|
586
|
+
60.05092333227251,
|
|
587
|
+
60.715611475655585,
|
|
588
|
+
61.38457167773311,
|
|
589
|
+
62.057811747619894,
|
|
590
|
+
62.7353394731159,
|
|
591
|
+
63.417162620860914,
|
|
592
|
+
64.10328893648692,
|
|
593
|
+
64.79372614476921,
|
|
594
|
+
65.48848194977529,
|
|
595
|
+
66.18756403501224,
|
|
596
|
+
66.89098006357258,
|
|
597
|
+
67.59873767827808,
|
|
598
|
+
68.31084450182222,
|
|
599
|
+
69.02730813691093,
|
|
600
|
+
69.74813616640164,
|
|
601
|
+
70.47333615344107,
|
|
602
|
+
71.20291564160104,
|
|
603
|
+
71.93688215501312,
|
|
604
|
+
72.67524319850172,
|
|
605
|
+
73.41800625771542,
|
|
606
|
+
74.16517879925733,
|
|
607
|
+
74.9167682708136,
|
|
608
|
+
75.67278210128072,
|
|
609
|
+
76.43322770089146,
|
|
610
|
+
77.1981124613393,
|
|
611
|
+
77.96744375590167,
|
|
612
|
+
78.74122893956174,
|
|
613
|
+
79.51947534912904,
|
|
614
|
+
80.30219030335869,
|
|
615
|
+
81.08938110306934,
|
|
616
|
+
81.88105503125999,
|
|
617
|
+
82.67721935322541,
|
|
618
|
+
83.4778813166706,
|
|
619
|
+
84.28304815182372,
|
|
620
|
+
85.09272707154808,
|
|
621
|
+
85.90692527145302,
|
|
622
|
+
86.72564993000343,
|
|
623
|
+
87.54890820862819,
|
|
624
|
+
88.3767072518277,
|
|
625
|
+
89.2090541872801,
|
|
626
|
+
90.04595612594655,
|
|
627
|
+
90.88742016217518,
|
|
628
|
+
91.73345337380438,
|
|
629
|
+
92.58406282226491,
|
|
630
|
+
93.43925555268066,
|
|
631
|
+
94.29903859396902,
|
|
632
|
+
95.16341895893969,
|
|
633
|
+
96.03240364439274,
|
|
634
|
+
96.9059996312159,
|
|
635
|
+
97.78421388448044,
|
|
636
|
+
98.6670533535366,
|
|
637
|
+
99.55452497210776
|
|
638
|
+
];
|
|
639
|
+
var P = class e {
|
|
640
|
+
static from(t, n, r) {
|
|
641
|
+
return new e(N.solveToInt(t, n, r));
|
|
642
|
+
}
|
|
643
|
+
static fromInt(t) {
|
|
644
|
+
return new e(t);
|
|
645
|
+
}
|
|
646
|
+
toInt() {
|
|
647
|
+
return this.argb;
|
|
648
|
+
}
|
|
649
|
+
get hue() {
|
|
650
|
+
return this.internalHue;
|
|
651
|
+
}
|
|
652
|
+
set hue(e) {
|
|
653
|
+
this.setInternalState(N.solveToInt(e, this.internalChroma, this.internalTone));
|
|
654
|
+
}
|
|
655
|
+
get chroma() {
|
|
656
|
+
return this.internalChroma;
|
|
657
|
+
}
|
|
658
|
+
set chroma(e) {
|
|
659
|
+
this.setInternalState(N.solveToInt(this.internalHue, e, this.internalTone));
|
|
660
|
+
}
|
|
661
|
+
get tone() {
|
|
662
|
+
return this.internalTone;
|
|
663
|
+
}
|
|
664
|
+
set tone(e) {
|
|
665
|
+
this.setInternalState(N.solveToInt(this.internalHue, this.internalChroma, e));
|
|
666
|
+
}
|
|
667
|
+
setValue(e, t) {
|
|
668
|
+
this[e] = t;
|
|
669
|
+
}
|
|
670
|
+
toString() {
|
|
671
|
+
return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`;
|
|
672
|
+
}
|
|
673
|
+
static isBlue(e) {
|
|
674
|
+
return e >= 250 && e < 270;
|
|
675
|
+
}
|
|
676
|
+
static isYellow(e) {
|
|
677
|
+
return e >= 105 && e < 125;
|
|
678
|
+
}
|
|
679
|
+
static isCyan(e) {
|
|
680
|
+
return e >= 170 && e < 207;
|
|
681
|
+
}
|
|
682
|
+
constructor(e) {
|
|
683
|
+
this.argb = e;
|
|
684
|
+
let t = M.fromInt(e);
|
|
685
|
+
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = ce(e), this.argb = e;
|
|
686
|
+
}
|
|
687
|
+
setInternalState(e) {
|
|
688
|
+
let t = M.fromInt(e);
|
|
689
|
+
this.internalHue = t.hue, this.internalChroma = t.chroma, this.internalTone = ce(e), this.argb = e;
|
|
690
|
+
}
|
|
691
|
+
inViewingConditions(t) {
|
|
692
|
+
let n = M.fromInt(this.toInt()).xyzInViewingConditions(t), r = M.fromXyzInViewingConditions(n[0], n[1], n[2], j.make());
|
|
693
|
+
return e.from(r.hue, r.chroma, le(n[1]));
|
|
694
|
+
}
|
|
695
|
+
}, fe = class e {
|
|
696
|
+
static harmonize(e, t) {
|
|
697
|
+
let n = P.fromInt(e), r = P.fromInt(t), i = ee(n.hue, r.hue), a = Math.min(.5 * i, 15), o = E(n.hue + a * (s = n.hue, E(r.hue - s) <= 180 ? 1 : -1));
|
|
698
|
+
var s;
|
|
699
|
+
return P.from(o, n.chroma, n.tone).toInt();
|
|
700
|
+
}
|
|
701
|
+
static hctHue(t, n, r) {
|
|
702
|
+
let i = e.cam16Ucs(t, n, r), a = M.fromInt(i), o = M.fromInt(t);
|
|
703
|
+
return P.from(a.hue, o.chroma, ce(t)).toInt();
|
|
704
|
+
}
|
|
705
|
+
static cam16Ucs(e, t, n) {
|
|
706
|
+
let r = M.fromInt(e), i = M.fromInt(t), a = r.jstar, o = r.astar, s = r.bstar, c = a + (i.jstar - a) * n, l = o + (i.astar - o) * n, u = s + (i.bstar - s) * n;
|
|
707
|
+
return M.fromUcs(c, l, u).toInt();
|
|
708
|
+
}
|
|
709
|
+
}, F = class e {
|
|
710
|
+
static ratioOfTones(t, n) {
|
|
711
|
+
return t = w(0, 100, t), n = w(0, 100, n), e.ratioOfYs(k(t), k(n));
|
|
712
|
+
}
|
|
713
|
+
static ratioOfYs(e, t) {
|
|
714
|
+
let n = e > t ? e : t;
|
|
715
|
+
return (n + 5) / ((n === t ? e : t) + 5);
|
|
716
|
+
}
|
|
717
|
+
static lighter(t, n) {
|
|
718
|
+
if (t < 0 || t > 100) return -1;
|
|
719
|
+
let r = k(t), i = n * (r + 5) - 5, a = e.ratioOfYs(i, r), o = Math.abs(a - n);
|
|
720
|
+
if (a < n && o > .04) return -1;
|
|
721
|
+
let s = le(i) + .4;
|
|
722
|
+
return s < 0 || s > 100 ? -1 : s;
|
|
723
|
+
}
|
|
724
|
+
static darker(t, n) {
|
|
725
|
+
if (t < 0 || t > 100) return -1;
|
|
726
|
+
let r = k(t), i = (r + 5) / n - 5, a = e.ratioOfYs(r, i), o = Math.abs(a - n);
|
|
727
|
+
if (a < n && o > .04) return -1;
|
|
728
|
+
let s = le(i) - .4;
|
|
729
|
+
return s < 0 || s > 100 ? -1 : s;
|
|
730
|
+
}
|
|
731
|
+
static lighterUnsafe(t, n) {
|
|
732
|
+
let r = e.lighter(t, n);
|
|
733
|
+
return r < 0 ? 100 : r;
|
|
734
|
+
}
|
|
735
|
+
static darkerUnsafe(t, n) {
|
|
736
|
+
let r = e.darker(t, n);
|
|
737
|
+
return r < 0 ? 0 : r;
|
|
738
|
+
}
|
|
739
|
+
}, pe = class e {
|
|
740
|
+
static isDisliked(e) {
|
|
741
|
+
let t = Math.round(e.hue) >= 90 && Math.round(e.hue) <= 111, n = Math.round(e.chroma) > 16, r = Math.round(e.tone) < 65;
|
|
742
|
+
return t && n && r;
|
|
743
|
+
}
|
|
744
|
+
static fixIfDisliked(t) {
|
|
745
|
+
return e.isDisliked(t) ? P.from(t.hue, t.chroma, 70) : t;
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
function I(e, t, n) {
|
|
749
|
+
return function(e, t, n) {
|
|
750
|
+
if (e.name !== n.name) throw Error(`Attempting to extend color ${e.name} with color ${n.name} of different name for spec version ${t}.`);
|
|
751
|
+
if (e.isBackground !== n.isBackground) throw Error(`Attempting to extend color ${e.name} as a ${e.isBackground ? "background" : "foreground"} with color ${n.name} as a ${n.isBackground ? "background" : "foreground"} for spec version ${t}.`);
|
|
752
|
+
}(e, t, n), L.fromPalette({
|
|
753
|
+
name: e.name,
|
|
754
|
+
palette: (r) => r.specVersion === t ? n.palette(r) : e.palette(r),
|
|
755
|
+
tone: (r) => r.specVersion === t ? n.tone(r) : e.tone(r),
|
|
756
|
+
isBackground: e.isBackground,
|
|
757
|
+
chromaMultiplier: (r) => {
|
|
758
|
+
let i = r.specVersion === t ? n.chromaMultiplier : e.chromaMultiplier;
|
|
759
|
+
return i === void 0 ? 1 : i(r);
|
|
760
|
+
},
|
|
761
|
+
background: (r) => {
|
|
762
|
+
let i = r.specVersion === t ? n.background : e.background;
|
|
763
|
+
return i === void 0 ? void 0 : i(r);
|
|
764
|
+
},
|
|
765
|
+
secondBackground: (r) => {
|
|
766
|
+
let i = r.specVersion === t ? n.secondBackground : e.secondBackground;
|
|
767
|
+
return i === void 0 ? void 0 : i(r);
|
|
768
|
+
},
|
|
769
|
+
contrastCurve: (r) => {
|
|
770
|
+
let i = r.specVersion === t ? n.contrastCurve : e.contrastCurve;
|
|
771
|
+
return i === void 0 ? void 0 : i(r);
|
|
772
|
+
},
|
|
773
|
+
toneDeltaPair: (r) => {
|
|
774
|
+
let i = r.specVersion === t ? n.toneDeltaPair : e.toneDeltaPair;
|
|
775
|
+
return i === void 0 ? void 0 : i(r);
|
|
776
|
+
}
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
var L = class e {
|
|
780
|
+
static fromPalette(t) {
|
|
781
|
+
return new e(t.name ?? "", t.palette, t.tone ?? e.getInitialToneFromBackground(t.background), t.isBackground ?? !1, t.chromaMultiplier, t.background, t.secondBackground, t.contrastCurve, t.toneDeltaPair);
|
|
782
|
+
}
|
|
783
|
+
static getInitialToneFromBackground(e) {
|
|
784
|
+
return e === void 0 ? (e) => 50 : (t) => e(t) ? e(t).getTone(t) : 50;
|
|
785
|
+
}
|
|
786
|
+
constructor(e, t, n, r, i, a, o, s, c) {
|
|
787
|
+
if (this.name = e, this.palette = t, this.tone = n, this.isBackground = r, this.chromaMultiplier = i, this.background = a, this.secondBackground = o, this.contrastCurve = s, this.toneDeltaPair = c, this.hctCache = /* @__PURE__ */ new Map(), !a && o) throw Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);
|
|
788
|
+
if (!a && s) throw Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);
|
|
789
|
+
if (a && !s) throw Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`);
|
|
790
|
+
}
|
|
791
|
+
clone() {
|
|
792
|
+
return e.fromPalette({
|
|
793
|
+
name: this.name,
|
|
794
|
+
palette: this.palette,
|
|
795
|
+
tone: this.tone,
|
|
796
|
+
isBackground: this.isBackground,
|
|
797
|
+
chromaMultiplier: this.chromaMultiplier,
|
|
798
|
+
background: this.background,
|
|
799
|
+
secondBackground: this.secondBackground,
|
|
800
|
+
contrastCurve: this.contrastCurve,
|
|
801
|
+
toneDeltaPair: this.toneDeltaPair
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
clearCache() {
|
|
805
|
+
this.hctCache.clear();
|
|
806
|
+
}
|
|
807
|
+
getArgb(e) {
|
|
808
|
+
return this.getHct(e).toInt();
|
|
809
|
+
}
|
|
810
|
+
getHct(e) {
|
|
811
|
+
let t = this.hctCache.get(e);
|
|
812
|
+
if (t != null) return t;
|
|
813
|
+
let n = ge(e.specVersion).getHct(e, this);
|
|
814
|
+
return this.hctCache.size > 4 && this.hctCache.clear(), this.hctCache.set(e, n), n;
|
|
815
|
+
}
|
|
816
|
+
getTone(e) {
|
|
817
|
+
return ge(e.specVersion).getTone(e, this);
|
|
818
|
+
}
|
|
819
|
+
static foregroundTone(t, n) {
|
|
820
|
+
let r = F.lighterUnsafe(t, n), i = F.darkerUnsafe(t, n), a = F.ratioOfTones(r, t), o = F.ratioOfTones(i, t);
|
|
821
|
+
if (e.tonePrefersLightForeground(t)) {
|
|
822
|
+
let e = Math.abs(a - o) < .1 && a < n && o < n;
|
|
823
|
+
return a >= n || a >= o || e ? r : i;
|
|
824
|
+
}
|
|
825
|
+
return o >= n || o >= a ? i : r;
|
|
826
|
+
}
|
|
827
|
+
static tonePrefersLightForeground(e) {
|
|
828
|
+
return Math.round(e) < 60;
|
|
829
|
+
}
|
|
830
|
+
static toneAllowsLightForeground(e) {
|
|
831
|
+
return Math.round(e) <= 49;
|
|
832
|
+
}
|
|
833
|
+
static enableLightForeground(t) {
|
|
834
|
+
return e.tonePrefersLightForeground(t) && !e.toneAllowsLightForeground(t) ? 49 : t;
|
|
835
|
+
}
|
|
836
|
+
}, me = new class {
|
|
837
|
+
getHct(e, t) {
|
|
838
|
+
let n = t.getTone(e);
|
|
839
|
+
return t.palette(e).getHct(n);
|
|
840
|
+
}
|
|
841
|
+
getTone(e, t) {
|
|
842
|
+
let n = e.contrastLevel < 0, r = t.toneDeltaPair ? t.toneDeltaPair(e) : void 0;
|
|
843
|
+
if (r) {
|
|
844
|
+
let i = r.roleA, a = r.roleB, o = r.delta, s = r.polarity, c = r.stayTogether, l = s === "nearer" || s === "lighter" && !e.isDark || s === "darker" && e.isDark, u = l ? i : a, d = l ? a : i, f = t.name === u.name, p = e.isDark ? 1 : -1, m = u.tone(e), h = d.tone(e);
|
|
845
|
+
if (t.background && u.contrastCurve && d.contrastCurve) {
|
|
846
|
+
let r = t.background(e), i = u.contrastCurve(e), a = d.contrastCurve(e);
|
|
847
|
+
if (r && i && a) {
|
|
848
|
+
let t = r.getTone(e), o = i.get(e.contrastLevel), s = a.get(e.contrastLevel);
|
|
849
|
+
F.ratioOfTones(t, m) < o && (m = L.foregroundTone(t, o)), F.ratioOfTones(t, h) < s && (h = L.foregroundTone(t, s)), n && (m = L.foregroundTone(t, o), h = L.foregroundTone(t, s));
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
return (h - m) * p < o && (h = w(0, 100, m + o * p), (h - m) * p >= o || (m = w(0, 100, h - o * p))), 50 <= m && m < 60 ? p > 0 ? (m = 60, h = Math.max(h, m + o * p)) : (m = 49, h = Math.min(h, m + o * p)) : 50 <= h && h < 60 && (c ? p > 0 ? (m = 60, h = Math.max(h, m + o * p)) : (m = 49, h = Math.min(h, m + o * p)) : h = p > 0 ? 60 : 49), f ? m : h;
|
|
853
|
+
}
|
|
854
|
+
{
|
|
855
|
+
let r = t.tone(e);
|
|
856
|
+
if (t.background == null || t.background(e) === void 0 || t.contrastCurve == null || t.contrastCurve(e) === void 0) return r;
|
|
857
|
+
let i = t.background(e).getTone(e), a = t.contrastCurve(e).get(e.contrastLevel);
|
|
858
|
+
if (F.ratioOfTones(i, r) >= a || (r = L.foregroundTone(i, a)), n && (r = L.foregroundTone(i, a)), t.isBackground && 50 <= r && r < 60 && (r = F.ratioOfTones(49, i) >= a ? 49 : 60), t.secondBackground == null || t.secondBackground(e) === void 0) return r;
|
|
859
|
+
let [o, s] = [t.background, t.secondBackground], [c, l] = [o(e).getTone(e), s(e).getTone(e)], [u, d] = [Math.max(c, l), Math.min(c, l)];
|
|
860
|
+
if (F.ratioOfTones(u, r) >= a && F.ratioOfTones(d, r) >= a) return r;
|
|
861
|
+
let f = F.lighter(u, a), p = F.darker(d, a), m = [];
|
|
862
|
+
return f !== -1 && m.push(f), p !== -1 && m.push(p), L.tonePrefersLightForeground(c) || L.tonePrefersLightForeground(l) ? f < 0 ? 100 : f : m.length === 1 ? m[0] : p < 0 ? 0 : p;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}(), he = new class {
|
|
866
|
+
getHct(e, t) {
|
|
867
|
+
let n = t.palette(e), r = t.getTone(e), i = n.hue, a = n.chroma * (t.chromaMultiplier ? t.chromaMultiplier(e) : 1);
|
|
868
|
+
return P.from(i, a, r);
|
|
869
|
+
}
|
|
870
|
+
getTone(e, t) {
|
|
871
|
+
let n = t.toneDeltaPair ? t.toneDeltaPair(e) : void 0;
|
|
872
|
+
if (n) {
|
|
873
|
+
let r = n.roleA, i = n.roleB, a = n.polarity, o = n.constraint, s = a === "darker" || a === "relative_lighter" && e.isDark || a === "relative_darker" && !e.isDark ? -n.delta : n.delta, c = t.name === r.name, l = c ? i : r, u = (c ? r : i).tone(e), d = l.getTone(e), f = s * (c ? 1 : -1);
|
|
874
|
+
if (o === "exact" ? u = w(0, 100, d + f) : o === "nearer" ? u = w(0, 100, f > 0 ? w(d, d + f, u) : w(d + f, d, u)) : o === "farther" && (u = f > 0 ? w(d + f, 100, u) : w(0, d + f, u)), t.background && t.contrastCurve) {
|
|
875
|
+
let n = t.background(e), r = t.contrastCurve(e);
|
|
876
|
+
if (n && r) {
|
|
877
|
+
let t = n.getTone(e), i = r.get(e.contrastLevel);
|
|
878
|
+
u = F.ratioOfTones(t, u) >= i && e.contrastLevel >= 0 ? u : L.foregroundTone(t, i);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
return t.isBackground && !t.name.endsWith("_fixed_dim") && (u = u >= 57 ? w(65, 100, u) : w(0, 49, u)), u;
|
|
882
|
+
}
|
|
883
|
+
{
|
|
884
|
+
let n = t.tone(e);
|
|
885
|
+
if (t.background == null || t.background(e) === void 0 || t.contrastCurve == null || t.contrastCurve(e) === void 0) return n;
|
|
886
|
+
let r = t.background(e).getTone(e), i = t.contrastCurve(e).get(e.contrastLevel);
|
|
887
|
+
if (n = F.ratioOfTones(r, n) >= i && e.contrastLevel >= 0 ? n : L.foregroundTone(r, i), t.isBackground && !t.name.endsWith("_fixed_dim") && (n = n >= 57 ? w(65, 100, n) : w(0, 49, n)), t.secondBackground == null || t.secondBackground(e) === void 0) return n;
|
|
888
|
+
let [a, o] = [t.background, t.secondBackground], [s, c] = [a(e).getTone(e), o(e).getTone(e)], [l, u] = [Math.max(s, c), Math.min(s, c)];
|
|
889
|
+
if (F.ratioOfTones(l, n) >= i && F.ratioOfTones(u, n) >= i) return n;
|
|
890
|
+
let d = F.lighter(l, i), f = F.darker(u, i), p = [];
|
|
891
|
+
return d !== -1 && p.push(d), f !== -1 && p.push(f), L.tonePrefersLightForeground(s) || L.tonePrefersLightForeground(c) ? d < 0 ? 100 : d : p.length === 1 ? p[0] : f < 0 ? 0 : f;
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
}();
|
|
895
|
+
function ge(e) {
|
|
896
|
+
return e === "2025" ? he : me;
|
|
897
|
+
}
|
|
898
|
+
var R, z = class e {
|
|
899
|
+
static fromInt(t) {
|
|
900
|
+
let n = P.fromInt(t);
|
|
901
|
+
return e.fromHct(n);
|
|
902
|
+
}
|
|
903
|
+
static fromHct(t) {
|
|
904
|
+
return new e(t.hue, t.chroma, t);
|
|
905
|
+
}
|
|
906
|
+
static fromHueAndChroma(t, n) {
|
|
907
|
+
return new e(t, n, new _e(t, n).create());
|
|
908
|
+
}
|
|
909
|
+
constructor(e, t, n) {
|
|
910
|
+
this.hue = e, this.chroma = t, this.keyColor = n, this.cache = /* @__PURE__ */ new Map();
|
|
911
|
+
}
|
|
912
|
+
tone(e) {
|
|
913
|
+
let t = this.cache.get(e);
|
|
914
|
+
return t === void 0 && (t = e == 99 && P.isYellow(this.hue) ? this.averageArgb(this.tone(98), this.tone(100)) : P.from(this.hue, this.chroma, e).toInt(), this.cache.set(e, t)), t;
|
|
915
|
+
}
|
|
916
|
+
getHct(e) {
|
|
917
|
+
return P.fromInt(this.tone(e));
|
|
918
|
+
}
|
|
919
|
+
averageArgb(e, t) {
|
|
920
|
+
let n = e >>> 16 & 255, r = e >>> 8 & 255, i = 255 & e, a = t >>> 16 & 255, o = t >>> 8 & 255, s = 255 & t;
|
|
921
|
+
return (255 << 24 | (255 & Math.round((n + a) / 2)) << 16 | (255 & Math.round((r + o) / 2)) << 8 | 255 & Math.round((i + s) / 2)) >>> 0;
|
|
922
|
+
}
|
|
923
|
+
}, _e = class {
|
|
924
|
+
constructor(e, t) {
|
|
925
|
+
this.hue = e, this.requestedChroma = t, this.chromaCache = /* @__PURE__ */ new Map(), this.maxChromaValue = 200;
|
|
926
|
+
}
|
|
927
|
+
create() {
|
|
928
|
+
let e = 0, t = 100;
|
|
929
|
+
for (; e < t;) {
|
|
930
|
+
let n = Math.floor((e + t) / 2), r = this.maxChroma(n) < this.maxChroma(n + 1);
|
|
931
|
+
if (this.maxChroma(n) >= this.requestedChroma - .01) if (Math.abs(e - 50) < Math.abs(t - 50)) t = n;
|
|
932
|
+
else {
|
|
933
|
+
if (e === n) return P.from(this.hue, this.requestedChroma, e);
|
|
934
|
+
e = n;
|
|
935
|
+
}
|
|
936
|
+
else r ? e = n + 1 : t = n;
|
|
937
|
+
}
|
|
938
|
+
return P.from(this.hue, this.requestedChroma, e);
|
|
939
|
+
}
|
|
940
|
+
maxChroma(e) {
|
|
941
|
+
if (this.chromaCache.has(e)) return this.chromaCache.get(e);
|
|
942
|
+
let t = P.from(this.hue, this.maxChromaValue, e).chroma;
|
|
943
|
+
return this.chromaCache.set(e, t), t;
|
|
944
|
+
}
|
|
945
|
+
}, ve = class e {
|
|
946
|
+
constructor(e) {
|
|
947
|
+
this.input = e, this.hctsByTempCache = [], this.hctsByHueCache = [], this.tempsByHctCache = /* @__PURE__ */ new Map(), this.inputRelativeTemperatureCache = -1, this.complementCache = null;
|
|
948
|
+
}
|
|
949
|
+
get hctsByTemp() {
|
|
950
|
+
if (this.hctsByTempCache.length > 0) return this.hctsByTempCache;
|
|
951
|
+
let e = this.hctsByHue.concat([this.input]), t = this.tempsByHct;
|
|
952
|
+
return e.sort((e, n) => t.get(e) - t.get(n)), this.hctsByTempCache = e, e;
|
|
953
|
+
}
|
|
954
|
+
get warmest() {
|
|
955
|
+
return this.hctsByTemp[this.hctsByTemp.length - 1];
|
|
956
|
+
}
|
|
957
|
+
get coldest() {
|
|
958
|
+
return this.hctsByTemp[0];
|
|
959
|
+
}
|
|
960
|
+
analogous(e = 5, t = 12) {
|
|
961
|
+
let n = Math.round(this.input.hue), r = this.hctsByHue[n], i = this.relativeTemperature(r), a = [r], o = 0;
|
|
962
|
+
for (let e = 0; e < 360; e++) {
|
|
963
|
+
let t = T(n + e), r = this.hctsByHue[t], a = this.relativeTemperature(r), s = Math.abs(a - i);
|
|
964
|
+
i = a, o += s;
|
|
965
|
+
}
|
|
966
|
+
let s = 1, c = o / t, l = 0;
|
|
967
|
+
for (i = this.relativeTemperature(r); a.length < t;) {
|
|
968
|
+
let e = T(n + s), r = this.hctsByHue[e], o = this.relativeTemperature(r);
|
|
969
|
+
l += Math.abs(o - i);
|
|
970
|
+
let u = l >= a.length * c, d = 1;
|
|
971
|
+
for (; u && a.length < t;) a.push(r), u = l >= (a.length + d) * c, d++;
|
|
972
|
+
if (i = o, s++, s > 360) {
|
|
973
|
+
for (; a.length < t;) a.push(r);
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
let u = [this.input], d = Math.floor((e - 1) / 2);
|
|
978
|
+
for (let e = 1; e < d + 1; e++) {
|
|
979
|
+
let t = 0 - e;
|
|
980
|
+
for (; t < 0;) t = a.length + t;
|
|
981
|
+
t >= a.length && (t %= a.length), u.splice(0, 0, a[t]);
|
|
982
|
+
}
|
|
983
|
+
let f = e - d - 1;
|
|
984
|
+
for (let e = 1; e < f + 1; e++) {
|
|
985
|
+
let t = e;
|
|
986
|
+
for (; t < 0;) t = a.length + t;
|
|
987
|
+
t >= a.length && (t %= a.length), u.push(a[t]);
|
|
988
|
+
}
|
|
989
|
+
return u;
|
|
990
|
+
}
|
|
991
|
+
get complement() {
|
|
992
|
+
if (this.complementCache != null) return this.complementCache;
|
|
993
|
+
let t = this.coldest.hue, n = this.tempsByHct.get(this.coldest), r = this.warmest.hue, i = this.tempsByHct.get(this.warmest) - n, a = e.isBetween(this.input.hue, t, r), o = a ? r : t, s = a ? t : r, c = 1e3, l = this.hctsByHue[Math.round(this.input.hue)], u = 1 - this.inputRelativeTemperature;
|
|
994
|
+
for (let t = 0; t <= 360; t += 1) {
|
|
995
|
+
let r = E(o + 1 * t);
|
|
996
|
+
if (!e.isBetween(r, o, s)) continue;
|
|
997
|
+
let a = this.hctsByHue[Math.round(r)], d = (this.tempsByHct.get(a) - n) / i, f = Math.abs(u - d);
|
|
998
|
+
f < c && (c = f, l = a);
|
|
999
|
+
}
|
|
1000
|
+
return this.complementCache = l, this.complementCache;
|
|
1001
|
+
}
|
|
1002
|
+
relativeTemperature(e) {
|
|
1003
|
+
let t = this.tempsByHct.get(this.warmest) - this.tempsByHct.get(this.coldest), n = this.tempsByHct.get(e) - this.tempsByHct.get(this.coldest);
|
|
1004
|
+
return t === 0 ? .5 : n / t;
|
|
1005
|
+
}
|
|
1006
|
+
get inputRelativeTemperature() {
|
|
1007
|
+
return this.inputRelativeTemperatureCache >= 0 || (this.inputRelativeTemperatureCache = this.relativeTemperature(this.input)), this.inputRelativeTemperatureCache;
|
|
1008
|
+
}
|
|
1009
|
+
get tempsByHct() {
|
|
1010
|
+
if (this.tempsByHctCache.size > 0) return this.tempsByHctCache;
|
|
1011
|
+
let t = this.hctsByHue.concat([this.input]), n = /* @__PURE__ */ new Map();
|
|
1012
|
+
for (let r of t) n.set(r, e.rawTemperature(r));
|
|
1013
|
+
return this.tempsByHctCache = n, n;
|
|
1014
|
+
}
|
|
1015
|
+
get hctsByHue() {
|
|
1016
|
+
if (this.hctsByHueCache.length > 0) return this.hctsByHueCache;
|
|
1017
|
+
let e = [];
|
|
1018
|
+
for (let t = 0; t <= 360; t += 1) {
|
|
1019
|
+
let n = P.from(t, this.input.chroma, this.input.tone);
|
|
1020
|
+
e.push(n);
|
|
1021
|
+
}
|
|
1022
|
+
return this.hctsByHueCache = e, this.hctsByHueCache;
|
|
1023
|
+
}
|
|
1024
|
+
static isBetween(e, t, n) {
|
|
1025
|
+
return t < n ? t <= e && e <= n : t <= e || e <= n;
|
|
1026
|
+
}
|
|
1027
|
+
static rawTemperature(e) {
|
|
1028
|
+
let t = function(e) {
|
|
1029
|
+
let t = A(ae(e)), n = A(oe(e)), r = A(se(e)), i = D, a = i[0][0] * t + i[0][1] * n + i[0][2] * r, o = i[1][0] * t + i[1][1] * n + i[1][2] * r, s = i[2][0] * t + i[2][1] * n + i[2][2] * r, c = o / O[1], l = s / O[2], u = de(a / O[0]), d = de(c);
|
|
1030
|
+
return [
|
|
1031
|
+
116 * d - 16,
|
|
1032
|
+
500 * (u - d),
|
|
1033
|
+
200 * (d - de(l))
|
|
1034
|
+
];
|
|
1035
|
+
}(e.toInt()), n = E(180 * Math.atan2(t[2], t[1]) / Math.PI);
|
|
1036
|
+
return .02 * Math.sqrt(t[1] * t[1] + t[2] * t[2]) ** 1.07 * Math.cos(E(n - 50) * Math.PI / 180) - .5;
|
|
1037
|
+
}
|
|
1038
|
+
}, B = class {
|
|
1039
|
+
constructor(e, t, n, r) {
|
|
1040
|
+
this.low = e, this.normal = t, this.medium = n, this.high = r;
|
|
1041
|
+
}
|
|
1042
|
+
get(e) {
|
|
1043
|
+
return e <= -1 ? this.low : e < 0 ? C(this.low, this.normal, (e - -1) / 1) : e < .5 ? C(this.normal, this.medium, (e - 0) / .5) : e < 1 ? C(this.medium, this.high, (e - .5) / .5) : this.high;
|
|
1044
|
+
}
|
|
1045
|
+
}, V = class {
|
|
1046
|
+
constructor(e, t, n, r, i, a) {
|
|
1047
|
+
this.roleA = e, this.roleB = t, this.delta = n, this.polarity = r, this.stayTogether = i, this.constraint = a, this.constraint = a ?? "exact";
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
function ye(e) {
|
|
1051
|
+
return e.variant === R.FIDELITY || e.variant === R.CONTENT;
|
|
1052
|
+
}
|
|
1053
|
+
function H(e) {
|
|
1054
|
+
return e.variant === R.MONOCHROME;
|
|
1055
|
+
}
|
|
1056
|
+
(function(e) {
|
|
1057
|
+
e[e.MONOCHROME = 0] = "MONOCHROME", e[e.NEUTRAL = 1] = "NEUTRAL", e[e.TONAL_SPOT = 2] = "TONAL_SPOT", e[e.VIBRANT = 3] = "VIBRANT", e[e.EXPRESSIVE = 4] = "EXPRESSIVE", e[e.FIDELITY = 5] = "FIDELITY", e[e.CONTENT = 6] = "CONTENT", e[e.RAINBOW = 7] = "RAINBOW", e[e.FRUIT_SALAD = 8] = "FRUIT_SALAD";
|
|
1058
|
+
})(R ||= {});
|
|
1059
|
+
var be = class {
|
|
1060
|
+
primaryPaletteKeyColor() {
|
|
1061
|
+
return L.fromPalette({
|
|
1062
|
+
name: "primary_palette_key_color",
|
|
1063
|
+
palette: (e) => e.primaryPalette,
|
|
1064
|
+
tone: (e) => e.primaryPalette.keyColor.tone
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
secondaryPaletteKeyColor() {
|
|
1068
|
+
return L.fromPalette({
|
|
1069
|
+
name: "secondary_palette_key_color",
|
|
1070
|
+
palette: (e) => e.secondaryPalette,
|
|
1071
|
+
tone: (e) => e.secondaryPalette.keyColor.tone
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
tertiaryPaletteKeyColor() {
|
|
1075
|
+
return L.fromPalette({
|
|
1076
|
+
name: "tertiary_palette_key_color",
|
|
1077
|
+
palette: (e) => e.tertiaryPalette,
|
|
1078
|
+
tone: (e) => e.tertiaryPalette.keyColor.tone
|
|
1079
|
+
});
|
|
1080
|
+
}
|
|
1081
|
+
neutralPaletteKeyColor() {
|
|
1082
|
+
return L.fromPalette({
|
|
1083
|
+
name: "neutral_palette_key_color",
|
|
1084
|
+
palette: (e) => e.neutralPalette,
|
|
1085
|
+
tone: (e) => e.neutralPalette.keyColor.tone
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
neutralVariantPaletteKeyColor() {
|
|
1089
|
+
return L.fromPalette({
|
|
1090
|
+
name: "neutral_variant_palette_key_color",
|
|
1091
|
+
palette: (e) => e.neutralVariantPalette,
|
|
1092
|
+
tone: (e) => e.neutralVariantPalette.keyColor.tone
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
errorPaletteKeyColor() {
|
|
1096
|
+
return L.fromPalette({
|
|
1097
|
+
name: "error_palette_key_color",
|
|
1098
|
+
palette: (e) => e.errorPalette,
|
|
1099
|
+
tone: (e) => e.errorPalette.keyColor.tone
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
background() {
|
|
1103
|
+
return L.fromPalette({
|
|
1104
|
+
name: "background",
|
|
1105
|
+
palette: (e) => e.neutralPalette,
|
|
1106
|
+
tone: (e) => e.isDark ? 6 : 98,
|
|
1107
|
+
isBackground: !0
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
onBackground() {
|
|
1111
|
+
return L.fromPalette({
|
|
1112
|
+
name: "on_background",
|
|
1113
|
+
palette: (e) => e.neutralPalette,
|
|
1114
|
+
tone: (e) => e.isDark ? 90 : 10,
|
|
1115
|
+
background: (e) => this.background(),
|
|
1116
|
+
contrastCurve: (e) => new B(3, 3, 4.5, 7)
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
surface() {
|
|
1120
|
+
return L.fromPalette({
|
|
1121
|
+
name: "surface",
|
|
1122
|
+
palette: (e) => e.neutralPalette,
|
|
1123
|
+
tone: (e) => e.isDark ? 6 : 98,
|
|
1124
|
+
isBackground: !0
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
surfaceDim() {
|
|
1128
|
+
return L.fromPalette({
|
|
1129
|
+
name: "surface_dim",
|
|
1130
|
+
palette: (e) => e.neutralPalette,
|
|
1131
|
+
tone: (e) => e.isDark ? 6 : new B(87, 87, 80, 75).get(e.contrastLevel),
|
|
1132
|
+
isBackground: !0
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
surfaceBright() {
|
|
1136
|
+
return L.fromPalette({
|
|
1137
|
+
name: "surface_bright",
|
|
1138
|
+
palette: (e) => e.neutralPalette,
|
|
1139
|
+
tone: (e) => e.isDark ? new B(24, 24, 29, 34).get(e.contrastLevel) : 98,
|
|
1140
|
+
isBackground: !0
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
1143
|
+
surfaceContainerLowest() {
|
|
1144
|
+
return L.fromPalette({
|
|
1145
|
+
name: "surface_container_lowest",
|
|
1146
|
+
palette: (e) => e.neutralPalette,
|
|
1147
|
+
tone: (e) => e.isDark ? new B(4, 4, 2, 0).get(e.contrastLevel) : 100,
|
|
1148
|
+
isBackground: !0
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
surfaceContainerLow() {
|
|
1152
|
+
return L.fromPalette({
|
|
1153
|
+
name: "surface_container_low",
|
|
1154
|
+
palette: (e) => e.neutralPalette,
|
|
1155
|
+
tone: (e) => e.isDark ? new B(10, 10, 11, 12).get(e.contrastLevel) : new B(96, 96, 96, 95).get(e.contrastLevel),
|
|
1156
|
+
isBackground: !0
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
surfaceContainer() {
|
|
1160
|
+
return L.fromPalette({
|
|
1161
|
+
name: "surface_container",
|
|
1162
|
+
palette: (e) => e.neutralPalette,
|
|
1163
|
+
tone: (e) => e.isDark ? new B(12, 12, 16, 20).get(e.contrastLevel) : new B(94, 94, 92, 90).get(e.contrastLevel),
|
|
1164
|
+
isBackground: !0
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
surfaceContainerHigh() {
|
|
1168
|
+
return L.fromPalette({
|
|
1169
|
+
name: "surface_container_high",
|
|
1170
|
+
palette: (e) => e.neutralPalette,
|
|
1171
|
+
tone: (e) => e.isDark ? new B(17, 17, 21, 25).get(e.contrastLevel) : new B(92, 92, 88, 85).get(e.contrastLevel),
|
|
1172
|
+
isBackground: !0
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
surfaceContainerHighest() {
|
|
1176
|
+
return L.fromPalette({
|
|
1177
|
+
name: "surface_container_highest",
|
|
1178
|
+
palette: (e) => e.neutralPalette,
|
|
1179
|
+
tone: (e) => e.isDark ? new B(22, 22, 26, 30).get(e.contrastLevel) : new B(90, 90, 84, 80).get(e.contrastLevel),
|
|
1180
|
+
isBackground: !0
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
onSurface() {
|
|
1184
|
+
return L.fromPalette({
|
|
1185
|
+
name: "on_surface",
|
|
1186
|
+
palette: (e) => e.neutralPalette,
|
|
1187
|
+
tone: (e) => e.isDark ? 90 : 10,
|
|
1188
|
+
background: (e) => this.highestSurface(e),
|
|
1189
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
surfaceVariant() {
|
|
1193
|
+
return L.fromPalette({
|
|
1194
|
+
name: "surface_variant",
|
|
1195
|
+
palette: (e) => e.neutralVariantPalette,
|
|
1196
|
+
tone: (e) => e.isDark ? 30 : 90,
|
|
1197
|
+
isBackground: !0
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
onSurfaceVariant() {
|
|
1201
|
+
return L.fromPalette({
|
|
1202
|
+
name: "on_surface_variant",
|
|
1203
|
+
palette: (e) => e.neutralVariantPalette,
|
|
1204
|
+
tone: (e) => e.isDark ? 80 : 30,
|
|
1205
|
+
background: (e) => this.highestSurface(e),
|
|
1206
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1207
|
+
});
|
|
1208
|
+
}
|
|
1209
|
+
inverseSurface() {
|
|
1210
|
+
return L.fromPalette({
|
|
1211
|
+
name: "inverse_surface",
|
|
1212
|
+
palette: (e) => e.neutralPalette,
|
|
1213
|
+
tone: (e) => e.isDark ? 90 : 20,
|
|
1214
|
+
isBackground: !0
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
inverseOnSurface() {
|
|
1218
|
+
return L.fromPalette({
|
|
1219
|
+
name: "inverse_on_surface",
|
|
1220
|
+
palette: (e) => e.neutralPalette,
|
|
1221
|
+
tone: (e) => e.isDark ? 20 : 95,
|
|
1222
|
+
background: (e) => this.inverseSurface(),
|
|
1223
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
outline() {
|
|
1227
|
+
return L.fromPalette({
|
|
1228
|
+
name: "outline",
|
|
1229
|
+
palette: (e) => e.neutralVariantPalette,
|
|
1230
|
+
tone: (e) => e.isDark ? 60 : 50,
|
|
1231
|
+
background: (e) => this.highestSurface(e),
|
|
1232
|
+
contrastCurve: (e) => new B(1.5, 3, 4.5, 7)
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
outlineVariant() {
|
|
1236
|
+
return L.fromPalette({
|
|
1237
|
+
name: "outline_variant",
|
|
1238
|
+
palette: (e) => e.neutralVariantPalette,
|
|
1239
|
+
tone: (e) => e.isDark ? 30 : 80,
|
|
1240
|
+
background: (e) => this.highestSurface(e),
|
|
1241
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5)
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1244
|
+
shadow() {
|
|
1245
|
+
return L.fromPalette({
|
|
1246
|
+
name: "shadow",
|
|
1247
|
+
palette: (e) => e.neutralPalette,
|
|
1248
|
+
tone: (e) => 0
|
|
1249
|
+
});
|
|
1250
|
+
}
|
|
1251
|
+
scrim() {
|
|
1252
|
+
return L.fromPalette({
|
|
1253
|
+
name: "scrim",
|
|
1254
|
+
palette: (e) => e.neutralPalette,
|
|
1255
|
+
tone: (e) => 0
|
|
1256
|
+
});
|
|
1257
|
+
}
|
|
1258
|
+
surfaceTint() {
|
|
1259
|
+
return L.fromPalette({
|
|
1260
|
+
name: "surface_tint",
|
|
1261
|
+
palette: (e) => e.primaryPalette,
|
|
1262
|
+
tone: (e) => e.isDark ? 80 : 40,
|
|
1263
|
+
isBackground: !0
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
primary() {
|
|
1267
|
+
return L.fromPalette({
|
|
1268
|
+
name: "primary",
|
|
1269
|
+
palette: (e) => e.primaryPalette,
|
|
1270
|
+
tone: (e) => H(e) ? e.isDark ? 100 : 0 : e.isDark ? 80 : 40,
|
|
1271
|
+
isBackground: !0,
|
|
1272
|
+
background: (e) => this.highestSurface(e),
|
|
1273
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 7),
|
|
1274
|
+
toneDeltaPair: (e) => new V(this.primaryContainer(), this.primary(), 10, "nearer", !1)
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
primaryDim() {}
|
|
1278
|
+
onPrimary() {
|
|
1279
|
+
return L.fromPalette({
|
|
1280
|
+
name: "on_primary",
|
|
1281
|
+
palette: (e) => e.primaryPalette,
|
|
1282
|
+
tone: (e) => H(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
|
|
1283
|
+
background: (e) => this.primary(),
|
|
1284
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
primaryContainer() {
|
|
1288
|
+
return L.fromPalette({
|
|
1289
|
+
name: "primary_container",
|
|
1290
|
+
palette: (e) => e.primaryPalette,
|
|
1291
|
+
tone: (e) => ye(e) ? e.sourceColorHct.tone : H(e) ? e.isDark ? 85 : 25 : e.isDark ? 30 : 90,
|
|
1292
|
+
isBackground: !0,
|
|
1293
|
+
background: (e) => this.highestSurface(e),
|
|
1294
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1295
|
+
toneDeltaPair: (e) => new V(this.primaryContainer(), this.primary(), 10, "nearer", !1)
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
onPrimaryContainer() {
|
|
1299
|
+
return L.fromPalette({
|
|
1300
|
+
name: "on_primary_container",
|
|
1301
|
+
palette: (e) => e.primaryPalette,
|
|
1302
|
+
tone: (e) => ye(e) ? L.foregroundTone(this.primaryContainer().tone(e), 4.5) : H(e) ? e.isDark ? 0 : 100 : e.isDark ? 90 : 30,
|
|
1303
|
+
background: (e) => this.primaryContainer(),
|
|
1304
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
inversePrimary() {
|
|
1308
|
+
return L.fromPalette({
|
|
1309
|
+
name: "inverse_primary",
|
|
1310
|
+
palette: (e) => e.primaryPalette,
|
|
1311
|
+
tone: (e) => e.isDark ? 40 : 80,
|
|
1312
|
+
background: (e) => this.inverseSurface(),
|
|
1313
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 7)
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
secondary() {
|
|
1317
|
+
return L.fromPalette({
|
|
1318
|
+
name: "secondary",
|
|
1319
|
+
palette: (e) => e.secondaryPalette,
|
|
1320
|
+
tone: (e) => e.isDark ? 80 : 40,
|
|
1321
|
+
isBackground: !0,
|
|
1322
|
+
background: (e) => this.highestSurface(e),
|
|
1323
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 7),
|
|
1324
|
+
toneDeltaPair: (e) => new V(this.secondaryContainer(), this.secondary(), 10, "nearer", !1)
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
secondaryDim() {}
|
|
1328
|
+
onSecondary() {
|
|
1329
|
+
return L.fromPalette({
|
|
1330
|
+
name: "on_secondary",
|
|
1331
|
+
palette: (e) => e.secondaryPalette,
|
|
1332
|
+
tone: (e) => H(e) ? e.isDark ? 10 : 100 : e.isDark ? 20 : 100,
|
|
1333
|
+
background: (e) => this.secondary(),
|
|
1334
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
secondaryContainer() {
|
|
1338
|
+
return L.fromPalette({
|
|
1339
|
+
name: "secondary_container",
|
|
1340
|
+
palette: (e) => e.secondaryPalette,
|
|
1341
|
+
tone: (e) => {
|
|
1342
|
+
let t = e.isDark ? 30 : 90;
|
|
1343
|
+
return H(e) ? e.isDark ? 30 : 85 : ye(e) ? function(e, t, n, r) {
|
|
1344
|
+
let i = n, a = P.from(e, t, n);
|
|
1345
|
+
if (a.chroma < t) {
|
|
1346
|
+
let n = a.chroma;
|
|
1347
|
+
for (; a.chroma < t;) {
|
|
1348
|
+
i += r ? -1 : 1;
|
|
1349
|
+
let o = P.from(e, t, i);
|
|
1350
|
+
if (n > o.chroma || Math.abs(o.chroma - t) < .4) break;
|
|
1351
|
+
Math.abs(o.chroma - t) < Math.abs(a.chroma - t) && (a = o), n = Math.max(n, o.chroma);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
return i;
|
|
1355
|
+
}(e.secondaryPalette.hue, e.secondaryPalette.chroma, t, !e.isDark) : t;
|
|
1356
|
+
},
|
|
1357
|
+
isBackground: !0,
|
|
1358
|
+
background: (e) => this.highestSurface(e),
|
|
1359
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1360
|
+
toneDeltaPair: (e) => new V(this.secondaryContainer(), this.secondary(), 10, "nearer", !1)
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
onSecondaryContainer() {
|
|
1364
|
+
return L.fromPalette({
|
|
1365
|
+
name: "on_secondary_container",
|
|
1366
|
+
palette: (e) => e.secondaryPalette,
|
|
1367
|
+
tone: (e) => H(e) ? e.isDark ? 90 : 10 : ye(e) ? L.foregroundTone(this.secondaryContainer().tone(e), 4.5) : e.isDark ? 90 : 30,
|
|
1368
|
+
background: (e) => this.secondaryContainer(),
|
|
1369
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1370
|
+
});
|
|
1371
|
+
}
|
|
1372
|
+
tertiary() {
|
|
1373
|
+
return L.fromPalette({
|
|
1374
|
+
name: "tertiary",
|
|
1375
|
+
palette: (e) => e.tertiaryPalette,
|
|
1376
|
+
tone: (e) => H(e) ? e.isDark ? 90 : 25 : e.isDark ? 80 : 40,
|
|
1377
|
+
isBackground: !0,
|
|
1378
|
+
background: (e) => this.highestSurface(e),
|
|
1379
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 7),
|
|
1380
|
+
toneDeltaPair: (e) => new V(this.tertiaryContainer(), this.tertiary(), 10, "nearer", !1)
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
tertiaryDim() {}
|
|
1384
|
+
onTertiary() {
|
|
1385
|
+
return L.fromPalette({
|
|
1386
|
+
name: "on_tertiary",
|
|
1387
|
+
palette: (e) => e.tertiaryPalette,
|
|
1388
|
+
tone: (e) => H(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100,
|
|
1389
|
+
background: (e) => this.tertiary(),
|
|
1390
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
tertiaryContainer() {
|
|
1394
|
+
return L.fromPalette({
|
|
1395
|
+
name: "tertiary_container",
|
|
1396
|
+
palette: (e) => e.tertiaryPalette,
|
|
1397
|
+
tone: (e) => {
|
|
1398
|
+
if (H(e)) return e.isDark ? 60 : 49;
|
|
1399
|
+
if (!ye(e)) return e.isDark ? 30 : 90;
|
|
1400
|
+
let t = e.tertiaryPalette.getHct(e.sourceColorHct.tone);
|
|
1401
|
+
return pe.fixIfDisliked(t).tone;
|
|
1402
|
+
},
|
|
1403
|
+
isBackground: !0,
|
|
1404
|
+
background: (e) => this.highestSurface(e),
|
|
1405
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1406
|
+
toneDeltaPair: (e) => new V(this.tertiaryContainer(), this.tertiary(), 10, "nearer", !1)
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
onTertiaryContainer() {
|
|
1410
|
+
return L.fromPalette({
|
|
1411
|
+
name: "on_tertiary_container",
|
|
1412
|
+
palette: (e) => e.tertiaryPalette,
|
|
1413
|
+
tone: (e) => H(e) ? e.isDark ? 0 : 100 : ye(e) ? L.foregroundTone(this.tertiaryContainer().tone(e), 4.5) : e.isDark ? 90 : 30,
|
|
1414
|
+
background: (e) => this.tertiaryContainer(),
|
|
1415
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
error() {
|
|
1419
|
+
return L.fromPalette({
|
|
1420
|
+
name: "error",
|
|
1421
|
+
palette: (e) => e.errorPalette,
|
|
1422
|
+
tone: (e) => e.isDark ? 80 : 40,
|
|
1423
|
+
isBackground: !0,
|
|
1424
|
+
background: (e) => this.highestSurface(e),
|
|
1425
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 7),
|
|
1426
|
+
toneDeltaPair: (e) => new V(this.errorContainer(), this.error(), 10, "nearer", !1)
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
errorDim() {}
|
|
1430
|
+
onError() {
|
|
1431
|
+
return L.fromPalette({
|
|
1432
|
+
name: "on_error",
|
|
1433
|
+
palette: (e) => e.errorPalette,
|
|
1434
|
+
tone: (e) => e.isDark ? 20 : 100,
|
|
1435
|
+
background: (e) => this.error(),
|
|
1436
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
errorContainer() {
|
|
1440
|
+
return L.fromPalette({
|
|
1441
|
+
name: "error_container",
|
|
1442
|
+
palette: (e) => e.errorPalette,
|
|
1443
|
+
tone: (e) => e.isDark ? 30 : 90,
|
|
1444
|
+
isBackground: !0,
|
|
1445
|
+
background: (e) => this.highestSurface(e),
|
|
1446
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1447
|
+
toneDeltaPair: (e) => new V(this.errorContainer(), this.error(), 10, "nearer", !1)
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
onErrorContainer() {
|
|
1451
|
+
return L.fromPalette({
|
|
1452
|
+
name: "on_error_container",
|
|
1453
|
+
palette: (e) => e.errorPalette,
|
|
1454
|
+
tone: (e) => H(e) ? e.isDark ? 90 : 10 : e.isDark ? 90 : 30,
|
|
1455
|
+
background: (e) => this.errorContainer(),
|
|
1456
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
primaryFixed() {
|
|
1460
|
+
return L.fromPalette({
|
|
1461
|
+
name: "primary_fixed",
|
|
1462
|
+
palette: (e) => e.primaryPalette,
|
|
1463
|
+
tone: (e) => H(e) ? 40 : 90,
|
|
1464
|
+
isBackground: !0,
|
|
1465
|
+
background: (e) => this.highestSurface(e),
|
|
1466
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1467
|
+
toneDeltaPair: (e) => new V(this.primaryFixed(), this.primaryFixedDim(), 10, "lighter", !0)
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
primaryFixedDim() {
|
|
1471
|
+
return L.fromPalette({
|
|
1472
|
+
name: "primary_fixed_dim",
|
|
1473
|
+
palette: (e) => e.primaryPalette,
|
|
1474
|
+
tone: (e) => H(e) ? 30 : 80,
|
|
1475
|
+
isBackground: !0,
|
|
1476
|
+
background: (e) => this.highestSurface(e),
|
|
1477
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1478
|
+
toneDeltaPair: (e) => new V(this.primaryFixed(), this.primaryFixedDim(), 10, "lighter", !0)
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
onPrimaryFixed() {
|
|
1482
|
+
return L.fromPalette({
|
|
1483
|
+
name: "on_primary_fixed",
|
|
1484
|
+
palette: (e) => e.primaryPalette,
|
|
1485
|
+
tone: (e) => H(e) ? 100 : 10,
|
|
1486
|
+
background: (e) => this.primaryFixedDim(),
|
|
1487
|
+
secondBackground: (e) => this.primaryFixed(),
|
|
1488
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
onPrimaryFixedVariant() {
|
|
1492
|
+
return L.fromPalette({
|
|
1493
|
+
name: "on_primary_fixed_variant",
|
|
1494
|
+
palette: (e) => e.primaryPalette,
|
|
1495
|
+
tone: (e) => H(e) ? 90 : 30,
|
|
1496
|
+
background: (e) => this.primaryFixedDim(),
|
|
1497
|
+
secondBackground: (e) => this.primaryFixed(),
|
|
1498
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
secondaryFixed() {
|
|
1502
|
+
return L.fromPalette({
|
|
1503
|
+
name: "secondary_fixed",
|
|
1504
|
+
palette: (e) => e.secondaryPalette,
|
|
1505
|
+
tone: (e) => H(e) ? 80 : 90,
|
|
1506
|
+
isBackground: !0,
|
|
1507
|
+
background: (e) => this.highestSurface(e),
|
|
1508
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1509
|
+
toneDeltaPair: (e) => new V(this.secondaryFixed(), this.secondaryFixedDim(), 10, "lighter", !0)
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
secondaryFixedDim() {
|
|
1513
|
+
return L.fromPalette({
|
|
1514
|
+
name: "secondary_fixed_dim",
|
|
1515
|
+
palette: (e) => e.secondaryPalette,
|
|
1516
|
+
tone: (e) => H(e) ? 70 : 80,
|
|
1517
|
+
isBackground: !0,
|
|
1518
|
+
background: (e) => this.highestSurface(e),
|
|
1519
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1520
|
+
toneDeltaPair: (e) => new V(this.secondaryFixed(), this.secondaryFixedDim(), 10, "lighter", !0)
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
onSecondaryFixed() {
|
|
1524
|
+
return L.fromPalette({
|
|
1525
|
+
name: "on_secondary_fixed",
|
|
1526
|
+
palette: (e) => e.secondaryPalette,
|
|
1527
|
+
tone: (e) => 10,
|
|
1528
|
+
background: (e) => this.secondaryFixedDim(),
|
|
1529
|
+
secondBackground: (e) => this.secondaryFixed(),
|
|
1530
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1533
|
+
onSecondaryFixedVariant() {
|
|
1534
|
+
return L.fromPalette({
|
|
1535
|
+
name: "on_secondary_fixed_variant",
|
|
1536
|
+
palette: (e) => e.secondaryPalette,
|
|
1537
|
+
tone: (e) => H(e) ? 25 : 30,
|
|
1538
|
+
background: (e) => this.secondaryFixedDim(),
|
|
1539
|
+
secondBackground: (e) => this.secondaryFixed(),
|
|
1540
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1543
|
+
tertiaryFixed() {
|
|
1544
|
+
return L.fromPalette({
|
|
1545
|
+
name: "tertiary_fixed",
|
|
1546
|
+
palette: (e) => e.tertiaryPalette,
|
|
1547
|
+
tone: (e) => H(e) ? 40 : 90,
|
|
1548
|
+
isBackground: !0,
|
|
1549
|
+
background: (e) => this.highestSurface(e),
|
|
1550
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1551
|
+
toneDeltaPair: (e) => new V(this.tertiaryFixed(), this.tertiaryFixedDim(), 10, "lighter", !0)
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
tertiaryFixedDim() {
|
|
1555
|
+
return L.fromPalette({
|
|
1556
|
+
name: "tertiary_fixed_dim",
|
|
1557
|
+
palette: (e) => e.tertiaryPalette,
|
|
1558
|
+
tone: (e) => H(e) ? 30 : 80,
|
|
1559
|
+
isBackground: !0,
|
|
1560
|
+
background: (e) => this.highestSurface(e),
|
|
1561
|
+
contrastCurve: (e) => new B(1, 1, 3, 4.5),
|
|
1562
|
+
toneDeltaPair: (e) => new V(this.tertiaryFixed(), this.tertiaryFixedDim(), 10, "lighter", !0)
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
onTertiaryFixed() {
|
|
1566
|
+
return L.fromPalette({
|
|
1567
|
+
name: "on_tertiary_fixed",
|
|
1568
|
+
palette: (e) => e.tertiaryPalette,
|
|
1569
|
+
tone: (e) => H(e) ? 100 : 10,
|
|
1570
|
+
background: (e) => this.tertiaryFixedDim(),
|
|
1571
|
+
secondBackground: (e) => this.tertiaryFixed(),
|
|
1572
|
+
contrastCurve: (e) => new B(4.5, 7, 11, 21)
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
onTertiaryFixedVariant() {
|
|
1576
|
+
return L.fromPalette({
|
|
1577
|
+
name: "on_tertiary_fixed_variant",
|
|
1578
|
+
palette: (e) => e.tertiaryPalette,
|
|
1579
|
+
tone: (e) => H(e) ? 90 : 30,
|
|
1580
|
+
background: (e) => this.tertiaryFixedDim(),
|
|
1581
|
+
secondBackground: (e) => this.tertiaryFixed(),
|
|
1582
|
+
contrastCurve: (e) => new B(3, 4.5, 7, 11)
|
|
1583
|
+
});
|
|
1584
|
+
}
|
|
1585
|
+
highestSurface(e) {
|
|
1586
|
+
return e.isDark ? this.surfaceBright() : this.surfaceDim();
|
|
1587
|
+
}
|
|
1588
|
+
};
|
|
1589
|
+
function U(e, t = 0, n = 100, r = 1) {
|
|
1590
|
+
return w(t, n, xe(e.hue, e.chroma * r, 100, !0));
|
|
1591
|
+
}
|
|
1592
|
+
function W(e, t = 0, n = 100) {
|
|
1593
|
+
return w(t, n, xe(e.hue, e.chroma, 0, !1));
|
|
1594
|
+
}
|
|
1595
|
+
function xe(e, t, n, r) {
|
|
1596
|
+
let i = n, a = P.from(e, t, i);
|
|
1597
|
+
for (; a.chroma < t && !(n < 0 || n > 100);) {
|
|
1598
|
+
n += r ? -1 : 1;
|
|
1599
|
+
let o = P.from(e, t, n);
|
|
1600
|
+
a.chroma < o.chroma && (a = o, i = n);
|
|
1601
|
+
}
|
|
1602
|
+
return i;
|
|
1603
|
+
}
|
|
1604
|
+
function G(e) {
|
|
1605
|
+
return e === 1.5 ? new B(1.5, 1.5, 3, 5.5) : e === 3 ? new B(3, 3, 4.5, 7) : e === 4.5 ? new B(4.5, 4.5, 7, 11) : e === 6 ? new B(6, 6, 7, 11) : e === 7 ? new B(7, 7, 11, 21) : e === 9 ? new B(9, 9, 11, 21) : e === 11 ? new B(11, 11, 21, 21) : e === 21 ? new B(21, 21, 21, 21) : new B(e, e, 7, 21);
|
|
1606
|
+
}
|
|
1607
|
+
var K = class e {
|
|
1608
|
+
constructor() {
|
|
1609
|
+
this.allColors = [
|
|
1610
|
+
this.background(),
|
|
1611
|
+
this.onBackground(),
|
|
1612
|
+
this.surface(),
|
|
1613
|
+
this.surfaceDim(),
|
|
1614
|
+
this.surfaceBright(),
|
|
1615
|
+
this.surfaceContainerLowest(),
|
|
1616
|
+
this.surfaceContainerLow(),
|
|
1617
|
+
this.surfaceContainer(),
|
|
1618
|
+
this.surfaceContainerHigh(),
|
|
1619
|
+
this.surfaceContainerHighest(),
|
|
1620
|
+
this.onSurface(),
|
|
1621
|
+
this.onSurfaceVariant(),
|
|
1622
|
+
this.outline(),
|
|
1623
|
+
this.outlineVariant(),
|
|
1624
|
+
this.inverseSurface(),
|
|
1625
|
+
this.inverseOnSurface(),
|
|
1626
|
+
this.primary(),
|
|
1627
|
+
this.primaryDim(),
|
|
1628
|
+
this.onPrimary(),
|
|
1629
|
+
this.primaryContainer(),
|
|
1630
|
+
this.onPrimaryContainer(),
|
|
1631
|
+
this.primaryFixed(),
|
|
1632
|
+
this.primaryFixedDim(),
|
|
1633
|
+
this.onPrimaryFixed(),
|
|
1634
|
+
this.onPrimaryFixedVariant(),
|
|
1635
|
+
this.inversePrimary(),
|
|
1636
|
+
this.secondary(),
|
|
1637
|
+
this.secondaryDim(),
|
|
1638
|
+
this.onSecondary(),
|
|
1639
|
+
this.secondaryContainer(),
|
|
1640
|
+
this.onSecondaryContainer(),
|
|
1641
|
+
this.secondaryFixed(),
|
|
1642
|
+
this.secondaryFixedDim(),
|
|
1643
|
+
this.onSecondaryFixed(),
|
|
1644
|
+
this.onSecondaryFixedVariant(),
|
|
1645
|
+
this.tertiary(),
|
|
1646
|
+
this.tertiaryDim(),
|
|
1647
|
+
this.onTertiary(),
|
|
1648
|
+
this.tertiaryContainer(),
|
|
1649
|
+
this.onTertiaryContainer(),
|
|
1650
|
+
this.tertiaryFixed(),
|
|
1651
|
+
this.tertiaryFixedDim(),
|
|
1652
|
+
this.onTertiaryFixed(),
|
|
1653
|
+
this.onTertiaryFixedVariant(),
|
|
1654
|
+
this.error(),
|
|
1655
|
+
this.errorDim(),
|
|
1656
|
+
this.onError(),
|
|
1657
|
+
this.errorContainer(),
|
|
1658
|
+
this.onErrorContainer()
|
|
1659
|
+
].filter((e) => e !== void 0);
|
|
1660
|
+
}
|
|
1661
|
+
highestSurface(t) {
|
|
1662
|
+
return e.colorSpec.highestSurface(t);
|
|
1663
|
+
}
|
|
1664
|
+
primaryPaletteKeyColor() {
|
|
1665
|
+
return e.colorSpec.primaryPaletteKeyColor();
|
|
1666
|
+
}
|
|
1667
|
+
secondaryPaletteKeyColor() {
|
|
1668
|
+
return e.colorSpec.secondaryPaletteKeyColor();
|
|
1669
|
+
}
|
|
1670
|
+
tertiaryPaletteKeyColor() {
|
|
1671
|
+
return e.colorSpec.tertiaryPaletteKeyColor();
|
|
1672
|
+
}
|
|
1673
|
+
neutralPaletteKeyColor() {
|
|
1674
|
+
return e.colorSpec.neutralPaletteKeyColor();
|
|
1675
|
+
}
|
|
1676
|
+
neutralVariantPaletteKeyColor() {
|
|
1677
|
+
return e.colorSpec.neutralVariantPaletteKeyColor();
|
|
1678
|
+
}
|
|
1679
|
+
errorPaletteKeyColor() {
|
|
1680
|
+
return e.colorSpec.errorPaletteKeyColor();
|
|
1681
|
+
}
|
|
1682
|
+
background() {
|
|
1683
|
+
return e.colorSpec.background();
|
|
1684
|
+
}
|
|
1685
|
+
onBackground() {
|
|
1686
|
+
return e.colorSpec.onBackground();
|
|
1687
|
+
}
|
|
1688
|
+
surface() {
|
|
1689
|
+
return e.colorSpec.surface();
|
|
1690
|
+
}
|
|
1691
|
+
surfaceDim() {
|
|
1692
|
+
return e.colorSpec.surfaceDim();
|
|
1693
|
+
}
|
|
1694
|
+
surfaceBright() {
|
|
1695
|
+
return e.colorSpec.surfaceBright();
|
|
1696
|
+
}
|
|
1697
|
+
surfaceContainerLowest() {
|
|
1698
|
+
return e.colorSpec.surfaceContainerLowest();
|
|
1699
|
+
}
|
|
1700
|
+
surfaceContainerLow() {
|
|
1701
|
+
return e.colorSpec.surfaceContainerLow();
|
|
1702
|
+
}
|
|
1703
|
+
surfaceContainer() {
|
|
1704
|
+
return e.colorSpec.surfaceContainer();
|
|
1705
|
+
}
|
|
1706
|
+
surfaceContainerHigh() {
|
|
1707
|
+
return e.colorSpec.surfaceContainerHigh();
|
|
1708
|
+
}
|
|
1709
|
+
surfaceContainerHighest() {
|
|
1710
|
+
return e.colorSpec.surfaceContainerHighest();
|
|
1711
|
+
}
|
|
1712
|
+
onSurface() {
|
|
1713
|
+
return e.colorSpec.onSurface();
|
|
1714
|
+
}
|
|
1715
|
+
surfaceVariant() {
|
|
1716
|
+
return e.colorSpec.surfaceVariant();
|
|
1717
|
+
}
|
|
1718
|
+
onSurfaceVariant() {
|
|
1719
|
+
return e.colorSpec.onSurfaceVariant();
|
|
1720
|
+
}
|
|
1721
|
+
outline() {
|
|
1722
|
+
return e.colorSpec.outline();
|
|
1723
|
+
}
|
|
1724
|
+
outlineVariant() {
|
|
1725
|
+
return e.colorSpec.outlineVariant();
|
|
1726
|
+
}
|
|
1727
|
+
inverseSurface() {
|
|
1728
|
+
return e.colorSpec.inverseSurface();
|
|
1729
|
+
}
|
|
1730
|
+
inverseOnSurface() {
|
|
1731
|
+
return e.colorSpec.inverseOnSurface();
|
|
1732
|
+
}
|
|
1733
|
+
shadow() {
|
|
1734
|
+
return e.colorSpec.shadow();
|
|
1735
|
+
}
|
|
1736
|
+
scrim() {
|
|
1737
|
+
return e.colorSpec.scrim();
|
|
1738
|
+
}
|
|
1739
|
+
surfaceTint() {
|
|
1740
|
+
return e.colorSpec.surfaceTint();
|
|
1741
|
+
}
|
|
1742
|
+
primary() {
|
|
1743
|
+
return e.colorSpec.primary();
|
|
1744
|
+
}
|
|
1745
|
+
primaryDim() {
|
|
1746
|
+
return e.colorSpec.primaryDim();
|
|
1747
|
+
}
|
|
1748
|
+
onPrimary() {
|
|
1749
|
+
return e.colorSpec.onPrimary();
|
|
1750
|
+
}
|
|
1751
|
+
primaryContainer() {
|
|
1752
|
+
return e.colorSpec.primaryContainer();
|
|
1753
|
+
}
|
|
1754
|
+
onPrimaryContainer() {
|
|
1755
|
+
return e.colorSpec.onPrimaryContainer();
|
|
1756
|
+
}
|
|
1757
|
+
inversePrimary() {
|
|
1758
|
+
return e.colorSpec.inversePrimary();
|
|
1759
|
+
}
|
|
1760
|
+
primaryFixed() {
|
|
1761
|
+
return e.colorSpec.primaryFixed();
|
|
1762
|
+
}
|
|
1763
|
+
primaryFixedDim() {
|
|
1764
|
+
return e.colorSpec.primaryFixedDim();
|
|
1765
|
+
}
|
|
1766
|
+
onPrimaryFixed() {
|
|
1767
|
+
return e.colorSpec.onPrimaryFixed();
|
|
1768
|
+
}
|
|
1769
|
+
onPrimaryFixedVariant() {
|
|
1770
|
+
return e.colorSpec.onPrimaryFixedVariant();
|
|
1771
|
+
}
|
|
1772
|
+
secondary() {
|
|
1773
|
+
return e.colorSpec.secondary();
|
|
1774
|
+
}
|
|
1775
|
+
secondaryDim() {
|
|
1776
|
+
return e.colorSpec.secondaryDim();
|
|
1777
|
+
}
|
|
1778
|
+
onSecondary() {
|
|
1779
|
+
return e.colorSpec.onSecondary();
|
|
1780
|
+
}
|
|
1781
|
+
secondaryContainer() {
|
|
1782
|
+
return e.colorSpec.secondaryContainer();
|
|
1783
|
+
}
|
|
1784
|
+
onSecondaryContainer() {
|
|
1785
|
+
return e.colorSpec.onSecondaryContainer();
|
|
1786
|
+
}
|
|
1787
|
+
secondaryFixed() {
|
|
1788
|
+
return e.colorSpec.secondaryFixed();
|
|
1789
|
+
}
|
|
1790
|
+
secondaryFixedDim() {
|
|
1791
|
+
return e.colorSpec.secondaryFixedDim();
|
|
1792
|
+
}
|
|
1793
|
+
onSecondaryFixed() {
|
|
1794
|
+
return e.colorSpec.onSecondaryFixed();
|
|
1795
|
+
}
|
|
1796
|
+
onSecondaryFixedVariant() {
|
|
1797
|
+
return e.colorSpec.onSecondaryFixedVariant();
|
|
1798
|
+
}
|
|
1799
|
+
tertiary() {
|
|
1800
|
+
return e.colorSpec.tertiary();
|
|
1801
|
+
}
|
|
1802
|
+
tertiaryDim() {
|
|
1803
|
+
return e.colorSpec.tertiaryDim();
|
|
1804
|
+
}
|
|
1805
|
+
onTertiary() {
|
|
1806
|
+
return e.colorSpec.onTertiary();
|
|
1807
|
+
}
|
|
1808
|
+
tertiaryContainer() {
|
|
1809
|
+
return e.colorSpec.tertiaryContainer();
|
|
1810
|
+
}
|
|
1811
|
+
onTertiaryContainer() {
|
|
1812
|
+
return e.colorSpec.onTertiaryContainer();
|
|
1813
|
+
}
|
|
1814
|
+
tertiaryFixed() {
|
|
1815
|
+
return e.colorSpec.tertiaryFixed();
|
|
1816
|
+
}
|
|
1817
|
+
tertiaryFixedDim() {
|
|
1818
|
+
return e.colorSpec.tertiaryFixedDim();
|
|
1819
|
+
}
|
|
1820
|
+
onTertiaryFixed() {
|
|
1821
|
+
return e.colorSpec.onTertiaryFixed();
|
|
1822
|
+
}
|
|
1823
|
+
onTertiaryFixedVariant() {
|
|
1824
|
+
return e.colorSpec.onTertiaryFixedVariant();
|
|
1825
|
+
}
|
|
1826
|
+
error() {
|
|
1827
|
+
return e.colorSpec.error();
|
|
1828
|
+
}
|
|
1829
|
+
errorDim() {
|
|
1830
|
+
return e.colorSpec.errorDim();
|
|
1831
|
+
}
|
|
1832
|
+
onError() {
|
|
1833
|
+
return e.colorSpec.onError();
|
|
1834
|
+
}
|
|
1835
|
+
errorContainer() {
|
|
1836
|
+
return e.colorSpec.errorContainer();
|
|
1837
|
+
}
|
|
1838
|
+
onErrorContainer() {
|
|
1839
|
+
return e.colorSpec.onErrorContainer();
|
|
1840
|
+
}
|
|
1841
|
+
static highestSurface(t) {
|
|
1842
|
+
return e.colorSpec.highestSurface(t);
|
|
1843
|
+
}
|
|
1844
|
+
};
|
|
1845
|
+
K.contentAccentToneDelta = 15, K.colorSpec = new class extends be {
|
|
1846
|
+
surface() {
|
|
1847
|
+
let e = L.fromPalette({
|
|
1848
|
+
name: "surface",
|
|
1849
|
+
palette: (e) => e.neutralPalette,
|
|
1850
|
+
tone: (e) => (super.surface().tone(e), e.platform === "phone" ? e.isDark ? 4 : P.isYellow(e.neutralPalette.hue) ? 99 : e.variant === R.VIBRANT ? 97 : 98 : 0),
|
|
1851
|
+
isBackground: !0
|
|
1852
|
+
});
|
|
1853
|
+
return I(super.surface(), "2025", e);
|
|
1854
|
+
}
|
|
1855
|
+
surfaceDim() {
|
|
1856
|
+
let e = L.fromPalette({
|
|
1857
|
+
name: "surface_dim",
|
|
1858
|
+
palette: (e) => e.neutralPalette,
|
|
1859
|
+
tone: (e) => e.isDark ? 4 : P.isYellow(e.neutralPalette.hue) ? 90 : e.variant === R.VIBRANT ? 85 : 87,
|
|
1860
|
+
isBackground: !0,
|
|
1861
|
+
chromaMultiplier: (e) => {
|
|
1862
|
+
if (!e.isDark) {
|
|
1863
|
+
if (e.variant === R.NEUTRAL) return 2.5;
|
|
1864
|
+
if (e.variant === R.TONAL_SPOT) return 1.7;
|
|
1865
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? 2.7 : 1.75;
|
|
1866
|
+
if (e.variant === R.VIBRANT) return 1.36;
|
|
1867
|
+
}
|
|
1868
|
+
return 1;
|
|
1869
|
+
}
|
|
1870
|
+
});
|
|
1871
|
+
return I(super.surfaceDim(), "2025", e);
|
|
1872
|
+
}
|
|
1873
|
+
surfaceBright() {
|
|
1874
|
+
let e = L.fromPalette({
|
|
1875
|
+
name: "surface_bright",
|
|
1876
|
+
palette: (e) => e.neutralPalette,
|
|
1877
|
+
tone: (e) => e.isDark ? 18 : P.isYellow(e.neutralPalette.hue) ? 99 : e.variant === R.VIBRANT ? 97 : 98,
|
|
1878
|
+
isBackground: !0,
|
|
1879
|
+
chromaMultiplier: (e) => {
|
|
1880
|
+
if (e.isDark) {
|
|
1881
|
+
if (e.variant === R.NEUTRAL) return 2.5;
|
|
1882
|
+
if (e.variant === R.TONAL_SPOT) return 1.7;
|
|
1883
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? 2.7 : 1.75;
|
|
1884
|
+
if (e.variant === R.VIBRANT) return 1.36;
|
|
1885
|
+
}
|
|
1886
|
+
return 1;
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
return I(super.surfaceBright(), "2025", e);
|
|
1890
|
+
}
|
|
1891
|
+
surfaceContainerLowest() {
|
|
1892
|
+
let e = L.fromPalette({
|
|
1893
|
+
name: "surface_container_lowest",
|
|
1894
|
+
palette: (e) => e.neutralPalette,
|
|
1895
|
+
tone: (e) => e.isDark ? 0 : 100,
|
|
1896
|
+
isBackground: !0
|
|
1897
|
+
});
|
|
1898
|
+
return I(super.surfaceContainerLowest(), "2025", e);
|
|
1899
|
+
}
|
|
1900
|
+
surfaceContainerLow() {
|
|
1901
|
+
let e = L.fromPalette({
|
|
1902
|
+
name: "surface_container_low",
|
|
1903
|
+
palette: (e) => e.neutralPalette,
|
|
1904
|
+
tone: (e) => e.platform === "phone" ? e.isDark ? 6 : P.isYellow(e.neutralPalette.hue) ? 98 : e.variant === R.VIBRANT ? 95 : 96 : 15,
|
|
1905
|
+
isBackground: !0,
|
|
1906
|
+
chromaMultiplier: (e) => {
|
|
1907
|
+
if (e.platform === "phone") {
|
|
1908
|
+
if (e.variant === R.NEUTRAL) return 1.3;
|
|
1909
|
+
if (e.variant === R.TONAL_SPOT) return 1.25;
|
|
1910
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? 1.3 : 1.15;
|
|
1911
|
+
if (e.variant === R.VIBRANT) return 1.08;
|
|
1912
|
+
}
|
|
1913
|
+
return 1;
|
|
1914
|
+
}
|
|
1915
|
+
});
|
|
1916
|
+
return I(super.surfaceContainerLow(), "2025", e);
|
|
1917
|
+
}
|
|
1918
|
+
surfaceContainer() {
|
|
1919
|
+
let e = L.fromPalette({
|
|
1920
|
+
name: "surface_container",
|
|
1921
|
+
palette: (e) => e.neutralPalette,
|
|
1922
|
+
tone: (e) => e.platform === "phone" ? e.isDark ? 9 : P.isYellow(e.neutralPalette.hue) ? 96 : e.variant === R.VIBRANT ? 92 : 94 : 20,
|
|
1923
|
+
isBackground: !0,
|
|
1924
|
+
chromaMultiplier: (e) => {
|
|
1925
|
+
if (e.platform === "phone") {
|
|
1926
|
+
if (e.variant === R.NEUTRAL) return 1.6;
|
|
1927
|
+
if (e.variant === R.TONAL_SPOT) return 1.4;
|
|
1928
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? 1.6 : 1.3;
|
|
1929
|
+
if (e.variant === R.VIBRANT) return 1.15;
|
|
1930
|
+
}
|
|
1931
|
+
return 1;
|
|
1932
|
+
}
|
|
1933
|
+
});
|
|
1934
|
+
return I(super.surfaceContainer(), "2025", e);
|
|
1935
|
+
}
|
|
1936
|
+
surfaceContainerHigh() {
|
|
1937
|
+
let e = L.fromPalette({
|
|
1938
|
+
name: "surface_container_high",
|
|
1939
|
+
palette: (e) => e.neutralPalette,
|
|
1940
|
+
tone: (e) => e.platform === "phone" ? e.isDark ? 12 : P.isYellow(e.neutralPalette.hue) ? 94 : e.variant === R.VIBRANT ? 90 : 92 : 25,
|
|
1941
|
+
isBackground: !0,
|
|
1942
|
+
chromaMultiplier: (e) => {
|
|
1943
|
+
if (e.platform === "phone") {
|
|
1944
|
+
if (e.variant === R.NEUTRAL) return 1.9;
|
|
1945
|
+
if (e.variant === R.TONAL_SPOT) return 1.5;
|
|
1946
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? 1.95 : 1.45;
|
|
1947
|
+
if (e.variant === R.VIBRANT) return 1.22;
|
|
1948
|
+
}
|
|
1949
|
+
return 1;
|
|
1950
|
+
}
|
|
1951
|
+
});
|
|
1952
|
+
return I(super.surfaceContainerHigh(), "2025", e);
|
|
1953
|
+
}
|
|
1954
|
+
surfaceContainerHighest() {
|
|
1955
|
+
let e = L.fromPalette({
|
|
1956
|
+
name: "surface_container_highest",
|
|
1957
|
+
palette: (e) => e.neutralPalette,
|
|
1958
|
+
tone: (e) => e.isDark ? 15 : P.isYellow(e.neutralPalette.hue) ? 92 : e.variant === R.VIBRANT ? 88 : 90,
|
|
1959
|
+
isBackground: !0,
|
|
1960
|
+
chromaMultiplier: (e) => e.variant === R.NEUTRAL ? 2.2 : e.variant === R.TONAL_SPOT ? 1.7 : e.variant === R.EXPRESSIVE ? P.isYellow(e.neutralPalette.hue) ? 2.3 : 1.6 : e.variant === R.VIBRANT ? 1.29 : 1
|
|
1961
|
+
});
|
|
1962
|
+
return I(super.surfaceContainerHighest(), "2025", e);
|
|
1963
|
+
}
|
|
1964
|
+
onSurface() {
|
|
1965
|
+
let e = L.fromPalette({
|
|
1966
|
+
name: "on_surface",
|
|
1967
|
+
palette: (e) => e.neutralPalette,
|
|
1968
|
+
tone: (e) => e.variant === R.VIBRANT ? U(e.neutralPalette, 0, 100, 1.1) : L.getInitialToneFromBackground((e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh())(e),
|
|
1969
|
+
chromaMultiplier: (e) => {
|
|
1970
|
+
if (e.platform === "phone") {
|
|
1971
|
+
if (e.variant === R.NEUTRAL) return 2.2;
|
|
1972
|
+
if (e.variant === R.TONAL_SPOT) return 1.7;
|
|
1973
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
|
|
1974
|
+
}
|
|
1975
|
+
return 1;
|
|
1976
|
+
},
|
|
1977
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
1978
|
+
contrastCurve: (e) => e.isDark && e.platform === "phone" ? G(11) : G(9)
|
|
1979
|
+
});
|
|
1980
|
+
return I(super.onSurface(), "2025", e);
|
|
1981
|
+
}
|
|
1982
|
+
onSurfaceVariant() {
|
|
1983
|
+
let e = L.fromPalette({
|
|
1984
|
+
name: "on_surface_variant",
|
|
1985
|
+
palette: (e) => e.neutralPalette,
|
|
1986
|
+
chromaMultiplier: (e) => {
|
|
1987
|
+
if (e.platform === "phone") {
|
|
1988
|
+
if (e.variant === R.NEUTRAL) return 2.2;
|
|
1989
|
+
if (e.variant === R.TONAL_SPOT) return 1.7;
|
|
1990
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
|
|
1991
|
+
}
|
|
1992
|
+
return 1;
|
|
1993
|
+
},
|
|
1994
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
1995
|
+
contrastCurve: (e) => e.platform === "phone" ? e.isDark ? G(6) : G(4.5) : G(7)
|
|
1996
|
+
});
|
|
1997
|
+
return I(super.onSurfaceVariant(), "2025", e);
|
|
1998
|
+
}
|
|
1999
|
+
outline() {
|
|
2000
|
+
let e = L.fromPalette({
|
|
2001
|
+
name: "outline",
|
|
2002
|
+
palette: (e) => e.neutralPalette,
|
|
2003
|
+
chromaMultiplier: (e) => {
|
|
2004
|
+
if (e.platform === "phone") {
|
|
2005
|
+
if (e.variant === R.NEUTRAL) return 2.2;
|
|
2006
|
+
if (e.variant === R.TONAL_SPOT) return 1.7;
|
|
2007
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
|
|
2008
|
+
}
|
|
2009
|
+
return 1;
|
|
2010
|
+
},
|
|
2011
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
2012
|
+
contrastCurve: (e) => e.platform === "phone" ? G(3) : G(4.5)
|
|
2013
|
+
});
|
|
2014
|
+
return I(super.outline(), "2025", e);
|
|
2015
|
+
}
|
|
2016
|
+
outlineVariant() {
|
|
2017
|
+
let e = L.fromPalette({
|
|
2018
|
+
name: "outline_variant",
|
|
2019
|
+
palette: (e) => e.neutralPalette,
|
|
2020
|
+
chromaMultiplier: (e) => {
|
|
2021
|
+
if (e.platform === "phone") {
|
|
2022
|
+
if (e.variant === R.NEUTRAL) return 2.2;
|
|
2023
|
+
if (e.variant === R.TONAL_SPOT) return 1.7;
|
|
2024
|
+
if (e.variant === R.EXPRESSIVE) return P.isYellow(e.neutralPalette.hue) ? e.isDark ? 3 : 2.3 : 1.6;
|
|
2025
|
+
}
|
|
2026
|
+
return 1;
|
|
2027
|
+
},
|
|
2028
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
2029
|
+
contrastCurve: (e) => e.platform === "phone" ? G(1.5) : G(3)
|
|
2030
|
+
});
|
|
2031
|
+
return I(super.outlineVariant(), "2025", e);
|
|
2032
|
+
}
|
|
2033
|
+
inverseSurface() {
|
|
2034
|
+
let e = L.fromPalette({
|
|
2035
|
+
name: "inverse_surface",
|
|
2036
|
+
palette: (e) => e.neutralPalette,
|
|
2037
|
+
tone: (e) => e.isDark ? 98 : 4,
|
|
2038
|
+
isBackground: !0
|
|
2039
|
+
});
|
|
2040
|
+
return I(super.inverseSurface(), "2025", e);
|
|
2041
|
+
}
|
|
2042
|
+
inverseOnSurface() {
|
|
2043
|
+
let e = L.fromPalette({
|
|
2044
|
+
name: "inverse_on_surface",
|
|
2045
|
+
palette: (e) => e.neutralPalette,
|
|
2046
|
+
background: (e) => this.inverseSurface(),
|
|
2047
|
+
contrastCurve: (e) => G(7)
|
|
2048
|
+
});
|
|
2049
|
+
return I(super.inverseOnSurface(), "2025", e);
|
|
2050
|
+
}
|
|
2051
|
+
primary() {
|
|
2052
|
+
let e = L.fromPalette({
|
|
2053
|
+
name: "primary",
|
|
2054
|
+
palette: (e) => e.primaryPalette,
|
|
2055
|
+
tone: (e) => e.variant === R.NEUTRAL ? e.platform === "phone" ? e.isDark ? 80 : 40 : 90 : e.variant === R.TONAL_SPOT ? e.platform === "phone" ? e.isDark ? 80 : U(e.primaryPalette) : U(e.primaryPalette, 0, 90) : e.variant === R.EXPRESSIVE ? e.platform === "phone" ? U(e.primaryPalette, 0, P.isYellow(e.primaryPalette.hue) ? 25 : P.isCyan(e.primaryPalette.hue) ? 88 : 98) : U(e.primaryPalette) : e.platform === "phone" ? U(e.primaryPalette, 0, P.isCyan(e.primaryPalette.hue) ? 88 : 98) : U(e.primaryPalette),
|
|
2056
|
+
isBackground: !0,
|
|
2057
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
2058
|
+
contrastCurve: (e) => e.platform === "phone" ? G(4.5) : G(7),
|
|
2059
|
+
toneDeltaPair: (e) => e.platform === "phone" ? new V(this.primaryContainer(), this.primary(), 5, "relative_lighter", !0, "farther") : void 0
|
|
2060
|
+
});
|
|
2061
|
+
return I(super.primary(), "2025", e);
|
|
2062
|
+
}
|
|
2063
|
+
primaryDim() {
|
|
2064
|
+
return L.fromPalette({
|
|
2065
|
+
name: "primary_dim",
|
|
2066
|
+
palette: (e) => e.primaryPalette,
|
|
2067
|
+
tone: (e) => e.variant === R.NEUTRAL ? 85 : e.variant === R.TONAL_SPOT ? U(e.primaryPalette, 0, 90) : U(e.primaryPalette),
|
|
2068
|
+
isBackground: !0,
|
|
2069
|
+
background: (e) => this.surfaceContainerHigh(),
|
|
2070
|
+
contrastCurve: (e) => G(4.5),
|
|
2071
|
+
toneDeltaPair: (e) => new V(this.primaryDim(), this.primary(), 5, "darker", !0, "farther")
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
onPrimary() {
|
|
2075
|
+
let e = L.fromPalette({
|
|
2076
|
+
name: "on_primary",
|
|
2077
|
+
palette: (e) => e.primaryPalette,
|
|
2078
|
+
background: (e) => e.platform === "phone" ? this.primary() : this.primaryDim(),
|
|
2079
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2080
|
+
});
|
|
2081
|
+
return I(super.onPrimary(), "2025", e);
|
|
2082
|
+
}
|
|
2083
|
+
primaryContainer() {
|
|
2084
|
+
let e = L.fromPalette({
|
|
2085
|
+
name: "primary_container",
|
|
2086
|
+
palette: (e) => e.primaryPalette,
|
|
2087
|
+
tone: (e) => e.platform === "watch" ? 30 : e.variant === R.NEUTRAL ? e.isDark ? 30 : 90 : e.variant === R.TONAL_SPOT ? e.isDark ? W(e.primaryPalette, 35, 93) : U(e.primaryPalette, 0, 90) : e.variant === R.EXPRESSIVE ? e.isDark ? U(e.primaryPalette, 30, 93) : U(e.primaryPalette, 78, P.isCyan(e.primaryPalette.hue) ? 88 : 90) : e.isDark ? W(e.primaryPalette, 66, 93) : U(e.primaryPalette, 66, P.isCyan(e.primaryPalette.hue) ? 88 : 93),
|
|
2088
|
+
isBackground: !0,
|
|
2089
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
|
|
2090
|
+
toneDeltaPair: (e) => e.platform === "phone" ? void 0 : new V(this.primaryContainer(), this.primaryDim(), 10, "darker", !0, "farther"),
|
|
2091
|
+
contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? G(1.5) : void 0
|
|
2092
|
+
});
|
|
2093
|
+
return I(super.primaryContainer(), "2025", e);
|
|
2094
|
+
}
|
|
2095
|
+
onPrimaryContainer() {
|
|
2096
|
+
let e = L.fromPalette({
|
|
2097
|
+
name: "on_primary_container",
|
|
2098
|
+
palette: (e) => e.primaryPalette,
|
|
2099
|
+
background: (e) => this.primaryContainer(),
|
|
2100
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2101
|
+
});
|
|
2102
|
+
return I(super.onPrimaryContainer(), "2025", e);
|
|
2103
|
+
}
|
|
2104
|
+
primaryFixed() {
|
|
2105
|
+
let e = L.fromPalette({
|
|
2106
|
+
name: "primary_fixed",
|
|
2107
|
+
palette: (e) => e.primaryPalette,
|
|
2108
|
+
tone: (e) => {
|
|
2109
|
+
let t = Object.assign({}, e, {
|
|
2110
|
+
isDark: !1,
|
|
2111
|
+
contrastLevel: 0
|
|
2112
|
+
});
|
|
2113
|
+
return this.primaryContainer().getTone(t);
|
|
2114
|
+
},
|
|
2115
|
+
isBackground: !0,
|
|
2116
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
|
|
2117
|
+
contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? G(1.5) : void 0
|
|
2118
|
+
});
|
|
2119
|
+
return I(super.primaryFixed(), "2025", e);
|
|
2120
|
+
}
|
|
2121
|
+
primaryFixedDim() {
|
|
2122
|
+
let e = L.fromPalette({
|
|
2123
|
+
name: "primary_fixed_dim",
|
|
2124
|
+
palette: (e) => e.primaryPalette,
|
|
2125
|
+
tone: (e) => this.primaryFixed().getTone(e),
|
|
2126
|
+
isBackground: !0,
|
|
2127
|
+
toneDeltaPair: (e) => new V(this.primaryFixedDim(), this.primaryFixed(), 5, "darker", !0, "exact")
|
|
2128
|
+
});
|
|
2129
|
+
return I(super.primaryFixedDim(), "2025", e);
|
|
2130
|
+
}
|
|
2131
|
+
onPrimaryFixed() {
|
|
2132
|
+
let e = L.fromPalette({
|
|
2133
|
+
name: "on_primary_fixed",
|
|
2134
|
+
palette: (e) => e.primaryPalette,
|
|
2135
|
+
background: (e) => this.primaryFixedDim(),
|
|
2136
|
+
contrastCurve: (e) => G(7)
|
|
2137
|
+
});
|
|
2138
|
+
return I(super.onPrimaryFixed(), "2025", e);
|
|
2139
|
+
}
|
|
2140
|
+
onPrimaryFixedVariant() {
|
|
2141
|
+
let e = L.fromPalette({
|
|
2142
|
+
name: "on_primary_fixed_variant",
|
|
2143
|
+
palette: (e) => e.primaryPalette,
|
|
2144
|
+
background: (e) => this.primaryFixedDim(),
|
|
2145
|
+
contrastCurve: (e) => G(4.5)
|
|
2146
|
+
});
|
|
2147
|
+
return I(super.onPrimaryFixedVariant(), "2025", e);
|
|
2148
|
+
}
|
|
2149
|
+
inversePrimary() {
|
|
2150
|
+
let e = L.fromPalette({
|
|
2151
|
+
name: "inverse_primary",
|
|
2152
|
+
palette: (e) => e.primaryPalette,
|
|
2153
|
+
tone: (e) => U(e.primaryPalette),
|
|
2154
|
+
background: (e) => this.inverseSurface(),
|
|
2155
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2156
|
+
});
|
|
2157
|
+
return I(super.inversePrimary(), "2025", e);
|
|
2158
|
+
}
|
|
2159
|
+
secondary() {
|
|
2160
|
+
let e = L.fromPalette({
|
|
2161
|
+
name: "secondary",
|
|
2162
|
+
palette: (e) => e.secondaryPalette,
|
|
2163
|
+
tone: (e) => e.platform === "watch" ? e.variant === R.NEUTRAL ? 90 : U(e.secondaryPalette, 0, 90) : e.variant === R.NEUTRAL ? e.isDark ? W(e.secondaryPalette, 0, 98) : U(e.secondaryPalette) : e.variant === R.VIBRANT ? U(e.secondaryPalette, 0, e.isDark ? 90 : 98) : e.isDark ? 80 : U(e.secondaryPalette),
|
|
2164
|
+
isBackground: !0,
|
|
2165
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
2166
|
+
contrastCurve: (e) => e.platform === "phone" ? G(4.5) : G(7),
|
|
2167
|
+
toneDeltaPair: (e) => e.platform === "phone" ? new V(this.secondaryContainer(), this.secondary(), 5, "relative_lighter", !0, "farther") : void 0
|
|
2168
|
+
});
|
|
2169
|
+
return I(super.secondary(), "2025", e);
|
|
2170
|
+
}
|
|
2171
|
+
secondaryDim() {
|
|
2172
|
+
return L.fromPalette({
|
|
2173
|
+
name: "secondary_dim",
|
|
2174
|
+
palette: (e) => e.secondaryPalette,
|
|
2175
|
+
tone: (e) => e.variant === R.NEUTRAL ? 85 : U(e.secondaryPalette, 0, 90),
|
|
2176
|
+
isBackground: !0,
|
|
2177
|
+
background: (e) => this.surfaceContainerHigh(),
|
|
2178
|
+
contrastCurve: (e) => G(4.5),
|
|
2179
|
+
toneDeltaPair: (e) => new V(this.secondaryDim(), this.secondary(), 5, "darker", !0, "farther")
|
|
2180
|
+
});
|
|
2181
|
+
}
|
|
2182
|
+
onSecondary() {
|
|
2183
|
+
let e = L.fromPalette({
|
|
2184
|
+
name: "on_secondary",
|
|
2185
|
+
palette: (e) => e.secondaryPalette,
|
|
2186
|
+
background: (e) => e.platform === "phone" ? this.secondary() : this.secondaryDim(),
|
|
2187
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2188
|
+
});
|
|
2189
|
+
return I(super.onSecondary(), "2025", e);
|
|
2190
|
+
}
|
|
2191
|
+
secondaryContainer() {
|
|
2192
|
+
let e = L.fromPalette({
|
|
2193
|
+
name: "secondary_container",
|
|
2194
|
+
palette: (e) => e.secondaryPalette,
|
|
2195
|
+
tone: (e) => e.platform === "watch" ? 30 : e.variant === R.VIBRANT ? e.isDark ? W(e.secondaryPalette, 30, 40) : U(e.secondaryPalette, 84, 90) : e.variant === R.EXPRESSIVE ? e.isDark ? 15 : U(e.secondaryPalette, 90, 95) : e.isDark ? 25 : 90,
|
|
2196
|
+
isBackground: !0,
|
|
2197
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
|
|
2198
|
+
toneDeltaPair: (e) => e.platform === "watch" ? new V(this.secondaryContainer(), this.secondaryDim(), 10, "darker", !0, "farther") : void 0,
|
|
2199
|
+
contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? G(1.5) : void 0
|
|
2200
|
+
});
|
|
2201
|
+
return I(super.secondaryContainer(), "2025", e);
|
|
2202
|
+
}
|
|
2203
|
+
onSecondaryContainer() {
|
|
2204
|
+
let e = L.fromPalette({
|
|
2205
|
+
name: "on_secondary_container",
|
|
2206
|
+
palette: (e) => e.secondaryPalette,
|
|
2207
|
+
background: (e) => this.secondaryContainer(),
|
|
2208
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2209
|
+
});
|
|
2210
|
+
return I(super.onSecondaryContainer(), "2025", e);
|
|
2211
|
+
}
|
|
2212
|
+
secondaryFixed() {
|
|
2213
|
+
let e = L.fromPalette({
|
|
2214
|
+
name: "secondary_fixed",
|
|
2215
|
+
palette: (e) => e.secondaryPalette,
|
|
2216
|
+
tone: (e) => {
|
|
2217
|
+
let t = Object.assign({}, e, {
|
|
2218
|
+
isDark: !1,
|
|
2219
|
+
contrastLevel: 0
|
|
2220
|
+
});
|
|
2221
|
+
return this.secondaryContainer().getTone(t);
|
|
2222
|
+
},
|
|
2223
|
+
isBackground: !0,
|
|
2224
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
|
|
2225
|
+
contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? G(1.5) : void 0
|
|
2226
|
+
});
|
|
2227
|
+
return I(super.secondaryFixed(), "2025", e);
|
|
2228
|
+
}
|
|
2229
|
+
secondaryFixedDim() {
|
|
2230
|
+
let e = L.fromPalette({
|
|
2231
|
+
name: "secondary_fixed_dim",
|
|
2232
|
+
palette: (e) => e.secondaryPalette,
|
|
2233
|
+
tone: (e) => this.secondaryFixed().getTone(e),
|
|
2234
|
+
isBackground: !0,
|
|
2235
|
+
toneDeltaPair: (e) => new V(this.secondaryFixedDim(), this.secondaryFixed(), 5, "darker", !0, "exact")
|
|
2236
|
+
});
|
|
2237
|
+
return I(super.secondaryFixedDim(), "2025", e);
|
|
2238
|
+
}
|
|
2239
|
+
onSecondaryFixed() {
|
|
2240
|
+
let e = L.fromPalette({
|
|
2241
|
+
name: "on_secondary_fixed",
|
|
2242
|
+
palette: (e) => e.secondaryPalette,
|
|
2243
|
+
background: (e) => this.secondaryFixedDim(),
|
|
2244
|
+
contrastCurve: (e) => G(7)
|
|
2245
|
+
});
|
|
2246
|
+
return I(super.onSecondaryFixed(), "2025", e);
|
|
2247
|
+
}
|
|
2248
|
+
onSecondaryFixedVariant() {
|
|
2249
|
+
let e = L.fromPalette({
|
|
2250
|
+
name: "on_secondary_fixed_variant",
|
|
2251
|
+
palette: (e) => e.secondaryPalette,
|
|
2252
|
+
background: (e) => this.secondaryFixedDim(),
|
|
2253
|
+
contrastCurve: (e) => G(4.5)
|
|
2254
|
+
});
|
|
2255
|
+
return I(super.onSecondaryFixedVariant(), "2025", e);
|
|
2256
|
+
}
|
|
2257
|
+
tertiary() {
|
|
2258
|
+
let e = L.fromPalette({
|
|
2259
|
+
name: "tertiary",
|
|
2260
|
+
palette: (e) => e.tertiaryPalette,
|
|
2261
|
+
tone: (e) => e.platform === "watch" ? e.variant === R.TONAL_SPOT ? U(e.tertiaryPalette, 0, 90) : U(e.tertiaryPalette) : e.variant === R.EXPRESSIVE || e.variant === R.VIBRANT ? U(e.tertiaryPalette, 0, P.isCyan(e.tertiaryPalette.hue) ? 88 : e.isDark ? 98 : 100) : e.isDark ? U(e.tertiaryPalette, 0, 98) : U(e.tertiaryPalette),
|
|
2262
|
+
isBackground: !0,
|
|
2263
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
2264
|
+
contrastCurve: (e) => e.platform === "phone" ? G(4.5) : G(7),
|
|
2265
|
+
toneDeltaPair: (e) => e.platform === "phone" ? new V(this.tertiaryContainer(), this.tertiary(), 5, "relative_lighter", !0, "farther") : void 0
|
|
2266
|
+
});
|
|
2267
|
+
return I(super.tertiary(), "2025", e);
|
|
2268
|
+
}
|
|
2269
|
+
tertiaryDim() {
|
|
2270
|
+
return L.fromPalette({
|
|
2271
|
+
name: "tertiary_dim",
|
|
2272
|
+
palette: (e) => e.tertiaryPalette,
|
|
2273
|
+
tone: (e) => e.variant === R.TONAL_SPOT ? U(e.tertiaryPalette, 0, 90) : U(e.tertiaryPalette),
|
|
2274
|
+
isBackground: !0,
|
|
2275
|
+
background: (e) => this.surfaceContainerHigh(),
|
|
2276
|
+
contrastCurve: (e) => G(4.5),
|
|
2277
|
+
toneDeltaPair: (e) => new V(this.tertiaryDim(), this.tertiary(), 5, "darker", !0, "farther")
|
|
2278
|
+
});
|
|
2279
|
+
}
|
|
2280
|
+
onTertiary() {
|
|
2281
|
+
let e = L.fromPalette({
|
|
2282
|
+
name: "on_tertiary",
|
|
2283
|
+
palette: (e) => e.tertiaryPalette,
|
|
2284
|
+
background: (e) => e.platform === "phone" ? this.tertiary() : this.tertiaryDim(),
|
|
2285
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2286
|
+
});
|
|
2287
|
+
return I(super.onTertiary(), "2025", e);
|
|
2288
|
+
}
|
|
2289
|
+
tertiaryContainer() {
|
|
2290
|
+
let e = L.fromPalette({
|
|
2291
|
+
name: "tertiary_container",
|
|
2292
|
+
palette: (e) => e.tertiaryPalette,
|
|
2293
|
+
tone: (e) => e.platform === "watch" ? e.variant === R.TONAL_SPOT ? U(e.tertiaryPalette, 0, 90) : U(e.tertiaryPalette) : e.variant === R.NEUTRAL ? e.isDark ? U(e.tertiaryPalette, 0, 93) : U(e.tertiaryPalette, 0, 96) : e.variant === R.TONAL_SPOT ? U(e.tertiaryPalette, 0, e.isDark ? 93 : 100) : e.variant === R.EXPRESSIVE ? U(e.tertiaryPalette, 75, P.isCyan(e.tertiaryPalette.hue) ? 88 : e.isDark ? 93 : 100) : e.isDark ? U(e.tertiaryPalette, 0, 93) : U(e.tertiaryPalette, 72, 100),
|
|
2294
|
+
isBackground: !0,
|
|
2295
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
|
|
2296
|
+
toneDeltaPair: (e) => e.platform === "watch" ? new V(this.tertiaryContainer(), this.tertiaryDim(), 10, "darker", !0, "farther") : void 0,
|
|
2297
|
+
contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? G(1.5) : void 0
|
|
2298
|
+
});
|
|
2299
|
+
return I(super.tertiaryContainer(), "2025", e);
|
|
2300
|
+
}
|
|
2301
|
+
onTertiaryContainer() {
|
|
2302
|
+
let e = L.fromPalette({
|
|
2303
|
+
name: "on_tertiary_container",
|
|
2304
|
+
palette: (e) => e.tertiaryPalette,
|
|
2305
|
+
background: (e) => this.tertiaryContainer(),
|
|
2306
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2307
|
+
});
|
|
2308
|
+
return I(super.onTertiaryContainer(), "2025", e);
|
|
2309
|
+
}
|
|
2310
|
+
tertiaryFixed() {
|
|
2311
|
+
let e = L.fromPalette({
|
|
2312
|
+
name: "tertiary_fixed",
|
|
2313
|
+
palette: (e) => e.tertiaryPalette,
|
|
2314
|
+
tone: (e) => {
|
|
2315
|
+
let t = Object.assign({}, e, {
|
|
2316
|
+
isDark: !1,
|
|
2317
|
+
contrastLevel: 0
|
|
2318
|
+
});
|
|
2319
|
+
return this.tertiaryContainer().getTone(t);
|
|
2320
|
+
},
|
|
2321
|
+
isBackground: !0,
|
|
2322
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
|
|
2323
|
+
contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? G(1.5) : void 0
|
|
2324
|
+
});
|
|
2325
|
+
return I(super.tertiaryFixed(), "2025", e);
|
|
2326
|
+
}
|
|
2327
|
+
tertiaryFixedDim() {
|
|
2328
|
+
let e = L.fromPalette({
|
|
2329
|
+
name: "tertiary_fixed_dim",
|
|
2330
|
+
palette: (e) => e.tertiaryPalette,
|
|
2331
|
+
tone: (e) => this.tertiaryFixed().getTone(e),
|
|
2332
|
+
isBackground: !0,
|
|
2333
|
+
toneDeltaPair: (e) => new V(this.tertiaryFixedDim(), this.tertiaryFixed(), 5, "darker", !0, "exact")
|
|
2334
|
+
});
|
|
2335
|
+
return I(super.tertiaryFixedDim(), "2025", e);
|
|
2336
|
+
}
|
|
2337
|
+
onTertiaryFixed() {
|
|
2338
|
+
let e = L.fromPalette({
|
|
2339
|
+
name: "on_tertiary_fixed",
|
|
2340
|
+
palette: (e) => e.tertiaryPalette,
|
|
2341
|
+
background: (e) => this.tertiaryFixedDim(),
|
|
2342
|
+
contrastCurve: (e) => G(7)
|
|
2343
|
+
});
|
|
2344
|
+
return I(super.onTertiaryFixed(), "2025", e);
|
|
2345
|
+
}
|
|
2346
|
+
onTertiaryFixedVariant() {
|
|
2347
|
+
let e = L.fromPalette({
|
|
2348
|
+
name: "on_tertiary_fixed_variant",
|
|
2349
|
+
palette: (e) => e.tertiaryPalette,
|
|
2350
|
+
background: (e) => this.tertiaryFixedDim(),
|
|
2351
|
+
contrastCurve: (e) => G(4.5)
|
|
2352
|
+
});
|
|
2353
|
+
return I(super.onTertiaryFixedVariant(), "2025", e);
|
|
2354
|
+
}
|
|
2355
|
+
error() {
|
|
2356
|
+
let e = L.fromPalette({
|
|
2357
|
+
name: "error",
|
|
2358
|
+
palette: (e) => e.errorPalette,
|
|
2359
|
+
tone: (e) => e.platform === "phone" ? e.isDark ? W(e.errorPalette, 0, 98) : U(e.errorPalette) : W(e.errorPalette),
|
|
2360
|
+
isBackground: !0,
|
|
2361
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : this.surfaceContainerHigh(),
|
|
2362
|
+
contrastCurve: (e) => e.platform === "phone" ? G(4.5) : G(7),
|
|
2363
|
+
toneDeltaPair: (e) => e.platform === "phone" ? new V(this.errorContainer(), this.error(), 5, "relative_lighter", !0, "farther") : void 0
|
|
2364
|
+
});
|
|
2365
|
+
return I(super.error(), "2025", e);
|
|
2366
|
+
}
|
|
2367
|
+
errorDim() {
|
|
2368
|
+
return L.fromPalette({
|
|
2369
|
+
name: "error_dim",
|
|
2370
|
+
palette: (e) => e.errorPalette,
|
|
2371
|
+
tone: (e) => W(e.errorPalette),
|
|
2372
|
+
isBackground: !0,
|
|
2373
|
+
background: (e) => this.surfaceContainerHigh(),
|
|
2374
|
+
contrastCurve: (e) => G(4.5),
|
|
2375
|
+
toneDeltaPair: (e) => new V(this.errorDim(), this.error(), 5, "darker", !0, "farther")
|
|
2376
|
+
});
|
|
2377
|
+
}
|
|
2378
|
+
onError() {
|
|
2379
|
+
let e = L.fromPalette({
|
|
2380
|
+
name: "on_error",
|
|
2381
|
+
palette: (e) => e.errorPalette,
|
|
2382
|
+
background: (e) => e.platform === "phone" ? this.error() : this.errorDim(),
|
|
2383
|
+
contrastCurve: (e) => e.platform === "phone" ? G(6) : G(7)
|
|
2384
|
+
});
|
|
2385
|
+
return I(super.onError(), "2025", e);
|
|
2386
|
+
}
|
|
2387
|
+
errorContainer() {
|
|
2388
|
+
let e = L.fromPalette({
|
|
2389
|
+
name: "error_container",
|
|
2390
|
+
palette: (e) => e.errorPalette,
|
|
2391
|
+
tone: (e) => e.platform === "watch" ? 30 : e.isDark ? W(e.errorPalette, 30, 93) : U(e.errorPalette, 0, 90),
|
|
2392
|
+
isBackground: !0,
|
|
2393
|
+
background: (e) => e.platform === "phone" ? this.highestSurface(e) : void 0,
|
|
2394
|
+
toneDeltaPair: (e) => e.platform === "watch" ? new V(this.errorContainer(), this.errorDim(), 10, "darker", !0, "farther") : void 0,
|
|
2395
|
+
contrastCurve: (e) => e.platform === "phone" && e.contrastLevel > 0 ? G(1.5) : void 0
|
|
2396
|
+
});
|
|
2397
|
+
return I(super.errorContainer(), "2025", e);
|
|
2398
|
+
}
|
|
2399
|
+
onErrorContainer() {
|
|
2400
|
+
let e = L.fromPalette({
|
|
2401
|
+
name: "on_error_container",
|
|
2402
|
+
palette: (e) => e.errorPalette,
|
|
2403
|
+
background: (e) => this.errorContainer(),
|
|
2404
|
+
contrastCurve: (e) => e.platform === "phone" ? G(4.5) : G(7)
|
|
2405
|
+
});
|
|
2406
|
+
return I(super.onErrorContainer(), "2025", e);
|
|
2407
|
+
}
|
|
2408
|
+
surfaceVariant() {
|
|
2409
|
+
let e = Object.assign(this.surfaceContainerHighest().clone(), { name: "surface_variant" });
|
|
2410
|
+
return I(super.surfaceVariant(), "2025", e);
|
|
2411
|
+
}
|
|
2412
|
+
surfaceTint() {
|
|
2413
|
+
let e = Object.assign(this.primary().clone(), { name: "surface_tint" });
|
|
2414
|
+
return I(super.surfaceTint(), "2025", e);
|
|
2415
|
+
}
|
|
2416
|
+
background() {
|
|
2417
|
+
let e = Object.assign(this.surface().clone(), { name: "background" });
|
|
2418
|
+
return I(super.background(), "2025", e);
|
|
2419
|
+
}
|
|
2420
|
+
onBackground() {
|
|
2421
|
+
let e = Object.assign(this.onSurface().clone(), {
|
|
2422
|
+
name: "on_background",
|
|
2423
|
+
tone: (e) => e.platform === "watch" ? 100 : this.onSurface().getTone(e)
|
|
2424
|
+
});
|
|
2425
|
+
return I(super.onBackground(), "2025", e);
|
|
2426
|
+
}
|
|
2427
|
+
}(), K.primaryPaletteKeyColor = K.colorSpec.primaryPaletteKeyColor(), K.secondaryPaletteKeyColor = K.colorSpec.secondaryPaletteKeyColor(), K.tertiaryPaletteKeyColor = K.colorSpec.tertiaryPaletteKeyColor(), K.neutralPaletteKeyColor = K.colorSpec.neutralPaletteKeyColor(), K.neutralVariantPaletteKeyColor = K.colorSpec.neutralVariantPaletteKeyColor(), K.background = K.colorSpec.background(), K.onBackground = K.colorSpec.onBackground(), K.surface = K.colorSpec.surface(), K.surfaceDim = K.colorSpec.surfaceDim(), K.surfaceBright = K.colorSpec.surfaceBright(), K.surfaceContainerLowest = K.colorSpec.surfaceContainerLowest(), K.surfaceContainerLow = K.colorSpec.surfaceContainerLow(), K.surfaceContainer = K.colorSpec.surfaceContainer(), K.surfaceContainerHigh = K.colorSpec.surfaceContainerHigh(), K.surfaceContainerHighest = K.colorSpec.surfaceContainerHighest(), K.onSurface = K.colorSpec.onSurface(), K.surfaceVariant = K.colorSpec.surfaceVariant(), K.onSurfaceVariant = K.colorSpec.onSurfaceVariant(), K.inverseSurface = K.colorSpec.inverseSurface(), K.inverseOnSurface = K.colorSpec.inverseOnSurface(), K.outline = K.colorSpec.outline(), K.outlineVariant = K.colorSpec.outlineVariant(), K.shadow = K.colorSpec.shadow(), K.scrim = K.colorSpec.scrim(), K.surfaceTint = K.colorSpec.surfaceTint(), K.primary = K.colorSpec.primary(), K.onPrimary = K.colorSpec.onPrimary(), K.primaryContainer = K.colorSpec.primaryContainer(), K.onPrimaryContainer = K.colorSpec.onPrimaryContainer(), K.inversePrimary = K.colorSpec.inversePrimary(), K.secondary = K.colorSpec.secondary(), K.onSecondary = K.colorSpec.onSecondary(), K.secondaryContainer = K.colorSpec.secondaryContainer(), K.onSecondaryContainer = K.colorSpec.onSecondaryContainer(), K.tertiary = K.colorSpec.tertiary(), K.onTertiary = K.colorSpec.onTertiary(), K.tertiaryContainer = K.colorSpec.tertiaryContainer(), K.onTertiaryContainer = K.colorSpec.onTertiaryContainer(), K.error = K.colorSpec.error(), K.onError = K.colorSpec.onError(), K.errorContainer = K.colorSpec.errorContainer(), K.onErrorContainer = K.colorSpec.onErrorContainer(), K.primaryFixed = K.colorSpec.primaryFixed(), K.primaryFixedDim = K.colorSpec.primaryFixedDim(), K.onPrimaryFixed = K.colorSpec.onPrimaryFixed(), K.onPrimaryFixedVariant = K.colorSpec.onPrimaryFixedVariant(), K.secondaryFixed = K.colorSpec.secondaryFixed(), K.secondaryFixedDim = K.colorSpec.secondaryFixedDim(), K.onSecondaryFixed = K.colorSpec.onSecondaryFixed(), K.onSecondaryFixedVariant = K.colorSpec.onSecondaryFixedVariant(), K.tertiaryFixed = K.colorSpec.tertiaryFixed(), K.tertiaryFixedDim = K.colorSpec.tertiaryFixedDim(), K.onTertiaryFixed = K.colorSpec.onTertiaryFixed(), K.onTertiaryFixedVariant = K.colorSpec.onTertiaryFixedVariant();
|
|
2428
|
+
var q = class e {
|
|
2429
|
+
static maybeFallbackSpecVersion(e, t) {
|
|
2430
|
+
switch (t) {
|
|
2431
|
+
case R.EXPRESSIVE:
|
|
2432
|
+
case R.VIBRANT:
|
|
2433
|
+
case R.TONAL_SPOT:
|
|
2434
|
+
case R.NEUTRAL: return e;
|
|
2435
|
+
default: return "2021";
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
constructor(t) {
|
|
2439
|
+
this.sourceColorArgb = t.sourceColorHct.toInt(), this.variant = t.variant, this.contrastLevel = t.contrastLevel, this.isDark = t.isDark, this.platform = t.platform ?? "phone", this.specVersion = e.maybeFallbackSpecVersion(t.specVersion ?? "2021", this.variant), this.sourceColorHct = t.sourceColorHct, this.primaryPalette = t.primaryPalette ?? Te(this.specVersion).getPrimaryPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.secondaryPalette = t.secondaryPalette ?? Te(this.specVersion).getSecondaryPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.tertiaryPalette = t.tertiaryPalette ?? Te(this.specVersion).getTertiaryPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.neutralPalette = t.neutralPalette ?? Te(this.specVersion).getNeutralPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.neutralVariantPalette = t.neutralVariantPalette ?? Te(this.specVersion).getNeutralVariantPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel), this.errorPalette = t.errorPalette ?? Te(this.specVersion).getErrorPalette(this.variant, t.sourceColorHct, this.isDark, this.platform, this.contrastLevel) ?? z.fromHueAndChroma(25, 84), this.colors = new K();
|
|
2440
|
+
}
|
|
2441
|
+
toString() {
|
|
2442
|
+
return `Scheme: variant=${R[this.variant]}, mode=${this.isDark ? "dark" : "light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`;
|
|
2443
|
+
}
|
|
2444
|
+
static getPiecewiseHue(e, t, n) {
|
|
2445
|
+
let r = Math.min(t.length - 1, n.length), i = e.hue;
|
|
2446
|
+
for (let e = 0; e < r; e++) if (i >= t[e] && i < t[e + 1]) return E(n[e]);
|
|
2447
|
+
return i;
|
|
2448
|
+
}
|
|
2449
|
+
static getRotatedHue(t, n, r) {
|
|
2450
|
+
let i = e.getPiecewiseHue(t, n, r);
|
|
2451
|
+
return Math.min(n.length - 1, r.length) <= 0 && (i = 0), E(t.hue + i);
|
|
2452
|
+
}
|
|
2453
|
+
getArgb(e) {
|
|
2454
|
+
return e.getArgb(this);
|
|
2455
|
+
}
|
|
2456
|
+
getHct(e) {
|
|
2457
|
+
return e.getHct(this);
|
|
2458
|
+
}
|
|
2459
|
+
get primaryPaletteKeyColor() {
|
|
2460
|
+
return this.getArgb(this.colors.primaryPaletteKeyColor());
|
|
2461
|
+
}
|
|
2462
|
+
get secondaryPaletteKeyColor() {
|
|
2463
|
+
return this.getArgb(this.colors.secondaryPaletteKeyColor());
|
|
2464
|
+
}
|
|
2465
|
+
get tertiaryPaletteKeyColor() {
|
|
2466
|
+
return this.getArgb(this.colors.tertiaryPaletteKeyColor());
|
|
2467
|
+
}
|
|
2468
|
+
get neutralPaletteKeyColor() {
|
|
2469
|
+
return this.getArgb(this.colors.neutralPaletteKeyColor());
|
|
2470
|
+
}
|
|
2471
|
+
get neutralVariantPaletteKeyColor() {
|
|
2472
|
+
return this.getArgb(this.colors.neutralVariantPaletteKeyColor());
|
|
2473
|
+
}
|
|
2474
|
+
get errorPaletteKeyColor() {
|
|
2475
|
+
return this.getArgb(this.colors.errorPaletteKeyColor());
|
|
2476
|
+
}
|
|
2477
|
+
get background() {
|
|
2478
|
+
return this.getArgb(this.colors.background());
|
|
2479
|
+
}
|
|
2480
|
+
get onBackground() {
|
|
2481
|
+
return this.getArgb(this.colors.onBackground());
|
|
2482
|
+
}
|
|
2483
|
+
get surface() {
|
|
2484
|
+
return this.getArgb(this.colors.surface());
|
|
2485
|
+
}
|
|
2486
|
+
get surfaceDim() {
|
|
2487
|
+
return this.getArgb(this.colors.surfaceDim());
|
|
2488
|
+
}
|
|
2489
|
+
get surfaceBright() {
|
|
2490
|
+
return this.getArgb(this.colors.surfaceBright());
|
|
2491
|
+
}
|
|
2492
|
+
get surfaceContainerLowest() {
|
|
2493
|
+
return this.getArgb(this.colors.surfaceContainerLowest());
|
|
2494
|
+
}
|
|
2495
|
+
get surfaceContainerLow() {
|
|
2496
|
+
return this.getArgb(this.colors.surfaceContainerLow());
|
|
2497
|
+
}
|
|
2498
|
+
get surfaceContainer() {
|
|
2499
|
+
return this.getArgb(this.colors.surfaceContainer());
|
|
2500
|
+
}
|
|
2501
|
+
get surfaceContainerHigh() {
|
|
2502
|
+
return this.getArgb(this.colors.surfaceContainerHigh());
|
|
2503
|
+
}
|
|
2504
|
+
get surfaceContainerHighest() {
|
|
2505
|
+
return this.getArgb(this.colors.surfaceContainerHighest());
|
|
2506
|
+
}
|
|
2507
|
+
get onSurface() {
|
|
2508
|
+
return this.getArgb(this.colors.onSurface());
|
|
2509
|
+
}
|
|
2510
|
+
get surfaceVariant() {
|
|
2511
|
+
return this.getArgb(this.colors.surfaceVariant());
|
|
2512
|
+
}
|
|
2513
|
+
get onSurfaceVariant() {
|
|
2514
|
+
return this.getArgb(this.colors.onSurfaceVariant());
|
|
2515
|
+
}
|
|
2516
|
+
get inverseSurface() {
|
|
2517
|
+
return this.getArgb(this.colors.inverseSurface());
|
|
2518
|
+
}
|
|
2519
|
+
get inverseOnSurface() {
|
|
2520
|
+
return this.getArgb(this.colors.inverseOnSurface());
|
|
2521
|
+
}
|
|
2522
|
+
get outline() {
|
|
2523
|
+
return this.getArgb(this.colors.outline());
|
|
2524
|
+
}
|
|
2525
|
+
get outlineVariant() {
|
|
2526
|
+
return this.getArgb(this.colors.outlineVariant());
|
|
2527
|
+
}
|
|
2528
|
+
get shadow() {
|
|
2529
|
+
return this.getArgb(this.colors.shadow());
|
|
2530
|
+
}
|
|
2531
|
+
get scrim() {
|
|
2532
|
+
return this.getArgb(this.colors.scrim());
|
|
2533
|
+
}
|
|
2534
|
+
get surfaceTint() {
|
|
2535
|
+
return this.getArgb(this.colors.surfaceTint());
|
|
2536
|
+
}
|
|
2537
|
+
get primary() {
|
|
2538
|
+
return this.getArgb(this.colors.primary());
|
|
2539
|
+
}
|
|
2540
|
+
get primaryDim() {
|
|
2541
|
+
let e = this.colors.primaryDim();
|
|
2542
|
+
if (e === void 0) throw Error("`primaryDim` color is undefined prior to 2025 spec.");
|
|
2543
|
+
return this.getArgb(e);
|
|
2544
|
+
}
|
|
2545
|
+
get onPrimary() {
|
|
2546
|
+
return this.getArgb(this.colors.onPrimary());
|
|
2547
|
+
}
|
|
2548
|
+
get primaryContainer() {
|
|
2549
|
+
return this.getArgb(this.colors.primaryContainer());
|
|
2550
|
+
}
|
|
2551
|
+
get onPrimaryContainer() {
|
|
2552
|
+
return this.getArgb(this.colors.onPrimaryContainer());
|
|
2553
|
+
}
|
|
2554
|
+
get primaryFixed() {
|
|
2555
|
+
return this.getArgb(this.colors.primaryFixed());
|
|
2556
|
+
}
|
|
2557
|
+
get primaryFixedDim() {
|
|
2558
|
+
return this.getArgb(this.colors.primaryFixedDim());
|
|
2559
|
+
}
|
|
2560
|
+
get onPrimaryFixed() {
|
|
2561
|
+
return this.getArgb(this.colors.onPrimaryFixed());
|
|
2562
|
+
}
|
|
2563
|
+
get onPrimaryFixedVariant() {
|
|
2564
|
+
return this.getArgb(this.colors.onPrimaryFixedVariant());
|
|
2565
|
+
}
|
|
2566
|
+
get inversePrimary() {
|
|
2567
|
+
return this.getArgb(this.colors.inversePrimary());
|
|
2568
|
+
}
|
|
2569
|
+
get secondary() {
|
|
2570
|
+
return this.getArgb(this.colors.secondary());
|
|
2571
|
+
}
|
|
2572
|
+
get secondaryDim() {
|
|
2573
|
+
let e = this.colors.secondaryDim();
|
|
2574
|
+
if (e === void 0) throw Error("`secondaryDim` color is undefined prior to 2025 spec.");
|
|
2575
|
+
return this.getArgb(e);
|
|
2576
|
+
}
|
|
2577
|
+
get onSecondary() {
|
|
2578
|
+
return this.getArgb(this.colors.onSecondary());
|
|
2579
|
+
}
|
|
2580
|
+
get secondaryContainer() {
|
|
2581
|
+
return this.getArgb(this.colors.secondaryContainer());
|
|
2582
|
+
}
|
|
2583
|
+
get onSecondaryContainer() {
|
|
2584
|
+
return this.getArgb(this.colors.onSecondaryContainer());
|
|
2585
|
+
}
|
|
2586
|
+
get secondaryFixed() {
|
|
2587
|
+
return this.getArgb(this.colors.secondaryFixed());
|
|
2588
|
+
}
|
|
2589
|
+
get secondaryFixedDim() {
|
|
2590
|
+
return this.getArgb(this.colors.secondaryFixedDim());
|
|
2591
|
+
}
|
|
2592
|
+
get onSecondaryFixed() {
|
|
2593
|
+
return this.getArgb(this.colors.onSecondaryFixed());
|
|
2594
|
+
}
|
|
2595
|
+
get onSecondaryFixedVariant() {
|
|
2596
|
+
return this.getArgb(this.colors.onSecondaryFixedVariant());
|
|
2597
|
+
}
|
|
2598
|
+
get tertiary() {
|
|
2599
|
+
return this.getArgb(this.colors.tertiary());
|
|
2600
|
+
}
|
|
2601
|
+
get tertiaryDim() {
|
|
2602
|
+
let e = this.colors.tertiaryDim();
|
|
2603
|
+
if (e === void 0) throw Error("`tertiaryDim` color is undefined prior to 2025 spec.");
|
|
2604
|
+
return this.getArgb(e);
|
|
2605
|
+
}
|
|
2606
|
+
get onTertiary() {
|
|
2607
|
+
return this.getArgb(this.colors.onTertiary());
|
|
2608
|
+
}
|
|
2609
|
+
get tertiaryContainer() {
|
|
2610
|
+
return this.getArgb(this.colors.tertiaryContainer());
|
|
2611
|
+
}
|
|
2612
|
+
get onTertiaryContainer() {
|
|
2613
|
+
return this.getArgb(this.colors.onTertiaryContainer());
|
|
2614
|
+
}
|
|
2615
|
+
get tertiaryFixed() {
|
|
2616
|
+
return this.getArgb(this.colors.tertiaryFixed());
|
|
2617
|
+
}
|
|
2618
|
+
get tertiaryFixedDim() {
|
|
2619
|
+
return this.getArgb(this.colors.tertiaryFixedDim());
|
|
2620
|
+
}
|
|
2621
|
+
get onTertiaryFixed() {
|
|
2622
|
+
return this.getArgb(this.colors.onTertiaryFixed());
|
|
2623
|
+
}
|
|
2624
|
+
get onTertiaryFixedVariant() {
|
|
2625
|
+
return this.getArgb(this.colors.onTertiaryFixedVariant());
|
|
2626
|
+
}
|
|
2627
|
+
get error() {
|
|
2628
|
+
return this.getArgb(this.colors.error());
|
|
2629
|
+
}
|
|
2630
|
+
get errorDim() {
|
|
2631
|
+
let e = this.colors.errorDim();
|
|
2632
|
+
if (e === void 0) throw Error("`errorDim` color is undefined prior to 2025 spec.");
|
|
2633
|
+
return this.getArgb(e);
|
|
2634
|
+
}
|
|
2635
|
+
get onError() {
|
|
2636
|
+
return this.getArgb(this.colors.onError());
|
|
2637
|
+
}
|
|
2638
|
+
get errorContainer() {
|
|
2639
|
+
return this.getArgb(this.colors.errorContainer());
|
|
2640
|
+
}
|
|
2641
|
+
get onErrorContainer() {
|
|
2642
|
+
return this.getArgb(this.colors.onErrorContainer());
|
|
2643
|
+
}
|
|
2644
|
+
};
|
|
2645
|
+
q.DEFAULT_SPEC_VERSION = "2021", q.DEFAULT_PLATFORM = "phone";
|
|
2646
|
+
var Se = class {
|
|
2647
|
+
getPrimaryPalette(e, t, n, r, i) {
|
|
2648
|
+
switch (e) {
|
|
2649
|
+
case R.CONTENT:
|
|
2650
|
+
case R.FIDELITY: return z.fromHueAndChroma(t.hue, t.chroma);
|
|
2651
|
+
case R.FRUIT_SALAD: return z.fromHueAndChroma(E(t.hue - 50), 48);
|
|
2652
|
+
case R.MONOCHROME: return z.fromHueAndChroma(t.hue, 0);
|
|
2653
|
+
case R.NEUTRAL: return z.fromHueAndChroma(t.hue, 12);
|
|
2654
|
+
case R.RAINBOW: return z.fromHueAndChroma(t.hue, 48);
|
|
2655
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(t.hue, 36);
|
|
2656
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(E(t.hue + 240), 40);
|
|
2657
|
+
case R.VIBRANT: return z.fromHueAndChroma(t.hue, 200);
|
|
2658
|
+
default: throw Error(`Unsupported variant: ${e}`);
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
getSecondaryPalette(e, t, n, r, i) {
|
|
2662
|
+
switch (e) {
|
|
2663
|
+
case R.CONTENT:
|
|
2664
|
+
case R.FIDELITY: return z.fromHueAndChroma(t.hue, Math.max(t.chroma - 32, .5 * t.chroma));
|
|
2665
|
+
case R.FRUIT_SALAD: return z.fromHueAndChroma(E(t.hue - 50), 36);
|
|
2666
|
+
case R.MONOCHROME: return z.fromHueAndChroma(t.hue, 0);
|
|
2667
|
+
case R.NEUTRAL: return z.fromHueAndChroma(t.hue, 8);
|
|
2668
|
+
case R.RAINBOW:
|
|
2669
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(t.hue, 16);
|
|
2670
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2671
|
+
0,
|
|
2672
|
+
21,
|
|
2673
|
+
51,
|
|
2674
|
+
121,
|
|
2675
|
+
151,
|
|
2676
|
+
191,
|
|
2677
|
+
271,
|
|
2678
|
+
321,
|
|
2679
|
+
360
|
|
2680
|
+
], [
|
|
2681
|
+
45,
|
|
2682
|
+
95,
|
|
2683
|
+
45,
|
|
2684
|
+
20,
|
|
2685
|
+
45,
|
|
2686
|
+
90,
|
|
2687
|
+
45,
|
|
2688
|
+
45,
|
|
2689
|
+
45
|
|
2690
|
+
]), 24);
|
|
2691
|
+
case R.VIBRANT: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2692
|
+
0,
|
|
2693
|
+
41,
|
|
2694
|
+
61,
|
|
2695
|
+
101,
|
|
2696
|
+
131,
|
|
2697
|
+
181,
|
|
2698
|
+
251,
|
|
2699
|
+
301,
|
|
2700
|
+
360
|
|
2701
|
+
], [
|
|
2702
|
+
18,
|
|
2703
|
+
15,
|
|
2704
|
+
10,
|
|
2705
|
+
12,
|
|
2706
|
+
15,
|
|
2707
|
+
18,
|
|
2708
|
+
15,
|
|
2709
|
+
12,
|
|
2710
|
+
12
|
|
2711
|
+
]), 24);
|
|
2712
|
+
default: throw Error(`Unsupported variant: ${e}`);
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
getTertiaryPalette(e, t, n, r, i) {
|
|
2716
|
+
switch (e) {
|
|
2717
|
+
case R.CONTENT: return z.fromHct(pe.fixIfDisliked(new ve(t).analogous(3, 6)[2]));
|
|
2718
|
+
case R.FIDELITY: return z.fromHct(pe.fixIfDisliked(new ve(t).complement));
|
|
2719
|
+
case R.FRUIT_SALAD: return z.fromHueAndChroma(t.hue, 36);
|
|
2720
|
+
case R.MONOCHROME: return z.fromHueAndChroma(t.hue, 0);
|
|
2721
|
+
case R.NEUTRAL: return z.fromHueAndChroma(t.hue, 16);
|
|
2722
|
+
case R.RAINBOW:
|
|
2723
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(E(t.hue + 60), 24);
|
|
2724
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2725
|
+
0,
|
|
2726
|
+
21,
|
|
2727
|
+
51,
|
|
2728
|
+
121,
|
|
2729
|
+
151,
|
|
2730
|
+
191,
|
|
2731
|
+
271,
|
|
2732
|
+
321,
|
|
2733
|
+
360
|
|
2734
|
+
], [
|
|
2735
|
+
120,
|
|
2736
|
+
120,
|
|
2737
|
+
20,
|
|
2738
|
+
45,
|
|
2739
|
+
20,
|
|
2740
|
+
15,
|
|
2741
|
+
20,
|
|
2742
|
+
120,
|
|
2743
|
+
120
|
|
2744
|
+
]), 32);
|
|
2745
|
+
case R.VIBRANT: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2746
|
+
0,
|
|
2747
|
+
41,
|
|
2748
|
+
61,
|
|
2749
|
+
101,
|
|
2750
|
+
131,
|
|
2751
|
+
181,
|
|
2752
|
+
251,
|
|
2753
|
+
301,
|
|
2754
|
+
360
|
|
2755
|
+
], [
|
|
2756
|
+
35,
|
|
2757
|
+
30,
|
|
2758
|
+
20,
|
|
2759
|
+
25,
|
|
2760
|
+
30,
|
|
2761
|
+
35,
|
|
2762
|
+
30,
|
|
2763
|
+
25,
|
|
2764
|
+
25
|
|
2765
|
+
]), 32);
|
|
2766
|
+
default: throw Error(`Unsupported variant: ${e}`);
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
getNeutralPalette(e, t, n, r, i) {
|
|
2770
|
+
switch (e) {
|
|
2771
|
+
case R.CONTENT:
|
|
2772
|
+
case R.FIDELITY: return z.fromHueAndChroma(t.hue, t.chroma / 8);
|
|
2773
|
+
case R.FRUIT_SALAD: return z.fromHueAndChroma(t.hue, 10);
|
|
2774
|
+
case R.MONOCHROME: return z.fromHueAndChroma(t.hue, 0);
|
|
2775
|
+
case R.NEUTRAL: return z.fromHueAndChroma(t.hue, 2);
|
|
2776
|
+
case R.RAINBOW: return z.fromHueAndChroma(t.hue, 0);
|
|
2777
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(t.hue, 6);
|
|
2778
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(E(t.hue + 15), 8);
|
|
2779
|
+
case R.VIBRANT: return z.fromHueAndChroma(t.hue, 10);
|
|
2780
|
+
default: throw Error(`Unsupported variant: ${e}`);
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
getNeutralVariantPalette(e, t, n, r, i) {
|
|
2784
|
+
switch (e) {
|
|
2785
|
+
case R.CONTENT:
|
|
2786
|
+
case R.FIDELITY: return z.fromHueAndChroma(t.hue, t.chroma / 8 + 4);
|
|
2787
|
+
case R.FRUIT_SALAD: return z.fromHueAndChroma(t.hue, 16);
|
|
2788
|
+
case R.MONOCHROME: return z.fromHueAndChroma(t.hue, 0);
|
|
2789
|
+
case R.NEUTRAL: return z.fromHueAndChroma(t.hue, 2);
|
|
2790
|
+
case R.RAINBOW: return z.fromHueAndChroma(t.hue, 0);
|
|
2791
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(t.hue, 8);
|
|
2792
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(E(t.hue + 15), 12);
|
|
2793
|
+
case R.VIBRANT: return z.fromHueAndChroma(t.hue, 12);
|
|
2794
|
+
default: throw Error(`Unsupported variant: ${e}`);
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
getErrorPalette(e, t, n, r, i) {}
|
|
2798
|
+
}, Ce = new Se(), we = new class e extends Se {
|
|
2799
|
+
getPrimaryPalette(e, t, n, r, i) {
|
|
2800
|
+
switch (e) {
|
|
2801
|
+
case R.NEUTRAL: return z.fromHueAndChroma(t.hue, r === "phone" ? P.isBlue(t.hue) ? 12 : 8 : P.isBlue(t.hue) ? 16 : 12);
|
|
2802
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(t.hue, r === "phone" && n ? 26 : 32);
|
|
2803
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(t.hue, r === "phone" ? n ? 36 : 48 : 40);
|
|
2804
|
+
case R.VIBRANT: return z.fromHueAndChroma(t.hue, r === "phone" ? 74 : 56);
|
|
2805
|
+
default: return super.getPrimaryPalette(e, t, n, r, i);
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
getSecondaryPalette(e, t, n, r, i) {
|
|
2809
|
+
switch (e) {
|
|
2810
|
+
case R.NEUTRAL: return z.fromHueAndChroma(t.hue, r === "phone" ? P.isBlue(t.hue) ? 6 : 4 : P.isBlue(t.hue) ? 10 : 6);
|
|
2811
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(t.hue, 16);
|
|
2812
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2813
|
+
0,
|
|
2814
|
+
105,
|
|
2815
|
+
140,
|
|
2816
|
+
204,
|
|
2817
|
+
253,
|
|
2818
|
+
278,
|
|
2819
|
+
300,
|
|
2820
|
+
333,
|
|
2821
|
+
360
|
|
2822
|
+
], [
|
|
2823
|
+
-160,
|
|
2824
|
+
155,
|
|
2825
|
+
-100,
|
|
2826
|
+
96,
|
|
2827
|
+
-96,
|
|
2828
|
+
-156,
|
|
2829
|
+
-165,
|
|
2830
|
+
-160
|
|
2831
|
+
]), r === "phone" && n ? 16 : 24);
|
|
2832
|
+
case R.VIBRANT: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2833
|
+
0,
|
|
2834
|
+
38,
|
|
2835
|
+
105,
|
|
2836
|
+
140,
|
|
2837
|
+
333,
|
|
2838
|
+
360
|
|
2839
|
+
], [
|
|
2840
|
+
-14,
|
|
2841
|
+
10,
|
|
2842
|
+
-14,
|
|
2843
|
+
10,
|
|
2844
|
+
-14
|
|
2845
|
+
]), r === "phone" ? 56 : 36);
|
|
2846
|
+
default: return super.getSecondaryPalette(e, t, n, r, i);
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
getTertiaryPalette(e, t, n, r, i) {
|
|
2850
|
+
switch (e) {
|
|
2851
|
+
case R.NEUTRAL: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2852
|
+
0,
|
|
2853
|
+
38,
|
|
2854
|
+
105,
|
|
2855
|
+
161,
|
|
2856
|
+
204,
|
|
2857
|
+
278,
|
|
2858
|
+
333,
|
|
2859
|
+
360
|
|
2860
|
+
], [
|
|
2861
|
+
-32,
|
|
2862
|
+
26,
|
|
2863
|
+
10,
|
|
2864
|
+
-39,
|
|
2865
|
+
24,
|
|
2866
|
+
-15,
|
|
2867
|
+
-32
|
|
2868
|
+
]), r === "phone" ? 20 : 36);
|
|
2869
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2870
|
+
0,
|
|
2871
|
+
20,
|
|
2872
|
+
71,
|
|
2873
|
+
161,
|
|
2874
|
+
333,
|
|
2875
|
+
360
|
|
2876
|
+
], [
|
|
2877
|
+
-40,
|
|
2878
|
+
48,
|
|
2879
|
+
-32,
|
|
2880
|
+
40,
|
|
2881
|
+
-32
|
|
2882
|
+
]), r === "phone" ? 28 : 32);
|
|
2883
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2884
|
+
0,
|
|
2885
|
+
105,
|
|
2886
|
+
140,
|
|
2887
|
+
204,
|
|
2888
|
+
253,
|
|
2889
|
+
278,
|
|
2890
|
+
300,
|
|
2891
|
+
333,
|
|
2892
|
+
360
|
|
2893
|
+
], [
|
|
2894
|
+
-165,
|
|
2895
|
+
160,
|
|
2896
|
+
-105,
|
|
2897
|
+
101,
|
|
2898
|
+
-101,
|
|
2899
|
+
-160,
|
|
2900
|
+
-170,
|
|
2901
|
+
-165
|
|
2902
|
+
]), 48);
|
|
2903
|
+
case R.VIBRANT: return z.fromHueAndChroma(q.getRotatedHue(t, [
|
|
2904
|
+
0,
|
|
2905
|
+
38,
|
|
2906
|
+
71,
|
|
2907
|
+
105,
|
|
2908
|
+
140,
|
|
2909
|
+
161,
|
|
2910
|
+
253,
|
|
2911
|
+
333,
|
|
2912
|
+
360
|
|
2913
|
+
], [
|
|
2914
|
+
-72,
|
|
2915
|
+
35,
|
|
2916
|
+
24,
|
|
2917
|
+
-24,
|
|
2918
|
+
62,
|
|
2919
|
+
50,
|
|
2920
|
+
62,
|
|
2921
|
+
-72
|
|
2922
|
+
]), 56);
|
|
2923
|
+
default: return super.getTertiaryPalette(e, t, n, r, i);
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
static getExpressiveNeutralHue(e) {
|
|
2927
|
+
return q.getRotatedHue(e, [
|
|
2928
|
+
0,
|
|
2929
|
+
71,
|
|
2930
|
+
124,
|
|
2931
|
+
253,
|
|
2932
|
+
278,
|
|
2933
|
+
300,
|
|
2934
|
+
360
|
|
2935
|
+
], [
|
|
2936
|
+
10,
|
|
2937
|
+
0,
|
|
2938
|
+
10,
|
|
2939
|
+
0,
|
|
2940
|
+
10,
|
|
2941
|
+
0
|
|
2942
|
+
]);
|
|
2943
|
+
}
|
|
2944
|
+
static getExpressiveNeutralChroma(t, n, r) {
|
|
2945
|
+
let i = e.getExpressiveNeutralHue(t);
|
|
2946
|
+
return r === "phone" ? n ? P.isYellow(i) ? 6 : 14 : 18 : 12;
|
|
2947
|
+
}
|
|
2948
|
+
static getVibrantNeutralHue(e) {
|
|
2949
|
+
return q.getRotatedHue(e, [
|
|
2950
|
+
0,
|
|
2951
|
+
38,
|
|
2952
|
+
105,
|
|
2953
|
+
140,
|
|
2954
|
+
333,
|
|
2955
|
+
360
|
|
2956
|
+
], [
|
|
2957
|
+
-14,
|
|
2958
|
+
10,
|
|
2959
|
+
-14,
|
|
2960
|
+
10,
|
|
2961
|
+
-14
|
|
2962
|
+
]);
|
|
2963
|
+
}
|
|
2964
|
+
static getVibrantNeutralChroma(t, n) {
|
|
2965
|
+
let r = e.getVibrantNeutralHue(t);
|
|
2966
|
+
return n === "phone" || P.isBlue(r) ? 28 : 20;
|
|
2967
|
+
}
|
|
2968
|
+
getNeutralPalette(t, n, r, i, a) {
|
|
2969
|
+
switch (t) {
|
|
2970
|
+
case R.NEUTRAL: return z.fromHueAndChroma(n.hue, i === "phone" ? 1.4 : 6);
|
|
2971
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(n.hue, i === "phone" ? 5 : 10);
|
|
2972
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(e.getExpressiveNeutralHue(n), e.getExpressiveNeutralChroma(n, r, i));
|
|
2973
|
+
case R.VIBRANT: return z.fromHueAndChroma(e.getVibrantNeutralHue(n), e.getVibrantNeutralChroma(n, i));
|
|
2974
|
+
default: return super.getNeutralPalette(t, n, r, i, a);
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
getNeutralVariantPalette(t, n, r, i, a) {
|
|
2978
|
+
switch (t) {
|
|
2979
|
+
case R.NEUTRAL: return z.fromHueAndChroma(n.hue, 2.2 * (i === "phone" ? 1.4 : 6));
|
|
2980
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(n.hue, 1.7 * (i === "phone" ? 5 : 10));
|
|
2981
|
+
case R.EXPRESSIVE:
|
|
2982
|
+
let o = e.getExpressiveNeutralHue(n), s = e.getExpressiveNeutralChroma(n, r, i);
|
|
2983
|
+
return z.fromHueAndChroma(o, s * (o >= 105 && o < 125 ? 1.6 : 2.3));
|
|
2984
|
+
case R.VIBRANT:
|
|
2985
|
+
let c = e.getVibrantNeutralHue(n), l = e.getVibrantNeutralChroma(n, i);
|
|
2986
|
+
return z.fromHueAndChroma(c, 1.29 * l);
|
|
2987
|
+
default: return super.getNeutralVariantPalette(t, n, r, i, a);
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
getErrorPalette(e, t, n, r, i) {
|
|
2991
|
+
let a = q.getPiecewiseHue(t, [
|
|
2992
|
+
0,
|
|
2993
|
+
3,
|
|
2994
|
+
13,
|
|
2995
|
+
23,
|
|
2996
|
+
33,
|
|
2997
|
+
43,
|
|
2998
|
+
153,
|
|
2999
|
+
273,
|
|
3000
|
+
360
|
|
3001
|
+
], [
|
|
3002
|
+
12,
|
|
3003
|
+
22,
|
|
3004
|
+
32,
|
|
3005
|
+
12,
|
|
3006
|
+
22,
|
|
3007
|
+
32,
|
|
3008
|
+
22,
|
|
3009
|
+
12
|
|
3010
|
+
]);
|
|
3011
|
+
switch (e) {
|
|
3012
|
+
case R.NEUTRAL: return z.fromHueAndChroma(a, r === "phone" ? 50 : 40);
|
|
3013
|
+
case R.TONAL_SPOT: return z.fromHueAndChroma(a, r === "phone" ? 60 : 48);
|
|
3014
|
+
case R.EXPRESSIVE: return z.fromHueAndChroma(a, r === "phone" ? 64 : 48);
|
|
3015
|
+
case R.VIBRANT: return z.fromHueAndChroma(a, r === "phone" ? 80 : 60);
|
|
3016
|
+
default: return super.getErrorPalette(e, t, n, r, i);
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
}();
|
|
3020
|
+
function Te(e) {
|
|
3021
|
+
return e === "2025" ? we : Ce;
|
|
3022
|
+
}
|
|
3023
|
+
var Ee = class e {
|
|
3024
|
+
static of(t) {
|
|
3025
|
+
return new e(t, !1);
|
|
3026
|
+
}
|
|
3027
|
+
static contentOf(t) {
|
|
3028
|
+
return new e(t, !0);
|
|
3029
|
+
}
|
|
3030
|
+
static fromColors(t) {
|
|
3031
|
+
return e.createPaletteFromColors(!1, t);
|
|
3032
|
+
}
|
|
3033
|
+
static contentFromColors(t) {
|
|
3034
|
+
return e.createPaletteFromColors(!0, t);
|
|
3035
|
+
}
|
|
3036
|
+
static createPaletteFromColors(t, n) {
|
|
3037
|
+
let r = new e(n.primary, t);
|
|
3038
|
+
return n.secondary && (r.a2 = new e(n.secondary, t).a1), n.tertiary && (r.a3 = new e(n.tertiary, t).a1), n.error && (r.error = new e(n.error, t).a1), n.neutral && (r.n1 = new e(n.neutral, t).n1), n.neutralVariant && (r.n2 = new e(n.neutralVariant, t).n2), r;
|
|
3039
|
+
}
|
|
3040
|
+
constructor(e, t) {
|
|
3041
|
+
let n = P.fromInt(e), r = n.hue, i = n.chroma;
|
|
3042
|
+
t ? (this.a1 = z.fromHueAndChroma(r, i), this.a2 = z.fromHueAndChroma(r, i / 3), this.a3 = z.fromHueAndChroma(r + 60, i / 2), this.n1 = z.fromHueAndChroma(r, Math.min(i / 12, 4)), this.n2 = z.fromHueAndChroma(r, Math.min(i / 6, 8))) : (this.a1 = z.fromHueAndChroma(r, Math.max(48, i)), this.a2 = z.fromHueAndChroma(r, 16), this.a3 = z.fromHueAndChroma(r + 60, 24), this.n1 = z.fromHueAndChroma(r, 4), this.n2 = z.fromHueAndChroma(r, 8)), this.error = z.fromHueAndChroma(25, 84);
|
|
3043
|
+
}
|
|
3044
|
+
}, De = class e {
|
|
3045
|
+
get primary() {
|
|
3046
|
+
return this.props.primary;
|
|
3047
|
+
}
|
|
3048
|
+
get onPrimary() {
|
|
3049
|
+
return this.props.onPrimary;
|
|
3050
|
+
}
|
|
3051
|
+
get primaryContainer() {
|
|
3052
|
+
return this.props.primaryContainer;
|
|
3053
|
+
}
|
|
3054
|
+
get onPrimaryContainer() {
|
|
3055
|
+
return this.props.onPrimaryContainer;
|
|
3056
|
+
}
|
|
3057
|
+
get secondary() {
|
|
3058
|
+
return this.props.secondary;
|
|
3059
|
+
}
|
|
3060
|
+
get onSecondary() {
|
|
3061
|
+
return this.props.onSecondary;
|
|
3062
|
+
}
|
|
3063
|
+
get secondaryContainer() {
|
|
3064
|
+
return this.props.secondaryContainer;
|
|
3065
|
+
}
|
|
3066
|
+
get onSecondaryContainer() {
|
|
3067
|
+
return this.props.onSecondaryContainer;
|
|
3068
|
+
}
|
|
3069
|
+
get tertiary() {
|
|
3070
|
+
return this.props.tertiary;
|
|
3071
|
+
}
|
|
3072
|
+
get onTertiary() {
|
|
3073
|
+
return this.props.onTertiary;
|
|
3074
|
+
}
|
|
3075
|
+
get tertiaryContainer() {
|
|
3076
|
+
return this.props.tertiaryContainer;
|
|
3077
|
+
}
|
|
3078
|
+
get onTertiaryContainer() {
|
|
3079
|
+
return this.props.onTertiaryContainer;
|
|
3080
|
+
}
|
|
3081
|
+
get error() {
|
|
3082
|
+
return this.props.error;
|
|
3083
|
+
}
|
|
3084
|
+
get onError() {
|
|
3085
|
+
return this.props.onError;
|
|
3086
|
+
}
|
|
3087
|
+
get errorContainer() {
|
|
3088
|
+
return this.props.errorContainer;
|
|
3089
|
+
}
|
|
3090
|
+
get onErrorContainer() {
|
|
3091
|
+
return this.props.onErrorContainer;
|
|
3092
|
+
}
|
|
3093
|
+
get background() {
|
|
3094
|
+
return this.props.background;
|
|
3095
|
+
}
|
|
3096
|
+
get onBackground() {
|
|
3097
|
+
return this.props.onBackground;
|
|
3098
|
+
}
|
|
3099
|
+
get surface() {
|
|
3100
|
+
return this.props.surface;
|
|
3101
|
+
}
|
|
3102
|
+
get onSurface() {
|
|
3103
|
+
return this.props.onSurface;
|
|
3104
|
+
}
|
|
3105
|
+
get surfaceVariant() {
|
|
3106
|
+
return this.props.surfaceVariant;
|
|
3107
|
+
}
|
|
3108
|
+
get onSurfaceVariant() {
|
|
3109
|
+
return this.props.onSurfaceVariant;
|
|
3110
|
+
}
|
|
3111
|
+
get outline() {
|
|
3112
|
+
return this.props.outline;
|
|
3113
|
+
}
|
|
3114
|
+
get outlineVariant() {
|
|
3115
|
+
return this.props.outlineVariant;
|
|
3116
|
+
}
|
|
3117
|
+
get shadow() {
|
|
3118
|
+
return this.props.shadow;
|
|
3119
|
+
}
|
|
3120
|
+
get scrim() {
|
|
3121
|
+
return this.props.scrim;
|
|
3122
|
+
}
|
|
3123
|
+
get inverseSurface() {
|
|
3124
|
+
return this.props.inverseSurface;
|
|
3125
|
+
}
|
|
3126
|
+
get inverseOnSurface() {
|
|
3127
|
+
return this.props.inverseOnSurface;
|
|
3128
|
+
}
|
|
3129
|
+
get inversePrimary() {
|
|
3130
|
+
return this.props.inversePrimary;
|
|
3131
|
+
}
|
|
3132
|
+
static light(t) {
|
|
3133
|
+
return e.lightFromCorePalette(Ee.of(t));
|
|
3134
|
+
}
|
|
3135
|
+
static dark(t) {
|
|
3136
|
+
return e.darkFromCorePalette(Ee.of(t));
|
|
3137
|
+
}
|
|
3138
|
+
static lightContent(t) {
|
|
3139
|
+
return e.lightFromCorePalette(Ee.contentOf(t));
|
|
3140
|
+
}
|
|
3141
|
+
static darkContent(t) {
|
|
3142
|
+
return e.darkFromCorePalette(Ee.contentOf(t));
|
|
3143
|
+
}
|
|
3144
|
+
static lightFromCorePalette(t) {
|
|
3145
|
+
return new e({
|
|
3146
|
+
primary: t.a1.tone(40),
|
|
3147
|
+
onPrimary: t.a1.tone(100),
|
|
3148
|
+
primaryContainer: t.a1.tone(90),
|
|
3149
|
+
onPrimaryContainer: t.a1.tone(10),
|
|
3150
|
+
secondary: t.a2.tone(40),
|
|
3151
|
+
onSecondary: t.a2.tone(100),
|
|
3152
|
+
secondaryContainer: t.a2.tone(90),
|
|
3153
|
+
onSecondaryContainer: t.a2.tone(10),
|
|
3154
|
+
tertiary: t.a3.tone(40),
|
|
3155
|
+
onTertiary: t.a3.tone(100),
|
|
3156
|
+
tertiaryContainer: t.a3.tone(90),
|
|
3157
|
+
onTertiaryContainer: t.a3.tone(10),
|
|
3158
|
+
error: t.error.tone(40),
|
|
3159
|
+
onError: t.error.tone(100),
|
|
3160
|
+
errorContainer: t.error.tone(90),
|
|
3161
|
+
onErrorContainer: t.error.tone(10),
|
|
3162
|
+
background: t.n1.tone(99),
|
|
3163
|
+
onBackground: t.n1.tone(10),
|
|
3164
|
+
surface: t.n1.tone(99),
|
|
3165
|
+
onSurface: t.n1.tone(10),
|
|
3166
|
+
surfaceVariant: t.n2.tone(90),
|
|
3167
|
+
onSurfaceVariant: t.n2.tone(30),
|
|
3168
|
+
outline: t.n2.tone(50),
|
|
3169
|
+
outlineVariant: t.n2.tone(80),
|
|
3170
|
+
shadow: t.n1.tone(0),
|
|
3171
|
+
scrim: t.n1.tone(0),
|
|
3172
|
+
inverseSurface: t.n1.tone(20),
|
|
3173
|
+
inverseOnSurface: t.n1.tone(95),
|
|
3174
|
+
inversePrimary: t.a1.tone(80)
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3177
|
+
static darkFromCorePalette(t) {
|
|
3178
|
+
return new e({
|
|
3179
|
+
primary: t.a1.tone(80),
|
|
3180
|
+
onPrimary: t.a1.tone(20),
|
|
3181
|
+
primaryContainer: t.a1.tone(30),
|
|
3182
|
+
onPrimaryContainer: t.a1.tone(90),
|
|
3183
|
+
secondary: t.a2.tone(80),
|
|
3184
|
+
onSecondary: t.a2.tone(20),
|
|
3185
|
+
secondaryContainer: t.a2.tone(30),
|
|
3186
|
+
onSecondaryContainer: t.a2.tone(90),
|
|
3187
|
+
tertiary: t.a3.tone(80),
|
|
3188
|
+
onTertiary: t.a3.tone(20),
|
|
3189
|
+
tertiaryContainer: t.a3.tone(30),
|
|
3190
|
+
onTertiaryContainer: t.a3.tone(90),
|
|
3191
|
+
error: t.error.tone(80),
|
|
3192
|
+
onError: t.error.tone(20),
|
|
3193
|
+
errorContainer: t.error.tone(30),
|
|
3194
|
+
onErrorContainer: t.error.tone(80),
|
|
3195
|
+
background: t.n1.tone(10),
|
|
3196
|
+
onBackground: t.n1.tone(90),
|
|
3197
|
+
surface: t.n1.tone(10),
|
|
3198
|
+
onSurface: t.n1.tone(90),
|
|
3199
|
+
surfaceVariant: t.n2.tone(30),
|
|
3200
|
+
onSurfaceVariant: t.n2.tone(80),
|
|
3201
|
+
outline: t.n2.tone(60),
|
|
3202
|
+
outlineVariant: t.n2.tone(30),
|
|
3203
|
+
shadow: t.n1.tone(0),
|
|
3204
|
+
scrim: t.n1.tone(0),
|
|
3205
|
+
inverseSurface: t.n1.tone(90),
|
|
3206
|
+
inverseOnSurface: t.n1.tone(20),
|
|
3207
|
+
inversePrimary: t.a1.tone(40)
|
|
3208
|
+
});
|
|
3209
|
+
}
|
|
3210
|
+
constructor(e) {
|
|
3211
|
+
this.props = e;
|
|
3212
|
+
}
|
|
3213
|
+
toJSON() {
|
|
3214
|
+
return { ...this.props };
|
|
3215
|
+
}
|
|
3216
|
+
}, Oe = {
|
|
3217
|
+
desired: 4,
|
|
3218
|
+
fallbackColorARGB: 4282549748,
|
|
3219
|
+
filter: !0
|
|
3220
|
+
};
|
|
3221
|
+
function ke(e, t) {
|
|
3222
|
+
return e.score > t.score ? -1 : +(e.score < t.score);
|
|
3223
|
+
}
|
|
3224
|
+
var Ae = class e {
|
|
3225
|
+
constructor() {}
|
|
3226
|
+
static score(t, n) {
|
|
3227
|
+
let { desired: r, fallbackColorARGB: i, filter: a } = {
|
|
3228
|
+
...Oe,
|
|
3229
|
+
...n
|
|
3230
|
+
}, o = [], s = Array(360).fill(0), c = 0;
|
|
3231
|
+
for (let [e, n] of t.entries()) {
|
|
3232
|
+
let t = P.fromInt(e);
|
|
3233
|
+
o.push(t), s[Math.floor(t.hue)] += n, c += n;
|
|
3234
|
+
}
|
|
3235
|
+
let l = Array(360).fill(0);
|
|
3236
|
+
for (let e = 0; e < 360; e++) {
|
|
3237
|
+
let t = s[e] / c;
|
|
3238
|
+
for (let n = e - 14; n < e + 16; n++) l[T(n)] += t;
|
|
3239
|
+
}
|
|
3240
|
+
let u = [];
|
|
3241
|
+
for (let t of o) {
|
|
3242
|
+
let n = l[T(Math.round(t.hue))];
|
|
3243
|
+
if (a && (t.chroma < e.CUTOFF_CHROMA || n <= e.CUTOFF_EXCITED_PROPORTION)) continue;
|
|
3244
|
+
let r = 100 * n * e.WEIGHT_PROPORTION, i = t.chroma < e.TARGET_CHROMA ? e.WEIGHT_CHROMA_BELOW : e.WEIGHT_CHROMA_ABOVE, o = r + (t.chroma - e.TARGET_CHROMA) * i;
|
|
3245
|
+
u.push({
|
|
3246
|
+
hct: t,
|
|
3247
|
+
score: o
|
|
3248
|
+
});
|
|
3249
|
+
}
|
|
3250
|
+
u.sort(ke);
|
|
3251
|
+
let d = [];
|
|
3252
|
+
for (let e = 90; e >= 15; e--) {
|
|
3253
|
+
d.length = 0;
|
|
3254
|
+
for (let { hct: t } of u) if (d.find((n) => ee(t.hue, n.hue) < e) || d.push(t), d.length >= r) break;
|
|
3255
|
+
if (d.length >= r) break;
|
|
3256
|
+
}
|
|
3257
|
+
let f = [];
|
|
3258
|
+
d.length === 0 && f.push(i);
|
|
3259
|
+
for (let e of d) f.push(e.toInt());
|
|
3260
|
+
return f;
|
|
3261
|
+
}
|
|
3262
|
+
};
|
|
3263
|
+
function je(e) {
|
|
3264
|
+
let t = (e = e.replace("#", "")).length === 3, n = e.length === 6, r = e.length === 8;
|
|
3265
|
+
if (!t && !n && !r) throw Error("unexpected hex " + e);
|
|
3266
|
+
let i = 0, a = 0, o = 0;
|
|
3267
|
+
return t ? (i = J(e.slice(0, 1).repeat(2)), a = J(e.slice(1, 2).repeat(2)), o = J(e.slice(2, 3).repeat(2))) : n ? (i = J(e.slice(0, 2)), a = J(e.slice(2, 4)), o = J(e.slice(4, 6))) : r && (i = J(e.slice(2, 4)), a = J(e.slice(4, 6)), o = J(e.slice(6, 8))), (255 << 24 | (255 & i) << 16 | (255 & a) << 8 | 255 & o) >>> 0;
|
|
3268
|
+
}
|
|
3269
|
+
function J(e) {
|
|
3270
|
+
return parseInt(e, 16);
|
|
3271
|
+
}
|
|
3272
|
+
function Me(e, t = []) {
|
|
3273
|
+
let n = Ee.of(e);
|
|
3274
|
+
return {
|
|
3275
|
+
source: e,
|
|
3276
|
+
schemes: {
|
|
3277
|
+
light: De.light(e),
|
|
3278
|
+
dark: De.dark(e)
|
|
3279
|
+
},
|
|
3280
|
+
palettes: {
|
|
3281
|
+
primary: n.a1,
|
|
3282
|
+
secondary: n.a2,
|
|
3283
|
+
tertiary: n.a3,
|
|
3284
|
+
neutral: n.n1,
|
|
3285
|
+
neutralVariant: n.n2,
|
|
3286
|
+
error: n.error
|
|
3287
|
+
},
|
|
3288
|
+
customColors: t.map((t) => function(e, t) {
|
|
3289
|
+
let n = t.value, r = n, i = e;
|
|
3290
|
+
t.blend && (n = fe.harmonize(r, i));
|
|
3291
|
+
let a = Ee.of(n).a1;
|
|
3292
|
+
return {
|
|
3293
|
+
color: t,
|
|
3294
|
+
value: n,
|
|
3295
|
+
light: {
|
|
3296
|
+
color: a.tone(40),
|
|
3297
|
+
onColor: a.tone(100),
|
|
3298
|
+
colorContainer: a.tone(90),
|
|
3299
|
+
onColorContainer: a.tone(10)
|
|
3300
|
+
},
|
|
3301
|
+
dark: {
|
|
3302
|
+
color: a.tone(80),
|
|
3303
|
+
onColor: a.tone(20),
|
|
3304
|
+
colorContainer: a.tone(30),
|
|
3305
|
+
onColorContainer: a.tone(90)
|
|
3306
|
+
}
|
|
3307
|
+
};
|
|
3308
|
+
}(e, t))
|
|
3309
|
+
};
|
|
3310
|
+
}
|
|
3311
|
+
function Y(e) {
|
|
3312
|
+
return function(e) {
|
|
3313
|
+
let t = ae(e), n = oe(e), r = se(e), i = [
|
|
3314
|
+
t.toString(16),
|
|
3315
|
+
n.toString(16),
|
|
3316
|
+
r.toString(16)
|
|
3317
|
+
];
|
|
3318
|
+
for (let [e, t] of i.entries()) t.length === 1 && (i[e] = "0" + t);
|
|
3319
|
+
return "#" + i.join("");
|
|
3320
|
+
}(e);
|
|
3321
|
+
}
|
|
3322
|
+
function X(e) {
|
|
3323
|
+
let t = P.fromInt(e), n = z.fromHueAndChroma(t.hue, t.chroma);
|
|
3324
|
+
return {
|
|
3325
|
+
0: Y(n.tone(0)),
|
|
3326
|
+
10: Y(n.tone(10)),
|
|
3327
|
+
20: Y(n.tone(20)),
|
|
3328
|
+
30: Y(n.tone(30)),
|
|
3329
|
+
40: Y(n.tone(40)),
|
|
3330
|
+
50: Y(n.tone(50)),
|
|
3331
|
+
60: Y(n.tone(60)),
|
|
3332
|
+
70: Y(n.tone(70)),
|
|
3333
|
+
80: Y(n.tone(80)),
|
|
3334
|
+
90: Y(n.tone(90)),
|
|
3335
|
+
95: Y(n.tone(95)),
|
|
3336
|
+
99: Y(n.tone(99)),
|
|
3337
|
+
100: Y(n.tone(100))
|
|
3338
|
+
};
|
|
3339
|
+
}
|
|
3340
|
+
function Ne(e, t = !1, n) {
|
|
3341
|
+
let r = t ? e.schemes.dark : e.schemes.light, i = z.fromHueAndChroma(e.palettes.primary.hue, e.palettes.primary.chroma), a = z.fromHueAndChroma(e.palettes.secondary.hue, e.palettes.secondary.chroma), o = z.fromHueAndChroma(e.palettes.tertiary.hue, e.palettes.tertiary.chroma), s = z.fromHueAndChroma(e.palettes.neutral.hue, e.palettes.neutral.chroma), c = z.fromHueAndChroma(e.palettes.neutralVariant.hue, e.palettes.neutralVariant.chroma), l = z.fromHueAndChroma(e.palettes.error.hue, e.palettes.error.chroma), u = X(n?.success ? n.success : je("#00C853")), d = X(n?.warning ? n.warning : je("#FFCA28")), f = X(n?.info ? n.info : je("#2979FF")), p = {
|
|
3342
|
+
primary: t ? 80 : 40,
|
|
3343
|
+
onPrimary: t ? 20 : 100,
|
|
3344
|
+
primaryContainer: t ? 30 : 90,
|
|
3345
|
+
onPrimaryContainer: t ? 90 : 10,
|
|
3346
|
+
primaryFixed: 90,
|
|
3347
|
+
primaryFixedDim: 80,
|
|
3348
|
+
onPrimaryFixed: 10,
|
|
3349
|
+
onPrimaryFixedVariant: 30,
|
|
3350
|
+
inversePrimary: t ? 40 : 80,
|
|
3351
|
+
secondary: t ? 80 : 40,
|
|
3352
|
+
onSecondary: t ? 20 : 100,
|
|
3353
|
+
secondaryContainer: t ? 30 : 90,
|
|
3354
|
+
onSecondaryContainer: t ? 90 : 10,
|
|
3355
|
+
secondaryFixed: 90,
|
|
3356
|
+
secondaryFixedDim: 80,
|
|
3357
|
+
onSecondaryFixed: 10,
|
|
3358
|
+
onSecondaryFixedVariant: 30,
|
|
3359
|
+
tertiary: t ? 80 : 40,
|
|
3360
|
+
onTertiary: t ? 20 : 100,
|
|
3361
|
+
tertiaryContainer: t ? 30 : 90,
|
|
3362
|
+
onTertiaryContainer: t ? 90 : 10,
|
|
3363
|
+
tertiaryFixed: 90,
|
|
3364
|
+
tertiaryFixedDim: 80,
|
|
3365
|
+
onTertiaryFixed: 10,
|
|
3366
|
+
onTertiaryFixedVariant: 30,
|
|
3367
|
+
error: t ? 50 : 40,
|
|
3368
|
+
onError: 100,
|
|
3369
|
+
errorContainer: t ? 30 : 90,
|
|
3370
|
+
onErrorContainer: t ? 90 : 10,
|
|
3371
|
+
surface: t ? 6 : 98,
|
|
3372
|
+
surfaceDim: t ? 6 : 87,
|
|
3373
|
+
surfaceBright: t ? 24 : 98,
|
|
3374
|
+
surfaceContainerLowest: t ? 4 : 100,
|
|
3375
|
+
surfaceContainerLow: t ? 10 : 96,
|
|
3376
|
+
surfaceContainer: t ? 12 : 94,
|
|
3377
|
+
surfaceContainerHigh: t ? 17 : 92,
|
|
3378
|
+
surfaceContainerHighest: t ? 22 : 90,
|
|
3379
|
+
onSurface: t ? 90 : 10,
|
|
3380
|
+
onSurfaceVariant: t ? 80 : 30,
|
|
3381
|
+
surfaceTint: t ? 80 : 40,
|
|
3382
|
+
inverseSurface: t ? 90 : 20,
|
|
3383
|
+
inverseOnSurface: t ? 20 : 95,
|
|
3384
|
+
outline: t ? 60 : 50,
|
|
3385
|
+
outlineVariant: t ? 15 : 80,
|
|
3386
|
+
shadow: 0,
|
|
3387
|
+
scrim: 0
|
|
3388
|
+
};
|
|
3389
|
+
return {
|
|
3390
|
+
sys: {
|
|
3391
|
+
color: {
|
|
3392
|
+
scrim: Y(r.scrim),
|
|
3393
|
+
outline: Y(c.tone(p.outline)),
|
|
3394
|
+
outlineVariant: Y(c.tone(p.outlineVariant)),
|
|
3395
|
+
shadow: Y(s.tone(p.shadow)),
|
|
3396
|
+
surface: {
|
|
3397
|
+
default: Y(s.tone(p.surface)),
|
|
3398
|
+
dim: Y(s.tone(p.surfaceDim)),
|
|
3399
|
+
bright: Y(s.tone(p.surfaceBright)),
|
|
3400
|
+
container: Y(s.tone(p.surfaceContainer)),
|
|
3401
|
+
containerLow: Y(s.tone(p.surfaceContainerLow)),
|
|
3402
|
+
containerLowest: Y(s.tone(p.surfaceContainerLowest)),
|
|
3403
|
+
containerHigh: Y(s.tone(p.surfaceContainerHigh)),
|
|
3404
|
+
containerHighest: Y(s.tone(p.surfaceContainerHighest)),
|
|
3405
|
+
on: Y(s.tone(p.onSurface)),
|
|
3406
|
+
onVariant: Y(c.tone(p.onSurfaceVariant)),
|
|
3407
|
+
tint: Y(i.tone(p.surfaceTint)),
|
|
3408
|
+
inverse: Y(s.tone(p.inverseSurface)),
|
|
3409
|
+
inverseOn: Y(s.tone(p.inverseOnSurface)),
|
|
3410
|
+
low: Y(s.tone(p.surfaceContainerLow)),
|
|
3411
|
+
high: Y(s.tone(p.surfaceContainerHigh)),
|
|
3412
|
+
highest: Y(s.tone(p.surfaceContainerHighest)),
|
|
3413
|
+
lowest: Y(s.tone(p.surfaceContainerLowest))
|
|
3414
|
+
},
|
|
3415
|
+
primary: {
|
|
3416
|
+
default: Y(i.tone(p.primary)),
|
|
3417
|
+
on: Y(i.tone(p.onPrimary)),
|
|
3418
|
+
container: Y(i.tone(p.primaryContainer)),
|
|
3419
|
+
onContainer: Y(i.tone(p.onPrimaryContainer)),
|
|
3420
|
+
fixed: Y(i.tone(p.primaryFixed)),
|
|
3421
|
+
fixedDim: Y(i.tone(p.primaryFixedDim)),
|
|
3422
|
+
onFixed: Y(i.tone(p.onPrimaryFixed)),
|
|
3423
|
+
onFixedVariant: Y(i.tone(p.onPrimaryFixedVariant)),
|
|
3424
|
+
inverse: Y(i.tone(p.inversePrimary))
|
|
3425
|
+
},
|
|
3426
|
+
secondary: {
|
|
3427
|
+
default: Y(a.tone(p.secondary)),
|
|
3428
|
+
on: Y(a.tone(p.onSecondary)),
|
|
3429
|
+
container: Y(a.tone(p.secondaryContainer)),
|
|
3430
|
+
onContainer: Y(a.tone(p.onSecondaryContainer)),
|
|
3431
|
+
fixed: Y(a.tone(p.secondaryFixed)),
|
|
3432
|
+
fixedDim: Y(a.tone(p.secondaryFixedDim)),
|
|
3433
|
+
onFixed: Y(a.tone(p.onSecondaryFixed)),
|
|
3434
|
+
onFixedVariant: Y(a.tone(p.onSecondaryFixedVariant))
|
|
3435
|
+
},
|
|
3436
|
+
tertiary: {
|
|
3437
|
+
default: Y(o.tone(p.tertiary)),
|
|
3438
|
+
on: Y(o.tone(p.onTertiary)),
|
|
3439
|
+
container: Y(o.tone(p.tertiaryContainer)),
|
|
3440
|
+
onContainer: Y(o.tone(p.onTertiaryContainer)),
|
|
3441
|
+
fixed: Y(o.tone(p.tertiaryFixed)),
|
|
3442
|
+
fixedDim: Y(o.tone(p.tertiaryFixedDim)),
|
|
3443
|
+
onFixed: Y(o.tone(p.onTertiaryFixed)),
|
|
3444
|
+
onFixedVariant: Y(o.tone(p.onTertiaryFixedVariant))
|
|
3445
|
+
},
|
|
3446
|
+
error: {
|
|
3447
|
+
default: Y(l.tone(p.error)),
|
|
3448
|
+
on: Y(l.tone(p.onError)),
|
|
3449
|
+
container: Y(l.tone(p.errorContainer)),
|
|
3450
|
+
onContainer: Y(l.tone(p.onErrorContainer))
|
|
3451
|
+
},
|
|
3452
|
+
success: {
|
|
3453
|
+
default: u[t ? "80" : "40"],
|
|
3454
|
+
on: u[100],
|
|
3455
|
+
container: u[t ? "30" : "90"],
|
|
3456
|
+
onContainer: u[t ? "90" : "10"]
|
|
3457
|
+
},
|
|
3458
|
+
warning: {
|
|
3459
|
+
default: d[t ? "80" : "40"],
|
|
3460
|
+
on: d[100],
|
|
3461
|
+
container: d[t ? "30" : "90"],
|
|
3462
|
+
onContainer: d[t ? "90" : "10"]
|
|
3463
|
+
},
|
|
3464
|
+
info: {
|
|
3465
|
+
default: f[t ? "80" : "40"],
|
|
3466
|
+
on: f[100],
|
|
3467
|
+
container: f[t ? "30" : "90"],
|
|
3468
|
+
onContainer: f[t ? "90" : "10"]
|
|
3469
|
+
}
|
|
3470
|
+
},
|
|
3471
|
+
typography: {
|
|
3472
|
+
display: {
|
|
3473
|
+
large: "display-large",
|
|
3474
|
+
medium: "display-medium",
|
|
3475
|
+
small: "display-small"
|
|
3476
|
+
},
|
|
3477
|
+
headline: {
|
|
3478
|
+
large: "headline-large",
|
|
3479
|
+
medium: "headline-medium",
|
|
3480
|
+
small: "headline-small"
|
|
3481
|
+
},
|
|
3482
|
+
title: {
|
|
3483
|
+
large: "title-large",
|
|
3484
|
+
medium: "title-medium",
|
|
3485
|
+
small: "title-small"
|
|
3486
|
+
},
|
|
3487
|
+
body: {
|
|
3488
|
+
large: "body-large",
|
|
3489
|
+
medium: "body-medium",
|
|
3490
|
+
small: "body-small"
|
|
3491
|
+
},
|
|
3492
|
+
label: {
|
|
3493
|
+
large: "label-large",
|
|
3494
|
+
medium: "label-medium",
|
|
3495
|
+
small: "label-small"
|
|
3496
|
+
}
|
|
3497
|
+
},
|
|
3498
|
+
shape: { corner: {
|
|
3499
|
+
none: "0",
|
|
3500
|
+
extraSmall: "4px",
|
|
3501
|
+
small: "8px",
|
|
3502
|
+
medium: "12px",
|
|
3503
|
+
large: "16px",
|
|
3504
|
+
extraLarge: "28px",
|
|
3505
|
+
full: "9999px"
|
|
3506
|
+
} },
|
|
3507
|
+
elevation: {
|
|
3508
|
+
0: "0 0 0 0 rgba(0, 0, 0, 0)",
|
|
3509
|
+
1: `0 2px 12px -2px color-mix(in srgb, var(--schmancy-sys-color-primary-default) ${t ? "18%" : "15%"}, transparent)`,
|
|
3510
|
+
2: `0 4px 20px -2px color-mix(in srgb, var(--schmancy-sys-color-primary-default) ${t ? "26%" : "22%"}, transparent)`,
|
|
3511
|
+
3: `0 8px 32px -4px color-mix(in srgb, var(--schmancy-sys-color-primary-default) ${t ? "32%" : "28%"}, transparent)`,
|
|
3512
|
+
4: `0 12px 44px -4px color-mix(in srgb, var(--schmancy-sys-color-primary-default) ${t ? "40%" : "35%"}, transparent)`,
|
|
3513
|
+
5: `0 20px 60px -4px color-mix(in srgb, var(--schmancy-sys-color-primary-default) ${t ? "48%" : "42%"}, transparent)`
|
|
3514
|
+
},
|
|
3515
|
+
motion: {
|
|
3516
|
+
easing: {
|
|
3517
|
+
emphasized: "cubic-bezier(0.2, 0.0, 0, 1.0)",
|
|
3518
|
+
emphasizedDecelerate: "cubic-bezier(0.05, 0.7, 0.1, 1.0)",
|
|
3519
|
+
emphasizedAccelerate: "cubic-bezier(0.3, 0.0, 0.8, 0.15)",
|
|
3520
|
+
standard: "cubic-bezier(0.2, 0.0, 0, 1.0)",
|
|
3521
|
+
standardDecelerate: "cubic-bezier(0, 0, 0, 1)",
|
|
3522
|
+
standardAccelerate: "cubic-bezier(0.3, 0, 1, 1)",
|
|
3523
|
+
legacy: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3524
|
+
linear: "linear"
|
|
3525
|
+
},
|
|
3526
|
+
duration: {
|
|
3527
|
+
short1: "50ms",
|
|
3528
|
+
short2: "100ms",
|
|
3529
|
+
short3: "150ms",
|
|
3530
|
+
short4: "200ms",
|
|
3531
|
+
medium1: "250ms",
|
|
3532
|
+
medium2: "300ms",
|
|
3533
|
+
medium3: "350ms",
|
|
3534
|
+
medium4: "400ms",
|
|
3535
|
+
long1: "450ms",
|
|
3536
|
+
long2: "500ms",
|
|
3537
|
+
long3: "550ms",
|
|
3538
|
+
long4: "600ms",
|
|
3539
|
+
extraLong1: "700ms",
|
|
3540
|
+
extraLong2: "800ms",
|
|
3541
|
+
extraLong3: "900ms",
|
|
3542
|
+
extraLong4: "1000ms"
|
|
3543
|
+
}
|
|
3544
|
+
},
|
|
3545
|
+
state: { opacity: {
|
|
3546
|
+
hover: "0.08",
|
|
3547
|
+
focus: "0.12",
|
|
3548
|
+
pressed: "0.12",
|
|
3549
|
+
dragged: "0.16",
|
|
3550
|
+
disabled: "0.38",
|
|
3551
|
+
disabledContainer: "0.12"
|
|
3552
|
+
} },
|
|
3553
|
+
spacing: {
|
|
3554
|
+
0: "0",
|
|
3555
|
+
1: "4px",
|
|
3556
|
+
2: "8px",
|
|
3557
|
+
3: "12px",
|
|
3558
|
+
4: "16px",
|
|
3559
|
+
5: "20px",
|
|
3560
|
+
6: "24px",
|
|
3561
|
+
7: "28px",
|
|
3562
|
+
8: "32px",
|
|
3563
|
+
9: "36px",
|
|
3564
|
+
10: "40px",
|
|
3565
|
+
11: "44px",
|
|
3566
|
+
12: "48px"
|
|
3567
|
+
},
|
|
3568
|
+
outline: { 1: "1px" }
|
|
3569
|
+
},
|
|
3570
|
+
ref: { palette: {
|
|
3571
|
+
primary: X(i.tone(40)),
|
|
3572
|
+
secondary: X(a.tone(40)),
|
|
3573
|
+
tertiary: X(o.tone(40)),
|
|
3574
|
+
neutral: X(s.tone(40)),
|
|
3575
|
+
neutralVariant: X(c.tone(40)),
|
|
3576
|
+
error: X(l.tone(40))
|
|
3577
|
+
} }
|
|
3578
|
+
};
|
|
3579
|
+
}
|
|
3580
|
+
function Pe(e, t) {
|
|
3581
|
+
let n = z.fromHueAndChroma(e, t);
|
|
3582
|
+
return {
|
|
3583
|
+
cLowest: n.tone(100),
|
|
3584
|
+
cLow: n.tone(96),
|
|
3585
|
+
c: n.tone(94),
|
|
3586
|
+
cHigh: n.tone(92),
|
|
3587
|
+
cHighest: n.tone(90),
|
|
3588
|
+
sDim: n.tone(87),
|
|
3589
|
+
s: n.tone(98),
|
|
3590
|
+
sBright: n.tone(100)
|
|
3591
|
+
};
|
|
3592
|
+
}
|
|
3593
|
+
function Fe(e, t) {
|
|
3594
|
+
let n = z.fromHueAndChroma(e, t);
|
|
3595
|
+
return {
|
|
3596
|
+
cLowest: n.tone(4),
|
|
3597
|
+
cLow: n.tone(10),
|
|
3598
|
+
c: n.tone(12),
|
|
3599
|
+
cHigh: n.tone(17),
|
|
3600
|
+
cHighest: n.tone(22),
|
|
3601
|
+
sDim: n.tone(6),
|
|
3602
|
+
s: n.tone(6),
|
|
3603
|
+
sBright: n.tone(24)
|
|
3604
|
+
};
|
|
3605
|
+
}
|
|
3606
|
+
Ae.TARGET_CHROMA = 48, Ae.WEIGHT_PROPORTION = .7, Ae.WEIGHT_CHROMA_ABOVE = .3, Ae.WEIGHT_CHROMA_BELOW = .1, Ae.CUTOFF_CHROMA = 5, Ae.CUTOFF_EXCITED_PROPORTION = .01;
|
|
3607
|
+
var Ie = b(":host,:root{--md-ref-typeface-brand:var(--schmancy-font-family,sans-serif);--md-ref-typeface-plain:var(--schmancy-font-family,sans-serif);--md-sys-color-primary:var(--schmancy-sys-color-primary-default);--md-sys-color-secondary:var(--schmancy-sys-color-secondary-default);--default-font-family:var(--schmancy-font-family);--border-style:solid;--spacing:.25rem;--color-scrim:var(--schmancy-sys-color-scrim);--color-shadow:var(--schmancy-sys-color-shadow);--color-outline:var(--schmancy-sys-color-outline);--color-outlineVariant:var(--schmancy-sys-color-outlineVariant);--color-outline-variant:var(--schmancy-sys-color-outlineVariant);--color-surface-default:var(--schmancy-sys-color-surface-default);--color-surface-dim:var(--schmancy-sys-color-surface-dim);--color-surface-bright:var(--schmancy-sys-color-surface-bright);--color-surface-container:var(--schmancy-sys-color-surface-container);--color-surface-low:var(--schmancy-sys-color-surface-low);--color-surface-high:var(--schmancy-sys-color-surface-high);--color-surface-highest:var(--schmancy-sys-color-surface-highest);--color-surface-lowest:var(--schmancy-sys-color-surface-lowest);--color-surface-containerLow:var(--schmancy-sys-color-surface-containerLow);--color-surface-containerHigh:var(--schmancy-sys-color-surface-containerHigh);--color-surface-containerLowest:var(--schmancy-sys-color-surface-containerLowest);--color-surface-containerHighest:var(--schmancy-sys-color-surface-containerHighest);--color-surface-on:var(--schmancy-sys-color-surface-on);--color-surface-onVariant:var(--schmancy-sys-color-surface-onVariant);--color-surface-on-variant:var(--schmancy-sys-color-surface-onVariant);--color-surface-tint:var(--schmancy-sys-color-surface-tint);--color-surface-inverse:var(--schmancy-sys-color-inverse-surface);--color-surface-inverseOn:var(--schmancy-sys-color-inverse-onSurface);--color-inverse-surface:var(--schmancy-sys-color-inverse-surface);--color-inverse-on-surface:var(--schmancy-sys-color-inverse-onSurface);--color-primary-default:var(--schmancy-sys-color-primary-default);--color-primary-on:var(--schmancy-sys-color-primary-on);--color-primary-container:var(--schmancy-sys-color-primary-container);--color-primary-onContainer:var(--schmancy-sys-color-primary-onContainer);--color-primary-on-container:var(--schmancy-sys-color-primary-onContainer);--color-primary-fixed:var(--schmancy-sys-color-primary-fixed);--color-primary-fixedDim:var(--schmancy-sys-color-primary-fixedDim);--color-primary-fixed-dim:var(--schmancy-sys-color-primary-fixedDim);--color-primary-onFixed:var(--schmancy-sys-color-primary-onFixed);--color-primary-on-fixed:var(--schmancy-sys-color-primary-onFixed);--color-primary-onFixedVariant:var(--schmancy-sys-color-primary-onFixedVariant);--color-primary-on-fixed-variant:var(--schmancy-sys-color-primary-onFixedVariant);--color-primary-inverse:var(--schmancy-sys-color-inverse-primary);--color-inverse-primary:var(--schmancy-sys-color-inverse-primary);--color-secondary-default:var(--schmancy-sys-color-secondary-default);--color-secondary-on:var(--schmancy-sys-color-secondary-on);--color-secondary-container:var(--schmancy-sys-color-secondary-container);--color-secondary-onContainer:var(--schmancy-sys-color-secondary-onContainer);--color-secondary-on-container:var(--schmancy-sys-color-secondary-onContainer);--color-secondary-fixed:var(--schmancy-sys-color-secondary-fixed);--color-secondary-fixedDim:var(--schmancy-sys-color-secondary-fixedDim);--color-secondary-fixed-dim:var(--schmancy-sys-color-secondary-fixedDim);--color-secondary-onFixed:var(--schmancy-sys-color-secondary-onFixed);--color-secondary-on-fixed:var(--schmancy-sys-color-secondary-onFixed);--color-secondary-onFixedVariant:var(--schmancy-sys-color-secondary-onFixedVariant);--color-secondary-on-fixed-variant:var(--schmancy-sys-color-secondary-onFixedVariant);--color-tertiary-default:var(--schmancy-sys-color-tertiary-default);--color-tertiary-on:var(--schmancy-sys-color-tertiary-on);--color-tertiary-container:var(--schmancy-sys-color-tertiary-container);--color-tertiary-onContainer:var(--schmancy-sys-color-tertiary-onContainer);--color-tertiary-on-container:var(--schmancy-sys-color-tertiary-onContainer);--color-tertiary-fixed:var(--schmancy-sys-color-tertiary-fixed);--color-tertiary-fixedDim:var(--schmancy-sys-color-tertiary-fixedDim);--color-tertiary-fixed-dim:var(--schmancy-sys-color-tertiary-fixedDim);--color-tertiary-onFixed:var(--schmancy-sys-color-tertiary-onFixed);--color-tertiary-on-fixed:var(--schmancy-sys-color-tertiary-onFixed);--color-tertiary-onFixedVariant:var(--schmancy-sys-color-tertiary-onFixedVariant);--color-tertiary-on-fixed-variant:var(--schmancy-sys-color-tertiary-onFixedVariant);--color-error-default:var(--schmancy-sys-color-error-default);--color-error-on:var(--schmancy-sys-color-error-on);--color-error-container:var(--schmancy-sys-color-error-container);--color-error-onContainer:var(--schmancy-sys-color-error-onContainer);--color-error-on-container:var(--schmancy-sys-color-error-onContainer);--color-success-default:var(--schmancy-sys-color-success-default);--color-success-on:var(--schmancy-sys-color-success-on);--color-success-container:var(--schmancy-sys-color-success-container);--color-success-onContainer:var(--schmancy-sys-color-success-onContainer);--color-success-on-container:var(--schmancy-sys-color-success-onContainer);--color-warning-default:var(--schmancy-sys-color-warning-default);--color-warning-on:var(--schmancy-sys-color-warning-on);--color-warning-container:var(--schmancy-sys-color-warning-container);--color-warning-onContainer:var(--schmancy-sys-color-warning-onContainer);--color-warning-on-container:var(--schmancy-sys-color-warning-onContainer);--color-info-default:var(--schmancy-sys-color-info-default);--color-info-on:var(--schmancy-sys-color-info-on);--color-info-container:var(--schmancy-sys-color-info-container);--color-info-onContainer:var(--schmancy-sys-color-info-onContainer);--color-info-on-container:var(--schmancy-sys-color-info-onContainer);--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--shadow-2xl:var(--schmancy-sys-elevation-5);--outline-1:var(--schmancy-sys-outline-1);--font-sans:ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--font-serif:ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-900:oklch(40.8% .123 38.172);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-50:oklch(98.6% .031 120.757);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-900:oklch(40.5% .101 131.063);--color-lime-950:oklch(27.4% .072 132.109);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-600:oklch(60% .118 184.704);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-teal-950:oklch(27.7% .046 192.524);--color-cyan-50:oklch(98.4% .019 200.873);--color-cyan-100:oklch(95.6% .045 203.388);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-900:oklch(39.8% .07 227.392);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-900:oklch(38% .189 293.745);--color-violet-950:oklch(28.3% .141 291.089);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-fuchsia-50:oklch(97.7% .017 320.058);--color-fuchsia-100:oklch(95.2% .037 318.852);--color-fuchsia-200:oklch(90.3% .076 319.62);--color-fuchsia-300:oklch(83.3% .145 321.434);--color-fuchsia-400:oklch(74% .238 322.16);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-fuchsia-600:oklch(59.1% .293 322.896);--color-fuchsia-700:oklch(51.8% .253 323.949);--color-fuchsia-800:oklch(45.2% .211 324.591);--color-fuchsia-900:oklch(40.1% .17 325.612);--color-fuchsia-950:oklch(29.3% .136 325.661);--color-pink-50:oklch(97.1% .014 343.198);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-600:oklch(59.2% .249 .584);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-800:oklch(45.9% .187 3.815);--color-pink-900:oklch(40.8% .153 2.432);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-zinc-950:oklch(14.1% .005 285.823);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-300:oklch(87% 0 0);--color-neutral-400:oklch(70.8% 0 0);--color-neutral-500:oklch(55.6% 0 0);--color-neutral-600:oklch(43.9% 0 0);--color-neutral-700:oklch(37.1% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-stone-50:oklch(98.5% .001 106.423);--color-stone-100:oklch(97% .001 106.424);--color-stone-200:oklch(92.3% .003 48.717);--color-stone-300:oklch(86.9% .005 56.366);--color-stone-400:oklch(70.9% .01 56.259);--color-stone-500:oklch(55.3% .013 58.071);--color-stone-600:oklch(44.4% .011 73.639);--color-stone-700:oklch(37.4% .01 67.558);--color-stone-800:oklch(26.8% .007 34.298);--color-stone-900:oklch(21.6% .006 56.043);--color-stone-950:oklch(14.7% .004 49.25);--color-black:#000;--color-white:#fff;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-smxs:0 1px #0000000d;--shadow-smxl:0 25px 50px -12px #00000040;--inset-shadow-smxs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-smxl:0 25px 25px #00000026;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16 / 9;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0, 0, .2, 1) infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--animate-bounce:bounce 1s infinite;--animate-float-1:float-drift 20s ease-in-out infinite;--animate-float-2:float-drift-alt 25s ease-in-out infinite;--animate-float-3:float-drift 30s ease-in-out infinite reverse;--animate-pulse-glow:pulse-glow 8s ease-in-out infinite;--animate-spin-slow:slow-spin 120s linear infinite;--animate-aurora-drift:aurora-drift 30s ease-in-out infinite;--animate-scene-enter:scene-enter 1.2s cubic-bezier(.16, 1, .3, 1) forwards;--md-sys-color-scrim:var(--schmancy-sys-color-scrim);--md-sys-color-outline:var(--schmancy-sys-color-outline);--md-sys-color-outlineVariant:var(--schmancy-sys-color-outlineVariant);--md-sys-color-surface-default:var(--schmancy-sys-color-surface-default);--md-sys-color-surface-dim:var(--schmancy-sys-color-surface-dim);--md-sys-color-surface-bright:var(--schmancy-sys-color-surface-bright);--md-sys-color-surface-container:var(--schmancy-sys-color-surface-container);--md-sys-color-surface-low:var(--schmancy-sys-color-surface-low);--md-sys-color-surface-high:var(--schmancy-sys-color-surface-high);--md-sys-color-surface-highest:var(--schmancy-sys-color-surface-highest);--md-sys-color-surface-lowest:var(--schmancy-sys-color-surface-lowest);--md-sys-color-surface-on:var(--schmancy-sys-color-surface-on);--md-sys-color-on-surface-variant:var(--schmancy-sys-color-surface-onVariant);--md-sys-color-on-secondary-container:var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-primary-default:var(--schmancy-sys-color-primary-default);--md-sys-color-primary-on:var(--schmancy-sys-color-primary-on);--md-sys-color-primary-container:var(--schmancy-sys-color-primary-container);--md-sys-color-primary-onContainer:var(--schmancy-sys-color-primary-onContainer);--md-sys-color-secondary-default:var(--schmancy-sys-color-secondary-default);--md-sys-color-secondary-on:var(--schmancy-sys-color-secondary-on);--md-sys-color-secondary-container:var(--schmancy-sys-color-secondary-container);--md-sys-color-secondary-onContainer:var(--schmancy-sys-color-secondary-onContainer);--md-sys-color-tertiary-default:var(--schmancy-sys-color-tertiary-default);--md-sys-color-tertiary-on:var(--schmancy-sys-color-tertiary-on);--md-sys-color-tertiary-container:var(--schmancy-sys-color-tertiary-container);--md-sys-color-tertiary-onContainer:var(--schmancy-sys-color-tertiary-onContainer);--md-sys-color-error-default:var(--schmancy-sys-color-error-default);--md-sys-color-error-on:var(--schmancy-sys-color-error-on);--md-sys-color-error-container:var(--schmancy-sys-color-error-container);--md-sys-color-error-onContainer:var(--schmancy-sys-color-error-onContainer);--md-sys-color-success-default:var(--schmancy-sys-color-success-default);--md-sys-color-success-on:var(--schmancy-sys-color-success-on);--md-sys-color-success-container:var(--schmancy-sys-color-success-container);--md-sys-color-success-onContainer:var(--schmancy-sys-color-success-onContainer);--md-sys-color-warning-default:var(--schmancy-sys-color-warning-default);--md-sys-color-warning-on:var(--schmancy-sys-color-warning-on);--md-sys-color-warning-container:var(--schmancy-sys-color-warning-container);--md-sys-color-warning-onContainer:var(--schmancy-sys-color-warning-onContainer);--md-sys-color-info-default:var(--schmancy-sys-color-info-default);--md-sys-color-info-on:var(--schmancy-sys-color-info-on);--md-sys-color-info-container:var(--schmancy-sys-color-info-container);--md-sys-color-info-onContainer:var(--schmancy-sys-color-info-onContainer);--md-sys-elevation-0:var(--schmancy-sys-elevation-0);--md-sys-elevation-1:var(--schmancy-sys-elevation-1);--md-sys-elevation-2:var(--schmancy-sys-elevation-2);--md-sys-elevation-3:var(--schmancy-sys-elevation-3);--md-sys-elevation-4:var(--schmancy-sys-elevation-4);--md-sys-elevation-5:var(--schmancy-sys-elevation-5);--md-sys-outline-1:var(--schmancy-sys-outline-1);--md-filter-chip-label-text-color:var(--schmancy-sys-color-surface-on);--md-checkbox-focus-outline-color:var(--schmancy-sys-color-surface-on);--md-checkbox-focus-outline-width:2px;--md-checkbox-hover-outline-color:var(--schmancy-sys-color-surface-on);--md-checkbox-hover-outline-width:2px;--md-checkbox-pressed-outline-color:var(--schmancy-sys-color-surface-on);--md-checkbox-pressed-outline-width:2px;--md-checkbox-disabled-outline-color:var(--schmancy-sys-color-surface-on);--md-checkbox-disabled-outline-width:2px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes float-drift{0%,to{transform:translate(0)rotate(0)}25%{transform:translate(20px,-30px)rotate(2deg)}50%{transform:translate(-10px,-50px)rotate(-1deg)}75%{transform:translate(15px,-20px)rotate(1deg)}}@keyframes float-drift-alt{0%,to{transform:translate(0)rotate(0)}25%{transform:translate(-25px,20px)rotate(-2deg)}50%{transform:translate(15px,40px)rotate(1deg)}75%{transform:translate(-20px,15px)rotate(-1deg)}}@keyframes pulse-glow{0%,to{opacity:.15;transform:scale(1)}50%{opacity:.25;transform:scale(1.05)}}@keyframes slow-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes aurora-drift{0%,to{transform:translate(0)scale(1)rotate(0)}33%{transform:translate(3%,-5%)scale(1.05)rotate(1deg)}66%{transform:translate(-3%,3%)scale(.95)rotate(-1deg)}}@keyframes scene-enter{0%{opacity:0;filter:blur(12px);transform:scale(.92)}to{opacity:1;filter:blur();transform:scale(1)}}@keyframes star-appear{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes star-twinkle{0%,to{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.92)}}"), Le = window.matchMedia("(prefers-color-scheme: dark)"), Re = new s((e) => {
|
|
3608
|
+
let t = Le.matches ? "dark" : "light";
|
|
3609
|
+
e.next(t);
|
|
3610
|
+
let n = u(Le, "change").subscribe((t) => {
|
|
3611
|
+
let n = t.matches ? "dark" : "light";
|
|
3612
|
+
e.next(n);
|
|
3613
|
+
});
|
|
3614
|
+
return () => n.unsubscribe();
|
|
3615
|
+
}), Z = class extends r(Ie) {
|
|
3616
|
+
constructor(...e) {
|
|
3617
|
+
super(...e), this.scheme = "auto", this.root = !1, this.locale = typeof navigator < "u" ? navigator.language : "de-DE", this.theme = {};
|
|
3618
|
+
}
|
|
3619
|
+
connectedCallback() {
|
|
3620
|
+
super.connectedCallback();
|
|
3621
|
+
let e = this.generateThemeName(), t = sessionStorage.getItem(`schmancy-theme-${e}-color`), n = sessionStorage.getItem(`schmancy-theme-${e}-scheme`);
|
|
3622
|
+
this.color || (this.color = t || this.generateRandomColor(), sessionStorage.setItem(`schmancy-theme-${e}-color`, this.color)), !this.hasAttribute("scheme") && n && (this.scheme = n), d(this.scheme).pipe(f((e) => e === "auto" ? Re : d(e)), p(this.disconnecting)).subscribe((t) => {
|
|
3623
|
+
this.scheme = t, queueMicrotask(() => {
|
|
3624
|
+
this.registerTheme(), sessionStorage.setItem(`schmancy-theme-${e}-scheme`, this.scheme);
|
|
3625
|
+
});
|
|
3626
|
+
}), u(this, a).pipe(p(this.disconnecting)).subscribe((e) => {
|
|
3627
|
+
e.stopPropagation(), e.preventDefault(), window.dispatchEvent(new CustomEvent(o, {
|
|
3628
|
+
detail: { theme: this },
|
|
3629
|
+
bubbles: !0,
|
|
3630
|
+
composed: !0
|
|
3631
|
+
}));
|
|
3632
|
+
});
|
|
3633
|
+
}
|
|
3634
|
+
updated(e) {
|
|
3635
|
+
super.updated(e);
|
|
3636
|
+
let t = this.generateThemeName();
|
|
3637
|
+
e.has("color") && (sessionStorage.setItem(`schmancy-theme-${t}-color`, this.color), this.registerTheme()), e.has("scheme") && (sessionStorage.setItem(`schmancy-theme-${t}-scheme`, this.scheme), this.registerTheme()), e.has("locale") && this.registerTheme();
|
|
3638
|
+
}
|
|
3639
|
+
registerTheme() {
|
|
3640
|
+
let e = Ne(Me(je(typeof this.color == "string" ? this.color : "#6200ee")), this.scheme === "dark", {
|
|
3641
|
+
success: je("#4CAF50"),
|
|
3642
|
+
warning: je("#FF9800"),
|
|
3643
|
+
info: je("#2196F3")
|
|
3644
|
+
});
|
|
3645
|
+
this.theme = {
|
|
3646
|
+
...e,
|
|
3647
|
+
...this.theme,
|
|
3648
|
+
locale: this.locale
|
|
3649
|
+
}, this.registerThemeValues("schmancy", "", this.theme);
|
|
3650
|
+
let t = this.root ? document.body : this.shadowRoot.host, n = (e) => t.style.getPropertyValue(e);
|
|
3651
|
+
t.style.setProperty("--schmancy-sys-color-surface-low", n("--schmancy-sys-color-surface-containerLow")), t.style.setProperty("--schmancy-sys-color-surface-high", n("--schmancy-sys-color-surface-containerHigh")), t.style.setProperty("--schmancy-sys-color-surface-highest", n("--schmancy-sys-color-surface-containerHighest")), t.style.setProperty("--schmancy-sys-color-surface-lowest", n("--schmancy-sys-color-surface-containerLowest")), t.style.colorScheme = this.scheme === "dark" ? "dark" : "light";
|
|
3652
|
+
}
|
|
3653
|
+
registerThemeValues(e = "schmancy", t, n) {
|
|
3654
|
+
return typeof n == "object" ? Object.keys(n).map((r) => this.registerThemeValues(e, t + (t ? "-" : "") + r, n[r])).join("\n") : void (this.root ? document.body : this.shadowRoot.host).style.setProperty(`--${e}-${t}`, n);
|
|
3655
|
+
}
|
|
3656
|
+
generateRandomColor() {
|
|
3657
|
+
return "#" + Math.floor(16777215 * Math.random()).toString(16).padStart(6, "0");
|
|
3658
|
+
}
|
|
3659
|
+
generateThemeName() {
|
|
3660
|
+
if (this.name) return this.name;
|
|
3661
|
+
let e = [], t = this;
|
|
3662
|
+
for (; t && t !== document.body;) {
|
|
3663
|
+
let n = t.parentElement;
|
|
3664
|
+
if (n) {
|
|
3665
|
+
let r = Array.from(n.children).indexOf(t), i = t.tagName.toLowerCase();
|
|
3666
|
+
e.unshift(`${i}[${r}]`);
|
|
3667
|
+
}
|
|
3668
|
+
t = n;
|
|
3669
|
+
}
|
|
3670
|
+
return e.join(">");
|
|
3671
|
+
}
|
|
3672
|
+
render() {
|
|
3673
|
+
return y`
|
|
3674
|
+
<schmancy-container type="containerLowest">
|
|
3675
|
+
<slot></slot>
|
|
3676
|
+
</schmancy-container>
|
|
3677
|
+
`;
|
|
3678
|
+
}
|
|
3679
|
+
};
|
|
3680
|
+
t([g({
|
|
3681
|
+
type: String,
|
|
3682
|
+
reflect: !0
|
|
3683
|
+
})], Z.prototype, "color", void 0), t([g({ type: String })], Z.prototype, "scheme", void 0), t([g({ type: Boolean })], Z.prototype, "root", void 0), t([g({ type: String })], Z.prototype, "locale", void 0), t([g({ type: String })], Z.prototype, "name", void 0), t([n({ context: e }), g({ type: Object })], Z.prototype, "theme", void 0), Z = t([h("schmancy-theme")], Z);
|
|
3684
|
+
var Q = class extends r() {
|
|
3685
|
+
constructor(...e) {
|
|
3686
|
+
super(...e), this.currentScheme = "auto", this.currentColor = "#6200ee", this.resolvedScheme = "light", this.themeComponent = null, this.colorInput$ = new c();
|
|
3687
|
+
}
|
|
3688
|
+
get presetColors() {
|
|
3689
|
+
return this.customColors ? this.customColors : [
|
|
3690
|
+
{
|
|
3691
|
+
name: "Lavender",
|
|
3692
|
+
value: "#9D8FE8",
|
|
3693
|
+
category: "primary"
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
name: "Rose",
|
|
3697
|
+
value: "#F48B9D",
|
|
3698
|
+
category: "accent"
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
name: "Mint",
|
|
3702
|
+
value: "#7ED997",
|
|
3703
|
+
category: "accent"
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
name: "Amber",
|
|
3707
|
+
value: "#FFC875",
|
|
3708
|
+
category: "accent"
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
name: "Sky",
|
|
3712
|
+
value: "#6DD5FA",
|
|
3713
|
+
category: "primary"
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
name: "Coral",
|
|
3717
|
+
value: "#FF9E7C",
|
|
3718
|
+
category: "secondary"
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
name: "Indigo",
|
|
3722
|
+
value: "#7380E8",
|
|
3723
|
+
category: "primary"
|
|
3724
|
+
},
|
|
3725
|
+
{
|
|
3726
|
+
name: "Blush",
|
|
3727
|
+
value: "#FF79A8",
|
|
3728
|
+
category: "secondary"
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
name: "Aqua",
|
|
3732
|
+
value: "#64E0F0",
|
|
3733
|
+
category: "accent"
|
|
3734
|
+
},
|
|
3735
|
+
{
|
|
3736
|
+
name: "Gold",
|
|
3737
|
+
value: "#FFE066",
|
|
3738
|
+
category: "accent"
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
name: "Slate",
|
|
3742
|
+
value: "#6B7E91",
|
|
3743
|
+
category: "primary"
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
name: "Onyx",
|
|
3747
|
+
value: "#3D4451",
|
|
3748
|
+
category: "primary"
|
|
3749
|
+
},
|
|
3750
|
+
{
|
|
3751
|
+
name: "Plum",
|
|
3752
|
+
value: "#8E6BA8",
|
|
3753
|
+
category: "secondary"
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
name: "Forest",
|
|
3757
|
+
value: "#5A7A5F",
|
|
3758
|
+
category: "accent"
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
name: "Navy",
|
|
3762
|
+
value: "#3D5A80",
|
|
3763
|
+
category: "primary"
|
|
3764
|
+
},
|
|
3765
|
+
{
|
|
3766
|
+
name: "Burgundy",
|
|
3767
|
+
value: "#994F5E",
|
|
3768
|
+
category: "accent"
|
|
3769
|
+
}
|
|
3770
|
+
];
|
|
3771
|
+
}
|
|
3772
|
+
connectedCallback() {
|
|
3773
|
+
super.connectedCallback(), this.discover("schmancy-theme").pipe(f((e) => e ? (this.themeComponent = e, this.currentScheme = e.scheme, this.currentColor = e.color, new c().pipe(m(() => {
|
|
3774
|
+
this.themeComponent && (this.currentScheme = this.themeComponent.scheme, this.currentColor = this.themeComponent.color);
|
|
3775
|
+
}))) : d(null)), p(this.disconnecting)).subscribe(), this.colorInput$.pipe(l(150), m((e) => {
|
|
3776
|
+
this.themeComponent && (this.themeComponent.color = e);
|
|
3777
|
+
}), p(this.disconnecting)).subscribe();
|
|
3778
|
+
}
|
|
3779
|
+
setScheme(e) {
|
|
3780
|
+
this.themeComponent && (this.themeComponent.scheme = e, this.currentScheme = e);
|
|
3781
|
+
}
|
|
3782
|
+
setColor(e) {
|
|
3783
|
+
this.themeComponent && (this.themeComponent.color = e, this.currentColor = e);
|
|
3784
|
+
}
|
|
3785
|
+
handleColorInput(e) {
|
|
3786
|
+
let t = e.target;
|
|
3787
|
+
this.colorInput$.next(t.value);
|
|
3788
|
+
}
|
|
3789
|
+
randomColor() {
|
|
3790
|
+
let e = this.presetColors[Math.floor(Math.random() * this.presetColors.length)];
|
|
3791
|
+
this.setColor(e.value);
|
|
3792
|
+
}
|
|
3793
|
+
triggerColorPicker() {
|
|
3794
|
+
this.renderRoot.querySelector("input[type=\"color\"]")?.click();
|
|
3795
|
+
}
|
|
3796
|
+
render() {
|
|
3797
|
+
return y`
|
|
3798
|
+
<div class="space-y-4">
|
|
3799
|
+
<!-- Color Display -->
|
|
3800
|
+
<div class="flex items-center gap-3">
|
|
3801
|
+
<div
|
|
3802
|
+
class="w-16 h-16 rounded-xl border-2 border-outline cursor-pointer transition-transform hover:scale-105 active:scale-95"
|
|
3803
|
+
style="background: ${this.currentColor}"
|
|
3804
|
+
@click="${this.triggerColorPicker}"
|
|
3805
|
+
title="Click to change color"
|
|
3806
|
+
></div>
|
|
3807
|
+
<div class="flex-1 min-w-0">
|
|
3808
|
+
<schmancy-typography type="body" class="font-mono opacity-60"> ${this.currentColor} </schmancy-typography>
|
|
3809
|
+
<div class="flex gap-1 mt-2">
|
|
3810
|
+
<schmancy-button
|
|
3811
|
+
variant="${this.currentScheme === "light" ? "tonal" : "text"}"
|
|
3812
|
+
@click="${() => this.setScheme("light")}"
|
|
3813
|
+
>
|
|
3814
|
+
<schmancy-icon>light_mode</schmancy-icon>
|
|
3815
|
+
</schmancy-button>
|
|
3816
|
+
<schmancy-button
|
|
3817
|
+
variant="${this.currentScheme === "dark" ? "tonal" : "text"}"
|
|
3818
|
+
@click="${() => this.setScheme("dark")}"
|
|
3819
|
+
>
|
|
3820
|
+
<schmancy-icon>dark_mode</schmancy-icon>
|
|
3821
|
+
</schmancy-button>
|
|
3822
|
+
<schmancy-button
|
|
3823
|
+
variant="${this.currentScheme === "auto" ? "tonal" : "text"}"
|
|
3824
|
+
@click="${() => this.setScheme("auto")}"
|
|
3825
|
+
>
|
|
3826
|
+
<schmancy-icon>contrast</schmancy-icon>
|
|
3827
|
+
</schmancy-button>
|
|
3828
|
+
<schmancy-button variant="text" @click="${this.randomColor}">
|
|
3829
|
+
<schmancy-icon>shuffle</schmancy-icon>
|
|
3830
|
+
</schmancy-button>
|
|
3831
|
+
</div>
|
|
3832
|
+
</div>
|
|
3833
|
+
</div>
|
|
3834
|
+
|
|
3835
|
+
<!-- Palette -->
|
|
3836
|
+
<div class="flex flex-wrap gap-1.5">
|
|
3837
|
+
${this.presetColors.map((e) => y`
|
|
3838
|
+
<button
|
|
3839
|
+
class="w-7 h-7 rounded-full transition-all hover:scale-110 active:scale-95 ${this.currentColor === e.value ? "ring-2 ring-primary ring-offset-1" : ""}"
|
|
3840
|
+
style="background: ${e.value}"
|
|
3841
|
+
@click="${() => this.setColor(e.value)}"
|
|
3842
|
+
title="${e.name}"
|
|
3843
|
+
></button>
|
|
3844
|
+
`)}
|
|
3845
|
+
</div>
|
|
3846
|
+
|
|
3847
|
+
<!-- Hidden Color Input -->
|
|
3848
|
+
<input type="color" .value="${this.currentColor}" @input="${this.handleColorInput}" class="hidden" />
|
|
3849
|
+
</div>
|
|
3850
|
+
`;
|
|
3851
|
+
}
|
|
3852
|
+
};
|
|
3853
|
+
t([_()], Q.prototype, "currentScheme", void 0), t([_()], Q.prototype, "currentColor", void 0), t([_()], Q.prototype, "resolvedScheme", void 0), t([_()], Q.prototype, "themeComponent", void 0), t([g({ type: Array })], Q.prototype, "customColors", void 0), Q = t([h("schmancy-theme-controller")], Q);
|
|
3854
|
+
var ze = class extends CustomEvent {
|
|
3855
|
+
constructor(e) {
|
|
3856
|
+
super("schmancy-generate-mood-audio", {
|
|
3857
|
+
detail: e,
|
|
3858
|
+
bubbles: !0,
|
|
3859
|
+
composed: !0
|
|
3860
|
+
});
|
|
3861
|
+
}
|
|
3862
|
+
}, $ = class extends r(v`
|
|
3863
|
+
:host {
|
|
3864
|
+
display: block;
|
|
3865
|
+
}
|
|
3866
|
+
`) {
|
|
3867
|
+
constructor(...e) {
|
|
3868
|
+
super(...e), this.currentColor = "#6200ee", this.currentScheme = "auto", this.moodText = "", this.isGenerating = !1, this.audioSequence = null, this.detectedMood = "", this.error = "", this.volume = .15, this.currentThemeName = "default", this.themeComponent = null, this.moodInput$ = new c();
|
|
3869
|
+
}
|
|
3870
|
+
connectedCallback() {
|
|
3871
|
+
super.connectedCallback(), i.volume$.pipe(p(this.disconnecting)).subscribe((e) => {
|
|
3872
|
+
this.volume = e;
|
|
3873
|
+
}), i.themeName$.pipe(p(this.disconnecting)).subscribe((e) => {
|
|
3874
|
+
this.currentThemeName = e;
|
|
3875
|
+
}), i.theme$.pipe(p(this.disconnecting)).subscribe((e) => {
|
|
3876
|
+
e && (this.detectedMood = e.name.replace("AI: ", ""));
|
|
3877
|
+
}), this.discover("schmancy-theme").pipe(f((e) => e ? (this.themeComponent = e, this.currentScheme = e.scheme, this.currentColor = e.color, new c().pipe(m(() => {
|
|
3878
|
+
this.themeComponent && (this.currentScheme = this.themeComponent.scheme, this.currentColor = this.themeComponent.color);
|
|
3879
|
+
}))) : d(null)), p(this.disconnecting)).subscribe(), this.moodInput$.pipe(l(500), m((e) => {
|
|
3880
|
+
this.moodText = e;
|
|
3881
|
+
}), p(this.disconnecting)).subscribe();
|
|
3882
|
+
}
|
|
3883
|
+
handleMoodInput(e) {
|
|
3884
|
+
let t = e.target;
|
|
3885
|
+
this.moodInput$.next(t.value);
|
|
3886
|
+
}
|
|
3887
|
+
requestMoodAudio() {
|
|
3888
|
+
this.moodText.trim() ? (this.error = "", this.isGenerating = !0, this.audioSequence = null, this.detectedMood = "", this.dispatchEvent(new ze({
|
|
3889
|
+
moodText: this.moodText.trim(),
|
|
3890
|
+
themeColor: this.currentColor,
|
|
3891
|
+
scheme: this.currentScheme
|
|
3892
|
+
}))) : this.error = "Please enter how you are feeling";
|
|
3893
|
+
}
|
|
3894
|
+
setResponse(e) {
|
|
3895
|
+
if (this.isGenerating = !1, e.success && e.audioSequence) {
|
|
3896
|
+
this.audioSequence = e.audioSequence, this.detectedMood = e.detectedMood;
|
|
3897
|
+
let t = this.audioSequenceToSoundTheme(e.audioSequence, e.detectedMood);
|
|
3898
|
+
i.setTheme(t), this.playDetectedMood(e.detectedMood);
|
|
3899
|
+
} else this.error = e.error || "Failed to generate audio";
|
|
3900
|
+
}
|
|
3901
|
+
audioSequenceToSoundTheme(e, t) {
|
|
3902
|
+
let n = this.mapMoodToFeeling(t);
|
|
3903
|
+
return {
|
|
3904
|
+
name: `AI: ${t}`,
|
|
3905
|
+
description: e.emotionalDescription,
|
|
3906
|
+
masterVolume: e.masterVolume,
|
|
3907
|
+
feelings: { [n]: {
|
|
3908
|
+
puffs: e.puffs,
|
|
3909
|
+
tones: e.tones,
|
|
3910
|
+
description: e.emotionalDescription
|
|
3911
|
+
} },
|
|
3912
|
+
metadata: {
|
|
3913
|
+
sourceColor: this.currentColor,
|
|
3914
|
+
sourceMood: this.moodText,
|
|
3915
|
+
scheme: this.currentScheme,
|
|
3916
|
+
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3917
|
+
generatedBy: "AI"
|
|
3918
|
+
}
|
|
3919
|
+
};
|
|
3920
|
+
}
|
|
3921
|
+
mapMoodToFeeling(e) {
|
|
3922
|
+
let t = e.toLowerCase().trim(), n = {
|
|
3923
|
+
joyful: "joyful",
|
|
3924
|
+
happy: "joyful",
|
|
3925
|
+
joy: "joyful",
|
|
3926
|
+
content: "content",
|
|
3927
|
+
satisfied: "content",
|
|
3928
|
+
excited: "excited",
|
|
3929
|
+
thrilled: "excited",
|
|
3930
|
+
proud: "proud",
|
|
3931
|
+
hopeful: "hopeful",
|
|
3932
|
+
relieved: "relieved",
|
|
3933
|
+
grateful: "grateful",
|
|
3934
|
+
thankful: "grateful",
|
|
3935
|
+
peaceful: "peaceful",
|
|
3936
|
+
serene: "peaceful",
|
|
3937
|
+
playful: "playful",
|
|
3938
|
+
amused: "amused",
|
|
3939
|
+
curious: "curious",
|
|
3940
|
+
interested: "curious",
|
|
3941
|
+
inspired: "inspired",
|
|
3942
|
+
confident: "confident",
|
|
3943
|
+
loved: "loved",
|
|
3944
|
+
comforted: "comforted",
|
|
3945
|
+
energized: "energized",
|
|
3946
|
+
celebrated: "celebrated",
|
|
3947
|
+
sad: "sad",
|
|
3948
|
+
unhappy: "sad",
|
|
3949
|
+
lonely: "lonely",
|
|
3950
|
+
alone: "lonely",
|
|
3951
|
+
disappointed: "disappointed",
|
|
3952
|
+
melancholic: "melancholic",
|
|
3953
|
+
anxious: "anxious",
|
|
3954
|
+
worried: "worried",
|
|
3955
|
+
nervous: "nervous",
|
|
3956
|
+
stressed: "stressed",
|
|
3957
|
+
overwhelmed: "overwhelmed",
|
|
3958
|
+
annoyed: "annoyed",
|
|
3959
|
+
frustrated: "frustrated",
|
|
3960
|
+
angry: "angry",
|
|
3961
|
+
tired: "tired",
|
|
3962
|
+
exhausted: "exhausted",
|
|
3963
|
+
bored: "bored",
|
|
3964
|
+
calm: "calm",
|
|
3965
|
+
relaxed: "relaxed",
|
|
3966
|
+
connected: "connected",
|
|
3967
|
+
nostalgic: "nostalgic",
|
|
3968
|
+
surprised: "surprised",
|
|
3969
|
+
confused: "confused"
|
|
3970
|
+
};
|
|
3971
|
+
if (n[t]) return n[t];
|
|
3972
|
+
for (let [e, r] of Object.entries(n)) if (t.includes(e)) return r;
|
|
3973
|
+
return "calm";
|
|
3974
|
+
}
|
|
3975
|
+
playDetectedMood(e) {
|
|
3976
|
+
let t = this.mapMoodToFeeling(e);
|
|
3977
|
+
i.play(t);
|
|
3978
|
+
}
|
|
3979
|
+
setError(e) {
|
|
3980
|
+
this.isGenerating = !1, this.error = e;
|
|
3981
|
+
}
|
|
3982
|
+
replay() {
|
|
3983
|
+
this.detectedMood && this.playDetectedMood(this.detectedMood);
|
|
3984
|
+
}
|
|
3985
|
+
handleVolumeChange(e) {
|
|
3986
|
+
let t = parseInt(e.target.value) / 100;
|
|
3987
|
+
i.setVolume(t);
|
|
3988
|
+
}
|
|
3989
|
+
resetToDefaults() {
|
|
3990
|
+
i.resetTheme(), this.audioSequence = null, this.detectedMood = "";
|
|
3991
|
+
}
|
|
3992
|
+
render() {
|
|
3993
|
+
return y`
|
|
3994
|
+
<div class="space-y-4">
|
|
3995
|
+
<!-- Current Theme Status -->
|
|
3996
|
+
<div class="flex items-center justify-between">
|
|
3997
|
+
<schmancy-typography type="label" token="sm" class="opacity-60">
|
|
3998
|
+
Sound Theme: ${this.currentThemeName}
|
|
3999
|
+
</schmancy-typography>
|
|
4000
|
+
${x(this.currentThemeName !== "default", () => y`
|
|
4001
|
+
<schmancy-button variant="text" size="sm" @click=${() => this.resetToDefaults()}>
|
|
4002
|
+
<schmancy-icon size="16px">refresh</schmancy-icon>
|
|
4003
|
+
Reset
|
|
4004
|
+
</schmancy-button>
|
|
4005
|
+
`)}
|
|
4006
|
+
</div>
|
|
4007
|
+
|
|
4008
|
+
<!-- Mood Input -->
|
|
4009
|
+
<div class="space-y-2">
|
|
4010
|
+
<schmancy-typography type="label" token="lg" class="text-surface-on">
|
|
4011
|
+
How are you feeling today?
|
|
4012
|
+
</schmancy-typography>
|
|
4013
|
+
<schmancy-input
|
|
4014
|
+
type="text"
|
|
4015
|
+
placeholder="I'm feeling..."
|
|
4016
|
+
.value=${this.moodText}
|
|
4017
|
+
@input=${this.handleMoodInput}
|
|
4018
|
+
?disabled=${this.isGenerating}
|
|
4019
|
+
class="w-full"
|
|
4020
|
+
></schmancy-input>
|
|
4021
|
+
</div>
|
|
4022
|
+
|
|
4023
|
+
<!-- Current Color Preview -->
|
|
4024
|
+
<div class="flex items-center gap-3">
|
|
4025
|
+
<div class="w-10 h-10 rounded-lg border border-outline" style="background: ${this.currentColor}"></div>
|
|
4026
|
+
<schmancy-typography type="body" token="sm" class="opacity-60"> Current theme color </schmancy-typography>
|
|
4027
|
+
</div>
|
|
4028
|
+
|
|
4029
|
+
<!-- Generate Button -->
|
|
4030
|
+
<schmancy-button
|
|
4031
|
+
variant="filled"
|
|
4032
|
+
@click=${() => this.requestMoodAudio()}
|
|
4033
|
+
?disabled=${this.isGenerating || !this.moodText.trim()}
|
|
4034
|
+
class="w-full"
|
|
4035
|
+
>
|
|
4036
|
+
${x(this.isGenerating, () => y`
|
|
4037
|
+
<schmancy-progress-circular indeterminate size="20"></schmancy-progress-circular>
|
|
4038
|
+
<span class="ml-2">Generating...</span>
|
|
4039
|
+
`, () => y`
|
|
4040
|
+
<schmancy-icon>music_note</schmancy-icon>
|
|
4041
|
+
<span class="ml-2">Generate Mood Sound</span>
|
|
4042
|
+
`)}
|
|
4043
|
+
</schmancy-button>
|
|
4044
|
+
|
|
4045
|
+
<!-- Error Message -->
|
|
4046
|
+
${x(this.error, () => y`
|
|
4047
|
+
<schmancy-surface type="error" class="p-3 rounded-lg">
|
|
4048
|
+
<schmancy-typography type="body" token="sm" class="text-error"> ${this.error} </schmancy-typography>
|
|
4049
|
+
</schmancy-surface>
|
|
4050
|
+
`)}
|
|
4051
|
+
|
|
4052
|
+
<!-- Generated Audio Info -->
|
|
4053
|
+
${x(this.audioSequence, () => y`
|
|
4054
|
+
<schmancy-surface type="subtle" rounded="all" class="p-4 space-y-3">
|
|
4055
|
+
<div class="flex items-center justify-between">
|
|
4056
|
+
<div>
|
|
4057
|
+
<schmancy-typography type="label" token="lg"> ${this.detectedMood} </schmancy-typography>
|
|
4058
|
+
<schmancy-typography type="body" token="sm" class="opacity-70">
|
|
4059
|
+
${this.audioSequence?.emotionalDescription}
|
|
4060
|
+
</schmancy-typography>
|
|
4061
|
+
</div>
|
|
4062
|
+
<schmancy-button variant="tonal" @click=${() => this.replay()}>
|
|
4063
|
+
<schmancy-icon>replay</schmancy-icon>
|
|
4064
|
+
</schmancy-button>
|
|
4065
|
+
</div>
|
|
4066
|
+
|
|
4067
|
+
<!-- Audio Visualization -->
|
|
4068
|
+
<div class="flex items-center gap-1 h-8">
|
|
4069
|
+
${this.audioSequence?.puffs.map((e, t) => y`
|
|
4070
|
+
<div
|
|
4071
|
+
class="w-2 bg-primary rounded-full animate-pulse"
|
|
4072
|
+
style="height: ${20 + 8 * t}px; animation-delay: ${.1 * t}s"
|
|
4073
|
+
></div>
|
|
4074
|
+
`)}
|
|
4075
|
+
${this.audioSequence?.tones.map((e) => y`
|
|
4076
|
+
<div
|
|
4077
|
+
class="w-1 bg-secondary rounded-full"
|
|
4078
|
+
style="height: ${Math.min(32, e.frequency / 40)}px; opacity: ${.5 + .5 * e.volume}"
|
|
4079
|
+
></div>
|
|
4080
|
+
`)}
|
|
4081
|
+
</div>
|
|
4082
|
+
|
|
4083
|
+
<!-- Volume Control -->
|
|
4084
|
+
<div class="flex items-center gap-2">
|
|
4085
|
+
<schmancy-icon class="opacity-50">volume_down</schmancy-icon>
|
|
4086
|
+
<input
|
|
4087
|
+
type="range"
|
|
4088
|
+
min="0"
|
|
4089
|
+
max="100"
|
|
4090
|
+
.value=${String(100 * this.volume)}
|
|
4091
|
+
@input=${this.handleVolumeChange}
|
|
4092
|
+
class="flex-1 h-1 bg-surface-containerHighest rounded-full appearance-none cursor-pointer"
|
|
4093
|
+
/>
|
|
4094
|
+
<schmancy-icon class="opacity-50">volume_up</schmancy-icon>
|
|
4095
|
+
</div>
|
|
4096
|
+
</schmancy-surface>
|
|
4097
|
+
`)}
|
|
4098
|
+
</div>
|
|
4099
|
+
`;
|
|
4100
|
+
}
|
|
4101
|
+
};
|
|
4102
|
+
t([_()], $.prototype, "currentColor", void 0), t([_()], $.prototype, "currentScheme", void 0), t([_()], $.prototype, "moodText", void 0), t([_()], $.prototype, "isGenerating", void 0), t([_()], $.prototype, "audioSequence", void 0), t([_()], $.prototype, "detectedMood", void 0), t([_()], $.prototype, "error", void 0), t([_()], $.prototype, "volume", void 0), t([_()], $.prototype, "currentThemeName", void 0), $ = t([h("schmancy-theme-audio-player")], $);
|
|
4103
|
+
var Be = class extends Q {
|
|
4104
|
+
render() {
|
|
4105
|
+
return y`
|
|
4106
|
+
<schmancy-boat id="schmancy-theme-component">
|
|
4107
|
+
<schmancy-icon slot="header">palette</schmancy-icon>
|
|
4108
|
+
|
|
4109
|
+
<div class="p-4 space-y-6">
|
|
4110
|
+
${super.render()}
|
|
4111
|
+
|
|
4112
|
+
<!-- Audio Player Section -->
|
|
4113
|
+
<schmancy-divider></schmancy-divider>
|
|
4114
|
+
<schmancy-theme-audio-player></schmancy-theme-audio-player>
|
|
4115
|
+
</div>
|
|
4116
|
+
</schmancy-boat>
|
|
4117
|
+
`;
|
|
4118
|
+
}
|
|
4119
|
+
};
|
|
4120
|
+
Be = t([h("schmancy-theme-controller-boat")], Be);
|
|
4121
|
+
export { Z as a, Pe as c, Q as i, Ne as l, ze as n, Ie as o, $ as r, Fe as s, Be as t };
|