@fluentui/web-components 3.0.0-beta.1 → 3.0.0-beta.100
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/CHANGELOG.md +1108 -103
- package/README.md +57 -16
- package/custom-elements.json +28367 -0
- package/dist/dts/accordion/accordion.bench.d.ts +3 -0
- package/dist/dts/accordion/accordion.d.ts +72 -3
- package/dist/dts/accordion/accordion.definition.d.ts +0 -4
- package/dist/dts/accordion/accordion.options.d.ts +14 -0
- package/dist/dts/accordion/accordion.template.d.ts +5 -1
- package/dist/dts/accordion/index.d.ts +2 -1
- package/dist/dts/accordion-item/accordion-item.base.d.ts +59 -0
- package/dist/dts/accordion-item/accordion-item.bench.d.ts +3 -0
- package/dist/dts/accordion-item/accordion-item.d.ts +35 -12
- package/dist/dts/accordion-item/accordion-item.definition.d.ts +0 -3
- package/dist/dts/accordion-item/accordion-item.options.d.ts +4 -4
- package/dist/dts/accordion-item/accordion-item.template.d.ts +3 -2
- package/dist/dts/accordion-item/index.d.ts +4 -2
- package/dist/dts/anchor-button/anchor-button.base.d.ts +144 -0
- package/dist/dts/anchor-button/anchor-button.bench.d.ts +3 -0
- package/dist/dts/anchor-button/anchor-button.d.ts +49 -29
- package/dist/dts/anchor-button/anchor-button.definition.d.ts +0 -3
- package/dist/dts/anchor-button/anchor-button.options.d.ts +44 -7
- package/dist/dts/anchor-button/anchor-button.template.d.ts +7 -2
- package/dist/dts/anchor-button/index.d.ts +6 -3
- package/dist/dts/avatar/avatar.base.d.ts +30 -0
- package/dist/dts/avatar/avatar.bench.d.ts +3 -0
- package/dist/dts/avatar/avatar.d.ts +41 -40
- package/dist/dts/avatar/avatar.options.d.ts +7 -7
- package/dist/dts/avatar/avatar.template.d.ts +1 -1
- package/dist/dts/avatar/index.d.ts +3 -2
- package/dist/dts/badge/badge.bench.d.ts +3 -0
- package/dist/dts/badge/badge.d.ts +3 -1
- package/dist/dts/badge/badge.definition.d.ts +0 -3
- package/dist/dts/badge/badge.options.d.ts +7 -7
- package/dist/dts/badge/badge.template.d.ts +1 -1
- package/dist/dts/badge/index.d.ts +2 -2
- package/dist/dts/button/button.base.d.ts +242 -0
- package/dist/dts/button/button.bench.d.ts +3 -0
- package/dist/dts/button/button.d.ts +26 -28
- package/dist/dts/button/button.definition.d.ts +2 -3
- package/dist/dts/button/button.options.d.ts +42 -7
- package/dist/dts/button/button.styles.d.ts +9 -0
- package/dist/dts/button/button.template.d.ts +9 -1
- package/dist/dts/button/index.d.ts +6 -4
- package/dist/dts/checkbox/checkbox.base.d.ts +288 -0
- package/dist/dts/checkbox/checkbox.bench.d.ts +3 -0
- package/dist/dts/checkbox/checkbox.d.ts +42 -15
- package/dist/dts/checkbox/checkbox.options.d.ts +15 -12
- package/dist/dts/checkbox/checkbox.template.d.ts +7 -1
- package/dist/dts/checkbox/index.d.ts +5 -3
- package/dist/dts/compound-button/compound-button.bench.d.ts +3 -0
- package/dist/dts/compound-button/compound-button.d.ts +3 -0
- package/dist/dts/compound-button/compound-button.definition.d.ts +0 -3
- package/dist/dts/compound-button/compound-button.options.d.ts +6 -11
- package/dist/dts/compound-button/compound-button.template.d.ts +1 -1
- package/dist/dts/compound-button/index.d.ts +2 -2
- package/dist/dts/counter-badge/counter-badge.bench.d.ts +3 -0
- package/dist/dts/counter-badge/counter-badge.d.ts +10 -1
- package/dist/dts/counter-badge/counter-badge.definition.d.ts +0 -4
- package/dist/dts/counter-badge/counter-badge.options.d.ts +7 -7
- package/dist/dts/counter-badge/counter-badge.template.d.ts +2 -2
- package/dist/dts/counter-badge/index.d.ts +2 -2
- package/dist/dts/dialog/define.d.ts +1 -0
- package/dist/dts/dialog/dialog.bench.d.ts +3 -0
- package/dist/dts/dialog/dialog.d.ts +60 -0
- package/dist/dts/dialog/dialog.definition.d.ts +9 -0
- package/dist/dts/dialog/dialog.options.d.ts +11 -0
- package/dist/dts/dialog/dialog.styles.d.ts +4 -0
- package/dist/dts/dialog/dialog.template.d.ts +7 -0
- package/dist/dts/dialog/index.d.ts +5 -0
- package/dist/dts/dialog-body/define.d.ts +1 -0
- package/dist/dts/dialog-body/dialog-body.bench.d.ts +3 -0
- package/dist/dts/dialog-body/dialog-body.d.ts +16 -0
- package/dist/dts/dialog-body/dialog-body.definition.d.ts +9 -0
- package/dist/dts/dialog-body/dialog-body.styles.d.ts +4 -0
- package/dist/dts/dialog-body/dialog-body.template.d.ts +6 -0
- package/dist/dts/dialog-body/index.d.ts +4 -0
- package/dist/dts/divider/divider.base.d.ts +49 -0
- package/dist/dts/divider/divider.bench.d.ts +3 -0
- package/dist/dts/divider/divider.d.ts +10 -11
- package/dist/dts/divider/divider.options.d.ts +32 -9
- package/dist/dts/divider/divider.template.d.ts +2 -1
- package/dist/dts/divider/index.d.ts +3 -2
- package/dist/dts/drawer/define.d.ts +1 -0
- package/dist/dts/drawer/drawer.d.ts +96 -0
- package/dist/dts/drawer/drawer.definition.d.ts +8 -0
- package/dist/dts/drawer/drawer.options.d.ts +40 -0
- package/dist/dts/drawer/drawer.styles.d.ts +4 -0
- package/dist/dts/drawer/drawer.template.d.ts +8 -0
- package/dist/dts/drawer/index.d.ts +5 -0
- package/dist/dts/drawer-body/define.d.ts +1 -0
- package/dist/dts/drawer-body/drawer-body.d.ts +23 -0
- package/dist/dts/drawer-body/drawer-body.definition.d.ts +8 -0
- package/dist/dts/drawer-body/drawer-body.styles.d.ts +4 -0
- package/dist/dts/drawer-body/drawer-body.template.d.ts +8 -0
- package/dist/dts/drawer-body/index.d.ts +4 -0
- package/dist/dts/dropdown/define.d.ts +1 -0
- package/dist/dts/dropdown/dropdown.base.d.ts +479 -0
- package/dist/dts/dropdown/dropdown.d.ts +30 -0
- package/dist/dts/dropdown/dropdown.definition.d.ts +9 -0
- package/dist/dts/dropdown/dropdown.options.d.ts +53 -0
- package/dist/dts/dropdown/dropdown.styles.d.ts +6 -0
- package/dist/dts/dropdown/dropdown.template.d.ts +38 -0
- package/dist/dts/dropdown/index.d.ts +6 -0
- package/dist/dts/field/define.d.ts +1 -0
- package/dist/dts/field/field.base.d.ts +120 -0
- package/dist/dts/field/field.bench.d.ts +3 -0
- package/dist/dts/field/field.d.ts +20 -0
- package/dist/dts/field/field.definition.d.ts +9 -0
- package/dist/dts/field/field.options.d.ts +43 -0
- package/dist/dts/field/field.styles.d.ts +6 -0
- package/dist/dts/field/field.template.d.ts +6 -0
- package/dist/dts/field/index.d.ts +7 -0
- package/dist/dts/image/image.bench.d.ts +3 -0
- package/dist/dts/image/image.d.ts +3 -0
- package/dist/dts/image/image.options.d.ts +3 -4
- package/dist/dts/image/image.template.d.ts +1 -1
- package/dist/dts/image/index.d.ts +2 -2
- package/dist/dts/index-rollup.d.ts +44 -1
- package/dist/dts/index.d.ts +65 -29
- package/dist/dts/label/index.d.ts +2 -1
- package/dist/dts/label/label.bench.d.ts +3 -0
- package/dist/dts/label/label.d.ts +3 -2
- package/dist/dts/label/label.options.d.ts +3 -3
- package/dist/dts/label/label.template.d.ts +2 -2
- package/dist/dts/link/define.d.ts +1 -0
- package/dist/dts/link/index.d.ts +5 -0
- package/dist/dts/link/link.bench.d.ts +3 -0
- package/dist/dts/link/link.d.ts +35 -0
- package/dist/dts/link/link.definition.d.ts +7 -0
- package/dist/dts/link/link.options.d.ts +52 -0
- package/dist/dts/link/link.styles.d.ts +1 -0
- package/dist/dts/link/link.template.d.ts +12 -0
- package/dist/dts/listbox/define.d.ts +1 -0
- package/dist/dts/listbox/index.d.ts +5 -0
- package/dist/dts/listbox/listbox.d.ts +118 -0
- package/dist/dts/listbox/listbox.definition.d.ts +9 -0
- package/dist/dts/listbox/listbox.options.d.ts +10 -0
- package/dist/dts/listbox/listbox.styles.d.ts +6 -0
- package/dist/dts/listbox/listbox.template.d.ts +17 -0
- package/dist/dts/menu/define.d.ts +1 -0
- package/dist/dts/menu/index.d.ts +4 -0
- package/dist/dts/menu/menu.bench.d.ts +3 -0
- package/dist/dts/menu/menu.d.ts +226 -0
- package/dist/dts/menu/menu.definition.d.ts +9 -0
- package/dist/dts/menu/menu.styles.d.ts +4 -0
- package/dist/dts/menu/menu.template.d.ts +4 -0
- package/dist/dts/menu-button/index.d.ts +4 -3
- package/dist/dts/menu-button/menu-button.bench.d.ts +3 -0
- package/dist/dts/menu-button/menu-button.d.ts +3 -0
- package/dist/dts/menu-button/menu-button.definition.d.ts +0 -3
- package/dist/dts/menu-button/menu-button.options.d.ts +6 -7
- package/dist/dts/menu-button/menu-button.template.d.ts +1 -1
- package/dist/dts/menu-item/index.d.ts +5 -3
- package/dist/dts/menu-item/menu-item.bench.d.ts +3 -0
- package/dist/dts/menu-item/menu-item.d.ts +141 -5
- package/dist/dts/menu-item/menu-item.definition.d.ts +0 -4
- package/dist/dts/menu-item/menu-item.options.d.ts +30 -0
- package/dist/dts/menu-item/menu-item.template.d.ts +2 -1
- package/dist/dts/menu-list/index.d.ts +1 -1
- package/dist/dts/menu-list/menu-list.bench.d.ts +3 -0
- package/dist/dts/menu-list/menu-list.d.ts +75 -4
- package/dist/dts/menu-list/menu-list.definition.d.ts +0 -4
- package/dist/dts/menu-list/menu-list.template.d.ts +2 -1
- package/dist/dts/message-bar/define.d.ts +1 -0
- package/dist/dts/message-bar/index.d.ts +5 -0
- package/dist/dts/message-bar/message-bar.bench.d.ts +3 -0
- package/dist/dts/message-bar/message-bar.d.ts +50 -0
- package/dist/dts/message-bar/message-bar.definition.d.ts +9 -0
- package/dist/dts/message-bar/message-bar.options.d.ts +30 -0
- package/dist/dts/message-bar/message-bar.styles.d.ts +7 -0
- package/dist/dts/message-bar/message-bar.template.d.ts +14 -0
- package/dist/dts/option/define.d.ts +1 -0
- package/dist/dts/option/index.d.ts +5 -0
- package/dist/dts/option/option.d.ts +262 -0
- package/dist/dts/option/option.definition.d.ts +9 -0
- package/dist/dts/option/option.options.d.ts +20 -0
- package/dist/dts/option/option.styles.d.ts +6 -0
- package/dist/dts/option/option.template.d.ts +16 -0
- package/dist/dts/patterns/aria-globals.d.ts +189 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/start-end.d.ts +58 -0
- package/dist/dts/progress-bar/index.d.ts +3 -2
- package/dist/dts/progress-bar/progress-bar.base.d.ts +73 -0
- package/dist/dts/progress-bar/progress-bar.bench.d.ts +3 -0
- package/dist/dts/progress-bar/progress-bar.d.ts +10 -15
- package/dist/dts/progress-bar/progress-bar.options.d.ts +4 -4
- package/dist/dts/progress-bar/progress-bar.template.d.ts +1 -0
- package/dist/dts/radio/index.d.ts +2 -1
- package/dist/dts/radio/radio.bench.d.ts +3 -0
- package/dist/dts/radio/radio.d.ts +59 -3
- package/dist/dts/radio/radio.options.d.ts +14 -0
- package/dist/dts/radio/radio.styles.d.ts +3 -1
- package/dist/dts/radio/radio.template.d.ts +14 -1
- package/dist/dts/radio-group/index.d.ts +2 -2
- package/dist/dts/radio-group/radio-group.bench.d.ts +3 -0
- package/dist/dts/radio-group/radio-group.d.ts +259 -6
- package/dist/dts/radio-group/radio-group.options.d.ts +17 -0
- package/dist/dts/radio-group/radio-group.template.d.ts +2 -1
- package/dist/dts/rating-display/define.d.ts +1 -0
- package/dist/dts/rating-display/index.d.ts +6 -0
- package/dist/dts/rating-display/rating-display.base.d.ts +89 -0
- package/dist/dts/rating-display/rating-display.d.ts +50 -0
- package/dist/dts/rating-display/rating-display.definition.d.ts +9 -0
- package/dist/dts/rating-display/rating-display.options.d.ts +29 -0
- package/dist/dts/rating-display/rating-display.styles.d.ts +6 -0
- package/dist/dts/rating-display/rating-display.template.d.ts +14 -0
- package/dist/dts/slider/index.d.ts +3 -2
- package/dist/dts/slider/slider-utilities.d.ts +5 -0
- package/dist/dts/slider/slider.bench.d.ts +3 -0
- package/dist/dts/slider/slider.d.ts +340 -6
- package/dist/dts/slider/slider.options.d.ts +44 -3
- package/dist/dts/slider/slider.template.d.ts +4 -2
- package/dist/dts/spinner/index.d.ts +3 -2
- package/dist/dts/spinner/spinner.base.d.ts +14 -0
- package/dist/dts/spinner/spinner.bench.d.ts +3 -0
- package/dist/dts/spinner/spinner.d.ts +8 -6
- package/dist/dts/spinner/spinner.definition.d.ts +0 -4
- package/dist/dts/spinner/spinner.options.d.ts +3 -3
- package/dist/dts/spinner/spinner.template.d.ts +2 -3
- package/dist/dts/styles/partials/index.d.ts +1 -0
- package/dist/dts/styles/partials/typography.partials.d.ts +18 -0
- package/dist/dts/styles/states/index.d.ts +134 -0
- package/dist/dts/switch/index.d.ts +3 -2
- package/dist/dts/switch/switch.bench.d.ts +3 -0
- package/dist/dts/switch/switch.d.ts +14 -12
- package/dist/dts/switch/switch.options.d.ts +2 -2
- package/dist/dts/switch/switch.template.d.ts +3 -2
- package/dist/dts/tab/index.d.ts +4 -3
- package/dist/dts/tab/tab.bench.d.ts +3 -0
- package/dist/dts/tab/tab.d.ts +20 -2
- package/dist/dts/tab/tab.template.d.ts +4 -4
- package/dist/dts/tab-panel/index.d.ts +1 -1
- package/dist/dts/tab-panel/tab-panel.bench.d.ts +3 -0
- package/dist/dts/tab-panel/tab-panel.d.ts +7 -2
- package/dist/dts/tab-panel/tab-panel.definition.d.ts +3 -0
- package/dist/dts/tab-panel/tab-panel.template.d.ts +7 -1
- package/dist/dts/tablist/define.d.ts +1 -0
- package/dist/dts/tablist/index.d.ts +6 -0
- package/dist/dts/tablist/tablist.base.d.ts +95 -0
- package/dist/dts/tablist/tablist.bench.d.ts +3 -0
- package/dist/dts/tablist/tablist.d.ts +94 -0
- package/dist/dts/tablist/tablist.definition.d.ts +7 -0
- package/dist/dts/tablist/tablist.options.d.ts +44 -0
- package/dist/dts/tablist/tablist.styles.d.ts +4 -0
- package/dist/dts/tablist/tablist.template.d.ts +5 -0
- package/dist/dts/tabs/index.d.ts +5 -4
- package/dist/dts/tabs/tabs.base.d.ts +90 -0
- package/dist/dts/tabs/tabs.bench.d.ts +3 -0
- package/dist/dts/tabs/tabs.d.ts +26 -14
- package/dist/dts/tabs/tabs.definition.d.ts +3 -0
- package/dist/dts/tabs/tabs.options.d.ts +23 -5
- package/dist/dts/tabs/tabs.template.d.ts +8 -1
- package/dist/dts/text/index.d.ts +2 -2
- package/dist/dts/text/text.bench.d.ts +3 -0
- package/dist/dts/text/text.d.ts +12 -3
- package/dist/dts/text/text.options.d.ts +5 -5
- package/dist/dts/text/text.template.d.ts +1 -1
- package/dist/dts/text-input/index.d.ts +6 -5
- package/dist/dts/text-input/text-input.base.d.ts +402 -0
- package/dist/dts/text-input/text-input.bench.d.ts +3 -0
- package/dist/dts/text-input/text-input.d.ts +23 -11
- package/dist/dts/text-input/text-input.definition.d.ts +2 -3
- package/dist/dts/text-input/text-input.options.d.ts +31 -10
- package/dist/dts/text-input/text-input.styles.d.ts +5 -2
- package/dist/dts/text-input/text-input.template.d.ts +8 -1
- package/dist/dts/textarea/define.d.ts +1 -0
- package/dist/dts/textarea/index.d.ts +6 -0
- package/dist/dts/textarea/textarea.base.d.ts +347 -0
- package/dist/dts/textarea/textarea.bench.d.ts +3 -0
- package/dist/dts/textarea/textarea.d.ts +47 -0
- package/dist/dts/textarea/textarea.definition.d.ts +9 -0
- package/dist/dts/textarea/textarea.options.d.ts +49 -0
- package/dist/dts/textarea/textarea.styles.d.ts +7 -0
- package/dist/dts/textarea/textarea.template.d.ts +12 -0
- package/dist/dts/theme/design-tokens.d.ts +2220 -384
- package/dist/dts/theme/index.d.ts +1 -1
- package/dist/dts/theme/set-theme.d.ts +27 -6
- package/dist/dts/theme/set-theme.global.bench.d.ts +3 -0
- package/dist/dts/theme/set-theme.local.bench.d.ts +3 -0
- package/dist/dts/theme/set-theme.shadow.bench.d.ts +3 -0
- package/dist/dts/toggle-button/index.d.ts +5 -4
- package/dist/dts/toggle-button/toggle-button.bench.d.ts +3 -0
- package/dist/dts/toggle-button/toggle-button.d.ts +31 -26
- package/dist/dts/toggle-button/toggle-button.definition.d.ts +0 -2
- package/dist/dts/toggle-button/toggle-button.options.d.ts +6 -7
- package/dist/dts/toggle-button/toggle-button.styles.d.ts +7 -0
- package/dist/dts/toggle-button/toggle-button.template.d.ts +1 -1
- package/dist/dts/tooltip/define.d.ts +1 -0
- package/dist/dts/tooltip/index.d.ts +5 -0
- package/dist/dts/tooltip/tooltip.d.ts +98 -0
- package/dist/dts/tooltip/tooltip.definition.d.ts +9 -0
- package/dist/dts/tooltip/tooltip.options.d.ts +24 -0
- package/dist/dts/tooltip/tooltip.styles.d.ts +5 -0
- package/dist/dts/tooltip/tooltip.template.d.ts +6 -0
- package/dist/dts/tree/define.d.ts +1 -0
- package/dist/dts/tree/index.d.ts +5 -0
- package/dist/dts/tree/tree.base.d.ts +68 -0
- package/dist/dts/tree/tree.bench.d.ts +3 -0
- package/dist/dts/tree/tree.d.ts +34 -0
- package/dist/dts/tree/tree.definition.d.ts +8 -0
- package/dist/dts/tree/tree.styles.d.ts +1 -0
- package/dist/dts/tree/tree.template.d.ts +2 -0
- package/dist/dts/tree-item/define.d.ts +1 -0
- package/dist/dts/tree-item/index.d.ts +6 -0
- package/dist/dts/tree-item/tree-item.base.d.ts +81 -0
- package/dist/dts/tree-item/tree-item.bench.d.ts +3 -0
- package/dist/dts/tree-item/tree-item.d.ts +44 -0
- package/dist/dts/tree-item/tree-item.definition.d.ts +8 -0
- package/dist/dts/tree-item/tree-item.options.d.ts +22 -0
- package/dist/dts/tree-item/tree-item.styles.d.ts +1 -0
- package/dist/dts/tree-item/tree-item.template.d.ts +2 -0
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/utils/behaviors/match-media-stylesheet-behavior.d.ts +124 -0
- package/dist/dts/utils/benchmark-dependencies/tokens.d.ts +1 -0
- package/dist/dts/utils/benchmark-wrapper.d.ts +2 -0
- package/dist/dts/utils/converters.d.ts +17 -0
- package/dist/dts/utils/direction.d.ts +10 -0
- package/dist/dts/utils/display.d.ts +17 -0
- package/dist/dts/utils/element-internals.d.ts +54 -0
- package/dist/dts/utils/focusable-element.d.ts +3 -0
- package/dist/dts/utils/index.d.ts +8 -0
- package/dist/dts/utils/language.d.ts +9 -0
- package/dist/dts/utils/root-active-element.d.ts +1 -0
- package/dist/dts/utils/support.d.ts +15 -0
- package/dist/dts/utils/template-helpers.d.ts +15 -0
- package/dist/dts/utils/typings.d.ts +6 -0
- package/dist/dts/utils/unique-id.d.ts +9 -0
- package/dist/dts/utils/whitespace-filter.d.ts +12 -0
- package/dist/esm/accordion/accordion.bench.js +30 -0
- package/dist/esm/accordion/accordion.bench.js.map +1 -0
- package/dist/esm/accordion/accordion.definition.js +0 -4
- package/dist/esm/accordion/accordion.definition.js.map +1 -1
- package/dist/esm/accordion/accordion.js +173 -3
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/accordion/accordion.options.js +9 -0
- package/dist/esm/accordion/accordion.options.js.map +1 -0
- package/dist/esm/accordion/accordion.styles.js +1 -1
- package/dist/esm/accordion/accordion.styles.js.map +1 -1
- package/dist/esm/accordion/accordion.template.js +11 -1
- package/dist/esm/accordion/accordion.template.js.map +1 -1
- package/dist/esm/accordion/index.js +2 -1
- package/dist/esm/accordion/index.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.base.js +77 -0
- package/dist/esm/accordion-item/accordion-item.base.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.bench.js +14 -0
- package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -0
- package/dist/esm/accordion-item/accordion-item.definition.js +0 -3
- package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.js +13 -12
- package/dist/esm/accordion-item/accordion-item.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.options.js +1 -1
- package/dist/esm/accordion-item/accordion-item.options.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.styles.js +36 -59
- package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
- package/dist/esm/accordion-item/accordion-item.template.js +30 -4
- package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
- package/dist/esm/accordion-item/index.js +3 -2
- package/dist/esm/accordion-item/index.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.base.js +147 -0
- package/dist/esm/anchor-button/anchor-button.base.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.bench.js +11 -0
- package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -0
- package/dist/esm/anchor-button/anchor-button.definition.js +0 -6
- package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js +40 -66
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.options.js +26 -0
- package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.styles.js +12 -5
- package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.template.js +21 -1
- package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
- package/dist/esm/anchor-button/index.js +5 -3
- package/dist/esm/anchor-button/index.js.map +1 -1
- package/dist/esm/avatar/avatar.base.js +25 -0
- package/dist/esm/avatar/avatar.base.js.map +1 -0
- package/dist/esm/avatar/avatar.bench.js +10 -0
- package/dist/esm/avatar/avatar.bench.js.map +1 -0
- package/dist/esm/avatar/avatar.js +57 -51
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/avatar/avatar.styles.js +5 -5
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/avatar/avatar.template.js +2 -4
- package/dist/esm/avatar/avatar.template.js.map +1 -1
- package/dist/esm/avatar/index.js +3 -2
- package/dist/esm/avatar/index.js.map +1 -1
- package/dist/esm/badge/badge.bench.js +11 -0
- package/dist/esm/badge/badge.bench.js.map +1 -0
- package/dist/esm/badge/badge.definition.js +0 -3
- package/dist/esm/badge/badge.definition.js.map +1 -1
- package/dist/esm/badge/badge.js +4 -8
- package/dist/esm/badge/badge.js.map +1 -1
- package/dist/esm/badge/badge.styles.js +13 -8
- package/dist/esm/badge/badge.styles.js.map +1 -1
- package/dist/esm/badge/badge.template.js +2 -2
- package/dist/esm/badge/badge.template.js.map +1 -1
- package/dist/esm/badge/index.js +2 -2
- package/dist/esm/badge/index.js.map +1 -1
- package/dist/esm/button/button.base.js +283 -0
- package/dist/esm/button/button.base.js.map +1 -0
- package/dist/esm/button/button.bench.js +11 -0
- package/dist/esm/button/button.bench.js.map +1 -0
- package/dist/esm/button/button.definition.js +2 -6
- package/dist/esm/button/button.definition.js.map +1 -1
- package/dist/esm/button/button.js +13 -50
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/button/button.options.js +20 -1
- package/dist/esm/button/button.options.js.map +1 -1
- package/dist/esm/button/button.styles.js +93 -75
- package/dist/esm/button/button.styles.js.map +1 -1
- package/dist/esm/button/button.template.js +23 -1
- package/dist/esm/button/button.template.js.map +1 -1
- package/dist/esm/button/index.js +5 -4
- package/dist/esm/button/index.js.map +1 -1
- package/dist/esm/checkbox/checkbox.base.js +366 -0
- package/dist/esm/checkbox/checkbox.base.js.map +1 -0
- package/dist/esm/checkbox/checkbox.bench.js +11 -0
- package/dist/esm/checkbox/checkbox.bench.js.map +1 -0
- package/dist/esm/checkbox/checkbox.definition.js +1 -1
- package/dist/esm/checkbox/checkbox.definition.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js +56 -13
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/checkbox/checkbox.options.js +0 -8
- package/dist/esm/checkbox/checkbox.options.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +136 -123
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/checkbox/checkbox.template.js +34 -17
- package/dist/esm/checkbox/checkbox.template.js.map +1 -1
- package/dist/esm/checkbox/index.js +4 -3
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/compound-button/compound-button.bench.js +15 -0
- package/dist/esm/compound-button/compound-button.bench.js.map +1 -0
- package/dist/esm/compound-button/compound-button.definition.js +0 -6
- package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
- package/dist/esm/compound-button/compound-button.js +3 -0
- package/dist/esm/compound-button/compound-button.js.map +1 -1
- package/dist/esm/compound-button/compound-button.options.js.map +1 -1
- package/dist/esm/compound-button/compound-button.styles.js +11 -13
- package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
- package/dist/esm/compound-button/compound-button.template.js +4 -40
- package/dist/esm/compound-button/compound-button.template.js.map +1 -1
- package/dist/esm/compound-button/index.js +2 -2
- package/dist/esm/compound-button/index.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.bench.js +11 -0
- package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -0
- package/dist/esm/counter-badge/counter-badge.definition.js +0 -4
- package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js +12 -10
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.styles.js +2 -5
- package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
- package/dist/esm/counter-badge/index.js +2 -2
- package/dist/esm/counter-badge/index.js.map +1 -1
- package/dist/esm/dialog/define.js +4 -0
- package/dist/esm/dialog/define.js.map +1 -0
- package/dist/esm/dialog/dialog.bench.js +11 -0
- package/dist/esm/dialog/dialog.bench.js.map +1 -0
- package/dist/esm/dialog/dialog.definition.js +17 -0
- package/dist/esm/dialog/dialog.definition.js.map +1 -0
- package/dist/esm/dialog/dialog.js +93 -0
- package/dist/esm/dialog/dialog.js.map +1 -0
- package/dist/esm/dialog/dialog.options.js +10 -0
- package/dist/esm/dialog/dialog.options.js.map +1 -0
- package/dist/esm/dialog/dialog.styles.js +86 -0
- package/dist/esm/dialog/dialog.styles.js.map +1 -0
- package/dist/esm/dialog/dialog.template.js +24 -0
- package/dist/esm/dialog/dialog.template.js.map +1 -0
- package/dist/esm/dialog/index.js +6 -0
- package/dist/esm/dialog/index.js.map +1 -0
- package/dist/esm/dialog-body/define.js +4 -0
- package/dist/esm/dialog-body/define.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.bench.js +11 -0
- package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.definition.js +17 -0
- package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.js +24 -0
- package/dist/esm/dialog-body/dialog-body.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.styles.js +79 -0
- package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -0
- package/dist/esm/dialog-body/dialog-body.template.js +42 -0
- package/dist/esm/dialog-body/dialog-body.template.js.map +1 -0
- package/dist/esm/dialog-body/index.js +5 -0
- package/dist/esm/dialog-body/index.js.map +1 -0
- package/dist/esm/divider/divider.base.js +61 -0
- package/dist/esm/divider/divider.base.js.map +1 -0
- package/dist/esm/divider/divider.bench.js +10 -0
- package/dist/esm/divider/divider.bench.js.map +1 -0
- package/dist/esm/divider/divider.js +8 -11
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/divider/divider.options.js +14 -6
- package/dist/esm/divider/divider.options.js.map +1 -1
- package/dist/esm/divider/divider.styles.js +4 -6
- package/dist/esm/divider/divider.styles.js.map +1 -1
- package/dist/esm/divider/divider.template.js +4 -1
- package/dist/esm/divider/divider.template.js.map +1 -1
- package/dist/esm/divider/index.js +3 -2
- package/dist/esm/divider/index.js.map +1 -1
- package/dist/esm/drawer/define.js +4 -0
- package/dist/esm/drawer/define.js.map +1 -0
- package/dist/esm/drawer/drawer.definition.js +16 -0
- package/dist/esm/drawer/drawer.definition.js.map +1 -0
- package/dist/esm/drawer/drawer.js +135 -0
- package/dist/esm/drawer/drawer.js.map +1 -0
- package/dist/esm/drawer/drawer.options.js +25 -0
- package/dist/esm/drawer/drawer.options.js.map +1 -0
- package/dist/esm/drawer/drawer.styles.js +138 -0
- package/dist/esm/drawer/drawer.styles.js.map +1 -0
- package/dist/esm/drawer/drawer.template.js +28 -0
- package/dist/esm/drawer/drawer.template.js.map +1 -0
- package/dist/esm/drawer/index.js +6 -0
- package/dist/esm/drawer/index.js.map +1 -0
- package/dist/esm/drawer-body/define.js +4 -0
- package/dist/esm/drawer-body/define.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.definition.js +16 -0
- package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.js +24 -0
- package/dist/esm/drawer-body/drawer-body.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.styles.js +37 -0
- package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.template.js +21 -0
- package/dist/esm/drawer-body/drawer-body.template.js.map +1 -0
- package/dist/esm/drawer-body/index.js +5 -0
- package/dist/esm/drawer-body/index.js.map +1 -0
- package/dist/esm/dropdown/define.js +4 -0
- package/dist/esm/dropdown/define.js.map +1 -0
- package/dist/esm/dropdown/dropdown.base.js +781 -0
- package/dist/esm/dropdown/dropdown.base.js.map +1 -0
- package/dist/esm/dropdown/dropdown.definition.js +20 -0
- package/dist/esm/dropdown/dropdown.definition.js.map +1 -0
- package/dist/esm/dropdown/dropdown.js +35 -0
- package/dist/esm/dropdown/dropdown.js.map +1 -0
- package/dist/esm/dropdown/dropdown.options.js +43 -0
- package/dist/esm/dropdown/dropdown.options.js.map +1 -0
- package/dist/esm/dropdown/dropdown.styles.js +213 -0
- package/dist/esm/dropdown/dropdown.styles.js.map +1 -0
- package/dist/esm/dropdown/dropdown.template.js +92 -0
- package/dist/esm/dropdown/dropdown.template.js.map +1 -0
- package/dist/esm/dropdown/index.js +7 -0
- package/dist/esm/dropdown/index.js.map +1 -0
- package/dist/esm/field/define.js +4 -0
- package/dist/esm/field/define.js.map +1 -0
- package/dist/esm/field/field.base.js +189 -0
- package/dist/esm/field/field.base.js.map +1 -0
- package/dist/esm/field/field.bench.js +10 -0
- package/dist/esm/field/field.bench.js.map +1 -0
- package/dist/esm/field/field.definition.js +20 -0
- package/dist/esm/field/field.definition.js.map +1 -0
- package/dist/esm/field/field.js +29 -0
- package/dist/esm/field/field.js.map +1 -0
- package/dist/esm/field/field.options.js +27 -0
- package/dist/esm/field/field.options.js.map +1 -0
- package/dist/esm/field/field.styles.js +135 -0
- package/dist/esm/field/field.styles.js.map +1 -0
- package/dist/esm/field/field.template.js +26 -0
- package/dist/esm/field/field.template.js.map +1 -0
- package/dist/esm/field/index.js +7 -0
- package/dist/esm/field/index.js.map +1 -0
- package/dist/esm/image/image.bench.js +14 -0
- package/dist/esm/image/image.bench.js.map +1 -0
- package/dist/esm/image/image.js +4 -6
- package/dist/esm/image/image.js.map +1 -1
- package/dist/esm/image/image.options.js +0 -1
- package/dist/esm/image/image.options.js.map +1 -1
- package/dist/esm/image/image.template.js.map +1 -1
- package/dist/esm/image/index.js +2 -2
- package/dist/esm/image/index.js.map +1 -1
- package/dist/esm/index-rollup.js +44 -1
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +52 -29
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/label/index.js +2 -1
- package/dist/esm/label/index.js.map +1 -1
- package/dist/esm/label/label.bench.js +11 -0
- package/dist/esm/label/label.bench.js.map +1 -0
- package/dist/esm/label/label.js +4 -6
- package/dist/esm/label/label.js.map +1 -1
- package/dist/esm/label/label.styles.js +13 -7
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/label/label.template.js.map +1 -1
- package/dist/esm/link/define.js +4 -0
- package/dist/esm/link/define.js.map +1 -0
- package/dist/esm/link/index.js +6 -0
- package/dist/esm/link/index.js.map +1 -0
- package/dist/esm/link/link.bench.js +11 -0
- package/dist/esm/link/link.bench.js.map +1 -0
- package/dist/esm/link/link.definition.js +15 -0
- package/dist/esm/link/link.definition.js.map +1 -0
- package/dist/esm/link/link.js +38 -0
- package/dist/esm/link/link.js.map +1 -0
- package/dist/esm/link/link.options.js +21 -0
- package/dist/esm/link/link.options.js.map +1 -0
- package/dist/esm/link/link.styles.js +71 -0
- package/dist/esm/link/link.styles.js.map +1 -0
- package/dist/esm/link/link.template.js +22 -0
- package/dist/esm/link/link.template.js.map +1 -0
- package/dist/esm/listbox/define.js +4 -0
- package/dist/esm/listbox/define.js.map +1 -0
- package/dist/esm/listbox/index.js +6 -0
- package/dist/esm/listbox/index.js.map +1 -0
- package/dist/esm/listbox/listbox.definition.js +17 -0
- package/dist/esm/listbox/listbox.definition.js.map +1 -0
- package/dist/esm/listbox/listbox.js +180 -0
- package/dist/esm/listbox/listbox.js.map +1 -0
- package/dist/esm/listbox/listbox.options.js +15 -0
- package/dist/esm/listbox/listbox.options.js.map +1 -0
- package/dist/esm/listbox/listbox.styles.js +26 -0
- package/dist/esm/listbox/listbox.styles.js.map +1 -0
- package/dist/esm/listbox/listbox.template.js +33 -0
- package/dist/esm/listbox/listbox.template.js.map +1 -0
- package/dist/esm/menu/define.js +4 -0
- package/dist/esm/menu/define.js.map +1 -0
- package/dist/esm/menu/index.js +5 -0
- package/dist/esm/menu/index.js.map +1 -0
- package/dist/esm/menu/menu.bench.js +31 -0
- package/dist/esm/menu/menu.bench.js.map +1 -0
- package/dist/esm/menu/menu.definition.js +17 -0
- package/dist/esm/menu/menu.definition.js.map +1 -0
- package/dist/esm/menu/menu.js +375 -0
- package/dist/esm/menu/menu.js.map +1 -0
- package/dist/esm/menu/menu.styles.js +61 -0
- package/dist/esm/menu/menu.styles.js.map +1 -0
- package/dist/esm/menu/menu.template.js +18 -0
- package/dist/esm/menu/menu.template.js.map +1 -0
- package/dist/esm/menu-button/index.js +3 -3
- package/dist/esm/menu-button/index.js.map +1 -1
- package/dist/esm/menu-button/menu-button.bench.js +11 -0
- package/dist/esm/menu-button/menu-button.bench.js.map +1 -0
- package/dist/esm/menu-button/menu-button.definition.js +0 -6
- package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
- package/dist/esm/menu-button/menu-button.js +3 -0
- package/dist/esm/menu-button/menu-button.js.map +1 -1
- package/dist/esm/menu-button/menu-button.options.js.map +1 -1
- package/dist/esm/menu-button/menu-button.template.js +6 -2
- package/dist/esm/menu-button/menu-button.template.js.map +1 -1
- package/dist/esm/menu-item/index.js +4 -3
- package/dist/esm/menu-item/index.js.map +1 -1
- package/dist/esm/menu-item/menu-item.bench.js +11 -0
- package/dist/esm/menu-item/menu-item.bench.js.map +1 -0
- package/dist/esm/menu-item/menu-item.definition.js +0 -4
- package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js +246 -4
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-item/menu-item.options.js +27 -0
- package/dist/esm/menu-item/menu-item.options.js.map +1 -0
- package/dist/esm/menu-item/menu-item.styles.js +98 -122
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/menu-item/menu-item.template.js +27 -7
- package/dist/esm/menu-item/menu-item.template.js.map +1 -1
- package/dist/esm/menu-list/index.js +1 -1
- package/dist/esm/menu-list/index.js.map +1 -1
- package/dist/esm/menu-list/menu-list.bench.js +21 -0
- package/dist/esm/menu-list/menu-list.bench.js.map +1 -0
- package/dist/esm/menu-list/menu-list.definition.js +0 -4
- package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js +241 -18
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/menu-list/menu-list.styles.js +1 -1
- package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
- package/dist/esm/menu-list/menu-list.template.js +12 -1
- package/dist/esm/menu-list/menu-list.template.js.map +1 -1
- package/dist/esm/message-bar/define.js +4 -0
- package/dist/esm/message-bar/define.js.map +1 -0
- package/dist/esm/message-bar/index.js +6 -0
- package/dist/esm/message-bar/index.js.map +1 -0
- package/dist/esm/message-bar/message-bar.bench.js +56 -0
- package/dist/esm/message-bar/message-bar.bench.js.map +1 -0
- package/dist/esm/message-bar/message-bar.definition.js +20 -0
- package/dist/esm/message-bar/message-bar.definition.js.map +1 -0
- package/dist/esm/message-bar/message-bar.js +41 -0
- package/dist/esm/message-bar/message-bar.js.map +1 -0
- package/dist/esm/message-bar/message-bar.options.js +27 -0
- package/dist/esm/message-bar/message-bar.options.js.map +1 -0
- package/dist/esm/message-bar/message-bar.styles.js +107 -0
- package/dist/esm/message-bar/message-bar.styles.js.map +1 -0
- package/dist/esm/message-bar/message-bar.template.js +25 -0
- package/dist/esm/message-bar/message-bar.template.js.map +1 -0
- package/dist/esm/option/define.js +4 -0
- package/dist/esm/option/define.js.map +1 -0
- package/dist/esm/option/index.js +6 -0
- package/dist/esm/option/index.js.map +1 -0
- package/dist/esm/option/option.definition.js +17 -0
- package/dist/esm/option/option.definition.js.map +1 -0
- package/dist/esm/option/option.js +298 -0
- package/dist/esm/option/option.js.map +1 -0
- package/dist/esm/option/option.options.js +15 -0
- package/dist/esm/option/option.options.js.map +1 -0
- package/dist/esm/option/option.styles.js +127 -0
- package/dist/esm/option/option.styles.js.map +1 -0
- package/dist/esm/option/option.template.js +42 -0
- package/dist/esm/option/option.template.js.map +1 -0
- package/dist/esm/patterns/aria-globals.js +72 -0
- package/dist/esm/patterns/aria-globals.js.map +1 -0
- package/dist/esm/patterns/index.js +3 -0
- package/dist/esm/patterns/index.js.map +1 -0
- package/dist/esm/patterns/start-end.js +41 -0
- package/dist/esm/patterns/start-end.js.map +1 -0
- package/dist/esm/progress-bar/index.js +3 -2
- package/dist/esm/progress-bar/index.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.base.js +90 -0
- package/dist/esm/progress-bar/progress-bar.base.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.bench.js +10 -0
- package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -0
- package/dist/esm/progress-bar/progress-bar.js +8 -22
- package/dist/esm/progress-bar/progress-bar.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.styles.js +49 -128
- package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/esm/progress-bar/progress-bar.template.js +11 -5
- package/dist/esm/progress-bar/progress-bar.template.js.map +1 -1
- package/dist/esm/radio/index.js +1 -1
- package/dist/esm/radio/index.js.map +1 -1
- package/dist/esm/radio/radio.bench.js +11 -0
- package/dist/esm/radio/radio.bench.js.map +1 -0
- package/dist/esm/radio/radio.js +79 -3
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio/radio.options.js +2 -0
- package/dist/esm/radio/radio.options.js.map +1 -0
- package/dist/esm/radio/radio.styles.js +95 -88
- package/dist/esm/radio/radio.styles.js.map +1 -1
- package/dist/esm/radio/radio.template.js +27 -4
- package/dist/esm/radio/radio.template.js.map +1 -1
- package/dist/esm/radio-group/index.js +2 -2
- package/dist/esm/radio-group/index.js.map +1 -1
- package/dist/esm/radio-group/radio-group.bench.js +21 -0
- package/dist/esm/radio-group/radio-group.bench.js.map +1 -0
- package/dist/esm/radio-group/radio-group.js +454 -15
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/radio-group/radio-group.options.js +7 -0
- package/dist/esm/radio-group/radio-group.options.js.map +1 -0
- package/dist/esm/radio-group/radio-group.styles.js +27 -33
- package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
- package/dist/esm/radio-group/radio-group.template.js +15 -1
- package/dist/esm/radio-group/radio-group.template.js.map +1 -1
- package/dist/esm/rating-display/define.js +4 -0
- package/dist/esm/rating-display/define.js.map +1 -0
- package/dist/esm/rating-display/index.js +7 -0
- package/dist/esm/rating-display/index.js.map +1 -0
- package/dist/esm/rating-display/rating-display.base.js +94 -0
- package/dist/esm/rating-display/rating-display.base.js.map +1 -0
- package/dist/esm/rating-display/rating-display.definition.js +17 -0
- package/dist/esm/rating-display/rating-display.definition.js.map +1 -0
- package/dist/esm/rating-display/rating-display.js +50 -0
- package/dist/esm/rating-display/rating-display.js.map +1 -0
- package/dist/esm/rating-display/rating-display.options.js +19 -0
- package/dist/esm/rating-display/rating-display.options.js.map +1 -0
- package/dist/esm/rating-display/rating-display.styles.js +123 -0
- package/dist/esm/rating-display/rating-display.styles.js.map +1 -0
- package/dist/esm/rating-display/rating-display.template.js +34 -0
- package/dist/esm/rating-display/rating-display.template.js.map +1 -0
- package/dist/esm/slider/index.js +2 -2
- package/dist/esm/slider/index.js.map +1 -1
- package/dist/esm/slider/slider-utilities.js +12 -0
- package/dist/esm/slider/slider-utilities.js.map +1 -0
- package/dist/esm/slider/slider.bench.js +10 -0
- package/dist/esm/slider/slider.bench.js.map +1 -0
- package/dist/esm/slider/slider.js +636 -27
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/slider/slider.options.js +11 -1
- package/dist/esm/slider/slider.options.js.map +1 -1
- package/dist/esm/slider/slider.styles.js +121 -129
- package/dist/esm/slider/slider.styles.js.map +1 -1
- package/dist/esm/slider/slider.template.js +23 -2
- package/dist/esm/slider/slider.template.js.map +1 -1
- package/dist/esm/spinner/index.js +3 -2
- package/dist/esm/spinner/index.js.map +1 -1
- package/dist/esm/spinner/spinner.base.js +18 -0
- package/dist/esm/spinner/spinner.base.js.map +1 -0
- package/dist/esm/spinner/spinner.bench.js +10 -0
- package/dist/esm/spinner/spinner.bench.js.map +1 -0
- package/dist/esm/spinner/spinner.definition.js +0 -4
- package/dist/esm/spinner/spinner.definition.js.map +1 -1
- package/dist/esm/spinner/spinner.js +8 -9
- package/dist/esm/spinner/spinner.js.map +1 -1
- package/dist/esm/spinner/spinner.styles.js +115 -54
- package/dist/esm/spinner/spinner.styles.js.map +1 -1
- package/dist/esm/spinner/spinner.template.js +16 -21
- package/dist/esm/spinner/spinner.template.js.map +1 -1
- package/dist/esm/styles/partials/badge.partials.js +5 -6
- package/dist/esm/styles/partials/badge.partials.js.map +1 -1
- package/dist/esm/styles/partials/index.js +1 -0
- package/dist/esm/styles/partials/index.js.map +1 -1
- package/dist/esm/styles/partials/typography.partials.js +105 -0
- package/dist/esm/styles/partials/typography.partials.js.map +1 -0
- package/dist/esm/styles/states/index.js +136 -0
- package/dist/esm/styles/states/index.js.map +1 -0
- package/dist/esm/switch/index.js +2 -2
- package/dist/esm/switch/index.js.map +1 -1
- package/dist/esm/switch/switch.bench.js +11 -0
- package/dist/esm/switch/switch.bench.js.map +1 -0
- package/dist/esm/switch/switch.js +13 -12
- package/dist/esm/switch/switch.js.map +1 -1
- package/dist/esm/switch/switch.styles.js +39 -58
- package/dist/esm/switch/switch.styles.js.map +1 -1
- package/dist/esm/switch/switch.template.js +15 -1
- package/dist/esm/switch/switch.template.js.map +1 -1
- package/dist/esm/tab/index.js +3 -3
- package/dist/esm/tab/index.js.map +1 -1
- package/dist/esm/tab/tab.bench.js +11 -0
- package/dist/esm/tab/tab.bench.js.map +1 -0
- package/dist/esm/tab/tab.js +11 -3
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tab/tab.styles.js +1 -1
- package/dist/esm/tab/tab.styles.js.map +1 -1
- package/dist/esm/tab/tab.template.js +1 -1
- package/dist/esm/tab/tab.template.js.map +1 -1
- package/dist/esm/tab-panel/define.js +3 -0
- package/dist/esm/tab-panel/define.js.map +1 -1
- package/dist/esm/tab-panel/index.js +1 -1
- package/dist/esm/tab-panel/index.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.bench.js +13 -0
- package/dist/esm/tab-panel/tab-panel.bench.js.map +1 -0
- package/dist/esm/tab-panel/tab-panel.definition.js +3 -0
- package/dist/esm/tab-panel/tab-panel.definition.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.js +7 -2
- package/dist/esm/tab-panel/tab-panel.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js +1 -1
- package/dist/esm/tab-panel/tab-panel.styles.js.map +1 -1
- package/dist/esm/tab-panel/tab-panel.template.js +11 -1
- package/dist/esm/tab-panel/tab-panel.template.js.map +1 -1
- package/dist/esm/tablist/define.js +4 -0
- package/dist/esm/tablist/define.js.map +1 -0
- package/dist/esm/tablist/index.js +7 -0
- package/dist/esm/tablist/index.js.map +1 -0
- package/dist/esm/tablist/tablist.base.js +249 -0
- package/dist/esm/tablist/tablist.base.js.map +1 -0
- package/dist/esm/tablist/tablist.bench.js +21 -0
- package/dist/esm/tablist/tablist.bench.js.map +1 -0
- package/dist/esm/tablist/tablist.definition.js +15 -0
- package/dist/esm/tablist/tablist.definition.js.map +1 -0
- package/dist/esm/tablist/tablist.js +161 -0
- package/dist/esm/tablist/tablist.js.map +1 -0
- package/dist/esm/tablist/tablist.options.js +24 -0
- package/dist/esm/tablist/tablist.options.js.map +1 -0
- package/dist/esm/tablist/tablist.styles.js +193 -0
- package/dist/esm/tablist/tablist.styles.js.map +1 -0
- package/dist/esm/tablist/tablist.template.js +10 -0
- package/dist/esm/tablist/tablist.template.js.map +1 -0
- package/dist/esm/tabs/define.js +3 -0
- package/dist/esm/tabs/define.js.map +1 -1
- package/dist/esm/tabs/index.js +4 -4
- package/dist/esm/tabs/index.js.map +1 -1
- package/dist/esm/tabs/tabs.base.js +279 -0
- package/dist/esm/tabs/tabs.base.js.map +1 -0
- package/dist/esm/tabs/tabs.bench.js +32 -0
- package/dist/esm/tabs/tabs.bench.js.map +1 -0
- package/dist/esm/tabs/tabs.definition.js +3 -0
- package/dist/esm/tabs/tabs.definition.js.map +1 -1
- package/dist/esm/tabs/tabs.js +48 -31
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/tabs/tabs.options.js +6 -2
- package/dist/esm/tabs/tabs.options.js.map +1 -1
- package/dist/esm/tabs/tabs.styles.js +1 -1
- package/dist/esm/tabs/tabs.styles.js.map +1 -1
- package/dist/esm/tabs/tabs.template.js +17 -1
- package/dist/esm/tabs/tabs.template.js.map +1 -1
- package/dist/esm/text/index.js +2 -2
- package/dist/esm/text/index.js.map +1 -1
- package/dist/esm/text/text.bench.js +13 -0
- package/dist/esm/text/text.bench.js.map +1 -0
- package/dist/esm/text/text.js +10 -6
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text/text.styles.js +34 -32
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/text/text.template.js.map +1 -1
- package/dist/esm/text-input/index.js +5 -5
- package/dist/esm/text-input/index.js.map +1 -1
- package/dist/esm/text-input/text-input.base.js +423 -0
- package/dist/esm/text-input/text-input.base.js.map +1 -0
- package/dist/esm/text-input/text-input.bench.js +10 -0
- package/dist/esm/text-input/text-input.bench.js.map +1 -0
- package/dist/esm/text-input/text-input.definition.js +5 -3
- package/dist/esm/text-input/text-input.definition.js.map +1 -1
- package/dist/esm/text-input/text-input.js +14 -12
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/text-input/text-input.options.js +35 -2
- package/dist/esm/text-input/text-input.options.js.map +1 -1
- package/dist/esm/text-input/text-input.styles.js +22 -12
- package/dist/esm/text-input/text-input.styles.js.map +1 -1
- package/dist/esm/text-input/text-input.template.js +55 -2
- package/dist/esm/text-input/text-input.template.js.map +1 -1
- package/dist/esm/textarea/define.js +4 -0
- package/dist/esm/textarea/define.js.map +1 -0
- package/dist/esm/textarea/index.js +7 -0
- package/dist/esm/textarea/index.js.map +1 -0
- package/dist/esm/textarea/textarea.base.js +494 -0
- package/dist/esm/textarea/textarea.base.js.map +1 -0
- package/dist/esm/textarea/textarea.bench.js +10 -0
- package/dist/esm/textarea/textarea.bench.js.map +1 -0
- package/dist/esm/textarea/textarea.definition.js +20 -0
- package/dist/esm/textarea/textarea.definition.js.map +1 -0
- package/dist/esm/textarea/textarea.js +73 -0
- package/dist/esm/textarea/textarea.js.map +1 -0
- package/dist/esm/textarea/textarea.options.js +48 -0
- package/dist/esm/textarea/textarea.options.js.map +1 -0
- package/dist/esm/textarea/textarea.styles.js +268 -0
- package/dist/esm/textarea/textarea.styles.js.map +1 -0
- package/dist/esm/textarea/textarea.template.js +54 -0
- package/dist/esm/textarea/textarea.template.js.map +1 -0
- package/dist/esm/theme/design-tokens.js +2221 -386
- package/dist/esm/theme/design-tokens.js.map +1 -1
- package/dist/esm/theme/index.js.map +1 -1
- package/dist/esm/theme/set-theme.global.bench.js +25 -0
- package/dist/esm/theme/set-theme.global.bench.js.map +1 -0
- package/dist/esm/theme/set-theme.js +185 -12
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/theme/set-theme.local.bench.js +27 -0
- package/dist/esm/theme/set-theme.local.bench.js.map +1 -0
- package/dist/esm/theme/set-theme.shadow.bench.js +29 -0
- package/dist/esm/theme/set-theme.shadow.bench.js.map +1 -0
- package/dist/esm/toggle-button/index.js +4 -4
- package/dist/esm/toggle-button/index.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.bench.js +11 -0
- package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -0
- package/dist/esm/toggle-button/toggle-button.definition.js +0 -5
- package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.js +46 -91
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.styles.js +34 -26
- package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js +1 -1
- package/dist/esm/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/esm/tooltip/define.js +4 -0
- package/dist/esm/tooltip/define.js.map +1 -0
- package/dist/esm/tooltip/index.js +6 -0
- package/dist/esm/tooltip/index.js.map +1 -0
- package/dist/esm/tooltip/tooltip.definition.js +17 -0
- package/dist/esm/tooltip/tooltip.definition.js.map +1 -0
- package/dist/esm/tooltip/tooltip.js +202 -0
- package/dist/esm/tooltip/tooltip.js.map +1 -0
- package/dist/esm/tooltip/tooltip.options.js +19 -0
- package/dist/esm/tooltip/tooltip.options.js.map +1 -0
- package/dist/esm/tooltip/tooltip.styles.js +96 -0
- package/dist/esm/tooltip/tooltip.styles.js.map +1 -0
- package/dist/esm/tooltip/tooltip.template.js +11 -0
- package/dist/esm/tooltip/tooltip.template.js.map +1 -0
- package/dist/esm/tree/define.js +4 -0
- package/dist/esm/tree/define.js.map +1 -0
- package/dist/esm/tree/index.js +6 -0
- package/dist/esm/tree/index.js.map +1 -0
- package/dist/esm/tree/tree.base.js +228 -0
- package/dist/esm/tree/tree.base.js.map +1 -0
- package/dist/esm/tree/tree.bench.js +10 -0
- package/dist/esm/tree/tree.bench.js.map +1 -0
- package/dist/esm/tree/tree.definition.js +16 -0
- package/dist/esm/tree/tree.definition.js.map +1 -0
- package/dist/esm/tree/tree.js +61 -0
- package/dist/esm/tree/tree.js.map +1 -0
- package/dist/esm/tree/tree.styles.js +9 -0
- package/dist/esm/tree/tree.styles.js.map +1 -0
- package/dist/esm/tree/tree.template.js +19 -0
- package/dist/esm/tree/tree.template.js.map +1 -0
- package/dist/esm/tree-item/define.js +4 -0
- package/dist/esm/tree-item/define.js.map +1 -0
- package/dist/esm/tree-item/index.js +6 -0
- package/dist/esm/tree-item/index.js.map +1 -0
- package/dist/esm/tree-item/tree-item.base.js +142 -0
- package/dist/esm/tree-item/tree-item.base.js.map +1 -0
- package/dist/esm/tree-item/tree-item.bench.js +10 -0
- package/dist/esm/tree-item/tree-item.bench.js.map +1 -0
- package/dist/esm/tree-item/tree-item.definition.js +16 -0
- package/dist/esm/tree-item/tree-item.definition.js.map +1 -0
- package/dist/esm/tree-item/tree-item.js +71 -0
- package/dist/esm/tree-item/tree-item.js.map +1 -0
- package/dist/esm/tree-item/tree-item.options.js +24 -0
- package/dist/esm/tree-item/tree-item.options.js.map +1 -0
- package/dist/esm/tree-item/tree-item.styles.js +157 -0
- package/dist/esm/tree-item/tree-item.styles.js.map +1 -0
- package/dist/esm/tree-item/tree-item.template.js +37 -0
- package/dist/esm/tree-item/tree-item.template.js.map +1 -0
- package/dist/esm/utils/apply-mixins.js.map +1 -1
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js +142 -0
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +1 -0
- package/dist/esm/utils/benchmark-dependencies/tokens.js +2 -0
- package/dist/esm/utils/benchmark-dependencies/tokens.js.map +1 -0
- package/dist/esm/utils/benchmark-wrapper.js +18 -0
- package/dist/esm/utils/benchmark-wrapper.js.map +1 -0
- package/dist/esm/utils/converters.js +26 -0
- package/dist/esm/utils/converters.js.map +1 -0
- package/dist/esm/utils/direction.js +14 -0
- package/dist/esm/utils/direction.js.map +1 -0
- package/dist/esm/utils/display.js +15 -0
- package/dist/esm/utils/display.js.map +1 -0
- package/dist/esm/utils/element-internals.js +96 -0
- package/dist/esm/utils/element-internals.js.map +1 -0
- package/dist/esm/utils/focusable-element.js +10 -0
- package/dist/esm/utils/focusable-element.js.map +1 -0
- package/dist/esm/utils/get-initials.js +2 -2
- package/dist/esm/utils/get-initials.js.map +1 -1
- package/dist/esm/utils/index.js +9 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/language.js +12 -0
- package/dist/esm/utils/language.js.map +1 -0
- package/dist/esm/utils/root-active-element.js +9 -0
- package/dist/esm/utils/root-active-element.js.map +1 -0
- package/dist/esm/utils/support.js +16 -0
- package/dist/esm/utils/support.js.map +1 -0
- package/dist/esm/utils/template-helpers.js +19 -0
- package/dist/esm/utils/template-helpers.js.map +1 -0
- package/dist/esm/utils/typings.js +3 -0
- package/dist/esm/utils/typings.js.map +1 -0
- package/dist/esm/utils/unique-id.js +14 -0
- package/dist/esm/utils/unique-id.js.map +1 -0
- package/dist/esm/utils/whitespace-filter.js +13 -0
- package/dist/esm/utils/whitespace-filter.js.map +1 -0
- package/dist/web-components.d.ts +9533 -1377
- package/dist/web-components.js +11138 -8869
- package/dist/web-components.min.js +413 -189
- package/package.json +77 -149
- package/dist/dts/helpers.tests.d.ts +0 -8
- package/dist/esm/helpers.tests.js +0 -29
- package/dist/esm/helpers.tests.js.map +0 -1
- package/dist/fluent-web-components.api.json +0 -18605
- package/dist/storybook/108.78b731e00015540915a8.manager.bundle.js +0 -1
- package/dist/storybook/108.b31ec3a1.iframe.bundle.js +0 -1
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js +0 -2
- package/dist/storybook/316.bc4aabd3.iframe.bundle.js.LICENSE.txt +0 -17
- package/dist/storybook/401.7edec720.iframe.bundle.js +0 -2
- package/dist/storybook/401.7edec720.iframe.bundle.js.LICENSE.txt +0 -12
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js +0 -2
- package/dist/storybook/401.c9bdfaf0dda8b194127f.manager.bundle.js.LICENSE.txt +0 -12
- package/dist/storybook/491.77b24750.iframe.bundle.js +0 -1
- package/dist/storybook/709.22096ad4.iframe.bundle.js +0 -2
- package/dist/storybook/709.22096ad4.iframe.bundle.js.LICENSE.txt +0 -8
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js +0 -2
- package/dist/storybook/709.b131e33993a6b94d7ad8.manager.bundle.js.LICENSE.txt +0 -8
- package/dist/storybook/721.46fa9f53.iframe.bundle.js +0 -2
- package/dist/storybook/721.46fa9f53.iframe.bundle.js.LICENSE.txt +0 -31
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js +0 -2
- package/dist/storybook/721.c225c101a0a55a8f98eb.manager.bundle.js.LICENSE.txt +0 -31
- package/dist/storybook/761.21909e5ef44f985ae0d4.manager.bundle.js +0 -2
- package/dist/storybook/761.21909e5ef44f985ae0d4.manager.bundle.js.LICENSE.txt +0 -94
- package/dist/storybook/858.da40ed98.iframe.bundle.js +0 -1
- package/dist/storybook/858.e08e25a6901d2e21e9d8.manager.bundle.js +0 -1
- package/dist/storybook/885.6558041f.iframe.bundle.js +0 -462
- package/dist/storybook/885.6558041f.iframe.bundle.js.LICENSE.txt +0 -46
- package/dist/storybook/885.6558041f.iframe.bundle.js.map +0 -1
- package/dist/storybook/950.674e7934b4a26a022608.manager.bundle.js +0 -1
- package/dist/storybook/954.630c5748.iframe.bundle.js +0 -1
- package/dist/storybook/954.7f985e2fdf9f15a7748b.manager.bundle.js +0 -1
- package/dist/storybook/SegoeUI-VF.ttf +0 -0
- package/dist/storybook/favicon.ico +0 -0
- package/dist/storybook/favicon.png +0 -0
- package/dist/storybook/iframe.html +0 -364
- package/dist/storybook/index.html +0 -165
- package/dist/storybook/main.18c2c615e57574af12cd.manager.bundle.js +0 -1
- package/dist/storybook/main.2c02ce39.iframe.bundle.js +0 -1
- package/dist/storybook/project.json +0 -1
- package/dist/storybook/runtime~main.5d918fe7.iframe.bundle.js +0 -1
- package/dist/storybook/runtime~main.8db883e762072830487f.manager.bundle.js +0 -1
- package/dist/storybook/shell.css +0 -83
- package/dist/storybook/theme-switch.ts +0 -13
- package/docs/api-report.md +0 -2387
- package/playwright.config.ts +0 -25
|
@@ -1,35 +1,64 @@
|
|
|
1
|
-
function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(a<3?i(n):a>3?i(t,o,n):i(t,o))||n);return a>3&&n&&Object.defineProperty(t,o,n),n}function t(e,t,o,r){return new(o||(o=Promise))((function(i,a){function n(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,s)}l((r=r.apply(e,t||[])).next())}))}let o;try{if(document.currentScript)o=document.currentScript.getAttribute("fast-kernel");else{const e=document.getElementsByTagName("script");o=e[e.length-1].getAttribute("fast-kernel")}}catch(Kh){o="isolate"}let r;switch(o){case"share":r=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":r=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const e="-"+Math.random().toString(36).substring(2,8);r=Object.freeze({updateQueue:"1.2"+e,observable:"2.2"+e,contextEvent:"3.2"+e,elementRegistry:"4.2"+e})}const i=e=>"function"==typeof e,a=e=>"string"==typeof e,n=()=>{};var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(){if("undefined"==typeof globalThis)if(void 0!==s)s.globalThis=s;else if("undefined"!=typeof self)self.globalThis=self;else if("undefined"!=typeof window)window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}}();const l={configurable:!1,enumerable:!1,writable:!1};void 0===globalThis.FAST&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},l));const c=globalThis.FAST;if(void 0===c.getById){const e=Object.create(null);Reflect.defineProperty(c,"getById",Object.assign({value(t,o){let r=e[t];return void 0===r&&(r=o?e[t]=o():null),r}},l))}void 0===c.error&&Object.assign(c,{warn(){},error:e=>new Error("Error "+e),addMessages(){}});const d=Object.freeze([]);function h(){const e=new Map;return Object.freeze({register:t=>!e.has(t.type)&&(e.set(t.type,t),!0),getByType:t=>e.get(t),getForInstance(t){if(null!=t)return e.get(t.constructor)}})}function u(){const e=new WeakMap;return function(t){let o=e.get(t);if(void 0===o){let r=Reflect.getPrototypeOf(t);for(;void 0===o&&null!==r;)o=e.get(r),r=Reflect.getPrototypeOf(r);o=void 0===o?[]:o.slice(0),e.set(t,o)}return o}}function p(e){e.prototype.toJSON=n}const g=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),b=e=>e,f=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:b}):{createHTML:b};let m=Object.freeze({createHTML:e=>f.createHTML(e),protect:(e,t,o,r)=>r});const v=m,y=Object.freeze({get policy(){return m},setPolicy(e){if(m!==v)throw c.error(1201);m=e},setAttribute(e,t,o){null==o?e.removeAttribute(t):e.setAttribute(t,o)},setBooleanAttribute(e,t,o){o?e.setAttribute(t,""):e.removeAttribute(t)}}),k=c.getById(r.updateQueue,()=>{const e=[],t=[],o=globalThis.requestAnimationFrame;let r=!0;function i(){if(t.length)throw t.shift()}function a(o){try{o.call()}catch(o){if(!r)throw e.length=0,o;t.push(o),setTimeout(i,0)}}function n(){let t=0;for(;t<e.length;)if(a(e[t]),t++,t>1024){for(let o=0,r=e.length-t;o<r;o++)e[o]=e[o+t];e.length-=t,t=0}e.length=0}function s(t){e.push(t),e.length<2&&(r?o(n):n())}return Object.freeze({enqueue:s,next:()=>new Promise(s),process:n,setMode:e=>r=e})});class x{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return void 0===this.spillover?this.sub1===e||this.sub2===e:-1!==this.spillover.indexOf(e)}subscribe(e){const t=this.spillover;if(void 0===t){if(this.has(e))return;if(void 0===this.sub1)return void(this.sub1=e);if(void 0===this.sub2)return void(this.sub2=e);this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else{-1===t.indexOf(e)&&t.push(e)}}unsubscribe(e){const t=this.spillover;if(void 0===t)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const o=t.indexOf(e);-1!==o&&t.splice(o,1)}}notify(e){const t=this.spillover,o=this.subject;if(void 0===t){const t=this.sub1,r=this.sub2;void 0!==t&&t.handleChange(o,e),void 0!==r&&r.handleChange(o,e)}else for(let r=0,i=t.length;r<i;++r)t[r].handleChange(o,e)}}class ${constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,o;null===(t=this.subscribers[e])||void 0===t||t.notify(e),null===(o=this.subjectSubscribers)||void 0===o||o.notify(e)}subscribe(e,t){var o,r;let i;i=t?null!==(o=this.subscribers[t])&&void 0!==o?o:this.subscribers[t]=new x(this.subject):null!==(r=this.subjectSubscribers)&&void 0!==r?r:this.subjectSubscribers=new x(this.subject),i.subscribe(e)}unsubscribe(e,t){var o,r;t?null===(o=this.subscribers[t])||void 0===o||o.unsubscribe(e):null===(r=this.subjectSubscribers)||void 0===r||r.unsubscribe(e)}}const w=Object.freeze({unknown:void 0,coupled:1}),B=c.getById(r.observable,()=>{const e=k.enqueue,t=/(:|&&|\|\||if|\?\.)/,o=new WeakMap;let r=void 0,n=e=>{throw c.error(1101)};function s(e){var t;let r=null!==(t=e.$fastController)&&void 0!==t?t:o.get(e);return void 0===r&&(Array.isArray(e)?r=n(e):o.set(e,r=new $(e))),r}const l=u();class d{constructor(e){this.name=e,this.field="_"+e,this.callback=e+"Changed"}getValue(e){return void 0!==r&&r.watch(e,this.name),e[this.field]}setValue(e,t){const o=this.field,r=e[o];if(r!==t){e[o]=t;const a=e[this.callback];i(a)&&a.call(e,r,t),s(e).notify(this.name)}}}class h extends x{constructor(e,t,o=!1){super(e,t),this.expression=e,this.isVolatileBinding=o,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(e){this.isAsync=this.needsQueue=e}bind(e){this.controller=e;const t=this.observe(e.source,e.context);return!e.isBound&&this.requiresUnbind(e)&&e.onUnbind(this),t}requiresUnbind(e){return e.sourceLifetime!==w.coupled||this.first!==this.last||this.first.propertySource!==e.source}unbind(e){this.dispose()}observe(e,t){this.needsRefresh&&null!==this.last&&this.dispose();const o=r;let i;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;try{i=this.expression(e,t)}finally{r=o}return i}disconnect(){this.dispose()}dispose(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(e,t){const o=this.last,i=s(e),a=null===o?this.first:{};if(a.propertySource=e,a.propertyName=t,a.notifier=i,i.subscribe(this,t),null!==o){if(!this.needsRefresh){let t;r=void 0,t=o.propertySource[o.propertyName],r=this,e===t&&(this.needsRefresh=!0)}o.next=a}this.last=a}handleChange(){this.needsQueue?(this.needsQueue=!1,e(this)):this.isAsync||this.call()}call(){null!==this.last&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let e=this.first;for(;void 0!==e;)yield e,e=e.next}}return p(h),Object.freeze({setArrayObserverFactory(e){n=e},getNotifier:s,track(e,t){r&&r.watch(e,t)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(e,t){s(e).notify(t)},defineProperty(e,t){a(t)&&(t=new d(t)),l(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get(){return t.getValue(this)},set(e){t.setValue(this,e)}})},getAccessors:l,binding(e,t,o=this.isVolatileBinding(e)){return new h(e,t,o)},isVolatileBinding:e=>t.test(e.toString())})});function C(e,t){B.defineProperty(e,t)}const S=c.getById(r.contextEvent,()=>{let e=null;return{get:()=>e,set(t){e=t}}}),P=Object.freeze({default:{index:0,length:0,get event(){return P.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent:()=>S.get(),setEvent(e){S.set(e)}});class T{constructor(e,t,o=!1){this.evaluate=e,this.policy=t,this.isVolatile=o}}class I extends T{createObserver(e){return B.binding(this.evaluate,e,this.isVolatile)}}function F(e,t,o=B.isVolatileBinding(e)){return new I(e,t,o)}class A extends T{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}function z(e,t){return new A(e,t)}let N;p(A);class L{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(e=>e instanceof L?e.behaviors:null).reduce((e,t)=>null===t?e:null===e?t:e.concat(t),null)}get strategy(){return null===this._strategy&&this.withStrategy(N),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(function e(t){return t.map(t=>t instanceof L?e(t.styles):[t]).reduce((e,t)=>e.concat(t),[])}(this.styles)),this}static setDefaultStrategy(e){N=e}static normalize(e){return void 0===e?void 0:Array.isArray(e)?new L(e):e instanceof L?e:new L([e])}}L.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const O=h(),D=Object.freeze({getForInstance:O.getForInstance,getByType:O.getByType,define:e=>(O.register({type:e}),e)});function E(e,t,o){t.source.style.setProperty(e.targetAspect,o.bind(t))}class R{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const o=e.source;if(!o.$cssBindings){o.$cssBindings=new Map;const e=o.setAttribute;o.setAttribute=(t,r)=>{e.call(o,t,r),"style"===t&&o.$cssBindings.forEach((e,t)=>E(t,e.controller,e.observer))}}const r=null!==(t=e[this.targetAspect])&&void 0!==t?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){E(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){E(this,t.controller,t)}}D.define(R);const M=""+Math.random().toString(36).substring(2,8);let H=0;const V=()=>`--v${M}${++H}`;function j(e,t){const o=[];let r="";const a=[],n=e=>{a.push(e)};for(let a=0,s=e.length-1;a<s;++a){r+=e[a];let s=t[a];i(s)?s=new R(F(s),V()).createCSS(n):s instanceof T?s=new R(s,V()).createCSS(n):void 0!==D.getForInstance(s)&&(s=s.createCSS(n)),s instanceof L||s instanceof CSSStyleSheet?(""!==r.trim()&&(o.push(r),r=""),o.push(s)):r+=s}return r+=e[e.length-1],""!==r.trim()&&o.push(r),{styles:o,behaviors:a}}const _=(e,...t)=>{const{styles:o,behaviors:r}=j(e,t),i=new L(o);return r.length?i.withBehaviors(...r):i};class G{constructor(e,t){this.behaviors=t,this.css="";const o=e.reduce((e,t)=>(a(t)?this.css+=t:e.push(t),e),[]);o.length&&(this.styles=new L(o))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}D.define(G),_.partial=(e,...t)=>{const{styles:o,behaviors:r}=j(e,t);return new G(o,r)};const q="fast-"+Math.random().toString(36).substring(2,8),X=q+"{",W="}"+q,U=W.length;let Y=0;const K=()=>`${q}-${++Y}`,Q=Object.freeze({interpolation:e=>`${X}${e}${W}`,attribute:e=>`${K()}="${X}${e}${W}"`,comment:e=>`\x3c!--${X}${e}${W}--\x3e`}),Z=Object.freeze({parse(e,t){const o=e.split(X);if(1===o.length)return null;const r=[];for(let e=0,i=o.length;e<i;++e){const i=o[e],a=i.indexOf(W);let n;if(-1===a)n=i;else{const e=i.substring(0,a);r.push(t[e]),n=i.substring(a+U)}""!==n&&r.push(n)}return r}}),J=h(),ee=Object.freeze({getForInstance:J.getForInstance,getByType:J.getByType,define:(e,t)=>((t=t||{}).type=e,J.register(t),e),assignAspect(e,t){if(t)switch(e.sourceAspect=t,t[0]){case":":e.targetAspect=t.substring(1),e.aspectType="classList"===e.targetAspect?g.tokenList:g.property;break;case"?":e.targetAspect=t.substring(1),e.aspectType=g.booleanAttribute;break;case"@":e.targetAspect=t.substring(1),e.aspectType=g.event;break;default:e.targetAspect=t,e.aspectType=g.attribute}else e.aspectType=g.content}});class te{constructor(e){this.options=e}createHTML(e){return Q.attribute(e(this))}createBehavior(){return this}}p(te);const oe={[g.attribute]:y.setAttribute,[g.booleanAttribute]:y.setBooleanAttribute,[g.property]:(e,t,o)=>e[t]=o,[g.content]:function(e,t,o,r){if(null==o&&(o=""),o.create){e.textContent="";let t=e.$fastView;void 0===t?t=o.create():e.$fastTemplate!==o&&(t.isComposed&&(t.remove(),t.unbind()),t=o.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(r.source,r.context)):(t.isComposed=!0,t.bind(r.source,r.context),t.insertBefore(e),e.$fastView=t,e.$fastTemplate=o)}else{const t=e.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),e.textContent=o}},[g.tokenList]:function(e,t,o){var r;const i=this.id+"-t",a=null!==(r=e[i])&&void 0!==r?r:e[i]={v:0,cv:Object.create(null)},n=a.cv;let s=a.v;const l=e[t];if(null!=o&&o.length){const e=o.split(/\s+/);for(let t=0,o=e.length;t<o;++t){const o=e[t];""!==o&&(n[o]=s,l.add(o))}}if(a.v=s+1,0!==s){s-=1;for(const e in n)n[e]===s&&l.remove(e)}},[g.event]:()=>{}};class re{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=g.content}createHTML(e){return Q.interpolation(e(this))}createBehavior(){var e;if(null===this.updateTarget){const t=oe[this.aspectType],o=null!==(e=this.dataBinding.policy)&&void 0!==e?e:this.policy;if(!t)throw c.error(1205);this.data=this.id+"-d",this.updateTarget=o.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const o=e.targets[this.targetNodeId];switch(this.aspectType){case g.event:o[this.data]=e,o.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case g.content:e.onUnbind(this);default:const r=null!==(t=o[this.data])&&void 0!==t?t:o[this.data]=this.dataBinding.createObserver(this,this);r.target=o,r.controller=e,this.updateTarget(o,this.targetAspect,r.bind(e),e)}}unbind(e){const t=e.targets[this.targetNodeId].$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){P.setEvent(e);const o=this.dataBinding.evaluate(t.source,t.context);P.setEvent(null),!0!==o&&e.preventDefault()}}handleChange(e,t){const o=t.target,r=t.controller;this.updateTarget(o,this.targetAspect,t.bind(r),r)}}function ie(e,t){const o=e.parentNode;let r,i=e;for(;i!==t;)r=i.nextSibling,o.removeChild(i),i=r;o.removeChild(t)}ee.define(re,{aspected:!0});class ae{constructor(e,t,o){this.fragment=e,this.factories=t,this.targets=o,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=w.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=e.firstChild,this.lastChild=e.lastChild}get event(){return P.getEvent()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const o=e.parentNode;let r,i=this.firstChild;for(;i!==t;)r=i.nextSibling,o.insertBefore(i,e),i=r;o.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let o,r=this.firstChild;for(;r!==t;)o=r.nextSibling,e.appendChild(r),r=o;e.appendChild(t)}dispose(){ie(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let o=this.behaviors;if(null===o){this.source=e,this.context=t,this.behaviors=o=new Array(this.factories.length);const r=this.factories;for(let e=0,t=r.length;e<t;++e){const t=r[e].createBehavior();t.bind(this),o[e]=t}}else{null!==this.source&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=o.length;e<t;++e)o[e].bind(this)}this.isBound=!0}unbind(){this.isBound&&null!==this.source&&(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,o=e.length;t<o;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(0!==e.length){ie(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,o=e.length;t<o;++t)e[t].unbind()}}}p(ae),B.defineProperty(ae.prototype,"index"),B.defineProperty(ae.prototype,"length");const ne=(e,t)=>`${e}.${t}`,se={},le={index:0,node:null};function ce(e){e.startsWith("fast-")||c.warn(1204,{name:e})}const de=new Proxy(document.createElement("div"),{get(e,t){ce(t);const o=Reflect.get(e,t);return i(o)?o.bind(e):o},set:(e,t,o)=>(ce(t),Reflect.set(e,t,o))});class he{constructor(e,t,o){this.fragment=e,this.directives=t,this.policy=o,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,o,r,i){var a,n;this.nodeIds.has(o)||(this.nodeIds.add(o),this.addTargetDescriptor(t,o,r)),e.id=null!==(a=e.id)&&void 0!==a?a:K(),e.targetNodeId=o,e.targetTagName=i,e.policy=null!==(n=e.policy)&&void 0!==n?n:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,o){const r=this.descriptors;if("r"===t||"h"===t||r[t])return;if(!r[e]){const t=e.lastIndexOf("."),o=e.substring(0,t),r=parseInt(e.substring(t+1));this.addTargetDescriptor(o,e,r)}let i=se[t];if(!i){const r="_"+t;se[t]=i={get(){var t;return null!==(t=this[r])&&void 0!==t?t:this[r]=this[e].childNodes[o]}}}r[t]=i}createView(e){const t=this.fragment.cloneNode(!0),o=Object.create(this.proto);o.r=t,o.h=null!=e?e:de;for(const e of this.nodeIds)o[e];return new ae(t,this.factories,o)}}function ue(e,t,o,r,i,a=!1){const n=o.attributes,s=e.directives;for(let l=0,c=n.length;l<c;++l){const d=n[l],h=d.value,u=Z.parse(h,s);let p=null;null===u?a&&(p=new re(z(()=>h,e.policy)),ee.assignAspect(p,d.name)):p=be.aggregate(u,e.policy),null!==p&&(o.removeAttributeNode(d),l--,c--,e.addFactory(p,t,r,i,o.tagName))}}function pe(e,t,o){let r=0,i=t.firstChild;for(;i;){const t=ge(e,o,i,r);i=t.node,r=t.index}}function ge(e,t,o,r){const i=ne(t,r);switch(o.nodeType){case 1:ue(e,t,o,i,r),pe(e,o,i);break;case 3:return function(e,t,o,r,i){const n=Z.parse(t.textContent,e.directives);if(null===n)return le.node=t.nextSibling,le.index=i+1,le;let s,l=s=t;for(let t=0,c=n.length;t<c;++t){const c=n[t];0!==t&&(i++,r=ne(o,i),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),a(c)?s.textContent=c:(s.textContent=" ",ee.assignAspect(c),e.addFactory(c,o,r,i,null)),l=s}return le.index=i+1,le.node=l.nextSibling,le}(e,o,t,i,r);case 8:const n=Z.parse(o.data,e.directives);null!==n&&e.addFactory(be.aggregate(n),t,i,r,null)}return le.index=r+1,le.node=o.nextSibling,le}const be={compile(e,t,o=y.policy){let r;if(a(e)){r=document.createElement("TEMPLATE"),r.innerHTML=o.createHTML(e);const t=r.content.firstElementChild;null!==t&&"TEMPLATE"===t.tagName&&(r=t)}else r=e;r.content.firstChild||r.content.lastChild||r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),n=new he(i,t,o);var s,l;return ue(n,"",r,"h",0,!0),s=i.firstChild,l=t,(s&&8==s.nodeType&&null!==Z.parse(s.data,l)||1===i.childNodes.length&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),pe(n,i,"r"),le.node=null,n.freeze()},setDefaultStrategy(e){this.compile=e},aggregate(e,t=y.policy){if(1===e.length)return e[0];let o,r,i=!1,n=void 0;const s=e.length,l=e.map(e=>a(e)?()=>e:(o=e.sourceAspect||o,r=e.dataBinding||r,i=i||e.dataBinding.isVolatile,n=n||e.dataBinding.policy,e.dataBinding.evaluate));r.evaluate=(e,t)=>{let o="";for(let r=0;r<s;++r)o+=l[r](e,t);return o},r.isVolatile=i,r.policy=null!=n?n:t;const c=new re(r);return ee.assignAspect(c,o),c}},fe=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,me=Object.create(null);class ve{constructor(e,t=me){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const o in t)e(t[o]);return this.html}}function ye(e,t,o,r=ee.getForInstance(e)){if(r.aspected){const o=fe.exec(t);null!==o&&ee.assignAspect(e,o[2])}return e.createHTML(o)}ve.empty=new ve(""),ee.define(ve);class ke{constructor(e,t={},o){this.policy=o,this.result=null,this.html=e,this.factories=t}create(e){return null===this.result&&(this.result=be.compile(this.html,this.factories,this.policy)),this.result.createView(e)}inline(){return new ve(a(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw c.error(1208);if(this.policy)throw c.error(1207);return this.policy=e,this}render(e,t,o){const r=this.create(o);return r.bind(e),r.appendTo(t),r}static create(e,t,o){let r="";const a=Object.create(null),n=e=>{var t;const o=null!==(t=e.id)&&void 0!==t?t:e.id=K();return a[o]=e,o};for(let o=0,a=e.length-1;o<a;++o){const a=e[o];let s,l=t[o];if(r+=a,i(l))l=new re(F(l));else if(l instanceof T)l=new re(l);else if(!(s=ee.getForInstance(l))){const e=l;l=new re(z(()=>e))}r+=ye(l,a,n,s)}return new ke(r+e[e.length-1],a,o)}}p(ke);const xe=(e,...t)=>{if(Array.isArray(e)&&Array.isArray(e.raw))return ke.create(e,t);throw c.error(1206)};xe.partial=e=>new ve(e);class $e extends te{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}ee.define($e);const we=e=>new $e(e),Be=()=>null;function Ce(e){return void 0===e?Be:i(e)?e:()=>e}function Se(e,t,o){const r=i(e)?e:()=>e,a=Ce(t),n=Ce(o);return(e,t)=>r(e,t)?a(e,t):n(e,t)}const Pe=e=>1===e.nodeType,Te=e=>e?t=>1===t.nodeType&&t.matches(e):Pe;class Ie extends te{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=e+"-c"}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,d),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}class Fe extends Ie{observe(e){e.addEventListener("slotchange",this)}disconnect(e){e.removeEventListener("slotchange",this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}function Ae(e){return a(e)&&(e={property:e}),new Fe(e)}ee.define(Fe);const ze=Object.freeze({locate:u()}),Ne={toView:e=>e?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e};function Le(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}const Oe={toView(e){const t=Le(e);return t?t.toString():t},fromView:Le};class De{constructor(e,t,o=t.toLowerCase(),r="reflect",i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=o,this.mode=r,this.converter=i,this.fieldName="_"+t,this.callbackName=t+"Changed",this.hasCallback=this.callbackName in e.prototype,"boolean"===r&&void 0===i&&(this.converter=Ne)}setValue(e,t){const o=e[this.fieldName],r=this.converter;void 0!==r&&(t=r.fromView(t)),o!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](o,t),e.$fastController.notify(this.name))}getValue(e){return B.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,o=this.guards;o.has(e)||"fromView"===t||k.enqueue(()=>{o.add(e);const r=e[this.fieldName];switch(t){case"reflect":const t=this.converter;y.setAttribute(e,this.attribute,void 0!==t?t.toView(r):r);break;case"boolean":y.setBooleanAttribute(e,this.attribute,r)}o.delete(e)})}static collect(e,...t){const o=[];t.push(ze.locate(e));for(let r=0,i=t.length;r<i;++r){const i=t[r];if(void 0!==i)for(let t=0,r=i.length;t<r;++t){const r=i[t];a(r)?o.push(new De(e,r)):o.push(new De(e,r.property,r.attribute,r.mode,r.converter))}}return o}}function Ee(e,t){let o;function r(e,t){arguments.length>1&&(o.property=t),ze.locate(e.constructor).push(o)}return arguments.length>1?(o={},void r(e,t)):(o=void 0===e?{}:e,r)}const Re={mode:"open"},Me={},He=new Set,Ve=c.getById(r.elementRegistry,()=>h());class je{constructor(e,t=e.definition){var o;this.platformDefined=!1,a(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=null!==(o=t.registry)&&void 0!==o?o:customElements;const r=e.prototype,i=De.collect(e,t.attributes),n=new Array(i.length),s={},l={};for(let e=0,t=i.length;e<t;++e){const t=i[e];n[e]=t.attribute,s[t.name]=t,l[t.attribute]=t,B.defineProperty(r,t)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=i,this.propertyLookup=s,this.attributeLookup=l,this.shadowOptions=void 0===t.shadowOptions?Re:null===t.shadowOptions?void 0:Object.assign(Object.assign({},Re),t.shadowOptions),this.elementOptions=void 0===t.elementOptions?Me:Object.assign(Object.assign({},Me),t.elementOptions),this.styles=L.normalize(t.styles),Ve.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return He.has(e)||Ve.getByType(e)?new je(class extends e{},t):new je(e,t)}static registerBaseType(e){He.add(e)}}je.getByType=Ve.getByType,je.getForInstance=Ve.getForInstance;const _e={bubbles:!0,composed:!0,cancelable:!0},Ge=new WeakMap;function qe(e){var t,o;return null!==(o=null!==(t=e.shadowRoot)&&void 0!==t?t:Ge.get(e))&&void 0!==o?o:null}let Xe;class We extends ${constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const o=t.shadowOptions;if(void 0!==o){let t=e.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=e.attachShadow(o),"closed"===o.mode&&Ge.set(e,t))}const r=B.getAccessors(e);if(r.length>0){const t=this.boundObservables=Object.create(null);for(let o=0,i=r.length;o<i;++o){const i=r[o].name,a=e[i];void 0!==a&&(delete e[i],t[i]=a)}}}get isConnected(){return B.track(this,"isConnected"),1===this.stage}get context(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.context)&&void 0!==t?t:P.default}get isBound(){var e,t;return null!==(t=null===(e=this.view)||void 0===e?void 0:e.isBound)&&void 0!==t&&t}get sourceLifetime(){var e;return null===(e=this.view)||void 0===e?void 0:e.sourceLifetime}get template(){var e;if(null===this._template){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=null!==(e=t.template)&&void 0!==e?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(null===this._mainStyles){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=null!==(e=t.styles)&&void 0!==e?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(null!==this._mainStyles&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;null===(t=this.view)||void 0===t||t.onUnbind(e)}addBehavior(e){var t,o;const r=null!==(t=this.behaviors)&&void 0!==t?t:this.behaviors=new Map,i=null!==(o=r.get(e))&&void 0!==o?o:0;0===i?(r.set(e,1),e.addedCallback&&e.addedCallback(this),!e.connectedCallback||this.guardBehaviorConnection||1!==this.stage&&0!==this.stage||e.connectedCallback(this)):r.set(e,i+1)}removeBehavior(e,t=!1){const o=this.behaviors;if(null===o)return;const r=o.get(e);void 0!==r&&(1===r||t?(o.delete(e),e.disconnectedCallback&&3!==this.stage&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):o.set(e,r-1))}addStyles(e){var t;if(!e)return;const o=this.source;if(e instanceof HTMLElement){(null!==(t=qe(o))&&void 0!==t?t:this.source).append(e)}else if(!e.isAttachedTo(o)){const t=e.behaviors;if(e.addStylesTo(o),null!==t)for(let e=0,o=t.length;e<o;++e)this.addBehavior(t[e])}}removeStyles(e){var t;if(!e)return;const o=this.source;if(e instanceof HTMLElement){(null!==(t=qe(o))&&void 0!==t?t:o).removeChild(e)}else if(e.isAttachedTo(o)){const t=e.behaviors;if(e.removeStylesFrom(o),null!==t)for(let e=0,o=t.length;e<o;++e)this.removeBehavior(t[e])}}connect(){if(3!==this.stage)return;if(this.stage=0,null!==this.boundObservables){const e=this.source,t=this.boundObservables,o=Object.keys(t);for(let r=0,i=o.length;r<i;++r){const i=o[r];e[i]=t[i]}this.boundObservables=null}const e=this.behaviors;if(null!==e){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):null!==this.view&&this.view.bind(this.source),this.stage=1,B.notify(this,"isConnected")}disconnect(){if(1!==this.stage)return;this.stage=2,B.notify(this,"isConnected"),null!==this.view&&this.view.unbind();const e=this.behaviors;if(null!==e)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(e,t,o){const r=this.definition.attributeLookup[e];void 0!==r&&r.onAttributeChangedCallback(this.source,o)}emit(e,t,o){return 1===this.stage&&this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},_e),o)))}renderTemplate(e){var t;const o=this.source,r=null!==(t=qe(o))&&void 0!==t?t:o;if(null!==this.view)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let e=r.firstChild;null!==e;e=r.firstChild)r.removeChild(e)}e&&(this.view=e.render(o,r,o),this.view.sourceLifetime=w.coupled)}static forCustomElement(e){const t=e.$fastController;if(void 0!==t)return t;const o=je.getForInstance(e);if(void 0===o)throw c.error(1401);return e.$fastController=new Xe(e,o)}static setStrategy(e){Xe=e}}function Ue(e){var t;return"adoptedStyleSheets"in e?e:null!==(t=qe(e))&&void 0!==t?t:e.getRootNode()}p(We),We.setStrategy(We);class Ye{constructor(e){const t=Ye.styleSheetCache;this.sheets=e.map(e=>{if(e instanceof CSSStyleSheet)return e;let o=t.get(e);return void 0===o&&(o=new CSSStyleSheet,o.replaceSync(e),t.set(e,o)),o})}addStylesTo(e){Je(Ue(e),this.sheets)}removeStylesFrom(e){et(Ue(e),this.sheets)}}Ye.styleSheetCache=new Map;let Ke=0;function Qe(e){return e===document?document.body:e}class Ze{constructor(e){this.styles=e,this.styleClass="fast-"+ ++Ke}addStylesTo(e){e=Qe(Ue(e));const t=this.styles,o=this.styleClass;for(let r=0;r<t.length;r++){const i=document.createElement("style");i.innerHTML=t[r],i.className=o,e.append(i)}}removeStylesFrom(e){const t=(e=Qe(Ue(e))).querySelectorAll("."+this.styleClass);for(let o=0,r=t.length;o<r;++o)e.removeChild(t[o])}}let Je=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},et=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>-1===t.indexOf(e))};if(L.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Je=(e,t)=>{e.adoptedStyleSheets.push(...t)},et=(e,t)=>{for(const o of t){const t=e.adoptedStyleSheets.indexOf(o);-1!==t&&e.adoptedStyleSheets.splice(t,1)}}}catch(Kh){}L.setDefaultStrategy(Ye)}else L.setDefaultStrategy(Ze);function tt(e){const t=class extends e{constructor(){super(),We.forCustomElement(this)}$emit(e,t,o){return this.$fastController.emit(e,t,o)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,t,o){this.$fastController.onAttributeChangedCallback(e,t,o)}};return je.registerBaseType(t),t}const ot=Object.assign(tt(HTMLElement),{from:function(e){return tt(e)},define:function(e,t){return i(e)?je.compose(e,t).define().type:je.compose(this,e).define().type},compose:function(e,t){return i(e)?je.compose(e,t):je.compose(this,e)}}),rt={horizontal:"horizontal",vertical:"vertical"};function it(...e){return e.every(e=>e instanceof HTMLElement)}const at={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var nt;function st(e,t,o){return Math.min(Math.max(o,e),t)}!function(e){e.ltr="ltr",e.rtl="rtl"}(nt||(nt={}));let lt=0;function ct(e=""){return`${e}${lt++}`}class dt{}function ht(e){return e?"string"==typeof e?new ve(e):"inline"in e?e.inline():e:ve.empty}e([Ee({attribute:"aria-atomic"})],dt.prototype,"ariaAtomic",void 0),e([Ee({attribute:"aria-busy"})],dt.prototype,"ariaBusy",void 0),e([Ee({attribute:"aria-controls"})],dt.prototype,"ariaControls",void 0),e([Ee({attribute:"aria-current"})],dt.prototype,"ariaCurrent",void 0),e([Ee({attribute:"aria-describedby"})],dt.prototype,"ariaDescribedby",void 0),e([Ee({attribute:"aria-details"})],dt.prototype,"ariaDetails",void 0),e([Ee({attribute:"aria-disabled"})],dt.prototype,"ariaDisabled",void 0),e([Ee({attribute:"aria-errormessage"})],dt.prototype,"ariaErrormessage",void 0),e([Ee({attribute:"aria-flowto"})],dt.prototype,"ariaFlowto",void 0),e([Ee({attribute:"aria-haspopup"})],dt.prototype,"ariaHaspopup",void 0),e([Ee({attribute:"aria-hidden"})],dt.prototype,"ariaHidden",void 0),e([Ee({attribute:"aria-invalid"})],dt.prototype,"ariaInvalid",void 0),e([Ee({attribute:"aria-keyshortcuts"})],dt.prototype,"ariaKeyshortcuts",void 0),e([Ee({attribute:"aria-label"})],dt.prototype,"ariaLabel",void 0),e([Ee({attribute:"aria-labelledby"})],dt.prototype,"ariaLabelledby",void 0),e([Ee({attribute:"aria-live"})],dt.prototype,"ariaLive",void 0),e([Ee({attribute:"aria-owns"})],dt.prototype,"ariaOwns",void 0),e([Ee({attribute:"aria-relevant"})],dt.prototype,"ariaRelevant",void 0),e([Ee({attribute:"aria-roledescription"})],dt.prototype,"ariaRoledescription",void 0);class ut{}function pt(e){return xe`<slot name="end" ${we("end")}>${ht(e.end)}</slot>`.inline()}function gt(e){return xe`<slot name="start" ${we("start")}>${ht(e.start)}</slot>`.inline()}function bt(e,...t){const o=ze.locate(e);t.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(o=>{"constructor"!==o&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(t.prototype,o))});ze.locate(t).forEach(e=>o.push(e))})}class ft extends ot{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=ct("accordion-"),this.clickHandler=e=>{this.disabled||this.$emit("click",e)}}}e([Ee({attribute:"heading-level",mode:"fromView",converter:Oe})],ft.prototype,"headinglevel",void 0),e([Ee({mode:"boolean"})],ft.prototype,"expanded",void 0),e([Ee({mode:"boolean"})],ft.prototype,"disabled",void 0),e([Ee],ft.prototype,"id",void 0),bt(ft,ut);const mt="single",vt="multi";class yt extends ot{constructor(){super(...arguments),this.expandmode=vt,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(0===this.slottedAccordionItems.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(e=>B.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=e.filter(e=>!e.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((e,t)=>{e instanceof ft&&(e.addEventListener("click",this.activeItemChange),B.getNotifier(e).subscribe(this,"expanded"));const o=this.accordionIds[t];e.setAttribute("id","string"!=typeof o?"accordion-"+(t+1):o),this.activeid=this.accordionIds[this.activeItemIndex],e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=e=>{e.forEach((e,t)=>{B.getNotifier(e).unsubscribe(this,"disabled"),B.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{e.defaultPrevented||e.target!==e.currentTarget||(e.preventDefault(),this.handleExpandedChange(e.target))},this.handleExpandedChange=e=>{e instanceof ft&&(this.activeid=e.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(e):(e.expanded=!e.expanded,this.activeItemIndex=this.accordionItems.indexOf(e)),this.change())},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case"ArrowUp":e.preventDefault(),this.adjust(-1);break;case"ArrowDown":e.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target,o=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==o&&-1!==o&&(this.activeItemIndex=o,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const o=this.findExpandedItem();o&&(t!==mt?null==o||o.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(o))}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){"disabled"===t?this.setItems():"expanded"===t&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){var e;return 0===this.accordionItems.length?null:null!==(e=this.accordionItems.find(e=>e instanceof ft&&e.expanded))&&void 0!==e?e:this.accordionItems[0]}setSingleExpandMode(e){if(0===this.accordionItems.length)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((e,t)=>{this.activeItemIndex===t?(e.expanded=!0,e.expandbutton.setAttribute("aria-disabled","true")):(e.expanded=!1,e.hasAttribute("disabled")||e.expandbutton.removeAttribute("aria-disabled"))})}getItemIds(){return this.slottedAccordionItems.map(e=>e.id)}isSingleExpandMode(){return this.expandmode===mt}adjust(e){var t,o,r;this.activeItemIndex=(t=0,o=this.accordionItems.length-1,(r=this.activeItemIndex+e)<t?o:r>o?t:r),this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];e instanceof ft&&e.expandbutton.focus()}}e([Ee({attribute:"expand-mode"})],yt.prototype,"expandmode",void 0),e([C],yt.prototype,"slottedAccordionItems",void 0);class kt extends yt{}const xt=xe`<template><slot ${Ae({property:"slottedAccordionItems",filter:Te()})}></slot></template>`,$t=e=>{var t;return"rtl"===(null===(t=e.closest("[dir]"))||void 0===t?void 0:t.dir)?nt.rtl:nt.ltr};class wt extends class{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let o=this.listenerCache.get(e);o||(o=this.constructListener(e),this.listenerCache.set(e,o)),o.bind(t)(),t.addEventListener("change",o)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new wt(e,t)}constructListener(e){let t=!1;const o=this.styles;return function(){const{matches:r}=this;r&&!t?(e.addStyles(o),t=r):!r&&t&&(e.removeStyles(o),t=r)}}removedCallback(e){e.removeStyles(this.styles)}}const Bt=wt.with(window.matchMedia("(forced-colors)"));wt.with(window.matchMedia("(prefers-color-scheme: dark)")),wt.with(window.matchMedia("(prefers-color-scheme: light)"));function Ct(e){return`:host([hidden]){display:none}:host{display:${e}}`}const St=e=>{var t;return e.nodeType!==Node.TEXT_NODE||!!(null===(t=e.nodeValue)||void 0===t?void 0:t.trim().length)},Pt=_`
|
|
2
|
-
${
|
|
3
|
-
|
|
4
|
-
:host{flex-direction:column;width:100%;contain:content}`,Tt=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements}),It=kt.compose({name:Tt.prefix+"-accordion",template:xt,styles:Pt});var Ft=Object.defineProperty,At=Object.getOwnPropertyDescriptor,zt=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?At(t,o):t,n=e.length-1;n>=0;n--)(i=e[n])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Ft(t,o,a),a};class Nt extends ft{constructor(){super(...arguments),this.block=!1}}zt([Ee],Nt.prototype,"size",2),zt([Ee({mode:"boolean"})],Nt.prototype,"block",2),zt([Ee({attribute:"expand-icon-position"})],Nt.prototype,"expandIconPosition",2);const Lt={small:"small",medium:"medium",large:"large",extraLarge:"extra-large"},Ot={start:"start",end:"end"};function Dt(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}Object.freeze({create(e){const t=[],o={};let r=null,i=!1;return{source:e,context:P.default,targets:o,get isBound(){return i},addBehaviorFactory(e,t){var o,r,i,a;const n=e;n.id=null!==(o=n.id)&&void 0!==o?o:K(),n.targetNodeId=null!==(r=n.targetNodeId)&&void 0!==r?r:K(),n.targetTagName=null!==(i=t.tagName)&&void 0!==i?i:null,n.policy=null!==(a=n.policy)&&void 0!==a?a:y.policy,this.addTarget(n.targetNodeId,t),this.addBehavior(n.createBehavior())},addTarget(e,t){o[e]=t},addBehavior(e){t.push(e),i&&e.bind(this)},onUnbind(e){null===r&&(r=[]),r.push(e)},connectedCallback(e){i||(i=!0,t.forEach(e=>e.bind(this)))},disconnectedCallback(e){i&&(i=!1,null!==r&&r.forEach(e=>e.unbind(this)))}}}});class Et{constructor(e){this.value=e,this.notifier=B.getNotifier(this),this.dependencies=new Set,this.binding=B.binding(e,this),this.binding.setMode(!1)}static getOrCreate(e){let t=Et.cache.get(e);return t||(t=new Et(e),Et.cache.set(e,t),t)}evaluate(e,t){return this.binding.observe(o=>{if(this.dependencies.add(o),t===o){if(e.parent)return e.parent.getTokenValue(o);throw new Error("DesignTokenNode has encountered a circular token reference. Avoid this by setting the token value for an ancestor node.")}return e.getTokenValue(o)})}handleChange(){this.notifier.notify(void 0)}}Et.cache=new WeakMap;class Rt{constructor(e,t,o,r){this.token=e,this.evaluator=t,this.node=o,this.subscriber=r,this.value=t.evaluate(o,e),this.subscriber&&B.getNotifier(this.evaluator).subscribe(this.subscriber)}dispose(){this.subscriber&&B.getNotifier(this.evaluator).unsubscribe(this.subscriber)}update(){return this.value=this.evaluator.evaluate(this.node,this.token),this}}class Mt{constructor(e,t,o,r){this.target=e,this.type=t,this.token=o,this.value=r}notify(){B.getNotifier(this.token).notify(this)}}class Ht{constructor(){this._parent=null,this._children=new Set,this._values=new Map,this._derived=new Map,this.dependencyGraph=new Map}static isDerivedTokenValue(e){return"function"==typeof e}static isDerivedFor(e,t){return e._derived.has(t)}static collectDerivedContext(e){const t=new Map;if(null===e.parent)return t;let o=Ht.getAssignedTokensForNode(e),r=e.parent;do{const e=Ht.getAssignedTokensForNode(r);for(let i=0,a=e.length;i<a;i++){const a=e[i];!o.includes(a)&&Ht.isDerivedFor(r,a)&&t.set(a,r._derived.get(a))}o=Array.from(new Set(o.concat(e))),r=r.parent}while(null!==r);return t}static getLocalTokenValue(e,t){return Ht.isAssigned(e,t)?Ht.isDerivedFor(e,t)?e._derived.get(t).value:e._values.get(t):void 0}static getOrCreateDependencyGraph(e,t){let o=e.dependencyGraph.get(t);return o||(o=new Set,e.dependencyGraph.set(t,o),o)}static notify(){const e=this._notifications;this._notifications=[];for(const t of e)t.notify()}static queueNotification(...e){this._notifications.push(...e)}static getAssignedTokensForNode(e){return Array.from(e._values.keys())}static composeAssignedTokensForNode(e){const t=new Set(Ht.getAssignedTokensForNode(e));let o=e.parent;for(;null!==o;){const e=Ht.getAssignedTokensForNode(o);for(const o of e)t.add(o);o=o.parent}return Array.from(t)}static isAssigned(e,t){return e._values.has(t)}get parent(){return this._parent}get children(){return Array.from(this._children)}appendChild(e){var t,o;let r=null;null!==e.parent&&(r=Ht.composeAssignedTokensForNode(e.parent),e.parent._children.delete(e));const i=Ht.composeAssignedTokensForNode(this),a=Ht.collectDerivedContext(this);e._parent=this,this._children.add(e);for(const o of i){let i=0;if(null!==r){const e=r.indexOf(o);-1!==e&&(i=1,r.splice(e,1))}e.dispatch(new Mt(this,i,o,null===(t=a.get(o))||void 0===t?void 0:t.evaluator.value))}if(null!==r&&r.length>0)for(const t of r)e.dispatch(new Mt(this,2,t,null===(o=a.get(t))||void 0===o?void 0:o.evaluator.value));Ht.notify()}removeChild(e){if(e.parent===this){const t=Ht.composeAssignedTokensForNode(this);e._parent=null,this._children.delete(e);for(const o of t)e.dispatch(new Mt(this,2,o));Ht.notify()}}dispose(){this.parent&&(this.parent._children.delete(this),this._parent=null);for(const[,e]of this._derived)e.dispose()}setTokenValue(e,t){const o=Ht.isAssigned(this,e)||Ht.isDerivedFor(this,e)?1:0,r=Ht.getLocalTokenValue(this,e);this._values.set(e,t),Ht.isDerivedFor(this,e)&&this.tearDownDerivedTokenValue(e);const i=Ht.isDerivedTokenValue(t),a=Ht.collectDerivedContext(this);let n;if(i){n=this.setupDerivedTokenValue(e,t,!0).value}else n=t;r!==n&&Ht.queueNotification(new Mt(this,o,e,t)),this.dispatch(new Mt(this,o,e,t)),a.forEach((e,t)=>{if(!Ht.isDerivedFor(this,t)){Ht.getLocalTokenValue(this,t)!==(e=this.setupDerivedTokenValue(t,e.evaluator.value)).value&&Ht.queueNotification(new Mt(this,1,t,e.evaluator.value)),this.dispatch(new Mt(this,0,t,e.evaluator.value))}}),Ht.notify()}getTokenValue(e){let t,o=this;for(;null!==o;){if(Ht.isDerivedFor(o,e)){t=o._derived.get(e).value;break}if(Ht.isAssigned(o,e)){t=o._values.get(e);break}o=o._parent}if(void 0!==t)return t;throw new Error(`No value set for token ${e} in node tree.`)}deleteTokenValue(e){if(Ht.isAssigned(this,e)){const t=Ht.getLocalTokenValue(this,e);let o;this._values.delete(e),this.tearDownDerivedTokenValue(e);try{o=this.getTokenValue(e)}catch(e){o=void 0}Ht.queueNotification(new Mt(this,2,e)),t!==o&&this.dispatch(new Mt(this,2,e)),Ht.notify()}}dispatch(e){var t,o,r;if(this!==e.target){const{token:i}=e,a=Ht.isAssigned(this,i),n=a&&(null===(t=this._derived.get(i))||void 0===t?void 0:t.evaluator.dependencies.has(i));if(a&&!n)return;2===e.type&&!a&&Ht.isDerivedFor(this,i)&&(this.tearDownDerivedTokenValue(i),Ht.queueNotification(new Mt(this,2,i))),n&&(e=new Mt(this,1,i,null===(o=this._derived.get(i))||void 0===o?void 0:o.evaluator.value));const{value:s}=e;if(s&&Ht.isDerivedTokenValue(s)){const t=Et.getOrCreate(s).dependencies;let o=!1;for(const e of t)if(Ht.isAssigned(this,e)){o=!0;break}if(o){const t=null===(r=this._derived.get(i))||void 0===r?void 0:r.value,o=this.setupDerivedTokenValue(i,s);if(t!==o.value){const r=new Mt(this,void 0===t?0:1,i,o.evaluator.value);Ht.queueNotification(r),e=r}}}}this.collectLocalChangeRecords(e).forEach(e=>{Ht.queueNotification(e),this.dispatch(e)}),this.notifyChildren(e)}collectLocalChangeRecords(e){const t=new Map;for(const o of Ht.getOrCreateDependencyGraph(this,e.token))o.value!==o.update().value&&t.set(o.token,new Mt(this,1,o.token,o.evaluator.value));return t}notifyChildren(...e){if(this.children.length)for(let t=0,o=this.children.length;t<o;t++)for(let o=0;o<e.length;o++)this.children[t].dispatch(e[o])}tearDownDerivedTokenValue(e){if(Ht.isDerivedFor(this,e)){const t=this._derived.get(e);t.dispose(),this._derived.delete(e),t.evaluator.dependencies.forEach(e=>{Ht.getOrCreateDependencyGraph(this,e).delete(t)})}}setupDerivedTokenValue(e,t,o=!1){const r=new Rt(e,Et.getOrCreate(t),this,o?{handleChange:()=>{if(r.value!==r.update().value){const e=new Mt(this,1,r.token,r.evaluator.value);Ht.queueNotification(e),this.dispatch(e),Ht.notify()}}}:void 0);return this._derived.set(e,r),r.evaluator.dependencies.forEach(t=>{t!==e&&Ht.getOrCreateDependencyGraph(this,t).add(r)}),r}}Ht._notifications=[];class Vt{setProperty(e,t){k.enqueue(()=>this.target.setProperty(e,t))}removeProperty(e){k.enqueue(()=>this.target.removeProperty(e))}}class jt extends Vt{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class _t extends Vt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class Gt{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),B.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),k.enqueue(()=>{null!==this.target&&this.target.setProperty(e,t)})}removeProperty(e){this.store.delete(e),k.enqueue(()=>{null!==this.target&&this.target.removeProperty(e)})}handleChange(e,t){const{sheet:o}=this.style;if(o){const e=o.insertRule(":host{}",o.cssRules.length);this.target=o.cssRules[e].style}else this.target=null}}e([C],Gt.prototype,"target",void 0);class qt{setProperty(e,t){qt.properties[e]=t;for(const o of qt.roots.values())o.setProperty(e,t)}removeProperty(e){delete qt.properties[e];for(const t of qt.roots.values())t.removeProperty(e)}static registerRoot(e){const{roots:t}=qt;if(!t.has(e)){t.add(e);for(const t in qt.properties)e.setProperty(t,qt.properties[t])}}static unregisterRoot(e){const{roots:t}=qt;if(t.has(e)){t.delete(e);for(const t in qt.properties)e.removeProperty(t)}}}qt.roots=new Set,qt.properties={};const Xt=new WeakMap,Wt=L.supportsAdoptedStyleSheets?class extends Vt{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(new L([t]))}}:Gt,Ut=Object.freeze({getOrCreate(e){if(Xt.has(e))return Xt.get(e);let t;return t=e instanceof Document?L.supportsAdoptedStyleSheets?new jt:new _t:new Wt(e),Xt.set(e,t),t}});class Yt{constructor(e){this.subscriberNotifier={handleChange:(e,t)=>{const o={target:t.target===Jt.defaultNode?"default":t.target.target,token:this};this.subscribers.notify(o)}},this.name=e.name,B.getNotifier(this).subscribe(this.subscriberNotifier)}get $value(){return this.default}get default(){return Jt.defaultNode.getTokenValue(this)}get subscribers(){return this._subscribers||(this._subscribers=new x(this)),this._subscribers}static isCSSDesignTokenConfiguration(e){return"string"==typeof e.cssCustomPropertyName}static create(e){return"string"==typeof e?new Kt({name:e,cssCustomPropertyName:e}):Yt.isCSSDesignTokenConfiguration(e)?new Kt(e):new Yt(e)}static withStrategy(e){Jt.withStrategy(e)}static registerDefaultStyleTarget(e=document){(e instanceof ot||e instanceof Document)&&(e=Ut.getOrCreate(e)),qt.registerRoot(e)}static unregisterDefaultStyleTarget(e=document){(e instanceof ot||e instanceof Document)&&(e=Ut.getOrCreate(e)),qt.unregisterRoot(e)}getValueFor(e){return Jt.getOrCreate(e).getTokenValue(this)}setValueFor(e,t){Jt.getOrCreate(e).setTokenValue(this,this.normalizeValue(t))}deleteValueFor(e){return Jt.getOrCreate(e).deleteTokenValue(this),this}withDefault(e){return Jt.defaultNode.setTokenValue(this,this.normalizeValue(e)),this}subscribe(e){this.subscribers.subscribe(e)}unsubscribe(e){this.subscribers.unsubscribe(e)}alias(e){return t=>t(e)}normalizeValue(e){return e instanceof Yt&&(e=this.alias(e)),e}}let Kt=class extends Yt{constructor(e){super(e),this.cssReflector={handleChange:(e,t)=>{const o=t.target===Jt.defaultNode?Jt.rootStyleSheetTarget:t.target instanceof Jt?Ut.getOrCreate(t.target.target):null;o&&(2===t.type?o.removeProperty(this.cssCustomProperty):o.setProperty(this.cssCustomProperty,this.resolveCSSValue(t.target.getTokenValue(this))))}},this.cssCustomProperty="--"+e.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`,B.getNotifier(this).subscribe(this.cssReflector)}createCSS(){return this.cssVar}createHTML(){return this.cssVar}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}};var Qt;Kt=e([function(e){D.define(e)},function(e){ee.define(e,Qt)}],Kt);const Zt={contains:function(e,t){let o=t;for(;null!==o;){if(o===e)return!0;o=Dt(o)}return!1},parent(e){let t=Dt(e);for(;null!==t;){if(t instanceof ot)return t;t=Dt(t)}return null}};class Jt extends Ht{constructor(e){super(),this.target=e,this.setTokenValue=this.lazyAttachToDefault(super.setTokenValue),this.getTokenValue=this.lazyAttachToDefault(super.getTokenValue),this.deleteTokenValue=this.lazyAttachToDefault(super.deleteTokenValue)}static get strategy(){return void 0===this._strategy&&Jt.withStrategy(Zt),this._strategy}connectedCallback(e){let t=Jt.findParent(e.source);if(null===t&&(t=Jt.defaultNode),t!==this.parent){const o=[];for(const r of t.children)r instanceof Jt&&Jt.strategy.contains(e.source,r.target)&&o.push(r);t.appendChild(this);for(const e of o)this.appendChild(e)}}disconnectedCallback(e){Jt.cache.delete(this.target),this.dispose()}static getOrCreate(e){let t=Jt.cache.get(e);return t||(t=new Jt(e),Jt.cache.set(e,t),e.$fastController.addBehavior(Jt.strategy),e.$fastController.addBehavior(t),t)}static withStrategy(e){this._strategy=e}static findParent(e){let t=Jt.strategy.parent(e);for(;null!==t;){const e=Jt.cache.get(t);if(e)return e;t=Jt.strategy.parent(t)}return null}lazyAttachToDefault(e){return(...t)=>(null===this.parent&&Jt.defaultNode.appendChild(this),e.apply(this,t))}}Jt.defaultNode=new Ht,Jt.rootStyleSheetTarget=new qt,Jt.cache=new WeakMap;const{create:eo}=Yt,to=eo("borderRadiusNone"),oo=eo("borderRadiusSmall"),ro=eo("borderRadiusMedium"),io=eo("borderRadiusLarge"),ao=eo("borderRadiusXLarge"),no=eo("borderRadiusCircular"),so=eo("fontSizeBase100"),lo=eo("fontSizeBase200"),co=eo("fontSizeBase300"),ho=eo("fontSizeBase400"),uo=eo("fontSizeBase500"),po=eo("fontSizeBase600"),go=eo("fontSizeHero700"),bo=eo("fontSizeHero800"),fo=eo("fontSizeHero900"),mo=eo("fontSizeHero1000"),vo=eo("lineHeightBase100"),yo=eo("lineHeightBase200"),ko=eo("lineHeightBase300"),xo=eo("lineHeightBase400"),$o=eo("lineHeightBase500"),wo=eo("lineHeightBase600"),Bo=eo("lineHeightHero700"),Co=eo("lineHeightHero800"),So=eo("lineHeightHero900"),Po=eo("lineHeightHero1000"),To=eo("fontFamilyBase"),Io=eo("fontFamilyMonospace"),Fo=eo("fontFamilyNumeric"),Ao=eo("fontWeightRegular"),zo=eo("fontWeightMedium"),No=eo("fontWeightSemibold"),Lo=eo("fontWeightBold"),Oo=eo("strokeWidthThin"),Do=eo("strokeWidthThick"),Eo=eo("strokeWidthThicker"),Ro=eo("strokeWidthThickest"),Mo=eo("spacingHorizontalNone"),Ho=eo("spacingHorizontalXXS"),Vo=eo("spacingHorizontalXS"),jo=eo("spacingHorizontalSNudge"),_o=eo("spacingHorizontalS"),Go=eo("spacingHorizontalMNudge"),qo=eo("spacingHorizontalM"),Xo=eo("spacingHorizontalL"),Wo=eo("spacingHorizontalXL"),Uo=eo("spacingHorizontalXXL"),Yo=eo("spacingHorizontalXXXL"),Ko=eo("spacingVerticalNone"),Qo=eo("spacingVerticalXXS"),Zo=eo("spacingVerticalXS"),Jo=eo("spacingVerticalSNudge"),er=eo("spacingVerticalS"),tr=eo("spacingVerticalMNudge"),or=eo("spacingVerticalM"),rr=eo("spacingVerticalL"),ir=eo("spacingVerticalXL"),ar=eo("spacingVerticalXXL"),nr=eo("spacingVerticalXXXL"),sr=eo("durationUltraFast"),lr=eo("durationFaster"),cr=eo("durationFast"),dr=eo("durationNormal"),hr=eo("durationSlow"),ur=eo("durationSlower"),pr=eo("durationUltraSlow"),gr=eo("curveAccelerateMax"),br=eo("curveAccelerateMid"),fr=eo("curveAccelerateMin"),mr=eo("curveDecelerateMax"),vr=eo("curveDecelerateMid"),yr=eo("curveDecelerateMin"),kr=eo("curveEasyEaseMax"),xr=eo("curveEasyEase"),$r=eo("curveLinear"),wr=eo("colorNeutralForeground1"),Br=eo("colorNeutralForeground1Hover"),Cr=eo("colorNeutralForeground1Pressed"),Sr=eo("colorNeutralForeground1Selected"),Pr=eo("colorNeutralForeground2"),Tr=eo("colorNeutralForeground2Hover"),Ir=eo("colorNeutralForeground2Pressed"),Fr=eo("colorNeutralForeground2Selected"),Ar=eo("colorNeutralForeground2BrandHover"),zr=eo("colorNeutralForeground2BrandPressed"),Nr=eo("colorNeutralForeground2BrandSelected"),Lr=eo("colorNeutralForeground3"),Or=eo("colorNeutralForeground3Hover"),Dr=eo("colorNeutralForeground3Pressed"),Er=eo("colorNeutralForeground3Selected"),Rr=eo("colorNeutralForeground3BrandHover"),Mr=eo("colorNeutralForeground3BrandPressed"),Hr=eo("colorNeutralForeground3BrandSelected"),Vr=eo("colorNeutralForeground4"),jr=eo("colorNeutralForegroundDisabled"),_r=eo("colorNeutralForegroundInvertedDisabled"),Gr=eo("colorBrandForegroundLink"),qr=eo("colorBrandForegroundLinkHover"),Xr=eo("colorBrandForegroundLinkPressed"),Wr=eo("colorBrandForegroundLinkSelected"),Ur=eo("colorNeutralForeground2Link"),Yr=eo("colorNeutralForeground2LinkHover"),Kr=eo("colorNeutralForeground2LinkPressed"),Qr=eo("colorNeutralForeground2LinkSelected"),Zr=eo("colorCompoundBrandForeground1"),Jr=eo("colorCompoundBrandForeground1Hover"),ei=eo("colorCompoundBrandForeground1Pressed"),ti=eo("colorBrandForeground1"),oi=eo("colorBrandForeground2"),ri=eo("colorNeutralForeground1Static"),ii=eo("colorNeutralForegroundStaticInverted"),ai=eo("colorNeutralForegroundInverted"),ni=eo("colorNeutralForegroundInvertedHover"),si=eo("colorNeutralForegroundInvertedPressed"),li=eo("colorNeutralForegroundInvertedSelected"),ci=eo("colorNeutralForegroundInverted2"),di=eo("colorNeutralForegroundOnBrand"),hi=eo("colorNeutralForegroundInvertedLink"),ui=eo("colorNeutralForegroundInvertedLinkHover"),pi=eo("colorNeutralForegroundInvertedLinkPressed"),gi=eo("colorNeutralForegroundInvertedLinkSelected"),bi=eo("colorBrandForegroundInverted"),fi=eo("colorBrandForegroundInvertedHover"),mi=eo("colorBrandForegroundInvertedPressed"),vi=eo("colorBrandForegroundOnLight"),yi=eo("colorBrandForegroundOnLightHover"),ki=eo("colorBrandForegroundOnLightPressed"),xi=eo("colorBrandForegroundOnLightSelected"),$i=eo("colorNeutralBackground1"),wi=eo("colorNeutralBackground1Hover"),Bi=eo("colorNeutralBackground1Pressed"),Ci=eo("colorNeutralBackground1Selected"),Si=eo("colorNeutralBackground2"),Pi=eo("colorNeutralBackground2Hover"),Ti=eo("colorNeutralBackground2Pressed"),Ii=eo("colorNeutralBackground2Selected"),Fi=eo("colorNeutralBackground3"),Ai=eo("colorNeutralBackground3Hover"),zi=eo("colorNeutralBackground3Pressed"),Ni=eo("colorNeutralBackground3Selected"),Li=eo("colorNeutralBackground4"),Oi=eo("colorNeutralBackground4Hover"),Di=eo("colorNeutralBackground4Pressed"),Ei=eo("colorNeutralBackground4Selected"),Ri=eo("colorNeutralBackground5"),Mi=eo("colorNeutralBackground5Hover"),Hi=eo("colorNeutralBackground5Pressed"),Vi=eo("colorNeutralBackground5Selected"),ji=eo("colorNeutralBackground6"),_i=eo("colorNeutralBackgroundInverted"),Gi=eo("colorNeutralBackgroundStatic"),qi=eo("colorSubtleBackground"),Xi=eo("colorSubtleBackgroundHover"),Wi=eo("colorSubtleBackgroundPressed"),Ui=eo("colorSubtleBackgroundSelected"),Yi=eo("colorSubtleBackgroundLightAlphaHover"),Ki=eo("colorSubtleBackgroundLightAlphaPressed"),Qi=eo("colorSubtleBackgroundLightAlphaSelected"),Zi=eo("colorSubtleBackgroundInverted"),Ji=eo("colorSubtleBackgroundInvertedHover"),ea=eo("colorSubtleBackgroundInvertedPressed"),ta=eo("colorSubtleBackgroundInvertedSelected"),oa=eo("colorTransparentBackground"),ra=eo("colorTransparentBackgroundHover"),ia=eo("colorTransparentBackgroundPressed"),aa=eo("colorTransparentBackgroundSelected"),na=eo("colorNeutralBackgroundDisabled"),sa=eo("colorNeutralBackgroundInvertedDisabled"),la=eo("colorNeutralStencil1"),ca=eo("colorNeutralStencil2"),da=eo("colorNeutralStencil1Alpha"),ha=eo("colorNeutralStencil2Alpha"),ua=eo("colorBackgroundOverlay"),pa=eo("colorScrollbarOverlay"),ga=eo("colorBrandBackground"),ba=eo("colorBrandBackgroundHover"),fa=eo("colorBrandBackgroundPressed"),ma=eo("colorBrandBackgroundSelected"),va=eo("colorCompoundBrandBackground"),ya=eo("colorCompoundBrandBackgroundHover"),ka=eo("colorCompoundBrandBackgroundPressed"),xa=eo("colorBrandBackgroundStatic"),$a=eo("colorBrandBackground2"),wa=eo("colorBrandBackgroundInverted"),Ba=eo("colorBrandBackgroundInvertedHover"),Ca=eo("colorBrandBackgroundInvertedPressed"),Sa=eo("colorBrandBackgroundInvertedSelected"),Pa=eo("colorNeutralStrokeAccessible"),Ta=eo("colorNeutralStrokeAccessibleHover"),Ia=eo("colorNeutralStrokeAccessiblePressed"),Fa=eo("colorNeutralStrokeAccessibleSelected"),Aa=eo("colorNeutralStroke1"),za=eo("colorNeutralStroke1Hover"),Na=eo("colorNeutralStroke1Pressed"),La=eo("colorNeutralStroke1Selected"),Oa=eo("colorNeutralStroke2"),Da=eo("colorNeutralStroke3"),Ea=eo("colorNeutralStrokeOnBrand"),Ra=eo("colorNeutralStrokeOnBrand2"),Ma=eo("colorNeutralStrokeOnBrand2Hover"),Ha=eo("colorNeutralStrokeOnBrand2Pressed"),Va=eo("colorNeutralStrokeOnBrand2Selected"),ja=eo("colorBrandStroke1"),_a=eo("colorBrandStroke2"),Ga=eo("colorCompoundBrandStroke"),qa=eo("colorCompoundBrandStrokeHover"),Xa=eo("colorCompoundBrandStrokePressed"),Wa=eo("colorNeutralStrokeDisabled"),Ua=eo("colorNeutralStrokeInvertedDisabled"),Ya=eo("colorTransparentStroke"),Ka=eo("colorTransparentStrokeInteractive"),Qa=eo("colorTransparentStrokeDisabled"),Za=eo("colorStrokeFocus1"),Ja=eo("colorStrokeFocus2"),en=eo("colorNeutralShadowAmbient"),tn=eo("colorNeutralShadowKey"),on=eo("colorNeutralShadowAmbientLighter"),rn=eo("colorNeutralShadowKeyLighter"),an=eo("colorNeutralShadowAmbientDarker"),nn=eo("colorNeutralShadowKeyDarker"),sn=eo("colorBrandShadowAmbient"),ln=eo("colorBrandShadowKey"),cn=eo("colorPaletteRedBackground1"),dn=eo("colorPaletteRedBackground2"),hn=eo("colorPaletteRedBackground3"),un=eo("colorPaletteRedForeground1"),pn=eo("colorPaletteRedForeground2"),gn=eo("colorPaletteRedForeground3"),bn=eo("colorPaletteRedBorderActive"),fn=eo("colorPaletteRedBorder1"),mn=eo("colorPaletteRedBorder2"),vn=eo("colorPaletteGreenBackground1"),yn=eo("colorPaletteGreenBackground2"),kn=eo("colorPaletteGreenBackground3"),xn=eo("colorPaletteGreenForeground1"),$n=eo("colorPaletteGreenForeground2"),wn=eo("colorPaletteGreenForeground3"),Bn=eo("colorPaletteGreenBorderActive"),Cn=eo("colorPaletteGreenBorder1"),Sn=eo("colorPaletteGreenBorder2"),Pn=eo("colorPaletteDarkOrangeBackground1"),Tn=eo("colorPaletteDarkOrangeBackground2"),In=eo("colorPaletteDarkOrangeBackground3"),Fn=eo("colorPaletteDarkOrangeForeground1"),An=eo("colorPaletteDarkOrangeForeground2"),zn=eo("colorPaletteDarkOrangeForeground3"),Nn=eo("colorPaletteDarkOrangeBorderActive"),Ln=eo("colorPaletteDarkOrangeBorder1"),On=eo("colorPaletteDarkOrangeBorder2"),Dn=eo("colorPaletteYellowBackground1"),En=eo("colorPaletteYellowBackground2"),Rn=eo("colorPaletteYellowBackground3"),Mn=eo("colorPaletteYellowForeground1"),Hn=eo("colorPaletteYellowForeground2"),Vn=eo("colorPaletteYellowForeground3"),jn=eo("colorPaletteYellowBorderActive"),_n=eo("colorPaletteYellowBorder1"),Gn=eo("colorPaletteYellowBorder2"),qn=eo("colorPaletteBerryBackground1"),Xn=eo("colorPaletteBerryBackground2"),Wn=eo("colorPaletteBerryBackground3"),Un=eo("colorPaletteBerryForeground1"),Yn=eo("colorPaletteBerryForeground2"),Kn=eo("colorPaletteBerryForeground3"),Qn=eo("colorPaletteBerryBorderActive"),Zn=eo("colorPaletteBerryBorder1"),Jn=eo("colorPaletteBerryBorder2"),es=eo("colorPaletteLightGreenBackground1"),ts=eo("colorPaletteLightGreenBackground2"),os=eo("colorPaletteLightGreenBackground3"),rs=eo("colorPaletteLightGreenForeground1"),is=eo("colorPaletteLightGreenForeground2"),as=eo("colorPaletteLightGreenForeground3"),ns=eo("colorPaletteLightGreenBorderActive"),ss=eo("colorPaletteLightGreenBorder1"),ls=eo("colorPaletteLightGreenBorder2"),cs=eo("colorPaletteMarigoldBackground1"),ds=eo("colorPaletteMarigoldBackground2"),hs=eo("colorPaletteMarigoldBackground3"),us=eo("colorPaletteMarigoldForeground1"),ps=eo("colorPaletteMarigoldForeground2"),gs=eo("colorPaletteMarigoldForeground3"),bs=eo("colorPaletteMarigoldBorderActive"),fs=eo("colorPaletteMarigoldBorder1"),ms=eo("colorPaletteMarigoldBorder2"),vs=eo("colorPaletteDarkRedBackground2"),ys=eo("colorPaletteDarkRedForeground2"),ks=eo("colorPaletteDarkRedBorderActive"),xs=eo("colorPaletteCranberryBackground2"),$s=eo("colorPaletteCranberryForeground2"),ws=eo("colorPaletteCranberryBorderActive"),Bs=eo("colorPalettePumpkinBackground2"),Cs=eo("colorPalettePumpkinForeground2"),Ss=eo("colorPalettePumpkinBorderActive"),Ps=eo("colorPalettePeachBackground2"),Ts=eo("colorPalettePeachForeground2"),Is=eo("colorPalettePeachBorderActive"),Fs=eo("colorPaletteGoldBackground2"),As=eo("colorPaletteGoldForeground2"),zs=eo("colorPaletteGoldBorderActive"),Ns=eo("colorPaletteBrassBackground2"),Ls=eo("colorPaletteBrassForeground2"),Os=eo("colorPaletteBrassBorderActive"),Ds=eo("colorPaletteBrownBackground2"),Es=eo("colorPaletteBrownForeground2"),Rs=eo("colorPaletteBrownBorderActive"),Ms=eo("colorPaletteForestBackground2"),Hs=eo("colorPaletteForestForeground2"),Vs=eo("colorPaletteForestBorderActive"),js=eo("colorPaletteSeafoamBackground2"),_s=eo("colorPaletteSeafoamForeground2"),Gs=eo("colorPaletteSeafoamBorderActive"),qs=eo("colorPaletteDarkGreenBackground2"),Xs=eo("colorPaletteDarkGreenForeground2"),Ws=eo("colorPaletteDarkGreenBorderActive"),Us=eo("colorPaletteLightTealBackground2"),Ys=eo("colorPaletteLightTealForeground2"),Ks=eo("colorPaletteLightTealBorderActive"),Qs=eo("colorPaletteTealBackground2"),Zs=eo("colorPaletteTealForeground2"),Js=eo("colorPaletteTealBorderActive"),el=eo("colorPaletteSteelBackground2"),tl=eo("colorPaletteSteelForeground2"),ol=eo("colorPaletteSteelBorderActive"),rl=eo("colorPaletteBlueBackground2"),il=eo("colorPaletteBlueForeground2"),al=eo("colorPaletteBlueBorderActive"),nl=eo("colorPaletteRoyalBlueBackground2"),sl=eo("colorPaletteRoyalBlueForeground2"),ll=eo("colorPaletteRoyalBlueBorderActive"),cl=eo("colorPaletteCornflowerBackground2"),dl=eo("colorPaletteCornflowerForeground2"),hl=eo("colorPaletteCornflowerBorderActive"),ul=eo("colorPaletteNavyBackground2"),pl=eo("colorPaletteNavyForeground2"),gl=eo("colorPaletteNavyBorderActive"),bl=eo("colorPaletteLavenderBackground2"),fl=eo("colorPaletteLavenderForeground2"),ml=eo("colorPaletteLavenderBorderActive"),vl=eo("colorPalettePurpleBackground2"),yl=eo("colorPalettePurpleForeground2"),kl=eo("colorPalettePurpleBorderActive"),xl=eo("colorPaletteGrapeBackground2"),$l=eo("colorPaletteGrapeForeground2"),wl=eo("colorPaletteGrapeBorderActive"),Bl=eo("colorPaletteLilacBackground2"),Cl=eo("colorPaletteLilacForeground2"),Sl=eo("colorPaletteLilacBorderActive"),Pl=eo("colorPalettePinkBackground2"),Tl=eo("colorPalettePinkForeground2"),Il=eo("colorPalettePinkBorderActive"),Fl=eo("colorPaletteMagentaBackground2"),Al=eo("colorPaletteMagentaForeground2"),zl=eo("colorPaletteMagentaBorderActive"),Nl=eo("colorPalettePlumBackground2"),Ll=eo("colorPalettePlumForeground2"),Ol=eo("colorPalettePlumBorderActive"),Dl=eo("colorPaletteBeigeBackground2"),El=eo("colorPaletteBeigeForeground2"),Rl=eo("colorPaletteBeigeBorderActive"),Ml=eo("colorPaletteMinkBackground2"),Hl=eo("colorPaletteMinkForeground2"),Vl=eo("colorPaletteMinkBorderActive"),jl=eo("colorPalettePlatinumBackground2"),_l=eo("colorPalettePlatinumForeground2"),Gl=eo("colorPalettePlatinumBorderActive"),ql=eo("colorPaletteAnchorBackground2"),Xl=eo("colorPaletteAnchorForeground2"),Wl=eo("colorPaletteAnchorBorderActive"),Ul=eo("colorPaletteRedForegroundInverted"),Yl=eo("colorPaletteGreenForegroundInverted"),Kl=eo("colorPaletteYellowForegroundInverted"),Ql=eo("shadow2"),Zl=eo("shadow4"),Jl=eo("shadow8"),ec=eo("shadow16"),tc=eo("shadow28"),oc=eo("shadow64"),rc=eo("shadow2Brand"),ic=eo("shadow4Brand"),ac=eo("shadow8Brand"),nc=eo("shadow16Brand"),sc=eo("shadow28Brand"),lc=eo("shadow64Brand");var cc=Object.freeze({__proto__:null,borderRadiusNone:to,borderRadiusSmall:oo,borderRadiusMedium:ro,borderRadiusLarge:io,borderRadiusXLarge:ao,borderRadiusCircular:no,fontSizeBase100:so,fontSizeBase200:lo,fontSizeBase300:co,fontSizeBase400:ho,fontSizeBase500:uo,fontSizeBase600:po,fontSizeHero700:go,fontSizeHero800:bo,fontSizeHero900:fo,fontSizeHero1000:mo,lineHeightBase100:vo,lineHeightBase200:yo,lineHeightBase300:ko,lineHeightBase400:xo,lineHeightBase500:$o,lineHeightBase600:wo,lineHeightHero700:Bo,lineHeightHero800:Co,lineHeightHero900:So,lineHeightHero1000:Po,fontFamilyBase:To,fontFamilyMonospace:Io,fontFamilyNumeric:Fo,fontWeightRegular:Ao,fontWeightMedium:zo,fontWeightSemibold:No,fontWeightBold:Lo,strokeWidthThin:Oo,strokeWidthThick:Do,strokeWidthThicker:Eo,strokeWidthThickest:Ro,spacingHorizontalNone:Mo,spacingHorizontalXXS:Ho,spacingHorizontalXS:Vo,spacingHorizontalSNudge:jo,spacingHorizontalS:_o,spacingHorizontalMNudge:Go,spacingHorizontalM:qo,spacingHorizontalL:Xo,spacingHorizontalXL:Wo,spacingHorizontalXXL:Uo,spacingHorizontalXXXL:Yo,spacingVerticalNone:Ko,spacingVerticalXXS:Qo,spacingVerticalXS:Zo,spacingVerticalSNudge:Jo,spacingVerticalS:er,spacingVerticalMNudge:tr,spacingVerticalM:or,spacingVerticalL:rr,spacingVerticalXL:ir,spacingVerticalXXL:ar,spacingVerticalXXXL:nr,durationUltraFast:sr,durationFaster:lr,durationFast:cr,durationNormal:dr,durationSlow:hr,durationSlower:ur,durationUltraSlow:pr,curveAccelerateMax:gr,curveAccelerateMid:br,curveAccelerateMin:fr,curveDecelerateMax:mr,curveDecelerateMid:vr,curveDecelerateMin:yr,curveEasyEaseMax:kr,curveEasyEase:xr,curveLinear:$r,colorNeutralForeground1:wr,colorNeutralForeground1Hover:Br,colorNeutralForeground1Pressed:Cr,colorNeutralForeground1Selected:Sr,colorNeutralForeground2:Pr,colorNeutralForeground2Hover:Tr,colorNeutralForeground2Pressed:Ir,colorNeutralForeground2Selected:Fr,colorNeutralForeground2BrandHover:Ar,colorNeutralForeground2BrandPressed:zr,colorNeutralForeground2BrandSelected:Nr,colorNeutralForeground3:Lr,colorNeutralForeground3Hover:Or,colorNeutralForeground3Pressed:Dr,colorNeutralForeground3Selected:Er,colorNeutralForeground3BrandHover:Rr,colorNeutralForeground3BrandPressed:Mr,colorNeutralForeground3BrandSelected:Hr,colorNeutralForeground4:Vr,colorNeutralForegroundDisabled:jr,colorNeutralForegroundInvertedDisabled:_r,colorBrandForegroundLink:Gr,colorBrandForegroundLinkHover:qr,colorBrandForegroundLinkPressed:Xr,colorBrandForegroundLinkSelected:Wr,colorNeutralForeground2Link:Ur,colorNeutralForeground2LinkHover:Yr,colorNeutralForeground2LinkPressed:Kr,colorNeutralForeground2LinkSelected:Qr,colorCompoundBrandForeground1:Zr,colorCompoundBrandForeground1Hover:Jr,colorCompoundBrandForeground1Pressed:ei,colorBrandForeground1:ti,colorBrandForeground2:oi,colorNeutralForeground1Static:ri,colorNeutralForegroundStaticInverted:ii,colorNeutralForegroundInverted:ai,colorNeutralForegroundInvertedHover:ni,colorNeutralForegroundInvertedPressed:si,colorNeutralForegroundInvertedSelected:li,colorNeutralForegroundInverted2:ci,colorNeutralForegroundOnBrand:di,colorNeutralForegroundInvertedLink:hi,colorNeutralForegroundInvertedLinkHover:ui,colorNeutralForegroundInvertedLinkPressed:pi,colorNeutralForegroundInvertedLinkSelected:gi,colorBrandForegroundInverted:bi,colorBrandForegroundInvertedHover:fi,colorBrandForegroundInvertedPressed:mi,colorBrandForegroundOnLight:vi,colorBrandForegroundOnLightHover:yi,colorBrandForegroundOnLightPressed:ki,colorBrandForegroundOnLightSelected:xi,colorNeutralBackground1:$i,colorNeutralBackground1Hover:wi,colorNeutralBackground1Pressed:Bi,colorNeutralBackground1Selected:Ci,colorNeutralBackground2:Si,colorNeutralBackground2Hover:Pi,colorNeutralBackground2Pressed:Ti,colorNeutralBackground2Selected:Ii,colorNeutralBackground3:Fi,colorNeutralBackground3Hover:Ai,colorNeutralBackground3Pressed:zi,colorNeutralBackground3Selected:Ni,colorNeutralBackground4:Li,colorNeutralBackground4Hover:Oi,colorNeutralBackground4Pressed:Di,colorNeutralBackground4Selected:Ei,colorNeutralBackground5:Ri,colorNeutralBackground5Hover:Mi,colorNeutralBackground5Pressed:Hi,colorNeutralBackground5Selected:Vi,colorNeutralBackground6:ji,colorNeutralBackgroundInverted:_i,colorNeutralBackgroundStatic:Gi,colorSubtleBackground:qi,colorSubtleBackgroundHover:Xi,colorSubtleBackgroundPressed:Wi,colorSubtleBackgroundSelected:Ui,colorSubtleBackgroundLightAlphaHover:Yi,colorSubtleBackgroundLightAlphaPressed:Ki,colorSubtleBackgroundLightAlphaSelected:Qi,colorSubtleBackgroundInverted:Zi,colorSubtleBackgroundInvertedHover:Ji,colorSubtleBackgroundInvertedPressed:ea,colorSubtleBackgroundInvertedSelected:ta,colorTransparentBackground:oa,colorTransparentBackgroundHover:ra,colorTransparentBackgroundPressed:ia,colorTransparentBackgroundSelected:aa,colorNeutralBackgroundDisabled:na,colorNeutralBackgroundInvertedDisabled:sa,colorNeutralStencil1:la,colorNeutralStencil2:ca,colorNeutralStencil1Alpha:da,colorNeutralStencil2Alpha:ha,colorBackgroundOverlay:ua,colorScrollbarOverlay:pa,colorBrandBackground:ga,colorBrandBackgroundHover:ba,colorBrandBackgroundPressed:fa,colorBrandBackgroundSelected:ma,colorCompoundBrandBackground:va,colorCompoundBrandBackgroundHover:ya,colorCompoundBrandBackgroundPressed:ka,colorBrandBackgroundStatic:xa,colorBrandBackground2:$a,colorBrandBackgroundInverted:wa,colorBrandBackgroundInvertedHover:Ba,colorBrandBackgroundInvertedPressed:Ca,colorBrandBackgroundInvertedSelected:Sa,colorNeutralStrokeAccessible:Pa,colorNeutralStrokeAccessibleHover:Ta,colorNeutralStrokeAccessiblePressed:Ia,colorNeutralStrokeAccessibleSelected:Fa,colorNeutralStroke1:Aa,colorNeutralStroke1Hover:za,colorNeutralStroke1Pressed:Na,colorNeutralStroke1Selected:La,colorNeutralStroke2:Oa,colorNeutralStroke3:Da,colorNeutralStrokeOnBrand:Ea,colorNeutralStrokeOnBrand2:Ra,colorNeutralStrokeOnBrand2Hover:Ma,colorNeutralStrokeOnBrand2Pressed:Ha,colorNeutralStrokeOnBrand2Selected:Va,colorBrandStroke1:ja,colorBrandStroke2:_a,colorCompoundBrandStroke:Ga,colorCompoundBrandStrokeHover:qa,colorCompoundBrandStrokePressed:Xa,colorNeutralStrokeDisabled:Wa,colorNeutralStrokeInvertedDisabled:Ua,colorTransparentStroke:Ya,colorTransparentStrokeInteractive:Ka,colorTransparentStrokeDisabled:Qa,colorStrokeFocus1:Za,colorStrokeFocus2:Ja,colorNeutralShadowAmbient:en,colorNeutralShadowKey:tn,colorNeutralShadowAmbientLighter:on,colorNeutralShadowKeyLighter:rn,colorNeutralShadowAmbientDarker:an,colorNeutralShadowKeyDarker:nn,colorBrandShadowAmbient:sn,colorBrandShadowKey:ln,colorPaletteRedBackground1:cn,colorPaletteRedBackground2:dn,colorPaletteRedBackground3:hn,colorPaletteRedForeground1:un,colorPaletteRedForeground2:pn,colorPaletteRedForeground3:gn,colorPaletteRedBorderActive:bn,colorPaletteRedBorder1:fn,colorPaletteRedBorder2:mn,colorPaletteGreenBackground1:vn,colorPaletteGreenBackground2:yn,colorPaletteGreenBackground3:kn,colorPaletteGreenForeground1:xn,colorPaletteGreenForeground2:$n,colorPaletteGreenForeground3:wn,colorPaletteGreenBorderActive:Bn,colorPaletteGreenBorder1:Cn,colorPaletteGreenBorder2:Sn,colorPaletteDarkOrangeBackground1:Pn,colorPaletteDarkOrangeBackground2:Tn,colorPaletteDarkOrangeBackground3:In,colorPaletteDarkOrangeForeground1:Fn,colorPaletteDarkOrangeForeground2:An,colorPaletteDarkOrangeForeground3:zn,colorPaletteDarkOrangeBorderActive:Nn,colorPaletteDarkOrangeBorder1:Ln,colorPaletteDarkOrangeBorder2:On,colorPaletteYellowBackground1:Dn,colorPaletteYellowBackground2:En,colorPaletteYellowBackground3:Rn,colorPaletteYellowForeground1:Mn,colorPaletteYellowForeground2:Hn,colorPaletteYellowForeground3:Vn,colorPaletteYellowBorderActive:jn,colorPaletteYellowBorder1:_n,colorPaletteYellowBorder2:Gn,colorPaletteBerryBackground1:qn,colorPaletteBerryBackground2:Xn,colorPaletteBerryBackground3:Wn,colorPaletteBerryForeground1:Un,colorPaletteBerryForeground2:Yn,colorPaletteBerryForeground3:Kn,colorPaletteBerryBorderActive:Qn,colorPaletteBerryBorder1:Zn,colorPaletteBerryBorder2:Jn,colorPaletteLightGreenBackground1:es,colorPaletteLightGreenBackground2:ts,colorPaletteLightGreenBackground3:os,colorPaletteLightGreenForeground1:rs,colorPaletteLightGreenForeground2:is,colorPaletteLightGreenForeground3:as,colorPaletteLightGreenBorderActive:ns,colorPaletteLightGreenBorder1:ss,colorPaletteLightGreenBorder2:ls,colorPaletteMarigoldBackground1:cs,colorPaletteMarigoldBackground2:ds,colorPaletteMarigoldBackground3:hs,colorPaletteMarigoldForeground1:us,colorPaletteMarigoldForeground2:ps,colorPaletteMarigoldForeground3:gs,colorPaletteMarigoldBorderActive:bs,colorPaletteMarigoldBorder1:fs,colorPaletteMarigoldBorder2:ms,colorPaletteDarkRedBackground2:vs,colorPaletteDarkRedForeground2:ys,colorPaletteDarkRedBorderActive:ks,colorPaletteCranberryBackground2:xs,colorPaletteCranberryForeground2:$s,colorPaletteCranberryBorderActive:ws,colorPalettePumpkinBackground2:Bs,colorPalettePumpkinForeground2:Cs,colorPalettePumpkinBorderActive:Ss,colorPalettePeachBackground2:Ps,colorPalettePeachForeground2:Ts,colorPalettePeachBorderActive:Is,colorPaletteGoldBackground2:Fs,colorPaletteGoldForeground2:As,colorPaletteGoldBorderActive:zs,colorPaletteBrassBackground2:Ns,colorPaletteBrassForeground2:Ls,colorPaletteBrassBorderActive:Os,colorPaletteBrownBackground2:Ds,colorPaletteBrownForeground2:Es,colorPaletteBrownBorderActive:Rs,colorPaletteForestBackground2:Ms,colorPaletteForestForeground2:Hs,colorPaletteForestBorderActive:Vs,colorPaletteSeafoamBackground2:js,colorPaletteSeafoamForeground2:_s,colorPaletteSeafoamBorderActive:Gs,colorPaletteDarkGreenBackground2:qs,colorPaletteDarkGreenForeground2:Xs,colorPaletteDarkGreenBorderActive:Ws,colorPaletteLightTealBackground2:Us,colorPaletteLightTealForeground2:Ys,colorPaletteLightTealBorderActive:Ks,colorPaletteTealBackground2:Qs,colorPaletteTealForeground2:Zs,colorPaletteTealBorderActive:Js,colorPaletteSteelBackground2:el,colorPaletteSteelForeground2:tl,colorPaletteSteelBorderActive:ol,colorPaletteBlueBackground2:rl,colorPaletteBlueForeground2:il,colorPaletteBlueBorderActive:al,colorPaletteRoyalBlueBackground2:nl,colorPaletteRoyalBlueForeground2:sl,colorPaletteRoyalBlueBorderActive:ll,colorPaletteCornflowerBackground2:cl,colorPaletteCornflowerForeground2:dl,colorPaletteCornflowerBorderActive:hl,colorPaletteNavyBackground2:ul,colorPaletteNavyForeground2:pl,colorPaletteNavyBorderActive:gl,colorPaletteLavenderBackground2:bl,colorPaletteLavenderForeground2:fl,colorPaletteLavenderBorderActive:ml,colorPalettePurpleBackground2:vl,colorPalettePurpleForeground2:yl,colorPalettePurpleBorderActive:kl,colorPaletteGrapeBackground2:xl,colorPaletteGrapeForeground2:$l,colorPaletteGrapeBorderActive:wl,colorPaletteLilacBackground2:Bl,colorPaletteLilacForeground2:Cl,colorPaletteLilacBorderActive:Sl,colorPalettePinkBackground2:Pl,colorPalettePinkForeground2:Tl,colorPalettePinkBorderActive:Il,colorPaletteMagentaBackground2:Fl,colorPaletteMagentaForeground2:Al,colorPaletteMagentaBorderActive:zl,colorPalettePlumBackground2:Nl,colorPalettePlumForeground2:Ll,colorPalettePlumBorderActive:Ol,colorPaletteBeigeBackground2:Dl,colorPaletteBeigeForeground2:El,colorPaletteBeigeBorderActive:Rl,colorPaletteMinkBackground2:Ml,colorPaletteMinkForeground2:Hl,colorPaletteMinkBorderActive:Vl,colorPalettePlatinumBackground2:jl,colorPalettePlatinumForeground2:_l,colorPalettePlatinumBorderActive:Gl,colorPaletteAnchorBackground2:ql,colorPaletteAnchorForeground2:Xl,colorPaletteAnchorBorderActive:Wl,colorPaletteRedForegroundInverted:Ul,colorPaletteGreenForegroundInverted:Yl,colorPaletteYellowForegroundInverted:Kl,shadow2:Ql,shadow4:Zl,shadow8:Jl,shadow16:ec,shadow28:tc,shadow64:oc,shadow2Brand:rc,shadow4Brand:ic,shadow8Brand:ac,shadow16Brand:nc,shadow28Brand:sc,shadow64Brand:lc});const dc=_`
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Fo;const is="fast-kernel";try{if(document.currentScript)Fo=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");Fo=o[o.length-1].getAttribute(is)}}catch{Fo="isolate"}let ht;switch(Fo){case"share":ht=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ht=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ht=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ot=o=>typeof o=="function",Fe=o=>typeof o=="string",ss=()=>{};var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof jr<"u")jr.globalThis=jr;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const ns={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ns));const re=globalThis.FAST;if(re.getById===void 0){const o=Object.create(null);Reflect.defineProperty(re,"getById",Object.assign({value(e,t){let r=o[e];return r===void 0&&(r=t?o[e]=t():null),r}},ns))}re.error===void 0&&Object.assign(re,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Ta=Object.freeze([]);function Rr(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function as(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ut(o){o.prototype.toJSON=ss}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ls=o=>o,Ba=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ls}):{createHTML:ls};let Mo=Object.freeze({createHTML(o){return Ba.createHTML(o)},protect(o,e,t,r){return r}});const Oa=Mo,pt=Object.freeze({get policy(){return Mo},setPolicy(o){if(Mo!==Oa)throw re.error(1201);Mo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Y=re.getById(ht.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let r=!0;function i(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(r)e.push(d),setTimeout(i,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(r?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>r=h})});class qr{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,s=this.sub2;i!==void 0&&i.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let i=0,s=t.length;i<s;++i)t[i].handleChange(r,e)}}class cs{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let s;t?s=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new qr(this.subject):s=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new qr(this.subject),s.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const Do=Object.freeze({unknown:void 0,coupled:1}),m=re.getById(ht.observable,()=>{const o=Y.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw re.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new cs(d))),f}const n=as();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return r!==void 0&&r.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,be=l[w];if(be!==f){l[w]=f;const ot=l[this.callback];Ot(ot)&&ot.call(l,be,f),s(l).notify(this.name)}}}class h extends qr{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Do.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let be;try{be=this.expression(l,f)}finally{r=w}return be}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,be=s(l),ot=w===null?this.first:{};if(ot.propertySource=l,ot.propertyName=f,ot.notifier=be,be.subscribe(this,f),w!==null){if(!this.needsRefresh){let rs;r=void 0,rs=w.propertySource[w.propertyName],r=this,l===rs&&(this.needsRefresh=!0)}w.next=ot}this.last=ot}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ut(h),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:s,track(d,l){r&&r.watch(d,l)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Fe(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function Gr(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ds=re.getById(ht.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),At=Object.freeze({default:{index:0,length:0,get event(){return At.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ds.get()},setEvent(o){ds.set(o)}});class Vo{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}class Aa extends Vo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Wr(o,e,t=m.isVolatileBinding(o)){return new Aa(o,e,t)}class hs extends Vo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ut(hs);function us(o,e){return new hs(o,e)}let ps;function bs(o){return o.map(e=>e instanceof ke?bs(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class ke{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof ke?t.behaviors:null).reduce((t,r)=>r===null?t:t===null?r:t.concat(r),null)}get strategy(){return this._strategy===null&&this.withStrategy(ps),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(bs(this.styles)),this}static setDefaultStrategy(e){ps=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ke(e):e instanceof ke?e:new ke([e])}}ke.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Xr=Rr(),Ur=Object.freeze({getForInstance:Xr.getForInstance,getByType:Xr.getByType,define(o){return Xr.register({type:o}),o}});function Kr(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class Yr{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const r=e.source;if(!r.$cssBindings){r.$cssBindings=new Map;const s=r.setAttribute;r.setAttribute=(n,c)=>{s.call(r,n,c),n==="style"&&r.$cssBindings.forEach((h,d)=>Kr(d,h.controller,h.observer))}}const i=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:i})}connectedCallback(e){Kr(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){Kr(this,t.controller,t)}}Ur.define(Yr);const _a=`${Math.random().toString(36).substring(2,8)}`;let Ea=0;const gs=()=>`--v${_a}${++Ea}`;function fs(o,e){const t=[];let r="";const i=[],s=n=>{i.push(n)};for(let n=0,c=o.length-1;n<c;++n){r+=o[n];let h=e[n];Ot(h)?h=new Yr(Wr(h),gs()).createCSS(s):h instanceof Vo?h=new Yr(h,gs()).createCSS(s):Ur.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof ke||h instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(h)):r+=h}return r+=o[o.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:i}}const u=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e),i=new ke(t);return r.length?i.withBehaviors(...r):i};class ms{constructor(e,t){this.behaviors=t,this.css="";const r=e.reduce((i,s)=>(Fe(s)?this.css+=s:i.push(s),i),[]);r.length&&(this.styles=new ke(r))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Ur.define(ms),u.partial=(o,...e)=>{const{styles:t,behaviors:r}=fs(o,e);return new ms(t,r)};const vs=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ys=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,xs=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ks=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ws=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Cs(o){return o&&o.nodeType===Node.COMMENT_NODE}const Me=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return vs.test(o)},isContentBindingEndMarker(o){return $s.test(o)},isRepeatViewStartMarker(o){return ys.test(o)},isRepeatViewEndMarker(o){return xs.test(o)},isElementBoundaryStartMarker(o){return Cs(o)&&ks.test(o.data.trim())},isElementBoundaryEndMarker(o){return Cs(o)&&ws.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Ps(vs,o)},parseContentBindingEndMarker(o){return Ps($s,o)},parseRepeatStartMarker(o){return Ss(ys,o)},parseRepeatEndMarker(o){return Ss(xs,o)},parseElementBoundaryStartMarker(o){return Is(ks,o.trim())},parseElementBoundaryEndMarker(o){return Is(ws,o)}});function Ss(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Is(o,e){const t=o.exec(e);return t===null?t:t[1]}function Ps(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ho=Symbol.for("fe-hydration");function Lo(o){return o[Ho]===Ho}const Qr=`fast-${Math.random().toString(36).substring(2,8)}`,jo=`${Qr}{`,so=`}${Qr}`,Na=so.length;let Fa=0;const no=()=>`${Qr}-${++Fa}`,zs=Object.freeze({interpolation:o=>`${jo}${o}${so}`,attribute:o=>`${no()}="${jo}${o}${so}"`,comment:o=>`<!--${jo}${o}${so}-->`}),Ro=Object.freeze({parse(o,e){const t=o.split(jo);if(t.length===1)return null;const r=[];for(let i=0,s=t.length;i<s;++i){const n=t[i],c=n.indexOf(so);let h;if(c===-1)h=n;else{const d=n.substring(0,c);r.push(e[d]),h=n.substring(c+Na)}h!==""&&r.push(h)}return r}}),Zr=Rr(),Be=Object.freeze({getForInstance:Zr.getForInstance,getByType:Zr.getByType,define(o,e){return e=e||{},e.type=o,Zr.register(e),o},assignAspect(o,e){if(!e){o.aspectType=K.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?K.tokenList:K.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=K.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=K.event;break;default:o.targetAspect=e,o.aspectType=K.attribute;break}}});class Jr{constructor(e){this.options=e}createHTML(e){return zs.attribute(e(this))}createBehavior(){return this}}ut(Jr);class Ts extends Error{constructor(e,t,r){super(e),this.factories=t,this.node=r}}function ei(o){return o.nodeType===Node.COMMENT_NODE}function Bs(o){return o.nodeType===Node.TEXT_NODE}function Os(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ei(e)||Bs(e)?e.data.length:e.childNodes.length),t}function Ma(o){return o instanceof DocumentFragment&&"mode"in o}function Da(o,e,t){const r=Os(o,e),i=r.commonAncestorContainer,s=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return r.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{Va(h,t,n);break}case Node.COMMENT_NODE:{Ha(h,s,t,n,c);break}}h=s.nextNode()}return r.detach(),{targets:n,boundaries:c}}function Va(o,e,t){const r=Me.parseAttributeBinding(o);if(r!==null){for(const i of r){if(!e[i])throw new Ts(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);qo(e[i],o,t)}o.removeAttribute(Me.attributeMarkerName)}}function Ha(o,e,t,r,i){if(Me.isElementBoundaryStartMarker(o)){La(o,e);return}if(Me.isContentBindingStartMarker(o.data)){const s=Me.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(ei(l)){const w=Me.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ma(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Bs(d[0]))qo(h,d[0],r);else{l!==f&&l.previousSibling!==null&&(i[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);qo(h,w,r)}}}function La(o,e){const t=Me.parseElementBoundaryStartMarker(o.data);let r=e.nextSibling();for(;r!==null;){if(ei(r)){const i=Me.parseElementBoundaryEndMarker(r.data);if(i&&i===t)break}r=e.nextSibling()}}function qo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var As;function ti(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class _s{constructor(){this.index=0,this.length=0}get event(){return At.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Go extends _s{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Do.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){ti(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let s=0,n=i.length;s<n;++s){const c=i[s].createBehavior();c.bind(this),r[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,s=r.length;i<s;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){ti(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}ut(Go),m.defineProperty(Go.prototype,"index"),m.defineProperty(Go.prototype,"length");const _t={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class ja extends Error{constructor(e,t,r,i){super(e),this.factory=t,this.fragment=r,this.templateString=i}}class Ra extends _s{constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[As]=Ho,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Do.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=_t.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,s;for(;i!==t;)s=i.nextSibling,r.insertBefore(i,e),i=s;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){var r,i;if(this.hydrationStage!==_t.hydrated&&(this._hydrationStage=_t.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Da(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof Ts){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&qo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new ja(`HydrationView was unable to successfully target bindings inside "${(i=((r=this.firstChild)===null||r===void 0?void 0:r.getRootNode()).host)===null||i===void 0?void 0:i.nodeName}".`,d,Os(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=_t.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){ti(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}As=Ho,ut(Ra);function qa(o){return o.create!==void 0}function Ga(o,e,t,r){if(t==null&&(t=""),qa(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Lo(r)&&Lo(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==_t.hydrated){const s=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(s.first,s.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Wa(o,e,t){var r;const i=`${this.id}-t`,s=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Xa={[K.attribute]:pt.setAttribute,[K.booleanAttribute]:pt.setBooleanAttribute,[K.property]:(o,e,t)=>o[e]=t,[K.content]:Ga,[K.tokenList]:Wa,[K.event]:()=>{}};class Et{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=K.content}createHTML(e){return zs.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Xa[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw re.error(1205);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId],i=Lo(e)&&e.hydrationStage&&e.hydrationStage!==_t.hydrated;switch(this.aspectType){case K.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:e.onUnbind(this);default:const s=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);if(s.target=r,s.controller=e,i&&(this.aspectType===K.attribute||this.aspectType===K.booleanAttribute)){s.bind(e);break}this.updateTarget(r,this.targetAspect,s.bind(e),e);break}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){At.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);At.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.target,i=t.controller;this.updateTarget(r,this.targetAspect,t.bind(i),i)}}Be.define(Et,{aspected:!0});const Es=(o,e)=>`${o}.${e}`,Ns={},De={index:0,node:null};function Fs(o){o.startsWith("fast-")||re.warn(1204,{name:o})}const Ua=new Proxy(document.createElement("div"),{get(o,e){Fs(e);const t=Reflect.get(o,e);return Ot(t)?t.bind(o):t},set(o,e,t){return Fs(e),Reflect.set(o,e,t)}});class Ka{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,s){var n,c;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(n=e.id)!==null&&n!==void 0?n:no(),e.targetNodeId=r,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Ns[t];if(!s){const n=`_${t}`;Ns[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[r]}}}i[t]=s}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Ua;for(const i of this.nodeIds)r[i];return new Go(t,this.factories,r)}}function Ms(o,e,t,r,i,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Ro.parse(f,c);let be=null;w===null?s&&(be=new Et(us(()=>f,o.policy)),Be.assignAspect(be,l.name)):be=oi.aggregate(w,o.policy),be!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(be,e,r,i,t.tagName))}}function Ya(o,e,t,r,i){const s=Ro.parse(e.textContent,o.directives);if(s===null)return De.node=e.nextSibling,De.index=i+1,De;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(i++,r=Es(t,i),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Fe(l)?n.textContent=l:(n.textContent=" ",Be.assignAspect(l),o.addFactory(l,t,r,i,null)),c=n}return De.index=i+1,De.node=c.nextSibling,De}function Ds(o,e,t){let r=0,i=e.firstChild;for(;i;){const s=Qa(o,t,i,r);i=s.node,r=s.index}}function Qa(o,e,t,r){const i=Es(e,r);switch(t.nodeType){case 1:Ms(o,e,t,i,r),Ds(o,t,i);break;case 3:return Ya(o,t,e,i,r);case 8:const s=Ro.parse(t.data,o.directives);s!==null&&o.addFactory(oi.aggregate(s),e,i,r,null);break}return De.index=r+1,De.node=t.nextSibling,De}function Za(o,e){return o&&o.nodeType==8&&Ro.parse(o.data,e)!==null}const Vs="TEMPLATE",oi={compile(o,e,t=pt.policy){let r;if(Fe(o)){r=document.createElement(Vs),r.innerHTML=t.createHTML(o);const n=r.content.firstElementChild;n!==null&&n.tagName===Vs&&(r=n)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),s=new Ka(i,e,t);return Ms(s,"",r,"h",0,!0),(Za(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Ds(s,i,"r"),De.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=pt.policy){if(o.length===1)return o[0];let t,r=!1,i;const s=o.length,n=o.map(d=>Fe(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Et(Wr(c,i??e,r));return Be.assignAspect(h,t),h}},Ja=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,el=Object.create(null);class bt{constructor(e,t=el){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}bt.empty=new bt(""),Be.define(bt);function tl(o,e,t,r=Be.getForInstance(o)){if(r.aspected){const i=Ja.exec(e);i!==null&&Be.assignAspect(o,i[2])}return o.createHTML(t)}class Vr{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=oi.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new bt(Fe(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw re.error(1208);if(this.policy)throw re.error(1207);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}static create(e,t,r){let i="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=no();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(i+=d,Ot(l))l=new Et(Wr(l));else if(l instanceof Vo)l=new Et(l);else if(!(f=Be.getForInstance(l))){const w=l;l=new Et(us(()=>w))}i+=tl(l,d,n,f)}return new Vr(i+e[e.length-1],s,r)}}ut(Vr);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Vr.create(o,e);throw re.error(1206)};b.partial=o=>new bt(o);class Hs extends Jr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Be.define(Hs);const V=o=>new Hs(o),ol=o=>o.nodeType===1,gt=o=>o?e=>e.nodeType===1&&e.matches(o):ol;class Ls extends Jr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Ta),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const js="slotchange";class Rs extends Ls{observe(e){e.addEventListener(js,this)}disconnect(e){e.removeEventListener(js,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Be.define(Rs);function H(o){return Fe(o)&&(o={property:o}),new Rs(o)}class qs extends Ls{constructor(e){super(e),this.observerProperty=Symbol(),this.handleEvent=(t,r)=>{const i=r.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},e.childList=!0}observe(e){let t=e[this.observerProperty];t||(t=new MutationObserver(this.handleEvent),t.toJSON=ss,e[this.observerProperty]=t),t.target=e,t.observe(e,this.options)}disconnect(e){const t=e[this.observerProperty];t.target=null,t.disconnect()}getNodes(e){return"selector"in this.options?Array.from(e.querySelectorAll(this.options.selector)):Array.from(e.childNodes)}}Be.define(qs);function ri(o){return Fe(o)&&(o={property:o}),new qs(o)}const Gs="boolean",Ws="reflect",Wo=Object.freeze({locate:as()}),rl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Xs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const Q={toView(o){const e=Xs(o);return e&&e.toString()},fromView:Xs};class Hr{constructor(e,t,r=t.toLowerCase(),i=Ws,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===Gs&&s===void 0&&(this.converter=rl)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||Y.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case Ws:const s=this.converter;pt.setAttribute(e,this.attribute,s!==void 0?s.toView(i):i);break;case Gs:pt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(Wo.locate(e));for(let i=0,s=t.length;i<s;++i){const n=t[i];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Fe(d)?r.push(new Hr(e,d)):r.push(new Hr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,s){arguments.length>1&&(t.property=s),Wo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}const Us={mode:"open"},Ks={},Ys=new Set,Xo=re.getById(ht.elementRegistry,()=>Rr());class Ne{constructor(e,t=e.definition){var r;this.platformDefined=!1,Fe(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements;const i=e.prototype,s=Hr.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Us:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Us),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Ks:Object.assign(Object.assign({},Ks),t.elementOptions),this.styles=ke.normalize(t.styles),Xo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Ys.has(e)||Xo.getByType(e)?new Ne(class extends e{},t):new Ne(e,t)}static registerBaseType(e){Ys.add(e)}}Ne.getByType=Xo.getByType,Ne.getForInstance=Xo.getForInstance;class il extends MutationObserver{constructor(e){function t(r){this.callback.call(null,r.filter(i=>this.observedNodes.has(i.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let r=null,i=!1;return{source:o,context:At.default,targets:t,get isBound(){return i},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:no(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:no(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:pt.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),i&&s.bind(this)},onUnbind(s){r===null&&(r=[]),r.push(s)},connectedCallback(s){i||(i=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){i&&(i=!1,r!==null&&r.forEach(n=>n.unbind(this)))}}}});const sl={bubbles:!0,composed:!0,cancelable:!0},Uo="isConnected",Qs=new WeakMap;function ao(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Qs.get(o))!==null&&t!==void 0?t:null}let Zs;class Nt extends cs{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const r=t.shadowOptions;if(r!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(r),r.mode==="closed"&&Qs.set(e,s))}const i=m.getAccessors(e);if(i.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=i.length;n<c;++n){const h=i[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Uo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:At.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(r=i.get(e))!==null&&r!==void 0?r:0;s===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):i.set(e,s+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(r)){const i=e.behaviors;if(e.addStylesTo(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.addBehavior(i[s])}}removeStyles(e){var t;if(!e)return;const r=this.source;if(e instanceof HTMLElement)((t=ao(r))!==null&&t!==void 0?t:r).removeChild(e);else if(e.isAttachedTo(r)){const i=e.behaviors;if(e.removeStylesFrom(r),i!==null)for(let s=0,n=i.length;s<n;++s)this.removeBehavior(i[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Uo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,s=r.length;i<s;++i){const n=r[i];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Uo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},sl),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=ao(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=i.firstChild;s!==null;s=i.firstChild)i.removeChild(s)}e&&(this.view=e.render(r,i,r),this.view.sourceLifetime=Do.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const r=Ne.getForInstance(e);if(r===void 0)throw re.error(1401);return e.$fastController=new Zs(e,r)}static setStrategy(e){Zs=e}}ut(Nt),Nt.setStrategy(Nt);function Ko(o){var e;return"adoptedStyleSheets"in o?o:(e=ao(o))!==null&&e!==void 0?e:o.getRootNode()}class Lr{constructor(e){const t=Lr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){en(Ko(e),this.sheets)}removeStylesFrom(e){tn(Ko(e),this.sheets)}}Lr.styleSheetCache=new Map;let nl=0;const al=()=>`fast-${++nl}`;function Js(o){return o===document?document.body:o}class ll{constructor(e){this.styles=e,this.styleClass=al()}addStylesTo(e){e=Js(Ko(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const s=document.createElement("style");s.innerHTML=t[i],s.className=r,e.append(s)}}removeStylesFrom(e){e=Js(Ko(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let en=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},tn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ke.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),en=(o,e)=>{o.adoptedStyleSheets.push(...e)},tn=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ke.setDefaultStrategy(Lr)}else ke.setDefaultStrategy(ll);const on="defer-hydration",rn="needs-hydration";class Bt extends Nt{static hydrationObserverHandler(e){for(const t of e)Bt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(rn)!==null),this.source.hasAttribute(on)){Bt.hydrationObserver.observe(this.source,{attributeFilter:[on]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const r=this.source,i=(e=ao(r))!==null&&e!==void 0?e:r;if(this.template)if(Lo(this.template)){let s=i.firstChild,n=i.lastChild;r.shadowRoot===null&&(Me.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Me.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,r),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(rn),this.needsInitialization=this.needsHydration=!1,m.notify(this,Uo)}disconnect(){super.disconnect(),Bt.hydrationObserver.unobserve(this.source)}static install(){Nt.setStrategy(Bt)}}Bt.hydrationObserver=new il(Bt.hydrationObserverHandler);function sn(o){const e=class extends o{constructor(){super(),Nt.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Ne.registerBaseType(e),e}function cl(o,e){return Ot(o)?Ne.compose(o,e):Ne.compose(this,o)}function dl(o,e){return Ot(o)?Ne.compose(o,e).define().type:Ne.compose(this,o).define().type}function hl(o){return sn(o)}const $=Object.assign(sn(HTMLElement),{from:hl,define:dl,compose:cl});var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,L=(o,e,t,r)=>{for(var i=r>1?void 0:r?pl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ul(e,t,i),i};class j{}L([a({attribute:"aria-atomic"})],j.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],j.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],j.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],j.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],j.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],j.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],j.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],j.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],j.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],j.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],j.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],j.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],j.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],j.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],j.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],j.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],j.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],j.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],j.prototype,"ariaRoledescription",2);const ii={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},Se={horizontal:"horizontal",vertical:"vertical"};function bl(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function si(...o){return o.every(e=>e instanceof HTMLElement)}const lo="ArrowDown",co="ArrowLeft",ho="ArrowRight",uo="ArrowUp",po="End",bo="Enter",gl="Escape",go="Home",Yo=" ",fl="Tab";var Ve;(function(o){o.ltr="ltr",o.rtl="rtl"})(Ve||(Ve={}));function ml(o,e,t){return t<o?e:t>e?o:t}function ni(o,e,t){return Math.min(Math.max(t,o),e)}let vl=0;function Ft(o=""){return`${o}${vl++}`}const ai=o=>o.closest("[dir]")?.dir==="rtl"?Ve.rtl:Ve.ltr;function he(o){return o?typeof o=="string"?new bt(o):"inline"in o?o.inline():o:bt.empty}const li=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,$l=":host([hidden]){display:none}";function k(o){return`${$l}:host{display:${o}}`}class yl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let r=this.listenerCache.get(e);r||(r=this.constructListener(e),this.listenerCache.set(e,r)),r.bind(t)(),t.addEventListener("change",r)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class No extends yl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new No(e,t)}constructListener(e){let t=!1;const r=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(r),t=s):!s&&t&&(e.removeStyles(r),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const Z=No.with(window.matchMedia("(forced-colors)"));No.with(window.matchMedia("(prefers-color-scheme: dark)")),No.with(window.matchMedia("(prefers-color-scheme: light)"));const nn=CSS.supports("anchor-name: --a"),xl="anchor"in HTMLElement.prototype,an=CSS.supports("selector(:state(g))");class Ue{}function rt(o){return b`<slot name="end" ${V("end")}>${he(o.end)}</slot>`.inline()}function He(o){return b`<slot name="start" ${V("start")}>${he(o.start)}</slot>`.inline()}function Ke(o,...e){const t=Wo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Wo.locate(r).forEach(s=>t.push(s))})}var kl=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Qo=(o,e,t,r)=>{for(var i=r>1?void 0:r?wl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&kl(e,t,i),i};class Ye extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ft("accordion-")}}Qo([a({attribute:"heading-level",mode:"fromView",converter:Q})],Ye.prototype,"headinglevel",2),Qo([a({mode:"boolean"})],Ye.prototype,"expanded",2),Qo([a({mode:"boolean"})],Ye.prototype,"disabled",2),Qo([a],Ye.prototype,"id",2);var Cl=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,ci=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cl(e,t,i),i};class fo extends Ye{constructor(){super(...arguments),this.block=!1}}ci([a],fo.prototype,"size",2),ci([a({attribute:"marker-position"})],fo.prototype,"markerPosition",2),ci([a({mode:"boolean"})],fo.prototype,"block",2),Ke(fo,Ue);const P="var(--colorNeutralForeground1)",di="var(--colorNeutralForeground1Hover)",Il="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Mt="var(--colorNeutralForeground2Hover)",Dt="var(--colorNeutralForeground2Pressed)",Zo="var(--colorNeutralForeground2Selected)",Jo="var(--colorNeutralForeground2BrandHover)",er="var(--colorNeutralForeground2BrandPressed)",Pl="var(--colorNeutralForeground2BrandSelected)",ie="var(--colorNeutralForeground3)",zl="var(--colorNeutralForeground3Hover)",Tl="var(--colorNeutralForeground3Pressed)",Bl="var(--colorNeutralForeground3Selected)",hi="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",Ol="var(--colorBrandForegroundLink)",Al="var(--colorBrandForegroundLinkHover)",_l="var(--colorBrandForegroundLinkPressed)",El="var(--colorNeutralForeground2Link)",Nl="var(--colorNeutralForeground2LinkHover)",Fl="var(--colorNeutralForeground2LinkPressed)",ln="var(--colorCompoundBrandForeground1Hover)",Ml="var(--colorCompoundBrandForeground1Pressed)",Qe="var(--colorNeutralForegroundOnBrand)",ft="var(--colorNeutralForegroundInverted)",Dl="var(--colorNeutralForegroundInvertedHover)",Vl="var(--colorNeutralForegroundInvertedPressed)",cn="var(--colorNeutralForegroundStaticInverted)",ui="var(--colorBrandForeground1)",Hl="var(--colorBrandForeground2)",Ll="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",tr="var(--colorNeutralBackground1Hover)",or="var(--colorNeutralBackground1Pressed)",dn="var(--colorNeutralBackground1Selected)",mo="var(--colorNeutralBackground3)",jl="var(--colorNeutralBackground4)",Rl="var(--colorNeutralBackground5)",rr="var(--colorNeutralBackground6)",hn="var(--colorNeutralBackgroundInverted)",un="var(--colorSubtleBackground)",vo="var(--colorSubtleBackgroundHover)",mt="var(--colorSubtleBackgroundPressed)",pn="var(--colorSubtleBackgroundSelected)",ql="var(--colorSubtleBackgroundLightAlphaHover)",Gl="var(--colorSubtleBackgroundLightAlphaPressed)",Wl="var(--colorSubtleBackgroundLightAlphaSelected)",ge="var(--colorTransparentBackground)",ir="var(--colorTransparentBackgroundHover)",sr="var(--colorTransparentBackgroundPressed)",bn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",pi="var(--colorBackgroundOverlay)",bi="var(--colorBrandBackground)",gn="var(--colorBrandBackgroundHover)",fn="var(--colorBrandBackgroundPressed)",Xl="var(--colorBrandBackgroundSelected)",vt="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Ht="var(--colorCompoundBrandBackgroundPressed)",mn="var(--colorBrandBackgroundStatic)",Ul="var(--colorBrandBackground2)",Le="var(--colorNeutralStrokeAccessible)",$t="var(--colorNeutralStrokeAccessibleHover)",yt="var(--colorNeutralStrokeAccessiblePressed)",je="var(--colorNeutralStroke1)",Lt="var(--colorNeutralStroke1Hover)",$o="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",Kl="var(--colorNeutralStroke3)",Yl="var(--colorNeutralStrokeOnBrand2)",vn="var(--colorBrandStroke1)",gi="var(--colorBrandStroke2)",xt="var(--colorCompoundBrandStroke)",Ql="var(--colorCompoundBrandStrokeHover)",$n="var(--colorCompoundBrandStrokePressed)",we="var(--colorNeutralStrokeDisabled)",J="var(--colorTransparentStroke)",fi="var(--colorTransparentStrokeInteractive)",mi="var(--colorStrokeFocus1)",Ce="var(--colorStrokeFocus2)",Zl="var(--colorNeutralShadowAmbient)",Jl="var(--colorNeutralShadowKey)",yn="var(--colorPaletteRedBackground1)",ec="var(--colorPaletteRedBackground2)",xn="var(--colorPaletteRedBackground3)",kn="var(--colorPaletteRedBorder1)",vi="var(--colorPaletteRedBorder2)",wn="var(--colorPaletteRedForeground1)",tc="var(--colorPaletteRedForeground2)",Cn="var(--colorPaletteRedForeground3)",Sn="var(--colorPaletteGreenBackground1)",In="var(--colorPaletteGreenBackground3)",oc="var(--colorPaletteGreenBorder1)",rc="var(--colorPaletteGreenBorder2)",ic="var(--colorPaletteGreenForeground1)",sc="var(--colorPaletteGreenForeground2)",nc="var(--colorPaletteGreenForeground3)",Pn="var(--colorPaletteDarkOrangeBackground1)",zn="var(--colorPaletteDarkOrangeBackground3)",Tn="var(--colorPaletteDarkOrangeBorder1)",ac="var(--colorPaletteDarkOrangeForeground1)",Bn="var(--colorPaletteDarkOrangeForeground3)",lc="var(--colorPaletteYellowBackground1)",cc="var(--colorPaletteYellowBackground3)",dc="var(--colorPaletteYellowBorder1)",$i="var(--colorPaletteYellowForeground2)",On="var(--colorPaletteMarigoldBackground2)",hc="var(--colorPaletteMarigoldBackground3)",uc="var(--colorPaletteMarigoldForeground2)",pc="var(--colorPaletteAnchorBackground2)",bc="var(--colorPaletteAnchorForeground2)",gc="var(--colorPaletteBeigeBackground2)",fc="var(--colorPaletteBeigeForeground2)",mc="var(--colorPaletteBlueBackground2)",vc="var(--colorPaletteBlueForeground2)",$c="var(--colorPaletteBrassBackground2)",yc="var(--colorPaletteBrassForeground2)",xc="var(--colorPaletteBrownBackground2)",kc="var(--colorPaletteBrownForeground2)",wc="var(--colorPaletteCornflowerBackground2)",Cc="var(--colorPaletteCornflowerForeground2)",Sc="var(--colorPaletteCranberryBackground2)",Ic="var(--colorPaletteCranberryForeground2)",Pc="var(--colorPaletteDarkGreenBackground2)",zc="var(--colorPaletteDarkGreenForeground2)",Tc="var(--colorPaletteDarkRedBackground2)",Bc="var(--colorPaletteDarkRedForeground2)",Oc="var(--colorPaletteForestBackground2)",Ac="var(--colorPaletteForestForeground2)",_c="var(--colorPaletteGoldBackground2)",Ec="var(--colorPaletteGoldForeground2)",Nc="var(--colorPaletteGrapeBackground2)",Fc="var(--colorPaletteGrapeForeground2)",Mc="var(--colorPaletteLavenderBackground2)",Dc="var(--colorPaletteLavenderForeground2)",Vc="var(--colorPaletteLightTealBackground2)",Hc="var(--colorPaletteLightTealForeground2)",Lc="var(--colorPaletteLilacBackground2)",jc="var(--colorPaletteLilacForeground2)",Rc="var(--colorPaletteMagentaBackground2)",qc="var(--colorPaletteMagentaForeground2)",Gc="var(--colorPaletteMinkBackground2)",Wc="var(--colorPaletteMinkForeground2)",Xc="var(--colorPaletteNavyBackground2)",Uc="var(--colorPaletteNavyForeground2)",Kc="var(--colorPalettePeachBackground2)",Yc="var(--colorPalettePeachForeground2)",Qc="var(--colorPalettePinkBackground2)",Zc="var(--colorPalettePinkForeground2)",Jc="var(--colorPalettePlatinumBackground2)",ed="var(--colorPalettePlatinumForeground2)",td="var(--colorPalettePlumBackground2)",od="var(--colorPalettePlumForeground2)",rd="var(--colorPalettePumpkinBackground2)",id="var(--colorPalettePumpkinForeground2)",sd="var(--colorPalettePurpleBackground2)",nd="var(--colorPalettePurpleForeground2)",ad="var(--colorPaletteRoyalBlueBackground2)",ld="var(--colorPaletteRoyalBlueForeground2)",cd="var(--colorPaletteSeafoamBackground2)",dd="var(--colorPaletteSeafoamForeground2)",hd="var(--colorPaletteSteelBackground2)",ud="var(--colorPaletteSteelForeground2)",pd="var(--colorPaletteTealBackground2)",bd="var(--colorPaletteTealForeground2)",nr="var(--borderRadiusNone)",Oe="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",An="var(--borderRadiusLarge)",_n="var(--borderRadiusXLarge)",fe="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",gd="var(--fontFamilyMonospace)",fd="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",M="var(--fontSizeBase200)",B="var(--fontSizeBase300)",ue="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",ar="var(--fontSizeBase600)",En="var(--fontSizeHero700)",Nn="var(--fontSizeHero800)",Fn="var(--fontSizeHero900)",Mn="var(--fontSizeHero1000)",_="var(--fontWeightRegular)",md="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",lr="var(--fontWeightBold)",cr="var(--lineHeightBase100)",X="var(--lineHeightBase200)",A="var(--lineHeightBase300)",me="var(--lineHeightBase400)",dr="var(--lineHeightBase500)",Dn="var(--lineHeightBase600)",Vn="var(--lineHeightHero700)",Hn="var(--lineHeightHero800)",Ln="var(--lineHeightHero900)",jn="var(--lineHeightHero1000)",yi="var(--shadow2)",hr="var(--shadow4)",vd="var(--shadow8)",xi="var(--shadow16)",$d="var(--shadow28)",Rn="var(--shadow64)",T="var(--strokeWidthThin)",ve="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",ki="var(--strokeWidthThickest)",R="var(--spacingHorizontalXXS)",pe="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Re="var(--spacingHorizontalS)",ne="var(--spacingHorizontalMNudge)",ae="var(--spacingHorizontalM)",yd="var(--spacingHorizontalL)",xd="var(--spacingHorizontalXL)",wi="var(--spacingHorizontalXXL)",Ci="var(--spacingVerticalNone)",Rt="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",qe="var(--spacingVerticalSNudge)",q="var(--spacingVerticalS)",Gt="var(--spacingVerticalMNudge)",kd="var(--spacingVerticalM)",ur="var(--spacingVerticalL)",kt="var(--spacingVerticalXXL)",wd="var(--spacingVerticalXXXL)",Si="var(--durationUltraFast)",pr="var(--durationFaster)",br="var(--durationNormal)",Ii="var(--durationGentle)",qn="var(--durationSlow)",Gn="var(--durationSlower)",gr="var(--durationUltraSlow)",Cd="var(--curveAccelerateMax)",wt="var(--curveAccelerateMid)",Sd="var(--curveAccelerateMin)",Pi="var(--curveDecelerateMax)",Ct="var(--curveDecelerateMid)",Id="var(--curveDecelerateMin)",Wn="var(--curveEasyEaseMax)",fr="var(--curveEasyEase)",zi="var(--curveLinear)",Pd=u`
|
|
2
|
+
${k("block")}
|
|
3
|
+
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${ae} ${ne};border-radius:${C};font-family:${v};font-size:${B};font-weight:${_};line-height:${A};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${ge};border:none;box-sizing:border-box;color:${P};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Re};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${ae}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Re};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Oe};outline:none;border:2px solid ${mi};box-shadow:inset 0 0 0 1px ${Ce}}:host([disabled]) .button{color:${S}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${A}}:host([size='small']) .heading{font-size:${M};line-height:${X}}:host([size='large']) .heading{font-size:${ue};line-height:${me}}:host([size='extra-large']) .heading{font-size:${jt};line-height:${dr}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Re};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${ae}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ne} ${ae}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,zd=b.partial(`<svg
|
|
5
|
+
width="20"
|
|
6
|
+
height="20"
|
|
7
|
+
viewBox="0 0 20 20"
|
|
8
|
+
fill="none"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
class="default-marker-collapsed"
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
>
|
|
13
|
+
<path
|
|
14
|
+
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
/>
|
|
17
|
+
</svg>`),Td=b.partial(`<svg
|
|
18
|
+
width="20"
|
|
19
|
+
height="20"
|
|
20
|
+
viewBox="0 0 20 20"
|
|
21
|
+
fill="none"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
class="default-marker-expanded"
|
|
24
|
+
aria-hidden="true"
|
|
25
|
+
>
|
|
26
|
+
<path
|
|
27
|
+
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
28
|
+
fill="currentColor"
|
|
29
|
+
/>
|
|
30
|
+
</svg>`);function Bd(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${V("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${He(o)}<slot name="marker-expanded">${he(o.expandedIcon)}</slot><slot name="marker-collapsed">${he(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Od=Bd({collapsedIcon:zd,expandedIcon:Td}),Ad=fo.compose({name:`${p.prefix}-accordion-item`,template:Od,styles:Pd});Ad.define(p.registry);const Ti={single:"single",multi:"multi"};var _d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,Xn=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ed(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&_d(e,t,i),i};class Bi extends ${constructor(){super(...arguments),this.expandmode=Ti.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t instanceof Ye&&(t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded"))}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof Ye&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===Ti.single){this.setSingleExpandMode(r);return}r?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof Ye&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ti.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{r instanceof Ye&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton.removeAttribute("aria-disabled")))})}}Xn([a({attribute:"expand-mode"})],Bi.prototype,"expandmode",2),Xn([g],Bi.prototype,"slottedAccordionItems",2);const Nd=u`
|
|
31
|
+
${k("flex")}
|
|
32
|
+
|
|
33
|
+
:host{flex-direction:column;width:100%;contain:content}`;function Fd(){return b`<template><slot ${H({property:"slottedAccordionItems",filter:gt()})}></slot></template>`}const Md=Fd(),Dd=Bi.compose({name:`${p.prefix}-accordion`,template:Md,styles:Nd});Dd.define(p.registry);const Un=new Map;function z(o){return Un.get(o)??Un.set(o,an?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!an){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Oi=new WeakMap;function Kn(o,e){if(!o||!e)return!1;if(Oi.has(o))return Oi.get(o).has(e);const t=new Set(Object.values(o));return Oi.set(o,t),t.has(e)}function St(o,e="",t="",r,i=""){y(o,`${i}${e}`,!1),(!r||Kn(r,t))&&y(o,`${i}${t}`,!0)}const Vd={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},Hd={circular:"circular",rounded:"rounded",square:"square"},Ld={small:"small",medium:"medium",large:"large"},mr={submit:"submit",reset:"reset",button:"button"},jd=Vd,Rd=Hd,qd=Ld,Gd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Wd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,st=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wd(e,t,i),i};class Ge extends ${constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Gd){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===bo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}st([a],Ge.prototype,"download",2),st([a],Ge.prototype,"href",2),st([a],Ge.prototype,"hreflang",2),st([a],Ge.prototype,"ping",2),st([a],Ge.prototype,"referrerpolicy",2),st([a],Ge.prototype,"rel",2),st([a],Ge.prototype,"target",2),st([a],Ge.prototype,"type",2);var Ud=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,vr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ud(e,t,i),i};class Wt extends Ge{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){St(this.elementInternals,e,t,jd)}shapeChanged(e,t){St(this.elementInternals,e,t,Rd)}sizeChanged(e,t){St(this.elementInternals,e,t,qd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}vr([a],Wt.prototype,"appearance",2),vr([a],Wt.prototype,"shape",2),vr([a],Wt.prototype,"size",2),vr([a({attribute:"icon-only",mode:"boolean"})],Wt.prototype,"iconOnly",2),Ke(Wt,Ue);const Yn=u`
|
|
34
|
+
${k("inline-flex")}
|
|
35
|
+
|
|
36
|
+
:host{--icon-spacing:${ee};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${I};color:${P};border:${T} solid ${je};padding:0 ${ae};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${D};line-height:${A};transition-duration:${pr};transition-property:background,border,color;transition-timing-function:${fr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${tr};color:${di};border-color:${Lt}}:host(:hover:active){background-color:${or};border-color:${$o};color:${Il};outline-style:none}:host(:focus-visible){border-color:${J};outline:${ve} solid ${J};box-shadow:${hr},0 0 0 2px ${Ce}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${pe};min-height:24px;min-width:64px;padding:0 ${Re};border-radius:${Oe};font-size:${M};line-height:${X};font-weight:${_}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${An};padding:0 ${yd};font-size:${ue};line-height:${me}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${fe}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${nr}}:host([appearance='primary']){background-color:${bi};color:${Qe};border-color:transparent}:host([appearance='primary']:hover){background-color:${gn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Qe}}:host([appearance='primary']:hover:active){background-color:${fn}}:host([appearance='primary']:focus-visible){border-color:${Qe};box-shadow:${yi},0 0 0 2px ${Ce}}:host([appearance='outline']){background-color:${ge}}:host([appearance='outline']:hover){background-color:${ir}}:host([appearance='outline']:hover:active){background-color:${sr}}:host([appearance='subtle']){background-color:${un};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${vo};color:${Mt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${mt};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${Jo}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${er}}:host([appearance='transparent']){background-color:${ge};color:${Ie}}:host([appearance='transparent']:hover){background-color:${ir};color:${Jo}}:host([appearance='transparent']:hover:active){background-color:${sr};color:${er}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,$r=u`
|
|
37
|
+
${Yn}
|
|
38
|
+
|
|
39
|
+
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${it};border-color:${we};color:${S};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ge}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${ge};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${ge}}`.withBehaviors(Z(u`
|
|
40
|
+
:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),Yd=u`
|
|
41
|
+
${Yn}
|
|
42
|
+
|
|
43
|
+
::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(u`
|
|
44
|
+
:host{border-color:LinkText;color:LinkText}`));function Qd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${He(o)}<span class="content" part="content"><slot></slot></span>${rt(o)}</template>`}const Zd=Qd(),Jd=Wt.compose({name:`${p.prefix}-anchor-button`,template:Zd,styles:Yd});Jd.define(p.registry);const eh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,th=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,oh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,rh=/\s+/g,ih=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function sh(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function nh(o){return o=o.replace(eh,""),o=o.replace(th,""),o=o.replace(rh," "),o=o.trim(),o}function ah(o,e,t){return!o||(o=nh(o),ih.test(o)||!t?.allowPhoneInitials&&oh.test(o))?"":sh(o,e,t?.firstInitialOnly)}var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Qn=(o,e,t,r)=>{for(var i=r>1?void 0:r?ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lh(e,t,i),i};class Ai extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}}Qn([a],Ai.prototype,"name",2),Qn([a],Ai.prototype,"initials",2);const Zn={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Jn={neutral:"neutral",brand:"brand",colorful:"colorful",...Zn};var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Xt=(o,e,t,r)=>{for(var i=r>1?void 0:r?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&dh(e,t,i),i};const nt=class ts extends Ai{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials??ah(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Jn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?ts.colors[ph(this.name??"")%ts.colors.length]:this.color??Jn.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};nt.colors=Object.values(Zn),Xt([a],nt.prototype,"active",2),Xt([a],nt.prototype,"shape",2),Xt([a],nt.prototype,"appearance",2),Xt([a({converter:Q})],nt.prototype,"size",2),Xt([a],nt.prototype,"color",2),Xt([a({attribute:"color-id"})],nt.prototype,"colorId",2);let uh=nt;const ph=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e},at={fastOutSlowInMax:Pi,fastOutSlowInMid:Ct,fastOutSlowInMin:Id,slowOutFastInMax:Cd,slowOutFastInMid:wt,slowOutFastInMin:Sd,fastEase:Wn,normalEase:fr,nullEasing:zi},bh=u`
|
|
45
|
+
${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${D};font-size:${B};border-radius:${fe};color:${ie};background-color:${rr};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${fe}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${T}) ${I}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ve}) ${I}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${xo};font-weight:${_}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${M}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ue}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${jt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${ar}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Oe}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${An}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${_n}}:host([data-color='brand']){color:${cn};background-color:${mn}}:host([data-color='dark-red']){color:${Bc};background-color:${Tc}}:host([data-color='cranberry']){color:${Ic};background-color:${Sc}}:host([data-color='red']){color:${tc};background-color:${ec}}:host([data-color='pumpkin']){color:${id};background-color:${rd}}:host([data-color='peach']){color:${Yc};background-color:${Kc}}:host([data-color='marigold']){color:${uc};background-color:${On}}:host([data-color='gold']){color:${Ec};background-color:${_c}}:host([data-color='brass']){color:${yc};background-color:${$c}}:host([data-color='brown']){color:${kc};background-color:${xc}}:host([data-color='forest']){color:${Ac};background-color:${Oc}}:host([data-color='seafoam']){color:${dd};background-color:${cd}}:host([data-color='dark-green']){color:${zc};background-color:${Pc}}:host([data-color='light-teal']){color:${Hc};background-color:${Vc}}:host([data-color='teal']){color:${bd};background-color:${pd}}:host([data-color='steel']){color:${ud};background-color:${hd}}:host([data-color='blue']){color:${vc};background-color:${mc}}:host([data-color='royal-blue']){color:${ld};background-color:${ad}}:host([data-color='cornflower']){color:${Cc};background-color:${wc}}:host([data-color='navy']){color:${Uc};background-color:${Xc}}:host([data-color='lavender']){color:${Dc};background-color:${Mc}}:host([data-color='purple']){color:${nd};background-color:${sd}}:host([data-color='grape']){color:${Fc};background-color:${Nc}}:host([data-color='lilac']){color:${jc};background-color:${Lc}}:host([data-color='pink']){color:${Zc};background-color:${Qc}}:host([data-color='magenta']){color:${qc};background-color:${Rc}}:host([data-color='plum']){color:${od};background-color:${td}}:host([data-color='beige']){color:${fc};background-color:${gc}}:host([data-color='mink']){color:${Wc};background-color:${Gc}}:host([data-color='platinum']){color:${ed};background-color:${Jc}}:host([data-color='anchor']){color:${bc};background-color:${pc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${gr},${pr};transition-delay:${at.fastEase},${at.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${gr}),${Gn};transition-delay:${at.fastEase}),${at.nullEasing})}:host([active])::before{box-shadow:${vd};border-style:solid;border-color:${mn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ve});border-width:${ve}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ki});border-width:${ki}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${hr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${xi}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${$d}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${gr},${pr};transition-delay:${at.fastOutSlowInMin},${at.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${gr},${Gn};transition-delay:${at.fastOutSlowInMin},${at.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,gh=b`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function fh(){return b`<slot>${o=>o.name||o.initials?o.generateInitials():gh}</slot><slot name="badge"></slot>`}const mh=fh(),vh=uh.compose({name:`${p.prefix}-avatar`,template:mh,styles:bh});vh.define(p.registry);const $h={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},yh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var xh=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,yr=(o,e,t,r)=>{for(var i=r>1?void 0:r?kh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&xh(e,t,i),i};class Ut extends ${constructor(){super(...arguments),this.appearance=$h.filled,this.color=yh.brand}}yr([a],Ut.prototype,"appearance",2),yr([a],Ut.prototype,"color",2),yr([a],Ut.prototype,"shape",2),yr([a],Ut.prototype,"size",2),Ke(Ut,Ue);const ea=u.partial`
|
|
46
|
+
${k("inline-flex")} :host {
|
|
18
47
|
position: relative;
|
|
19
48
|
box-sizing: border-box;
|
|
20
49
|
align-items: center;
|
|
21
50
|
justify-content: center;
|
|
22
|
-
font-family: ${
|
|
23
|
-
font-weight: ${
|
|
24
|
-
font-size: ${
|
|
25
|
-
line-height: ${
|
|
51
|
+
font-family: ${v};
|
|
52
|
+
font-weight: ${D};
|
|
53
|
+
font-size: ${M};
|
|
54
|
+
line-height: ${X};
|
|
26
55
|
min-width: 20px;
|
|
27
56
|
height: 20px;
|
|
28
|
-
padding-inline: calc(${
|
|
29
|
-
border-radius: ${
|
|
30
|
-
border-color: ${
|
|
31
|
-
background-color: ${
|
|
32
|
-
color: ${
|
|
57
|
+
padding-inline: calc(${pe} + ${R});
|
|
58
|
+
border-radius: ${fe};
|
|
59
|
+
border-color: ${J};
|
|
60
|
+
background-color: ${bi};
|
|
61
|
+
color: ${Qe};
|
|
33
62
|
contain: content;
|
|
34
63
|
}
|
|
35
64
|
|
|
@@ -45,11 +74,11 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
45
74
|
bottom: 0;
|
|
46
75
|
right: 0;
|
|
47
76
|
border-style: solid;
|
|
48
|
-
border-width: ${
|
|
77
|
+
border-width: ${T};
|
|
49
78
|
border-color: inherit;
|
|
50
79
|
border-radius: inherit;
|
|
51
80
|
}
|
|
52
|
-
`,
|
|
81
|
+
`,ta=u.partial`
|
|
53
82
|
:host([size='tiny']) {
|
|
54
83
|
width: 6px;
|
|
55
84
|
height: 6px;
|
|
@@ -75,9 +104,9 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
75
104
|
:host([size='small']) {
|
|
76
105
|
min-width: 16px;
|
|
77
106
|
height: 16px;
|
|
78
|
-
font-size: ${
|
|
79
|
-
line-height: ${
|
|
80
|
-
padding-inline: calc(${
|
|
107
|
+
font-size: ${xo};
|
|
108
|
+
line-height: ${cr};
|
|
109
|
+
padding-inline: calc(${R} + ${R});
|
|
81
110
|
}
|
|
82
111
|
:host([size='small']) ::slotted(svg) {
|
|
83
112
|
font-size: 12px;
|
|
@@ -85,9 +114,9 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
85
114
|
:host([size='large']) {
|
|
86
115
|
min-width: 24px;
|
|
87
116
|
height: 24px;
|
|
88
|
-
font-size: ${
|
|
89
|
-
line-height: ${
|
|
90
|
-
padding-inline: calc(${
|
|
117
|
+
font-size: ${M};
|
|
118
|
+
line-height: ${X};
|
|
119
|
+
padding-inline: calc(${pe} + ${R});
|
|
91
120
|
}
|
|
92
121
|
:host([size='large']) ::slotted(svg) {
|
|
93
122
|
font-size: 16px;
|
|
@@ -95,254 +124,449 @@ function e(e,t,o,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPro
|
|
|
95
124
|
:host([size='extra-large']) {
|
|
96
125
|
min-width: 32px;
|
|
97
126
|
height: 32px;
|
|
98
|
-
font-size: ${
|
|
99
|
-
line-height: ${
|
|
100
|
-
padding-inline: calc(${
|
|
127
|
+
font-size: ${M};
|
|
128
|
+
line-height: ${X};
|
|
129
|
+
padding-inline: calc(${ee} + ${R});
|
|
101
130
|
}
|
|
102
131
|
:host([size='extra-large']) ::slotted(svg) {
|
|
103
132
|
font-size: 20px;
|
|
104
133
|
}
|
|
105
|
-
`,
|
|
134
|
+
`,oa=u.partial`
|
|
106
135
|
:host([color='danger']) {
|
|
107
|
-
background-color: ${
|
|
108
|
-
color: ${
|
|
136
|
+
background-color: ${xn};
|
|
137
|
+
color: ${Qe};
|
|
109
138
|
}
|
|
110
139
|
|
|
111
140
|
:host([color='important']) {
|
|
112
|
-
background-color: ${
|
|
113
|
-
color: ${
|
|
141
|
+
background-color: ${P};
|
|
142
|
+
color: ${I};
|
|
114
143
|
}
|
|
115
144
|
|
|
116
145
|
:host([color='informative']) {
|
|
117
|
-
background-color: ${
|
|
118
|
-
color: ${
|
|
146
|
+
background-color: ${Rl};
|
|
147
|
+
color: ${ie};
|
|
119
148
|
}
|
|
120
149
|
|
|
121
150
|
:host([color='severe']) {
|
|
122
|
-
background-color: ${
|
|
123
|
-
color: ${
|
|
151
|
+
background-color: ${zn};
|
|
152
|
+
color: ${Qe};
|
|
124
153
|
}
|
|
125
154
|
|
|
126
155
|
:host([color='subtle']) {
|
|
127
|
-
background-color: ${
|
|
128
|
-
color: ${
|
|
156
|
+
background-color: ${I};
|
|
157
|
+
color: ${P};
|
|
129
158
|
}
|
|
130
159
|
|
|
131
160
|
:host([color='success']) {
|
|
132
|
-
background-color: ${
|
|
133
|
-
color: ${
|
|
161
|
+
background-color: ${In};
|
|
162
|
+
color: ${Qe};
|
|
134
163
|
}
|
|
135
164
|
|
|
136
165
|
:host([color='warning']) {
|
|
137
|
-
background-color: ${
|
|
138
|
-
color: ${
|
|
166
|
+
background-color: ${cc};
|
|
167
|
+
color: ${Ll};
|
|
139
168
|
}
|
|
140
|
-
`,
|
|
169
|
+
`,ra=u.partial`
|
|
141
170
|
:host([appearance='ghost']) {
|
|
142
|
-
color: ${
|
|
171
|
+
color: ${ui};
|
|
143
172
|
background-color: initial;
|
|
144
173
|
}
|
|
145
174
|
|
|
146
175
|
:host([appearance='ghost'][color='danger']) {
|
|
147
|
-
color: ${
|
|
176
|
+
color: ${Cn};
|
|
148
177
|
}
|
|
149
178
|
|
|
150
179
|
:host([appearance='ghost'][color='important']) {
|
|
151
|
-
color: ${
|
|
180
|
+
color: ${P};
|
|
152
181
|
}
|
|
153
182
|
|
|
154
183
|
:host([appearance='ghost'][color='informative']) {
|
|
155
|
-
color: ${
|
|
184
|
+
color: ${ie};
|
|
156
185
|
}
|
|
157
186
|
|
|
158
187
|
:host([appearance='ghost'][color='severe']) {
|
|
159
|
-
color: ${
|
|
188
|
+
color: ${Bn};
|
|
160
189
|
}
|
|
161
190
|
|
|
162
191
|
:host([appearance='ghost'][color='subtle']) {
|
|
163
|
-
color: ${
|
|
192
|
+
color: ${ft};
|
|
164
193
|
}
|
|
165
194
|
|
|
166
195
|
:host([appearance='ghost'][color='success']) {
|
|
167
|
-
color: ${
|
|
196
|
+
color: ${nc};
|
|
168
197
|
}
|
|
169
198
|
|
|
170
199
|
:host([appearance='ghost'][color='warning']) {
|
|
171
|
-
color: ${
|
|
200
|
+
color: ${$i};
|
|
172
201
|
}
|
|
173
|
-
`,
|
|
202
|
+
`,wh=u.partial`
|
|
174
203
|
:host([appearance='outline']) {
|
|
175
204
|
border-color: currentColor;
|
|
176
|
-
color: ${
|
|
205
|
+
color: ${ui};
|
|
177
206
|
background-color: initial;
|
|
178
207
|
}
|
|
179
208
|
|
|
180
209
|
:host([appearance='outline'][color='danger']) {
|
|
181
|
-
color: ${
|
|
210
|
+
color: ${Cn};
|
|
182
211
|
}
|
|
183
212
|
|
|
184
213
|
:host([appearance='outline'][color='important']) {
|
|
185
|
-
color: ${
|
|
186
|
-
border-color: ${
|
|
214
|
+
color: ${ie};
|
|
215
|
+
border-color: ${Le};
|
|
187
216
|
}
|
|
188
217
|
|
|
189
218
|
:host([appearance='outline'][color='informative']) {
|
|
190
|
-
color: ${
|
|
191
|
-
border-color: ${
|
|
219
|
+
color: ${ie};
|
|
220
|
+
border-color: ${yo};
|
|
192
221
|
}
|
|
193
222
|
|
|
194
223
|
:host([appearance='outline'][color='severe']) {
|
|
195
|
-
color: ${
|
|
224
|
+
color: ${Bn};
|
|
196
225
|
}
|
|
197
226
|
|
|
198
227
|
:host([appearance='outline'][color='subtle']) {
|
|
199
|
-
color: ${
|
|
228
|
+
color: ${cn};
|
|
200
229
|
}
|
|
201
230
|
|
|
202
231
|
:host([appearance='outline'][color='success']) {
|
|
203
|
-
color: ${
|
|
232
|
+
color: ${sc};
|
|
204
233
|
}
|
|
205
234
|
|
|
206
235
|
:host([appearance='outline'][color='warning']) {
|
|
207
|
-
color: ${
|
|
236
|
+
color: ${$i};
|
|
208
237
|
}
|
|
209
|
-
`,
|
|
238
|
+
`,Ch=u.partial`
|
|
210
239
|
:host([appearance='tint']) {
|
|
211
|
-
background-color: ${
|
|
212
|
-
color: ${
|
|
213
|
-
border-color: ${
|
|
240
|
+
background-color: ${Ul};
|
|
241
|
+
color: ${Hl};
|
|
242
|
+
border-color: ${gi};
|
|
214
243
|
}
|
|
215
244
|
|
|
216
245
|
:host([appearance='tint'][color='danger']) {
|
|
217
|
-
background-color: ${
|
|
218
|
-
color: ${
|
|
219
|
-
border-color: ${
|
|
246
|
+
background-color: ${yn};
|
|
247
|
+
color: ${wn};
|
|
248
|
+
border-color: ${kn};
|
|
220
249
|
}
|
|
221
250
|
|
|
222
251
|
:host([appearance='tint'][color='important']) {
|
|
223
|
-
background-color: ${
|
|
224
|
-
color: ${
|
|
225
|
-
border-color: ${
|
|
252
|
+
background-color: ${ie};
|
|
253
|
+
color: ${I};
|
|
254
|
+
border-color: ${J};
|
|
226
255
|
}
|
|
227
256
|
|
|
228
257
|
:host([appearance='tint'][color='informative']) {
|
|
229
|
-
background-color: ${
|
|
230
|
-
color: ${
|
|
231
|
-
border-color: ${
|
|
258
|
+
background-color: ${jl};
|
|
259
|
+
color: ${ie};
|
|
260
|
+
border-color: ${yo};
|
|
232
261
|
}
|
|
233
262
|
|
|
234
263
|
:host([appearance='tint'][color='severe']) {
|
|
235
264
|
background-color: ${Pn};
|
|
236
|
-
color: ${
|
|
237
|
-
border-color: ${
|
|
265
|
+
color: ${ac};
|
|
266
|
+
border-color: ${Tn};
|
|
238
267
|
}
|
|
239
268
|
|
|
240
269
|
:host([appearance='tint'][color='subtle']) {
|
|
241
|
-
background-color: ${
|
|
242
|
-
color: ${
|
|
243
|
-
border-color: ${
|
|
270
|
+
background-color: ${I};
|
|
271
|
+
color: ${ie};
|
|
272
|
+
border-color: ${yo};
|
|
244
273
|
}
|
|
245
274
|
|
|
246
275
|
:host([appearance='tint'][color='success']) {
|
|
247
|
-
background-color: ${
|
|
248
|
-
color: ${
|
|
249
|
-
border-color: ${
|
|
276
|
+
background-color: ${Sn};
|
|
277
|
+
color: ${ic};
|
|
278
|
+
border-color: ${rc};
|
|
250
279
|
}
|
|
251
280
|
|
|
252
281
|
:host([appearance='tint'][color='warning']) {
|
|
253
|
-
background-color: ${
|
|
254
|
-
color: ${
|
|
255
|
-
border-color: ${
|
|
256
|
-
}
|
|
257
|
-
`,
|
|
258
|
-
|
|
259
|
-
${
|
|
260
|
-
${
|
|
261
|
-
${
|
|
262
|
-
|
|
263
|
-
${
|
|
264
|
-
`,yd=ld.compose({name:Tt.prefix+"-badge",template:dd,styles:vd}),kd="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,xd=new WeakMap;function $d(e){const t=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return kd}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=e?t.concat(Array.from(e)):t;return Object.freeze(o)}return d}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),k.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),k.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!kd)return null;let e=xd.get(this);return e||(e=this.attachInternals(),xd.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,o){this.elementInternals?this.elementInternals.setValidity(e,t,o):"string"==typeof t&&this.proxy.setCustomValidity(t)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){switch(e.key){case"Enter":if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}}stopPropagation(e){e.stopPropagation()}};return Ee({mode:"boolean"})(t.prototype,"disabled"),Ee({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),Ee({attribute:"current-value"})(t.prototype,"currentValue"),Ee(t.prototype,"name"),Ee({mode:"boolean"})(t.prototype,"required"),C(t.prototype,"value"),t}function wd(e){class t extends($d(e)){}class o extends t{constructor(...e){super(e),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(e,t){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==e&&this.$emit("change"),this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return Ee({attribute:"checked",mode:"boolean"})(o.prototype,"checkedAttribute"),Ee({attribute:"current-checked",converter:Ne})(o.prototype,"currentChecked"),C(o.prototype,"defaultChecked"),C(o.prototype,"checked"),o}class Bd extends ot{}class Cd extends($d(Bd)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Sd="submit",Pd="reset";class Td extends Cd{constructor(){super(...arguments),this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),t===Sd&&this.addEventListener("click",this.handleSubmission),e===Sd&&this.removeEventListener("click",this.handleSubmission),t===Pd&&this.addEventListener("click",this.handleFormReset),e===Pd&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type)}}e([Ee({mode:"boolean"})],Td.prototype,"autofocus",void 0),e([Ee({attribute:"form"})],Td.prototype,"formId",void 0),e([Ee],Td.prototype,"formaction",void 0),e([Ee],Td.prototype,"formenctype",void 0),e([Ee],Td.prototype,"formmethod",void 0),e([Ee({mode:"boolean"})],Td.prototype,"formnovalidate",void 0),e([Ee],Td.prototype,"formtarget",void 0),e([Ee],Td.prototype,"type",void 0),e([C],Td.prototype,"defaultSlottedContent",void 0);class Id{}function Fd(e={}){return xe`<button class="control" part="control" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" form="${e=>e.formId}" formaction="${e=>e.formaction}" formenctype="${e=>e.formenctype}" formmethod="${e=>e.formmethod}" ?formnovalidate="${e=>e.formnovalidate}" formtarget="${e=>e.formtarget}" name="${e=>e.name}" type="${e=>e.type}" value="${e=>e.value}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-expanded="${e=>e.ariaExpanded}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-pressed="${e=>e.ariaPressed}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${we("control")}>${gt(e)}<span class="content" part="content"><slot ${Ae("defaultSlottedContent")}></slot></span>${pt(e)}</button>`}e([Ee({attribute:"aria-expanded"})],Id.prototype,"ariaExpanded",void 0),e([Ee({attribute:"aria-pressed"})],Id.prototype,"ariaPressed",void 0),bt(Id,dt),bt(Td,ut,Id);var Ad=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,Nd=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?zd(t,o):t,n=e.length-1;n>=0;n--)(i=e[n])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Ad(t,o,a),a};class Ld extends Td{constructor(){super(...arguments),this.iconOnly=!1,this.disabledFocusable=!1,this.handleDisabledFocusableClick=e=>{e&&this.disabledFocusable&&e.stopImmediatePropagation()}}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.disabledFocusable?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleDisabledFocusableClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleDisabledFocusableClick)}}Nd([Ee],Ld.prototype,"appearance",2),Nd([Ee],Ld.prototype,"shape",2),Nd([Ee],Ld.prototype,"size",2),Nd([Ee({attribute:"icon-only",mode:"boolean"})],Ld.prototype,"iconOnly",2),Nd([Ee({attribute:"disabled-focusable",mode:"boolean"})],Ld.prototype,"disabledFocusable",2);const Od=Fd(),Dd=Ld.compose({name:Tt.prefix+"-button",template:Od,styles:Sc,shadowOptions:{delegatesFocus:!0}});class Ed extends ot{}class Rd extends(wd(Ed)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Md extends Rd{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.disabled)switch(e.key){case" ":this.toggleChecked()}},this.clickHandler=e=>{this.disabled||this.toggleChecked()},this.proxy.setAttribute("type","checkbox")}toggleChecked(){this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked}}e([C],Md.prototype,"defaultSlottedNodes",void 0),e([C],Md.prototype,"indeterminate",void 0);var Hd=Object.defineProperty,Vd=Object.getOwnPropertyDescriptor,jd=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Vd(t,o):t,n=e.length-1;n>=0;n--)(i=e[n])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Hd(t,o,a),a};class _d extends Md{}jd([Ee],_d.prototype,"shape",2),jd([Ee],_d.prototype,"size",2),jd([Ee({attribute:"label-position"})],_d.prototype,"labelPosition",2);const Gd={circular:"circular",square:"square"},qd={medium:"medium",large:"large"},Xd={before:"before",after:"after"},Wd=function(e={}){return xe`<template role="checkbox" aria-checked="${e=>e.indeterminate?"mixed":e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${ht(e.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ht(e.indeterminateIndicator)}</slot></div><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Ae("defaultSlottedNodes")}></slot></label></template>`}({checkedIndicator:xe.partial('\n <div class="checked-indicator">\n <svg fill="currentColor" \n aria-hidden="true" \n width="1em" \n height="1em" \n viewBox="0 0 12 12" \n xmlns="http://www.w3.org/2000/svg">\n <path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor">\n </path>\n </svg>\n </div>\n'),indeterminateIndicator:xe.partial('\n <div class="indeterminate-indicator"></div>\n')}),Ud=_`
|
|
265
|
-
${
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
${
|
|
275
|
-
${
|
|
276
|
-
${
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
${
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
${
|
|
285
|
-
|
|
286
|
-
:host{font-family:${To};font-size:${co};line-height:${ko};font-weight:${Ao};color:${wr}}.asterisk{color:${un};margin-left:${Vo}}:host([size='small']){font-size:${lo};line-height:${yo}}:host([size='large']){font-size:${ho};line-height:${xo};font-weight:${No}}:host([weight='semibold']){font-weight:${No}}:host([disabled]),:host([disabled]) .asterisk{color:${jr}}`;const Hh=xe`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${e=>!e.required}">*</span>`,Vh=Rh.compose({name:Tt.prefix+"-label",template:Hh,styles:Mh});class jh extends Ld{}const _h=yc,Gh=kc,qh=xc,Xh=Fd({end:xe.partial('<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path></svg>')}),Wh=jh.compose({name:Tt.prefix+"-menu-button",template:Xh,styles:Sc,shadowOptions:{delegatesFocus:!0}}),Uh={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};function Yh(e){return e.split("-")[1]}function Kh(e){return"y"===e?"height":"width"}function Qh(e){return e.split("-")[0]}function Zh(e){return["top","bottom"].includes(Qh(e))?"x":"y"}function Jh(e,t,o){let{reference:r,floating:i}=e;const a=r.x+r.width/2-i.width/2,n=r.y+r.height/2-i.height/2,s=Zh(t),l=Kh(s),c=r[l]/2-i[l]/2,d="x"===s;let h;switch(Qh(t)){case"top":h={x:a,y:r.y-i.height};break;case"bottom":h={x:a,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:n};break;case"left":h={x:r.x-i.width,y:n};break;default:h={x:r.x,y:r.y}}switch(Yh(t)){case"start":h[s]-=c*(o&&d?-1:1);break;case"end":h[s]+=c*(o&&d?-1:1)}return h}function eu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function tu(e,t){var o;void 0===t&&(t={});const{x:r,y:i,platform:a,rects:n,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=t,g=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),b=s[u?"floating"===h?"reference":"floating":h],f=eu(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(b)))||o?b:b.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),m="floating"===h?{...n.floating,x:r,y:i}:n.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},k=eu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:v,strategy:l}):m);return{top:(f.top-k.top+g.top)/y.y,bottom:(k.bottom-f.bottom+g.bottom)/y.y,left:(f.left-k.left+g.left)/y.x,right:(k.right-f.right+g.right)/y.x}}const ou=Math.min,ru=Math.max;function iu(e,t,o){return ru(e,ou(t,o))}["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const au={left:"right",right:"left",bottom:"top",top:"bottom"};function nu(e){return e.replace(/left|right|bottom|top/g,e=>au[e])}function su(e,t,o){void 0===o&&(o=!1);const r=Yh(e),i=Zh(e),a=Kh(i);let n="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(n=nu(n)),{main:n,cross:nu(n)}}const lu={start:"end",end:"start"};function cu(e){return e.replace(/start|end/g,e=>lu[e])}const du=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o;const{placement:r,middlewareData:i,rects:a,initialPlacement:n,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...b}=e,f=Qh(r),m=Qh(n)===n,v=await(null==s.isRTL?void 0:s.isRTL(l.floating)),y=h||(m||!g?[nu(n)]:function(e){const t=nu(e);return[cu(e),t,cu(t)]}(n));h||"none"===p||y.push(...function(e,t,o,r){const i=Yh(e);let a=function(e,t,o){const r=["left","right"],i=["right","left"],a=["top","bottom"],n=["bottom","top"];switch(e){case"top":case"bottom":return o?t?i:r:t?r:i;case"left":case"right":return t?a:n;default:return[]}}(Qh(e),"start"===o,r);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(cu)))),a}(n,g,p,v));const k=[n,...y],x=await tu(t,b),$=[];let w=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&$.push(x[f]),d){const{main:e,cross:t}=su(r,a,v);$.push(x[e],x[t])}if(w=[...w,{placement:r,overflows:$}],!$.every(e=>e<=0)){var B,C;const e=((null==(B=i.flip)?void 0:B.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let o=null==(C=w.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!o)switch(u){case"bestFit":{var S;const e=null==(S=w.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(o=e);break}case"initialPlacement":o=n}if(r!==o)return{reset:{placement:o}}}return{}}}};const hu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:n=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=e,c={x:o,y:r},d=await tu(t,l),h=Zh(Qh(i)),u=function(e){return"x"===e?"y":"x"}(h);let p=c[h],g=c[u];if(a){const e="y"===h?"bottom":"right";p=iu(p+d["y"===h?"top":"left"],p,p-d[e])}if(n){const e="y"===u?"bottom":"right";g=iu(g+d["y"===u?"top":"left"],g,g-d[e])}const b=s.fn({...t,[h]:p,[u]:g});return{...b,data:{x:b.x-o,y:b.y-r}}}}},uu=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:o,rects:r,platform:i,elements:a}=t,{apply:n=(()=>{}),...s}=e,l=await tu(t,s),c=Qh(o),d=Yh(o),h="x"===Zh(o),{width:u,height:p}=r.floating;let g,b;"top"===c||"bottom"===c?(g=c,b=d===(await(null==i.isRTL?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=c,g="end"===d?"top":"bottom");const f=p-l[g],m=u-l[b];let v=f,y=m;if(h?y=ou(u-l.right-l.left,m):v=ou(p-l.bottom-l.top,f),!t.middlewareData.shift&&!d){const e=ru(l.left,0),t=ru(l.right,0),o=ru(l.top,0),r=ru(l.bottom,0);h?y=u-2*(0!==e||0!==t?e+t:ru(l.left,l.right)):v=p-2*(0!==o||0!==r?o+r:ru(l.top,l.bottom))}await n({...t,availableWidth:y,availableHeight:v});const k=await i.getDimensions(a.floating);return u!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function pu(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gu(e){return pu(e).getComputedStyle(e)}const bu=Math.min,fu=Math.max,mu=Math.round;function vu(e){const t=gu(e);let o=parseFloat(t.width),r=parseFloat(t.height);const i=e.offsetWidth,a=e.offsetHeight,n=mu(o)!==i||mu(r)!==a;return n&&(o=i,r=a),{width:o,height:r,fallback:n}}function yu(e){return Bu(e)?(e.nodeName||"").toLowerCase():""}let ku;function xu(){if(ku)return ku;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ku=e.brands.map(e=>e.brand+"/"+e.version).join(" "),ku):navigator.userAgent}function $u(e){return e instanceof pu(e).HTMLElement}function wu(e){return e instanceof pu(e).Element}function Bu(e){return e instanceof pu(e).Node}function Cu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pu(e).ShadowRoot||e instanceof ShadowRoot)}function Su(e){const{overflow:t,overflowX:o,overflowY:r,display:i}=gu(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!["inline","contents"].includes(i)}function Pu(e){return["table","td","th"].includes(yu(e))}function Tu(e){const t=/firefox/i.test(xu()),o=gu(e),r=o.backdropFilter||o.WebkitBackdropFilter;return"none"!==o.transform||"none"!==o.perspective||!!r&&"none"!==r||t&&"filter"===o.willChange||t&&!!o.filter&&"none"!==o.filter||["transform","perspective"].some(e=>o.willChange.includes(e))||["paint","layout","strict","content"].some(e=>{const t=o.contain;return null!=t&&t.includes(e)})}function Iu(){return/^((?!chrome|android).)*safari/i.test(xu())}function Fu(e){return["html","body","#document"].includes(yu(e))}function Au(e){return wu(e)?e:e.contextElement}const zu={x:1,y:1};function Nu(e){const t=Au(e);if(!$u(t))return zu;const o=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=vu(t);let n=(a?mu(o.width):o.width)/r,s=(a?mu(o.height):o.height)/i;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}function Lu(e,t,o,r){var i,a;void 0===t&&(t=!1),void 0===o&&(o=!1);const n=e.getBoundingClientRect(),s=Au(e);let l=zu;t&&(r?wu(r)&&(l=Nu(r)):l=Nu(e));const c=s?pu(s):window,d=Iu()&&o;let h=(n.left+(d&&(null==(i=c.visualViewport)?void 0:i.offsetLeft)||0))/l.x,u=(n.top+(d&&(null==(a=c.visualViewport)?void 0:a.offsetTop)||0))/l.y,p=n.width/l.x,g=n.height/l.y;if(s){const e=pu(s),t=r&&wu(r)?pu(r):r;let o=e.frameElement;for(;o&&r&&t!==e;){const e=Nu(o),t=o.getBoundingClientRect(),r=getComputedStyle(o);t.x+=(o.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(o.clientTop+parseFloat(r.paddingTop))*e.y,h*=e.x,u*=e.y,p*=e.x,g*=e.y,h+=t.x,u+=t.y,o=pu(o).frameElement}}return{width:p,height:g,top:u,right:h+p,bottom:u+g,left:h,x:h,y:u}}function Ou(e){return((Bu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Du(e){return wu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Eu(e){return Lu(Ou(e)).left+Du(e).scrollLeft}function Ru(e){if("html"===yu(e))return e;const t=e.assignedSlot||e.parentNode||Cu(e)&&e.host||Ou(e);return Cu(t)?t.host:t}function Mu(e,t){var o;void 0===t&&(t=[]);const r=function e(t){const o=Ru(t);return Fu(o)?o.ownerDocument.body:$u(o)&&Su(o)?o:e(o)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=pu(r);return i?t.concat(a,a.visualViewport||[],Su(r)?r:[]):t.concat(r,Mu(r))}function Hu(e,t,o){let r;if("viewport"===t)r=function(e,t){const o=pu(e),r=Ou(e),i=o.visualViewport;let a=r.clientWidth,n=r.clientHeight,s=0,l=0;if(i){a=i.width,n=i.height;const e=Iu();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:n,x:s,y:l}}(e,o);else if("document"===t)r=function(e){const t=Ou(e),o=Du(e),r=e.ownerDocument.body,i=fu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=fu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let n=-o.scrollLeft+Eu(e);const s=-o.scrollTop;return"rtl"===gu(r).direction&&(n+=fu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:n,y:s}}(Ou(e));else if(wu(t))r=function(e,t){const o=Lu(e,!0,"fixed"===t),r=o.top+e.clientTop,i=o.left+e.clientLeft,a=$u(e)?Nu(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,o);else{const o={...t};if(Iu()){var i,a;const t=pu(e);o.x-=(null==(i=t.visualViewport)?void 0:i.offsetLeft)||0,o.y-=(null==(a=t.visualViewport)?void 0:a.offsetTop)||0}r=o}return eu(r)}function Vu(e,t){return $u(e)&&"fixed"!==gu(e).position?t?t(e):e.offsetParent:null}function ju(e,t){const o=pu(e);let r=Vu(e,t);for(;r&&Pu(r)&&"static"===gu(r).position;)r=Vu(r,t);return r&&("html"===yu(r)||"body"===yu(r)&&"static"===gu(r).position&&!Tu(r))?o:r||function(e){let t=Ru(e);for(;$u(t)&&!Fu(t);){if(Tu(t))return t;t=Ru(t)}return null}(e)||o}function _u(e,t,o){const r=$u(t),i=Ou(t),a=Lu(e,!0,"fixed"===o,t);let n={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==o)if(("body"!==yu(t)||Su(i))&&(n=Du(t)),$u(t)){const e=Lu(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Eu(i));return{x:a.left+n.scrollLeft-s.x,y:a.top+n.scrollTop-s.y,width:a.width,height:a.height}}const Gu={getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:i}=e;const a=[..."clippingAncestors"===o?function(e,t){const o=t.get(e);if(o)return o;let r=Mu(e).filter(e=>wu(e)&&"body"!==yu(e)),i=null;const a="fixed"===gu(e).position;let n=a?Ru(e):e;for(;wu(n)&&!Fu(n);){const e=gu(n),t=Tu(n);(a?t||i:t||"static"!==e.position||!i||!["absolute","fixed"].includes(i.position))?i=e:r=r.filter(e=>e!==n),n=Ru(n)}return t.set(e,r),r}(t,this._c):[].concat(o),r],n=a[0],s=a.reduce((e,o)=>{const r=Hu(t,o,i);return e.top=fu(r.top,e.top),e.right=bu(r.right,e.right),e.bottom=bu(r.bottom,e.bottom),e.left=fu(r.left,e.left),e},Hu(t,n,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:o,strategy:r}=e;const i=$u(o),a=Ou(o);if(o===a)return t;let n={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==yu(o)||Su(a))&&(n=Du(o)),$u(o))){const e=Lu(o);s=Nu(o),l.x=e.x+o.clientLeft,l.y=e.y+o.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-n.scrollLeft*s.x+l.x,y:t.y*s.y-n.scrollTop*s.y+l.y}},isElement:wu,getDimensions:function(e){return $u(e)?vu(e):e.getBoundingClientRect()},getOffsetParent:ju,getDocumentElement:Ou,getScale:Nu,async getElementRects(e){let{reference:t,floating:o,strategy:r}=e;const i=this.getOffsetParent||ju,a=this.getDimensions;return{reference:_u(t,await i(o),r),floating:{x:0,y:0,...await a(o)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===gu(e).direction};const qu=(e,t,o)=>{const r=new Map,i={platform:Gu,...o},a={...i.platform,_c:r};return(async(e,t,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:n}=o,s=a.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(t));let c=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=Jh(c,r,l),u=r,p={},g=0;for(let o=0;o<s.length;o++){const{name:a,fn:b}=s[o],{x:f,y:m,data:v,reset:y}=await b({x:d,y:h,initialPlacement:r,placement:u,strategy:i,middlewareData:p,rects:c,platform:n,elements:{reference:e,floating:t}});d=null!=f?f:d,h=null!=m?m:h,p={...p,[a]:{...p[a],...v}},y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(u=y.placement),y.rects&&(c=!0===y.rects?await n.getElementRects({reference:e,floating:t,strategy:i}):y.rects),({x:d,y:h}=Jh(c,u,l))),o=-1)}return{x:d,y:h,placement:u,strategy:i,middlewareData:p}})(e,t,{...i,platform:a})};class Xu extends ot{constructor(){super(...arguments),this.role=Uh.menuitem,this.checked=!1,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expanded&&this.submenu?this.submenu.focus():this.expandAndFocus(),!1;case"Escape":if(this.expanded)return this.closeSubMenu(),!1;break;case"ArrowLeft":if(this.expanded)return this.closeSubMenu(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.submenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.closeSubMenu=()=>{this.expanded=!1,this.focus()},this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Uh.menuitemcheckbox:this.checked=!this.checked;break;case Uh.menuitem:if(this.hasSubmenu){this.expandAndFocus();break}this.$emit("change");break;case Uh.menuitemradio:this.checked||(this.checked=!0)}}}expandedChanged(e,t){this.$fastController.isConnected&&(t&&this.submenu&&this.updateSubmenu(),this.$emit("expanded-change",this,{bubbles:!1}))}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}get hasSubmenu(){return!!this.submenu}slottedSubmenuChanged(e,t){t.length&&(this.submenu=t[0],this.updateSubmenu())}disconnectedCallback(){var e;null===(e=this.cleanup)||void 0===e||e.call(this),super.disconnectedCallback()}updateSubmenu(){var e;null===(e=this.cleanup)||void 0===e||e.call(this),this.submenu&&this.expanded&&k.enqueue(()=>{this.cleanup=function(e,t,o,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:n=!0,animationFrame:s=!1}=r,l=i&&!s,c=l||a?[...wu(e)?Mu(e):e.contextElement?Mu(e.contextElement):[],...Mu(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",o,{passive:!0}),a&&e.addEventListener("resize",o)});let d,h=null;if(n){let r=!0;h=new ResizeObserver(()=>{r||o(),r=!1}),wu(e)&&!s&&h.observe(e),wu(e)||!e.contextElement||s||h.observe(e.contextElement),h.observe(t)}let u=s?Lu(e):null;return s&&function t(){const r=Lu(e);!u||r.x===u.x&&r.y===u.y&&r.width===u.width&&r.height===u.height||o(),u=r,d=requestAnimationFrame(t)}(),o(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",o),a&&e.removeEventListener("resize",o)}),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(d)}}(this,this.submenuContainer,()=>t(this,void 0,void 0,(function*(){const e=["left-start","right-start"],{x:t,y:o}=yield qu(this,this.submenuContainer,{middleware:[hu(),uu({apply:({availableWidth:t,rects:o})=>{t<o.floating.width&&e.push("bottom-end","top-end")}}),du({fallbackPlacements:e})],placement:"right-start",strategy:"fixed"});Object.assign(this.submenuContainer.style,{left:t+"px",position:"fixed",top:o+"px"}),this.submenuLoaded()})))})}}e([Ee({mode:"boolean"})],Xu.prototype,"disabled",void 0),e([Ee({mode:"boolean"})],Xu.prototype,"expanded",void 0),e([Ee],Xu.prototype,"role",void 0),e([Ee({mode:"boolean"})],Xu.prototype,"checked",void 0),e([Ee({mode:"boolean"})],Xu.prototype,"hidden",void 0),e([C],Xu.prototype,"slottedSubmenu",void 0),e([C],Xu.prototype,"submenu",void 0),bt(Xu,ut);class Wu extends Xu{}const Uu=xe.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),Yu=function(e={}){return xe`<template aria-haspopup="${e=>e.hasSubmenu?"menu":void 0}" aria-checked="${e=>e.role!==Uh.menuitem?e.checked:void 0}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}">${Se(e=>e.role===Uh.menuitemcheckbox,xe`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${ht(e.checkboxIndicator)}</slot></span></div>`)} ${Se(e=>e.role===Uh.menuitemradio,xe`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${ht(e.radioIndicator)}</slot></span></div>`)}</div>${gt(e)}<span class="content" part="content"><slot></slot></span>${pt(e)} ${Se(e=>e.hasSubmenu,xe`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${ht(e.expandCollapseGlyph)}</slot></span></div>`)}<span ?hidden="${e=>!e.expanded}" class="submenu-container" part="submenu-container" ${we("submenuContainer")}><slot name="submenu" ${Ae({property:"slottedSubmenu",filter:Te("[role='menu']")})}></slot></span></template>`}({checkboxIndicator:Uu,expandCollapseGlyph:xe.partial('<svg fill="currentColor" class="___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>'),radioIndicator:Uu}),Ku=_`
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
${
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
${
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
${
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
${
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
${
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
${
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
${
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
${
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
:host([aria-pressed='true']) .control,:host([aria-pressed='true'][appearance='primary']) .control,:host([aria-pressed='true'][appearance='subtle']) .control,:host([aria-pressed='true'][appearance='outline']) .control,:host([aria-pressed='true'][appearance='transparent']) .control,:host([aria-pressed='true'][appearance='transparent']) .control{background:SelectedItem;color:SelectedItemText}`)),db=ib.compose({name:Tt.prefix+"-toggle-button",template:lb,styles:cb,shadowOptions:{delegatesFocus:!0}}),hb=Object.keys(cc),ub=e=>{for(const t of hb)cc[t].withDefault(e[t])},pb=(e,t)=>{for(const o of hb)cc[o].setValueFor(e,t[o])};export{kt as Accordion,Nt as AccordionItem,Ot as AccordionItemExpandIconPosition,Lt as AccordionItemSize,vc as AnchorButton,$c as AnchorButtonAppearance,Tc as AnchorButtonDefinition,wc as AnchorButtonShape,Bc as AnchorButtonSize,Cc as AnchorButtonTemplate,qc as Avatar,Oc as AvatarActive,Ec as AvatarAppearance,Mc as AvatarColor,Jc as AvatarDefinition,Rc as AvatarNamedColor,Dc as AvatarShape,Hc as AvatarSize,Zc as AvatarStyles,Uc as AvatarTemplate,ld as Badge,td as BadgeAppearance,od as BadgeColor,yd as BadgeDefinition,rd as BadgeShape,id as BadgeSize,vd as BadgeStyles,dd as BadgeTemplate,Ld as Button,yc as ButtonAppearance,Dd as ButtonDefinition,kc as ButtonShape,xc as ButtonSize,Sc as ButtonStyles,Od as ButtonTemplate,_d as Checkbox,Yd as CheckboxDefinition,Xd as CheckboxLabelPosition,Gd as CheckboxShape,qd as CheckboxSize,Ud as CheckboxStyles,Wd as CheckboxTemplate,Kd as CompoundButton,Qd as CompoundButtonAppearance,oh as CompoundButtonDefinition,Zd as CompoundButtonShape,Jd as CompoundButtonSize,th as CompoundButtonStyles,eh as CompoundButtonTemplate,nh as CounterBadge,sh as CounterBadgeAppearance,lh as CounterBadgeColor,ph as CounterBadgeDefinition,ch as CounterBadgeShape,dh as CounterBadgeSize,uh as CounterBadgeStyles,hh as CounterBadgeTemplate,kh as Divider,xh as DividerAlignContent,$h as DividerAppearance,Ch as DividerDefinition,bh as DividerOrientation,gh as DividerRole,Bh as DividerStyles,wh as DividerTemplate,Tt as FluentDesignSystem,Ih as Image,Lh as ImageDefinition,Fh as ImageFit,Ah as ImageShape,Nh as ImageStyles,zh as ImageTemplate,Rh as Label,Vh as LabelDefinition,Mh as LabelStyles,Hh as LabelTemplate,jh as MenuButton,_h as MenuButtonAppearance,Wh as MenuButtonDefinition,Gh as MenuButtonShape,qh as MenuButtonSize,Sc as MenuButtonStyles,Xh as MenuButtonTemplate,Wu as MenuItem,Qu as MenuItemDefinition,Uh as MenuItemRole,Ku as MenuItemStyles,Yu as MenuItemTemplate,Ju as MenuList,op as MenuListDefinition,tp as MenuListStyles,ep as MenuListTemplate,lp as ProgressBar,gp as ProgressBarDefinition,dp as ProgressBarShape,up as ProgressBarStyles,pp as ProgressBarTemplate,cp as ProgressBarThickness,hp as ProgressBarValidationState,vp as Radio,xp as RadioDefinition,Sp as RadioGroup,Ip as RadioGroupDefinition,$p as RadioGroupOrientation,Pp as RadioGroupStyles,Tp as RadioGroupTemplate,yp as RadioStyles,kp as RadioTemplate,Rp as Slider,jp as SliderDefinition,Np as SliderOrientation,Mp as SliderSize,Hp as SliderStyles,Vp as SliderTemplate,Wp as Spinner,Up as SpinnerAppearance,Zp as SpinnerDefinition,Yp as SpinnerSize,Qp as SpinnerStyles,Kp as SpinnerTemplate,ig as Switch,lg as SwitchDefinition,ag as SwitchLabelPosition,sg as SwitchStyles,ng as SwitchTemplate,xg as Tab,Bg as TabDefinition,Sg as TabPanel,Ig as TabPanelDefinition,Tg as TabPanelStyles,Pg as TabPanelTemplate,wg as TabStyles,$g as TabTemplate,fg as Tabs,hg as TabsAppearance,yg as TabsDefinition,cg as TabsOrientation,ug as TabsSize,vg as TabsStyles,mg as TabsTemplate,Ng as Text,Eg as TextAlign,Hg as TextDefinition,Og as TextFont,Yg as TextInput,Qg as TextInputAppearance,Kg as TextInputControlSize,eb as TextInputDefinition,Jg as TextInputStyles,Zg as TextInputTemplate,_g as TextInputType,Lg as TextSize,Mg as TextStyles,Rg as TextTemplate,Dg as TextWeight,ib as ToggleButton,ab as ToggleButtonAppearance,db as ToggleButtonDefinition,nb as ToggleButtonShape,sb as ToggleButtonSize,cb as ToggleButtonStyles,lb as ToggleButtonTemplate,It as accordionDefinition,uc as accordionItemDefinition,dc as accordionItemStyles,hc as accordionItemTemplate,Pt as accordionStyles,xt as accordionTemplate,no as borderRadiusCircular,io as borderRadiusLarge,ro as borderRadiusMedium,to as borderRadiusNone,oo as borderRadiusSmall,ao as borderRadiusXLarge,ua as colorBackgroundOverlay,ga as colorBrandBackground,$a as colorBrandBackground2,ba as colorBrandBackgroundHover,wa as colorBrandBackgroundInverted,Ba as colorBrandBackgroundInvertedHover,Ca as colorBrandBackgroundInvertedPressed,Sa as colorBrandBackgroundInvertedSelected,fa as colorBrandBackgroundPressed,ma as colorBrandBackgroundSelected,xa as colorBrandBackgroundStatic,ti as colorBrandForeground1,oi as colorBrandForeground2,bi as colorBrandForegroundInverted,fi as colorBrandForegroundInvertedHover,mi as colorBrandForegroundInvertedPressed,Gr as colorBrandForegroundLink,qr as colorBrandForegroundLinkHover,Xr as colorBrandForegroundLinkPressed,Wr as colorBrandForegroundLinkSelected,vi as colorBrandForegroundOnLight,yi as colorBrandForegroundOnLightHover,ki as colorBrandForegroundOnLightPressed,xi as colorBrandForegroundOnLightSelected,sn as colorBrandShadowAmbient,ln as colorBrandShadowKey,ja as colorBrandStroke1,_a as colorBrandStroke2,va as colorCompoundBrandBackground,ya as colorCompoundBrandBackgroundHover,ka as colorCompoundBrandBackgroundPressed,Zr as colorCompoundBrandForeground1,Jr as colorCompoundBrandForeground1Hover,ei as colorCompoundBrandForeground1Pressed,Ga as colorCompoundBrandStroke,qa as colorCompoundBrandStrokeHover,Xa as colorCompoundBrandStrokePressed,$i as colorNeutralBackground1,wi as colorNeutralBackground1Hover,Bi as colorNeutralBackground1Pressed,Ci as colorNeutralBackground1Selected,Si as colorNeutralBackground2,Pi as colorNeutralBackground2Hover,Ti as colorNeutralBackground2Pressed,Ii as colorNeutralBackground2Selected,Fi as colorNeutralBackground3,Ai as colorNeutralBackground3Hover,zi as colorNeutralBackground3Pressed,Ni as colorNeutralBackground3Selected,Li as colorNeutralBackground4,Oi as colorNeutralBackground4Hover,Di as colorNeutralBackground4Pressed,Ei as colorNeutralBackground4Selected,Ri as colorNeutralBackground5,Mi as colorNeutralBackground5Hover,Hi as colorNeutralBackground5Pressed,Vi as colorNeutralBackground5Selected,ji as colorNeutralBackground6,na as colorNeutralBackgroundDisabled,_i as colorNeutralBackgroundInverted,sa as colorNeutralBackgroundInvertedDisabled,Gi as colorNeutralBackgroundStatic,wr as colorNeutralForeground1,Br as colorNeutralForeground1Hover,Cr as colorNeutralForeground1Pressed,Sr as colorNeutralForeground1Selected,ri as colorNeutralForeground1Static,Pr as colorNeutralForeground2,Ar as colorNeutralForeground2BrandHover,zr as colorNeutralForeground2BrandPressed,Nr as colorNeutralForeground2BrandSelected,Tr as colorNeutralForeground2Hover,Ur as colorNeutralForeground2Link,Yr as colorNeutralForeground2LinkHover,Kr as colorNeutralForeground2LinkPressed,Qr as colorNeutralForeground2LinkSelected,Ir as colorNeutralForeground2Pressed,Fr as colorNeutralForeground2Selected,Lr as colorNeutralForeground3,Rr as colorNeutralForeground3BrandHover,Mr as colorNeutralForeground3BrandPressed,Hr as colorNeutralForeground3BrandSelected,Or as colorNeutralForeground3Hover,Dr as colorNeutralForeground3Pressed,Er as colorNeutralForeground3Selected,Vr as colorNeutralForeground4,jr as colorNeutralForegroundDisabled,ai as colorNeutralForegroundInverted,ci as colorNeutralForegroundInverted2,_r as colorNeutralForegroundInvertedDisabled,ni as colorNeutralForegroundInvertedHover,hi as colorNeutralForegroundInvertedLink,ui as colorNeutralForegroundInvertedLinkHover,pi as colorNeutralForegroundInvertedLinkPressed,gi as colorNeutralForegroundInvertedLinkSelected,si as colorNeutralForegroundInvertedPressed,li as colorNeutralForegroundInvertedSelected,di as colorNeutralForegroundOnBrand,ii as colorNeutralForegroundStaticInverted,en as colorNeutralShadowAmbient,an as colorNeutralShadowAmbientDarker,on as colorNeutralShadowAmbientLighter,tn as colorNeutralShadowKey,nn as colorNeutralShadowKeyDarker,rn as colorNeutralShadowKeyLighter,la as colorNeutralStencil1,da as colorNeutralStencil1Alpha,ca as colorNeutralStencil2,ha as colorNeutralStencil2Alpha,Aa as colorNeutralStroke1,za as colorNeutralStroke1Hover,Na as colorNeutralStroke1Pressed,La as colorNeutralStroke1Selected,Oa as colorNeutralStroke2,Da as colorNeutralStroke3,Pa as colorNeutralStrokeAccessible,Ta as colorNeutralStrokeAccessibleHover,Ia as colorNeutralStrokeAccessiblePressed,Fa as colorNeutralStrokeAccessibleSelected,Wa as colorNeutralStrokeDisabled,Ua as colorNeutralStrokeInvertedDisabled,Ea as colorNeutralStrokeOnBrand,Ra as colorNeutralStrokeOnBrand2,Ma as colorNeutralStrokeOnBrand2Hover,Ha as colorNeutralStrokeOnBrand2Pressed,Va as colorNeutralStrokeOnBrand2Selected,ql as colorPaletteAnchorBackground2,Wl as colorPaletteAnchorBorderActive,Xl as colorPaletteAnchorForeground2,Dl as colorPaletteBeigeBackground2,Rl as colorPaletteBeigeBorderActive,El as colorPaletteBeigeForeground2,qn as colorPaletteBerryBackground1,Xn as colorPaletteBerryBackground2,Wn as colorPaletteBerryBackground3,Zn as colorPaletteBerryBorder1,Jn as colorPaletteBerryBorder2,Qn as colorPaletteBerryBorderActive,Un as colorPaletteBerryForeground1,Yn as colorPaletteBerryForeground2,Kn as colorPaletteBerryForeground3,rl as colorPaletteBlueBackground2,al as colorPaletteBlueBorderActive,il as colorPaletteBlueForeground2,Ns as colorPaletteBrassBackground2,Os as colorPaletteBrassBorderActive,Ls as colorPaletteBrassForeground2,Ds as colorPaletteBrownBackground2,Rs as colorPaletteBrownBorderActive,Es as colorPaletteBrownForeground2,cl as colorPaletteCornflowerBackground2,hl as colorPaletteCornflowerBorderActive,dl as colorPaletteCornflowerForeground2,xs as colorPaletteCranberryBackground2,ws as colorPaletteCranberryBorderActive,$s as colorPaletteCranberryForeground2,qs as colorPaletteDarkGreenBackground2,Ws as colorPaletteDarkGreenBorderActive,Xs as colorPaletteDarkGreenForeground2,Pn as colorPaletteDarkOrangeBackground1,Tn as colorPaletteDarkOrangeBackground2,In as colorPaletteDarkOrangeBackground3,Ln as colorPaletteDarkOrangeBorder1,On as colorPaletteDarkOrangeBorder2,Nn as colorPaletteDarkOrangeBorderActive,Fn as colorPaletteDarkOrangeForeground1,An as colorPaletteDarkOrangeForeground2,zn as colorPaletteDarkOrangeForeground3,vs as colorPaletteDarkRedBackground2,ks as colorPaletteDarkRedBorderActive,ys as colorPaletteDarkRedForeground2,Ms as colorPaletteForestBackground2,Vs as colorPaletteForestBorderActive,Hs as colorPaletteForestForeground2,Fs as colorPaletteGoldBackground2,zs as colorPaletteGoldBorderActive,As as colorPaletteGoldForeground2,xl as colorPaletteGrapeBackground2,wl as colorPaletteGrapeBorderActive,$l as colorPaletteGrapeForeground2,vn as colorPaletteGreenBackground1,yn as colorPaletteGreenBackground2,kn as colorPaletteGreenBackground3,Cn as colorPaletteGreenBorder1,Sn as colorPaletteGreenBorder2,Bn as colorPaletteGreenBorderActive,xn as colorPaletteGreenForeground1,$n as colorPaletteGreenForeground2,wn as colorPaletteGreenForeground3,Yl as colorPaletteGreenForegroundInverted,bl as colorPaletteLavenderBackground2,ml as colorPaletteLavenderBorderActive,fl as colorPaletteLavenderForeground2,es as colorPaletteLightGreenBackground1,ts as colorPaletteLightGreenBackground2,os as colorPaletteLightGreenBackground3,ss as colorPaletteLightGreenBorder1,ls as colorPaletteLightGreenBorder2,ns as colorPaletteLightGreenBorderActive,rs as colorPaletteLightGreenForeground1,is as colorPaletteLightGreenForeground2,as as colorPaletteLightGreenForeground3,Us as colorPaletteLightTealBackground2,Ks as colorPaletteLightTealBorderActive,Ys as colorPaletteLightTealForeground2,Bl as colorPaletteLilacBackground2,Sl as colorPaletteLilacBorderActive,Cl as colorPaletteLilacForeground2,Fl as colorPaletteMagentaBackground2,zl as colorPaletteMagentaBorderActive,Al as colorPaletteMagentaForeground2,cs as colorPaletteMarigoldBackground1,ds as colorPaletteMarigoldBackground2,hs as colorPaletteMarigoldBackground3,fs as colorPaletteMarigoldBorder1,ms as colorPaletteMarigoldBorder2,bs as colorPaletteMarigoldBorderActive,us as colorPaletteMarigoldForeground1,ps as colorPaletteMarigoldForeground2,gs as colorPaletteMarigoldForeground3,Ml as colorPaletteMinkBackground2,Vl as colorPaletteMinkBorderActive,Hl as colorPaletteMinkForeground2,ul as colorPaletteNavyBackground2,gl as colorPaletteNavyBorderActive,pl as colorPaletteNavyForeground2,Ps as colorPalettePeachBackground2,Is as colorPalettePeachBorderActive,Ts as colorPalettePeachForeground2,Pl as colorPalettePinkBackground2,Il as colorPalettePinkBorderActive,Tl as colorPalettePinkForeground2,jl as colorPalettePlatinumBackground2,Gl as colorPalettePlatinumBorderActive,_l as colorPalettePlatinumForeground2,Nl as colorPalettePlumBackground2,Ol as colorPalettePlumBorderActive,Ll as colorPalettePlumForeground2,Bs as colorPalettePumpkinBackground2,Ss as colorPalettePumpkinBorderActive,Cs as colorPalettePumpkinForeground2,vl as colorPalettePurpleBackground2,kl as colorPalettePurpleBorderActive,yl as colorPalettePurpleForeground2,cn as colorPaletteRedBackground1,dn as colorPaletteRedBackground2,hn as colorPaletteRedBackground3,fn as colorPaletteRedBorder1,mn as colorPaletteRedBorder2,bn as colorPaletteRedBorderActive,un as colorPaletteRedForeground1,pn as colorPaletteRedForeground2,gn as colorPaletteRedForeground3,Ul as colorPaletteRedForegroundInverted,nl as colorPaletteRoyalBlueBackground2,ll as colorPaletteRoyalBlueBorderActive,sl as colorPaletteRoyalBlueForeground2,js as colorPaletteSeafoamBackground2,Gs as colorPaletteSeafoamBorderActive,_s as colorPaletteSeafoamForeground2,el as colorPaletteSteelBackground2,ol as colorPaletteSteelBorderActive,tl as colorPaletteSteelForeground2,Qs as colorPaletteTealBackground2,Js as colorPaletteTealBorderActive,Zs as colorPaletteTealForeground2,Dn as colorPaletteYellowBackground1,En as colorPaletteYellowBackground2,Rn as colorPaletteYellowBackground3,_n as colorPaletteYellowBorder1,Gn as colorPaletteYellowBorder2,jn as colorPaletteYellowBorderActive,Mn as colorPaletteYellowForeground1,Hn as colorPaletteYellowForeground2,Vn as colorPaletteYellowForeground3,Kl as colorPaletteYellowForegroundInverted,pa as colorScrollbarOverlay,Za as colorStrokeFocus1,Ja as colorStrokeFocus2,qi as colorSubtleBackground,Xi as colorSubtleBackgroundHover,Zi as colorSubtleBackgroundInverted,Ji as colorSubtleBackgroundInvertedHover,ea as colorSubtleBackgroundInvertedPressed,ta as colorSubtleBackgroundInvertedSelected,Yi as colorSubtleBackgroundLightAlphaHover,Ki as colorSubtleBackgroundLightAlphaPressed,Qi as colorSubtleBackgroundLightAlphaSelected,Wi as colorSubtleBackgroundPressed,Ui as colorSubtleBackgroundSelected,oa as colorTransparentBackground,ra as colorTransparentBackgroundHover,ia as colorTransparentBackgroundPressed,aa as colorTransparentBackgroundSelected,Ya as colorTransparentStroke,Qa as colorTransparentStrokeDisabled,Ka as colorTransparentStrokeInteractive,gr as curveAccelerateMax,br as curveAccelerateMid,fr as curveAccelerateMin,mr as curveDecelerateMax,vr as curveDecelerateMid,yr as curveDecelerateMin,xr as curveEasyEase,kr as curveEasyEaseMax,$r as curveLinear,cr as durationFast,lr as durationFaster,dr as durationNormal,hr as durationSlow,ur as durationSlower,sr as durationUltraFast,pr as durationUltraSlow,To as fontFamilyBase,Io as fontFamilyMonospace,Fo as fontFamilyNumeric,so as fontSizeBase100,lo as fontSizeBase200,co as fontSizeBase300,ho as fontSizeBase400,uo as fontSizeBase500,po as fontSizeBase600,mo as fontSizeHero1000,go as fontSizeHero700,bo as fontSizeHero800,fo as fontSizeHero900,Lo as fontWeightBold,zo as fontWeightMedium,Ao as fontWeightRegular,No as fontWeightSemibold,vo as lineHeightBase100,yo as lineHeightBase200,ko as lineHeightBase300,xo as lineHeightBase400,$o as lineHeightBase500,wo as lineHeightBase600,Po as lineHeightHero1000,Bo as lineHeightHero700,Co as lineHeightHero800,So as lineHeightHero900,ub as setTheme,pb as setThemeFor,ec as shadow16,nc as shadow16Brand,Ql as shadow2,tc as shadow28,sc as shadow28Brand,rc as shadow2Brand,Zl as shadow4,ic as shadow4Brand,oc as shadow64,lc as shadow64Brand,Jl as shadow8,ac as shadow8Brand,Xo as spacingHorizontalL,qo as spacingHorizontalM,Go as spacingHorizontalMNudge,Mo as spacingHorizontalNone,_o as spacingHorizontalS,jo as spacingHorizontalSNudge,Wo as spacingHorizontalXL,Vo as spacingHorizontalXS,Uo as spacingHorizontalXXL,Ho as spacingHorizontalXXS,Yo as spacingHorizontalXXXL,rr as spacingVerticalL,or as spacingVerticalM,tr as spacingVerticalMNudge,Ko as spacingVerticalNone,er as spacingVerticalS,Jo as spacingVerticalSNudge,ir as spacingVerticalXL,Zo as spacingVerticalXS,ar as spacingVerticalXXL,Qo as spacingVerticalXXS,nr as spacingVerticalXXXL,Do as strokeWidthThick,Eo as strokeWidthThicker,Ro as strokeWidthThickest,Oo as strokeWidthThin};
|
|
282
|
+
background-color: ${lc};
|
|
283
|
+
color: ${$i};
|
|
284
|
+
border-color: ${dc};
|
|
285
|
+
}
|
|
286
|
+
`,ia=u.partial`
|
|
287
|
+
font-family: ${v};
|
|
288
|
+
font-size: ${B};
|
|
289
|
+
line-height: ${A};
|
|
290
|
+
font-weight: ${_};
|
|
291
|
+
`;u.partial`
|
|
292
|
+
font-family: ${v};
|
|
293
|
+
font-size: ${B};
|
|
294
|
+
line-height: ${A};
|
|
295
|
+
font-weight: ${D};
|
|
296
|
+
`,u.partial`
|
|
297
|
+
font-family: ${v};
|
|
298
|
+
font-size: ${B};
|
|
299
|
+
line-height: ${A};
|
|
300
|
+
font-weight: ${lr};
|
|
301
|
+
`;const Sh=u.partial`
|
|
302
|
+
font-family: ${v};
|
|
303
|
+
font-size: ${ue};
|
|
304
|
+
line-height: ${me};
|
|
305
|
+
font-weight: ${_};
|
|
306
|
+
`,sa=u.partial`
|
|
307
|
+
font-family: ${v};
|
|
308
|
+
font-size: ${M};
|
|
309
|
+
line-height: ${X};
|
|
310
|
+
font-weight: ${_};
|
|
311
|
+
`;u.partial`
|
|
312
|
+
font-family: ${v};
|
|
313
|
+
font-size: ${M};
|
|
314
|
+
line-height: ${X};
|
|
315
|
+
font-weight: ${D};
|
|
316
|
+
`,u.partial`
|
|
317
|
+
font-family: ${v};
|
|
318
|
+
font-size: ${M};
|
|
319
|
+
line-height: ${X};
|
|
320
|
+
font-weight: ${lr};
|
|
321
|
+
`,u.partial`
|
|
322
|
+
font-family: ${v};
|
|
323
|
+
font-size: ${xo};
|
|
324
|
+
line-height: ${cr};
|
|
325
|
+
font-weight: ${_};
|
|
326
|
+
`,u.partial`
|
|
327
|
+
font-family: ${v};
|
|
328
|
+
font-size: ${xo};
|
|
329
|
+
line-height: ${cr};
|
|
330
|
+
font-weight: ${D};
|
|
331
|
+
`;const Ih=u.partial`
|
|
332
|
+
font-family: ${v};
|
|
333
|
+
font-size: ${jt};
|
|
334
|
+
line-height: ${dr};
|
|
335
|
+
font-weight: ${D};
|
|
336
|
+
`;u.partial`
|
|
337
|
+
font-family: ${v};
|
|
338
|
+
font-size: ${ue};
|
|
339
|
+
line-height: ${me};
|
|
340
|
+
font-weight: ${D};
|
|
341
|
+
`,u.partial`
|
|
342
|
+
font-family: ${v};
|
|
343
|
+
font-size: ${ue};
|
|
344
|
+
line-height: ${me};
|
|
345
|
+
font-weight: ${lr};
|
|
346
|
+
`,u.partial`
|
|
347
|
+
font-family: ${v};
|
|
348
|
+
font-size: ${Nn};
|
|
349
|
+
line-height: ${Hn};
|
|
350
|
+
font-weight: ${D};
|
|
351
|
+
`,u.partial`
|
|
352
|
+
font-family: ${v};
|
|
353
|
+
font-size: ${En};
|
|
354
|
+
line-height: ${Vn};
|
|
355
|
+
font-weight: ${D};
|
|
356
|
+
`,u.partial`
|
|
357
|
+
font-family: ${v};
|
|
358
|
+
font-size: ${ar};
|
|
359
|
+
line-height: ${Dn};
|
|
360
|
+
font-weight: ${D};
|
|
361
|
+
`,u.partial`
|
|
362
|
+
font-family: ${v};
|
|
363
|
+
font-size: ${Fn};
|
|
364
|
+
line-height: ${Ln};
|
|
365
|
+
font-weight: ${D};
|
|
366
|
+
`,u.partial`
|
|
367
|
+
font-family: ${v};
|
|
368
|
+
font-size: ${Mn};
|
|
369
|
+
line-height: ${jn};
|
|
370
|
+
font-weight: ${D};
|
|
371
|
+
`;const Ph=u`
|
|
372
|
+
:host([shape='square']){border-radius:${nr}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Oe}}${Ch}
|
|
373
|
+
${wh}
|
|
374
|
+
${ra}
|
|
375
|
+
${oa}
|
|
376
|
+
${ta}
|
|
377
|
+
${ea}
|
|
378
|
+
`.withBehaviors(Z(u`
|
|
379
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function na(o={}){return b` ${He(o)}<slot>${he(o.defaultContent)}</slot>${rt(o)} `}const zh=na(),Th=Ut.compose({name:`${p.prefix}-badge`,template:zh,styles:Ph});Th.define(p.registry);var Bh=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,$e=(o,e,t,r)=>{for(var i=r>1?void 0:r?Oh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bh(e,t,i),i};class le extends ${constructor(){super(),this.disabledFocusable=!1,this.tabIndex=0,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==mr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===bo||e.key===Yo){this.click();return}return!0}press(){switch(this.type){case mr.reset:{this.resetForm();break}case mr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==mr.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}le.formAssociated=!0,$e([a({mode:"boolean"})],le.prototype,"autofocus",2),$e([g],le.prototype,"defaultSlottedContent",2),$e([a({mode:"boolean"})],le.prototype,"disabled",2),$e([a({attribute:"disabled-focusable",mode:"boolean"})],le.prototype,"disabledFocusable",2),$e([a({attribute:"tabindex",mode:"fromView",converter:Q})],le.prototype,"tabIndex",2),$e([a({attribute:"formaction"})],le.prototype,"formAction",2),$e([a({attribute:"form"})],le.prototype,"formAttribute",2),$e([a({attribute:"formenctype"})],le.prototype,"formEnctype",2),$e([a({attribute:"formmethod"})],le.prototype,"formMethod",2),$e([a({attribute:"formnovalidate",mode:"boolean"})],le.prototype,"formNoValidate",2),$e([a({attribute:"formtarget"})],le.prototype,"formTarget",2),$e([a],le.prototype,"name",2),$e([a],le.prototype,"type",2),$e([a],le.prototype,"value",2);var Ah=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,xr=(o,e,t,r)=>{for(var i=r>1?void 0:r?_h(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ah(e,t,i),i};class Ze extends le{constructor(){super(...arguments),this.iconOnly=!1}}xr([a],Ze.prototype,"appearance",2),xr([a],Ze.prototype,"shape",2),xr([a],Ze.prototype,"size",2),xr([a({attribute:"icon-only",mode:"boolean"})],Ze.prototype,"iconOnly",2),Ke(Ze,Ue);function _i(o={}){return b`<template tabindex="${e=>e.disabled?null:e.tabIndex??0}" @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${He(o)}<span class="content" part="content"><slot ${H("defaultSlottedContent")}></slot></span>${rt(o)}</template>`}const Eh=_i(),Nh=Ze.compose({name:`${p.prefix}-button`,template:Eh,styles:$r});Nh.define(p.registry);var Fh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,lt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fh(e,t,i),i};class Pe extends ${constructor(){super(...arguments),this.initialValue="on",this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0}keyupHandler(e){if(e.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,lt([a({mode:"boolean"})],Pe.prototype,"autofocus",2),lt([g],Pe.prototype,"disabled",2),lt([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),lt([a({attribute:"form"})],Pe.prototype,"formAttribute",2),lt([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),lt([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),lt([a],Pe.prototype,"name",2),lt([a({mode:"boolean"})],Pe.prototype,"required",2);var Dh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Ei=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dh(e,t,i),i};class kr extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Ei([g],kr.prototype,"indeterminate",2),Ei([a],kr.prototype,"shape",2),Ei([a],kr.prototype,"size",2);const Hh=z("active"),Lh=z("bad-input"),x=z("checked"),jh=z("custom-error"),Rh=z("description"),ye=z("disabled");z("error");const qh=z("flip-block"),Gh=z("focus-visible"),Wh=z("has-message"),It=z("indeterminate"),Kt=z("multiple"),Xh=z("open"),Uh=z("pattern-mismatch"),Kh=z("placeholder-shown"),N=z("pressed"),Yh=z("range-overflow"),Qh=z("range-underflow"),Ni=z("selected"),Zh=z("step-mismatch"),wr=z("submenu"),Jh=z("too-long"),eu=z("too-short"),tu=z("type-mismatch"),ou=z("user-invalid"),ru=z("valid"),iu=z("value-missing"),su=u`
|
|
380
|
+
${k("inline-flex")}
|
|
381
|
+
|
|
382
|
+
:host{--size:16px;background-color:${I};border-radius:${Oe};border:${T} solid ${Le};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${$t}}:host(:active){border-color:${yt}}:host(${x}:hover){background-color:${Vt};border-color:${Ql}}:host(${x}:active){background-color:${Ht};border-color:${$n}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ve} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}.indeterminate-indicator,.checked-indicator{color:${ft};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${It}){border-color:${xt}}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:${vt}}:host(${It}) .indeterminate-indicator{border-radius:${Oe};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${fe}}:host([disabled]),:host([disabled]${x}){background-color:${it};border-color:${we}}:host([disabled]){cursor:unset}:host([disabled]${It}) .indeterminate-indicator{background-color:${we}}:host([disabled]${x}) .checked-indicator{color:${we}}`.withBehaviors(Z(u`
|
|
383
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${It}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${It}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${It}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),nu=b.partial(`
|
|
384
|
+
<svg
|
|
385
|
+
fill="currentColor"
|
|
386
|
+
aria-hidden="true"
|
|
387
|
+
class="checked-indicator"
|
|
388
|
+
width="1em"
|
|
389
|
+
height="1em"
|
|
390
|
+
viewBox="0 0 12 12"
|
|
391
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
392
|
+
<path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
|
|
393
|
+
</svg>
|
|
394
|
+
`),au=b.partial(`
|
|
395
|
+
<span class="indeterminate-indicator"></span>
|
|
396
|
+
`);function lu(o={}){return b`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${he(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${he(o.indeterminateIndicator)}</slot></template>`}const cu=lu({checkedIndicator:nu,indeterminateIndicator:au}),du=kr.compose({name:`${p.prefix}-checkbox`,template:cu,styles:su});du.define(p.registry);class hu extends Ze{}const uu=u`
|
|
397
|
+
${$r}
|
|
398
|
+
|
|
399
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${A}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${M};font-weight:${_}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Mt}}:host(:active) ::slotted([slot='description']){color:${Dt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Qe}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
|
|
400
|
+
::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${Jo}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${er}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
401
|
+
::slotted([slot='description']){color:${S}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${pe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Re}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ue};line-height:${me}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`;function pu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${He(o)}<span class="content" part="content"><slot ${H("defaultSlottedContent")}></slot><slot name="description"></slot></span>${rt(o)}</template>`}const bu=pu(),gu=hu.compose({name:`${p.prefix}-compound-button`,template:bu,styles:uu});gu.define(p.registry);var fu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,ct=(o,e,t,r)=>{for(var i=r>1?void 0:r?mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fu(e,t,i),i};class We extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}ct([a],We.prototype,"appearance",2),ct([a],We.prototype,"color",2),ct([a],We.prototype,"shape",2),ct([a],We.prototype,"size",2),ct([a({converter:Q})],We.prototype,"count",2),ct([a({attribute:"overflow-count",converter:Q})],We.prototype,"overflowCount",2),ct([a({attribute:"show-zero",mode:"boolean"})],We.prototype,"showZero",2),ct([a({mode:"boolean"})],We.prototype,"dot",2),Ke(We,Ue);const vu=u`
|
|
402
|
+
:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Oe}}${ta}
|
|
403
|
+
${oa}
|
|
404
|
+
${ra}
|
|
405
|
+
${ea}
|
|
406
|
+
|
|
407
|
+
:host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function $u(o={}){return na({defaultContent:b`${e=>e.setCount()}`})}const yu=$u(),xu=We.compose({name:`${p.prefix}-counter-badge`,template:yu,styles:vu});xu.define(p.registry);const Je={modal:"modal",nonModal:"non-modal",alert:"alert"};var ku=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,Cr=(o,e,t,r)=>{for(var i=r>1?void 0:r?wu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ku(e,t,i),i};class ko extends ${constructor(){super(...arguments),this.type=Je.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){Y.enqueue(()=>{this.emitBeforeToggle(),this.type===Je.alert||this.type===Je.modal?this.dialog.showModal():this.type===Je.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&this.type!==Je.alert&&e.target===this.dialog&&this.hide(),!0}}Cr([g],ko.prototype,"dialog",2),Cr([a({attribute:"aria-describedby"})],ko.prototype,"ariaDescribedby",2),Cr([a({attribute:"aria-labelledby"})],ko.prototype,"ariaLabelledby",2),Cr([a],ko.prototype,"type",2);const Cu=b`<dialog role="${o=>o.type===Je.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===Je.modal||o.type===Je.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${V("dialog")}><slot></slot></dialog>`,Su=u`
|
|
408
|
+
@layer base{:host{--dialog-backdrop:${pi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${I};border-radius:${_n};border:none;box-shadow:${Rn};color:${P};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ii};transition-timing-function:${Ct};opacity:0}::backdrop{transition-timing-function:${zi}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${wt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Z(u`
|
|
409
|
+
@layer base{dialog{border:${T} solid ${J}}}`)),Iu=ko.compose({name:`${p.prefix}-dialog`,template:Cu,styles:Su});Iu.define(p.registry);var Pu=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Tu=(o,e,t,r)=>{for(var i=r>1?void 0:r?zu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Pu(e,t,i),i};class aa extends ${constructor(){super(...arguments),this.noTitleAction=!1}}Tu([a({mode:"boolean",attribute:"no-title-action"})],aa.prototype,"noTitleAction",2);const Bu=b.partial(`
|
|
410
|
+
<svg
|
|
411
|
+
fill="currentColor"
|
|
412
|
+
aria-hidden="true"
|
|
413
|
+
width="20"
|
|
414
|
+
height="20"
|
|
415
|
+
viewBox="0 0 20 20"
|
|
416
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
417
|
+
>
|
|
418
|
+
<path
|
|
419
|
+
d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
420
|
+
fill="currentColor"
|
|
421
|
+
></path>
|
|
422
|
+
</svg>`),Ou=b`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===Je.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${V("defaultTitleAction")}>${Bu}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Au=u`
|
|
423
|
+
${k("grid")}
|
|
424
|
+
|
|
425
|
+
:host{background:${I};box-sizing:border-box;gap:${q};padding:${kt} ${wi};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${I};color:${P};column-gap:8px;display:flex;font-family:${v};font-size:${jt};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${dr};margin-block-end:calc(${q} * -1);margin-block-start:calc(${kt} * -1);padding-block-end:${q};padding-block-start:${kt};position:sticky;z-index:1}.content{box-sizing:border-box;color:${P};font-family:${v};font-size:${B};font-weight:${_};line-height:${A};min-height:32px}.actions{box-sizing:border-box;background:${I};display:flex;flex-direction:column;gap:${q};inset-block-end:0;margin-block-end:calc(${kt} * -1);padding-block-end:${kt};padding-block-start:${ur};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${q} * -1);padding-block-start:${q}}}`,_u=aa.compose({name:`${p.prefix}-dialog-body`,template:Ou,styles:Au});_u.define(p.registry);const wo={separator:"separator",presentation:"presentation"},la=Se;var Eu=Object.defineProperty,Nu=Object.getOwnPropertyDescriptor,ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Eu(e,t,i),i};class Fi extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??wo.separator,this.role!==wo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??la.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??wo.separator}`),t===wo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==wo.presentation?t??null:null,St(this.elementInternals,e,t,la)}}ca([a],Fi.prototype,"role",2),ca([a],Fi.prototype,"orientation",2);var Fu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,Mi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Mu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Fu(e,t,i),i};class Sr extends Fi{}Mi([a({attribute:"align-content"})],Sr.prototype,"alignContent",2),Mi([a],Sr.prototype,"appearance",2),Mi([a({mode:"boolean"})],Sr.prototype,"inset",2);function Du(){return b`<slot></slot>`}const Vu=Du(),Hu=u`
|
|
426
|
+
${k("flex")}
|
|
427
|
+
|
|
428
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${T}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${M};font-weight:${_};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${T};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${je}}:host([appearance='strong']) ::slotted(*){color:${P}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${vn}}:host([appearance='brand']) ::slotted(*){color:${ui}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Kl}}:host([appearance='subtle']) ::slotted(*){color:${ie}}`.withBehaviors(Z(u`
|
|
429
|
+
:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Lu=Sr.compose({name:`${p.prefix}-divider`,template:Vu,styles:Hu});Lu.define(p.registry);const ju={start:"start",end:"end"},Ru={small:"small",medium:"medium",large:"large",full:"full"},Di={nonModal:"non-modal",modal:"modal",inline:"inline"};var qu=Object.defineProperty,Gu=Object.getOwnPropertyDescriptor,Yt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qu(e,t,i),i};class Pt extends ${constructor(){super(...arguments),this.type=Di.modal,this.position=ju.start,this.size=Ru.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}show(){Y.enqueue(()=>{this.emitBeforeToggle(),this.type===Di.inline||this.type===Di.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&e.target===this.dialog&&this.hide(),!0}}Yt([a],Pt.prototype,"type",2),Yt([a({attribute:"aria-labelledby"})],Pt.prototype,"ariaLabelledby",2),Yt([a({attribute:"aria-describedby"})],Pt.prototype,"ariaDescribedby",2),Yt([a],Pt.prototype,"position",2),Yt([a({attribute:"size"})],Pt.prototype,"size",2),Yt([g],Pt.prototype,"dialog",2);const Wu=u`
|
|
430
|
+
${k("block")}
|
|
431
|
+
|
|
432
|
+
:host{--dialog-backdrop:${pi}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${B};line-height:${A};font-family:${v};font-weight:${_};color:${P};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${J};border-inline-start-color:var(--drawer-separator,${J});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Rn};border:${T} solid ${J};background:${I}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Ii};transition-timing-function:${Ct}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${wt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${wt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ii};transition-timing-function:${Ct};background:var(--dialog-backdrop,${pi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${zi}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Xu(){return b`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${(o,e)=>o.hide()}" ${V("dialog")}><slot></slot></dialog>`}const Uu=Xu(),Ku=Pt.compose({name:`${p.prefix}-drawer`,template:Uu,styles:Wu});Ku.define(p.registry);class Yu extends ${}const Qu=u`
|
|
433
|
+
${k("grid")}
|
|
434
|
+
:host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${xd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Ih}}.footer{display:flex;justify-content:flex-start;gap:${ae}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Zu(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Ju=Zu(),ep=Yu.compose({name:`${p.prefix}-drawer-body`,template:Ju,styles:Qu});ep.define(p.registry);function da(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Ir(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function ha(o){return o.closest("[lang]")?.lang??"en"}let tp=0;function Co(o="id-"){const e=`${o}${tp++}`;return document.getElementById(e)?Co(o):e}const op={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Vi={combobox:"combobox",dropdown:"dropdown",select:"select"},rp=b`<svg class="chevron-down-20-regular" role="button" slot="indicator" viewBox="0 0 20 20" ${V("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,ip=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" ${V("control")} />`,sp=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" ${V("control")}>${o=>o.displayValue}</button>`;function np(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${V("controlSlot")}></slot><slot name="indicator" ${V("indicatorSlot")}>${he(o.indicator)}</slot></div><slot ${V("listboxSlot")}></slot></template>`}const ap=np({indicator:rp});var lp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,G=(o,e,t,r)=>{for(var i=r>1?void 0:r?cp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lp(e,t,i),i};const F=class io extends ${constructor(){super(),this.activeIndex=0,this.id=Co("dropdown-"),this.required=!1,this.type=Vi.dropdown,this.valueAttribute="",this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",this.addEventListener("connected",this.listboxConnectedHandler),Y.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,s)=>{i.active=s===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Co("input-"),this.controlSlot?.assign(t))}disabledChanged(e,t){Y.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ha(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",this.listboxSlot.assign(t);const r=m.getNotifier(this);r.subscribe(t);for(const i of["disabled","multiple"])r.notify(i);Y.enqueue(()=>{this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,s)=>{i.selected=this.multiple||s===0}),this.setValidity()})}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){Y.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){if(y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,t){io.AnchorPositionFallbackObserver?.observe(this.listbox);return}io.AnchorPositionFallbackObserver?.unobserve(this.listbox)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Vi.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),t===this.control&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Ir(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ha(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Vi.combobox){ip.render(this,this);return}sp.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Ir(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),this.anchorPositionFallback()}disconnectedCallback(){io.AnchorPositionFallbackObserver?.unobserve(this.listbox),super.disconnectedCallback()}listboxConnectedHandler(e){const t=e.target;da(t)&&(this.listbox=t)}anchorPositionFallback(){io.AnchorPositionFallbackObserver=io.AnchorPositionFallbackObserver??new IntersectionObserver(e=>{e.forEach(({boundingClientRect:t,isIntersecting:r,target:i})=>{if(da(i)&&!r){if(t.bottom>window.innerHeight){y(i.dropdown.elementInternals,"flip-block",!0);return}t.top<0&&y(i.dropdown.elementInternals,"flip-block",!1)}})},{threshold:1})}};F.formAssociated=!0,G([Gr],F.prototype,"activeDescendant",1),G([g],F.prototype,"activeIndex",2),G([a({attribute:"aria-labelledby",mode:"fromView"})],F.prototype,"ariaLabelledBy",2),G([g],F.prototype,"control",2),G([a({mode:"boolean"})],F.prototype,"disabled",2),G([Gr],F.prototype,"displayValue",1),G([a({attribute:"id"})],F.prototype,"id",2),G([g],F.prototype,"indicator",2),G([g],F.prototype,"indicatorSlot",2),G([a({attribute:"value",mode:"fromView"})],F.prototype,"initialValue",2),G([g],F.prototype,"listbox",2),G([g],F.prototype,"listboxSlot",2),G([a({mode:"boolean"})],F.prototype,"multiple",2),G([a],F.prototype,"name",2),G([g],F.prototype,"open",2),G([a],F.prototype,"placeholder",2),G([a({mode:"boolean"})],F.prototype,"required",2),G([a],F.prototype,"type",2),G([a({attribute:"value"})],F.prototype,"valueAttribute",2);let dp=F;var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,ua=(o,e,t,r)=>{for(var i=r>1?void 0:r?up(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&hp(e,t,i),i};class Hi extends dp{constructor(){super(...arguments),this.appearance=op.outline}}ua([a],Hi.prototype,"appearance",2),ua([a],Hi.prototype,"size",2);const pp=u`
|
|
435
|
+
${k("inline-flex")}
|
|
436
|
+
|
|
437
|
+
:host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${P};cursor:pointer}:host(${Kh}){color:${hi}}.control{appearance:none;background-color:${I};border-radius:${C};border:none;box-shadow:inset 0 0 0 ${T} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${R};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${qe} ${ne};position:relative;text-align:start;width:100%;z-index:1;${ia}}:host([size='small']) .control{column-gap:${R};padding:${qt} ${ee};${sa}}:host([size='large']) .control{column-gap:${Re};padding:${q} ${ae};${Sh}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${ie};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${T}}.control::after{background-color:${xt};height:${ve};scale:0 1;transition:scale ${Si} ${Ct}}:host(:where(${Xh},:focus-within)) .control::after{scale:1 1;transition-duration:${br};transition-timing-function:${wt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Le}}:host([appearance='transparent']) .control{--control-border-color:${fi};background-color:${ge};border-radius:${nr}}:host([appearance='outline']) .control{--control-border-color:${je}}:host([appearance='outline']) .control:hover{--control-border-color:${Lt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${$t}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${$o}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${yt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Ht}}:host([appearance='filled-darker']) .control{background-color:${mo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${J}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${we};background-color:${it};color:${S}}::slotted([popover]){inset:unset;position:absolute;position-anchor:--dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,block-start;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);overflow:auto}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){::slotted([popover]){margin-block-start:calc(${A} + (${qe} * 2) + ${T});max-height:50vh}:host([size='small']) ::slotted([popover]){margin-block-start:calc(${X} + (${qt} * 2) + ${T})}:host([size='large']) ::slotted([popover]){margin-block-start:calc(${me} + (${q} * 2) + ${T})}:host(${qh}) ::slotted([popover]){margin-block-start:revert;transform:translate(0,-100%)}}`,bp=Hi.compose({name:`${p.prefix}-dropdown`,template:ap,styles:pp,shadowOptions:{slotAssignment:"manual"}});bp.define(p.registry);const gp={above:"above",after:"after",before:"before"},ze={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var fp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?mp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&fp(e,t,i),i};class So extends ${constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){if(y(this.elementInternals,"has-message",!!t.length),!t.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(e,t){t?.length&&(this.input=t?.[0],this.setStates())}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties())}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ft("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,e.setAttribute("aria-hidden","true"),this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input.validity)for(const[e,t]of Object.entries(ze))y(this.elementInternals,t,this.input.validity[e])}}Pr([g],So.prototype,"labelSlot",2),Pr([g],So.prototype,"messageSlot",2),Pr([g],So.prototype,"slottedInputs",2),Pr([g],So.prototype,"input",2);var vp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,yp=(o,e,t,r)=>{for(var i=r>1?void 0:r?$p(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vp(e,t,i),i};class pa extends So{constructor(){super(...arguments),this.labelPosition=gp.above}}yp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const xp=u`
|
|
438
|
+
${k("inline-grid")}
|
|
439
|
+
|
|
440
|
+
:host{color:${P};align-items:center;gap:0 ${ae};justify-items:start;position:relative}:has([slot='message']){color:${P};row-gap:${q}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${ae}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Rt}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${kd}}:host([label-position='below']:not(${Wh})){grid-template-areas:'input' 'label'}::slotted([slot='label'])::after{content:'';display:block;position:absolute;inset:0}::slotted([slot='input']){grid-area:input;position:relative;z-index:1}::slotted([slot='message']){margin-block-start:${Rt};grid-area:message}:host(${Gh}:focus-within){border-radius:${C};outline:${ve} solid ${Ce}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${_};grid-area:label;line-height:${A};user-select:none}:host([size='small']) ::slotted(label){font-size:${M};line-height:${X}}:host([size='large']) ::slotted(label){font-size:${ue};line-height:${me}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${ye}){cursor:default}::slotted([flag]){display:none}:host(${Lh}) ::slotted([flag='${ze.badInput}']),:host(${jh}) ::slotted([flag='${ze.customError}']),:host(${Uh}) ::slotted([flag='${ze.patternMismatch}']),:host(${Yh}) ::slotted([flag='${ze.rangeOverflow}']),:host(${Qh}) ::slotted([flag='${ze.rangeUnderflow}']),:host(${Zh}) ::slotted([flag='${ze.stepMismatch}']),:host(${Jh}) ::slotted([flag='${ze.tooLong}']),:host(${eu}) ::slotted([flag='${ze.tooShort}']),:host(${tu}) ::slotted([flag='${ze.typeMismatch}']),:host(${iu}) ::slotted([flag='${ze.valueMissing}']),:host(${ru}) ::slotted([flag='${ze.valid}']){display:block}`,kp=b`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" ${ri({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:gt()})}><slot name="label" part="label" ${H("labelSlot")}></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${H({property:"messageSlot",filter:gt("[flag]")})}></slot></template>`,wp=pa.compose({name:`${p.prefix}-field`,template:kp,styles:xp,shadowOptions:{delegatesFocus:!0}});wp.define(p.registry);var Cp=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,Io=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cp(e,t,i),i};class Qt extends ${}Io([a({mode:"boolean"})],Qt.prototype,"block",2),Io([a({mode:"boolean"})],Qt.prototype,"bordered",2),Io([a({mode:"boolean"})],Qt.prototype,"shadow",2),Io([a],Qt.prototype,"fit",2),Io([a],Qt.prototype,"shape",2);const Ip=b`<slot></slot>`,Pp=u`
|
|
441
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${T} solid ${yo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${hr}}:host([shape='circular']) ::slotted(img){border-radius:${fe}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,zp=Qt.compose({name:`${p.prefix}-image`,template:Ip,styles:Pp});zp.define(p.registry);var Tp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,zr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Tp(e,t,i),i};class Po extends ${constructor(){super(...arguments),this.disabled=!1,this.required=!1}}zr([a],Po.prototype,"size",2),zr([a],Po.prototype,"weight",2),zr([a({mode:"boolean"})],Po.prototype,"disabled",2),zr([a({mode:"boolean"})],Po.prototype,"required",2);const Op=u`
|
|
442
|
+
${k("inline-flex")}
|
|
443
|
+
|
|
444
|
+
:host{color:${P};cursor:pointer;font-family:${v};font-size:${B};font-weight:${_};line-height:${A};user-select:none}.asterisk{color:${wn};margin-inline-start:${pe}}:host([size='small']){font-size:${M};line-height:${X}}:host([size='large']){font-size:${ue};line-height:${me}}:host(:is([size='large'],[weight='semibold'])){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${S}}`;function Ap(){return b`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const _p=Ap(),Ep=Po.compose({name:`${p.prefix}-label`,template:_p,styles:Op});Ep.define(p.registry);var Np=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,ba=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Np(e,t,i),i};class Li extends Ge{constructor(){super(...arguments),this.inline=!1}}ba([a],Li.prototype,"appearance",2),ba([a({mode:"boolean"})],Li.prototype,"inline",2);const Mp=u`
|
|
445
|
+
${k("inline")}
|
|
446
|
+
|
|
447
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${Ol};cursor:pointer;font-family:${v};font-size:${B};font-weight:${_};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${T};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Al}}:host(:active){color:${_l}}:host([appearance='subtle']:hover){color:${Nl}}:host([appearance='subtle']:active){color:${Fl}}}:host([appearance='subtle']){color:${El}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(u`
|
|
448
|
+
:host{color:LinkText}`));function Dp(){return b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Vp=Dp(),Hp=Li.compose({name:`${p.prefix}-link`,template:Vp,styles:Mp});Hp.define(p.registry);var Lp=Object.defineProperty,jp=Object.getOwnPropertyDescriptor,zo=(o,e,t,r)=>{for(var i=r>1?void 0:r?jp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Lp(e,t,i),i};class Zt extends ${constructor(){super(),this.id=Co("listbox-"),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),Y.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Ir(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),this.$emit("connected")}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,i)=>{const s=i===e;r.selected=s,s&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}}zo([a({attribute:"id",mode:"fromView"})],Zt.prototype,"id",2),zo([g],Zt.prototype,"multiple",2),zo([g],Zt.prototype,"options",2),zo([g],Zt.prototype,"selectedIndex",2),zo([g],Zt.prototype,"dropdown",2);const Rp=u`
|
|
449
|
+
${k("inline-flex")}
|
|
450
|
+
|
|
451
|
+
:host{background-color:${I};border-radius:${C};border:none;box-shadow:${xi};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${pe};row-gap:${R};width:auto}`;function qp(){return b`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot ${H({property:"options",filter:o=>Ir(o)})}></slot></template>`}const Gp=qp(),Wp=Zt.compose({name:`${p.prefix}-listbox`,template:Gp,styles:Rp});Wp.define(p.registry);class Xp extends Ze{}const Up=_i({end:b.partial(`
|
|
452
|
+
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
453
|
+
<path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
|
|
454
|
+
</svg>
|
|
455
|
+
`)}),Kp=Xp.compose({name:`${p.prefix}-menu-button`,template:Up,styles:$r});Kp.define(p.registry);const te={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};te.menuitem+"",te.menuitemcheckbox+"",te.menuitemradio+"";var Yp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Jt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Yp(e,t,i),i};class Ae extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=te.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case bo:case Yo:return this.invoke(),!1;case ho:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case co:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=e=>{e instanceof ToggleEvent&&e.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e instanceof ToggleEvent&&e.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case te.menuitemcheckbox:this.checked=!this.checked;break;case te.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case te.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,y(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??te.menuitem}checkedChanged(e,t){const r=this.role!==te.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,y(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.toggleHandler),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",y(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,y(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??te.menuitem,this.elementInternals.ariaChecked=this.role!==te.menuitem?`${!!this.checked}`:null}}Jt([a({mode:"boolean"})],Ae.prototype,"disabled",2),Jt([a],Ae.prototype,"role",2),Jt([a({mode:"boolean"})],Ae.prototype,"checked",2),Jt([a({mode:"boolean"})],Ae.prototype,"hidden",2),Jt([g],Ae.prototype,"slottedSubmenu",2),Jt([g],Ae.prototype,"submenu",2),Ke(Ae,Ue);const Zp=u`
|
|
456
|
+
${k("grid")}
|
|
457
|
+
|
|
458
|
+
:host{--indent:0;align-items:center;background:${I};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${_} ${B} / ${A} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${tr};color:${Mt}}:host(:active){background-color:${dn};color:${Dt}}:host(:active) ::slotted([slot='start']){color:${Ml}}:host(${ye}){background-color:${it};color:${S}}:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:${S}}:host(:focus-visible){border-radius:${C};outline:2px solid ${Ce}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${wr})) .submenu-glyph,:host(:not(${wr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${ie};font:${_} ${M} / ${X} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${wr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${wr}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(Z(u`
|
|
459
|
+
:host(${ye}),:host(${ye}) ::slotted([slot='start']),:host(${ye}) ::slotted([slot='end']){color:GrayText}`)),Jp=b.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),eb=b.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function tb(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${he(o.indicator)}</slot>${He(o)}<div part="content" class="content"><slot></slot></div>${rt(o)}<slot name="submenu-glyph">${he(o.submenuGlyph)}</slot><slot name="submenu" ${H({property:"slottedSubmenu"})}></slot></template>`}const ob=tb({indicator:Jp,submenuGlyph:eb}),rb=Ae.compose({name:`${p.prefix}-menu-item`,template:ob,styles:Zp});rb.define(p.registry);var ib=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,nb=(o,e,t,r)=>{for(var i=r>1?void 0:r?sb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ib(e,t,i),i};const ji=class os extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&si(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const i=this.menuItems.length-1;for(let s=r+1;s<=i;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>e instanceof Ae||si(e)&&e.getAttribute("role")in os.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Y.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case lo:this.setFocus(this.focusIndex+1,1);return;case uo:this.setFocus(this.focusIndex-1,-1);return;case po:this.setFocus(this.menuItems.length-1,-1);return;case go:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),r=e.querySelector("[slot=start]");return t&&t!==te.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const r=this.menuItems.filter(this.isMenuItemElement);r.length&&(this.focusIndex=0),r.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),s=i?.reduce((n,c)=>{const h=os.elementIndent(c);return Math.max(n,h)},0);i?.forEach(n=>{n instanceof Ae&&n.setAttribute("data-indent",`${s}`)})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};ji.focusableElementRoles=te,nb([g],ji.prototype,"items",2);let ab=ji;const lb=u`
|
|
460
|
+
${k("flex")}
|
|
461
|
+
|
|
462
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${I};border:1px solid ${J};border-radius:${C};box-shadow:${xi};padding:4px;row-gap:2px}`;function cb(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${H("items")}></slot></template>`}const db=cb(),hb=ab.compose({name:`${p.prefix}-menu-list`,template:db,styles:lb});hb.define(p.registry);var ub=Object.defineProperty,pb=Object.getOwnPropertyDescriptor,dt=(o,e,t,r)=>{for(var i=r>1?void 0:r?pb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ub(e,t,i),i};class et extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Ae&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Yo:case bo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),Y.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Y.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Y.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case gl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case fl:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}dt([a({attribute:"open-on-hover",mode:"boolean"})],et.prototype,"openOnHover",2),dt([a({attribute:"open-on-context",mode:"boolean"})],et.prototype,"openOnContext",2),dt([a({attribute:"close-on-scroll",mode:"boolean"})],et.prototype,"closeOnScroll",2),dt([a({attribute:"persist-on-item-click",mode:"boolean"})],et.prototype,"persistOnItemClick",2),dt([a({mode:"boolean"})],et.prototype,"split",2),dt([g],et.prototype,"slottedMenuList",2),dt([g],et.prototype,"slottedTriggers",2),dt([g],et.prototype,"primaryAction",2);const bb=u`
|
|
463
|
+
${k("inline-block")}
|
|
464
|
+
|
|
465
|
+
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${T} solid ${je};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${T} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function gb(){return b`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${V("primaryAction")}></slot><slot name="trigger" ${H({property:"slottedTriggers",filter:gt()})}></slot><slot ${H({property:"slottedMenuList",filter:gt()})}></slot></template>`}const fb=gb(),mb=et.compose({name:`${p.prefix}-menu`,template:fb,styles:bb});mb.define(p.registry);var vb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,Ri=(o,e,t,r)=>{for(var i=r>1?void 0:r?$b(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&vb(e,t,i),i};class Tr extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ri([a],Tr.prototype,"shape",2),Ri([a],Tr.prototype,"layout",2),Ri([a],Tr.prototype,"intent",2);const yb=u`
|
|
466
|
+
:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${M};line-height:${X};width:100%;background:${mo};border:1px solid ${je};padding-inline:${ae};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${Sn};border-color:${oc}}:host([intent='warning']){background-color:${Pn};border-color:${Tn}}:host([intent='error']){background-color:${yn};border-color:${kn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
|
|
467
|
+
'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Gt};padding-inline:${ae}}.content{grid-area:body;max-width:520px;padding-block:${Gt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${ie};margin-inline-end:${Re}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Re};gap:${Re}}:host([layout='multiline']) .actions{margin-block-start:${Gt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${q}}::slotted(*){font-size:inherit}`;function xb(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const kb=xb(),wb=Tr.compose({name:`${p.prefix}-message-bar`,template:kb,styles:yb,shadowOptions:{mode:p.shadowRootMode}});wb.define(p.registry);var Cb=Object.defineProperty,Sb=Object.getOwnPropertyDescriptor,xe=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Cb(e,t,i),i};class ce extends ${constructor(){super(),this.active=!1,this.id=Co("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Y.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ce.formAssociated=!0,xe([g],ce.prototype,"active",2),xe([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),xe([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),xe([g],ce.prototype,"descriptionSlot",2),xe([g],ce.prototype,"disabled",2),xe([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),xe([a({attribute:"form"})],ce.prototype,"formAttribute",2),xe([a({mode:"boolean"})],ce.prototype,"freeform",2),xe([a({attribute:"id"})],ce.prototype,"id",2),xe([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),xe([g],ce.prototype,"multiple",2),xe([a],ce.prototype,"name",2),xe([g],ce.prototype,"start",2),xe([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const Ib=u`
|
|
468
|
+
${k("inline-grid")}
|
|
469
|
+
|
|
470
|
+
:host{-webkit-tap-highlight-color:transparent;${ia}
|
|
471
|
+
align-items:center;background-color:${I};border-radius:${C};border:${ve} solid ${J};box-sizing:border-box;color:${Ie};column-gap:${pe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ee}}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${tr};color:${Mt}}:host(:active){background-color:${or};color:${Dt}}:host(:disabled){background-color:${I};color:${S};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ni}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Kt}) .checkmark-16-filled,:host(:not(${Kt})) .checkmark-12-regular{display:none}:host(${Kt}) .checkmark-12-regular{background-color:${I};border-radius:${Oe};border:${T} solid ${Le};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Kt}${Ni}) .checkmark-12-regular{background-color:${vt};border-color:${xt};fill:${ft}}:host(:disabled${Kt}) .checkmark-12-regular{border-color:${we}}:host(:disabled${Kt}${Ni}) .checkmark-12-regular{background-color:${it}}:host(${Hh}){border:${ve} solid ${Ce}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ee}}}:host(${Rh}){column-gap:${ee};grid-template-areas:'indicator start content'
|
|
472
|
+
'indicator start description'}::slotted([slot='description']){color:${ie};grid-area:description;${sa}}`,Pb=b.partial(`
|
|
473
|
+
<svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
|
|
474
|
+
<path
|
|
475
|
+
d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"
|
|
476
|
+
/>
|
|
477
|
+
</svg>
|
|
478
|
+
<svg aria-hidden="true" class="checkmark-12-regular" viewBox="0 0 12 12">
|
|
479
|
+
<path
|
|
480
|
+
d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"
|
|
481
|
+
/>
|
|
482
|
+
</svg>
|
|
483
|
+
`);function zb(o={}){return b`<slot name="checked-indicator">${he(o.checkedIndicator)}</slot>${He(o)}<div class="content" part="content"><slot ${H({property:"freeformOutputs",filter:gt("output")})}></slot></div><div class="description" part="description"><slot name="description" ${H("descriptionSlot")}></slot></div>`}const Tb=zb({checkedIndicator:Pb}),Bb=ce.compose({name:`${p.prefix}-option`,template:Tb,styles:Ib});Bb.define(p.registry);const Ob={success:"success",warning:"warning",error:"error"};var Ab=Object.defineProperty,_b=Object.getOwnPropertyDescriptor,To=(o,e,t,r)=>{for(var i=r>1?void 0:r?_b(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Ab(e,t,i),i};class eo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){St(this.elementInternals,e,t,Ob)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null}get percentComplete(){const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e;return i===0?0:Math.fround((r-e)/i*100)}}To([a({attribute:"validation-state"})],eo.prototype,"validationState",2),To([a({converter:Q})],eo.prototype,"value",2),To([a({converter:Q})],eo.prototype,"min",2),To([a({converter:Q})],eo.prototype,"max",2),To([Gr],eo.prototype,"percentComplete",1);var Eb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,ga=(o,e,t,r)=>{for(var i=r>1?void 0:r?Nb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Eb(e,t,i),i};class qi extends eo{}ga([a],qi.prototype,"thickness",2),ga([a],qi.prototype,"shape",2);const Fb=u`
|
|
484
|
+
${k("block")}
|
|
485
|
+
|
|
486
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${rr};border-radius:${C};contain:content}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${nr}}.indicator{background-color:${vt};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
487
|
+
to right,${rr} 0%,${ge} 50%,${rr} 100%
|
|
488
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${xn}}:host([validation-state='warning']) .indicator{background-color:${zn}}:host([validation-state='success']) .indicator{background-color:${In}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(Z(u`
|
|
489
|
+
:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Mb(){return b`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const Db=Mb(),Vb=qi.compose({name:`${p.prefix}-progress-bar`,template:Db,styles:Fb});Vb.define(p.registry);class fa extends Pe{connectedCallback(){super.connectedCallback(),this.tabIndex=this.disabled?-1:0}constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),t&&(this.tabIndex=-1),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function ma(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const va=Se;var Hb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,zt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Hb(e,t,i),i};class tt extends ${constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??va.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??va.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const i=bl(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===i,n.name=this.name??n.name,n.disabled=this.disabled||n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),this.value||(this.checkedIndex=i);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),Y.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,s)=>{const n=s===e;i.checked=n,n&&(r=s,t&&i.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=ai(this)==="rtl",r=this.enabledRadios.findIndex(n=>n===ma(this))??this.checkedIndex;let i=0;switch(e.key){case"ArrowLeft":{i=t?1:-1;break}case"ArrowUp":{i=-1;break}case"ArrowRight":{i=t?-1:1;break}case"ArrowDown":{i=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!i)return!0;const s=r+i;this.checkRadio(this.getEnabledIndexInBounds(s),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(ma(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((r,i)=>{r.tabIndex=i===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:this.required&&!this.value,...e},t??this.validationMessage,r??this.enabledRadios[0])}}slotchangeHandler(e){Y.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof fa)})}}tt.formAssociated=!0,zt([g],tt.prototype,"checkedIndex",2),zt([a({attribute:"disabled",mode:"boolean"})],tt.prototype,"disabled",2),zt([a({attribute:"value",mode:"fromView"})],tt.prototype,"initialValue",2),zt([a],tt.prototype,"name",2),zt([a],tt.prototype,"orientation",2),zt([g],tt.prototype,"radios",2),zt([a({mode:"boolean"})],tt.prototype,"required",2);const jb=u`
|
|
490
|
+
${k("flex")}
|
|
491
|
+
|
|
492
|
+
:host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${ur}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${ie}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${P}}::slotted(${ye}){color:${S}}::slotted(${x}){color:${P}}`;function Rb(){return b`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const qb=Rb(),Gb=tt.compose({name:`${p.prefix}-radio-group`,template:qb,styles:jb});Gb.define(p.registry);const Wb=u`
|
|
493
|
+
${k("inline-flex")}
|
|
494
|
+
|
|
495
|
+
:host{--size:16px;aspect-ratio:1;background-color:${I};border:${T} solid ${Le};border-radius:${fe};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${fe};color:${ft};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ve} solid ${J};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${Ce}}:host(:hover){border-color:${$t}}:host(${x}){border-color:${xt}}:host(${x}) .checked-indicator{background-color:${vt}}:host(${x}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${yt}}:host(${x}:active) .checked-indicator{background-color:${Ht}}:host(:focus-visible){outline:none}:host(${ye}){background-color:${it};border-color:${we}}:host(${x}${ye}) .checked-indicator{background-color:${we}}`.withBehaviors(Z(u`
|
|
496
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${ye}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${ye}):hover) .checked-indicator{background-color:Highlight}:host(${ye}){border-color:GrayText;color:GrayText}:host(${ye}${x}) .checked-indicator{background-color:GrayText}`)),Xb=b.partial(`
|
|
497
|
+
<span part="checked-indicator" class="checked-indicator" role="presentation"></span>
|
|
498
|
+
`);function Ub(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${he(o.checkedIndicator)}</slot></template>`}const Kb=Ub({checkedIndicator:Xb}),Yb=fa.compose({name:`${p.prefix}-radio`,template:Kb,styles:Wb});Yb.define(p.registry);var Qb=Object.defineProperty,Zb=Object.getOwnPropertyDescriptor,to=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qb(e,t,i),i};class Tt extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.intlNumberFormatter=new Intl.NumberFormat,this.elementInternals.role="img"}slottedIconChanged(){this.$fastController.isConnected&&(this.customIcon=this.slottedIcon[0]?.outerHTML)}get formattedCount(){return this.count?this.intlNumberFormatter.format(this.count):""}getSelectedValue(){return Math.round((this.value??0)*2)/2}getMaxIcons(){return(this.max??5)*2}generateIcons(){let e="",t;this.customIcon&&(t=/<svg[^>]*>([\s\S]*?)<\/svg>/.exec(this.customIcon)?.[1]??"");const r=this.getSelectedValue();for(let i=0;i<this.getMaxIcons();i++){const s=(i+1)/2;e+=`<svg aria-hidden="true" viewBox="${this.iconViewBox??"0 0 20 20"}" ${s===r?"selected":""}>${t??'<use href="#star"></use>'}</svg>`}return e}}to([a({converter:Q})],Tt.prototype,"count",2),to([a({attribute:"icon-view-box"})],Tt.prototype,"iconViewBox",2),to([a({converter:Q})],Tt.prototype,"max",2),to([a({converter:Q})],Tt.prototype,"value",2),to([g],Tt.prototype,"slottedIcon",2),to([g],Tt.prototype,"customIcon",2);var Jb=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,Gi=(o,e,t,r)=>{for(var i=r>1?void 0:r?eg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Jb(e,t,i),i};class Br extends Tt{constructor(){super(...arguments),this.compact=!1}getSelectedValue(){return Math.round((this.compact?1:this.value??0)*2)/2}getMaxIcons(){return(this.compact?1:this.max??5)*2}}Gi([a],Br.prototype,"color",2),Gi([a],Br.prototype,"size",2),Gi([a({mode:"boolean"})],Br.prototype,"compact",2);const tg=u`
|
|
499
|
+
${k("inline-flex")}
|
|
500
|
+
|
|
501
|
+
:host{--icon-size:16px;--icon-color-filled:${hc};--icon-color-empty:${On};align-items:center;color:${P};font-family:${v};font-size:${M};line-height:${X};contain:layout style;user-select:none}:host([size='small']){--icon-size:12px}:host([size='large']){--icon-size:20px;font-size:${B};line-height:${A}}::slotted([slot='icon']){display:none}svg{width:var(--icon-size);height:var(--icon-size);fill:var(--icon-color-filled);margin-inline-end:${R}}svg:nth-child(odd){clip-path:inset(0 50% 0 0);margin-inline-end:calc(0px - var(--icon-size))}:host([color='neutral']) svg{--icon-color-filled:${P}}:host([color='brand']) svg{--icon-color-filled:${bi}}:host(:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,svg[selected] ~ svg{fill:var(--icon-color-empty)}:host([color='neutral']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='neutral']) svg[selected] ~ svg{--icon-color-empty:${or}}:host([color='brand']:is([value^='-'],[value='0'],:not([value]))) svg,:host([color='brand']) svg[selected] ~ svg{--icon-color-empty:${gi}}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${pe};font-weight:${D}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${R}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ee}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${pe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${R}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ee}}`.withBehaviors(Z(u`
|
|
502
|
+
:host([color]) svg{fill:CanvasText}:host([color]:is([value^='-'],[value='0'])) svg,:host(:not([value])) svg,:host([color]) svg[selected] ~ svg{fill:Canvas;stroke:CanvasText}`)),og=b`<svg xmlns="http://www.w3.org/2000/svg" style="display: none"><symbol id="star"><path d="M9.10433 2.89874C9.47114 2.15549 10.531 2.1555 10.8978 2.89874L12.8282 6.81024L17.1448 7.43748C17.9651 7.55666 18.2926 8.56464 17.699 9.14317L14.5755 12.1878L15.3129 16.487C15.453 17.3039 14.5956 17.9269 13.8619 17.5412L10.0011 15.5114L6.14018 17.5412C5.40655 17.9269 4.54913 17.3039 4.68924 16.487L5.4266 12.1878L2.30308 9.14317C1.70956 8.56463 2.03708 7.55666 2.8573 7.43748L7.17389 6.81024L9.10433 2.89874Z" /></symbol></svg>`;function rg(){return b` ${o=>b`${he(o.generateIcons())}`}<slot name="icon" ${H({property:"slottedIcon",filter:gt("svg")})}>${og}</slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const ig=rg(),sg=Br.compose({name:`${p.prefix}-rating-display`,template:ig,styles:tg});sg.define(p.registry);const ng=Se,ag={singleValue:"single-value"};function $a(o,e,t,r){let i=ni(0,1,(o-e)/(t-e));return r===Ve.rtl&&(i=1-i),i}var lg=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,oe=(o,e,t,r)=>{for(var i=r>1?void 0:r?cg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&lg(e,t,i),i};class W extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=Ve.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=ag.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===Se.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===Se.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??ng.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=u`
|
|
503
|
+
:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=ni(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=ai(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==Ve.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==Ve.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case go:e.preventDefault(),this.value=this.direction!==Ve.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case po:e.preventDefault(),this.value=this.direction!==Ve.rtl&&this.orientation!==Se.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case ho:case uo:e.shiftKey||(e.preventDefault(),this.increment());break;case co:case lo:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=$a(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=$a(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}W.formAssociated=!0,oe([a],W.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),oe([g],W.prototype,"direction",2),oe([g],W.prototype,"isDragging",2),oe([g],W.prototype,"position",2),oe([g],W.prototype,"trackWidth",2),oe([g],W.prototype,"trackMinWidth",2),oe([g],W.prototype,"trackHeight",2),oe([g],W.prototype,"trackLeft",2),oe([g],W.prototype,"trackMinHeight",2),oe([g],W.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],W.prototype,"disabled",2),oe([a({converter:ii})],W.prototype,"min",2),oe([a({converter:ii})],W.prototype,"max",2),oe([a({converter:ii})],W.prototype,"step",2),oe([a],W.prototype,"orientation",2),oe([a],W.prototype,"mode",2);const dg=u`
|
|
504
|
+
${k("inline-grid")}
|
|
505
|
+
|
|
506
|
+
:host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${vt};--track-color:${Le};--slider-direction:90deg;--border-radius:${C};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Vt}}:host(:active){--rail-color:${Ht}}:host(:disabled){--rail-color:${S};--track-color:${it}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Oe}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${Ce};outline:1px solid ${mi}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
|
|
507
|
+
var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
|
|
508
|
+
);border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
|
|
509
|
+
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${I} calc(var(--step-rate) - 1px),${I} var(--step-rate)
|
|
510
|
+
)}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${fe};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${I} inset;border:calc(var(--thumb-size) * 0.05) solid ${je};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(Z(u`
|
|
511
|
+
.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function hg(o={}){return b`<template tabindex="${e=>e.disabled?null:0}" @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${V("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${V("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${he(o.thumb)}</slot></div></template>`}const ug=hg({thumb:'<div class="thumb"></div>'}),pg=W.compose({name:`${p.prefix}-slider`,template:ug,styles:dg});pg.define(p.registry);class bg extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var gg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,ya=(o,e,t,r)=>{for(var i=r>1?void 0:r?fg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&gg(e,t,i),i};class Wi extends bg{}ya([a],Wi.prototype,"size",2),ya([a],Wi.prototype,"appearance",2);const mg=u`
|
|
512
|
+
${k("inline-flex")}
|
|
513
|
+
|
|
514
|
+
:host{--duration:1.5s;--indicatorSize:${se};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ve};--size:20px}:host([size='extra-small']){--indicatorSize:${ve};--size:24px}:host([size='small']){--indicatorSize:${ve};--size:28px}:host([size='large']){--indicatorSize:${se};--size:36px}:host([size='extra-large']){--indicatorSize:${se};--size:40px}:host([size='huge']){--indicatorSize:${ki};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${fr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${gi};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${vn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Yl}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(Z(u`
|
|
515
|
+
.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),vg=b`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,$g=Wi.compose({name:`${p.prefix}-spinner`,template:vg,styles:mg});$g.define(p.registry);class yg extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function xg(o={}){return b`<template tabindex="${e=>e.disabled?void 0:0}" @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${he(o.switch)}</slot></template>`}const kg=xg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),wg=u`
|
|
516
|
+
${k("inline-flex")}
|
|
517
|
+
|
|
518
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${R};width:40px;height:20px;background-color:${ge};border:1px solid ${Le};border-radius:${fe};cursor:pointer}:host(:hover){background:none;border-color:${$t}}:host(:active){border-color:${yt}}:host(:disabled),:host([readonly]){border:1px solid ${we};background-color:none;pointer:default}:host(${x}){background:${vt};border-color:${vt}}:host(${x}:hover){background:${Vt};border-color:${Vt}}:host(${x}:active){background:${Ht};border-color:${Ht}}:host(${x}:disabled){background:${it};border-color:${we}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${ie};transition-duration:${br};transition-timing-function:${fr};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${ft};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Dl}}:host(${x}:active) .checked-indicator{background:${Vl}}:host(:hover) .checked-indicator{background-color:${zl}}:host(:active) .checked-indicator{background-color:${Tl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${S}}:host(${x}:disabled) .checked-indicator{background:${S}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${J};outline:${ve} solid ${J};box-shadow:${hr},0 0 0 2px ${Ce}}`.withBehaviors(Z(u`
|
|
519
|
+
:host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}`)),Cg=yg.compose({name:`${p.prefix}-switch`,template:kg,styles:wg});Cg.define(p.registry);class Sg extends ${}function Ig(){return b`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Pg=Ig(),zg=u`
|
|
520
|
+
${k("block")}
|
|
521
|
+
|
|
522
|
+
:host{box-sizing:border-box;padding:${ae} ${ne}}`,Tg=Sg.compose({name:`${p.prefix}-tab-panel`,template:Pg,styles:zg});Tg.define(p.registry);var Bg=Object.defineProperty,Og=Object.getOwnPropertyDescriptor,Ag=(o,e,t,r)=>{for(var i=r>1?void 0:r?Og(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Bg(e,t,i),i};class Xi extends ${connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
|
|
523
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Ag([a({mode:"boolean"})],Xi.prototype,"disabled",2),Ke(Xi,Ue);function _g(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${He(o)}<span class="tab-content"><slot></slot></span>${rt(o)}</template>`}const Eg=_g({}),Ng=u`
|
|
524
|
+
${k("inline-flex")}
|
|
525
|
+
|
|
526
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${A};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${ae} ${ne};border-radius:${C}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${P};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${A};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${xt};border-radius:${fe};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Lt};border-radius:${fe};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${S}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${S};color:${S}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Oe};box-shadow:0 0 0 3px ${Ce};outline:1px solid ${mi}}`.withBehaviors(Z(u`
|
|
527
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),Fg=Xi.compose({name:`${p.prefix}-tab`,template:Eg,styles:Ng});Fg.define(p.registry);const Mg={subtle:"subtle",transparent:"transparent"},Or=Se;var Dg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,Ar=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Dg(e,t,i),i};class Bo extends ${constructor(){super(...arguments),this.orientation=Or.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case co:e.preventDefault(),this.adjustBackward(e);break;case ho:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case uo:e.preventDefault(),this.adjustBackward(e);break;case lo:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case go:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case po:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",r=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,s)=>{if(i.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(i),c=this.tabIds[s],h=this.tabpanelIds[s];i.setAttribute("id",c),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",h),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=c)}i.style[e]="",i.style[t]="",i.style[r]=`${s+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const r=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",r),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Or.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),r=t.indexOf(this.activetab),i=ni(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)+1:1,r===t.length&&(r=0);r<t.length&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else{if(this.activetab&&r===t.indexOf(this.activetab))break;r+1>=t.length?r=0:r+=1}}adjustBackward(e){const t=this.tabs;let r=0;for(r=this.activetab?t.indexOf(this.activetab)-1:0,r=r<0?t.length-1:r;r>=0&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else r-1<0?r=t.length-1:r-=1}moveToTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Ar([a],Bo.prototype,"orientation",2),Ar([a],Bo.prototype,"activeid",2),Ar([g],Bo.prototype,"tabs",2),Ar([g],Bo.prototype,"tabpanels",2);var Hg=Object.defineProperty,Lg=Object.getOwnPropertyDescriptor,Ui=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Hg(e,t,i),i};class Oo extends Bo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Mg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Or.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Or.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}getTabPositionData(e){const t=e.getBoundingClientRect(),r=this.getBoundingClientRect();return{x:t.x-r.x,y:t.y-r.y,height:t.height,width:t.width}}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,t=this.activetab||e[0];this.activeTabData=this.getTabPositionData(t),this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=u`
|
|
528
|
+
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=u`
|
|
529
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const r=this.tabs.find(i=>i.id===e);r&&(this.previousActiveTabData=this.getTabPositionData(r))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Ui([a],Oo.prototype,"appearance",2),Ui([a({mode:"boolean"})],Oo.prototype,"disabled",2),Ui([a],Oo.prototype,"size",2),Ke(Oo,Ue);function jg(o={}){return b` ${He(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${H("tabs")}></slot></div>${rt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${H("tabpanels")}></slot></div>`}const Rg=jg({}),qg=u`
|
|
530
|
+
${k("grid")}
|
|
531
|
+
|
|
532
|
+
:host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${A};color:${Ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${vo};color:${di};fill:${ln}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${mt};fill:${mt};color:${P}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${A};padding:${qe} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${ue};line-height:${me};padding:${ur} ${ne}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${qn};transition-timing-function:${Pi}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${fe};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${qe};padding-bottom:${qe}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Rt};padding-bottom:${Rt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${q};padding-bottom:${q}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ne};left:${ne}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ne};left:${ne}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${qe};bottom:${qe}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${q};bottom:${q}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Gt};bottom:${Gt}}`,Gg=Oo.compose({name:`${p.prefix}-tabs`,template:Rg,styles:qg});Gg.define(p.registry);const Wg=o=>o.getAttribute("aria-disabled")==="true",Xg=o=>o.hasAttribute("hidden"),_r=o=>!Wg(o)&&!Xg(o),Ug={subtle:"subtle",transparent:"transparent"},oo=Se;var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,Er=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Kg(e,t,i),i};class Ao extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=oo.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&_r(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ai(this);switch(e.key){case co:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case ho:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case uo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case lo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case go:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case po:e.preventDefault(),this.adjust(this.tabs.filter(r=>_r(r)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t)}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??oo.horizontal,St(this.elementInternals,e,t,oo),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===e),this.setTabs(),e){const r=this.tabs[this.prevActiveTabIndex],i=this.tabPanelMap.get(r);i&&(i.hidden=!0)}if(t&&this.activetab){const r=this.tabPanelMap.get(this.activetab);r&&(r.hidden=!1)}e!==t&&this.change()}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",i=this.getRootNode().getElementById(t);t&&i&&(i.role??(i.role="tabpanel"),i.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,i))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot==="tab"){const r=this.activeTabIndex===t&&_r(e),i=this.tabIds[t];e.setAttribute("id",i),e.setAttribute("aria-selected",r?"true":"false"),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=e,this.activeid=i)}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===oo.horizontal}adjust(e){const t=this.tabs.filter(n=>_r(n)),r=t.indexOf(this.activetab),i=ml(0,t.length-1,r+e),s=this.tabs.indexOf(t[i]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}Er([a({mode:"boolean"})],Ao.prototype,"disabled",2),Er([a],Ao.prototype,"orientation",2),Er([a],Ao.prototype,"activeid",2),Er([g],Ao.prototype,"tabs",2);var Qg=Object.defineProperty,Zg=Object.getOwnPropertyDescriptor,xa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Qg(e,t,i),i};class Ki extends Ao{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Ug.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===oo.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===oo.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,r=(this.activetab||e[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:r.x-i.x,y:r.y-i.y,height:r.height,width:r.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}xa([a],Ki.prototype,"appearance",2),xa([a],Ki.prototype,"size",2);const Jg=b`<template role="tablist"><slot name="tab" ${H("tabs")}></slot></template>`,ef=u`
|
|
533
|
+
${k("flex")}
|
|
534
|
+
|
|
535
|
+
:host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host ::slotted([role='tab']){align-items:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${qn};transition-timing-function:${Pi}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${fe};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${S}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${qe};--tabPaddingInline:${ee};font-size:${B};line-height:${A}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${ur};--tabPaddingInline:${ne};font-size:${ue};line-height:${me}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${ne}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ne}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${q}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Rt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${q}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${q}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${qe}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Gt}}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${S}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${vo};color:${di};fill:${ln}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${mt};fill:${mt};color:${P}}`,tf=Ki.compose({name:`${p.prefix}-tablist`,template:Jg,styles:ef});tf.define(p.registry);const of={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Nr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var rf=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,de=(o,e,t,r)=>{for(var i=r>1?void 0:r?sf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&rf(e,t,i),i};class U extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Nr.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.labelEl&&(this.labelEl.hidden=!this.labelSlottedNodes.length),this.labelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){St(this.elementInternals,e,t,Nr,"resize-"),y(this.elementInternals,"resize",Kn(Nr,t)&&t!==Nr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.labelSlottedNodes?.length&&this.labelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}U.formAssociated=!0,de([g],U.prototype,"defaultSlottedNodes",2),de([g],U.prototype,"labelSlottedNodes",2),de([a],U.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),de([a({attribute:"dirname"})],U.prototype,"dirName",2),de([a({mode:"boolean"})],U.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),de([a({attribute:"form"})],U.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:Q})],U.prototype,"maxLength",2),de([a({attribute:"minlength",converter:Q})],U.prototype,"minLength",2),de([a],U.prototype,"name",2),de([a],U.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),de([a({mode:"boolean"})],U.prototype,"required",2),de([a({mode:"fromView"})],U.prototype,"resize",2),de([a({mode:"boolean"})],U.prototype,"spellcheck",2);var nf=Object.defineProperty,af=Object.getOwnPropertyDescriptor,Yi=(o,e,t,r)=>{for(var i=r>1?void 0:r?af(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&nf(e,t,i),i};class Fr extends U{constructor(){super(...arguments),this.appearance=of.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Yi([a({mode:"fromView"})],Fr.prototype,"appearance",2),Yi([a({mode:"boolean"})],Fr.prototype,"block",2),Yi([a],Fr.prototype,"size",2);const lf=u`
|
|
536
|
+
${k("inline-block")}
|
|
537
|
+
|
|
538
|
+
:host{--font-size:${B};--line-height:${A};--padding-inline:${ne};--padding-block:${qe};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${T};--control-padding-inline:${R};--color:${P};--background-color:${I};--border-color:${je};--border-block-end-color:${Le};--placeholder-color:${hi};--focus-indicator-color:${xt};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${_};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Lt};--border-block-end-color:${$t}}:host(:active){--border-color:${$o};--border-block-end-color:${yt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${M};--line-height:${X};--min-block-size:40px;--padding-block:${qt};--padding-inline:${ee};--control-padding-inline:${R}}:host([size='large']){--font-size:${ue};--line-height:${me};--min-block-size:64px;--padding-block:${q};--padding-inline:${ae};--control-padding-inline:${ee}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${mo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${yi}}:host(${ou}){--border-color:${vi};--border-block-end-color:${vi}}:host(:disabled){--color:${S};--background-color:${ge};--border-color:${we};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${S};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${C};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${wt};transition-duration:${Si};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${br};transition-delay:${Ct}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${pe}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${ft};background-color:${hn}}`.withBehaviors(Z(u`
|
|
539
|
+
:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function cf(){return b`<template><label ${V("labelEl")} for="control" part="label"><slot name="label" ${H({property:"labelSlottedNodes",filter:li})}></slot></label><div class="root" part="root"><textarea ${V("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${H({property:"defaultSlottedNodes",filter:li})}></slot></div></template>`}const df=cf(),hf=Fr.compose({name:`${p.prefix}-textarea`,template:df,styles:lf,shadowOptions:{delegatesFocus:!0}});hf.define(p.registry);const uf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},pf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var bf=Object.defineProperty,gf=Object.getOwnPropertyDescriptor,E=(o,e,t,r)=>{for(var i=r>1?void 0:r?gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&bf(e,t,i),i};class O extends ${constructor(){super(...arguments),this.type=uf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){this.setValidity()}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>pf.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}O.formAssociated=!0,E([a],O.prototype,"autocomplete",2),E([a({mode:"boolean"})],O.prototype,"autofocus",2),E([a({attribute:"current-value"})],O.prototype,"currentValue",2),E([g],O.prototype,"defaultSlottedNodes",2),E([a],O.prototype,"dirname",2),E([a({mode:"boolean"})],O.prototype,"disabled",2),E([a({attribute:"form"})],O.prototype,"formAttribute",2),E([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),E([a],O.prototype,"list",2),E([a({converter:Q})],O.prototype,"maxlength",2),E([a({converter:Q})],O.prototype,"minlength",2),E([a({mode:"boolean"})],O.prototype,"multiple",2),E([a],O.prototype,"name",2),E([a],O.prototype,"pattern",2),E([a],O.prototype,"placeholder",2),E([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),E([a({mode:"boolean"})],O.prototype,"required",2),E([a({converter:Q})],O.prototype,"size",2),E([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),E([a],O.prototype,"type",2),E([g],O.prototype,"control",2),E([g],O.prototype,"controlLabel",2);var ff=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,ka=(o,e,t,r)=>{for(var i=r>1?void 0:r?mf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&ff(e,t,i),i};class Mr extends O{}ka([a],Mr.prototype,"appearance",2),ka([a({attribute:"control-size"})],Mr.prototype,"controlSize",2),Ke(Mr,Ue);const vf=u`
|
|
540
|
+
${k("block")}
|
|
541
|
+
|
|
542
|
+
:host{font-family:${v};font-size:${B};font-weight:${_};line-height:${A};max-width:400px}.label{display:flex;color:${P};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${pe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${T} solid ${je};border-bottom-color:${Le};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${R};padding:0 ${ne};position:relative;width:100%}:has(.control:user-invalid){border-color:${vi}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${xt};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Si};transition-delay:${wt}}.control{width:100%;height:100%;box-sizing:border-box;color:${P};border-radius:${C};background:${ge};font-family:${v};font-weight:${_};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${hi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${ie};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${R}}:host ::slotted([slot='end']){padding-left:${R};gap:${pe}}:host(:hover) .root{border-color:${Lt};border-bottom-color:${$t}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${br};transition-delay:${Ct}}:host(:focus-within:active) .root:after{border-bottom-color:${$n}}:host([appearance='outline']:focus-within) .root{border:${T} solid ${je}}:host(:focus-within) .control{color:${P}}:host([disabled]) .root{background:${ge};border:${T} solid ${we}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${ft};background-color:${hn}}:host([control-size='small']) .control{font-size:${M};font-weight:${_};line-height:${X}}:host([control-size='small']) .root{height:24px;gap:${R};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${ue}}:host([control-size='large']) .control{font-size:${ue};font-weight:${_};line-height:${me}}:host([control-size='large']) .root{height:40px;gap:${Re};padding:0 ${ae}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ar}}:host([appearance='underline']) .root{background:${ge};border:0;border-radius:0;border-bottom:${T} solid ${Le}}:host([appearance='underline']:hover) .root{border-bottom-color:${$t}}:host([appearance='underline']:active) .root{border-bottom-color:${yt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${yt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${we}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${T} solid ${J};box-shadow:${yi}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${mo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${fi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${fi};background:${mo}}`;function $f(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${V("controlLabel")}><slot ${H({property:"defaultSlottedNodes",filter:li})}></slot></label><div class="root" part="root">${He(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${V("control")} />${rt(o)}</div></template>`}const yf=$f(),xf=Mr.compose({name:`${p.prefix}-text-input`,template:yf,styles:vf,shadowOptions:{delegatesFocus:!0}});xf.define(p.registry);var kf=Object.defineProperty,wf=Object.getOwnPropertyDescriptor,Xe=(o,e,t,r)=>{for(var i=r>1?void 0:r?wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&kf(e,t,i),i};class _e extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Xe([a({mode:"boolean"})],_e.prototype,"nowrap",2),Xe([a({mode:"boolean"})],_e.prototype,"truncate",2),Xe([a({mode:"boolean"})],_e.prototype,"italic",2),Xe([a({mode:"boolean"})],_e.prototype,"underline",2),Xe([a({mode:"boolean"})],_e.prototype,"strikethrough",2),Xe([a({mode:"boolean"})],_e.prototype,"block",2),Xe([a],_e.prototype,"size",2),Xe([a],_e.prototype,"font",2),Xe([a],_e.prototype,"weight",2),Xe([a],_e.prototype,"align",2);const Cf=u`
|
|
543
|
+
${k("inline")}
|
|
544
|
+
|
|
545
|
+
:host{contain:content;font-family:${v};font-size:${B};line-height:${A};font-weight:${_};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${xo};line-height:${cr}}:host([size='200']){font-size:${M};line-height:${X}}:host([size='400']){font-size:${ue};line-height:${me}}:host([size='500']){font-size:${jt};line-height:${dr}}:host([size='600']){font-size:${ar};line-height:${Dn}}:host([size='700']){font-size:${En};line-height:${Vn}}:host([size='800']){font-size:${Nn};line-height:${Hn}}:host([size='900']){font-size:${Fn};line-height:${Ln}}:host([size='1000']){font-size:${Mn};line-height:${jn}}:host([font='monospace']){font-family:${gd}}:host([font='numeric']){font-family:${fd}}:host([weight='medium']){font-weight:${md}}:host([weight='semibold']){font-weight:${D}}:host([weight='bold']){font-weight:${lr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Sf=b`<slot></slot>`,If=_e.compose({name:`${p.prefix}-text`,template:Sf,styles:Cf});If.define(p.registry);var Pf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,wa=(o,e,t,r)=>{for(var i=r>1?void 0:r?zf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Pf(e,t,i),i};class Qi extends Ze{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}wa([a({mode:"boolean"})],Qi.prototype,"pressed",2),wa([a({mode:"boolean"})],Qi.prototype,"mixed",2);const Tf=u`
|
|
546
|
+
${$r}
|
|
547
|
+
|
|
548
|
+
:host(${N}){border-color:${je};background-color:${dn};color:${P};border-width:${T}}:host(${N}:hover){border-color:${Lt};background-color:${tr}}:host(${N}:active){border-color:${$o};background-color:${or}}:host(${N}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${N}[appearance='primary']){background-color:${Xl};color:${Qe}}:host(${N}[appearance='primary']:hover){background-color:${gn}}:host(${N}[appearance='primary']:active){background-color:${fn}}:host(${N}[appearance='subtle']){border-color:transparent;background-color:${pn};color:${Zo}}:host(${N}[appearance='subtle']:hover){background-color:${vo};color:${Mt}}:host(${N}[appearance='subtle']:active){background-color:${mt};color:${Dt}}:host(${N}[appearance='outline']),:host(${N}[appearance='transparent']){background-color:${bn}}:host(${N}[appearance='outline']:hover),:host(${N}[appearance='transparent']:hover){background-color:${ir}}:host(${N}[appearance='outline']:active),:host(${N}[appearance='transparent']:active){background-color:${sr}}:host(${N}[appearance='transparent']){border-color:transparent;color:${Pl}}:host(${N}[appearance='transparent']:hover){color:${Jo}}:host(${N}[appearance='transparent']:active){color:${er}}`.withBehaviors(Z(u`
|
|
549
|
+
:host(${N}),:host(
|
|
550
|
+
${N}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
|
|
551
|
+
){background:SelectedItem;color:SelectedItemText}`)),Bf=_i(),Of=Qi.compose({name:`${p.prefix}-toggle-button`,template:Bf,styles:Tf});Of.define(p.registry);var Af=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,Dr=(o,e,t,r)=>{for(var i=r>1?void 0:r?_f(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Af(e,t,i),i};class _o extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ft("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){nn||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),nn){xl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}Y.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}setFallbackStyles(){if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=i[t]??i.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=n[r]??n.centerX;this.anchorPositioningStyleElement.textContent=`
|
|
552
|
+
#${this.anchor} {
|
|
553
|
+
anchor-name: ${e};
|
|
554
|
+
}
|
|
555
|
+
#${this.id} {
|
|
556
|
+
inset: unset;
|
|
557
|
+
position-anchor: ${e};
|
|
558
|
+
position: absolute;
|
|
559
|
+
${s}
|
|
560
|
+
${c}
|
|
561
|
+
}
|
|
562
|
+
`,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}Dr([a],_o.prototype,"id",2),Dr([a({converter:Q})],_o.prototype,"delay",2),Dr([a],_o.prototype,"positioning",2),Dr([a],_o.prototype,"anchor",2);const Te={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Ef=u`
|
|
563
|
+
${k("inline-flex")}
|
|
564
|
+
|
|
565
|
+
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${pe};background:${I};border-radius:${C};border:1px solid ${J};box-sizing:border-box;color:${P};display:inline-flex;filter:drop-shadow(0 0 2px ${Zl}) drop-shadow(0 4px 8px ${Jl});font-family:${v};font-size:${M};inset:unset;line-height:${X};margin:unset;max-width:240px;overflow:visible;padding:4px ${ne} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Te["above-start"]}}:host([positioning='above']){--position-area:${Te.above}}:host([positioning='above-end']){--position-area:${Te["above-end"]}}:host([positioning='below-start']){--position-area:${Te["below-start"]}}:host([positioning='below']){--position-area:${Te.below}}:host([positioning='below-end']){--position-area:${Te["below-end"]}}:host([positioning='before-top']){--position-area:${Te["before-top"]}}:host([positioning='before']){--position-area:${Te.before}}:host([positioning='before-bottom']){--position-area:${Te["before-bottom"]}}:host([positioning='after-top']){--position-area:${Te["after-top"]}}:host([positioning='after']){--position-area:${Te.after}}:host([positioning='after-bottom']){--position-area:${Te["after-bottom"]}}`,Nf=b`<template popover aria-hidden="true"><slot></slot></template>`,Ff=_o.compose({name:`${p.prefix}-tooltip`,template:Nf,styles:Ef});Ff.define(p.registry);const Ca={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Sa={small:"small",medium:"medium"};function Ee(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Mf(e,t,i),i};class Zi extends ${constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.childTreeItems=[],this.elementInternals.role="tree"}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Ee(t)||this.childTreeItems.length<1)return!0;const r=this.getVisibleNodes();switch(e.key){case go:{r.length&&r[0].focus();return}case po:{r.length&&r[r.length-1].focus();return}case co:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Ee(t.parentElement)&&t.parentElement.focus();return}case ho:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case lo:{this.focusNextNode(1,t);return}case uo:{this.focusNextNode(-1,t);return}case bo:{this.clickHandler(e);return}case Yo:{t.selected=!0;return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused=this.getValidFocusableItem(),this.currentFocused?.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!Ee(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Ee(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Ee(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(r=>r.selected);return t===-1&&(t=e.findIndex(r=>Ee(r))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>Ee(e)&&e.offsetParent!==null)}focusNextNode(e,t){const r=this.getVisibleNodes();if(!r.length)return;const i=r[r.indexOf(t)+e];si(i)&&i.focus()}}Ia([g],Zi.prototype,"currentSelected",2),Ia([g],Zi.prototype,"childTreeItems",2);var Vf=Object.defineProperty,Hf=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Hf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Vf(e,t,i),i};class Ji extends Zi{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Pa([a],Ji.prototype,"size",2),Pa([a],Ji.prototype,"appearance",2);const Lf=u`
|
|
566
|
+
${k("block")}
|
|
567
|
+
:host{outline:none}`,jf=b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" ${ri({property:"childTreeItems",filter:o=>Ee(o)})}><slot></slot></template>`,Rf=Ji.compose({name:`${p.prefix}-tree`,template:jf,styles:Lf});Rf.define(p.registry);var qf=Object.defineProperty,Gf=Object.getOwnPropertyDescriptor,Eo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Gf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&qf(e,t,i),i};class ro extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.selected=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.$emit("change"),y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
|
|
568
|
+
:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Ee(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Ee(this.parentElement)}}Eo([a({mode:"boolean"})],ro.prototype,"expanded",2),Eo([a({mode:"boolean"})],ro.prototype,"selected",2),Eo([a({mode:"boolean"})],ro.prototype,"empty",2),Eo([a({attribute:"data-indent"})],ro.prototype,"dataIndent",2),Eo([g],ro.prototype,"childTreeItems",2);var Wf=Object.defineProperty,Xf=Object.getOwnPropertyDescriptor,za=(o,e,t,r)=>{for(var i=r>1?void 0:r?Xf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&Wf(e,t,i),i};class es extends ro{constructor(){super(...arguments),this.size=Sa.small,this.appearance=Ca.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}za([a],es.prototype,"size",2),za([a],es.prototype,"appearance",2);const Uf=u`
|
|
569
|
+
${k("block")}
|
|
570
|
+
|
|
571
|
+
:host{outline:none;font-size:${B};line-height:${A}}:host(:focus-visible) .positioning-region{box-shadow:${Ci} ${Ci} ${Ci} ${Rt}
|
|
572
|
+
${Ce} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${wd};padding-inline-start:calc(var(--indent) * ${wi});padding-inline-end:${q};border-radius:${C};background-color:${un};color:${Ie};gap:${pe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${Ce}}}.content{display:flex;align-items:center;gap:${pe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${wi};height:${kt};transition:transform ${pr} ${Wn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${vo};color:${Mt}}.positioning-region:active{background-color:${mt};color:${Dt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${R}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${pn};color:${Zo}}:host([selected]) .content,:host([selected]) .chevron{color:${Bl}}:host([size='small']) .positioning-region{height:${kt};padding-inline-start:calc(var(--indent) * ${ae})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${ql}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Gl}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Wl};color:${Zo}}:host([appearance='transparent']) .positioning-region{background-color:${ge}}:host([appearance='transparent']) .positioning-region:hover{background-color:${ir}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${bn};color:${Zo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Kf=b`<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,Yf=b`<template tabindex="${o=>o.selected?0:-1}" slot="${o=>o.isNestedItem?"item":void 0}" ${ri({property:"childTreeItems",filter:o=>Ee(o)})}><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron"><slot name="chevron">${Kf}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item"></slot></div></template>`,Qf=es.compose({name:`${p.prefix}-tree-item`,template:Yf,styles:Uf});Qf.define(p.registry);
|