@shortfuse/materialdesignweb 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -206
- package/components/Badge.js +5 -2
- package/components/Body.js +4 -0
- package/components/BottomAppBar.js +6 -2
- package/components/BottomSheet.js +62 -14
- package/components/Button.js +20 -0
- package/components/Card.js +20 -3
- package/components/Checkbox.js +8 -0
- package/components/CheckboxIcon.js +9 -3
- package/components/Chip.js +5 -2
- package/components/Dialog.js +22 -3
- package/components/DialogActions.js +4 -0
- package/components/Display.js +9 -0
- package/components/Divider.js +5 -0
- package/components/Fab.js +11 -0
- package/components/FabContainer.js +9 -0
- package/components/FilterChip.js +9 -0
- package/components/Grid.js +11 -0
- package/components/Headline.js +4 -0
- package/components/Icon.js +27 -3
- package/components/IconButton.js +8 -2
- package/components/Input.js +87 -14
- package/components/InputChip.js +33 -1
- package/components/Label.js +4 -0
- package/components/List.js +10 -0
- package/components/ListItem.js +53 -0
- package/components/ListOption.js +62 -1
- package/components/Listbox.js +44 -13
- package/components/Menu.js +31 -9
- package/components/MenuItem.js +24 -10
- package/components/NavBar.js +14 -3
- package/components/NavBarItem.js +5 -0
- package/components/NavDrawer.js +17 -0
- package/components/NavDrawerItem.js +5 -0
- package/components/NavItem.js +22 -2
- package/components/NavRail.js +9 -0
- package/components/NavRailItem.js +5 -0
- package/components/Page.js +15 -1
- package/components/Pane.js +7 -1
- package/components/Popup.js +6 -0
- package/components/Progress.js +25 -5
- package/components/Radio.js +6 -2
- package/components/RadioIcon.js +14 -1
- package/components/Ripple.js +14 -0
- package/components/Root.js +16 -0
- package/components/Scrim.js +10 -2
- package/components/Search.js +18 -5
- package/components/SegmentedButton.js +22 -6
- package/components/SegmentedButtonGroup.js +7 -10
- package/components/Select.js +13 -3
- package/components/Shape.js +4 -0
- package/components/SideSheet.js +31 -2
- package/components/Slider.js +22 -2
- package/components/Snackbar.js +30 -4
- package/components/SnackbarContainer.js +9 -0
- package/components/Surface.js +5 -0
- package/components/Switch.js +18 -2
- package/components/SwitchIcon.js +22 -1
- package/components/Tab.js +21 -0
- package/components/TabContent.js +32 -12
- package/components/TabList.js +36 -3
- package/components/TabPanel.js +9 -0
- package/components/Table.js +38 -3
- package/components/TextArea.js +32 -1
- package/components/Title.js +4 -0
- package/components/Tooltip.js +9 -2
- package/components/TopAppBar.js +15 -0
- package/core/Composition.js +45 -16
- package/core/CompositionAdapter.js +24 -6
- package/core/CustomElement.js +77 -49
- package/core/customTypes.js +43 -26
- package/core/dom.js +1 -0
- package/core/jsonMergePatch.js +15 -1
- package/core/observe.js +28 -21
- package/dist/CustomElement.min.js +2 -0
- package/dist/CustomElement.min.js.map +7 -0
- package/dist/core/CustomElement.min.js +2 -0
- package/dist/core/CustomElement.min.js.map +7 -0
- package/dist/index.min.js +9 -9
- package/dist/index.min.js.map +3 -3
- package/dist/meta.json +1 -1
- package/dom/HTMLOptionsCollectionProxy.js +5 -3
- package/mixins/AriaReflectorMixin.js +22 -13
- package/mixins/AriaToolbarMixin.js +3 -0
- package/mixins/ControlMixin.js +3 -0
- package/mixins/DelegatesFocusMixin.js +9 -1
- package/mixins/DensityMixin.js +5 -1
- package/mixins/ElevationMixin.js +1 -2
- package/mixins/FlexableMixin.js +21 -2
- package/mixins/FormAssociatedMixin.js +19 -5
- package/mixins/HyperlinkMixin.js +11 -1
- package/mixins/InputMixin.js +22 -0
- package/mixins/KeyboardNavMixin.js +3 -1
- package/mixins/PopupMixin.js +41 -12
- package/mixins/RTLObserverMixin.js +2 -0
- package/mixins/ResizeObserverMixin.js +2 -0
- package/mixins/RippleMixin.js +3 -1
- package/mixins/ScrollListenerMixin.js +13 -1
- package/mixins/SemiStickyMixin.js +7 -0
- package/mixins/ShapeMaskedMixin.js +9 -1
- package/mixins/ShapeMixin.js +9 -0
- package/mixins/StateMixin.js +4 -0
- package/mixins/TextFieldMixin.js +21 -2
- package/mixins/ThemableMixin.js +13 -0
- package/mixins/TooltipTriggerMixin.js +17 -3
- package/mixins/TouchTargetMixin.js +4 -1
- package/mixins/TypographyMixin.js +8 -1
- package/package.json +53 -45
- package/services/theme.js +4 -5
- package/types/components/BottomAppBar.d.ts +3 -4
- package/types/components/BottomSheet.d.ts +33 -7
- package/types/components/BottomSheet.d.ts.map +1 -1
- package/types/components/Button.d.ts +3 -472
- package/types/components/Button.d.ts.map +1 -1
- package/types/components/Card.d.ts +9 -274
- package/types/components/Card.d.ts.map +1 -1
- package/types/components/Checkbox.d.ts +2 -0
- package/types/components/Checkbox.d.ts.map +1 -1
- package/types/components/Chip.d.ts +3 -1180
- package/types/components/Dialog.d.ts +8 -191
- package/types/components/Dialog.d.ts.map +1 -1
- package/types/components/Display.d.ts +5 -4
- package/types/components/Display.d.ts.map +1 -1
- package/types/components/Fab.d.ts +2 -470
- package/types/components/FilterChip.d.ts +5 -4032
- package/types/components/Grid.d.ts +1 -0
- package/types/components/Grid.d.ts.map +1 -1
- package/types/components/Headline.d.ts +3 -4
- package/types/components/Icon.d.ts +1 -49
- package/types/components/Icon.d.ts.map +1 -1
- package/types/components/IconButton.d.ts +3 -1205
- package/types/components/Input.d.ts +1485 -50245
- package/types/components/Input.d.ts.map +1 -1
- package/types/components/InputChip.d.ts +2 -160
- package/types/components/List.d.ts +8 -4
- package/types/components/List.d.ts.map +1 -1
- package/types/components/ListItem.d.ts +10 -235
- package/types/components/ListItem.d.ts.map +1 -1
- package/types/components/ListOption.d.ts +17 -1352
- package/types/components/ListOption.d.ts.map +1 -1
- package/types/components/Listbox.d.ts +199 -11448
- package/types/components/Listbox.d.ts.map +1 -1
- package/types/components/Menu.d.ts +21 -10
- package/types/components/Menu.d.ts.map +1 -1
- package/types/components/MenuItem.d.ts +17 -2894
- package/types/components/MenuItem.d.ts.map +1 -1
- package/types/components/NavBar.d.ts +2 -0
- package/types/components/NavBar.d.ts.map +1 -1
- package/types/components/NavBarItem.d.ts +1 -90
- package/types/components/NavDrawer.d.ts +3 -4
- package/types/components/NavDrawerItem.d.ts +1 -90
- package/types/components/NavItem.d.ts +1 -92
- package/types/components/NavItem.d.ts.map +1 -1
- package/types/components/NavRail.d.ts +3 -4
- package/types/components/NavRailItem.d.ts +1 -90
- package/types/components/Page.d.ts +1 -0
- package/types/components/Page.d.ts.map +1 -1
- package/types/components/Popup.d.ts +5 -3
- package/types/components/Popup.d.ts.map +1 -1
- package/types/components/Progress.d.ts +2 -0
- package/types/components/Progress.d.ts.map +1 -1
- package/types/components/Radio.d.ts +2 -0
- package/types/components/Radio.d.ts.map +1 -1
- package/types/components/Ripple.d.ts +1 -0
- package/types/components/Ripple.d.ts.map +1 -1
- package/types/components/Root.d.ts +1 -1
- package/types/components/Root.d.ts.map +1 -1
- package/types/components/Search.d.ts +502 -2
- package/types/components/Search.d.ts.map +1 -1
- package/types/components/SegmentedButton.d.ts +4 -470
- package/types/components/SegmentedButton.d.ts.map +1 -1
- package/types/components/SegmentedButtonGroup.d.ts +3 -4
- package/types/components/SegmentedButtonGroup.d.ts.map +1 -1
- package/types/components/Select.d.ts +5 -1208
- package/types/components/Select.d.ts.map +1 -1
- package/types/components/SideSheet.d.ts +9 -4
- package/types/components/SideSheet.d.ts.map +1 -1
- package/types/components/Slider.d.ts +10 -189
- package/types/components/Slider.d.ts.map +1 -1
- package/types/components/Snackbar.d.ts +13 -5
- package/types/components/Snackbar.d.ts.map +1 -1
- package/types/components/Switch.d.ts +4 -0
- package/types/components/Switch.d.ts.map +1 -1
- package/types/components/SwitchIcon.d.ts +2 -110
- package/types/components/SwitchIcon.d.ts.map +1 -1
- package/types/components/Tab.d.ts +12 -752
- package/types/components/Tab.d.ts.map +1 -1
- package/types/components/TabContent.d.ts +23 -21
- package/types/components/TabContent.d.ts.map +1 -1
- package/types/components/TabList.d.ts +646 -5801
- package/types/components/TabList.d.ts.map +1 -1
- package/types/components/TabPanel.d.ts +4 -4
- package/types/components/TabPanel.d.ts.map +1 -1
- package/types/components/Table.d.ts +24 -1
- package/types/components/Table.d.ts.map +1 -1
- package/types/components/TextArea.d.ts +15 -1208
- package/types/components/TextArea.d.ts.map +1 -1
- package/types/components/Title.d.ts +3 -4
- package/types/components/Tooltip.d.ts +4 -4
- package/types/components/Tooltip.d.ts.map +1 -1
- package/types/components/TopAppBar.d.ts +4 -5
- package/types/components/TopAppBar.d.ts.map +1 -1
- package/types/constants/shapes.d.ts.map +1 -1
- package/types/core/Composition.d.ts +19 -11
- package/types/core/Composition.d.ts.map +1 -1
- package/types/core/CompositionAdapter.d.ts +30 -8
- package/types/core/CompositionAdapter.d.ts.map +1 -1
- package/types/core/CustomElement.d.ts +27 -25
- package/types/core/CustomElement.d.ts.map +1 -1
- package/types/core/customTypes.d.ts +2 -6
- package/types/core/customTypes.d.ts.map +1 -1
- package/types/core/dom.d.ts.map +1 -1
- package/types/core/jsonMergePatch.d.ts.map +1 -1
- package/types/core/observe.d.ts +20 -19
- package/types/core/observe.d.ts.map +1 -1
- package/types/core/template.d.ts.map +1 -1
- package/types/dom/HTMLOptionsCollectionProxy.d.ts +4 -4
- package/types/dom/HTMLOptionsCollectionProxy.d.ts.map +1 -1
- package/types/mixins/AriaReflectorMixin.d.ts +18 -10
- package/types/mixins/AriaReflectorMixin.d.ts.map +1 -1
- package/types/mixins/AriaToolbarMixin.d.ts +6 -4
- package/types/mixins/AriaToolbarMixin.d.ts.map +1 -1
- package/types/mixins/ControlMixin.d.ts +1 -1
- package/types/mixins/ControlMixin.d.ts.map +1 -1
- package/types/mixins/DelegatesFocusMixin.d.ts +9 -1
- package/types/mixins/DelegatesFocusMixin.d.ts.map +1 -1
- package/types/mixins/DensityMixin.d.ts +4 -1
- package/types/mixins/DensityMixin.d.ts.map +1 -1
- package/types/mixins/ElevationMixin.d.ts +1 -2
- package/types/mixins/ElevationMixin.d.ts.map +1 -1
- package/types/mixins/FlexableMixin.d.ts +1 -0
- package/types/mixins/FlexableMixin.d.ts.map +1 -1
- package/types/mixins/FormAssociatedMixin.d.ts +3 -2
- package/types/mixins/FormAssociatedMixin.d.ts.map +1 -1
- package/types/mixins/HyperlinkMixin.d.ts +4 -1
- package/types/mixins/HyperlinkMixin.d.ts.map +1 -1
- package/types/mixins/InputMixin.d.ts +1 -7
- package/types/mixins/InputMixin.d.ts.map +1 -1
- package/types/mixins/KeyboardNavMixin.d.ts +4 -5
- package/types/mixins/KeyboardNavMixin.d.ts.map +1 -1
- package/types/mixins/PopupMixin.d.ts +22 -6
- package/types/mixins/PopupMixin.d.ts.map +1 -1
- package/types/mixins/RTLObserverMixin.d.ts +1 -0
- package/types/mixins/RTLObserverMixin.d.ts.map +1 -1
- package/types/mixins/ResizeObserverMixin.d.ts +1 -0
- package/types/mixins/ResizeObserverMixin.d.ts.map +1 -1
- package/types/mixins/RippleMixin.d.ts +3 -1
- package/types/mixins/RippleMixin.d.ts.map +1 -1
- package/types/mixins/ScrollListenerMixin.d.ts +7 -2
- package/types/mixins/ScrollListenerMixin.d.ts.map +1 -1
- package/types/mixins/SemiStickyMixin.d.ts +1 -1
- package/types/mixins/SemiStickyMixin.d.ts.map +1 -1
- package/types/mixins/ShapeMaskedMixin.d.ts +4 -1
- package/types/mixins/ShapeMaskedMixin.d.ts.map +1 -1
- package/types/mixins/ShapeMixin.d.ts +1 -0
- package/types/mixins/ShapeMixin.d.ts.map +1 -1
- package/types/mixins/StateMixin.d.ts +2 -0
- package/types/mixins/StateMixin.d.ts.map +1 -1
- package/types/mixins/TextFieldMixin.d.ts +7 -1208
- package/types/mixins/TextFieldMixin.d.ts.map +1 -1
- package/types/mixins/ThemableMixin.d.ts +1 -0
- package/types/mixins/ThemableMixin.d.ts.map +1 -1
- package/types/mixins/TooltipTriggerMixin.d.ts +12 -4
- package/types/mixins/TooltipTriggerMixin.d.ts.map +1 -1
- package/types/mixins/TouchTargetMixin.d.ts +4 -1
- package/types/mixins/TouchTargetMixin.d.ts.map +1 -1
- package/types/mixins/TypographyMixin.d.ts +4 -1
- package/types/mixins/TypographyMixin.d.ts.map +1 -1
- package/types/services/theme.d.ts.map +1 -1
- package/types/utils/jsx-runtime.d.ts +3 -3
- package/types/utils/jsx-runtime.d.ts.map +1 -1
- package/types/utils/material-color/hct/Hct.d.ts.map +1 -1
- package/types/utils/material-color/palettes/CorePalette.d.ts +1 -1
- package/types/utils/material-color/palettes/CorePalette.d.ts.map +1 -1
- package/types/utils/material-color/scheme/Scheme.d.ts.map +1 -1
- package/types/utils/pixelmatch.d.ts +3 -3
- package/types/utils/pixelmatch.d.ts.map +1 -1
- package/types/utils/searchParams.d.ts.map +1 -1
- package/utils/jsx-runtime.js +9 -4
- package/utils/pixelmatch.js +10 -7
- package/utils/searchParams.js +3 -0
- package/components/Button.md +0 -61
package/dist/index.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var Or=Object.defineProperty;var Lt=(t,e)=>{for(var i in e)Or(t,i,{get:e[i],enumerable:!0})};var Ki={};Lt(Ki,{PALETTES:()=>De,TYPE_STYLES:()=>Ut,generateColorCSS:()=>_t,generateShapeCSS:()=>Gt,generateThemeCSS:()=>Qt,generateTypographyCSS:()=>Xt,generateTypographyGlobalCSS:()=>qt,setupTheme:()=>oo,themeOptionsFromSearchParams:()=>Kt});var Ue=new Map([["black","#000000"],["silver","#c0c0c0"],["gray","#808080"],["white","#ffffff"],["maroon","#800000"],["red","#ff0000"],["purple","#800080"],["fuchsia","#ff00ff"],["green","#008000"],["lime","#00ff00"],["olive","#808000"],["yellow","#ffff00"],["navy","#000080"],["blue","#0000ff"],["teal","#008080"],["aqua","#00ffff"],["orange","#ffa500"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"],["rebeccapurple","#663399"]]);var Fr="M0 12A12 12 0 1012 0 12 12 0 000 12Z",Nr="M 0 12 12 0 24 12 12 24 Z",Dr="M12 24C17.2583 24 20.1815 24 22.0908 22.0908 24 20.1815 24 17.2583 24 12 24 6.7417 24 3.8185 22.0908 1.9092 20.1815-0 17.2583-0 12-0 6.7417-0 3.8185-0 1.9092 1.9092-0 3.8185-0 6.7417-0 12-0 17.2583-0 20.1815 1.9092 22.0908 3.8185 24 6.7417 24 12 24Z";var dt={size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Fr,convex:!1},En={...dt,size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Nr},Mn={...dt,mask:Dr};var Fi={face:{brand:'"Roboto Medium", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',plain:'"Roboto Regular", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',weight:{regular:400,medium:500}},scale:{display:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:64,fontSize:57,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:52,fontSize:45,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:44,fontSize:36,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},headline:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:40,fontSize:32,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:36,fontSize:28,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:32,fontSize:24,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},title:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:28,fontSize:22,letterSpacing:0,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.15,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"}},label:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:12,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:11,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"}},body:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.5,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.25,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:16,fontSize:12,letterSpacing:.4,weight:"var(--mdw-typeface__weight-regular)"}}}};function W(t){return t<0?-1:t===0?0:1}function Rt(t,e,i){return(1-i)*t+i*e}function Ni(t,e,i){return i<t?t:i>e?e:i}function Xe(t){return t%=360,t<0&&(t+=360),t}function Di(t,e){return Xe(e-t)<=180?1:-1}function Vi(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function qe(t,e){let i=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],r=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[i,r,o]}var Vr=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],$r=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Hr=[95.047,100,108.883];function Pt(t,e,i){return(255<<24|(t&255)<<16|(e&255)<<8|i&255)>>>0}function Ot(t){let e=Me(t[0]),i=Me(t[1]),r=Me(t[2]);return Pt(e,i,r)}function Ft(t){return t>>16&255}function Nt(t){return t>>8&255}function Dt(t){return t&255}function $i(t,e,i){let r=$r,o=r[0][0]*t+r[0][1]*e+r[0][2]*i,n=r[1][0]*t+r[1][1]*e+r[1][2]*i,s=r[2][0]*t+r[2][1]*e+r[2][2]*i,l=Me(o),a=Me(n),c=Me(s);return Pt(l,a,c)}function Br(t){let e=Ee(Ft(t)),i=Ee(Nt(t)),r=Ee(Dt(t));return qe([e,i,r],Vr)}function Hi(t){let e=Fe(t),i=Me(e);return Pt(i,i,i)}function Vt(t){let e=Br(t)[1];return 116*ji(e/100)-16}function Fe(t){return 100*Yr((t+16)/116)}function Bi(t){return ji(t/100)*116-16}function Ee(t){let e=t/255;return e<=.040449936?e/12.92*100:((e+.055)/1.055)**2.4*100}function Me(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Ni(0,255,Math.round(i*255))}function Yi(){return Hr}function ji(t){let e=.008856451679035631,i=24389/27;return t>e?t**(1/3):(i*t+16)/116}function Yr(t){let e=.008856451679035631,i=24389/27,r=t*t*t;return r>e?r:(116*t-16)/i}var ie=class t{static DEFAULT=t.make();static make(e=Yi(),i=200/Math.PI*Fe(50)/100,r=50,o=2,n=!1){let s=e,l=s[0]*.401288+s[1]*.650173+s[2]*-.051461,a=s[0]*-.250268+s[1]*1.204414+s[2]*.045854,c=s[0]*-.002079+s[1]*.048952+s[2]*.953127,d=.8+o/10,m=d>=.9?Rt(.59,.69,(d-.9)*10):Rt(.525,.59,(d-.8)*10),p=n?1:d*(1-1/3.6*Math.exp((-i-42)/92));p=p>1?1:p<0?0:p;let f=d,h=[p*(100/l)+1-p,p*(100/a)+1-p,p*(100/c)+1-p],u=1/(5*i+1),g=u*u*u*u,b=1-g,x=g*i+.1*b*b*Math.cbrt(5*i),k=Fe(r)/e[1],S=1.48+Math.sqrt(k),A=.725/k**.2,T=A,E=[(x*h[0]*l/100)**.42,(x*h[1]*a/100)**.42,(x*h[2]*c/100)**.42],v=[400*E[0]/(E[0]+27.13),400*E[1]/(E[1]+27.13),400*E[2]/(E[2]+27.13)],y=(2*v[0]+v[1]+.05*v[2])*A;return new t(k,y,A,T,m,f,h,x,x**.25,S)}constructor(e,i,r,o,n,s,l,a,c,d){this.n=e,this.aw=i,this.nbb=r,this.ncb=o,this.c=n,this.nc=s,this.rgbD=l,this.fl=a,this.fLRoot=c,this.z=d}};var ge=class t{static fromInt(e){return t.fromIntInViewingConditions(e,ie.DEFAULT)}static fromIntInViewingConditions(e,i){let r=(e&16711680)>>16,o=(e&65280)>>8,n=e&255,s=Ee(r),l=Ee(o),a=Ee(n),c=.41233895*s+.35762064*l+.18051042*a,d=.2126*s+.7152*l+.0722*a,m=.01932141*s+.11916382*l+.95034478*a,p=.401288*c+.650173*d-.051461*m,f=-.250268*c+1.204414*d+.045854*m,h=-.002079*c+.048952*d+.953127*m,u=i.rgbD[0]*p,g=i.rgbD[1]*f,b=i.rgbD[2]*h,x=(i.fl*Math.abs(u)/100)**.42,k=(i.fl*Math.abs(g)/100)**.42,S=(i.fl*Math.abs(b)/100)**.42,A=W(u)*400*x/(x+27.13),T=W(g)*400*k/(k+27.13),E=W(b)*400*S/(S+27.13),v=(11*A+-12*T+E)/11,y=(A+T-2*E)/9,z=(20*A+20*T+21*E)/20,D=(40*A+20*T+E)/20,R=Math.atan2(y,v)*180/Math.PI,P=R<0?R+360:R>=360?R-360:R,V=P*Math.PI/180,Y=100*(D*i.nbb/i.aw)**(i.c*i.z),F=4/i.c*Math.sqrt(Y/100)*(i.aw+4)*i.fLRoot,X=P<20.14?P+360:P,je=.25*(Math.cos(X*Math.PI/180+2)+3.8),ct=(5e4/13*je*i.nc*i.ncb*Math.sqrt(v*v+y*y)/(z+.305))**.9*(1.64-.29**i.n)**.73,Ri=ct*Math.sqrt(Y/100),Pi=Ri*i.fLRoot,Ir=50*Math.sqrt(ct*i.c/(i.aw+4)),Lr=(1+100*.007)*Y/(1+.007*Y),Oi=1/.0228*Math.log(1+.0228*Pi),Rr=Oi*Math.cos(V),Pr=Oi*Math.sin(V);return new t(P,Ri,Y,F,Pi,Ir,Lr,Rr,Pr)}static fromJch(e,i,r){return t.fromJchInViewingConditions(e,i,r,ie.DEFAULT)}static fromJchInViewingConditions(e,i,r,o){let n=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,s=i*o.fLRoot,l=i/Math.sqrt(e/100),a=50*Math.sqrt(l*o.c/(o.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*e/(1+.007*e),m=1/.0228*Math.log(1+.0228*s),p=m*Math.cos(c),f=m*Math.sin(c);return new t(r,i,e,n,s,a,d,p,f)}static fromUcs(e,i,r){return t.fromUcsInViewingConditions(e,i,r,ie.DEFAULT)}static fromUcsInViewingConditions(e,i,r,o){let n=i,s=r,l=Math.sqrt(n*n+s*s),c=(Math.exp(l*.0228)-1)/.0228/o.fLRoot,d=Math.atan2(s,n)*(180/Math.PI);d<0&&(d+=360);let m=e/(1-(e-100)*.007);return t.fromJchInViewingConditions(m,c,d,o)}static fromXyzInViewingConditions(e,i,r,o){let n=.401288*e+.650173*i-.051461*r,s=-.250268*e+1.204414*i+.045854*r,l=-.002079*e+.048952*i+.953127*r,a=o.rgbD[0]*n,c=o.rgbD[1]*s,d=o.rgbD[2]*l,m=(o.fl*Math.abs(a)/100)**.42,p=(o.fl*Math.abs(c)/100)**.42,f=(o.fl*Math.abs(d)/100)**.42,h=W(a)*400*m/(m+27.13),u=W(c)*400*p/(p+27.13),g=W(d)*400*f/(f+27.13),b=(11*h+-12*u+g)/11,x=(h+u-2*g)/9,k=(20*h+20*u+21*g)/20,S=(40*h+20*u+g)/20,T=Math.atan2(x,b)*180/Math.PI,E=T<0?T+360:T>=360?T-360:T,v=E*Math.PI/180,z=100*(S*o.nbb/o.aw)**(o.c*o.z),D=4/o.c*Math.sqrt(z/100)*(o.aw+4)*o.fLRoot,I=E<20.14?E+360:E,R=1/4*(Math.cos(I*Math.PI/180+2)+3.8),te=(5e4/13*R*o.nc*o.ncb*Math.sqrt(b*b+x*x)/(k+.305))**.9*(1.64-.29**o.n)**.73,Y=te*Math.sqrt(z/100),F=Y*o.fLRoot,X=50*Math.sqrt(te*o.c/(o.aw+4)),je=(1+100*.007)*z/(1+.007*z),We=Math.log(1+.0228*F)/.0228,lt=We*Math.cos(v),ct=We*Math.sin(v);return new t(E,Y,z,D,F,X,je,lt,ct)}constructor(e,i,r,o,n,s,l,a,c){this.hue=e,this.chroma=i,this.j=r,this.q=o,this.m=n,this.s=s,this.jstar=l,this.astar=a,this.bstar=c}distance(e){let i=this.jstar-e.jstar,r=this.astar-e.astar,o=this.bstar-e.bstar;return 1.41*Math.sqrt(i*i+r*r+o*o)**.63}toInt(){return this.viewed(ie.DEFAULT)}viewed(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),m=23*(a+.305)*r/(23*l+11*r*d+108*r*c),p=m*d,f=m*c,h=(460*a+451*p+288*f)/1403,u=(460*a-891*p-261*f)/1403,g=(460*a-220*p-6300*f)/1403,b=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),x=W(h)*(100/e.fl)*b**(1/.42),k=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),S=W(u)*(100/e.fl)*k**(1/.42),A=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),T=W(g)*(100/e.fl)*A**(1/.42),E=x/e.rgbD[0],v=S/e.rgbD[1],y=T/e.rgbD[2],z=1.86206786*E-1.01125463*v+.14918677*y,D=.38752654*E+.62144744*v-.00897398*y,I=-.0158415*E-.03412294*v+1.04996444*y;return $i(z,D,I)}xyzInViewingConditions(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),m=23*(a+.305)*r/(23*l+11*r*d+108*r*c),p=m*d,f=m*c,h=(460*a+451*p+288*f)/1403,u=(460*a-891*p-261*f)/1403,g=(460*a-220*p-6300*f)/1403,b=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),x=W(h)*(100/e.fl)*b**(1/.42),k=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),S=W(u)*(100/e.fl)*k**(1/.42),A=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),T=W(g)*(100/e.fl)*A**(1/.42),E=x/e.rgbD[0],v=S/e.rgbD[1],y=T/e.rgbD[2],z=1.86206786*E-1.01125463*v+.14918677*y,D=.38752654*E+.62144744*v-.00897398*y,I=-.0158415*E-.03412294*v+1.04996444*y;return[z,D,I]}};var jr=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],Wr=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],Ne=[.2126,.7152,.0722],Ur=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];function Wi(t){return(t+Math.PI*8)%(Math.PI*2)}function mt(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,i*255}function $t(t){let e=Math.abs(t)**.42;return W(t)*400*e/(e+27.13)}function Yt(t){let e=qe(t,jr),i=$t(e[0]),r=$t(e[1]),o=$t(e[2]),n=(11*i+-12*r+o)/11,s=(i+r-2*o)/9;return Math.atan2(s,n)}function jt(t,e,i){let r=Wi(e-t),o=Wi(i-t);return r<o}function Xr(t,e,i){return(e-t)/(i-t)}function qr(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}function Gr(t,e,i,r){let o=Xr(t[r],e,i[r]);return qr(t,o,i)}function Ht(t){return t>=0&&t<=100}function Kr(t,e){let i=Ne[0],r=Ne[1],o=Ne[2],n=e%4<=1?0:100,s=e%2===0?0:100;if(e<4){let d=n,m=s,p=(t-d*r-m*o)/i;return Ht(p)?[p,d,m]:[-1,-1,-1]}if(e<8){let d=n,m=s,p=(t-m*i-d*o)/r;return Ht(p)?[m,p,d]:[-1,-1,-1]}let l=n,a=s,c=(t-l*i-a*r)/o;return Ht(c)?[l,a,c]:[-1,-1,-1]}function Qr(t,e){let i=[-1,-1,-1],r=i,o=0,n=0,s=!1,l=!0;for(let a=0;a<12;a++){let c=Kr(t,a);if(c[0]<0)continue;let d=Yt(c);if(!s){i=c,r=c,o=d,n=d,s=!0;continue}(l||jt(o,d,n))&&(l=!1,jt(o,e,d)?(r=c,n=d):(i=c,o=d))}return[i,r]}function Jr(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}function Ui(t){return Math.floor(t-.5)}function Xi(t){return Math.ceil(t-.5)}function Zr(t,e){let i=Qr(t,e),r=i[0],o=Yt(r),n=i[1];for(let s=0;s<3;s++)if(r[s]!==n[s]){let l=-1,a=255;r[s]<n[s]?(l=Ui(mt(r[s])),a=Xi(mt(n[s]))):(l=Xi(mt(r[s])),a=Ui(mt(n[s])));for(let c=0;c<8&&!(Math.abs(a-l)<=1);c++){let d=Math.floor((l+a)/2),m=Ur[d],p=Gr(r,m,n,s),f=Yt(p);jt(o,e,f)?(n=p,a=d):(r=p,o=f,l=d)}}return Jr(r,n)}function Bt(t){let e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return W(t)*i**(1/.42)}function eo(t,e,i){let r=Math.sqrt(i)*11,o=ie.DEFAULT,n=1/(1.64-.29**o.n)**.73,l=.25*(Math.cos(t+2)+3.8)*(5e4/13)*o.nc*o.ncb,a=Math.sin(t),c=Math.cos(t);for(let d=0;d<5;d++){let m=r/100,f=((e===0||r===0?0:e/Math.sqrt(m))*n)**(1/.9),u=o.aw*m**(1/o.c/o.z)/o.nbb,g=23*(u+.305)*f/(23*l+11*f*c+108*f*a),b=g*c,x=g*a,k=(460*u+451*b+288*x)/1403,S=(460*u-891*b-261*x)/1403,A=(460*u-220*b-6300*x)/1403,T=Bt(k),E=Bt(S),v=Bt(A),y=qe([T,E,v],Wr);if(y[0]<0||y[1]<0||y[2]<0)return 0;let z=Ne[0],D=Ne[1],I=Ne[2],R=z*y[0]+D*y[1]+I*y[2];if(R<=0)return 0;if(d===4||Math.abs(R-i)<.002)return y[0]>100.01||y[1]>100.01||y[2]>100.01?0:Ot(y);r-=(R-i)*r/(2*R)}return 0}function Qe(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return Hi(i);t=Xe(t);let r=t/180*Math.PI,o=Fe(i),n=eo(r,e,o);if(n!==0)return n;let s=Zr(o,r);return Ot(s)}var J=class t{static from(e,i,r){return new t(Qe(e,i,r))}static fromInt(e){return new t(e)}internalHue;internalChroma;internalTone;constructor(e){let i=ge.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Vt(e),this.argb=e}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Qe(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Qe(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Qe(this.internalHue,this.internalChroma,e))}setInternalState(e){let i=ge.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Vt(e),this.argb=e}inViewingConditions(e){let r=ge.fromInt(this.toInt()).xyzInViewingConditions(e),o=ge.fromXyzInViewingConditions(r[0],r[1],r[2],ie.make());return t.from(o.hue,o.chroma,Bi(r[1]))}};function qi(t,e){let i=J.fromInt(t),r=J.fromInt(e),o=Vi(i.hue,r.hue),n=Math.min(o*.5,15),s=Xe(i.hue+n*Di(i.hue,r.hue));return J.from(s,i.chroma,i.tone).toInt()}var q=class t{static fromInt(e){let i=J.fromInt(e);return t.fromHueAndChroma(i.hue,i.chroma)}static fromHueAndChroma(e,i){return new t(e,i)}#e=new Map;constructor(e,i){this.hue=e,this.chroma=i}tone(e){let i=this.#e.get(e);return i===void 0&&(i=J.from(this.hue,this.chroma,e).toInt(),this.#e.set(e,i)),i}getHct(e){return J.fromInt(this.tone(e))}};var ae=class t{static#e(e,i){let r=new t(i.primary,e);if(i.secondary){let o=new t(i.secondary,e);r.a2=o.a1}if(i.tertiary){let o=new t(i.tertiary,e);r.a3=o.a1}if(i.error){let o=new t(i.error,e);r.error=o.a1}if(i.neutral){let o=new t(i.neutral,e);r.n1=o.n1}if(i.neutralVariant){let o=new t(i.neutralVariant,e);r.n2=o.n2}return r}static of(e){return new t(e,!1)}static contentOf(e){return new t(e,!0)}static fromColors(e){return t.#e(!1,e)}static contentFromColors(e){return t.#e(!0,e)}a1;a2;a3;n1;n2;error;constructor(e,i){let r=J.fromInt(e),{hue:o}=r,{chroma:n}=r;i?(this.a1=q.fromHueAndChroma(o,n),this.a2=q.fromHueAndChroma(o,n/3),this.a3=q.fromHueAndChroma(o+60,n/2),this.n1=q.fromHueAndChroma(o,Math.min(n/12,6)),this.n2=q.fromHueAndChroma(o,Math.min(n/6,8))):(this.a1=q.fromHueAndChroma(o,Math.max(48,n)),this.a2=q.fromHueAndChroma(o,16),this.a3=q.fromHueAndChroma(o+60,24),this.n1=q.fromHueAndChroma(o,6),this.n2=q.fromHueAndChroma(o,8)),this.error=q.fromHueAndChroma(25,84)}};var we=class t{static light(e){return t.lightFromCorePalette(ae.of(e))}static dark(e){return t.darkFromCorePalette(ae.of(e))}static lightContent(e){return t.lightFromCorePalette(ae.contentOf(e))}static darkContent(e){return t.darkFromCorePalette(ae.contentOf(e))}static lightFromCorePalette(e){return new t({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(98),onBackground:e.n1.tone(10),surface:e.n1.tone(98),onSurface:e.n1.tone(10),surfaceDim:e.n1.tone(87),surfaceBright:e.n1.tone(98),surfaceContainerLowest:e.n1.tone(100),surfaceContainerLow:e.n1.tone(96),surfaceContainer:e.n1.tone(94),surfaceContainerHigh:e.n1.tone(92),surfaceContainerHighest:e.n1.tone(90),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})}static darkFromCorePalette(e){return new t({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(90),background:e.n1.tone(6),onBackground:e.n1.tone(90),surface:e.n1.tone(6),onSurface:e.n1.tone(90),surfaceDim:e.n1.tone(6),surfaceBright:e.n1.tone(24),surfaceContainerLowest:e.n1.tone(4),surfaceContainerLow:e.n1.tone(10),surfaceContainer:e.n1.tone(12),surfaceContainerHigh:e.n1.tone(17),surfaceContainerHighest:e.n1.tone(22),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(40),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})}constructor(e){this.props=e}get primary(){return this.props.primary}get onPrimary(){return this.props.onPrimary}get primaryContainer(){return this.props.primaryContainer}get onPrimaryContainer(){return this.props.onPrimaryContainer}get secondary(){return this.props.secondary}get onSecondary(){return this.props.onSecondary}get secondaryContainer(){return this.props.secondaryContainer}get onSecondaryContainer(){return this.props.onSecondaryContainer}get tertiary(){return this.props.tertiary}get onTertiary(){return this.props.onTertiary}get tertiaryContainer(){return this.props.tertiaryContainer}get onTertiaryContainer(){return this.props.onTertiaryContainer}get error(){return this.props.error}get onError(){return this.props.onError}get errorContainer(){return this.props.errorContainer}get onErrorContainer(){return this.props.onErrorContainer}get background(){return this.props.background}get onBackground(){return this.props.onBackground}get surface(){return this.props.surface}get onSurface(){return this.props.onSurface}get surfaceDim(){return this.props.surfaceDim}get surfaceBright(){return this.props.surfaceBright}get surfaceContainerLowest(){return this.props.surfaceContainerLowest}get surfaceContainerLow(){return this.props.surfaceContainerLow}get surfaceContainer(){return this.props.surfaceContainer}get surfaceContainerHigh(){return this.props.surfaceContainerHigh}get surfaceContainerHighest(){return this.props.surfaceContainerHighest}get surfaceVariant(){return this.props.surfaceVariant}get onSurfaceVariant(){return this.props.onSurfaceVariant}get outline(){return this.props.outline}get outlineVariant(){return this.props.outlineVariant}get shadow(){return this.props.shadow}get scrim(){return this.props.scrim}get inverseSurface(){return this.props.inverseSurface}get inverseOnSurface(){return this.props.inverseOnSurface}get inversePrimary(){return this.props.inversePrimary}toJSON(){return{...this.props}}};function he(t){return Number.parseInt(t,16)}function Gi(t){t=t.replace("#","");let e=t.length===3,i=t.length===6,r=t.length===8;if(!e&&!i&&!r)throw new Error(`unexpected hex ${t}`);let o=0,n=0,s=0;return e?(o=he(t.slice(0,1).repeat(2)),n=he(t.slice(1,2).repeat(2)),s=he(t.slice(2,3).repeat(2))):i?(o=he(t.slice(0,2)),n=he(t.slice(2,4)),s=he(t.slice(4,6))):r&&(o=he(t.slice(2,4)),n=he(t.slice(4,6)),s=he(t.slice(6,8))),(255<<24|(o&255)<<16|(n&255)<<8|s&255)>>>0}function M(t){return[Ft(t),Nt(t),Dt(t)].join(",")}function pt(t){return`
|
|
1
|
+
(()=>{var Or=Object.defineProperty;var Lt=(t,e)=>{for(var i in e)Or(t,i,{get:e[i],enumerable:!0})};var Ki={};Lt(Ki,{PALETTES:()=>De,TYPE_STYLES:()=>Ut,generateColorCSS:()=>_t,generateShapeCSS:()=>Gt,generateThemeCSS:()=>Qt,generateTypographyCSS:()=>Xt,generateTypographyGlobalCSS:()=>qt,setupTheme:()=>oo,themeOptionsFromSearchParams:()=>Kt});var Ue=new Map([["black","#000000"],["silver","#c0c0c0"],["gray","#808080"],["white","#ffffff"],["maroon","#800000"],["red","#ff0000"],["purple","#800080"],["fuchsia","#ff00ff"],["green","#008000"],["lime","#00ff00"],["olive","#808000"],["yellow","#ffff00"],["navy","#000080"],["blue","#0000ff"],["teal","#008080"],["aqua","#00ffff"],["orange","#ffa500"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"],["rebeccapurple","#663399"]]);var Fr="M0 12A12 12 0 1012 0 12 12 0 000 12Z",Nr="M 0 12 12 0 24 12 12 24 Z",Dr="M12 24C17.2583 24 20.1815 24 22.0908 22.0908 24 20.1815 24 17.2583 24 12 24 6.7417 24 3.8185 22.0908 1.9092 20.1815-0 17.2583-0 12-0 6.7417-0 3.8185-0 1.9092 1.9092-0 3.8185-0 6.7417-0 12-0 17.2583-0 20.1815 1.9092 22.0908 3.8185 24 6.7417 24 12 24Z";var dt={size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Fr,convex:!1},Mn={...dt,size:{extraSmall:"4px",small:"8px",medium:"12px",large:"16px",extraLarge:"28px",full:"32px"},mask:Nr},An={...dt,mask:Dr};var Fi={face:{brand:'"Roboto Medium", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',plain:'"Roboto Regular", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", Helvetica, "Segoe UI", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',weight:{regular:400,medium:500}},scale:{display:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:64,fontSize:57,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:52,fontSize:45,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:44,fontSize:36,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},headline:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:40,fontSize:32,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:36,fontSize:28,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:32,fontSize:24,letterSpacing:0,weight:"var(--mdw-typeface__weight-regular)"}},title:{large:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:28,fontSize:22,letterSpacing:0,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.15,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"}},label:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.1,weight:"var(--mdw-typeface__weight-medium)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:12,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"},small:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:16,fontSize:11,letterSpacing:.5,weight:"var(--mdw-typeface__weight-medium)"}},body:{large:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:24,fontSize:16,letterSpacing:.5,weight:"var(--mdw-typeface__weight-regular)"},medium:{fontFamily:"var(--mdw-typeface__plain)",lineHeight:20,fontSize:14,letterSpacing:.25,weight:"var(--mdw-typeface__weight-regular)"},small:{fontFamily:"var(--mdw-typeface__brand)",lineHeight:16,fontSize:12,letterSpacing:.4,weight:"var(--mdw-typeface__weight-regular)"}}}};function W(t){return t<0?-1:t===0?0:1}function Rt(t,e,i){return(1-i)*t+i*e}function Ni(t,e,i){return i<t?t:i>e?e:i}function Xe(t){return t%=360,t<0&&(t+=360),t}function Di(t,e){return Xe(e-t)<=180?1:-1}function Vi(t,e){return 180-Math.abs(Math.abs(t-e)-180)}function qe(t,e){let i=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],r=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],o=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return[i,r,o]}var Vr=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],$r=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],Hr=[95.047,100,108.883];function Pt(t,e,i){return(255<<24|(t&255)<<16|(e&255)<<8|i&255)>>>0}function Ot(t){let e=Me(t[0]),i=Me(t[1]),r=Me(t[2]);return Pt(e,i,r)}function Ft(t){return t>>16&255}function Nt(t){return t>>8&255}function Dt(t){return t&255}function $i(t,e,i){let r=$r,o=r[0][0]*t+r[0][1]*e+r[0][2]*i,n=r[1][0]*t+r[1][1]*e+r[1][2]*i,s=r[2][0]*t+r[2][1]*e+r[2][2]*i,l=Me(o),a=Me(n),c=Me(s);return Pt(l,a,c)}function Br(t){let e=Ee(Ft(t)),i=Ee(Nt(t)),r=Ee(Dt(t));return qe([e,i,r],Vr)}function Hi(t){let e=Fe(t),i=Me(e);return Pt(i,i,i)}function Vt(t){let e=Br(t)[1];return 116*ji(e/100)-16}function Fe(t){return 100*Yr((t+16)/116)}function Bi(t){return ji(t/100)*116-16}function Ee(t){let e=t/255;return e<=.040449936?e/12.92*100:((e+.055)/1.055)**2.4*100}function Me(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Ni(0,255,Math.round(i*255))}function Yi(){return Hr}function ji(t){let e=.008856451679035631,i=24389/27;return t>e?t**(1/3):(i*t+16)/116}function Yr(t){let e=.008856451679035631,i=24389/27,r=t*t*t;return r>e?r:(116*t-16)/i}var re=class t{static DEFAULT=t.make();static make(e=Yi(),i=200/Math.PI*Fe(50)/100,r=50,o=2,n=!1){let s=e,l=s[0]*.401288+s[1]*.650173+s[2]*-.051461,a=s[0]*-.250268+s[1]*1.204414+s[2]*.045854,c=s[0]*-.002079+s[1]*.048952+s[2]*.953127,d=.8+o/10,p=d>=.9?Rt(.59,.69,(d-.9)*10):Rt(.525,.59,(d-.8)*10),m=n?1:d*(1-1/3.6*Math.exp((-i-42)/92));m=m>1?1:m<0?0:m;let f=d,h=[m*(100/l)+1-m,m*(100/a)+1-m,m*(100/c)+1-m],u=1/(5*i+1),g=u*u*u*u,b=1-g,w=g*i+.1*b*b*Math.cbrt(5*i),k=Fe(r)/e[1],S=1.48+Math.sqrt(k),A=.725/k**.2,T=A,E=[(w*h[0]*l/100)**.42,(w*h[1]*a/100)**.42,(w*h[2]*c/100)**.42],v=[400*E[0]/(E[0]+27.13),400*E[1]/(E[1]+27.13),400*E[2]/(E[2]+27.13)],y=(2*v[0]+v[1]+.05*v[2])*A;return new t(k,y,A,T,p,f,h,w,w**.25,S)}constructor(e,i,r,o,n,s,l,a,c,d){this.n=e,this.aw=i,this.nbb=r,this.ncb=o,this.c=n,this.nc=s,this.rgbD=l,this.fl=a,this.fLRoot=c,this.z=d}};var ge=class t{static fromInt(e){return t.fromIntInViewingConditions(e,re.DEFAULT)}static fromIntInViewingConditions(e,i){let r=(e&16711680)>>16,o=(e&65280)>>8,n=e&255,s=Ee(r),l=Ee(o),a=Ee(n),c=.41233895*s+.35762064*l+.18051042*a,d=.2126*s+.7152*l+.0722*a,p=.01932141*s+.11916382*l+.95034478*a,m=.401288*c+.650173*d-.051461*p,f=-.250268*c+1.204414*d+.045854*p,h=-.002079*c+.048952*d+.953127*p,u=i.rgbD[0]*m,g=i.rgbD[1]*f,b=i.rgbD[2]*h,w=(i.fl*Math.abs(u)/100)**.42,k=(i.fl*Math.abs(g)/100)**.42,S=(i.fl*Math.abs(b)/100)**.42,A=W(u)*400*w/(w+27.13),T=W(g)*400*k/(k+27.13),E=W(b)*400*S/(S+27.13),v=(11*A+-12*T+E)/11,y=(A+T-2*E)/9,z=(20*A+20*T+21*E)/20,D=(40*A+20*T+E)/20,R=Math.atan2(y,v)*180/Math.PI,P=R<0?R+360:R>=360?R-360:R,V=P*Math.PI/180,Y=100*(D*i.nbb/i.aw)**(i.c*i.z),F=4/i.c*Math.sqrt(Y/100)*(i.aw+4)*i.fLRoot,X=P<20.14?P+360:P,je=.25*(Math.cos(X*Math.PI/180+2)+3.8),ct=(5e4/13*je*i.nc*i.ncb*Math.sqrt(v*v+y*y)/(z+.305))**.9*(1.64-.29**i.n)**.73,Ri=ct*Math.sqrt(Y/100),Pi=Ri*i.fLRoot,Ir=50*Math.sqrt(ct*i.c/(i.aw+4)),Lr=(1+100*.007)*Y/(1+.007*Y),Oi=1/.0228*Math.log(1+.0228*Pi),Rr=Oi*Math.cos(V),Pr=Oi*Math.sin(V);return new t(P,Ri,Y,F,Pi,Ir,Lr,Rr,Pr)}static fromJch(e,i,r){return t.fromJchInViewingConditions(e,i,r,re.DEFAULT)}static fromJchInViewingConditions(e,i,r,o){let n=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,s=i*o.fLRoot,l=i/Math.sqrt(e/100),a=50*Math.sqrt(l*o.c/(o.aw+4)),c=r*Math.PI/180,d=(1+100*.007)*e/(1+.007*e),p=1/.0228*Math.log(1+.0228*s),m=p*Math.cos(c),f=p*Math.sin(c);return new t(r,i,e,n,s,a,d,m,f)}static fromUcs(e,i,r){return t.fromUcsInViewingConditions(e,i,r,re.DEFAULT)}static fromUcsInViewingConditions(e,i,r,o){let n=i,s=r,l=Math.sqrt(n*n+s*s),c=(Math.exp(l*.0228)-1)/.0228/o.fLRoot,d=Math.atan2(s,n)*(180/Math.PI);d<0&&(d+=360);let p=e/(1-(e-100)*.007);return t.fromJchInViewingConditions(p,c,d,o)}static fromXyzInViewingConditions(e,i,r,o){let n=.401288*e+.650173*i-.051461*r,s=-.250268*e+1.204414*i+.045854*r,l=-.002079*e+.048952*i+.953127*r,a=o.rgbD[0]*n,c=o.rgbD[1]*s,d=o.rgbD[2]*l,p=(o.fl*Math.abs(a)/100)**.42,m=(o.fl*Math.abs(c)/100)**.42,f=(o.fl*Math.abs(d)/100)**.42,h=W(a)*400*p/(p+27.13),u=W(c)*400*m/(m+27.13),g=W(d)*400*f/(f+27.13),b=(11*h+-12*u+g)/11,w=(h+u-2*g)/9,k=(20*h+20*u+21*g)/20,S=(40*h+20*u+g)/20,T=Math.atan2(w,b)*180/Math.PI,E=T<0?T+360:T>=360?T-360:T,v=E*Math.PI/180,z=100*(S*o.nbb/o.aw)**(o.c*o.z),D=4/o.c*Math.sqrt(z/100)*(o.aw+4)*o.fLRoot,I=E<20.14?E+360:E,R=1/4*(Math.cos(I*Math.PI/180+2)+3.8),ie=(5e4/13*R*o.nc*o.ncb*Math.sqrt(b*b+w*w)/(k+.305))**.9*(1.64-.29**o.n)**.73,Y=ie*Math.sqrt(z/100),F=Y*o.fLRoot,X=50*Math.sqrt(ie*o.c/(o.aw+4)),je=(1+100*.007)*z/(1+.007*z),We=Math.log(1+.0228*F)/.0228,lt=We*Math.cos(v),ct=We*Math.sin(v);return new t(E,Y,z,D,F,X,je,lt,ct)}constructor(e,i,r,o,n,s,l,a,c){this.hue=e,this.chroma=i,this.j=r,this.q=o,this.m=n,this.s=s,this.jstar=l,this.astar=a,this.bstar=c}distance(e){let i=this.jstar-e.jstar,r=this.astar-e.astar,o=this.bstar-e.bstar;return 1.41*Math.sqrt(i*i+r*r+o*o)**.63}toInt(){return this.viewed(re.DEFAULT)}viewed(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),p=23*(a+.305)*r/(23*l+11*r*d+108*r*c),m=p*d,f=p*c,h=(460*a+451*m+288*f)/1403,u=(460*a-891*m-261*f)/1403,g=(460*a-220*m-6300*f)/1403,b=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),w=W(h)*(100/e.fl)*b**(1/.42),k=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),S=W(u)*(100/e.fl)*k**(1/.42),A=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),T=W(g)*(100/e.fl)*A**(1/.42),E=w/e.rgbD[0],v=S/e.rgbD[1],y=T/e.rgbD[2],z=1.86206786*E-1.01125463*v+.14918677*y,D=.38752654*E+.62144744*v-.00897398*y,I=-.0158415*E-.03412294*v+1.04996444*y;return $i(z,D,I)}xyzInViewingConditions(e){let r=((this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100))/(1.64-.29**e.n)**.73)**(1/.9),o=this.hue*Math.PI/180,n=.25*(Math.cos(o+2)+3.8),s=e.aw*(this.j/100)**(1/e.c/e.z),l=n*(5e4/13)*e.nc*e.ncb,a=s/e.nbb,c=Math.sin(o),d=Math.cos(o),p=23*(a+.305)*r/(23*l+11*r*d+108*r*c),m=p*d,f=p*c,h=(460*a+451*m+288*f)/1403,u=(460*a-891*m-261*f)/1403,g=(460*a-220*m-6300*f)/1403,b=Math.max(0,27.13*Math.abs(h)/(400-Math.abs(h))),w=W(h)*(100/e.fl)*b**(1/.42),k=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),S=W(u)*(100/e.fl)*k**(1/.42),A=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),T=W(g)*(100/e.fl)*A**(1/.42),E=w/e.rgbD[0],v=S/e.rgbD[1],y=T/e.rgbD[2],z=1.86206786*E-1.01125463*v+.14918677*y,D=.38752654*E+.62144744*v-.00897398*y,I=-.0158415*E-.03412294*v+1.04996444*y;return[z,D,I]}};var jr=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],Wr=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],Ne=[.2126,.7152,.0722],Ur=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];function Wi(t){return(t+Math.PI*8)%(Math.PI*2)}function pt(t){let e=t/100,i=0;return i=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,i*255}function $t(t){let e=Math.abs(t)**.42;return W(t)*400*e/(e+27.13)}function Yt(t){let e=qe(t,jr),i=$t(e[0]),r=$t(e[1]),o=$t(e[2]),n=(11*i+-12*r+o)/11,s=(i+r-2*o)/9;return Math.atan2(s,n)}function jt(t,e,i){let r=Wi(e-t),o=Wi(i-t);return r<o}function Xr(t,e,i){return(e-t)/(i-t)}function qr(t,e,i){return[t[0]+(i[0]-t[0])*e,t[1]+(i[1]-t[1])*e,t[2]+(i[2]-t[2])*e]}function Gr(t,e,i,r){let o=Xr(t[r],e,i[r]);return qr(t,o,i)}function Ht(t){return t>=0&&t<=100}function Kr(t,e){let i=Ne[0],r=Ne[1],o=Ne[2],n=e%4<=1?0:100,s=e%2===0?0:100;if(e<4){let d=n,p=s,m=(t-d*r-p*o)/i;return Ht(m)?[m,d,p]:[-1,-1,-1]}if(e<8){let d=n,p=s,m=(t-p*i-d*o)/r;return Ht(m)?[p,m,d]:[-1,-1,-1]}let l=n,a=s,c=(t-l*i-a*r)/o;return Ht(c)?[l,a,c]:[-1,-1,-1]}function Qr(t,e){let i=[-1,-1,-1],r=i,o=0,n=0,s=!1,l=!0;for(let a=0;a<12;a++){let c=Kr(t,a);if(c[0]<0)continue;let d=Yt(c);if(!s){i=c,r=c,o=d,n=d,s=!0;continue}(l||jt(o,d,n))&&(l=!1,jt(o,e,d)?(r=c,n=d):(i=c,o=d))}return[i,r]}function Jr(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}function Ui(t){return Math.floor(t-.5)}function Xi(t){return Math.ceil(t-.5)}function Zr(t,e){let i=Qr(t,e),r=i[0],o=Yt(r),n=i[1];for(let s=0;s<3;s++)if(r[s]!==n[s]){let l=-1,a=255;r[s]<n[s]?(l=Ui(pt(r[s])),a=Xi(pt(n[s]))):(l=Xi(pt(r[s])),a=Ui(pt(n[s])));for(let c=0;c<8&&!(Math.abs(a-l)<=1);c++){let d=Math.floor((l+a)/2),p=Ur[d],m=Gr(r,p,n,s),f=Yt(m);jt(o,e,f)?(n=m,a=d):(r=m,o=f,l=d)}}return Jr(r,n)}function Bt(t){let e=Math.abs(t),i=Math.max(0,27.13*e/(400-e));return W(t)*i**(1/.42)}function eo(t,e,i){let r=Math.sqrt(i)*11,o=re.DEFAULT,n=1/(1.64-.29**o.n)**.73,l=.25*(Math.cos(t+2)+3.8)*(5e4/13)*o.nc*o.ncb,a=Math.sin(t),c=Math.cos(t);for(let d=0;d<5;d++){let p=r/100,f=((e===0||r===0?0:e/Math.sqrt(p))*n)**(1/.9),u=o.aw*p**(1/o.c/o.z)/o.nbb,g=23*(u+.305)*f/(23*l+11*f*c+108*f*a),b=g*c,w=g*a,k=(460*u+451*b+288*w)/1403,S=(460*u-891*b-261*w)/1403,A=(460*u-220*b-6300*w)/1403,T=Bt(k),E=Bt(S),v=Bt(A),y=qe([T,E,v],Wr);if(y[0]<0||y[1]<0||y[2]<0)return 0;let z=Ne[0],D=Ne[1],I=Ne[2],R=z*y[0]+D*y[1]+I*y[2];if(R<=0)return 0;if(d===4||Math.abs(R-i)<.002)return y[0]>100.01||y[1]>100.01||y[2]>100.01?0:Ot(y);r-=(R-i)*r/(2*R)}return 0}function Qe(t,e,i){if(e<1e-4||i<1e-4||i>99.9999)return Hi(i);t=Xe(t);let r=t/180*Math.PI,o=Fe(i),n=eo(r,e,o);if(n!==0)return n;let s=Zr(o,r);return Ot(s)}var J=class t{static from(e,i,r){return new t(Qe(e,i,r))}static fromInt(e){return new t(e)}internalHue;internalChroma;internalTone;constructor(e){let i=ge.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Vt(e),this.argb=e}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Qe(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Qe(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Qe(this.internalHue,this.internalChroma,e))}setInternalState(e){let i=ge.fromInt(e);this.internalHue=i.hue,this.internalChroma=i.chroma,this.internalTone=Vt(e),this.argb=e}inViewingConditions(e){let r=ge.fromInt(this.toInt()).xyzInViewingConditions(e),o=ge.fromXyzInViewingConditions(r[0],r[1],r[2],re.make());return t.from(o.hue,o.chroma,Bi(r[1]))}};function qi(t,e){let i=J.fromInt(t),r=J.fromInt(e),o=Vi(i.hue,r.hue),n=Math.min(o*.5,15),s=Xe(i.hue+n*Di(i.hue,r.hue));return J.from(s,i.chroma,i.tone).toInt()}var q=class t{static fromInt(e){let i=J.fromInt(e);return t.fromHueAndChroma(i.hue,i.chroma)}static fromHueAndChroma(e,i){return new t(e,i)}#e=new Map;constructor(e,i){this.hue=e,this.chroma=i}tone(e){let i=this.#e.get(e);return i===void 0&&(i=J.from(this.hue,this.chroma,e).toInt(),this.#e.set(e,i)),i}getHct(e){return J.fromInt(this.tone(e))}};var ae=class t{static#e(e,i){let r=new t(i.primary,e);if(i.secondary){let o=new t(i.secondary,e);r.a2=o.a1}if(i.tertiary){let o=new t(i.tertiary,e);r.a3=o.a1}if(i.error){let o=new t(i.error,e);r.error=o.a1}if(i.neutral){let o=new t(i.neutral,e);r.n1=o.n1}if(i.neutralVariant){let o=new t(i.neutralVariant,e);r.n2=o.n2}return r}static of(e){return new t(e,!1)}static contentOf(e){return new t(e,!0)}static fromColors(e){return t.#e(!1,e)}static contentFromColors(e){return t.#e(!0,e)}a1;a2;a3;n1;n2;error;constructor(e,i){let r=J.fromInt(e),{hue:o}=r,{chroma:n}=r;i?(this.a1=q.fromHueAndChroma(o,n),this.a2=q.fromHueAndChroma(o,n/3),this.a3=q.fromHueAndChroma(o+60,n/2),this.n1=q.fromHueAndChroma(o,Math.min(n/12,6)),this.n2=q.fromHueAndChroma(o,Math.min(n/6,8))):(this.a1=q.fromHueAndChroma(o,Math.max(48,n)),this.a2=q.fromHueAndChroma(o,16),this.a3=q.fromHueAndChroma(o+60,24),this.n1=q.fromHueAndChroma(o,6),this.n2=q.fromHueAndChroma(o,8)),this.error=q.fromHueAndChroma(25,84)}};var we=class t{static light(e){return t.lightFromCorePalette(ae.of(e))}static dark(e){return t.darkFromCorePalette(ae.of(e))}static lightContent(e){return t.lightFromCorePalette(ae.contentOf(e))}static darkContent(e){return t.darkFromCorePalette(ae.contentOf(e))}static lightFromCorePalette(e){return new t({primary:e.a1.tone(40),onPrimary:e.a1.tone(100),primaryContainer:e.a1.tone(90),onPrimaryContainer:e.a1.tone(10),secondary:e.a2.tone(40),onSecondary:e.a2.tone(100),secondaryContainer:e.a2.tone(90),onSecondaryContainer:e.a2.tone(10),tertiary:e.a3.tone(40),onTertiary:e.a3.tone(100),tertiaryContainer:e.a3.tone(90),onTertiaryContainer:e.a3.tone(10),error:e.error.tone(40),onError:e.error.tone(100),errorContainer:e.error.tone(90),onErrorContainer:e.error.tone(10),background:e.n1.tone(98),onBackground:e.n1.tone(10),surface:e.n1.tone(98),onSurface:e.n1.tone(10),surfaceDim:e.n1.tone(87),surfaceBright:e.n1.tone(98),surfaceContainerLowest:e.n1.tone(100),surfaceContainerLow:e.n1.tone(96),surfaceContainer:e.n1.tone(94),surfaceContainerHigh:e.n1.tone(92),surfaceContainerHighest:e.n1.tone(90),surfaceVariant:e.n2.tone(90),onSurfaceVariant:e.n2.tone(30),outline:e.n2.tone(50),outlineVariant:e.n2.tone(80),shadow:e.n1.tone(0),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(20),inverseOnSurface:e.n1.tone(95),inversePrimary:e.a1.tone(80)})}static darkFromCorePalette(e){return new t({primary:e.a1.tone(80),onPrimary:e.a1.tone(20),primaryContainer:e.a1.tone(30),onPrimaryContainer:e.a1.tone(90),secondary:e.a2.tone(80),onSecondary:e.a2.tone(20),secondaryContainer:e.a2.tone(30),onSecondaryContainer:e.a2.tone(90),tertiary:e.a3.tone(80),onTertiary:e.a3.tone(20),tertiaryContainer:e.a3.tone(30),onTertiaryContainer:e.a3.tone(90),error:e.error.tone(80),onError:e.error.tone(20),errorContainer:e.error.tone(30),onErrorContainer:e.error.tone(90),background:e.n1.tone(6),onBackground:e.n1.tone(90),surface:e.n1.tone(6),onSurface:e.n1.tone(90),surfaceDim:e.n1.tone(6),surfaceBright:e.n1.tone(24),surfaceContainerLowest:e.n1.tone(4),surfaceContainerLow:e.n1.tone(10),surfaceContainer:e.n1.tone(12),surfaceContainerHigh:e.n1.tone(17),surfaceContainerHighest:e.n1.tone(22),surfaceVariant:e.n2.tone(30),onSurfaceVariant:e.n2.tone(80),outline:e.n2.tone(60),outlineVariant:e.n2.tone(30),shadow:e.n1.tone(40),scrim:e.n1.tone(0),inverseSurface:e.n1.tone(90),inverseOnSurface:e.n1.tone(20),inversePrimary:e.a1.tone(40)})}constructor(e){this.props=e}get primary(){return this.props.primary}get onPrimary(){return this.props.onPrimary}get primaryContainer(){return this.props.primaryContainer}get onPrimaryContainer(){return this.props.onPrimaryContainer}get secondary(){return this.props.secondary}get onSecondary(){return this.props.onSecondary}get secondaryContainer(){return this.props.secondaryContainer}get onSecondaryContainer(){return this.props.onSecondaryContainer}get tertiary(){return this.props.tertiary}get onTertiary(){return this.props.onTertiary}get tertiaryContainer(){return this.props.tertiaryContainer}get onTertiaryContainer(){return this.props.onTertiaryContainer}get error(){return this.props.error}get onError(){return this.props.onError}get errorContainer(){return this.props.errorContainer}get onErrorContainer(){return this.props.onErrorContainer}get background(){return this.props.background}get onBackground(){return this.props.onBackground}get surface(){return this.props.surface}get onSurface(){return this.props.onSurface}get surfaceDim(){return this.props.surfaceDim}get surfaceBright(){return this.props.surfaceBright}get surfaceContainerLowest(){return this.props.surfaceContainerLowest}get surfaceContainerLow(){return this.props.surfaceContainerLow}get surfaceContainer(){return this.props.surfaceContainer}get surfaceContainerHigh(){return this.props.surfaceContainerHigh}get surfaceContainerHighest(){return this.props.surfaceContainerHighest}get surfaceVariant(){return this.props.surfaceVariant}get onSurfaceVariant(){return this.props.onSurfaceVariant}get outline(){return this.props.outline}get outlineVariant(){return this.props.outlineVariant}get shadow(){return this.props.shadow}get scrim(){return this.props.scrim}get inverseSurface(){return this.props.inverseSurface}get inverseOnSurface(){return this.props.inverseOnSurface}get inversePrimary(){return this.props.inversePrimary}toJSON(){return{...this.props}}};function he(t){return Number.parseInt(t,16)}function Gi(t){t=t.replace("#","");let e=t.length===3,i=t.length===6,r=t.length===8;if(!e&&!i&&!r)throw new Error(`unexpected hex ${t}`);let o=0,n=0,s=0;return e?(o=he(t.slice(0,1).repeat(2)),n=he(t.slice(1,2).repeat(2)),s=he(t.slice(2,3).repeat(2))):i?(o=he(t.slice(0,2)),n=he(t.slice(2,4)),s=he(t.slice(4,6))):r&&(o=he(t.slice(2,4)),n=he(t.slice(4,6)),s=he(t.slice(6,8))),(255<<24|(o&255)<<16|(n&255)<<8|s&255)>>>0}function M(t){return[Ft(t),Nt(t),Dt(t)].join(",")}function mt(t){return`
|
|
2
2
|
:root {
|
|
3
3
|
--mdw-color__primary: ${M(t.primary)};
|
|
4
4
|
--mdw-color__on-primary: ${M(t.onPrimary)};
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
--mdw-color__${t}-container: ${M(e.tone(i?30:90))};
|
|
44
44
|
--mdw-color__on-${t}-container: ${M(e.tone(i?90:10))};
|
|
45
45
|
}
|
|
46
|
-
`}function Wt(t,e=[]){let i=Gi(t),r=[
|
|
46
|
+
`}function Wt(t,e=[]){let i=Gi(t),r=[mt(we.light(i))],o=[mt(we.dark(i))],n=[mt(we.lightContent(i))],s=[mt(we.darkContent(i))];for(let[l,a]of e){let c=Gi(a),d=qi(c,i),{a1:p}=ae.of(d),{a1:m}=ae.contentOf(d);r.push(ut(l,p)),o.push(ut(l,p,!0)),n.push(ut(l,m)),s.push(ut(l,m,!0))}return{light:r.join(`
|
|
47
47
|
`),dark:o.join(`
|
|
48
48
|
`),lightContent:n.join(`
|
|
49
49
|
`),darkContent:s.join(`
|
|
@@ -171,8 +171,8 @@
|
|
|
171
171
|
:root { color-scheme: dark; }
|
|
172
172
|
${_t({color:t,custom:e,lightness:"dark"})}
|
|
173
173
|
}`,[r,o,n].join(`
|
|
174
|
-
`)}var no={},Jt=null;function ft(){if(!Jt){let t;try{t=no.url}catch{}if(!t)try{t=document.currentScript.src}catch{}Jt=new URL(t).searchParams}return Jt}De.push(...ft().getAll("custom").flatMap(t=>t.split(",")).map(t=>t.split(":")[0]));var Zt=new Map;function gt(t,e=!0){if(e&&Zt.has(t))return Zt.get(t);let i=new CSSStyleSheet;return i.replaceSync(t),e&&Zt.set(t,i),i}var ei=new Map,Qi;function so(t,e=!0){let i;return e&&ei.has(t)?i=ei.get(t):(Qi??=document.implementation.createHTMLDocument(),i=Qi.createElement("style"),i.textContent=t,e&&ei.set(t,i)),i.cloneNode(!0)}var bt;function Ji(t,e=!0){if(bt==null)try{let i=gt(t,e);return bt=!0,i}catch{bt=!1}return bt?gt(t,e):so(t,e)}function*Zi(t,e=!0){for(let i of t)i instanceof HTMLStyleElement?yield gt(i.textContent,e):i.ownerNode?yield gt([...i.cssRules].map(r=>r.cssText).join(""),e):yield i}var ti=new WeakMap;function*er(t,e=!0){for(let i of t)if(i instanceof HTMLStyleElement)yield i;else if(i.ownerNode instanceof HTMLStyleElement)yield i.ownerNode.cloneNode(!0);else if(e&&ti.has(i))yield ti.get(i).cloneNode(!0);else{let r=document.createElement("style");r.textContent=[...i.cssRules].map(o=>o.cssText).join(""),e&&ti.set(i,r),yield r.cloneNode(!0)}}function wt(t,...e){return Ji(typeof t=="string"?t:String.raw({raw:t},...e))}function xt(t,...e){let i;return typeof t=="string"?i=wt(t):Array.isArray(t)?i=wt(t,...e):i=t,i instanceof HTMLStyleElement?document.head.append(i):document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],i}xt([Qt(Kt(ft())),qt()].join(`
|
|
175
|
-
`));var ao,lo;function tr(){return(ao??=new Text).cloneNode()}function Te(){return(lo??=new Comment).cloneNode()}var Ze=class{constructor(e){this.anchorNode=e.anchorNode,this.metadata=[],this.keys=[],this.needsArrayKeyFastPath=!1,this.composition=e.composition,this.renderOptions=e.renderOptions,this.pendingRemoves=[],this.metadataCache=null,this.queuedElements=[],this.batchStartIndex=null,this.batchEndIndex=null}render(e,i){return this.composition.render(e,i,this.renderOptions)}startBatch(){this.needsArrayKeyFastPath=!0}writeBatch(){var i;if(!this.queuedElements.length)return;(((i=this.metadata[this.batchStartIndex-1])==null?void 0:i.domNode)??this.anchorNode).after(...this.queuedElements),this.queuedElements.length=0}stopBatch(){if(this.writeBatch(),this.needsArrayKeyFastPath=!1,this.batchStartIndex=null,this.batchEndIndex=null,this.metadataCache){for(let{domNode:e}of this.metadataCache.values())e.remove();this.metadataCache.clear()}}removeByIndex(e){let[i]=this.metadata.splice(e,1),{domNode:r,key:o}=i;this.keys.splice(e,1),r.remove(),this.metadataCache?this.metadataCache.set(o,i):this.metadataCache=new Map([[o,i]])}renderData(e,i,r,o,n,s){var c;if(e<this.metadata.length){let d=this.metadata[e],m=d.key,p=m===o,f=n!==o;if(p){f?d.render(i,r):s||d.render(i,r);return}let h=this.metadataCache??=new Map,u=!1;this.needsArrayKeyFastPath&&(u=!this.keys.includes(o),this.needsArrayFastPath=!1);let g=u?-1:this.keys.indexOf(o,e+1);if(g===-1){if(h.has(o)){let b=h.get(o);this.metadata.splice(e,0,b),this.keys.splice(e,0,o),(((c=this.metadata[e-1])==null?void 0:c.domNode)??this.anchorNode).after(b.domNode),h.delete(o);return}h.set(m,d)}else{if(e-g===-1){this.removeByIndex(e);return}let b=this.metadata[g];this.metadata[e]=b,this.metadata.splice(g,1);let{domNode:x}=d;x.replaceWith(b.domNode),s||b.render(i,r),this.keys[e]=o,this.keys.splice(g,1),x.remove(),h.set(m,d);return}}let l=this.render(i,r),a=l.target;this.metadata[e]={render:l,element:a,key:o,domNode:a},this.keys[e]=o,(this.batchEndIndex===null||this.batchEndIndex!==e-1)&&(this.writeBatch(),this.batchStartIndex=e),this.batchEndIndex=e,this.queuedElements.push(a)}removeEntries(e=0){let{length:i}=this.metadata;for(let r=i-1;r>=e;r--)this.metadata[r].domNode.remove();this.metadata.length=e,this.keys.length=e}hide(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||i.hidden)return!1;let{comment:o,element:n}=i;return o||(o=Te(),i.comment=o),n.replaceWith(o),i.domNode=o,i.hidden=!0,!0}show(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||!i.hidden)return!1;let{comment:o,element:n}=i;return o.replaceWith(n),i.domNode=n,i.hidden=!1,!0}};function nr(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}var vt;function xe(t){if(vt??=new Map,vt.has(t))return vt.get(t);let e=t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);return vt.set(t,e),e}var ir,Ie=Number.parseFloat((ir=navigator.userAgent.match(/Chrome\/([\d.]+)/))==null?void 0:ir[1]),rr,et=Number.parseFloat((rr=navigator.userAgent.match(/Firefox\/([\d.]+)/))==null?void 0:rr[1]),or,yt=Ie||!navigator.userAgent.includes("AppleWebKit")?Number.NaN:Number.parseFloat((or=navigator.userAgent.match(/Version\/([\d.]+)/))==null?void 0:or[1]);function le(t){return!t||et<113&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||(t==null?void 0:t.getRootNode())===document?!1:t.matches(":focus")}function j(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return le(t)}function ce(t){return getComputedStyle(t).direction==="rtl"}var sr={};Lt(sr,{applyMergePatch:()=>kt,buildMergePatch:()=>tt,hasMergePatch:()=>St});function kt(t,e){if(t===e)return t;if(t==null||e==null||typeof e!="object")return e;typeof t!="object"&&(t={});for(let[i,r]of Object.entries(e))r==null?i in t&&delete t[i]:t[i]=kt(t[i],r);return t}function tt(t,e,i="reference"){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let r={};if(Array.isArray(e)){if(i==="reference")return e;if(i==="clone")return structuredClone(e);for(let[n,s]of e.entries()){if(s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}return e.length!==t.length&&(r.length=e.length),r}let o=new Set(Object.keys(t));for(let[n,s]of Object.entries(e)){if(o.delete(n),s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}for(let n of o)r[n]=null;return r}function St(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(St(t[i],r))return!0;return!1}function ar(t){switch(t){case"boolean":return!1;case"integer":case"float":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"object":return null;default:case"string":return""}}function ri(t,e,i,r){return t??={},new Proxy(t,{get(o,n){let s=o[n];if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;if(r?i.add(l):e.add(l),typeof s=="object"&&s!=null)return ri(s,e,i,l)}return s},has(o,n){let s=Reflect.has(o,n);if(typeof n!="symbol"){let l=r?`${r}.p`:n;r?i.add(l):e.add(l)}return s}})}function co(t){switch(t){case"boolean":return e=>!!e;case"integer":return Math.round;case"float":return e=>+e;case"map":return Map;case"set":return Set;case"object":case"array":return e=>e;default:case"string":return e=>`${e}`}}function oi(t,...e){let i=new Set,r=new Set,o=e.map(a=>{let c=new Set,d=new Set,m=ri(a,c,d);return{poked:c,pokedDeep:d,proxy:m}}),n=ri(this??{},i,r),s=t.apply(n,o.map(a=>a.proxy)),l=t.name?!0:!i.size;return{props:{this:[...i],args:o.map(a=>[...a.poked])},deepPropStrings:{this:[...r],args:o.map(a=>[...a.pokedDeep])},deepProps:{this:[...r].map(a=>a.split(".")),args:o.map(a=>[...a.pokedDeep].map(c=>c.split(".")))},defaultValue:s,reusable:l}}function mo(t,e,i){let r=typeof e=="string"?{type:e}:e,{watchers:o,value:n,readonly:s,empty:l,type:a,enumerable:c,reflect:d,attr:m,nullable:p,parser:f,nullParser:h,get:u,is:g,diff:b,props:x}=r;if(o??=[],s??=!1,l===void 0&&(l=null),n??=l,u&&!x){let k=oi(u.bind(i),i,()=>n);n??=k.defaultValue,x=new Set([...k.props.this,...k.props.args[0]])}if(!a)if(n==null)a="string";else{let k=typeof n;a=k==="number"?Number.isInteger(n)?"integer":"number":k}return c??=t[0]!=="_",d??=c?a!=="object":m?"write":!1,m??=d?xe(t):null,p??=a==="boolean"?!1:l==null,p||(l??=ar(a),n??=l),f??=co(a),h||(p?h=()=>null:h=l===null?()=>ar(a):()=>l),g??=a==="object"?(k,S)=>!St(k,S):a==="array"?()=>!1:Object.is,b===void 0&&(b=a==="object"?(k,S)=>tt(k,S,"reference"):null),{...r,type:a,is:g,diff:b,attr:m,reflect:d,readonly:s,enumerable:c,value:n,parser:f,nullParser:h,key:t,props:x,watchers:o}}function ii(t,e,i){var n,s;t.get;let r=i==null?t.nullParser.call(this,i):t.parser.call(this,i),o=r;if(e==null){if(r==null)return!1}else if(r!=null){if(t.diff){if(o=t.diff.call(this,e,r),o==null)return!1}else if(t.is.call(this,e,r))return!1}return t.values?t.values.set(this,r):t.values=new WeakMap([[this,r]]),(n=t.propChangedCallback)==null||n.call(this,t.key,e,r,o),(s=t.changedCallback)==null||s.call(this,e,r,o),!0}function ni(t,e,i){let r=mo(e,i,t);function o(){var d;return(d=r.values)!=null&&d.has(this)?r.values.get(this):r.value}function n(d){let m=this[e];ii.call(this,r,m,d)}function s(){var p,f;let d=(p=r.computedValues)==null?void 0:p.get(this),m=this[e];(f=r.needsSelfInvalidation)==null||f.delete(this),ii.call(this,r,d,m)}if(r.props)for(let d of r.props)r.watchers.push([d,s]);function l(){let d=r.get.call(this,this,o.bind(this));return(r.computedValues??=new WeakMap).set(this,d),d}function a(d){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let m=this[e];r.set.call(this,d,n.bind(this));let p=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),ii.call(this,r,m,p))}let c={enumerable:r.enumerable,configurable:!0,get:r.get?l:o,set:r.set?a:n};return Object.defineProperty(t,e,c),r}var lr=new Set;function it(t="mdw_",e=4){let i;for(;lr.has(i=Math.random().toString(36).slice(2,e+2)););return lr.add(i),`${t}${i}`}var si,cr,dr;function Ve(t){return si??=document.implementation.createHTMLDocument(),t?(dr??=si.createRange(),dr.createContextualFragment(t)):(cr??=si.createDocumentFragment(),cr.cloneNode())}var zt=new Map;function li(t){let e=`#${it()}`;return zt.set(e,{fn:t}),`{${e}}`}var ai=new Map;function ci(t,...e){let i,r=e.map(s=>{switch(typeof s){case"string":return s;case"function":return li(s);case"object":{if(s==null)return"";let l=it();return i??=new Map,i.set(l,s),`<div id="${l}"></div>`}default:throw new Error(`Unexpected substitution: ${s}`)}}),o=String.raw({raw:t},...r);if(i){let s=Ve(o);for(let[l,a]of i)s.getElementById(l).replaceWith(a);return s}let n;return ai.has(o)?n=ai.get(o):(n=Ve(o),ai.set(o,n)),n.cloneNode(!0)}function po({nodes:t},e){let{nodeIndex:i,attrName:r}=this,o=t[i];switch(e){case void 0:case null:case!1:return o.removeAttribute(r),!1;case!0:return o.setAttribute(r,""),"";default:return o.setAttribute(r,e),e}}function uo({nodeStates:t,comments:e,nodes:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n],l=s&1;if(!(r!=null&&r!==!1)){if(l)return;let m=e[o];m||(m=Te(),e[o]=m),i[n].replaceWith(m),t[n]|=1;return}let c=i[n],d=s&2;if(typeof r!="object")if(d){let m=new Text(r);c.replaceWith(m),i[n]=m,t[n]&=-3}else c.data=r;l&&(e[o].replaceWith(c),t[n]&=-2)}function ho({nodeStates:t,nodes:e,comments:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n]&1,l=r!=null&&r!==!1;if(l===!s)return;let a=e[n],c=i[o];c||(c=Te(),i[o]=c),l?(c.replaceWith(a),t[n]&=-2):(a.replaceWith(c),t[n]|=1)}function _o({comments:t,nodeStates:e,nodes:i}){let{commentIndex:r,nodeIndex:o}=this,n=Te();t[r]=n,e[o]|=1,i[o].replaceWith(n)}function di(t,...e){let[{caches:i,searchStates:r}]=e,{cacheIndex:o,searchIndex:n,subSearch:s,invocation:l}=t,a=i[o],c=r[n];if(c&1)return{value:a,dirty:(c&2)===2};r[n]|=1;let d;if(l){if(s){let m=di(s,...e);if(!m.dirty&&a!==void 0)return r[n]&=-3,{value:a,dirty:!1};d=t.invocation(m.value)}else d=t.invocation(...e);if(d===void 0||a===d)return{value:d,dirty:!1}}return i[o]=d,r[n]|=2,{value:d,dirty:!0}}function mr({options:{context:t,store:e,injections:i}},r,o){return this.expression.call(t,e??o,i)}function fo(t,e){return e[this.prop]}function bo(t,e,i){let r=e;for(let o of this.deepProp){if(r===null)return null;if(!(o in r))return;r=r[o]}return r}var go=/{([^}]*)}/g;function wo(t,e){if(e)return e[t]}function pr(t,e){if(!e)return;let i=e,r;for(r of t)if(typeof i=="object"){if(i===null)return null;if(!(r in i))return;i=i[r]}else return i[r];return i}function xo(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var ur=new Map,Le=class t{static EVENT_PREFIX_REGEX=/^([*1~]+)?(.*)$/;_interpolationState={nodeIndex:-1,searchIndex:0,cacheIndex:0,commentIndex:0,nodeEntry:null};static shadowRootTag=Symbol();nodesToBind=[];props=[];searches=[];initCache=[];searchByQuery;actionsByPropsUsed;postInitActions=[];tagsWithBindings;tags=[];adapter;events;cloneable;styles=[];adoptedStyleSheets=[];stylesFragment;allIds=[];temporaryIds;interpolated=!1;constructor(...e){this.template=Ve(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template}static compose(...e){for(let[r,o]of ur)if(r.length===e.length&&e.every((n,s)=>n===r[s]))return o;let i=new t(...e);return ur.set(e,i),i}append(...e){for(let i of e)typeof i=="string"?this.append(Ve(i.trim())):i instanceof t?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.tag??"",r=this.events??=new Map;return r.has(i)?r.get(i).push(e):r.set(i,[e]),this}#e(e,i,r){var o;if((o=this.events)!=null&&o.has(e))for(let n of this.events.get(e)){let s;n.handleEvent?s=n.handleEvent:n.deepProp.length?s=pr(n.deepProp,this.interpolateOptions.defaults):s=wo(n.prop,this.interpolateOptions.defaults),i.addEventListener(n.type,r?s.bind(r):s,n)}}render(e,i,r={}){this.interpolated||this.interpolate({defaults:i??e,...r});let o=this.cloneable.cloneNode(!0),n=r.shadowRoot,s=n??r.target??o.firstElementChild,l={lastChildNode:null,lastChildNodeIndex:0,lastElement:null,nodeStates:new Uint8Array(this._interpolationState.nodeIndex+1),searchStates:new Uint8Array(this._interpolationState.searchIndex),comments:[],nodes:[],caches:this.initCache.slice(),refs:[],options:r},{nodes:a,refs:c,searchStates:d,caches:m}=l;for(let{tag:f,textNodes:h}of this.nodesToBind){let u;if(f===""){if(!h.length)continue;c.push(null),a.push(null),u=o.firstChild}else{let b=o.getElementById(f);if(c.push(b),a.push(b),this.#e(f,b,r.context),!h.length)continue;u=b.firstChild}let g=0;for(let b of h){for(;b!==g;)u=u.nextSibling,g++;a.push(u)}}this.#e("",r.context),this.#e(t.shadowRootTag,r.context.shadowRoot,r.context);for(let f of this.postInitActions)f.invocation(l);let p=(f,h)=>{var g;let u=!1;for(let b of this.props){if(!((g=this.actionsByPropsUsed)!=null&&g.has(b))||!(b in f))continue;let x=this.actionsByPropsUsed.get(b);for(let k of x){u=!0;let{dirty:S,value:A}=di(k.search,l,f,h);S&&k.invocation(l,A,f,h)}}u&&d.fill(0)};return n?(r.context??=n.host,"adoptedStyleSheets"in n?this.adoptedStyleSheets.length&&(n.adoptedStyleSheets=[...n.adoptedStyleSheets,...this.adoptedStyleSheets]):this.stylesFragment.hasChildNodes()&&o.prepend(this.stylesFragment.cloneNode(!0))):r.context??=s,e!==this.interpolateOptions.defaults&&p(e,i),n&&(n.append(o),customElements.upgrade(n)),p.target=s,p.byProp=(f,h,u)=>{var k,S;if(!((k=this.actionsByPropsUsed)!=null&&k.has(f)))return;let g=!1;if((S=this.searchByQuery)!=null&&S.has(f)){g=!0;let A=this.searchByQuery.get(f);if(m[A.cacheIndex]===h)return;m[A.cacheIndex]=h,d[A.searchIndex]=3}let b,x=this.actionsByPropsUsed.get(f);for(let A of x)if(A.search.query===f)A.invocation(l,h);else{b??={[f]:h},u??=b,g=!0;let T=di(A.search,l,b,u);T.dirty&&A.invocation(l,T.value,b,u)}g&&d.fill(0)},p.state=l,p}#r(e,i,r,o){var T,E;let{nodeValue:n,nodeName:s,nodeType:l}=e,a,c;if(l===Node.ATTRIBUTE_NODE?a=e:c=e,o==null){if(!n)return;let v=n.trim();if(!v)return;if(a||(i==null?void 0:i.tagName)==="STYLE"){if(v[0]!=="{")return;let{length:y}=v;if(v[y-1]!=="}")return;o=v.slice(1,-1)}else{let y=v.split(go);if(y.length<3)return;if(y.length===3&&!y[0]&&!y[2])o=y[1];else{for(let[z,D]of y.entries())if(z%2){let I=tr();c.before(I),this.#r(I,i,r,D)}else D&&c.before(D);return!0}}}let d=o,m=o[0]==="!",p=!1;m&&(o=o.slice(1),p=o[0]==="!",p&&(o=o.slice(1)));let f,h;if(c){i!==c.parentElement&&(i=c.parentElement),h=0;let v=c;for(;v=v.previousSibling;)h++}else if(i!==a.ownerElement&&(i=a.ownerElement),s.startsWith("on")){let v=s.indexOf("-");if(v===-1)return;f=v===2}if(f){i.removeAttribute(s);let v=this.#i(i),y=s.slice(3),[,z,D]=y.match(/^([*1~]+)?(.*)$/),I,R,P=[];if(o.startsWith("#"))I=zt.get(o).fn;else{let V=o.split(".");V.length===1?(R=o,P=[]):(R=V[0],P=V)}this.addCompositionEventListener({tag:v,type:D,handleEvent:I,prop:R,deepProp:P,once:z==null?void 0:z.includes("1"),passive:z==null?void 0:z.includes("~"),capture:z==null?void 0:z.includes("*")});return}let u;if((T=this.searchByQuery)!=null&&T.has(d))u=this.searchByQuery.get(d);else{let v=o,y=v!==d,z;if(y&&((E=this.searchByQuery)!=null&&E.has(v)))z=this.searchByQuery.get(v);else{let D,I,R,P,V,te,Y,F;if(o.startsWith("#")){if(F=zt.get(o),!F)return;D=F.fn,Y=mr,F.props?(I=F.props,R=F.deepProps,P=F.defaultValue??null):P=F.fn}else P=null,r!=null&&r.defaults&&(P=pr(o.split("."),r.defaults)??null),P==null&&(r!=null&&r.injections)&&(P=xo(o,r.injections));if(!I)if(typeof P=="function"){let X=oi.call(this,P,r==null?void 0:r.defaults,r==null?void 0:r.injections),je=new Set([...X.props.this,...X.props.args[0],...X.props.args[1]]),We=new Set([...X.deepPropStrings.this,...X.deepPropStrings.args[0]]);D=P,P=X.defaultValue,I=[...je],R=[...We].map(lt=>lt.split(".")),Y=mr}else{let X=o.split(".");X.length===1?(V=o,I=[V],Y=fo):(I=[X[0]],te=X,R=[X],Y=bo)}F&&(F.defaultValue=P,F.props=I,F.deepProps=R),z={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:v,defaultValue:P,subSearch:null,prop:V,propsUsed:I,deepProp:te,deepPropsUsed:R,invocation:Y,expression:D},this.addSearch(z)}y?(u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:d,subSearch:z,negate:m,doubleNegate:p,prop:z.prop,deepProp:z.deepProp,propsUsed:z.propsUsed,deepPropsUsed:z.deepPropsUsed,defaultValue:p?!!z.defaultValue:m?!z.defaultValue:z.defaultValue,invocation(D){return this.doubleNegate?!!D:this.negate?!D:D}},this.addSearch(u)):u=z}let g,b=null,x=u.defaultValue;c?b=h:s==="mdw-if"?(g=this.#i(i),i.removeAttribute(s),x=x!=null&&x!==!1):(b=s,s==="id"||x==null||x===!1?i.removeAttribute(s):i.setAttribute(s,x===!0?"":x)),g??=this.#i(i);let k=this._interpolationState.nodeEntry;(!k||k.tag!==g)&&(k={tag:g,textNodes:[]},this._interpolationState.nodeEntry=k,this.nodesToBind.push(k),this._interpolationState.nodeIndex++);let S;c?(k.textNodes.push(h),this._interpolationState.nodeIndex++,S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,invocation:uo,defaultValue:x,search:u},c.data=typeof x=="string"?x:""):b?S={nodeIndex:this._interpolationState.nodeIndex,attrName:b,defaultValue:x,invocation:po,search:u}:(S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,defaultValue:x,invocation:ho,search:u},x||this.postInitActions.push({...S,invocation:_o})),this.addAction(S),(this.tagsWithBindings??=new Set).add(g)}#i(e){if(!e)return"";let i=e.id;return i?this.allIds.includes(i)||this.allIds.push(i):(i=it(),(this.temporaryIds??=new Set).add(i),this.allIds.push(i),e.id=i),i}#t(e,i){let r=e.getAttribute("mdw-for"),o=r==null?void 0:r.trim();if(!o||o[0]!=="{")return null;let{length:n}=o;if(o[n-1]!=="}")return null;let s=o.slice(1,-1),[l,a]=s.split(/\s+of\s+/);e.removeAttribute("mdw-for");let c=e.ownerDocument.createElement("template");e.replaceWith(c);let d=this.#i(c),m=this._interpolationState.nodeEntry;(!m||m.tag!==d)&&(m={tag:d,textNodes:[]},this._interpolationState.nodeEntry=m,this.nodesToBind.push(m),this._interpolationState.nodeIndex++);let p=new t;p.template.append(e);let f={...i.injections,[l]:null,index:null},h=[a],u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,propsUsed:h,deepPropsUsed:[[a]],defaultValue:{},invocation:null},g={defaultValue:null,nodeIndex:this._interpolationState.nodeIndex,search:u,commentIndex:this._interpolationState.commentIndex++,injections:f,invocation(x,k,S,A){if(!p.adapter){let I=x.nodes[this.nodeIndex],R=Te();x.comments[this.commentIndex]=R,I.replaceWith(R),p.adapter=new Ze({anchorNode:R,composition:p,renderOptions:{target:null,context:x.options.context,store:x.options.store,injections:this.injections}})}let{adapter:T}=p,E=(A??x.options.store)[a];if(!E||E.length===0){T.removeEntries();return}let v=S[a],y={...S},z=p.props.some(I=>I!==a&&I in S);T.startBatch();let D;if(!z&&!(D=Array.isArray(v))){let I=D?v.entries():Object.entries(v);for(let[R,P]of I){if(R==="length"||P===null)continue;let V=+R,te=E[V];y[l]=P,this.injections[l]=te,this.injections.index=V,T.renderData(V,y,A,te,P)}}else{v||delete y[l];for(let[I,R]of E.entries()){let P;if(v){if(!z&&!(I in v)||(P=v[I],P===null))continue;y[l]=P}this.injections[l]=R,this.injections.index=I,T.renderData(I,y,A,R,P)}}T.stopBatch(),T.removeEntries(E.length)}};return p.interpolate({defaults:i.defaults,injections:f}),h.push(...p.props),this.addSearch(u),this.addAction(g),(this.tagsWithBindings??=new Set).add(d),p}interpolate(e){var n;this.interpolateOptions=e,this.cloneable=this.template.cloneNode(!0);let r=document.createTreeWalker(this.cloneable,5),o=r.nextNode();for(;o;){let s=null;switch(o.nodeType){case Node.ELEMENT_NODE:if(s=o,s.tagName==="TEMPLATE"){for(;s.contains(o=r.nextNode()););continue}if(s.tagName==="SCRIPT"){for(;s.contains(o=r.nextNode()););continue}if(s.hasAttribute("mdw-for")){for(;s.contains(o=r.nextNode()););this.#t(s,e);continue}else{let l=s.attributes.id;l&&(this.#r(l,s,e),this.#i(s));for(let a of[...s.attributes].reverse())a.nodeName!=="id"&&this.#r(a,s,e)}break;case Node.TEXT_NODE:if(s=o.parentElement,this.#r(o,s,e)){let l=r.nextNode();o.remove(),o=l;continue}break;default:throw new Error(`Unexpected node type: ${o.nodeType}`)}o=r.nextNode()}"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...Zi(this.styles)]:(this.stylesFragment=Ve(),this.stylesFragment.append(...er(this.styles))),this.props=this.actionsByPropsUsed?[...this.actionsByPropsUsed.keys()]:[];for(let s of this.allIds)(n=this.tagsWithBindings)!=null&&n.has(s)||this.nodesToBind.push({tag:s,textNodes:[]});this.tags=this.nodesToBind.map(s=>s.tag),this.interpolated=!0}addSearch(e){return this.searches.push(e),e.query&&((this.searchByQuery??=new Map).set(e.query,e),this.initCache[e.cacheIndex]=e.defaultValue),e}addAction(e){let i=this.actionsByPropsUsed??=new Map;for(let r of e.search.propsUsed)i.has(r)?i.get(r).push(e):i.set(r,[e]);return e}};function O(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var _=class t extends HTMLElement{static elementName;static get observedAttributes(){return this.attrList.keys()}compose(){return this.#t??=new Le}static _composition=null;static _props=new Map;static _attrs=new Map;static _propChangedCallbacks=new Map;static _attributeChangedCallbacks=new Map;static _onComposeCallbacks=[];static _onConnectedCallbacks=[];static _onDisconnectedCallbacks=[];static _onConstructedCallbacks=[];static interpolatesTemplate=!0;static supportsElementInternals="attachInternals"in HTMLElement.prototype;static supportsElementInternalsRole=t.supportsElementInternals&&"role"in ElementInternals.prototype;static templatable=null;static defined=!1;static autoRegistration=!0;static registrations=new Map;static expressions=this.set;static methods=this.set;static overrides=this.set;static props=this.observe;static idl=this.prop;static _addCallback(e,i){if(!this.hasOwnProperty(e)){this[e]=[...this[e],i];return}this[e].push(i)}static append(...e){return this._addCallback("_onComposeCallbacks",({composition:i})=>{i.append(...e)}),this}static recompose(e){return this._addCallback("_onComposeCallbacks",e),this}static css(e,...i){return this._addCallback("_onComposeCallbacks",({composition:r})=>{typeof e=="string"||Array.isArray(e)?r.append(wt(e,...i)):r.append(e,...i)}),this}static autoRegister(e){return this.hasOwnProperty("defined")&&this.defined?this:(this.register(e),this)}static html(e,...i){return this._addCallback("_onComposeCallbacks",({composition:r})=>{r.append(ci(e,...i))}),this}static extend(e){return e?e(this):class extends this{}}static setStatic(e){return Object.assign(this,e),this}static readonly(e,i){return this.set(e,{...i,writable:!1})}static set(e,i){return Object.defineProperties(this.prototype,Object.fromEntries([...Object.entries(e).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,value:o,writable:!0,...i}])),...Object.getOwnPropertySymbols(e).map(r=>[r,{enumerable:!1,configurable:!0,value:e[r],writable:!0,...i}])])),this}static mixin(e){return e(this)}static register(e){return e&&(this.elementName=e),customElements.define(this.elementName,this),t.registrations.set(this.elementName,this),this.defined=!0,this}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get attrList(){return this.hasOwnProperty("_attrs")||(this._attrs=new Map(this._attrs)),this._attrs}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._attributeChangedCallbacks}static prop(e,i){let r=ni(this.prototype,e,i),{changedCallback:o,attr:n,reflect:s,watchers:l}=r;return o&&l.push([e,o]),r.changedCallback=function(c,d,m){this._onObserverPropertyChanged.call(this,e,c,d,m)},this.propList.set(e,r),n&&(s===!0||s==="read")&&this.attrList.set(n,r),this.onPropChanged(l),this}static define(e){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(e).map(([i,r])=>(this.undefine(i),[i,{enumerable:i[0]!=="_",configurable:!0,...typeof r=="function"?{get:r}:r}])))),this}static undefine(e){if(Reflect.deleteProperty(this.prototype,e),!this.propList.has(e))return this;let{watchers:i,attr:r,reflect:o}=this.propList.get(e);if(i.length&&this.propChangedCallbacks.has(e)){let n=this.propChangedCallbacks.get(e);for(let s of i){let l=n.indexOf(s);l!==-1&&n.splice(l,1)}}return r&&(o===!0||o==="read")&&this.attrList.delete(r),this.propList.delete(e),this}static observe(e){for(let[i,r]of Object.entries(e??{})){let o=typeof r=="function"?{reflect:!1,get:r}:r;this.prop(i,o)}return this}static defineStatic(e){for(let[i,r]of Object.entries(e??{}))ni(this,i,{reflect:!1,...typeof r=="function"?{get:r}:typeof r=="string"?{type:r}:r});return this}static events(e,i){return this.on({composed({composition:r}){for(let[o,n]of Object.entries(e)){let[,s,l]=o.match(/^([*1~]+)?(.*)$/),a,c=[];if(typeof n=="string"){let d=n.split(".");d.length===1?(a=n,c=[]):(a=d[0],c=d)}r.addCompositionEventListener({type:l,once:s==null?void 0:s.includes("1"),passive:s==null?void 0:s.includes("~"),capture:s==null?void 0:s.includes("*"),...typeof n=="function"?{handleEvent:n}:typeof n=="string"?{prop:a,deepProp:c}:n,...i})}}}),this}static childEvents(e,i){for(let[r,o]of Object.entries(e))this.events(o,{tag:xe(r),...i});return this}static rootEvents(e,i){return this.events(e,{tag:Le.shadowRootTag,...i})}static on(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(n);continue;case"attrs":this.onAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.onPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._addCallback(s,n)}return this}static onPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}static onAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}#e;#r=new Map;#i=new Map;#t;_propAttributeCache;_callbackArguments=null;constructor(...e){super(),t.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.render=this.composition.render(this.constructor.prototype,this,{defaults:this.constructor.prototype,store:this,shadowRoot:this.shadowRoot,context:this});for(let i of this.static._onConstructedCallbacks)i.call(this,this.callbackArguments)}propChangedCallback(e,i,r,o=r){this.patching||this.render.byProp(e,o,this);let{_propChangedCallbacks:n}=this.static;if(n.has(e))for(let s of n.get(e))s.call(this,i,r,o,this)}attributeChangedCallback(e,i,r){let{attributeChangedCallbacks:o}=this.static;if(o.has(e))for(let d of o.get(e))d.call(this,i,r,this);let{attrList:n}=this.static;if(!n.has(e))return;let s=n.get(e);if(s.attributeChangedCallback){s.attributeChangedCallback.call(this,e,i,r);return}let l;if(this.attributeCache.has(e)&&(l=this.attributeCache.get(e),l.stringValue===r))return;let a=this[s.key],c=r===null?s.nullParser(r):s.type==="boolean"?!0:s.parser(r);c!==a&&(l?(l.stringValue=r,l.parsedValue=c):this.attributeCache.set(e,{stringValue:r,parsedValue:c}),this[s.key]=c)}get#o(){var e;return(e=this.#t)==null?void 0:e.template}_onObserverPropertyChanged(e,i,r,o){let{propList:n}=this.static;if(n.has(e)){let{reflect:s,attr:l}=n.get(e);if(l&&(s===!0||s==="write")){let a,c=!1,{attributeCache:d}=this;if(d.has(l)?(a=d.get(l),c=a.parsedValue!==r):(a={},d.set(l,a),c=!0),c){let m=nr(r);a.parsedValue=r,a.stringValue=m,m==null?this.removeAttribute(l):this.setAttribute(l,m)}}}this.propChangedCallback(e,i,r,o)}patch(e){this.patching=!0,kt(this,e),this.render(e),this.patching=!1}get refs(){return this.#e??=new Proxy({},{get:(e,i)=>{this.#t;let r=this.composition,o;if(!r.interpolated){if(this.#i.has(i)&&(o=this.#i.get(i).deref(),o))return o;let l=xe(i);return o=r.template.getElementById(l),o?(this.#i.set(i,new WeakRef(o)),o):null}if(this.#r.has(i)&&(o=this.#r.get(i).deref(),o))return o;let n=xe(i),s=this.composition.tags.indexOf(n);return o=this.render.state.refs[s],o?(this.#r.set(i,new WeakRef(o)),o):null}})}get attributeCache(){return this._propAttributeCache??=new Map}get static(){return this.constructor}get unique(){return!1}get callbackArguments(){return this._callbackArguments??={composition:this.#t,refs:this.refs,html:ci.bind(this),inline:li,template:this.#o,element:this}}get composition(){if(this.#t)return this.#t;if(!this.unique&&this.static.hasOwnProperty("_composition"))return this.#t=this.static._composition,this.static._composition;this.compose();for(let e of this.static._onComposeCallbacks)e.call(this,this.callbackArguments);return this.unique||(this.static._composition=this.#t),this.#t}connectedCallback(){for(let e of this.static._onConnectedCallbacks)e.call(this,this.callbackArguments)}disconnectedCallback(){for(let e of this.static._onDisconnectedCallbacks)e.call(this,this.callbackArguments)}};_.prototype.delegatesFocus=!1;function G(t){return t.observe({density:"integer"}).css`:host{--mdw-density:var(--mdw-density__default, 0)}:host([density]){--mdw-density:0}:host([density="-1"]){--mdw-density:-1}:host([density="-2"]){--mdw-density:-2}:host([density="-3"]){--mdw-density:-3}:host([density="-4"]){--mdw-density:-4}:host([density="1"]){--mdw-density:1}:host([density="2"]){--mdw-density:2}:host([density="3"]){--mdw-density:3}:host([density="4"]){--mdw-density:4}`}function C(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=outline mdw-if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}></div>`.css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));z-index:0;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}`.css`.outline{position:absolute;inset:0;border-style:solid;border-width:1px;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}`}var vo=De.map(t=>[`:host([color="${t}"]){`,`--mdw-bg: var(--mdw-color__${t});`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([color="${t}-container"]){`,`--mdw-bg: var(--mdw-color__${t}-container);`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),yo=De.map(t=>[`:host([ink="${t}"]){`,`--mdw-ink: var(--mdw-color__${t});`,"}",`:host([ink="on-${t}"]){`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([ink="on-${t}-container"]){`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),ko=Ut.map(t=>[`:host([type-style|="${t}"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-large__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-large__letter-spacing);`,"}",`:host([type-style="${t}-medium"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-medium__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-medium__letter-spacing);`,"}",`:host([type-style="${t}-small"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-small__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-small__letter-spacing);`,"}"].join("")).join("");function w(t){return t.observe({color:"string",ink:"string",typeStyle:"string"}).css(vo).css`:host([color=background]){--mdw-bg:var(--mdw-color__background);--mdw-ink:var(--mdw-color__on-background)}:host([color=surface-dim]){--mdw-bg:var(--mdw-color__surface-dim)}:host([color=surface-bright]){--mdw-bg:var(--mdw-color__surface-bright)}:host([color=surface-container-lowest]){--mdw-bg:var(--mdw-color__surface-container-lowest)}:host([color=surface-container-low]){--mdw-bg:var(--mdw-color__surface-container-low)}:host([color=surface-container-high]){--mdw-bg:var(--mdw-color__surface-container-high)}:host([color=surface-container-highest]){--mdw-bg:var(--mdw-color__surface-container-highest)}:host([color=surface-primary]){--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__primary)}:host([color$=variant]){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host([color^=inverse]){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([color=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}`.css(yo).css`:host([ink=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}:host([ink=outline]){--mdw-ink:var(--mdw-color__outline)}:host([ink=surface-container-highest]){--mdw-ink:var(--mdw-color__surface-container-highest)}:host([ink=on-surface-variant]){--mdw-ink:var(--mdw-color__on-surface-variant)}:host([ink=inverse-on-surface]){--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([ink=inherit]){--mdw-ink:inherit}`.css(ko)}var So=_.extend().mixin(w).mixin(G).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-error);--mdw-bg:var(--mdw-color__error);--mdw-type__font:var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-block:calc(8px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width:1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){min-block-size:6px;min-inline-size:6px;margin:5px;padding:0}`.autoRegister("mdw-badge");function L(t){return t.set({delegatesFocus:!0}).extend(Ie>=111?e=>e:e=>class extends e{get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&le(this)){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};for(let o of["blur","focus","focusout","focusin"])this.addEventListener(o,r,{capture:!0,once:!0});super.tabIndex=i;for(let o of["blur","focus","focusout","focusin"])this.removeEventListener(o,r,{capture:!0});return}super.tabIndex=i}}})}function mi(t){return t?t.includes("px")||t.includes("em")||t.includes("ex")?t:`calc(${t.replace("sp","")} * 0.0625rem)`:""}function Re(t){return t.mixin(L).observe({textPadding:"string",textPaddingTop:"string",textLeading:"string",textPaddingBottom:"string"}).observe({_computedTextPaddingTop({textPaddingTop:e,textPadding:i}){return mi(e??i)},_computedTextPaddingBottom({textPaddingBottom:e,textPadding:i}){return mi(e??i)},_computedTextLeading({textLeading:e}){return mi(e)}}).observe({_beforeStyle({_computedTextPaddingTop:e,_computedTextLeading:i}){return i?`margin-top:${i}`:e?`margin-top:${e}`:""},_afterStyle({_computedTextPaddingBottom:e}){return e?`vertical-align:calc(-1em + (-1 * ${e}));`:""}}).html`<div id=wrapper style={_wrapperStyle} before={!!_beforeStyle} after={!!_afterStyle}><span id=before mdw-if={!!_beforeStyle} style={_beforeStyle} text-leading={textLeading}></span><span id=content before={!!_beforeStyle} after={!!_afterStyle}><span id=after mdw-if={!!_afterStyle} style={_afterStyle}></span></span></div>`.recompose(({refs:{content:e,slot:i}})=>{e.prepend(i)}).css`:host{display:block}:host(:where([text-padding],[text-padding-top],[text-padding-bottom])){display:flex}#wrapper{display:contents}#wrapper:where([before],[after]){display:flex;align-items:baseline}#wrapper[before]{margin-block-start:-1em}#wrapper[after]{margin-block-end:-1em}#before{display:inline-block;block-size:1.4ex;padding-block-start:1em}@supports (height:1cap){#before{block-size:1cap}}#before[text-leading]{block-size:0}#content{display:contents}#content:where([before],[after]){display:block}#after{display:inline-block;padding-block-end:1em}`}function de(t){return t.observe({block:"boolean",inline:"boolean",row:"boolean",x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"string"}).css`:host{display:flex;flex-direction:column;box-sizing:border-box}:host(:is([inline])){display:inline-flex}:host(:is([block])){display:block}:host(:is([inline][block])){display:inline-block}:host(:is([row])){flex-direction:row}:host(:is([row][y=start],[x=start]:not([row]))){align-items:flex-start}:host(:is([row][y=end],[x=end]:not([row]))){align-items:flex-end}:host(:is([row][y=center],[x=center]:not([row]))){align-items:center}:host(:is([row][y=between],[x=between]:not([row]))){align-items:space-between}:host(:is([row][y=around],[x=around]:not([row]))){align-items:space-around}:host(:is([row][y=stretch],[x=stretch]:not([row]))){align-items:stretch}:host(:is([row][x=start],[y=start]:not([row]))){justify-content:flex-start}:host(:is([row][x=end],[y=end]:not([row]))){justify-content:flex-end}:host(:is([row][x=center],[y=center]:not([row]))){justify-content:center}:host(:is([row][x=between],[y=between]:not([row]))){justify-content:space-between}:host(:is([row][x=stretch],[y=stretch]:not([row]))){justify-content:stretch}:host(:is([wrap])){flex-wrap:wrap}:host(:is([wrap=reverse])){flex-wrap:wrap-reverse}:host(:is([gap])){gap:0}:host(:is([gap="4"])){gap:4px}:host(:is([gap="8"])){gap:8px}:host(:is([gap="12"])){gap:12px}:host(:is([gap="16"])){gap:16px}:host(:is([gap="20"])){gap:20px}:host(:is([gap="24"])){gap:24px}:host(:is([padding])){padding:0}:host(:is([padding=pane])){padding-inline:var(--mdw-pane__padding-inline,0)}:host(:is([padding="4"])){padding:4px}:host(:is([padding="8"])){padding:8px}:host(:is([padding="12"])){padding:12px}:host(:is([padding="16"])){padding:16px}:host(:is([padding="20"])){padding:20px}:host(:is([padding="24"])){padding:24px}:host(:is([padding-x])){padding-inline:0}:host(:is([padding-x="4"])){padding-inline:4px}:host(:is([padding-x="8"])){padding-inline:8px}:host(:is([padding-x="12"])){padding-inline:12px}:host(:is([padding-x="16"])){padding-inline:16px}:host(:is([padding-x="20"])){padding-inline:20px}:host(:is([padding-x="24"])){padding-inline:24px}:host(:is([padding-y])){padding-block:0}:host(:is([padding-y="4"])){padding-block:4px}:host(:is([padding-y="8"])){padding-block:8px}:host(:is([padding-y="12"])){padding-block:12px}:host(:is([padding-y="16"])){padding-block:16px}:host(:is([padding-y="20"])){padding-block:20px}:host(:is([padding-y="24"])){padding-block:24px}`}var H=_.extend().mixin(w).mixin(de).html`<slot id=slot></slot>`.css`:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot::slotted([flex-0]){flex:0}#slot::slotted([flex-1]){flex:1}#slot::slotted([flex-none]){flex:none}`.autoRegister("mdw-box");var zo=H.extend().mixin(Re).css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function $(t){return t.observe({_ariaRole:"string"}).set({onConnectAriaValues:null,hasFiredConnected:!1}).methods({readAriaProperty(e){if(this.elementInternals&&e in this.elementInternals)return this.elementInternals[e];if(e in this)return this[e];let i=e;return i.startsWith("aria")&&(i=`aria-${i.slice(4).toLowerCase()}`),this.getAttribute(e)},updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(this.isConnected)if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}else this.onConnectAriaValues??=new Map,this.onConnectAriaValues.set(e,i)}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)},connected(){if(this.onConnectAriaValues){for(let[e,i]of this.onConnectAriaValues)this.updateAriaProperty(e,i);this.onConnectAriaValues=null}}})}var Co=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function re(t){return t.mixin($).observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Co},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.readAriaProperty("ariaOrientation")??this.ariaOrientationDefault)==="vertical"},focusCurrentOrFirst(){let e,i;for(let r of this.kbdNavChildren)if(i=r,r.tabIndex===0){e=r;break}return j(e)?e:j(i)?i:null},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let s of n){if(!o){o=e?s===e:s.getAttribute("tabindex")==="0";continue}if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&j(s))return this.ariaActiveDescendantElement=s,s}if(!i)return!le(e)&&e instanceof HTMLElement&&e.focus(),e;for(let s of n)if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&(j(s)||s===e))return s;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!j(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&le(o)?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=le(o)?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function $e(t){return t.mixin($).mixin(re).set({ariaOrientationDefault:"horizontal",_ariaRole:"toolbar"})}function U(t){return t.css`:host{--mdw-elevation__rgb:var(--mdw-color__shadow);--mdw-elevation__box-shadow__0:0px 1px 1px 0px rgba(var(--mdw-elevation__rgb), 0),0px 0px 1px 1px rgba(var(--mdw-elevation__rgb), 0);--mdw-elevation__box-shadow__1:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 1px 3px 1px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__2:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 2px 6px 2px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__3:0px 1px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 4px 8px 3px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__4:0px 2px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 6px 10px 4px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__5:0px 4px 4px 0px rgba(var(--mdw-elevation__rgb), .3),0px 8px 12px 6px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__drop-shadow__0:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),000)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),00000));--mdw-elevation__drop-shadow__1:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__2:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 2px 005px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__3:drop-shadow(0px 1px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 4px 007px rgba(var(--mdw-elevation__rgb),.263));--mdw-elevation__drop-shadow__4:drop-shadow(0px 2px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 6px 009px rgba(var(--mdw-elevation__rgb),.27));--mdw-elevation__drop-shadow__5:drop-shadow(0px 4px 2px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 8px 012px rgba(var(--mdw-elevation__rgb),.3))}`}var pi=_.extend().mixin(w).mixin(de).mixin(U).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;filter:var(--mdw-elevation__drop-shadow__0);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-surface");var Eo=pi.extend().mixin($e).observe({color:{empty:"surface-container"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);align-items:center;flex-direction:row;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var oe={type:"function",reflect:"read",value:null,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r=document.createElement("button");r.setAttribute("onclick",i);let o=r.onclick;r.remove(),this[t]=o},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}};var _i=new WeakMap,fi=new WeakMap;function Mo(t){let e=fi.get(this),i;e!=null&&e.has(t)&&(i=e.get(t));let r=_i.get(this),{initial:o}=r.get(t);r.delete(t);let n=this[t];if(!n){i==null||i.cancel();return}let{target:s,styles:l,timing:a}=n,d=(s?typeof s=="string"?this.refs[s]:s:this).animate(l,{...a,...o?{duration:0}:null,fill:"forwards"});d.onremove=()=>{i==null||i.effect.updateTiming({fill:"none"}),i==null||i.finish(),i==null||i.cancel(),i=null},e?e.set(t,d):fi.set(this,new Map([[t,d]]))}var He=new WeakMap,hr=new ResizeObserver(t=>{for(let{target:e}of t)if(He.has(e)){let i=He.get(e);He.delete(e),hr.unobserve(e);for(let r of i)r()}}),Z={type:"object",reflect:!1,diff:null,propChangedCallback(t,e,i){if(!i){let s=fi.get(this);if(!(s!=null&&s.has(t)))return}let r=_i.get(this),o=!this.isConnected;if(r){if(r.has(t))return;r.set(t,{initial:o})}else _i.set(this,new Map([[t,{initial:o}]]));let n=Mo.bind(this,t);this.isConnected?queueMicrotask(n):He.has(this)?He.get(this).push(n):(He.set(this,[n]),hr.observe(this))}},ui=new WeakMap,hi=null,ne={type:"string",reflect:!1,parser(t){return!t||typeof t=="string"?t:`:host{${Object.entries(t).map(([e,i])=>`${xe(e)}:${i}`).join(";")}}`},propChangedCallback(t,e,i){let r,o;if(ui.has(this))r=ui.get(this),r.has(t)&&(o=r.get(t));else{if(!i)return;r=new Map,ui.set(this,r)}if(hi??="adoptedStyleSheets"in ShadowRoot.prototype,!o){if(hi)o=new CSSStyleSheet,this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,o];else{let n=this.ownerDocument.createElement("style");this.shadowRoot.prepend(n),o=n}r.set(t,o)}i?(hi?o.replaceSync(i):i&&(o.textContent=i),o.disabled=!1):o.disabled=!0}};var _r=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function B(t){return t.observe({_resizeObserverEnabled:{type:"boolean",value:!0}}).methods({onResizeObserved(e){},observeResize(){_r.observe(this,{box:"border-box"})},unobserveResize(){_r.unobserve(this)}}).on({connected(){this._resizeObserverEnabled&&this.observeResize()},disconnected(){this.unobserveResize()},_resizeObserverEnabledChanged(e,i){i?this.observeResize():this.unobserveResize()}})}var br,fr=(br=window==null?void 0:window.matchMedia)==null?void 0:br.call(window,"(any-pointer: coarse)").matches;function N(t){return t.observe({disabled:"boolean",focused:"boolean",hovered:"boolean",pressed:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_focusedSynthetic:"boolean",_keyPressed:"boolean",_keyReleased:"boolean",_pointerPressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e,hovered:i}){return e||i},focusedState({_focused:e,focused:i}){return e||i},pressedState({_keyPressed:e,_pointerPressed:i,pressed:r}){return e||i||r},touchedState({_lastInteraction:e}){return e==="touch"},pointedState({_lastInteraction:e}){return e==="mouse"||e==="pen"}}).define({stateTargetElement(){return this}}).html`<div id=state mdw-if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} pointed={pointedState} aria-hidden=true></div>`.events({pointerenter(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!0)},"~pointerup"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!1)},pointercancel(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=!1,this._hovered=!1)},"~keydown"(e){e.isTrusted&&(this._lastInteraction="key",!e.repeat&&e.key===" "&&(this._keyPressed=!0))},"~keyup"(e){e.isTrusted&&(this._lastInteraction="key",e.key===" "&&(this._keyPressed=!1,this._keyReleased=!0,setTimeout(()=>{this._keyReleased=!1})))},blur(e){e.isTrusted&&(this._focused=!1,this._focusedSynthetic=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction&&(fr=this._lastInteraction==="touch",this._lastInteraction=null))},focus(e){e.isTrusted&&(this._focusedSynthetic="sourceCapabilities"in e?!e.sourceCapabilities:this._lastInteraction===null&&!e.relatedTarget,this._focused=!0,!this._lastInteraction&&fr&&(this._lastInteraction="touch"))}}).on({disconnected(){this._focused=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity:.08;--mdw-state__focused-opacity:.12;--mdw-state__pressed-opacity:.12;--mdw-state__dragged-opacity:.12;position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{--mdw-state__opacity:calc( var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity) );position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-state__opacity);background-color:currentColor;border-radius:inherit;transition-delay:0s;transition-duration:0s;transition-property:opacity,color,background-color;will-change:opacity}@supports (background-color:color-mix(in srgb,red 100%,red)){#state{opacity:1;background-color:color-mix(in srgb,currentColor calc(100% * var(--mdw-state__opacity)),transparent);transition-property:color,background-color;will-change:color,background-color}}#state[touched]{--mdw-state__hovered-opacity:0;--mdw-state__focused-opacity:0}#state:is(:not([hovered]),[disabled]:not([state-disabled~=hover]),[state-off~=hover]){--mdw-state__hovered-opacity:0}#state:is(:not([focused]),[disabled]:not([state-disabled~=focus]),[state-off~=focus]){--mdw-state__focused-opacity:0}#state:is(:not([pressed]),[disabled]:not([state-disabled~=pressed]),[state-off~=pressed]){--mdw-state__pressed-opacity:0}#state:is([disabled]:not([state-disabled~=dragged]),[state-off~=dragged]),:host(:not([aria-dragged=true])) #state{--mdw-state__dragged-opacity:0}#state[disabled]:not([state-disabled]){display:none}`}var Ct=_.extend().observe({hidden:"boolean"}).html`<div id=scroll-blocker></div>`.css`:host{position:fixed;inset:0;display:block;overflow:overlay;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-color:transparent transparent;scrollbar-width:none;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;opacity:0;z-index:23;background-color:rgb(var(--mdw-color__scrim));animation:fade-in .2s forwards ease-out;will-change:opacity}:host::-webkit-scrollbar{display:none}:host([hidden]){animation-name:fade-out;animation-timing-function:ease-in}:host([invisible]){background:0 0}#scroll-blocker{position:absolute;inset-block-start:0;inset-inline-start:0;display:block;block-size:200%;inline-size:200%}@keyframes fade-in{0%{opacity:0}to{opacity:.38}}@keyframes fade-out{0%{opacity:.38}to{opacity:0}}`.events({animationend(){this.hidden&&this.remove()}}).autoRegister("mdw-scrim");var Ao="onscrollend"in window,gr=new WeakSet;_.extend().mixin(N).set({stateLayer:!0}).html`<div id=container><div id=icon aria-hidden=true></div></div>`.recompose(({refs:{container:t,state:e}})=>{t.prepend(e)}).css`:host{--mdw-state__hovered-opacity:0;--mdw-state__pressed-opacity:0;position:absolute;inset-block-start:0;inset-inline:0;align-self:stretch;display:flex;align-items:center;justify-content:center;cursor:grab;outline:0;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;color:rgb(var(--mdw-color__on-surface-variant))}:host(:active){cursor:grabbing!important}#container{position:relative;display:flex;align-items:center;justify-content:center;min-block-size:48px;min-inline-size:48px}#state{border-radius:50%}#state[pointed]{--mdw-state__focused-opacity:0}#icon{block-size:4px;inline-size:32px;background-color:currentColor;border-radius:8px}`.events({touchmove(t){t.preventDefault()}}).autoRegister("mdw-bottom-sheet-handle");var To=_.extend().mixin(w).mixin(de).mixin(C).mixin($).mixin(L).mixin(B).observe({shapeTop:{type:"boolean",empty:!0},modal:"boolean",open:"boolean",expanded:"boolean",_lastComputedBlockSize:{type:"float",nullable:!1},_lastOffsetTop:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_translateY:{value:"100%"},_lastChildScrollTime:"float",_ariaValueNow:{type:"integer"},dragHandle:"boolean",onopen:oe,onclose:oe}).set({_hasCheckedResize:!1,_scrim:null,_dragTimestamp:0,_dragDeltaY:null,_dragStartY:null}).observe({hostStyles:{...Z,get({open:t,modal:e,_lastComputedBlockSize:i,_translateY:r,_animationDuration:o,_animationEasing:n}){return{styles:{marginBottom:t||e?0:`${-1*i}px`,transform:e?`translateY(${r})`:"none"},timing:{duration:o,easing:n}}}}}).html`<mdw-bottom-sheet-handle id=drag-handle mdw-if={dragHandle} tabindex=0 role=separator aria-valuemin=-100 aria-valuemax=0 aria-valuenow={_ariaValueNow}></mdw-bottom-sheet-handle><slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,modal:i,_scrim:r}=this;e&&i?(r||(r=new Ct,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragStartY:e,_dragDeltaY:i,_lastComputedBlockSize:r,modal:o,_lastOffsetTop:n}=this;if(!t||!o||e==null||i==null)return;let s=n+r-72,l=r>s?r-s:0,a=(r-i)/(r-l);this._dragStartY=null,a<.5?(this._animationDuration=200*a,this._animationEasing="ease-out",this._translateY="100%",this._dragDeltaY=null,this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*a),this._dragDeltaY=l,this._translateY="0px",this._animationEasing="ease-in",this.expanded=!0)},onDragHandleActive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&t.buttons===1&&gr.add(t)},onDragHandleInactive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&(t.type!=="pointerup"&&t.buttons!==1||this.checkDragFinished())},onPointerOrTouchMove(t){let e,i=t.type==="touchmove";if(i){let{touches:u}=t;if(!u.length)return;e=u[0]}else e=t;let{open:r,_lastChildScrollTime:o,_dragStartY:n,_dragTimestamp:s,expanded:l}=this;if(!r||n==null||o&&performance.now()-o<=(Ao?5e3:500))return;let{clientY:a,pageY:c}=e;a??=c-window.scrollY;let{_lastOffsetTop:d,_lastComputedBlockSize:m}=this,p=d+m-72,f=m>p?m-p:0,h=Math.max(a-n,f);this._dragDeltaY=h,!(i&&l&&performance.now()-s<100)&&(this._animationDuration=0,this._translateY=`${h}px`)}}).overrides({onResizeObserved(t){var e;this._lastComputedBlockSize=(e=t.borderBoxSize[0])==null?void 0:e.blockSize,this._lastOffsetTop=this.offsetTop}}).events({"~pointerdown"(t){if(t.pointerType!=="touch"&&(t.buttons!==1||!gr.has(t))||!this.open)return;let{clientY:e,pageY:i}=t;e??=i-window.scrollY,this._dragStartY=e-(this._dragDeltaY??0),this._dragDeltaY=0,this._dragTimestamp=performance.now()},"~pointermove":"onPointerOrTouchMove","~pointerup"(t){t.pointerType!=="touch"&&this.checkDragFinished()},pointerleave(t){t.pointerType!=="touch"&&this.checkDragFinished()},"~touchmove":"onPointerOrTouchMove",touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.modal&&(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartY=null,this._dragDeltaY=null)},"*scrollend"(){this.modal&&(this._lastChildScrollTime=null)}}).childEvents({dragHandle:{"~pointerdown":"onDragHandleActive","~pointermove":"onDragHandleActive"}}).on({openChanged(t,e){let i=this.offsetTop;if(this._lastOffsetTop=i,this._animationDuration=e?250:200,e){let r=0;if(this.modal){let{_lastComputedBlockSize:o}=this,n=i+o;o>n/2&&(r=o-n/2)}this._translateY=`${r}px`,this._dragDeltaY=r}else this._translateY="100%",this.expanded=!1;this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),e&&this.focus()},modalChanged(){this._animationDuration=0,this.checkForScrim(!1)}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);--mdw-shape__size:var(--mdw-shape__extra-large);--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;position:sticky;inset-block-end:0;inset-inline:0;overflow-y:clip;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-inline-size:640px;margin-inline:auto;padding-block-start:16px;pointer-events:none;transform:translateY(100%);visibility:hidden;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-block-end,visibility}:host(:where([open])){pointer-events:auto;visibility:inherit;transition:visibility 0s}:host(:where([modal])){position:fixed;max-block-size:calc(100% - 72px);touch-action:none;z-index:24}:host(:where([expanded])){overflow-y:auto;touch-action:auto}:host(:where([drag-handle])){padding-block-start:48px}`.autoRegister("mdw-bottom-sheet");var wr={};Lt(wr,{addSVGAlias:()=>Io,svgAliasMap:()=>ve,unaliased:()=>bi});var ve=new Map,bi=new Set;function Io(t,e,i="0 0 24 24"){t=t.toLowerCase(),e?ve.set(t,{path:e,viewBox:i}):ve.delete(t)}var gi=new Set,Lo=_.extend().mixin(w).define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({icon:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",variation:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:"string",fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"},_isConnected:"boolean"}).observe({_svgAlias:{type:"object",get({icon:t,variation:e}){if(!t)return null;let i=t.trim().toLowerCase(),r=e?`#${e}`:"",o=`${i}${r}`;return ve.has(o)?ve.get(o):(bi.add(o),r&&ve.has(i)?ve.get(i):null)}}}).observe({_computedSVGPath({svgPath:t,_svgAlias:e}){return t||(e==null?void 0:e.path)},_computedViewBox({viewBox:t,_svgAlias:e}){return t??(e==null?void 0:e.viewBox)??"0 0 24 24"}}).observe({_showFontIcon:{type:"boolean",get({icon:t,svg:e,_computedSVGPath:i,src:r}){return t&&!e&&!i&&!r}}}).expressions({showSVG({svg:t,_computedSVGPath:e}){return!!(t||e)}}).html`<link mdw-if={_showFontIcon} id=link rel=stylesheet href={fontLibrary}><svg mdw-if={showSVG} id=svg viewBox={_computedViewBox}><use id=use mdw-if={svg} href={svg} fill=currentColor /><path id=path mdw-if={_computedSVGPath} d={_computedSVGPath} /></svg> <img mdw-if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}> <span id=icon class={fontClass} hidden={!_showFontIcon} aria-hidden=true>{icon}</span>`.css`:host{vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;line-height:1;font-variation-settings:"FILL" 0;transition-duration:.2s;transition-property:inline-size,width}:host([variation=fill]){font-variation-settings:"FILL" 1}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({link:{load({currentTarget:t}){let{href:e,parentNode:i}=t;if(!gi.has(e)){for(let r of document.head.getElementsByTagName("link"))if(r.href===e){gi.add(e);return}document.head.append(t.cloneNode()),gi.add(e)}}}}).extend(t=>class extends t{constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}}).autoRegister("mdw-icon");function wi(t){return t.rootEvents({click(e){let{target:i}=e;if(!(i instanceof HTMLAnchorElement)||!i.href)return;i.dispatchEvent(new CustomEvent("mdw:hyperlink",{bubbles:!0,composed:!0,cancelable:!0,detail:{download:i.download,href:i.href,hreflang:i.hreflang,target:i.target}}))||e.preventDefault()}})}function _e(t){return{get(){return new URL(this.href,window.location.href)[t]},set(e){let{href:i}=this;if(!i)return;let r=new URL(i,window.location.href);r[t]=e,this.href=r.href}}}function ee(t){return t.mixin(wi).observe({href:"string",target:"string",download:"string",ping:"string",rel:"string",hreflang:"string",referrerPolicy:{type:"string",attr:"referrerpolicy"}}).define({origin(){return new URL(this.href).origin},protocol:_e("protocol"),username:_e("username"),password:_e("password"),host:_e("host"),hostname:_e("hostname"),port:_e("port"),pathname:_e("pathname"),search:_e("search"),hash:_e("hash")}).html`<a id=anchor href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy}></a>`.methods({toString(){return this.href}})}var xi="mdw-form-associated-changed",vi={nullParser:String,value:""};function me(t){return t.setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null,_files:null}).observe({ariaControls:"string",autocomplete:vi,name:vi,readOnly:{attr:"readonly",type:"boolean"},formNoValidate:{attr:"formnovalidate",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:vi,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_userInteracted:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e,_userInteracted:i}){return i&&e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){case"filename":default:return r;case"default":return i??"";case"default/on":return i??"on"}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;case"filename":if(e==null||e==="")this._files=null;else throw new DOMException("InvalidStateError");break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checkedDirty:e,defaultChecked:i,_checked:r}){return e?r:i},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.type==="submit"?!this.formNoValidate:this.type==="button"||this.type==="reset"?!1:this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){var r;(r=this._ipcTarget)==null||r.dispatchEvent(new CustomEvent(xi,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(xi,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(xi,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation(),this.checkValidity()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._userInteracted=!1,this._formReset=!1},formStateRestoreCallback(e,i){if(!(Ie<115)&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;case"button":case"reset":this.elementInternals.setFormValue(null);break;case"file":{let{elementInternals:e,_files:i,name:r}=this;if(!i||i.length)e.setFormValue(null);else{let o=new FormData;for(let n of i)o.append(r,n);e.setFormValue(o)}break}case"select-multiple":{let e=new FormData;if(this.name)for(let i of this.selectedOptions)e.append(this.name,i.value);this.elementInternals.setFormValue(e);break}default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this._userInteracted=!0,this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()},_valueBehaviorChanged(e,i){e!=="filename"&&i==="filename"&&(this.value="")},typeChanged(){this._updateFormAssociatedValue()}})}function ye(t){return t.mixin(me).mixin(L).observe({ariaLabel:"string",_slotInnerText:"string"}).set({focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0,_slotMutationObserver:null}).methods({_onControlValue(e){this._value=e},onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._onControlValue(e.value)},focus(...e){this.refs.control.focus(...e)},click(){this.disabledState||this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control}}).methods({checkValidity(){if(!this.willValidate)return!0;let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage,e),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity(),this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e,this.refs.control)}}).observe({_computedAriaLabel({ariaLabel:e,_slotInnerText:i}){return(e==null?void 0:e.trim())||(i==null?void 0:i.trim())||null}}).expressions({_computedAriaLabelledby({_computedAriaLabel:e}){return e?null:"slot"}}).recompose(({template:e,html:i,element:r})=>{e.append(i`
|
|
174
|
+
`)}var no={},Jt=null;function ft(){if(!Jt){let t;try{t=no.url}catch{}if(!t)try{t=document.currentScript.src}catch{}if(!t)return new URLSearchParams;Jt=new URL(t).searchParams}return Jt}De.push(...ft().getAll("custom").flatMap(t=>t.split(",")).map(t=>t.split(":")[0]));var Zt=new Map;function gt(t,e=!0){if(e&&Zt.has(t))return Zt.get(t);let i=new CSSStyleSheet;return i.replaceSync(t),e&&Zt.set(t,i),i}var ei=new Map,Qi;function so(t,e=!0){let i;return e&&ei.has(t)?i=ei.get(t):(Qi??=document.implementation.createHTMLDocument(),i=Qi.createElement("style"),i.textContent=t,e&&ei.set(t,i)),i.cloneNode(!0)}var bt;function Ji(t,e=!0){if(bt==null)try{let i=gt(t,e);return bt=!0,i}catch{bt=!1}return bt?gt(t,e):so(t,e)}function*Zi(t,e=!0){for(let i of t)i instanceof HTMLStyleElement?yield gt(i.textContent,e):i.ownerNode?yield gt([...i.cssRules].map(r=>r.cssText).join(""),e):yield i}var ti=new WeakMap;function*er(t,e=!0){for(let i of t)if(i instanceof HTMLStyleElement)yield i;else if(i.ownerNode instanceof HTMLStyleElement)yield i.ownerNode.cloneNode(!0);else if(e&&ti.has(i))yield ti.get(i).cloneNode(!0);else{let r=document.createElement("style");r.textContent=[...i.cssRules].map(o=>o.cssText).join(""),e&&ti.set(i,r),yield r.cloneNode(!0)}}function wt(t,...e){return Ji(typeof t=="string"?t:String.raw({raw:t},...e))}function xt(t,...e){let i;return typeof t=="string"?i=wt(t):Array.isArray(t)?i=wt(t,...e):i=t,i instanceof HTMLStyleElement?document.head.append(i):document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],i}xt([Qt(Kt(ft())),qt()].join(`
|
|
175
|
+
`));var ao,lo;function tr(){return(ao??=new Text).cloneNode()}function Te(){return(lo??=new Comment).cloneNode()}var Ze=class{constructor(e){this.anchorNode=e.anchorNode,this.metadata=[],this.keys=[],this.needsArrayKeyFastPath=!1,this.composition=e.composition,this.renderOptions=e.renderOptions,this.metadataCache=null,this.queuedElements=[],this.batchStartIndex=null,this.batchEndIndex=null}render(e,i){return this.composition.render(e,i,this.renderOptions)}startBatch(){this.needsArrayKeyFastPath=!0}writeBatch(){var i;if(!this.queuedElements.length)return;(((i=this.metadata[this.batchStartIndex-1])==null?void 0:i.domNode)??this.anchorNode).after(...this.queuedElements),this.queuedElements.length=0}stopBatch(){if(this.writeBatch(),this.needsArrayKeyFastPath=!1,this.batchStartIndex=null,this.batchEndIndex=null,this.metadataCache){for(let{domNode:e}of this.metadataCache.values())e.remove();this.metadataCache.clear()}}removeByIndex(e){let[i]=this.metadata.splice(e,1),{domNode:r,key:o}=i;this.keys.splice(e,1),r.remove(),this.metadataCache?this.metadataCache.set(o,i):this.metadataCache=new Map([[o,i]])}renderData(e,i,r,o,n,s){var c;if(e<this.metadata.length){let d=this.metadata[e],p=d.key,m=p===o,f=n!==o;if(m){f?d.render(i,r):s||d.render(i,r);return}let h=this.metadataCache??=new Map,u=!1;this.needsArrayKeyFastPath&&(u=!this.keys.includes(o),this.needsArrayFastPath=!1);let g=u?-1:this.keys.indexOf(o,e+1);if(g===-1){if(h.has(o)){let b=h.get(o);this.metadata.splice(e,0,b),this.keys.splice(e,0,o),(((c=this.metadata[e-1])==null?void 0:c.domNode)??this.anchorNode).after(b.domNode),h.delete(o);return}h.set(p,d)}else{if(e-g===-1){this.removeByIndex(e);return}let b=this.metadata[g];this.metadata[e]=b,this.metadata.splice(g,1);let{domNode:w}=d;w.replaceWith(b.domNode),s||b.render(i,r),this.keys[e]=o,this.keys.splice(g,1),w.remove(),h.set(p,d);return}}let l=this.render(i,r),a=l.target;this.metadata[e]={render:l,element:a,key:o,domNode:a},this.keys[e]=o,(this.batchEndIndex===null||this.batchEndIndex!==e-1)&&(this.writeBatch(),this.batchStartIndex=e),this.batchEndIndex=e,this.queuedElements.push(a)}removeEntries(e=0){let{length:i}=this.metadata;for(let r=i-1;r>=e;r--)this.metadata[r].domNode.remove();this.metadata.length=e,this.keys.length=e}hide(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||i.hidden)return!1;let{comment:o,element:n}=i;return o||(o=Te(),i.comment=o),n.replaceWith(o),i.domNode=o,i.hidden=!0,!0}show(e,i,r){if(!i&&(e==null&&(e=this.keys.indexOf(r)),i=this.metadata[e],!i)||!i.hidden)return!1;let{comment:o,element:n}=i;return o.replaceWith(n),i.domNode=n,i.hidden=!1,!0}};function nr(t){switch(t){case void 0:case null:case!1:return null;case!0:return"";default:return`${t}`}}var vt;function xe(t){if(vt??=new Map,vt.has(t))return vt.get(t);let e=t.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);return vt.set(t,e),e}var ir,Ie=Number.parseFloat((ir=navigator.userAgent.match(/Chrome\/([\d.]+)/))==null?void 0:ir[1]),rr,et=Number.parseFloat((rr=navigator.userAgent.match(/Firefox\/([\d.]+)/))==null?void 0:rr[1]),or,yt=Ie||!navigator.userAgent.includes("AppleWebKit")?Number.NaN:Number.parseFloat((or=navigator.userAgent.match(/Version\/([\d.]+)/))==null?void 0:or[1]);function le(t){return!t||et<113&&t.constructor.formAssociated&&t.hasAttribute("disabled")?!1:document.activeElement===t?!0:!t.isConnected||(t==null?void 0:t.getRootNode())===document?!1:t.matches(":focus")}function j(t,...e){if(!t)return!1;try{t.focus(...e)}catch{return!1}return le(t)}function ce(t){return getComputedStyle(t).direction==="rtl"}var sr={};Lt(sr,{applyMergePatch:()=>kt,buildMergePatch:()=>tt,hasMergePatch:()=>St});function kt(t,e){if(t===e)return t;if(t==null||e==null||typeof e!="object")return e;typeof t!="object"&&(t={});for(let[i,r]of Object.entries(e))r==null?i in t&&delete t[i]:t[i]=kt(t[i],r);return t}function tt(t,e,i="reference"){if(t===e)return null;if(e==null||typeof e!="object")return e;if(t==null||typeof t!="object")return structuredClone(e);let r={};if(Array.isArray(e)){if(i==="reference")return e;if(i==="clone")return structuredClone(e);for(let[n,s]of e.entries()){if(s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}return e.length!==t.length&&(r.length=e.length),r}let o=new Set(Object.keys(t));for(let[n,s]of Object.entries(e)){if(o.delete(n),s===null){r[n]=null;continue}if(s==null)continue;let l=tt(t[n],s,i);l!==null&&(r[n]=l)}for(let n of o)r[n]=null;return r}function St(t,e){if(t===e)return!1;if(e==null||typeof e!="object"||t!=null&&typeof t!="object")return!0;for(let[i,r]of Object.entries(e))if(r==null){if(i in t)return!0}else if(St(t[i],r))return!0;return!1}function ar(t){switch(t){case"boolean":return!1;case"integer":case"float":return 0;case"map":return new Map;case"set":return new Set;case"array":return[];case"object":return null;default:case"string":return""}}function ri(t,e,i,r){return t??={},new Proxy(t,{get(o,n){let s=o[n];if(typeof n!="symbol"){let l=r?`${r}.${n}`:n;if(r?i.add(l):e.add(l),typeof s=="object"&&s!=null)return ri(s,e,i,l)}return s},has(o,n){let s=Reflect.has(o,n);if(typeof n!="symbol"){let l=r?`${r}.p`:n;r?i.add(l):e.add(l)}return s}})}function co(t){switch(t){case"boolean":return e=>!!e;case"integer":return Math.round;case"float":return e=>+e;case"map":return Map;case"set":return Set;case"object":case"array":return e=>e;default:case"string":return e=>`${e}`}}function oi(t,...e){let i=new Set,r=new Set,o=e.map(a=>{let c=new Set,d=new Set,p=ri(a,c,d);return{poked:c,pokedDeep:d,proxy:p}}),n=ri(this??{},i,r),s=t.apply(n,o.map(a=>a.proxy)),l=t.name?!0:!i.size;return{props:{this:[...i],args:o.map(a=>[...a.poked])},deepPropStrings:{this:[...r],args:o.map(a=>[...a.pokedDeep])},deepProps:{this:[...r].map(a=>a.split(".")),args:o.map(a=>[...a.pokedDeep].map(c=>c.split(".")))},defaultValue:s,reusable:l}}function po(){return null}function mo(t,e,i){let r=typeof e=="string"?{type:e}:e,{watchers:o,value:n,readonly:s,empty:l,type:a,enumerable:c,reflect:d,attr:p,nullable:m,parser:f,nullParser:h,get:u,is:g,diff:b,props:w}=r;if(o??=[],s??=!1,l===void 0&&(l=null),n??=l,u&&!w){let k=oi(u.bind(i),i,()=>n);n??=k.defaultValue,w=new Set([...k.props.this,...k.props.args[0]])}if(!a)if(n==null)a="string";else{let k=typeof n;a=k==="number"?Number.isInteger(n)?"integer":"number":k}return c??=t[0]!=="_",m??=a==="boolean"?!1:l==null,m||(l??=ar(a),n??=l),d??=c?a!=="object":p?"write":!1,p??=d?xe(t):null,f??=co(a),h||(m?h=po:h=l===null?()=>ar(a):()=>l),g??=a==="object"?(k,S)=>!St(k,S):a==="array"?()=>!1:Object.is,b===void 0&&(b=a==="object"?(k,S)=>tt(k,S,"reference"):null),{...r,type:a,is:g,diff:b,attr:p,reflect:d,readonly:s,enumerable:c,value:n,parser:f,nullParser:h,key:t,props:w,watchers:o}}function ii(t,e,i){var n,s;t.get;let r=i==null?t.nullParser.call(this,i):t.parser.call(this,i),o=r;if(e==null){if(r==null)return!1}else if(r!=null){if(t.diff){if(o=t.diff.call(this,e,r),o==null)return!1}else if(t.is.call(this,e,r))return!1}return t.values?t.values.set(this,r):t.values=new WeakMap([[this,r]]),(n=t.propChangedCallback)==null||n.call(this,t.key,e,r,o),(s=t.changedCallback)==null||s.call(this,e,r,o),!0}function ni(t,e,i){let r=mo(e,i,t);function o(){var d;return(d=r.values)!=null&&d.has(this)?r.values.get(this):r.value}function n(d){let p=this[e];ii.call(this,r,p,d)}function s(){var m,f;let d=(m=r.computedValues)==null?void 0:m.get(this),p=this[e];(f=r.needsSelfInvalidation)==null||f.delete(this),ii.call(this,r,d,p)}if(r.props)for(let d of r.props)r.watchers.push([d,s]);function l(){let d=r.get.call(this,this,o.bind(this));return(r.computedValues??=new WeakMap).set(this,d),d}function a(d){r.needsSelfInvalidation?r.needsSelfInvalidation.add(this):r.needsSelfInvalidation=new WeakSet([this]);let p=this[e];r.set.call(this,d,n.bind(this));let m=this[e];r.needsSelfInvalidation.has(this)&&(r.needsSelfInvalidation.delete(this),ii.call(this,r,p,m))}let c={enumerable:r.enumerable,configurable:!0,get:r.get?l:o,set:r.set?a:n};return Object.defineProperty(t,e,c),r}var lr=new Set;function it(t="mdw_",e=4){let i;for(;lr.has(i=Math.random().toString(36).slice(2,e+2)););return lr.add(i),`${t}${i}`}var si,cr,dr;function Ve(t){return si??=document.implementation.createHTMLDocument(),t?(dr??=si.createRange(),dr.createContextualFragment(t)):(cr??=si.createDocumentFragment(),cr.cloneNode())}var zt=new Map;function li(t){let e=`#${it()}`;return zt.set(e,{fn:t}),`{${e}}`}var ai=new Map;function ci(t,...e){let i,r=e.map(s=>{switch(typeof s){case"string":return s;case"function":return li(s);case"object":{if(s==null)return"";let l=it();return i??=new Map,i.set(l,s),`<div id="${l}"></div>`}default:throw new Error(`Unexpected substitution: ${s}`)}}),o=String.raw({raw:t},...r);if(i){let s=Ve(o);for(let[l,a]of i)s.getElementById(l).replaceWith(a);return s}let n;return ai.has(o)?n=ai.get(o):(n=Ve(o),ai.set(o,n)),n.cloneNode(!0)}function uo({nodes:t},e){let{nodeIndex:i,attrName:r}=this,o=t[i];switch(e){case void 0:case null:case!1:return o.removeAttribute(r),!1;case!0:return o.setAttribute(r,""),"";default:return o.setAttribute(r,e),e}}function ho({nodeStates:t,comments:e,nodes:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n],l=s&1;if(!(r!=null&&r!==!1)){if(l)return;let p=e[o];p||(p=Te(),e[o]=p),i[n].replaceWith(p),t[n]|=1;return}let c=i[n],d=s&2;if(typeof r!="object")if(d){let p=new Text(r);c.replaceWith(p),i[n]=p,t[n]&=-3}else c.data=r;l&&(e[o].replaceWith(c),t[n]&=-2)}function _o({nodeStates:t,nodes:e,comments:i},r){let{commentIndex:o,nodeIndex:n}=this,s=t[n]&1,l=r!=null&&r!==!1;if(l===!s)return;let a=e[n],c=i[o];c||(c=Te(),i[o]=c),l?(c.replaceWith(a),t[n]&=-2):(a.replaceWith(c),t[n]|=1)}function fo({comments:t,nodeStates:e,nodes:i}){let{commentIndex:r,nodeIndex:o}=this,n=Te();t[r]=n,e[o]|=1,i[o].replaceWith(n)}function di(t,...e){let[{caches:i,searchStates:r}]=e,{cacheIndex:o,searchIndex:n,subSearch:s,invocation:l}=t,a=i[o],c=r[n];if(c&1)return{value:a,dirty:(c&2)===2};r[n]|=1;let d;if(l){if(s){let p=di(s,...e);if(!p.dirty&&a!==void 0)return r[n]&=-3,{value:a,dirty:!1};d=t.invocation(p.value)}else d=t.invocation(...e);if(d===void 0||a===d)return{value:d,dirty:!1}}return i[o]=d,r[n]|=2,{value:d,dirty:!0}}function pr({options:{context:t,store:e,injections:i}},r,o){return this.expression.call(t,e??o,i)}function bo(t,e){return e[this.prop]}function go(t,e,i){let r=e;for(let o of this.deepProp){if(r===null)return null;if(!(o in r))return;r=r[o]}return r}var wo=/{([^}]*)}/g;function xo(t,e){if(e)return e[t]}function mr(t,e){if(!e)return;let i=e,r;for(r of t)if(typeof i=="object"){if(i===null)return null;if(!(r in i))return;i=i[r]}else return i[r];return i}function vo(t,e){let i=e;for(let r of t.split("."))if(!r||(i=i[r],i==null))return null;return i===e?null:i}var ur=new Map,Le=class t{static EVENT_PREFIX_REGEX=/^([*1~]+)?(.*)$/;_interpolationState={nodeIndex:-1,searchIndex:0,cacheIndex:0,commentIndex:0,nodeEntry:null};static shadowRootTag=Symbol();nodesToBind=[];props=[];searches=[];initCache=[];searchByQuery;actionsByPropsUsed;postInitActions=[];tagsWithBindings;tags=[];adapter;events;cloneable;styles=[];adoptedStyleSheets=[];stylesFragment;allIds=[];temporaryIds;interpolated=!1;constructor(...e){this.template=Ve(),this.append(...e)}*[Symbol.iterator](){for(let e of this.styles)yield e;yield this.template}static compose(...e){for(let[r,o]of ur)if(r.length===e.length&&e.every((n,s)=>n===r[s]))return o;let i=new t(...e);return ur.set(e,i),i}append(...e){for(let i of e)typeof i=="string"?this.append(Ve(i.trim())):i instanceof t?this.append(...i):i instanceof DocumentFragment?this.template.append(i):(i instanceof CSSStyleSheet||i instanceof HTMLStyleElement)&&this.styles.push(i);return this}addCompositionEventListener(e){let i=e.tag??"",r=this.events??=new Map;return r.has(i)?r.get(i).push(e):r.set(i,[e]),this}#e(e,i,r){var o;if((o=this.events)!=null&&o.has(e))for(let n of this.events.get(e)){let s;n.handleEvent?s=n.handleEvent:n.deepProp.length?s=mr(n.deepProp,this.interpolateOptions.defaults):s=xo(n.prop,this.interpolateOptions.defaults),i.addEventListener(n.type,r?s.bind(r):s,n)}}render(e,i,r={}){this.interpolated||this.interpolate({defaults:i??e,...r});let o=this.cloneable.cloneNode(!0),n=r.shadowRoot,s=n??r.target??o.firstElementChild,l={lastChildNode:null,lastChildNodeIndex:0,lastElement:null,nodeStates:new Uint8Array(this._interpolationState.nodeIndex+1),searchStates:new Uint8Array(this._interpolationState.searchIndex),comments:[],nodes:[],caches:this.initCache.slice(),refs:[],options:r},{nodes:a,refs:c,searchStates:d,caches:p}=l;for(let{tag:f,textNodes:h}of this.nodesToBind){let u;if(f===""){if(!h.length)continue;c.push(null),a.push(null),u=o.firstChild}else{let b=o.getElementById(f);if(c.push(b),a.push(b),this.#e(f,b,r.context),!h.length)continue;u=b.firstChild}let g=0;for(let b of h){for(;b!==g;)u=u.nextSibling,g++;a.push(u)}}this.#e("",r.context),this.#e(t.shadowRootTag,r.context.shadowRoot,r.context);for(let f of this.postInitActions)f.invocation(l);let m=(f,h)=>{var g;if(!f)return;let u=!1;for(let b of this.props){if(!((g=this.actionsByPropsUsed)!=null&&g.has(b))||!(b in f))continue;let w=this.actionsByPropsUsed.get(b);for(let k of w){u=!0;let{dirty:S,value:A}=di(k.search,l,f,h);S&&k.invocation(l,A,f,h)}}u&&d.fill(0)};return n?(r.context??=n.host,"adoptedStyleSheets"in n?this.adoptedStyleSheets.length&&(n.adoptedStyleSheets=[...n.adoptedStyleSheets,...this.adoptedStyleSheets]):this.stylesFragment.hasChildNodes()&&o.prepend(this.stylesFragment.cloneNode(!0))):r.context??=s,e!==this.interpolateOptions.defaults&&m(e,i),n&&(n.append(o),customElements.upgrade(n)),m.target=s,m.byProp=(f,h,u)=>{var k,S;if(!((k=this.actionsByPropsUsed)!=null&&k.has(f)))return;let g=!1;if((S=this.searchByQuery)!=null&&S.has(f)){g=!0;let A=this.searchByQuery.get(f);if(p[A.cacheIndex]===h)return;p[A.cacheIndex]=h,d[A.searchIndex]=3}let b,w=this.actionsByPropsUsed.get(f);for(let A of w)if(A.search.query===f)A.invocation(l,h);else{b??={[f]:h},u??=b,g=!0;let T=di(A.search,l,b,u);T.dirty&&A.invocation(l,T.value,b,u)}g&&d.fill(0)},m.state=l,m}#r(e,i,r,o){var T,E;let{nodeValue:n,nodeName:s,nodeType:l}=e,a,c;if(l===Node.ATTRIBUTE_NODE?a=e:c=e,o==null){if(!n)return;let v=n.trim();if(!v)return;if(a||(i==null?void 0:i.tagName)==="STYLE"){if(v[0]!=="{")return;let{length:y}=v;if(v[y-1]!=="}")return;o=v.slice(1,-1)}else{let y=v.split(wo);if(y.length<3)return;if(y.length===3&&!y[0]&&!y[2])o=y[1];else{for(let[z,D]of y.entries())if(z%2){let I=tr();c.before(I),this.#r(I,i,r,D)}else D&&c.before(D);return!0}}}let d=o,p=o[0]==="!",m=!1;p&&(o=o.slice(1),m=o[0]==="!",m&&(o=o.slice(1)));let f,h;if(c){i!==c.parentElement&&(i=c.parentElement),h=0;let v=c;for(;v=v.previousSibling;)h++}else if(i!==a.ownerElement&&(i=a.ownerElement),s.startsWith("on")){let v=s.indexOf("-");if(v===-1)return;f=v===2}if(f){i.removeAttribute(s);let v=this.#i(i),y=s.slice(3),[,z,D]=y.match(/^([*1~]+)?(.*)$/),I,R,P=[];if(o.startsWith("#"))I=zt.get(o).fn;else{let V=o.split(".");V.length===1?(R=o,P=[]):(R=V[0],P=V)}this.addCompositionEventListener({tag:v,type:D,handleEvent:I,prop:R,deepProp:P,once:z==null?void 0:z.includes("1"),passive:z==null?void 0:z.includes("~"),capture:z==null?void 0:z.includes("*")});return}let u;if((T=this.searchByQuery)!=null&&T.has(d))u=this.searchByQuery.get(d);else{let v=o,y=v!==d,z;if(y&&((E=this.searchByQuery)!=null&&E.has(v)))z=this.searchByQuery.get(v);else{let D,I,R,P,V,ie,Y,F;if(o.startsWith("#")){if(F=zt.get(o),!F)return;D=F.fn,Y=pr,F.props?(I=F.props,R=F.deepProps,P=F.defaultValue??null):P=F.fn}else P=null,r!=null&&r.defaults&&(P=mr(o.split("."),r.defaults)??null),P==null&&(r!=null&&r.injections)&&(P=vo(o,r.injections));if(!I)if(typeof P=="function"){let X=oi.call(this,P,r==null?void 0:r.defaults,r==null?void 0:r.injections),je=new Set([...X.props.this,...X.props.args[0],...X.props.args[1]]),We=new Set([...X.deepPropStrings.this,...X.deepPropStrings.args[0]]);D=P,P=X.defaultValue,I=[...je],R=[...We].map(lt=>lt.split(".")),Y=pr}else{let X=o.split(".");X.length===1?(V=o,I=[V],Y=bo):(I=[X[0]],ie=X,R=[X],Y=go)}F&&(F.defaultValue=P,F.props=I,F.deepProps=R),z={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:v,defaultValue:P,subSearch:null,prop:V,propsUsed:I,deepProp:ie,deepPropsUsed:R,invocation:Y,expression:D},this.addSearch(z)}y?(u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:d,subSearch:z,negate:p,doubleNegate:m,prop:z.prop,deepProp:z.deepProp,propsUsed:z.propsUsed,deepPropsUsed:z.deepPropsUsed,defaultValue:m?!!z.defaultValue:p?!z.defaultValue:z.defaultValue,invocation(D){return this.doubleNegate?!!D:this.negate?!D:D}},this.addSearch(u)):u=z}let g,b=null,w=u.defaultValue;c?b=h:s==="mdw-if"?(g=this.#i(i),i.removeAttribute(s),w=w!=null&&w!==!1):(b=s,s==="id"||w==null||w===!1?i.removeAttribute(s):i.setAttribute(s,w===!0?"":w)),g??=this.#i(i);let k=this._interpolationState.nodeEntry;(!k||k.tag!==g)&&(k={tag:g,textNodes:[]},this._interpolationState.nodeEntry=k,this.nodesToBind.push(k),this._interpolationState.nodeIndex++);let S;if(c)switch(k.textNodes.push(h),this._interpolationState.nodeIndex++,S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,invocation:ho,defaultValue:w,search:u},typeof w){case"string":c.data=w;break;case"number":c.data=`${w}`;break;default:c.data="";break}else b?S={nodeIndex:this._interpolationState.nodeIndex,attrName:b,defaultValue:w,invocation:uo,search:u}:(S={nodeIndex:this._interpolationState.nodeIndex,commentIndex:this._interpolationState.commentIndex++,defaultValue:w,invocation:_o,search:u},w||this.postInitActions.push({...S,invocation:fo}));this.addAction(S),(this.tagsWithBindings??=new Set).add(g)}#i(e){if(!e)return"";let i=e.id;return i?this.allIds.includes(i)||this.allIds.push(i):(i=it(),(this.temporaryIds??=new Set).add(i),this.allIds.push(i),e.id=i),i}#t(e,i){let r=e.getAttribute("mdw-for"),o=r==null?void 0:r.trim();if(!o||o[0]!=="{")return null;let{length:n}=o;if(o[n-1]!=="}")return null;let s=o.slice(1,-1),[l,a]=s.split(/\s+of\s+/);e.removeAttribute("mdw-for");let c=e.ownerDocument.createElement("template");e.replaceWith(c);let d=this.#i(c),p=this._interpolationState.nodeEntry;(!p||p.tag!==d)&&(p={tag:d,textNodes:[]},this._interpolationState.nodeEntry=p,this.nodesToBind.push(p),this._interpolationState.nodeIndex++);let m=new t;m.template.append(e);let f={...i.injections,[l]:null,index:null},h=[a],u={cacheIndex:this._interpolationState.cacheIndex++,searchIndex:this._interpolationState.searchIndex++,query:null,prop:null,deepProp:null,propsUsed:h,deepPropsUsed:[[a]],defaultValue:{},invocation:null},g={defaultValue:null,nodeIndex:this._interpolationState.nodeIndex,search:u,commentIndex:this._interpolationState.commentIndex++,injections:f,invocation(w,k,S,A){if(!m.adapter){let I=w.nodes[this.nodeIndex],R=Te();w.comments[this.commentIndex]=R,I.replaceWith(R),m.adapter=new Ze({anchorNode:R,composition:m,renderOptions:{target:null,context:w.options.context,store:w.options.store,injections:this.injections}})}let{adapter:T}=m,E=(A??w.options.store)[a];if(!E||E.length===0){T.removeEntries();return}let v=S[a],y={...S},z=m.props.some(I=>I!==a&&I in S);T.startBatch();let D;if(!z&&!(D=Array.isArray(v))){let I=D?v.entries():Object.entries(v);for(let[R,P]of I){if(R==="length"||P===null)continue;let V=+R,ie=E[V];y[l]=P,this.injections[l]=ie,this.injections.index=V,T.renderData(V,y,A,ie,P)}}else{v||delete y[l];for(let[I,R]of E.entries()){let P;if(v){if(!z&&!(I in v)||(P=v[I],P===null))continue;y[l]=P}this.injections[l]=R,this.injections.index=I,T.renderData(I,y,A,R,P)}}T.stopBatch(),T.removeEntries(E.length)}};return m.interpolate({defaults:i.defaults,injections:f}),h.push(...m.props),this.addSearch(u),this.addAction(g),(this.tagsWithBindings??=new Set).add(d),m}interpolate(e){var n;this.interpolateOptions=e,this.cloneable=this.template.cloneNode(!0);let r=document.createTreeWalker(this.cloneable,5),o=r.nextNode();for(;o;){let s=null;switch(o.nodeType){case Node.ELEMENT_NODE:if(s=o,s.tagName==="TEMPLATE"){for(;s.contains(o=r.nextNode()););continue}if(s.tagName==="SCRIPT"){for(;s.contains(o=r.nextNode()););continue}if(s.hasAttribute("mdw-for")){for(;s.contains(o=r.nextNode()););this.#t(s,e);continue}else{let l=s.attributes.id;l&&(this.#r(l,s,e),this.#i(s));for(let a of[...s.attributes].reverse())a.nodeName!=="id"&&this.#r(a,s,e)}break;case Node.TEXT_NODE:if(s=o.parentElement,this.#r(o,s,e)){let l=r.nextNode();o.remove(),o=l;continue}break;default:throw new Error(`Unexpected node type: ${o.nodeType}`)}o=r.nextNode()}"adoptedStyleSheets"in document?this.adoptedStyleSheets=[...Zi(this.styles)]:(this.stylesFragment=Ve(),this.stylesFragment.append(...er(this.styles))),this.props=this.actionsByPropsUsed?[...this.actionsByPropsUsed.keys()]:[];for(let s of this.allIds)(n=this.tagsWithBindings)!=null&&n.has(s)||this.nodesToBind.push({tag:s,textNodes:[]});this.tags=this.nodesToBind.map(s=>s.tag),this.interpolated=!0}addSearch(e){return this.searches.push(e),e.query&&((this.searchByQuery??=new Map).set(e.query,e),this.initCache[e.cacheIndex]=e.defaultValue),e}addAction(e){let i=this.actionsByPropsUsed??=new Map;for(let r of e.search.propsUsed)i.has(r)?i.get(r).push(e):i.set(r,[e]);return e}};function O(t,e){return(i,r,o)=>{r==null?o.refs[e].removeAttribute(t):o.refs[e].setAttribute(t,r)}}var _=class t extends HTMLElement{static elementName;static get observedAttributes(){return this.attrList.keys()}compose(){return this.#t??=new Le}static _composition=null;static _props=new Map;static _attrs=new Map;static _propChangedCallbacks=new Map;static _attributeChangedCallbacks=new Map;static _onComposeCallbacks=[];static _onConnectedCallbacks=[];static _onDisconnectedCallbacks=[];static _onConstructedCallbacks=[];static interpolatesTemplate=!0;static supportsElementInternals="attachInternals"in HTMLElement.prototype;static supportsElementInternalsRole=t.supportsElementInternals&&"role"in ElementInternals.prototype;static templatable=null;static defined=!1;static autoRegistration=!0;static registrations=new Map;static expressions=this.set;static methods=this.set;static overrides=this.set;static props=this.observe;static idl=this.prop;static _addCallback(e,i){if(!this.hasOwnProperty(e)){this[e]=[...this[e],i];return}this[e].push(i)}static append(...e){return this._onComposeCallbacks.push(({composition:i})=>{i.append(...e)}),this._addCallback("_onComposeCallbacks",(i=>{let{composition:r}=i;r.append(...e)})),this}static recompose(e){return this._addCallback("_onComposeCallbacks",e),this}static css(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;typeof e=="string"||Array.isArray(e)?o.append(wt(e,...i)):o.append(e,...i)})),this}static autoRegister(e){return this.hasOwnProperty("defined")&&this.defined?this:(this.register(e),this)}static html(e,...i){return this._addCallback("_onComposeCallbacks",(r=>{let{composition:o}=r;o.append(ci(e,...i))})),this}static extend(e){return e?e(this):class extends this{}}static setStatic(e){return Object.assign(this,e),this}static readonly(e,i){return this.set(e,{...i,writable:!1})}static set(e,i){return Object.defineProperties(this.prototype,Object.fromEntries([...Object.entries(e).map(([r,o])=>(this.undefine(r),[r,{enumerable:r[0]!=="_",configurable:!0,value:o,writable:!0,...i}])),...Object.getOwnPropertySymbols(e).map(r=>[r,{enumerable:!1,configurable:!0,value:e[r],writable:!0,...i}])])),this}static mixin(e){return e(this)}static register(e){return e&&(this.elementName=e),customElements.define(this.elementName,this),t.registrations.set(this.elementName,this),this.defined=!0,this}static get propList(){return this.hasOwnProperty("_props")||(this._props=new Map(this._props)),this._props}static get attrList(){return this.hasOwnProperty("_attrs")||(this._attrs=new Map(this._attrs)),this._attrs}static get propChangedCallbacks(){return this.hasOwnProperty("_propChangedCallbacks")||(this._propChangedCallbacks=new Map([...this._propChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._propChangedCallbacks}static get attributeChangedCallbacks(){return this.hasOwnProperty("_attributeChangedCallbacks")||(this._attributeChangedCallbacks=new Map([...this._attributeChangedCallbacks].map(([e,i])=>[e,i.slice()]))),this._attributeChangedCallbacks}static prop(e,i){let r=ni(this.prototype,e,i),{changedCallback:o,attr:n,reflect:s,watchers:l}=r;return o&&l.push([e,o]),r.changedCallback=function(c,d,p){this._onObserverPropertyChanged.call(this,e,c,d,p)},this.propList.set(e,r),n&&(s===!0||s==="read")&&(r.enumerable||!this.attrList.has(n)||!this.attrList.get(n).enumerable)&&this.attrList.set(n,r),this.onPropChanged(l),this}static define(e){return Object.defineProperties(this.prototype,Object.fromEntries(Object.entries(e).map(([i,r])=>(this.undefine(i),[i,{enumerable:i[0]!=="_",configurable:!0,...typeof r=="function"?{get:r}:r}])))),this}static undefine(e){if(Reflect.deleteProperty(this.prototype,e),this.propList.has(e)){let{watchers:i,attr:r,reflect:o}=this.propList.get(e);if(i.length&&this.propChangedCallbacks.has(e)){let n=this.propChangedCallbacks.get(e);for(let[s,l]of i){let a=n.indexOf(l);a!==-1&&n.splice(a,1)}}r&&(o===!0||o==="read")&&this.attrList.delete(r),this.propList.delete(e)}return this}static observe(e){for(let[i,r]of Object.entries(e??{})){let o=typeof r=="function"?{reflect:!1,get:r}:r;this.prop(i,o)}return this}static defineStatic(e){for(let[i,r]of Object.entries(e??{}))ni(this,i,{reflect:!1,...typeof r=="function"?{get:r}:typeof r=="string"?{type:r}:r});return this}static events(e,i){return this.on({composed({composition:r}){for(let[o,n]of Object.entries(e)){let[,s,l]=o.match(/^([*1~]+)?(.*)$/),a,c=[];if(typeof n=="string"){let d=n.split(".");d.length===1?(a=n,c=[]):(a=d[0],c=d)}r.addCompositionEventListener({type:l,once:s==null?void 0:s.includes("1"),passive:s==null?void 0:s.includes("~"),capture:s==null?void 0:s.includes("*"),...typeof n=="function"?{handleEvent:n}:typeof n=="string"?{prop:a,deepProp:c}:n,...i})}}}),this}static childEvents(e,i){for(let[r,o]of Object.entries(e))this.events(o,{tag:xe(r),...i});return this}static rootEvents(e,i){return this.events(e,{tag:Le.shadowRootTag,...i})}static on(e,i){let r=typeof e=="string"?{[e]:i}:e;for(let[o,n]of Object.entries(r)){let s;switch(o){case"composed":s="_onComposeCallbacks";break;case"constructed":s="_onConstructedCallbacks";break;case"connected":s="_onConnectedCallbacks";break;case"disconnected":s="_onDisconnectedCallbacks";break;case"props":this.onPropChanged(n);continue;case"attrs":this.onAttributeChanged(n);continue;default:if(o.endsWith("Changed")){let l=o.slice(0,o.length-7);this.onPropChanged({[l]:n});continue}throw new Error("Invalid callback name")}this._addCallback(s,n)}return this}static onPropChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{propChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}static onAttributeChanged(e){let i=Array.isArray(e)?e:Object.entries(e),{attributeChangedCallbacks:r}=this;for(let[o,n]of i)r.has(o)?r.get(o).push(n):r.set(o,[n]);return this}#e;#r=new Map;#i=new Map;#t;#n=!1;#o=[];_propAttributeCache;_callbackArguments=null;constructor(...e){super(),t.supportsElementInternals&&(this.elementInternals=this.attachInternals()),this.attachShadow({mode:"open",delegatesFocus:this.delegatesFocus}),this.render=this.composition.render(this.constructor.prototype,this,{defaults:this.constructor.prototype,store:this,shadowRoot:this.shadowRoot,context:this});for(let i of this.static._onConstructedCallbacks)i.call(this,this.callbackArguments)}propChangedCallback(e,i,r,o=r){this.#n?this.#o.push([e,o,this]):this.render.byProp(e,o,this);let{_propChangedCallbacks:n}=this.static;if(n.has(e))for(let s of n.get(e))s.call(this,i,r,o,this)}attributeChangedCallback(e,i,r){let{attributeChangedCallbacks:o}=this.static;if(o.has(e))for(let d of o.get(e))d.call(this,i,r,this);let{attrList:n}=this.static;if(!n.has(e))return;let s=n.get(e);if(s.attributeChangedCallback){s.attributeChangedCallback.call(this,e,i,r);return}let l;if(this.attributeCache.has(e)&&(l=this.attributeCache.get(e),l.stringValue===r))return;let a=this[s.key],c=r===null?s.nullParser(r):s.type==="boolean"?!0:s.parser(r);c!==a&&(l?(l.stringValue=r,l.parsedValue=c):this.attributeCache.set(e,{stringValue:r,parsedValue:c}),this[s.key]=c)}get#s(){var e;return(e=this.#t)==null?void 0:e.template}_onObserverPropertyChanged(e,i,r,o){let{propList:n}=this.static;if(n.has(e)){let{reflect:s,attr:l}=n.get(e);if(l&&(s===!0||s==="write")){let a,c=!1,{attributeCache:d}=this;if(d.has(l)?(a=d.get(l),c=a.parsedValue!==r):(a={},d.set(l,a),c=!0),c){let p=nr(r);a.parsedValue=r,a.stringValue=p,p==null?this.removeAttribute(l):this.setAttribute(l,p)}}}this.propChangedCallback(e,i,r,o)}patch(e){this.#n=!0,kt(this,e);for(let[i,r,o]of this.#o)i in e||this.render.byProp(i,r,o);this.#o.slice(0,this.#o.length),this.render(e),this.#n=!1}get refs(){return this.#e??=new Proxy({},{get:(e,i)=>{this.#t;let r=this.composition,o;if(!r.interpolated){if(this.#i.has(i)&&(o=this.#i.get(i).deref(),o))return o;let l=xe(i);return o=r.template.getElementById(l),o?(this.#i.set(i,new WeakRef(o)),o):null}if(this.#r.has(i)&&(o=this.#r.get(i).deref(),o))return o;let n=xe(i),s=this.composition.tags.indexOf(n);return o=this.render.state.refs[s],o?(this.#r.set(i,new WeakRef(o)),o):null}})}get attributeCache(){return this._propAttributeCache??=new Map}get static(){return this.constructor}get unique(){return!1}get callbackArguments(){return this._callbackArguments??={composition:this.#t,refs:this.refs,html:ci.bind(this),inline:li,template:this.#s,element:this}}get composition(){if(this.#t)return this.#t;if(!this.unique&&this.static.hasOwnProperty("_composition"))return this.#t=this.static._composition,this.static._composition;this.compose();for(let e of this.static._onComposeCallbacks)e.call(this,this.callbackArguments);return this.unique||(this.static._composition=this.#t),this.#t}connectedCallback(){for(let e of this.static._onConnectedCallbacks)e.call(this,this.callbackArguments)}disconnectedCallback(){for(let e of this.static._onDisconnectedCallbacks)e.call(this,this.callbackArguments)}};_.prototype.delegatesFocus=!1;function G(t){return t.observe({density:"integer"}).css`:host{--mdw-density:var(--mdw-density__default, 0)}:host([density]){--mdw-density:0}:host([density="-1"]){--mdw-density:-1}:host([density="-2"]){--mdw-density:-2}:host([density="-3"]){--mdw-density:-3}:host([density="-4"]){--mdw-density:-4}:host([density="1"]){--mdw-density:1}:host([density="2"]){--mdw-density:2}:host([density="3"]){--mdw-density:3}:host([density="4"]){--mdw-density:4}`}function C(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string",outlined:"boolean"}).html`<div id=outline mdw-if={outlined} class=outline disabled={disabledState} focused={focusedState} pressed={pressedState} hovered={hoveredState}></div>`.css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));z-index:0;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}`.css`.outline{position:absolute;inset:0;overflow:hidden;border-style:solid;border-width:1px;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}.outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}.outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}`}var yo=De.map(t=>[`:host([color="${t}"]){`,`--mdw-bg: var(--mdw-color__${t});`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([color="${t}-container"]){`,`--mdw-bg: var(--mdw-color__${t}-container);`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),ko=De.map(t=>[`:host([ink="${t}"]){`,`--mdw-ink: var(--mdw-color__${t});`,"}",`:host([ink="on-${t}"]){`,`--mdw-ink: var(--mdw-color__on-${t});`,"}",`:host([ink="on-${t}-container"]){`,`--mdw-ink: var(--mdw-color__on-${t}-container);`,"}"].join("")).join(""),So=Ut.map(t=>[`:host([type-style|="${t}"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-large__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-large__letter-spacing);`,"}",`:host([type-style="${t}-medium"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-medium__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-medium__letter-spacing);`,"}",`:host([type-style="${t}-small"]) {`,`--mdw-type__font: var(--mdw-typescale__${t}-small__font);`,`--mdw-type__letter-spacing: var(--mdw-typescale__${t}-small__letter-spacing);`,"}"].join("")).join("");function x(t){return t.observe({color:"string",ink:"string",typeStyle:"string"}).css(yo).css`:host([color=background]){--mdw-bg:var(--mdw-color__background);--mdw-ink:var(--mdw-color__on-background)}:host([color=surface-dim]){--mdw-bg:var(--mdw-color__surface-dim)}:host([color=surface-bright]){--mdw-bg:var(--mdw-color__surface-bright)}:host([color=surface-container-lowest]){--mdw-bg:var(--mdw-color__surface-container-lowest)}:host([color=surface-container-low]){--mdw-bg:var(--mdw-color__surface-container-low)}:host([color=surface-container-high]){--mdw-bg:var(--mdw-color__surface-container-high)}:host([color=surface-container-highest]){--mdw-bg:var(--mdw-color__surface-container-highest)}:host([color=surface-primary]){--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__primary)}:host([color$=variant]){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host([color^=inverse]){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([color=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}`.css(ko).css`:host([ink=inverse-primary]){--mdw-ink:var(--mdw-color__inverse-primary)}:host([ink=outline]){--mdw-ink:var(--mdw-color__outline)}:host([ink=surface-container-highest]){--mdw-ink:var(--mdw-color__surface-container-highest)}:host([ink=on-surface-variant]){--mdw-ink:var(--mdw-color__on-surface-variant)}:host([ink=inverse-on-surface]){--mdw-ink:var(--mdw-color__inverse-on-surface)}:host([ink=inherit]){--mdw-ink:inherit}`.css(So)}var zo=_.extend().mixin(x).mixin(G).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-error);--mdw-bg:var(--mdw-color__error);--mdw-type__font:var(--mdw-typescale__label-small__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-small__letter-spacing);position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;min-block-size:var(--mdw-typescale__label-small__line-height);min-inline-size:var(--mdw-typescale__label-small__line-height);padding-block:calc(8px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:max(4px,calc(4px + (var(--mdw-density) * 2px)));background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);text-align:center}@supports (width:1lh){:host{min-block-size:1lh;min-inline-size:1lh;padding-inline:max(.25lh,calc(.25lh + (var(--mdw-density) * 2px)))}}:host(:empty){min-block-size:6px;min-inline-size:6px;margin:5px;padding:0}`.autoRegister("mdw-badge");function L(t){return t.set({delegatesFocus:!0}).extend(Ie>=111?e=>e:e=>class extends e{get tabIndex(){return super.tabIndex}set tabIndex(i){if(!(i===super.tabIndex&&i!==-1)){if(this.delegatesFocus&&le(this)){if(this.getAttribute("tabindex")===i.toString())return;let r=o=>{o.stopImmediatePropagation(),o.stopPropagation(),o.type==="blur"&&this.focus()};for(let o of["blur","focus","focusout","focusin"])this.addEventListener(o,r,{capture:!0,once:!0});super.tabIndex=i;for(let o of["blur","focus","focusout","focusin"])this.removeEventListener(o,r,{capture:!0});return}super.tabIndex=i}}})}function pi(t){return t?t.includes("px")||t.includes("em")||t.includes("ex")?t:`calc(${t.replace("sp","")} * 0.0625rem)`:""}function Re(t){return t.mixin(L).observe({textPadding:"string",textPaddingTop:"string",textLeading:"string",textPaddingBottom:"string"}).observe({_computedTextPaddingTop({textPaddingTop:e,textPadding:i}){return pi(e??i)},_computedTextPaddingBottom({textPaddingBottom:e,textPadding:i}){return pi(e??i)},_computedTextLeading({textLeading:e}){return pi(e)}}).observe({_beforeStyle({_computedTextPaddingTop:e,_computedTextLeading:i}){return i?`margin-top:${i}`:e?`margin-top:${e}`:""},_afterStyle({_computedTextPaddingBottom:e}){return e?`vertical-align:calc(-1em + (-1 * ${e}));`:""}}).html`<div id=wrapper style={_wrapperStyle} before={!!_beforeStyle} after={!!_afterStyle}><span id=before mdw-if={!!_beforeStyle} style={_beforeStyle} text-leading={textLeading}></span><span id=content before={!!_beforeStyle} after={!!_afterStyle}><span id=after mdw-if={!!_afterStyle} style={_afterStyle}></span></span></div>`.recompose(({refs:{content:e,slot:i}})=>{e.prepend(i)}).css`:host{display:block}:host(:where([text-padding],[text-padding-top],[text-padding-bottom])){display:flex}#wrapper{display:contents}#wrapper:where([before],[after]){display:flex;align-items:baseline}#wrapper[before]{margin-block-start:-1em}#wrapper[after]{margin-block-end:-1em}#before{display:inline-block;block-size:1.4ex;padding-block-start:1em}@supports (height:1cap){#before{block-size:1cap}}#before[text-leading]{block-size:0}#content{display:contents}#content:where([before],[after]){display:block}#after{display:inline-block;padding-block-end:1em}`}function de(t){return t.observe({block:"boolean",inline:"boolean",row:"boolean",x:{type:"string",empty:"start",value:"start"},y:{type:"string",empty:"start",value:"start"},gap:"float",padding:"string"}).css`:host{display:flex;flex-direction:column;box-sizing:border-box}:host(:is([inline])){display:inline-flex}:host(:is([block])){display:block}:host(:is([inline][block])){display:inline-block}:host(:is([row])){flex-direction:row}:host(:is([row][y=start],[x=start]:not([row]))){align-items:flex-start}:host(:is([row][y=end],[x=end]:not([row]))){align-items:flex-end}:host(:is([row][y=center],[x=center]:not([row]))){align-items:center}:host(:is([row][y=between],[x=between]:not([row]))){align-items:space-between}:host(:is([row][y=around],[x=around]:not([row]))){align-items:space-around}:host(:is([row][y=baseline],[x=baseline]:not([row]))){align-items:baseline}:host(:is([row][y=stretch],[x=stretch]:not([row]))){align-items:stretch}:host(:is([row][x=start],[y=start]:not([row]))){justify-content:flex-start}:host(:is([row][x=end],[y=end]:not([row]))){justify-content:flex-end}:host(:is([row][x=center],[y=center]:not([row]))){justify-content:center}:host(:is([row][x=between],[y=between]:not([row]))){justify-content:space-between}:host(:is([row][x=stretch],[y=stretch]:not([row]))){justify-content:stretch}:host(:is([wrap])){flex-wrap:wrap}:host(:is([wrap=reverse])){flex-wrap:wrap-reverse}:host(:is([gap])){gap:0}:host(:is([gap="4"])){gap:4px}:host(:is([gap="8"])){gap:8px}:host(:is([gap="12"])){gap:12px}:host(:is([gap="16"])){gap:16px}:host(:is([gap="20"])){gap:20px}:host(:is([gap="24"])){gap:24px}:host(:is([padding])){padding:0}:host(:is([padding=pane])){padding-inline:var(--mdw-pane__padding-inline,0)}:host(:is([padding="4"])){padding:4px}:host(:is([padding="8"])){padding:8px}:host(:is([padding="12"])){padding:12px}:host(:is([padding="16"])){padding:16px}:host(:is([padding="20"])){padding:20px}:host(:is([padding="24"])){padding:24px}:host(:is([padding-x])){padding-inline:0}:host(:is([padding-x="4"])){padding-inline:4px}:host(:is([padding-x="8"])){padding-inline:8px}:host(:is([padding-x="12"])){padding-inline:12px}:host(:is([padding-x="16"])){padding-inline:16px}:host(:is([padding-x="20"])){padding-inline:20px}:host(:is([padding-x="24"])){padding-inline:24px}:host(:is([padding-y])){padding-block:0}:host(:is([padding-y="4"])){padding-block:4px}:host(:is([padding-y="8"])){padding-block:8px}:host(:is([padding-y="12"])){padding-block:12px}:host(:is([padding-y="16"])){padding-block:16px}:host(:is([padding-y="20"])){padding-block:20px}:host(:is([padding-y="24"])){padding-block:24px}`}var H=_.extend().mixin(x).mixin(de).html`<slot id=slot></slot>`.css`:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([type-style]){font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}#slot::slotted([flex-0]){flex:0}#slot::slotted([flex-1]){flex:1}#slot::slotted([flex-none]){flex:none}`.autoRegister("mdw-box");var Co=H.extend().mixin(Re).css`:host{font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-body");function $(t){return t.observe({_ariaRole:"string"}).set({_onConnectAriaValues:null}).methods({readAriaProperty(e){if(this.elementInternals&&e in this.elementInternals)return this.elementInternals[e];if(e in this)return this[e];let i=e;return i.startsWith("aria")&&(i=`aria-${i.slice(4).toLowerCase()}`),this.getAttribute(e)},updateAriaProperty(e,i){if(this.elementInternals&&e in this.elementInternals)this.elementInternals[e]=i;else if(this.isConnected)if(e in this)this[e]=i;else{let r=e;r.startsWith("aria")&&(r=`aria-${r.slice(4).toLowerCase()}`),i==null?this.removeAttribute(e):this.setAttribute(r,i)}else this._onConnectAriaValues??=new Map,this._onConnectAriaValues.set(e,i)}}).on({_ariaRoleChanged(e,i){this.updateAriaProperty("role",i)},constructed(){this.updateAriaProperty("role",this._ariaRole)},connected(){if(this._onConnectAriaValues){for(let[e,i]of this._onConnectAriaValues)this.updateAriaProperty(e,i);this._onConnectAriaValues=null}}})}var Eo=["button","[href]","input","select","textarea","[tabindex]"].join(", ");function oe(t){return t.mixin($).observe({kbdNav:{empty:"true"},_kbdFocusable:{empty:!0}}).define({kbdNavQuery(){return Eo},kbdNavFocusableWhenDisabled(){return!0},ariaOrientationDefault(){return"vertical"}}).define({kbdNavChildren(){return this.querySelectorAll(this.kbdNavQuery)}}).methods({_ariaOrientationIsVertical(){return(this.readAriaProperty("ariaOrientation")??this.ariaOrientationDefault)==="vertical"},focusCurrentOrFirst(){let e,i;for(let r of this.kbdNavChildren)if(i=r,r.tabIndex===0){e=r;break}return j(e)?e:j(i)?i:null},focusNext(e=null,i=!0,r=!1){let o=!1,n=r?[...this.kbdNavChildren].reverse():this.kbdNavChildren;for(let s of n){if(!o){o=e?s===e:s.getAttribute("tabindex")==="0";continue}if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&j(s))return this.ariaActiveDescendantElement=s,s}if(!i)return!le(e)&&e instanceof HTMLElement&&e.focus(),e;for(let s of n)if(s.hasAttribute("tabindex")&&s.getAttribute("aria-hidden")!=="true"&&(j(s)||s===e))return s;return null},focusPrevious(e,i=!0){return this.focusNext(e,i,!0)},focus(...e){if(!j(this.ariaActiveDescendantElement,...e)){for(let i of this.kbdNavChildren)if(i.getAttribute("tabindex")==="0"&&i instanceof HTMLElement){this.ariaActiveDescendantElement=i,i.focus(...e);return}this.focusNext()}},refreshTabIndexes(){if(this.kbdNav!=="true")return;let e=null,i=null,r=null;for(let o of this.kbdNavChildren)!e&&le(o)?e=o:!i&&o.getAttribute("tabindex")==="0"?i=o:(!r&&o.getAttribute("aria-hidden")!=="true"&&(this.kbdNavFocusableWhenDisabled||o.getAttribute("aria-disabled")!=="true")&&(r=o),o.tabIndex=-1),o.hasAttribute("tabindex")||(o.tabIndex=le(o)?0:-1);e?e.tabIndex=0:i?e&&(i.tabIndex=-1):r&&(r.tabIndex=0)}}).events({focusin(e){if(this.kbdNav!=="true")return;let i=e.target;if(i.matches(this.kbdNavQuery)){this.ariaActiveDescendantElement=i,i.getAttribute("tabindex")!=="0"&&(i.tabIndex=0);for(let o of this.kbdNavChildren)o!==i&&o.hasAttribute("tabindex")&&(o.tabIndex=-1)}},keydown(e){if(!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&this.kbdNav==="true"){switch(e.key){case"ArrowUp":case"Up":this._ariaOrientationIsVertical()&&this.focusPrevious();break;case"ArrowDown":case"Down":this._ariaOrientationIsVertical()&&this.focusNext();break;case"ArrowLeft":case"Left":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusNext():this.focusPrevious();break;case"ArrowRight":case"Right":if(this._ariaOrientationIsVertical())return;ce(this)?this.focusPrevious():this.focusNext();break;default:return}e.stopPropagation(),e.preventDefault()}}}).on({connected(){this.refreshTabIndexes()}})}function $e(t){return t.mixin($).mixin(oe).set({ariaOrientationDefault:"horizontal",_ariaRole:"toolbar"})}function U(t){return t.css`:host{--mdw-elevation__rgb:var(--mdw-color__shadow);--mdw-elevation__box-shadow__0:0px 1px 1px 0px rgba(var(--mdw-elevation__rgb), 0),0px 0px 1px 1px rgba(var(--mdw-elevation__rgb), 0);--mdw-elevation__box-shadow__1:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 1px 3px 1px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__2:0px 1px 2px 0px rgba(var(--mdw-elevation__rgb), .3),0px 2px 6px 2px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__3:0px 1px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 4px 8px 3px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__4:0px 2px 3px 0px rgba(var(--mdw-elevation__rgb), .3),0px 6px 10px 4px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__box-shadow__5:0px 4px 4px 0px rgba(var(--mdw-elevation__rgb), .3),0px 8px 12px 6px rgba(var(--mdw-elevation__rgb), .15);--mdw-elevation__drop-shadow__0:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),000)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),00000));--mdw-elevation__drop-shadow__1:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 1px 2.5px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__2:drop-shadow(0px 1px 001px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 2px 005px rgba(var(--mdw-elevation__rgb),.25));--mdw-elevation__drop-shadow__3:drop-shadow(0px 1px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 4px 007px rgba(var(--mdw-elevation__rgb),.263));--mdw-elevation__drop-shadow__4:drop-shadow(0px 2px 1.5px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 6px 009px rgba(var(--mdw-elevation__rgb),.27));--mdw-elevation__drop-shadow__5:drop-shadow(0px 4px 2px rgba(var(--mdw-elevation__rgb),.3)) drop-shadow(0px 8px 012px rgba(var(--mdw-elevation__rgb),.3))}`}var mi=_.extend().mixin(x).mixin(de).mixin(U).mixin(C).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;filter:var(--mdw-elevation__drop-shadow__0);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-surface");var Mo=mi.extend().mixin($e).observe({color:{empty:"surface-container"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);align-items:center;flex-direction:row;gap:8px;justify-content:flex-start;box-sizing:content-box;block-size:56px;padding-block:12px;padding-inline:8px 16px;box-shadow:none;direction:ltr}`.autoRegister("mdw-bottom-app-bar");var Z={type:"function",reflect:"read",value:null,parser(t){return t},attributeChangedCallback(t,e,i){if(e==null&&i==null)return;if(i==null){this[t]=null;return}let r;try{let o=`with(this.ownerDocument ?? document){with(this.form ?? {}){with(this){${i}}}}`;r=new Function(`return function ${t}(event){${o}}`)()}catch{let o=(this.ownerDocument??document).createElement("button");o.setAttribute("onclick",i),r=o.onclick}this[t]=r},propChangedCallback(t,e,i){let r=t.slice(2);e&&this.removeEventListener(r,e),i&&this.addEventListener(r,i)}},_i=new WeakMap,fi=new WeakMap;function Ao(t){let e=fi.get(this),i;e!=null&&e.has(t)&&(i=e.get(t));let r=_i.get(this),{initial:o}=r.get(t);r.delete(t);let n=this[t];if(!n){i==null||i.cancel();return}let{target:s,styles:l,timing:a}=n,d=(s?typeof s=="string"?this.refs[s]:s:this).animate(l,{...a,...o?{duration:0}:null,fill:"forwards"});d.onremove=()=>{i==null||i.effect.updateTiming({fill:"none"}),i==null||i.finish(),i==null||i.cancel(),i=null},e?e.set(t,d):fi.set(this,new Map([[t,d]]))}var He=new WeakMap,hr=new ResizeObserver(t=>{for(let{target:e}of t)if(He.has(e)){let i=He.get(e);He.delete(e),hr.unobserve(e);for(let r of i)r()}}),ee={type:"object",reflect:!1,diff:null,propChangedCallback(t,e,i){if(!i){let s=fi.get(this);if(!(s!=null&&s.has(t)))return}let r=_i.get(this),o=!this.isConnected;if(r){if(r.has(t))return;r.set(t,{initial:o})}else _i.set(this,new Map([[t,{initial:o}]]));let n=Ao.bind(this,t);this.isConnected?queueMicrotask(n):He.has(this)?He.get(this).push(n):(He.set(this,[n]),hr.observe(this))}},ui=new WeakMap,hi=null,ne={type:"string",reflect:!1,parser(t){return!t||typeof t=="string"?t:`:host{${Object.entries(t).map(([e,i])=>`${xe(e)}:${i}`).join(";")}}`},propChangedCallback(t,e,i){let r,o;if(ui.has(this))r=ui.get(this),r.has(t)&&(o=r.get(t));else{if(!i)return;r=new Map,ui.set(this,r)}if(hi??="adoptedStyleSheets"in ShadowRoot.prototype,!o){if(hi)o=new CSSStyleSheet,this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,o];else{let n=this.ownerDocument.createElement("style");this.shadowRoot.prepend(n),o=n}r.set(t,o)}i?(hi?o.replaceSync(i):i&&(o.textContent=i),o.disabled=!1):o.disabled=!0}};var _r=new ResizeObserver(t=>{for(let e of t)e.target.onResizeObserved(e)});function B(t){return t.observe({_resizeObserverEnabled:{type:"boolean",value:!0}}).methods({onResizeObserved(e){},observeResize(){_r.observe(this,{box:"border-box"})},unobserveResize(){_r.unobserve(this)}}).on({connected(){this._resizeObserverEnabled&&this.observeResize()},disconnected(){this.unobserveResize()},_resizeObserverEnabledChanged(e,i){i?this.observeResize():this.unobserveResize()}})}var br,fr=(br=window==null?void 0:window.matchMedia)==null?void 0:br.call(window,"(any-pointer: coarse)").matches;function N(t){return t.observe({disabled:"boolean",focused:"boolean",hovered:"boolean",pressed:"boolean",_lastInteraction:{value:null},_hovered:"boolean",_focused:"boolean",_focusedSynthetic:"boolean",_keyPressed:"boolean",_keyReleased:"boolean",_pointerPressed:"boolean",stateLayer:"boolean"}).observe({disabledState({disabled:e}){return e},hoveredState({_hovered:e,hovered:i}){return e||i},focusedState({_focused:e,focused:i}){return e||i},pressedState({_keyPressed:e,_pointerPressed:i,pressed:r}){return e||i||r},touchedState({_lastInteraction:e}){return e==="touch"},pointedState({_lastInteraction:e}){return e==="mouse"||e==="pen"}}).define({stateTargetElement(){return this}}).html`<div id=state mdw-if={stateLayer} disabled={disabledState} focused={focusedState} hovered={hoveredState} pressed={pressedState} interaction={_lastInteraction} touched={touchedState} pointed={pointedState} aria-hidden=true></div>`.events({pointerenter(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"),e.pointerType!=="touch"&&(this._hovered=!0))},"~pointerdown"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!0)},"~pointerup"(e){e.isTrusted&&e.isPrimary&&(this._lastInteraction=e.pointerType,this._pointerPressed=!1)},pointercancel(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=this.stateTargetElement.matches(":active"))},pointerleave(e){e.isTrusted&&e.isPrimary&&(this._pointerPressed=!1,this._hovered=!1)},"~keydown"(e){e.isTrusted&&(this._lastInteraction="key",!e.repeat&&e.key===" "&&(this._keyPressed=!0))},"~keyup"(e){e.isTrusted&&(this._lastInteraction="key",e.key===" "&&(this._keyPressed=!1,this._keyReleased=!0,setTimeout(()=>{this._keyReleased=!1})))},blur(e){e.isTrusted&&(this._focused=!1,this._focusedSynthetic=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction&&(fr=this._lastInteraction==="touch",this._lastInteraction=null))},focus(e){e.isTrusted&&(this._focusedSynthetic="sourceCapabilities"in e?!e.sourceCapabilities:this._lastInteraction===null&&!e.relatedTarget,this._focused=!0,!this._lastInteraction&&fr&&(this._lastInteraction="touch"))}}).on({disconnected(){this._focused=!1,this._keyPressed=!1,this._pointerPressed=!1,this._lastInteraction=null}}).css`:host{--mdw-state__hovered-opacity:.08;--mdw-state__focused-opacity:.12;--mdw-state__pressed-opacity:.12;--mdw-state__dragged-opacity:.12;position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host(::-moz-focus-inner){border:0}#state{--mdw-state__opacity:calc( var(--mdw-state__hovered-opacity) + var(--mdw-state__focused-opacity) + var(--mdw-state__pressed-opacity) + var(--mdw-state__dragged-opacity) );position:absolute;inset:0;pointer-events:none;opacity:var(--mdw-state__opacity);background-color:currentColor;border-radius:inherit;transition-delay:0s;transition-duration:0s;transition-property:opacity,color,background-color;will-change:opacity}@supports (background-color:color-mix(in srgb,red 100%,red)){#state{opacity:1;background-color:color-mix(in srgb,currentColor calc(100% * var(--mdw-state__opacity)),transparent);transition-property:color,background-color;will-change:color,background-color}}#state[touched]{--mdw-state__hovered-opacity:0;--mdw-state__focused-opacity:0}#state:is(:not([hovered]),[disabled]:not([state-disabled~=hover]),[state-off~=hover]){--mdw-state__hovered-opacity:0}#state:is(:not([focused]),[disabled]:not([state-disabled~=focus]),[state-off~=focus]){--mdw-state__focused-opacity:0}#state:is(:not([pressed]),[disabled]:not([state-disabled~=pressed]),[state-off~=pressed]){--mdw-state__pressed-opacity:0}#state:is([disabled]:not([state-disabled~=dragged]),[state-off~=dragged]),:host(:not([aria-dragged=true])) #state{--mdw-state__dragged-opacity:0}#state[disabled]:not([state-disabled]){display:none}`}var Ct=_.extend().observe({hidden:"boolean"}).html`<div id=scroll-blocker></div>`.css`:host{position:fixed;inset:0;display:block;overflow:overlay;overscroll-behavior:none;overscroll-behavior:contain;scrollbar-color:transparent transparent;scrollbar-width:none;cursor:pointer;outline:0;-webkit-tap-highlight-color:transparent;opacity:0;z-index:23;background-color:rgb(var(--mdw-color__scrim));animation:fade-in .2s forwards ease-out;will-change:opacity}:host::-webkit-scrollbar{display:none}:host([hidden]){animation-name:fade-out;animation-timing-function:ease-in}:host([invisible]){background:0 0}#scroll-blocker{position:absolute;inset-block-start:0;inset-inline-start:0;display:block;block-size:200%;inline-size:200%}@keyframes fade-in{0%{opacity:0}to{opacity:.38}}@keyframes fade-out{0%{opacity:.38}to{opacity:0}}`.events({animationend(){this.hidden&&this.remove()}}).autoRegister("mdw-scrim");var To="onscrollend"in window,gr=new WeakSet;_.extend().mixin(N).set({stateLayer:!0}).html`<div id=container><div id=icon aria-hidden=true></div></div>`.recompose(({refs:{container:t,state:e}})=>{t.prepend(e)}).css`:host{--mdw-state__hovered-opacity:0;--mdw-state__pressed-opacity:0;position:absolute;inset-block-start:0;inset-inline:0;align-self:stretch;display:flex;align-items:center;justify-content:center;cursor:grab;outline:0;pointer-events:auto;-webkit-user-select:none;user-select:none;touch-action:none;color:rgb(var(--mdw-color__on-surface-variant))}:host(:active){cursor:grabbing!important}#container{position:relative;display:flex;align-items:center;justify-content:center;min-block-size:48px;min-inline-size:48px}#state{border-radius:50%}#state[pointed]{--mdw-state__focused-opacity:0}#icon{block-size:4px;inline-size:32px;background-color:currentColor;border-radius:8px}`.events({touchmove(t){t.preventDefault()}}).autoRegister("mdw-bottom-sheet-handle");var Io=_.extend().mixin(x).mixin(de).mixin(C).mixin($).mixin(L).mixin(B).observe({shapeTop:{type:"boolean",empty:!0},modal:"boolean",fixed:"boolean",open:"boolean",expanded:"boolean",_lastComputedBlockSize:{type:"float",nullable:!1},_lastOffsetTop:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_translateY:{value:"100%"},_lastChildScrollTime:"float",_ariaValueNow:{type:"integer"},dragHandle:"boolean",onopen:Z,onclose:Z}).set({_hasCheckedResize:!1,_scrim:null,_dragTimestamp:0,_dragDeltaY:null,_dragStartY:null}).observe({hostStyles:{...ee,get({open:t,fixed:e,_lastComputedBlockSize:i,_translateY:r,_animationDuration:o,_animationEasing:n}){return{styles:{marginBottom:e?`${-1*i}px`:0,transform:e?"none":`translateY(${r})`},timing:{duration:o,easing:n}}}}}).html`<mdw-bottom-sheet-handle id=drag-handle mdw-if={dragHandle} tabindex=0 role=separator aria-valuemin=-100 aria-valuemax=0 aria-valuenow={_ariaValueNow}></mdw-bottom-sheet-handle><slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,modal:i,_scrim:r}=this;e&&i?(r||(r=new Ct,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragStartY:e,_dragDeltaY:i,_lastComputedBlockSize:r,modal:o,fixed:n,_lastOffsetTop:s}=this;if(!t||n||e==null||i==null)return;let l=s+r-72,a=r>l?r-l:0,c=(r-i)/(r-a);this._dragStartY=null,o&&c<.5?(this._animationDuration=200*c,this._animationEasing="ease-out",this._translateY="100%",this._dragDeltaY=null,this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*c),this._dragDeltaY=a,this._translateY="0px",this._animationEasing="ease-in",this.expanded=!0)},onDragHandleActive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&t.buttons===1&&gr.add(t)},onDragHandleInactive(t){t.isTrusted&&t.isPrimary&&t.pointerType!=="touch"&&(t.type!=="pointerup"&&t.buttons!==1||this.checkDragFinished())},onPointerOrTouchMove(t){let e,i=t.type==="touchmove";if(i){let{touches:u}=t;if(!u.length)return;e=u[0]}else e=t;let{open:r,_lastChildScrollTime:o,_dragStartY:n,_dragTimestamp:s,expanded:l}=this;if(!r||n==null||o&&performance.now()-o<=(To?5e3:500))return;let{clientY:a,pageY:c}=e;a??=c-window.scrollY;let{_lastOffsetTop:d,_lastComputedBlockSize:p}=this,m=d+p-72,f=p>m?p-m:0,h=Math.max(a-n,f);this._dragDeltaY=h,!(i&&l&&performance.now()-s<100)&&(this._animationDuration=0,this._translateY=`${h}px`)}}).overrides({onResizeObserved(t){var e;this._lastComputedBlockSize=(e=t.borderBoxSize[0])==null?void 0:e.blockSize,this._lastOffsetTop=this.offsetTop}}).events({"~pointerdown"(t){if(t.pointerType!=="touch"&&(t.buttons!==1||!gr.has(t))||!this.open)return;let{clientY:e,pageY:i}=t;e??=i-window.scrollY,this._dragStartY=e-(this._dragDeltaY??0),this._dragDeltaY=0,this._dragTimestamp=performance.now()},"~pointermove":"onPointerOrTouchMove","~pointerup"(t){t.pointerType!=="touch"&&this.checkDragFinished()},pointerleave(t){t.pointerType!=="touch"&&this.checkDragFinished()},"~touchmove":"onPointerOrTouchMove",touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartY=null,this._dragDeltaY=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).childEvents({dragHandle:{"~pointerdown":"onDragHandleActive","~pointermove":"onDragHandleActive"}}).on({openChanged(t,e){let i=this.offsetTop;if(this._lastOffsetTop=i,this._animationDuration=e?250:200,e){let r=0;if(!this.fixed){let{_lastComputedBlockSize:o}=this,n=i+o;o>n/2&&(r=o-n/2)}this._translateY=`${r}px`,this._dragDeltaY=r}else this._translateY="100%",this.expanded=!1;this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),e&&this.focus()},modalChanged(){this._animationDuration=0,this.checkForScrim(!1)}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);--mdw-shape__size:var(--mdw-shape__extra-large);--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;position:sticky;inset-block-end:0;inset-inline:0;overflow-y:clip;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;max-inline-size:640px;margin-inline:auto;padding-block-start:16px;pointer-events:none;transform:translateY(100%);visibility:hidden;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-block-end,visibility}:host(:where([open])){pointer-events:auto;visibility:inherit;transition:visibility 0s}:host(:where(:not([fixed]))){position:fixed;max-block-size:calc(100% - 72px);touch-action:none;z-index:24}:host(:where([expanded])){overflow-y:auto;touch-action:auto}:host(:where([drag-handle])){padding-block-start:48px}`.autoRegister("mdw-bottom-sheet");var wr={};Lt(wr,{addSVGAlias:()=>Lo,svgAliasMap:()=>ve,unaliased:()=>bi});var ve=new Map,bi=new Set;function Lo(t,e,i="0 0 24 24"){t=t.toLowerCase(),e?ve.set(t,{path:e,viewBox:i}):ve.delete(t)}var gi=new Set,Ro=_.extend().mixin(x).define({_img(){return this.refs.img}}).define({naturalWidth(){return this._img.naturalWidth},naturalHeight(){return this._img.naturalHeight},complete(){return this._img.complete},currentSrc(){return this._img.currentSrc},x(){return this._img.x},y(){return this._img.y},decode(){return this._img.decode}}).observe({icon:"string",disabled:"boolean",alt:"string",src:"string",svg:"string",svgPath:"string",srcset:"string",sizes:"string",variation:"string",crossOrigin:{attr:"crossorigin"},useMap:{attr:"usemap"},isMap:{type:"boolean",attr:"ismap"},referrerPolicy:{attr:"referrerpolicy"},decoding:{value:null},loading:{value:null},width:"integer",height:"integer",forceFont:"boolean",_linkLoaded:"boolean",viewBox:"string",fontClass:{empty:"material-symbols-outlined"},fontLibrary:{empty:"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&display=block"},_isConnected:"boolean"}).observe({_svgAlias:{type:"object",get({icon:t,variation:e}){if(!t)return null;let i=t.trim().toLowerCase(),r=e?`#${e}`:"",o=`${i}${r}`;return ve.has(o)?ve.get(o):(bi.add(o),r&&ve.has(i)?ve.get(i):null)}}}).observe({_computedSVGPath({svgPath:t,_svgAlias:e}){return t||(e==null?void 0:e.path)},_computedViewBox({viewBox:t,_svgAlias:e}){return t??(e==null?void 0:e.viewBox)??"0 0 24 24"}}).observe({_showFontIcon:{type:"boolean",get({icon:t,svg:e,_computedSVGPath:i,src:r}){return t&&!e&&!i&&!r}}}).expressions({showSVG({svg:t,_computedSVGPath:e}){return!!(t||e)}}).html`<link mdw-if={_showFontIcon} id=link rel=stylesheet href={fontLibrary}><svg mdw-if={showSVG} id=svg viewBox={_computedViewBox}><use id=use mdw-if={svg} href={svg} fill=currentColor /><path id=path mdw-if={_computedSVGPath} d={_computedSVGPath} /></svg> <img mdw-if={src} id=img disabled={disabled} alt={alt} src={src} srcset={srcset} sizes={sizes} crossorigin={crossOrigin} usemap={useMap} ismap={isMap} referrerpolicy={referrerPolicy} decoding={decoding} loading={loading} width={width} height={height}> <span id=icon class={fontClass} hidden={!_showFontIcon} aria-hidden=true>{icon}</span>`.css`:host{vertical-align:-11.5%;block-size:1em;inline-size:1em;-webkit-user-select:none;user-select:none;line-height:1;font-variation-settings:"FILL" 0;transition-duration:.2s;transition-property:inline-size,width}:host([variation=fill]){font-variation-settings:"FILL" 1}:host(:is([color],[ink])){color:rgb(var(--mdw-ink))}#icon{overflow:clip;block-size:1em;inline-size:1em;font-size:inherit;font-variation-settings:inherit;transition-delay:1ms;transition-duration:.2s;transition-property:font-variation-settings}#icon[hidden]{display:none}#svg{block-size:inherit;inline-size:inherit;fill:currentColor;object-fit:cover}#img{block-size:inherit;inline-size:inherit;object-fit:cover;transition-delay:1ms;transition-duration:.2s;transition-property:filter}#img[disabled]{filter:grayscale()}.material-symbols-outlined{direction:inherit}`.childEvents({link:{load({currentTarget:t}){let{href:e,parentNode:i}=t;if(!gi.has(e)){for(let r of document.head.getElementsByTagName("link"))if(r.href===e){gi.add(e);return}document.head.append(t.cloneNode()),gi.add(e)}}}}).extend(t=>class extends t{constructor(e,i){super(),e!=null&&(this.width=e),i!=null&&(this.height=i)}}).autoRegister("mdw-icon");function wi(t){return t.rootEvents({click(e){let{target:i}=e;if(!(i instanceof HTMLAnchorElement)||!i.href)return;i.dispatchEvent(new CustomEvent("mdw:hyperlink",{bubbles:!0,composed:!0,cancelable:!0,detail:{download:i.download,href:i.href,hreflang:i.hreflang,target:i.target}}))||e.preventDefault()}})}function _e(t){return{get(){return new URL(this.href,window.location.href)[t]},set(e){let{href:i}=this;if(!i)return;let r=new URL(i,window.location.href);r[t]=e,this.href=r.href}}}function te(t){return t.mixin(wi).observe({href:"string",target:"string",download:"string",ping:"string",rel:"string",hreflang:"string",referrerPolicy:{type:"string",attr:"referrerpolicy"}}).define({origin(){return new URL(this.href).origin},protocol:_e("protocol"),username:_e("username"),password:_e("password"),host:_e("host"),hostname:_e("hostname"),port:_e("port"),pathname:_e("pathname"),search:_e("search"),hash:_e("hash")}).html`<a id=anchor href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy}></a>`.methods({toString(){return this.href}})}var xi="mdw-form-associated-changed",vi={nullParser:String,value:""};function pe(t){return t.setStatic({formAssociated:!0}).set({_ipcListener:null,_ipcTarget:null,_files:null}).observe({ariaControls:"string",autocomplete:vi,name:vi,readOnly:{attr:"readonly",type:"boolean"},formNoValidate:{attr:"formnovalidate",type:"boolean"},defaultChecked:{attr:"checked",type:"boolean"},_checkedDirty:"boolean",_checked:"boolean",required:"boolean",type:vi,_defaultValue:{reflect:!0,attr:"value"},_value:{empty:""},_valueDirty:"boolean",_userInteracted:"boolean",_invalid:"boolean",_badInput:"boolean",_validationMessage:"string",_formDisabled:"boolean",_formReset:"boolean"}).observe({erroredState({_invalid:e,_userInteracted:i}){return i&&e},defaultValue:{reflect:!1,get({_defaultValue:e}){return e??""},set(e){this._defaultValue=String(e)}},_valueBehavior({type:e}){switch(e){case"radio":case"checkbox":return"default/on";case"hidden":case"button":case"submit":case"image":case"reset":return"default";case"file":return"filename";default:return"value"}}}).methods({_onSetValue(e){this._value=e},_onSetChecked(e){this._checked=e}}).observe({value:{reflect:!1,get({_valueBehavior:e,_defaultValue:i,_value:r}){switch(e){case"filename":default:return r;case"default":return i??"";case"default/on":return i??"on"}},set(e){switch(this._valueBehavior){case"value":this._valueDirty=!0,this._onSetValue(e);break;case"filename":if(e==null||e==="")this._files=null;else throw new DOMException("InvalidStateError");break;default:this.defaultValue=e}}},checked:{reflect:!1,type:"boolean",get({_checkedDirty:e,defaultChecked:i,_checked:r}){return e?r:i},set(e){this._checkedDirty=!0,this._onSetChecked(e)}}}).define({form(){return this.elementInternals.form},validity(){return this.elementInternals.validity},validationMessage(){return this.elementInternals.validationMessage},willValidate(){return this.type==="submit"?!this.formNoValidate:this.type==="button"||this.type==="reset"?!1:this.elementInternals.willValidate},labels(){return this.elementInternals.labels}}).observe({disabledState({_formDisabled:e,disabled:i}){return e?!0:!!i}}).methods({checkValidity(){return this.elementInternals.checkValidity()},reportValidity(){return this.elementInternals.reportValidity()},setCustomValidity(e){this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e)},_notifyRadioChange(e,i){var r;(r=this._ipcTarget)==null||r.dispatchEvent(new CustomEvent(xi,{detail:[e,i]}))},refreshFormAssociation(){let e=this.elementInternals.form??this.getRootNode();e!==this._ipcTarget&&(this._ipcTarget&&this._ipcTarget.removeEventListener(xi,this._ipcListener),this.type==="radio"&&(this._ipcTarget=e,this._ipcListener??=this.formIPCEvent.bind(this),this._ipcTarget.addEventListener(xi,this._ipcListener)))},formAssociatedCallback(e){this.refreshFormAssociation(),this.checkValidity()},formIPCEvent(e){if(e.target instanceof HTMLFormElement&&e.target!==this.form||this.type!=="radio")return;let[i,r]=e.detail;this.name===i&&(r===this.value||(this.checked=!1))},formDisabledCallback(e){this._formDisabled=e},formResetCallback(){this._formReset=!0,this._valueDirty=!1,this.checkValidity(),this._userInteracted=!1,this._formReset=!1},formStateRestoreCallback(e,i){if(!(Ie<115)&&typeof e=="string"){if(this.type==="checkbox"||this.type==="radio"){this.checked=e==="checked";return}if(this.type==="radio"){this.checked=e==="checked";return}this.value=e}},_updateFormAssociatedValue(){switch(this.type){case"radio":this.checked&&this._notifyRadioChange(this.name,this.value||"on");case"checkbox":this.checked?this.elementInternals.setFormValue(this.value,"checked"):this.elementInternals.setFormValue(null,"unchecked");break;case"button":case"reset":this.elementInternals.setFormValue(null);break;case"file":{let{elementInternals:e,_files:i,name:r}=this;if(!i||i.length)e.setFormValue(null);else{let o=new FormData;for(let n of i)o.append(r,n);e.setFormValue(o)}break}case"select-multiple":{let e=new FormData,i=this;if(i.name)for(let r of i.selectedOptions)e.append(i.name,r.value);this.elementInternals.setFormValue(e);break}default:this.elementInternals.setFormValue(this.value)}}}).events({blur(){this._userInteracted=!0,this.checkValidity()}}).on({connected(){this.refreshFormAssociation()},checkedChanged(){this._updateFormAssociatedValue()},valueChanged(){this._updateFormAssociatedValue()},_valueBehaviorChanged(e,i){e!=="filename"&&i==="filename"&&(this.value="")},typeChanged(){this._updateFormAssociatedValue()}})}function ye(t){return t.mixin(pe).mixin(L).observe({ariaLabel:"string",_slotInnerText:"string"}).set({focusableOnDisabled:!1,controlTagName:"input",controlVoidElement:!0,_slotMutationObserver:null}).methods({_onControlValue(e){this._value=e},onValueChangingContentAttribute(){let e=this.refs.control;this.hasAttribute("value")||(e.removeAttribute("value"),e.setAttribute("value","")),this._onControlValue(e.value)},focus(...e){this.refs.control.focus(...e)},click(){this.disabledState||this.refs.control.click()}}).define({stateTargetElement(){return this.refs.control}}).methods({checkValidity(){if(!this.willValidate)return!0;let e=this.refs.control,i=e.checkValidity(),r={};for(let o in e.validity)r[o]=e.validity[o];return this.elementInternals.setValidity(r,e.validationMessage,e),this._invalid=!i,this._validationMessage=e.validationMessage,this._badInput=e.validity.badInput,i},reportValidity(){return this.checkValidity(),this.refs.control.reportValidity(),this.elementInternals.reportValidity()},setCustomValidity(e){this.refs.control.setCustomValidity(e),this.checkValidity(),this.elementInternals.setValidity({...this.elementInternals.validity,customError:!!e},this.elementInternals.validationMessage||e,this.refs.control)}}).observe({_computedAriaLabel({ariaLabel:e,_slotInnerText:i}){return(e==null?void 0:e.trim())||(i==null?void 0:i.trim())||null}}).expressions({_computedAriaLabelledby({_computedAriaLabel:e}){return e?null:"slot"}}).recompose(({template:e,html:i,element:r})=>{e.append(i`
|
|
176
176
|
<${r.controlTagName} id=control
|
|
177
177
|
aria-label={_computedAriaLabel}
|
|
178
178
|
aria-labelledby={_computedAriaLabelledby}
|
|
@@ -180,25 +180,25 @@
|
|
|
180
180
|
form-disabled={disabledState}
|
|
181
181
|
type={type}
|
|
182
182
|
>${r.controlVoidElement?"":`</${r.controlTagName}>`}
|
|
183
|
-
`)}).on({disabledStateChanged(e,i){let r=this.refs.control;r.setAttribute("aria-disabled",`${i}`),this.focusableOnDisabled||(r.disabled=i,i?this.tabIndex=0:this.removeAttribute("tabindex"))},readOnlyChanged(e,i){let r=this.refs.control;this.type==="checkbox"?r.setAttribute("aria-readonly",i?"true":"false"):r.removeAttribute("aria-readonly")},constructed(){let e=this.refs.control;this._onControlValue(e.value)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)},attrs:{autocomplete:O("autocomplete","control"),name:O("name","control"),readonly:O("readonly","control"),required:O("required","control")}}).childEvents({control:{click(e){(this.type==="checkbox"&&this.readOnly||this.focusableOnDisabled&&this.disabledState)&&(e.preventDefault(),e.stopImmediatePropagation())},input({currentTarget:e}){let i=e;this.validity.valid?(i.checkValidity(),this._badInput=i.validity.badInput):this.checkValidity(),this._onControlValue(i.value)},change({currentTarget:e}){let i=e;this._valueDirty=!0,this._onControlValue(i.value),this.checkValidity()}},slot:et<116||yt?{slotchange({currentTarget:e}){this._slotInnerText=this.textContent,this._slotMutationObserver||(this._slotMutationObserver=new MutationObserver(()=>{this._slotInnerText=this.textContent}),this._slotMutationObserver.observe(e,{characterData:!0}))}}:{}}).rootEvents({change(e){this.dispatchEvent(new e.constructor(e.type,e))}}).css`:host{display:inline-flex}:host(::-moz-focus-inner){border:0}#control{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;margin:0;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;outline:0;transform:translate(-50%) translateY(-50%);z-index:4;background-color:transparent;border-radius:0;color:transparent}#control::-moz-focus-inner{border:0}`}var Ro=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),se={nullParser:String,empty:""},xr=new WeakSet,vr=new WeakSet;function K(t){return t.mixin(ye).observe({accept:se,alt:se,dirName:{attr:"dirname",...se},_formAction:{attr:"formaction"},formEnctype:{attr:"formenctype",...se},formMethod:{attr:"formmethod",...se},formTarget:{attr:"formtarget",...se},_height:{attr:"height",type:"integer"},_indeterminate:"boolean",max:se,maxLength:{attr:"maxlength",type:"integer",empty:-1},min:se,minLength:{attr:"minlength",type:"integer",empty:-1},multiple:"boolean",pattern:se,placeholder:se,size:{type:"integer",empty:20},src:se,step:se,_width:{attr:"width",type:"integer"}}).set({_useFormImplicitSubmission:!0}).define({_input(){return this.refs.control}}).observe({indeterminate:{type:"boolean",get({_indeterminate:e}){return e},set(e){this._input.indeterminate=e,this._indeterminate=this._input.indeterminate}}}).overrides({controlTagName:"input"}).recompose(({refs:{control:e}})=>{e.setAttribute("checked","{defaultChecked}"),e.setAttribute("height","{_height}"),e.setAttribute("width","{_width}"),e.setAttribute("value","{_defaultValue}")}).on({typeChanged(){this.onValueChangingContentAttribute()},checkedChanged(){this._input.checked=this.checked,this._input.indeterminate=this._indeterminate},_indeterminateChanged(e,i){this._input.indeterminate=i},minChanged(){this.onValueChangingContentAttribute()},minLengthChanged(){this.onValueChangingContentAttribute()},maxChanged(){this.onValueChangingContentAttribute()},maxLengthChanged(){this.onValueChangingContentAttribute()},multipleChanged(){this.onValueChangingContentAttribute()},patternChanged(){this.onValueChangingContentAttribute()},stepChanged(){this.onValueChangingContentAttribute()},defaultValueChanged(){this.onValueChangingContentAttribute()},_formResetChanged(e,i){if(!i)return;this._onSetValue(this.defaultValue);let r=this._input;r.checked=this.defaultChecked,this._checked=r.checked,this._checkedDirty=!1},attrs:{accept:O("accept","control"),alt:O("alt","control"),dirname:O("dirname","control"),formenctype:O("formenctype","control"),formmethod:O("formmethod","control"),formnovalidate:O("formnovalidate","control"),formTarget:O("formTarget","control"),max:O("max","control"),maxlength:O("maxlength","control"),min:O("min","control"),minlength:O("minlength","control"),multiple:O("multiple","control"),pattern:O("pattern","control"),placeholder:O("placeholder","control"),size:O("size","control"),src:O("src","control"),step:O("step","control")}}).overrides({_onSetChecked(e){this._input.checked=e,this._checked=this._input.checked,this.indeterminate=!1},_onSetValue(e){this._input.value=e,this._value=this._input.value}}).methods({performImplicitSubmission(e){if(!this._useFormImplicitSubmission)return;let i=this.form;if(!i)return;let r,o=new Set;for(let n of i.elements){if(n.type==="submit"&&!n.disabled&&!n.matches(":disabled")){r??=n;break}Ro.has(n.type)&&o.add(n)}if(r){r.dispatchEvent(new PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0}));return}o.size>1||this.form.submit()},_redispatchControlClickEvent(e){e.stopPropagation();let i=new e.constructor(e.type,e);return xr.add(i),this.dispatchEvent(i)},_handleInputClick(e){var r;if(this.disabledState)return;let i=this._input;switch(i.type){case"checkbox":case"radio":{let{_checkedDirty:o,_checked:n,_indeterminate:s}=this;if(this.checked=i.checked,this._redispatchControlClickEvent(e))return;e.preventDefault(),this._checkedDirty=o,this._checked=n,this._indeterminate=s;break}case"button":case"submit":case"reset":{if(!this._redispatchControlClickEvent(e)){e.preventDefault();return}let{type:o}=i;if(o!=="submit"&&o!=="reset")return;for(let s of e.composedPath()){if(s===i||s===this)break;if((s instanceof HTMLInputElement||s instanceof HTMLButtonElement)&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLElement&&s.form instanceof HTMLFormElement&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLAnchorElement&&s.href)return}let n=(r=this.elementInternals)==null?void 0:r.form;if(!n)return;if(o==="submit"){let s=i.cloneNode();s.hidden=!0,n.append(s),"requestSubmit"in n?n.requestSubmit(s):s.click(),s.remove()}else o==="reset"&&n.reset()}break;default:}}}).rootEvents({click(e){vr.add(e);let{control:i}=this.refs;if(e.target===i||!e.bubbles)return;let{disabledState:r,type:o}=this;r||(o==="checkbox"||o==="radio"?(e.stopPropagation(),i.click()):this._handleInputClick(e))}}).events({click(e){vr.has(e)||xr.has(e)||e.target===this&&(e.stopImmediatePropagation(),this.refs.control.click())}}).childEvents({control:{keydown(e){e.defaultPrevented||e.key==="Enter"&&e.currentTarget.type!=="submit"&&this.performImplicitSubmission(e)},click:"_handleInputClick",input(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked},change(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked}}}).methods({setRangeText(...e){this._input.setRangeText(...e)},setSelectionRange(...e){this._input.setSelectionRange(...e)},showPicker(...e){this._input.showPicker(...e)},stepDown(...e){this._input.stepDown(...e),this._value=this._input.value},stepUp(...e){this._input.stepUp(...e),this._value=this._input.value},select(...e){this._input.select(...e)}}).define({files:{get(){return this._input.files},set(e){e==null&&this.type==="file"?(this._input.value="",this.value=""):this._input.files=e}},selectionDirection:{get(){return this._input.selectionDirection},set(e){this._input.selectionDirection=e}},selectionEnd:{get(){return this._input.selectionEnd},set(e){this._input.selectionEnd=e}},selectionStart:{get(){return this._input.selectionStart},set(e){this._input.selectionStart=e}},valueAsDate:{get(){return this._input.valueAsDate},set(e){this._input.valueAsDate=e,this.value=this._input.value}},valueAsNumber:{get(){return this._input.valueAsNumber},set(e){this._input.valueAsNumber=e,this.value=this._input.value}},height:{get(){return this._input.height},set(e){this._input.height=e,this._height=e}},formAction:{get(){return this._input.formAction},set(e){this._input.formAction=e,this._formAction=e}},width:{get(){return this._input.width},set(e){this._input.width=e,this._width=e}}}).css`#control::-webkit-file-upload-button{display:none}`}var yr=_.extend().set({hadRippleHeld:!1,hadRippleReleased:!1,rippleStarted:!1}).observe({rippleState:"string",keepAlive:"boolean",_positionX:"float",_positionY:"float",_radius:"float",holdRipple:{type:"boolean",changedCallback(t,e){e?this.hadRippleHeld=!0:this.hadRippleReleased=!0}}}).observe({_positionStyle:{...Z,get({_positionX:t,_positionY:e,_radius:i}){return i==null?null:{styles:{minHeight:`${i}px`,minWidth:`${i}px`,boxShadow:`0 0 calc(0.10 * ${i}px) calc(0.10 * ${i}px) currentColor`,top:`calc(50% + ${e}px)`,left:`calc(50% + ${t}px)`}}}}}).methods({updatePosition(t,e,i){let r=i,{offsetParent:o}=this;if(!o)return;let{clientWidth:n,clientHeight:s}=o;if(t??=n/2,e??=s/2,!r){let l=t>=n/2?t:n-t,a=e>=s/2?e:s-e;r=2*Math.hypot(l,a)}this._positionX=t-n/2,this._positionY=e-s/2,this._radius=r},handleRippleComplete(){this.keepAlive?this.setAttribute("ripple-state","complete"):this.remove()}}).events({animationstart({animationName:t}){if(t==="ripple-fade-in"){if(this.rippleStarted&&!this.keepAlive){this.remove();return}this.rippleStarted=!0}},animationend({animationName:t}){switch(t){case"ripple-fade-in":this.rippleState="filled";break;case"ripple-fade-out":this.handleRippleComplete();break;default:}}}).css`:host{--enter-delay:80ms;--touch-down-acceleration:1024;--touch-up-acceleration:3400;--mdw-ripple-expand-duration:.3s;--mdw-ripple-simple-duration:.2s;--mdw-ripple-fade-out-duration:333ms;--mdw-ripple-standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-ripple-deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--size:0;position:absolute;top:50%;left:50%;display:block;min-block-size:141.42%;min-inline-size:141.42%;pointer-events:none;-webkit-tap-highlight-color:transparent;opacity:.12;transform:translate(-50%) translateY(-50%) scale(1);background-color:currentColor;border-radius:50%;box-shadow:0 0 calc(.1 * var(--size)) calc(.1 * var(--size)) currentColor;transition-delay:0s;transition-duration:var(--mdw-ripple-simple-duration);transition-property:background-color,color;transition-timing-function:var(--mdw-ripple-standard-easing);animation-name:ripple-fade-in,none;animation-duration:var(--mdw-ripple-expand-duration),var(--mdw-ripple-fade-out-duration);animation-timing-function:linear,var(--mdw-ripple-deceleration-easing);animation-direction:normal;animation-fill-mode:forwards;will-change:transform,opacity,top,left,box-shadow;aspect-ratio:1/1}:host([ripple-state=filled]){animation-name:none,ripple-fade-out}:host([ripple-state=filled][hold-ripple]){animation-name:ripple-fade-in,none}:host([ripple-state=complete]){animation-name:none,ripple-fade-out;animation-duration:0s}@keyframes ripple-fade-in{0%{transform:translate(-50%) translateY(-50%) scale(0)}}@keyframes ripple-fade-out{to{opacity:0}}`.autoRegister("mdw-ripple");function Q(t){return t.set({_lastRippleWeakRef:null,_rippleAdded:!1}).define({_lastRipple:{get(){var i;let e=(i=this._lastRippleWeakRef)==null?void 0:i.deref();return e!=null&&e.isConnected?e:null},set(e){this._lastRippleWeakRef=e?new WeakRef(e):null}}}).methods({addRipple(e,i,r){let{rippleContainer:o}=this.refs;if(!o.isConnected)return null;let n=new yr;return this._rippleAdded=!0,queueMicrotask(()=>{this._rippleAdded=!1}),o.append(n),r&&(n.holdRipple=!0),n.updatePosition(e,i),this._lastRipple=n,n}}).html`<div id=ripple-container mdw-if={!disabledState} aria-hidden=true></div>`.events({"~pointerdown"(e){if(e.button||this.disabledState)return;let{rippleContainer:i}=this.refs;if(!i.isConnected)return;let r=i.getBoundingClientRect(),o=e.pageX-r.left-window.pageXOffset,n=e.pageY-r.top-window.pageYOffset,s=this._lastRipple;s&&(s.holdRipple=!1),this.addRipple(o,n,!0)},"~click"(e){if(this._rippleAdded||e.pointerType||e.detail||this.disabledState||this.pressedState||this._keyReleased)return;let i=this._lastRipple;i&&(i.holdRipple=!1),this.addRipple()}}).on({pressedStateChanged(e,i){let r=this._lastRipple;if(!i){r&&(r.holdRipple=!1);return}if(!r||r.hadRippleReleased){if(this._lastInteraction!=="key")return;this.addRipple(null,null,!0);return}r.hadRippleHeld||(r.holdRipple=!0)}}).css`:host{--mdw-state__pressed-opacity:0}#ripple-container{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:inherit}`}var fe=_.extend().mixin(w).mixin(G).mixin(N).mixin(U).mixin(C).mixin(Q).mixin(K).mixin(ee).define({stateTargetElement(){return this.refs.control}}).set({stateLayer:!0,_allowedTypes:["button","submit","reset","file"]}).observe({type:{empty:"button",set(t,e){let i=(t==null?void 0:t.toLowerCase())??"button";e(this._allowedTypes.includes(i)?i:"button")}},elevated:"boolean",filled:"string",outlined:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string"}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},iconVariation({outlined:t}=this){return t?null:"filled"}}).methods({focus(...t){this.href?this.refs.anchor.focus(...t):this.refs.control.focus(...t)}}).html`<mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabledState} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon}></mdw-icon><slot id=slot disabled={disabledState} aria-hidden=true>{_defaultValue}</slot>`.recompose(({refs:{anchor:t,control:e}})=>{e.setAttribute("mdw-if","{!href}"),e.setAttribute("role","button"),t.setAttribute("mdw-if","{href}"),t.setAttribute("aria-label","{_computedAriaLabel}"),t.setAttribute("aria-labelledby","{_computedAriaLabelledby}")}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:var(--mdw-color__primary);--mdw-type__font:var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-large__letter-spacing);display:inline-flex;align-items:center;gap:0;justify-content:center;vertical-align:middle;min-block-size:24px;min-inline-size:24px;padding-block:calc(8px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:where([elevated],[filled])){transition:box-shadow .2s;will-change:box-shadow}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__primary);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__primary);--mdw-ink:var(--mdw-color__on-primary);box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([elevated]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}:host(:where([filled]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([elevated]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled=tonal])){--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__primary)}:host(:where([icon])){gap:8px;padding-inline:calc(12px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}:host(:where([outlined],[elevated],[filled])){padding-inline:calc(24px + (var(--mdw-density) * 2px))}:host(:where([icon]):where([outlined],[elevated],[filled])){gap:8px;padding-inline:calc(16px + (var(--mdw-density) * 2px)) calc(24px + (var(--mdw-density) * 2px))}:host(:where([elevated],[filled],[color])){background-color:rgb(var(--mdw-bg))}#slot{text-align:center;text-decoration:none;white-space:nowrap}#control{cursor:pointer}#anchor{position:absolute;inset:0;cursor:pointer;outline:0}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#icon{font-size:calc(18/14 * 1em)}#icon[disabled]{opacity:.38;color:rgba(var(--mdw-color__on-surface))}#control[form-disabled]{cursor:not-allowed}@media (any-pointer:coarse){#touch-target{visibility:inherit}}`.autoRegister("mdw-button");var kr="inert"in HTMLElement.prototype,Po=H.extend().mixin(N).mixin(U).mixin(C).mixin(me).mixin($).mixin(L).mixin(ee).set({_ariaRole:"figure"}).observe({elevated:"boolean",filled:"boolean",actionable:"boolean",actionLabel:"string",onaction:oe}).define({stateTargetElement(){return this.actionable?this.refs.action:this}}).expressions({showBlocker:({disabledState:t,disabled:e})=>t&&(!e||!kr),showButton:({actionable:t,href:e})=>!!(t||e)}).methods({focus(){this.disabledState||this.actionable&&this.refs.action.focus()}}).html`<mdw-button mdw-if={showButton} aria-label={actionLabel} href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabledState}></mdw-button><div mdw-if={showBlocker} id=inert-blocker></div>`.recompose(({refs:{anchor:t,inertBlocker:e,slot:i}})=>{t.remove(),i.setAttribute("disabled","{disabledState}"),e.before(i)}).css`:host{--mdw-shape__size:var(--mdw-shape__medium);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s;will-change:filter}:host(:where([elevated],[filled],[outlined])){background-color:rgb(var(--mdw-bg))}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([filled][actionable])){filter:var(--mdw-elevation__drop-shadow__0)}:host(:where([elevated][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([filled][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__1)}:host([disabled]){cursor:not-allowed;filter:grayscale();opacity:.38;color:rgb(var(--mdw-color__on-surface))}#slot[disabled]{color:rgb(var(--mdw-color__on-surface))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#inert-blocker{position:absolute;inset:0;cursor:not-allowed;pointer-events:auto;z-index:99}:host([disabled][elevated]){background-color:rgba(var(--mdw-color__surface-container-highest))}:host([disabled][filled]){background-color:rgba(var(--mdw-color__surface))}#action{--mdw-ink:inherit;--mdw-shape__size:inherit;position:absolute;inset:0;padding:0;z-index:0;color:inherit}`.recompose(({refs:{slot:t,outline:e}})=>{e.removeAttribute("pressed"),e.removeAttribute("focused"),t.setAttribute("inert","{disabledState}"),t.setAttribute("disabled","{disabledState}")}).childEvents({action:{click(){this.disabledState||this.dispatchEvent(new Event("action"))}},slot:kr?{}:{focusin(){this.disabledState}}}).autoRegister("mdw-card");var Oo=_.extend().mixin(w).mixin(C).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:2px;--disabled-opacity:.38;position:relative;display:inline-block;align-items:center;justify-content:center;box-sizing:border-box;block-size:18px;inline-size:18px;font-size:18px;line-height:18px}#icon{position:absolute;inset:0;opacity:0;background-color:rgb(var(--mdw-bg));border-radius:inherit;color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#outline{border-width:2px;color:rgb(var(--mdw-color__on-surface));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#icon[selected]{opacity:1}#outline[selected]{opacity:0}#icon[errored]{background-color:rgb(var(--mdw-color__error));color:rgb(var(--mdw-color__on-error))}#outline[errored]{color:rgb(var(--mdw-color__error))}#icon[disabled]{background-color:rgba(var(--mdw-color__on-surface),var(--disabled-opacity));color:rgb(var(--mdw-color__surface),var(--disabled-opacity))}#outline[disabled]{color:rgb(var(--mdw-color__on-surface),var(--disabled-opacity))}`.html`<mdw-icon id=icon selected={selected} errored={errored} disabled={disabled} icon={icon}></mdw-icon>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).autoRegister("mdw-checkbox-icon");function ke(t){return t.html`<div id=touch-target class=touch-target></div>`.css`.touch-target{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;cursor:inherit;pointer-events:auto;transform:translate(-50%) translateY(-50%);visibility:inherit;z-index:1;border-radius:inherit}`}var Fo=_.extend().mixin(w).mixin(N).mixin(Q).mixin(K).mixin(ke).set({stateLayer:!0,type:"checkbox"}).observe({icon:{value:"check"},indeterminateIcon:{value:"check_indeterminate_small"}}).expressions({_determinateIcon({indeterminate:t,indeterminateIcon:e,icon:i}){return t?e:i},_iconSelectedState({checked:t,indeterminate:e}){return t||e}}).html`<div id=checkbox errored={erroredState} selected={checked}><mdw-checkbox-icon id=icon errored={erroredState} disabled={disabledState} icon={_determinateIcon} selected={_iconSelectedState}></mdw-checkbox-icon></div><slot id=slot></slot>`.recompose(({refs:{checkbox:t,state:e,rippleContainer:i}})=>{t.append(e,i)}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:18px}#control{grid-column:1/1;cursor:inherit}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#checkbox{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#checkbox[selected]{color:rgb(var(--mdw-bg))}#checkbox[disabled]{color:rgb(var(--mdw-color__on-surface))}#checkbox[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #checkbox{transform:none}#icon{--mdw-ink:inherit;--mdw-bg:inherit;--disabled-opacity:1}`.autoRegister("mdw-checkbox");var yi=fe.extend().observe({suggestion:"boolean"}).expressions({iconVariation({elevated:t}){return t?"filled":null}}).css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(16px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([suggestion])){--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([icon])){gap:8px;padding-inline:calc(8px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color]){--mdw-ink:inherit}#icon[disabled],#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}`.recompose(({inline:t,refs:{slot:e,outline:i,icon:r}})=>{e.setAttribute("disabled","{disabledState}"),e.removeAttribute("ink"),e.removeAttribute("color"),i.setAttribute("mdw-if","{!elevated}"),i.setAttribute("ink","{ink}"),i.setAttribute("color","{color}"),r.setAttribute("ink",t(({ink:o,iconInk:n})=>n??o??"primary"))}).autoRegister("mdw-chip");var No=_.extend().mixin(w).observe({vertical:"boolean"}).css`:host{--mdw-ink:var(--mdw-color__outline-variant);position:relative;display:block;overflow:visible;box-sizing:border-box;block-size:0;inline-size:100%;color:rgb(var(--mdw-ink))}:host:before{content:"";display:block;box-sizing:border-box;block-size:1px;inline-size:auto;background-color:currentcolor}:host([vertical]){display:inline-flex;vertical-align:top;block-size:auto;min-block-size:100%;inline-size:0}:host([vertical]):before{block-size:auto;min-inline-size:1px}`.autoRegister("mdw-divider");var Xl=_.extend().css`:host{align-self:flex-end;margin-block:24px;padding-inline:24px}`.html`<slot id=slot></slot>`.autoRegister("mdw-dialog-actions");function Et(t){let{pageX:e,pageY:i,directionX:r,directionY:o}=t,n=document.documentElement.clientWidth,s=document.documentElement.clientHeight;if(e==null||i==null){let{clientX:V,clientY:te,anchor:Y}=t,F;if(Y?F=Y instanceof Element?Y.getBoundingClientRect():Y:F={left:0,width:n,right:n,top:0,bottom:s,height:s},e==null)switch(V){case"left":case null:case void 0:e=F.left,r??="right";break;case"center":e=F.left+F.width/2,r??="center";break;case"right":e=F.right,r??="left";break;default:e=F.left+V}if(i==null)switch(te){case"top":i=F.top,o??="up";break;case"center":i=F.top+F.height/2,o??="center";break;case"bottom":case null:case void 0:i=F.bottom,o??="down";break;default:i=F.top+te}}let{width:l,height:a}=t;if(l==null||a==null){let{popup:V}=t;V instanceof Element?(l=V.clientWidth,a=V.clientHeight):(l=V.width,a=V.height)}let c,d,m,p,f=t.margin??0,h=f,u=-f,g=f,b=-f;window.visualViewport?(h+=window.visualViewport.offsetTop,u+=window.visualViewport.offsetTop+window.visualViewport.height,g+=window.visualViewport.offsetLeft,b+=window.visualViewport.offsetLeft+window.visualViewport.width):(u+=s,b+=n);let x=t.offsetX??0,k=t.offsetY??0;e+=x,i+=k;let S="auto",A="auto",T="auto",E="auto",v=null,y=null;switch(o){case"up":m=Math.min(i,u),c=Math.max(m-a,h),T=`${s-m}px`,c===h&&(v=`${m-h}px`);break;case"center":c=Math.max(i-a/2,h),m=Math.min(i+a/2,u),S=`${c}px`,m===u&&(v=`${u-h}px`);break;default:c=Math.max(i,h),m=Math.min(c+a,u),S=`${c}px`,m===u&&(v=`${u-c}px`)}switch(r){case"left":d=Math.min(e,b),p=Math.max(d-l,g),A=`${n-d}px`,p===g&&(y=`${d-g}px`);break;case"center":p=Math.max(e-l/2,g),d=Math.min(e+l/2,b),E=`${p}px`,d===b&&(y=`${b-g}px`);break;default:p=Math.max(e,g),d=Math.min(p+l,b),E=`${p}px`,d===b&&(y=`${b-p}px`)}let z=l*a,I=(m-c)*(d-p)/z;return{...t,top:c,right:d,bottom:m,left:p,visibility:I,styles:{top:S,bottom:T,left:E,right:A,maxWidth:y,maxHeight:v,transformOrigin:`${o==="center"?"center":o==="up"?"bottom":"top"} ${r==="center"?"center":r==="left"?"right":"left"}`}}}var ki=typeof HTMLDialogElement<"u",Se=[];function rt(){for(let{element:t}of Se)t.updatePopupPosition()}function Sr(t){t.button===3&&t.preventDefault()}function Mt(t){if(!t.state)return;let e=Se.at(-1);if(!(!e||!e.previousState)&&(e.previousState===t.state||Object.keys(t.state).every(i=>t.state[i]===e.previousState[i]))){let i=new Event("cancel",{cancelable:!0});e.element.dispatchEvent(i)?e.element.close():window.history.pushState(e.state,e.state.title)}}function zr(t){Se.length}function Pe(t){return t.mixin(L).mixin(B).observe({open:"boolean",modal:"boolean",native:"boolean",scrollable:"boolean",matchSourceWidth:"boolean",_currentFlow:"string",flow:{type:"string",value:null},popupMargin:"float"}).set({useHistory:!0,returnValue:"",_closing:!1,_useScrim:!1}).define({_dialog(){return this.refs.dialog}}).methods({updatePopupPosition(e=this._anchor){let i=this._currentFlow??this.flow;Object.assign(this.style,{top:"0",left:"0",right:"auto",bottom:"auto",maxWidth:null,maxHeight:null});let r=this.native?this._dialog:this;Object.assign(r.style,{width:"auto",height:"auto"});let o=e&&this.matchSourceWidth?e.clientWidth:56*Math.ceil(r.clientWidth/56);r.style.setProperty("width",`${o}px`);let n=r.clientHeight;Object.assign(r.style,{height:null});let s={anchor:e,width:o,height:n,margin:this.popupMargin??(window.innerWidth<648?16:24)},l=ce(this),a=l?"right":"left",c=l?"left":"right",d=[(i??"corner")==="corner"?[{clientY:"bottom",clientX:a},{clientY:"bottom",clientX:c},{clientY:"top",clientX:a},{clientY:"top",clientX:c}]:[],(i??"adjacent")==="adjacent"?[{clientY:"top",clientX:c,directionX:c,directionY:"down"},{clientY:"top",clientX:a,directionX:a,directionY:"down"},{clientY:"bottom",clientX:c,directionX:c,directionY:"up"},{clientY:"bottom",clientX:a,directionX:a,directionY:"up"}]:[],(i??"overlay")==="overlay"?[{clientY:"top",clientX:a,directionX:c,directionY:"down"},{clientY:"top",clientX:c,directionX:a,directionY:"down"},{clientY:"bottom",clientX:a,directionX:c,directionY:"up"},{clientY:"bottom",clientX:c,directionX:a,directionY:"up"}]:[],(i??"vcenter")==="vcenter"?[{clientY:"center",clientX:c,directionX:c,directionY:"center"},{clientY:"center",clientX:a,directionX:a,directionY:"center"}]:[],(i??"hcenter")==="hcenter"?[{clientY:"bottom",clientX:"center",directionX:"center",directionY:"down"},{clientY:"top",clientX:"center",directionX:"center",directionY:"up"}]:[],(i??"center")==="center"?[{clientY:"center",clientX:"center",directionX:"center",directionY:"center"}]:[]].flat(),m;for(let h of d){let u=Et({...s,...h});if((!m||m.visibility<u.visibility)&&(m=u),u.visibility===1)break}let{maxWidth:p,maxHeight:f}=m.styles;if(p||f){let h=window.getComputedStyle(this);h.maxWidth&&(p=`min(${p}, ${h.maxWidth})`),h.maxHeight&&(f=`min(${f}, ${h.maxHeight})`)}Object.assign(this.style,{...m.styles,maxWidth:p,maxHeight:f})},onSlotChange({currentTarget:e}){let r=e.assignedNodes().some(o=>o.nodeType===o.ELEMENT_NODE||o.nodeType===o.TEXT_NODE&&o.nodeValue.trim().length);e.toggleAttribute("slotted",r)},showPopup(e,i=!0,r=null){if(this.open)return!1;this.open=!0,this._source=e,this._anchor=e;let{scrim:o}=this.refs;this._useScrim?(this.native?document.body.append(o):this.before(o),o.hidden=!1):o.remove();let n=e instanceof HTMLElement?e:document.activeElement;ki&&i&&!this._dialog.open&&this._dialog.show(),this._currentFlow=r,this.updatePopupPosition(e);let s,l,a;return this.useHistory&&(s={hash:Math.random().toString(36).slice(2,18)},window.history.state||window.history.replaceState({hash:Math.random().toString(36).slice(2,18)},document.title),a=window.history.state,l=window.history.scrollRestoration,window.history.scrollRestoration="manual",window.history.pushState(s,document.title),window.addEventListener("popstate",Mt),window.addEventListener("beforeunload",zr)),window.addEventListener("mousedown",Sr,{capture:!0}),window.addEventListener("resize",rt),window.addEventListener("scroll",rt),window.visualViewport&&(window.visualViewport.addEventListener("resize",rt),window.visualViewport.addEventListener("scroll",rt)),Se.push({element:this,previousFocus:n,state:s,previousState:a,scrollRestoration:l}),i&&this.focus(),!0},showModal(e,i,r){return this.open?!1:(this.modal=!0,ki&&(this._dialog.showModal(),this.native=!0),this.showPopup(e,i,r))},show(e,i,r){return navigator.userAgent.includes("Mac OS X")?this.showModal(e,i,r):this.showPopup(e,i,r)},close(e=void 0,i=!0){var o,n,s,l;if(!this.open||this._closing)return!1;if(this._source=null,this._closing=!0,this.modal=!1,this.refs.scrim.hidden=!0,this.native)this.native=!1;else{let a=document.querySelector("main");a&&a.removeAttribute("aria-hidden")}if(ki&&this._dialog.open){let a=document.activeElement;this._dialog.close(),j(a,{preventScroll:!0})||(n=(o=document.activeElement)==null?void 0:o.blur)==null||n.call(o)}else this._dialog.returnValue=e;this.open=!1,this._currentFlow=null,this.dispatchEvent(new Event("close"));let r=Se.length;for(let a=r-1;a>=0;a--){let c=Se[a];if(c.element===this){this.useHistory&&c.state&&window.history&&window.history.state&&c.state.hash===window.history.state.hash&&(window.removeEventListener("popstate",Mt),window.history.back(),window.history.replaceState(c.previousState,document.title),window.history.scrollRestoration=c.scrollRestoration||"auto",window.addEventListener("popstate",Mt)),i&&((l=(s=c.previousFocus)==null?void 0:s.focus)==null||l.call(s,{preventScroll:!0})),Se.splice(a,1);break}else this.contains(c.element)&&c.element.close(!1)}return Se.length||(window.removeEventListener("popstate",Mt),window.removeEventListener("beforeunload",zr),window.removeEventListener("resize",rt),window.removeEventListener("mousedown",Sr,{capture:!0})),this._closing=!1,!0}}).overrides({onResizeObserved(e){!this.open||this._closing||this.updatePopupPosition()}}).expressions({_ariaHidden({open:e}){return e?"false":"true"}}).html`<mdw-scrim id=scrim tabindex=-1 aria-hidden=true></mdw-scrim><dialog id=dialog aria-modal=true role=dialog aria-hidden={_ariaHidden} scrollable={scrollable}><slot id=slot on-slotchange={onSlotChange}></slot></dialog>`.css`:host([popover]){margin:0;border:0;padding:0}:host(::backdrop){display:none}:host{--mdw-popup__expand-duration:var(--mdw-motion-expand-duration, .25s);--mdw-popup__simple-duration:var(--mdw-motion-simple-duration, .1s);--mdw-popup__standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-popup__deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--mdw-popup__fade-in-duration:var(--mdw-motion-fade-in-duration, .15s);--mdw-shape__size:28px;--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:fixed;inset-block-start:0;inset-inline-start:0;align-self:center;justify-self:center;display:block;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:auto;min-block-size:none;max-block-size:100vh;inline-size:auto;min-inline-size:none;max-inline-size:100vw;outline:0;pointer-events:none;opacity:0;transform:scale(0);visibility:hidden;z-index:24;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition-delay:.2s,0s;transition-duration:0s,.2s,.2s;transition-property:visibility,opacity,transform;transition-timing-function:ease-out;will-change:visibility,opacity,transform}:host([open]){pointer-events:inherit;opacity:1;transform:none;visibility:inherit;transition-delay:0s;transition-timing-function:ease-in}:host([native][open]){opacity:0}#dialog{position:static;inset-block-start:0;inset-inline-start:0;display:contents;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;box-sizing:border-box;block-size:inherit;flex:inherit;margin:0;border:none;padding:inherit;padding:0;pointer-events:inherit;filter:inherit;opacity:1;transform:inherit;visibility:inherit;z-index:24;background-color:transparent;color:inherit}:host([color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([scrollable]){overflow-y:auto}#dialog::backdrop{background-color:transparent}#dialog:modal{position:inherit;inset:inherit;display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:auto;min-block-size:inherit;max-block-size:inherit;inline-size:auto;min-inline-size:inherit;max-inline-size:inherit;flex:inherit;padding:inherit;pointer-events:inherit;filter:inherit;transform:inherit;visibility:inherit;background-color:inherit;border-radius:inherit}#dialog[scrollable][open]{display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:100%;max-block-size:none;inline-size:100%;max-inline-size:none;flex:1}#dialog[scrollable][open]:modal{overflow:auto;block-size:100%;min-block-size:none;max-block-size:inherit;inline-size:100%;min-inline-size:none;max-inline-size:inherit;flex:inherit;padding:inherit}`.childEvents({dialog:{cancel(e){e.stopPropagation();let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)||e.preventDefault()},close(e){e.stopPropagation(),this.close(this.returnValue)},"~click"(e){if(e.target!==e.currentTarget||!this.native||e.offsetX>=0&&e.offsetX<e.currentTarget.offsetWidth&&e.offsetY>=0&&e.offsetY<e.currentTarget.offsetHeight)return;let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)&&this.close()}},scrim:{"~click"(){let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}})}function Cr(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=[],r;for(;r=e.nextNode();){if(r.tagName==="SLOT")for(let o of r.assignedElements())o.tabIndex>=0&&!o.matches(":disabled")&&i.push(o),i.push(...Cr(o));r.tabIndex>=0&&!r.matches(":disabled")&&i.push(r)}return i}function Er(t,e,i=!0){let r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),o=[],n;for(;n=r.nextNode();){if(e&&n.hasAttribute("autofocus")){if(j(n))return!0;continue}if(n.tagName==="SLOT")for(let s of n.assignedElements({flatten:!0})){if(e&&s.hasAttribute("autofocus")){if(j(s))return!0;continue}if(s.tabIndex>=0){if(e||!i)o.push(n);else if(j(n))return!0}if(Er(s,e,i))return!0}if(n.tabIndex>=0){if(e||!i)o.push(n);else if(j(n))return!0}}for(let s of i?o:o.reverse())if(j(s))return!0;return!1}var Do=_.extend().mixin(w).mixin(C).mixin(Pe).define({returnValue(){return this.refs.dialog.returnValue}}).observe({dividers:{value:null},headline:"string",icon:"string",default:{value:"confirm"},cancel:{value:"Cancel"},confirm:{value:"Confirm"}}).define({_anchor:{get(){return null},set(){}}}).set({flow:"center",_useScrim:!0}).methods({onSlotChange({currentTarget:t}){let i=t.assignedNodes().some(r=>r.nodeType===r.ELEMENT_NODE||r.nodeType===r.TEXT_NODE&&r.nodeValue.trim().length);t.toggleAttribute("slotted",i)},focus(){Er(this.shadowRoot,!0,!0)}}).expressions({cancelAutoFocus({default:t}){return t==="cancel"},confirmAutoFocus({default:t}){return t==="confirm"}}).html`<div id=dialog-inner><mdw-icon mdw-if={icon} id=icon class=content ink=secondary aria-hidden=true icon={icon}></mdw-icon><slot id=headline name=headline on-slotchange={onSlotChange} role=header>{headline}</slot><slot id=fixed name=fixed class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-top size={dividers}></mdw-divider><slot id=content name=content></slot><mdw-divider id=divider-bottom size={dividers}></mdw-divider><slot id=actions name=actions><form method=dialog role=none><mdw-button id=cancel type=submit value=cancel autofocus={cancelAutoFocus} formnovalidate>{cancel}</mdw-button><mdw-button id=confirm type=submit value=confirm autofocus={confirmAutoFocus}>{confirm}</mdw-button></form></slot></div>`.recompose(({refs:{dialog:t,dialogInner:e,content:i,slot:r}})=>{t.setAttribute("aria-labelledby","headline"),t.setAttribute("aria-describedby","slot"),r.classList.add("content"),i.append(r),t.prepend(...e.childNodes),e.remove()}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__on-surface);position:fixed;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;overflow:visible;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;max-block-size:calc(100% - 40px);inline-size:max-content;min-inline-size:280px;max-inline-size:min(560px,calc(100% - 40px));padding-block-start:8px;transform:translateY(-40px) scaleY(0);transform-origin:top center!important;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}#dialog:modal{overflow:visible}:host([icon]){align-items:center}#icon{padding-block-start:16px;font-size:24px}#headline{display:block;padding-block-start:16px;padding-inline:24px;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}#headline:not([slotted]):empty{display:none}#body{padding-block:16px}.content{padding-inline:24px}#divider-top{padding-block-start:16px}mdw-divider:not([size]){color:transparent}mdw-divider[size=inset]{padding-inline:24px}#fixed{display:block;padding-block-start:16px;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#fixed:not([slotted]){display:none}#slot{display:block;overflow-y:auto;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#scroller{display:block;overflow-y:auto}#form{display:contents}#actions{display:flex;align-self:flex-end;margin-block:24px;padding-inline:24px}`.events({keydown(t){if(t.key==="Tab"){if(!this.native){t.preventDefault();let e=Cr(this.shadowRoot);t.shiftKey&&e.reverse();let i=!1,r=!1;for(let o of e)if(i){if(j(o)){r=!0;break}}else i=o.matches(":focus");if(!r){for(let o of e)if(j(o))return}}return}if(t.key==="Escape"||t.key==="Esc"){t.preventDefault(),t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}},focusout(t){this.open&&(this._closing||this.modal||t.relatedTarget!==this.refs.scrim&&queueMicrotask(()=>{if(this.matches(":focus-within"))return;let e=document.activeElement;e&&this.contains(e)||this.close(void 0,!1)}))},submit(t){var r;if(t.defaultPrevented)return;let e=t.target;if(!(e instanceof HTMLFormElement)||e.method!=="dialog")return;let i=(r=t.submitter)==null?void 0:r.value;this.close(i)}}).childEvents({dialog:{cancel(t){t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)||t.preventDefault()},close(t){t.stopPropagation(),this.close(this.returnValue)},"~click"(t){if(t.target!==t.currentTarget||!this.native||t.offsetX>=0&&t.offsetX<t.currentTarget.offsetWidth&&t.offsetY>=0&&t.offsetY<t.currentTarget.offsetHeight)return;let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}}).autoRegister("mdw-dialog");var ot=H.extend().mixin($).mixin(Re).set({_ariaRole:"heading",_baseAriaLevel:1}).observe({ariaLevel:"string",size:{type:"string",empty:"large"}}).observe({_computedAriaLevel({ariaLevel:t,size:e,_baseAriaLevel:i}){return t||(e==="medium"?`${i+1}`:e==="small"?`${i+2}`:`${i}`)}}).on({_computedAriaLevelChanged(t,e){this.updateAriaProperty("ariaLevel",e)},constructed(){this.updateAriaProperty("ariaLevel",this._computedAriaLevel)}}).css`:host{font:var(--mdw-typescale__display-large__font);letter-spacing:var(--mdw-typescale__display-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__display-medium__font);letter-spacing:var(--mdw-typescale__display-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__display-small__font);letter-spacing:var(--mdw-typescale__display-small__letter-spacing)}`.autoRegister("mdw-display");var Vo=_.extend().mixin(w).mixin(C).mixin($).set({_ariaRole:"tooltip"}).observe({open:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"true":"false")}}}).html`<div id=hover-target></div><slot id=slot></slot>`.css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-bg:var(--mdw-color__inverse-surface);display:block;box-sizing:border-box;padding-block:calc(12px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:8px;pointer-events:none;opacity:0;transform:scale(0);z-index:28;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition:transform .2s,opacity .2s}@supports (width:1lh){:host{padding-block:calc(12px - .5lh)}}:host([open]){pointer-events:auto;opacity:1;transform:scale(1)}#hover-target{position:absolute;inset-block-start:50%;inset-inline-start:50%;box-sizing:content-box;block-size:100%;inline-size:100%;padding:8px;transform:translate(-50%) translateY(-50%);z-index:-1}`.autoRegister("mdw-tooltip");function Be(t){return t.set({TOOLTIP_MOUSE_IDLE_MS:500,TOOLTIP_TOUCH_IDLE_MS:1500,_idleDebounce:null,_watchedParents:null,_resizeObserver:null,_intersectObserver:null,_parentScrollListener:null,tooltipSlotId:"slot"}).observe({tooltip:"string",autoTooltip:"boolean"}).html`<mdw-tooltip id=tooltip></mdw-tooltip>`.css`#tooltip{display:none}`.methods({cancelShowTooltip(){clearTimeout(this._idleDebounce)},scheduleHideTooltip(e){if(this.cancelShowTooltip(),!this.refs.tooltip.open)return;let i=0;switch(e){case"mouse":i=0;break;case"touch":i=1500;break;default:}this._idleDebounce=setTimeout(()=>{this.hideTooltip()},i)},scheduleShowTooltip(e){if(this.refs.tooltip.open)return;let i=0;switch(e){case"mouse":i=this.TOOLTIP_MOUSE_IDLE_MS;break;case"touch":i=this.TOOLTIP_TOUCH_IDLE_MS;break;default:}clearTimeout(this._idleDebounce),i?this._idleDebounce=setTimeout(this.showTooltip.bind(this),i):this.showTooltip()},showTooltip(){let e=this.refs.tooltip;if(e.open)return;document.body.append(this.refs.tooltip),this.recloneTooltip(),this.updateTooltipPosition(),this._resizeObserver.observe(this,{box:"border-box"}),this._resizeObserver.observe(e,{box:"border-box"}),this._intersectObserver.observe(this),this._intersectObserver.observe(e);let i=this;for(;i=i.offsetParent;)this._resizeObserver.observe(i,{box:"border-box"}),this._watchedParents.push(i),this._intersectObserver.observe(i),i.addEventListener("scroll",this._parentScrollListener);window.addEventListener("scroll",this._parentScrollListener),e.open=!0},hideTooltip(e=!1){e&&this.cancelShowTooltip(),this._resizeObserver.disconnect(),this._intersectObserver.disconnect();let i;for(;i=this._watchedParents.pop();)i.removeEventListener("scroll",this._parentScrollListener);window.removeEventListener("scroll",this._parentScrollListener);let r=this.refs.tooltip;r.open=!1,r.remove()},updateTooltipPosition(e){let r=this.refs.tooltip;Object.assign(r.style,{top:"0",left:"0",right:"auto",bottom:"auto",position:"fixed",maxWidth:null,maxHeight:null});let o={anchor:e??this.getBoundingClientRect(),width:r.clientWidth,height:r.clientHeight},n=getComputedStyle(this).direction==="rtl",s=n?"right":"left",l=n?"left":"right",a=[{clientY:"bottom",clientX:"center",offsetY:8},{clientY:"bottom",clientX:s,offsetY:8},{clientY:"bottom",clientX:l,offsetY:8},{clientY:"top",clientX:"center",offsetY:-8},{clientY:"top",clientX:s,offsetY:-8},{clientY:"top",clientX:l,offsetY:-8}],c;for(let d of a){let m=Et({...o,...d});if((!c||c.visibility<m.visibility)&&(c=m),m.visibility===1)break}Object.assign(r.style,{position:"fixed",...c.styles})},recloneTooltip(){let e,i=this.tooltip;i?e=[i]:e=this.refs[this.tooltipSlotId].assignedNodes().map(r=>r.cloneNode(!0)),this.refs.tooltip.replaceChildren(...e)},closeIfNotHovered(){let e=()=>{this.hoveredState||this.refs.tooltip.matches(":hover")||this.hideTooltip(!0)};et?requestAnimationFrame(e):e()}}).childEvents({slot:{slotchange:"recloneTooltip"},tooltip:{pointerleave:"closeIfNotHovered"}}).events({"~pointermove"(e){e.pointerType!=="touch"&&this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse")},"~keydown"({ctrlKey:e}){e&&this.hideTooltip(!0)},"~click"(){this.hideTooltip(!0)}}).on({constructed(){this._watchedParents=[],this._parentScrollListener=this.updateTooltipPosition.bind(this,null),this._resizeObserver=new ResizeObserver(()=>{this.refs.tooltip.open&&this.updateTooltipPosition()});let e=[0,.49,.5,.51,1];this._intersectObserver=new IntersectionObserver(i=>{let r=this.refs.tooltip;if(r.open){for(let o of i){if(o.intersectionRatio<=0){this.hideTooltip();return}if(o.target===r){this.updateTooltipPosition();return}if(o.target===this){o.intersectionRatio<=.5?this.hideTooltip():this.updateTooltipPosition(o.boundingClientRect);return}}this.updateTooltipPosition()}},{threshold:e})},_focusedChanged(e,i){i?!this._pointerPressed&&!this._focusedSynthetic&&this.autoTooltip&&this.showTooltip():this.closeIfNotHovered()},_hoveredChanged(e,i){i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse"):this.closeIfNotHovered()},_pointerPressedChanged(e,i){this._lastInteraction==="touch"&&(i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("touch"):this.scheduleHideTooltip("touch"))},disconnected(){this.hideTooltip(!0)},tooltipChanged(){this.recloneTooltip()}})}var $o=fe.extend().mixin(Be).observe({lowered:"boolean",extended:"boolean",fabSize:{value:null},filled:{empty:"tonal"},elevated:{type:"boolean",empty:!0}}).observe({autoTooltip({extended:t}){return!t}}).recompose(({refs:{icon:t,slot:e}})=>{t.setAttribute("fab-size","{fabSize}"),e.setAttribute("extended","{extended}"),e.setAttribute("icon","{icon}")}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:16px;gap:0;grid-area:fab;min-inline-size:24px;padding:calc(16px + (var(--mdw-density) * 2px));background-color:rgb(var(--mdw-bg));box-shadow:var(--mdw-elevation__box-shadow__3);color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:box-shadow,gap,min-inline-size}:host(:where([extended])){gap:8px;min-inline-size:48px}#slot{display:inline-flex;align-items:center;min-block-size:24px;visibility:hidden;color:transparent;font-size:0;transition:color .2s,font-size .2s,visibility .2s}#slot[extended]{visibility:inherit;color:inherit;font-size:inherit;transition:color .2s,font-size .2s,visibility 0s}:host([fab-size=small]){--mdw-shape__size:12px;padding:calc(8px + (var(--mdw-density) * 2px))}:host([fab-size=large]){--mdw-shape__size:28px;padding:calc(30px + (var(--mdw-density) * 2px))}#icon{font-size:24px}#icon[fab-size=large]{font-size:36px}:host(:where([lowered])){--mdw-bg:var(--mdw-color__surface-container-low);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where(:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__4)}:host(:where([lowered]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}`.autoRegister("mdw-fab");var Ho=_.extend().mixin(L).observe({hideBreakpoint:{value:728}}).observe({_styles:{...ne,get({hideBreakpoint:t}){if(t)return`@media(min-width:${t}px){:host{display:none}}`}}}).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"fab" auto/auto;justify-content:flex-end;margin:16px;pointer-events:none}@media (min-width:648px){:host{margin:24px}}#slot{pointer-events:auto}`.autoRegister("mdw-fab-container");var Bo=yi.extend().observe({type:{empty:"checkbox"},dropdown:"boolean",trailingSrc:"string",trailingIcon:"string"}).expressions({computedTrailingIcon:({trailingIcon:t,dropdown:e,trailingSrc:i})=>t||(e?"arrow_drop_down":i?"":null),iconVariation({checked:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={!icon} id=check-icon disabled={disabledState} selected={checked} aria-hidden=true icon=check variation=filled></mdw-icon><mdw-icon mdw-if={computedTrailingIcon} id=trailing-icon aria-hidden=true src={trailingSrc} icon={computedTrailingIcon}></mdw-icon>`.recompose(({refs:{icon:t,control:e,outline:i,slot:r,trailingIcon:o,checkIcon:n}})=>{t.setAttribute("mdw-if","{icon}"),t.setAttribute("ink","{iconInk}"),e.removeAttribute("role"),i.removeAttribute("mdw-if"),i.removeAttribute("ink"),i.removeAttribute("color"),i.setAttribute("selected","{checked}"),i.setAttribute("elevated","{elevated}"),i.setAttribute("icon",""),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.removeAttribute("ink"),r.removeAttribute("color"),r.before(n),r.after(o)}).css`:host{--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container);gap:8px;padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)));padding-inline-end:max(12px,calc(16px + (var(--mdw-density) * 2px)));background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}:host(:focus){--mdw-outline__rgb:var(--mdw-color__outline)}#outline{z-index:-1;background-color:transparent}:host(:where([trailing-icon],[dropdown],[trailing-src])){padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)))}#outline[elevated]{background-color:rgb(var(--mdw-color__surface-container-low));border-color:transparent}#outline[selected]{background-color:rgb(var(--mdw-bg));border-color:transparent}:host([selected]){color:rgb(var(--mdw-ink))}#trailing-icon{position:relative;font-size:18px}.mdw-chip__checkbox{position:absolute;max-block-size:0;max-inline-size:0;appearance:none;pointer-events:none}#check-icon{font-size:0}#check-icon[selected]{font-size:18px}#check-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:transparent}#outline[disabled]:is([elevated],[selected]){background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-filter-chip");var Yo=H.extend().mixin(B).observe({grid:"boolean",columns:"integer",_autoColumns:{type:"integer",empty:4},_lastInlineSize:"float"}).observe({_resizeObserverEnabled:{type:"boolean",get({columns:t}){return!t}},_computedColumns({columns:t,_autoColumns:e}){return t||e||4}}).overrides({onResizeObserved(t){let{contentBoxSize:e}=t;if(!e.length)return;let[{inlineSize:i}]=e;this._lastInlineSize=i}}).on({_lastInlineSizeChanged(t,e){e>=840?this._autoColumns=12:e>=600?this._autoColumns=8:this._autoColumns=4},connected(){this._lastInlineSize=this.clientWidth}}).expressions({_isFlex({block:t,grid:e}){return!t&&!e}}).observe({_styles:{...ne,get({_computedColumns:t}){return(t||4)===4?"":{gridTemplateColumns:`repeat(${t},1fr)`}}}}).recompose(({refs:{slot:t}})=>{t.setAttribute("grid","{grid}"),t.setAttribute("flex","{_isFlex}"),t.setAttribute("columns","{_computedColumns}")}).css`:host{display:grid;column-gap:16px;grid-auto-flow:row;grid-template-columns:repeat(1fr,4)}:host([y=start]){align-items:flex-start}:host([y=end]){align-items:flex-end}:host([y=center]){align-items:center}:host([y=between]){align-items:space-between}:host([y=around]){align-items:space-around}:host([y=stretch]){align-items:stretch}:host([x=start]){justify-content:flex-start}:host([x=end]){justify-content:flex-end}:host([x=center]){justify-content:center}:host([x=between]){justify-content:space-between}:host([x=stretch]){justify-content:stretch}#slot,#slot[columns="4"]{--mdw-grid__columns:4;--mdw-grid__columns__4:1;--mdw-grid__columns__8:0;--mdw-grid__columns__12:0}#slot[columns="8"]{--mdw-grid__columns:8;--mdw-grid__columns__4:0;--mdw-grid__columns__8:1;--mdw-grid__columns__12:0}#slot[columns="12"]{--mdw-grid__columns:12;--mdw-grid__columns__4:0;--mdw-grid__columns__8:0;--mdw-grid__columns__12:1}::slotted(*){--mdw-grid__column-count:var(--mdw-grid__columns);--mdw-grid__column-count__4:var(--mdw-grid__column-count);--mdw-grid__column-count__8:var(--mdw-grid__column-count);--mdw-grid__column-count__12:var(--mdw-grid__column-count);grid-column:auto/span calc((min(var(--mdw-grid__column-count__4),4) * var(--mdw-grid__columns__4)) + (min(var(--mdw-grid__column-count__8),8) * var(--mdw-grid__columns__8)) + (min(var(--mdw-grid__column-count__12),12) * var(--mdw-grid__columns__12)))}::slotted([col-span="1"]){--mdw-grid__column-count:1}::slotted([col-span="2"]){--mdw-grid__column-count:2}::slotted([col-span="3"]){--mdw-grid__column-count:3}::slotted([col-span="4"]){--mdw-grid__column-count:4}::slotted([col-span="5"]){--mdw-grid__column-count:5}::slotted([col-span="6"]){--mdw-grid__column-count:6}::slotted([col-span="7"]){--mdw-grid__column-count:7}::slotted([col-span="8"]){--mdw-grid__column-count:8}::slotted([col-span="9"]){--mdw-grid__column-count:9}::slotted([col-span="10"]){--mdw-grid__column-count:10}::slotted([col-span="11"]){--mdw-grid__column-count:11}::slotted([col-span="12"]){--mdw-grid__column-count:12}::slotted([col-span="25%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 4)}::slotted([col-span="50%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 2)}::slotted([col-span="100%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns))}::slotted([col-span-4="1"]){--mdw-grid__column-count__4:1}::slotted([col-span-4="2"]){--mdw-grid__column-count__4:2}::slotted([col-span-4="3"]){--mdw-grid__column-count__4:3}::slotted([col-span-4="4"]){--mdw-grid__column-count__4:4}::slotted([col-span-8="1"]){--mdw-grid__column-count__8:1}::slotted([col-span-8="2"]){--mdw-grid__column-count__8:2}::slotted([col-span-8="3"]){--mdw-grid__column-count__8:3}::slotted([col-span-8="4"]){--mdw-grid__column-count__8:4}::slotted([col-span-8="5"]){--mdw-grid__column-count__8:5}::slotted([col-span-8="6"]){--mdw-grid__column-count__8:6}::slotted([col-span-8="7"]){--mdw-grid__column-count__8:7}::slotted([col-span-8="8"]){--mdw-grid__column-count__8:8}::slotted([col-span-12="1"]){--mdw-grid__column-count__12:1}::slotted([col-span-12="2"]){--mdw-grid__column-count__12:2}::slotted([col-span-12="3"]){--mdw-grid__column-count__12:3}::slotted([col-span-12="4"]){--mdw-grid__column-count__12:4}::slotted([col-span-12="5"]){--mdw-grid__column-count__12:5}::slotted([col-span-12="6"]){--mdw-grid__column-count__12:6}::slotted([col-span-12="7"]){--mdw-grid__column-count__12:7}::slotted([col-span-12="8"]){--mdw-grid__column-count__12:8}::slotted([col-span-12="9"]){--mdw-grid__column-count__12:9}::slotted([col-span-12="10"]){--mdw-grid__column-count__12:10}::slotted([col-span-12="11"]){--mdw-grid__column-count__12:11}::slotted([col-span-12="12"]){--mdw-grid__column-count__12:12}`.autoRegister("mdw-grid");var jo=ot.extend().set({_baseAriaLevel:4}).css`:host{font:var(--mdw-typescale__headline-large__font);letter-spacing:var(--mdw-typescale__headline-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}`.autoRegister("mdw-headline");var Wo=fe.extend().mixin(Be).set({_allowedTypes:["button","submit","reset","checkbox","file"]}).observe({_ariaPressed:{get({type:t,checked:e,indeterminate:i}){return t!=="checkbox"?null:i?"mixed":e?"true":"false"}},_isToggle({type:t}){return t==="checkbox"},autoTooltip:{empty:!0}}).expressions({iconVariation({checked:t,outlined:e,_isToggle:i}){return!t&&(i||e)?null:"filled"}}).childEvents({control:{keydown(t){if(t.key!=="Enter"&&t.key!==" ")return;let e=t.currentTarget;e.type==="checkbox"&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),!e.disabled&&e.click())}}}).recompose(({refs:{icon:t,control:e,outline:i}})=>{t.removeAttribute("mdw-if"),e.setAttribute("aria-pressed","{_ariaPressed}"),i.setAttribute("toggle","{_isToggle}"),i.setAttribute("selected","{checked}")}).observe({_styles:{...ne,get({checked:t,disabled:e,filled:i,outlined:r,_isToggle:o}){return!o||e?null:r?t?{backgroundColor:"rgb(var(--mdw-bg))"}:{color:"rgb(var(--mdw-color__on-surface-variant))"}:t||i==null?null:{backgroundColor:"rgb(var(--mdw-color__surface-container-highest))",color:i==="tonal"?"rgb(var(--mdw-color__on-surface-variant))":"rgb(var(--mdw-bg))"}}}}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:rgb(var(--mdw-color__on-surface-variant));align-items:center;justify-content:center;min-block-size:1em;min-inline-size:1em;padding:max(8px,calc(8px + (var(--mdw-density) * 2px)));font-size:24px;transition-property:background-color,box-shadow}:host(:where([type=checkbox])){--mdw-ink:var(--mdw-color__primary)}:host(:where([filled])){--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary)}:host(:where([filled=tonal])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__on-surface-variant);background-color:transparent}:host(:where([outlined][type=checkbox])){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}#slot{display:none}#icon{pointer-events:none;font-size:inherit;transition-property:color,inline-size,width}#state{z-index:1}#ripple-container{z-index:2}#outline[focused]{opacity:1;color:inherit}#outline[focused][toggle]{color:rgb(var(--mdw-color__outline))}#outline[selected]:not([disabled]){opacity:0}`.autoRegister("mdw-icon-button");function ze(t){return t.mixin(G).mixin(C).set({stateLayer:!0}).observe({type:{empty:"text"},icon:"string",iconVariation:"string",label:"string",filled:"boolean",outlined:"boolean",inputPrefix:"string",inputSuffix:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconLabel:"string",supporting:"string",error:"string",placeholder:{nullParser:String}}).observe({erroredState({error:e,_invalid:i,_userInteracted:r}){return r&&!!(e||i)}}).expressions({computePlaceholder({filled:e,outlined:i,label:r,placeholder:o}){return e||i?o:o??r},shouldShowSupporting({erroredState:e,supporting:i}){return e||i!=null},computeSupportingText({error:e,erroredState:i,_validationMessage:r,supporting:o}){return(e||i&&r||o)??""},populatedState({value:e,_badInput:i}){return!!e||i},_showLabelText({label:e,filled:i,outlined:r}){return e&&(i||r)}}).expressions({_shapeShapeTop({shapeTop:e,filled:i}){return e||i},computedIconVariation({iconVariation:e,outlined:i}){return e??(i?null:"filled")}}).html`<div id=shape role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined} shape-top={_shapeShapeTop}><mdw-icon mdw-if={icon} id=icon aria-hidden=true disabled={disabledState} icon={icon} variation={computedIconVariation}></mdw-icon><div id=inline role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined}><span mdw-if={inputPrefix} class=inline id=prefix aria-hidden=true focused={focusedState} populated={populatedState}>{inputPrefix}</span> <span mdw-if={inputSuffix} class=inline id=suffix aria-hidden=true focused={focusedState} populated={populatedState}>{inputSuffix}</span></div><mdw-icon-button tabindex=-1 disabled={disabledState} mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} disabled={disabledState} icon={trailingIcon}>{trailingIconLabel}</mdw-icon-button><div mdw-if={filled} id=indicator aria-hidden=true focused={focusedState} hovered={hoveredState} errored={erroredState} disabled={disabledState}></div></div><div id=label-text mdw-if={_showLabelText} aria-hidden=true outlined={outlined} populated={populatedState} focused={focusedState} icon={icon} trailing-icon={trailingIcon} disabled={disabledState} errored={erroredState}>{label}</div><div mdw-if={shouldShowSupporting} id=supporting disabled={disabledState} errored={erroredState}>{computeSupportingText}<slot id=supporting-slot name=supporting></slot></div>`.recompose(({html:e,refs:{control:i,outline:r,state:o,shape:n,inline:s}})=>{i.setAttribute("placeholder","{computePlaceholder}"),i.setAttribute("aria-label","{label}"),i.setAttribute("input-suffix","{inputSuffix}"),i.setAttribute("errored","{erroredState}"),i.setAttribute("aria-describedby","supporting"),i.removeAttribute("aria-labelledby"),i.classList.add("inline"),o.setAttribute("mdw-if","{!outlined}"),r.append(e`<div id=outline-left class=outline-section focused={focusedState}></div><div id=gap label={label} populated={populatedState} focused={focusedState}><div id=gap-slot focused={focusedState}></div><span id=gap-label>{label}</span></div><div id=outline-right class=outline-section focused={focusedState}></div>`),r.setAttribute("label","{label}"),r.setAttribute("errored","{erroredState}"),n.prepend(r,o),s.prepend(i)}).on({sizeChanged(e,i){this.refs.control.style.setProperty("--size",`${i}ch`)}}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-text-field__ratio:calc(var(--mdw-density) * .125 + 1);--control__margin-top:calc(var(--mdw-typescale__body-small__line-height) / 2);--control__padding-top:calc((var(--mdw-text-field__ratio) * 16px) - calc(var(--mdw-typescale__body-small__line-height) / 2));--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 16px);--control__margin-bottom:0px;--inline-color:rgb(var(--mdw-color__on-surface-variant));--descriptor-opacity:.5;--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-type__font:var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__body-large__letter-spacing);display:inline-block;border-radius:0;color:rgb(var(--mdw-color__on-surface));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:is([color],[ink])){background-color:transparent;color:rgb(var(--mdw-color__on-surface))}#shape[label][outlined]{--mdw-shape__size__top-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__top-end-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-end-size:min(var(--mdw-shape__size), 12px)}#shape{position:relative;display:flex;cursor:inherit;z-index:0;background-color:transparent;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size));font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#inline{display:flex;align-items:center;overflow:visible;flex:1;padding-block:var(--control__margin-top) var(--control__margin-bottom);cursor:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#shape:where([filled],[color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-color__on-surface))}#shape[outlined]{background-color:transparent}#indicator,#label-text{color:rgb(var(--mdw-color__on-surface-variant))}:is(#label-text,#indicator)[focused]{color:rgb(var(--mdw-ink))}#shape[focused]{transition:none .1s cubic-bezier(.4,0,1,1)}#shape[shape-top]{--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}#control::placeholder,#prefix,#suffix{opacity:var(--descriptor-opacity);color:var(--inline-color);transition-duration:inherit;transition-property:opacity;transition-timing-function:inherit;will-change:opacity}:host([label]:is([filled],[outlined])){--descriptor-opacity:0}#control{position:relative;inset:auto;align-self:flex-start;display:inline-block;box-sizing:border-box;block-size:auto;min-block-size:0;inline-size:100%;min-inline-size:0;flex:1;border-block-end:solid var(--control__margin-bottom) transparent;padding-block:var(--control__padding-top) var(--control__padding-bottom);appearance:none;caret-color:rgb(var(--mdw-ink));cursor:auto;transform:none;visibility:inherit;background-color:transparent;border-color:transparent;color:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;text-align:initial;transition-duration:inherit;transition-property:color;transition-timing-function:inherit}#prefix,#suffix{padding-block:var(--control__padding-top) var(--control__padding-bottom)}#control::selection{background-color:rgb(var(--mdw-ink));color:rgb(var(--mdw-color__surface))}#state{--mdw-state__focused-opacity:0;--mdw-state__pressed-opacity:0}mdw-icon{--mdw-icon__size:24px;align-self:center;color:var(--inline-color)}#icon{order:-2;margin-inline-start:12px;font-size:24px}#prefix{order:-1}#suffix{order:1}#trailing-icon{order:2;margin-inline-end:12px}#indicator{position:absolute;inset-block-end:0;inset-inline:0;border-block-end:2px solid currentColor;pointer-events:none;transform:scaleY(.5);z-index:1;transition-duration:inherit;transition-property:transform;transition-timing-function:inherit;will-change:transform}#indicator[focused]{transform:scaleY(1)}#label-text{position:absolute;inset-block-start:0;inset-inline:0;display:block;overflow-x:clip;overflow-y:visible;padding-inline:16px;pointer-events:none;opacity:1;transform:translateY(calc((var(--control__margin-top) + var(--control__padding-top) + 100% + var(--control__padding-bottom) + var(--control__margin-bottom))/ 2)) translateY(-50%);z-index:4;color:rgb(var(--mdw-color__on-surface-variant));text-overflow:ellipsis;white-space:nowrap;transition-duration:.2s;transition-property:inset-inline-start,font-size,transform;will-change:inset-inline-start,font-size,transform}@supports (-moz-appearance:none){#label-text{overflow-x:hidden}}#label-text[focused]{color:rgb(var(--mdw-ink))}#label-text[icon]{inset-inline-start:36px}#label-text[trailing-icon]{inset-inline-end:36px}#label-text:is([focused],[populated]){transform:translateY(calc(var(--mdw-text-field__ratio) * 8px));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#label-text[outlined]:is([focused],[populated]){inset-inline:0;transform:translateY(-50%)}:is(#prefix,#suffix):is([focused],[populated]){opacity:1}#control:is(:focus,:not(:placeholder-shown))::placeholder{opacity:.7}#control[input-suffix]{text-align:end}#outline{position:absolute;inset:0;border-style:solid;border-width:0;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}#outline:before{content:none}.outline-section{position:relative;border:1px solid currentColor}.outline-section[focused]{border-width:2px}#outline-left{border-right-width:0;border-top-left-radius:inherit;border-bottom-left-radius:inherit}#outline-right{border-left-width:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit}#outline{display:grid;grid-auto-flow:column;grid-template-columns:1fr 0 1fr;color:rgb(var(--mdw-color__outline))}#outline[label]{grid-template-columns:12px minmax(0,auto) minmax(12px,1fr)}#outline[hovered]{color:rgb(var(--mdw-color__on-surface))}#outline[focused]{color:rgb(var(--mdw-ink))}.outline-section{min-inline-size:12px}.outline-section:after,.outline-section:before{max-inline-size:none}.outline-left{grid-column:calc(2 - var(--mdw-dir,1))/span 1}.outline-right{grid-column:calc(2 + var(--mdw-dir,1))/span 1}#gap{position:relative;display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition-duration:inherit;transition-property:padding;transition-timing-function:inherit}#gap-label{display:inline-block;overflow:clip hidden;padding-inline:4px;color:transparent;white-space:nowrap}#gap:after{content:"";position:absolute;inset:0;border-block-end:solid 1px currentColor}#gap[focused]:after{border-block-end-width:2px}#gap-slot{position:absolute;inset:0}#gap-slot:after,#gap-slot:before{content:"";position:absolute;inset:0;border-block-start:solid 1px currentColor;transition:transform .2s;will-change:transform}#gap-slot[focused]:after,#gap-slot[focused]:before{border-block-start-width:2px}#gap-slot:before{margin-right:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:0 0}#gap-slot:after{margin-left:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:100% 0}#gap:is([focused],[populated]){--gap-transform:scaleX(0)}#gap:empty{padding:0}#inline[label][filled]{align-items:flex-start}:host([filled]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-text-field__ratio:calc(var(--mdw-density) * .25 + 1)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 4px);--control__margin-bottom:calc(var(--mdw-text-field__ratio) * 4px)}#supporting{min-block-size:var(--mdw-typescale__body-small__line-height);margin-block-start:4px;margin-inline:16px;font-weight:var(--mdw-typescale__body-small__font-weight);font-size:var(--mdw-typescale__body-small__font-size);line-height:var(--mdw-typescale__body-small__line-height);font-family:var(--mdw-typescale__body-small__font-family);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#control[errored]{caret-color:rgb(var(--mdw-color__error))}#control[errored]::selection{background-color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]{color:rgb(var(--mdw-color__error))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([hovered]){color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([focused]){color:rgb(var(--mdw-color__error))}#shape[disabled],#shape[disabled] #control{cursor:not-allowed}#outline[disabled]{color:rgba(var(--mdw-color__outline),.12)}#label-text[disabled],#supporting[disabled],.inline[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}mdw-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]{background-color:rgba(var(--mdw-color__on-surface),.04);color:rgba(var(--mdw-color__on-surface),.38)}#indicator[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled][outlined]{background-color:transparent}`}var Si=_.extend().mixin(w).mixin(U).mixin(C).mixin(Pe).observe({elevation:"integer"}).css`:host{filter:var(--mdw-elevation__drop-shadow__0);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-popup");var be;function nt(){return be||(be=new Si,be.scrollable=!0,be.shapeStyle="extra-small",be.color="surface",be.matchSourceWidth=!0,be.flow="corner",be.elevation=2),be}var Uo=_.extend().mixin(w).mixin(N).mixin(K).mixin(ze).mixin(B).observe({autocompleteInline:"boolean",autocompleteList:"string",autosuggestInline:"boolean",autoSelect:"boolean",_expanded:"boolean",acceptOnEscape:"boolean",_listbox:{type:"object",value:null},_focusedValue:"string",_focusedPosInSet:{value:-1},_listboxSize:{value:-1},_draftInput:{type:"string",nullable:!1},_hasSuggestion:"boolean",_listboxValue:"string",_lastComputedListboxValue:{type:"string",nullable:!1},_values:{type:"array",value:[]},_chipSelected:"boolean"}).observe({_hasListbox({_listbox:t}){return!!t},_isSelect({type:t}){return t.toLowerCase()==="select-one"||t.toLocaleLowerCase()==="select-multiple"}}).define({listbox(){return this._listbox}}).set({_onListboxChangeListener:null,_onListboxClickListener:null,_onPopupFocusoutListener:null,_suggestionText:"",_suggestionValue:"",_suggestionOption:null}).define({stateTargetElement(){return this.refs.control}}).methods({onResizeObserved(){this._expanded&&nt().updatePopupPosition(this.refs.shape)},onListboxClick(t){this.closeListbox(),this.refs.control.focus()},onListboxChange(t){if(this.multiple){let o=[...this._listbox.selectedOptions].map(n=>n.value);this._values=o,this._input.value&&this.closeListbox();return}let e=this._listbox.selectedOptions.item(0);this.render({selectedOption:e});let{label:i,value:r}=e;this._suggestionText=i,this._suggestionValue=r,this._suggestionOption=e,this._hasSuggestion=!0,this.acceptSuggestion(!0),this.closeListbox(),this.refs.control.focus()},onPopupFocusout({relatedTarget:t}){this._expanded&&(t&&(this===t||this.contains(t)||nt().contains(t))||this.closeListbox())},applyAutocompleteList(){let{_listbox:t,_draftInput:e}=this;if(!t)return;let i=e.toLowerCase();for(let r of t)r.hidden=!r.label.toLowerCase().startsWith(i)},showListbox(){let t=this._listbox;if(!t)return;this._expanded=!0;let{ariaListbox:e,shape:i}=this.refs;e.setAttribute("aria-hidden","false");let r=nt();"popover"in r?(this.insertAdjacentElement("afterend",r),r.popover="manual",r.showPopover()):document.body.append(r),r.replaceChildren(t),r.showPopup(i,!1),r.addEventListener("focusout",this._onPopupFocusoutListener),!this._isSelect&&!this.multiple&&(t.value=this._listboxValue);let[o]=t.selectedOptions;o&&o.scrollIntoView({behavior:"instant",block:"nearest"})},closeListbox(){this._expanded=!1;let{_listbox:t}=this;if(!t)return;let e=nt();this.refs.ariaListbox.setAttribute("aria-hidden","true"),this.replaceChildren(t),e.close(void 0,!1),e.remove()},toggleListbox(){this._expanded?this.closeListbox():this.showListbox()},suggestOption(t){this.render({selectedOption:t});let{_draftInput:e,_input:i,_isSelect:r,autocompleteInline:o,_expanded:n,autoSelect:s}=this,{label:l,value:a}=t;if(this._suggestionText=l,this._suggestionValue=a,this._suggestionOption=t,this._hasSuggestion=!0,s){this.acceptSuggestion(!0);return}if(r&&!this.multiple||o){let c=l,d=0;n?!r&&l.toLowerCase().startsWith(e.toLowerCase())?(c=e+l.slice(e.length),d=e.length):d=l.length:d=0,i.value=c,o&&i.setSelectionRange(d,l.length),n||this.acceptSuggestion(!0)}},acceptSuggestion(t=!1){if(!this._hasSuggestion||this.readOnly)return;let{_suggestionText:e,_suggestionValue:i,_input:r,multiple:o,_listbox:n,_values:s}=this;if(o){let l=[...s.filter(Boolean),i??e];this._values=[...new Set(l)]}else this.value=i,r.value=e,this._draftInput=e,n.value=i;t&&this.dispatchEvent(new Event("change",{bubbles:!0}))},changeSuggestion({first:t,last:e,next:i,previous:r,startsWith:o,value:n,label:s}){let l=this._listbox,a,c,d,m,p,f=-1,h=-1;for(let u of l.options){if(h++,!d&&u.focused&&(d=u,m=h,a&&!i&&!e))break;if(!u.hidden){if(e){a=u,c=h;continue}if(t){a||(a=u,c=h);continue}if(o!=null){!a&&u.label.toLowerCase().startsWith(o)&&(a=u,c=h);continue}if(n!=null){!a&&u.value===n&&(a=u,c=h);continue}if(s!=null){!a&&u.label===s&&(a=u,c=h);continue}if(m!==h){if(r)a=u,c=h;else if(i)if(d){a=u,c=h;break}else p||(p=u,f=h)}}}if(d&&d!==a&&(d.focused=!1),a||(c=f,a=p,this._input.value=this._draftInput),c===-1){this._focusedPosInSet=-1,this._hasSuggestion=!1;return}this._focusedPosInSet=c+1,a.focused=!0,a.scrollIntoView({behavior:"instant",block:"nearest"}),this.suggestOption(a)},resetSuggestion(){this._isSelect?this.changeSuggestion({label:this._draftInput}):this.changeSuggestion({value:this._listboxValue})},refreshMultiple(){let{_values:t,multiple:e}=this;if(!e){this.refs.chips.replaceChildren();return}let i=this.refs.chips.firstElementChild;for(let r=0;r<t.length;r++){let o=t[r],n;if(this.listbox){for(let s of this.listbox.options)if(s.value===o){n=s;break}}i??=this.refs.chips.appendChild(document.createElement("mdw-input-chip")),i.closeButton=!0,i.textContent=(n==null?void 0:n.label)||o,i.textContent=(n==null?void 0:n.label)||o,i.disabled=this.disabled,i.readOnly=this.readOnly,i.onclose??=this.onChipClose.bind(this),i=i.nextElementSibling}for(;i;){let r=i;i=i.nextElementSibling,r.remove()}if(this._chipSelected=!1,this._input.value="",this._draftInput="",this._listboxValue="",this.listbox)for(let r of this.listbox.options)r.selected=t.includes(r.value)},populateInputFromListbox(){if(this.multiple){this.refreshMultiple();return}if(!this._isSelect||!this._listbox)return;this._listbox.value=this._value;let[t]=this._listbox.selectedOptions;t&&(this._input.value=t.label,this._draftInput=t.label)},onChipClose({currentTarget:t}){let e=t,i=0;for(;e=e.previousSibling;)i++;t.remove(),this._values.splice(i,1),this._values=[...this._values]}}).childEvents({control:{click(){this._isSelect&&(this.readOnly||this.toggleListbox())},input(t){if(!this._hasListbox)return;if(t.stopPropagation(),!this.dispatchEvent(new InputEvent("input",{composed:!0,data:t.data,bubbles:!0,dataTransfer:t.dataTransfer,detail:t.detail,inputType:t.inputType,view:t.view,targetRanges:t.getTargetRanges(),isComposing:t.isComposing}))){t.preventDefault();return}let i=t.currentTarget.value;this._draftInput=i,this.autocompleteList!=null&&this.autocompleteList!=="custom"&&this.applyAutocompleteList(),this.resetSuggestion(),i&&!this._expanded&&this._listbox.length&&this.showListbox(),t.data!=null&&this.autosuggestInline&&this.changeSuggestion({startsWith:this._draftInput.toLocaleLowerCase()})},keydown(t){if(this._listbox){switch(t.key){case"Home":if(!this._isSelect||this.readOnly)return;this.changeSuggestion({first:!0});break;case"End":if(this._chipSelected=!1,!this._isSelect||this.readOnly)return;this.changeSuggestion({last:!0});break;case"ArrowDown":case"Down":if(this.disabled||this.readOnly||(this._chipSelected=!1,this.readOnly))return;if(t.altKey){this.toggleListbox();break}if(!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({next:!0});break;case"ArrowUp":case"Up":if(this.disabled||this.readOnly)return;if(t.altKey){this.toggleListbox();break}if(this._chipSelected=!1,!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({previous:!0});break;case"Escape":if(!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptOnEscape?this.acceptSuggestion(!0):this.resetSuggestion(),this.closeListbox();break;case"Space":if(this.disabled||this.readOnly||!this._isSelect||!this._listbox)return;this._expanded?this.multiple&&this._suggestionOption&&(this._suggestionOption.selected=!this._suggestionOption.selected,this.closeListbox()):this.showListbox();break;case"Backspace":if(this.disabled||this.readOnly||!this.multiple||this._isSelect)return;this._input.value||(this._chipSelected?(this._values.pop(),this._values=[...this._values]):this._values.length&&(this._chipSelected=!0));return;case"Tab":if(!this._expanded&&this.multiple)return;this.closeListbox(),this.acceptSuggestion(!0),t.stopPropagation();return;case"Enter":if(this._chipSelected=!1,!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptSuggestion(!0),this.closeListbox();break;case" ":return;default:if(this._isSelect&&t.key.length===1){this.changeSuggestion({startsWith:t.key.toLocaleLowerCase()});break}return}t.stopPropagation(),t.preventDefault()}}},slot:{slotchange({currentTarget:t}){if(this._expanded)return;let[e]=t.assignedElements(),i=this._listbox;i!==e&&(i&&(i.removeEventListener("change",this._onListboxChangeListener),i.removeEventListener("click",this._onListboxClickListener),i._handleFormReset=!0),this._listbox=e,e&&(this.multiple||(e.required=!0),i._handleFormReset=!1,e.addEventListener("change",this._onListboxChangeListener),e.addEventListener("click",this._onListboxChangeListener),this.populateInputFromListbox()))}},trailingIcon:{"~click"(){this._listbox&&(this.toggleListbox(),this.refs.control.focus())}}}).events({blur({relatedTarget:t}){if(this._chipSelected=!1,!this._expanded)return;let e=nt();e!==t&&(t&&e.contains(t)||e.matches(":focus-within,:focus")||this.closeListbox())}}).expressions({showTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i,readOnly:r}){return t??(e&&!r?i?"arrow_drop_up":"arrow_drop_down":null)},computedTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i}){return t??(e?i?"arrow_drop_up":"arrow_drop_down":null)},controlTypeAttrValue({_isSelect:t,type:e}){return t?"text":e},controlReadonlyAttrValue({_isSelect:t,type:e,readOnly:i}){return t?!0:i},controlIsSelect({_isSelect:t,type:e}){return t},ariaExpandedAttrValue({_hasListbox:t,_expanded:e}){return t?`${e}`:null},ariaControlsAttrValue({_hasListbox:t}){return t?"aria-listbox":null},ariaAutocompleteAttrValue({_hasListbox:t,autocompleteList:e,_isSelect:i}){return!t||i?null:e!=null?"both":"inline"},ariaActiveDescendantAttrValue({_hasListbox:t,_expanded:e,_focusedValue:i}){return t?e&&i?"aria-active":"":null},controlRoleAttrValue({_hasListbox:t}){return t?"combobox":null},populatedState({value:t,_badInput:e,_draftInput:i,type:r}){return!!t||e||!!i||r==="datetime-local"}}).recompose(({refs:{control:t,trailingIcon:e,shape:i,labelText:r}})=>{t.setAttribute("aria-activedescendant","{ariaActiveDescendantAttrValue}"),t.setAttribute("aria-autocomplete","{ariaAutocompleteAttrValue}"),t.setAttribute("aria-controls","{ariaControlsAttrValue}"),t.setAttribute("aria-expanded","{ariaExpandedAttrValue}"),t.setAttribute("type","{controlTypeAttrValue}"),t.setAttribute("role","{controlRoleAttrValue}"),t.setAttribute("readonly","{controlReadonlyAttrValue}"),t.setAttribute("autocomplete","off"),t.setAttribute("is-select","{controlIsSelect}"),e.setAttribute("mdw-if","{showTrailingIcon}"),e.setAttribute("icon","{computedTrailingIcon}"),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.setAttribute("trailing-icon","{computedTrailingIcon}")}).overrides({_onSetValue(t){this.multiple?this._values=t.split(",").filter(Boolean):this._isSelect?this._value=t:(this._input.value=t,this._value=this._input.value)},_onControlValue(t){if(this.multiple){t&&(this._chipSelected=!1);return}this._value=t}}).on({_valueChanged(t,e){this.multiple||(this._isSelect?this.populateInputFromListbox():this._listboxValue=e)},_valuesChanged(t,e){this.multiple&&e&&(this._value=e.join(","),this.refreshMultiple())},_chipSelectedChanged(t,e){if(!this.multiple)return;let i=this.refs.chips.lastElementChild;i&&(i.selected=e)},_listboxValueChanged(t,e){this._hasListbox&&(this._listbox.value=e,this._draftInput=e,this.changeSuggestion({value:e}))},_expandedChanged(t,e){this._useFormImplicitSubmission=!e},constructed(){this._onListboxChangeListener=this.onListboxChange.bind(this),this._onListboxClickListener=this.onListboxClick.bind(this),this._onPopupFocusoutListener=this.onPopupFocusout.bind(this),document.addEventListener("DOMContentLoaded",()=>this.populateInputFromListbox(),{once:!0})},multipleChanged(t,e){this.listbox&&(this.listbox.multiple=e),e&&this._onSetValue(this._input.value)},disabledStateChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()},readOnlyChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()}}).html`<div id=chips mdw-if={multiple}></div><slot id=slot></slot><div id=aria-listbox role=listbox mdw-if={_hasListbox}><div id=aria-active role=option aria-hidden=false aria-label={selectedOption.label} aria-setsize={_listbox.length} aria-posinset={_focusedPosInSet}></div></div>`.css`#slot,#aria-listbox{display:none}#trailing-icon{align-self:center}#control:where([type=button],[is-select]){cursor:pointer}#inline[multiple]{gap:8px}mdw-input-chip{align-self:baseline}#control[multiple]{align-self:baseline}#chips{display:contents}#inline{flex-wrap:wrap}#inline:where([filled],[outlined]){padding-inline:16px}#control{flex:1 1 8ch}#control[is-select][multiple]{flex:1 1 0px}`.recompose(({refs:{inline:t,chips:e}})=>{t.prepend(e),t.setAttribute("multiple","{multiple}")}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-input");var Xo=H.extend().mixin(C).mixin(L).mixin(ee).observe({avatar:"boolean",closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},readOnly:{attr:"readonly",type:"boolean"},disabled:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string",onclose:oe,selected:"boolean"}).set({outlined:!0}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},showCloseIcon({disabled:t,readOnly:e,closeButton:i}){return i&&!t&&!e}}).html`<mdw-button role=none tabindex=-1 href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabled}></mdw-button><mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabled} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon} avatar={avatar}></mdw-icon><mdw-icon-button role=none disabled={disabled} tabindex=-1 mdw-if={showCloseIcon} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);position:relative;display:inline-flex;align-items:center;flex-direction:row;gap:8px;padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([icon])){padding-inline-start:calc(8px + (var(--mdw-density) * 2px))}:host(:where([avatar])){padding-inline-start:calc(4px + (var(--mdw-density) * 2px))}:host(:where([close-button]:not([disabled]):not([readonly]))){padding-inline-end:calc(8px + 18px + 8px + (var(--mdw-density) * 2px))}#action{--mdw-shape__size:inherit;position:absolute;inset:0;padding:0}#close{position:absolute;inset-inline-end:5px;padding:3px;font-size:18px}#icon{font-size:18px}#icon[avatar]{font-size:24px}#close::part(control){min-inline-size:34px}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color],[disabled]){--mdw-ink:inherit}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}`.childEvents({action:{click(){this.dispatchEvent(new Event("action"))}},close:{click(){this.dispatchEvent(new Event("close"))}}}).on({selectedChanged(t,e){this.refs.action._focused=e}}).recompose(({refs:{anchor:t,slot:e,icon:i,outline:r}})=>{i.after(e),t.remove(),e.setAttribute("disabled","{disabled}"),e.removeAttribute("ink"),e.removeAttribute("color"),r.removeAttribute("mdw-if"),r.setAttribute("ink","{ink}"),r.setAttribute("color","{color}"),r.setAttribute("disabled","{disabled}")}).autoRegister("mdw-input-chip");var qo=H.extend().mixin(Re).css`:host{font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-label");var zi=H.extend().mixin(G).mixin($).set({_ariaRole:"list",color:{empty:"surface"}}).css`:host{display:block;padding-block:8px;color:rgb(var(--mdw-ink))}`.autoRegister("mdw-list");function Ci(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string"}).css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__mask:none;--mdw-shape__rounded:1;--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));border-start-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(transparent 50%, black 50%)}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px;--mdw-shape__mask:linear-gradient(black 50%, transparent 50%)}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), black 50%, transparent 50%)}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), transparent 50%, black 50%)}@supports (-webkit-mask-box-image:none){:host{--mdw-shape__rounded:inherit}}@supports (-webkit-mask-box-image:none){:host{-webkit-mask-box-image:var(--mdw-shape__mask-border-source) 8 fill/var(--mdw-shape__size) stretch;-webkit-mask:var(--mdw-shape__mask);transition-duration:.2s;transition-property:-webkit-mask-box-image-width;will-change:-webkit-mask-box-image}}`}var Go=_.extend().mixin(Ci).html`<slot id=slot></slot>`.autoRegister("mdw-shape");var Ko=_.extend().mixin(w).mixin(C).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",hovered:"boolean",focused:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).html`<mdw-shape id=inner-shape selected={selected}></mdw-shape>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}")}).css`:host{--disabled-opacity:.38;--mdw-ink:rgb(var(--mdw-color__primary));--color:rgb(var(--mdw-color__on-surface-variant));--mdw-shape__size:var(--mdw-shape__full);position:relative;display:inline-block;block-size:20px;inline-size:20px;background-color:transparent;transition:opacity .2s}#outline{border-width:2px;color:var(--color);will-change:color}#inner-shape{position:absolute;inset:0;transform:scale(0);background-color:var(--color);border-radius:inherit;transition:transform .2s,background-color .1s}:host([hovered]){--color:rgb(var(--mdw-color__on-surface))}:host([focused]){--color:rgb(var(--mdw-color__on-surface))}:host([selected]){--color:rgb(var(--mdw-ink))}:host([errored]){--color:rgb(var(--mdw-color__error))}:host([disabled]){--color:rgba(var(--mdw-color__on-surface));opacity:var(--disabled-opacity)}#inner-shape[selected]{transform:scale(.5)}`.autoRegister("mdw-radio-icon");var Ei=_.extend().mixin(w).mixin(N).mixin(Q).mixin($).mixin(ee).set({_ariaRole:"listitem",stateLayer:!0}).observe({leading:"string",avatar:"string",avatarColor:{value:"primary-container"},avatarSrc:"string",src:"string",alt:"string",icon:"string",iconInk:"string",iconSrc:"string",iconVariation:"string",checkbox:"string",radio:"string",selectionColor:{value:"primary"},selected:"boolean",supporting:"string",trailing:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconSrc:"string",divider:"string",video:"boolean",lines:"integer",_supportingSlotted:"boolean"}).observe({disabledState({disabled:t}){return t}}).expressions({isInteractive({href:t}){return t!=null},hasSupporting(){return!!(this.supporting||this._supportingSlotted)},checkboxClass(){return this.checkbox||"leading"},radioClass(){return this.radio||"leading"},computedIconVariation({iconVariation:t}){return t??"filled"}}).html`<mdw-checkbox-icon id=checkbox mdw-if={checkbox} aria-hidden=true class={checkboxClass} color={selectionColor} disabled={disabledState} icon=check selected={selected}></mdw-checkbox-icon><mdw-radio-icon id=radio mdw-if={radio} aria-hidden=true class={radioClass} disabled={disabledState} ink={selectionColor} selected={selected}></mdw-radio-icon><mdw-box mdw-if={avatar} id=avatar color={avatarColor} x=center y=center type-style=title-medium src={AvatarSrc} aria-hidden=true>{avatar}</mdw-box><mdw-icon mdw-if={icon} id=icon ink={iconInk} src={iconSrc} aria-hidden=true icon={icon} variation={computedIconVariation}></mdw-icon><img id=img mdw-if={src} src={src} alt={alt} video={video}><slot name=leading>{leading}</slot><div id=content has-supporting={hasSupporting} lines={lines}><slot id=slot></slot><slot id=supporting name=supporting class=text lines={lines}>{supporting}</slot></div><mdw-icon mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} src={trailingIconSrc} aria-hidden=true icon={trailingIcon}></mdw-icon><slot id=trailing name=trailing role=note>{trailing}</slot><mdw-divider mdw-if={divider} id=divider divider={divider}></mdw-divider>`.recompose(({refs:{state:t,rippleContainer:e,anchor:i}})=>{i.setAttribute("mdw-if","{href}"),i.setAttribute("aria-labelledby","content"),i.append(t,e),t.setAttribute("state-disabled","focus hover")}).on({disabledStateChanged(t,e){this.updateAriaProperty("ariaDisabled",e?"true":"false")}}).css`:host{--mdw-shape__size:0px;display:flex;align-items:center;gap:16px;border:none;padding-block:8px;padding-inline:16px;cursor:auto;outline:0;color:inherit;text-decoration:none}:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([href]){cursor:pointer}#anchor{position:absolute;inset:0;outline:0;color:inherit}:host([video]){padding-inline-start:0}:host([lines="3"]){align-items:flex-start;padding-block:12px}#content{display:inline-flex;align-items:flex-start;flex-direction:column;justify-content:center;flex:1;padding-block:calc(8px + (var(--mdw-density) * 2px))}#content:is([has-supporting],[lines="2"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(4px + var(--mdw-density) * 2px)}#content:is([lines="3"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(0 + var(--mdw-density) * 2px)}#icon,#trailing-icon{font-size:24px}#divider{position:absolute;inset-block-end:0;inset-inline:0;display:block;color:rgb(var(--mdw-color__surface-container-highest))}#divider[divider=inset]{padding-inline:16px 24px}#slot{max-block-size:var(--mdw-typescale__body-large__line-height) * 2;color:var(--mdw-color__on-surface);font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#supporting{max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#trailing{color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__label-small__letter-spacing)}#slot,#supporting{display:block;overflow-x:hidden;overflow-y:hidden;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}#supporting[lines="2"]{min-block-size:var(--mdw-typescale__body-medium__line-height);max-block-size:var(--mdw-typescale__body-medium__line-height)}#supporting[lines="3"]{min-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2)}@supports (width:1lh){#slot{max-block-size:1lh}#supporting{max-block-size:2lh}#supporting[lines="2"]{min-block-size:1lh;max-block-size:1lh}#supporting[lines="3"]{min-block-size:2lh;max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#supporting{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#supporting[lines="2"]{-webkit-line-clamp:1}}#avatar{block-size:40px;inline-size:40px;border-radius:50%}#img{block-size:56px;max-block-size:56px;inline-size:56px;max-inline-size:56px;object-fit:cover;object-position:center center}#img[video]{block-size:64px;max-block-size:64px;inline-size:114px;max-inline-size:114px}#checkbox{margin:3px}#radio{margin:2px}.trailing{order:1}:host([disabled]){opacity:.38;color:rgb(var(--mdw-color__on-surface))}`.childEvents({supporting:{slotchange({currentTarget:t}){this._supportingSlotted=t.assignedNodes().length!==0}}}).autoRegister("mdw-list-item");var pe=Ei.extend().mixin(L).setStatic({formAssociated:!0}).set({_ariaRole:"none",_index:-1,_selectedDirty:!1,isInteractive:!0}).observe({_label:{attr:"label",reflect:!0,nullParser:String},defaultSelected:{attr:"selected",reflect:!0,type:"boolean"},_selected:"boolean",_value:{attr:"value",reflect:!0},_formDisabled:"boolean"}).observe({selected:{reflect:!1,type:"boolean",get({_selectedDirty:t,defaultSelected:e,_selected:i}){return t?i:e},set(t){this._selectedDirty=!0,this._selected=t}},disabledState({_formDisabled:t,disabled:e}){return t?!0:!!e}}).define({index(){return this._index},form(){var t;return(t=this.parentElement)==null?void 0:t.form},label:{get(){return this._label??this.textContent},set(t){this._label=t}},value:{get(){return this._value??this.textContent},set(t){this._value=t}}}).methods({formDisabledCallback(t){this._formDisabled=t},focus(...t){this.refs.anchor.focus(...t)}}).expressions({anchorAriaLabelledBy({_label:t}){return t?null:"content"},anchorAriaDescribedBy({_label:t}){return t?"content":null},computedIconVariation({iconVariation:t,selected:e}){return t??(e?"filled":null)}}).recompose(({inline:t,refs:{checkbox:e,radio:i,anchor:r,state:o,content:n}})=>{r.setAttribute("disabled","{disabledState}"),r.setAttribute("role","option"),r.setAttribute("aria-disabled",t(({disabledState:s})=>`${s}`)),r.setAttribute("tabindex","0"),r.setAttribute("aria-selected",t(({selected:s})=>`${s}`)),r.setAttribute("selected","{selected}"),r.setAttribute("aria-labelledby","{anchorAriaLabelledBy}"),r.setAttribute("aria-describedby","{anchorAriaDescribedBy}"),r.setAttribute("aria-label","{_label}"),r.removeAttribute("href"),r.removeAttribute("mdw-if"),e.setAttribute("mdw-if",t(({checkbox:s,icon:l})=>!l&&s)),i.setAttribute("mdw-if",t(({radio:s,icon:l})=>!l&&s)),n.setAttribute("aria-hidden","true"),n.setAttribute("selected","{selected}"),o.setAttribute("state-disabled","focus")}).on({selectedChanged(t,e){this.classList.toggle("mdw-list-option__selected",e),this.dispatchEvent(new Event("mdw-list-option:changed",{bubbles:!0,composed:!0}))}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);cursor:pointer;z-index:0}:host([hidden]){display:none}:host([href]){cursor:pointer}:host([disabled]){cursor:not-allowed;pointer-events:none}#content{-webkit-user-select:none;user-select:none;pointer-events:none}#content[selected]{color:rgb(var(--mdw-ink))}#anchor{z-index:-1}#anchor[selected]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.extend(t=>class extends t{constructor(e,i,r,o){super(),e!==void 0&&(this.text=e),i!==void 0&&(this._value=i),r!==void 0&&(this.defaultSelected=r),o!==void 0&&(this._selected=o)}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||(this.tabIndex=0)}}).autoRegister("mdw-list-option");function Mr({host:t,collection:e,OptionConstructor:i,GroupConstructor:r}){let o=function(a,c){let d,m=-1;typeof c=="number"?c>=0&&c<e.length-1&&(m=c):c instanceof HTMLElement&&(d=c),m!==-1&&(d=e.item(m)),d?d.before(a):t.append(a)},n=function(a){var c;(c=e.item(a))==null||c.remove()};return Object.defineProperty(e,"selectedIndex",{get(){for(let l=0;l<e.length;l++)if(e[l].selected)return l;return-1},set(l){for(let a=0;a<e.length;a++)e[a].selected=a===l}}),new Proxy(e,{get(l,a,c){switch(a){case"add":return o;case"remove":return n;default:return l[a]}},set(l,a,c,d){let m=Number.NaN;switch(typeof a){case"string":m=Number.parseInt(a,10);break;case"number":m=a;break;default:case"symbol":return Reflect.set(l,a,c,d)}if(Number.isNaN(m))return Reflect.set(l,a,c,d);let p=e.length;for(;m>e.length;)o(new i);m===p?c!=null&&o(c):m>=0&&(n(m),c!==null&&o(c,m))}})}var Qo=zi.extend().mixin(N).mixin(me).mixin(re).mixin(L).observe({multiple:"boolean",size:{type:"integer",empty:0}}).set({_ariaRole:"listbox",_optionsCollection:null,_selectedOptionsCollection:null,_handlingSelectedness:!1,_handleFormReset:!0}).define({options(){return this._optionsCollection||(this._optionsCollection=Mr({host:this,collection:this.getElementsByTagName(pe.elementName),OptionConstructor:pe,GroupConstructor:pe})),this._optionsCollection},selectedOptions(){return this._selectedOptionsCollection??=this.getElementsByClassName("mdw-list-option__selected")},type(){return this.multiple?"select-multiple":"select-one"},kbdNavQuery(){return pe.elementName},kbdNavFocusableWhenDisabled(){return!0}}).define({length(){return this.options.length},selectedIndex:{get(){let[t]=this.selectedOptions;return t?Array.prototype.indexOf.call(this.options,t):-1},set(t){let e=this.options[t];this._handlingSelectedness=!0;for(let i of this.options)i.selected=i===e;this._handlingSelectedness=!1,this._value=this.value}},value:{get(){var t;return((t=this.selectedOptions[0])==null?void 0:t.value)??""},set(t){let e="",i=`${t}`;this._handlingSelectedness=!0;for(let r of this.options)(r.selected=r.value===i)&&(e=i);this._handlingSelectedness=!1,this._value=e}},add(){return this.options.add}}).on({disabledStateChanged(t,e){this._kbdFocusable=!e,this.tabIndex=e?-1:0},multipleChanged(t,e){this.updateAriaProperty("ariaMultiSelectable",e?"true":"false")},_formResetChanged(t,e){e&&this._handleFormReset&&(this.value=this.defaultValue)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)}}).methods({*_selectedOptionsGenerator(){for(let t of this.options)t.selected&&(yield t)},*[Symbol.iterator](){for(let t of this.options)yield t},focus(){this.focusCurrentOrFirst()},item(t){return this.options[t]},namedItem(t){for(let e of this.options)if(e.id===t)return e;return null},onListboxClick(t){let e=t.target;if(!(e instanceof pe)||(t.stopImmediatePropagation(),t.stopPropagation(),e.disabledState))return;let i=!1;if(this._handlingSelectedness=!0,e.selected)(!this.required||this.multiple&&this.selectedOptions.length>1)&&(i=!0,e.selected=!1);else{if(!this.multiple)for(let r of this.selectedOptions)r.selected=!1;e.selected=!0,i=!0}this._value=this.value,this._handlingSelectedness=!1,this._updateFormAssociatedValue(),i&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}).css`:host(:disabled){cursor:not-allowed;pointer-events:none}:host([internals-disabled]){cursor:not-allowed;pointer-events:none}`.events({"mdw-list-option:changed"(t){if(t.stopPropagation(),this.multiple||this._handlingSelectedness)return;let e=t.target;if(!e.selected){this._handlingSelectedness=!0;for(let i of this.selectedOptions)i!==e&&(i.selected=!1);this._value=this.value,this._handlingSelectedness=!1}},focus(){this.focusCurrentOrFirst()},keydown(t){if(t.key==="Spacebar"||t.key===" "){if(!(t.target instanceof pe))return;t.stopPropagation(),t.preventDefault(),this.onListboxClick.call(this,t)}},click:"onListboxClick"}).childEvents({slot:{slotchange(){this.refreshTabIndexes();let t=0;for(let e of this.options)e._index=t++;this._value=this.value}}}).autoRegister("mdw-listbox");var Jo=_.extend().mixin(w).mixin(U).mixin(C).mixin(Pe).mixin(G).mixin(re).set({flow:"corner",_useScrim:!1,_cascader:null,_submenu:null}).define({kbdNavChildren(){let t=[...this.querySelectorAll("mdw-menu-item")],e=[...this.querySelectorAll(":scope mdw-menu mdw-menu-item")];return t.filter(i=>!e.includes(i))},_dialog(){return this.refs.dialog},cascader:{get(){var t;return(t=this._cascader)==null?void 0:t.deref()},set(t){this._cascader=t?new WeakRef(t):null}},submenu:{get(){var t;return(t=this._submenu)==null?void 0:t.deref()},set(t){this._submenu=t?new WeakRef(t):null}}}).recompose(({refs:{scrim:t}})=>{t.setAttribute("invisible","")}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:block;inline-size:auto;min-inline-size:calc(var(--mdw-menu__inline-base) * 2);max-inline-size:100vw;filter:var(--mdw-elevation__drop-shadow__2);background-color:rgb(var(--mdw-bg))}#form{display:contents}`.methods({showModal(...t){this._useScrim=!0;let e=this.showPopup(...t);return this._useScrim=!1,e},focus(){let[t]=this.kbdNavChildren;j(t)||this.focusNext(t)},cascade(t){this.cascader=t,this.showPopup(t,!0,"adjacent")}}).events({"mdw-menu-item:cascade"(t){let e=t.target,i=t.detail;t.stopPropagation();let r=this.getRootNode().getElementById(i);this.submenu=r,r.cascade(e)},"mdw-menu-item:cascader-blur"(){let t=this.submenu;t&&queueMicrotask(()=>{t&&t.matches(":focus-within,:focus")||t.close(!1)})},"~click"(t){this===t.target&&(t.stopPropagation(),this.close(!0))},keydown(t){if(this.open)switch(t.key){case"Tab":this.close()||(t.stopPropagation(),t.preventDefault());break;case"ArrowLeft":case"ArrowRight":if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowLeft")break}else if(t.key==="ArrowRight")break;case"Escape":case"Esc":t.stopPropagation(),t.preventDefault(),this.close(!0);break;default:}},focusout(){this.open&&(this.modal||queueMicrotask(()=>{if(this.matches(":focus-within"))return;let{cascader:t,submenu:e}=this;t&&t.matches(":is(:focus-within,:focus)")||e&&e.matches(":is(:focus-within,:focus)")||this.close(!1)}))}}).autoRegister("mdw-menu");var Zo=pe.extend().mixin(me).set({_cascadeTimeout:null,CASCADE_TIMEOUT:500,_cascading:!1}).define({type(){return this.radio!=null?"radio":this.checkbox!=null?"checkbox":null}}).observe({cascades:"string",_defaultValue:{attr:"value",reflect:!0,nullParser:String,empty:null}}).observe({defaultValue:{reflect:!1,get(){return this._defaultValue??""},set(t){this._defaultValue=t}},value:{reflect:!1,get(){return this._defaultValue??"on"},set(t){this._defaultValue=t}}}).overrides({formIPCEvent(t){if(t.target instanceof HTMLFormElement&&t.target!==this.form||this.type!=="radio")return;let[e,i]=t.detail;this.name===e&&i!==this.value&&(this.value==="1"?this.selected=!1:this.selected=!1)}}).expressions({computeTrailingIcon({trailingIcon:t,cascades:e}){return!t&&e?"arrow_right":t}}).methods({unscheduleCascade(){clearTimeout(this._cascadeTimeout),this._cascadeTimeout=null},scheduleCascade(){this._cascadeTimeout||(this._cascadeTimeout=setTimeout(this.cascade.bind(this),this.CASCADE_TIMEOUT))},cascade(){this.unscheduleCascade(),this._cascading=!0,this.dispatchEvent(new CustomEvent("mdw-menu-item:cascade",{detail:this.cascades,bubbles:!0})),this._cascading=!1}}).on({_selectedChanged(t,e){e?(this.elementInternals.setFormValue(this.value),this.type==="radio"&&this._notifyRadioChange(this.name,this.value)):this.elementInternals.setFormValue(null),this._selectedDirty&&this.dispatchEvent(new Event("change",{bubbles:!0}))}}).events({mouseenter(){this.disabledState||(le(this)||this.focus(),this.cascades&&this.scheduleCascade())},mouseout:"unscheduleCascade","~click"(){if(!this.disabledState){if(this.type==="radio"){if(this.required)return;this.selected=!0}else if(this.type==="checkbox"){if(this.required)return;this.selected=!this.selected;return}this.cascades&&this.cascade()}},keydown(t){if(!this.disabledState)switch(t.key){case"Enter":case" ":t.stopPropagation(),t.preventDefault(),this.click();break;case"ArrowLeft":case"ArrowRight":if(!this.cascades)break;if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowRight")break}else if(t.key==="ArrowLeft")break;t.stopPropagation(),t.preventDefault(),this.cascade();break;default:}},blur(){this.cascades&&(this._cascading||this.dispatchEvent(new CustomEvent("mdw-menu-item:cascader-blur",{detail:this.cascades,bubbles:!0})))}}).recompose(({inline:t,html:e,refs:{checkbox:i,radio:r,anchor:o,trailing:n,trailingIcon:s}})=>{i.remove(),r.remove(),o.setAttribute("role",t(({checkbox:l,radio:a})=>l!=null?"menuitemcheckbox":a!=null?"menuitemradio":"menuitem")),o.setAttribute("ariaChecked",o.getAttribute("aria-selected")),o.after(e`
|
|
183
|
+
`)}).on({disabledStateChanged(e,i){let r=this.refs.control;r.setAttribute("aria-disabled",`${i}`),this.focusableOnDisabled||(r.disabled=i,i?this.tabIndex=0:this.removeAttribute("tabindex"))},readOnlyChanged(e,i){let r=this.refs.control;this.type==="checkbox"?r.setAttribute("aria-readonly",i?"true":"false"):r.removeAttribute("aria-readonly")},constructed(){let e=this.refs.control;this._onControlValue(e.value)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)},attrs:{autocomplete:O("autocomplete","control"),name:O("name","control"),readonly:O("readonly","control"),required:O("required","control")}}).childEvents({control:{click(e){(this.type==="checkbox"&&this.readOnly||this.focusableOnDisabled&&this.disabledState)&&(e.preventDefault(),e.stopImmediatePropagation())},input({currentTarget:e}){let i=e;this.validity.valid?(i.checkValidity(),this._badInput=i.validity.badInput):this.checkValidity(),this._onControlValue(i.value)},change({currentTarget:e}){let i=e;this._valueDirty=!0,this._onControlValue(i.value),this.checkValidity()}},slot:et<116||yt?{slotchange({currentTarget:e}){this._slotInnerText=this.textContent,this._slotMutationObserver||(this._slotMutationObserver=new MutationObserver(()=>{this._slotInnerText=this.textContent}),this._slotMutationObserver.observe(e,{characterData:!0}))}}:{}}).rootEvents({change(e){this.dispatchEvent(new e.constructor(e.type,e))}}).css`:host{display:inline-flex}:host(::-moz-focus-inner){border:0}#control{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;margin:0;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto;outline:0;transform:translate(-50%) translateY(-50%);z-index:4;background-color:transparent;border-radius:0;color:transparent}#control::-moz-focus-inner{border:0}`}var Po=new Set(["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"]),se={nullParser:String,empty:""},xr=new WeakSet,vr=new WeakSet;function K(t){return t.mixin(ye).observe({accept:se,alt:se,dirName:{attr:"dirname",...se},_formAction:{attr:"formaction"},formEnctype:{attr:"formenctype",...se},formMethod:{attr:"formmethod",...se},formTarget:{attr:"formtarget",...se},_height:{attr:"height",type:"integer"},_indeterminate:"boolean",max:se,maxLength:{attr:"maxlength",type:"integer",empty:-1},min:se,minLength:{attr:"minlength",type:"integer",empty:-1},multiple:"boolean",pattern:se,placeholder:se,size:{type:"integer",empty:20},src:se,step:se,_width:{attr:"width",type:"integer"}}).set({_useFormImplicitSubmission:!0}).define({_input(){return this.refs.control}}).observe({indeterminate:{type:"boolean",get({_indeterminate:e}){return e},set(e){this._input.indeterminate=e,this._indeterminate=this._input.indeterminate}}}).overrides({controlTagName:"input"}).recompose(({refs:{control:e}})=>{e.setAttribute("checked","{defaultChecked}"),e.setAttribute("height","{_height}"),e.setAttribute("width","{_width}"),e.setAttribute("value","{_defaultValue}")}).on({typeChanged(){this.onValueChangingContentAttribute()},checkedChanged(){this._input.checked=this.checked,this._input.indeterminate=this._indeterminate},_indeterminateChanged(e,i){this._input.indeterminate=i},minChanged(){this.onValueChangingContentAttribute()},minLengthChanged(){this.onValueChangingContentAttribute()},maxChanged(){this.onValueChangingContentAttribute()},maxLengthChanged(){this.onValueChangingContentAttribute()},multipleChanged(){this.onValueChangingContentAttribute()},patternChanged(){this.onValueChangingContentAttribute()},stepChanged(){this.onValueChangingContentAttribute()},defaultValueChanged(){this.onValueChangingContentAttribute()},_formResetChanged(e,i){if(!i)return;this._onSetValue(this.defaultValue);let r=this._input;r.checked=this.defaultChecked,this._checked=r.checked,this._checkedDirty=!1},attrs:{accept:O("accept","control"),alt:O("alt","control"),dirname:O("dirname","control"),formenctype:O("formenctype","control"),formmethod:O("formmethod","control"),formnovalidate:O("formnovalidate","control"),formTarget:O("formTarget","control"),max:O("max","control"),maxlength:O("maxlength","control"),min:O("min","control"),minlength:O("minlength","control"),multiple:O("multiple","control"),pattern:O("pattern","control"),placeholder:O("placeholder","control"),size:O("size","control"),src:O("src","control"),step:O("step","control")}}).overrides({_onSetChecked(e){this._input.checked=e,this._checked=this._input.checked,this.indeterminate=!1},_onSetValue(e){this._input.value=e,this._value=this._input.value}}).methods({performImplicitSubmission(e){if(!this._useFormImplicitSubmission)return;let i=this.form;if(!i)return;let r,o=new Set;for(let n of i.elements){if(n.type==="submit"&&!n.disabled&&!n.matches(":disabled")){r??=n;break}Po.has(n.type)&&o.add(n)}if(r){r.dispatchEvent(new PointerEvent("click",{bubbles:!0,cancelable:!0,composed:!0}));return}o.size>1||this.form.submit()},_redispatchControlClickEvent(e){e.stopPropagation();let i=new e.constructor(e.type,e);return xr.add(i),this.dispatchEvent(i)},_handleInputClick(e){var r;if(this.disabledState)return;let i=this._input;switch(i.type){case"checkbox":case"radio":{let{_checkedDirty:o,_checked:n,_indeterminate:s}=this;if(this.checked=i.checked,this._redispatchControlClickEvent(e))return;e.preventDefault(),this._checkedDirty=o,this._checked=n,this._indeterminate=s;break}case"button":case"submit":case"reset":{if(!this._redispatchControlClickEvent(e)){e.preventDefault();return}let{type:o}=i;if(o!=="submit"&&o!=="reset")return;for(let s of e.composedPath()){if(s===i||s===this)break;if((s instanceof HTMLInputElement||s instanceof HTMLButtonElement)&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLElement&&s.form instanceof HTMLFormElement&&(s.type==="submit"||s.type==="reset")||s instanceof HTMLAnchorElement&&s.href)return}let n=(r=this.elementInternals)==null?void 0:r.form;if(!n)return;if(o==="submit"){let s=i.cloneNode();s.hidden=!0,n.append(s),"requestSubmit"in n?n.requestSubmit(s):s.click(),s.remove()}else o==="reset"&&n.reset()}break;default:}}}).rootEvents({click(e){vr.add(e);let{control:i}=this.refs;if(e.target===i||!e.bubbles)return;let{disabledState:r,type:o}=this;r||(o==="checkbox"||o==="radio"?(e.stopPropagation(),i.click()):this._handleInputClick(e))}}).events({click(e){vr.has(e)||xr.has(e)||e.target===this&&(e.stopImmediatePropagation(),this.refs.control.click())}}).childEvents({control:{keydown(e){e.defaultPrevented||e.key==="Enter"&&e.currentTarget.type!=="submit"&&this.performImplicitSubmission(e)},click:"_handleInputClick",input(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked},change(e){if(this.disabledState){e.preventDefault(),e.stopImmediatePropagation();return}let i=e.currentTarget;this.checked=i.checked}}}).methods({setRangeText(...e){this._input.setRangeText(...e)},setSelectionRange(...e){this._input.setSelectionRange(...e)},showPicker(...e){this._input.showPicker(...e)},stepDown(...e){this._input.stepDown(...e),this._value=this._input.value},stepUp(...e){this._input.stepUp(...e),this._value=this._input.value},select(...e){this._input.select(...e)}}).define({files:{get(){return this._input.files},set(e){e==null&&this.type==="file"?(this._input.value="",this.value=""):this._input.files=e}},selectionDirection:{get(){return this._input.selectionDirection},set(e){this._input.selectionDirection=e}},selectionEnd:{get(){return this._input.selectionEnd},set(e){this._input.selectionEnd=e}},selectionStart:{get(){return this._input.selectionStart},set(e){this._input.selectionStart=e}},valueAsDate:{get(){return this._input.valueAsDate},set(e){this._input.valueAsDate=e,this.value=this._input.value}},valueAsNumber:{get(){return this._input.valueAsNumber},set(e){this._input.valueAsNumber=e,this.value=this._input.value}},height:{get(){return this._input.height},set(e){this._input.height=e,this._height=e}},formAction:{get(){return this._input.formAction},set(e){this._input.formAction=e,this._formAction=e}},width:{get(){return this._input.width},set(e){this._input.width=e,this._width=e}}}).css`#control::-webkit-file-upload-button{display:none}`}var yr=_.extend().set({hadRippleHeld:!1,hadRippleReleased:!1,rippleStarted:!1}).observe({rippleState:"string",keepAlive:"boolean",_positionX:"float",_positionY:"float",_radius:"float",holdRipple:{type:"boolean",changedCallback(t,e){e?this.hadRippleHeld=!0:this.hadRippleReleased=!0}}}).observe({_positionStyle:{...ee,get({_positionX:t,_positionY:e,_radius:i}){return i==null?null:{styles:{minHeight:`${i}px`,minWidth:`${i}px`,boxShadow:`0 0 calc(0.10 * ${i}px) calc(0.10 * ${i}px) currentColor`,top:`calc(50% + ${e}px)`,left:`calc(50% + ${t}px)`}}}}}).methods({updatePosition(t,e,i){let r=i,{offsetParent:o}=this;if(!o)return;let{clientWidth:n,clientHeight:s}=o;if(t??=n/2,e??=s/2,!r){let l=t>=n/2?t:n-t,a=e>=s/2?e:s-e;r=2*Math.hypot(l,a)}this._positionX=t-n/2,this._positionY=e-s/2,this._radius=r},handleRippleComplete(){this.keepAlive?this.setAttribute("ripple-state","complete"):this.remove()}}).events({animationstart({animationName:t}){if(t==="ripple-fade-in"){if(this.rippleStarted&&!this.keepAlive){this.remove();return}this.rippleStarted=!0}},animationend({animationName:t}){switch(t){case"ripple-fade-in":this.rippleState="filled";break;case"ripple-fade-out":this.handleRippleComplete();break;default:}}}).css`:host{--enter-delay:80ms;--touch-down-acceleration:1024;--touch-up-acceleration:3400;--mdw-ripple-expand-duration:.3s;--mdw-ripple-simple-duration:.2s;--mdw-ripple-fade-out-duration:333ms;--mdw-ripple-standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-ripple-deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--size:0;position:absolute;top:50%;left:50%;display:block;min-block-size:141.42%;min-inline-size:141.42%;pointer-events:none;-webkit-tap-highlight-color:transparent;opacity:.12;transform:translate(-50%) translateY(-50%) scale(1);background-color:currentColor;border-radius:50%;box-shadow:0 0 calc(.1 * var(--size)) calc(.1 * var(--size)) currentColor;transition-delay:0s;transition-duration:var(--mdw-ripple-simple-duration);transition-property:background-color,color;transition-timing-function:var(--mdw-ripple-standard-easing);animation-name:ripple-fade-in,none;animation-duration:var(--mdw-ripple-expand-duration),var(--mdw-ripple-fade-out-duration);animation-timing-function:linear,var(--mdw-ripple-deceleration-easing);animation-direction:normal;animation-fill-mode:forwards;will-change:transform,opacity,top,left,box-shadow;aspect-ratio:1/1}:host([ripple-state=filled]){animation-name:none,ripple-fade-out}:host([ripple-state=filled][hold-ripple]){animation-name:ripple-fade-in,none}:host([ripple-state=complete]){animation-name:none,ripple-fade-out;animation-duration:0s}@keyframes ripple-fade-in{0%{transform:translate(-50%) translateY(-50%) scale(0)}}@keyframes ripple-fade-out{to{opacity:0}}`.autoRegister("mdw-ripple");function Q(t){return t.set({_lastRippleWeakRef:null,_rippleAdded:!1}).define({_lastRipple:{get(){var i;let e=(i=this._lastRippleWeakRef)==null?void 0:i.deref();return e!=null&&e.isConnected?e:null},set(e){this._lastRippleWeakRef=e?new WeakRef(e):null}}}).methods({addRipple(e,i,r){let{rippleContainer:o}=this.refs;if(!o.isConnected)return null;let n=new yr;return this._rippleAdded=!0,queueMicrotask(()=>{this._rippleAdded=!1}),o.append(n),r&&(n.holdRipple=!0),n.updatePosition(e,i),this._lastRipple=n,n}}).html`<div id=ripple-container mdw-if={!disabledState} aria-hidden=true></div>`.events({"~pointerdown"(e){if(e.button||this.disabledState)return;let{rippleContainer:i}=this.refs;if(!i.isConnected)return;let r=i.getBoundingClientRect(),o=e.pageX-r.left-window.pageXOffset,n=e.pageY-r.top-window.pageYOffset,s=this._lastRipple;s&&(s.holdRipple=!1),this.addRipple(o,n,!0)},"~click"(e){if(this._rippleAdded||e.pointerType||e.detail||this.disabledState||this.pressedState||this._keyReleased)return;let i=this._lastRipple;i&&(i.holdRipple=!1),this.addRipple()}}).on({pressedStateChanged(e,i){let r=this._lastRipple;if(!i){r&&(r.holdRipple=!1);return}if(!r||r.hadRippleReleased){if(this._lastInteraction!=="key")return;this.addRipple(null,null,!0);return}r.hadRippleHeld||(r.holdRipple=!0)}}).css`:host{--mdw-state__pressed-opacity:0}#ripple-container{position:absolute;inset:0;overflow:hidden;pointer-events:none;border-radius:inherit}`}var fe=_.extend().mixin(x).mixin(G).mixin(N).mixin(U).mixin(C).mixin(Q).mixin(K).mixin(te).define({stateTargetElement(){return this.refs.control}}).set({stateLayer:!0,_allowedTypes:["button","submit","reset","file"]}).observe({type:{empty:"button",set(t,e){let i=(t==null?void 0:t.toLowerCase())??"button";e(this._allowedTypes.includes(i)?i:"button")}},elevated:"boolean",filled:"string",outlined:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string"}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},iconVariation({outlined:t}=this){return t?null:"filled"}}).methods({focus(...t){this.href?this.refs.anchor.focus(...t):this.refs.control.focus(...t)}}).html`<mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabledState} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon}></mdw-icon><slot id=slot disabled={disabledState} aria-hidden=true>{_defaultValue}</slot>`.recompose(({refs:{anchor:t,control:e}})=>{e.setAttribute("mdw-if","{!href}"),e.setAttribute("role","button"),t.setAttribute("mdw-if","{href}"),t.setAttribute("aria-label","{_computedAriaLabel}"),t.setAttribute("aria-labelledby","{_computedAriaLabelledby}")}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:var(--mdw-color__primary);--mdw-type__font:var(--mdw-typescale__label-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__label-large__letter-spacing);display:inline-flex;align-items:center;gap:0;justify-content:center;vertical-align:middle;min-block-size:24px;min-inline-size:24px;padding-block:calc(8px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:where([elevated],[filled])){transition:box-shadow .2s;will-change:box-shadow}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__primary);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__primary);--mdw-ink:var(--mdw-color__on-primary);box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([elevated]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}:host(:where([filled]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where([elevated]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled]:disabled)){box-shadow:var(--mdw-elevation__box-shadow__0)}:host(:where([filled=tonal])){--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__primary)}:host(:where([icon])){gap:8px;padding-inline:calc(12px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}:host(:where([outlined],[elevated],[filled])){padding-inline:calc(24px + (var(--mdw-density) * 2px))}:host(:where([icon]):where([outlined],[elevated],[filled])){gap:8px;padding-inline:calc(16px + (var(--mdw-density) * 2px)) calc(24px + (var(--mdw-density) * 2px))}:host(:where([elevated],[filled],[color])){background-color:rgb(var(--mdw-bg))}#slot{text-align:center;text-decoration:none;white-space:nowrap}#control{cursor:pointer}#anchor{position:absolute;inset:0;cursor:pointer;outline:0}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#icon{font-size:calc(18/14 * 1em)}#icon[disabled]{opacity:.38;color:rgba(var(--mdw-color__on-surface))}#control[form-disabled]{cursor:not-allowed}@media(any-pointer:coarse){#touch-target{visibility:inherit}}`.autoRegister("mdw-button");var kr="inert"in HTMLElement.prototype,Oo=H.extend().mixin(N).mixin(U).mixin(C).mixin(pe).mixin($).mixin(L).mixin(te).set({_ariaRole:"figure"}).observe({elevated:"boolean",filled:"boolean",actionable:"boolean",actionLabel:"string",onaction:Z}).define({stateTargetElement(){return this.actionable?this.refs.action:this}}).expressions({showBlocker:({disabledState:t,disabled:e})=>t&&(!e||!kr),showButton:({actionable:t,href:e})=>!!(t||e)}).methods({focus(){this.disabledState||this.actionable&&this.refs.action.focus()}}).html`<mdw-button mdw-if={showButton} aria-label={actionLabel} href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabledState}></mdw-button><div mdw-if={showBlocker} id=inert-blocker></div>`.recompose(({refs:{anchor:t,inertBlocker:e,slot:i}})=>{t.remove(),i.setAttribute("disabled","{disabledState}"),e.before(i)}).css`:host{--mdw-shape__size:var(--mdw-shape__medium);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:relative;font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition:filter .2s;will-change:filter}:host(:where([elevated],[filled],[outlined])){background-color:rgb(var(--mdw-bg))}:host(:where([elevated])){--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface);filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([filled])){--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([filled][actionable])){filter:var(--mdw-elevation__drop-shadow__0)}:host(:where([elevated][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([filled][actionable]:hover:not(:active))){filter:var(--mdw-elevation__drop-shadow__1)}:host([disabled]){cursor:not-allowed;filter:grayscale();opacity:.38;color:rgb(var(--mdw-color__on-surface))}#slot[disabled]{color:rgb(var(--mdw-color__on-surface))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#inert-blocker{position:absolute;inset:0;cursor:not-allowed;pointer-events:auto;z-index:99}:host([disabled][elevated]){background-color:rgba(var(--mdw-color__surface-container-highest))}:host([disabled][filled]){background-color:rgba(var(--mdw-color__surface))}#action{--mdw-ink:inherit;--mdw-shape__size:inherit;position:absolute;inset:0;padding:0;z-index:0;color:inherit}`.recompose(({refs:{slot:t,outline:e}})=>{e.removeAttribute("pressed"),e.removeAttribute("focused"),t.setAttribute("inert","{disabledState}"),t.setAttribute("disabled","{disabledState}")}).childEvents({action:{click(){this.disabledState||this.dispatchEvent(new Event("action"))}},slot:kr?{}:{focusin(){this.disabledState}}}).autoRegister("mdw-card");var Fo=_.extend().mixin(x).mixin(C).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:2px;--disabled-opacity:.38;position:relative;display:inline-block;align-items:center;justify-content:center;box-sizing:border-box;block-size:18px;inline-size:18px;font-size:18px;line-height:18px}#icon{position:absolute;inset:0;opacity:0;background-color:rgb(var(--mdw-bg));border-radius:inherit;color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#outline{border-width:2px;color:rgb(var(--mdw-color__on-surface));transition-duration:.2s;transition-property:opacity,background-color,color;will-change:opacity}#icon[selected]{opacity:1}#outline[selected]{opacity:0}#icon[errored]{background-color:rgb(var(--mdw-color__error));color:rgb(var(--mdw-color__on-error))}#outline[errored]{color:rgb(var(--mdw-color__error))}#icon[disabled]{background-color:rgba(var(--mdw-color__on-surface),var(--disabled-opacity));color:rgb(var(--mdw-color__surface),var(--disabled-opacity))}#outline[disabled]{color:rgb(var(--mdw-color__on-surface),var(--disabled-opacity))}`.html`<mdw-icon id=icon selected={selected} errored={errored} disabled={disabled} icon={icon}></mdw-icon>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).autoRegister("mdw-checkbox-icon");function ke(t){return t.html`<div id=touch-target class=touch-target></div>`.css`.touch-target{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:48px;inline-size:100%;min-inline-size:48px;cursor:inherit;pointer-events:auto;transform:translate(-50%) translateY(-50%);visibility:inherit;z-index:1;border-radius:inherit}`}var No=_.extend().mixin(x).mixin(N).mixin(Q).mixin(K).mixin(ke).set({stateLayer:!0,type:"checkbox"}).observe({icon:{value:"check"},indeterminateIcon:{value:"check_indeterminate_small"}}).expressions({_determinateIcon({indeterminate:t,indeterminateIcon:e,icon:i}){return t?e:i},_iconSelectedState({checked:t,indeterminate:e}){return t||e}}).html`<div id=checkbox errored={erroredState} selected={checked}><mdw-checkbox-icon id=icon errored={erroredState} disabled={disabledState} icon={_determinateIcon} selected={_iconSelectedState}></mdw-checkbox-icon></div><slot id=slot></slot>`.recompose(({refs:{checkbox:t,state:e,rippleContainer:i}})=>{t.append(e,i)}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:18px}#control{grid-column:1/1;cursor:inherit}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#checkbox{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#checkbox[selected]{color:rgb(var(--mdw-bg))}#checkbox[disabled]{color:rgb(var(--mdw-color__on-surface))}#checkbox[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #checkbox{transform:none}#icon{--mdw-ink:inherit;--mdw-bg:inherit;--disabled-opacity:1}`.autoRegister("mdw-checkbox");var yi=fe.extend().observe({suggestion:"boolean"}).expressions({iconVariation({elevated:t}){return t?"filled":null}}).css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(16px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([suggestion])){--mdw-ink:var(--mdw-color__on-surface-variant)}:host(:where([icon])){gap:8px;padding-inline:calc(8px + (var(--mdw-density) * 2px)) calc(16px + (var(--mdw-density) * 2px))}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color]){--mdw-ink:inherit}#icon[disabled],#slot[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}`.recompose(({inline:t,refs:{slot:e,outline:i,icon:r}})=>{e.setAttribute("disabled","{disabledState}"),e.removeAttribute("ink"),e.removeAttribute("color"),i.setAttribute("mdw-if","{!elevated}"),i.setAttribute("ink","{ink}"),i.setAttribute("color","{color}"),r.setAttribute("ink",t(({ink:o,iconInk:n})=>n??o??"primary"))}).autoRegister("mdw-chip");var Do=_.extend().mixin(x).observe({vertical:"boolean"}).css`:host{--mdw-ink:var(--mdw-color__outline-variant);position:relative;display:block;overflow:visible;box-sizing:border-box;block-size:0;inline-size:100%;color:rgb(var(--mdw-ink))}:host:before{content:"";display:block;box-sizing:border-box;block-size:1px;inline-size:auto;background-color:currentcolor}:host([vertical]){display:inline-flex;vertical-align:top;block-size:auto;min-block-size:100%;inline-size:0}:host([vertical]):before{block-size:auto;min-inline-size:1px}`.autoRegister("mdw-divider");var ql=_.extend().css`:host{align-self:flex-end;margin-block:24px;padding-inline:24px}`.html`<slot id=slot></slot>`.autoRegister("mdw-dialog-actions");function Et(t){let{pageX:e,pageY:i,directionX:r,directionY:o}=t,n=document.documentElement.clientWidth,s=document.documentElement.clientHeight;if(e==null||i==null){let{clientX:V,clientY:ie,anchor:Y}=t,F;if(Y?F=Y instanceof Element?Y.getBoundingClientRect():Y:F={left:0,width:n,right:n,top:0,bottom:s,height:s},e==null)switch(V){case"left":case null:case void 0:e=F.left,r??="right";break;case"center":e=F.left+F.width/2,r??="center";break;case"right":e=F.right,r??="left";break;default:e=F.left+V}if(i==null)switch(ie){case"top":i=F.top,o??="up";break;case"center":i=F.top+F.height/2,o??="center";break;case"bottom":case null:case void 0:i=F.bottom,o??="down";break;default:i=F.top+ie}}let{width:l,height:a}=t;if(l==null||a==null){let{popup:V}=t;V instanceof Element?(l=V.clientWidth,a=V.clientHeight):(l=V.width,a=V.height)}let c,d,p,m,f=t.margin??0,h=f,u=-f,g=f,b=-f;window.visualViewport?(h+=window.visualViewport.offsetTop,u+=window.visualViewport.offsetTop+window.visualViewport.height,g+=window.visualViewport.offsetLeft,b+=window.visualViewport.offsetLeft+window.visualViewport.width):(u+=s,b+=n);let w=t.offsetX??0,k=t.offsetY??0;e+=w,i+=k;let S="auto",A="auto",T="auto",E="auto",v=null,y=null;switch(o){case"up":p=Math.min(i,u),c=Math.max(p-a,h),T=`${s-p}px`,c===h&&(v=`${p-h}px`);break;case"center":c=Math.max(i-a/2,h),p=Math.min(i+a/2,u),S=`${c}px`,p===u&&(v=`${u-h}px`);break;default:c=Math.max(i,h),p=Math.min(c+a,u),S=`${c}px`,p===u&&(v=`${u-c}px`)}switch(r){case"left":d=Math.min(e,b),m=Math.max(d-l,g),A=`${n-d}px`,m===g&&(y=`${d-g}px`);break;case"center":m=Math.max(e-l/2,g),d=Math.min(e+l/2,b),E=`${m}px`,d===b&&(y=`${b-g}px`);break;default:m=Math.max(e,g),d=Math.min(m+l,b),E=`${m}px`,d===b&&(y=`${b-m}px`)}let z=l*a,I=(p-c)*(d-m)/z;return{...t,top:c,right:d,bottom:p,left:m,visibility:I,styles:{top:S,bottom:T,left:E,right:A,maxWidth:y,maxHeight:v,transformOrigin:`${o==="center"?"center":o==="up"?"bottom":"top"} ${r==="center"?"center":r==="left"?"right":"left"}`}}}var ki=typeof HTMLDialogElement<"u",Se=[];function rt(){for(let{element:t}of Se)t.updatePopupPosition()}function Sr(t){t.button===3&&t.preventDefault()}function Mt(t){if(!t.state)return;let e=Se.at(-1);if(!(!e||!e.previousState)&&(e.previousState===t.state||Object.keys(t.state).every(i=>t.state[i]===e.previousState[i]))){let i=new Event("cancel",{cancelable:!0});e.element.dispatchEvent(i)?e.element.close():window.history.pushState(e.state,e.state.title)}}function zr(t){Se.length}function Pe(t){return t.mixin(L).mixin(B).observe({open:"boolean",modal:"boolean",native:"boolean",scrollable:"boolean",matchSourceWidth:"boolean",_currentFlow:"string",flow:{type:"string",value:null},popupMargin:"float"}).set({useHistory:!0,returnValue:"",_closing:!1,_useScrim:!1,_source:null,_anchor:null}).define({_dialog(){return this.refs.dialog}}).expressions({_ariaHidden({open:e}){return e?"false":"true"}}).methods({updatePopupPosition(e=this._anchor){let i=this._currentFlow??this.flow;Object.assign(this.style,{top:"0",left:"0",right:"auto",bottom:"auto",maxWidth:null,maxHeight:null});let r=this.native?this._dialog:this;Object.assign(r.style,{width:"auto",height:"auto"});let o=e&&this.matchSourceWidth?e.clientWidth:56*Math.ceil(r.clientWidth/56);r.style.setProperty("width",`${o}px`);let n=r.clientHeight;Object.assign(r.style,{height:null});let s={anchor:e,width:o,height:n,margin:this.popupMargin??(window.innerWidth<648?16:24)},l=ce(this),a=l?"right":"left",c=l?"left":"right",d=[(i??"corner")==="corner"?[{clientY:"bottom",clientX:a},{clientY:"bottom",clientX:c},{clientY:"top",clientX:a},{clientY:"top",clientX:c}]:[],(i??"adjacent")==="adjacent"?[{clientY:"top",clientX:c,directionX:c,directionY:"down"},{clientY:"top",clientX:a,directionX:a,directionY:"down"},{clientY:"bottom",clientX:c,directionX:c,directionY:"up"},{clientY:"bottom",clientX:a,directionX:a,directionY:"up"}]:[],(i??"overlay")==="overlay"?[{clientY:"top",clientX:a,directionX:c,directionY:"down"},{clientY:"top",clientX:c,directionX:a,directionY:"down"},{clientY:"bottom",clientX:a,directionX:c,directionY:"up"},{clientY:"bottom",clientX:c,directionX:a,directionY:"up"}]:[],(i??"vcenter")==="vcenter"?[{clientY:"center",clientX:c,directionX:c,directionY:"center"},{clientY:"center",clientX:a,directionX:a,directionY:"center"}]:[],(i??"hcenter")==="hcenter"?[{clientY:"bottom",clientX:"center",directionX:"center",directionY:"down"},{clientY:"top",clientX:"center",directionX:"center",directionY:"up"}]:[],(i??"center")==="center"?[{clientY:"center",clientX:"center",directionX:"center",directionY:"center"}]:[]].flat(),p;for(let h of d){let u=Et({...s,...h});if((!p||p.visibility<u.visibility)&&(p=u),u.visibility===1)break}let{maxWidth:m,maxHeight:f}=p.styles;if(m||f){let h=window.getComputedStyle(this);h.maxWidth&&(m=`min(${m}, ${h.maxWidth})`),h.maxHeight&&(f=`min(${f}, ${h.maxHeight})`)}Object.assign(this.style,{...p.styles,maxWidth:m,maxHeight:f})},onSlotChange({currentTarget:e}){let r=e.assignedNodes().some(o=>o.nodeType===o.ELEMENT_NODE||o.nodeType===o.TEXT_NODE&&o.nodeValue.trim().length);e.toggleAttribute("slotted",r)},showPopup(e,i=!0,r=null){if(this.open)return!1;this.open=!0,this._source=e,this._anchor=e;let{scrim:o}=this.refs;this._useScrim?(this.native?document.body.append(o):this.before(o),o.hidden=!1):o.remove();let n=e instanceof HTMLElement?e:document.activeElement;ki&&i&&!this._dialog.open&&this._dialog.show(),this._currentFlow=r,this.updatePopupPosition(e);let s,l,a;return this.useHistory&&(s={hash:Math.random().toString(36).slice(2,18)},window.history.state||window.history.replaceState({hash:Math.random().toString(36).slice(2,18)},document.title),a=window.history.state,l=window.history.scrollRestoration,window.history.scrollRestoration="manual",window.history.pushState(s,document.title),window.addEventListener("popstate",Mt),window.addEventListener("beforeunload",zr)),window.addEventListener("mousedown",Sr,{capture:!0}),window.addEventListener("resize",rt),window.addEventListener("scroll",rt),window.visualViewport&&(window.visualViewport.addEventListener("resize",rt),window.visualViewport.addEventListener("scroll",rt)),Se.push({element:this,previousFocus:n,state:s,previousState:a,scrollRestoration:l}),i&&this.focus(),!0},showModal(e,i,r){return this.open?!1:(this.modal=!0,ki&&(this._dialog.showModal(),this.native=!0),this.showPopup(e,i,r))},show(e,i,r){return navigator.userAgent.includes("Mac OS X")?this.showModal(e,i,r):this.showPopup(e,i,r)},close(e=void 0,i=!0){var o,n,s;if(!this.open||this._closing)return!1;if(this._source=null,this._closing=!0,this.modal=!1,this.refs.scrim.hidden=!0,this.native)this.native=!1;else{let l=document.querySelector("main");l&&l.removeAttribute("aria-hidden")}if(ki&&this._dialog.open){let l=document.activeElement;if(this._dialog.close(),!j(l,{preventScroll:!0})){let a=document.activeElement;(o=a==null?void 0:a.blur)==null||o.call(a)}}else this._dialog.returnValue=e;this.open=!1,this._currentFlow=null,this.dispatchEvent(new Event("close"));let r=Se.length;for(let l=r-1;l>=0;l--){let a=Se[l];if(a.element===this){this.useHistory&&a.state&&window.history&&window.history.state&&a.state.hash===window.history.state.hash&&(window.removeEventListener("popstate",Mt),window.history.back(),window.history.replaceState(a.previousState,document.title),window.history.scrollRestoration=a.scrollRestoration||"auto",window.addEventListener("popstate",Mt)),i&&((s=(n=a.previousFocus)==null?void 0:n.focus)==null||s.call(n,{preventScroll:!0})),Se.splice(l,1);break}else this.contains(a.element)&&a.element.close(!1)}return Se.length||(window.removeEventListener("popstate",Mt),window.removeEventListener("beforeunload",zr),window.removeEventListener("resize",rt),window.removeEventListener("mousedown",Sr,{capture:!0})),this._closing=!1,!0}}).overrides({onResizeObserved(e){!this.open||this._closing||this.updatePopupPosition()}}).html`<mdw-scrim id=scrim tabindex=-1 aria-hidden=true></mdw-scrim><dialog id=dialog aria-modal=true role=dialog aria-hidden={_ariaHidden} scrollable={scrollable}><slot id=slot on-slotchange={onSlotChange}></slot></dialog>`.css`:host([popover]){margin:0;border:0;padding:0}:host(::backdrop){display:none}:host{--mdw-popup__expand-duration:var(--mdw-motion-expand-duration, .25s);--mdw-popup__simple-duration:var(--mdw-motion-simple-duration, .1s);--mdw-popup__standard-easing:var(--mdw-motion-standard-easing, cubic-bezier(.4, 0, .2, 1));--mdw-popup__deceleration-easing:var(--mdw-motion-deceleration-easing, cubic-bezier(0, 0, .2, 1));--mdw-popup__fade-in-duration:var(--mdw-motion-fade-in-duration, .15s);--mdw-shape__size:28px;--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:fixed;inset-block-start:0;inset-inline-start:0;align-self:center;justify-self:center;display:block;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:auto;min-block-size:none;max-block-size:100vh;inline-size:auto;min-inline-size:none;max-inline-size:100vw;outline:0;pointer-events:none;opacity:0;transform:scale(0);visibility:hidden;z-index:24;color:rgb(var(--mdw-ink));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing);transition-delay:.2s,0s;transition-duration:0s,.2s,.2s;transition-property:visibility,opacity,transform;transition-timing-function:ease-out;will-change:visibility,opacity,transform}:host([open]){pointer-events:inherit;opacity:1;transform:none;visibility:inherit;transition-delay:0s;transition-timing-function:ease-in}:host([native][open]){opacity:0}#dialog{position:static;inset-block-start:0;inset-inline-start:0;display:contents;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;box-sizing:border-box;block-size:inherit;flex:inherit;margin:0;border:none;padding:inherit;padding:0;pointer-events:inherit;filter:inherit;opacity:1;transform:inherit;visibility:inherit;z-index:24;background-color:transparent;color:inherit}:host([color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([scrollable]){overflow-y:auto}#dialog::backdrop{background-color:transparent}#dialog:modal{position:inherit;inset:inherit;display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:auto;min-block-size:inherit;max-block-size:inherit;inline-size:auto;min-inline-size:inherit;max-inline-size:inherit;flex:inherit;padding:inherit;pointer-events:inherit;filter:inherit;transform:inherit;visibility:inherit;background-color:inherit;border-radius:inherit}#dialog[scrollable][open]{display:inherit;align-items:inherit;flex-direction:inherit;gap:inherit;justify-content:inherit;justify-items:inherit;place-items:inherit;block-size:100%;max-block-size:none;inline-size:100%;max-inline-size:none;flex:1}#dialog[scrollable][open]:modal{overflow:auto;block-size:100%;min-block-size:none;max-block-size:inherit;inline-size:100%;min-inline-size:none;max-inline-size:inherit;flex:inherit;padding:inherit}`.childEvents({dialog:{cancel(e){e.stopPropagation();let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)||e.preventDefault()},close(e){e.stopPropagation(),this.close(this.returnValue)},"~click"(e){if(e.target!==e.currentTarget||!this.native||e.offsetX>=0&&e.offsetX<e.currentTarget.offsetWidth&&e.offsetY>=0&&e.offsetY<e.currentTarget.offsetHeight)return;let i=new Event("cancel",{cancelable:!0});this.dispatchEvent(i)&&this.close()}},scrim:{"~click"(){let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}})}function Cr(t){let e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),i=[],r;for(;r=e.nextNode();){if(r.tagName==="SLOT")for(let o of r.assignedElements())o.tabIndex>=0&&!o.matches(":disabled")&&i.push(o),i.push(...Cr(o));r.tabIndex>=0&&!r.matches(":disabled")&&i.push(r)}return i}function Er(t,e,i=!0){let r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),o=[],n;for(;n=r.nextNode();){if(e&&n.hasAttribute("autofocus")){if(j(n))return!0;continue}if(n.tagName==="SLOT")for(let s of n.assignedElements({flatten:!0})){if(e&&s.hasAttribute("autofocus")){if(j(s))return!0;continue}if(s.tabIndex>=0){if(e||!i)o.push(n);else if(j(n))return!0}if(Er(s,e,i))return!0}if(n.tabIndex>=0){if(e||!i)o.push(n);else if(j(n))return!0}}for(let s of i?o:o.reverse())if(j(s))return!0;return!1}var Vo=_.extend().mixin(x).mixin(C).mixin(Pe).define({returnValue(){return this.refs.dialog.returnValue}}).observe({dividers:{value:null},headline:"string",icon:"string",default:{value:"confirm"},cancel:{value:"Cancel"},confirm:{value:"Confirm"}}).define({_anchor:{get(){return null},set(){}}}).set({flow:"center",_useScrim:!0}).methods({onSlotChange({currentTarget:t}){let i=t.assignedNodes().some(r=>r.nodeType===r.ELEMENT_NODE||r.nodeType===r.TEXT_NODE&&r.nodeValue.trim().length);t.toggleAttribute("slotted",i)},focus(){Er(this.shadowRoot,!0,!0)}}).expressions({cancelAutoFocus({default:t}){return t==="cancel"},confirmAutoFocus({default:t}){return t==="confirm"}}).html`<div id=dialog-inner><mdw-icon mdw-if={icon} id=icon class=content ink=secondary aria-hidden=true icon={icon}></mdw-icon><slot id=headline name=headline on-slotchange={onSlotChange} role=header>{headline}</slot><slot id=fixed name=fixed class=content on-slotchange={onSlotChange}></slot><mdw-divider id=divider-top size={dividers}></mdw-divider><slot id=content name=content></slot><mdw-divider id=divider-bottom size={dividers}></mdw-divider><slot id=actions name=actions><form method=dialog role=none><mdw-button id=cancel type=submit value=cancel autofocus={cancelAutoFocus} formnovalidate>{cancel}</mdw-button><mdw-button id=confirm type=submit value=confirm autofocus={confirmAutoFocus}>{confirm}</mdw-button></form></slot></div>`.recompose(({refs:{dialog:t,dialogInner:e,content:i,slot:r}})=>{t.setAttribute("aria-labelledby","headline"),t.setAttribute("aria-describedby","slot"),r.classList.add("content"),i.append(r),t.prepend(...e.childNodes),e.remove()}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__on-surface);position:fixed;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;overflow:visible;-webkit-overflow-scrolling:touch;overscroll-behavior:none;overscroll-behavior:contain;max-block-size:calc(100% - 40px);inline-size:max-content;min-inline-size:280px;max-inline-size:min(560px,calc(100% - 40px));padding-block-start:8px;transform:translateY(-40px) scaleY(0);transform-origin:top center!important;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}#dialog:modal{overflow:visible}:host([icon]){align-items:center}#icon{padding-block-start:16px;font-size:24px}#headline{display:block;padding-block-start:16px;padding-inline:24px;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}#headline:not([slotted]):empty{display:none}#body{padding-block:16px}.content{padding-inline:24px}#divider-top{padding-block-start:16px}mdw-divider:not([size]){color:transparent}mdw-divider[size=inset]{padding-inline:24px}#fixed{display:block;padding-block-start:16px;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#fixed:not([slotted]){display:none}#slot{display:block;overflow-y:auto;color:rgb(var(--mdw-color__on-surface-variant));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#scroller{display:block;overflow-y:auto}#form{display:contents}#actions{display:flex;align-self:flex-end;margin-block:24px;padding-inline:24px}`.events({keydown(t){if(t.key==="Tab"){if(!this.native){t.preventDefault();let e=Cr(this.shadowRoot);t.shiftKey&&e.reverse();let i=!1,r=!1;for(let o of e)if(i){if(j(o)){r=!0;break}}else i=o.matches(":focus");if(!r){for(let o of e)if(j(o))return}}return}if(t.key==="Escape"||t.key==="Esc"){t.preventDefault(),t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}},focusout(t){this.open&&(this._closing||this.modal||t.relatedTarget!==this.refs.scrim&&queueMicrotask(()=>{if(this.matches(":focus-within"))return;let e=document.activeElement;e&&this.contains(e)||this.close(void 0,!1)}))},submit(t){if(t.defaultPrevented)return;let e=t.target;if(!(e instanceof HTMLFormElement)||e.method!=="dialog")return;let i=t.submitter,r=i==null?void 0:i.value;this.close(r)}}).childEvents({dialog:{cancel(t){t.stopPropagation();let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)||t.preventDefault()},close(t){t.stopPropagation(),this.close(this.returnValue)},"~click"(t){if(t.target!==t.currentTarget||!this.native||t.offsetX>=0&&t.offsetX<t.currentTarget.offsetWidth&&t.offsetY>=0&&t.offsetY<t.currentTarget.offsetHeight)return;let e=new Event("cancel",{cancelable:!0});this.dispatchEvent(e)&&this.close()}}}).autoRegister("mdw-dialog");var ot=H.extend().mixin($).mixin(Re).set({_ariaRole:"heading",_baseAriaLevel:1}).observe({ariaLevel:"string",size:{type:"string",empty:"large"}}).observe({_computedAriaLevel({ariaLevel:t,size:e,_baseAriaLevel:i}){return t||(e==="medium"?`${i+1}`:e==="small"?`${i+2}`:`${i}`)}}).on({_computedAriaLevelChanged(t,e){this.updateAriaProperty("ariaLevel",e)},constructed(){this.updateAriaProperty("ariaLevel",this._computedAriaLevel)}}).css`:host{font:var(--mdw-typescale__display-large__font);letter-spacing:var(--mdw-typescale__display-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__display-medium__font);letter-spacing:var(--mdw-typescale__display-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__display-small__font);letter-spacing:var(--mdw-typescale__display-small__letter-spacing)}`.autoRegister("mdw-display");var $o=_.extend().mixin(x).mixin(C).mixin($).set({_ariaRole:"tooltip"}).observe({open:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"true":"false")}}}).html`<div id=hover-target></div><slot id=slot></slot>`.css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-bg:var(--mdw-color__inverse-surface);display:block;box-sizing:border-box;padding-block:calc(12px - var(--mdw-typescale__body-small__line-height)/ 2);padding-inline:8px;pointer-events:none;opacity:0;transform:scale(0);z-index:28;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition:transform .2s,opacity .2s}@supports (width:1lh){:host{padding-block:calc(12px - .5lh)}}:host([open]){pointer-events:auto;opacity:1;transform:scale(1)}#hover-target{position:absolute;inset-block-start:50%;inset-inline-start:50%;box-sizing:content-box;block-size:100%;inline-size:100%;padding:8px;transform:translate(-50%) translateY(-50%);z-index:-1}`.autoRegister("mdw-tooltip");function Be(t){return t.set({TOOLTIP_MOUSE_IDLE_MS:500,TOOLTIP_TOUCH_IDLE_MS:1500,_idleDebounce:null,_watchedParents:null,_resizeObserver:null,_intersectObserver:null,_parentScrollListener:null,tooltipSlotId:"slot"}).observe({tooltip:"string",autoTooltip:"boolean"}).html`<mdw-tooltip id=tooltip></mdw-tooltip>`.css`#tooltip{display:none}`.methods({cancelShowTooltip(){clearTimeout(this._idleDebounce)},scheduleHideTooltip(e){if(this.cancelShowTooltip(),!this.refs.tooltip.open)return;let r=0;switch(e){case"mouse":r=0;break;case"touch":r=1500;break;default:}this._idleDebounce=setTimeout(()=>{this.hideTooltip()},r)},scheduleShowTooltip(e){if(this.refs.tooltip.open)return;let r=0;switch(e){case"mouse":r=this.TOOLTIP_MOUSE_IDLE_MS;break;case"touch":r=this.TOOLTIP_TOUCH_IDLE_MS;break;default:}clearTimeout(this._idleDebounce),r?this._idleDebounce=setTimeout(this.showTooltip.bind(this),r):this.showTooltip()},showTooltip(){let e=this.refs.tooltip;if(e.open)return;document.body.append(this.refs.tooltip),this.recloneTooltip(),this.updateTooltipPosition(),this._resizeObserver.observe(this,{box:"border-box"}),this._resizeObserver.observe(e,{box:"border-box"}),this._intersectObserver.observe(this),this._intersectObserver.observe(e);let i=this;for(;i=i.offsetParent;)this._resizeObserver.observe(i,{box:"border-box"}),this._watchedParents.push(i),this._intersectObserver.observe(i),i.addEventListener("scroll",this._parentScrollListener);window.addEventListener("scroll",this._parentScrollListener),e.open=!0},hideTooltip(e=!1){e&&this.cancelShowTooltip(),this._resizeObserver.disconnect(),this._intersectObserver.disconnect();let i;for(;i=this._watchedParents.pop();)i.removeEventListener("scroll",this._parentScrollListener);window.removeEventListener("scroll",this._parentScrollListener);let r=this.refs.tooltip;r.open=!1,r.remove()},updateTooltipPosition(e){let r=this.refs.tooltip;Object.assign(r.style,{top:"0",left:"0",right:"auto",bottom:"auto",position:"fixed",maxWidth:null,maxHeight:null});let o={anchor:e??this.getBoundingClientRect(),width:r.clientWidth,height:r.clientHeight},n=getComputedStyle(this).direction==="rtl",s=n?"right":"left",l=n?"left":"right",a=[{clientY:"bottom",clientX:"center",offsetY:8},{clientY:"bottom",clientX:s,offsetY:8},{clientY:"bottom",clientX:l,offsetY:8},{clientY:"top",clientX:"center",offsetY:-8},{clientY:"top",clientX:s,offsetY:-8},{clientY:"top",clientX:l,offsetY:-8}],c;for(let d of a){let p=Et({...o,...d});if((!c||c.visibility<p.visibility)&&(c=p),p.visibility===1)break}Object.assign(r.style,{position:"fixed",...c.styles})},recloneTooltip(){let e,i=this.tooltip;i?e=[i]:e=this.refs[this.tooltipSlotId].assignedNodes().map(r=>r.cloneNode(!0)),this.refs.tooltip.replaceChildren(...e)},closeIfNotHovered(){let e=()=>{this.hoveredState||this.refs.tooltip.matches(":hover")||this.hideTooltip(!0)};et?requestAnimationFrame(e):e()}}).childEvents({slot:{slotchange:"recloneTooltip"},tooltip:{pointerleave:"closeIfNotHovered"}}).events({"~pointermove"(e){e.pointerType!=="touch"&&this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse")},"~keydown"({ctrlKey:e}){e&&this.hideTooltip(!0)},"~click"(){this.hideTooltip(!0)}}).on({constructed(){this._watchedParents=[],this._parentScrollListener=this.updateTooltipPosition.bind(this,null),this._resizeObserver=new ResizeObserver(()=>{this.refs.tooltip.open&&this.updateTooltipPosition()});let e=[0,.49,.5,.51,1];this._intersectObserver=new IntersectionObserver(i=>{let r=this.refs.tooltip;if(r.open){for(let o of i){if(o.intersectionRatio<=0){this.hideTooltip();return}if(o.target===r){this.updateTooltipPosition();return}if(o.target===this){o.intersectionRatio<=.5?this.hideTooltip():this.updateTooltipPosition(o.boundingClientRect);return}}this.updateTooltipPosition()}},{threshold:e})},_focusedChanged(e,i){i?!this._pointerPressed&&!this._focusedSynthetic&&this.autoTooltip&&this.showTooltip():this.closeIfNotHovered()},_hoveredChanged(e,i){i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("mouse"):this.closeIfNotHovered()},_pointerPressedChanged(e,i){this._lastInteraction==="touch"&&(i?this.autoTooltip&&!this.disabledState&&this.scheduleShowTooltip("touch"):this.scheduleHideTooltip("touch"))},disconnected(){this.hideTooltip(!0)},tooltipChanged(){this.recloneTooltip()}})}var Ho=fe.extend().mixin(Be).observe({lowered:"boolean",extended:"boolean",fabSize:{value:null},filled:{empty:"tonal"},elevated:{type:"boolean",empty:!0}}).observe({autoTooltip({extended:t}){return!t}}).recompose(({refs:{icon:t,slot:e}})=>{t.setAttribute("fab-size","{fabSize}"),e.setAttribute("extended","{extended}"),e.setAttribute("icon","{icon}")}).css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:16px;gap:0;grid-area:fab;min-inline-size:24px;padding:calc(16px + (var(--mdw-density) * 2px));background-color:rgb(var(--mdw-bg));box-shadow:var(--mdw-elevation__box-shadow__3);color:rgb(var(--mdw-ink));transition-duration:.2s;transition-property:box-shadow,gap,min-inline-size}:host(:where([extended])){gap:8px;min-inline-size:48px}#slot{display:inline-flex;align-items:center;min-block-size:24px;visibility:hidden;color:transparent;font-size:0;transition:color .2s,font-size .2s,visibility .2s}#slot[extended]{visibility:inherit;color:inherit;font-size:inherit;transition:color .2s,font-size .2s,visibility 0s}:host([fab-size=small]){--mdw-shape__size:12px;padding:calc(8px + (var(--mdw-density) * 2px))}:host([fab-size=large]){--mdw-shape__size:28px;padding:calc(30px + (var(--mdw-density) * 2px))}#icon{font-size:24px}#icon[fab-size=large]{font-size:36px}:host(:where([lowered])){--mdw-bg:var(--mdw-color__surface-container-low);box-shadow:var(--mdw-elevation__box-shadow__1)}:host(:where(:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__4)}:host(:where([lowered]:hover:not(:active))){box-shadow:var(--mdw-elevation__box-shadow__2)}`.autoRegister("mdw-fab");var Bo=_.extend().mixin(L).observe({hideBreakpoint:{value:728}}).observe({_styles:{...ne,get({hideBreakpoint:t}){if(t)return`@media(min-width:${t}px){:host{display:none}}`}}}).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"fab" auto/auto;justify-content:flex-end;margin:16px;pointer-events:none}@media(min-width:648px){:host{margin:24px}}#slot{pointer-events:auto}`.autoRegister("mdw-fab-container");var Yo=yi.extend().observe({type:{empty:"checkbox"},dropdown:"boolean",trailingSrc:"string",trailingIcon:"string"}).expressions({computedTrailingIcon:({trailingIcon:t,dropdown:e,trailingSrc:i})=>t||(e?"arrow_drop_down":i?"":null),iconVariation({checked:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={!icon} id=check-icon disabled={disabledState} selected={checked} aria-hidden=true icon=check variation=filled></mdw-icon><mdw-icon mdw-if={computedTrailingIcon} id=trailing-icon aria-hidden=true src={trailingSrc} icon={computedTrailingIcon}></mdw-icon>`.recompose(({refs:{icon:t,control:e,outline:i,slot:r,trailingIcon:o,checkIcon:n}})=>{t.setAttribute("mdw-if","{icon}"),t.setAttribute("ink","{iconInk}"),e.removeAttribute("role"),i.removeAttribute("mdw-if"),i.removeAttribute("ink"),i.removeAttribute("color"),i.setAttribute("selected","{checked}"),i.setAttribute("elevated","{elevated}"),i.setAttribute("icon",""),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.removeAttribute("ink"),r.removeAttribute("color"),r.before(n),r.after(o)}).css`:host{--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container);gap:8px;padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)));padding-inline-end:max(12px,calc(16px + (var(--mdw-density) * 2px)));background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}:host(:focus){--mdw-outline__rgb:var(--mdw-color__outline)}#outline{z-index:-1;background-color:transparent}:host(:where([trailing-icon],[dropdown],[trailing-src])){padding-inline-start:max(4px,calc(8px + (var(--mdw-density) * 2px)))}#outline[elevated]{background-color:rgb(var(--mdw-color__surface-container-low));border-color:transparent}#outline[selected]{background-color:rgb(var(--mdw-bg));border-color:transparent}:host([selected]){color:rgb(var(--mdw-ink))}#trailing-icon{position:relative;font-size:18px}.mdw-chip__checkbox{position:absolute;max-block-size:0;max-inline-size:0;appearance:none;pointer-events:none}#check-icon{font-size:0}#check-icon[selected]{font-size:18px}#check-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}:host([disabled]:is([elevated],[filled])){background-color:transparent}#outline[disabled]:is([elevated],[selected]){background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-filter-chip");var jo=H.extend().mixin(B).observe({grid:"boolean",columns:"integer",_autoColumns:{type:"integer",empty:4},_lastInlineSize:"float"}).observe({_resizeObserverEnabled:{type:"boolean",get({columns:t}){return!t}},_computedColumns({columns:t,_autoColumns:e}){return t||e||4}}).overrides({onResizeObserved(t){let{contentBoxSize:e}=t;if(!e.length)return;let[{inlineSize:i}]=e;this._lastInlineSize=i}}).on({_lastInlineSizeChanged(t,e){e>=840?this._autoColumns=12:e>=600?this._autoColumns=8:this._autoColumns=4},connected(){this._lastInlineSize=this.clientWidth}}).expressions({_isFlex({block:t,grid:e}){return!t&&!e}}).observe({_styles:{...ne,get({_computedColumns:t}){return(t||4)===4?"":{gridTemplateColumns:`repeat(${t},1fr)`}}}}).recompose(({refs:{slot:t}})=>{t.setAttribute("grid","{grid}"),t.setAttribute("flex","{_isFlex}"),t.setAttribute("columns","{_computedColumns}")}).css`:host{display:grid;column-gap:16px;grid-auto-flow:row;grid-template-columns:repeat(1fr,4)}:host([y=start]){align-items:flex-start}:host([y=end]){align-items:flex-end}:host([y=center]){align-items:center}:host([y=between]){align-items:space-between}:host([y=around]){align-items:space-around}:host([y=stretch]){align-items:stretch}:host([x=start]){justify-content:flex-start}:host([x=end]){justify-content:flex-end}:host([x=center]){justify-content:center}:host([x=between]){justify-content:space-between}:host([x=stretch]){justify-content:stretch}#slot,#slot[columns="4"]{--mdw-grid__columns:4;--mdw-grid__columns__4:1;--mdw-grid__columns__8:0;--mdw-grid__columns__12:0}#slot[columns="8"]{--mdw-grid__columns:8;--mdw-grid__columns__4:0;--mdw-grid__columns__8:1;--mdw-grid__columns__12:0}#slot[columns="12"]{--mdw-grid__columns:12;--mdw-grid__columns__4:0;--mdw-grid__columns__8:0;--mdw-grid__columns__12:1}::slotted(*){--mdw-grid__column-count:var(--mdw-grid__columns);--mdw-grid__column-count__4:var(--mdw-grid__column-count);--mdw-grid__column-count__8:var(--mdw-grid__column-count);--mdw-grid__column-count__12:var(--mdw-grid__column-count);grid-column:auto/span calc((min(var(--mdw-grid__column-count__4),4) * var(--mdw-grid__columns__4)) + (min(var(--mdw-grid__column-count__8),8) * var(--mdw-grid__columns__8)) + (min(var(--mdw-grid__column-count__12),12) * var(--mdw-grid__columns__12)))}::slotted([col-span="1"]){--mdw-grid__column-count:1}::slotted([col-span="2"]){--mdw-grid__column-count:2}::slotted([col-span="3"]){--mdw-grid__column-count:3}::slotted([col-span="4"]){--mdw-grid__column-count:4}::slotted([col-span="5"]){--mdw-grid__column-count:5}::slotted([col-span="6"]){--mdw-grid__column-count:6}::slotted([col-span="7"]){--mdw-grid__column-count:7}::slotted([col-span="8"]){--mdw-grid__column-count:8}::slotted([col-span="9"]){--mdw-grid__column-count:9}::slotted([col-span="10"]){--mdw-grid__column-count:10}::slotted([col-span="11"]){--mdw-grid__column-count:11}::slotted([col-span="12"]){--mdw-grid__column-count:12}::slotted([col-span="25%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 4)}::slotted([col-span="50%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns) / 2)}::slotted([col-span="100%"]){--mdw-grid__column-count:calc(var(--mdw-grid__columns))}::slotted([col-span-4="1"]){--mdw-grid__column-count__4:1}::slotted([col-span-4="2"]){--mdw-grid__column-count__4:2}::slotted([col-span-4="3"]){--mdw-grid__column-count__4:3}::slotted([col-span-4="4"]){--mdw-grid__column-count__4:4}::slotted([col-span-8="1"]){--mdw-grid__column-count__8:1}::slotted([col-span-8="2"]){--mdw-grid__column-count__8:2}::slotted([col-span-8="3"]){--mdw-grid__column-count__8:3}::slotted([col-span-8="4"]){--mdw-grid__column-count__8:4}::slotted([col-span-8="5"]){--mdw-grid__column-count__8:5}::slotted([col-span-8="6"]){--mdw-grid__column-count__8:6}::slotted([col-span-8="7"]){--mdw-grid__column-count__8:7}::slotted([col-span-8="8"]){--mdw-grid__column-count__8:8}::slotted([col-span-12="1"]){--mdw-grid__column-count__12:1}::slotted([col-span-12="2"]){--mdw-grid__column-count__12:2}::slotted([col-span-12="3"]){--mdw-grid__column-count__12:3}::slotted([col-span-12="4"]){--mdw-grid__column-count__12:4}::slotted([col-span-12="5"]){--mdw-grid__column-count__12:5}::slotted([col-span-12="6"]){--mdw-grid__column-count__12:6}::slotted([col-span-12="7"]){--mdw-grid__column-count__12:7}::slotted([col-span-12="8"]){--mdw-grid__column-count__12:8}::slotted([col-span-12="9"]){--mdw-grid__column-count__12:9}::slotted([col-span-12="10"]){--mdw-grid__column-count__12:10}::slotted([col-span-12="11"]){--mdw-grid__column-count__12:11}::slotted([col-span-12="12"]){--mdw-grid__column-count__12:12}`.autoRegister("mdw-grid");var Wo=ot.extend().set({_baseAriaLevel:4}).css`:host{font:var(--mdw-typescale__headline-large__font);letter-spacing:var(--mdw-typescale__headline-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing)}`.autoRegister("mdw-headline");var Uo=fe.extend().mixin(Be).set({_allowedTypes:["button","submit","reset","checkbox","file"]}).observe({_ariaPressed:{get({type:t,checked:e,indeterminate:i}){return t!=="checkbox"?null:i?"mixed":e?"true":"false"}},_isToggle({type:t}){return t==="checkbox"},autoTooltip:{empty:!0}}).expressions({iconVariation({checked:t,outlined:e,_isToggle:i}){return!t&&(i||e)?null:"filled"}}).childEvents({control:{keydown(t){if(t.key!=="Enter"&&t.key!==" ")return;let e=t.currentTarget;e.type==="checkbox"&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),!e.disabled&&e.click())}}}).recompose(({refs:{icon:t,control:e,outline:i}})=>{t.removeAttribute("mdw-if"),e.setAttribute("aria-pressed","{_ariaPressed}"),i.setAttribute("toggle","{_isToggle}"),i.setAttribute("selected","{checked}")}).observe({_styles:{...ne,get({checked:t,disabled:e,filled:i,outlined:r,_isToggle:o}){return!o||e?null:r?t?{backgroundColor:"rgb(var(--mdw-bg))"}:{color:"rgb(var(--mdw-color__on-surface-variant))"}:t||i==null?null:{backgroundColor:"rgb(var(--mdw-color__surface-container-highest))",color:i==="tonal"?"rgb(var(--mdw-color__on-surface-variant))":"rgb(var(--mdw-bg))"}}}}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:rgb(var(--mdw-color__on-surface-variant));align-items:center;justify-content:center;min-block-size:1em;min-inline-size:1em;padding:max(8px,calc(8px + (var(--mdw-density) * 2px)));font-size:24px;transition-property:background-color,box-shadow}:host(:where([type=checkbox])){--mdw-ink:var(--mdw-color__primary)}:host(:where([filled])){--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary)}:host(:where([filled=tonal])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host(:where([outlined])){--mdw-ink:var(--mdw-color__on-surface-variant);background-color:transparent}:host(:where([outlined][type=checkbox])){--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface)}#slot{display:none}#icon{pointer-events:none;font-size:inherit;transition-property:color,inline-size,width}#state{z-index:1}#ripple-container{z-index:2}#outline[focused]{opacity:1;color:inherit}#outline[focused][toggle]{color:rgb(var(--mdw-color__outline))}#outline[selected]:not([disabled]){opacity:0}`.autoRegister("mdw-icon-button");function ze(t){return t.mixin(G).mixin(C).set({stateLayer:!0}).observe({type:{empty:"text"},icon:"string",iconVariation:"string",label:"string",filled:"boolean",outlined:"boolean",inputPrefix:"string",inputSuffix:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconLabel:"string",supporting:"string",error:"string",placeholder:{nullParser:String}}).observe({erroredState({error:e,_invalid:i,_userInteracted:r}){return r&&!!(e||i)}}).expressions({computePlaceholder({filled:e,outlined:i,label:r,placeholder:o}){return e||i?o:o??r},shouldShowSupporting({erroredState:e,supporting:i}){return e||i!=null},computeSupportingText({error:e,erroredState:i,_validationMessage:r,supporting:o}){return(e||i&&r||o)??""},populatedState({value:e,_badInput:i}){return!!e||i},_showLabelText({label:e,filled:i,outlined:r}){return e&&(i||r)}}).expressions({_shapeShapeTop({shapeTop:e,filled:i}){return e||i},computedIconVariation({iconVariation:e,outlined:i}){return e??(i?null:"filled")}}).html`<div id=shape role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined} shape-top={_shapeShapeTop}><mdw-icon mdw-if={icon} id=icon aria-hidden=true disabled={disabledState} icon={icon} variation={computedIconVariation}></mdw-icon><div id=inline role=none filled={filled} icon={icon} trailing-icon={trailingIcon} populated={populatedState} focused={focusedState} label={label} outlined={outlined}><span mdw-if={inputPrefix} class=inline id=prefix aria-hidden=true focused={focusedState} populated={populatedState}>{inputPrefix}</span> <span mdw-if={inputSuffix} class=inline id=suffix aria-hidden=true focused={focusedState} populated={populatedState}>{inputSuffix}</span></div><mdw-icon-button tabindex=-1 disabled={disabledState} mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} disabled={disabledState} icon={trailingIcon}>{trailingIconLabel}</mdw-icon-button><div mdw-if={filled} id=indicator aria-hidden=true focused={focusedState} hovered={hoveredState} errored={erroredState} disabled={disabledState}></div></div><div id=label-text mdw-if={_showLabelText} aria-hidden=true outlined={outlined} populated={populatedState} focused={focusedState} icon={icon} trailing-icon={trailingIcon} disabled={disabledState} errored={erroredState}>{label}</div><div mdw-if={shouldShowSupporting} id=supporting disabled={disabledState} errored={erroredState}>{computeSupportingText}<slot id=supporting-slot name=supporting></slot></div>`.recompose(({html:e,refs:{control:i,outline:r,state:o,shape:n,inline:s}})=>{i.setAttribute("placeholder","{computePlaceholder}"),i.setAttribute("aria-label","{label}"),i.setAttribute("input-suffix","{inputSuffix}"),i.setAttribute("errored","{erroredState}"),i.setAttribute("aria-describedby","supporting"),i.removeAttribute("aria-labelledby"),i.classList.add("inline"),o.setAttribute("mdw-if","{!outlined}"),r.append(e`<div id=outline-left class=outline-section focused={focusedState}></div><div id=gap label={label} populated={populatedState} focused={focusedState}><div id=gap-slot focused={focusedState}></div><span id=gap-label>{label}</span></div><div id=outline-right class=outline-section focused={focusedState}></div>`),r.setAttribute("label","{label}"),r.setAttribute("errored","{erroredState}"),n.prepend(r,o),s.prepend(i)}).on({sizeChanged(e,i){this.refs.control.style.setProperty("--size",`${i}ch`)}}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-text-field__ratio:calc(var(--mdw-density) * .125 + 1);--control__margin-top:calc(var(--mdw-typescale__body-small__line-height) / 2);--control__padding-top:calc((var(--mdw-text-field__ratio) * 16px) - calc(var(--mdw-typescale__body-small__line-height) / 2));--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 16px);--control__margin-bottom:0px;--inline-color:rgb(var(--mdw-color__on-surface-variant));--descriptor-opacity:.5;--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-type__font:var(--mdw-typescale__body-large__font);--mdw-type__letter-spacing:var(--mdw-typescale__body-large__letter-spacing);display:inline-block;border-radius:0;color:rgb(var(--mdw-color__on-surface));font:var(--mdw-type__font);letter-spacing:var(--mdw-type__letter-spacing)}:host(:is([color],[ink])){background-color:transparent;color:rgb(var(--mdw-color__on-surface))}#shape[label][outlined]{--mdw-shape__size__top-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-start-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__top-end-size:min(var(--mdw-shape__size), 12px);--mdw-shape__size__bottom-end-size:min(var(--mdw-shape__size), 12px)}#shape{position:relative;display:flex;cursor:inherit;z-index:0;background-color:transparent;border-start-start-radius:calc(var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__size__bottom-end-size));font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#inline{display:flex;align-items:center;overflow:visible;flex:1;padding-block:var(--control__margin-top) var(--control__margin-bottom);cursor:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;transition:none .2s cubic-bezier(0,0,.2,1)}#shape:where([filled],[color]){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-color__on-surface))}#shape[outlined]{background-color:transparent}#indicator,#label-text{color:rgb(var(--mdw-color__on-surface-variant))}:is(#label-text,#indicator)[focused]{color:rgb(var(--mdw-ink))}#shape[focused]{transition:none .1s cubic-bezier(.4,0,1,1)}#shape[shape-top]{--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px}#control::placeholder,#prefix,#suffix{opacity:var(--descriptor-opacity);color:var(--inline-color);transition-duration:inherit;transition-property:opacity;transition-timing-function:inherit;will-change:opacity}:host([label]:is([filled],[outlined])){--descriptor-opacity:0}#control{position:relative;inset:auto;align-self:flex-start;display:inline-block;box-sizing:border-box;block-size:auto;min-block-size:0;inline-size:100%;min-inline-size:0;flex:1;border-block-end:solid var(--control__margin-bottom) transparent;padding-block:var(--control__padding-top) var(--control__padding-bottom);appearance:none;caret-color:rgb(var(--mdw-ink));cursor:auto;transform:none;visibility:inherit;background-color:transparent;border-color:transparent;color:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-family:inherit;letter-spacing:inherit;text-align:initial;transition-duration:inherit;transition-property:color;transition-timing-function:inherit}#prefix,#suffix{padding-block:var(--control__padding-top) var(--control__padding-bottom)}#control::selection{background-color:rgb(var(--mdw-ink));color:rgb(var(--mdw-color__surface))}#state{--mdw-state__focused-opacity:0;--mdw-state__pressed-opacity:0}mdw-icon{--mdw-icon__size:24px;align-self:center;color:var(--inline-color)}#icon{order:-2;margin-inline-start:12px;font-size:24px}#prefix{order:-1}#suffix{order:1}#trailing-icon{order:2;margin-inline-end:12px}#indicator{position:absolute;inset-block-end:0;inset-inline:0;border-block-end:2px solid currentColor;pointer-events:none;transform:scaleY(.5);z-index:1;transition-duration:inherit;transition-property:transform;transition-timing-function:inherit;will-change:transform}#indicator[focused]{transform:scaleY(1)}#label-text{position:absolute;inset-block-start:0;inset-inline:0;display:block;overflow-x:clip;overflow-y:visible;padding-inline:16px;pointer-events:none;opacity:1;transform:translateY(calc((var(--control__margin-top) + var(--control__padding-top) + 100% + var(--control__padding-bottom) + var(--control__margin-bottom))/ 2)) translateY(-50%);z-index:4;color:rgb(var(--mdw-color__on-surface-variant));text-overflow:ellipsis;white-space:nowrap;transition-duration:.2s;transition-property:inset-inline-start,font-size,transform;will-change:inset-inline-start,font-size,transform}@supports (-moz-appearance:none){#label-text{overflow-x:hidden}}#label-text[focused]{color:rgb(var(--mdw-ink))}#label-text[icon]{inset-inline-start:36px}#label-text[trailing-icon]{inset-inline-end:36px}#label-text:is([focused],[populated]){transform:translateY(calc(var(--mdw-text-field__ratio) * 8px));font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#label-text[outlined]:is([focused],[populated]){inset-inline:0;transform:translateY(-50%)}:is(#prefix,#suffix):is([focused],[populated]){opacity:1}#control:is(:focus,:not(:placeholder-shown))::placeholder{opacity:.7}#control[input-suffix]{text-align:end}#outline{position:absolute;inset:0;border-style:solid;border-width:0;pointer-events:none;border-color:currentColor;border-radius:inherit;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-ink));transition-delay:0;transition-duration:0}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),.12)}#outline:before{content:none}.outline-section{position:relative;border:1px solid currentColor}.outline-section[focused]{border-width:2px}#outline-left{border-right-width:0;border-top-left-radius:inherit;border-bottom-left-radius:inherit}#outline-right{border-left-width:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit}#outline{display:grid;grid-auto-flow:column;grid-template-columns:1fr 0 1fr;color:rgb(var(--mdw-color__outline))}#outline[label]{grid-template-columns:12px minmax(0,auto) minmax(12px,1fr)}#outline[hovered]{color:rgb(var(--mdw-color__on-surface))}#outline[focused]{color:rgb(var(--mdw-ink))}.outline-section{min-inline-size:12px}.outline-section:after,.outline-section:before{max-inline-size:none}.outline-left{grid-column:calc(2 - var(--mdw-dir,1))/span 1}.outline-right{grid-column:calc(2 + var(--mdw-dir,1))/span 1}#gap{position:relative;display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;font:var(--mdw-typescale__body-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing);transition-duration:inherit;transition-property:padding;transition-timing-function:inherit}#gap-label{display:inline-block;overflow:clip hidden;padding-inline:4px;color:transparent;white-space:nowrap}#gap:after{content:"";position:absolute;inset:0;border-block-end:solid 1px currentColor}#gap[focused]:after{border-block-end-width:2px}#gap-slot{position:absolute;inset:0}#gap-slot:after,#gap-slot:before{content:"";position:absolute;inset:0;border-block-start:solid 1px currentColor;transition:transform .2s;will-change:transform}#gap-slot[focused]:after,#gap-slot[focused]:before{border-block-start-width:2px}#gap-slot:before{margin-right:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:0 0}#gap-slot:after{margin-left:-.99px;transform:var(--gap-transform,scaleX(.5));transform-origin:100% 0}#gap:is([focused],[populated]){--gap-transform:scaleX(0)}#gap:empty{padding:0}#inline[label][filled]{align-items:flex-start}:host([filled]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-text-field__ratio:calc(var(--mdw-density) * .25 + 1)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc(var(--mdw-text-field__ratio) * 4px);--control__margin-bottom:calc(var(--mdw-text-field__ratio) * 4px)}#supporting{min-block-size:var(--mdw-typescale__body-small__line-height);margin-block-start:4px;margin-inline:16px;font-weight:var(--mdw-typescale__body-small__font-weight);font-size:var(--mdw-typescale__body-small__font-size);line-height:var(--mdw-typescale__body-small__line-height);font-family:var(--mdw-typescale__body-small__font-family);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}#control[errored]{caret-color:rgb(var(--mdw-color__error))}#control[errored]::selection{background-color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]{color:rgb(var(--mdw-color__error))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([hovered]){color:rgb(var(--mdw-color__on-error-container))}:is(#indicator,#label-text,#supporting,#outline)[errored]:where([focused]){color:rgb(var(--mdw-color__error))}#shape[disabled],#shape[disabled] #control{cursor:not-allowed}#outline[disabled]{color:rgba(var(--mdw-color__outline),.12)}#label-text[disabled],#supporting[disabled],.inline[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}mdw-icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled]{background-color:rgba(var(--mdw-color__on-surface),.04);color:rgba(var(--mdw-color__on-surface),.38)}#indicator[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#shape[disabled][outlined]{background-color:transparent}`}var Si=_.extend().mixin(x).mixin(U).mixin(C).mixin(Pe).observe({elevation:"integer"}).css`:host{filter:var(--mdw-elevation__drop-shadow__0);transition:filter .2s}:host(:where([elevation="1"])){filter:var(--mdw-elevation__drop-shadow__1)}:host(:where([elevation="2"])){filter:var(--mdw-elevation__drop-shadow__2)}:host(:where([elevation="3"])){filter:var(--mdw-elevation__drop-shadow__3)}:host(:where([elevation="4"])){filter:var(--mdw-elevation__drop-shadow__4)}:host(:where([elevation="5"])){filter:var(--mdw-elevation__drop-shadow__5)}`.autoRegister("mdw-popup");var be;function nt(){return be||(be=new Si,be.scrollable=!0,be.shapeStyle="extra-small",be.color="surface",be.matchSourceWidth=!0,be.flow="corner",be.elevation=2),be}var Xo=_.extend().mixin(x).mixin(N).mixin(K).mixin(ze).mixin(B).observe({autocompleteInline:"boolean",autocompleteList:"string",autosuggestInline:"boolean",autoSelect:"boolean",_expanded:"boolean",acceptOnEscape:"boolean",_listbox:{type:"object",value:null},_focusedValue:"string",_focusedPosInSet:{value:-1},_listboxSize:{value:-1},_draftInput:{type:"string",nullable:!1},_hasSuggestion:"boolean",_listboxValue:"string",_lastComputedListboxValue:{type:"string",nullable:!1},_values:{type:"array",value:[]},_chipSelected:"boolean"}).observe({_hasListbox({_listbox:t}){return!!t},_isSelect({type:t}){return t.toLowerCase()==="select-one"||t.toLocaleLowerCase()==="select-multiple"}}).define({listbox(){return this._listbox}}).set({_onListboxChangeListener:null,_onListboxClickListener:null,_onPopupFocusoutListener:null,_suggestionText:"",_suggestionValue:"",_suggestionOption:null}).define({stateTargetElement(){return this.refs.control}}).methods({onResizeObserved(){this._expanded&&nt().updatePopupPosition(this.refs.shape)},onListboxClick(t){this.closeListbox(),this.refs.control.focus()},onListboxChange(t){if(this.multiple){let o=[...this._listbox.selectedOptions].map(n=>n.value);this._values=o,this._input.value&&this.closeListbox();return}let e=this._listbox.selectedOptions.item(0);this.render({selectedOption:e});let{label:i,value:r}=e;this._suggestionText=i,this._suggestionValue=r,this._suggestionOption=e,this._hasSuggestion=!0,this.acceptSuggestion(!0),this.closeListbox(),this.refs.control.focus()},onPopupFocusout({relatedTarget:t}){this._expanded&&(t&&(this===t||this.contains(t)||nt().contains(t))||this.closeListbox())},applyAutocompleteList(){let{_listbox:t,_draftInput:e}=this;if(!t)return;let i=e.toLowerCase();for(let r of t)r.hidden=!r.label.toLowerCase().startsWith(i)},showListbox(){let t=this._listbox;if(!t)return;this._expanded=!0;let{ariaListbox:e,shape:i}=this.refs;e.setAttribute("aria-hidden","false");let r=nt();"popover"in r?(this.insertAdjacentElement("afterend",r),r.popover="manual",r.showPopover()):document.body.append(r),r.replaceChildren(t),r.showPopup(i,!1),r.addEventListener("focusout",this._onPopupFocusoutListener),!this._isSelect&&!this.multiple&&(t.value=this._listboxValue);let[o]=t.selectedOptions;o&&o.scrollIntoView({behavior:"instant",block:"nearest"})},closeListbox(){this._expanded=!1;let{_listbox:t}=this;if(!t)return;let e=nt();this.refs.ariaListbox.setAttribute("aria-hidden","true"),this.replaceChildren(t),e.close(void 0,!1),e.remove()},toggleListbox(){this._expanded?this.closeListbox():this.showListbox()},suggestOption(t){this.render({selectedOption:t});let{_draftInput:e,_input:i,_isSelect:r,autocompleteInline:o,_expanded:n,autoSelect:s}=this,{label:l,value:a}=t;if(this._suggestionText=l,this._suggestionValue=a,this._suggestionOption=t,this._hasSuggestion=!0,s){this.acceptSuggestion(!0);return}if(r&&!this.multiple||o){let c=l,d=0;n?!r&&l.toLowerCase().startsWith(e.toLowerCase())?(c=e+l.slice(e.length),d=e.length):d=l.length:d=0,i.value=c,o&&i.setSelectionRange(d,l.length),n||this.acceptSuggestion(!0)}},acceptSuggestion(t=!1){if(!this._hasSuggestion||this.readOnly)return;let{_suggestionText:e,_suggestionValue:i,_input:r,multiple:o,_listbox:n,_values:s}=this;if(o){let l=[...s.filter(Boolean),i??e];this._values=[...new Set(l)]}else this.value=i,r.value=e,this._draftInput=e,n.value=i;t&&this.dispatchEvent(new Event("change",{bubbles:!0}))},changeSuggestion({first:t,last:e,next:i,previous:r,startsWith:o,value:n,label:s}){let l=this._listbox,a,c,d,p,m,f=-1,h=-1;for(let u of l.options){if(h++,!d&&u.focused&&(d=u,p=h,a&&!i&&!e))break;if(!u.hidden){if(e){a=u,c=h;continue}if(t){a||(a=u,c=h);continue}if(o!=null){!a&&u.label.toLowerCase().startsWith(o)&&(a=u,c=h);continue}if(n!=null){!a&&u.value===n&&(a=u,c=h);continue}if(s!=null){!a&&u.label===s&&(a=u,c=h);continue}if(p!==h){if(r)a=u,c=h;else if(i)if(d){a=u,c=h;break}else m||(m=u,f=h)}}}if(d&&d!==a&&(d.focused=!1),a||(c=f,a=m,this._input.value=this._draftInput),c===-1){this._focusedPosInSet=-1,this._hasSuggestion=!1;return}this._focusedPosInSet=c+1,a.focused=!0,a.scrollIntoView({behavior:"instant",block:"nearest"}),this.suggestOption(a)},resetSuggestion(){this._isSelect?this.changeSuggestion({label:this._draftInput}):this.changeSuggestion({value:this._listboxValue})},refreshMultiple(){let{_values:t,multiple:e}=this;if(!e){this.refs.chips.replaceChildren();return}let i=this.refs.chips.firstElementChild;for(let r=0;r<t.length;r++){let o=t[r],n;if(this.listbox){for(let s of this.listbox.options)if(s.value===o){n=s;break}}i??=this.refs.chips.appendChild(document.createElement("mdw-input-chip")),i.closeButton=!0,i.textContent=(n==null?void 0:n.label)||o,i.textContent=(n==null?void 0:n.label)||o,i.disabled=this.disabled,i.readOnly=this.readOnly,i.onclose??=this.onChipClose.bind(this),i=i.nextElementSibling}for(;i;){let r=i;i=i.nextElementSibling,r.remove()}if(this._chipSelected=!1,this._input.value="",this._draftInput="",this._listboxValue="",this.listbox)for(let r of this.listbox.options)r.selected=t.includes(r.value)},populateInputFromListbox(){if(this.multiple){this.refreshMultiple();return}if(!this._isSelect||!this._listbox)return;this._listbox.value=this._value;let[t]=this._listbox.selectedOptions;t&&(this._input.value=t.label,this._draftInput=t.label)},onChipClose({currentTarget:t}){let e=t,i=0;for(;e=e.previousSibling;)i++;t.remove(),this._values.splice(i,1),this._values=[...this._values]}}).childEvents({control:{click(){this._isSelect&&(this.readOnly||this.toggleListbox())},input(t){if(!this._hasListbox)return;if(t.stopPropagation(),!this.dispatchEvent(new InputEvent("input",{composed:!0,data:t.data,bubbles:!0,dataTransfer:t.dataTransfer,detail:t.detail,inputType:t.inputType,view:t.view,targetRanges:t.getTargetRanges(),isComposing:t.isComposing}))){t.preventDefault();return}let i=t.currentTarget.value;this._draftInput=i,this.autocompleteList!=null&&this.autocompleteList!=="custom"&&this.applyAutocompleteList(),this.resetSuggestion(),i&&!this._expanded&&this._listbox.length&&this.showListbox(),t.data!=null&&this.autosuggestInline&&this.changeSuggestion({startsWith:this._draftInput.toLocaleLowerCase()})},keydown(t){if(this._listbox){switch(t.key){case"Home":if(!this._isSelect||this.readOnly)return;this.changeSuggestion({first:!0});break;case"End":if(this._chipSelected=!1,!this._isSelect||this.readOnly)return;this.changeSuggestion({last:!0});break;case"ArrowDown":case"Down":if(this.disabled||this.readOnly||(this._chipSelected=!1,this.readOnly))return;if(t.altKey){this.toggleListbox();break}if(!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({next:!0});break;case"ArrowUp":case"Up":if(this.disabled||this.readOnly)return;if(t.altKey){this.toggleListbox();break}if(this._chipSelected=!1,!this._expanded&&!this.autocompleteInline&&!this._isSelect)return;this.changeSuggestion({previous:!0});break;case"Escape":if(!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptOnEscape?this.acceptSuggestion(!0):this.resetSuggestion(),this.closeListbox();break;case"Space":if(this.disabled||this.readOnly||!this._isSelect||!this._listbox)return;this._expanded?this.multiple&&this._suggestionOption&&(this._suggestionOption.selected=!this._suggestionOption.selected,this.closeListbox()):this.showListbox();break;case"Backspace":if(this.disabled||this.readOnly||!this.multiple||this._isSelect)return;this._input.value||(this._chipSelected?(this._values.pop(),this._values=[...this._values]):this._values.length&&(this._chipSelected=!0));return;case"Tab":if(!this._expanded&&this.multiple)return;this.closeListbox(),this.acceptSuggestion(!0),t.stopPropagation();return;case"Enter":if(this._chipSelected=!1,!this._expanded)return;t.stopImmediatePropagation(),t.preventDefault(),this.acceptSuggestion(!0),this.closeListbox();break;case" ":return;default:if(this._isSelect&&t.key.length===1){this.changeSuggestion({startsWith:t.key.toLocaleLowerCase()});break}return}t.stopPropagation(),t.preventDefault()}}},slot:{slotchange({currentTarget:t}){if(this._expanded)return;let[e]=t.assignedElements(),i=this._listbox;i!==e&&(i&&(i.removeEventListener("change",this._onListboxChangeListener),i.removeEventListener("click",this._onListboxClickListener),i._handleFormReset=!0),this._listbox=e,e&&(this.multiple||(e.required=!0),e._handleFormReset=!1,e.addEventListener("change",this._onListboxChangeListener),e.addEventListener("click",this._onListboxChangeListener),this.populateInputFromListbox()))}},trailingIcon:{"~click"(){this._listbox&&(this.toggleListbox(),this.refs.control.focus())}}}).events({blur({relatedTarget:t}){if(this._chipSelected=!1,!this._expanded)return;let e=nt();e!==t&&(t&&e.contains(t)||e.matches(":focus-within,:focus")||this.closeListbox())}}).expressions({showTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i,readOnly:r}){return t??(e&&!r?i?"arrow_drop_up":"arrow_drop_down":null)},computedTrailingIcon({trailingIcon:t,_listbox:e,_expanded:i}){return t??(e?i?"arrow_drop_up":"arrow_drop_down":null)},controlTypeAttrValue({_isSelect:t,type:e}){return t?"text":e},controlReadonlyAttrValue({_isSelect:t,type:e,readOnly:i}){return t?!0:i},controlIsSelect({_isSelect:t,type:e}){return t},ariaExpandedAttrValue({_hasListbox:t,_expanded:e}){return t?`${e}`:null},ariaControlsAttrValue({_hasListbox:t}){return t?"aria-listbox":null},ariaAutocompleteAttrValue({_hasListbox:t,autocompleteList:e,_isSelect:i,autocompleteInline:r}){return!t||i?null:e!=null?"both":"inline"},ariaActiveDescendantAttrValue({_hasListbox:t,_expanded:e,_focusedValue:i}){return t?e&&i?"aria-active":"":null},controlRoleAttrValue({_hasListbox:t}){return t?"combobox":null},populatedState({value:t,_badInput:e,_draftInput:i,type:r}){return!!t||e||!!i||r==="datetime-local"}}).recompose(({refs:{control:t,trailingIcon:e,shape:i,labelText:r}})=>{t.setAttribute("aria-activedescendant","{ariaActiveDescendantAttrValue}"),t.setAttribute("aria-autocomplete","{ariaAutocompleteAttrValue}"),t.setAttribute("aria-controls","{ariaControlsAttrValue}"),t.setAttribute("aria-expanded","{ariaExpandedAttrValue}"),t.setAttribute("type","{controlTypeAttrValue}"),t.setAttribute("role","{controlRoleAttrValue}"),t.setAttribute("readonly","{controlReadonlyAttrValue}"),t.setAttribute("autocomplete","off"),t.setAttribute("is-select","{controlIsSelect}"),e.setAttribute("mdw-if","{showTrailingIcon}"),e.setAttribute("icon","{computedTrailingIcon}"),i.setAttribute("trailing-icon","{computedTrailingIcon}"),r.setAttribute("trailing-icon","{computedTrailingIcon}")}).overrides({_onSetValue(t){this.multiple?this._values=t.split(",").filter(Boolean):this._isSelect?this._value=t:(this._input.value=t,this._value=this._input.value)},_onControlValue(t){if(this.multiple){t&&(this._chipSelected=!1);return}this._value=t}}).on({_valueChanged(t,e){this.multiple||(this._isSelect?this.populateInputFromListbox():this._listboxValue=e)},_valuesChanged(t,e){this.multiple&&e&&(this._value=e.join(","),this.refreshMultiple())},_chipSelectedChanged(t,e){if(!this.multiple)return;let i=this.refs.chips.lastElementChild;i&&(i.selected=e)},_listboxValueChanged(t,e){this._hasListbox&&(this._listbox.value=e,this._draftInput=e,this.changeSuggestion({value:e}))},_expandedChanged(t,e){this._useFormImplicitSubmission=!e},constructed(){this._onListboxChangeListener=this.onListboxChange.bind(this),this._onListboxClickListener=this.onListboxClick.bind(this),this._onPopupFocusoutListener=this.onPopupFocusout.bind(this),document.addEventListener("DOMContentLoaded",()=>this.populateInputFromListbox(),{once:!0})},multipleChanged(t,e){this.listbox&&(this.listbox.multiple=e),e&&this._onSetValue(this._input.value)},disabledStateChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()},readOnlyChanged(){this.refreshMultiple(),this._chipSelected=!1,this.closeListbox()}}).html`<div id=chips mdw-if={multiple}></div><slot id=slot></slot><div id=aria-listbox role=listbox mdw-if={_hasListbox}><div id=aria-active role=option aria-hidden=false aria-label={selectedOption.label} aria-setsize={_listbox.length} aria-posinset={_focusedPosInSet}></div></div>`.css`#slot,#aria-listbox{display:none}#trailing-icon{align-self:center}#control:where([type=button],[is-select]){cursor:pointer}#inline[multiple]{gap:8px}mdw-input-chip{align-self:baseline}#control[multiple]{align-self:baseline}#chips{display:contents}#inline{flex-wrap:wrap}#inline:where([filled],[outlined]){padding-inline:16px}#control{flex:1 1 8ch}#control[is-select][multiple]{flex:1 1 0px}`.recompose(({refs:{inline:t,chips:e}})=>{t.prepend(e),t.setAttribute("multiple","{multiple}")}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-input");var qo=H.extend().mixin(C).mixin(L).mixin(te).observe({avatar:"boolean",closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},readOnly:{attr:"readonly",type:"boolean"},disabled:"boolean",icon:"string",iconInk:"string",src:"string",svg:"string",viewBox:"string",svgPath:"string",onclose:Z,selected:"boolean"}).set({outlined:!0}).expressions({hasIcon({icon:t,svg:e,src:i,svgPath:r}=this){return t??e??i??r},showCloseIcon({disabled:t,readOnly:e,closeButton:i}){return i&&!t&&!e}}).html`<mdw-button role=none tabindex=-1 href={href} target={target} download={download} ping={ping} rel={rel} hreflang={hreflang} referrerpolicy={referrerPolicy} id=action disabled={disabled}></mdw-button><mdw-icon mdw-if={hasIcon} id=icon ink={iconInk} disabled={disabled} outlined={outlined} variation={iconVariation} aria-hidden=true svg={svg} src={src} svg-path={svgPath} view-box={viewBox} icon={icon} avatar={avatar}></mdw-icon><mdw-icon-button role=none disabled={disabled} tabindex=-1 mdw-if={showCloseIcon} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.css`:host{--mdw-shape__size:8px;--mdw-ink:var(--mdw-color__on-surface);position:relative;display:inline-flex;align-items:center;flex-direction:row;gap:8px;padding-block:calc(4px + (var(--mdw-density) * 2px));padding-inline:calc(12px + (var(--mdw-density) * 2px));color:rgb(var(--mdw-ink))}:host(:where([icon])){padding-inline-start:calc(8px + (var(--mdw-density) * 2px))}:host(:where([avatar])){padding-inline-start:calc(4px + (var(--mdw-density) * 2px))}:host(:where([close-button]:not([disabled]):not([readonly]))){padding-inline-end:calc(8px + 18px + 8px + (var(--mdw-density) * 2px))}#action{--mdw-shape__size:inherit;position:absolute;inset:0;padding:0}#close{position:absolute;inset-inline-end:5px;padding:3px;font-size:18px}#icon{font-size:18px}#icon[avatar]{font-size:24px}#close::part(control){min-inline-size:34px}#outline{--mdw-ink:rgb(var(--mdw-color__on-surface-variant))}#outline:is([ink],[color],[disabled]){--mdw-ink:inherit}:host([disabled]){color:rgba(var(--mdw-color__on-surface),.38)}`.childEvents({action:{click(){this.dispatchEvent(new Event("action"))}},close:{click(){this.dispatchEvent(new Event("close"))}}}).on({selectedChanged(t,e){let i=this.refs.action;i._focused=e}}).recompose(({refs:{anchor:t,slot:e,icon:i,outline:r}})=>{i.after(e),t.remove(),e.setAttribute("disabled","{disabled}"),e.removeAttribute("ink"),e.removeAttribute("color"),r.removeAttribute("mdw-if"),r.setAttribute("ink","{ink}"),r.setAttribute("color","{color}"),r.setAttribute("disabled","{disabled}")}).autoRegister("mdw-input-chip");var Go=H.extend().mixin(Re).css`:host{font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__body-small__letter-spacing)}`.autoRegister("mdw-label");var zi=H.extend().mixin(G).mixin($).set({_ariaRole:"list",color:{empty:"surface"}}).css`:host{display:block;padding-block:8px;color:rgb(var(--mdw-ink))}`.autoRegister("mdw-list");function Ci(t){return t.observe({shapeTop:"boolean",shapeBottom:"boolean",shapeStart:"boolean",shapeEnd:"boolean",shapeStyle:"string"}).css`:host{--mdw-shape__size:0px;--mdw-shape__ltr:calc(.5 * var(--mdw-dir, 1) + .5);--mdw-shape__rtl:calc(-.5 * var(--mdw-dir, 1) + .5);--mdw-shape__mask:none;--mdw-shape__rounded:1;--mdw-shape__inline-start-deg:calc(var(--mdw-dir, 1) * -90deg);--mdw-shape__size__top-start-size:var(--mdw-shape__size);--mdw-shape__size__top-end-size:var(--mdw-shape__size);--mdw-shape__size__bottom-start-size:var(--mdw-shape__size);--mdw-shape__size__bottom-end-size:var(--mdw-shape__size);--mdw-shape__size__top-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__top-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__top-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__top-end-size)));--mdw-shape__size__bottom-left-size:calc((var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-end-size)));--mdw-shape__size__bottom-right-size:calc((var(--mdw-shape__rtl) * var(--mdw-shape__size__bottom-start-size)) + (var(--mdw-shape__ltr) * var(--mdw-shape__size__bottom-end-size)));border-start-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-start-size));border-start-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__top-end-size));border-end-start-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-start-size));border-end-end-radius:calc(var(--mdw-shape__rounded) * var(--mdw-shape__size__bottom-end-size))}:host([shape-style=none]){--mdw-shape__size:0px}:host([shape-style=extra-small]){--mdw-shape__size:var(--mdw-shape__extra-small)}:host([shape-style=small]){--mdw-shape__size:var(--mdw-shape__small)}:host([shape-style=medium]){--mdw-shape__size:var(--mdw-shape__medium)}:host([shape-style=large]){--mdw-shape__size:var(--mdw-shape__large)}:host([shape-style=extra-large]){--mdw-shape__size:var(--mdw-shape__extra-large)}:host([shape-style=full]){--mdw-shape__size:var(--mdw-shape__full)}:host([shape-style=inherit]){--mdw-shape__size:inherit}:host([shape-top]){--mdw-shape__size__bottom-start-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(transparent 50%, black 50%)}:host([shape-bottom]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__top-end-size:0px;--mdw-shape__mask:linear-gradient(black 50%, transparent 50%)}:host([shape-start]){--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), black 50%, transparent 50%)}:host([shape-end]){--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-shape__mask:linear-gradient(var(--mdw-shape__inline-start-deg), transparent 50%, black 50%)}@supports (-webkit-mask-box-image:none){:host{--mdw-shape__rounded:inherit}}@supports (-webkit-mask-box-image:none){:host{-webkit-mask-box-image:var(--mdw-shape__mask-border-source) 8 fill/var(--mdw-shape__size) stretch;-webkit-mask:var(--mdw-shape__mask);transition-duration:.2s;transition-property:-webkit-mask-box-image-width;will-change:-webkit-mask-box-image}}`}var Ko=_.extend().mixin(Ci).html`<slot id=slot></slot>`.autoRegister("mdw-shape");var Qo=_.extend().mixin(x).mixin(C).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",hovered:"boolean",focused:"boolean"}).define({checked:{get(){return this.selected},set(t){this.selected=t}}}).html`<mdw-shape id=inner-shape selected={selected}></mdw-shape>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{selected}")}).css`:host{--disabled-opacity:.38;--mdw-ink:rgb(var(--mdw-color__primary));--color:rgb(var(--mdw-color__on-surface-variant));--mdw-shape__size:var(--mdw-shape__full);position:relative;display:inline-block;block-size:20px;inline-size:20px;background-color:transparent;transition:opacity .2s}#outline{border-width:2px;color:var(--color);will-change:color}#inner-shape{position:absolute;inset:0;transform:scale(0);background-color:var(--color);border-radius:inherit;transition:transform .2s,background-color .1s}:host([hovered]){--color:rgb(var(--mdw-color__on-surface))}:host([focused]){--color:rgb(var(--mdw-color__on-surface))}:host([selected]){--color:rgb(var(--mdw-ink))}:host([errored]){--color:rgb(var(--mdw-color__error))}:host([disabled]){--color:rgba(var(--mdw-color__on-surface));opacity:var(--disabled-opacity)}#inner-shape[selected]{transform:scale(.5)}`.autoRegister("mdw-radio-icon");var Ei=_.extend().mixin(x).mixin(N).mixin(Q).mixin($).mixin(te).set({_ariaRole:"listitem",stateLayer:!0}).observe({leading:"string",avatar:"string",avatarColor:{value:"primary-container"},avatarSrc:"string",src:"string",alt:"string",icon:"string",iconInk:"string",iconSrc:"string",iconVariation:"string",checkbox:"string",radio:"string",selectionColor:{value:"primary"},selected:"boolean",supporting:"string",trailing:"string",trailingIcon:"string",trailingIconInk:"string",trailingIconSrc:"string",divider:"string",video:"boolean",lines:"integer",_supportingSlotted:"boolean"}).observe({disabledState({disabled:t}){return t}}).expressions({isInteractive({href:t}){return t!=null},hasSupporting(){return!!(this.supporting||this._supportingSlotted)},checkboxClass(){return this.checkbox||"leading"},radioClass(){return this.radio||"leading"},computedIconVariation({iconVariation:t}){return t??"filled"}}).html`<mdw-checkbox-icon id=checkbox mdw-if={checkbox} aria-hidden=true class={checkboxClass} color={selectionColor} disabled={disabledState} icon=check selected={selected}></mdw-checkbox-icon><mdw-radio-icon id=radio mdw-if={radio} aria-hidden=true class={radioClass} disabled={disabledState} ink={selectionColor} selected={selected}></mdw-radio-icon><mdw-box mdw-if={avatar} id=avatar color={avatarColor} x=center y=center type-style=title-medium src={AvatarSrc} aria-hidden=true>{avatar}</mdw-box><mdw-icon mdw-if={icon} id=icon ink={iconInk} src={iconSrc} aria-hidden=true icon={icon} variation={computedIconVariation}></mdw-icon><img id=img mdw-if={src} src={src} alt={alt} video={video}><slot name=leading>{leading}</slot><div id=content has-supporting={hasSupporting} lines={lines}><slot id=slot></slot><slot id=supporting name=supporting class=text lines={lines}>{supporting}</slot></div><mdw-icon mdw-if={trailingIcon} id=trailing-icon ink={trailingIconInk} src={trailingIconSrc} aria-hidden=true icon={trailingIcon}></mdw-icon><slot id=trailing name=trailing role=note>{trailing}</slot><mdw-divider mdw-if={divider} id=divider divider={divider}></mdw-divider>`.recompose(({refs:{state:t,rippleContainer:e,anchor:i}})=>{i.setAttribute("mdw-if","{href}"),i.setAttribute("aria-labelledby","content"),i.append(t,e),t.setAttribute("state-disabled","focus hover")}).on({disabledStateChanged(t,e){this.updateAriaProperty("ariaDisabled",e?"true":"false")}}).css`:host{--mdw-shape__size:0px;display:flex;align-items:center;gap:16px;border:none;padding-block:8px;padding-inline:16px;cursor:auto;outline:0;color:inherit;text-decoration:none}:host(:where([color])){background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}:host(:is([color=none],[color=transparent])){background-color:transparent;color:inherit}:host([ink]){color:rgb(var(--mdw-ink))}:host([href]){cursor:pointer}#anchor{position:absolute;inset:0;outline:0;color:inherit}:host([video]){padding-inline-start:0}:host([lines="3"]){align-items:flex-start;padding-block:12px}#content{display:inline-flex;align-items:flex-start;flex-direction:column;justify-content:center;flex:1;padding-block:calc(8px + (var(--mdw-density) * 2px))}#content:is([has-supporting],[lines="2"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(4px + var(--mdw-density) * 2px)}#content:is([lines="3"]){box-sizing:border-box;min-block-size:calc(8px + calc(48px + var(--mdw-density) * 2px));padding-block:calc(0 + var(--mdw-density) * 2px)}#icon,#trailing-icon{font-size:24px}#divider{position:absolute;inset-block-end:0;inset-inline:0;display:block;color:rgb(var(--mdw-color__surface-container-highest))}#divider[divider=inset]{padding-inline:16px 24px}#slot{max-block-size:var(--mdw-typescale__body-large__line-height) * 2;color:var(--mdw-color__on-surface);font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#supporting{max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing)}#trailing{color:var(--mdw-color__on-surface-variant);font:var(--mdw-typescale__label-small__font);letter-spacing:var(--mdw-typescale__label-small__letter-spacing)}#slot,#supporting{display:block;overflow-x:hidden;overflow-y:hidden;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}#supporting[lines="2"]{min-block-size:var(--mdw-typescale__body-medium__line-height);max-block-size:var(--mdw-typescale__body-medium__line-height)}#supporting[lines="3"]{min-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2);max-block-size:calc(var(--mdw-typescale__body-medium__line-height) * 2)}@supports (width:1lh){#slot{max-block-size:1lh}#supporting{max-block-size:2lh}#supporting[lines="2"]{min-block-size:1lh;max-block-size:1lh}#supporting[lines="3"]{min-block-size:2lh;max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#supporting{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#supporting[lines="2"]{-webkit-line-clamp:1}}#avatar{block-size:40px;inline-size:40px;border-radius:50%}#img{block-size:56px;max-block-size:56px;inline-size:56px;max-inline-size:56px;object-fit:cover;object-position:center center}#img[video]{block-size:64px;max-block-size:64px;inline-size:114px;max-inline-size:114px}#checkbox{margin:3px}#radio{margin:2px}.trailing{order:1}:host([disabled]){opacity:.38;color:rgb(var(--mdw-color__on-surface))}`.childEvents({supporting:{slotchange({currentTarget:t}){this._supportingSlotted=t.assignedNodes().length!==0}}}).autoRegister("mdw-list-item");var me=Ei.extend().mixin(L).setStatic({formAssociated:!0}).set({_ariaRole:"none",_index:-1,_selectedDirty:!1,isInteractive:!0}).observe({_label:{attr:"label",reflect:!0,nullParser:String},_text:{attr:"text",reflect:!0,nullParser:String},defaultSelected:{attr:"selected",reflect:!0,type:"boolean"},_selected:"boolean",_value:{attr:"value",reflect:!0},_formDisabled:"boolean"}).observe({selected:{reflect:!1,type:"boolean",get({_selectedDirty:t,defaultSelected:e,_selected:i}){return t?i:e},set(t){this._selectedDirty=!0,this._selected=t}},disabledState({_formDisabled:t,disabled:e}){return t?!0:!!e}}).define({index(){return this._index},form(){var t;return(t=this.parentElement)==null?void 0:t.form},text:{get(){return this._text??this.textContent},set(t){this._text=t}},label:{get(){return this._label??this._text??this.textContent},set(t){this._label=t}},value:{get(){return this._value??this.textContent},set(t){this._value=t}}}).methods({formDisabledCallback(t){this._formDisabled=t},focus(...t){this.refs.anchor.focus(...t)}}).expressions({anchorAriaLabelledBy({_label:t}){return t?null:"content"},anchorAriaDescribedBy({_label:t}){return t?"content":null},computedIconVariation({iconVariation:t,selected:e}){return t??(e?"filled":null)}}).recompose(({inline:t,refs:{checkbox:e,radio:i,anchor:r,state:o,content:n}})=>{r.setAttribute("disabled","{disabledState}"),r.setAttribute("role","option"),r.setAttribute("aria-disabled",t(({disabledState:s})=>`${s}`)),r.setAttribute("tabindex","0"),r.setAttribute("aria-selected",t(({selected:s})=>`${s}`)),r.setAttribute("selected","{selected}"),r.setAttribute("aria-labelledby","{anchorAriaLabelledBy}"),r.setAttribute("aria-describedby","{anchorAriaDescribedBy}"),r.setAttribute("aria-label","{_label}"),r.removeAttribute("href"),r.removeAttribute("mdw-if"),e.setAttribute("mdw-if",t(({checkbox:s,icon:l})=>!l&&s)),i.setAttribute("mdw-if",t(({radio:s,icon:l})=>!l&&s)),n.setAttribute("aria-hidden","true"),n.setAttribute("selected","{selected}"),o.setAttribute("state-disabled","focus")}).on({selectedChanged(t,e){this.classList.toggle("mdw-list-option__selected",e),this.dispatchEvent(new Event("mdw-list-option:changed",{bubbles:!0,composed:!0}))}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);cursor:pointer;z-index:0}:host([hidden]){display:none}:host([href]){cursor:pointer}:host([disabled]){cursor:not-allowed;pointer-events:none}#content{-webkit-user-select:none;user-select:none;pointer-events:none}#content[selected]{color:rgb(var(--mdw-ink))}#anchor{z-index:-1}#anchor[selected]{background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.extend(t=>class extends t{constructor(e,i,r,o){super(),e!==void 0&&(this.text=e),i!==void 0&&(this._value=i),r!==void 0&&(this.defaultSelected=r),o!==void 0&&(this._selected=o)}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||(this.tabIndex=0)}}).autoRegister("mdw-list-option");function Mr({host:t,collection:e,OptionConstructor:i,GroupConstructor:r}){let o=function(a,c){let d,p=-1;typeof c=="number"?c>=0&&c<e.length-1&&(p=c):c instanceof HTMLElement&&(d=c),p!==-1&&(d=e.item(p)),d?d.before(a):t.append(a)},n=function(a){var c;(c=e.item(a))==null||c.remove()};return Object.defineProperty(e,"selectedIndex",{get(){for(let l=0;l<e.length;l++)if(e[l].selected)return l;return-1},set(l){for(let a=0;a<e.length;a++)e[a].selected=a===l}}),new Proxy(e,{get(l,a,c){switch(a){case"add":return o;case"remove":return n;default:return l[a]}},set(l,a,c,d){let p=Number.NaN;switch(typeof a){case"string":p=Number.parseInt(a,10);break;case"number":p=a;break;default:case"symbol":return Reflect.set(l,a,c,d)}if(Number.isNaN(p))return Reflect.set(l,a,c,d);let m=e.length;for(;p>e.length;)o(new i);p===m?c!=null&&o(c):p>=0&&(n(p),c!==null&&o(c,p))}})}var Jo=zi.extend().mixin(N).mixin(pe).mixin(oe).mixin(L).observe({multiple:"boolean",size:{type:"integer",empty:0}}).set({_ariaRole:"listbox",_optionsCollection:null,_selectedOptionsCollection:null,_handlingSelectedness:!1,_handleFormReset:!0}).define({options(){if(!this._optionsCollection){let t=this.getElementsByTagName(me.elementName);this._optionsCollection=Mr({host:this,collection:t,OptionConstructor:me,GroupConstructor:me})}return this._optionsCollection},selectedOptions(){return this._selectedOptionsCollection??=this.getElementsByClassName("mdw-list-option__selected")},type(){return this.multiple?"select-multiple":"select-one"},kbdNavQuery(){return me.elementName},kbdNavFocusableWhenDisabled(){return!0}}).define({length(){return this.options.length},selectedIndex:{get(){let[t]=this.selectedOptions;return t?Array.prototype.indexOf.call(this.options,t):-1},set(t){let e=this.options[t];this._handlingSelectedness=!0;for(let i of this.options)i.selected=i===e;this._handlingSelectedness=!1,this._value=this.value}},value:{get(){var t;return((t=this.selectedOptions[0])==null?void 0:t.value)??""},set(t){let e="",i=`${t}`;this._handlingSelectedness=!0;for(let r of this.options)(r.selected=r.value===i)&&(e=i);this._handlingSelectedness=!1,this._value=e}},add(){return this.options.add}}).on({disabledStateChanged(t,e){this._kbdFocusable=!e,this.tabIndex=e?-1:0},multipleChanged(t,e){this.updateAriaProperty("ariaMultiSelectable",e?"true":"false")},_formResetChanged(t,e){e&&this._handleFormReset&&(this.value=this.defaultValue)},connected(){this.hasAttribute("tabindex")||(this.tabIndex=0)}}).methods({*_selectedOptionsGenerator(){for(let t of this.options)t.selected&&(yield t)},*[Symbol.iterator](){for(let t of this.options)yield t},focus(){this.focusCurrentOrFirst()},item(t){return this.options[t]},namedItem(t){for(let e of this.options)if(e.id===t)return e;return null},onListboxClick(t){let e=t.target;if(!(e instanceof me))return;t.stopImmediatePropagation(),t.stopPropagation();let i=e;if(i.disabledState)return;let r=!1;if(this._handlingSelectedness=!0,i.selected)(!this.required||this.multiple&&this.selectedOptions.length>1)&&(r=!0,i.selected=!1);else{if(!this.multiple)for(let o of this.selectedOptions)o.selected=!1;i.selected=!0,r=!0}this._value=this.value,this._handlingSelectedness=!1,this._updateFormAssociatedValue(),r&&(this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}).css`:host(:disabled){cursor:not-allowed;pointer-events:none}:host([internals-disabled]){cursor:not-allowed;pointer-events:none}`.events({"mdw-list-option:changed"(t){if(t.stopPropagation(),this.multiple||this._handlingSelectedness)return;let e=t.target;if(!e.selected){this._handlingSelectedness=!0;for(let i of this.selectedOptions)i!==e&&(i.selected=!1);this._value=this.value,this._handlingSelectedness=!1}},focus(){this.focusCurrentOrFirst()},keydown(t){if(t.key==="Spacebar"||t.key===" "){if(!(t.target instanceof me))return;t.stopPropagation(),t.preventDefault(),this.onListboxClick.call(this,t)}},click:"onListboxClick"}).childEvents({slot:{slotchange(){this.refreshTabIndexes();let t=0;for(let e of this.options)e._index=t++;this._value=this.value}}}).autoRegister("mdw-listbox");var Zo=_.extend().mixin(x).mixin(U).mixin(C).mixin(Pe).mixin(G).mixin(oe).set({flow:"corner",_useScrim:!1,_cascader:null,_submenu:null}).define({kbdNavChildren(){let t=[...this.querySelectorAll("mdw-menu-item")],e=[...this.querySelectorAll(":scope mdw-menu mdw-menu-item")];return t.filter(i=>!e.includes(i))},_dialog(){return this.refs.dialog},cascader:{get(){var t;return(t=this._cascader)==null?void 0:t.deref()},set(t){this._cascader=t?new WeakRef(t):null}},submenu:{get(){var t;return(t=this._submenu)==null?void 0:t.deref()},set(t){this._submenu=t?new WeakRef(t):null}}}).recompose(({refs:{scrim:t}})=>{t.setAttribute("invisible","")}).css`:host{--mdw-shape__size:var(--mdw-shape__extra-small);--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:block;inline-size:auto;min-inline-size:calc(var(--mdw-menu__inline-base) * 2);max-inline-size:100vw;filter:var(--mdw-elevation__drop-shadow__2);background-color:rgb(var(--mdw-bg))}#form{display:contents}`.methods({showModal(...t){this._useScrim=!0;let e=this.showPopup(...t);return this._useScrim=!1,e},focus(){let[t]=this.kbdNavChildren;j(t)||this.focusNext(t)},cascade(t){this.cascader=t,this.showPopup(t,!0,"adjacent")}}).events({"mdw-menu-item:cascade"(t){let e=t.target,i=t.detail;t.stopPropagation();let o=this.getRootNode().getElementById(i);this.submenu=o,o.cascade(e)},"mdw-menu-item:cascader-blur"(){let t=this.submenu;t&&queueMicrotask(()=>{t&&t.matches(":focus-within,:focus")||t.close(!1)})},"~click"(t){this===t.target&&(t.stopPropagation(),this.close(!0))},keydown(t){if(this.open)switch(t.key){case"Tab":this.close()||(t.stopPropagation(),t.preventDefault());break;case"ArrowLeft":case"ArrowRight":if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowLeft")break}else if(t.key==="ArrowRight")break;case"Escape":case"Esc":t.stopPropagation(),t.preventDefault(),this.close(!0);break;default:}},focusout(){this.open&&(this.modal||queueMicrotask(()=>{if(this.matches(":focus-within"))return;let{cascader:t,submenu:e}=this;t&&t.matches(":is(:focus-within,:focus)")||e&&e.matches(":is(:focus-within,:focus)")||this.close(!1)}))}}).autoRegister("mdw-menu");var en=me.extend().mixin(pe).set({_cascadeTimeout:null,CASCADE_TIMEOUT:500,_cascading:!1}).define({type(){return this.radio!=null?"radio":this.checkbox!=null?"checkbox":null}}).observe({cascades:"string",_defaultValue:{attr:"value",reflect:!0,nullParser:String,empty:null}}).observe({defaultValue:{reflect:!1,get(){return this._defaultValue??""},set(t){this._defaultValue=t}},value:{reflect:!1,get(){return this._defaultValue??"on"},set(t){this._defaultValue=t}}}).overrides({formIPCEvent(t){if(t.target instanceof HTMLFormElement&&t.target!==this.form||this.type!=="radio")return;let[e,i]=t.detail;this.name===e&&i!==this.value&&(this.selected=!1)}}).expressions({computeTrailingIcon({trailingIcon:t,cascades:e}){return!t&&e?"arrow_right":t}}).methods({unscheduleCascade(){clearTimeout(this._cascadeTimeout),this._cascadeTimeout=null},scheduleCascade(){this._cascadeTimeout||(this._cascadeTimeout=setTimeout(this.cascade.bind(this),this.CASCADE_TIMEOUT))},cascade(){this.unscheduleCascade(),this._cascading=!0,this.dispatchEvent(new CustomEvent("mdw-menu-item:cascade",{detail:this.cascades,bubbles:!0})),this._cascading=!1}}).on({_selectedChanged(t,e){e?(this.elementInternals.setFormValue(this.value),this.type==="radio"&&this._notifyRadioChange(this.name,this.value)):this.elementInternals.setFormValue(null),this._selectedDirty&&this.dispatchEvent(new Event("change",{bubbles:!0}))}}).events({mouseenter(){this.disabledState||(le(this)||this.focus(),this.cascades&&this.scheduleCascade())},mouseout:"unscheduleCascade","~click"(){if(!this.disabledState){if(this.type==="radio"){if(this.required)return;this.selected=!0}else if(this.type==="checkbox"){if(this.required)return;this.selected=!this.selected;return}this.cascades&&this.cascade()}},keydown(t){if(!this.disabledState)switch(t.key){case"Enter":case" ":t.stopPropagation(),t.preventDefault(),this.click();break;case"ArrowLeft":case"ArrowRight":if(!this.cascades)break;if(getComputedStyle(this).direction==="rtl"){if(t.key==="ArrowRight")break}else if(t.key==="ArrowLeft")break;t.stopPropagation(),t.preventDefault(),this.cascade();break;default:}},blur(){this.cascades&&(this._cascading||this.dispatchEvent(new CustomEvent("mdw-menu-item:cascader-blur",{detail:this.cascades,bubbles:!0})))}}).recompose(({inline:t,html:e,refs:{checkbox:i,radio:r,anchor:o,trailing:n,trailingIcon:s}})=>{i.remove(),r.remove(),o.setAttribute("role",t(({checkbox:l,radio:a})=>l!=null?"menuitemcheckbox":a!=null?"menuitemradio":"menuitem")),o.setAttribute("ariaChecked",o.getAttribute("aria-selected")),o.after(e`
|
|
184
184
|
<mdw-icon id=selection
|
|
185
185
|
mdw-if=${({checkbox:l,radio:a})=>l??a??!1}
|
|
186
186
|
class=${({checkbox:l,radio:a})=>l||a||"leading"}
|
|
187
187
|
selected={selected} icon=check></mdw-icon>
|
|
188
|
-
`),n.setAttribute("type-style","label-large"),s.setAttribute("mdw-if","{computeTrailingIcon}"),s.setAttribute("icon","{computeTrailingIcon}")}).on({_formResetChanged(t,e){e&&(this._selected=this.defaultSelected)}}).css`:host{gap:12px;padding-inline:12px;cursor:pointer;white-space:nowrap}#content{padding-block:calc(4px + (var(--mdw-density) * 2px))}#icon{transition-duration:.1s;transition-property:opacity;will-change:opacity}#icon,#trailing{color:rgb(var(--mdw-color__on-surface-variant))}#selection{opacity:0;font-size:18px}#selection.trailing{font-size:24px}#selection[selected]{opacity:1}:host([disabled]){cursor:not-allowed}#anchor[selected]{background-color:transparent;color:inherit}#content[selected]{color:inherit}`.autoRegister("mdw-menu-item");var ue=_.extend().mixin(
|
|
188
|
+
`),n.setAttribute("type-style","label-large"),s.setAttribute("mdw-if","{computeTrailingIcon}"),s.setAttribute("icon","{computeTrailingIcon}")}).on({_formResetChanged(t,e){e&&(this._selected=this.defaultSelected)}}).css`:host{gap:12px;padding-inline:12px;cursor:pointer;white-space:nowrap}#content{padding-block:calc(4px + (var(--mdw-density) * 2px))}#icon{transition-duration:.1s;transition-property:opacity;will-change:opacity}#icon,#trailing{color:rgb(var(--mdw-color__on-surface-variant))}#selection{opacity:0;font-size:18px}#selection.trailing{font-size:24px}#selection[selected]{opacity:1}:host([disabled]){cursor:not-allowed}#anchor[selected]{background-color:transparent;color:inherit}#content[selected]{color:inherit}`.autoRegister("mdw-menu-item");var ue=_.extend().mixin(x).mixin(N).mixin(Q).mixin(te).mixin(L).set({stateLayer:!0}).observe({showLabel:"string",active:"boolean",icon:"string",src:"string",badge:"string",ariaLabel:"string"}).methods({focus(...t){this.refs.anchor.focus(...t)}}).expressions({_anchorAriaCurrent({active:t}){return t?"page":null},_anchorAriaLabelledby({ariaLabel:t}){return t?null:"slot"},_anchorHref({href:t}){return t??"#"},iconVariation({active:t}){return t?"filled":null}}).html`<mdw-icon id=icon aria-hidden=true src={src} active={active} icon={icon} variation={iconVariation}></mdw-icon><slot id=slot active={active} show-label={showLabel} aria-hidden=true></slot><mdw-badge part=badge id=badge badge={badge} show-label={showLabel} aria-hidden=true>{badge}</mdw-badge>`.recompose(({html:t,refs:{anchor:e,state:i,rippleContainer:r}})=>{e.setAttribute("aria-current","{_anchorAriaCurrent}"),e.setAttribute("aria-describedby","badge"),e.setAttribute("aria-label","{ariaLabel}"),e.setAttribute("aria-labelledby","{_anchorAriaLabelledby}"),e.setAttribute("href","{_anchorHref}"),e.before(t`
|
|
189
189
|
<mdw-shape id=shape active={active} shape-style=full>
|
|
190
190
|
<mdw-ripple id=ripple ripple-origin=center keep-alive hold-ripple ripple-state=${({active:o})=>o?null:"complete"}></mdw-ripple>
|
|
191
191
|
${i}
|
|
192
192
|
${r}
|
|
193
193
|
</mdw-shape>
|
|
194
|
-
`)}).css`:host{--mdw-badge__scale:0;--mdw-shape__size:var(--mdw-shape__full);--mdw-nav-item__offset-y:0;position:relative;display:grid;align-content:center;align-items:flex-start;grid-auto-flow:row;grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(56px,1fr);justify-items:center;row-gap:4px;box-sizing:border-box;padding-inline:0;cursor:pointer;-webkit-user-select:none;user-select:none;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing);text-align:center}:host(:not([color])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host([color]){background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}#slot{display:contents;align-items:center;flex-direction:column;grid-area:label;justify-content:center;grid-column:1/4;grid-row:2;flex:1;cursor:inherit;outline:0;transform:translateY(var(--mdw-nav-item__offset-y));color:rgb(var(--mdw-color__on-surface-variant));transition:opacity,color,transform .2s;will-change:opacity,transform}#anchor{position:absolute;inset:0;outline:0;z-index:5}#shape{position:absolute;inset:50% auto auto 50%;overflow:hidden;block-size:100%;inline-size:100%;max-inline-size:56px;grid-column:icon;grid-row:1/1;transform:translate(-50%) translateY(-50%) translateY(var(--mdw-nav-item__offset-y));background-color:transparent;transition:transform .2s;will-change:transform}#icon{position:relative;align-self:center;grid-area:icon;transform:translateY(var(--mdw-nav-item__offset-y));z-index:3;color:rgb(var(--mdw-color__on-surface-variant));font-size:24px;transition:transform .2s;will-change:transform}#state{z-index:2}#badge{--mdw-badge__scale:0;position:absolute;top:50%;left:50%;overflow:hidden;max-inline-size:50%;grid-column:1/4;grid-row:1/2;transform:translateY(-100%) translateY(var(--mdw-nav-item__offset-y)) scale(var(--mdw-badge__scale));z-index:4;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;transition:transform .2s;will-change:transform}#badge[badge]{--mdw-badge__scale:1}#ripple{opacity:1;color:rgb(var(--mdw-bg))}#ripple-container{z-index:1}#shape[active],#icon[active]{color:rgb(var(--mdw-ink))}#slot[active]{color:inherit}:host([show-label]){--mdw-nav-item__offset-y:12px}:host([show-label=active][active]){--mdw-nav-item__offset-y:0}`.childEvents({anchor:{click(){return this.href!=null},keydown({key:t,repeat:e}){return t!==" "?!0:(e||this.click(),!1)}}}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-nav-item");var en=_.extend().mixin(L).mixin(w).observe({open:"boolean",autoClose:{type:"float",empty:728}}).set({color:"surface-container",_ariaRole:"navigation"}).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:none;align-content:flex-start;align-items:flex-start;gap:8px;grid-auto-columns:minmax(48px,1fr);grid-auto-flow:column;overflow:hidden;box-sizing:border-box;min-block-size:80px;inline-size:100%;pointer-events:auto;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);text-align:center}:host(:where([open])){display:grid}`.methods({onWindowResize(){let{autoClose:t}=this,e=window.innerWidth;this.open=t===-1||e<t}}).events({"~click"(t){if(t.target!==this&&t.target instanceof ue)for(let e of this.querySelectorAll("*"))e instanceof ue&&(e.active=e===t.target)}}).on({constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()}}).autoRegister("mdw-nav-bar");var tn=ue.extend().css`:host{grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:auto [icon] minmax(56px,1fr) auto;padding-block:12px}#slot{display:block}:host(:empty){font-size:0;line-height:0}#slot[show-label]{grid-column:1/4;grid-row:2;opacity:0}#shape{grid-column:2;grid-row:1/1}#slot[show-label=never]{block-size:0}#slot[show-label=active][active]{opacity:1}`.autoRegister("mdw-nav-bar-item");var rn="onscrollend"in window,st=_.extend().mixin(w).mixin(de).mixin(U).mixin(C).mixin($).mixin(L).mixin(B).observe({fixed:"boolean",open:"boolean",inlineEnd:"boolean",_lastComputedInlineSize:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_dragDeltaX:"float",_dragStartX:"float",_translateX:{value:"-100%"},_lastChildScrollTime:"float",ontoggle:oe,onclose:oe,autoOpen:{type:"float",empty:-1},autoClose:{type:"float",empty:-1},fixedBreakpoint:{type:"float",empty:0},_isSideSheetRtl:"boolean",color:"string",fixedColor:"string"}).set({_scrim:null}).observe({_styles:{...ne,get({fixed:t,fixedColor:e}){if(t&&e)return{backgroundColor:`rgb(var(--mdw-color__${e}))`}}},hostStyles:{...Z,get({open:t,fixed:e,_isSideSheetRtl:i,_lastComputedInlineSize:r,_translateX:o,_animationDuration:n,_animationEasing:s}){let l=t||!e?0:`${-1*r}px`;return{styles:{marginLeft:i?0:l,marginRight:i?l:0,transform:e?"none":`translateX(${o})`},timing:{duration:n,easing:s}}}}}).html`<slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,fixed:i,_scrim:r}=this;e&&!i?(r||(r=new Ct,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragDeltaX:e,_lastComputedInlineSize:i,fixed:r,_isSideSheetRtl:o}=this;if(!t||r||e==null)return;let n=(e+i)/i;n<.5?(this._animationDuration=200*n,this._animationEasing="ease-out",this._translateX=o?"-100%":"100%",this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*n),this._translateX="0",this._animationEasing="ease-in"),this._dragDeltaY=null,this._dragStartY=null},onWindowResize(){let{autoOpen:t,fixedBreakpoint:e,autoClose:i}=this,r=window.innerWidth,o=r>=e;this.open=o&&t>=0&&r>=t&&(i===-1||r<i),this.fixed=o}}).overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).events({"~touchstart"(t){if(!t.touches.length)return;let{open:e,fixed:i,_isSideSheetRtl:r}=this;if(!e||i)return;let[{clientX:o,pageX:n}]=t.touches;o??=n-window.scrollX,this._dragStartX=r?window.innerWidth-o:o,this._dragDeltaX=0},"~touchmove"({touches:t}){if(!t.length)return;let{open:e,fixed:i,_lastChildScrollTime:r,_dragStartX:o,_isSideSheetRtl:n}=this;if(!e||i||o==null||r&&performance.now()-r<=(rn?5e3:500))return;let[{clientX:s,pageX:l}]=t;s??=l-window.scrollX;let a=Math.min(n?window.innerWidth-s-o:s-o,0);this._animationDuration=0,this._dragDeltaX=a,this._translateX=`${n?-1*a:a}px`},touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartX=null,this._dragDeltaX=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).on({openChanged(t,e){this._animationDuration=e?250:200,this._translateX=e?"0":this.inlineEnd?"100%":"-100%",this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),this.dispatchEvent(new Event("toggle"))},fixedChanged(){this._animationDuration=0,this.checkForScrim(!1)},constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()},inlineEndChanged(t,e){this._isSideSheetRtl=ce(this)?!e:e,this._translateX=this.open?"0":this.inlineEnd?"100%":"-100%"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface-variant);position:fixed;inset-block:0;inset-inline:0 auto;display:inline-flex;overflow-y:auto;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:100vh;block-size:100dvh;min-block-size:100vh;min-block-size:100dvh;max-block-size:100%;max-inline-size:calc(100vw - 56px);grid-column:1;transform:translate(-100%);visibility:hidden;z-index:24;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-inline-start,margin-inline-end,visibility}:host(:where([open])){visibility:inherit;transition-delay:0s}:host(:where[inline-end]){inset-inline:auto 0;transform:translate(100%)}:host(:where([fixed])){position:sticky;inset-inline:auto;max-inline-size:none;transform:none;z-index:auto}:host(:where([inline-end][fixed])){grid-column:3}`.autoRegister("mdw-side-sheet");var on=st.extend().observe({shapeEnd:{type:"boolean",empty:!0},autoOpen:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:1248}}).css`:host{--mdw-shape__size:var(--mdw-shape__large, 16px);--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-nav-item__badge__position:static;--mdw-nav-item__badge__transform:none;--mdw-nav-item__badge__grid-area:badge;--mdw-nav-item__label__padding-block:18px;--mdw-nav-item__label__padding-inline:52px 0;--mdw-nav-item__anchor__display:block;--mdw-nav-item__indicator__grid-area:auto;display:inline-block;inline-size:360px;max-inline-size:calc(100vw - 56px);padding-inline:12px}::slotted(mdw-divider){padding-inline:16px}`.autoRegister("mdw-nav-drawer");var nn=ue.extend().css`:host{align-self:stretch;display:flex;align-items:center;gap:12px;grid-template:"icon label badge" minmax(56px,min-content)/24px 1fr minmax(0,min-content);justify-items:flex-start;min-block-size:56px;padding-inline:16px 24px}#icon{grid-area:icon}#slot{display:block;text-align:start}:host([active]){color:rgb(var(--mdw-ink))}#shape{max-inline-size:none;grid-column:auto;grid-row:1/2}#badge-text{z-index:1}`.recompose(({html:t,refs:{badge:e}})=>{e.replaceWith(t`<span id=badge-text>{badge}</span>`)}).autoRegister("mdw-nav-drawer-item");var sn=st.extend().observe({align:{value:null},autoOpen:{type:"float",empty:728},autoClose:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:728}}).recompose(({html:t,refs:{slot:e}})=>{e.before(t`<slot id=start name=start></slot>`),e.setAttribute("align","{align}")}).css`:host{align-self:flex-start;display:inline-grid;align-content:flex-start;flex-direction:column;gap:0;grid-template-rows:auto minmax(auto,1fr);grid-template-columns:100%;justify-items:stretch;overscroll-behavior:none;overscroll-behavior:contain;min-block-size:0;text-align:center}#start{display:flex;align-items:center;flex-direction:column;gap:12px;justify-content:center}#slot{align-self:center;display:flex;align-items:stretch;flex-direction:column;gap:12px;box-sizing:border-box;max-block-size:100%;inline-size:min-content}#slot[align=start]{align-self:flex-start}#slot[align=end]{align-self:flex-end}`.autoRegister("mdw-nav-rail");var an=ue.extend().css`:host{grid-auto-flow:row;grid-auto-rows:minmax(20px,auto);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(72px,1fr);min-block-size:56px;flex:none;padding-inline:4px;font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing)}#slot{display:contents;overflow-wrap:anywhere;word-break:break-all;word-break:break-word}#badge{max-inline-size:40px;grid-column:1/2}`.autoRegister("mdw-nav-rail-item");var ln=_.extend().mixin(L).mixin(B).observe({paneOne:{value:"flexible"},paneTwo:{value:null},paneTwoActive:"boolean",paneTwoBreakpoint:{type:"float",empty:720},_lastComputedInlineSize:{type:"float",nullable:!1}}).observe({_isMultipane({_lastComputedInlineSize:t,paneTwo:e,paneTwoBreakpoint:i}){return!!(e&&t>=i)}}).observe({_styles:{...ne,get({_isMultipane:t,paneOne:e,paneTwoActive:i}){return t?`:host{grid-template-columns:${e==="fixed"?"360px":"1fr"} ${this.paneTwo==="fixed"?"360px":"1fr"}}`:i?":host{grid-template-columns:1fr 0}#slot{display:none}":":host{grid-template-columns:1fr 0}#two{display:none}"}}}).html`<slot id=slot mutli-pane={_isMultipane}></slot><slot id=two name=two mutli-pane={_isMultipane}></slot>`.css`:host{--mdw-pane__max-width:1040px;--mdw-pane__margin-inline:16px;--mdw-pane__padding-inline:max(var(--mdw-pane__margin-inline), calc((100% - var(--mdw-pane__max-width)) / 2));--mdw-pane__shape__size:0;display:grid;column-gap:var(--mdw-page__margin);grid-auto-columns:1fr;grid-auto-flow:column;block-size:100%;padding:0;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}@media (min-width:648px){:host{--mdw-pane__margin-inline:24px}}@media (min-width:728px){:host{--mdw-pane__shape__size:var(--mdw-shape__large)}}#slot[multi-pane]{--mdw-pane__padding-inline:24px}#two[mutli-pane]{--mdw-pane__padding-inline:0 24px;position:sticky;inset-block:0;display:block;overflow-y:auto;block-size:100vh;block-size:100dvh}`.overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).autoRegister("mdw-page");var cn=H.extend().mixin(C).css`:host{--mdw-shape__size:var(--mdw-pane__shape__size, 0);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.autoRegister("mdw-pane");var dn=_.extend().mixin(w).observe({circle:"boolean",value:"float",max:"float",autoHide:"boolean",_determinateStyle:"string"}).observe({_valueAsFraction:{type:"float",get({value:t,max:e}){return t/(e||100)},changedCallback(t,e){this._determinateStyle=`
|
|
194
|
+
`)}).css`:host{--mdw-badge__scale:0;--mdw-shape__size:var(--mdw-shape__full);--mdw-nav-item__offset-y:0;position:relative;display:grid;align-content:center;align-items:flex-start;grid-auto-flow:row;grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(56px,1fr);justify-items:center;row-gap:4px;box-sizing:border-box;padding-inline:0;cursor:pointer;-webkit-user-select:none;user-select:none;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing);text-align:center}:host(:not([color])){--mdw-ink:var(--mdw-color__on-secondary-container);--mdw-bg:var(--mdw-color__secondary-container)}:host([color]){background-color:transparent;color:rgb(var(--mdw-color__on-surface-variant))}#slot{display:contents;align-items:center;flex-direction:column;grid-area:label;justify-content:center;grid-column:1/4;grid-row:2;flex:1;cursor:inherit;outline:0;transform:translateY(var(--mdw-nav-item__offset-y));color:rgb(var(--mdw-color__on-surface-variant));transition:opacity,color,transform .2s;will-change:opacity,transform}#anchor{position:absolute;inset:0;outline:0;z-index:5}#shape{position:absolute;inset:50% auto auto 50%;overflow:hidden;block-size:100%;inline-size:100%;max-inline-size:56px;grid-column:icon;grid-row:1/1;transform:translate(-50%) translateY(-50%) translateY(var(--mdw-nav-item__offset-y));background-color:transparent;transition:transform .2s;will-change:transform}#icon{position:relative;align-self:center;grid-area:icon;transform:translateY(var(--mdw-nav-item__offset-y));z-index:3;color:rgb(var(--mdw-color__on-surface-variant));font-size:24px;transition:transform .2s;will-change:transform}#state{z-index:2}#badge{--mdw-badge__scale:0;position:absolute;top:50%;left:50%;overflow:hidden;max-inline-size:50%;grid-column:1/4;grid-row:1/2;transform:translateY(-100%) translateY(var(--mdw-nav-item__offset-y)) scale(var(--mdw-badge__scale));z-index:4;text-align:start;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;transition:transform .2s;will-change:transform}#badge[badge]{--mdw-badge__scale:1}#ripple{opacity:1;color:rgb(var(--mdw-bg))}#ripple-container{z-index:1}#shape[active],#icon[active]{color:rgb(var(--mdw-ink))}#slot[active]{color:inherit}:host([show-label]){--mdw-nav-item__offset-y:12px}:host([show-label=active][active]){--mdw-nav-item__offset-y:0}`.childEvents({anchor:{click(){return this.href!=null},keydown({key:t,repeat:e}){return t!==" "?!0:(e||this.click(),!1)}}}).extend(t=>class extends t{addRipple(...i){return this.active?super.addRipple(...i):null}}).autoRegister("mdw-nav-item");var tn=_.extend().mixin(L).mixin(x).observe({open:"boolean",autoClose:{type:"float",empty:728}}).set({color:"surface-container",_ariaRole:"navigation"}).html`<slot id=slot></slot>`.css`:host{--mdw-bg:var(--mdw-color__surface-container);--mdw-ink:var(--mdw-color__on-surface);display:none;align-content:flex-start;align-items:flex-start;gap:8px;grid-auto-columns:minmax(48px,1fr);grid-auto-flow:column;overflow:hidden;box-sizing:border-box;min-block-size:80px;inline-size:100%;pointer-events:auto;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);text-align:center}:host(:where([open])){display:grid}`.methods({onWindowResize(){let{autoClose:t}=this,e=window.innerWidth;this.open=t===-1||e<t}}).events({"~click"(t){if(t.target!==this&&t.target instanceof ue)for(let e of this.querySelectorAll("*"))e instanceof ue&&(e.active=e===t.target)}}).on({constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()}}).autoRegister("mdw-nav-bar");var rn=ue.extend().css`:host{grid-auto-rows:minmax(20px,min-content);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:auto [icon] minmax(56px,1fr) auto;padding-block:12px}#slot{display:block}:host(:empty){font-size:0;line-height:0}#slot[show-label]{grid-column:1/4;grid-row:2;opacity:0}#shape{grid-column:2;grid-row:1/1}#slot[show-label=never]{block-size:0}#slot[show-label=active][active]{opacity:1}`.autoRegister("mdw-nav-bar-item");var on="onscrollend"in window,st=_.extend().mixin(x).mixin(de).mixin(U).mixin(C).mixin($).mixin(L).mixin(B).observe({fixed:"boolean",open:"boolean",inlineEnd:"boolean",_lastComputedInlineSize:{type:"float",nullable:!1},_animationDuration:{type:"integer",value:0},_animationEasing:{value:"ease-out"},_dragDeltaX:"float",_dragStartX:"float",_translateX:{value:"-100%"},_lastChildScrollTime:"float",ontoggle:Z,onclose:Z,autoOpen:{type:"float",empty:-1},autoClose:{type:"float",empty:-1},fixedBreakpoint:{type:"float",empty:0},_isSideSheetRtl:"boolean",color:"string",fixedColor:"string"}).set({_scrim:null}).observe({_styles:{...ne,get({fixed:t,fixedColor:e}){if(t&&e)return{backgroundColor:`rgb(var(--mdw-color__${e}))`}}},hostStyles:{...ee,get({open:t,fixed:e,_isSideSheetRtl:i,_lastComputedInlineSize:r,_translateX:o,_animationDuration:n,_animationEasing:s}){let l=t||!e?0:`${-1*r}px`;return{styles:{marginLeft:i?0:l,marginRight:i?l:0,transform:e?"none":`translateX(${o})`},timing:{duration:n,easing:s}}}}}).html`<slot id=slot></slot>`.methods({checkForScrim(t=!1){let{open:e,fixed:i,_scrim:r}=this;e&&!i?(r||(r=new Ct,r.addEventListener("click",()=>{this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!0}))||(this.open=!0)}),this._scrim=r),this.before(r),r.hidden=!1):r&&(t||r.remove(),r.hidden=!0)},checkDragFinished(){let{open:t,_dragDeltaX:e,_lastComputedInlineSize:i,fixed:r,_isSideSheetRtl:o}=this;if(!t||r||e==null)return;let n=(e+i)/i;n<.5?(this._animationDuration=200*n,this._animationEasing="ease-out",this._translateX=o?"-100%":"100%",this.open=!1,this.dispatchEvent(new Event("close",{cancelable:!1}))):(this._animationDuration=250*(.5*n),this._translateX="0",this._animationEasing="ease-in")},onWindowResize(){let{autoOpen:t,fixedBreakpoint:e,autoClose:i}=this,r=window.innerWidth,o=r>=e;this.open=o&&t>=0&&r>=t&&(i===-1||r<i),this.fixed=o}}).overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).events({"~touchstart"(t){if(!t.touches.length)return;let{open:e,fixed:i,_isSideSheetRtl:r}=this;if(!e||i)return;let[{clientX:o,pageX:n}]=t.touches;o??=n-window.scrollX,this._dragStartX=r?window.innerWidth-o:o,this._dragDeltaX=0},"~touchmove"({touches:t}){if(!t.length)return;let{open:e,fixed:i,_lastChildScrollTime:r,_dragStartX:o,_isSideSheetRtl:n}=this;if(!e||i||o==null||r&&performance.now()-r<=(on?5e3:500))return;let[{clientX:s,pageX:l}]=t;s??=l-window.scrollX;let a=Math.min(n?window.innerWidth-s-o:s-o,0);this._animationDuration=0,this._dragDeltaX=a,this._translateX=`${n?-1*a:a}px`},touchcancel:"checkDragFinished","~touchend":"checkDragFinished","*~scroll"(){this.fixed||(this.checkDragFinished(),this._lastChildScrollTime=performance.now(),this._dragStartX=null,this._dragDeltaX=null)},"*scrollend"(){this.fixed||(this._lastChildScrollTime=null)}}).on({openChanged(t,e){this._animationDuration=e?250:200,this._translateX=e?"0":this.inlineEnd?"100%":"-100%",this._animationEasing=e?"ease-in":"ease-out",this.checkForScrim(!0),this.dispatchEvent(new Event("toggle"))},fixedChanged(){this._animationDuration=0,this.checkForScrim(!1)},constructed(){window.addEventListener("resize",this.onWindowResize.bind(this))},connected(){this.onWindowResize()},inlineEndChanged(t,e){this._isSideSheetRtl=ce(this)?!e:e,this._translateX=this.open?"0":this.inlineEnd?"100%":"-100%"}}).css`:host{--mdw-bg:var(--mdw-color__surface-container-low);--mdw-ink:var(--mdw-color__on-surface-variant);position:fixed;inset-block:0;inset-inline:0 auto;display:inline-flex;overflow-y:auto;overscroll-behavior:none;overscroll-behavior:contain;box-sizing:border-box;block-size:100vh;block-size:100dvh;min-block-size:100vh;min-block-size:100dvh;max-block-size:100%;max-inline-size:calc(100vw - 56px);grid-column:1;transform:translate(-100%);visibility:hidden;z-index:24;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:visibility .2s;will-change:transform,margin-inline-start,margin-inline-end,visibility}:host(:where([open])){visibility:inherit;transition-delay:0s}:host(:where[inline-end]){inset-inline:auto 0;transform:translate(100%)}:host(:where([fixed])){position:sticky;inset-inline:auto;max-inline-size:none;transform:none;z-index:auto}:host(:where([inline-end][fixed])){grid-column:3}`.autoRegister("mdw-side-sheet");var nn=st.extend().observe({shapeEnd:{type:"boolean",empty:!0},autoOpen:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:1248}}).css`:host{--mdw-shape__size:var(--mdw-shape__large, 16px);--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px;--mdw-nav-item__badge__position:static;--mdw-nav-item__badge__transform:none;--mdw-nav-item__badge__grid-area:badge;--mdw-nav-item__label__padding-block:18px;--mdw-nav-item__label__padding-inline:52px 0;--mdw-nav-item__anchor__display:block;--mdw-nav-item__indicator__grid-area:auto;display:inline-block;inline-size:360px;max-inline-size:calc(100vw - 56px);padding-inline:12px}::slotted(mdw-divider){padding-inline:16px}`.autoRegister("mdw-nav-drawer");var sn=ue.extend().css`:host{align-self:stretch;display:flex;align-items:center;gap:12px;grid-template:"icon label badge" minmax(56px,min-content)/24px 1fr minmax(0,min-content);justify-items:flex-start;min-block-size:56px;padding-inline:16px 24px}#icon{grid-area:icon}#slot{display:block;text-align:start}:host([active]){color:rgb(var(--mdw-ink))}#shape{max-inline-size:none;grid-column:auto;grid-row:1/2}#badge-text{z-index:1}`.recompose(({html:t,refs:{badge:e}})=>{e.replaceWith(t`<span id=badge-text>{badge}</span>`)}).autoRegister("mdw-nav-drawer-item");var an=st.extend().observe({align:{value:null},autoOpen:{type:"float",empty:728},autoClose:{type:"float",empty:1248},fixedBreakpoint:{type:"float",empty:728}}).recompose(({html:t,refs:{slot:e}})=>{e.before(t`<slot id=start name=start></slot>`),e.setAttribute("align","{align}")}).css`:host{align-self:flex-start;display:inline-grid;align-content:flex-start;flex-direction:column;gap:0;grid-template-rows:auto minmax(auto,1fr);grid-template-columns:100%;justify-items:stretch;overscroll-behavior:none;overscroll-behavior:contain;min-block-size:0;text-align:center}#start{display:flex;align-items:center;flex-direction:column;gap:12px;justify-content:center}#slot{align-self:center;display:flex;align-items:stretch;flex-direction:column;gap:12px;box-sizing:border-box;max-block-size:100%;inline-size:min-content}#slot[align=start]{align-self:flex-start}#slot[align=end]{align-self:flex-end}`.autoRegister("mdw-nav-rail");var ln=ue.extend().css`:host{grid-auto-flow:row;grid-auto-rows:minmax(20px,auto);grid-template-rows:[icon] minmax(32px,1fr);grid-template-columns:[icon] minmax(72px,1fr);min-block-size:56px;flex:none;padding-inline:4px;font:var(--mdw-typescale__label-medium__font);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing)}#slot{display:contents;overflow-wrap:anywhere;word-break:break-all;word-break:break-word}#badge{max-inline-size:40px;grid-column:1/2}`.autoRegister("mdw-nav-rail-item");var cn=_.extend().mixin(L).mixin(B).observe({paneOne:{value:"flexible"},paneTwo:{value:null},paneTwoActive:"boolean",paneTwoBreakpoint:{type:"float",empty:720},_lastComputedInlineSize:{type:"float",nullable:!1}}).observe({_isMultipane({_lastComputedInlineSize:t,paneTwo:e,paneTwoBreakpoint:i}){return!!(e&&t>=i)}}).observe({_styles:{...ne,get({_isMultipane:t,paneOne:e,paneTwoActive:i}){return t?`:host{grid-template-columns:${e==="fixed"?"360px":"1fr"} ${this.paneTwo==="fixed"?"360px":"1fr"}}`:i?":host{grid-template-columns:1fr 0}#slot{display:none}":":host{grid-template-columns:1fr 0}#two{display:none}"}}}).html`<slot id=slot mutli-pane={_isMultipane}></slot><slot id=two name=two mutli-pane={_isMultipane}></slot>`.css`:host{--mdw-pane__max-width:1040px;--mdw-pane__margin-inline:16px;--mdw-pane__padding-inline:max(var(--mdw-pane__margin-inline), calc((100% - var(--mdw-pane__max-width)) / 2));--mdw-pane__shape__size:0;display:grid;column-gap:var(--mdw-page__margin);grid-auto-columns:1fr;grid-auto-flow:column;block-size:100%;padding:0;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}@media(min-width:648px){:host{--mdw-pane__margin-inline:24px}}@media(min-width:728px){:host{--mdw-pane__shape__size:var(--mdw-shape__large)}}#slot[multi-pane]{--mdw-pane__padding-inline:24px}#two[mutli-pane]{--mdw-pane__padding-inline:0 24px;position:sticky;inset-block:0;display:flex;flex-direction:column;overflow-y:auto;block-size:100vh;block-size:100dvh}`.overrides({onResizeObserved(t){var e;this._lastComputedInlineSize=(e=t.borderBoxSize[0])==null?void 0:e.inlineSize}}).autoRegister("mdw-page");var dn=H.extend().mixin(C).css`:host{--mdw-shape__size:var(--mdw-pane__shape__size, 0);--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink))}`.autoRegister("mdw-pane");var pn=_.extend().mixin(x).observe({circle:"boolean",value:"float",max:"float",autoHide:"boolean",_determinateStyle:"string"}).observe({_valueAsFraction:{type:"float",get({value:t,max:e}){return t/(e||100)},changedCallback(t,e){this._determinateStyle=`
|
|
195
195
|
--previous:${t??e??0};
|
|
196
196
|
--value:${e??0};
|
|
197
|
-
`}}}).define({position(){return this.refs.progress.position},labels(){return this.refs.progress.labels}}).html`<div id=determinate style={_determinateStyle}><progress id=progress value={value} max={max} circle={circle}></progress><div mdw-if={circle} id=circle><div id=semi1 class=semi></div><div id=semi2 class=semi></div></div></div><div mdw-if={!value} id=indeterminate><div mdw-if={!circle} id=indeterminate-line><div id=line1 class=line value={value}></div><div id=line2 class=line value={value}></div></div><div mdw-if={circle} id=indeterminate-circle><div id=arc2 class=arc></div><div id=arc3 class=arc></div><div id=arc4 class=arc></div></div></div>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__primary);--mdw-progress__opacity__duration:.5s;position:relative;display:inline-block;overflow:hidden;vertical-align:middle;min-block-size:4px;inline-size:100%;opacity:1;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:opacity .5s 275ms}:host([auto-hide]){will-change:opacity}:host([auto-hide][value="100"]){opacity:0;transition:opacity 1s 1s}#determinate{--previous:0;--value:0}#progress{position:absolute;inset:0;box-sizing:border-box;block-size:100%;inline-size:100%;border:none;-moz-appearance:none;appearance:none;opacity:0;transform:scaleX(var(--value,0));transform-origin:0 0;background-color:currentColor;color:inherit;transition:transform 275ms,opacity var(--mdw-progress__opacity__duration);will-change:transform,opacity}#progress::-webkit-progress-bar{display:none}#progress::-moz-progress-bar{display:none;block-size:0}#progress[value]{opacity:1;transform:scaleX(var(--value,0))}`.css`:host{--mdw-progress__line1-head__timing:cubic-bezier(.2, .8, 0, 1);--mdw-progress__line1-tail__timing:cubic-bezier(.4, 0, 1, 1);--mdw-progress__line2-head__timing:cubic-bezier(0, .65, 0, 1);--mdw-progress__line2-tail__timing:cubic-bezier(.1, .45, 0, 1);--mdw-progress__line__duration:1.8s}@media (prefers-reduced-motion){:host{--mdw-progress__line__duration:18s}}.line{opacity:1;transition:opacity var(--mdw-progress__opacity__duration);will-change:opacity}.line,.line:after{position:absolute;inset:0;overflow:hidden;animation-duration:var(--mdw-progress__line__duration);animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:forwards}.line:after{content:"";background-color:currentColor;animation:inherit;will-change:transform}#line1{animation-name:l1h}#line2{animation-name:l2h}#line1:after{animation-name:l1t}#line2:after{animation-name:l2t}.line[value]{opacity:0;visibility:hidden;transition:opacity var(--mdw-progress__opacity__duration),visibility 1ms var(--mdw-progress__opacity__duration)}@keyframes l1h{0%{transform:translate(0)}70.4%{transform:translate(0);animation-timing-function:var(--mdw-progress__line1-head__timing)}to{transform:translate(100%)}}@keyframes l1t{0%{transform:translate(-100%)}55.6%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line1-tail__timing)}87.1%{transform:translate(0)}to{transform:translate(0)}}@keyframes l2h{0%{transform:translate(0)}18.5%{transform:translate(0);animation-timing-function:var(--mdw-progress__line2-head__timing)}65.72%{transform:translate(100%)}to{transform:translate(100%)}}@keyframes l2t{0%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line2-tail__timing)}41.67%{transform:translate(0)}to{transform:translate(0)}}`.css`:host{--mdw-progress__circle__timing:cubic-bezier(.4, 0, .2, 1);--mdw-progress__circle__margin:4px;--mdw-progress__circle__duration:5.4s;--mdw-progress__circle__duration__expand:667ms;--mdw-progress__circle__duration__collapse:667ms;--mdw-progress__circle__duration__fade-in:333ms;--mdw-progress__circle__duration__complete-end:333ms}@media (prefers-reduced-motion){:host{--mdw-progress__circle__duration:54s}}#circle{--startA:min(.5, var(--previous));--endA:min(.5, var(--value));--travelA:max( calc(var(--startA) - var(--endA)), calc(var(--endA) - var(--startA)) );--delayA:max(0, calc(var(--previous) - .5));--startB:max(0, calc(var(--previous) - .5));--endB:max(0, calc(var(--value) - .5));--travelB:max( calc(var(--startB) - var(--endB)), calc(var(--endB) - var(--startB)) );--delayB:max(0, .5 - calc(var(--previous)));position:absolute;inset:0}:host([circle]){block-size:48px;inline-size:48px}:host([circle]:not([color])){background-color:transparent}#progress[circle]{visibility:hidden}.semi{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box}#semi1{left:50%}#semi2{right:50%}.semi:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;transform:rotate(var(--rotation));background-color:transparent;border-radius:50%;transition:transform .4s;transition-timing-function:linear}#semi1:after{--rotation:min(180deg, calc(var(--value) * 360deg));left:-100%;clip-path:inset(0 50% 0 0);transition-delay:calc(var(--delayA) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelA) * var(--mdw-progress__circle__duration__expand))}#semi2:after{--rotation:max(0deg, calc(var(--value) * 360deg - 180deg));right:-100%;clip-path:inset(0 0 0 50%);transition-delay:calc(var(--delayB) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelB) * var(--mdw-progress__circle__duration__expand))}#indeterminate-circle{position:absolute;inset:0;display:block;animation:rotate-cw calc(var(--mdw-progress__circle__duration)/ 4) linear infinite}.arc{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box;animation:rotate-jump var(--mdw-progress__circle__duration) steps(1,end) infinite}.arc:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;background-color:transparent;border-radius:50%;animation:grow-shrink calc(var(--mdw-progress__circle__duration)/ 4) var(--mdw-progress__circle__timing) infinite}#arc2{bottom:50%;left:50%;transform-origin:0 100%}#arc3{top:50%;right:50%;transform-origin:100% 0}#arc4{top:50%;left:50%;transform-origin:0 0}#arc2:after{bottom:-100%;left:-100%;clip-path:polygon(0% 0%,50% 0%,50% 50%,100% 50%,100% 100%,0% 100%)}#arc3:after{top:-100%;right:-100%;clip-path:inset(0 50% 50% 0)}#arc4:after{top:-100%;left:-100%;clip-path:inset(0 50% 0 0)}@keyframes rotate-cw{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-jump{0%{transform:scaleX(1) rotate(0)}12.5%{transform:scaleX(-1) rotate(-270deg)}25%{transform:scaleX(1) rotate(270deg)}37.5%{transform:scaleX(-1) rotate(-180deg)}50%{transform:scaleX(1) rotate(180deg)}62.5%{transform:scaleX(-1) rotate(-90deg)}75%{transform:scaleX(1) rotate(90deg)}87.5%{transform:scaleX(-1) rotate(0)}to{transform:scaleX(1) rotate(0)}}@keyframes grow-shrink{0%{transform:rotate(3.6deg)}50%{transform:rotate(262.8deg)}to{transform:rotate(3.6deg)}}`.autoRegister("mdw-progress");var mn=_.extend().mixin(w).mixin(N).mixin(Q).mixin(K).mixin(ke).set({type:"radio",stateLayer:!0}).html`<div id=radio errored={erroredState} selected={checked}><mdw-radio-icon id=icon errored={erroredState} disabled={disabledState} selected={checked} focused={focusedState} hovered={hoveredState}></mdw-radio-icon></div><slot id=slot></slot>`.rootEvents({click(t){let{control:e}=this.refs;t.target!==e&&(t.stopPropagation(),e.click())}}).recompose(({refs:{radio:t,rippleContainer:e,state:i}})=>{t.append(i,e)}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;grid-template-rows:minmax(20px,auto);grid-template-columns:20px;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:20px}#control{grid-column:1/1;cursor:inherit}#state{pointer-events:auto}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#radio{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#radio[selected]{color:rgb(var(--mdw-ink))}#radio[disabled]{color:rgb(var(--mdw-color__on-surface))}#radio[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #radio{transform:none}#icon{--mdw-ink:inherit;--disabled-opacity:1}`.autoRegister("mdw-radio");function Ce(t){return t.observe({_scrollListenerPositionX:{type:"float",empty:0,reflect:!1},_scrollListenerPositionY:{type:"float",empty:0,reflect:!1},_scrollListenerLastIdle:{type:"float",empty:0},_scrollListenerLastScroll:{type:"float",empty:0},_scrollListenerLastResize:{type:"float",empty:0}}).set({_scroller:null,_scrollerScrollListener:null,_scrollerResizeListener:null,_scrollDebounce:null}).methods({_scrollListenerOnScrollIdle(){this._scrollListenerLastIdle=performance.now()},_scrollListenerOnScrollerScroll(e){this._scrollListenerPositionY=e.currentTarget===window?window.scrollY:e.currentTarget.scrollTop,this._scrollListenerPositionX=e.currentTarget===window?window.scrollX:e.currentTarget.scrollLeft,this._scrollListenerLastScroll=performance.now(),clearTimeout(this._scrollDebounce),this._scrollDebounce=setTimeout(()=>this._scrollListenerOnScrollIdle(),500)},_scrollListenerOnScrollerResize(e){this._scrollListenerLastResize=performance.now()},startScrollListener(e){return e??=window,e?(e===document.body&&(e=window),this._scroller=new WeakRef(e),this._scrollerScrollListener=this._scrollListenerOnScrollerScroll.bind(this),this._scrollerResizeListener=this._scrollListenerOnScrollerResize.bind(this),e.addEventListener("scroll",this._scrollerScrollListener,{passive:!0}),e.addEventListener("resize",this._scrollerResizeListener,{passive:!0}),this._scrollListenerPositionX=0,this._scrollListenerPositionY=0,!0):!1}}).define({_scrollListenerScroller(){return this._scroller.deref()}}).define({_scrollListenerScrollerScrollHeight(){let e=this._scrollListenerScroller;return e===window?document.documentElement.scrollHeight:e.scrollHeight},_scrollListenerScrollerClientHeight(){let e=this._scrollListenerScroller;return e===window?window.innerHeight:e.clientHeight}}).methods({_scrollListenerClear(e){var i;return e??=(i=this._scroller)==null?void 0:i.deref(),!e||!this._scrollerScrollListener?!1:(e.removeEventListener("scroll",this._scrollerScrollListener),!0)}})}var pn=_.extend().mixin(Ce).mixin(L).set({_bottomResizeObserver:null}).html`<slot id=start name=start></slot><div id=bottom><slot id=bottom-slot name=bottom></slot></div><div id=bottom-fixed><slot id=bottom-fixed-slot name=bottom-fixed></slot></div><slot id=slot></slot><slot id=end name=end></slot>`.observe({_bottomHeight:{type:"float",empty:0},_bottomOffsetY:{type:"float",empty:0},_bottomDuration:{type:"float",empty:0},_bottomEasing:{empty:"ease-in"}}).observe({_sharedBottomStyle({_bottomOffsetY:t,_bottomDuration:e,_bottomEasing:i,_bottomHeight:r}){return r?{styles:{transform:`translateY(${t}px)`},timing:{duration:e,easing:i}}:null}}).observe({_bottomSlotStyle:{...Z,get({_sharedBottomStyle:t}){return t?{target:"bottom-slot",...t}:null}},_bottomFixedSlotStyle:{...Z,get({_sharedBottomStyle:t}){return t?{target:"bottom-fixed-slot",...t}:null}}}).on({_scrollListenerPositionYChanged(t,e){let i=e-t;this._bottomDuration=0;let o=document.documentElement.scrollHeight-window.innerHeight-1-e,n=this._bottomHeight-o,s=0;n>0&&(s=n),this._bottomOffsetY=e===0||o<0?0:Math.max(0,Math.min(this._bottomOffsetY+i,this._bottomHeight-s))},_scrollListenerLastIdleChanged(){let{_bottomHeight:t,_bottomOffsetY:e}=this,i=(t-e)/t;if(!(i<=0)&&!(i>=1)){if(i<.5){let r=document.documentElement.scrollHeight-window.innerHeight-1,{_scrollListenerPositionY:o}=this,n=r-o,s=t-n;if(o!==0&&n>=0&&s<=0){this._bottomDuration=200,this._bottomEasing="ease-out",this._bottomOffsetY=t;return}}this._bottomDuration=250,this._bottomEasing="ease-in",this._bottomOffsetY=0}},connected(){(this._bottomResizeObserver??=new ResizeObserver(e=>{for(let{borderBoxSize:i}of e)this._bottomHeight=i[0].blockSize})).observe(this.refs.bottom),this.startScrollListener(window)},disconnected(){this._scrollListenerClear(),this._bottomResizeObserver.unobserve(this.refs.bottom)}}).css`:host{position:relative;display:grid;grid-template:"start top end" auto "start content end" minmax(auto,1fr) "start bottom end" auto/minmax(0px,auto) minmax(0px,100%) minmax(0px,auto);min-block-size:100vh;min-block-size:100dvh;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#start{display:flex;grid-area:start}#slot{display:block;grid-area:content;overflow-x:clip}#end{display:none;grid-area:end;block-size:0}#bottom{position:sticky;inset-block-end:0;display:block;grid-area:bottom;overflow-y:hidden;pointer-events:none;z-index:1}#bottom-slot{position:sticky;inset-block-end:0;display:flex;flex-direction:column-reverse}#bottom-fixed{position:sticky;inset-block-end:0;display:block;grid-area:bottom;pointer-events:none;z-index:2}#bottom-fixed-slot{position:absolute;inset-block-end:100%;display:block}`.autoRegister("mdw-root");function at(t){return t.mixin(Ce).observe({_semiStickyHeight:{type:"float",empty:0},_semiStickyOffsetY:{type:"float",empty:0},_semiStickyTranslateY:{type:"float",empty:0},_semiStickyDuration:{type:"float",empty:0},_semiStickyEasing:{empty:"ease-in"},_semiStickyMeasured:"boolean",stickyAlways:"boolean",stickyParent:"boolean"}).methods({_refreshSemiStickyMetrics(){let e=window.getComputedStyle(this);this._semiStickyHeight=this.offsetHeight+Number.parseFloat(e.marginTop)+Number.parseFloat(e.marginBottom),this._semiStickyOffsetY=Number.parseFloat(e.marginTop),this._semiStickyMeasured=!0}}).observe({_semiStickyStyleStyle:{...Z,get({_semiStickyMeasured:e,_semiStickyTranslateY:i,_semiStickyDuration:r,_semiStickyEasing:o}){return e?{styles:{transform:`translateY(${i}px)`},timing:{duration:r,easing:o}}:null}}}).on({_scrollListenerPositionYChanged(e,i){let r=i-e;this._semiStickyMeasured||this._refreshSemiStickyMetrics(),this._semiStickyDuration=0,this._semiStickyTranslateY=this.stickyAlways||i<this._semiStickyOffsetY?0:Math.min(Math.max(-this._semiStickyHeight,this._semiStickyTranslateY-r),0)},_scrollListenerLastIdleChanged(){if(this.stickyAlways)return;this._refreshSemiStickyMetrics();let e=this.offsetTop,o=(this._scrollListenerPositionY-e-this._semiStickyTranslateY)/this._semiStickyHeight;o<=0||o>=1||(o<=.5||e<this._semiStickyHeight?(this._semiStickyDuration=250,this._semiStickyEasing="ease-in",this._semiStickyTranslateY=0):(this._semiStickyDuration=200,this._semiStickyEasing="ease-out",this._semiStickyTranslateY=Math.max(this._semiStickyOffsetY-this._scrollListenerPositionY,-this._semiStickyHeight)))},connected(){this.startScrollListener(this.stickyParent?this.offsetParent:window)},disconnected(){this._scrollListenerClear()}})}var Mi=_.extend().mixin(w).mixin(C).mixin($e).mixin(at).mixin(L).observe({_raised:"boolean",_headlineOpacity:{type:"float",default:0},headline:"string",size:{value:null},color:"string",raisedColor:"string"}).observe({_styles:{...ne,get({raisedColor:t}){if(t)return`#raised-background:where([raised]){background-color:rgb(var(--mdw-color__${t}))}`}},_headlineStyle:{...Z,get({size:t,_headlineOpacity:e}){return t!=="medium"&&t!=="large"?null:{target:"headline",styles:{opacity:e??0},timing:{duration:200}}}}}).expressions({_companionIf({size:t}){return t==="medium"||t==="large"}}).html`<div id=raised-background raised={_raised}></div><slot id=leading name=leading on-slotchange={refreshTabIndexes}></slot><div id=headline ink={ink} color={color} type-style={typeStyle} on-slotchange={refreshTabIndexes}>{headline}<slot id=headline-slot></slot></div><slot id=trailing name=trailing on-slotchange={refreshTabIndexes}></slot><div mdw-if={_companionIf} id=companion aria-hidden=true size={size} color={color} raised={_raised}><slot id=companion-slot name=companion size={size}>{headline}</slot></div>`.on({_scrollListenerPositionYChanged(t,e){if(this._raised=e>this._semiStickyOffsetY,this.size==="medium"||this.size==="large"){let i=this.refs.companion.scrollHeight,r=.5*i;this._headlineOpacity=Math.max(0,Math.min(1,(e-r)/(i-r)))}},_scrollListenerLastIdleChanged(){this._headlineOpacity>0&&(this._headlineOpacity=1)},_semiStickyTranslateYChanged(t,e){e===0&&(this._headlineOpacity=1)}}).css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:sticky;inset-block-start:0;display:grid;align-items:center;gap:12px;grid-auto-flow:row;grid-template-rows:minmax(64px,min-content);grid-template-columns:minmax(auto,1fr) minmax(0,auto) minmax(auto,1fr);overflow-x:clip;overflow-y:visible;box-sizing:border-box;padding-inline:var(--mdw-pane__padding-inline,16px);pointer-events:auto;transform:translateY(0);z-index:5;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:grid-template-columns .1s;will-change:transform}#raised-background{position:absolute;inset:0;z-index:-1;background-color:transparent;transition:background-color .2s}#raised-background:where([raised]){background-color:rgb(var(--mdw-color__surface-container))}#leading{justify-self:flex-start;display:flex;align-items:center;grid-column:1;grid-row:1}#headline{display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;grid-row:1;font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing);text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition-duration:.2s;transition-property:transform,opacity,color,background-color}#trailing{justify-self:flex-end;display:flex;align-items:center;gap:8px;justify-content:flex-end;grid-column:3;grid-row:1;color:var(--mdw-color__on-surface-variant)}#companion{position:relative;display:flex;align-items:flex-end;margin-block-start:calc(28px - var(--mdw-typescale__headline-small__line-height));padding-block-end:20px;padding-inline:16px;background-color:rgb(var(--mdw-bg));box-shadow:none;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing);white-space:nowrap}#companion[size=large]{min-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height));margin-block-start:calc(68px - (2 * var(--mdw-typescale__headline-medium__line-height)));font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing);white-space:normal}@supports (width:1lh){#companion{margin-block-start:calc(28px - 1lh)}#companion[size=large]{min-block-size:2lh;margin-block-start:calc(68px - 2lh)}}#companion-slot{display:block;overflow-x:clip;overflow-y:hidden;text-overflow:ellipsis;text-transform:none;word-break:break-word}#companion-slot[size=large]{max-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height))}@supports (-webkit-line-clamp:2){#companion-slot[size=large]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-block-size:none}}#surface[size=small]{gap:4px;grid-template-columns:auto 1fr auto}#headline:is([size=medium],[size=large]){opacity:0;will-change:opacity}#companion:where([color=none],[color=transparent]),:host(:where([color=none],[color=transparent])){background-color:transparent}#companion[raised]:where([color=surface],[color=none],[color=transparent]){background-color:rgb(var(--mdw-color__surface-container))}`.autoRegister("mdw-top-app-bar");var un=Mi.extend().undefine("headline").undefine("size").undefine("_headlineStyle").observe({placeholder:{type:"string",empty:"Search"},color:{empty:"surface-container-high"},shapeStyle:{empty:"full"},kbdNav:{empty:"false"}}).define({input(){return this.refs.input},value:{get(){return this.refs.input.value},set(t){this.refs.input.value=t}}}).html`<mdw-input id=input placeholder={placeholder} aria-label={placeholder}></mdw-input>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-shape__size:var(--mdw-shape__full);inset-block-start:8px;display:flex;align-items:center;gap:16px;margin-block:16px;padding-inline:16px;background-color:rgb(var(--mdw-bg))}#leading:not([slotted]),#trailing:not([slotted]){display:none}#input{--mdw-state__hovered-opacity:0;flex:1}`.methods({onSlotChange({currentTarget:t}){t.toggleAttribute("slotted",t.assignedNodes().length>=0)}}).childEvents({leading:{slotchange:"onSlotChange"},trailing:{slotchange:"onSlotChange"},input:{change(t){t.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))}}}).recompose(({refs:{companion:t,headline:e,input:i}})=>{t.remove(),e.replaceWith(i)}).autoRegister("mdw-search");var Ai=fe.extend().observe({type:{empty:"radio"},innerSegmentedButton:"boolean"}).set({outlined:!0,focusableOnDisabled:!0}).recompose(({html:t,inline:e,refs:{icon:i,outline:r,control:o,slot:n,state:s}})=>{n.before(t`
|
|
197
|
+
`}}}).expressions({isDeterminate({value:t}){return t!=null}}).define({position(){return this.refs.progress.position},labels(){return this.refs.progress.labels}}).html`<div id=determinate style={_determinateStyle}><progress id=progress value={value} max={max} circle={circle}></progress><div mdw-if={circle} id=circle><div id=semi1 class=semi></div><div id=semi2 class=semi></div></div></div><div mdw-if={!isDeterminate} id=indeterminate><div mdw-if={!circle} id=indeterminate-line><div id=line1 class=line value={value}></div><div id=line2 class=line value={value}></div></div><div mdw-if={circle} id=indeterminate-circle><div id=arc2 class=arc></div><div id=arc3 class=arc></div><div id=arc4 class=arc></div></div></div>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-highest);--mdw-ink:var(--mdw-color__primary);--mdw-progress__opacity__duration:.5s;position:relative;display:inline-block;overflow:hidden;vertical-align:middle;min-block-size:4px;inline-size:100%;opacity:1;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:opacity .5s 275ms}:host([auto-hide]){will-change:opacity}:host([auto-hide][value="100"]){opacity:0;transition:opacity 1s 1s}#determinate{--previous:0;--value:0}#progress{position:absolute;inset:0;box-sizing:border-box;block-size:100%;inline-size:100%;border:none;-moz-appearance:none;appearance:none;opacity:0;transform:scaleX(var(--value,0));transform-origin:0 0;background-color:currentColor;color:inherit;transition:transform 275ms,opacity var(--mdw-progress__opacity__duration);will-change:transform,opacity}#progress::-webkit-progress-bar{display:none}#progress::-moz-progress-bar{display:none;block-size:0}#progress[value]{opacity:1;transform:scaleX(var(--value,0))}`.css`:host{--mdw-progress__line1-head__timing:cubic-bezier(.2, .8, 0, 1);--mdw-progress__line1-tail__timing:cubic-bezier(.4, 0, 1, 1);--mdw-progress__line2-head__timing:cubic-bezier(0, .65, 0, 1);--mdw-progress__line2-tail__timing:cubic-bezier(.1, .45, 0, 1);--mdw-progress__line__duration:1.8s}@media(prefers-reduced-motion){:host{--mdw-progress__line__duration:18s}}.line{opacity:1;transition:opacity var(--mdw-progress__opacity__duration);will-change:opacity}.line,.line:after{position:absolute;inset:0;overflow:hidden;animation-duration:var(--mdw-progress__line__duration);animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:forwards}.line:after{content:"";background-color:currentColor;animation:inherit;will-change:transform}#line1{animation-name:l1h}#line2{animation-name:l2h}#line1:after{animation-name:l1t}#line2:after{animation-name:l2t}.line[value]{opacity:0;visibility:hidden;transition:opacity var(--mdw-progress__opacity__duration),visibility 1ms var(--mdw-progress__opacity__duration)}@keyframes l1h{0%{transform:translate(0)}70.4%{transform:translate(0);animation-timing-function:var(--mdw-progress__line1-head__timing)}to{transform:translate(100%)}}@keyframes l1t{0%{transform:translate(-100%)}55.6%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line1-tail__timing)}87.1%{transform:translate(0)}to{transform:translate(0)}}@keyframes l2h{0%{transform:translate(0)}18.5%{transform:translate(0);animation-timing-function:var(--mdw-progress__line2-head__timing)}65.72%{transform:translate(100%)}to{transform:translate(100%)}}@keyframes l2t{0%{transform:translate(-100%);animation-timing-function:var(--mdw-progress__line2-tail__timing)}41.67%{transform:translate(0)}to{transform:translate(0)}}`.css`:host{--mdw-progress__circle__timing:cubic-bezier(.4, 0, .2, 1);--mdw-progress__circle__margin:4px;--mdw-progress__circle__duration:5.4s;--mdw-progress__circle__duration__expand:667ms;--mdw-progress__circle__duration__collapse:667ms;--mdw-progress__circle__duration__fade-in:333ms;--mdw-progress__circle__duration__complete-end:333ms}@media(prefers-reduced-motion){:host{--mdw-progress__circle__duration:54s}}#circle{--startA:min(.5, var(--previous));--endA:min(.5, var(--value));--travelA:max( calc(var(--startA) - var(--endA)), calc(var(--endA) - var(--startA)) );--delayA:max(0, calc(var(--previous) - .5));--startB:max(0, calc(var(--previous) - .5));--endB:max(0, calc(var(--value) - .5));--travelB:max( calc(var(--startB) - var(--endB)), calc(var(--endB) - var(--startB)) );--delayB:max(0, .5 - calc(var(--previous)));position:absolute;inset:0}:host([circle]){block-size:48px;inline-size:48px}:host([circle]:not([color])){background-color:transparent}#progress[circle]{visibility:hidden}.semi{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box}#semi1{left:50%}#semi2{right:50%}.semi:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;transform:rotate(var(--rotation));background-color:transparent;border-radius:50%;transition:transform .4s;transition-timing-function:linear}#semi1:after{--rotation:min(180deg, calc(var(--value) * 360deg));left:-100%;clip-path:inset(0 50% 0 0);transition-delay:calc(var(--delayA) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelA) * var(--mdw-progress__circle__duration__expand))}#semi2:after{--rotation:max(0deg, calc(var(--value) * 360deg - 180deg));right:-100%;clip-path:inset(0 0 0 50%);transition-delay:calc(var(--delayB) * var(--mdw-progress__circle__duration__expand));transition-duration:calc(var(--travelB) * var(--mdw-progress__circle__duration__expand))}#indeterminate-circle{position:absolute;inset:0;display:block;animation:rotate-cw calc(var(--mdw-progress__circle__duration)/ 4) linear infinite}.arc{position:absolute;inset:var(--mdw-progress__circle__margin);overflow:hidden;box-sizing:border-box;animation:rotate-jump var(--mdw-progress__circle__duration) steps(1,end) infinite}.arc:after{content:"";position:absolute;inset:0;box-sizing:border-box;border:solid currentcolor 4px;background-color:transparent;border-radius:50%;animation:grow-shrink calc(var(--mdw-progress__circle__duration)/ 4) var(--mdw-progress__circle__timing) infinite}#arc2{bottom:50%;left:50%;transform-origin:0 100%}#arc3{top:50%;right:50%;transform-origin:100% 0}#arc4{top:50%;left:50%;transform-origin:0 0}#arc2:after{bottom:-100%;left:-100%;clip-path:polygon(0% 0%,50% 0%,50% 50%,100% 50%,100% 100%,0% 100%)}#arc3:after{top:-100%;right:-100%;clip-path:inset(0 50% 50% 0)}#arc4:after{top:-100%;left:-100%;clip-path:inset(0 50% 0 0)}@keyframes rotate-cw{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-jump{0%{transform:scaleX(1) rotate(0)}12.5%{transform:scaleX(-1) rotate(-270deg)}25%{transform:scaleX(1) rotate(270deg)}37.5%{transform:scaleX(-1) rotate(-180deg)}50%{transform:scaleX(1) rotate(180deg)}62.5%{transform:scaleX(-1) rotate(-90deg)}75%{transform:scaleX(1) rotate(90deg)}87.5%{transform:scaleX(-1) rotate(0)}to{transform:scaleX(1) rotate(0)}}@keyframes grow-shrink{0%{transform:rotate(3.6deg)}50%{transform:rotate(262.8deg)}to{transform:rotate(3.6deg)}}`.autoRegister("mdw-progress");var mn=_.extend().mixin(x).mixin(N).mixin(Q).mixin(K).mixin(ke).set({type:"radio",stateLayer:!0}).html`<div id=radio errored={erroredState} selected={checked}><mdw-radio-icon id=icon errored={erroredState} disabled={disabledState} selected={checked} focused={focusedState} hovered={hoveredState}></mdw-radio-icon></div><slot id=slot></slot>`.rootEvents({click(t){let{control:e}=this.refs;t.target!==e&&(t.stopPropagation(),e.click())}}).recompose(({refs:{radio:t,rippleContainer:e,state:i}})=>{t.append(i,e)}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);display:inline-grid;align-items:baseline;gap:12px;grid-auto-flow:column;grid-template-rows:minmax(20px,auto);grid-template-columns:20px;justify-content:flex-start;cursor:pointer;transition:none .1s cubic-bezier(.4,0,1,1)}:host(:disabled){cursor:not-allowed;opacity:.38}:host([internals-disabled]){cursor:not-allowed;opacity:.38}:host(:empty){vertical-align:-11.5%;line-height:20px}#control{grid-column:1/1;cursor:inherit}#state{pointer-events:auto}#ripple-container,#state{top:50%;left:50%;block-size:40px;inline-size:40px;transform:translate(-50%) translateY(-50%);border-radius:50%}#radio{position:relative;display:inline-flex;grid-column:1/1;pointer-events:none;transform:translateY(11.5%);color:rgb(var(--mdw-color__on-surface))}#radio[selected]{color:rgb(var(--mdw-ink))}#radio[disabled]{color:rgb(var(--mdw-color__on-surface))}#radio[errored]{color:rgb(var(--mdw-color__error))}:host(:empty) #radio{transform:none}#icon{--mdw-ink:inherit;--disabled-opacity:1}`.autoRegister("mdw-radio");function Ce(t){return t.observe({_scrollListenerPositionX:{type:"float",empty:0,reflect:!1},_scrollListenerPositionY:{type:"float",empty:0,reflect:!1},_scrollListenerLastIdle:{type:"float",empty:0},_scrollListenerLastScroll:{type:"float",empty:0},_scrollListenerLastResize:{type:"float",empty:0}}).set({_scroller:null,_scrollerScrollListener:null,_scrollerResizeListener:null,_scrollDebounce:null}).methods({_scrollListenerOnScrollIdle(){this._scrollListenerLastIdle=performance.now()},_scrollListenerOnScrollerScroll(e){this._scrollListenerPositionY=e.currentTarget===window?window.scrollY:e.currentTarget.scrollTop,this._scrollListenerPositionX=e.currentTarget===window?window.scrollX:e.currentTarget.scrollLeft,this._scrollListenerLastScroll=performance.now(),clearTimeout(this._scrollDebounce),this._scrollDebounce=setTimeout(()=>this._scrollListenerOnScrollIdle(),500)},_scrollListenerOnScrollerResize(e){this._scrollListenerLastResize=performance.now()},startScrollListener(e){return e??=window,e?(e===document.body&&(e=window),this._scroller=new WeakRef(e),this._scrollerScrollListener=this._scrollListenerOnScrollerScroll.bind(this),this._scrollerResizeListener=this._scrollListenerOnScrollerResize.bind(this),e.addEventListener("scroll",this._scrollerScrollListener,{passive:!0}),e.addEventListener("resize",this._scrollerResizeListener,{passive:!0}),this._scrollListenerPositionX=0,this._scrollListenerPositionY=0,!0):!1}}).define({_scrollListenerScroller(){return this._scroller.deref()}}).define({_scrollListenerScrollerScrollHeight(){let e=this._scrollListenerScroller;return e===window?document.documentElement.scrollHeight:e.scrollHeight},_scrollListenerScrollerClientHeight(){let e=this._scrollListenerScroller;return e===window?window.innerHeight:e.clientHeight}}).methods({_scrollListenerClear(e){var i;return e??=(i=this._scroller)==null?void 0:i.deref(),!e||!this._scrollerScrollListener?!1:(e.removeEventListener("scroll",this._scrollerScrollListener),!0)}})}var un=_.extend().mixin(Ce).mixin(L).set({_bottomResizeObserver:null}).html`<slot id=start name=start></slot><div id=bottom><slot id=bottom-slot name=bottom></slot></div><div id=bottom-fixed><slot id=bottom-fixed-slot name=bottom-fixed></slot></div><slot id=slot></slot><slot id=end name=end></slot>`.observe({_bottomHeight:{type:"float",empty:0},_bottomOffsetY:{type:"float",empty:0},_bottomDuration:{type:"float",empty:0},_bottomEasing:{empty:"ease-in"}}).observe({_sharedBottomStyle({_bottomOffsetY:t,_bottomDuration:e,_bottomEasing:i,_bottomHeight:r}){return r?{styles:{transform:`translateY(${t}px)`},timing:{duration:e,easing:i}}:null}}).observe({_bottomSlotStyle:{...ee,get({_sharedBottomStyle:t}){return t?{target:"bottom-slot",...t}:null}},_bottomFixedSlotStyle:{...ee,get({_sharedBottomStyle:t}){return t?{target:"bottom-fixed-slot",...t}:null}}}).on({_scrollListenerPositionYChanged(t,e){let i=e-t;this._bottomDuration=0;let o=document.documentElement.scrollHeight-window.innerHeight-1-e,n=this._bottomHeight-o,s=0;n>0&&(s=n),this._bottomOffsetY=e===0||o<0?0:Math.max(0,Math.min(this._bottomOffsetY+i,this._bottomHeight-s))},_scrollListenerLastIdleChanged(){let{_bottomHeight:t,_bottomOffsetY:e}=this,i=(t-e)/t;if(!(i<=0)&&!(i>=1)){if(i<.5){let r=document.documentElement.scrollHeight-window.innerHeight-1,{_scrollListenerPositionY:o}=this,n=r-o,s=t-n;if(o!==0&&n>=0&&s<=0){this._bottomDuration=200,this._bottomEasing="ease-out",this._bottomOffsetY=t;return}}this._bottomDuration=250,this._bottomEasing="ease-in",this._bottomOffsetY=0}},connected(){(this._bottomResizeObserver??=new ResizeObserver(e=>{for(let{borderBoxSize:i}of e)this._bottomHeight=i[0].blockSize})).observe(this.refs.bottom),this.startScrollListener(window)},disconnected(){this._scrollListenerClear(),this._bottomResizeObserver.unobserve(this.refs.bottom)}}).css`:host{position:relative;display:grid;grid-template:"start top end" auto "start content end" minmax(auto,1fr) "start bottom end" auto/minmax(0px,auto) minmax(0px,100%) minmax(0px,auto);min-block-size:100vh;min-block-size:100dvh;font:var(--mdw-typescale__body-large__font);letter-spacing:var(--mdw-typescale__body-large__letter-spacing)}#start{display:flex;grid-area:start}#slot{display:block;grid-area:content;overflow-x:clip}#end{display:none;grid-area:end;block-size:0}#bottom{position:sticky;inset-block-end:0;display:block;grid-area:bottom;overflow-y:hidden;pointer-events:none;z-index:1}#bottom-slot{position:sticky;inset-block-end:0;display:flex;flex-direction:column-reverse}#bottom-fixed{position:sticky;inset-block-end:0;display:block;grid-area:bottom;pointer-events:none;z-index:2}#bottom-fixed-slot{position:absolute;inset-block-end:100%;display:block}`.autoRegister("mdw-root");function at(t){return t.mixin(Ce).observe({_semiStickyHeight:{type:"float",empty:0},_semiStickyOffsetY:{type:"float",empty:0},_semiStickyTranslateY:{type:"float",empty:0},_semiStickyDuration:{type:"float",empty:0},_semiStickyEasing:{empty:"ease-in"},_semiStickyMeasured:"boolean",stickyAlways:"boolean",stickyParent:"boolean"}).methods({_refreshSemiStickyMetrics(){let e=window.getComputedStyle(this);this._semiStickyHeight=this.offsetHeight+Number.parseFloat(e.marginTop)+Number.parseFloat(e.marginBottom),this._semiStickyOffsetY=Number.parseFloat(e.marginTop),this._semiStickyMeasured=!0}}).observe({_semiStickyStyleStyle:{...ee,get({_semiStickyMeasured:e,_semiStickyTranslateY:i,_semiStickyDuration:r,_semiStickyEasing:o}){return e?{styles:{transform:`translateY(${i}px)`},timing:{duration:r,easing:o}}:null}}}).on({_scrollListenerPositionYChanged(e,i){let r=i-e;this._semiStickyMeasured||this._refreshSemiStickyMetrics(),this._semiStickyDuration=0,this._semiStickyTranslateY=this.stickyAlways||i<this._semiStickyOffsetY?0:Math.min(Math.max(-this._semiStickyHeight,this._semiStickyTranslateY-r),0)},_scrollListenerLastIdleChanged(){if(this.stickyAlways)return;this._refreshSemiStickyMetrics();let e=this.offsetTop,o=(this._scrollListenerPositionY-e-this._semiStickyTranslateY)/this._semiStickyHeight;o<=0||o>=1||(o<=.5||e<this._semiStickyHeight?(this._semiStickyDuration=250,this._semiStickyEasing="ease-in",this._semiStickyTranslateY=0):(this._semiStickyDuration=200,this._semiStickyEasing="ease-out",this._semiStickyTranslateY=Math.max(this._semiStickyOffsetY-this._scrollListenerPositionY,-this._semiStickyHeight)))},connected(){this.startScrollListener(this.stickyParent?this.offsetParent:window)},disconnected(){this._scrollListenerClear()}})}var Mi=_.extend().mixin(x).mixin(C).mixin($e).mixin(at).mixin(L).observe({_raised:"boolean",_headlineOpacity:{type:"float",default:0},headline:"string",size:{value:null},color:"string",raisedColor:"string"}).observe({_styles:{...ne,get({raisedColor:t}){return t?`#raised-background:where([raised]){background-color:rgb(var(--mdw-color__${t}))}`:null}},_headlineStyle:{...ee,get({size:t,_headlineOpacity:e}){return t!=="medium"&&t!=="large"?null:{target:"headline",styles:{opacity:e??0},timing:{duration:200}}}}}).expressions({_companionIf({size:t}){return t==="medium"||t==="large"}}).html`<div id=raised-background raised={_raised}></div><slot id=leading name=leading on-slotchange={refreshTabIndexes}></slot><div id=headline ink={ink} color={color} type-style={typeStyle} on-slotchange={refreshTabIndexes}>{headline}<slot id=headline-slot></slot></div><slot id=trailing name=trailing on-slotchange={refreshTabIndexes}></slot><div mdw-if={_companionIf} id=companion aria-hidden=true size={size} color={color} raised={_raised}><slot id=companion-slot name=companion size={size}>{headline}</slot></div>`.on({_scrollListenerPositionYChanged(t,e){if(this._raised=e>this._semiStickyOffsetY,this.size==="medium"||this.size==="large"){let i=this.refs.companion.scrollHeight,r=.5*i;this._headlineOpacity=Math.max(0,Math.min(1,(e-r)/(i-r)))}},_scrollListenerLastIdleChanged(){this._headlineOpacity>0&&(this._headlineOpacity=1)},_semiStickyTranslateYChanged(t,e){e===0&&(this._headlineOpacity=1)}}).css`:host{--mdw-bg:var(--mdw-color__surface);--mdw-ink:var(--mdw-color__on-surface);position:sticky;inset-block-start:0;display:grid;align-items:center;gap:12px;grid-auto-flow:row;grid-template-rows:minmax(64px,min-content);grid-template-columns:minmax(auto,1fr) minmax(0,auto) minmax(auto,1fr);overflow-x:clip;overflow-y:visible;box-sizing:border-box;padding-inline:var(--mdw-pane__padding-inline,16px);pointer-events:auto;transform:translateY(0);z-index:5;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));transition:grid-template-columns .1s;will-change:transform}#raised-background{position:absolute;inset:0;z-index:-1;background-color:transparent;transition:background-color .2s}#raised-background:where([raised]){background-color:rgb(var(--mdw-color__surface-container))}#leading{justify-self:flex-start;display:flex;align-items:center;grid-column:1;grid-row:1}#headline{display:inline-block;overflow:clip hidden;max-inline-size:100%;grid-column:2;grid-row:1;font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing);text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition-duration:.2s;transition-property:transform,opacity,color,background-color}#trailing{justify-self:flex-end;display:flex;align-items:center;gap:8px;justify-content:flex-end;grid-column:3;grid-row:1;color:var(--mdw-color__on-surface-variant)}#companion{position:relative;display:flex;align-items:flex-end;margin-block-start:calc(28px - var(--mdw-typescale__headline-small__line-height));padding-block-end:20px;padding-inline:16px;background-color:rgb(var(--mdw-bg));box-shadow:none;font:var(--mdw-typescale__headline-small__font);letter-spacing:var(--mdw-typescale__headline-small__letter-spacing);white-space:nowrap}#companion[size=large]{min-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height));margin-block-start:calc(68px - (2 * var(--mdw-typescale__headline-medium__line-height)));font:var(--mdw-typescale__headline-medium__font);letter-spacing:var(--mdw-typescale__headline-medium__letter-spacing);white-space:normal}@supports (width:1lh){#companion{margin-block-start:calc(28px - 1lh)}#companion[size=large]{min-block-size:2lh;margin-block-start:calc(68px - 2lh)}}#companion-slot{display:block;overflow-x:clip;overflow-y:hidden;text-overflow:ellipsis;text-transform:none;word-break:break-word}#companion-slot[size=large]{max-block-size:calc(2 * var(--mdw-typescale__headline-medium__line-height))}@supports (-webkit-line-clamp:2){#companion-slot[size=large]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-block-size:none}}#surface[size=small]{gap:4px;grid-template-columns:auto 1fr auto}#headline:is([size=medium],[size=large]){opacity:0;will-change:opacity}#companion:where([color=none],[color=transparent]),:host(:where([color=none],[color=transparent])){background-color:transparent}#companion[raised]:where([color=surface],[color=none],[color=transparent]){background-color:rgb(var(--mdw-color__surface-container))}`.autoRegister("mdw-top-app-bar");var hn=Mi.extend().undefine("headline").undefine("size").undefine("_headlineStyle").observe({placeholder:{type:"string",empty:"Search"},color:{empty:"surface-container-high"},shapeStyle:{empty:"full"},kbdNav:{empty:"false"}}).define({input(){return this.refs.input.value},value:{get(){return this.refs.input.value},set(t){this.refs.input.value=t}}}).html`<mdw-input id=input placeholder={placeholder} aria-label={placeholder}></mdw-input>`.css`:host{--mdw-bg:var(--mdw-color__surface-container-high);--mdw-shape__size:var(--mdw-shape__full);inset-block-start:8px;display:flex;align-items:center;gap:16px;margin-block:16px;padding-inline:16px;background-color:rgb(var(--mdw-bg))}#leading:not([slotted]),#trailing:not([slotted]){display:none}#input{--mdw-state__hovered-opacity:0;flex:1}`.methods({onSlotChange({currentTarget:t}){t.toggleAttribute("slotted",t.assignedNodes().length>=0)}}).childEvents({leading:{slotchange:"onSlotChange"},trailing:{slotchange:"onSlotChange"},input:{change(t){t.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))}}}).recompose(({refs:{companion:t,headline:e,input:i}})=>{t.remove(),e.replaceWith(i)}).autoRegister("mdw-search");var Ai=fe.extend().observe({type:{empty:"radio"},innerSegmentedButton:"boolean"}).set({outlined:!0,focusableOnDisabled:!0}).recompose(({html:t,inline:e,refs:{icon:i,outline:r,control:o,slot:n,state:s}})=>{n.before(t`
|
|
198
198
|
<div id=icons>
|
|
199
199
|
${i}
|
|
200
200
|
<mdw-icon selected={checked} id=check-icon aria-hidden=true icon=check variation=filled></mdw-icon>
|
|
201
201
|
</div>
|
|
202
|
-
`),i.removeAttribute("mdw-if"),i.setAttribute("has-icon","{hasIcon}"),i.setAttribute("selected","{checked}"),r.setAttribute("selected","{checked}"),r.setAttribute("inner-segmented-button","{innerSegmentedButton}"),r.setAttribute("shape-start","{shapeStart}"),r.setAttribute("shape-end","{shapeEnd}"),o.setAttribute("role","option"),o.setAttribute("aria-checked",e(({type:l,checked:a})=>l==="checkbox"?`${!!a}`:null)),o.setAttribute("aria-selected",e(({type:l,checked:a})=>l==="checkbox"?null:`${!!a}`)),s.setAttribute("state-disabled","focus")}).css`:host{--mdw-shape__size:var(--mdw-shape__full);--mdw-ink:var(--mdw-color__on-surface);gap:8px;min-inline-size:24px;padding-inline-start:max(12px,calc(16px + (var(--mdw-density) * 2px)));padding-inline-end:max(20px,calc(24px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-ink))}:host([inner-segmented-button]){--mdw-shape__size:0px}#outline{inset-inline-end:-1px;z-index:-1}#outline[shape-end]{inset-inline-end:0}#outline[selected]{background-color:rgb(var(--mdw-bg))}#icons{position:relative;display:inline-flex}#icon{box-sizing:border-box;inline-size:0;opacity:1}#icon[has-icon]{inline-size:18px;opacity:1}#icon[selected]{inline-size:18px;opacity:0}#check-icon{position:absolute;inset:0;display:block;overflow:visible;block-size:100%;margin:0;opacity:0;font-size:18px}#check-icon[selected]{opacity:1;font-size:18px}#icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#outline[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-segmented-button");var hn=H.extend().mixin(re).define({kbdNavQuery(){return Ai.elementName}}).set({_ariaRole:"listbox"}).childEvents({slot:{slotchange(){this.refreshTabIndexes();let t=this.kbdNavChildren;for(let[e,i]of t.entries())i.shapeStart=e===0,i.innerSegmentedButton=e>0&&e<t.length-1,i.shapeEnd=e===t.length-1}}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);display:inline-flex;align-items:stretch;flex-direction:row;justify-content:initial;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;min-inline-size:100%;flex:none}:host([color]){background-color:transparent}#slot{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;flex:none}`.on({constructed(){this.updateAriaProperty("ariaOrientation","horizontal")}}).autoRegister("mdw-segmented-button-group");var _n=_.extend().mixin(w).mixin(N).mixin(ye).mixin(ze).observe({trailingIcon:{empty:"arrow_drop_down"}}).overrides({controlTagName:"select",controlVoidElement:!1,type:"select-one"}).define({_select(){return this.refs.control},multiple:{value:!1},size:{value:1}}).html`<slot id=slot></slot>`.childEvents({slot:{slotchange(t){let e=this._select;e.replaceChildren(...t.currentTarget.assignedNodes().map(i=>i.cloneNode(!0))),this._value=e.value}}}).recompose(({template:t,refs:{slot:e,prefix:i,suffix:r,control:o}})=>{o.setAttribute("icon","{icon}"),t.append(e),i.remove(),r.remove()}).on({_formResetChanged(t,e){var i;e&&(this._select.value=((i=this.querySelector("option[selected]"))==null?void 0:i.value)??"")}}).css`#slot{display:none}#shape{padding:0;cursor:pointer}#shape[disabled]{cursor:not-allowed}#icon{position:absolute}#trailing-icon{position:absolute;inset-inline-end:16px}#control{padding-inline-start:16px;padding-inline-end:56px;accent-color:rgb(var(--mdw-ink));cursor:inherit}#control[icon]{margin-inline-start:40px;padding-inline-start:0}option{accent-color:rgb(var(--mdw-ink));min-block-size:var(--mdw-typescale__label-large__line-height);appearance:none;background-color:rgb(var(--mdw-color__surface))!important;border-radius:0;color:rgb(var(--mdw-color__on-surface))!important;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing)}`.autoRegister("mdw-select");var Ar=!1;function At(){Ar||(xt('html[dir="rtl"]{--mdw-dir: -1;}'),Ar=!0)}At();function Ye(t,e=0){let i=Number.parseFloat(t);return Number.isNaN(i)?e:i}function Tr(t,e,i){let r=Ye(t),o=Ye(e),n=Ye(i,100);return(r-o)/(n-o)}var fn=_.extend().mixin(w).mixin(N).mixin(K).set({stateLayer:!0,type:"range"}).observe({ticks:"string",_valueAsText:{nullable:!1},thumbLabel:{type:"string",reflect:"read"},_roundedValue:"float",_isHoveringThumb:"boolean",_lastDispatchedChangeValue:"string"}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState)return;if(t.type==="touchend"){this._isHoveringThumb=!1;return}let i,r,o,n,s="touches"in t;if(s){if(t.touches.length){let[f]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=f}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;if(a>1?a=1:a<0&&(a=0),n){this._isHoveringThumb=!0;let{min:f,max:h,step:u}=this,g=Ye(f),b=Ye(h,100),x=Ye(u,1);ce(this)&&(a=1-a);let k=a*(b-g)+g,S=Math.round(k/x)*x;if(x<1){let T=10**(-1*Math.floor(Math.log10(x)));S=Math.round(S*T)/T}if(this._roundedValue=S,this._valueAsText=S.toString(10),s&&yt){t.type==="touchstart"&&t.preventDefault();let{_input:A}=this;A.valueAsNumber!==S&&(A.valueAsNumber=S,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}return}if(s)return;let c=Tr(this.value,this.min,this.max);ce(this)&&(c=1-c);let d=c*l,m=d-20,p=d+20;this._isHoveringThumb=i>=m&&i<=p},onLeaveEvent({currentTarget:t}){le(t)||(this._isHoveringThumb=!1)},onControlFinish(t){let e=t.currentTarget;e.disabled||(t.type==="click"&&t.preventDefault(),e.valueAsNumber=this._roundedValue,this._value=e.value,this._lastDispatchedChangeValue!==this._value&&(this._lastDispatchedChangeValue=this._value,this.dispatchEvent(new Event("change",{bubbles:!0}))))}}).events({blur:"onLeaveEvent",mouseout:"onLeaveEvent"}).childEvents({control:{"~mousedown":"onControlMouseOrTouch","~mousemove":"onControlMouseOrTouch","~mouseout":"onControlMouseOrTouch",touchstart:"onControlMouseOrTouch","~touchmove":"onControlMouseOrTouch","~touchleave":"onControlMouseOrTouch","~touchcancel":"onControlMouseOrTouch","~touchend":"onControlMouseOrTouch",touchend:"onControlFinish",click:"onControlFinish","~change"(t){this._lastDispatchedChangeValue===this._value&&t.stopPropagation(),this._lastDispatchedChangeValue=this._value}}}).expressions({computeTrackStyle({ticks:t,_valueAsText:e,min:i,max:r}){return[t?`--ticks:${t}`:null,`--value:${Tr(e,i,r)}`].filter(Boolean).join(";")||null},_thumbLabelHidden({_isHoveringThumb:t,focusedState:e}){return!t&&!e},_computedThumbLabel({thumbLabel:t,_valueAsText:e}){return t??e}}).html`<div id=track style={computeTrackStyle} aria-hidden=true disabled={disabledState}><div mdw-if={ticks} id=ticks></div><div id=track-active></div><div id=thumb-anchor><div id=thumb></div><div id=thumb-label hidden={_thumbLabelHidden} text={_computedThumbLabel}></div></div></div>`.recompose(({refs:{thumb:t,state:e,control:i}})=>{t.append(e),i.removeAttribute("aria-labelledby")}).on({valueChanged(t,e){this._valueAsText=e}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:block;vertical-align:middle;min-block-size:40px;min-inline-size:88px;background-color:transparent}:host,:host([color]){background-color:transparent}#control{inset:0;overflow:visible;block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;appearance:none;cursor:pointer;transform:none;background-color:transparent}#control::-webkit-slider-runnable-track{margin-inline:-10px;appearance:none;background-color:transparent}@supports (-moz-appearance:none){#control{inset-inline:-10px;inline-size:calc(100% + 20px)}}#control::-moz-range-track{inline-size:calc(100% + 20px)!important;appearance:none}#control::-webkit-slider-thumb{display:block;block-size:20px;inline-size:20px;-webkit-appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%;box-shadow:none}#control::-moz-range-thumb{display:block;box-sizing:content-box;block-size:20px;inline-size:20px;border:none;appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%}#control[disabled]{cursor:not-allowed}#track{--value:.5;position:absolute;inset-block-start:50%;inset-inline:0;block-size:4px;margin-block-start:-2px;pointer-events:none;-webkit-user-select:none;user-select:none;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit;color:rgb(var(--mdw-bg))}#thumb{position:absolute;inset-block-start:-18px;inset-inline-start:-20px;display:flex;align-items:center;justify-content:center;overflow:hidden;block-size:40px;inline-size:40px;pointer-events:none;border-radius:50%;color:currentColor}#thumb:before{content:"";display:block;block-size:20px;inline-size:20px;background-color:currentColor;border-radius:50%;transition:color .1s,background-color .1s}#ticks:after,#ticks:before{content:"";position:absolute;inset:0;padding-inline:2px;background-clip:content-box;background-image:radial-gradient(circle at 1px,currentColor 0,currentColor 1px,transparent 0);background-position:-1px 50%;background-repeat:repeat-x;background-size:calc(100% / (var(--ticks,0) + 1)) 2px}#ticks:before{color:rgb(var(--mdw-color__on-surface-variant))}#ticks:after{padding-inline-end:calc(100% - (100% * var(--value)) + 10px);z-index:1;color:rgb(var(--mdw-ink));will-change:padding-inline-end}#track-active{position:absolute;inset:0;overflow:hidden;border-radius:99px}#track-active:before{content:"";position:absolute;inset:0;transform:scaleX(var(--value));transform-origin:calc(100% * calc(-.5 * var(--mdw-dir,1) + .5)) 0;background-color:currentColor;will-change:transform}#thumb-anchor{position:absolute;inset-inline-start:calc(var(--value) * 100%);display:flex;align-items:flex-start;flex-direction:column;z-index:24;will-change:inset-inline-start,left,right}#thumb-label{position:absolute;left:0;inset-block-end:14px;display:flex;align-items:center;justify-content:center;box-sizing:content-box;margin-block-end:6px;transform:translate(-50%) scale(1);transform-origin:50% 100%;font-weight:var(--mdw-typescale__label-medium__font-weight);line-height:var(--mdw-typescale__label-medium__line-height);font-family:var(--mdw-typescale__label-medium__font-family);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);transition:transform .2s;will-change:transform}#thumb-label:is([hidden],[text=""]){transform:translate(-50%) scale(0)}#thumb-label:before{content:attr(text);display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-block-size:28px;min-inline-size:28px;padding:4px;z-index:1;background-color:rgb(var(--mdw-bg));border-radius:14px;color:rgb(var(--mdw-ink))}#thumb-label:after{--x-start:4.1005px;--x-end: calc(100% - 4.1005px) ;--y: calc(100% - 9.9584px) ;content:"";position:absolute;inset:0;inset-block-end:-6px;clip-path:polygon(var(--x-start) var(--y),var(--x-end) var(--y),50% 100%,var(--x-start) var(--y));background-color:currentColor}#track[disabled]{--mdw-bg:var(--mdw-color__on-surface);cursor:not-allowed;opacity:.38;background-color:rgb(var(--mdw-color__on-surface),calc(.12 / .38))}`.autoRegister("mdw-slider");var bn=_.extend().mixin(w).mixin(C).mixin(G).mixin($).mixin(U).set({_ariaRole:"status",elevated:!0}).observe({open:"boolean",persistent:"boolean",action:"string",actionInk:{empty:"inverse-primary"},actionTypeStyle:{empty:"label-large"},closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},onaction:oe}).methods({async close(){this.dispatchEvent(new Event("close",{cancelable:!0}))&&this.open&&(this.open=!1,window.getComputedStyle(this).transitionDuration!=="0s"&&await new Promise(t=>{this.addEventListener("transitionend",t,{once:!0})}))},show(){this.open=!0},update(t){this.textContent=t}}).html`<div id=content><slot id=slot></slot></div><mdw-button mdw-if={action} id=action class=button ink={actionInk} type-style={actionTypeStyle}>{action}</mdw-button><mdw-icon-button mdw-if={closeButton} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.childEvents({action:{"~click"(){this.dispatchEvent(new Event("action",{cancelable:!0}))&&this.close()}},close:{"~click"(){this.close()}}}).css`:host{--mdw-shape__size:var(--mdw-shape__small);--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-type__line-height:var(--mdw-typescale__body-medium__line-height);display:flex;align-items:center;grid-area:snackbar;padding-inline:16px;pointer-events:auto;filter:var(--mdw-elevation__drop-shadow__3);opacity:0;transform:translateY(25%) scaleY(.25);transform-origin:bottom center;visibility:hidden;z-index:22;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing);transition:transform .2s,opacity .2s,visibility .2s}:host([action]){gap:8px;padding-inline-end:8px}:host([close-button]){gap:4px;padding-inline-end:4px}:host([open]){opacity:1;transform:scale(1);visibility:inherit}#content{display:flex;align-items:center;flex:1;padding-block:max(2px,calc(14px + (var(--mdw-density) * 2px)))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:calc(var(--mdw-type__line-height) * 2);text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}@supports (width:1lh){#slot{max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}}`.autoRegister("mdw-snackbar");var gn=_.extend().mixin(L).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"snackbar" auto/minmax(auto,60ch);justify-content:center;margin:16px;pointer-events:none}@media (min-width:648px){:host{grid-template-columns:minmax(auto,1fr);margin:24px}}@media (min-width:1248px){:host{grid-template-columns:minmax(auto,60ch);justify-content:flex-start}}`.autoRegister("mdw-snackbar-container");At();var wn=_.extend().mixin(w).mixin(C).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string",hovered:"boolean",pressed:"boolean",focused:"boolean",dragValue:"float",color:{empty:"primary"}}).observe({checked:{type:"boolean",get({selected:t}){return t},set(t){this.selected=t}},_active({disabled:t,pressed:e,focused:i,hovered:r}){return!t&&(e||i||r)}}).observe({_thumbColor({color:t,_active:e}){return e?`${t}-container`:""},_iconInk({disabled:t,selected:e,color:i}){return e?t?"on-surface":`on-${i}-container`:"surface-container-highest"}}).expressions({hasIcon({icon:t,src:e,unselectedIcon:i,unselectedSrc:r}){return!!(t||e||i||r)},iconVariation({selected:t}){return t?"filled":null}}).html`<div id=track selected={checked} disabled={disabled}><div id=thumb selected={checked} pressed={pressed} disabled={disabled}><mdw-box block id=thumb-shape selected={checked} pressed={pressed} hovered={hovered} focused={focused} icon={hasIcon} color={_thumbColor} active={_active} ink={_thumbInk} disabled={disabled}></mdw-box><mdw-icon ink={_iconInk} class=icon id=icon src={src} selected={checked} icon={icon} variation={iconVariation}></mdw-icon><mdw-icon ink={_iconInk} class=icon id=selected-icon src={selectedIconSrc} selected={checked} icon={selectedIcon} variation=filled></mdw-icon><mdw-icon ink={_iconInk} class=icon id=unselected-icon src={unselectedIconSrc} selected={checked} icon={unselectedIcon}></mdw-icon><slot id=slot selected={checked}></slot></div></div>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{checked}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).on({dragValueChanged(t,e){e==null?(this.refs.thumb.style.removeProperty("--mdw-switch__value"),this.refs.thumb.style.removeProperty("transition-duration")):(this.refs.thumb.style.setProperty("--mdw-switch__value",`${e}`),this.refs.thumb.style.setProperty("transition-duration","0s"))}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);--mdw-switch__value:0;position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;block-size:32px;inline-size:52px;container-type:inline-size;container-name:switch-icon}:host([selected]){--mdw-switch__value:1}:host([disabled]){opacity:.38}#track{position:absolute;inset:0;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit}#track[selected]{background-color:rgb(var(--mdw-bg))}#track[disabled]{background-color:rgba(var(--mdw-color__surface-container-highest),calc(.12/.38))}#track[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline{border-width:2px;z-index:1;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-color__outline))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline[selected]{color:transparent}#thumb{--thumb-color:var(--mdw-ink);position:absolute;inset-block:0;inset-inline-start:0;display:flex;align-items:center;justify-content:center;transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (52px - 100%)));border-radius:inherit;aspect-ratio:1/1}:dir(rtl) #thumb{--mdw-dir:-1}@supports (width:1cqw){#thumb{transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (100cqw - 100%)))}}#slot{color:rgb(var(--mdw-color__on-surface))}#slot[selected]{color:rgb(var(--mdw-bg))}#thumb-shape{--mdw-shape__size:inherit;position:absolute;inset:2px;transform:scale(calc(16/28));z-index:0;border-radius:inherit}#thumb-shape[icon]{transform:scale(calc(24/28))}#thumb-shape:not([selected]){--mdw-bg:var(--mdw-color__outline);--mdw-ink:var(--mdw-color__surface-container-highest)}#thumb-shape[selected]{transform:scale(calc(24/28))}#thumb-shape[selected]:not([active]){--mdw-bg:var(--thumb-color)}#thumb-shape[pressed]:not([disabled]){transform:scale(1)}#thumb-shape[disabled]{background-color:rgb(var(--mdw-color__on-surface))}#thumb-shape[disabled][selected]{background-color:rgb(var(--mdw-color__surface))}.icon{position:absolute;top:50%;left:50%;opacity:0;transform:translate(-50%) translateY(-50%);font-size:16px}#icon,#unselected-icon{opacity:1}#unselected-icon[selected]{opacity:0}#selected-icon[selected]{opacity:1}#thumb[disabled]{color:rgb(var(--mdw-color__on-surface))}`.css`:host{--mdw-switch__transition-timing__collapse:cubic-bezier(.4, 0, 1, 1);--mdw-switch__transition-duration__collapse:375ms;--mdw-switch__transition-timing__expand:cubic-bezier(0, 0, .2, 1);--mdw-switch__transition-duration__expand:.5s;--scale-delay:var(--mdw-switch__transition-duration);--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__collapse);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__collapse);--mdw-switch__transition-delay__color:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__translate:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__scale:calc(var(--mdw-switch__transition-duration) / 2);transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:calc(var(--mdw-switch__transition-duration) / 2);transition-timing-function:var(--mdw-switch__transition-timing)}#track{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color;transition-timing-function:inherit}#outline{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color,color;transition-timing-function:inherit}#thumb{transition-delay:var(--mdw-switch__transition-delay__translate);transition-duration:inherit;transition-property:transform;transition-timing-function:inherit}#thumb-shape,.icon{transition-delay:var(--mdw-switch__transition-delay__scale),var(--mdw-switch__transition-delay__color),var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:transform,background-color,color;transition-timing-function:inherit}:host([icon]){--mdw-switch__transition-delay__translate:0s}.icon{transition-property:transform,opacity,color}:host([selected]){--mdw-switch__transition-delay__color:0s;--mdw-switch__transition-delay__scale:0s;--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__expand);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__expand)}:host([selected][pressed]){--mdw-switch__transition-delay__translate:0s}:host(:not([selected])){--mdw-switch__transition-delay__translate:0s}:host([pressed]:not([selected])){--mdw-switch__transition-delay__scale:0s}`.autoRegister("mdw-switch-icon");var xn=_.extend().mixin(w).mixin(K).mixin(N).mixin(ke).set({type:"checkbox",stateLayer:!0}).observe({icon:"string",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string"}).html`<mdw-switch-icon id=switch color={color} ink={ink} selected={checked} hovered={hoveredState} focused={focusedState} pressed={pressedState} disabled={disabledState} icon={icon} selected-icon={selectedIcon} unselected-icon={unselectedIcon} src={src} selected-src={selectedSrc} unselected-src={unselectedSrc}></mdw-switch-icon><slot id=slot></slot>`.recompose(({refs:{switch:t,state:e,control:i}})=>{t.append(e,i),i.setAttribute("role","switch")}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState||t.type==="touchend")return;let i,r,o,n;if("touches"in t){if(t.touches.length){let[h]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=h}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;if(!n)return;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;a>1?a=1:a<0&&(a=0);let c=this.refs.switch.dragValue;c==null&&(c=this.checked?1:0);let d=i-l/2,m=this.refs.switch.clientWidth-this.refs.switch.clientHeight,p=d/m,f=Math.max(Math.min(c+p,1),0)}}).childEvents({control:{"~pointermove":"onControlMouseOrTouch"}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);position:relative;display:inline-flex;align-items:center;gap:12px;vertical-align:middle;cursor:pointer}#control{cursor:inherit}#touch-target{z-index:0}#label{display:contents;cursor:pointer}#switch{--mdw-bg:inherit;--mdw-ink:inherit;flex:1;pointer-events:none}#state{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:40px;inline-size:100%;min-inline-size:40px;pointer-events:none;transform:translate(-50%) translateY(-50%);border-radius:50%}#state[touched]{--mdw-state__pressed-opacity:0}:host(:disabled){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}:host([internals-disabled]){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}#switch[disabled]{opacity:1}`.autoRegister("mdw-switch");var Oe=_.extend().mixin(C).mixin(N).mixin(Q).mixin(Ce).mixin(ee).mixin(L).define({stateTargetElement(){return this.refs.anchor}}).set({stateLayer:!0}).observe({active:"boolean",icon:"string",src:"string",ariaLabel:"string"}).methods({focus(t){this.refs.anchor.focus(t)},computeLabelMetrics(){let{slot:t,icon:e}=this.refs,i=t.clientWidth?t:e;return{width:i.clientWidth,left:i.offsetLeft}}}).expressions({anchorAriaControls({href:t}){return t!=null&&t.startsWith("#")?t.slice(1):null},anchorAriaSelected({active:t}){return`${t}`},anchorAriaDisabled({disabledState:t}){return`${t}`},anchorHref({href:t}){return t??"#"},iconIf({icon:t,src:e}){return t||e},iconVariation({active:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={iconIf} id=icon aria-hidden=true src={src} active={active} icon={icon} variation={iconVariation}></mdw-icon><slot id=slot></slot>`.recompose(({refs:{anchor:t,icon:e,slot:i,state:r}})=>{t.setAttribute("role","tab"),t.setAttribute("aria-label","{ariaLabel}"),t.setAttribute("aria-controls","{anchorAriaControls}"),t.setAttribute("aria-selected","{anchorAriaSelected}"),t.setAttribute("aria-disabled","{anchorAriaDisabled}"),t.setAttribute("disabled","{disabledState}"),t.append(e,i),r.setAttribute("state-disabled","focus")}).events({keydown(t){t.key===" "&&(t.preventDefault(),this.refs.anchor.click())}}).childEvents({anchor:{click(t){if(this.disabledState){t.preventDefault(),t.stopPropagation();return}let{href:e}=this;if(!e){t.preventDefault();return}if(e.startsWith("#")){let r=this.getRootNode().querySelector(e);if(!r)return;t.preventDefault();let o=Ie?"instant":"smooth";r.scrollTo({top:0,behavior:o}),r.offsetParent.scrollTo({left:r.offsetLeft,behavior:"smooth"})}}}}).css`:host{display:inline-flex;min-inline-size:64px;flex:none;cursor:pointer}#anchor{display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;block-size:100%;inline-size:100%;flex:1;padding-block:6px;padding-inline:12px;cursor:pointer;outline:0;color:inherit;text-decoration:inherit}#icon{padding-block:4px;font-size:24px}#anchor[disabled],#shape[disabled]{cursor:not-allowed;background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}:host([active]){color:rgb(var(--mdw-ink))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:var(--mdw-typescale__title-small__line-height);max-inline-size:100%;cursor:inherit;outline:0;opacity:var(--mdw-nav-item__anchor__opacity, 1);transform:translateY(var(--mdw-nav-item__offset-y,0));color:inherit;font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing);text-align:center;text-decoration:inherit;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition:opacity,color,transform .2s;will-change:opacity,transform}`.autoRegister("mdw-tab");var Ti=new Set,Ii;function Tt(t){return t.observe({pageIsRTL:{type:"boolean",value:document.documentElement.dir==="rtl"}}).on({connected(){Ii||(Ii=new MutationObserver(()=>{let e=document.documentElement.dir==="rtl";for(let i of Ti)i.pageIsRTL=e}),Ii.observe(document.documentElement,{attributeFilter:["dir"]})),Ti.add(this)},disconnected(){Ti.delete(this)}})}var vn=_.extend().mixin(w).mixin(re).mixin(B).mixin(Tt).mixin(C).mixin(at).observe({scrollable:"boolean"}).set({_tabContentRef:null,_tabContentScrollListener:null,_tabCollection:null,_tabMetrics:null,_isRTL:null}).define({tabContent:{get(){var t;return(t=this._tabContentRef)==null?void 0:t.deref()},set(t){var i;let e=(i=this._tabContentRef)==null?void 0:i.deref();e&&e.removeEventListener("scroll",this._tabContentScrollListener),t?(this._tabContentRef=new WeakRef(t),this._tabContentScrollListener=this.observeTabContent.bind(this),t.addEventListener("scroll",this._tabContentScrollListener),this.observeTabContent()):this._tabContentRef=null}}}).observe({tabContentId:"string",active:"boolean",secondary:"boolean",_indicatorStyle:{value:"opacity: 0"},color:{empty:"surface-primary"}}).define({tabs(){return this._tabCollection??=this.getElementsByTagName(Oe.elementName)}}).observe({_selectedIndex:{type:"integer",empty:-1,changedCallback(t,e){this.active=e!==-1}}}).define({kbdNavQuery(){return Oe.elementName},ariaOrientationDefault(){return"horizontal"},childTabItems(){return this.querySelectorAll(Oe.elementName)},tabMetrics(){return this._tabMetrics??=[...this.tabs].map((t,e)=>(t instanceof Oe||customElements.upgrade(t),{left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,label:t.computeLabelMetrics(),tab:t,index:e}))},selectedIndex:{get(){let t=0;for(let e of this.tabs){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.tabs)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedItem:{get(){for(let t of this.tabs)if(t.active)return t;return null},set(t){let e=0;for(let i of this.tabs){if(i===t)return this.selectedIndex=e,t;e++}return null}}}).methods({clearCache(){this._tabMetrics=null},searchForTabContent(){let{tabContentId:t,isConnected:e}=this;t&&e&&(this.tabContent=this.getRootNode().getElementById(t))},updateIndicatorByTab(t){t??=this.selectedItem??this.tabs.item(0);let e=this.tabMetrics.find(o=>o.tab===t);if(!e)return;let i=this.secondary?e.width:e.label.width,r=this.secondary?e.left:e.left+e.label.left;this._indicatorStyle=`--width: ${i}; --offset: ${r}px`},updateIndicator(t=!1){this.updateIndicatorByTab(),t||this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByPosition(t){let e=this.tabMetrics,i=Math.min(Math.max(t,0),1),r=(e.length-1)*i,o=Math.floor(r),n=Math.ceil(r),s=e[o];if(!s)return;let l=e[n],a,c,d;if(s===l)a=this.secondary?s.width:s.label.width,c=s.tab,d=s.center;else{let m=1-(r-o),p=1-m,f=m*(this.secondary?s.width:s.label.width),h=p*(this.secondary?l.width:l.label.width),u=m>p?o:n,g=l.center-s.center;a=f+h,c=this.tabMetrics[u].tab,d=s.center+g*p}if(!c.active){for(let m of this.tabs)m.active=m===c;this.active=!0}this._indicatorStyle=`--width: ${a}; --offset: ${d-a/2}px`,this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByIndex(t){this.updateIndicatorByTab(this.tabs.item(t??this._selectedIndex))},observeTabContent(){let t=this.tabContent;if(!t)return;let e=t.scrollLeft;this.pageIsRTL&&(e*=-1);let i=t.clientWidth,r=t.scrollWidth-i,o=r===0?0:e/r;this.updateIndicatorByPosition(o)},onResizeObserved(){this.clearCache(),this.updateIndicator()}}).set({ariaRole:"tablist"}).html`<slot id=slot ink={ink} type-style={typeStyle} scrollable={scrollable}></slot><div id=indicator aria-hidden=true style={_indicatorStyle} active={active} secondary={secondary}><div id=indicator-start class=indicator-piece></div><div id=indicator-center class=indicator-piece></div><div id=indicator-end class=indicator-piece></div></div>`.on({constructed(){document.addEventListener("DOMContentLoaded",()=>this.searchForTabContent(),{once:!0})},connected(){this.searchForTabContent()},pageIsRTLChanged(){this.clearCache(),this.updateIndicator()},activeChanged(t,e){e&&this.updateIndicator()},secondaryChanged(){this.updateIndicator()},_selectedIndexChanged(t,e){this.updateIndicatorByIndex(e)},tabContentIdChanged(){this.searchForTabContent()}}).events({"~click"({target:t}){t!==this&&t instanceof Oe}}).childEvents({slot:{slotchange(){this.clearCache(),this.updateIndicator(),this.searchForTabContent()}}}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface);position:relative;position:sticky;inset-block-start:0;inset-inline:0;display:grid;align-items:stretch;grid-auto-columns:minmax(auto,1fr);grid-auto-flow:column;justify-content:space-evenly;overflow-y:hidden;box-sizing:border-box;min-block-size:48px;inline-size:100%;flex:none;z-index:4;color:inherit;text-align:center;will-change:transform}:host(:where([color])){background-color:rgb(var(--mdw-bg))}#indicator{--corner:3;--width:24;--offset:0;--visibility:0;--transition-ratio:1;position:absolute;inset-block-end:0;inset-inline:0;overflow-y:clip;block-size:3px;inline-size:100%;pointer-events:none;opacity:1;transform:translateY(calc(100% * (1 - var(--visibility))));color:inherit;transition:transform .2s;will-change:transform}.indicator-piece{position:absolute;inset-block:0;opacity:1;transform-origin:0 0;z-index:1;background-color:currentColor;transition:transform;transition-duration:calc(.2s * var(--transition-ratio));will-change:transform}#indicator-start{left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset));border-top-left-radius:calc(1px * var(--corner))}#indicator-center{--precision:100;position:absolute;left:calc(1px * var(--corner));inline-size:calc(1px * var(--precision));transform:translate(var(--offset)) scaleX(calc((var(--width) - (2 * var(--corner)))/ var(--precision)))}#indicator-end{position:absolute;left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset)) translate(calc(-2px * var(--corner))) translate(calc(var(--width) * 1px));border-top-right-radius:calc(1px * var(--corner))}#indicator[active]{--visibility:1;color:rgb(var(--mdw-ink))}#indicator[secondary]{--corner:0}:host([scrollable]){display:flex;justify-content:initial}#slot[scrollable]{display:inline-flex;inline-size:0;flex:1;padding-inline:48px}`.autoRegister("mdw-tab-list");var Li=H.extend().mixin($).set({_ariaRole:"tabpanel"}).observe({active:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"false":"true")}},peeking:"boolean"}).css`:host{overflow-y:auto;scroll-snap-align:center;min-block-size:100%;max-block-size:100%;min-inline-size:100%;max-inline-size:100%;visibility:hidden;will-change:visibility}:host(:is([active],[peeking])){visibility:inherit!important}`.autoRegister("mdw-tab-panel");var yn=_.extend().mixin(B).set({_panelNodes:[],_panelMetrics:null}).observe({_selectedIndex:{type:"integer",empty:-1}}).define({panels(){return this._panelNodes},panelMetrics(){return this._panelMetrics??=[...this._panelNodes].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,index:e}))}}).define({selectedIndex:{get(){let t=0;for(let e of this.panels){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.panels)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedPanel:{get(){return this.panels.find(t=>t.active)},set(t){let e=this.panels.indexOf(t);return e===-1?null:(this.selectedIndex=e,t)}}}).html`<slot id=slot></slot>`.methods({onResizeObserved(){this._panelMetrics=null,this.updatePanels()},updatePanels(){let t=this.scrollLeft,e=this.clientWidth,i=t+e;for(let r of this.panelMetrics){let n=(t>r.right||i<r.left?0:t>=r.left?r.right-t:i-r.left)/e,s=this.panels[r.index];s.active=n>=.5,s.peeking=n>0&&n<.5}}}).childEvents({slot:{slotchange(t){let e=t.currentTarget;this._panelNodes=e.assignedElements().filter(i=>i.tagName===Li.elementName.toUpperCase()),this._panelMetrics=null,this.updatePanels()}}}).events({scroll:"updatePanels"}).css`:host{display:grid;grid-auto-columns:100%;grid-auto-flow:column;grid-template-columns:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;flex-grow:1;-webkit-scroll-snap-type-x:mandatory;scroll-snap-type-x:mandatory;-webkit-scroll-snap-points-x:repeat(100%);scroll-snap-points-x:repeat(100%);overscroll-behavior-x:none;will-change:transform}`.autoRegister("mdw-tab-content");var It={nullParser:String,value:""},kn=_.extend().mixin(w).mixin(N).mixin(ye).mixin(ze).mixin(B).set({supportsCSSLineHeightUnit:CSS.supports("height","1lh"),type:"textarea",_resizing:!1}).overrides({controlTagName:"textarea",controlVoidElement:!1}).observe({fixed:{type:"boolean"},minRows:{attr:"minrows",type:"integer",nullable:!1},maxRows:{attr:"maxrows",type:"integer",nullable:!1},_lineHeight:"string",cols:{type:"integer",empty:0},dirName:{attr:"dirname",...It},maxLength:{attr:"maxlength",type:"integer",empty:0},minLength:{attr:"minlength",type:"integer",empty:0},placeholder:It,rows:{type:"integer",empty:1},wrap:It,defaultValueAttr:{attr:"value",...It}}).define({_textarea(){return this.refs.control}}).define({defaultValue:{get(){return this._textarea.defaultValue},set(t){let e=this._textarea.defaultValue;this._textarea.defaultValue=t;let i=this._textarea.defaultValue;e!==i&&this.propChangedCallback("defaultValue",e,i),this.textContent=this._textarea.defaultValue}},textLength(){return this._textarea.textLength},select(){return this._textarea.select},selectionDirection:{get(){return this._textarea.selectionDirection},set(t){this._textarea.selectionDirection=t}},selectionStart:{get(){return this._textarea.selectionStart},set(t){this._textarea.selectionStart=t}},selectionEnd:{get(){return this._textarea.selectionEnd},set(t){this._textarea.selectionEnd=t}},setRangeText(){return this._textarea.setRangeText},setSelectionRange(){return this._textarea.setSelectionRange}}).methods({resize(){if(this._resizing)return;this._resizing=!0;let t=this._textarea,e=t.style.getPropertyValue("height");if(!this.supportsCSSLineHeightUnit){let{lineHeight:i}=window.getComputedStyle(t);this._lineHeight=i}if(this.minRows>1&&t.rows<this.minRows?t.rows=this.minRows:this.maxRows&&t.rows>this.maxRows&&(t.rows=this.maxRows),!this.fixed){for(;t.clientHeight<t.scrollHeight&&(e&&(t.style.removeProperty("height"),e=null),!(this.maxRows&&t.rows===this.maxRows));){let i=t.clientHeight;if(t.rows++,i===t.clientHeight){t.rows--;break}}for(;!e&&t.clientHeight>=t.scrollHeight&&!(t.rows===1||this.minRows>1&&t.rows===this.minRows);){let i=t.clientHeight;if(t.rows--,i===t.clientHeight||t.scrollHeight>t.clientHeight){t.rows++;break}}}t.selectionEnd===t.value.length&&(t.scrollTop=t.scrollHeight),this.rows=t.rows,this._resizing=!1},onResizeObserved(){this.matches(":active")||this.resize()}}).childEvents({slot:{slotchange({currentTarget:t}){let e=this.refs.control,i=e.defaultValue;e.replaceChildren(...t.assignedNodes().map(o=>o.cloneNode(!0)));let r=e.defaultValue;i!==r&&this.propChangedCallback("defaultValue",i,r)}},control:{input(){this.resize()}}}).recompose(({refs:{control:t}})=>{t.removeAttribute("placeholder"),t.setAttribute("rows","{rows}"),t.setAttribute("input-prefix","{inputPrefix}"),t.setAttribute("input-suffix","{inputSuffix}"),t.setAttribute("fixed","{fixed}"),t.setAttribute("icon","{icon}")}).on({defaultValueAttrChanged(t,e){this.defaultValue=e},defaultValueChanged(){this._value=this._textarea.value,this.resize()},_lineHeightChanged(t,e){this.refs.shape.style.setProperty("--line-height",e)},minRowsChanged(t,e){this.refs.shape.style.setProperty("--min-rows",`${e||"none"}`),this.resize()},maxRowsChanged(t,e){this.refs.shape.style.setProperty("--max-rows",`${e||"none"}`),this.resize()},rowsChanged(){this.resize()},_formResetChanged(t,e){e&&(this._textarea.value=this.defaultValue,this._value=this._textarea.value)},attrs:{cols:O("cols","control"),dirname:O("dirname","control"),minlength:O("minlength","control"),maxlength:O("maxlength","control"),placeholder:O("placeholder","control"),minrows:O("minrows","control"),maxrows:O("maxrows","control")}}).css`:host{display:inline-grid;grid-auto-flow:row;grid-template-rows:minmax(0,100%)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc((var(--mdw-text-field__ratio) * 8px) - 1px);--control__margin-bottom:1px}#shape{--max-rows:none;--line-height:var(--mdw-typescale__body-large__line-height);--expected-height:calc(var(--line-height) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom));max-block-size:100%;grid-row:1/1;padding:0}@supports (height:1lh){#shape{--line-height:1lh}}#slot{display:none}#control{-ms-overflow-style:-ms-autohiding-scrollbar;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:content-box;block-size:min-content;min-block-size:var(--line-height);max-block-size:calc(100% - (var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom)));inline-size:calc(100% - 32px)!important;padding-inline:16px;form-sizing:normal}#control[minrows]{min-block-size:calc((var(--min-rows) * var(--line-height)))}#control[maxrows]{max-block-size:calc((var(--max-rows) * var(--line-height)))}#icon{margin-inline-end:16px}#control[icon]{padding-inline-start:0}#control:is([icon],[input-prefix]){padding-inline-start:0}#control:is([trailing-icon],[input-suffix]){padding-inline-end:0}#suffix{padding-inline-end:16px}mdw-icon{align-self:flex-start;margin-block-start:calc((var(--expected-height) - var(--mdw-icon__size))/ 2)}#control[fixed]{resize:none}`.autoRegister("mdw-textarea");var Sn=ot.extend().set({_baseAriaLevel:7}).css`:host{font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__title-medium__font);letter-spacing:var(--mdw-typescale__title-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing)}`.autoRegister("mdw-title");})();
|
|
202
|
+
`),i.removeAttribute("mdw-if"),i.setAttribute("has-icon","{hasIcon}"),i.setAttribute("selected","{checked}"),r.setAttribute("selected","{checked}"),r.setAttribute("inner-segmented-button","{innerSegmentedButton}"),r.setAttribute("shape-start","{shapeStart}"),r.setAttribute("shape-end","{shapeEnd}"),o.setAttribute("role","option"),o.setAttribute("aria-checked",e(({type:l,checked:a})=>l==="checkbox"?`${!!a}`:null)),o.setAttribute("aria-selected",e(({type:l,checked:a})=>l==="checkbox"?null:`${!!a}`)),s.setAttribute("state-disabled","focus")}).css`:host{--mdw-shape__size:0;--mdw-ink:var(--mdw-color__on-surface);gap:8px;min-inline-size:24px;padding-inline-start:max(12px,calc(16px + (var(--mdw-density) * 2px)));padding-inline-end:max(20px,calc(24px + (var(--mdw-density) * 2px)));color:rgb(var(--mdw-ink))}:host(:first-of-type){--mdw-shape__size:var(--mdw-shape__full);--mdw-shape__size__top-end-size:0px;--mdw-shape__size__bottom-end-size:0px}:host(:last-of-type){--mdw-shape__size:var(--mdw-shape__full);--mdw-shape__size__top-start-size:0px;--mdw-shape__size__bottom-start-size:0px}#outline{inset-inline-end:-1px;z-index:-1}:host(:last-of-type) #outline{inset-inline-end:0}#outline[selected]{background-color:rgb(var(--mdw-bg))}#icons{position:relative;display:inline-flex}#icon{box-sizing:border-box;inline-size:0;opacity:1}#icon[has-icon]{inline-size:18px;opacity:1}#icon[selected]{inline-size:18px;opacity:0}#check-icon{position:absolute;inset:0;display:block;overflow:visible;block-size:100%;margin:0;opacity:0;font-size:18px}#check-icon[selected]{opacity:1;font-size:18px}#icon[disabled]{color:rgba(var(--mdw-color__on-surface),.38)}#outline[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),.12)}`.autoRegister("mdw-segmented-button");var _n=H.extend().mixin(oe).define({kbdNavQuery(){return Ai.elementName}}).set({_ariaRole:"listbox"}).childEvents({slot:{slotchange:"refreshTabIndexes"}}).css`:host{--mdw-bg:var(--mdw-color__secondary-container);--mdw-ink:var(--mdw-color__on-secondary-container);display:inline-flex;align-items:stretch;flex-direction:row;justify-content:initial;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;min-inline-size:100%;flex:none}:host([color]){background-color:transparent}#slot{display:grid;grid-auto-columns:1fr;grid-auto-flow:column;flex:none}`.on({constructed(){this.updateAriaProperty("ariaOrientation","horizontal")}}).autoRegister("mdw-segmented-button-group");var fn=_.extend().mixin(x).mixin(N).mixin(ye).mixin(ze).observe({trailingIcon:{empty:"arrow_drop_down"}}).overrides({controlTagName:"select",controlVoidElement:!1,type:"select-one"}).define({_select(){return this.refs.control},multiple:{value:!1},size:{value:1}}).html`<slot id=slot></slot>`.childEvents({slot:{slotchange(t){let e=this._select;e.replaceChildren(...t.currentTarget.assignedNodes().map(i=>i.cloneNode(!0))),this._value=e.value}}}).recompose(({template:t,refs:{slot:e,prefix:i,suffix:r,control:o}})=>{o.setAttribute("icon","{icon}"),t.append(e),i.remove(),r.remove()}).on({_formResetChanged(t,e){if(!e)return;let i=this.querySelector("option[selected]");this._select.value=(i==null?void 0:i.value)??""}}).css`#slot{display:none}#shape{padding:0;cursor:pointer}#shape[disabled]{cursor:not-allowed}#icon{position:absolute}#trailing-icon{position:absolute;inset-inline-end:16px}#control{padding-inline-start:16px;padding-inline-end:56px;accent-color:rgb(var(--mdw-ink));cursor:inherit}#control[icon]{margin-inline-start:40px;padding-inline-start:0}option{accent-color:rgb(var(--mdw-ink));min-block-size:var(--mdw-typescale__label-large__line-height);appearance:none;background-color:rgb(var(--mdw-color__surface))!important;border-radius:0;color:rgb(var(--mdw-color__on-surface))!important;font:var(--mdw-typescale__label-large__font);letter-spacing:var(--mdw-typescale__label-large__letter-spacing)}`.autoRegister("mdw-select");var Ar=!1;function At(){Ar||(xt('html[dir="rtl"]{--mdw-dir: -1;}'),Ar=!0)}At();function Ye(t,e=0){let i=Number.parseFloat(t);return Number.isNaN(i)?e:i}function Tr(t,e,i){let r=Ye(t),o=Ye(e),n=Ye(i,100);return(r-o)/(n-o)}var bn=_.extend().mixin(x).mixin(N).mixin(K).set({stateLayer:!0,type:"range"}).observe({ticks:"integer",_valueAsText:{nullable:!1},thumbLabel:{type:"string",reflect:"read"},_roundedValue:"float",_isHoveringThumb:"boolean",_lastDispatchedChangeValue:"string"}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState)return;if(t.type==="touchend"){this._isHoveringThumb=!1;return}let i,r,o,n,s="touches"in t;if(s){if(t.touches.length){let[f]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=f}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;if(a>1?a=1:a<0&&(a=0),n){this._isHoveringThumb=!0;let{min:f,max:h,step:u}=this,g=Ye(f),b=Ye(h,100),w=Ye(u,1);ce(this)&&(a=1-a);let k=a*(b-g)+g,S=Math.round(k/w)*w;if(w<1){let T=10**(-1*Math.floor(Math.log10(w)));S=Math.round(S*T)/T}if(this._roundedValue=S,this._valueAsText=S.toString(10),s&&yt){t.type==="touchstart"&&t.preventDefault();let{_input:A}=this;A.valueAsNumber!==S&&(A.valueAsNumber=S,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))}return}if(s)return;let c=Tr(this.value,this.min,this.max);ce(this)&&(c=1-c);let d=c*l,p=d-20,m=d+20;this._isHoveringThumb=i>=p&&i<=m},onLeaveEvent({currentTarget:t}){le(t)||(this._isHoveringThumb=!1)},onControlFinish(t){let e=t.currentTarget;e.disabled||(t.type==="click"&&t.preventDefault(),e.valueAsNumber=this._roundedValue,this._value=e.value,this._lastDispatchedChangeValue!==this._value&&(this._lastDispatchedChangeValue=this._value,this.dispatchEvent(new Event("change",{bubbles:!0}))))}}).events({blur:"onLeaveEvent",mouseout:"onLeaveEvent"}).childEvents({control:{"~mousedown":"onControlMouseOrTouch","~mousemove":"onControlMouseOrTouch","~mouseout":"onControlMouseOrTouch",touchstart:"onControlMouseOrTouch","~touchmove":"onControlMouseOrTouch","~touchleave":"onControlMouseOrTouch","~touchcancel":"onControlMouseOrTouch","~touchend":"onControlMouseOrTouch",touchend:"onControlFinish",click:"onControlFinish","~change"(t){this._lastDispatchedChangeValue===this._value&&t.stopPropagation(),this._lastDispatchedChangeValue=this._value}}}).expressions({computeTrackStyle({ticks:t,_valueAsText:e,min:i,max:r}){return[t?`--ticks:${t}`:null,`--value:${Tr(e,i,r)}`].filter(Boolean).join(";")||null},_thumbLabelHidden({_isHoveringThumb:t,focusedState:e}){return!t&&!e},_computedThumbLabel({thumbLabel:t,_valueAsText:e}){return t??e}}).html`<div id=track style={computeTrackStyle} aria-hidden=true disabled={disabledState}><div mdw-if={ticks} id=ticks></div><div id=track-active></div><div id=thumb-anchor><div id=thumb></div><div id=thumb-label hidden={_thumbLabelHidden} text={_computedThumbLabel}></div></div></div>`.recompose(({refs:{thumb:t,state:e,control:i}})=>{t.append(e),i.removeAttribute("aria-labelledby")}).on({valueChanged(t,e){this._valueAsText=e}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);display:block;vertical-align:middle;min-block-size:40px;min-inline-size:88px;background-color:transparent}:host,:host([color]){background-color:transparent}#control{inset:0;overflow:visible;block-size:100%;min-block-size:0;inline-size:100%;min-inline-size:0;appearance:none;cursor:pointer;transform:none;background-color:transparent}#control::-webkit-slider-runnable-track{margin-inline:-10px;appearance:none;background-color:transparent}@supports (-moz-appearance:none){#control{inset-inline:-10px;inline-size:calc(100% + 20px)}}#control::-moz-range-track{inline-size:calc(100% + 20px)!important;appearance:none}#control::-webkit-slider-thumb{display:block;block-size:20px;inline-size:20px;-webkit-appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%;box-shadow:none}#control::-moz-range-thumb{display:block;box-sizing:content-box;block-size:20px;inline-size:20px;border:none;appearance:none;cursor:inherit;transform:scale(2);background-color:transparent;border-radius:50%}#control[disabled]{cursor:not-allowed}#track{--value:.5;position:absolute;inset-block-start:50%;inset-inline:0;block-size:4px;margin-block-start:-2px;pointer-events:none;-webkit-user-select:none;user-select:none;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit;color:rgb(var(--mdw-bg))}#thumb{position:absolute;inset-block-start:-18px;inset-inline-start:-20px;display:flex;align-items:center;justify-content:center;overflow:hidden;block-size:40px;inline-size:40px;pointer-events:none;border-radius:50%;color:currentColor}#thumb:before{content:"";display:block;block-size:20px;inline-size:20px;background-color:currentColor;border-radius:50%;transition:color .1s,background-color .1s}#ticks:after,#ticks:before{content:"";position:absolute;inset:0;padding-inline:2px;background-clip:content-box;background-image:radial-gradient(circle at 1px,currentColor 0,currentColor 1px,transparent 0);background-position:-1px 50%;background-repeat:repeat-x;background-size:calc(100% / (var(--ticks,0) + 1)) 2px}#ticks:before{color:rgb(var(--mdw-color__on-surface-variant))}#ticks:after{padding-inline-end:calc(100% - (100% * var(--value)) + 10px);z-index:1;color:rgb(var(--mdw-ink));will-change:padding-inline-end}#track-active{position:absolute;inset:0;overflow:hidden;border-radius:99px}#track-active:before{content:"";position:absolute;inset:0;transform:scaleX(var(--value));transform-origin:calc(100% * calc(-.5 * var(--mdw-dir,1) + .5)) 0;background-color:currentColor;will-change:transform}#thumb-anchor{position:absolute;inset-inline-start:calc(var(--value) * 100%);display:flex;align-items:flex-start;flex-direction:column;z-index:24;will-change:inset-inline-start,left,right}#thumb-label{position:absolute;left:0;inset-block-end:14px;display:flex;align-items:center;justify-content:center;box-sizing:content-box;margin-block-end:6px;transform:translate(-50%) scale(1);transform-origin:50% 100%;font-weight:var(--mdw-typescale__label-medium__font-weight);line-height:var(--mdw-typescale__label-medium__line-height);font-family:var(--mdw-typescale__label-medium__font-family);letter-spacing:var(--mdw-typescale__label-medium__letter-spacing);transition:transform .2s;will-change:transform}#thumb-label:is([hidden],[text=""]){transform:translate(-50%) scale(0)}#thumb-label:before{content:attr(text);display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-block-size:28px;min-inline-size:28px;padding:4px;z-index:1;background-color:rgb(var(--mdw-bg));border-radius:14px;color:rgb(var(--mdw-ink))}#thumb-label:after{--x-start:4.1005px;--x-end: calc(100% - 4.1005px) ;--y: calc(100% - 9.9584px) ;content:"";position:absolute;inset:0;inset-block-end:-6px;clip-path:polygon(var(--x-start) var(--y),var(--x-end) var(--y),50% 100%,var(--x-start) var(--y));background-color:currentColor}#track[disabled]{--mdw-bg:var(--mdw-color__on-surface);cursor:not-allowed;opacity:.38;background-color:rgb(var(--mdw-color__on-surface),calc(.12 / .38))}`.autoRegister("mdw-slider");var gn=_.extend().mixin(x).mixin(C).mixin(G).mixin($).mixin(U).set({_ariaRole:"status",elevated:!0}).observe({open:"boolean",persistent:"boolean",action:"string",actionInk:{empty:"inverse-primary"},actionTypeStyle:{empty:"label-large"},closeButton:"boolean",closeIcon:{empty:"close"},closeInk:{empty:"inherit"},onaction:Z,ontoggle:Z}).methods({async close(){this.dispatchEvent(new Event("close",{cancelable:!0}))&&this.open&&(this.open=!1,window.getComputedStyle(this).transitionDuration!=="0s"&&await new Promise(t=>{this.addEventListener("transitionend",t,{once:!0})}))},show(){this.open=!0},update(t){this.textContent=t}}).html`<div id=content><slot id=slot></slot></div><mdw-button mdw-if={action} id=action class=button ink={actionInk} type-style={actionTypeStyle}>{action}</mdw-button><mdw-icon-button mdw-if={closeButton} id=close class=button icon={closeIcon} ink={closeInk}>Close</mdw-icon-button>`.childEvents({action:{"~click"(){this.dispatchEvent(new Event("action",{cancelable:!0}))&&this.close()}},close:{"~click"(){this.close()}}}).on({openChanged(){this.dispatchEvent(new Event("toggle"))}}).css`:host{--mdw-shape__size:var(--mdw-shape__small);--mdw-bg:var(--mdw-color__inverse-surface);--mdw-ink:var(--mdw-color__inverse-on-surface);--mdw-type__line-height:var(--mdw-typescale__body-medium__line-height);display:flex;align-items:center;grid-area:snackbar;padding-inline:16px;pointer-events:auto;filter:var(--mdw-elevation__drop-shadow__3);opacity:0;transform:translateY(25%) scaleY(.25);transform-origin:bottom center;visibility:hidden;z-index:22;background-color:rgb(var(--mdw-bg));color:rgb(var(--mdw-ink));font:var(--mdw-typescale__body-medium__font);letter-spacing:var(--mdw-typescale__body-medium__letter-spacing);transition:transform .2s,opacity .2s,visibility .2s}:host([action]){gap:8px;padding-inline-end:8px}:host([close-button]){gap:4px;padding-inline-end:4px}:host([open]){opacity:1;transform:scale(1);visibility:inherit}#content{display:flex;align-items:center;flex:1;padding-block:max(2px,calc(14px + (var(--mdw-density) * 2px)))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:calc(var(--mdw-type__line-height) * 2);text-align:start;text-overflow:ellipsis;text-transform:none;white-space:normal;word-break:break-word}@supports (width:1lh){#slot{max-block-size:2lh}}@supports (-webkit-line-clamp:1){#slot{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}}`.autoRegister("mdw-snackbar");var wn=_.extend().mixin(L).html`<slot id=slot></slot>`.css`:host{display:grid;align-items:flex-end;grid-template:"snackbar" auto/minmax(auto,60ch);justify-content:center;margin:16px;pointer-events:none}@media(min-width:648px){:host{grid-template-columns:minmax(auto,1fr);margin:24px}}@media(min-width:1248px){:host{grid-template-columns:minmax(auto,60ch);justify-content:flex-start}}#slot{pointer-events:auto}`.autoRegister("mdw-snackbar-container");At();var xn=_.extend().mixin(x).mixin(C).observe({selected:"boolean",icon:"string",errored:"boolean",disabled:"boolean",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string",hovered:"boolean",pressed:"boolean",focused:"boolean",dragValue:"float",color:{empty:"primary"}}).observe({checked:{type:"boolean",get({selected:t}){return t},set(t){this.selected=t}},_active({disabled:t,pressed:e,focused:i,hovered:r}){return!t&&(e||i||r)}}).observe({_thumbColor({color:t,_active:e}){return e?`${t}-container`:""},_iconInk({disabled:t,selected:e,color:i}){return e?t?"on-surface":`on-${i}-container`:"surface-container-highest"}}).expressions({hasIcon({icon:t,src:e,unselectedIcon:i,unselectedSrc:r}){return!!(t||e||i||r)},iconVariation({selected:t}){return t?"filled":null}}).html`<div id=track selected={checked} disabled={disabled}><div id=thumb selected={checked} pressed={pressed} disabled={disabled}><mdw-box block id=thumb-shape selected={checked} pressed={pressed} hovered={hovered} focused={focused} icon={hasIcon} color={_thumbColor} active={_active} ink={_thumbInk} disabled={disabled}></mdw-box><mdw-icon ink={_iconInk} class=icon id=icon src={src} selected={checked} icon={icon} variation={iconVariation}></mdw-icon><mdw-icon ink={_iconInk} class=icon id=selected-icon src={selectedIconSrc} selected={checked} icon={selectedIcon} variation=filled></mdw-icon><mdw-icon ink={_iconInk} class=icon id=unselected-icon src={unselectedIconSrc} selected={checked} icon={unselectedIcon}></mdw-icon><slot id=slot selected={checked}></slot></div></div>`.recompose(({refs:{outline:t}})=>{t.removeAttribute("mdw-if"),t.setAttribute("selected","{checked}"),t.setAttribute("errored","{errored}"),t.setAttribute("disabled","{disabled}")}).on({dragValueChanged(t,e){e==null?(this.refs.thumb.style.removeProperty("--mdw-switch__value"),this.refs.thumb.style.removeProperty("transition-duration")):(this.refs.thumb.style.setProperty("--mdw-switch__value",`${e}`),this.refs.thumb.style.setProperty("transition-duration","0s"))}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);--mdw-shape__size:var(--mdw-shape__full);--mdw-switch__value:0;position:relative;display:inline-block;vertical-align:middle;box-sizing:border-box;block-size:32px;inline-size:52px;container-type:inline-size;container-name:switch-icon}:host([selected]){--mdw-switch__value:1}:host([disabled]){opacity:.38}#track{position:absolute;inset:0;background-color:rgb(var(--mdw-color__surface-container-highest));border-radius:inherit}#track[selected]{background-color:rgb(var(--mdw-bg))}#track[disabled]{background-color:rgba(var(--mdw-color__surface-container-highest),calc(.12/.38))}#track[disabled][selected]{background-color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline{border-width:2px;z-index:1;color:rgb(var(--mdw-color__outline))}#outline:is([pressed],[focused]){color:rgb(var(--mdw-color__outline))}#outline[disabled]{color:rgba(var(--mdw-color__on-surface),calc(.12/.38))}#outline[selected]{color:transparent}#thumb{--thumb-color:var(--mdw-ink);position:absolute;inset-block:0;inset-inline-start:0;display:flex;align-items:center;justify-content:center;transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (52px - 100%)));border-radius:inherit;aspect-ratio:1/1}:dir(rtl) #thumb{--mdw-dir:-1}@supports (width:1cqw){#thumb{transform:translate(calc(var(--mdw-dir,1) * var(--mdw-switch__value) * (100cqw - 100%)))}}#slot{color:rgb(var(--mdw-color__on-surface))}#slot[selected]{color:rgb(var(--mdw-bg))}#thumb-shape{--mdw-shape__size:inherit;position:absolute;inset:2px;transform:scale(calc(16/28));z-index:0;border-radius:inherit}#thumb-shape[icon]{transform:scale(calc(24/28))}#thumb-shape:not([selected]){--mdw-bg:var(--mdw-color__outline);--mdw-ink:var(--mdw-color__surface-container-highest)}#thumb-shape[selected]{transform:scale(calc(24/28))}#thumb-shape[selected]:not([active]){--mdw-bg:var(--thumb-color)}#thumb-shape[pressed]:not([disabled]){transform:scale(1)}#thumb-shape[disabled]{background-color:rgb(var(--mdw-color__on-surface))}#thumb-shape[disabled][selected]{background-color:rgb(var(--mdw-color__surface))}.icon{position:absolute;top:50%;left:50%;opacity:0;transform:translate(-50%) translateY(-50%);font-size:16px}#icon,#unselected-icon{opacity:1}#unselected-icon[selected]{opacity:0}#selected-icon[selected]{opacity:1}#thumb[disabled]{color:rgb(var(--mdw-color__on-surface))}`.css`:host{--mdw-switch__transition-timing__collapse:cubic-bezier(.4, 0, 1, 1);--mdw-switch__transition-duration__collapse:375ms;--mdw-switch__transition-timing__expand:cubic-bezier(0, 0, .2, 1);--mdw-switch__transition-duration__expand:.5s;--scale-delay:var(--mdw-switch__transition-duration);--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__collapse);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__collapse);--mdw-switch__transition-delay__color:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__translate:calc(var(--mdw-switch__transition-duration) / 2);--mdw-switch__transition-delay__scale:calc(var(--mdw-switch__transition-duration) / 2);transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:calc(var(--mdw-switch__transition-duration) / 2);transition-timing-function:var(--mdw-switch__transition-timing)}#track{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color;transition-timing-function:inherit}#outline{transition-delay:var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:background-color,color;transition-timing-function:inherit}#thumb{transition-delay:var(--mdw-switch__transition-delay__translate);transition-duration:inherit;transition-property:transform;transition-timing-function:inherit}#thumb-shape,.icon{transition-delay:var(--mdw-switch__transition-delay__scale),var(--mdw-switch__transition-delay__color),var(--mdw-switch__transition-delay__color);transition-duration:inherit;transition-property:transform,background-color,color;transition-timing-function:inherit}:host([icon]){--mdw-switch__transition-delay__translate:0s}.icon{transition-property:transform,opacity,color}:host([selected]){--mdw-switch__transition-delay__color:0s;--mdw-switch__transition-delay__scale:0s;--mdw-switch__transition-duration:var(--mdw-switch__transition-duration__expand);--mdw-switch__transition-timing:var(--mdw-switch__transition-timing__expand)}:host([selected][pressed]){--mdw-switch__transition-delay__translate:0s}:host(:not([selected])){--mdw-switch__transition-delay__translate:0s}:host([pressed]:not([selected])){--mdw-switch__transition-delay__scale:0s}`.autoRegister("mdw-switch-icon");var vn=_.extend().mixin(x).mixin(K).mixin(N).mixin(ke).set({type:"checkbox",stateLayer:!0}).observe({icon:"string",selectedIcon:"string",unselectedIcon:"string",src:"string",selectedSrc:"string",unselectedSrc:"string"}).html`<mdw-switch-icon id=switch color={color} ink={ink} selected={checked} hovered={hoveredState} focused={focusedState} pressed={pressedState} disabled={disabledState} icon={icon} selected-icon={selectedIcon} unselected-icon={unselectedIcon} src={src} selected-src={selectedSrc} unselected-src={unselectedSrc}></mdw-switch-icon><slot id=slot></slot>`.recompose(({refs:{switch:t,state:e,control:i}})=>{t.append(e,i),i.setAttribute("role","switch")}).methods({onControlMouseOrTouch(t){let e=t.currentTarget;if(e.disabled||this.disabledState||t.type==="touchend")return;let i,r,o,n;if("touches"in t){if(t.touches.length){let[u]=t.touches;n=!0,{offsetX:i,clientX:r,pageX:o}=u}}else n=(t.buttons&1)===1&&(t.type==="mousedown"||e.matches(":active")),{offsetX:i,clientX:r,pageX:o}=t;if(!n)return;i==null&&(r??=o-window.scrollX,i=r-e.getBoundingClientRect().left);let{clientWidth:l}=e,a=i/l;a>1?a=1:a<0&&(a=0);let c=this.refs.switch,d=c.dragValue;d==null&&(d=this.checked?1:0);let p=i-l/2,m=c.clientWidth-c.clientHeight,f=p/m,h=Math.max(Math.min(d+f,1),0)}}).childEvents({control:{"~pointermove":"onControlMouseOrTouch"}}).css`:host{--mdw-ink:var(--mdw-color__on-primary);--mdw-bg:var(--mdw-color__primary);position:relative;display:inline-flex;align-items:center;gap:12px;vertical-align:middle;cursor:pointer}#control{cursor:inherit}#touch-target{z-index:0}#label{display:contents;cursor:pointer}#switch{--mdw-bg:inherit;--mdw-ink:inherit;flex:1;pointer-events:none}#state{position:absolute;top:50%;left:50%;block-size:100%;min-block-size:40px;inline-size:100%;min-inline-size:40px;pointer-events:none;transform:translate(-50%) translateY(-50%);border-radius:50%}#state[touched]{--mdw-state__pressed-opacity:0}:host(:disabled){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}:host([internals-disabled]){--mdw-ink:var(--mdw-color__on-surface);--mdw-bg:var(--mdw-color__surface);cursor:not-allowed;opacity:.38}#switch[disabled]{opacity:1}`.autoRegister("mdw-switch");var Oe=_.extend().mixin(C).mixin(N).mixin(Q).mixin(Ce).mixin(te).mixin(L).define({stateTargetElement(){return this.refs.anchor}}).set({stateLayer:!0}).observe({active:"boolean",icon:"string",src:"string",ariaLabel:"string"}).methods({focus(t){this.refs.anchor.focus(t)},computeLabelMetrics(){let{slot:t,icon:e}=this.refs,i=t.clientWidth?t:e;return{width:i.clientWidth,left:i.offsetLeft}}}).expressions({anchorAriaControls({href:t}){return t!=null&&t.startsWith("#")?t.slice(1):null},anchorAriaSelected({active:t}){return`${t}`},anchorAriaDisabled({disabledState:t}){return`${t}`},anchorHref({href:t}){return t??"#"},iconIf({icon:t,src:e}){return t||e},iconVariation({active:t}){return t?"filled":null}}).html`<mdw-icon mdw-if={iconIf} id=icon aria-hidden=true src={src} active={active} icon={icon} variation={iconVariation}></mdw-icon><slot id=slot></slot>`.recompose(({refs:{anchor:t,icon:e,slot:i,state:r}})=>{t.setAttribute("role","tab"),t.setAttribute("aria-label","{ariaLabel}"),t.setAttribute("aria-controls","{anchorAriaControls}"),t.setAttribute("aria-selected","{anchorAriaSelected}"),t.setAttribute("aria-disabled","{anchorAriaDisabled}"),t.setAttribute("disabled","{disabledState}"),t.append(e,i),r.setAttribute("state-disabled","focus")}).events({keydown(t){t.key===" "&&(t.preventDefault(),this.refs.anchor.click())}}).childEvents({anchor:{click(t){if(this.disabledState){t.preventDefault(),t.stopPropagation();return}let{href:e}=this;if(!e){t.preventDefault();return}if(e.startsWith("#")){let r=this.getRootNode().querySelector(e);if(!r)return;t.preventDefault();let o=Ie?"instant":"smooth";r.scrollTo({top:0,behavior:o}),r.offsetParent.scrollTo({left:r.offsetLeft,behavior:"smooth"})}}}}).css`:host{display:inline-flex;min-inline-size:64px;flex:none;cursor:pointer}#anchor{display:flex;align-items:center;flex-direction:column;justify-content:center;box-sizing:border-box;block-size:100%;inline-size:100%;flex:1;padding-block:6px;padding-inline:12px;cursor:pointer;outline:0;color:inherit;text-decoration:inherit}#icon{padding-block:4px;font-size:24px}#anchor[disabled],#shape[disabled]{cursor:not-allowed;background-color:rgba(var(--mdw-color__on-surface),.12);color:rgba(var(--mdw-color__on-surface),.38)}:host([active]){color:rgb(var(--mdw-ink))}#slot{display:block;overflow-x:hidden;overflow-y:hidden;max-block-size:var(--mdw-typescale__title-small__line-height);max-inline-size:100%;cursor:inherit;outline:0;opacity:var(--mdw-nav-item__anchor__opacity, 1);transform:translateY(var(--mdw-nav-item__offset-y,0));color:inherit;font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing);text-align:center;text-decoration:inherit;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:break-word;transition:opacity,color,transform .2s;will-change:opacity,transform}`.autoRegister("mdw-tab");var Ti=new Set,Ii;function Tt(t){return t.observe({pageIsRTL:{type:"boolean",value:document.documentElement.dir==="rtl"}}).on({connected(){Ii||(Ii=new MutationObserver(()=>{let e=document.documentElement.dir==="rtl";for(let i of Ti)i.pageIsRTL=e}),Ii.observe(document.documentElement,{attributeFilter:["dir"]})),Ti.add(this)},disconnected(){Ti.delete(this)}})}var yn=_.extend().mixin(x).mixin(oe).mixin(B).mixin(Tt).mixin(C).mixin(at).observe({scrollable:"boolean"}).set({_tabContentRef:null,_tabContentScrollListener:null,_tabCollection:null,_tabMetrics:null,_isRTL:null}).define({tabContent:{get(){var t;return(t=this._tabContentRef)==null?void 0:t.deref()},set(t){var i;let e=(i=this._tabContentRef)==null?void 0:i.deref();e&&e.removeEventListener("scroll",this._tabContentScrollListener),t?(this._tabContentRef=new WeakRef(t),this._tabContentScrollListener=this.observeTabContent.bind(this),t.addEventListener("scroll",this._tabContentScrollListener),this.observeTabContent()):this._tabContentRef=null}}}).observe({tabContentId:"string",active:"boolean",secondary:"boolean",_indicatorStyle:{value:"opacity: 0"},color:{empty:"surface-primary"}}).define({tabs(){return this._tabCollection??=this.getElementsByTagName(Oe.elementName)}}).observe({_selectedIndex:{type:"integer",empty:-1,changedCallback(t,e){this.active=e!==-1}}}).define({kbdNavQuery(){return Oe.elementName},ariaOrientationDefault(){return"horizontal"},childTabItems(){return this.querySelectorAll(Oe.elementName)},tabMetrics(){return this._tabMetrics??=[...this.tabs].map((t,e)=>(t instanceof Oe||customElements.upgrade(t),{left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,label:t.computeLabelMetrics(),tab:t,index:e}))},selectedIndex:{get(){let t=0;for(let e of this.tabs){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.tabs)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedItem:{get(){for(let t of this.tabs)if(t.active)return t;return null},set(t){let e=0;for(let i of this.tabs){if(i===t)return this.selectedIndex=e,t;e++}return null}}}).methods({clearCache(){this._tabMetrics=null},searchForTabContent(){let{tabContentId:t,isConnected:e}=this;if(!t||!e)return;let i=this.getRootNode();this.tabContent=i.getElementById(t)},updateIndicatorByTab(t){t??=this.selectedItem??this.tabs.item(0);let e=this.tabMetrics.find(o=>o.tab===t);if(!e)return;let i=this.secondary?e.width:e.label.width,r=this.secondary?e.left:e.left+e.label.left;this._indicatorStyle=`--width: ${i}; --offset: ${r}px`},updateIndicator(t=!1){this.updateIndicatorByTab(),t||this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByPosition(t){let e=this.tabMetrics,i=Math.min(Math.max(t,0),1),r=(e.length-1)*i,o=Math.floor(r),n=Math.ceil(r),s=e[o];if(!s)return;let l=e[n],a,c,d;if(s===l)a=this.secondary?s.width:s.label.width,c=s.tab,d=s.center;else{let p=1-(r-o),m=1-p,f=p*(this.secondary?s.width:s.label.width),h=m*(this.secondary?l.width:l.label.width),u=p>m?o:n,g=l.center-s.center;a=f+h,c=this.tabMetrics[u].tab,d=s.center+g*m}if(!c.active){for(let p of this.tabs)p.active=p===c;this.active=!0}this._indicatorStyle=`--width: ${a}; --offset: ${d-a/2}px`,this.refs.indicator.style.setProperty("--transition-ratio","0")},updateIndicatorByIndex(t){this.updateIndicatorByTab(this.tabs.item(t??this._selectedIndex))},observeTabContent(){let t=this.tabContent;if(!t)return;let e=t.scrollLeft;this.pageIsRTL&&(e*=-1);let i=t.clientWidth,r=t.scrollWidth-i,o=r===0?0:e/r;this.updateIndicatorByPosition(o)},onResizeObserved(){this.clearCache(),this.updateIndicator()}}).set({ariaRole:"tablist"}).html`<slot id=slot ink={ink} type-style={typeStyle} scrollable={scrollable}></slot><div id=indicator aria-hidden=true style={_indicatorStyle} active={active} secondary={secondary}><div id=indicator-start class=indicator-piece></div><div id=indicator-center class=indicator-piece></div><div id=indicator-end class=indicator-piece></div></div>`.on({constructed(){document.addEventListener("DOMContentLoaded",()=>this.searchForTabContent(),{once:!0})},connected(){this.searchForTabContent()},pageIsRTLChanged(){this.clearCache(),this.updateIndicator()},activeChanged(t,e){e&&this.updateIndicator()},secondaryChanged(){this.updateIndicator()},_selectedIndexChanged(t,e){this.updateIndicatorByIndex(e)},tabContentIdChanged(){this.searchForTabContent()}}).events({"~click"({target:t}){t!==this&&t instanceof Oe}}).childEvents({slot:{slotchange(){this.clearCache(),this.updateIndicator(),this.searchForTabContent()}}}).css`:host{--mdw-ink:var(--mdw-color__primary);--mdw-bg:var(--mdw-color__surface);position:relative;inset-block-start:0;inset-inline:0;display:grid;align-items:stretch;grid-auto-columns:minmax(auto,1fr);grid-auto-flow:column;justify-content:space-evenly;overflow-y:hidden;box-sizing:border-box;min-block-size:48px;inline-size:100%;flex:none;z-index:4;color:inherit;text-align:center;will-change:transform}:host(:where([color])){background-color:rgb(var(--mdw-bg))}#indicator{--corner:3;--width:24;--offset:0;--visibility:0;--transition-ratio:1;position:absolute;inset-block-end:0;inset-inline:0;overflow-y:clip;block-size:3px;inline-size:100%;pointer-events:none;opacity:1;transform:translateY(calc(100% * (1 - var(--visibility))));color:inherit;transition:transform .2s;will-change:transform}.indicator-piece{position:absolute;inset-block:0;opacity:1;transform-origin:0 0;z-index:1;background-color:currentColor;transition:transform;transition-duration:calc(.2s * var(--transition-ratio));will-change:transform}#indicator-start{left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset));border-top-left-radius:calc(1px * var(--corner))}#indicator-center{--precision:100;position:absolute;left:calc(1px * var(--corner));inline-size:calc(1px * var(--precision));transform:translate(var(--offset)) scaleX(calc((var(--width) - (2 * var(--corner)))/ var(--precision)))}#indicator-end{position:absolute;left:0;inline-size:calc(2 * 1px * var(--corner));transform:translate(var(--offset)) translate(calc(-2px * var(--corner))) translate(calc(var(--width) * 1px));border-top-right-radius:calc(1px * var(--corner))}#indicator[active]{--visibility:1;color:rgb(var(--mdw-ink))}#indicator[secondary]{--corner:0}:host([scrollable]){display:flex;justify-content:initial}#slot[scrollable]{display:inline-flex;inline-size:0;flex:1;padding-inline:48px}`.autoRegister("mdw-tab-list");var Li=H.extend().mixin($).set({_ariaRole:"tabpanel"}).observe({active:{type:"boolean",changedCallback(t,e){this.updateAriaProperty("ariaHidden",e?"false":"true")}},peeking:"boolean"}).css`:host{overflow-y:auto;scroll-snap-align:center;min-block-size:100%;max-block-size:100%;min-inline-size:100%;max-inline-size:100%;visibility:hidden;will-change:visibility}:host(:is([active],[peeking])){visibility:inherit!important}`.autoRegister("mdw-tab-panel");var kn=_.extend().mixin(B).set({_panelNodes:[],_panelMetrics:null}).observe({_selectedIndex:{type:"integer",empty:-1}}).define({panels(){return this._panelNodes},panelMetrics(){return this._panelMetrics??=[...this._panelNodes].map((t,e)=>({left:t.offsetLeft,width:t.offsetWidth,right:t.offsetLeft+t.offsetWidth,center:t.offsetLeft+t.offsetWidth/2,index:e}))}}).define({selectedIndex:{get(){let t=0;for(let e of this.panels){if(e.active)return t;t++}return-1},set(t){let e=0;for(let i of this.panels)e===t?(i.active=!0,this._selectedIndex=e):i.active=!1,e++}}}).define({selectedPanel:{get(){return this.panels.find(t=>t.active)},set(t){let e=this.panels.indexOf(t);return e===-1?null:(this.selectedIndex=e,t)}}}).html`<slot id=slot></slot>`.methods({onResizeObserved(){this._panelMetrics=null,this.updatePanels()},updatePanels(){let t=this.scrollLeft,e=this.clientWidth,i=t+e;for(let r of this.panelMetrics){let n=(t>r.right||i<r.left?0:t>=r.left?r.right-t:i-r.left)/e,s=this.panels[r.index];s.active=n>=.5,s.peeking=n>0&&n<.5}}}).childEvents({slot:{slotchange(t){let e=t.currentTarget;this._panelNodes=e.assignedElements().filter(i=>i.tagName===Li.elementName.toUpperCase()),this._panelMetrics=null,this.updatePanels()}}}).events({scroll:"updatePanels"}).css`:host{display:grid;grid-auto-columns:100%;grid-auto-flow:column;grid-template-columns:100%;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;flex-grow:1;-webkit-scroll-snap-type-x:mandatory;scroll-snap-type-x:mandatory;-webkit-scroll-snap-points-x:repeat(100%);scroll-snap-points-x:repeat(100%);overscroll-behavior-x:none;will-change:transform}`.autoRegister("mdw-tab-content");var It={nullParser:String,value:""},Sn=_.extend().mixin(x).mixin(N).mixin(ye).mixin(ze).mixin(B).set({supportsCSSLineHeightUnit:CSS.supports("height","1lh"),type:"textarea",_resizing:!1}).overrides({controlTagName:"textarea",controlVoidElement:!1}).observe({fixed:{type:"boolean"},minRows:{attr:"minrows",type:"integer",nullable:!1},maxRows:{attr:"maxrows",type:"integer",nullable:!1},_lineHeight:"string",cols:{type:"integer",empty:0},dirName:{attr:"dirname",...It},maxLength:{attr:"maxlength",type:"integer",empty:0},minLength:{attr:"minlength",type:"integer",empty:0},placeholder:It,rows:{type:"integer",empty:1},wrap:It,defaultValueAttr:{attr:"value",...It}}).define({_textarea(){return this.refs.control}}).define({defaultValue:{get(){return this._textarea.defaultValue},set(t){let e=this._textarea.defaultValue;this._textarea.defaultValue=t;let i=this._textarea.defaultValue;e!==i&&this.propChangedCallback("defaultValue",e,i),this.textContent=this._textarea.defaultValue}},textLength(){return this._textarea.textLength},select(){return this._textarea.select},selectionDirection:{get(){return this._textarea.selectionDirection},set(t){this._textarea.selectionDirection=t}},selectionStart:{get(){return this._textarea.selectionStart},set(t){this._textarea.selectionStart=t}},selectionEnd:{get(){return this._textarea.selectionEnd},set(t){this._textarea.selectionEnd=t}},setRangeText(){return this._textarea.setRangeText},setSelectionRange(){return this._textarea.setSelectionRange}}).methods({resize(){if(this._resizing)return;this._resizing=!0;let t=this._textarea,e=t.style.getPropertyValue("height");if(!this.supportsCSSLineHeightUnit){let{lineHeight:i}=window.getComputedStyle(t);this._lineHeight=i}if(this.minRows>1&&t.rows<this.minRows?t.rows=this.minRows:this.maxRows&&t.rows>this.maxRows&&(t.rows=this.maxRows),!this.fixed){for(;t.clientHeight<t.scrollHeight&&(e&&(t.style.removeProperty("height"),e=null),!(this.maxRows&&t.rows===this.maxRows));){let i=t.clientHeight;if(t.rows++,i===t.clientHeight){t.rows--;break}}for(;!e&&t.clientHeight>=t.scrollHeight&&!(t.rows===1||this.minRows>1&&t.rows===this.minRows);){let i=t.clientHeight;if(t.rows--,i===t.clientHeight||t.scrollHeight>t.clientHeight){t.rows++;break}}}t.selectionEnd===t.value.length&&(t.scrollTop=t.scrollHeight),this.rows=t.rows,this._resizing=!1},onResizeObserved(){this.matches(":active")||this.resize()}}).childEvents({slot:{slotchange({currentTarget:t}){let e=this.refs.control,i=e.defaultValue;e.replaceChildren(...t.assignedNodes().map(o=>o.cloneNode(!0)));let r=e.defaultValue;i!==r&&this.propChangedCallback("defaultValue",i,r)}},control:{input(){this.resize()}}}).recompose(({refs:{control:t}})=>{t.removeAttribute("placeholder"),t.setAttribute("rows","{rows}"),t.setAttribute("input-prefix","{inputPrefix}"),t.setAttribute("input-suffix","{inputSuffix}"),t.setAttribute("fixed","{fixed}"),t.setAttribute("icon","{icon}")}).on({defaultValueAttrChanged(t,e){this.defaultValue=e},defaultValueChanged(){this._value=this._textarea.value,this.resize()},_lineHeightChanged(t,e){this.refs.shape.style.setProperty("--line-height",e)},minRowsChanged(t,e){this.refs.shape.style.setProperty("--min-rows",`${e||"none"}`),this.resize()},maxRowsChanged(t,e){this.refs.shape.style.setProperty("--max-rows",`${e||"none"}`),this.resize()},rowsChanged(){this.resize()},_formResetChanged(t,e){e&&(this._textarea.value=this.defaultValue,this._value=this._textarea.value)},attrs:{cols:O("cols","control"),dirname:O("dirname","control"),minlength:O("minlength","control"),maxlength:O("maxlength","control"),placeholder:O("placeholder","control"),minrows:O("minrows","control"),maxrows:O("maxrows","control")}}).css`:host{display:inline-grid;grid-auto-flow:row;grid-template-rows:minmax(0,100%)}:host(:is([filled][label])){--control__margin-top:calc((var(--mdw-text-field__ratio) * 8px) + var(--mdw-typescale__body-small__line-height));--control__padding-top:0px;--control__padding-bottom:calc((var(--mdw-text-field__ratio) * 8px) - 1px);--control__margin-bottom:1px}#shape{--max-rows:none;--line-height:var(--mdw-typescale__body-large__line-height);--expected-height:calc(var(--line-height) + var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom));max-block-size:100%;grid-row:1/1;padding:0}@supports (height:1lh){#shape{--line-height:1lh}}#slot{display:none}#control{-ms-overflow-style:-ms-autohiding-scrollbar;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:content-box;block-size:min-content;min-block-size:var(--line-height);max-block-size:calc(100% - (var(--control__margin-top) + var(--control__padding-top) + var(--control__padding-bottom) + var(--control__margin-bottom)));inline-size:calc(100% - 32px)!important;padding-inline:16px;form-sizing:normal}#control[minrows]{min-block-size:calc((var(--min-rows) * var(--line-height)))}#control[maxrows]{max-block-size:calc((var(--max-rows) * var(--line-height)))}#icon{margin-inline-end:16px}#control[icon]{padding-inline-start:0}#control:is([icon],[input-prefix]){padding-inline-start:0}#control:is([trailing-icon],[input-suffix]){padding-inline-end:0}#suffix{padding-inline-end:16px}mdw-icon{align-self:flex-start;margin-block-start:calc((var(--expected-height) - var(--mdw-icon__size))/ 2)}#control[fixed]{resize:none}`.autoRegister("mdw-textarea");var zn=ot.extend().set({_baseAriaLevel:7}).css`:host{font:var(--mdw-typescale__title-large__font);letter-spacing:var(--mdw-typescale__title-large__letter-spacing)}:host([size=medium]){font:var(--mdw-typescale__title-medium__font);letter-spacing:var(--mdw-typescale__title-medium__letter-spacing)}:host([size=small]){font:var(--mdw-typescale__title-small__font);letter-spacing:var(--mdw-typescale__title-small__letter-spacing)}`.autoRegister("mdw-title");})();
|
|
203
203
|
/*! For license information please see index.min.js.LEGAL.txt */
|
|
204
204
|
//# sourceMappingURL=index.min.js.map
|