@m3e/web 2.1.3 → 2.2.1

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.
Files changed (210) hide show
  1. package/README.md +5 -2
  2. package/dist/all.js +2916 -391
  3. package/dist/all.js.map +1 -1
  4. package/dist/all.min.js +77 -41
  5. package/dist/all.min.js.map +1 -1
  6. package/dist/app-bar.js +14 -7
  7. package/dist/app-bar.js.map +1 -1
  8. package/dist/app-bar.min.js +1 -1
  9. package/dist/app-bar.min.js.map +1 -1
  10. package/dist/autocomplete.js +59 -23
  11. package/dist/autocomplete.js.map +1 -1
  12. package/dist/autocomplete.min.js +1 -1
  13. package/dist/autocomplete.min.js.map +1 -1
  14. package/dist/bottom-sheet.js +8 -27
  15. package/dist/bottom-sheet.js.map +1 -1
  16. package/dist/bottom-sheet.min.js +1 -1
  17. package/dist/bottom-sheet.min.js.map +1 -1
  18. package/dist/calendar.js +1082 -0
  19. package/dist/calendar.js.map +1 -0
  20. package/dist/calendar.min.js +43 -0
  21. package/dist/calendar.min.js.map +1 -0
  22. package/dist/chips.js +2 -6
  23. package/dist/chips.js.map +1 -1
  24. package/dist/chips.min.js +1 -1
  25. package/dist/chips.min.js.map +1 -1
  26. package/dist/core-a11y.js +23 -9
  27. package/dist/core-a11y.js.map +1 -1
  28. package/dist/core-a11y.min.js +4 -4
  29. package/dist/core-a11y.min.js.map +1 -1
  30. package/dist/core-anchoring.js +135 -15
  31. package/dist/core-anchoring.js.map +1 -1
  32. package/dist/core-anchoring.min.js +1 -1
  33. package/dist/core-anchoring.min.js.map +1 -1
  34. package/dist/core.js +101 -1
  35. package/dist/core.js.map +1 -1
  36. package/dist/core.min.js +1 -1
  37. package/dist/core.min.js.map +1 -1
  38. package/dist/css-custom-data.json +1146 -646
  39. package/dist/custom-elements.json +31433 -26898
  40. package/dist/datepicker.js +573 -0
  41. package/dist/datepicker.js.map +1 -0
  42. package/dist/datepicker.min.js +7 -0
  43. package/dist/datepicker.min.js.map +1 -0
  44. package/dist/drawer-container.js +10 -4
  45. package/dist/drawer-container.js.map +1 -1
  46. package/dist/drawer-container.min.js +1 -1
  47. package/dist/drawer-container.min.js.map +1 -1
  48. package/dist/fab-menu.js +1 -1
  49. package/dist/fab-menu.js.map +1 -1
  50. package/dist/fab-menu.min.js +1 -1
  51. package/dist/fab-menu.min.js.map +1 -1
  52. package/dist/form-field.js +2 -6
  53. package/dist/form-field.js.map +1 -1
  54. package/dist/form-field.min.js +3 -3
  55. package/dist/form-field.min.js.map +1 -1
  56. package/dist/html-custom-data.json +553 -187
  57. package/dist/menu.js +3 -7
  58. package/dist/menu.js.map +1 -1
  59. package/dist/menu.min.js +1 -1
  60. package/dist/menu.min.js.map +1 -1
  61. package/dist/nav-bar.js +17 -7
  62. package/dist/nav-bar.js.map +1 -1
  63. package/dist/nav-bar.min.js +1 -1
  64. package/dist/nav-bar.min.js.map +1 -1
  65. package/dist/nav-menu.js +3 -11
  66. package/dist/nav-menu.js.map +1 -1
  67. package/dist/nav-menu.min.js +1 -1
  68. package/dist/nav-menu.min.js.map +1 -1
  69. package/dist/nav-rail.js +2 -6
  70. package/dist/nav-rail.js.map +1 -1
  71. package/dist/nav-rail.min.js +1 -1
  72. package/dist/nav-rail.min.js.map +1 -1
  73. package/dist/option.js +4 -8
  74. package/dist/option.js.map +1 -1
  75. package/dist/option.min.js +1 -1
  76. package/dist/option.min.js.map +1 -1
  77. package/dist/paginator.js.map +1 -1
  78. package/dist/paginator.min.js.map +1 -1
  79. package/dist/search.js +821 -0
  80. package/dist/search.js.map +1 -0
  81. package/dist/search.min.js +7 -0
  82. package/dist/search.min.js.map +1 -0
  83. package/dist/segmented-button.js +2 -2
  84. package/dist/segmented-button.js.map +1 -1
  85. package/dist/segmented-button.min.js.map +1 -1
  86. package/dist/select.js +4 -15
  87. package/dist/select.js.map +1 -1
  88. package/dist/select.min.js +1 -1
  89. package/dist/select.min.js.map +1 -1
  90. package/dist/snackbar.js +2 -6
  91. package/dist/snackbar.js.map +1 -1
  92. package/dist/snackbar.min.js +1 -1
  93. package/dist/snackbar.min.js.map +1 -1
  94. package/dist/split-button.js +1 -1
  95. package/dist/split-button.js.map +1 -1
  96. package/dist/split-button.min.js.map +1 -1
  97. package/dist/src/all.d.ts +3 -0
  98. package/dist/src/all.d.ts.map +1 -1
  99. package/dist/src/app-bar/AppBarElement.d.ts +6 -4
  100. package/dist/src/app-bar/AppBarElement.d.ts.map +1 -1
  101. package/dist/src/autocomplete/AutocompleteElement.d.ts +7 -2
  102. package/dist/src/autocomplete/AutocompleteElement.d.ts.map +1 -1
  103. package/dist/src/autocomplete/AutocompleteQueryEventDetail.d.ts +12 -0
  104. package/dist/src/autocomplete/AutocompleteQueryEventDetail.d.ts.map +1 -0
  105. package/dist/src/autocomplete/QueryEventDetail.d.ts +3 -8
  106. package/dist/src/autocomplete/QueryEventDetail.d.ts.map +1 -1
  107. package/dist/src/autocomplete/index.d.ts +1 -0
  108. package/dist/src/autocomplete/index.d.ts.map +1 -1
  109. package/dist/src/bottom-sheet/BottomSheetElement.d.ts.map +1 -1
  110. package/dist/src/calendar/CalendarElement.d.ts +213 -0
  111. package/dist/src/calendar/CalendarElement.d.ts.map +1 -0
  112. package/dist/src/calendar/CalendarView.d.ts +3 -0
  113. package/dist/src/calendar/CalendarView.d.ts.map +1 -0
  114. package/dist/src/calendar/CalendarViewElementBase.d.ts +28 -0
  115. package/dist/src/calendar/CalendarViewElementBase.d.ts.map +1 -0
  116. package/dist/src/calendar/MonthViewElement.d.ts +36 -0
  117. package/dist/src/calendar/MonthViewElement.d.ts.map +1 -0
  118. package/dist/src/calendar/MultiYearViewElement.d.ts +27 -0
  119. package/dist/src/calendar/MultiYearViewElement.d.ts.map +1 -0
  120. package/dist/src/calendar/YearViewElement.d.ts +27 -0
  121. package/dist/src/calendar/YearViewElement.d.ts.map +1 -0
  122. package/dist/src/calendar/index.d.ts +7 -0
  123. package/dist/src/calendar/index.d.ts.map +1 -0
  124. package/dist/src/calendar/utils.d.ts +24 -0
  125. package/dist/src/calendar/utils.d.ts.map +1 -0
  126. package/dist/src/chips/InputChipSetElement.d.ts.map +1 -1
  127. package/dist/src/core/a11y/FocusTrapElement.d.ts.map +1 -1
  128. package/dist/src/core/a11y/InteractivityChecker.d.ts.map +1 -1
  129. package/dist/src/core/anchoring/AnchorOptions.d.ts +1 -1
  130. package/dist/src/core/anchoring/AnchorOptions.d.ts.map +1 -1
  131. package/dist/src/core/anchoring/FloatingPanelElement.d.ts +18 -3
  132. package/dist/src/core/anchoring/FloatingPanelElement.d.ts.map +1 -1
  133. package/dist/src/core/anchoring/positionAnchor.d.ts.map +1 -1
  134. package/dist/src/core/shared/controllers/InertController.d.ts +19 -0
  135. package/dist/src/core/shared/controllers/InertController.d.ts.map +1 -0
  136. package/dist/src/core/shared/controllers/index.d.ts +1 -0
  137. package/dist/src/core/shared/controllers/index.d.ts.map +1 -1
  138. package/dist/src/core/shared/converters/dateConverter.d.ts +4 -0
  139. package/dist/src/core/shared/converters/dateConverter.d.ts.map +1 -0
  140. package/dist/src/core/shared/converters/index.d.ts +1 -0
  141. package/dist/src/core/shared/converters/index.d.ts.map +1 -1
  142. package/dist/src/core/shared/utils/index.d.ts +1 -0
  143. package/dist/src/core/shared/utils/index.d.ts.map +1 -1
  144. package/dist/src/core/shared/utils/registerStyleSheet.d.ts +7 -0
  145. package/dist/src/core/shared/utils/registerStyleSheet.d.ts.map +1 -0
  146. package/dist/src/datepicker/DatepickerElement.d.ts +239 -0
  147. package/dist/src/datepicker/DatepickerElement.d.ts.map +1 -0
  148. package/dist/src/datepicker/DatepickerToggleElement.d.ts +21 -0
  149. package/dist/src/datepicker/DatepickerToggleElement.d.ts.map +1 -0
  150. package/dist/src/datepicker/DatepickerVariant.d.ts +3 -0
  151. package/dist/src/datepicker/DatepickerVariant.d.ts.map +1 -0
  152. package/dist/src/datepicker/index.d.ts +4 -0
  153. package/dist/src/datepicker/index.d.ts.map +1 -0
  154. package/dist/src/drawer-container/DrawerContainerElement.d.ts +2 -2
  155. package/dist/src/drawer-container/DrawerContainerElement.d.ts.map +1 -1
  156. package/dist/src/form-field/FormFieldElement.d.ts.map +1 -1
  157. package/dist/src/menu/MenuElement.d.ts.map +1 -1
  158. package/dist/src/nav-bar/NavBarElement.d.ts +3 -1
  159. package/dist/src/nav-bar/NavBarElement.d.ts.map +1 -1
  160. package/dist/src/nav-menu/NavMenuElement.d.ts.map +1 -1
  161. package/dist/src/nav-menu/NavMenuItemElement.d.ts.map +1 -1
  162. package/dist/src/nav-rail/NavRailElement.d.ts.map +1 -1
  163. package/dist/src/option/OptionPanelElement.d.ts.map +1 -1
  164. package/dist/src/paginator/PageEventDetail.d.ts +6 -11
  165. package/dist/src/paginator/PageEventDetail.d.ts.map +1 -1
  166. package/dist/src/paginator/PaginatorElement.d.ts +2 -2
  167. package/dist/src/paginator/PaginatorElement.d.ts.map +1 -1
  168. package/dist/src/paginator/PaginatorPageEventDetail.d.ts +12 -0
  169. package/dist/src/paginator/PaginatorPageEventDetail.d.ts.map +1 -0
  170. package/dist/src/paginator/index.d.ts +1 -0
  171. package/dist/src/paginator/index.d.ts.map +1 -1
  172. package/dist/src/search/SearchBarElement.d.ts +92 -0
  173. package/dist/src/search/SearchBarElement.d.ts.map +1 -0
  174. package/dist/src/search/SearchViewElement.d.ts +150 -0
  175. package/dist/src/search/SearchViewElement.d.ts.map +1 -0
  176. package/dist/src/search/SearchViewMode.d.ts +3 -0
  177. package/dist/src/search/SearchViewMode.d.ts.map +1 -0
  178. package/dist/src/search/SearchViewQueryEventDetail.d.ts +12 -0
  179. package/dist/src/search/SearchViewQueryEventDetail.d.ts.map +1 -0
  180. package/dist/src/search/index.d.ts +5 -0
  181. package/dist/src/search/index.d.ts.map +1 -0
  182. package/dist/src/search/styles/SearchBarStyle.d.ts +12 -0
  183. package/dist/src/search/styles/SearchBarStyle.d.ts.map +1 -0
  184. package/dist/src/search/styles/SearchBarToken.d.ts +27 -0
  185. package/dist/src/search/styles/SearchBarToken.d.ts.map +1 -0
  186. package/dist/src/search/styles/SearchViewStyle.d.ts +12 -0
  187. package/dist/src/search/styles/SearchViewStyle.d.ts.map +1 -0
  188. package/dist/src/search/styles/SearchViewToken.d.ts +26 -0
  189. package/dist/src/search/styles/SearchViewToken.d.ts.map +1 -0
  190. package/dist/src/search/styles/index.d.ts +3 -0
  191. package/dist/src/search/styles/index.d.ts.map +1 -0
  192. package/dist/src/segmented-button/ButtonSegmentElement.d.ts +2 -2
  193. package/dist/src/select/SelectElement.d.ts.map +1 -1
  194. package/dist/src/snackbar/SnackbarElement.d.ts.map +1 -1
  195. package/dist/src/split-button/SplitButtonElement.d.ts +1 -1
  196. package/dist/src/stepper/StepperElement.d.ts +3 -1
  197. package/dist/src/stepper/StepperElement.d.ts.map +1 -1
  198. package/dist/src/switch/SwitchElement.d.ts +2 -2
  199. package/dist/stepper.js +18 -12
  200. package/dist/stepper.js.map +1 -1
  201. package/dist/stepper.min.js +1 -1
  202. package/dist/stepper.min.js.map +1 -1
  203. package/dist/switch.js +2 -2
  204. package/dist/switch.js.map +1 -1
  205. package/dist/switch.min.js.map +1 -1
  206. package/dist/tooltip.js +1 -1
  207. package/dist/tooltip.js.map +1 -1
  208. package/dist/tooltip.min.js +1 -1
  209. package/dist/tooltip.min.js.map +1 -1
  210. package/package.json +16 -1
package/dist/all.min.js CHANGED
@@ -3,7 +3,43 @@
3
3
  * Copyright (c) 2025 matraic
4
4
  * See LICENSE file in the project root for full license text.
5
5
  */
6
- import{__classPrivateFieldGet as e,__decorate as t,__classPrivateFieldSet as a}from"tslib";import{unsafeCSS as o,css as i,LitElement as r,html as s,nothing as n,isServer as l,noChange as c,svg as d}from"lit";import{query as h,property as m,queryAssignedElements as p,state as u}from"lit/decorators.js";import{DesignToken as v,HtmlFor as b,Role as f,hasAssignedNodes as g,debounce as y,customElement as $,MutationController as x,setCustomState as w,deleteCustomState as k,prefersReducedMotion as C,scrollIntoViewIfNeeded as S,forcedColorsActive as _,addCustomState as L,ActionElementBase as z,EventAttribute as E,ReconnectedCallback as M,SuppressInitialAnimation as T,AttachInternals as P,VelocityTracker as I,ScrollLockController as W,ResizeController as A,focusWhenReady as H,hasCustomState as O,computeCssSize as D,spaceSeparatedStringConverter as B,KeyboardClick as q,LinkButton as F,FormSubmitter as V,Focusable as R,DisabledInteractive as N,Disabled as U,FocusController as j,PressedController as K,renderPseudoLink as Z,isSelectedMixin as G,Labelled as X,RequiredConstraintValidation as Y,Dirty as J,Touched as Q,Required as ee,ConstraintValidation as te,CheckedIndeterminate as ae,FormAssociated as oe,HoverController as ie,formValue as re,isDisabledMixin as se,isDisabledInteractiveMixin as ne,isLinkButtonMixin as le,getTextContent as ce,Vertical as de,Selected as he,ScrollController as me,isReadOnlyMixin as pe,interceptProperty as ue,computeLineCount as ve,generateClipPaths as be,Checked as fe,AnimationLoopController as ge,resolveFragmentUrl as ye,safeStyleMap as $e,updateLabels as xe,guid as we,IntersectionController as ke,LongPressController as Ce}from"@m3e/web/core";import{ListKeyManager as Se,M3eLiveAnnouncer as _e,M3eInteractivityChecker as Le,isModifierAllowed as ze,addAriaReferencedId as Ee,removeAriaReferencedId as Me,selectionManager as Te,SelectionManager as Pe,ListManager as Ie,RovingTabIndexManager as We,M3eAriaDescriber as Ae,typeaheadLabel as He}from"@m3e/web/core/a11y";import{M3eOptGroupElement as Oe}from"@m3e/web/option";import{M3eDirectionality as De}from"@m3e/web/core/bidi";import{positionAnchor as Be,M3eFloatingPanelElement as qe}from"@m3e/web/core/anchoring";import{ifDefined as Fe}from"lit/directives/if-defined.js";import{directive as Ve,Directive as Re,PartType as Ne}from"lit/directive.js";import{M3eIconButtonElement as Ue}from"@m3e/web/icon-button";import{M3eBreakpointObserver as je,Breakpoint as Ke}from"@m3e/web/core/layout";import{M3eNavBarElement as Ze}from"@m3e/web/nav-bar";import"@m3e/web/form-field";import"@m3e/web/select";import"@m3e/web/tooltip";import{classMap as Ge}from"lit/directives/class-map.js";import{M3eButtonElement as Xe}from"@m3e/web/button";import"@m3e/web/button-group";import"@m3e/web/slide-group";import{M3ePlatform as Ye}from"@m3e/web/core/platform";const Je={small:{containerHeight:o("var(--m3e-app-bar-small-container-height, 4rem)"),titleTextFontSize:o(`var(--m3e-app-bar-small-title-text-font-size, ${v.typescale.standard.title.large.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-small-title-text-font-weight, ${v.typescale.standard.title.large.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-small-title-text-line-height, ${v.typescale.standard.title.large.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.title.large.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-small-subtitle-text-font-size, ${v.typescale.standard.label.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-small-subtitle-text-font-weight, ${v.typescale.standard.label.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-small-subtitle-text-line-height, ${v.typescale.standard.label.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.label.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-small-heading-padding-left, 0.25rem)"),headingPaddingRight:o("var(--m3e-app-bar-small-heading-padding-right, 0.25rem)")},medium:{containerHeight:o("var(--m3e-app-bar-medium-container-height, 7rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-medium-container-height-with-subtitle, 8.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-medium-title-text-font-size, ${v.typescale.standard.headline.medium.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-medium-title-text-font-weight, ${v.typescale.standard.headline.medium.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-medium-title-text-line-height, ${v.typescale.standard.headline.medium.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.headline.medium.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-medium-subtitle-text-font-size, ${v.typescale.standard.title.small.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-medium-subtitle-text-font-weight, ${v.typescale.standard.title.small.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-medium-subtitle-text-line-height, ${v.typescale.standard.title.small.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.title.small.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-medium-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-medium-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-medium-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-medium-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-medium-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-medium-subtitle-max-lines, 1)")},large:{containerHeight:o("var(--m3e-app-bar-large-container-height, 7.5rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-large-container-height-with-subtitle, 9.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-large-title-text-font-size, ${v.typescale.standard.display.small.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-large-title-text-font-weight, ${v.typescale.standard.display.small.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-large-title-text-line-height, ${v.typescale.standard.display.small.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.display.small.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-large-subtitle-text-font-size, ${v.typescale.standard.title.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-large-subtitle-text-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-large-subtitle-text-line-height, ${v.typescale.standard.title.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.title.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-large-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-large-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-large-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-large-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-large-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-large-subtitle-max-lines, 1)")}};function Qe(e){return i`:host([size="${o(e)}"]) .base:not(.with-subtitle) { min-height: ${Je[e].containerHeight}; } :host([size="${o(e)}"]) .base.with-subtitle { min-height: ${Je[e].containerHeightWithSubtitle??Je[e].containerHeight}; } :host([size="${o(e)}"]) .title { font-size: ${Je[e].titleTextFontSize}; font-weight: ${Je[e].titleTextFontWeight}; line-height: ${Je[e].titleTextLineHeight}; letter-spacing: ${Je[e].titleTextTracking}; } :host([size="${o(e)}"]) .subtitle { font-size: ${Je[e].subtitleTextFontSize}; font-weight: ${Je[e].subtitleTextFontWeight}; line-height: ${Je[e].subtitleTextLineHeight}; letter-spacing: ${Je[e].subtitleTextTracking}; } :host(:not([centered])[size="${o(e)}"]) .label { padding-inline-start: ${Je[e].headingPaddingLeft}; padding-inline-end: ${Je[e].headingPaddingRight}; } :host([centered][size="${o(e)}"]) .label { padding-inline: ${Je[e].headingPaddingLeft}; } :host([size="${o(e)}"]) .base { padding-block-start: ${Je[e].paddingTop??o("unset")}; padding-block-end: ${Je[e].paddingBottom??o("unset")}; } ${Je[e].titleMaxLines?i`:host([size="${o(e)}"]) .title { display: -webkit-box; -webkit-line-clamp: ${Je[e].titleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${Je[e].titleMaxLines}; }`:i``} ${Je[e].subtitleMaxLines?i`:host([size="${o(e)}"]) .subtitle { display: -webkit-box; -webkit-line-clamp: ${Je[e].subtitleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${Je[e].subtitleMaxLines}; }`:i``}`}const et=[Qe("small"),Qe("medium"),Qe("large")],tt=o(`var(--m3e-app-bar-container-color, ${v.color.surface})`),at=o(`var(--m3e-app-bar-container-color-on-scroll, ${v.color.surfaceContainer})`),ot=o(`var(--m3e-app-bar-container-elevation, ${v.elevation.level0})`),it=o(`var(--m3e-app-bar-container-elevation-on-scroll, ${v.elevation.level1})`),rt=o(`var(--m3e-app-bar-title-text-color, ${v.color.onSurface})`),st=o(`var(--m3e-app-bar-subtitle-text-color, ${v.color.onSurfaceVariant})`),nt=o("var(--m3e-app-bar-padding-left, 0.25rem)"),lt=o("var(--m3e-app-bar-padding-right, 0.25rem)"),ct=i`:host { display: block; flex: none; } :host([size="small"]) .base, :host(:not([size="small"]):not([centered])) .heading { padding-inline-start: ${nt}; padding-inline-end: ${lt}; } .base { box-sizing: border-box; display: flex; transition: ${o(`background-color ${v.motion.duration.medium1} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium1} ${v.motion.easing.standard}`)}; } .base:not(.on-scroll) { background-color: ${tt}; box-shadow: ${ot}; } .base.on-scroll { background-color: ${at}; box-shadow: ${it}; } .leading-icon, .trailing-icon { display: flex; flex: none; align-items: center; } .leading-icon { min-width: var(--_leading-icon-min-width); } .trailing-icon { min-width: var(--_trailing-icon-min-width); } .heading { display: flex; align-items: center; } :host([size="small"]) .heading { flex: 1 1 auto; } .spacer { flex: 1 1 auto; } .label { display: flex; flex-direction: column; flex: none; } .title { color: ${rt}; } .subtitle { color: ${st}; } .base:not(.with-title) .title, .base:not(.with-subtitle) .subtitle, .base:not(.with-title):not(.with-subtitle) .label, .base:not(.with-trailing-icon) .trailing-icon { display: none; } :host([size="small"]) .base { align-items: center; } :host([size="small"]) .heading { min-width: 0; } :host([size="small"]) .label { flex: 1 1 auto; min-width: 0; } :host([size="small"]) .title, :host([size="small"]) .subtitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } :host(:not([size="small"])) .base { flex-direction: column; } :host([centered]) .title, :host([centered]) .subtitle { text-align: center; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } .base:not(.on-scroll), .base.on-scroll { background-color: Canvas; box-shadow: unset; } .title { color: CanvasText; } .subtitle { color: FieldText; } }`;var dt,ht,mt,pt,ut,vt,bt,ft,gt,yt,$t;let xt=class extends(b(f(r,"banner"))){constructor(){super(...arguments),dt.add(this),ht.set(this,e=>this._updateScroll(e)),mt.set(this,()=>e(this,dt,"m",yt).call(this)),this.centered=!1,this.size="small"}attach(t){super.attach(t),t instanceof HTMLIFrameElement?(t.addEventListener("load",e(this,mt,"f")),e(this,dt,"m",yt).call(this)):t.addEventListener("scroll",e(this,ht,"f"),{passive:!0})}detach(){this.control instanceof HTMLIFrameElement&&(this.control.removeEventListener("load",e(this,mt,"f")),this.control.contentDocument?.removeEventListener("scroll",e(this,ht,"f"))),this.control&&this.control.removeEventListener("scroll",e(this,ht,"f")),super.detach()}updated(t){super.updated(t),(t.has("centered")||t.has("size"))&&(this.centered&&"small"===this.size?e(this,dt,"m",gt).call(this):e(this,dt,"m",ft).call(this))}render(){return"small"===this.size?s`<div class="base"><div class="leading-icon"><slot name="leading-icon" @slotchange="${e(this,dt,"m",vt)}"></slot></div><div class="heading"><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,dt,"m",pt)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,dt,"m",ut)}"></slot></div></div></div><div class="trailing-icon"><slot name="trailing-icon" @slotchange="${e(this,dt,"m",bt)}"></slot></div></div>`:s`<div class="base"><div class="heading"><div class="leading-icon"><slot name="leading-icon" @slotchange="${e(this,dt,"m",vt)}"></slot></div><div class="spacer"></div><div class="trailing-icon"><slot name="trailing-icon" @slotchange="${e(this,dt,"m",bt)}"></slot></div></div><div class="spacer"></div><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,dt,"m",pt)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,dt,"m",ut)}"></slot></div></div></div>`}_updateScroll(t){let a=0;this.control instanceof HTMLIFrameElement?a=e(this,dt,"m",$t).call(this,this.control):t.target instanceof HTMLElement&&(a=t.target.scrollTop),this._base?.classList.toggle("on-scroll",a>0)}};var wt,kt,Ct,St,_t,Lt,zt,Et,Mt,Tt,Pt,It,Wt,At,Ht,Ot,Dt,Bt,qt,Ft,Vt,Rt,Nt,Ut,jt,Kt,Zt,Gt,Xt,Yt,Jt,Qt,ea,ta,aa,oa,ia,ra,sa,na,la,ca,da,ha,ma,pa,ua,va,ba,fa;ht=new WeakMap,mt=new WeakMap,dt=new WeakSet,pt=function(e){this._base?.classList.toggle("with-title",g(e.target))},ut=function(e){this._base?.classList.toggle("with-subtitle",g(e.target))},vt=function(t){this._base?.classList.toggle("with-leading-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,dt,"m",gt).call(this),40)},bt=function(t){this._base?.classList.toggle("with-trailing-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,dt,"m",gt).call(this),40)},ft=function(){this._base?.style.removeProperty("--_leading-icon-min-width"),this._base?.style.removeProperty("--_trailing-icon-min-width")},gt=function(){e(this,dt,"m",ft).call(this);const t=this._leadingIcon?.getBoundingClientRect().width??0,a=this._trailingIcon?.getBoundingClientRect().width??0;t<a?this._base?.style.setProperty("--_leading-icon-min-width",`${a}px`):t>a&&this._base?.style.setProperty("--_trailing-icon-min-width",`${t}px`)},yt=function(){this.control instanceof HTMLIFrameElement&&(this.control.contentDocument?.addEventListener("scroll",e(this,ht,"f"),{passive:!0}),this._base?.classList.toggle("on-scroll",e(this,dt,"m",$t).call(this,this.control)>0))},$t=function(e){return Math.max(e.contentDocument?.documentElement?.scrollTop??0,e.contentDocument?.body?.scrollTop??0)},xt.styles=[ct,et],t([h(".base")],xt.prototype,"_base",void 0),t([h(".leading-icon")],xt.prototype,"_leadingIcon",void 0),t([h(".trailing-icon")],xt.prototype,"_trailingIcon",void 0),t([m({type:Boolean,reflect:!0})],xt.prototype,"centered",void 0),t([m({reflect:!0})],xt.prototype,"size",void 0),t([y(40)],xt.prototype,"_updateScroll",null),xt=t([$("m3e-app-bar")],xt);let ga=fa=class extends(b(r)){constructor(){super(),wt.add(this),kt.set(this,`m3e-autocomplete-${fa.__nextId}`),Ct.set(this,`${e(this,kt,"f")}-menu`),this._options=new Array,St.set(this,void 0),_t.set(this,!1),Lt.set(this,void 0),zt.set(this,!1),Et.set(this,!1),Mt.set(this,!1),Tt.set(this,void 0),Pt.set(this,()=>e(this,wt,"m",Gt).call(this)),It.set(this,()=>e(this,wt,"m",Xt).call(this)),Wt.set(this,()=>e(this,wt,"m",Yt).call(this)),At.set(this,()=>e(this,wt,"m",Jt).call(this)),Ht.set(this,t=>e(this,wt,"m",ta).call(this,t)),Ot.set(this,t=>e(this,wt,"m",Qt).call(this,t)),Dt.set(this,()=>e(this,wt,"m",ea).call(this)),Bt.set(this,t=>e(this,wt,"m",oa).call(this,t)),qt.set(this,t=>e(this,wt,"m",aa).call(this,t)),this._listKeyManager=(new Se).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withSkipPredicate(e=>e.disabled||e.hidden).onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,wt,"m",ca).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.required=!1,this.autoActivate=!1,this.caseSensitive=!1,this.filter="contains",this.loading=!1,this.hideNoData=!1,this.hideLoading=!1,this.loadingLabel="Loading...",this.noDataLabel="No options",this.resultsLabel=e=>`${e} options`,this.panelClass="",new x(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,wt,"m",Zt).call(this)})}get options(){return this._options??[]}attach(t){t instanceof HTMLInputElement&&(super.attach(t),t.autocomplete="off",t.role="combobox",t.ariaAutoComplete="list",t.ariaExpanded="false",t.addEventListener("click",e(this,Pt,"f")),t.addEventListener("focus",e(this,Wt,"f")),t.addEventListener("blur",e(this,At,"f")),t.addEventListener("keydown",e(this,Ht,"f")),t.addEventListener("input",e(this,Ot,"f")),t.addEventListener("change",e(this,Dt,"f")),e(this,wt,"a",Kt)?.addEventListener("pointerdown",e(this,It,"f")))}detach(){this.control&&(e(this,wt,"a",Kt)?.removeEventListener("pointerdown",e(this,It,"f")),this.control.role=null,this.control.ariaAutoComplete=null,this.control.ariaExpanded=null,this.control.removeEventListener("click",e(this,Pt,"f")),this.control.removeEventListener("focus",e(this,Wt,"f")),this.control.removeEventListener("blur",e(this,At,"f")),this.control.removeEventListener("keydown",e(this,Ht,"f")),this.control.removeEventListener("input",e(this,Ot,"f")),this.control.removeEventListener("change",e(this,Dt,"f"))),super.detach()}clear(t=!1){e(this,wt,"a",Vt)&&(e(this,wt,"a",Vt).value="",e(this,wt,"m",pa).call(this),t?e(this,wt,"a",Vt).focus():e(this,wt,"m",la).call(this))}connectedCallback(){super.connectedCallback(),e(this,wt,"m",Zt).call(this)}update(t){super.update(t),t.has("hideNoData")&&this.hideNoData&&e(this,Lt,"f")&&w(e(this,Lt,"f"),"-no-data",!1),t.has("loading")&&(this.loading?e(this,Mt,"f")&&(this.loadingLabel&&_e.announce(this.loadingLabel,"polite"),!e(this,Lt,"f")&&e(this,wt,"a",Ut)&&e(this,wt,"m",ra).call(this)):e(this,Lt,"f")&&!e(this,wt,"a",Ut)?e(this,wt,"m",la).call(this):e(this,Lt,"f")?k(e(this,Lt,"f"),"-loading"):e(this,Mt,"f")&&e(this,wt,"m",ra).call(this))}render(){return s`<div class="options" aria-hidden="true"><slot></slot></div>`}};kt=new WeakMap,Ct=new WeakMap,St=new WeakMap,_t=new WeakMap,Lt=new WeakMap,zt=new WeakMap,Et=new WeakMap,Mt=new WeakMap,Tt=new WeakMap,Pt=new WeakMap,It=new WeakMap,Wt=new WeakMap,At=new WeakMap,Ht=new WeakMap,Ot=new WeakMap,Dt=new WeakMap,Bt=new WeakMap,qt=new WeakMap,wt=new WeakSet,Ft=function(){return this._listKeyManager?.items??[]},Vt=function(){return this.control?this.control:null},Rt=function(){return null!==(e(this,St,"f")?.querySelector("[slot='no-data']")??null)},Nt=function(){return null!==(e(this,St,"f")?.querySelector("[slot='loading']")??null)},Ut=function(){return e(this,wt,"a",Ft).some(e=>!e.hidden)||this.loading&&!this.hideLoading&&this.loadingLabel.length>0||!this.loading&&!this.hideNoData&&this.noDataLabel.length>0},jt=function(){const t=e(this,wt,"a",Kt);return`${t?t.menuAnchor.clientWidth:this.control?.clientWidth??0}px`},Kt=function(){return this.control?.closest("m3e-form-field")??null},Zt=async function(){e(this,Tt,"f")&&e(this,Tt,"f").abort();const t=new AbortController;a(this,Tt,t,"f");const o=[...this.querySelectorAll("m3e-option")];for(const e of o){if(t.signal.aborted)break;e.isUpdatePending&&await e.updateComplete}if(t.signal.aborted)return;this._options=o,a(this,St,this.cloneNode(!0),"f");const{added:i}=this._listKeyManager.setItems([...e(this,St,"f").querySelectorAll("m3e-option")]);if(i.forEach(t=>{t.id=t.id||`${e(this,kt,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,w(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),e(this,Lt,"f")){const t=e(this,wt,"m",pa).call(this);e(this,wt,"m",sa).call(this),e(this,wt,"a",Ut)?e(this,wt,"m",na).call(this,e(this,Lt,"f"),t):e(this,wt,"m",la).call(this)}},Gt=function(){a(this,_t,!0,"f"),e(this,wt,"m",ra).call(this)},Xt=function(){a(this,zt,!0,"f")},Yt=function(){a(this,Mt,!0,"f"),a(this,_t,!0,"f"),0!=this.options.length||this.control.readOnly||this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,wt,"a",Vt)?.value??""},bubbles:!0,composed:!0})),e(this,wt,"m",ra).call(this)},Jt=function(){a(this,Mt,!1,"f"),e(this,zt,"f")||e(this,wt,"m",la).call(this),a(this,zt,!1,"f")},Qt=function(t){if(e(this,wt,"a",Vt)&&!t.defaultPrevented){this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,wt,"a",Vt).value},bubbles:!0,composed:!0})),a(this,Et,!0,"f");try{e(this,Lt,"f")?(e(this,wt,"m",pa).call(this),e(this,wt,"a",Ut)||e(this,wt,"m",la).call(this)):e(this,wt,"m",ra).call(this)}finally{a(this,Et,!1,"f"),e(this,wt,"a",Kt)?.notifyControlStateChange(!0)}}},ea=function(){e(this,wt,"a",Vt)&&this.required&&!e(this,wt,"a",Ft).some(e=>e.selected&&!e.disabled)&&(e(this,wt,"a",Vt).value="")},ta=function(t){if(!t.defaultPrevented)switch(a(this,_t,!1,"f"),t.key){case"Backspace":case"Delete":e(this,wt,"a",Vt)&&!e(this,wt,"a",Vt).value&&e(this,wt,"m",la).call(this);break;case"Enter":e(this,Lt,"f")&&this._listKeyManager.activeItem?(t.preventDefault(),e(this,wt,"m",ha).call(this,this._listKeyManager.activeItem),C()?e(this,wt,"m",la).call(this):setTimeout(()=>e(this,wt,"m",la).call(this),150)):e(this,Lt,"f")&&setTimeout(()=>{e(this,wt,"a",Vt)&&!e(this,wt,"a",Vt).value&&e(this,wt,"m",la).call(this)});break;case"Escape":case"Tab":e(this,wt,"m",la).call(this);break;case"Up":case"ArrowUp":t.altKey?e(this,wt,"m",la).call(this):this._listKeyManager.onKeyDown(t);break;case"Down":case"ArrowDown":e(this,Lt,"f")?this._listKeyManager.onKeyDown(t):(e(this,wt,"m",ra).call(this),t.preventDefault());break;default:this._listKeyManager.onKeyDown(t)}},aa=function(t){if(2===t.button)return;t.preventDefault(),t.stopImmediatePropagation();const a=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);a&&!a.disabled&&(this._listKeyManager.setActiveItem(a),e(this,wt,"m",ha).call(this,a),C()?e(this,wt,"m",la).call(this):setTimeout(()=>e(this,wt,"m",la).call(this),150))},oa=function(t){if(e(this,Lt,"f"))if("closed"!==t.newState){const a=e(this,wt,"a",Ft).find(e=>e.selected&&!e.disabled);a?(this._listKeyManager.setActiveItem(a),S(a,e(this,Lt,"f"))):e(this,wt,"m",va).call(this),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else C()?e(this,wt,"m",ia).call(this,t):setTimeout(()=>e(this,wt,"m",ia).call(this,t),100)},ia=function(t){e(this,Lt,"f")&&(e(this,St,"f")?.replaceChildren(...e(this,Lt,"f").childNodes),e(this,Lt,"f").remove(),e(this,Lt,"f").removeEventListener("toggle",e(this,Bt,"f")),e(this,Lt,"f").removeEventListener("pointerdown",e(this,qt,"f")),a(this,Lt,void 0,"f"),e(this,wt,"a",Vt)&&(e(this,wt,"a",Vt).ariaExpanded="false",e(this,wt,"a",Vt).removeAttribute("aria-controls"),e(this,wt,"a",Vt).removeAttribute("aria-owns")),this.requestUpdate(),e(this,wt,"a",Kt)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})))},ra=function(){if(e(this,Lt,"f")||!e(this,wt,"a",Vt)||e(this,wt,"a",Vt).readOnly||e(this,wt,"a",Vt).disabled)return;const t=e(this,wt,"m",pa).call(this);if(!e(this,wt,"a",Ut))return;if(a(this,Lt,document.createElement("m3e-option-panel"),"f"),e(this,Lt,"f").id=e(this,Ct,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,Lt,"f").classList.add(t);e(this,Lt,"f").scrollStrategy="reposition",e(this,Lt,"f").style.overflowX="hidden",e(this,Lt,"f").style.minWidth=e(this,wt,"a",jt),e(this,Lt,"f").addEventListener("toggle",e(this,Bt,"f")),e(this,Lt,"f").addEventListener("pointerdown",e(this,qt,"f")),e(this,wt,"m",sa).call(this),e(this,wt,"m",na).call(this,e(this,Lt,"f"),t),(e(this,wt,"a",Kt)??e(this,wt,"a",Vt)).insertAdjacentElement("afterend",e(this,Lt,"f")),e(this,wt,"a",Vt).setAttribute("aria-controls",e(this,Ct,"f")),e(this,wt,"a",Vt).setAttribute("aria-owns",e(this,Ct,"f")),e(this,wt,"a",Kt)?.notifyControlStateChange(),this._listKeyManager.activeItem&&this.autoActivate&&e(this,wt,"m",ca).call(this,this._listKeyManager.activeItem,!0);const o=e(this,wt,"a",Vt);setTimeout(()=>e(this,Lt,"f")?.show(o,e(this,wt,"a",Kt)?.menuAnchor))},sa=function(){if(!e(this,St,"f")||!e(this,Lt,"f"))return;const t=[...e(this,St,"f").childNodes];if(!e(this,wt,"a",Rt)&&this.noDataLabel){const e=document.createElement("span");e.slot="no-data",e.textContent=this.noDataLabel,t.push(e)}if(!e(this,wt,"a",Nt)&&this.loadingLabel){const e=document.createElement("span");e.slot="loading",e.textContent=this.loadingLabel,t.push(e)}e(this,Lt,"f").replaceChildren(...t)},na=function(e,t){w(e,"-loading",this.loading),w(e,"-no-data",0==t)},la=function(){e(this,Lt,"f")?.hide(),e(this,wt,"a",Vt)?.removeAttribute("aria-activedescendant")},ca=function(t,a=!1){if(e(this,wt,"a",Vt)&&(e(this,wt,"a",Vt).setAttribute("aria-activedescendant",t.id),e(this,Lt,"f"))){S(t,e(this,Lt,"f"),{block:"nearest",behavior:"instant"});const o=a||!e(this,_t,"f")&&(e(this,wt,"a",Vt).matches(":focus-visible")||_());e(this,wt,"a",Ft).forEach(e=>{e===t&&o?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},da=async function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected,t.isUpdatePending&&await t.updateComplete)},ha=async function(t){t.selected||(t.selected=!0,await e(this,wt,"m",da).call(this,t),t.isUpdatePending&&await t.updateComplete,this.requestUpdate(),this.isUpdatePending&&await this.updateComplete,e(this,wt,"a",Vt)&&(e(this,wt,"a",Vt).value=t.value),e(this,wt,"a",Kt)?.notifyControlStateChange(!0))},ma=function(e,t,a,o){const i=this.caseSensitive?t.value:t.value.toLowerCase();switch(this.filter){case"starts-with":return e.term=o,e.highlightMode=this.filter,i.startsWith(a);case"ends-with":return e.term=o,e.highlightMode=this.filter,i.endsWith(a);case"contains":return e.term=o,e.highlightMode=this.filter,i.includes(a);case"none":return e.disableHighlight=!0,!0;default:return e.disableHighlight=!0,this.filter(t,o)}},pa=function(){if(!e(this,wt,"a",Vt))return 0;const t=e(this,wt,"a",Ft).filter(e=>!e.hidden).length,o=!this.loading&&e(this,Et,"f");a(this,Et,!1,"f");const i=e(this,wt,"a",Vt).value,r=this.caseSensitive?i:i.toLocaleLowerCase();let s,n=0,l=!1;for(let t=0;t<e(this,wt,"a",Ft).length;t++){const a=e(this,wt,"a",Ft)[t],o=this._options[t];a.hidden=!e(this,wt,"m",ma).call(this,a,o,r,i),a.hidden?(e(this,wt,"m",ba).call(this,a),k(a,"-first"),k(a,"-last")):(n++,l||a.parentElement instanceof Oe?(k(a,"-first"),s&&k(s,"-last"),L(a,"-last"),s=a):(L(a,"-first"),l=!0,L(a,"-last"),s=a)),a.selected&&o.value!==i&&(a.selected=!1,e(this,wt,"m",da).call(this,a))}e(this,Lt,"f")&&e(this,wt,"m",na).call(this,e(this,Lt,"f"),n);const c=e(this,Lt,"f")?.querySelectorAll("m3e-optgroup")??e(this,St,"f")?.querySelectorAll("m3e-optgroup")??[];for(const e of c)e.hidden=[...e.querySelectorAll("m3e-option")].every(e=>e.hidden);return o&&e(this,wt,"m",ua).call(this,t,n),e(this,wt,"m",va).call(this),n},ua=function(t,a){if(e(this,Mt,"f"))if(0==a)t>0&&this.noDataLabel&&_e.announce(this.noDataLabel,"polite");else if(t!=a){const e=this.resultsLabel instanceof Function?this.resultsLabel(a):this.resultsLabel;e&&_e.announce(e,"polite")}},va=function(){if(this.autoActivate&&(!this._listKeyManager.activeItem||!this._listKeyManager.activeItem.selected)){const t=e(this,wt,"a",Ft).find(e=>!e.disabled&&!e.hidden);t&&(this._listKeyManager.setActiveItem(t),e(this,Lt,"f")&&S(t,e(this,Lt,"f"),{block:"nearest",behavior:"instant"}))}},ba=function(t){t.focusRing?.hide(),t.stateLayer?.hide("focused"),t===this._listKeyManager.activeItem&&(this._listKeyManager.updateActiveItem(null),e(this,wt,"a",Vt)?.removeAttribute("aria-activedescendant"))},ga.styles=i`:host { display: contents; } .options { display: none; }`,ga.__nextId=0,t([m({attribute:"hide-selection-indicator",type:Boolean})],ga.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean,reflect:!0})],ga.prototype,"required",void 0),t([m({attribute:"auto-activate",type:Boolean})],ga.prototype,"autoActivate",void 0),t([m({attribute:"case-sensitive",type:Boolean})],ga.prototype,"caseSensitive",void 0),t([m({converter:{fromAttribute:e=>null===e?"contains":"starts-with"===e||"ends-with"===e||"contains"===e||"none"===e?e:"contains"}})],ga.prototype,"filter",void 0),t([m({type:Boolean})],ga.prototype,"loading",void 0),t([m({attribute:"hide-no-data",type:Boolean})],ga.prototype,"hideNoData",void 0),t([m({attribute:"hide-loading",type:Boolean})],ga.prototype,"hideLoading",void 0),t([m({attribute:"loading-label"})],ga.prototype,"loadingLabel",void 0),t([m({attribute:"no-data-label"})],ga.prototype,"noDataLabel",void 0),t([m({attribute:"results-label"})],ga.prototype,"resultsLabel",void 0),t([m({attribute:"panel-class"})],ga.prototype,"panelClass",void 0),ga=fa=t([$("m3e-autocomplete")],ga);let ya=class extends r{render(){return s`<div class="base"><slot></slot></div>`}};var $a,xa,wa,ka,Ca,Sa;ya.styles=i`:host { display: inline-block; vertical-align: middle; aspect-ratio: 1 / 1; width: var(--m3e-avatar-size, 2.5rem); } .base { user-select: none; white-space: nowrap; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--m3e-avatar-shape, ${v.shape.corner.full}); font-size: var(--m3e-avatar-font-size, ${v.typescale.standard.title.medium.fontSize}); font-weight: var(--m3e-avatar-font-weight, ${v.typescale.standard.title.medium.fontWeight}); line-height: var(--m3e-avatar-line-height, ${v.typescale.standard.title.medium.lineHeight}); letter-spacing: var(--m3e-avatar-tracking, ${v.typescale.standard.title.medium.tracking}); background-color: var(--m3e-avatar-color, ${v.color.primaryContainer}); color: var(--m3e-avatar-label-color, ${v.color.onPrimaryContainer}); } ::slotted(img) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; width: 100%; height: 100%; }`,ya=t([$("m3e-avatar")],ya);let _a=class extends(b(r)){constructor(){super(...arguments),$a.add(this),xa.set(this,void 0),wa.set(this,void 0),this.size="medium",this.position="above-after"}attach(t){super.attach(t),e(this,$a,"m",Sa).call(this)}detach(){super.detach(),e(this,$a,"m",Ca).call(this)}connectedCallback(){super.connectedCallback(),a(this,xa,De.observe(()=>e(this,$a,"m",Sa).call(this)),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,xa,"f")?.call(this)}update(t){super.update(t),(t.has("position")||t.has("size")||t.has("htmlFor"))&&e(this,$a,"m",Sa).call(this)}render(){return s`<div class="base"><slot @slotchange="${e(this,$a,"m",ka)}"><span aria-hidden="true">&nbsp;</span></slot></div>`}};xa=new WeakMap,wa=new WeakMap,$a=new WeakSet,ka=function(){this.isConnected&&this.style.setProperty("--_badge-padding",this.textContent&&this.textContent.length>2?"0 "+("medium"===this.size?"0.25rem":"large"===this.size?"0.5rem":"0"):"")},Ca=function(){e(this,wa,"f")?.call(this),a(this,wa,void 0,"f")},Sa=async function(){if(e(this,$a,"m",Ca).call(this),!this.control)return;let t="top-end";switch(this.position){case"above":t="top";break;case"above-before":t="top-start";break;case"after":t="right";break;case"before":t="left";break;case"below":t="bottom";break;case"below-after":t="bottom-end";break;case"below-before":t="bottom-start"}a(this,wa,await Be(this,this.control,{position:t},(e,t)=>{this.position.includes("before")&&"before"!==this.position&&("rtl"===De.current?e+=this.clientWidth:e-=this.clientWidth),this.position.includes("after")&&"after"!==this.position&&("rtl"===De.current?e-=this.clientWidth:e+=this.clientWidth),this.style.left=`${e}px`,this.style.top=`${t}px`}),"f")},_a.styles=i`:host { display: inline-block; vertical-align: baseline; } .base { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; vertical-align: baseline; box-sizing: border-box; user-select: none; padding: var(--_badge-padding); border-radius: var(--m3e-badge-shape, ${v.shape.corner.full}); color: var(--m3e-badge-color, ${v.color.onError}); background-color: var(--m3e-badge-container-color, ${v.color.error}); } :host([for]) { position: absolute; z-index: 1; } :host([for][position="above"]) { transform: translateY(var(--_badge-offset, 0px)); } :host([for][position="above-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="above-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="below"]) { transform: translateY(calc(0px - var(--_badge-offset, 0px))); } :host([for][position="below-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="before"]:not(:dir(rtl))), :host([for][position="after"]:dir(rtl)) { transform: translateX(var(--_badge-offset, 0px)); } :host([for][position="before"]:dir(rtl)), :host([for][position="after"]:not(:dir(rtl))) { transform: translateX(calc(0px - var(--_badge-offset, 0px))); } :host([size="small"]) { height: var(--m3e-badge-small-size, 0.375rem); max-height: var(--m3e-badge-small-size, 0.375rem); width: var(--m3e-badge-small-size, 0.375rem); min-width: var(--m3e-badge-small-size, 0.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.375rem); } :host([size="small"]) .base { font-size: 0; } :host([size="medium"]) { height: var(--m3e-badge-medium-size, 1.375rem); min-width: var(--m3e-badge-medium-size, 1.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.75rem); } :host([size="medium"]) .base { font-size: var(--m3e-badge-medium-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-badge-medium-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-badge-medium-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-badge-medium-tracking, ${v.typescale.standard.label.small.tracking}); } :host([size="large"]) { height: var(--m3e-badge-large-size, 1.75rem); min-width: var(--m3e-badge-large-size, 1.75rem); --_badge-offset: var(--m3e-badge-small-offset, 1rem); } :host([size="large"]) .base { font-size: var(--m3e-badge-large-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-badge-large-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-badge-large-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-badge-large-tracking, ${v.typescale.standard.label.large.tracking}); } @media (forced-colors: active) { .base { background-color: ButtonFace; color: ButtonText; outline: 1px solid ButtonText; } }`,t([m({reflect:!0})],_a.prototype,"size",void 0),t([m({reflect:!0})],_a.prototype,"position",void 0),_a=t([$("m3e-badge")],_a);let La=class extends z{_onClick(){this.closest("m3e-bottom-sheet")?.hide()}};var za,Ea,Ma,Ta,Pa,Ia,Wa,Aa,Ha,Oa,Da,Ba,qa,Fa,Va,Ra,Na,Ua,ja,Ka,Za,Ga,Xa,Ya,Ja,Qa,eo,to,ao,oo,io,ro,so,no,lo,co,ho,mo,po,uo,vo;La=t([$("m3e-bottom-sheet-action")],La);let bo=vo=class extends(E(M(T(P(r))),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),za.add(this),Ea.set(this,t=>e(this,za,"m",Ga).call(this,t)),Ma.set(this,t=>e(this,za,"m",Xa).call(this,t)),Ta.set(this,()=>e(this,za,"m",Ya).call(this)),Pa.set(this,new Array),Ia.set(this,new I),Wa.set(this,new W(this)),Aa.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,za,"m",lo).call(this,t)})),Ha.set(this,null),Oa.set(this,void 0),Da.set(this,!1),Ba.set(this,0),qa.set(this,void 0),Fa.set(this,0),Va.set(this,0),Ra.set(this,void 0),this.modal=!1,this.open=!1,this.handle=!1,this.handleLabel="Drag handle",this.detents=[],this.detent=0,this.hideable=!1,this.hideFriction=.5}show(t=this.detent){this.open?void 0!==t&&e(this,Ba,"f")!==t&&e(this,za,"m",co).call(this,t):(a(this,qa,t,"f"),this.open=!0)}hide(){this.open=!1}toggle(e){this.open?this.hide():this.show(e)}cycle(){var t;this.open?this.detents.length>0?e(this,Ba,"f")<this.detents.length-1?(a(this,Ba,(t=e(this,Ba,"f"),++t),"f"),e(this,za,"m",co).call(this,e(this,Ba,"f"))):this.hideable&&this.hide():this.hide():this.show()}update(e){super.update(e),e.has("modal")&&(this.role=this.modal?"dialog":"region",this.ariaModal=this.modal?"true":null,this.popover=this.modal?"manual":null)}reconnectedCallback(){super.reconnectedCallback(),e(this,za,"m",Na).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,za,"m",Na).call(this)}updated(t){if(super.updated(t),t.has("open")){if(this.open){if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);vo.__openSheet!==this&&vo.__openSheet?.hide(),vo.__openSheet=this,this.inert=!1,window.addEventListener("resize",e(this,Ta,"f")),this.detents.length>0?(a(this,Ba,Math.min(Math.max(0,e(this,qa,"f")??this.detent),this.detents.length-1),"f"),e(this,za,"m",mo).call(this,e(this,za,"m",oo).call(this,this.detents[e(this,Ba,"f")]))):e(this,za,"m",mo).call(this,Math.min(e(this,za,"m",oo).call(this,"fit"),e(this,za,"m",oo).call(this,"half"))),a(this,qa,void 0,"f")}else{if(!this.dispatchEvent(new Event("closing",{cancelable:!0})))return void(this.open=!0);requestAnimationFrame(()=>this.inert=!0),window.removeEventListener("resize",e(this,Ta,"f")),vo.__openSheet===this&&(vo.__openSheet=void 0)}if(this.modal)if(this.open){a(this,Ha,document.activeElement,"f"),e(this,za,"m",po).call(this),e(this,Wa,"f").lock(),this.showPopover(),requestAnimationFrame(()=>{document.addEventListener("click",e(this,Ea,"f")),document.addEventListener("keydown",e(this,Ma,"f"))});let t=this.querySelector("[autofocus]");t&&Le.isFocusable(t)||(t=this.shadowRoot?.querySelector(".handle")),t&&H(t)}else e(this,za,"m",ho).call(this,0).then(()=>{e(this,za,"m",uo).call(this),e(this,Wa,"f").unlock(),document.removeEventListener("click",e(this,Ea,"f")),document.removeEventListener("keydown",e(this,Ma,"f")),this.hidePopover(),e(this,Ha,"f")instanceof HTMLElement&&e(this,Ha,"f").focus(),a(this,Ha,null,"f")});this.dispatchEvent(new Event(this.open?"opened":"closed"))}}render(){return s`<m3e-focus-trap ?disabled="${!this.modal}"><div class="base"><m3e-elevation class="elevation"></m3e-elevation><div class="header" @pointerdown="${e(this,za,"m",ja)}" @pointermove="${e(this,za,"m",Ka)}" @pointerup="${e(this,za,"m",Za)}">${this.handle?s`<div class="handle-row"><div id="handle" class="handle" role="button" aria-label="${this.handleLabel}" tabindex="0" @click="${e(this,za,"m",Ja)}" @keydown="${e(this,za,"m",Qa)}"><m3e-focus-ring class="focus-ring" for="handle"></m3e-focus-ring><div class="handle-touch" aria-hidden="true"></div></div></div>`:n}<slot name="header" @slotchange="${e(this,za,"m",Ua)}"></slot></div><div class="body"><div class="content"><slot></slot></div></div></div></m3e-focus-trap>`}};Ea=new WeakMap,Ma=new WeakMap,Ta=new WeakMap,Pa=new WeakMap,Ia=new WeakMap,Wa=new WeakMap,Aa=new WeakMap,Ha=new WeakMap,Oa=new WeakMap,Da=new WeakMap,Ba=new WeakMap,qa=new WeakMap,Fa=new WeakMap,Va=new WeakMap,Ra=new WeakMap,za=new WeakSet,Na=function(){const t=this.shadowRoot?.querySelector(".content");t&&(a(this,Fa,t.clientHeight,"f"),e(this,Aa,"f").observe(t));const o=this.shadowRoot?.querySelector(".header");o&&(a(this,Va,o.clientHeight,"f"),e(this,Aa,"f").observe(o))},Ua=function(e){w(this,"has-header",g(e.target))},ja=function(t){t.target instanceof HTMLElement&&Le.isFocusable(t.target)||(t.target.setPointerCapture(t.pointerId),t.target.style.cursor="grabbing",e(this,Ia,"f").reset(),e(this,Ia,"f").add(t.clientY),a(this,Oa,{startY:t.clientY,startHeight:this.clientHeight,maxHeight:e(this,za,"m",io).call(this),minHeight:e(this,za,"m",ro).call(this)},"f"),a(this,Da,!1,"f"))},Ka=function(t){if(!e(this,Oa,"f"))return;if(Math.abs(t.clientY-e(this,Oa,"f").startY)<=8)return;(t.getCoalescedEvents?.()??[t]).forEach(a=>e(this,Ia,"f").add(a.clientY,t.timeStamp));let o=e(this,Oa,"f").startHeight-(t.clientY-e(this,Oa,"f").startY);if(o<e(this,Oa,"f").minHeight){const t=(e(this,Oa,"f").minHeight-o)*this.hideFriction;o=e(this,Oa,"f").minHeight-t}e(this,za,"m",mo).call(this,Math.min(e(this,Oa,"f").maxHeight,o)),a(this,Da,!0,"f")},Za=function(t){if(e(this,Oa,"f"))try{if(t.target.releasePointerCapture(t.pointerId),t.target.style.cursor="",!e(this,Da,"f"))return;const a="touch"===t.pointerType?1200:500,o=e(this,Ia,"f").getVelocity();if(e(this,Ia,"f").reset(),this.hideable&&o>=a)this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide();else if(Math.abs(o)>=a)if(this.detents.length>0){const t=e(this,za,"m",eo).call(this);t!==e(this,Ba,"f")&&e(this,za,"m",co).call(this,t)}else e(this,za,"m",ho).call(this,e(this,za,"m",oo).call(this,"full"));else{const t=20;if(this.hideable){const a=e(this,Oa,"f").minHeight;if(this.clientHeight<a-t)return void this.hide()}this.detents.length>0?e(this,za,"m",co).call(this,e(this,za,"m",ao).call(this)):this.clientHeight<e(this,Oa,"f").minHeight&&e(this,za,"m",ho).call(this,e(this,Oa,"f").minHeight)}}finally{a(this,Oa,void 0,"f")}},Ga=function(e){this.open&&this.modal&&!e.composedPath().includes(this)&&this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide()},Xa=function(e){this.open&&this.modal&&"Escape"===e.key&&!e.shiftKey&&!e.ctrlKey&&(e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},Ya=function(){if(this.detents.length>0&&"half"===this.detents[e(this,Ba,"f")])return void e(this,za,"m",mo).call(this,e(this,za,"m",oo).call(this,"half"));const t=e(this,za,"m",io).call(this);(O(this,"-full")||this.clientHeight>t)&&e(this,za,"m",mo).call(this,t)},Ja=function(){e(this,Da,"f")||this.cycle(),a(this,Da,!1,"f")},Qa=function(t){if(!t.defaultPrevented&&ze(t))switch(t.key){case"Up":case"ArrowUp":if(t.preventDefault(),this.detents.length>0){const t=e(this,za,"m",eo).call(this);t!==e(this,Ba,"f")&&e(this,za,"m",co).call(this,t)}else e(this,za,"m",ho).call(this,e(this,za,"m",oo).call(this,"full"));break;case"Down":case"ArrowDown":if(t.preventDefault(),this.detents.length>0){const t=e(this,za,"m",to).call(this);t!==e(this,Ba,"f")?e(this,za,"m",co).call(this,t):this.hideable&&this.hide()}else this.hideable&&this.hide()}},eo=function(){const t=this.clientHeight;let a=1/0,o=e(this,Ba,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ba,"f"))continue;const r=e(this,za,"m",oo).call(this,this.detents[i]);r>t&&r<a&&(a=r,o=i)}return o},to=function(){const t=this.clientHeight;let a=-1/0,o=e(this,Ba,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ba,"f"))continue;const r=e(this,za,"m",oo).call(this,this.detents[i]);r<t&&r>a&&(a=r,o=i)}return o},ao=function(){const t=this.clientHeight;let a=e(this,Ba,"f"),o=1/0;for(let i=0;i<this.detents.length;i++){const r=e(this,za,"m",oo).call(this,this.detents[i]),s=Math.abs(t-r);s<o&&(o=s,a=i)}return a},oo=function(t){switch(t){case"collapsed":return e(this,za,"m",ro).call(this);case"half":return.5*e(this,za,"m",io).call(this);case"full":return e(this,za,"m",io).call(this);case"fit":return e(this,za,"m",no).call(this)}return t.endsWith("%")?e(this,za,"m",io).call(this)*(parseFloat(t)/100):t.endsWith("px")?parseFloat(t):e(this,za,"m",ro).call(this)},io=function(){const e=this.shadowRoot?.querySelector(".base");return window.innerHeight-(e?D(e,"var(--_bottom-sheet-top-space)"):0)},ro=function(){return this.detents.includes("fit")&&!this.detents.includes("collapsed")?e(this,za,"m",no).call(this):e(this,za,"m",so).call(this)},so=function(){const t=this.shadowRoot?.querySelector(".base");return e(this,Va,"f")+(t?D(t,"var(--_bottom-sheet-peek-height)"):0)},no=function(){const t=this.shadowRoot?.querySelector(".body");if(!t)return 0;const a=getComputedStyle(t);return e(this,Va,"f")+e(this,Fa,"f")+parseFloat(a.paddingBlockStart)+parseFloat(a.paddingBlockEnd)},lo=function(t){const o=e(this,Fa,"f"),i=e(this,Va,"f");for(const e of t)e.target.classList.contains("content")?a(this,Fa,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f"):e.target.classList.contains("header")&&a(this,Va,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f");if(this.open&&this.detents.length>0&&(o!==e(this,Fa,"f")||i!==e(this,Va,"f")))switch(this.detents[e(this,Ba,"f")]){case"fit":e(this,za,"m",mo).call(this,e(this,za,"m",no).call(this));break;case"collapsed":e(this,za,"m",mo).call(this,e(this,za,"m",ro).call(this))}},co=function(t){t>=0&&t<this.detents.length&&(a(this,Ba,t,"f"),e(this,za,"m",ho).call(this,e(this,za,"m",oo).call(this,this.detents[t])))},ho=async function(t){e(this,Ra,"f")&&(e(this,za,"m",mo).call(this,this.clientHeight),e(this,Ra,"f")?.cancel(),a(this,Ra,void 0,"f")),C()?e(this,za,"m",mo).call(this,t):(a(this,Ra,this.animate([{"--_bottom-sheet-height":`${this.clientHeight}px`},{"--_bottom-sheet-height":`${t}px`}],{duration:250,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}),"f"),e(this,Ra,"f").onfinish=()=>{e(this,za,"m",mo).call(this,t),a(this,Ra,void 0,"f")},await e(this,Ra,"f").finished)},mo=function(t){this.style.setProperty("--_bottom-sheet-height",`${t}px`),w(this,"-full",t===e(this,za,"m",io).call(this));const a=this.shadowRoot?.querySelector(".content");a&&(a.inert=t<=e(this,za,"m",so).call(this))},po=function(){e(this,Pa,"f").length=0;for(let t=this;t.parentNode&&t.parentNode!==document.documentElement;t=t.parentNode)for(const a of t.parentNode.children)a instanceof HTMLElement&&a!==t&&!a.inert&&(a.inert=!0,e(this,Pa,"f").push(a))},uo=function(){e(this,Pa,"f").forEach(e=>e.inert=!1),e(this,Pa,"f").length=0},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`@property --_bottom-sheet-height { syntax: "<length>"; inherits: false; initial-value: 50vh; } m3e-bottom-sheet > [slot="header"] { margin-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); margin-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); }</length>`.toString()),document.adoptedStyleSheets.push(e)}})(),bo.styles=i`:host { display: block; position: fixed; left: 50%; top: calc(100vh - var(--_bottom-sheet-height)); margin: 0; padding: 0; outline: none; overflow: hidden; border: none; box-sizing: border-box; width: var(--m3e-bottom-sheet-width, 100%); max-width: var(--m3e-bottom-sheet-max-width, 40rem); height: var(--_bottom-sheet-height); color: var(--m3e-bottom-sheet-color, ${v.color.onSurface}); background-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } :host(:not(:state(-no-animate))) { transition: ${o(`transform ${v.motion.duration.medium2} ${v.motion.easing.standardDecelerate},\n border-radius ${v.motion.duration.medium2} ${v.motion.easing.standard}`)}; } :host(:not([modal]):not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-elevation, ${v.elevation.level1}); } :host([modal]:not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-modal-elevation, ${v.elevation.level1}); } :host(:state(-full)) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-full-elevation, ${v.elevation.level1}); } :host(:not([modal])) { z-index: var(--m3e-bottom-sheet-z-index, 10); } :host(:not([modal]):not([open])), :host([modal]:not(:popover-open)) { border-radius: var(--m3e-bottom-sheet-minimized-container-shape, ${v.shape.corner.none}); transform: translateX(-50%) translateY(100%); } :host(:not([modal])[open]:not(:state(-full))), :host([modal]:not(:state(-full)):popover-open) { border-radius: var(--m3e-bottom-sheet-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]:state(-full)), :host([modal]:state(-full):popover-open) { border-radius: var(--m3e-bottom-sheet-full-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]), :host([modal]:popover-open) { transform: translateX(-50%) translateY(0); } :host([modal]:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) var(--m3e-bottom-sheet-scrim-opacity, 32%), transparent ); } :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) 0%, transparent ); } } .base { display: flex; border-radius: inherit; flex-direction: column; height: 100%; --_bottom-sheet-peek-height: var(--m3e-bottom-sheet-peek-height, 0); --_bottom-sheet-top-space: var(--m3e-bottom-sheet-compact-top-space, 4.5rem); } @media (max-height: 640px) { .base { --_bottom-sheet-top-space: var(--m3e-bottom-sheet-top-space, 3.5rem); } } .body { flex: 1 1 auto; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; padding-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); padding-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); font-size: var(--m3e-bottom-sheet-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-bottom-sheet-content-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-bottom-sheet-content-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var(--m3e-bottom-sheet-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .content { height: fit-content; } :host(:not([handle])) .header { display: none; } :host(:not([handle])) .body, .header { border-top-left-radius: inherit; border-top-right-radius: inherit; padding-block-start: var(--m3e-bottom-sheet-padding-block, 0.5rem); font-size: var(--m3e-bottom-sheet-header-font-size, ${v.typescale.standard.title.large.fontSize}); font-weight: var(--m3e-bottom-sheet-header-font-weight, ${v.typescale.standard.title.large.fontWeight}); line-height: var(--m3e-bottom-sheet-header-line-height, ${v.typescale.standard.title.large.lineHeight}); letter-spacing: var(--m3e-bottom-sheet-header-tracking, ${v.typescale.standard.title.large.tracking}); } .header { cursor: grab; touch-action: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; flex: none; display: flex; flex-direction: column; min-height: 3rem; --m3e-app-bar-container-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } .handle-row { position: relative; flex: none; display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible; height: var(--m3e-bottom-sheet-handle-container-height, 1.5rem); } :host(:not(:state(-no-animate))) .handle-row { transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard},\n padding ${v.motion.duration.short3} ${v.motion.easing.standard},\n height ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .handle { position: relative; width: var(--m3e-bottom-sheet-handle-width, 2rem); height: var(--m3e-bottom-sheet-handle-height, 4px); border-radius: var(--m3e-bottom-sheet-handle-shape, ${v.shape.corner.full}); background-color: var(--m3e-bottom-sheet-handle-color, ${v.color.onSurfaceVariant}); } .handle-touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); right: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); top: calc( 0px - calc( calc(3rem - var(--m3e-bottom-sheet-handle-container-height, 1.5rem)) - calc( var(--m3e-bottom-sheet-handle-height, 4px) / 2 ) ) ); } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))), :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop, :host(:not(:state(-no-animate))) .handle-row { transition: none; } } @media (forced-colors: active) { :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } .handle { background-color: ButtonText; } }`,t([m({type:Boolean,reflect:!0})],bo.prototype,"modal",void 0),t([m({type:Boolean,reflect:!0})],bo.prototype,"open",void 0),t([m({type:Boolean})],bo.prototype,"handle",void 0),t([m({attribute:"handle-label"})],bo.prototype,"handleLabel",void 0),t([m({attribute:"detents",converter:B})],bo.prototype,"detents",void 0),t([m({type:Number})],bo.prototype,"detent",void 0),t([m({type:Boolean,reflect:!0})],bo.prototype,"hideable",void 0),t([m({attribute:"hide-friction",type:Number})],bo.prototype,"hideFriction",void 0),bo=vo=t([$("m3e-bottom-sheet")],bo);let fo=class extends(b(z)){constructor(){super(...arguments),this.secondary=!1}attach(e){e instanceof bo&&(super.attach(e),this.parentElement&&(e.modal?this.parentElement.ariaHasPopup="dialog":this.secondary||(this.parentElement.ariaExpanded="false",Ee(this.parentElement,"aria-controls",e.id),this.parentElement.id&&Ee(e,"aria-labelledby",this.parentElement.id))))}detach(){this.control&&this.parentElement&&!this.secondary&&Me(this.parentElement,"aria-controls",this.control.id),super.detach()}_onClick(){this.control instanceof bo&&(this.control.modal?this.control.show(this.detent):(this.control.toggle(this.detent),!this.secondary&&this.parentElement&&(this.parentElement.ariaExpanded=`${this.control.open}`)))}};t([m({type:Number})],fo.prototype,"detent",void 0),t([m({type:Boolean})],fo.prototype,"secondary",void 0),fo=t([$("m3e-bottom-sheet-trigger")],fo);const go={"extra-small":{containerHeight:o(`calc(var(--m3e-button-extra-small-container-height, var(--m3e-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-button-extra-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-extra-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-extra-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-extra-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-extra-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-extra-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-extra-small-leading-space, var(--m3e-button-leading-space, 0.75rem))"),trailingSpace:o("var(--m3e-button-extra-small-trailing-space, var(--m3e-button-trailing-space, 0.75rem))"),iconLabelSpace:o("var(--m3e-button-extra-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},small:{containerHeight:o(`calc(var(--m3e-button-small-container-height, var(--m3e-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-button-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-small-leading-space, var(--m3e-button-leading-space, 1rem))"),trailingSpace:o("var(--m3e-button-small-trailing-space, var(--m3e-button-trailing-space, 1rem))"),iconLabelSpace:o("var(--m3e-button-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},medium:{containerHeight:o(`calc(var(--m3e-button-medium-container-height, var(--m3e-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-button-medium-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-medium-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.body.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-medium-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.body.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-medium-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.body.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-medium-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.body.large.tracking}))`),iconSize:o("var(--m3e-button-medium-icon-size, var(--m3e-button-icon-size, 1.5rem))"),shapeRound:o(`var(--m3e-button-medium-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-medium-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-button-medium-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-button-medium-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-medium-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.medium}))`),leadingSpace:o("var(--m3e-button-medium-leading-space, var(--m3e-button-leading-space, 1.5rem))"),trailingSpace:o("var(--m3e-button-medium-trailing-space, var(--m3e-button-trailing-space, 1.5rem))"),iconLabelSpace:o("var(--m3e-button-medium-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},large:{containerHeight:o(`calc(var(--m3e-button-large-container-height, var(--m3e-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-large-outline-thickness, var(--m3e-button-outline-thickness, 2px))"),labelTextFontSize:o(`var(--m3e-button-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o("var(--m3e-button-large-icon-size, var(--m3e-button-icon-size, 2rem))"),shapeRound:o(`var(--m3e-button-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-large-leading-space, var(--m3e-button-leading-space, 3rem))"),trailingSpace:o("var(--m3e-button-large-trailing-space, var(--m3e-button-trailing-space, 3rem))"),iconLabelSpace:o("var(--m3e-button-large-icon-label-space, var(--m3e-button-icon-label-space, 0.75rem))")},"extra-large":{containerHeight:o(`calc(var(--m3e-button-extra-large-container-height, var(--m3e-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-extra-large-outline-thickness, var(--m3e-button-outline-thickness, 3px))"),labelTextFontSize:o(`var(--m3e-button-extra-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.large.tracking}))`),iconSize:o("var(--m3e-button-extra-large-icon-size, var(--m3e-button-icon-size, 2.5rem))"),shapeRound:o(`var(--m3e-button-extra-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-extra-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-extra-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-extra-large-leading-space, var(--m3e-button-leading-space, 4rem))"),trailingSpace:o("var(--m3e-button-extra-large-trailing-space, var(--m3e-button-trailing-space, 4rem))"),iconLabelSpace:o("var(--m3e-button-extra-large-icon-label-space, var(--m3e-button-icon-label-space, 1rem))")}};function yo(e){return i`:host([size="${o(e)}"]) .base { height: ${go[e].containerHeight}; } :host([size="${o(e)}"]) .wrapper { padding-inline-start: ${go[e].leadingSpace}; padding-inline-end: ${go[e].trailingSpace}; column-gap: ${go[e].iconLabelSpace}; } :host( [size="${o(e)}"]:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not( :state(-pressed) ) ) .wrapper { padding-inline-start: calc( ${go[e].leadingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); padding-inline-end: calc( ${go[e].trailingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); } :host([size="${o(e)}"]) .label { font-size: ${go[e].labelTextFontSize}; font-weight: ${go[e].labelTextFontWeight}; line-height: ${go[e].labelTextLineHeight}; letter-spacing: ${go[e].labelTextTracking}; } :host([size="${o(e)}"]) .icon { font-size: ${go[e].iconSize}; --m3e-icon-size: ${go[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${go[e].outlineThickness}); outline-width: ${go[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]) .base { border-radius: var(--_button-shape, ${go[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${go[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${go[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${go[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${go[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${go[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${go[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${go[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${go[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${go[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${go[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${go[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${go[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${go[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var(--_button-start-shape-pressed-morph, ${go[e].shapePressedMorph}); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${go[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${go[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${go[e].shapePressedMorph}); }`}const $o=[yo("extra-small"),yo("small"),yo("medium"),yo("large"),yo("extra-large")],xo=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]), ::slotted([slot="trailing-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]), ::slotted(svg[slot="selected-icon"]), ::slotted(svg[slot="trailing-icon"]) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected-icon"], :host([toggle][selected]) .base.with-selected-icon slot[name="icon"] { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected))) { transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .label, .icon { transition: none; } }`,wo={elevated:{labelTextColor:o(`var(--m3e-elevated-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-elevated-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-button-container-color, var(--m3e-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-elevated-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-elevated-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-elevated-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{labelTextColor:o(`var(--m3e-outlined-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSurfaceVariant}))`),iconColor:o(`var(--m3e-outlined-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-outline-color, var(--m3e-button-outline-color, ${v.color.outlineVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedIconColor:o(`var(--m3e-outlined-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-outlined-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-outlined-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-button-disabled-outline-color, var(--m3e-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-hover-outline-color, var(--m3e-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-focus-outline-color, var(--m3e-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-pressed-outline-color, var(--m3e-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{labelTextColor:o(`var(--m3e-filled-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-filled-button-icon-color, var(--m3e-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-button-container-color, var(--m3e-button-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-filled-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-filled-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-filled-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-filled-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-filled-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-filled-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-filled-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-filled-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{labelTextColor:o(`var(--m3e-tonal-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-tonal-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-button-container-color, var(--m3e-button-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-tonal-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onSecondary}))`),selectedIconColor:o(`var(--m3e-tonal-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tonal-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tonal-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tonal-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tonal-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-tonal-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},text:{labelTextColor:o(`var(--m3e-text-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-text-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-text-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-text-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-text-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-text-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-text-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-text-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-text-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-text-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-text-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-text-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function ko(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${wo[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${wo[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${wo[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${wo[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${wo[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${wo[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${wo[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${wo[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${wo[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${wo[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${wo[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${wo[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${wo[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${wo[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${wo[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${wo[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${wo[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${wo[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${wo[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${wo[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${wo[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${wo[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${wo[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].selectedLabelTextColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].focus.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].focus.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].focus.selectedLabelTextColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].hover.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].hover.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].hover.selectedLabelTextColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .label { color: ${wo[e].pressed.labelTextColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .label { color: ${wo[e].pressed.unselectedLabelTextColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .label { color: ${wo[e].pressed.selectedLabelTextColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${wo[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${wo[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${wo[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${wo[e].disabled.containerElevation??o("unset")}; outline-color: ${wo[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${wo[e].disabled.containerColor} ${wo[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${wo[e].disabled.labelTextColor} ${wo[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${wo[e].disabled.iconColor} ${wo[e].disabled.iconOpacity}, transparent ); }`}const Co=[ko("text"),ko("elevated"),ko("outlined"),ko("filled"),ko("tonal"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var So,_o,Lo,zo,Eo,Mo;let To=class extends(q(F(V(R(N(U(P(f(r,"button"),!0)))))))){constructor(){super(),So.add(this),_o.set(this,t=>e(this,So,"m",Lo).call(this,t)),this.variant="text",this.shape="rounded",this.size="small",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new j(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new K(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,So,"m",Eo).call(this),C()?e(this,So,"m",Mo).call(this,!0):requestAnimationFrame(()=>e(this,So,"m",Mo).call(this,!0))):e(this,So,"m",Mo).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[Z]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected-icon" aria-hidden="true" @slotchange="${e(this,So,"m",zo)}"></slot>`:n}<slot class="icon" name="icon" aria-hidden="true"></slot><div class="label">${this.toggle&&this.selected?s`<slot name="selected"><slot></slot></slot>`:s`<slot></slot>`}</div><slot class="icon" name="trailing-icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,_o,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>k(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),k(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,_o,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(k(this,"-pressed"),k(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,So,"m",Eo).call(this,!0))}};var Po,Io,Wo,Ao;_o=new WeakMap,So=new WeakSet,Lo=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},zo=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},Eo=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},Mo=function(e){w(this,"-pressed",e),w(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),w(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),k(r,"-adjacent-pressed"))}}},To.styles=[$o,Co,xo],t([h(".base")],To.prototype,"_base",void 0),t([h(".elevation")],To.prototype,"_elevation",void 0),t([h(".focus-ring")],To.prototype,"_focusRing",void 0),t([h(".state-layer")],To.prototype,"_stateLayer",void 0),t([h(".ripple")],To.prototype,"_ripple",void 0),t([m({reflect:!0})],To.prototype,"variant",void 0),t([m({reflect:!0})],To.prototype,"shape",void 0),t([m({reflect:!0})],To.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],To.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],To.prototype,"selected",void 0),t([y(40)],To.prototype,"_handleResize",null),To=t([$("m3e-button")],To);let Ho=class extends(f(r,"group")){constructor(){super(...arguments),Po.add(this),Io.set(this,new K(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:e=>{this._base&&(e&&"connected"!==this.variant?(this._base.classList.add("pressed"),this._base.style.setProperty("--_button-group-width",`${this._base.getBoundingClientRect().width}px`)):(this._base.style.removeProperty("--_button-group-width"),this._base.classList.remove("pressed")))}})),this.variant="standard",this.size="small",this.multi=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("disable-role")&&(this.role=null)}disconnectedCallback(){super.disconnectedCallback(),this._base?.style.removeProperty("--_button-group-width"),this._base?.classList.remove("pressed")}update(t){super.update(t),(t.has("multi")||t.has("variant"))&&e(this,Po,"m",Wo).call(this),t.has("variant")&&this._base?.style.removeProperty("--_button-group-width")}render(){return s`<div class="base"><slot @slotchange="${e(this,Po,"m",Wo)}" @change="${e(this,Po,"m",Ao)}"></slot></div>`}};Io=new WeakMap,Po=new WeakSet,Wo=function(){const t=this.buttons;for(const t of e(this,Io,"f").targets)e(this,Io,"f").unobserve(t);const a=[...t].some(e=>e.toggle);this.hasAttribute("disable-role")||(this.role=a&&!this.multi?"radiogroup":"group");const o="radiogroup"===this.role?"radio":"button";t.forEach((a,i)=>{if(e(this,Io,"f").observe(a),w(a,"-connected","connected"===this.variant),L(a,"-grouped"),w(a,"-first",0==i),w(a,"-last",i==t.length-1),!this.hasAttribute("disable-role")&&a.role!==o&&a.toggle){const e=a.toggle?a.selected?"true":"false":null;a.role=o,"button"===a.role?(a.ariaPressed=e,a.ariaChecked=null):(a.ariaChecked=e,a.ariaPressed=null)}})},Ao=function(e){if(!this.multi&&e.target instanceof HTMLElement&&("M3E-BUTTON"===e.target.tagName||"M3E-ICON-BUTTON"===e.target.tagName)){if(!G(e.target)||!e.target.selected)return;for(const t of this.buttons)t!==e.target&&t.selected&&(t.selected=!1)}},Ho.styles=i`:host { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } .base { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } :host([variant="standard"]) { justify-content: center; } :host([variant="connected"]) .base { flex: 1 1 auto; } :host([variant="standard"]) .base { width: fit-content; flex: none; } :host([variant="standard"]) .base.pressed { justify-content: space-between; width: var(--_button-group-width); } :host([variant="standard"][size="extra-small"]) .base { column-gap: var(--m3e-standard-button-group-extra-small-spacing, 1.125rem); } :host([variant="standard"][size="small"]) .base { column-gap: var(--m3e-standard-button-group-small-spacing, 0.75rem); } :host([variant="standard"][size="medium"]).base { column-gap: var(--m3e-standard-button-group-medium-spacing, 0.5rem); } :host([variant="standard"][size="large"]) .base { column-gap: var(--m3e-standard-button-group-large-spacing, 0.5rem); } :host([variant="standard"][size="extra-large"]) .base { column-gap: var(--m3e-standard-button-group-extra-large-spacing, 0.5rem); } :host([variant="connected"]) .base { column-gap: var(--m3e-connected-button-group-spacing, 0.125rem); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-first)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-last)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-first)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-end-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-last)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-start-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-first)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-last)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-first)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-last)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-first)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-last)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); }`,t([h(".base")],Ho.prototype,"_base",void 0),t([m({reflect:!0})],Ho.prototype,"variant",void 0),t([m({reflect:!0})],Ho.prototype,"size",void 0),t([m({type:Boolean})],Ho.prototype,"multi",void 0),t([p({slot:"",selector:"m3e-button,m3e-icon-button",flatten:!0})],Ho.prototype,"buttons",void 0),Ho=t([$("m3e-button-group")],Ho);const Oo=o("var(--m3e-card-padding, 1rem)"),Do=o(`var(--m3e-card-shape, ${v.shape.corner.medium});`),Bo={filled:{textColor:o(`var(--m3e-filled-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-filled-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerHighest}))`),containerElevation:o(`var(--m3e-filled-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),disabled:{textColor:o(`var(--m3e-filled-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-filled-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-filled-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-filled-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surfaceVariant}))`),containerElevation:o(`var(--m3e-filled-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-filled-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-filled-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-filled-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-filled-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`)},focus:{textColor:o(`var(--m3e-filled-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`)},pressed:{textColor:o(`var(--m3e-filled-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`)}},elevated:{textColor:o(`var(--m3e-elevated-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-elevated-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level1}))`),disabled:{textColor:o(`var(--m3e-elevated-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-elevated-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-elevated-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-elevated-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-elevated-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level1}))`),containerElevationColor:o(`var(--m3e-elevated-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-elevated-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-elevated-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-elevated-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level2}))`)},focus:{textColor:o(`var(--m3e-elevated-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level1}))`)},pressed:{textColor:o(`var(--m3e-elevated-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level1}))`)}},outlined:{textColor:o(`var(--m3e-outlined-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-outlined-card-container-color, var(--m3e-card-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-outlined-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-outline-color, var(--m3e-card-outline-color, ${v.color.outlineVariant}))`),outlineThickness:o("var(--m3e-outlined-card-outline-thickness, var(--m3e-card-outline-thickness, 1px))"),disabled:{textColor:o(`var(--m3e-outlined-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-outlined-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-outlined-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerElevation:o(`var(--m3e-outlined-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-outlined-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-outlined-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-card-disabled-outline-color, var(--m3e-card-disabled-outline-color, ${v.color.outline}))`),outlineOpacity:o("var(--m3e-outlined-card-disabled-outline-opacity, var(--m3e-card-disabled-outline-opacity, 12%))")},hover:{textColor:o(`var(--m3e-outlined-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`),outlineColor:o(`var(--m3e-outlined-card-hover-outline-color, var(--m3e-card-hover-outline-color, ${v.color.outlineVariant}))`)},focus:{textColor:o(`var(--m3e-outlined-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-focus-outline-color, var(--m3e-card-focus-outline-color, ${v.color.onSurface}))`)},pressed:{textColor:o(`var(--m3e-outlined-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-pressed-outline-color, var(--m3e-card-pressed-outline-color, ${v.color.outlineVariant}))`)}}},qo=i`:host { outline: none; } :host(:not([inline])) { display: block; } :host(:not([inline])) .base { display: flex; } :host([inline]) { display: inline-block; vertical-align: middle; } :host([inline]) .base { display: inline-flex; } .base { width: 100%; height: 100%; position: relative; box-sizing: border-box; border-radius: ${Do}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host([actionable]) { user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([actionable]:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([actionable][disabled-interactive]) { cursor: not-allowed; } :host(:not([actionable])) .focus-ring, :host(:not([actionable])) .state-layer, :host(:not([actionable])) .ripple { display: none; } :host([variant="outlined"]) .base { border-style: solid; } ::slotted([slot="content"]) { flex: 1 1 auto; } ::slotted(img), ::slotted(video) { inset: 0; object-fit: cover; } ::slotted(img[slot="header"]), ::slotted(video[slot="header"]) { border-radius: ${Do}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } ::slotted([slot="header"]), ::slotted([slot="actions"]), ::slotted([slot="footer"]) { flex: none; display: flex; align-items: center; } :host([orientation="vertical"]) .base, :host([orientation="horizontal"]) ::slotted([slot="header"]), :host([orientation="horizontal"]) ::slotted([slot="actions"]), :host([orientation="horizontal"]) ::slotted([slot="footer"]) { flex-direction: column; } :host([orientation="horizontal"]) .base, :host([orientation="vertical"]) ::slotted([slot="header"]), :host([orientation="vertical"]) ::slotted([slot="actions"]), :host([orientation="vertical"]) ::slotted([slot="footer"]) { flex-direction: row; } :host([orientation="horizontal"]) ::slotted(img), :host([orientation="horizontal"]) ::slotted(video) { aspect-ratio: 16 / 9; } .has-content:not(.has-default) slot[name="content"], .has-content.has-default slot:not([name]) { display: inherit; flex-direction: inherit; flex: 1 1 auto; } .has-header slot[name="header"], .has-actions slot[name="actions"], .has-footer slot[name="footer"] { display: inherit; flex-direction: inherit; flex: none; } :host([orientation="vertical"]) .has-content:not(.has-default) slot[name="content"] { margin-inline: ${Oo}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-block-start: ${Oo}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-block-end: ${Oo}; } :host([orientation="horizontal"]) .has-content:not(.has-default) slot[name="content"] { margin-block: ${Oo}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-inline-start: ${Oo}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-inline-end: ${Oo}; } :host([orientation="vertical"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline: ${Oo}; margin-block-start: ${Oo}; } :host([orientation="horizontal"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline-start: ${Oo}; margin-block: ${Oo}; } .has-actions slot[name="actions"] { margin-inline: ${Oo}; margin-block: ${Oo}; } :host([orientation="vertical"]) .has-footer slot[name="footer"] { margin-inline: ${Oo}; margin-block-end: ${Oo}; } :host([orientation="horizontal"]) .has-footer slot[name="footer"] { margin-block: ${Oo}; margin-inline-end: ${Oo}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base { transition: none; } :host([variant]) .base { border-style: solid; border-color: CanvasText; border-width: ${Bo.outlined.outlineThickness??o("unset")}; } :host([actionable][variant]:disabled) .base, :host([actionable][variant][disabled-interactive]) .base { color: GrayText; border-color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`;function Fo(e){return i`:host([variant="${o(e)}"]) .base { background-color: ${Bo[e].containerColor??o("unset")}; box-shadow: ${Bo[e].containerElevation??o("unset")}; border-width: ${Bo[e].outlineThickness??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Bo[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Bo[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Bo[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Bo[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Bo[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Bo[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Bo[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Bo[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Bo[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Bo[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"]) .base { border-color: ${Bo[e].outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus .base) { border-color: ${Bo[e].focus.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover .base) { border-color: ${Bo[e].hover.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { border-color: ${Bo[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]) .base { color: ${Bo[e].textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus) .base { color: ${Bo[e].focus.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover) .base { color: ${Bo[e].hover.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { color: ${Bo[e].pressed.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) .base, :host([actionable][variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Bo[e].disabled.containerElevation??o("unset")}; --m3e-elevation-color: color-mix( in srgb, ${Bo[e].disabled.containerElevationColor} ${Bo[e].disabled.containerElevationOpacity}, transparent ); color: color-mix( in srgb, ${Bo[e].disabled.textColor} ${Bo[e].disabled.textOpacity}, transparent ); background-color: ${Bo[e].disabled.containerColor&&Bo[e].disabled.containerOpacity?o(`color-mix(\n in srgb,\n ${Bo[e].disabled.containerColor} ${Bo[e].disabled.containerOpacity},\n transparent\n )`):o("unset")}; border-color: ${Bo[e].disabled.outlineColor&&Bo[e].disabled.outlineOpacity?o(`color-mix(\n in srgb,\n ${Bo[e].disabled.outlineColor} ${Bo[e].disabled.outlineOpacity},\n transparent\n )`):o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) ::slotted(img), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(img), :host([actionable][variant="${o(e)}"]:disabled) ::slotted(video), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(video) { opacity: ${Bo[e].disabled.imageOpacity}; }`}const Vo=[Fo("filled"),Fo("elevated"),Fo("outlined")];var Ro,No,Uo,jo,Ko,Zo,Go,Xo;let Yo=class extends(q(F(V(R(N(U(P(r),!0))))))){constructor(){super(),Ro.add(this),No.set(this,t=>e(this,Ro,"m",Xo).call(this,t)),this.inline=!1,this.actionable=!1,this.variant="filled",this.orientation="vertical",new K(this,{isPressedKey:e=>" "===e,callback:e=>{!this.actionable||this.disabled||this.disabledInteractive||this._base?.classList.toggle("pressed",e)}})}connectedCallback(){this.hasAttribute("actionable")&&(this.role="button"),super.connectedCallback(),this.addEventListener("click",e(this,No,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this.removeEventListener("click",e(this,No,"f"))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${!this.actionable||this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-ripple class="ripple" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-ripple>${this[Z]()}<slot name="header" @slotchange="${e(this,Ro,"m",Uo)}"></slot><slot name="content" @slotchange="${e(this,Ro,"m",jo)}"><slot @slotchange="${e(this,Ro,"m",Ko)}"></slot></slot><slot name="actions" @slotchange="${e(this,Ro,"m",Zo)}"></slot><slot name="footer" @slotchange="${e(this,Ro,"m",Go)}"></slot></div>`}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this)),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}update(e){super.update(e),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}};var Jo,Qo,ei,ti,ai,oi;No=new WeakMap,Ro=new WeakSet,Uo=function(e){const t=e.target.assignedNodes({flatten:!0}),a=this.shadowRoot?.querySelector(".base");a?.classList.toggle("has-header",t.length>0),a?.classList.toggle("has-header-media",t.some(e=>e instanceof HTMLElement&&("IMG"===e.tagName||"VIDEO"===e.tagName)))},jo=function(){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-content",null!==this.querySelector("[slot='content']"))},Ko=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-default",g(e.target)&&null===this.querySelector("[slot='content']"))},Zo=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(e.target))},Go=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-footer",g(e.target))},Xo=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation())},Yo.styles=[Vo,qo],t([h(".base")],Yo.prototype,"_base",void 0),t([h(".elevation")],Yo.prototype,"_elevation",void 0),t([h(".focus-ring")],Yo.prototype,"_focusRing",void 0),t([h(".state-layer")],Yo.prototype,"_stateLayer",void 0),t([h(".ripple")],Yo.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],Yo.prototype,"inline",void 0),t([m({type:Boolean,reflect:!0})],Yo.prototype,"actionable",void 0),t([m({reflect:!0})],Yo.prototype,"variant",void 0),t([m({reflect:!0})],Yo.prototype,"orientation",void 0),Yo=t([$("m3e-card")],Yo);let ii=class extends(X(Y(J(Q(ee(te(ae(oe(q(R(U(P(f(r,"checkbox")))),!1)))))))))){constructor(){super(...arguments),Jo.add(this),Qo.set(this,t=>e(this,Jo,"m",oi).call(this,t)),ei.set(this,new ie(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),ti.set(this,new K(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Qo=new WeakMap,ei=new WeakMap,ti=new WeakMap,Jo=new WeakSet,re)](){return!this.checked||this.disabled||this.indeterminate?null:this.value}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Qo,"f"));for(const t of this.labels)e(this,ei,"f").observe(t),e(this,ti,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Qo,"f"));for(const t of this.labels)e(this,ei,"f").unobserve(t),e(this,ti,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,Jo,"m",ai).call(this)}</div></div>`}};var ri,si,ni,li,ci,di,hi;ai=function(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n},oi=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.indeterminate=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},ii.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); } :host(:not([checked]):not([indeterminate])) .wrapper { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-checkbox-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-checkbox-selected-ripple-color, ${v.color.primary}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: var(--m3e-checkbox-selected-container-color, ${v.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${v.color.onPrimary}); } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper { border-color: var(--m3e-checkbox-unselected-outline-color, ${v.color.onSurfaceVariant}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover) .wrapper { border-color: var(--m3e-checkbox-unselected-hover-outline-color, ${v.color.onSurface}); } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${v.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${v.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-checkbox-unselected-error-ripple-color, ${v.color.error}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-error-hover-color, ${v.color.onError}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-error-focus-color, ${v.color.onError}); --m3e-ripple-color: var(--m3e-checkbox-selected-error-ripple-color, ${v.color.onError}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: var(--m3e-checkbox-unselected-error-outline-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base, :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: CanvasText; --m3e-state-layer-focus-color: CanvasText; --m3e-ripple-color: CanvasText; } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper, :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover ) .wrapper { border-color: CanvasText; } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: CanvasText; color: Canvas; } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: GrayText; } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: GrayText; color: Canvas; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: Highlight; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: Highlight; --m3e-state-layer-focus-color: Highlight; --m3e-ripple-color: Highlight; } }`,t([h(".focus-ring")],ii.prototype,"_focusRing",void 0),t([h(".state-layer")],ii.prototype,"_stateLayer",void 0),t([h(".ripple")],ii.prototype,"_ripple",void 0),t([m()],ii.prototype,"value",void 0),ii=t([$("m3e-checkbox")],ii);let mi=class extends(P(r)){constructor(){super(...arguments),ri.add(this),si.set(this,void 0),ni.set(this,""),this.variant="outlined"}get value(){return e(this,si,"f")??e(this,ni,"f")}set value(e){a(this,si,e,"f")}get label(){return e(this,ni,"f")}firstUpdated(e){super.firstUpdated(e),"listitem"===this.role&&this.removeAttribute("tabindex"),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>{e?.htmlFor||e?.attach(this)})}render(){const t=!se(this)||this.disabled,a=ne(this)&&this.disabledInteractive;return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${t||a}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${t||a}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${t}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${t||a}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${le(this)?this[Z]():n}<div class="wrapper">${e(this,ri,"m",li).call(this)}</div></div>`}_renderIcon(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,ri,"m",ci)}"></slot>`}_renderTrailingIcon(){return s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,ri,"m",di)}"></slot>`}_renderSlot(){return s`<slot @slotchange="${e(this,ri,"m",hi)}"></slot>`}};si=new WeakMap,ni=new WeakMap,ri=new WeakSet,li=function(){return s`${this._renderIcon()}<div class="label">${this._renderSlot()}</div>${this._renderTrailingIcon()}`},ci=function(e){w(this,"-with-icon",g(e.target))},di=function(e){w(this,"-with-trailing-icon",g(e.target))},hi=function(e){a(this,ni,ce(e.target),"f")},mi.styles=i`:host { display: inline-block; vertical-align: middle; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; border-radius: var(--m3e-chip-container-shape, ${v.shape.corner.small}); height: calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)}); font-size: var(--m3e-chip-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-chip-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-chip-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-chip-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host(:not(m3e-chip):not(:disabled)[disabled-interactive]) { cursor: not-allowed; } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) .base { user-select: none; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; column-gap: var(--m3e-chip-spacing, 0.5rem); } .label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host([variant="elevated"]) .base { background-color: var(--m3e-elevated-chip-container-color, ${v.color.surfaceContainerLow}); --m3e-elevation-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-hover-level: var(--m3e-elevated-chip-hover-elevation, ${v.elevation.level2}); --m3e-elevation-focus-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-pressed-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); } :host([variant="outlined"]) .base { outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-style: solid; outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: var(--m3e-outlined-chip-outline-color, ${v.color.outlineVariant}); } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: color-mix( in srgb, var(--m3e-outlined-chip-disabled-outline-color, ${v.color.onSurface}) var(--m3e-outlined-chip-disabled-outline-opacity, 12%), transparent ); } :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } :host(:not(:state(-with-icon))) .wrapper { padding-inline-start: var(--m3e-chip-padding-start, 1rem); } :host(:state(-with-trailing-icon)) .wrapper { padding-inline-end: var(--m3e-chip-with-icon-padding-end, 0.5rem); } :host(:not(:state(-with-trailing-icon))) .wrapper { padding-inline-end: var(--m3e-chip-padding-end, 1rem); } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]) { flex: none; width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem) !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-icon-color, ${v.color.primary}); } :host(:disabled) .base, :host([disabled-interactive]) .base { color: color-mix( in srgb, var(--m3e-chip-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-chip-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}) var(--m3e-chip-disabled-icon-opacity, 38%), transparent ); } :host([variant="elevated"]:disabled) .base, :host([variant="elevated"][disabled-interactive]) .base { background-color: color-mix( in srgb, var(--m3e-elevated-chip-disabled-container-color, ${v.color.onSurface}) var(--m3e-elevated-chip-disabled-container-opacity, 12%), transparent ); --m3e-elevation-level: var(--m3e-elevated-chip-disabled-elevation, ${v.elevation.level0}); } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: CanvasText; } :host(:disabled) .base, :host([disabled-interactive]) .base, :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: GrayText; } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: GrayText; } }`,t([h(".elevation")],mi.prototype,"_elevation",void 0),t([h(".focus-ring")],mi.prototype,"_focusRing",void 0),t([h(".state-layer")],mi.prototype,"_stateLayer",void 0),t([h(".ripple")],mi.prototype,"_ripple",void 0),t([m({reflect:!0})],mi.prototype,"variant",void 0),t([m()],mi.prototype,"value",null),mi=t([$("m3e-chip")],mi);let pi=class extends(V(F(q(R(N(U(f(mi,"button")))))))){_renderTrailingIcon(){return n}};pi.formAssociated=!0,pi=t([$("m3e-assist-chip")],pi);let ui=class extends(de(r)){render(){return s`<slot></slot>`}};var vi,bi,fi;ui.styles=i`:host { display: inline-flex; flex-wrap: wrap; vertical-align: middle; gap: var(--m3e-chip-set-spacing, 0.5rem); outline: none; } :host([vertical]) { flex-direction: column; }`,ui=t([$("m3e-chip-set")],ui);let gi=class extends(he(q(R(N(U(f(mi,"radio"))))))){constructor(){super(...arguments),vi.add(this),bi.set(this,t=>e(this,vi,"m",fi).call(this,t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,bi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,bi,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-filter-chip-set")?.[Te].notifySelectionChange(this)}_renderIcon(){return s`<div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg> ${super._renderIcon()}</div>`}};var yi,$i,xi,wi,ki,Ci,Si;bi=new WeakMap,vi=new WeakSet,fi=function(e){if(e.defaultPrevented)return;const t=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-filter-chip-set")?.[Te].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=t},gi.formAssociated=!0,gi.styles=[mi.styles,i`:host([selected]:not(:state(-hide-selection))) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } .icon { display: flex; align-items: center; justify-content: center; } .check { width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem); } :host(:not(:disabled):not([disabled-interactive])) .check { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not([selected])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-chip-with-icon-padding-start, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host([selected]) .icon { margin-inline-start: 0; } :host([selected]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-unselected-label-text-color, ${v.color.onSurfaceVariant}); --m3e-ripple-color: var(--m3e-chip-unselected-ripple-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-focus-color: var( --m3e-chip-unselected-state-layer-focus-color, ${v.color.onSurfaceVariant} ); --m3e-state-layer-hover-color: var( --m3e-chip-unselected-state-layer-hover-color, ${v.color.onSurfaceVariant} ); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]) { color: var(--m3e-chip-unselected-leading-icon-color, ${v.color.primary}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-unselected-trailing-icon-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: unset; outline-width: var(--m3e-chip-selected-outline-thickness, 0); color: var(--m3e-chip-selected-label-text-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-chip-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-chip-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-chip-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-elevation-hover-level: var(--m3e-chip-selected-hover-elevation, ${v.elevation.level1}); --m3e-ripple-color: var(--m3e-chip-selected-ripple-color, ${v.color.onSecondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-chip-selected-state-layer-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-chip-selected-state-layer-hover-color, ${v.color.onSecondaryContainer} ); } :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]) { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-selected-trailing-icon-color, ${v.color.onSecondaryContainer}); } @media (prefers-reduced-motion) { .base, :host(:not(:state(-with-icon))) .icon { transition: none; } } @media (forced-colors: active) { :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base, :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="trailing-icon"]), :host(:not(:disabled):not([disabled-interactive])) .check { color: ButtonText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-color: ButtonText; } }`],gi=t([$("m3e-filter-chip")],gi);let _i=class extends(X(J(Q(oe(U(P(f(ui,"radiogroup")))))))){constructor(){super(...arguments),yi.add(this),$i.set(this,void 0),this[Si]=(new Pe).onActiveItemChange(()=>this[Te].activeItem?.focus()).withWrap().withDirectionality(De.current),this.multi=!1,this.hideSelectionIndicator=!1}get chips(){return this[Te]?.items??[]}get selected(){return this[Te]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[($i=new WeakMap,yi=new WeakSet,Si=Te,re)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),a(this,$i,De.observe(()=>this[Te].directionality=De.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,$i,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(this[Te].vertical=this.vertical),t.has("disabled")&&(void 0!==t.get("disabled")||this.disabled)&&(this[Te].disabled=this.disabled),t.has("multi")&&(this.role=this.multi?"group":"radiogroup",e(this,yi,"m",Ci).call(this),this[Te].multi=this.multi,this[Te].disableRovingTabIndex(this.multi)),(t.has("multi")||t.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),t.has("hideSelectionIndicator")&&this.chips.forEach(e=>w(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,yi,"m",xi)}" @keydown="${e(this,yi,"m",wi)}" @change="${e(this,yi,"m",ki)}"></slot>`}};var Li,zi,Ei,Mi;xi=function(){const{added:t}=this[Te].setItems([...this.querySelectorAll("m3e-filter-chip")]);t.forEach(e=>w(e,"-hide-selection",this.hideSelectionIndicator)),e(this,yi,"m",Ci).call(this)},wi=function(e){this.multi||this[Te].onKeyDown(e)},ki=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},Ci=function(){this.chips.forEach(e=>e.role=this.multi?"button":"radio")},t([m({type:Boolean})],_i.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],_i.prototype,"hideSelectionIndicator",void 0),_i=t([$("m3e-filter-chip-set")],_i);let Ti=class extends(E(N(U(f(mi,"row"))),"remove")){constructor(){super(...arguments),Li.add(this),this.removable=!1,this.removeLabel="Remove"}connectedCallback(){super.connectedCallback(),this.removeAttribute("tabindex")}update(e){super.update(e),this.removeAttribute("tabindex"),e.has("removable")&&w(this,"-with-trailing-icon",this.removable)}render(){return s`<div class="base"><m3e-elevation class="elevation" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" for="cell" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="wrapper"><div id="cell" class="cell" role="gridcell" tabindex="${Fe(this.disabled?void 0:"-1")}" @keydown="${e(this,Li,"m",Mi)}"><slot name="avatar" @slotchange="${e(this,Li,"m",zi)}"></slot>${this._renderIcon()}<div class="label">${this._renderSlot()}</div><div class="touch" aria-hidden="true"></div></div>${this._renderTrailingIcon()}</div></div>`}_renderTrailingIcon(){return this.removable?s`<span role="gridcell" class="remove"><m3e-icon-button class="remove-button" aria-label="${this.removeLabel}" size="extra-small" tabindex="-1" ?disabled="${this.disabled}" ?disabled-interactive="${this.disabledInteractive}" @click="${e(this,Li,"m",Ei)}"><slot name="remove-icon"><svg class="remove-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button></span>`:n}};var Pi,Ii,Wi,Ai,Hi,Oi,Di,Bi,qi,Fi,Vi,Ri,Ni,Ui,ji,Ki,Zi,Gi,Xi,Yi,Ji,Qi,er,tr;Li=new WeakSet,zi=function(e){w(this,"-with-avatar",g(e.target))},Ei=function(e){e.stopPropagation(),this.dispatchEvent(new Event("remove"))},Mi=function(e){if(this.removable)switch(e.key){case"Backspace":case"Delete":this.dispatchEvent(new Event("remove"))}},Ti.formAssociated=!0,Ti.styles=[mi.styles,i`.cell { display: inline-flex; align-items: center; outline: none; column-gap: var(--m3e-chip-spacing, 0.5rem); min-width: 0; } .remove-button { --m3e-icon-button-extra-small-container-height: 1.5rem; --m3e-icon-button-extra-small-icon-size: var(--m3e-chip-icon-size, 1.125rem); width: 1.5rem; } .remove-icon { flex: none; width: var(--m3e-chip-icon-size, 1.125rem); height: var(--m3e-chip-icon-size, 1.125rem); } .touch { top: calc( 0px - calc(calc(3rem - calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)})) / 2) ); } .wrapper { height: 100%; overflow: visible; min-width: 0; } ::slotted([slot="avatar"]) { flex: none; font-size: var(--m3e-chip-avatar-size, 1.5rem); } ::slotted(m3e-avatar[slot="avatar"]) { --m3e-icon-size: var(--m3e-chip-avatar-icon-size, 1.125rem); --m3e-avatar-size: var(--m3e-chip-avatar-size, 1.5rem); --m3e-avatar-font-size: var( --m3e-chip-avatar-font-size, ${v.typescale.standard.title.small.fontSize} ); --m3e-avatar-font-weight: var( --m3e-chip-avatar-font-height, ${v.typescale.standard.title.small.fontWeight} ); --m3e-avatar-line-height: var( --m3e-chip-avatar-line-height, ${v.typescale.standard.title.small.lineHeight} ); --m3e-avatar-tracking: var(--m3e-chip-avatar-tracking, ${v.typescale.standard.title.small.tracking}); } :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { opacity: var(--m3e-chip-disabled-avatar-opacity, 38%); color: var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}); } :host(:state(-with-avatar)) ::slotted([slot="icon"]) { display: none; } :host(:state(-with-avatar)) .wrapper { padding-inline-start: var(--m3e-chip-with-avatar-padding-start, 0.25rem); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { color: CanvasText; } }`],t([h(".cell")],Ti.prototype,"cell",void 0),t([h(".remove-button")],Ti.prototype,"removeButton",void 0),t([m({type:Boolean})],Ti.prototype,"removable",void 0),t([m({attribute:"remove-label"})],Ti.prototype,"removeLabel",void 0),Ti=t([$("m3e-input-chip")],Ti);let ar=class extends(Y(ee(te(J(Q(oe(U(P(f(ui,"grid")))))))))){constructor(){super(...arguments),Pi.add(this),Ii.set(this,void 0),Wi.set(this,()=>e(this,Pi,"m",er).call(this)),Ai.set(this,t=>e(this,Pi,"m",tr).call(this,t)),Hi.set(this,()=>e(this,Pi,"m",Gi).call(this)),Oi.set(this,()=>e(this,Pi,"m",Xi).call(this)),Di.set(this,()=>e(this,Pi,"m",Yi).call(this)),Bi.set(this,t=>e(this,Pi,"m",Ji).call(this,t)),qi.set(this,t=>e(this,Pi,"m",Qi).call(this,t)),Fi.set(this,new Ie),Vi.set(this,(new Se).onActiveItemChange(()=>e(this,Vi,"f").activeItem?.focus()).withHomeAndEnd().withSkipPredicate(e=>!e.hasAttribute("tabindex")).withDirectionality(De.current)),Ri.set(this,!1),Ni.set(this,null),Ui.set(this,0)}get chips(){return[...this.querySelectorAll("m3e-input-chip")]}get value(){const e=this.chips.filter(e=>!e.disabled).map(e=>e.value);return 0==e.length?null:e}get[(Ii=new WeakMap,Wi=new WeakMap,Ai=new WeakMap,Hi=new WeakMap,Oi=new WeakMap,Di=new WeakMap,Bi=new WeakMap,qi=new WeakMap,Fi=new WeakMap,Vi=new WeakMap,Ri=new WeakMap,Ni=new WeakMap,Ui=new WeakMap,Pi=new WeakSet,re)](){const e=this.value;if(!e)return null;const t=new FormData;for(const a of e)t.append(this.name,a);return t}get shouldLabelFloat(){return this.chips.length>0}onContainerClick(){e(this,Ni,"f")?.focus()}connectedCallback(){super.connectedCallback(),customElements.get("m3e-form-field")?this.closest("m3e-form-field")?.notifyControlStateChange():customElements.whenDefined("m3e-form-field").then(()=>{this.closest("m3e-form-field")?.notifyControlStateChange()}),a(this,Ui,Number.parseInt(this.getAttribute("tabindex")??"0"),"f"),this.addEventListener("focus",e(this,Hi,"f")),this.addEventListener("focusin",e(this,Oi,"f")),this.addEventListener("focusout",e(this,Di,"f")),a(this,Ii,De.observe(()=>e(this,Vi,"f").directionality=De.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",e(this,Hi,"f")),this.removeEventListener("focusin",e(this,Oi,"f")),this.removeEventListener("focusout",e(this,Di,"f")),e(this,Ii,"f")?.call(this)}firstUpdated(t){super.firstUpdated(t),this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${e(this,Ui,"f")}`)}update(t){super.update(t),t.has("vertical")&&(this.ariaOrientation=null),t.has("disabled")&&(e(this,Fi,"f").items.forEach(e=>e.disabled=this.disabled),e(this,Ni,"f")&&(e(this,Ni,"f").disabled=this.disabled))}render(){return s`<slot @keydown="${e(this,Pi,"m",ji)}" @slotchange="${e(this,Pi,"m",Ki)}"></slot><span role="row"><span role="gridcell"><slot name="input" @slotchange="${e(this,Pi,"m",Zi)}"></slot></span></span>`}};ji=function(t){e(this,Vi,"f").onKeyDown(t)},Ki=async function(){const{added:t,removed:a}=e(this,Fi,"f").setItems([...this.querySelectorAll("m3e-input-chip")]);for(const a of t)a.isUpdatePending&&await a.updateComplete,this.disabled&&(a.disabled=!0),a.addEventListener("remove",e(this,Bi,"f")),a.cell.addEventListener("click",e(this,qi,"f"));a.forEach(t=>{t.removeEventListener("remove",e(this,Bi,"f")),t.cell.removeEventListener("click",e(this,qi,"f"))}),e(this,Vi,"f").setItems(e(this,Fi,"f").items.flatMap(e=>e.removeButton?[e.cell,e.removeButton]:[e.cell])),e(this,Vi,"f").activeItem||e(this,Vi,"f").updateActiveItem(e(this,Vi,"f").items.find(e=>e.hasAttribute("tabindex")))},Zi=function(){const t=this.querySelector("input");if(e(this,Ni,"f")&&(e(this,Ni,"f").removeEventListener("change",e(this,Wi,"f")),e(this,Ni,"f").removeEventListener("keydown",e(this,Ai,"f"))),a(this,Ni,t,"f"),e(this,Ni,"f")){e(this,Ni,"f").disabled=this.disabled,e(this,Ni,"f").addEventListener("change",e(this,Wi,"f")),e(this,Ni,"f").addEventListener("keydown",e(this,Ai,"f"));const a=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(t,"value",{get:()=>a.get?.call(t),set:o=>{a.set?.call(t,o),e(this,Ni,"f")!==t||e(this,Ri,"f")||e(this,Pi,"m",er).call(this)}})}},Gi=function(){setTimeout(()=>(e(this,Vi,"f").activeItem??e(this,Ni,"f"))?.focus())},Xi=function(){this.setAttribute("tabindex","-1")},Yi=function(){this.setAttribute("tabindex",`${e(this,Ui,"f")}`)},Ji=function(t){const a=t.target,o=e(this,Fi,"f").items.indexOf(a),i=e(this,Fi,"f").items.find((e,t)=>t>o&&!e.disabled&&e.removable);a.remove(),e(this,Vi,"f").setActiveItem(e(this,Vi,"f").items.find(e=>e===i?.removeButton)),e(this,Vi,"f").activeItem||e(this,Ni,"f")?.focus(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"remove",value:a.value,chip:a}}))},Qi=function(t){e(this,Vi,"f").updateActiveItem(t.composedPath().find(e=>e instanceof Ti)?.cell)},er=async function(){const t=e(this,Ni,"f")?.value;if(!t)return;const o=document.createElement("m3e-input-chip");if(o.removable=!0,o.appendChild(document.createTextNode(t)),this.appendChild(o),o.isUpdatePending&&await o.updateComplete,e(this,Ni,"f"))try{a(this,Ri,!0,"f"),e(this,Ni,"f").value=""}finally{a(this,Ri,!1,"f")}this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"add",value:t,chip:o}}))},tr=function(t){if("Backspace"===t.key&&!e(this,Ni,"f")?.value){const t=[...e(this,Fi,"f").items].reverse().find(e=>!e.disabled&&!e.disabledInteractive&&e.removable);t&&t.dispatchEvent(new Event("remove"))}},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-input-chip-set [slot="input"]::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-input-chip-set:not(:focus-within) [slot="input"]::placeholder { opacity: 0; transition: 0s; } m3e-input-chip-set:hover [slot="input"]::placeholder { transition: 0s; } @media (prefers-reduced-motion) { m3e-input-chip-set [slot="input"]::placeholder { transition: none !important; } }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),ar.styles=[ui.styles,i`::slotted([slot="input"]) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: initial; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(m3e-input-chip) { min-width: 0; } span[role="row"], span[role="gridcell"] { display: contents; }`],ar=t([$("m3e-input-chip-set")],ar);let or=class extends(V(F(q(R(N(U(f(mi,"button")))))))){_renderTrailingIcon(){return n}};var ir,rr,sr,nr,lr,cr,dr,hr,mr,pr,ur,vr,br,fr,gr,yr,$r,xr,wr,kr,Cr,Sr,_r,Lr,zr,Er,Mr,Tr,Pr,Ir,Wr,Ar,Hr,Or,Dr,Br,qr,Fr,Vr,Rr,Nr,Ur,jr,Kr,Zr,Gr,Xr,Yr,Jr,Qr,es,ts,as,os,is,rs,ss,ns,ls,cs,ds,hs,ms,ps,us,vs,bs,fs,gs,ys,$s,xs,ws,ks,Cs;or.formAssociated=!0,or=t([$("m3e-suggestion-chip")],or);class Ss{constructor(t,o){ir.set(this,null),rr.set(this,0),sr.set(this,!1),nr.set(this,void 0),lr.set(this,()=>{if(!e(this,sr,"f"))return;const t=performance.now();e(this,nr,"f").call(this,(t-e(this,rr,"f"))/1e3,t/1e3),a(this,rr,t,"f"),a(this,ir,requestAnimationFrame(e(this,lr,"f")),"f")}),a(this,nr,o,"f"),t.addController(this)}hostDisconnected(){this.stop()}start(){e(this,sr,"f")||(a(this,sr,!0,"f"),a(this,rr,performance.now(),"f"),e(this,lr,"f").call(this))}stop(){e(this,sr,"f")&&(a(this,sr,!1,"f"),null!==e(this,ir,"f")&&(cancelAnimationFrame(e(this,ir,"f")),a(this,ir,null,"f")))}}ir=new WeakMap,rr=new WeakMap,sr=new WeakMap,nr=new WeakMap,lr=new WeakMap;class _s{constructor(t,o){cr.set(this,void 0),dr.set(this,void 0),hr.set(this,new Set),a(this,cr,t,"f"),a(this,dr,o.target,"f"),e(this,cr,"f").addController(this)}get targets(){return e(this,hr,"f").values()}hostConnected(){null!==e(this,dr,"f")&&this.observe(e(this,dr,"f")??e(this,cr,"f"))}hostDisconnected(){e(this,hr,"f").forEach(e=>this.unobserve(e)),e(this,hr,"f").clear()}observe(t){e(this,hr,"f").has(t)||(e(this,hr,"f").add(t),this._observe(t))}isObserving(t){return e(this,hr,"f").has(t)}unobserve(t){e(this,hr,"f").delete(t)&&this._unobserve(t)}}function Ls(e,t){if(!t)return 0;const a=document.createElement("div");a.style.all="inherit",a.style.width=t,a.style.position="absolute",a.style.visibility="hidden",a.style.pointerEvents="none",e.appendChild(a);try{return parseFloat(getComputedStyle(a).width)}finally{a.remove()}}function zs(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function Es(e,t=200){function a(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const o=performance.now();for(;!a(e);){if(!e.isConnected||performance.now()-o>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function Ms(){return!l&&matchMedia("(forced-colors: active)").matches}function Ts(e,t,a){return e+(t-e)*a}function Ps(e,t,a,o){return{x:Math.pow(1-o,2)*e.x+2*(1-o)*o*t.x+Math.pow(o,2)*a.x,y:Math.pow(1-o,2)*e.y+2*(1-o)*o*t.y+Math.pow(o,2)*a.y}}function Is(e,t,a,o,i){return{x:Math.pow(1-i,3)*e.x+3*Math.pow(1-i,2)*i*t.x+3*(1-i)*Math.pow(i,2)*a.x+Math.pow(i,3)*o.x,y:Math.pow(1-i,3)*e.y+3*Math.pow(1-i,2)*i*t.y+3*(1-i)*Math.pow(i,2)*a.y+Math.pow(i,3)*o.y}}function Ws(e,t){const a=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let o={x:0,y:0},i={x:0,y:0};const r=[];for(const e of a)if("M"===e.type)o={x:e.nums[0],y:e.nums[1]},i=o;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},a=t.x-o.x,i=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.hypot(a,i)}),o=t}else if("H"===e.type){const t={x:e.nums[0],y:o.y},a=t.x-o.x;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("V"===e.type){const t={x:o.x,y:e.nums[0]},a=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]};let i=0,s=o;const n=20;for(let e=1;e<=n;e++){const r=Ps(o,t,a,e/n);i+=Math.hypot(r.x-s.x,r.y-s.y),s=r}r.push({type:"Q",pts:[o,t,a],length:i}),o=a}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]},i={x:e.nums[4],y:e.nums[5]};let s=0,n=o;const l=20;for(let e=1;e<=l;e++){const r=Is(o,t,a,i,e/l);s+=Math.hypot(r.x-n.x,r.y-n.y),n=r}r.push({type:"C",pts:[o,t,a,i],length:s}),o=i}else if("Z"===e.type){const e=i.x-o.x,t=i.y-o.y;r.push({type:"L",pts:[o,i],length:Math.hypot(e,t)}),o=i}const s=r.reduce((e,t)=>e+t.length,0)/(t-1),n=[];let l=0,c=0;for(let e=0;e<t;e++){const t=e*s;for(;c<r.length&&l+r[c].length<t;)l+=r[c].length,c++;const a=r[c];if(!a)break;const o=(t-l)/a.length;if("L"===a.type){const[e,t]=a.pts;n.push({x:Ts(e.x,t.x,o),y:Ts(e.y,t.y,o)})}else if("Q"===a.type){const[e,t,i]=a.pts;n.push(Ps(e,t,i,o))}else if("C"===a.type){const[e,t,i,r]=a.pts;n.push(Is(e,t,i,r,o))}}return n}function As(e,t,a){return Math.max(t,Math.min(a,e))}function Hs(e,t){const a=e.length,o=new Array(a);for(let i=0;i<a;i++)o[i]=e[(i+t)%a];return o}function Os(e,t){const a=Math.min(t.length,e.length);let o=0,i=1/0;for(let r=0;r<a;r++){let s=0;for(let o=0;o<a;o++){const n=t[(o+r)%a],l=e[o],c=n.x-l.x,d=n.y-l.y;if(s+=c*c+d*d,s>=i)break}s<i&&(i=s,o=r)}return o}function Ds(e){let t=0;const a=e.length;for(let o=0;o<a;o++){const i=e[o],r=e[(o+1)%a];t+=i.x*r.y-r.x*i.y}return t/2}function Bs(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,a=1/0,o=-1/0,i=-1/0;for(const r of e)r.x<t&&(t=r.x),r.x>o&&(o=r.x),r.y<a&&(a=r.y),r.y>i&&(i=r.y);return{minX:t,minY:a,maxX:o,maxY:i,width:o-t,height:i-a}}(e),a=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),o=Math.max(t.width,t.height)||1,i=a.map(e=>({x:e.x/o,y:e.y/o})),r=t.width/o,s=t.height/o,n=(1-r)/2,l=(1-s)/2;return i.map(e=>({x:e.x+n,y:e.y+l}))}),a=t[0],o=Math.sign(Ds(a));for(let e=1;e<t.length;e++){let i=t[e];const r=Math.sign(Ds(i));0!==r&&r!==o&&(i=i.slice().reverse());const s=Os(a,i);t[e]=Hs(i,s)}return t}(e.map(e=>Ws(e,t))).map(e=>`${e.map(e=>{const t=As(100*e.x,0,100),a=As(100*e.y,0,100);return`${t.toFixed(2)}% ${a.toFixed(2)}%`}).join(", ")}`)}function qs(e,t=!1){let a="";switch(e.nodeType){case Node.TEXT_NODE:a=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const o of e.assignedNodes({flatten:!0}))a+=qs(o,t);else for(const o of e.childNodes)a+=qs(o,t)}return t&&(a=a.trim()),a}function Fs(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Vs(e){return e.assignedNodes({flatten:!0}).length>0}function Rs(e,t,a){const o=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!o)throw new Error(`Property ${String(t)} not found on target.`);const i=o.get?.bind(e),r=o.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:o.enumerable,get:()=>a.get?a.get(()=>i?.()):i?.(),set(e){a.set?a.set(e,e=>r?.(e)):r?.(e)}}),()=>Object.defineProperty(e,t,o)}function Ns(){return l||matchMedia("(prefers-reduced-motion)").matches}function Us(e,t=document){return new Promise(a=>{const o=t.querySelector(`#${e}`);o?a(o):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>a(t.querySelector(`#${e}`)),{once:!0}):a(t.querySelector(`#${e}`))})}function js(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function Ks(e,t,a){const o=t.getBoundingClientRect(),i=e.getBoundingClientRect();(i.top<o.top||i.bottom>o.bottom)&&e.scrollIntoView(a)}cr=new WeakMap,dr=new WeakMap,hr=new WeakMap;class Zs{constructor(e=100){mr.set(this,[]),pr.set(this,void 0),a(this,pr,e,"f")}add(t,a=performance.now()){e(this,mr,"f").push({y:t,t:a});const o=a-e(this,pr,"f");for(;e(this,mr,"f").length>1&&e(this,mr,"f")[0].t<o;)e(this,mr,"f").shift()}getVelocity(){if(e(this,mr,"f").length<2)return 0;const t=e(this,mr,"f")[0],a=e(this,mr,"f")[e(this,mr,"f").length-1],o=a.y-t.y,i=(a.t-t.t)/1e3;return i>0?o/i:0}reset(){e(this,mr,"f").length=0}}mr=new WeakMap,pr=new WeakMap;class Gs extends _s{constructor(t,o){super(t,o),ur.add(this),vr.set(this,!1),br.set(this,void 0),fr.set(this,t=>e(this,ur,"m",Sr).call(this,t)),gr.set(this,t=>e(this,ur,"m",_r).call(this,t)),yr.set(this,t=>e(this,ur,"m",Lr).call(this,t)),$r.set(this,()=>a(this,vr,!0,"f")),xr.set(this,()=>a(this,vr,!1,"f")),wr.set(this,!1),kr.set(this,()=>a(this,wr,!0,"f")),Cr.set(this,()=>a(this,wr,!1,"f")),a(this,br,o.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",e(this,kr,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",e(this,Cr,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",e(this,kr,"f"),{capture:!0}),window?.removeEventListener("pointerdown",e(this,Cr,"f"),{capture:!0})}_observe(t){t.addEventListener("keydown",e(this,fr,"f")),t.addEventListener("focusin",e(this,gr,"f")),t.addEventListener("focusout",e(this,yr,"f")),t.addEventListener("touchstart",e(this,$r,"f")),t.addEventListener("touchend",e(this,xr,"f")),t.addEventListener("touchcancel",e(this,xr,"f"))}_unobserve(t){t.removeEventListener("keydown",e(this,fr,"f")),t.removeEventListener("focusin",e(this,gr,"f")),t.removeEventListener("focusout",e(this,yr,"f")),t.removeEventListener("touchstart",e(this,$r,"f")),t.removeEventListener("touchend",e(this,xr,"f")),t.removeEventListener("touchcancel",e(this,xr,"f"))}}vr=new WeakMap,br=new WeakMap,fr=new WeakMap,gr=new WeakMap,yr=new WeakMap,$r=new WeakMap,xr=new WeakMap,wr=new WeakMap,kr=new WeakMap,Cr=new WeakMap,ur=new WeakSet,Sr=function(t){t.currentTarget.matches(":focus-within")&&e(this,ur,"m",_r).call(this,t)},_r=function(t){if(e(this,vr,"f"))return;const a=t.currentTarget;e(this,br,"f").call(this,!0,a.matches(":focus-visible")||e(this,wr,"f")||Ms(),a)},Lr=function(t){e(this,vr,"f")||e(this,br,"f").call(this,!1,!1,t.currentTarget)};class Xs extends _s{constructor(t,o){super(t,o),zr.add(this),Er.set(this,void 0),Mr.set(this,new Map),Tr.set(this,new Map),Pr.set(this,t=>e(this,zr,"m",Or).call(this,t)),Ir.set(this,t=>e(this,zr,"m",Dr).call(this,t)),a(this,Er,o.callback,"f"),this.startDelay=o.startDelay??0,this.endDelay=o.endDelay??0}clearDelays(){for(const t of this.targets)e(this,zr,"m",Wr).call(this,t)}_observe(t){t.addEventListener("pointerenter",e(this,Pr,"f")),t.addEventListener("pointerleave",e(this,Ir,"f")),t.addEventListener("touchend",e(this,Ir,"f"))}_unobserve(t){t.removeEventListener("pointerenter",e(this,Pr,"f")),t.removeEventListener("pointerleave",e(this,Ir,"f")),t.removeEventListener("touchend",e(this,Ir,"f"))}}Er=new WeakMap,Mr=new WeakMap,Tr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,zr=new WeakSet,Wr=function(t){e(this,zr,"m",Ar).call(this,t),e(this,zr,"m",Hr).call(this,t)},Ar=function(t){return!!e(this,Mr,"f").has(t)&&(clearTimeout(e(this,Mr,"f").get(t)),e(this,Mr,"f").delete(t))},Hr=function(t){return!!e(this,Tr,"f").has(t)&&(clearTimeout(e(this,Tr,"f").get(t)),e(this,Tr,"f").delete(t))},Or=function(t){const a=t.target;e(this,zr,"m",Hr).call(this,a),this.startDelay>0?(e(this,zr,"m",Ar).call(this,a),e(this,Mr,"f").set(a,setTimeout(()=>{e(this,Mr,"f").delete(a),e(this,Er,"f").call(this,!0,a)},this.startDelay))):e(this,Er,"f").call(this,!0,a)},Dr=function(t){const a=t.target;e(this,zr,"m",Ar).call(this,a)||(this.endDelay>0?(e(this,zr,"m",Hr).call(this,a),e(this,Tr,"f").set(a,setTimeout(()=>{e(this,Tr,"f").delete(a),e(this,Er,"f").call(this,!1,a)},this.endDelay))):e(this,Er,"f").call(this,!1,a))};class Ys extends _s{constructor(t,o){super(t,o),Br.set(this,void 0),qr.set(this,!1),Fr.set(this,void 0),Vr.set(this,!0),a(this,Br,o.callback,"f"),a(this,qr,o.skipInitial??!1,"f"),l||(window.IntersectionObserver?a(this,Fr,new IntersectionObserver((t,a)=>{e(this,Br,"f").call(this,t,a)},o.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){e(this,Fr,"f")&&!e(this,qr,"f")&&e(this,Vr,"f")&&e(this,Br,"f").call(this,[],e(this,Fr,"f")),a(this,Vr,!1,"f")}_observe(t){e(this,Fr,"f")?.observe(t),a(this,Vr,!0,"f")}_unobserve(t){e(this,Fr,"f")?.unobserve(t)}}Br=new WeakMap,qr=new WeakMap,Fr=new WeakMap,Vr=new WeakMap;class Js extends _s{constructor(t,o){super(t,o),Rr.add(this),Nr.set(this,void 0),Ur.set(this,void 0),jr.set(this,new Set),Kr.set(this,new Map),Zr.set(this,t=>e(this,Rr,"m",Xr).call(this,t)),Gr.set(this,t=>e(this,Rr,"m",Yr).call(this,t)),a(this,Nr,o.callback,"f"),a(this,Ur,o.threshold??500,"f")}_observe(t){t.addEventListener("touchstart",e(this,Zr,"f"),{passive:!0}),t.addEventListener("touchend",e(this,Gr,"f")),t.addEventListener("touchcancel",e(this,Gr,"f"))}_unobserve(t){t.removeEventListener("touchstart",e(this,Zr,"f")),t.removeEventListener("touchend",e(this,Gr,"f")),t.removeEventListener("touchcancel",e(this,Gr,"f"))}}Nr=new WeakMap,Ur=new WeakMap,jr=new WeakMap,Kr=new WeakMap,Zr=new WeakMap,Gr=new WeakMap,Rr=new WeakSet,Xr=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,Kr,"f").set(a,setTimeout(()=>{e(this,jr,"f").add(a),e(this,Kr,"f").delete(a),e(this,Nr,"f").call(this,!0,a)},e(this,Ur,"f")))}},Yr=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,jr,"f").has(a)&&(e(this,Nr,"f").call(this,!1,a),e(this,jr,"f").delete(a)),e(this,Kr,"f").has(a)&&(clearTimeout(e(this,Kr,"f").get(a)),e(this,Kr,"f").delete(a))}};class Qs extends _s{constructor(t,o){super(t,o),Jr.set(this,void 0),Qr.set(this,!1),es.set(this,void 0),ts.set(this,void 0),as.set(this,!0),a(this,Jr,o.callback,"f"),a(this,Qr,o.skipInitial??!1,"f"),a(this,es,o.config,"f"),l||(window.MutationObserver?a(this,ts,new MutationObserver((t,a)=>e(this,Jr,"f").call(this,t,a)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(e(this,ts,"f")&&!e(this,Qr,"f")&&e(this,as,"f")){const t=e(this,ts,"f").takeRecords();t.length>0&&e(this,Jr,"f").call(this,t,e(this,ts,"f"))}a(this,as,!1,"f")}hostDisconnected(){super.hostDisconnected(),e(this,ts,"f")?.disconnect()}_observe(t){e(this,ts,"f")?.observe(t,e(this,es,"f")),a(this,as,!0,"f")}_unobserve(){e(this,ts,"f")?.disconnect();for(const t of this.targets)e(this,ts,"f")?.observe(t,e(this,es,"f"))}}Jr=new WeakMap,Qr=new WeakMap,es=new WeakMap,ts=new WeakMap,as=new WeakMap;class en extends _s{constructor(t,o){super(t,o),os.add(this),is.set(this,void 0),rs.set(this,void 0),ss.set(this,void 0),ns.set(this,new Map),ls.set(this,void 0),cs.set(this,t=>e(this,os,"m",us).call(this,t)),ds.set(this,t=>e(this,os,"m",vs).call(this,t)),hs.set(this,t=>e(this,os,"m",bs).call(this,t)),ms.set(this,t=>e(this,os,"m",fs).call(this,t)),ps.set(this,t=>e(this,os,"m",gs).call(this,t)),a(this,is,o.capture,"f"),a(this,rs,o.callback,"f"),a(this,ss,o.isPressedKey,"f"),a(this,ls,o.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",e(this,ds,"f"),{capture:e(this,is,"f")}),document.addEventListener("touchend",e(this,hs,"f"),{capture:e(this,is,"f")}),document.addEventListener("touchcancel",e(this,hs,"f"),{capture:e(this,is,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",e(this,ds,"f"),{capture:e(this,is,"f")}),document.removeEventListener("touchend",e(this,hs,"f"),{capture:e(this,is,"f")}),document.removeEventListener("touchcancel",e(this,hs,"f"),{capture:e(this,is,"f")}),super.hostDisconnected(),e(this,ns,"f").clear()}_observe(t){t.addEventListener("pointerdown",e(this,cs,"f"),{capture:e(this,is,"f")}),e(this,ss,"f")&&(t.addEventListener("keydown",e(this,ms,"f"),{capture:e(this,is,"f")}),t.addEventListener("keyup",e(this,ps,"f"),{capture:e(this,is,"f")}))}_unobserve(t){t.removeEventListener("pointerdown",e(this,cs,"f"),{capture:e(this,is,"f")}),e(this,ss,"f")&&(t.removeEventListener("keydown",e(this,ms,"f"),{capture:e(this,is,"f")}),t.removeEventListener("keyup",e(this,ps,"f"),{capture:e(this,is,"f")}))}}is=new WeakMap,rs=new WeakMap,ss=new WeakMap,ns=new WeakMap,ls=new WeakMap,cs=new WeakMap,ds=new WeakMap,hs=new WeakMap,ms=new WeakMap,ps=new WeakMap,os=new WeakSet,us=function(t){if(!("mouse"===t.pointerType&&t.button>1))for(const a of t.composedPath())if(a instanceof HTMLElement&&this.isObserving(a)){e(this,ns,"f").has(a)||(e(this,ns,"f").set(a,performance.now()),e(this,rs,"f").call(this,!0,{x:t.x,y:t.y},a));break}},vs=function(t){"mouse"===t.pointerType&&t.button>1||e(this,os,"m",ys).call(this,t.x,t.y)},bs=function(t){e(this,os,"m",ys).call(this,t.changedTouches[0]?.clientX??0,t.changedTouches[0]?.clientY??0)},fs=function(t){if(t.target!==t.currentTarget)return;const a=t.currentTarget;if(e(this,ss,"f")?.call(this,t.key)&&(" "===t.key&&t.preventDefault(),!e(this,ns,"f").has(a))){e(this,ns,"f").set(a,performance.now());const t=a.getBoundingClientRect();e(this,rs,"f").call(this,!0,{x:t.x+t.width/2,y:t.y+t.height/2},a)}},gs=function(t){const a=t.target;if(e(this,ns,"f").has(a)&&e(this,ss,"f")?.call(this,t.key)){const t=e(this,ls,"f")-(performance.now()-e(this,ns,"f").get(a)),o=a.getBoundingClientRect();t>0?setTimeout(()=>{e(this,ns,"f").delete(a),e(this,rs,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a)},t):(e(this,ns,"f").delete(a),e(this,rs,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a))}},ys=function(t,a){for(const o of e(this,ns,"f")){const i=e(this,ls,"f")-(performance.now()-o[1]);i>0?setTimeout(()=>{e(this,ns,"f").delete(o[0]),e(this,rs,"f").call(this,!1,{x:t,y:a},o[0])},i):(e(this,ns,"f").delete(o[0]),e(this,rs,"f").call(this,!1,{x:t,y:a},o[0]))}};class tn extends _s{constructor(t,o){super(t,o),$s.set(this,void 0),xs.set(this,void 0),ws.set(this,void 0),ks.set(this,void 0),Cs.set(this,!0),a(this,$s,o.callback,"f"),a(this,xs,o.skipInitial??!1,"f"),a(this,ws,o.config,"f"),l||(window.ResizeObserver?a(this,ks,new ResizeObserver((t,a)=>e(this,$s,"f").call(this,t,a)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){e(this,ks,"f")&&!e(this,xs,"f")&&e(this,Cs,"f")&&e(this,$s,"f").call(this,[],e(this,ks,"f")),a(this,Cs,!1,"f")}_observe(t){e(this,ks,"f")?.observe(t,e(this,ws,"f")),a(this,Cs,!0,"f")}_unobserve(t){e(this,ks,"f")?.unobserve(t)}}$s=new WeakMap,xs=new WeakMap,ws=new WeakMap,ks=new WeakMap,Cs=new WeakMap;const an=e=>(t,a)=>{const o=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};a?a.addInitializer(o):o()};function on(e){const t=Symbol("_id");return(a,o,i)=>{const r=i.value;return i.value=function(...a){clearTimeout(this[t]),this[t]=setTimeout(()=>r.apply(this,a),e)},i}}var rn,sn,nn,ln,cn,dn,hn,mn,pn,un,vn,bn,fn,gn;class yn extends _s{constructor(t,o){super(t,o),rn.add(this),sn.set(this,void 0),nn.set(this,void 0),ln.set(this,t=>e(this,rn,"m",hn).call(this,t)),cn.set(this,new Map),a(this,sn,!0===o.debounce,"f"),a(this,nn,o.callback,"f")}getScrollContainers(t){return e(this,cn,"f").get(t)}_observe(t){const a=e(this,rn,"m",dn).call(this,t);if(a.length>0){e(this,cn,"f").set(t,a);for(const t of a)(t===document.documentElement?document:t).addEventListener("scroll",e(this,ln,"f"),{passive:!0})}}_unobserve(t){if(e(this,cn,"f").has(t)){for(const a of e(this,cn,"f").get(t))(a===document.documentElement?document:a).removeEventListener("scroll",e(this,ln,"f"));e(this,cn,"f").delete(t)}}_debounceCallback(t){e(this,nn,"f").call(this,t)}}sn=new WeakMap,nn=new WeakMap,ln=new WeakMap,cn=new WeakMap,rn=new WeakSet,dn=function(e){const t=new Array;let a=e;for(;a;){const e=getComputedStyle(a);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(a),a=a.parentElement}return t},hn=function(t){const a=t.target===document?document.documentElement:t.target;e(this,sn,"f")?this._debounceCallback(a):e(this,nn,"f").call(this,a)},t([on(40)],yn.prototype,"_debounceCallback",null);class $n{constructor(e){mn.add(this),pn.set(this,!1),un.set(this,0),vn.set(this,0),bn.set(this,""),fn.set(this,""),e.addController(this)}lock(){e(this,pn,"f")||(a(this,pn,!0,"f"),a(this,un,window.scrollY,"f"),a(this,vn,window.scrollX,"f"),a(this,bn,document.documentElement.style.overflow,"f"),a(this,fn,document.documentElement.style.scrollbarGutter,"f"),e(this,mn,"m",gn).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(e(this,vn,"f"),e(this,un,"f")))}unlock(){e(this,pn,"f")&&(a(this,pn,!1,"f"),document.documentElement.style.overflow=e(this,bn,"f"),document.documentElement.style.scrollbarGutter=e(this,fn,"f"),window.scrollTo(e(this,vn,"f"),e(this,un,"f")))}hostDisconnected(){this.unlock()}}pn=new WeakMap,un=new WeakMap,vn=new WeakMap,bn=new WeakMap,fn=new WeakMap,mn=new WeakSet,gn=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const xn={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},wn="important",kn=" !"+wn;const Cn=Ve(class extends Re{constructor(e){if(super(e),e.type!==Ne.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return n}update(e,[t]){const{style:a}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?a.removeProperty(e):a[e]=null);for(const e in t){const o=t[e];if(null!=o){this._previousStyleProperties.add(e);const t="string"==typeof o&&o.endsWith(kn);e.includes("-")||t?a.setProperty(e,t?o.slice(0,-11):o,t?wn:""):a[e]=o}}return c}});function Sn(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const _n=Symbol("internals");function Ln(e){return Sn(e,_n)}const zn=Symbol("_internals"),En=Symbol("_customState");function Mn(e,t){var a;class o extends e{constructor(){super(...arguments),this[a]=new Set}get[(a=En,_n)](){return this[zn]??(this[zn]=this.attachInternals())}}return o.formAssociated=t,o}function Tn(e,t){return En in e?e[En].has(t):e[_n].states.has(t)}function Pn(e,t){En in e&&e[En].add(t),e[_n]?.states.add(t),e[_n]?.states.has(t)}function In(e,t){return En in e&&e[En].delete(t),!!e[_n]?.states.delete(t)&&(e[_n]?.states.has(t),!0)}function Wn(e,t,a){a?Pn(e,t):In(e,t)}function An(e){return Sn(e,"checked")}function Hn(e){class a extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"checked",void 0),a}function On(e){return Sn(e,"indeterminate")&&An(e)}function Dn(e){class a extends(Hn(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"indeterminate",void 0),a}function Bn(e){return Sn(e,"selected")}function qn(e){class a extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"selected",void 0),a}function Fn(e){return An(e)||Bn(e)}function Vn(e){return An(e)&&e.checked||Bn(e)&&e.selected}function Rn(e,t){An(e)?e.checked=t:e.selected=t}function Nn(e){return Sn(e,"dirty","pristine","markAsDirty","markAsPristine")}const Un=Symbol("_eventHandler");function jn(e){var t;return t=Un,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return Tn(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[Un])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[Un])}markAsPristine(){In(this,"-dirty")}markAsDirty(){Pn(this,"-dirty")}}}function Kn(e){return Sn(e,"touched","untouched","markAsTouched","markAsUntouched")}const Zn=Symbol("_eventHandler");function Gn(e){var t;return t=Zn,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return Tn(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[Zn],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Zn],{capture:!0})}markAsTouched(){Pn(this,"-touched")}markAsUntouched(){In(this,"-touched")}}}const Xn={primary:o("var(--md-sys-color-primary, #6750A4)"),onPrimary:o("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:o("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:o("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:o("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:o("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:o("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:o("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:o("var(--md-sys-color-secondary, #625B71)"),onSecondary:o("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:o("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:o("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:o("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:o("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:o("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:o("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:o("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:o("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:o("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:o("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:o("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:o("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:o("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:o("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:o("var(--md-sys-color-error, #B3261E)"),onError:o("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:o("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:o("var(--md-sys-color-on-error-container, #8C1D18)"),surface:o("var(--md-sys-color-surface, #FEF7FF)"),onSurface:o("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:o("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:o("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:o("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:o("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:o("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:o("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:o("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:o("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:o("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:o("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:o("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:o("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:o("var(--md-sys-color-outline, #79747E)"),outlineVariant:o("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:o("var(--md-sys-color-shadow, #000000)"),scrim:o("var(--md-sys-color-scrim, #000000)")},Yn={scale:o("var(--md-sys-density-scale, 0)"),size:o("var(--md-sys-density-size, 0.25rem)")},Jn={...Yn,calc:e=>o(`calc(max(${e}, ${Yn.scale}) * ${Yn.size})`)},Qn=`color-mix(in srgb, var(--m3e-elevation-color, ${Xn.shadow}) 20%, transparent)`,el=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],tl=`color-mix(in srgb, var(--m3e-elevation-color, ${Xn.shadow}) 14%, transparent)`,al=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],ol=`color-mix(in srgb, var(--m3e-elevation-color, ${Xn.shadow}) 12%, transparent)`,il=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function rl(e){return`${Qn} ${el[e]},${tl} ${al[e]},${ol} ${il[e]}`}const sl={level0:o(`var(--md-sys-elevation-level0, ${rl(0)})`),level1:o(`var(--md-sys-elevation-level1, ${rl(1)})`),level2:o(`var(--md-sys-elevation-level2, ${rl(3)})`),level3:o(`var(--md-sys-elevation-level3, ${rl(6)})`),level4:o(`var(--md-sys-elevation-level4, ${rl(8)})`),level5:o(`var(--md-sys-elevation-level5, ${rl(12)})`)},nl={emphasized:o("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:o("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:o("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:o("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:o("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:o("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},ll={fastSpatial:o("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:o("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:o("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:o("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:o("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:o("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},cl={easing:nl,duration:{short1:o("var(--md-sys-motion-duration-short-1, 50ms)"),short2:o("var(--md-sys-motion-duration-short-2, 100ms)"),short3:o("var(--md-sys-motion-duration-short-3, 150ms)"),short4:o("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:o("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:o("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:o("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:o("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:o("var(--md-sys-motion-duration-long-1, 450ms)"),long2:o("var(--md-sys-motion-duration-long-2, 500ms)"),long3:o("var(--md-sys-motion-duration-long-3, 550ms)"),long4:o("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:o("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:o("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:o("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:o("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:ll},dl={width:o("var(--m3e-scrollbar-width, auto)"),thinWidth:o("var(--m3e-scrollbar-thin-width, thin)"),color:o("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},hl={none:o("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:o("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:o("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:o("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:o("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:o("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:o("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:o("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:o("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},ml={color:Xn,elevation:sl,motion:cl,shape:{corner:{full:o("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:o(`var(--md-sys-shape-corner-extra-large-top, ${hl.extraLarge} ${hl.extraLarge} ${hl.none} ${hl.none})`),extraLarge:o(`var(--md-sys-shape-corner-extra-large, ${hl.extraLarge})`),extraLargeEnd:o(`${hl.none} ${hl.extraLarge} ${hl.extraLarge} ${hl.none}`),extraLargeStart:o(`${hl.extraLarge} ${hl.none} ${hl.none} ${hl.extraLarge}`),largeTop:o(`var(--md-sys-shape-corner-large-top, ${hl.large} ${hl.large} ${hl.none} ${hl.none})`),largeEnd:o(`var(--md-sys-shape-corner-large-end, ${hl.none} ${hl.large} ${hl.large} ${hl.none})`),largeStart:o(`var(--md-sys-shape-corner-large-end, ${hl.large} ${hl.none} ${hl.none} ${hl.large})`),large:o(`var(--md-sys-shape-corner-large, ${hl.large})`),medium:o(`var(--md-sys-shape-corner-medium, ${hl.medium})`),mediumTop:o(`${hl.medium} ${hl.medium} ${hl.none} ${hl.none}`),mediumEnd:o(`${hl.none} ${hl.medium} ${hl.medium} ${hl.none}`),mediumStart:o(`${hl.medium} ${hl.none} ${hl.none} ${hl.medium}`),small:o(`var(--md-sys-shape-corner-small, ${hl.small})`),smallTop:o(`${hl.small} ${hl.small} ${hl.none} ${hl.none}`),smallEnd:o(`${hl.none} ${hl.small} ${hl.small} ${hl.none}`),smallStart:o(`${hl.small} ${hl.none} ${hl.none} ${hl.small}`),extraSmallTop:o(`var(--md-sys-shape-corner-extra-small-top, ${hl.extraSmall} ${hl.extraSmall} ${hl.none} ${hl.none})`),extraSmall:o(`var(--md-sys-shape-corner-extra-small, ${hl.extraSmall})`),extraSmallEnd:o(`${hl.none} ${hl.extraSmall} ${hl.extraSmall} ${hl.none}`),extraSmallStart:o(`${hl.extraSmall} ${hl.none} ${hl.none} ${hl.extraSmall}`),extraSmallBottom:o(`${hl.none} ${hl.none} ${hl.extraSmall} ${hl.extraSmall}`),none:o(`var(--md-sys-shape-corner-none, ${hl.none})`),largeIncreased:o(`var(--md-sys-shape-corner-large-increased, ${hl.largeIncreased})`),extraLargeIncreased:o(`var(--md-sys-shape-corner-extra-large-increased, ${hl.extraLargeIncreased})`),extraExtraLarge:o(`var(--md-sys-shape-corner-extra-extra-large, ${hl.extraExtraLarge})`),value:hl}},state:{focusStateLayerOpacity:o("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:o("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:o("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:o("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:o("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:dl,density:Jn};function pl(e){return Sn(e,"disabled")}function ul(e,a=!0){class o extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return t([m({type:Boolean,reflect:a})],o.prototype,"disabled",void 0),o}function vl(e){return Sn(e,"disabledInteractive")&&pl(e)}const bl=["click","dblclick","auxclick","keydown","keyup"],fl=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],gl=Symbol("_suppressedEventHandler");function yl(e){var a;class o extends e{constructor(){super(...arguments),this[a]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&fl.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){bl.forEach(e=>this.addEventListener(e,this[gl],!0)),super.connectedCallback()}disconnectedCallback(){bl.forEach(e=>this.removeEventListener(e,this[gl],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return a=gl,t([m({attribute:"disabled-interactive",type:Boolean,reflect:!0})],o.prototype,"disabledInteractive",void 0),o}const $l=Symbol("updateLabels");function xl(e){return Sn(e,"labels")&&Ln(e)}const wl=Symbol("_eventHandler");function kl(e){var t;class a extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[$l]()}}get labels(){return this[_n].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[wl]),this.addEventListener("change",this[wl])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[wl]),this.removeEventListener("change",this[wl])}update(e){super.update(e),this[$l]()}[(t=wl,$l)](){const e=this.hasAttribute("tabindex"),t=pl(this)&&this.disabled||vl(this)&&this.disabledInteractive,a=Kn(this)&&this.touched&&(this.ariaInvalid||Tn(this,"-invalid"));for(const o of this.labels??[])o.style.userSelect=e?"none":"",o.style.cursor=!t&&e?"pointer":"",!t&&e?o.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):o.style.removeProperty("-webkit-tap-highlight-color"),o.style.color=t?`color-mix(in srgb, ${ml.color.onSurface} 38%, transparent)`:a?`${ml.color.error}`:""}}return a.formAssociated=!0,a}const Cl=Symbol("formValue"),Sl=Symbol("defaultValue");function _l(e){return Sn(e,"disabled","form","name")&&xl(e)&&Ln(e)}const Ll=Symbol("_defaultValue"),zl=Symbol("_defaultIndeterminate"),El=Symbol("_formDisabled");function Ml(e){var a,o;class i extends e{constructor(){super(...arguments),this[a]=!1,this[o]=!1}get form(){return this[_n].form}get labels(){return this[_n].labels}get[(a=zl,o=El,Cl)](){return null}get[Sl](){return this[Ll]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[El]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),An(this)?(this[Ll]=this.checked,On(this)&&(this[zl]=this.indeterminate)):"value"in this&&(this[Ll]=this.value)}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[_n].setFormValue(this[Cl])}formDisabledCallback(e){const t=this.disabled;this[El]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){An(this)?(this.checked=!0===this[Ll],On(this)&&(this.indeterminate=this[zl])):"value"in this&&(this.value=this[Sl]),Nn(this)&&this.markAsPristine(),Kn(this)&&this.markAsUntouched()}}return i.formAssociated=!0,t([m({noAccessor:!0})],i.prototype,"name",null),t([m({type:Boolean})],i.prototype,"disabled",null),i}const Tl=Symbol("validate");function Pl(e){return Sn(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&_l(e)}const Il=Symbol("_updateValidity"),Wl=Symbol("_validityMessage");function Al(t){var a,o;class i extends t{constructor(){super(...arguments),a.add(this)}get willValidate(){return this[_n].willValidate}get validity(){return this[Il](),this[_n].validity}get validationMessage(){return this[Il](),this[_n].validationMessage}[(a=new WeakSet,Tl)](){return this[Wl]?{customError:!0}:void 0}reportValidity(){return Kn(this)&&this.markAsTouched(),this[Il](),this[_n].reportValidity()}checkValidity(){return this[Il](),this[_n].checkValidity()}setCustomValidity(e){this[Wl]=e||void 0,this[Il]()}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[Il]()}firstUpdated(e){super.firstUpdated(e),this[Il]()}[Il](){if(l||!this.isConnected)return;const t=this[Tl](),i=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[Wl]:"";t&&!r&&(r=e(this,a,"m",o).call(this,t)),this[_n].setValidity(t,r),this.ariaInvalid=i?"true":null,Wn(this,"-invalid",!0===i),xl(this)&&this[$l]?.()}}return o=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},i}function Hl(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Ol=Symbol("_tabindex");function Dl(e){var t;return t=Ol,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Ol]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Ol]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Ol]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Ol]}`)}}}function Bl(e){return Sn(e,"name","type","value")&&Ln(e)}const ql=Symbol("_clickHandler");function Fl(e){var a;class o extends e{constructor(){super(...arguments),this.type="button",this[a]=async e=>{if(e.defaultPrevented||pl(this)&&this.disabled||vl(this)&&this.disabledInteractive)return;const t=this[_n].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[_n].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[ql])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[ql])}}return a=ql,o.formAssociated=!0,t([m()],o.prototype,"name",null),t([m()],o.prototype,"value",null),t([m()],o.prototype,"type",void 0),o}function Vl(e){return Sn(e,"htmlFor","control","attach","detach")}const Rl=Symbol("_control"),Nl=Symbol("_firstUpdated");function Ul(e){var a;class o extends e{constructor(){super(...arguments),this[a]=!1,this.htmlFor=null}get control(){return this[Rl]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[Rl]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[Rl];e&&(this.detach(),this[Rl]=e)}firstUpdated(e){super.firstUpdated(e),this[Nl]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&Us(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[Nl]&&this.detach()}attach(e){this[Rl]=new WeakRef(e)}detach(){this[Rl]=void 0}}return a=Nl,t([m({attribute:"for"})],o.prototype,"htmlFor",void 0),o}function jl(t,o=!0){var i,r,s,n,l,c,d;return r=new WeakMap,s=new WeakMap,n=new WeakMap,l=new WeakMap,i=new WeakSet,c=function(e){e.target!==e.currentTarget||pl(this)&&this.disabled||vl(this)&&this.disabledInteractive?a(this,r,!1,"f"):(" "===e.key||o&&"Enter"===e.key)&&a(this,r,!0,"f")},d=function(t){t.target!==t.currentTarget||pl(this)&&this.disabled||vl(this)&&this.disabledInteractive||!e(this,r,"f")?a(this,r,!1,"f"):(a(this,r,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends t{constructor(){super(...arguments),i.add(this),r.set(this,!1),s.set(this,t=>e(this,i,"m",c).call(this,t)),n.set(this,t=>e(this,i,"m",d).call(this,t)),l.set(this,()=>a(this,r,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,s,"f")),this.addEventListener("keyup",e(this,n,"f")),this.addEventListener("focusout",e(this,l,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,s,"f")),this.removeEventListener("keyup",e(this,n,"f")),this.removeEventListener("focusout",e(this,l,"f"))}}}const Kl=Symbol("renderPseudoLink");function Zl(e){return Sn(e,"download","href","rel","target")}const Gl=Symbol("_clickHandler");function Xl(a){var o,i,r,l,c;class d extends a{constructor(){super(...arguments),o.add(this),this[c]=async e=>{if(vl(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Gl]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Gl])}[(o=new WeakSet,c=Gl,Kl)](){const t=pl(this)&&this.disabled,a=vl(this)&&this.disabledInteractive;return t||a||!this.href?n:s`<a href="${this.href}" target="${Fe(this.target||void 0)}" rel="${Fe(this.rel||void 0)}" download="${Fe(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${e(this,o,"m",i)}" @focus="${e(this,o,"m",r)}" @blur="${e(this,o,"m",l)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},l=function(e){e.target.setAttribute("aria-hidden","true")},t([m()],d.prototype,"href",void 0),t([m()],d.prototype,"target",void 0),t([m()],d.prototype,"rel",void 0),t([m({reflect:!1})],d.prototype,"download",null),d}function Yl(e){return Sn(e,"readOnly")}function Jl(e,a=!0){class o extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return t([m({attribute:"readonly",type:Boolean,reflect:a})],o.prototype,"readOnly",void 0),o}const Ql=Symbol("_wasConnected");function ec(e){var t;return t=Ql,class extends e{constructor(){super(...arguments),this[t]=!1}reconnectedCallback(){}connectedCallback(){super.connectedCallback(),this[Ql]&&this.reconnectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this[Ql]=!0}}}function tc(e){return Sn(e,"required","optional")}function ac(e){class a extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"required",void 0),a}function oc(e){return tc(e)&&Pl(e)}function ic(e){return class extends e{[Tl](){const e=super[Tl]();if(!e&&this.required){if(An(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function rc(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function sc(e){return class extends e{connectedCallback(){super.connectedCallback(),Pn(this,"-no-animate"),requestAnimationFrame(()=>In(this,"-no-animate"))}}}function nc(e){return Sn(e,"vertical")}function lc(e){class a extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return t([m({type:Boolean,reflect:!0})],a.prototype,"vertical",void 0),a}var cc,dc,hc,mc,pc,uc,vc,bc;class fc extends r{constructor(){super(...arguments),cc.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",e(this,cc,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",e(this,cc,"f"))}render(){return s`<slot></slot>`}}cc=new WeakMap,fc.styles=i`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let gc=class extends(Hl(Mn(r),"opening","opened","closing","closed")){constructor(){super(...arguments),dc.add(this),hc.set(this,!1),mc.set(this,!1),this.open=!1}update(t){if(super.update(t),Pn(this,"-no-animate"),!e(this,hc,"f"))return this.open&&(a(this,mc,!0,"f"),e(this,dc,"m",uc).call(this)),void a(this,hc,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(a(this,mc,!0,"f"),Ns()||(e(this,dc,"m",uc).call(this),Wn(this,"-overflows",this.clientHeight<this.scrollHeight),e(this,dc,"m",vc).call(this)),In(this,"-closing"),Pn(this,"-opening"),this.dispatchEvent(new Event("opening")),e(this,dc,"m",vc).call(this),In(this,"-no-animate"),e(this,dc,"m",bc).call(this),Ns()?(e(this,dc,"m",uc).call(this),In(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(e(this,dc,"m",uc).call(this),In(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(In(this,"-opening"),Pn(this,"-closing"),this.dispatchEvent(new Event("closing")),e(this,dc,"m",bc).call(this),e(this,mc,"f")&&In(this,"-no-animate"),Ns()?(e(this,dc,"m",vc).call(this),In(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{e(this,dc,"m",vc).call(this),this.addEventListener("transitionend",()=>{this.open||(In(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return s`<slot @slotchange="${e(this,dc,"m",pc)}"></slot>`}};hc=new WeakMap,mc=new WeakMap,dc=new WeakSet,pc=function(){a(this,hc,!0,"f")},uc=function(){this.style.height="auto"},vc=function(){this.style.height=""},bc=function(){this.style.height=`${this.scrollHeight}px`},gc.styles=i`:host { display: block; height: 0px; overflow: hidden; transition: ${o(`visibility var(--m3e-collapsible-animation-duration, ${ml.motion.duration.medium1})\n ${ml.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${ml.motion.duration.medium1})\n ${ml.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${ml.motion.duration.medium1})\n ${ml.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${ml.motion.duration.medium1})\n ${ml.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,t([m({type:Boolean,reflect:!0})],gc.prototype,"open",void 0),gc=t([an("m3e-collapsible")],gc);const yc=o(`var(--m3e-elevation-lift-duration, ${ml.motion.duration.short4})`),$c=o(`var(--m3e-elevation-lift-easing, ${ml.motion.easing.standard})`),xc=o(`var(--m3e-elevation-settle-duration, ${ml.motion.duration.short3})`),wc=o(`var(--m3e-elevation-settle-easing, ${ml.motion.easing.standardAccelerate})`),kc=o(`var(--m3e-elevation-level, ${ml.elevation.level0})`),Cc=o(`var(--m3e-elevation-hover-level, ${ml.elevation.level0})`),Sc=o(`var(--m3e-elevation-focus-level, ${ml.elevation.level0})`),_c=o(`var(--m3e-elevation-pressed-level, ${ml.elevation.level0})`);var Lc,zc,Ec,Mc,Tc,Pc,Ic;let Wc=class extends(Ul(rc(r,"none"))){constructor(){super(...arguments),Lc.add(this),zc.set(this,new Xs(this,{target:null,callback:t=>e(this,Lc,"m",Tc).call(this,t)})),Ec.set(this,new Gs(this,{target:null,callback:t=>e(this,Lc,"m",Pc).call(this,t)})),Mc.set(this,new en(this,{target:null,callback:t=>e(this,Lc,"m",Ic).call(this,t)})),this.disabled=!1,this.level=null}attach(t){super.attach(t),e(this,zc,"f").observe(t),e(this,Ec,"f").observe(t),e(this,Mc,"f").observe(t)}detach(){this.control&&(e(this,zc,"f").unobserve(this.control),e(this,Ec,"f").unobserve(this.control),e(this,Mc,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return s`<div class="shadow"></div>`}};zc=new WeakMap,Ec=new WeakMap,Mc=new WeakMap,Lc=new WeakSet,Tc=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Pc=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},Ic=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Wc.styles=i`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${o(`box-shadow ${xc} ${wc};`)}; } .shadow.hover { will-change: box-shadow; transition: ${o(`box-shadow ${yc} ${$c};`)}; } .shadow { box-shadow: ${kc}; } .shadow.focus { box-shadow: ${Sc}; } .shadow.hover { box-shadow: ${Cc}; } .shadow.pressed { box-shadow: ${_c}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${ml.elevation.level0}; --m3e-elevation-hover-level: ${ml.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${ml.elevation.level1}; --m3e-elevation-hover-level: ${ml.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${ml.elevation.level2}; --m3e-elevation-hover-level: ${ml.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${ml.elevation.level3}; --m3e-elevation-hover-level: ${ml.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${ml.elevation.level4}; --m3e-elevation-hover-level: ${ml.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${ml.elevation.level5}; --m3e-elevation-hover-level: ${kc}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${kc}; --m3e-elevation-pressed-level: ${kc}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,t([h(".shadow")],Wc.prototype,"_shadow",void 0),t([m({type:Boolean,reflect:!0})],Wc.prototype,"disabled",void 0),t([m({type:Number,reflect:!0})],Wc.prototype,"level",void 0),Wc=t([an("m3e-elevation")],Wc);const Ac=o(`var(--m3e-focus-ring-color, ${ml.color.secondary})`),Hc=o(`var(--m3e-focus-ring-duration, ${ml.motion.duration.long2})`),Oc=o("var(--m3e-focus-ring-thickness, 3px)"),Dc=o("var(--m3e-focus-ring-outward-offset, 2px)"),Bc=o("var(--m3e-focus-ring-inward-offset, 0px)"),qc=o("var(--m3e-focus-ring-visibility, visible)"),Fc=o("var(--m3e-focus-ring-growth-factor, 2)");var Vc,Rc,Nc;let Uc=class extends(Ul(rc(r,"none"))){constructor(){super(...arguments),Vc.add(this),Rc.set(this,new Gs(this,{target:null,callback:(t,a)=>e(this,Vc,"m",Nc).call(this,a)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(t){super.attach(t),e(this,Rc,"f").observe(t)}detach(){this.control&&e(this,Rc,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return s`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Rc=new WeakMap,Vc=new WeakSet,Nc=function(e){this.disabled||(e?this.show():this.hide())},Uc.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${Ac}; outline-width: ${Oc}; visibility: ${qc}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Dc}; } :host([inward]) .outline { outline-offset: calc(${Bc} - ${Oc}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Hc}; } :host([inward]) .outline.visible { animation: shrink-grow ${Hc}; } @keyframes grow-shrink { 50% { outline-width: calc(${Oc} * ${Fc}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Bc} - calc(${Oc} * ${Fc}) ); outline-width: calc(${Oc} * ${Fc}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,t([h(".outline")],Uc.prototype,"_outline",void 0),t([m({type:Boolean,reflect:!0})],Uc.prototype,"inward",void 0),t([m({type:Boolean,reflect:!0})],Uc.prototype,"disabled",void 0),Uc=t([an("m3e-focus-ring")],Uc);let jc=class extends(Dn(ul(rc(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n}};jc.styles=i`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${ml.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${ml.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${ml.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${ml.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${ml.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${ml.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,jc=t([an("m3e-pseudo-checkbox")],jc);let Kc=class extends(Hn(ul(rc(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};Kc.styles=i`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${ml.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${ml.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${ml.color.onSurface}) 38%, transparent); }`,Kc=t([an("m3e-pseudo-radio")],Kc);const Zc=o(`var(--m3e-ripple-color, ${ml.color.onSurface})`),Gc=o(`var(--m3e-ripple-opacity, ${ml.state.pressedStateLayerOpacity})`),Xc=o(`var(--m3e-ripple-enter-duration, ${ml.motion.duration.long4})`),Yc=o(`var(--m3e-ripple-exit-duration, ${ml.motion.duration.short2})`),Jc=o("var(--m3e-ripple-scale-factor, 2.5)");var Qc,ed,td,ad,od,id;let rd=class extends(Ul(rc(r,"none"))){constructor(){super(...arguments),Qc.add(this),ed.set(this,null),td.set(this,new en(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,{x:a,y:o})=>e(this,Qc,"m",id).call(this,t,a,o)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==e(this,ed,"f")}show(t,o,i=!1){e(this,Qc,"m",ad).call(this);const r=this.getBoundingClientRect();this.centered&&(t=r.left+r.width/2,o=r.top+r.height/2);let s=this.radius;if(!s||isNaN(s)){const e=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),a=Math.max(Math.abs(o-r.top),Math.abs(o-r.bottom));s=Math.sqrt(e*e+a*a)}const n=t-r.left,l=o-r.top;a(this,ed,document.createElement("div"),"f"),e(this,ed,"f").classList.add("ripple"),i&&e(this,ed,"f").classList.add("persistent"),e(this,ed,"f").style.left=n-s+"px",e(this,ed,"f").style.top=l-s+"px",e(this,ed,"f").style.width=2*s+"px",e(this,ed,"f").style.height=2*s+"px",e(this,ed,"f").addEventListener("animationend",()=>e(this,Qc,"m",od).call(this,i),{once:!0}),e(this,ed,"f").addEventListener("transitionend",()=>e(this,Qc,"m",ad).call(this),{once:!0}),this.shadowRoot?.appendChild(e(this,ed,"f"))}hide(){e(this,ed,"f")?.classList.add("exit")}attach(t){super.attach(t),e(this,td,"f").observe(t)}detach(){this.control&&e(this,td,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,Qc,"m",ad).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var sd;ed=new WeakMap,td=new WeakMap,Qc=new WeakSet,ad=function(){e(this,ed,"f")?.remove(),a(this,ed,null,"f")},od=function(t){t?e(this,ed,"f")?.classList.add("pressed"):this.hide()},id=function(e,t,a){this.disabled||(e?this.show(t,a,!0):this.hide())},rd.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${ml.shape.corner.full}; background-color: color-mix(in srgb, ${Zc} ${Gc}, transparent); will-change: background-color, opacity; animation: ripple ${Xc} linear; } .ripple.persistent.pressed { transform: scale(${Jc}); } .ripple.exit { transition: opacity ${Yc} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Jc}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Jc}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,t([m({type:Boolean,reflect:!0})],rd.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],rd.prototype,"centered",void 0),t([m({type:Boolean,reflect:!0})],rd.prototype,"unbounded",void 0),t([m({type:Number})],rd.prototype,"radius",void 0),rd=t([an("m3e-ripple")],rd);let nd=class extends(Mn(r)){constructor(){super(...arguments),sd.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",e(this,sd,"f"))}update(t){super.update(t),t.has("dividers")&&(this.removeEventListener("scroll",e(this,sd,"f")),"none"!==this.dividers&&this.addEventListener("scroll",e(this,sd,"f"),{passive:!0}))}render(){return s`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;Wn(this,"-above",e),Wn(this,"-below",t)}};var ld,cd,dd,hd;sd=new WeakMap,nd.styles=i`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${ml.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Ac}; outline-width: ${Oc}; outline-offset: ${Dc}; } :host([thin]) { scrollbar-width: ${ml.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${ml.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${ml.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${ml.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Hc}; } @keyframes grow-shrink { 50% { outline-width: calc(${Oc} * ${Fc}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,t([m()],nd.prototype,"dividers",void 0),t([m({type:Boolean,reflect:!0})],nd.prototype,"thin",void 0),t([on(40)],nd.prototype,"_updateScroll",null),nd=t([an("m3e-scroll-container")],nd);let md=class extends(Mn(r)){constructor(){super(...arguments),ld.add(this),cd.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Pn(this,"-no-animate")}update(t){super.update(t),t.has("selectedIndex")&&(null===this.selectedIndex&&Pn(this,"-no-animate"),e(this,ld,"m",hd).call(this),null!==this.selectedIndex&&Tn(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&In(this,"-no-animate")}))}render(){return s`<slot @slotchange="${e(this,ld,"m",dd)}"></slot>`}};cd=new WeakMap,ld=new WeakSet,dd=function(t){const o=[...t.target.assignedElements({flatten:!0})];for(const t of e(this,cd,"f").filter(e=>!o.includes(e)))t.classList.remove("-before"),t.classList.remove("-after"),t.removeAttribute("inert");a(this,cd,o,"f"),e(this,ld,"m",hd).call(this)},hd=function(){const t=this.selectedIndex??e(this,cd,"f").length;for(let a=0;a<e(this,cd,"f").length;a++){const o=e(this,cd,"f")[a];o.classList.toggle("-before",a<t),o.classList.toggle("-after",a>t),o.toggleAttribute("inert",a!==t)}},md.styles=i`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${o(`inset-inline-start var(--m3e-slide-animation-duration, ${ml.motion.duration.long2}) ${ml.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${ml.motion.duration.long2}) ${ml.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,t([m({attribute:"selected-index",type:Number,reflect:!0})],md.prototype,"selectedIndex",void 0),md=t([an("m3e-slide")],md);const pd=o(`var(--m3e-state-layer-hover-color, ${ml.color.onSurface})`),ud=o(`var(--m3e-state-layer-hover-opacity, ${ml.state.hoverStateLayerOpacity})`),vd=o(`var(--m3e-state-layer-focus-color, ${ml.color.onSurface})`),bd=o(`var(--m3e-state-layer-focus-opacity, ${ml.state.focusStateLayerOpacity})`),fd=o(`var(--m3e-state-layer-duration, ${ml.motion.duration.medium1})`),gd=o(`var(--m3e-state-layer-easing, ${ml.motion.easing.standard})`);var yd,$d,xd,wd,kd;let Cd=class extends(Ul(rc(r,"none"))){constructor(){super(...arguments),yd.add(this),$d.set(this,new Xs(this,{target:null,callback:t=>e(this,yd,"m",wd).call(this,t)})),xd.set(this,new Gs(this,{target:null,callback:(t,a)=>e(this,yd,"m",kd).call(this,a)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(t){super.attach(t),e(this,$d,"f").observe(t),e(this,xd,"f").observe(t)}detach(){this.control&&(e(this,$d,"f").unobserve(this.control),e(this,xd,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return s`<div class="layer"></div>`}};var Sd,_d,Ld,zd,Ed,Md,Td,Pd;$d=new WeakMap,xd=new WeakMap,yd=new WeakSet,wd=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},kd=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},Cd.styles=i`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${o(`background-color ${fd} ${gd}`)}; } .layer.focused { background-color: color-mix(in srgb, ${vd} ${bd}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${pd} ${ud}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,t([h(".layer")],Cd.prototype,"_layer",void 0),t([m({type:Boolean,reflect:!0})],Cd.prototype,"disabled",void 0),t([m({attribute:"disable-hover",type:Boolean,reflect:!0})],Cd.prototype,"disableHover",void 0),Cd=t([an("m3e-state-layer")],Cd);let Id=Pd=class extends r{constructor(){super(),Sd.add(this),_d.set(this,"m3e-text-highlight-"+Pd.__nextId++),Ld.set(this,new Array),zd.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(a(this,zd,new CSSStyleSheet,"f"),e(this,zd,"f").replaceSync(i`::highlight(${o(e(this,_d,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${ml.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${ml.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(l||!CSS.highlights)}get ranges(){return e(this,Ld,"f")}firstUpdated(t){super.firstUpdated(t),this.shadowRoot&&e(this,zd,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,zd,"f"))&&this.shadowRoot.adoptedStyleSheets.push(e(this,zd,"f"))}updated(t){super.updated(t),(t.has("term")||t.has("caseSensitive")||t.has("disabled"))&&e(this,Sd,"m",Td).call(this)}render(){return s`<slot @slotchange="${e(this,Sd,"m",Td)}"></slot>`}};_d=new WeakMap,Ld=new WeakMap,zd=new WeakMap,Sd=new WeakSet,Ed=function(e){return!/^\s*$/.test(e.data)},Md=function t(a,o){a instanceof HTMLSlotElement?a.assignedNodes({flatten:!0}).forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,Sd,"m",Ed).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,Sd,"m",t).call(this,a,o)}}):a.childNodes.forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,Sd,"m",Ed).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,Sd,"m",t).call(this,a,o)}})},Td=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(e(this,_d,"f")),e(this,Ld,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ld,"f")],bubbles:!1,composed:!1}));const t=new Array;if(e(this,Sd,"m",Md).call(this,this,t),t.length>0){const o=this.caseSensitive?this.term:this.term.toLowerCase();switch(this.mode){case"starts-with":{const a=t[0];if(((this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"").startsWith(o)){const t=new Range;t.setStart(a,0),t.setEnd(a,o.length),e(this,Ld,"f").push(t)}}break;case"ends-with":{const a=t[t.length-1],i=(this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"";if(i.endsWith(o)){const t=i.length-o.length,r=t+o.length,s=new Range;s.setStart(a,t),s.setEnd(a,r),e(this,Ld,"f").push(s)}}break;case"contains":a(this,Ld,t.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:t})=>{const a=new Array;let i=0;for(;i<t.length;){const e=t.indexOf(o,i);if(-1===e)break;a.push(e),i=e+o.length}return a.map(t=>{const a=new Range;return a.setStart(e,t),a.setEnd(e,t+o.length),a})}).flat(),"f")}e(this,Ld,"f").length>0&&CSS.highlights.set(e(this,_d,"f"),new Highlight(...e(this,Ld,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,Ld,"f")],bubbles:!1,composed:!1}))},Id.styles=i`:host { display: contents; }`,Id.__nextId=0,t([m({type:Boolean,reflect:!0})],Id.prototype,"disabled",void 0),t([m()],Id.prototype,"term",void 0),t([m({attribute:"case-sensitive",type:Boolean})],Id.prototype,"caseSensitive",void 0),t([m()],Id.prototype,"mode",void 0),Id=Pd=t([an("m3e-text-highlight")],Id);let Wd=class extends r{render(){return s`<span class="base"><slot></slot></span>`}};Wd.styles=i`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Wd=t([an("m3e-text-overflow")],Wd);let Ad=class extends z{constructor(){super(...arguments),this.returnValue=""}_onClick(){this.closest("m3e-dialog")?.hide(this.returnValue)}};var Hd,Od,Dd,Bd,qd,Fd,Vd,Rd,Nd,Ud,jd,Kd;t([m({attribute:"return-value"})],Ad.prototype,"returnValue",void 0),Ad=t([$("m3e-dialog-action")],Ad);let Zd=Kd=class extends(E(P(r),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),Hd.add(this),Od.set(this,Kd.__nextId++),Dd.set(this,!1),Bd.set(this,!1),this._withActions=!1,qd.set(this,new W(this)),this.alert=!1,this.dismissible=!1,this.disableClose=!1,this.noFocusTrap=!1,this.closeLabel="Close",this.returnValue=""}get open(){return e(this,Dd,"f")}set open(t){t!==e(this,Dd,"f")&&(a(this,Dd,t,"f"),e(this,Dd,"f")?this.show():this.hide())}async show(){if(await this.updateComplete,this._base.open)return;if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);e(this,qd,"f").lock(),this._base.showModal(),this._content.scrollTop=0;const t=this.querySelector("[autofocus]");t&&H(t),this.dispatchEvent(new Event("opened"))}async hide(t=this.returnValue){if(!this.isConnected)return void(this.open=!1);if(await this.updateComplete,e(this,qd,"f").unlock(),!this._base.open)return void(this.open=!1);const a=this.returnValue;this.returnValue=t,this.dispatchEvent(new Event("closing",{cancelable:!0}))?(this.open=!1,this._base.close(t),this.dispatchEvent(new Event("closed"))):this.returnValue=a}render(){return s`<dialog class="base" role="${Fe(this.alert?"alertdialog":void 0)}" aria-labelledby="m3e-dialog-${e(this,Od,"f")}-header" .returnvalue="${this.returnValue}" @close="${e(this,Hd,"m",Vd)}" @cancel="${e(this,Hd,"m",Rd)}" @click="${e(this,Hd,"m",Nd)}" @keydown="${e(this,Hd,"m",Ud)}"><m3e-elevation level="3"></m3e-elevation><m3e-focus-trap ?disabled="${this.noFocusTrap}"><div class="header"><slot name="header" id="m3e-dialog-${e(this,Od,"f")}-header"></slot>${e(this,Hd,"m",Fd).call(this)}</div><m3e-scroll-container class="content" dividers="${this._withActions?"above-below":"above"}"><slot></slot></m3e-scroll-container><div class="actions"><slot name="actions" @slotchange="${e(this,Hd,"m",jd)}"></slot></div></m3e-focus-trap></dialog>`}};Od=new WeakMap,Dd=new WeakMap,Bd=new WeakMap,qd=new WeakMap,Hd=new WeakSet,Fd=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" class="close" @click="${this.hide}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},Vd=function(){e(this,Bd,"f")&&(a(this,Bd,!0,"f"),this._base?.dispatchEvent(new Event("cancel",{cancelable:!0})))},Rd=function(e){e.target===this._base&&(a(this,Bd,!1,"f"),e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},Nd=function(e){this.disableClose||e.target!==this._base||this.hide()},Ud=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.disableClose||this.hide())},jd=function(e){this._withActions=e.target.assignedNodes({flatten:!0}).length>0,w(this,"-with-actions",this._withActions)},Zd.styles=i`:host { display: contents; } .base { font: inherit; border: unset; outline: unset; padding: unset; display: flex; flex-direction: column; position: fixed; overflow: visible; border-radius: var(--m3e-dialog-shape, ${v.shape.corner.extraLarge}); min-width: var(--m3e-dialog-min-width, 17.5rem); max-width: var(--m3e-dialog-max-width, 35rem); color: var(--m3e-dialog-color, ${v.color.onSurface}); background-color: var(--m3e-dialog-container-color, ${v.color.surfaceContainerHigh}); visibility: hidden; opacity: 0; transform-origin: top; transform: translateY(-3.125rem) scaleY(0.8); } .base::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); margin-inline-end: -20px; } .base:not([open]) { visibility: hidden; opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.short3} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete`)}; } .base[open] { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); transition: ${o(`opacity ${v.motion.duration.long2} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.long2} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete`)}; } .base:not([open])::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base[open]::backdrop { background-color: color-mix( in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) var(--m3e-dialog-scrim-opacity, 32%), transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .base[open] { opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); } .base[open]::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); } } .header { flex: none; display: flex; align-items: center; padding: 1.5rem 1.5rem 1rem 1.5rem; background-color: var(--m3e-dialog-header-container-color, transparent); } ::slotted([slot="header"]) { margin: unset; flex: 1 1 auto; color: var(--m3e-dialog-header-color, inherit); font-size: var(--m3e-dialog-header-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-dialog-header-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-dialog-header-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-dialog-header-tracking, ${v.typescale.standard.headline.small.tracking}); } .content { padding-inline: 1.5rem; color: var(--m3e-dialog-content-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-dialog-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-dialog-content-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-dialog-content-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-dialog-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .actions { padding: 1.5rem; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } :host(:not(:state(-with-actions))) .content { margin-bottom: 1.5rem; } :host(:not(:state(-with-actions))) .actions { display: none; } .close { margin-inline-start: 0.5rem; } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } } @media (prefers-reduced-motion) { .base:not([open]), .base[open], .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } }`,Zd.__nextId=0,t([u()],Zd.prototype,"_withActions",void 0),t([h(".base")],Zd.prototype,"_base",void 0),t([h(".content")],Zd.prototype,"_content",void 0),t([m({type:Boolean})],Zd.prototype,"alert",void 0),t([m({type:Boolean,reflect:!0})],Zd.prototype,"open",null),t([m({type:Boolean})],Zd.prototype,"dismissible",void 0),t([m({attribute:"disable-close",type:Boolean})],Zd.prototype,"disableClose",void 0),t([m({attribute:"no-focus-trap",type:Boolean})],Zd.prototype,"noFocusTrap",void 0),t([m({attribute:"close-label"})],Zd.prototype,"closeLabel",void 0),Zd=Kd=t([$("m3e-dialog")],Zd);let Gd=class extends(b(z)){connectedCallback(){super.connectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup="dialog")}disconnectedCallback(){super.disconnectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup=null)}_onClick(){this.control instanceof Zd&&this.control.show()}};Gd=t([$("m3e-dialog-trigger")],Gd);let Xd=class extends(f(r,"separator")){constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.insetStart=!1,this.insetEnd=!1}render(){return s`<div class="line"></div>`}};Xd.styles=i`:host { display: block; position: relative; } :host(:not([vertical])) { height: var(--m3e-divider-thickness, 1px); width: 100%; } :host([vertical]) { width: var(--m3e-divider-thickness, 1px); height: 100%; } .line { box-sizing: border-box; position: absolute; } :host(:not([vertical])) .line { border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); height: inherit; } :host([vertical]) .line { border-right: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); width: inherit; } :host([vertical][inset]) .line, :host([vertical][inset-start]) .line { top: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-start]) .line { left: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical][inset]) .line, :host([vertical][inset-end]) .line { bottom: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-end]) .line { right: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical]:not([inset]):not([inset-start])) .line { top: 0; } :host(:not([vertical]):not([inset]):not([inset-start])) .line { left: 0; } :host([vertical]:not([inset]):not([inset-end])) .line { bottom: 0; } :host(:not([vertical]):not([inset]):not([inset-end])) .line { right: 0; } @media (forced-colors: active) { .line { border-color: GrayText; } }`,t([m({type:Boolean,reflect:!0})],Xd.prototype,"vertical",void 0),t([m({type:Boolean,reflect:!0})],Xd.prototype,"inset",void 0),t([m({attribute:"inset-start",type:Boolean,reflect:!0})],Xd.prototype,"insetStart",void 0),t([m({attribute:"inset-end",type:Boolean,reflect:!0})],Xd.prototype,"insetEnd",void 0),Xd=t([$("m3e-divider")],Xd);const Yd=o(`var(--m3e-drawer-container-color, ${v.color.surface})`),Jd=o(`var(--m3e-drawer-container-elevation, ${v.elevation.level0})`),Qd=o("var(--m3e-drawer-container-width, 22.5rem)"),eh=o("var(--m3e-drawer-container-scrim-opacity, 32%)"),th=o(`var(--m3e-modal-drawer-corner-shape, ${v.shape.corner.large})`),ah=o(`var(--m3e-modal-drawer-container-color, ${v.color.surfaceContainerLow})`),oh=o(`var(--m3e-modal-drawer-elevation, ${v.elevation.level1})`),ih=o(`var(--m3e-drawer-divider-color, ${v.color.outline})`),rh=o("var(--m3e-drawer-divider-thickness, 1px)"),sh=i`:host { display: block; position: relative; overflow: hidden; flex: 1 1 auto; } .start, .end { position: absolute; top: 0; bottom: 0; z-index: 3; outline: none; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; box-sizing: border-box; background-color: ${Yd}; box-shadow: ${Jd}; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete,\n background-color ${v.motion.duration.medium4} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } .start { inset-inline-start: 0; } .end { inset-inline-end: 0; } :host(:not([start])) .start { visibility: hidden; } :host(:not([start]):not(:dir(rtl))) .start { margin-left: calc(0px - var(--_start-drawer-size, ${Qd})); } :host(:not([start]):dir(rtl)) .start { margin-right: calc(0px - var(--_start-drawer-size, ${Qd})); } :host([start]:not(:dir(rtl))) .start { margin-left: 0; } :host([start]:dir(rtl)) .start { margin-right: 0; } :host(:not([end])) .end { visibility: hidden; } :host(:not([end]):not(:dir(rtl))) .end { margin-right: calc(0px - var(--_end-drawer-size, ${Qd})); } :host(:not([end]):dir(rtl)) .end { margin-left: calc(0px - var(--_end-drawer-size, ${Qd})); } :host([end]:not(:dir(rtl))) .end { margin-right: 0; } :host([end]:dir(rtl)) .end { margin-left: 0; } ::slotted([slot="start"]), ::slotted([slot="end"]) { height: 100%; width: ${Qd}; box-sizing: border-box; } .content { position: relative; height: 100%; overflow: auto; margin-left: 0; margin-right: 0; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } :host(:state(-start-push)[start]:not(:dir(rtl))) .content, :host(:state(-start-side)[start]:not(:dir(rtl))) .content { margin-left: var(--_start-drawer-size, ${Qd}); } :host(:state(-start-push)[start]:dir(rtl)) .content, :host(:state(-start-side)[start]:dir(rtl)) .content { margin-right: var(--_start-drawer-size, ${Qd}); } :host(:state(-end-push)[end]:not(:dir(rtl))) .content, :host(:state(-end-side)[end]:not(:dir(rtl))) .content { margin-right: var(--_end-drawer-size, ${Qd}); } :host(:state(-end-push)[end]:dir(rtl)) .content, :host(:state(-end-side)[end]:dir(rtl)) .content { margin-left: var(--_end-drawer-size, ${Qd}); } .scrim { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; background-color: ${v.color.scrim}; opacity: 0; visibility: hidden; transition: ${o(`opacity ${v.motion.duration.medium4} ${v.motion.easing.standard}, \n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .scrim { opacity: 0; } } :host(:state(-start-push)[start]) .scrim, :host(:state(-end-push)[end]) .scrim, :host(:state(-start-over)[start]) .scrim, :host(:state(-end-over)[end]) .scrim { visibility: visible; opacity: ${eh}; } :host(:state(-start-push)) .start, :host(:state(-start-over)) .start { border-start-end-radius: ${th}; border-end-end-radius: ${th}; } :host(:state(-end-push)) .end, :host(:state(-end-over)) .end { border-start-start-radius: ${th}; border-end-start-radius: ${th}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: ${ah}; box-shadow: ${oh}; } :host([start-divider]) .start { border-inline-end-color: transparent; border-inline-end-width: ${rh}; border-inline-end-style: solid; box-sizing: border-box; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: ${ih}; } :host([end-divider]) .end { border-inline-start-color: transparent; border-inline-start-width: ${rh}; border-inline-start-style: solid; box-sizing: border-box; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: ${ih}; } :host(:state(-no-animate)) .start, :host(:state(-no-animate)) .end, :host(:state(-no-animate)) .content { transition: none; } @media (forced-colors: active) { .start, .end { background-color: Canvas; box-shadow: unset; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: Canvas; box-shadow: unset; border-color: CanvasText; } .start, .end { border-style: solid; border-color: Canvas; border-width: 1px; } .start { border-inline-start-style: none; } .end { border-inline-end-style: none; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: GrayText; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: GrayText; } } @media (prefers-reduced-motion) { .start, .end, .content, .scrim { transition: none; } }`;var nh,lh,ch,dh,hh,mh,ph,uh,vh,bh,fh,gh;let yh=class extends(M(P(r))){constructor(){super(...arguments),nh.add(this),this._startMode="side",this._endMode="side",lh.set(this,void 0),ch.set(this,!1),dh.set(this,!1),hh.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,nh,"m",bh).call(this,t)})),this.start=!1,this.startMode="side",this.startDivider=!1,this.end=!1,this.endMode="side",this.endDivider=!1}connectedCallback(){super.connectedCallback(),L(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),e(this,lh,"f")?.call(this),e(this,nh,"m",fh).call(this)}willUpdate(t){super.willUpdate(t),(t.has("startMode")||t.has("endMode"))&&(e(this,lh,"f")?.call(this),"auto"===this.startMode||"auto"===this.endMode?a(this,lh,je.observe([Ke.XSmall,Ke.Small],t=>e(this,nh,"m",gh).call(this,t,!0)),"f"):e(this,nh,"m",gh).call(this)),t.has("start")?this.start&&this.end&&"side"!==this._endMode&&(this.end=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):t.has("end")&&this.end&&this.start&&"side"!==this._startMode&&(this.start=!1,this.dispatchEvent(new Event("change",{bubbles:!0})))}reconnectedCallback(){super.reconnectedCallback(),e(this,nh,"m",mh).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,nh,"m",mh).call(this)}render(){return s`<div class="start"><m3e-focus-trap ?disabled="${!this.start||"side"===this._startMode||e(this,ch,"f")}"><slot name="start" @slotchange="${e(this,nh,"m",uh)}"></slot></m3e-focus-trap></div><div class="content" .inert="${("side"!==this._startMode||"side"!==this._endMode)&&(this.start||this.end)}"><slot></slot></div><div class="scrim" @click="${e(this,nh,"m",ph)}"></div><div class="end"><m3e-focus-trap ?disabled="${!this.end||"side"===this._endMode||e(this,dh,"f")}"><slot name="end" @slotchange="${e(this,nh,"m",vh)}"></slot></m3e-focus-trap></div>`}};var $h,xh,wh,kh,Ch,Sh;lh=new WeakMap,ch=new WeakMap,dh=new WeakMap,hh=new WeakMap,nh=new WeakSet,mh=function(){let t=this.shadowRoot?.querySelector(".start");t&&e(this,hh,"f").observe(t),t=this.shadowRoot?.querySelector(".end"),t&&e(this,hh,"f").observe(t)},ph=function(){"side"!==this._startMode&&(this.start=!1),"side"!==this._endMode&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0}))},uh=function(e){a(this,ch,!g(e.target),"f")},vh=function(e){a(this,dh,!g(e.target),"f")},bh=function(e){for(const t of e){const e=Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize;t.target.classList.contains("start")?this.style.setProperty("--_start-drawer-size",`${e.inlineSize}px`):t.target.classList.contains("end")&&this.style.setProperty("--_end-drawer-size",`${e.inlineSize}px`)}O(this,"-no-animate")&&(this.offsetTop,k(this,"-no-animate"))},fh=function(){k(this,"-start-over"),k(this,"-start-push"),k(this,"-start-side"),k(this,"-end-over"),k(this,"-end-push"),k(this,"-end-side")},gh=function(t,a=!1){let o=!1,i=!1;"auto"===this.startMode?t?.get(Ke.Medium)?this._startMode="side":t?.get(Ke.Small)?(o="side"===this._startMode&&this.start,this._startMode="push"):t?.get(Ke.XSmall)?(o="over"!==this._startMode&&this.start,this._startMode="over"):this._startMode="side":this._startMode=this.startMode,"auto"===this.endMode?t?.get(Ke.Medium)?this._endMode="side":t?.get(Ke.Small)?(i="side"===this._endMode&&this.end,this._endMode="push"):t?.get(Ke.XSmall)?(i="over"!==this._endMode&&this.end,this._endMode="over"):this._endMode="side":this._endMode=this.endMode,e(this,nh,"m",fh).call(this),L(this,`-start-${this._startMode}`),L(this,`-end-${this._endMode}`),a&&(o||i)&&(o&&(this.start=!1),i&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0})))},yh.styles=sh,t([u()],yh.prototype,"_startMode",void 0),t([u()],yh.prototype,"_endMode",void 0),t([m({type:Boolean,reflect:!0})],yh.prototype,"start",void 0),t([m({attribute:"start-mode",reflect:!0})],yh.prototype,"startMode",void 0),t([m({attribute:"start-divider",type:Boolean,reflect:!0})],yh.prototype,"startDivider",void 0),t([m({type:Boolean,reflect:!0})],yh.prototype,"end",void 0),t([m({attribute:"end-mode",reflect:!0})],yh.prototype,"endMode",void 0),t([m({attribute:"end-divider",type:Boolean,reflect:!0})],yh.prototype,"endDivider",void 0),yh=t([$("m3e-drawer-container")],yh);let _h=class extends(b(z)){constructor(){super(...arguments),$h.add(this),xh.set(this,()=>e(this,$h,"m",kh).call(this)),wh.set(this,!1)}attach(t){super.attach(t),this.htmlFor&&this.parentElement&&Ee(this.parentElement,"aria-controls",this.htmlFor);const a=t.closest("m3e-drawer-container");a&&(a.addEventListener("change",e(this,xh,"f")),e(this,$h,"m",Sh).call(this,a,!0))}detach(){this.parentElement&&(this.htmlFor&&Me(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),this.control?.closest("m3e-drawer-container")?.removeEventListener("change",e(this,xh,"f")),super.detach()}_onClick(){e(this,$h,"m",Ch).call(this)}};var Lh,zh,Eh,Mh;xh=new WeakMap,wh=new WeakMap,$h=new WeakSet,kh=function(){if(this.control&&!e(this,wh,"f")){const t=this.control.closest("m3e-drawer-container");t&&e(this,$h,"m",Sh).call(this,t,!0)}},Ch=async function(){if(!this.parentElement||!this.control)return;const t=this.control.closest("m3e-drawer-container");if(t){a(this,wh,!0,"f");try{"start"===this.control.slot?t.start=!t.start:"end"===this.control.slot&&(t.end=!t.end),t.isUpdatePending&&await t.updateComplete,await e(this,$h,"m",Sh).call(this,t,!1)}finally{a(this,wh,!1,"f")}}},Sh=async function(e,t){if(!this.parentElement||!this.control)return;let a=!1;"start"===this.control.slot?a=e.start:"end"===this.control.slot&&(a=e.end),this.parentElement.ariaExpanded=`${a}`,t&&this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",a),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},_h=t([$("m3e-drawer-toggle")],_h);let Th=class extends r{constructor(){super(...arguments),Lh.add(this),zh.set(this,[]),this.multi=!1}get panels(){return e(this,zh,"f")}render(){return s`<slot @slotchange="${e(this,Lh,"m",Eh)}" @opening="${e(this,Lh,"m",Mh)}"></slot>`}};zh=new WeakMap,Lh=new WeakSet,Eh=function(){if(a(this,zh,[...this.querySelectorAll("m3e-expansion-panel")],"f"),this.multi)return;let t=!1;for(const a of e(this,zh,"f").filter(e=>!e.open))t&&(a.open=!1),t=!0},Mh=function(t){if(!this.multi)for(const a of e(this,zh,"f").filter(e=>e!==t.target&&e.open))a.open=!1},Th.styles=i`:host { display: block; } ::slotted(m3e-expansion-panel) { --m3e-expansion-panel-container-color: ${v.color.surface}; --m3e-expansion-panel-elevation: ${v.elevation.level2}; --m3e-expansion-panel-open-shape: ${v.shape.corner.medium}; --_expansion-panel-open-spacing: 1rem; } ::slotted(m3e-expansion-panel:first-of-type:last-of-type) { --m3e-expansion-panel-shape: ${v.shape.corner.medium}; } ::slotted(m3e-expansion-panel:first-of-type:not(:last-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.medium} ${v.shape.corner.value.medium} ${v.shape.corner.value.none} ${v.shape.corner.value.none}; } ::slotted(m3e-expansion-panel:last-of-type:not(:first-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.none} ${v.shape.corner.value.none} ${v.shape.corner.value.medium} ${v.shape.corner.value.medium}; }`,t([m({type:Boolean})],Th.prototype,"multi",void 0),Th=t([$("m3e-accordion")],Th);const Ph=o("var(--m3e-expansion-header-collapsed-height, 3rem)"),Ih=o("var(--m3e-expansion-header-expanded-height, 4rem)"),Wh=o("var(--m3e-expansion-header-padding-left, 1.5rem)"),Ah=o("var(--m3e-expansion-header-padding-right, 1.5rem)"),Hh=o("var(--m3e-expansion-header-spacing, 0.5rem)"),Oh=o("var(--m3e-expansion-header-toggle-icon-size, 1.5rem)"),Dh=o(`var(--m3e-expansion-header-font-size, ${v.typescale.standard.title.medium.fontSize})`),Bh=o(`var(--m3e-expansion-header-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),qh=o(`var(--m3e-expansion-header-line-height, ${v.typescale.standard.title.medium.lineHeight})`),Fh=o(`var(--m3e-expansion-header-tracking, ${v.typescale.standard.title.medium.tracking})`),Vh=i`:host { display: block; border-radius: inherit; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: ${o(`height var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } .base { box-sizing: border-box; width: 100%; height: 100%; display: flex; border-radius: inherit; outline: none; position: relative; padding-inline-start: ${Wh}; padding-inline-end: ${Ah}; font-size: ${Dh}; font-weight: ${Bh}; line-height: ${qh}; letter-spacing: ${Fh}; column-gap: ${Hh}; } :host(:not(:disabled)) { cursor: pointer; } :host(:not([aria-expanded="true"])) { height: ${Ph}; } :host([aria-expanded="true"]) { height: ${Ih}; } :host(:not(:focus-visible)) .state-layer { --m3e-state-layer-focus-color: transparent; } :host([aria-expanded="true"]) .state-layer { --m3e-state-layer-hover-color: transparent; } :host([aria-expanded="true"]) [part="background"], .content { flex: 1 1 auto; display: flex; align-items: center; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: ${Oh}; transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host([toggle-direction="vertical"][aria-expanded="true"]) .toggle { transform: rotate(180deg); } :host([toggle-direction="horizontal"][aria-expanded="true"]) .toggle { transform: rotate(var(--_expansion-header-horizontal-expanded-toggle-rotation, 90deg)); } :host([toggle-position="before"]) .toggle { margin-inline-start: calc(0px - ${Hh}); } :host([toggle-position="after"]) .toggle { margin-inline-end: calc(0px - ${Hh}); } :host([hide-toggle]) .toggle { display: none; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } @media (prefers-reduced-motion) { :host, .toggle { transition: none; } }`,Rh=o(`var(--m3e-expansion-panel-text-color, ${v.color.onSurface})`),Nh=o(`var(--m3e-expansion-panel-disabled-text-color, ${v.color.onSurface})`),Uh=o("var(--m3e-expansion-panel-disabled-text-opacity, 38%)"),jh=o("var(--m3e-expansion-panel-container-color)"),Kh=o("var(--m3e-expansion-panel-elevation)"),Zh=o("var(--m3e-expansion-panel-shape)"),Gh=o("var(--m3e-expansion-panel-open-elevation, var(--m3e-expansion-panel-elevation))"),Xh=o("var(--m3e-expansion-panel-open-shape, var(--m3e-expansion-panel-shape))"),Yh=o("var(--_expansion-panel-open-spacing)"),Jh=o("var(--m3e-expansion-panel-content-padding, 0 1.5rem 1rem 1.5rem)"),Qh=o("var(--m3e-expansion-panel-actions-spacing, 0.5rem)"),em=o("var(--m3e-expansion-panel-actions-padding, 1rem 1.5rem 1rem 1.5rem)"),tm=o("var(--m3e-expansion-panel-actions-divider-thickness, var(--m3e-divider-thickness, 1px))"),am=o(`var(--m3e-expansion-panel-actions-divider-color, var(--m3e-divider-color, ${v.color.outlineVariant}))`),om=i`:host { display: block; } .base { background-color: ${jh}; transition: ${o(`box-shadow var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) .base { color: ${Rh}; } :host(:disabled) .base { color: color-mix( in srgb, ${Nh} ${Uh}, transparent ); } :host(:not([open])) .base { box-shadow: ${Kh}; border-radius: ${Zh}; } :host([open]) .base { box-shadow: ${Gh}; border-radius: ${Xh}; margin-block: ${Yh}; } .toggle { display: flex; align-items: center; justify-content: center; font-size: ${Oh}; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } .content { padding: ${Jh}; } :host(:not(:state(-with-actions))) .actions { display: none; } .actions { padding: ${em}; border-top-style: solid; border-top-width: ${tm}; border-top-color: ${am}; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; column-gap: ${Qh}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { border: 1px solid CanvasText; } :host(:disabled) .base { color: GrayText; } .actions { border-top-color: GrayText; } }`;var im,rm;let sm=class extends(q(R(U(P(f(r,"button"),!0))))){constructor(){super(...arguments),im.add(this),this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer>${"before"===this.togglePosition?e(this,im,"m",rm).call(this):n}<div class="content"><slot></slot></div>${"after"===this.togglePosition?e(this,im,"m",rm).call(this):n}</div>`}};var nm,lm,cm,dm,hm,mm,pm,um,vm,bm,fm,gm;im=new WeakSet,rm=function(){return s`<div class="toggle" aria-hidden="true"><slot name="toggle-icon"></slot></div>`},sm.styles=Vh,t([h(".focus-ring")],sm.prototype,"_focusRing",void 0),t([h(".state-layer")],sm.prototype,"_stateLayer",void 0),t([m({attribute:"toggle-direction",reflect:!0})],sm.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],sm.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],sm.prototype,"hideToggle",void 0),sm=t([$("m3e-expansion-header")],sm);let ym=gm=class extends(E(U(M(P(r,!0))),"opening","opened","closing","closed")){constructor(){super(...arguments),nm.add(this),lm.set(this,gm.__nextId++),cm.set(this,`m3e-expansion-panel-${e(this,lm,"f")}-content`),dm.set(this,`m3e-expansion-panel-${e(this,lm,"f")}-header`),hm.set(this,void 0),this.open=!1,this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}focus(e){this._header?.focus(e)}blur(){this._header?.blur()}click(){this._header?.click()}connectedCallback(){super.connectedCallback(),a(this,hm,De.observe(()=>{this.requestUpdate(),e(this,nm,"m",fm).call(this)}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,hm,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,nm,"m",fm).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,nm,"m",fm).call(this)}render(){return s`<div class="base"><m3e-expansion-header id="${e(this,dm,"f")}" toggle-direction="${this.toggleDirection}" toggle-position="${this.togglePosition}" ?hide-toggle="${this.hideToggle}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,cm,"f")}" @click="${e(this,nm,"m",pm)}" @keydown="${e(this,nm,"m",um)}"><div slot="toggle-icon" class="toggle"><slot name="toggle-icon">${e(this,nm,"m",mm).call(this)}</slot></div><slot name="header"></slot></m3e-expansion-header><m3e-collapsible id="${e(this,cm,"f")}" role="region" aria-labelledby="${e(this,dm,"f")}" ?open="${this.open}" @opening="${e(this,nm,"m",vm)}" @opened="${e(this,nm,"m",vm)}" @closing="${e(this,nm,"m",vm)}" @closed="${e(this,nm,"m",vm)}"><div class="content"><slot></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,nm,"m",bm)}"></slot></div></m3e-collapsible></div>`}};lm=new WeakMap,cm=new WeakMap,dm=new WeakMap,hm=new WeakMap,nm=new WeakSet,mm=function(){return"vertical"===this.toggleDirection?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>`:"ltr"===De.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`},pm=function(){this.open=!this.open},um=function(e){switch(e.key){case"ArrowUp":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=[...t.panels].reverse(),a=e.indexOf(this);(e.find((e,t)=>!e.disabled&&t>a)??e.find((e,t)=>!e.disabled&&t<a))?._header?.focus()}else this.open=!1}break;case"ArrowDown":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=t.panels.indexOf(this);(t.panels.find((t,a)=>!t.disabled&&a>e)??t.panels.find((t,a)=>!t.disabled&&a<e))?._header?.focus()}else this.open=!0}}},vm=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},bm=function(e){w(this,"-with-actions",g(e.target))},fm=function(){"rtl"===De.current?this._header?.style.setProperty("--_expansion-header-horizontal-expanded-toggle-rotation","-90deg"):this._header?.style.removeProperty("--_expansion-header-horizontal-expanded-toggle-rotation")},ym.styles=om,ym.__nextId=0,t([h("m3e-expansion-header")],ym.prototype,"_header",void 0),t([m({type:Boolean,reflect:!0})],ym.prototype,"open",void 0),t([m({attribute:"toggle-direction",reflect:!0})],ym.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],ym.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],ym.prototype,"hideToggle",void 0),ym=gm=t([$("m3e-expansion-panel")],ym);const $m=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .close-icon, ::slotted(:not([slot])), ::slotted([slot="close-icon"]) { font-size: inherit !important; flex: none; } .close-icon, ::slotted(svg:not([slot])), ::slotted(svg[slot="close-icon"]) { width: 1em; height: 1em; } :host(:not([extended])) ::slotted([slot="label"]), .base.with-menu ::slotted([slot="label"]), .base:not(.with-menu) ::slotted([slot="close-icon"]), .base:not(.with-menu) .close-icon, :host([aria-expanded="true"]) .base.with-menu ::slotted(:not([slot])), :host([aria-expanded="false"]) .base.with-menu ::slotted([slot="close-icon"]), :host([aria-expanded="false"]) .base.with-menu .close-icon { display: none; } :host([aria-expanded="true"]) .base.with-menu { border-radius: var(--m3e-fab-menu-close-button-container-shape, ${v.shape.corner.full}); height: calc(var(--m3e-fab-menu-close-button-container-height, 3.5rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .wrapper { padding-inline-start: calc(var(--m3e-fab-menu-close-button-leading-space, 1rem) + ${v.density.calc(-3)}); padding-inline-end: calc(var(--m3e-fab-menu-close-button-trailing-space, 1rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .icon { font-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); --m3e-icon-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); } .base.with-menu { transition: height ${v.motion.spring.fastSpatial}; } .base.with-menu .wrapper { transition: padding ${v.motion.spring.fastSpatial}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base, .icon { transition: none; } .base { outline-style: solid; } :host([variant]:not(:disabled):not([disabled-interactive])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])) .label, :host([variant]:not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } } @media (prefers-reduced-motion) { .base, .base.resting, .base.pressed, .label, .icon { transition: none; } }`,xm={small:{containerHeight:o(`calc(var(--m3e-fab-small-container-height, var(--m3e-fab-container-height, 3.5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-small-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.medium.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-small-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.medium.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-small-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.medium.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-small-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.medium.tracking}))`),iconSize:o(`calc(var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem))"),shape:o(`var(--m3e-fab-small-shape, var(--m3e-fab-shape, ${v.shape.corner.large}))`),leadingSpace:o(`calc(var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-small-icon-label-space, var(--m3e-fab-icon-label-space, 0.5rem))"),extendedLeadingSpace:o("var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem))"),extendedTrailingSpace:o("var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem))")},medium:{containerHeight:o(`calc(var(--m3e-fab-medium-container-height, var(--m3e-fab-container-height, 5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-medium-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-medium-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-medium-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-medium-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.large.tracking}))`),iconSize:o(`calc(var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem))"),shape:o(`var(--m3e-fab-medium-shape, var(--m3e-fab-shape, ${v.shape.corner.largeIncreased}))`),leadingSpace:o(`calc(var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-medium-icon-label-space, var(--m3e-fab-icon-label-space, 0.75rem))"),extendedLeadingSpace:o("var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem))"),extendedTrailingSpace:o("var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem))")},large:{containerHeight:o(`calc(var(--m3e-fab-large-container-height, var(--m3e-fab-container-height, 6rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-large-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-large-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-large-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-large-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o(`calc(var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem))"),shape:o(`var(--m3e-fab-large-shape, var(--m3e-fab-shape, ${v.shape.corner.extraLarge}))`),leadingSpace:o(`calc(var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-large-icon-label-space, var(--m3e-fab-icon-label-space, 1rem))"),extendedLeadingSpace:o("var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem))"),extendedTrailingSpace:o("var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem))")}};function wm(e){return i`:host([size="${o(e)}"]) .base { height: ${xm[e].containerHeight}; } :host([size="${o(e)}"]) .base { border-radius: ${xm[e].shape}; } :host([size="${o(e)}"]) .label { font-size: ${xm[e].labelTextFontSize}; font-weight: ${xm[e].labelTextFontWeight}; line-height: ${xm[e].labelTextLineHeight}; letter-spacing: ${xm[e].labelTextTracking}; } :host([size="${o(e)}"]:not([extended])) .wrapper { padding-inline-start: ${xm[e].leadingSpace}; padding-inline-end: ${xm[e].trailingSpace}; } :host([size="${o(e)}"]:not([extended])) .icon { font-size: ${xm[e].iconSize}; --m3e-icon-size: ${xm[e].iconSize}; } :host([size="${o(e)}"][extended]) .wrapper { padding-inline-start: ${xm[e].extendedLeadingSpace}; padding-inline-end: ${xm[e].extendedTrailingSpace}; column-gap: ${xm[e].iconLabelSpace}; } :host([size="${o(e)}"][extended]) .icon { font-size: ${xm[e].extendedIconSize}; --m3e-icon-size: ${xm[e].extendedIconSize}; }`}const km=[wm("small"),wm("medium"),wm("large")],Cm={primary:{labelTextColor:o(`var(--m3e-primary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-primary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-primary-fab-container-color, var(--m3e-fab-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-primary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},secondary:{labelTextColor:o(`var(--m3e-secondary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondary}))`),iconColor:o(`var(--m3e-secondary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondary}))`),containerColor:o(`var(--m3e-secondary-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondary}))`),containerElevation:o(`var(--m3e-secondary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},tertiary:{labelTextColor:o(`var(--m3e-tertiary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiary}))`),iconColor:o(`var(--m3e-tertiary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiary}))`),containerColor:o(`var(--m3e-tertiary-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiary}))`),containerElevation:o(`var(--m3e-tertiary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"primary-container":{labelTextColor:o(`var(--m3e-primary-container-fab-label-text-color, var(--m3e-primary-container-fab-label-text-color, ${v.color.onPrimaryContainer}))`),iconColor:o(`var(--m3e-primary-container-fab-icon-color, var(--m3e-primary-container-fab-icon-color, ${v.color.onPrimaryContainer}))`),containerColor:o(`var(--m3e-primary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.primaryContainer}))`),containerElevation:o(`var(--m3e-primary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"secondary-container":{labelTextColor:o(`var(--m3e-secondary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-secondary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-secondary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-secondary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"tertiary-container":{labelTextColor:o(`var(--m3e-tertiary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiaryContainer}))`),iconColor:o(`var(--m3e-tertiary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiaryContainer}))`),containerColor:o(`var(--m3e-tertiary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiaryContainer}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},surface:{labelTextColor:o(`var(--m3e-surface-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-surface-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-surface-fab-container-color, var(--m3e-fab-container-color, ${v.color.surfaceContainerHigh}))`),containerElevation:o(`var(--m3e-surface-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),loweredContainerColor:o(`var(--m3e-surface-fab-lowered-container-color, var(--m3e-fab-lowered-container-color, ${v.color.surfaceContainerLow}))`),disabled:{containerColor:o(`var(--m3e-surface-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-surface-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-surface-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-surface-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-surface-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-surface-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-surface-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-surface-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-surface-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-surface-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}}};function Sm(e){return i`:host([variant="${o(e)}"]:not([lowered])) .base { background-color: ${Cm[e].containerColor}; --m3e-elevation-level: ${Cm[e].containerElevation}; --m3e-elevation-hover-level: ${Cm[e].hover.containerElevation}; --m3e-elevation-focus-level: ${Cm[e].focus.containerElevation}; --m3e-elevation-pressed-level: ${Cm[e].pressed.containerElevation}; } :host([variant="${o(e)}"][lowered]) .base { background-color: ${Cm[e].loweredContainerColor??Cm[e].containerColor}; --m3e-elevation-level: ${Cm[e].loweredContainerElevation}; --m3e-elevation-hover-level: ${Cm[e].hover.loweredContainerElevation}; --m3e-elevation-focus-level: ${Cm[e].focus.loweredContainerElevation}; --m3e-elevation-pressed-level: ${Cm[e].pressed.loweredContainerElevation}; } :host([variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Cm[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Cm[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Cm[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Cm[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Cm[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Cm[e].pressed.stateLayerOpacity}; } :host([variant="${o(e)}"]) .label { color: ${Cm[e].labelTextColor}; } :host([variant="${o(e)}"]:focus) .label { color: ${Cm[e].focus.labelTextColor}; } :host([variant="${o(e)}"]:hover) .label { color: ${Cm[e].hover.labelTextColor}; } :host([variant="${o(e)}"]) .base.pressed .label { color: ${Cm[e].pressed.labelTextColor}; } :host([variant="${o(e)}"]) .icon { color: ${Cm[e].iconColor}; } :host([variant="${o(e)}"]:focus) .icon { color: ${Cm[e].focus.iconColor}; } :host([variant="${o(e)}"]:hover) .icon { color: ${Cm[e].hover.iconColor}; } :host([variant="${o(e)}"]) .base.pressed .icon { color: ${Cm[e].pressed.iconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Cm[e].disabled.containerElevation}; background-color: color-mix( in srgb, ${Cm[e].disabled.containerColor} ${Cm[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${Cm[e].disabled.labelTextColor} ${Cm[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Cm[e].disabled.iconColor} ${Cm[e].disabled.iconOpacity}, transparent ); }`}const _m=[Sm("primary"),Sm("secondary"),Sm("tertiary"),Sm("primary-container"),Sm("secondary-container"),Sm("tertiary-container"),Sm("surface")];var Lm,zm;let Em=class extends(q(F(V(R(N(U(P(f(r,"button"),!0)))))))){constructor(){super(),Lm.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new K(this,{isPressedKey:e=>" "===e,callback:e=>{this.disabled||this.disabledInteractive||(this._base?.classList.toggle("pressed",e),this._base?.classList.toggle("resting",!e))}})}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1)}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?centered="${!this.extended}" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[Z]()}<div class="wrapper"><slot class="icon" aria-hidden="true" @slotchange="${e(this,Lm,"m",zm)}"></slot><slot class="icon" aria-hidden="true" name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot><div class="label"><slot name="label" @slotchange="${e(this,Lm,"m",zm)}"></slot></div></div></div>`}};var Mm,Tm,Pm;Lm=new WeakSet,zm=function(){this._base?.classList.toggle("with-menu",null!==this.querySelector("m3e-fab-menu-trigger"))},Em.styles=[km,_m,$m],t([h(".base")],Em.prototype,"_base",void 0),t([h(".elevation")],Em.prototype,"_elevation",void 0),t([h(".focus-ring")],Em.prototype,"_focusRing",void 0),t([h(".state-layer")],Em.prototype,"_stateLayer",void 0),t([h(".ripple")],Em.prototype,"_ripple",void 0),t([m({reflect:!0})],Em.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],Em.prototype,"lowered",void 0),t([m({reflect:!0})],Em.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],Em.prototype,"extended",void 0),Em=t([$("m3e-fab")],Em);let Im=class extends(q(F(U(P(f(r,"menuitem"),!0))))){constructor(){super(...arguments),Mm.add(this),Tm.set(this,t=>e(this,Mm,"m",Pm).call(this,t))}get menu(){return this.closest("m3e-fab-menu")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Tm,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Tm,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[Z]()}<div class="wrapper"><slot class="icon" name="icon" aria-hidden="true"></slot><div class="label"><slot></slot></div></div></div>`}};var Wm,Am,Hm,Om,Dm,Bm,qm,Fm,Vm,Rm,Nm,Um,jm,Km;Tm=new WeakMap,Mm=new WeakSet,Pm=function(e){e.defaultPrevented||this.menu?.hide(!0)},Im.styles=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; height: var(--m3e-fab-menu-item-height, 3.5rem); font-size: var(--m3e-fab-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-fab-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-fab-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-fab-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); border-radius: var(--m3e-fab-menu-item-shape, ${v.shape.corner.full}); } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: var(--_fab-menu-item-color); } :host(:not(:disabled)) .base { background-color: var(--_fab-menu-item-container-color); --m3e-state-layer-hover-color: var(--_fab-menu-background-hover-color); --m3e-state-layer-focus-color: var(--_fab-menu-background-focus-color); --m3e-ripple-color: var(--_fab-menu-ripple-color); } :host(:disabled) .base { background-color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-container-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-container-opacity, 10%), transparent ); } :host(:disabled) .label, :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-opacity, 38%), transparent ); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-fab-menu-item-leading-space, 1.5rem); padding-inline-end: var(--m3e-fab-menu-item-trailing-space, 1.5rem); column-gap: var(--m3e-fab-menu-item-spacing, 0.5rem); } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { font-size: var(--m3e-fab-menu-item-icon-size, 1.5rem); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } ::slotted([slot="icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]) { width: 1em; height: 1em; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (prefers-reduced-motion) { .base, .label, .icon { transition: none; } } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:not(:disabled)) .base { background-color: Menu; } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: MenuText; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } }`,t([h(".elevation")],Im.prototype,"_elevation",void 0),t([h(".focus-ring")],Im.prototype,"_focusRing",void 0),t([h(".state-layer")],Im.prototype,"_stateLayer",void 0),t([h(".ripple")],Im.prototype,"_ripple",void 0),Im=t([$("m3e-fab-menu-item")],Im);let Zm=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),Wm.add(this),Am.set(this,void 0),Hm.set(this,void 0),Om.set(this,void 0),Dm.set(this,(new We).withWrap().withHomeAndEnd().withVerticalOrientation()),Bm.set(this,t=>e(this,Wm,"m",Nm).call(this,t)),qm.set(this,t=>e(this,Wm,"m",Um).call(this,t)),Fm.set(this,new me(this,{target:null,callback:()=>this.hide()})),Vm.set(this,t=>{"closed"===t.newState?(e(this,Om,"f")?.call(this),a(this,Om,void 0,"f")):setTimeout(()=>{e(this,Dm,"f").setActiveItem(e(this,Dm,"f").items.find(e=>!e.disabled))},40)}),this.variant="primary"}get isOpen(){return void 0!==e(this,Hm,"f")}async show(t){e(this,Hm,"f")&&e(this,Hm,"f")!==t&&this.hide(),e(this,Om,"f")?.call(this),a(this,Om,await Be(this,t,{position:"top-end",inline:!0,shift:!0,flip:!0,offset:8},(e,t,a)=>{w(this,"-right",a.includes("end")),w(this,"-left",a.includes("start")),"rtl"===De.current?(this.style.right=window.innerWidth-e-this.clientWidth+"px",this.style.left=""):(this.style.left=`${e}px`,this.style.right=""),this.style.top=`${t}px`}),"f"),this.showPopover(),a(this,Hm,t,"f"),e(this,Hm,"f").ariaExpanded="true",e(this,Fm,"f").observe(e(this,Hm,"f")),e(this,Wm,"m",jm).call(this)}hide(t=!1){e(this,Om,"f")?.call(this),a(this,Om,void 0,"f"),e(this,Hm,"f")&&(e(this,Hm,"f").ariaExpanded="false",t&&e(this,Hm,"f").focus(),e(this,Wm,"m",Km).call(this),e(this,Fm,"f").unobserve(e(this,Hm,"f")),a(this,Hm,void 0,"f")),this.hidePopover()}async toggle(t){e(this,Hm,"f")?this.hide():await this.show(t)}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,Bm,"f")),this.addEventListener("toggle",e(this,Vm,"f")),document.addEventListener("click",e(this,qm,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Bm,"f")),this.removeEventListener("toggle",e(this,Vm,"f")),document.removeEventListener("click",e(this,qm,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,Wm,"m",Rm)}"></slot></div>`}};Am=new WeakMap,Hm=new WeakMap,Om=new WeakMap,Dm=new WeakMap,Bm=new WeakMap,qm=new WeakMap,Fm=new WeakMap,Vm=new WeakMap,Wm=new WeakSet,Rm=function(){const{added:t}=e(this,Dm,"f").setItems([...this.querySelectorAll("m3e-fab-menu-item")]);e(this,Dm,"f").activeItem||e(this,Dm,"f").updateActiveItem(t.find(e=>!e.disabled))},Nm=function(t){switch(t.key){case"Tab":this.hide();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,Dm,"f").onKeyDown(t)}},Um=function(t){t.composedPath().some(t=>t instanceof Im||t===e(this,Hm,"f"))||this.hide()},jm=function(){const t=e(this,Hm,"f")?.closest("m3e-fab");t&&(a(this,Am,t.tabIndex,"f"),t.addEventListener("keydown",e(this,Bm,"f")),e(this,Dm,"f").setItems([...e(this,Dm,"f").items,t]))},Km=function(){const t=e(this,Hm,"f")?.closest("m3e-fab");t&&(void 0!==e(this,Am,"f")&&(t.tabIndex=e(this,Am,"f")),t.removeEventListener("keydown",e(this,Bm,"f")),e(this,Dm,"f").setItems([...e(this,Dm,"f").items.filter(e=>e!==t)]))},Zm.styles=i`:host { position: absolute; flex-direction: column; row-gap: var(--m3e-fab-menu-spacing, 0.25rem); padding: unset; margin: unset; border: unset; overflow: visible; max-width: var(--m3e-fab-menu-max-width, 17.5rem); opacity: 0; background-color: transparent; display: none; } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.spring.fastEffects}, \n transform ${v.motion.spring.fastSpatial},\n overlay ${v.motion.spring.fastEffects} allow-discrete,\n display ${v.motion.spring.fastEffects} allow-discrete`)}; } .base { display: contents; } :host([variant="primary"]) .base { --_fab-menu-item-color: var(--m3e-primary-fab-color, ${v.color.onPrimaryContainer}); --_fab-menu-item-container-color: var(--m3e-primary-fab-container-color, ${v.color.primaryContainer}); --_fab-menu-background-hover-color: var(--m3e-primary-fab-hover-color, ${v.color.onPrimaryContainer}); --_fab-menu-background-focus-color: var(--m3e-primary-fab-focus-color, ${v.color.onPrimaryContainer}); --_fab-menu-ripple-color: var(--m3e-primary-fab-ripple-color, ${v.color.onPrimaryContainer}); } :host([variant="secondary"]) .base { --_fab-menu-item-color: var(--m3e-secondary-fab-color, ${v.color.onSecondaryContainer}); --_fab-menu-item-container-color: var( --m3e-secondary-fab-container-color, ${v.color.secondaryContainer} ); --_fab-menu-background-hover-color: var( --m3e-secondary-fab-hover-color, ${v.color.onSecondaryContainer} ); --_fab-menu-background-focus-color: var( --m3e-secondary-fab-focus-color, ${v.color.onSecondaryContainer} ); --_fab-menu-ripple-color: var(--m3e-secondary-fab-ripple-color, ${v.color.onSecondaryContainer}); } :host([variant="tertiary"]) .base { --_fab-menu-item-color: var(--m3e-tertiary-fab-color, ${v.color.onTertiaryContainer}); --_fab-menu-item-container-color: var(--m3e-tertiary-fab-container-color, ${v.color.tertiaryContainer}); --_fab-menu-background-hover-color: var(--m3e-tertiary-fab-hover-color, ${v.color.onTertiaryContainer}); --_fab-menu-background-focus-color: var(--m3e-tertiary-fab-focus-color, ${v.color.onTertiaryContainer}); --_fab-menu-ripple-color: var(--m3e-tertiary-fab-ripple-color, ${v.color.onTertiaryContainer}); } :host { transform: scaleX(0.8); } :host(:state(-left)) { align-items: flex-start; transform-origin: left; } :host(:state(-right)) { align-items: flex-end; transform-origin: right; } :host(:popover-open) { transform: scaleX(1); display: inline-flex; opacity: 1; } :host::backdrop { background-color: transparent; } @starting-style { :host(:popover-open) { opacity: 0; } :host(:popover-open) { transform: scaleX(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { border-radius: ${v.shape.corner.medium}; outline: 1px solid MenuText; background-color: Menu; } }`,t([m({reflect:!0})],Zm.prototype,"variant",void 0),Zm=t([$("m3e-fab-menu")],Zm);let Gm=class extends(b(z)){get menu(){return this.control instanceof Zm?this.control:null}attach(e){super.attach(e),this.parentElement&&e instanceof Zm&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",e.id&&Ee(this.parentElement,"aria-controls",e.id))}detach(){this.parentElement&&(this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null,this.control?.id&&Me(this.parentElement,"aria-controls",this.control.id)),super.detach()}_onClick(){this.parentElement&&this.menu?.toggle(this.parentElement)}};Gm=t([$("m3e-fab-menu-trigger")],Gm);
6
+ import{__classPrivateFieldGet as e,__decorate as t,__classPrivateFieldSet as a}from"tslib";import{unsafeCSS as o,css as i,LitElement as r,html as s,nothing as n,isServer as l,noChange as c,svg as d}from"lit";import{query as h,property as m,queryAssignedElements as p,state as u}from"lit/decorators.js";import{DesignToken as v,HtmlFor as b,Role as f,hasAssignedNodes as g,debounce as y,customElement as $,EventAttribute as x,MutationController as w,setCustomState as k,deleteCustomState as C,prefersReducedMotion as S,scrollIntoViewIfNeeded as _,forcedColorsActive as L,addCustomState as z,ActionElementBase as E,ReconnectedCallback as M,SuppressInitialAnimation as T,AttachInternals as P,VelocityTracker as I,ScrollLockController as W,InertController as D,ResizeController as A,focusWhenReady as H,hasCustomState as O,computeCssSize as F,registerStyleSheet as B,spaceSeparatedStringConverter as V,KeyboardClick as q,LinkButton as R,FormSubmitter as U,Focusable as N,DisabledInteractive as j,Disabled as Y,FocusController as K,PressedController as Z,renderPseudoLink as G,isSelectedMixin as X,dateConverter as J,Labelled as Q,RequiredConstraintValidation as ee,Dirty as te,Touched as ae,Required as oe,ConstraintValidation as ie,CheckedIndeterminate as re,FormAssociated as se,HoverController as ne,formValue as le,isDisabledMixin as ce,isDisabledInteractiveMixin as de,isLinkButtonMixin as he,getTextContent as me,Vertical as pe,Selected as ue,ScrollController as ve,isReadOnlyMixin as be,interceptProperty as fe,computeLineCount as ge,generateClipPaths as ye,Checked as $e,AnimationLoopController as xe,resolveFragmentUrl as we,safeStyleMap as ke,updateLabels as Ce,guid as Se,IntersectionController as _e,LongPressController as Le}from"@m3e/web/core";import{ListKeyManager as ze,M3eLiveAnnouncer as Ee,M3eInteractivityChecker as Me,isModifierAllowed as Te,addAriaReferencedId as Pe,removeAriaReferencedId as Ie,selectionManager as We,SelectionManager as De,ListManager as Ae,RovingTabIndexManager as He,M3eAriaDescriber as Oe,typeaheadLabel as Fe}from"@m3e/web/core/a11y";import{M3eOptGroupElement as Be}from"@m3e/web/option";import{M3eDirectionality as Ve}from"@m3e/web/core/bidi";import{positionAnchor as qe,M3eFloatingPanelElement as Re}from"@m3e/web/core/anchoring";import{classMap as Ue}from"lit/directives/class-map.js";import{ifDefined as Ne}from"lit/directives/if-defined.js";import{M3eButtonElement as je}from"@m3e/web/button";import{M3eIconButtonElement as Ye}from"@m3e/web/icon-button";import"@m3e/web/tooltip";import{directive as Ke,Directive as Ze,PartType as Ge}from"lit/directive.js";import{M3eBreakpointObserver as Xe,Breakpoint as Je}from"@m3e/web/core/layout";import"@m3e/web/calendar";import{M3eNavBarElement as Qe}from"@m3e/web/nav-bar";import"@m3e/web/form-field";import"@m3e/web/select";import"@m3e/web/button-group";import"@m3e/web/slide-group";import{M3ePlatform as et}from"@m3e/web/core/platform";const tt={small:{containerHeight:o("var(--m3e-app-bar-small-container-height, 4rem)"),titleTextFontSize:o(`var(--m3e-app-bar-small-title-text-font-size, ${v.typescale.standard.title.large.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-small-title-text-font-weight, ${v.typescale.standard.title.large.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-small-title-text-line-height, ${v.typescale.standard.title.large.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.title.large.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-small-subtitle-text-font-size, ${v.typescale.standard.label.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-small-subtitle-text-font-weight, ${v.typescale.standard.label.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-small-subtitle-text-line-height, ${v.typescale.standard.label.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-small-subtitle-text-tracking, ${v.typescale.standard.label.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-small-heading-padding-left, 0.25rem)"),headingPaddingRight:o("var(--m3e-app-bar-small-heading-padding-right, 0.25rem)")},medium:{containerHeight:o("var(--m3e-app-bar-medium-container-height, 7rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-medium-container-height-with-subtitle, 8.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-medium-title-text-font-size, ${v.typescale.standard.headline.medium.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-medium-title-text-font-weight, ${v.typescale.standard.headline.medium.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-medium-title-text-line-height, ${v.typescale.standard.headline.medium.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.headline.medium.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-medium-subtitle-text-font-size, ${v.typescale.standard.title.small.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-medium-subtitle-text-font-weight, ${v.typescale.standard.title.small.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-medium-subtitle-text-line-height, ${v.typescale.standard.title.small.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-medium-subtitle-text-tracking, ${v.typescale.standard.title.small.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-medium-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-medium-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-medium-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-medium-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-medium-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-medium-subtitle-max-lines, 1)")},large:{containerHeight:o("var(--m3e-app-bar-large-container-height, 7.5rem)"),containerHeightWithSubtitle:o("var(--m3e-app-bar-large-container-height-with-subtitle, 9.5rem)"),titleTextFontSize:o(`var(--m3e-app-bar-large-title-text-font-size, ${v.typescale.standard.display.small.fontSize})`),titleTextFontWeight:o(`var(--m3e-app-bar-large-title-text-font-weight, ${v.typescale.standard.display.small.fontWeight})`),titleTextLineHeight:o(`var(--m3e-app-bar-large-title-text-line-height, ${v.typescale.standard.display.small.lineHeight})`),titleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.display.small.tracking})`),subtitleTextFontSize:o(`var(--m3e-app-bar-large-subtitle-text-font-size, ${v.typescale.standard.title.medium.fontSize})`),subtitleTextFontWeight:o(`var(--m3e-app-bar-large-subtitle-text-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),subtitleTextLineHeight:o(`var(--m3e-app-bar-large-subtitle-text-line-height, ${v.typescale.standard.title.medium.lineHeight})`),subtitleTextTracking:o(`var(--m3e-app-bar-large-subtitle-text-tracking, ${v.typescale.standard.title.medium.tracking})`),headingPaddingLeft:o("var(--m3e-app-bar-large-heading-padding-left, 1rem)"),headingPaddingRight:o("var(--m3e-app-bar-large-heading-padding-right, 0.25rem)"),paddingTop:o("var(--m3e-app-bar-large-padding-top, 0.5rem)"),paddingBottom:o("var(--m3e-app-bar-large-padding-bottom, 0.75rem)"),titleMaxLines:o("var(--m3e-app-bar-large-title-max-lines, 2)"),subtitleMaxLines:o("var(--m3e-app-bar-large-subtitle-max-lines, 1)")}};function at(e){return i`:host([size="${o(e)}"]) .base:not(.with-subtitle) { min-height: ${tt[e].containerHeight}; } :host([size="${o(e)}"]) .base.with-subtitle { min-height: ${tt[e].containerHeightWithSubtitle??tt[e].containerHeight}; } :host([size="${o(e)}"]) .title { font-size: ${tt[e].titleTextFontSize}; font-weight: ${tt[e].titleTextFontWeight}; line-height: ${tt[e].titleTextLineHeight}; letter-spacing: ${tt[e].titleTextTracking}; } :host([size="${o(e)}"]) .subtitle { font-size: ${tt[e].subtitleTextFontSize}; font-weight: ${tt[e].subtitleTextFontWeight}; line-height: ${tt[e].subtitleTextLineHeight}; letter-spacing: ${tt[e].subtitleTextTracking}; } :host(:not([centered])[size="${o(e)}"]) .label { padding-inline-start: ${tt[e].headingPaddingLeft}; padding-inline-end: ${tt[e].headingPaddingRight}; } :host([centered][size="${o(e)}"]) .label { padding-inline: ${tt[e].headingPaddingLeft}; } :host([size="${o(e)}"]) .base { padding-block-start: ${tt[e].paddingTop??o("unset")}; padding-block-end: ${tt[e].paddingBottom??o("unset")}; } ${tt[e].titleMaxLines?i`:host([size="${o(e)}"]) .title { display: -webkit-box; -webkit-line-clamp: ${tt[e].titleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${tt[e].titleMaxLines}; }`:i``} ${tt[e].subtitleMaxLines?i`:host([size="${o(e)}"]) .subtitle { display: -webkit-box; -webkit-line-clamp: ${tt[e].subtitleMaxLines}; -webkit-box-orient: vertical; overflow: hidden; line-clamp: ${tt[e].subtitleMaxLines}; }`:i``}`}const ot=[at("small"),at("medium"),at("large")],it=o(`var(--m3e-app-bar-container-color, ${v.color.surface})`),rt=o(`var(--m3e-app-bar-container-color-on-scroll, ${v.color.surfaceContainer})`),st=o(`var(--m3e-app-bar-container-elevation, ${v.elevation.level0})`),nt=o(`var(--m3e-app-bar-container-elevation-on-scroll, ${v.elevation.level1})`),lt=o(`var(--m3e-app-bar-title-text-color, ${v.color.onSurface})`),ct=o(`var(--m3e-app-bar-subtitle-text-color, ${v.color.onSurfaceVariant})`),dt=o("var(--m3e-app-bar-padding-left, 0.25rem)"),ht=o("var(--m3e-app-bar-padding-right, 0.25rem)"),mt=i`:host { display: block; flex: none; } :host([size="small"]) .base, :host(:not([size="small"]):not([centered])) .heading { padding-inline-start: ${dt}; padding-inline-end: ${ht}; } .base { box-sizing: border-box; display: flex; transition: ${o(`background-color ${v.motion.duration.medium1} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium1} ${v.motion.easing.standard}`)}; } .base:not(.on-scroll) { background-color: ${it}; box-shadow: ${st}; } .base.on-scroll { background-color: ${rt}; box-shadow: ${nt}; } .leading-icon, .trailing-icon { display: flex; flex: none; align-items: center; } .leading-icon { min-width: var(--_leading-icon-min-width); } .trailing-icon { min-width: var(--_trailing-icon-min-width); } .heading { display: flex; align-items: center; } :host([size="small"]) .heading { flex: 1 1 auto; } .spacer { flex: 1 1 auto; } .label { display: flex; flex-direction: column; flex: none; } .title { color: ${lt}; } .subtitle { color: ${ct}; } .base:not(.with-title) .title, .base:not(.with-subtitle) .subtitle, .base:not(.with-title):not(.with-subtitle) .label, .base:not(.with-trailing-icon) .trailing-icon { display: none; } :host([size="small"]) .base { align-items: center; } :host([size="small"]) .heading { min-width: 0; } :host([size="small"]) .label { flex: 1 1 auto; min-width: 0; } :host([size="small"]) .title, :host([size="small"]) .subtitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } :host(:not([size="small"])) .base { flex-direction: column; } :host([centered]) .title, :host([centered]) .subtitle { text-align: center; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } .base:not(.on-scroll), .base.on-scroll { background-color: Canvas; box-shadow: unset; } .title { color: CanvasText; } .subtitle { color: FieldText; } }`;var pt,ut,vt,bt,ft,gt,yt,$t,xt,wt,kt,Ct;let St=class extends(b(f(r,"banner"))){constructor(){super(...arguments),pt.add(this),ut.set(this,e=>this._updateScroll(e)),vt.set(this,()=>e(this,pt,"m",kt).call(this)),this.centered=!1,this.size="small"}attach(t){super.attach(t),t instanceof HTMLIFrameElement?(t.addEventListener("load",e(this,vt,"f")),e(this,pt,"m",kt).call(this)):t.addEventListener("scroll",e(this,ut,"f"),{passive:!0})}detach(){this.control instanceof HTMLIFrameElement&&(this.control.removeEventListener("load",e(this,vt,"f")),this.control.contentDocument?.removeEventListener("scroll",e(this,ut,"f"))),this.control&&this.control.removeEventListener("scroll",e(this,ut,"f")),super.detach()}updated(t){super.updated(t),(t.has("centered")||t.has("size"))&&(this.centered&&"small"===this.size?e(this,pt,"m",wt).call(this):e(this,pt,"m",xt).call(this))}render(){return"small"===this.size?s`<div class="base"><div class="leading-icon"><slot name="leading" @slotchange="${e(this,pt,"m",gt)}"><slot name="leading-icon" @slotchange="${e(this,pt,"m",$t)}"></slot></slot></div><div class="heading"><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,pt,"m",bt)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,pt,"m",ft)}"></slot></div></div></div><div class="trailing-icon"><slot name="trailing" @slotchange="${e(this,pt,"m",yt)}"><slot name="trailing-icon" @slotchange="${e(this,pt,"m",$t)}"></slot></slot></div></div>`:s`<div class="base"><div class="heading"><div class="leading-icon"><slot name="leading" @slotchange="${e(this,pt,"m",gt)}"><slot name="leading-icon" @slotchange="${e(this,pt,"m",$t)}"></slot></slot></div><div class="spacer"></div><div class="trailing-icon"><slot name="trailing" @slotchange="${e(this,pt,"m",yt)}"><slot name="trailing-icon" @slotchange="${e(this,pt,"m",$t)}"></slot></slot></div></div><div class="spacer"></div><div class="label"><div class="title"><slot name="title" @slotchange="${e(this,pt,"m",bt)}"></slot></div><div class="subtitle"><slot name="subtitle" @slotchange="${e(this,pt,"m",ft)}"></slot></div></div></div>`}_updateScroll(t){let a=0;this.control instanceof HTMLIFrameElement?a=e(this,pt,"m",Ct).call(this,this.control):t.target instanceof HTMLElement&&(a=t.target.scrollTop),this._base?.classList.toggle("on-scroll",a>0)}};var _t,Lt,zt,Et,Mt,Tt,Pt,It,Wt,Dt,At,Ht,Ot,Ft,Bt,Vt,qt,Rt,Ut,Nt,jt,Yt,Kt,Zt,Gt,Xt,Jt,Qt,ea,ta,aa,oa,ia,ra,sa,na,la,ca,da,ha,ma,pa,ua,va,ba,fa,ga,ya,$a,xa;ut=new WeakMap,vt=new WeakMap,pt=new WeakSet,bt=function(e){this._base?.classList.toggle("with-title",g(e.target))},ft=function(e){this._base?.classList.toggle("with-subtitle",g(e.target))},gt=function(t){this._base?.classList.toggle("with-leading-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,pt,"m",wt).call(this),40)},yt=function(t){this._base?.classList.toggle("with-trailing-icon",g(t.target)),this.centered&&"small"===this.size&&setTimeout(()=>e(this,pt,"m",wt).call(this),40)},$t=function(e){const t=e.target.name,a=t.replace("-icon","");console.warn(`[m3e-app-bar] Slot "${t}" is deprecated and will be removed in a future release. Use "${a}" instead.`)},xt=function(){this._base?.style.removeProperty("--_leading-icon-min-width"),this._base?.style.removeProperty("--_trailing-icon-min-width")},wt=function(){e(this,pt,"m",xt).call(this);const t=this._leadingIcon?.getBoundingClientRect().width??0,a=this._trailingIcon?.getBoundingClientRect().width??0;t<a?this._base?.style.setProperty("--_leading-icon-min-width",`${a}px`):t>a&&this._base?.style.setProperty("--_trailing-icon-min-width",`${t}px`)},kt=function(){this.control instanceof HTMLIFrameElement&&(this.control.contentDocument?.addEventListener("scroll",e(this,ut,"f"),{passive:!0}),this._base?.classList.toggle("on-scroll",e(this,pt,"m",Ct).call(this,this.control)>0))},Ct=function(e){return Math.max(e.contentDocument?.documentElement?.scrollTop??0,e.contentDocument?.body?.scrollTop??0)},St.styles=[mt,ot],t([h(".base")],St.prototype,"_base",void 0),t([h(".leading-icon")],St.prototype,"_leadingIcon",void 0),t([h(".trailing-icon")],St.prototype,"_trailingIcon",void 0),t([m({type:Boolean,reflect:!0})],St.prototype,"centered",void 0),t([m({reflect:!0})],St.prototype,"size",void 0),t([y(40)],St.prototype,"_updateScroll",null),St=t([$("m3e-app-bar")],St);let wa=xa=class extends(x(b(r),"query")){constructor(){super(),_t.add(this),Lt.set(this,`m3e-autocomplete-${xa.__nextId}`),zt.set(this,`${e(this,Lt,"f")}-menu`),this._options=new Array,Et.set(this,void 0),Mt.set(this,!1),Tt.set(this,void 0),Pt.set(this,!1),It.set(this,!1),Wt.set(this,!1),Dt.set(this,void 0),At.set(this,()=>e(this,_t,"m",Jt).call(this)),Ht.set(this,()=>e(this,_t,"m",Qt).call(this)),Ot.set(this,()=>e(this,_t,"m",ea).call(this)),Ft.set(this,()=>e(this,_t,"m",ta).call(this)),Bt.set(this,t=>e(this,_t,"m",ia).call(this,t)),Vt.set(this,t=>e(this,_t,"m",aa).call(this,t)),qt.set(this,()=>e(this,_t,"m",oa).call(this)),Rt.set(this,t=>e(this,_t,"m",sa).call(this,t)),Ut.set(this,t=>e(this,_t,"m",ra).call(this,t)),this._listKeyManager=(new ze).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withSkipPredicate(e=>e.disabled||!0===e.hidden).onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,_t,"m",ma).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.required=!1,this.autoActivate=!1,this.caseSensitive=!1,this.filter="contains",this.loading=!1,this.hideNoData=!1,this.hideLoading=!1,this.loadingLabel="Loading...",this.noDataLabel="No options",this.resultsLabel=e=>`${e} options`,this.panelClass="",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,_t,"m",Xt).call(this)})}get options(){return this._options??[]}get selected(){return this.options.find(e=>e.selected)??null}get value(){const e=this.selected;return e&&!e.disabled?e.value:null}attach(t){t instanceof HTMLInputElement&&(super.attach(t),t.autocomplete="off",t.role="combobox",t.ariaAutoComplete="list",t.ariaExpanded="false",t.addEventListener("click",e(this,At,"f")),t.addEventListener("focus",e(this,Ot,"f")),t.addEventListener("blur",e(this,Ft,"f")),t.addEventListener("keydown",e(this,Bt,"f")),t.addEventListener("input",e(this,Vt,"f")),t.addEventListener("change",e(this,qt,"f")),e(this,_t,"a",Gt)?.addEventListener("pointerdown",e(this,Ht,"f")))}detach(){this.control&&(e(this,_t,"a",Gt)?.removeEventListener("pointerdown",e(this,Ht,"f")),this.control.role=null,this.control.ariaAutoComplete=null,this.control.ariaExpanded=null,this.control.removeEventListener("click",e(this,At,"f")),this.control.removeEventListener("focus",e(this,Ot,"f")),this.control.removeEventListener("blur",e(this,Ft,"f")),this.control.removeEventListener("keydown",e(this,Bt,"f")),this.control.removeEventListener("input",e(this,Vt,"f")),this.control.removeEventListener("change",e(this,qt,"f"))),super.detach()}clear(t=!1){e(this,_t,"a",jt)&&(e(this,_t,"a",jt).value="",e(this,_t,"m",fa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0})),e(this,_t,"m",ba).call(this),t?e(this,_t,"a",jt).focus():e(this,_t,"m",ha).call(this))}connectedCallback(){super.connectedCallback(),e(this,_t,"m",Xt).call(this)}update(t){super.update(t),t.has("hideNoData")&&this.hideNoData&&e(this,Tt,"f")&&k(e(this,Tt,"f"),"-no-data",!1),t.has("loading")&&(this.loading?e(this,Wt,"f")&&(this.loadingLabel&&Ee.announce(this.loadingLabel,"polite"),!e(this,Tt,"f")&&e(this,_t,"a",Zt)&&e(this,_t,"m",la).call(this)):e(this,Tt,"f")&&!e(this,_t,"a",Zt)?e(this,_t,"m",ha).call(this):e(this,Tt,"f")?C(e(this,Tt,"f"),"-loading"):e(this,Wt,"f")&&e(this,_t,"m",la).call(this))}render(){return s`<div class="options" aria-hidden="true"><slot></slot></div>`}};Lt=new WeakMap,zt=new WeakMap,Et=new WeakMap,Mt=new WeakMap,Tt=new WeakMap,Pt=new WeakMap,It=new WeakMap,Wt=new WeakMap,Dt=new WeakMap,At=new WeakMap,Ht=new WeakMap,Ot=new WeakMap,Ft=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,qt=new WeakMap,Rt=new WeakMap,Ut=new WeakMap,_t=new WeakSet,Nt=function(){return this._listKeyManager?.items??[]},jt=function(){return this.control?this.control:null},Yt=function(){return null!==(e(this,Et,"f")?.querySelector("[slot='no-data']")??null)},Kt=function(){return null!==(e(this,Et,"f")?.querySelector("[slot='loading']")??null)},Zt=function(){return e(this,_t,"a",Nt).some(e=>!1===e.hidden)||this.loading&&!this.hideLoading&&this.loadingLabel.length>0||!this.loading&&!this.hideNoData&&this.noDataLabel.length>0},Gt=function(){return this.control?.closest("m3e-form-field")??null},Xt=async function(){e(this,Dt,"f")&&e(this,Dt,"f").abort();const t=new AbortController;a(this,Dt,t,"f");const o=[...this.querySelectorAll("m3e-option")];for(const e of o){if(t.signal.aborted)break;e.isUpdatePending&&await e.updateComplete}if(t.signal.aborted)return;this._options=o,a(this,Et,this.cloneNode(!0),"f");const{added:i}=this._listKeyManager.setItems([...e(this,Et,"f").querySelectorAll("m3e-option")]);if(i.forEach(t=>{t.id=t.id||`${e(this,Lt,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,k(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),e(this,Tt,"f")){const t=e(this,_t,"m",ba).call(this);e(this,_t,"m",ca).call(this),e(this,_t,"a",Zt)?e(this,_t,"m",da).call(this,e(this,Tt,"f"),t):e(this,_t,"m",ha).call(this)}},Jt=function(){a(this,Mt,!0,"f"),e(this,_t,"m",la).call(this)},Qt=function(){a(this,Pt,!0,"f")},ea=function(){a(this,Wt,!0,"f"),a(this,Mt,!0,"f"),0!=this.options.length||this.control.readOnly||this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,_t,"a",jt)?.value??""},bubbles:!0,composed:!0})),e(this,_t,"m",la).call(this)},ta=function(){a(this,Wt,!1,"f"),e(this,Pt,"f")||e(this,_t,"m",ha).call(this),a(this,Pt,!1,"f")},aa=function(t){if(e(this,_t,"a",jt)&&!t.defaultPrevented){this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,_t,"a",jt).value},bubbles:!0,composed:!0})),""===e(this,_t,"a",jt).value&&e(this,_t,"m",fa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0})),a(this,It,!0,"f");try{e(this,Tt,"f")?(e(this,_t,"m",ba).call(this),e(this,_t,"a",Zt)||e(this,_t,"m",ha).call(this)):e(this,_t,"m",la).call(this)}finally{a(this,It,!1,"f"),e(this,_t,"a",Gt)?.notifyControlStateChange(!0)}}},oa=function(){if(e(this,_t,"a",jt)){const t=this.selected;this.required?e(this,_t,"a",jt).value=t?.label??"":t&&t.label!==e(this,_t,"a",jt).value&&e(this,_t,"m",fa).call(this)&&this.dispatchEvent(new Event("change",{bubbles:!0}))}},ia=function(t){if(!t.defaultPrevented)switch(a(this,Mt,!1,"f"),t.key){case"Backspace":case"Delete":e(this,_t,"a",jt)&&!e(this,_t,"a",jt).value&&e(this,_t,"m",ha).call(this);break;case"Enter":e(this,Tt,"f")&&this._listKeyManager.activeItem?(t.preventDefault(),e(this,_t,"m",ua).call(this,this._listKeyManager.activeItem),S()?e(this,_t,"m",ha).call(this):setTimeout(()=>e(this,_t,"m",ha).call(this),150)):e(this,Tt,"f")&&setTimeout(()=>{e(this,_t,"a",jt)&&!e(this,_t,"a",jt).value&&e(this,_t,"m",ha).call(this)});break;case"Escape":case"Tab":e(this,_t,"m",ha).call(this);break;case"Up":case"ArrowUp":t.altKey?e(this,_t,"m",ha).call(this):this._listKeyManager.onKeyDown(t);break;case"Down":case"ArrowDown":e(this,Tt,"f")?this._listKeyManager.onKeyDown(t):(e(this,_t,"m",la).call(this),t.preventDefault());break;default:this._listKeyManager.onKeyDown(t)}},ra=function(t){if(2===t.button)return;t.preventDefault(),t.stopImmediatePropagation();const a=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);a&&!a.disabled&&(this._listKeyManager.setActiveItem(a),e(this,_t,"m",ua).call(this,a),S()?e(this,_t,"m",ha).call(this):setTimeout(()=>e(this,_t,"m",ha).call(this),150))},sa=function(t){if(e(this,Tt,"f"))if("closed"!==t.newState){const a=e(this,_t,"a",Nt).find(e=>e.selected&&!e.disabled);a?(this._listKeyManager.setActiveItem(a),_(a,e(this,Tt,"f"))):e(this,_t,"m",ya).call(this),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else S()?e(this,_t,"m",na).call(this,t):setTimeout(()=>e(this,_t,"m",na).call(this,t),100)},na=function(t){e(this,Tt,"f")&&(e(this,Et,"f")?.replaceChildren(...e(this,Tt,"f").childNodes),e(this,Tt,"f").remove(),e(this,Tt,"f").removeEventListener("toggle",e(this,Rt,"f")),e(this,Tt,"f").removeEventListener("pointerdown",e(this,Ut,"f")),a(this,Tt,void 0,"f"),e(this,_t,"a",jt)&&(e(this,_t,"a",jt).ariaExpanded="false",e(this,_t,"a",jt).removeAttribute("aria-controls"),e(this,_t,"a",jt).removeAttribute("aria-owns"),e(this,_t,"a",jt).removeAttribute("aria-activedescendant")),this.requestUpdate(),e(this,_t,"a",Gt)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})),"input"===e(this,_t,"a",jt)?.slot&&"M3E-INPUT-CHIP-SET"===e(this,_t,"a",jt).parentElement?.tagName&&e(this,_t,"m",fa).call(this))},la=function(){if(e(this,Tt,"f")||!e(this,_t,"a",jt)||e(this,_t,"a",jt).readOnly||e(this,_t,"a",jt).disabled)return;const t=e(this,_t,"m",ba).call(this);if(!e(this,_t,"a",Zt))return;if(a(this,Tt,document.createElement("m3e-option-panel"),"f"),e(this,Tt,"f").id=e(this,zt,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,Tt,"f").classList.add(t);e(this,Tt,"f").style.overflowX="hidden",e(this,Tt,"f").scrollStrategy="reposition",e(this,Tt,"f").fitAnchorWidth=!0,e(this,Tt,"f").addEventListener("toggle",e(this,Rt,"f")),e(this,Tt,"f").addEventListener("pointerdown",e(this,Ut,"f")),e(this,_t,"m",ca).call(this),e(this,_t,"m",da).call(this,e(this,Tt,"f"),t),(e(this,_t,"a",Gt)??e(this,_t,"a",jt)).insertAdjacentElement("afterend",e(this,Tt,"f")),e(this,_t,"a",jt).setAttribute("aria-controls",e(this,zt,"f")),e(this,_t,"a",jt).setAttribute("aria-owns",e(this,zt,"f")),e(this,_t,"a",Gt)?.notifyControlStateChange(),this._listKeyManager.activeItem&&this.autoActivate&&e(this,_t,"m",ma).call(this,this._listKeyManager.activeItem,!0);const o=e(this,_t,"a",jt);setTimeout(()=>e(this,Tt,"f")?.show(o,e(this,_t,"a",Gt)?.menuAnchor))},ca=function(){if(!e(this,Et,"f")||!e(this,Tt,"f"))return;const t=[...e(this,Et,"f").childNodes];if(!e(this,_t,"a",Yt)&&this.noDataLabel){const e=document.createElement("span");e.slot="no-data",e.textContent=this.noDataLabel,t.push(e)}if(!e(this,_t,"a",Kt)&&this.loadingLabel){const e=document.createElement("span");e.slot="loading",e.textContent=this.loadingLabel,t.push(e)}e(this,Tt,"f").replaceChildren(...t)},da=function(e,t){k(e,"-loading",this.loading),k(e,"-no-data",0==t)},ha=function(){e(this,Tt,"f")?.hide()},ma=function(t,a=!1){if(e(this,_t,"a",jt)&&(e(this,_t,"a",jt).setAttribute("aria-activedescendant",t.id),e(this,Tt,"f"))){_(t,e(this,Tt,"f"),{block:"nearest",behavior:"instant"});const o=a||!e(this,Mt,"f")&&(e(this,_t,"a",jt).matches(":focus-visible")||L());e(this,_t,"a",Nt).forEach(e=>{e===t&&o?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},pa=async function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected,t.isUpdatePending&&await t.updateComplete)},ua=async function(t){t.selected||(t.selected=!0,await e(this,_t,"m",pa).call(this,t),t.isUpdatePending&&await t.updateComplete,this.requestUpdate(),this.isUpdatePending&&await this.updateComplete,e(this,_t,"a",jt)&&(e(this,_t,"a",jt).value=t.label),this.dispatchEvent(new Event("change",{bubbles:!0})),e(this,_t,"a",Gt)?.notifyControlStateChange(!0))},va=function(e,t,a,o){const i=this.caseSensitive?t.value:t.value.toLowerCase();switch(this.filter){case"starts-with":return e.term=o,e.highlightMode=this.filter,i.startsWith(a);case"ends-with":return e.term=o,e.highlightMode=this.filter,i.endsWith(a);case"contains":return e.term=o,e.highlightMode=this.filter,i.includes(a);case"none":return e.disableHighlight=!0,!0;default:return e.disableHighlight=!0,this.filter(t,o)}},ba=function(){if(!e(this,_t,"a",jt))return 0;const t=e(this,_t,"a",Nt).filter(e=>!1===e.hidden).length,o=!this.loading&&e(this,It,"f");a(this,It,!1,"f");const i=e(this,_t,"a",jt).value,r=this.caseSensitive?i:i.toLocaleLowerCase();let s,n=0,l=!1;for(let t=0;t<e(this,_t,"a",Nt).length;t++){const a=e(this,_t,"a",Nt)[t],o=this._options[t];a.hidden=!e(this,_t,"m",va).call(this,a,o,r,i),!0===a.hidden?(e(this,_t,"m",$a).call(this,a),C(a,"-first"),C(a,"-last")):(n++,l||a.parentElement instanceof Be?(C(a,"-first"),s&&C(s,"-last"),z(a,"-last"),s=a):(z(a,"-first"),l=!0,z(a,"-last"),s=a))}e(this,Tt,"f")&&e(this,_t,"m",da).call(this,e(this,Tt,"f"),n);const c=e(this,Tt,"f")?.querySelectorAll("m3e-optgroup")??e(this,Et,"f")?.querySelectorAll("m3e-optgroup")??[];for(const e of c)e.hidden=[...e.querySelectorAll("m3e-option")].every(e=>!0===e.hidden);return o&&e(this,_t,"m",ga).call(this,t,n),e(this,_t,"m",ya).call(this),n},fa=function(){const t=this._listKeyManager.items.filter(e=>e.selected);return t.length>0&&(t.forEach(t=>{t.selected=!1,e(this,_t,"m",pa).call(this,t)}),!0)},ga=function(t,a){if(e(this,Wt,"f"))if(0==a)t>0&&this.noDataLabel&&Ee.announce(this.noDataLabel,"polite");else if(t!=a){const e=this.resultsLabel instanceof Function?this.resultsLabel(a):this.resultsLabel;e&&Ee.announce(e,"polite")}},ya=function(){if(this.autoActivate&&(!this._listKeyManager.activeItem||!this._listKeyManager.activeItem.selected)){const t=e(this,_t,"a",Nt).find(e=>!e.disabled&&!1===e.hidden);t&&(this._listKeyManager.setActiveItem(t),e(this,Tt,"f")&&_(t,e(this,Tt,"f"),{block:"nearest",behavior:"instant"}))}},$a=function(t){t.focusRing?.hide(),t.stateLayer?.hide("focused"),t===this._listKeyManager.activeItem&&(this._listKeyManager.updateActiveItem(null),e(this,_t,"a",jt)?.removeAttribute("aria-activedescendant"))},wa.styles=i`:host { display: contents; } .options { display: none; }`,wa.__nextId=0,t([m({attribute:"hide-selection-indicator",type:Boolean})],wa.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean,reflect:!0})],wa.prototype,"required",void 0),t([m({attribute:"auto-activate",type:Boolean})],wa.prototype,"autoActivate",void 0),t([m({attribute:"case-sensitive",type:Boolean})],wa.prototype,"caseSensitive",void 0),t([m({converter:{fromAttribute:e=>null===e?"contains":"starts-with"===e||"ends-with"===e||"contains"===e||"none"===e?e:"contains"}})],wa.prototype,"filter",void 0),t([m({type:Boolean})],wa.prototype,"loading",void 0),t([m({attribute:"hide-no-data",type:Boolean})],wa.prototype,"hideNoData",void 0),t([m({attribute:"hide-loading",type:Boolean})],wa.prototype,"hideLoading",void 0),t([m({attribute:"loading-label"})],wa.prototype,"loadingLabel",void 0),t([m({attribute:"no-data-label"})],wa.prototype,"noDataLabel",void 0),t([m({attribute:"results-label"})],wa.prototype,"resultsLabel",void 0),t([m({attribute:"panel-class"})],wa.prototype,"panelClass",void 0),wa=xa=t([$("m3e-autocomplete")],wa);let ka=class extends r{render(){return s`<div class="base"><slot></slot></div>`}};var Ca,Sa,_a,La,za,Ea;ka.styles=i`:host { display: inline-block; vertical-align: middle; aspect-ratio: 1 / 1; width: var(--m3e-avatar-size, 2.5rem); } .base { user-select: none; white-space: nowrap; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--m3e-avatar-shape, ${v.shape.corner.full}); font-size: var(--m3e-avatar-font-size, ${v.typescale.standard.title.medium.fontSize}); font-weight: var(--m3e-avatar-font-weight, ${v.typescale.standard.title.medium.fontWeight}); line-height: var(--m3e-avatar-line-height, ${v.typescale.standard.title.medium.lineHeight}); letter-spacing: var(--m3e-avatar-tracking, ${v.typescale.standard.title.medium.tracking}); background-color: var(--m3e-avatar-color, ${v.color.primaryContainer}); color: var(--m3e-avatar-label-color, ${v.color.onPrimaryContainer}); } ::slotted(img) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; width: 100%; height: 100%; }`,ka=t([$("m3e-avatar")],ka);let Ma=class extends(b(r)){constructor(){super(...arguments),Ca.add(this),Sa.set(this,void 0),_a.set(this,void 0),this.size="medium",this.position="above-after"}attach(t){super.attach(t),e(this,Ca,"m",Ea).call(this)}detach(){super.detach(),e(this,Ca,"m",za).call(this)}connectedCallback(){super.connectedCallback(),a(this,Sa,Ve.observe(()=>e(this,Ca,"m",Ea).call(this)),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Sa,"f")?.call(this)}update(t){super.update(t),(t.has("position")||t.has("size")||t.has("htmlFor"))&&e(this,Ca,"m",Ea).call(this)}render(){return s`<div class="base"><slot @slotchange="${e(this,Ca,"m",La)}"><span aria-hidden="true">&nbsp;</span></slot></div>`}};Sa=new WeakMap,_a=new WeakMap,Ca=new WeakSet,La=function(){this.isConnected&&this.style.setProperty("--_badge-padding",this.textContent&&this.textContent.length>2?"0 "+("medium"===this.size?"0.25rem":"large"===this.size?"0.5rem":"0"):"")},za=function(){e(this,_a,"f")?.call(this),a(this,_a,void 0,"f")},Ea=async function(){if(e(this,Ca,"m",za).call(this),!this.control)return;let t="top-end";switch(this.position){case"above":t="top";break;case"above-before":t="top-start";break;case"after":t="right";break;case"before":t="left";break;case"below":t="bottom";break;case"below-after":t="bottom-end";break;case"below-before":t="bottom-start"}a(this,_a,await qe(this,this.control,{position:t},(e,t)=>{this.position.includes("before")&&"before"!==this.position&&("rtl"===Ve.current?e+=this.clientWidth:e-=this.clientWidth),this.position.includes("after")&&"after"!==this.position&&("rtl"===Ve.current?e-=this.clientWidth:e+=this.clientWidth),this.style.left=`${e}px`,this.style.top=`${t}px`}),"f")},Ma.styles=i`:host { display: inline-block; vertical-align: baseline; } .base { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; vertical-align: baseline; box-sizing: border-box; user-select: none; padding: var(--_badge-padding); border-radius: var(--m3e-badge-shape, ${v.shape.corner.full}); color: var(--m3e-badge-color, ${v.color.onError}); background-color: var(--m3e-badge-container-color, ${v.color.error}); } :host([for]) { position: absolute; z-index: 1; } :host([for][position="above"]) { transform: translateY(var(--_badge-offset, 0px)); } :host([for][position="above-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="above-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), var(--_badge-offset, 0px), 0); } :host([for][position="above-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), var(--_badge-offset, 0px), 0); } :host([for][position="below"]) { transform: translateY(calc(0px - var(--_badge-offset, 0px))); } :host([for][position="below-after"]:not(:dir(rtl))) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-after"]:dir(rtl)) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:not(:dir(rtl))) { transform: translate3d(var(--_badge-offset, 0px), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="below-before"]:dir(rtl)) { transform: translate3d(calc(0px - var(--_badge-offset, 0px)), calc(0px - var(--_badge-offset, 0px)), 0); } :host([for][position="before"]:not(:dir(rtl))), :host([for][position="after"]:dir(rtl)) { transform: translateX(var(--_badge-offset, 0px)); } :host([for][position="before"]:dir(rtl)), :host([for][position="after"]:not(:dir(rtl))) { transform: translateX(calc(0px - var(--_badge-offset, 0px))); } :host([size="small"]) { height: var(--m3e-badge-small-size, 0.375rem); max-height: var(--m3e-badge-small-size, 0.375rem); width: var(--m3e-badge-small-size, 0.375rem); min-width: var(--m3e-badge-small-size, 0.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.375rem); } :host([size="small"]) .base { font-size: 0; } :host([size="medium"]) { height: var(--m3e-badge-medium-size, 1.375rem); min-width: var(--m3e-badge-medium-size, 1.375rem); --_badge-offset: var(--m3e-badge-small-offset, 0.75rem); } :host([size="medium"]) .base { font-size: var(--m3e-badge-medium-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-badge-medium-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-badge-medium-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-badge-medium-tracking, ${v.typescale.standard.label.small.tracking}); } :host([size="large"]) { height: var(--m3e-badge-large-size, 1.75rem); min-width: var(--m3e-badge-large-size, 1.75rem); --_badge-offset: var(--m3e-badge-small-offset, 1rem); } :host([size="large"]) .base { font-size: var(--m3e-badge-large-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-badge-large-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-badge-large-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-badge-large-tracking, ${v.typescale.standard.label.large.tracking}); } @media (forced-colors: active) { .base { background-color: ButtonFace; color: ButtonText; outline: 1px solid ButtonText; } }`,t([m({reflect:!0})],Ma.prototype,"size",void 0),t([m({reflect:!0})],Ma.prototype,"position",void 0),Ma=t([$("m3e-badge")],Ma);let Ta=class extends E{_onClick(){this.closest("m3e-bottom-sheet")?.hide()}};var Pa,Ia,Wa,Da,Aa,Ha,Oa,Fa,Ba,Va,qa,Ra,Ua,Na,ja,Ya,Ka,Za,Ga,Xa,Ja,Qa,eo,to,ao,oo,io,ro,so,no,lo,co,ho,mo,po,uo,vo,bo,fo;Ta=t([$("m3e-bottom-sheet-action")],Ta);let go=fo=class extends(x(M(T(P(r))),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),Pa.add(this),Ia.set(this,t=>e(this,Pa,"m",Qa).call(this,t)),Wa.set(this,t=>e(this,Pa,"m",eo).call(this,t)),Da.set(this,()=>e(this,Pa,"m",to).call(this)),Aa.set(this,new I),Ha.set(this,new W(this)),Oa.set(this,new D(this)),Fa.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,Pa,"m",po).call(this,t)})),Ba.set(this,null),Va.set(this,void 0),qa.set(this,!1),Ra.set(this,0),Ua.set(this,void 0),Na.set(this,0),ja.set(this,0),Ya.set(this,void 0),this.modal=!1,this.open=!1,this.handle=!1,this.handleLabel="Drag handle",this.detents=[],this.detent=0,this.hideable=!1,this.hideFriction=.5}show(t=this.detent){this.open?void 0!==t&&e(this,Ra,"f")!==t&&e(this,Pa,"m",uo).call(this,t):(a(this,Ua,t,"f"),this.open=!0)}hide(){this.open=!1}toggle(e){this.open?this.hide():this.show(e)}cycle(){var t;this.open?this.detents.length>0?e(this,Ra,"f")<this.detents.length-1?(a(this,Ra,(t=e(this,Ra,"f"),++t),"f"),e(this,Pa,"m",uo).call(this,e(this,Ra,"f"))):this.hideable&&this.hide():this.hide():this.show()}update(e){super.update(e),e.has("modal")&&(this.role=this.modal?"dialog":"region",this.ariaModal=this.modal?"true":null,this.popover=this.modal?"manual":null)}reconnectedCallback(){super.reconnectedCallback(),e(this,Pa,"m",Ka).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Pa,"m",Ka).call(this)}updated(t){if(super.updated(t),t.has("open")){if(this.open){if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);fo.__openSheet!==this&&fo.__openSheet?.hide(),fo.__openSheet=this,this.inert=!1,window.addEventListener("resize",e(this,Da,"f")),this.detents.length>0?(a(this,Ra,Math.min(Math.max(0,e(this,Ua,"f")??this.detent),this.detents.length-1),"f"),e(this,Pa,"m",bo).call(this,e(this,Pa,"m",no).call(this,this.detents[e(this,Ra,"f")]))):e(this,Pa,"m",bo).call(this,Math.min(e(this,Pa,"m",no).call(this,"fit"),e(this,Pa,"m",no).call(this,"half"))),a(this,Ua,void 0,"f")}else{if(!this.dispatchEvent(new Event("closing",{cancelable:!0})))return void(this.open=!0);requestAnimationFrame(()=>this.inert=!0),window.removeEventListener("resize",e(this,Da,"f")),fo.__openSheet===this&&(fo.__openSheet=void 0)}if(this.modal)if(this.open){a(this,Ba,document.activeElement,"f"),e(this,Oa,"f").lock(),e(this,Ha,"f").lock(),this.showPopover(),requestAnimationFrame(()=>{document.addEventListener("click",e(this,Ia,"f")),document.addEventListener("keydown",e(this,Wa,"f"))});let t=this.querySelector("[autofocus]");t&&Me.isFocusable(t)||(t=this.shadowRoot?.querySelector(".handle")),t&&H(t)}else e(this,Pa,"m",vo).call(this,0).then(()=>{e(this,Oa,"f").unlock(),e(this,Ha,"f").unlock(),document.removeEventListener("click",e(this,Ia,"f")),document.removeEventListener("keydown",e(this,Wa,"f")),this.hidePopover(),e(this,Ba,"f")instanceof HTMLElement&&e(this,Ba,"f").focus(),a(this,Ba,null,"f")});this.dispatchEvent(new Event(this.open?"opened":"closed"))}}render(){return s`<m3e-focus-trap ?disabled="${!this.modal}"><div class="base"><m3e-elevation class="elevation"></m3e-elevation><div class="header" @pointerdown="${e(this,Pa,"m",Ga)}" @pointermove="${e(this,Pa,"m",Xa)}" @pointerup="${e(this,Pa,"m",Ja)}">${this.handle?s`<div class="handle-row"><div id="handle" class="handle" role="button" aria-label="${this.handleLabel}" tabindex="0" @click="${e(this,Pa,"m",ao)}" @keydown="${e(this,Pa,"m",oo)}"><m3e-focus-ring class="focus-ring" for="handle"></m3e-focus-ring><div class="handle-touch" aria-hidden="true"></div></div></div>`:n}<slot name="header" @slotchange="${e(this,Pa,"m",Za)}"></slot></div><div class="body"><div class="content"><slot></slot></div></div></div></m3e-focus-trap>`}};Ia=new WeakMap,Wa=new WeakMap,Da=new WeakMap,Aa=new WeakMap,Ha=new WeakMap,Oa=new WeakMap,Fa=new WeakMap,Ba=new WeakMap,Va=new WeakMap,qa=new WeakMap,Ra=new WeakMap,Ua=new WeakMap,Na=new WeakMap,ja=new WeakMap,Ya=new WeakMap,Pa=new WeakSet,Ka=function(){const t=this.shadowRoot?.querySelector(".content");t&&(a(this,Na,t.clientHeight,"f"),e(this,Fa,"f").observe(t));const o=this.shadowRoot?.querySelector(".header");o&&(a(this,ja,o.clientHeight,"f"),e(this,Fa,"f").observe(o))},Za=function(e){k(this,"has-header",g(e.target))},Ga=function(t){t.target instanceof HTMLElement&&Me.isFocusable(t.target)||(t.target.setPointerCapture(t.pointerId),t.target.style.cursor="grabbing",e(this,Aa,"f").reset(),e(this,Aa,"f").add(t.clientY),a(this,Va,{startY:t.clientY,startHeight:this.clientHeight,maxHeight:e(this,Pa,"m",lo).call(this),minHeight:e(this,Pa,"m",co).call(this)},"f"),a(this,qa,!1,"f"))},Xa=function(t){if(!e(this,Va,"f"))return;if(Math.abs(t.clientY-e(this,Va,"f").startY)<=8)return;(t.getCoalescedEvents?.()??[t]).forEach(a=>e(this,Aa,"f").add(a.clientY,t.timeStamp));let o=e(this,Va,"f").startHeight-(t.clientY-e(this,Va,"f").startY);if(o<e(this,Va,"f").minHeight){const t=(e(this,Va,"f").minHeight-o)*this.hideFriction;o=e(this,Va,"f").minHeight-t}e(this,Pa,"m",bo).call(this,Math.min(e(this,Va,"f").maxHeight,o)),a(this,qa,!0,"f")},Ja=function(t){if(e(this,Va,"f"))try{if(t.target.releasePointerCapture(t.pointerId),t.target.style.cursor="",!e(this,qa,"f"))return;const a="touch"===t.pointerType?1200:500,o=e(this,Aa,"f").getVelocity();if(e(this,Aa,"f").reset(),this.hideable&&o>=a)this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide();else if(Math.abs(o)>=a)if(this.detents.length>0){const t=e(this,Pa,"m",io).call(this);t!==e(this,Ra,"f")&&e(this,Pa,"m",uo).call(this,t)}else e(this,Pa,"m",vo).call(this,e(this,Pa,"m",no).call(this,"full"));else{const t=20;if(this.hideable){const a=e(this,Va,"f").minHeight;if(this.clientHeight<a-t)return void this.hide()}this.detents.length>0?e(this,Pa,"m",uo).call(this,e(this,Pa,"m",so).call(this)):this.clientHeight<e(this,Va,"f").minHeight&&e(this,Pa,"m",vo).call(this,e(this,Va,"f").minHeight)}}finally{a(this,Va,void 0,"f")}},Qa=function(e){this.open&&this.modal&&!e.composedPath().includes(this)&&this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide()},eo=function(e){this.open&&this.modal&&"Escape"===e.key&&!e.shiftKey&&!e.ctrlKey&&(e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},to=function(){if(this.detents.length>0&&"half"===this.detents[e(this,Ra,"f")])return void e(this,Pa,"m",bo).call(this,e(this,Pa,"m",no).call(this,"half"));const t=e(this,Pa,"m",lo).call(this);(O(this,"-full")||this.clientHeight>t)&&e(this,Pa,"m",bo).call(this,t)},ao=function(){e(this,qa,"f")||this.cycle(),a(this,qa,!1,"f")},oo=function(t){if(!t.defaultPrevented&&Te(t))switch(t.key){case"Up":case"ArrowUp":if(t.preventDefault(),this.detents.length>0){const t=e(this,Pa,"m",io).call(this);t!==e(this,Ra,"f")&&e(this,Pa,"m",uo).call(this,t)}else e(this,Pa,"m",vo).call(this,e(this,Pa,"m",no).call(this,"full"));break;case"Down":case"ArrowDown":if(t.preventDefault(),this.detents.length>0){const t=e(this,Pa,"m",ro).call(this);t!==e(this,Ra,"f")?e(this,Pa,"m",uo).call(this,t):this.hideable&&this.hide()}else this.hideable&&this.hide()}},io=function(){const t=this.clientHeight;let a=1/0,o=e(this,Ra,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ra,"f"))continue;const r=e(this,Pa,"m",no).call(this,this.detents[i]);r>t&&r<a&&(a=r,o=i)}return o},ro=function(){const t=this.clientHeight;let a=-1/0,o=e(this,Ra,"f");for(let i=0;i<this.detents.length;i++){if(i===e(this,Ra,"f"))continue;const r=e(this,Pa,"m",no).call(this,this.detents[i]);r<t&&r>a&&(a=r,o=i)}return o},so=function(){const t=this.clientHeight;let a=e(this,Ra,"f"),o=1/0;for(let i=0;i<this.detents.length;i++){const r=e(this,Pa,"m",no).call(this,this.detents[i]),s=Math.abs(t-r);s<o&&(o=s,a=i)}return a},no=function(t){switch(t){case"collapsed":return e(this,Pa,"m",co).call(this);case"half":return.5*e(this,Pa,"m",lo).call(this);case"full":return e(this,Pa,"m",lo).call(this);case"fit":return e(this,Pa,"m",mo).call(this)}return t.endsWith("%")?e(this,Pa,"m",lo).call(this)*(parseFloat(t)/100):t.endsWith("px")?parseFloat(t):e(this,Pa,"m",co).call(this)},lo=function(){const e=this.shadowRoot?.querySelector(".base");return window.innerHeight-(e?F(e,"var(--_bottom-sheet-top-space)"):0)},co=function(){return this.detents.includes("fit")&&!this.detents.includes("collapsed")?e(this,Pa,"m",mo).call(this):e(this,Pa,"m",ho).call(this)},ho=function(){const t=this.shadowRoot?.querySelector(".base");return e(this,ja,"f")+(t?F(t,"var(--_bottom-sheet-peek-height)"):0)},mo=function(){const t=this.shadowRoot?.querySelector(".body");if(!t)return 0;const a=getComputedStyle(t);return e(this,ja,"f")+e(this,Na,"f")+parseFloat(a.paddingBlockStart)+parseFloat(a.paddingBlockEnd)},po=function(t){const o=e(this,Na,"f"),i=e(this,ja,"f");for(const e of t)e.target.classList.contains("content")?a(this,Na,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f"):e.target.classList.contains("header")&&a(this,ja,(Array.isArray(e.borderBoxSize)?e.borderBoxSize[0]:e.borderBoxSize).blockSize,"f");if(this.open&&this.detents.length>0&&(o!==e(this,Na,"f")||i!==e(this,ja,"f")))switch(this.detents[e(this,Ra,"f")]){case"fit":e(this,Pa,"m",bo).call(this,e(this,Pa,"m",mo).call(this));break;case"collapsed":e(this,Pa,"m",bo).call(this,e(this,Pa,"m",co).call(this))}},uo=function(t){t>=0&&t<this.detents.length&&(a(this,Ra,t,"f"),e(this,Pa,"m",vo).call(this,e(this,Pa,"m",no).call(this,this.detents[t])))},vo=async function(t){e(this,Ya,"f")&&(e(this,Pa,"m",bo).call(this,this.clientHeight),e(this,Ya,"f")?.cancel(),a(this,Ya,void 0,"f")),S()?e(this,Pa,"m",bo).call(this,t):(a(this,Ya,this.animate([{"--_bottom-sheet-height":`${this.clientHeight}px`},{"--_bottom-sheet-height":`${t}px`}],{duration:250,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}),"f"),e(this,Ya,"f").onfinish=()=>{e(this,Pa,"m",bo).call(this,t),a(this,Ya,void 0,"f")},await e(this,Ya,"f").finished)},bo=function(t){this.style.setProperty("--_bottom-sheet-height",`${t}px`),k(this,"-full",t===e(this,Pa,"m",lo).call(this));const a=this.shadowRoot?.querySelector(".content");a&&(a.inert=t<=e(this,Pa,"m",ho).call(this))},B(i`@property --_bottom-sheet-height { syntax: "<length>"; inherits: false; initial-value: 50vh; } m3e-bottom-sheet > [slot="header"] { margin-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); margin-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); }</length>`),go.styles=i`:host { display: block; position: fixed; left: 50%; top: calc(100vh - var(--_bottom-sheet-height)); margin: 0; padding: 0; outline: none; overflow: hidden; border: none; box-sizing: border-box; width: var(--m3e-bottom-sheet-width, 100%); max-width: var(--m3e-bottom-sheet-max-width, 40rem); height: var(--_bottom-sheet-height); color: var(--m3e-bottom-sheet-color, ${v.color.onSurface}); background-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } :host(:not(:state(-no-animate))) { transition: ${o(`transform ${v.motion.duration.medium2} ${v.motion.easing.standardDecelerate},\n border-radius ${v.motion.duration.medium2} ${v.motion.easing.standard}`)}; } :host(:not([modal]):not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-elevation, ${v.elevation.level1}); } :host([modal]:not(:state(-full))) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-modal-elevation, ${v.elevation.level1}); } :host(:state(-full)) .elevation { --m3e-elevation-level: var(--m3e-bottom-sheet-full-elevation, ${v.elevation.level1}); } :host(:not([modal])) { z-index: var(--m3e-bottom-sheet-z-index, 10); } :host(:not([modal]):not([open])), :host([modal]:not(:popover-open)) { border-radius: var(--m3e-bottom-sheet-minimized-container-shape, ${v.shape.corner.none}); transform: translateX(-50%) translateY(100%); } :host(:not([modal])[open]:not(:state(-full))), :host([modal]:not(:state(-full)):popover-open) { border-radius: var(--m3e-bottom-sheet-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]:state(-full)), :host([modal]:state(-full):popover-open) { border-radius: var(--m3e-bottom-sheet-full-container-shape, ${v.shape.corner.extraLargeTop}); } :host(:not([modal])[open]), :host([modal]:popover-open) { transform: translateX(-50%) translateY(0); } :host([modal]:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) var(--m3e-bottom-sheet-scrim-opacity, 32%), transparent ); } :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { :host([modal]:popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-bottom-sheet-scrim-color, ${v.color.scrim}) 0%, transparent ); } } .base { display: flex; border-radius: inherit; flex-direction: column; height: 100%; --_bottom-sheet-peek-height: var(--m3e-bottom-sheet-peek-height, 0); --_bottom-sheet-top-space: var(--m3e-bottom-sheet-compact-top-space, 4.5rem); } @media (max-height: 640px) { .base { --_bottom-sheet-top-space: var(--m3e-bottom-sheet-top-space, 3.5rem); } } .body { flex: 1 1 auto; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; padding-block-end: var(--m3e-bottom-sheet-padding-block, 0.5rem); padding-inline: var(--m3e-bottom-sheet-padding-inline, 1rem); font-size: var(--m3e-bottom-sheet-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-bottom-sheet-content-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-bottom-sheet-content-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var(--m3e-bottom-sheet-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .content { height: fit-content; } :host(:not([handle])) .header { display: none; } :host(:not([handle])) .body, .header { border-top-left-radius: inherit; border-top-right-radius: inherit; padding-block-start: var(--m3e-bottom-sheet-padding-block, 0.5rem); font-size: var(--m3e-bottom-sheet-header-font-size, ${v.typescale.standard.title.large.fontSize}); font-weight: var(--m3e-bottom-sheet-header-font-weight, ${v.typescale.standard.title.large.fontWeight}); line-height: var(--m3e-bottom-sheet-header-line-height, ${v.typescale.standard.title.large.lineHeight}); letter-spacing: var(--m3e-bottom-sheet-header-tracking, ${v.typescale.standard.title.large.tracking}); } .header { cursor: grab; touch-action: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); box-sizing: border-box; flex: none; display: flex; flex-direction: column; min-height: 3rem; --m3e-app-bar-container-color: var(--m3e-bottom-sheet-container-color, ${v.color.surfaceContainerLow}); } .handle-row { position: relative; flex: none; display: flex; align-items: center; justify-content: center; opacity: 1; visibility: visible; height: var(--m3e-bottom-sheet-handle-container-height, 1.5rem); } :host(:not(:state(-no-animate))) .handle-row { transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard},\n padding ${v.motion.duration.short3} ${v.motion.easing.standard},\n height ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .handle { position: relative; width: var(--m3e-bottom-sheet-handle-width, 2rem); height: var(--m3e-bottom-sheet-handle-height, 4px); border-radius: var(--m3e-bottom-sheet-handle-shape, ${v.shape.corner.full}); background-color: var(--m3e-bottom-sheet-handle-color, ${v.color.onSurfaceVariant}); } .handle-touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); right: calc(0px - calc(calc(3rem - var(--m3e-bottom-sheet-handle-width, 2rem)) / 2)); top: calc( 0px - calc( calc(3rem - var(--m3e-bottom-sheet-handle-container-height, 1.5rem)) - calc( var(--m3e-bottom-sheet-handle-height, 4px) / 2 ) ) ); } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))), :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop, :host(:not(:state(-no-animate))) .handle-row { transition: none; } } @media (forced-colors: active) { :host([modal]:not(:state(-no-animate)))::backdrop, :host([modal]:popover-open:not(:state(-no-animate)))::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } .handle { background-color: ButtonText; } }`,t([m({type:Boolean,reflect:!0})],go.prototype,"modal",void 0),t([m({type:Boolean,reflect:!0})],go.prototype,"open",void 0),t([m({type:Boolean})],go.prototype,"handle",void 0),t([m({attribute:"handle-label"})],go.prototype,"handleLabel",void 0),t([m({attribute:"detents",converter:V})],go.prototype,"detents",void 0),t([m({type:Number})],go.prototype,"detent",void 0),t([m({type:Boolean,reflect:!0})],go.prototype,"hideable",void 0),t([m({attribute:"hide-friction",type:Number})],go.prototype,"hideFriction",void 0),go=fo=t([$("m3e-bottom-sheet")],go);let yo=class extends(b(E)){constructor(){super(...arguments),this.secondary=!1}attach(e){e instanceof go&&(super.attach(e),this.parentElement&&(e.modal?this.parentElement.ariaHasPopup="dialog":this.secondary||(this.parentElement.ariaExpanded="false",Pe(this.parentElement,"aria-controls",e.id),this.parentElement.id&&Pe(e,"aria-labelledby",this.parentElement.id))))}detach(){this.control&&this.parentElement&&!this.secondary&&Ie(this.parentElement,"aria-controls",this.control.id),super.detach()}_onClick(){this.control instanceof go&&(this.control.modal?this.control.show(this.detent):(this.control.toggle(this.detent),!this.secondary&&this.parentElement&&(this.parentElement.ariaExpanded=`${this.control.open}`)))}};t([m({type:Number})],yo.prototype,"detent",void 0),t([m({type:Boolean})],yo.prototype,"secondary",void 0),yo=t([$("m3e-bottom-sheet-trigger")],yo);const $o={"extra-small":{containerHeight:o(`calc(var(--m3e-button-extra-small-container-height, var(--m3e-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-button-extra-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-extra-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-extra-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-extra-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-extra-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-extra-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-extra-small-leading-space, var(--m3e-button-leading-space, 0.75rem))"),trailingSpace:o("var(--m3e-button-extra-small-trailing-space, var(--m3e-button-trailing-space, 0.75rem))"),iconLabelSpace:o("var(--m3e-button-extra-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},small:{containerHeight:o(`calc(var(--m3e-button-small-container-height, var(--m3e-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-button-small-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-small-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.label.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-small-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-small-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-small-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.label.large.tracking}))`),iconSize:o("var(--m3e-button-small-icon-size, var(--m3e-button-icon-size, 1.25rem))"),shapeRound:o(`var(--m3e-button-small-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-small-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-button-small-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-button-small-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-small-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.small}))`),leadingSpace:o("var(--m3e-button-small-leading-space, var(--m3e-button-leading-space, 1rem))"),trailingSpace:o("var(--m3e-button-small-trailing-space, var(--m3e-button-trailing-space, 1rem))"),iconLabelSpace:o("var(--m3e-button-small-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},medium:{containerHeight:o(`calc(var(--m3e-button-medium-container-height, var(--m3e-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-button-medium-outline-thickness, var(--m3e-button-outline-thickness, 1px))"),labelTextFontSize:o(`var(--m3e-button-medium-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.body.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-medium-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.body.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-medium-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.body.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-medium-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.body.large.tracking}))`),iconSize:o("var(--m3e-button-medium-icon-size, var(--m3e-button-icon-size, 1.5rem))"),shapeRound:o(`var(--m3e-button-medium-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-medium-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-button-medium-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-button-medium-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-medium-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.medium}))`),leadingSpace:o("var(--m3e-button-medium-leading-space, var(--m3e-button-leading-space, 1.5rem))"),trailingSpace:o("var(--m3e-button-medium-trailing-space, var(--m3e-button-trailing-space, 1.5rem))"),iconLabelSpace:o("var(--m3e-button-medium-icon-label-space, var(--m3e-button-icon-label-space, 0.5rem))")},large:{containerHeight:o(`calc(var(--m3e-button-large-container-height, var(--m3e-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-large-outline-thickness, var(--m3e-button-outline-thickness, 2px))"),labelTextFontSize:o(`var(--m3e-button-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o("var(--m3e-button-large-icon-size, var(--m3e-button-icon-size, 2rem))"),shapeRound:o(`var(--m3e-button-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-large-leading-space, var(--m3e-button-leading-space, 3rem))"),trailingSpace:o("var(--m3e-button-large-trailing-space, var(--m3e-button-trailing-space, 3rem))"),iconLabelSpace:o("var(--m3e-button-large-icon-label-space, var(--m3e-button-icon-label-space, 0.75rem))")},"extra-large":{containerHeight:o(`calc(var(--m3e-button-extra-large-container-height, var(--m3e-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-button-extra-large-outline-thickness, var(--m3e-button-outline-thickness, 3px))"),labelTextFontSize:o(`var(--m3e-button-extra-large-label-text-font-size, var(--m3e-button-label-text-font-size, ${v.typescale.standard.headline.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-button-extra-large-label-text-font-weight, var(--m3e-button-label-text-font-weight, ${v.typescale.standard.headline.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-button-extra-large-label-text-line-height, var(--m3e-button-label-text-line-height, ${v.typescale.standard.headline.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-button-extra-large-label-text-tracking, var(--m3e-button-label-text-tracking, ${v.typescale.standard.headline.large.tracking}))`),iconSize:o("var(--m3e-button-extra-large-icon-size, var(--m3e-button-icon-size, 2.5rem))"),shapeRound:o(`var(--m3e-button-extra-large-shape-round, var(--m3e-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-button-extra-large-shape-square, var(--m3e-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-button-extra-large-selected-shape-round, var(--m3e-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-button-extra-large-selected-shape-square, var(--m3e-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-button-extra-large-shape-pressed-morph, var(--m3e-button-shape-pressed-morph, ${v.shape.corner.large}))`),leadingSpace:o("var(--m3e-button-extra-large-leading-space, var(--m3e-button-leading-space, 4rem))"),trailingSpace:o("var(--m3e-button-extra-large-trailing-space, var(--m3e-button-trailing-space, 4rem))"),iconLabelSpace:o("var(--m3e-button-extra-large-icon-label-space, var(--m3e-button-icon-label-space, 1rem))")}};function xo(e){return i`:host([size="${o(e)}"]) .base { height: ${$o[e].containerHeight}; } :host([size="${o(e)}"]) .wrapper { padding-inline-start: ${$o[e].leadingSpace}; padding-inline-end: ${$o[e].trailingSpace}; column-gap: ${$o[e].iconLabelSpace}; } :host( [size="${o(e)}"]:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not( :state(-pressed) ) ) .wrapper { padding-inline-start: calc( ${$o[e].leadingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); padding-inline-end: calc( ${$o[e].trailingSpace} - calc( calc(var(--_adjacent-button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) / 4.25 ) ); } :host([size="${o(e)}"]) .label { font-size: ${$o[e].labelTextFontSize}; font-weight: ${$o[e].labelTextFontWeight}; line-height: ${$o[e].labelTextLineHeight}; letter-spacing: ${$o[e].labelTextTracking}; } :host([size="${o(e)}"]) .icon { font-size: ${$o[e].iconSize}; --m3e-icon-size: ${$o[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${$o[e].outlineThickness}); outline-width: ${$o[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]) .base { border-radius: var(--_button-shape, ${$o[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${$o[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${$o[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${$o[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${$o[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${$o[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${$o[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${$o[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${$o[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${$o[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${$o[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${$o[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${$o[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${$o[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var(--_button-start-shape-pressed-morph, ${$o[e].shapePressedMorph}); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${$o[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${$o[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${$o[e].shapePressedMorph}); }`}const wo=[xo("extra-small"),xo("small"),xo("medium"),xo("large"),xo("extra-large")],ko=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]), ::slotted([slot="trailing-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]), ::slotted(svg[slot="selected-icon"]), ::slotted(svg[slot="trailing-icon"]) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected-icon"], :host([toggle][selected]) .base.with-selected-icon slot[name="icon"] { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected))) { transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .label, .icon { transition: none; } }`,Co={elevated:{labelTextColor:o(`var(--m3e-elevated-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-elevated-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-button-container-color, var(--m3e-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-elevated-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-elevated-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-elevated-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-elevated-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-elevated-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-elevated-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{labelTextColor:o(`var(--m3e-outlined-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSurfaceVariant}))`),iconColor:o(`var(--m3e-outlined-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-outline-color, var(--m3e-button-outline-color, ${v.color.outlineVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedIconColor:o(`var(--m3e-outlined-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-outlined-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-outlined-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-button-disabled-outline-color, var(--m3e-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-hover-outline-color, var(--m3e-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-focus-outline-color, var(--m3e-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),labelTextColor:o(`var(--m3e-outlined-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-button-pressed-outline-color, var(--m3e-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedLabelTextColor:o(`var(--m3e-outlined-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{labelTextColor:o(`var(--m3e-filled-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-filled-button-icon-color, var(--m3e-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-button-container-color, var(--m3e-button-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-filled-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-filled-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onPrimary}))`),selectedIconColor:o(`var(--m3e-filled-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-filled-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-filled-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-filled-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-filled-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-filled-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-filled-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-filled-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedLabelTextColor:o(`var(--m3e-filled-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedLabelTextColor:o(`var(--m3e-filled-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{labelTextColor:o(`var(--m3e-tonal-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-tonal-button-icon-color, var(--m3e-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-button-container-color, var(--m3e-button-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-tonal-button-container-elevation, var(--m3e-button-container-elevation, ${v.elevation.level0}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-button-unselected-container-color, var(--m3e-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.onSecondary}))`),selectedIconColor:o(`var(--m3e-tonal-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-button-selected-container-color, var(--m3e-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tonal-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tonal-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tonal-button-disabled-container-elevation, var(--m3e-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tonal-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-hover-container-elevation, var(--m3e-button-hover-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-tonal-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-focus-container-elevation, var(--m3e-button-focus-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-tonal-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tonal-button-pressed-container-elevation, var(--m3e-button-pressed-container-elevation, ${v.elevation.level0}))`),unselectedIconColor:o(`var(--m3e-tonal-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedLabelTextColor:o(`var(--m3e-tonal-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},text:{labelTextColor:o(`var(--m3e-text-button-label-text-color, var(--m3e-button-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-text-button-icon-color, var(--m3e-button-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-unselected-label-text-color, var(--m3e-button-unselected-label-text-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-text-button-unselected-icon-color, var(--m3e-button-unselected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-selected-label-text-color, var(--m3e-button-selected-label-text-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-selected-icon-color, var(--m3e-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-text-button-disabled-container-color, var(--m3e-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-text-button-disabled-container-opacity, var(--m3e-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-text-button-disabled-icon-color, var(--m3e-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-text-button-disabled-icon-opacity, var(--m3e-button-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-text-button-disabled-label-text-color, var(--m3e-button-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-text-button-disabled-label-text-opacity, var(--m3e-button-disabled-label-text-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-text-button-hover-icon-color, var(--m3e-button-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-hover-label-text-color, var(--m3e-button-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-hover-state-layer-color, var(--m3e-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-hover-state-layer-opacity, var(--m3e-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-hover-unselected-icon-color, var(--m3e-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-hover-unselected-label-text-color, var(--m3e-button-hover-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-hover-unselected-state-layer-color, var(--m3e-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-hover-selected-icon-color, var(--m3e-button-hover-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-hover-selected-label-text-color, var(--m3e-button-hover-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-hover-selected-state-layer-color, var(--m3e-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-text-button-focus-icon-color, var(--m3e-button-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-focus-label-text-color, var(--m3e-button-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-focus-state-layer-color, var(--m3e-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-focus-state-layer-opacity, var(--m3e-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-focus-unselected-icon-color, var(--m3e-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-focus-unselected-label-text-color, var(--m3e-button-focus-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-focus-unselected-state-layer-color, var(--m3e-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-focus-selected-icon-color, var(--m3e-button-focus-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-focus-selected-label-text-color, var(--m3e-button-focus-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-focus-selected-state-layer-color, var(--m3e-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-text-button-pressed-icon-color, var(--m3e-button-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-text-button-pressed-label-text-color, var(--m3e-button-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-text-button-pressed-state-layer-color, var(--m3e-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-text-button-pressed-state-layer-opacity, var(--m3e-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-text-button-pressed-unselected-icon-color, var(--m3e-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedLabelTextColor:o(`var(--m3e-text-button-pressed-unselected-label-text-color, var(--m3e-button-pressed-unselected-label-text-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-text-button-pressed-unselected-state-layer-color, var(--m3e-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-text-button-pressed-selected-icon-color, var(--m3e-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedLabelTextColor:o(`var(--m3e-text-button-pressed-selected-label-text-color, var(--m3e-button-pressed-selected-label-text-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-text-button-pressed-selected-state-layer-color, var(--m3e-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function So(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Co[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${Co[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Co[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Co[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Co[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Co[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Co[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Co[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Co[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Co[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Co[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${Co[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Co[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${Co[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${Co[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Co[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Co[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${Co[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${Co[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Co[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Co[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Co[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${Co[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].selectedLabelTextColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].focus.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].focus.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].focus.selectedLabelTextColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].hover.labelTextColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].hover.unselectedLabelTextColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].hover.selectedLabelTextColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .label { color: ${Co[e].pressed.labelTextColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .label { color: ${Co[e].pressed.unselectedLabelTextColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .label { color: ${Co[e].pressed.selectedLabelTextColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${Co[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${Co[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${Co[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Co[e].disabled.containerElevation??o("unset")}; outline-color: ${Co[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${Co[e].disabled.containerColor} ${Co[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${Co[e].disabled.labelTextColor} ${Co[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Co[e].disabled.iconColor} ${Co[e].disabled.iconOpacity}, transparent ); }`}const _o=[So("text"),So("elevated"),So("outlined"),So("filled"),So("tonal"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var Lo,zo,Eo,Mo,To,Po;let Io=class extends(q(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),Lo.add(this),zo.set(this,t=>e(this,Lo,"m",Eo).call(this,t)),this.variant="text",this.shape="rounded",this.size="small",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new K(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new Z(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,Lo,"m",To).call(this),S()?e(this,Lo,"m",Po).call(this,!0):requestAnimationFrame(()=>e(this,Lo,"m",Po).call(this,!0))):e(this,Lo,"m",Po).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected-icon" aria-hidden="true" @slotchange="${e(this,Lo,"m",Mo)}"></slot>`:n}<slot class="icon" name="icon" aria-hidden="true"></slot><div class="label">${this.toggle&&this.selected?s`<slot name="selected"><slot></slot></slot>`:s`<slot></slot>`}</div><slot class="icon" name="trailing-icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,zo,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>C(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),C(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,zo,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(C(this,"-pressed"),C(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,Lo,"m",To).call(this,!0))}};var Wo,Do,Ao,Ho;zo=new WeakMap,Lo=new WeakSet,Eo=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},Mo=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},To=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},Po=function(e){k(this,"-pressed",e),k(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),k(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),C(r,"-adjacent-pressed"))}}},Io.styles=[wo,_o,ko],t([h(".base")],Io.prototype,"_base",void 0),t([h(".elevation")],Io.prototype,"_elevation",void 0),t([h(".focus-ring")],Io.prototype,"_focusRing",void 0),t([h(".state-layer")],Io.prototype,"_stateLayer",void 0),t([h(".ripple")],Io.prototype,"_ripple",void 0),t([m({reflect:!0})],Io.prototype,"variant",void 0),t([m({reflect:!0})],Io.prototype,"shape",void 0),t([m({reflect:!0})],Io.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],Io.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],Io.prototype,"selected",void 0),t([y(40)],Io.prototype,"_handleResize",null),Io=t([$("m3e-button")],Io);let Oo=class extends(f(r,"group")){constructor(){super(...arguments),Wo.add(this),Do.set(this,new Z(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:e=>{this._base&&(e&&"connected"!==this.variant?(this._base.classList.add("pressed"),this._base.style.setProperty("--_button-group-width",`${this._base.getBoundingClientRect().width}px`)):(this._base.style.removeProperty("--_button-group-width"),this._base.classList.remove("pressed")))}})),this.variant="standard",this.size="small",this.multi=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("disable-role")&&(this.role=null)}disconnectedCallback(){super.disconnectedCallback(),this._base?.style.removeProperty("--_button-group-width"),this._base?.classList.remove("pressed")}update(t){super.update(t),(t.has("multi")||t.has("variant"))&&e(this,Wo,"m",Ao).call(this),t.has("variant")&&this._base?.style.removeProperty("--_button-group-width")}render(){return s`<div class="base"><slot @slotchange="${e(this,Wo,"m",Ao)}" @change="${e(this,Wo,"m",Ho)}"></slot></div>`}};function Fo(e,t,a){const o=new Date;return o.setFullYear(e,t,a),o.setHours(0,0,0,0),o}function Bo(e,t){return Fo(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Vo(e,t){let a=Fo(e.getFullYear(),e.getMonth()+t,e.getDate());return a.getMonth()!=((e.getMonth()+t)%12+12)%12&&(a=Fo(a.getFullYear(),a.getMonth(),0)),a}function qo(e,t){return Vo(e,12*t)}function Ro(e,t){return e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()}function Uo(e,t){return e&&t?0==Ro(e,t):e==t}function No(e,t,a){return o=e.getFullYear()-function(e,t){return t?t.getFullYear()-Zo+1:e?e.getFullYear():0}(t,a),(o%(i=Zo)+i)%i;var o,i}function jo(e,t,a){return e.getFullYear()-No(e,t,a)}function Yo(e,t,a){return jo(e,t,a)+Zo-1}function Ko(e,t,a){return t&&Ro(e,t)<0?t:a&&Ro(e,a)>0?a:e}Do=new WeakMap,Wo=new WeakSet,Ao=function(){const t=this.buttons;for(const t of e(this,Do,"f").targets)e(this,Do,"f").unobserve(t);const a=[...t].some(e=>e.toggle);this.hasAttribute("disable-role")||(this.role=a&&!this.multi?"radiogroup":"group");const o="radiogroup"===this.role?"radio":"button";t.forEach((a,i)=>{if(e(this,Do,"f").observe(a),k(a,"-connected","connected"===this.variant),z(a,"-grouped"),k(a,"-first",0==i),k(a,"-last",i==t.length-1),!this.hasAttribute("disable-role")&&a.role!==o&&a.toggle){const e=a.toggle?a.selected?"true":"false":null;a.role=o,"button"===a.role?(a.ariaPressed=e,a.ariaChecked=null):(a.ariaChecked=e,a.ariaPressed=null)}})},Ho=function(e){if(!this.multi&&e.target instanceof HTMLElement&&("M3E-BUTTON"===e.target.tagName||"M3E-ICON-BUTTON"===e.target.tagName)){if(!X(e.target)||!e.target.selected)return;for(const t of this.buttons)t!==e.target&&t.selected&&(t.selected=!1)}},Oo.styles=i`:host { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } .base { display: flex; vertical-align: middle; flex-wrap: nowrap; align-items: center; } :host([variant="standard"]) { justify-content: center; } :host([variant="connected"]) .base { flex: 1 1 auto; } :host([variant="standard"]) .base { width: fit-content; flex: none; } :host([variant="standard"]) .base.pressed { justify-content: space-between; width: var(--_button-group-width); } :host([variant="standard"][size="extra-small"]) .base { column-gap: var(--m3e-standard-button-group-extra-small-spacing, 1.125rem); } :host([variant="standard"][size="small"]) .base { column-gap: var(--m3e-standard-button-group-small-spacing, 0.75rem); } :host([variant="standard"][size="medium"]).base { column-gap: var(--m3e-standard-button-group-medium-spacing, 0.5rem); } :host([variant="standard"][size="large"]) .base { column-gap: var(--m3e-standard-button-group-large-spacing, 0.5rem); } :host([variant="standard"][size="extra-large"]) .base { column-gap: var(--m3e-standard-button-group-extra-large-spacing, 0.5rem); } :host([variant="connected"]) .base { column-gap: var(--m3e-connected-button-group-spacing, 0.125rem); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-first)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="extra-small"]) ::slotted(:state(-last)[size="extra-small"]), :host([variant="connected"][size="extra-small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-first)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-end-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="small"]) ::slotted(:state(-last)[size="small"]), :host([variant="connected"][size="small"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="small"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-small-inner-shape, ${v.shape.corner.small} ); --_button-start-shape-pressed-morph: var( --m3e-connected-button-group-small-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-first)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="medium"]) ::slotted(:state(-last)[size="medium"]), :host([variant="connected"][size="medium"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="medium"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-shape: var( --m3e-connected-button-group-medium-inner-shape, ${v.shape.corner.small} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-medium-inner-pressed-shape, ${v.shape.corner.extraSmall} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-first)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="large"]) ::slotted(:state(-last)[size="large"]), :host([variant="connected"][size="large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-shape: var( --m3e-connected-button-group-large-inner-shape, ${v.shape.corner.large} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-large-inner-pressed-shape, ${v.shape.corner.medium} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-first)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-end-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); } :host([variant="connected"][size="extra-large"]) ::slotted(:state(-last)[size="extra-large"]), :host([variant="connected"][size="extra-large"]) ::slotted(:not(:state(-first)):not(:state(-last))[size="extra-large"]) { --_button-rounded-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-shape: var( --m3e-connected-button-group-extra-large-inner-shape, ${v.shape.corner.largeIncreased} ); --_button-square-start-pressed-shape: var( --m3e-connected-button-group-extra-large-inner-pressed-shape, ${v.shape.corner.large} ); }`,t([h(".base")],Oo.prototype,"_base",void 0),t([m({reflect:!0})],Oo.prototype,"variant",void 0),t([m({reflect:!0})],Oo.prototype,"size",void 0),t([m({type:Boolean})],Oo.prototype,"multi",void 0),t([p({slot:"",selector:"m3e-button,m3e-icon-button",flatten:!0})],Oo.prototype,"buttons",void 0),Oo=t([$("m3e-button-group")],Oo);const Zo=15;class Go extends r{constructor(){super(...arguments),this.today=new Date,this.date=null,this.activeDate=new Date,this.minDate=null,this.maxDate=null}async focusActiveCell(){this.isUpdatePending&&await this.updateComplete,this._activeItem&&await H(this._activeItem)}_changeActiveDate(e){Uo(e=Ko(e,this.minDate,this.maxDate),this.activeDate)||(this._activeItem?.style.setProperty("--m3e-state-layer-duration","0ms"),this._activeItem?.blur(),this._activeItem?.style.removeProperty("--m3e-state-layer-duration"),this.activeDate=e,this.dispatchEvent(new Event("active-change",{bubbles:!1})))}}
7
+ /**
8
+ * Adapted from Angular Material Datepicker
9
+ * Source: https://github.com/angular/components/blob/main/src/material/datepicker/month-view.ts
10
+ *
11
+ * @license MIT
12
+ * Copyright (c) 2025 Google LLC
13
+ * See LICENSE file in the project root for full license text.
14
+ */
15
+ var Xo,Jo,Qo,ei,ti,ai,oi,ii;Go.styles=i`:host { display: inline-block; user-select: none; vertical-align: top; } .visually-hidden { position: absolute; appearance: none; visibility: hidden; border: none; outline: none; overflow: hidden; left: 0; height: 1px; width: 1px; margin: -1px; padding: 0; white-space: nowrap; } table { border-collapse: collapse; border-spacing: 0; width: calc(3rem * 7); } td, th { font: inherit; text-align: center; padding: unset; } td { box-sizing: border-box; height: 3rem; padding: 0.25rem; position: relative; } .item, .item > span { position: relative; } .item { display: flex; align-items: center; justify-content: center; border-radius: inherit; outline: none; width: 100%; height: 100%; border-radius: ${v.shape.corner.full}; } .item:not([aria-disabled]) { cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } td:not(:has(.item[aria-disabled])).selected { color: var(--m3e-calendar-item-selected-color, ${v.color.onPrimary}); --m3e-ripple-color: var(--m3e-calendar-item-selected-ripple-color, ${v.color.onPrimary}); --m3e-state-layer-hover-color: var(--m3e-calendar-item-selected-hover-color, ${v.color.onPrimary}); --m3e-state-layer-focus-color: var(--m3e-calendar-item-selected-focus-color, ${v.color.onPrimary}); } td:not(:has(.item[aria-disabled])).selected .state-layer { background-color: var(--m3e-calendar-item-selected-container-color, ${v.color.primary}); } td.current:not(.selected):not(.special):not(.range-start):not(.range-end) { color: var(--m3e-calendar-item-current-outline-color, ${v.color.primary}); } td.current:not(.selected):not(.special):not(.range-start):not(.range-end) .state-layer { outline-style: solid; outline-offset: -1px; outline-width: var(--m3e-calendar-item-current-outline-thickness, 1px); outline-color: var(--m3e-calendar-item-current-outline-color, ${v.color.primary}); } td:has(.item[aria-disabled]) { color: color-mix( in srgb, var(--m3e-calendar-item-disabled-color, ${v.color.onSurface}) var(--m3e-calendar-item-disabled-color-opacity, 38%), transparent ); } @media (forced-colors: active) { td:not(:has(.item[aria-disabled])).selected { forced-color-adjust: none; color: ButtonFace; } td:not(:has(.item[aria-disabled])).selected .state-layer { background-color: ButtonText; } td:has(.item[aria-disabled]) { color: GrayText; } td.current:not(.selected):not(.special):not(.range-start):not(.range-end) { color: ButtonText; } td.current:not(.selected):not(.special):not(.range-start):not(.range-end) .state-layer { border-color: ButtonText; } }`,t([h(".active > .item")],Go.prototype,"_activeItem",void 0),t([m({converter:J})],Go.prototype,"today",void 0),t([m({converter:J})],Go.prototype,"date",void 0),t([m({attribute:"active-date",converter:J})],Go.prototype,"activeDate",void 0),t([m({attribute:"min-date",converter:J})],Go.prototype,"minDate",void 0),t([m({attribute:"max-date",converter:J})],Go.prototype,"maxDate",void 0);let ri=class extends Go{constructor(){super(...arguments),Xo.add(this),this._suppressFocusHighlight=!0,this.rangeStart=null,this.rangeEnd=null,this.blackoutDates=null,this.specialDates=null}render(){const t=new Date(this.today);for(t.setDate(1);0!=t.getDay();)t.setDate(t.getDate()+1);const a=new Array,o=new Intl.DateTimeFormat(navigator.language,{weekday:"narrow"}),i=new Intl.DateTimeFormat(navigator.language,{weekday:"long"});for(let e=0;e<7;e++)a.push({id:e,narrow:o.format(t),long:i.format(t)}),t.setDate(t.getDate()+1);const r=this.activeDate.getFullYear(),l=this.activeDate.getMonth(),c=new Date(r,l,1),d=new Date(r,l+1,0).getDate();let h=[],m=c.getDay();for(let e=1;e<=d;e++)0!==m&&0!==h.length||h.push([]),h[h.length-1].push(e),m=(m+1)%7;return h=h.filter(e=>!!e.length),s`<table role="grid"><thead><tr>${a.map(e=>s`<th scope="col"><span class="visually-hidden">${e.long}</span><div id="weekday-${e.id}-month-${l}" aria-hidden="true">${e.narrow}</div><m3e-tooltip for="weekday-${e.id}-month-${l}">${e.long}</m3e-tooltip></th>`)}</tr></thead><tbody>${h.map((t,a)=>s`<tr role="row">${0===a&&t.length<7?s`<td colspan="${7-t.length}"></td>`:n} ${t.map(t=>e(this,Xo,"m",Jo).call(this,new Date(r,l,t)))} ${a>0&&t.length<7?s`<td colspan="${7-t.length}"></td>`:n}</tr>`)}</tbody></table>`}};
16
+ /**
17
+ * Adapted from Angular Material Datepicker
18
+ * Source: https://github.com/angular/components/blob/main/src/material/datepicker/multi-year-view.ts
19
+ *
20
+ * @license MIT
21
+ * Copyright (c) 2025 Google LLC
22
+ * See LICENSE file in the project root for full license text.
23
+ */
24
+ var si,ni,li,ci;Xo=new WeakSet,Jo=function(t){const a=new Intl.DateTimeFormat(navigator.language,{year:"numeric",month:"long",day:"numeric"}).format(t),o=this.specialDates?.(t)??!1,i=Uo(this.date,t),r=Uo(this.activeDate,t),n=Uo(this.today,t),l=this.minDate&&Ro(t,this.minDate)<0||this.maxDate&&Ro(t,this.maxDate)>0||!0===this.blackoutDates?.(t),c=`date-${t.getMonth()}-${t.getDate()}-${t.getFullYear()}`;let d=!1,h=!1,m=!1,p=!1;return this.rangeStart&&(this.rangeEnd?(d=Ro(t,this.rangeStart)>0&&Ro(t,this.rangeEnd)<0,d||(h=Ro(t,this.rangeStart)>=0&&Ro(t,this.rangeEnd)<0,h?p=!0:m=Ro(t,this.rangeStart)>0&&Ro(t,this.rangeEnd)<=0)):h=Uo(t,this.rangeStart)),s`<td role="gridcell" class="${Ue({current:n,selected:i,active:r,special:o,range:d,"range-start":h,"range-start-range":p,"range-end":m})}"><div id="${c}" role="button" class="item" data-value="${t.toISOString()}" tabindex="${r?"0":"-1"}" aria-disabled="${Ne(l||void 0)}" aria-current="${Ne(n?"date":void 0)}" aria-pressed="${i||h||m}" @click="${e(this,Xo,"m",Qo)}" @mouseenter="${e(this,Xo,"m",ti)}" @focus="${e(this,Xo,"m",ai)}" @mouseleave="${e(this,Xo,"m",ii)}" @blur="${e(this,Xo,"m",ii)}" @keydown="${e(this,Xo,"m",ei)}"><m3e-focus-ring class="focus-ring" for="${c}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${c}" ?disable-hover="${l}"></m3e-state-layer><m3e-ripple class="ripple" centered for="${c}" ?disabled="${l}"></m3e-ripple><div class="touch"></div><span class="visually-hidden">${a}</span> <span aria-hidden="true">${t.getDate()}</span></div></td>`},Qo=function(t){const a=t.currentTarget;"true"!==a.ariaDisabled&&a.dataset.value&&(this.activeDate=new Date(a.dataset.value),this.activeDate=Ko(this.activeDate,this.minDate,this.maxDate),this.rangeStart&&(Ro(this.activeDate,this.rangeStart)<0?(this.rangeStart=this.activeDate,this.rangeEnd=null):this.rangeEnd=this.activeDate,e(this,Xo,"m",ii).call(this)),this.dispatchEvent(new Event("change",{bubbles:!1})))},ei=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=Bo(t,"rtl"===Ve.current?1:-1);break;case"ArrowRight":case"Right":t=Bo(t,"rtl"===Ve.current?-1:1);break;case"ArrowUp":case"Up":t=Bo(t,-7);break;case"ArrowDown":case"Down":t=Bo(t,7);break;case"Home":t=Bo(t,1-t.getDate());break;case"End":t=Bo(t,Fo((a=t).getFullYear(),a.getMonth()+1,0).getDate()-t.getDate());break;case"PageUp":t=e.altKey?qo(t,-1):Vo(t,-1);break;case"PageDown":t=e.altKey?qo(t,1):Vo(t,1);break;default:return}var a;e.preventDefault(),this._changeActiveDate(t)},ti=function(t){e(this,Xo,"m",oi).call(this,t.currentTarget)},ai=function(t){this._suppressFocusHighlight||e(this,Xo,"m",oi).call(this,t.currentTarget)},oi=function(t){if(e(this,Xo,"m",ii).call(this),this.rangeStart&&t.dataset.value){Ro(new Date(t.dataset.value),this.rangeStart)>0&&t.parentElement.classList.add("range-highlight-end");for(const e of t.closest("table")?.querySelectorAll(".item")??[]){if(e===t)break;const a=new Date(e.dataset.value);Ro(a,this.rangeStart)>0?e.parentElement.classList.add("range-highlight"):Ro(a,this.rangeStart)>=0&&e.parentElement.classList.add("range-highlight-start")}}},ii=function(){this.rangeStart&&this.shadowRoot?.querySelectorAll(".range-highlight,.range-highlight-end,.range-highlight-start").forEach(e=>e.classList.remove("range-highlight","range-highlight-end","range-highlight-start"))},ri.styles=[Go.styles,i`thead { font-size: var(--m3e-calendar-weekday-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-calendar-weekday-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-calendar-weekday-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-calendar-weekday-tracking, ${v.typescale.standard.title.small.tracking}); } th { height: 1.5rem; padding-block-start: 1.875rem; padding-block-end: 1rem; } tbody { font-size: var(--m3e-calendar-date-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-calendar-date-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-calendar-date-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-calendar-date-tracking, ${v.typescale.standard.body.medium.tracking}); } td:not(:has(.item[aria-disabled])):not(.selected):not(.range-start):not(.range-end).special { color: var(--m3e-calendar-item-special-color, ${v.color.onTertiaryContainer}); --m3e-ripple-color: var(--m3e-calendar-item-special-ripple-color, ${v.color.onTertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-calendar-item-special-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-calendar-item-special-focus-color, ${v.color.onTertiaryContainer} ); } td:not(:has(.item[aria-disabled])):not(.selected):not(.range-start):not(.range-end).special .state-layer { background-color: var(--m3e-calendar-item-special-container-color, ${v.color.tertiaryContainer}); } td:not(:has(.item[aria-disabled])).range-start, td:not(:has(.item[aria-disabled])).range-end { color: var(--m3e-calendar-item-selected-color, ${v.color.onPrimary}); --m3e-ripple-color: var(--m3e-calendar-item-selected-ripple-color, ${v.color.onPrimary}); } td:not(:has(.item[aria-disabled])).range-start .state-layer, td:not(:has(.item[aria-disabled])).range-end .state-layer { background-color: var(--m3e-calendar-item-selected-container-color, ${v.color.primary}); } td:not(:has(.item[aria-disabled])).range::before, td:not(:has(.item[aria-disabled])).range-start-range::before, td:not(:has(.item[aria-disabled])).range-end::before { content: ""; position: absolute; left: 0; right: 0; top: 0.25rem; bottom: 0.25rem; background-color: var(--m3e-calendar-range-container-color, ${v.color.primaryContainer}); } td:not(:has(.item[aria-disabled])):not(.selected).range { color: var(--m3e-calendar-range-color, ${v.color.onPrimaryContainer}); } td:not(:has(.item[aria-disabled])).range-start::before { inset-inline-start: 50%; width: 50%; } td:not(:has(.item[aria-disabled])).range-end::before { inset-inline-end: 50%; width: 50%; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after, td:not(:has(.item[aria-disabled])).range-highlight .item::after, td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { content: ""; position: absolute; top: 0; left: calc(0px - 0.1875rem); right: calc(0px - 0.1875rem); bottom: 0; border-style: dashed; border-color: ${v.color.primary}; border-width: 1px; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after { margin-inline-start: 50%; } td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { margin-inline-end: 0.1875rem; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after, td:not(:has(.item[aria-disabled])).range-highlight .item::after { border-inline-style: none; } td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { border-start-end-radius: ${v.shape.corner.full}; border-end-end-radius: ${v.shape.corner.full}; border-inline-start-style: none; } @media (forced-colors: active) { td:not(:has(.item[aria-disabled])).range-start, td:not(:has(.item[aria-disabled])).range-end { forced-color-adjust: none; color: HighlightText; } td:not(:has(.item[aria-disabled])).range-start .state-layer, td:not(:has(.item[aria-disabled])).range-end .state-layer { background-color: Highlight; } td:not(:has(.item[aria-disabled])).range::before, td:not(:has(.item[aria-disabled])).range-start-range::before, td:not(:has(.item[aria-disabled])).range-end::before { background-color: Highlight; } td:not(:has(.item[aria-disabled])):not(.selected).range { forced-color-adjust: none; color: HighlightText; } td:not(:has(.item[aria-disabled])).range-highlight-start .item::after, td:not(:has(.item[aria-disabled])).range-highlight .item::after, td:not(:has(.item[aria-disabled])).range-highlight-end .item::after { border-color: GrayText; } }`],t([m({attribute:"range-start",converter:J})],ri.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],ri.prototype,"rangeEnd",void 0),t([m({attribute:!1})],ri.prototype,"blackoutDates",void 0),t([m({attribute:!1})],ri.prototype,"specialDates",void 0),ri=t([$("m3e-month-view")],ri);let di=class extends Go{constructor(){super(...arguments),si.add(this)}render(){const t=new Array,a=jo(this.activeDate,this.minDate,this.maxDate);for(let e=0,o=[];e<Zo;e++)o.push(a+e),3===o.length&&(t.push(o),o=new Array);return s`<table role="grid"><thead aria-hidden="true"><tr><th colspan="${3}"></th></tr></thead><tbody>${t.map(t=>s`<tr role="row">${t.map(t=>e(this,si,"m",ni).call(this,t))}</tr>`)}</tbody></table>`}};
25
+ /**
26
+ * Adapted from Angular Material Datepicker
27
+ * Source: https://github.com/angular/components/blob/main/src/material/datepicker/year-view.ts
28
+ *
29
+ * @license MIT
30
+ * Copyright (c) 2025 Google LLC
31
+ * See LICENSE file in the project root for full license text.
32
+ */
33
+ var hi,mi,pi,ui;si=new WeakSet,ni=function(t){const a=new Intl.DateTimeFormat(navigator.language,{year:"numeric"}),o=this.activeDate.getFullYear()===t,i=this.date?.getFullYear()===t,r=this.today.getFullYear()===t,n=this.minDate&&t<this.minDate.getFullYear()||this.maxDate&&t>this.maxDate.getFullYear(),l=`year-${t}`;return s`<td role="gridcell" class="${Ue({current:r,selected:i,active:o})}"><div id="${l}" class="item" role="button" tabindex="${o?"0":"-1"}" data-value="${t}" aria-disabled="${Ne(n||void 0)}" aria-current="${Ne(r?"date":void 0)}" aria-pressed="${i}" @click="${e(this,si,"m",li)}" @keydown="${e(this,si,"m",ci)}"><m3e-focus-ring class="focus-ring" for="${l}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${l}" ?disable-hover="${n}"></m3e-state-layer><m3e-ripple class="ripple" for="${l}" centered ?disabled="${n}"></m3e-ripple><div class="touch"></div><span>${a.format(new Date(t,0,1))}</span></div></td>`},li=function(e){const t=e.currentTarget;"true"!==t.ariaDisabled&&t.dataset.value&&(this.activeDate=new Date(this.activeDate),this.activeDate.setFullYear(Number(t.dataset.value)),this.activeDate=Ko(this.activeDate,this.minDate,this.maxDate),this.dispatchEvent(new Event("change",{bubbles:!1})))},ci=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=qo(t,"rtl"===Ve.current?1:-1);break;case"ArrowRight":case"Right":t=qo(t,"rtl"===Ve.current?-1:1);break;case"ArrowUp":case"Up":t=qo(t,-3);break;case"ArrowDown":case"Down":t=qo(t,3);break;case"Home":t=qo(t,-No(t,this.minDate,this.maxDate));break;case"End":t=qo(t,Zo-No(t,this.minDate,this.maxDate)-1);break;case"PageUp":t=qo(t,e.altKey?10*-Zo:-Zo);break;case"PageDown":t=qo(t,e.altKey?10*Zo:Zo);break;default:return}e.preventDefault(),this._changeActiveDate(t)},di.styles=[Go.styles,i`.item { height: 2.25rem; } .touch { width: 100%; } th { height: 1rem; } td { padding-inline: 1rem; } tbody { font-size: var(--m3e-calendar-item-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-calendar-item-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-calendar-item-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-calendar-item-tracking, ${v.typescale.standard.body.medium.tracking}); }`],di=t([$("m3e-multi-year-view")],di);let vi=class extends Go{constructor(){super(...arguments),hi.add(this)}render(){const t=new Array,a=new Intl.DateTimeFormat(navigator.language,{month:"short"}),o=new Intl.DateTimeFormat(navigator.language,{month:"long"}),i=this.activeDate.getFullYear();for(let e=0,r=new Array;e<12;e++){const s=new Date(i,e,1);r.push({narrow:a.format(s),long:o.format(s),date:s}),4==r.length&&(t.push(r),r=[])}return s`<table role="grid"><thead aria-hidden="true"><tr><th colspan="${4}"></th></tr></thead><tbody>${t.map(t=>s`<tr role="row">${t.map(t=>e(this,hi,"m",mi).call(this,t))}</tr>`)}</tbody></table>`}};
34
+ /**
35
+ * Adapted from Angular Material Datepicker
36
+ * Source: https://github.com/angular/components/blob/main/src/material/datepicker/calendar.ts
37
+ *
38
+ * @license MIT
39
+ * Copyright (c) 2025 Google LLC
40
+ * See LICENSE file in the project root for full license text.
41
+ */
42
+ var bi,fi,gi,yi,$i,xi,wi,ki,Ci,Si;hi=new WeakSet,mi=function(t){const a=this.activeDate.getFullYear()===t.date.getFullYear()&&this.activeDate.getMonth()===t.date.getMonth(),o=this.date?.getFullYear()===t.date.getFullYear()&&this.date?.getMonth()===t.date.getMonth(),i=this.today.getFullYear()===t.date.getFullYear()&&this.today.getMonth()===t.date.getMonth(),r=this.minDate&&(t.date.getFullYear()<this.minDate.getFullYear()||t.date.getFullYear()===this.minDate.getFullYear()&&t.date.getMonth()<this.minDate.getMonth())||this.maxDate&&(t.date.getFullYear()>this.maxDate.getFullYear()||t.date.getFullYear()===this.maxDate.getFullYear()&&t.date.getMonth()>this.maxDate.getMonth()),n=`month-${t.date.getMonth()}`;return s`<td role="gridcell" class="${Ue({current:i,selected:o,active:a})}"><div id="${n}" class="item" role="button" tabindex="${a?"0":"-1"}" data-value="${t.date.toISOString()}" aria-disabled="${Ne(r||void 0)}" aria-current="${Ne(i?"date":void 0)}" aria-pressed="${o}" @click="${e(this,hi,"m",pi)}" @keydown="${e(this,hi,"m",ui)}"><m3e-focus-ring class="focus-ring" for="${n}"></m3e-focus-ring><m3e-state-layer class="state-layer" for="${n}" ?disable-hover="${r}"></m3e-state-layer><m3e-ripple class="ripple" centered for="${n}" ?disabled="${r}"></m3e-ripple><div class="touch"></div><span class="visually-hidden">${t.long}</span> <span aria-hidden="true">${t.narrow}</span></div></td>`},pi=function(e){const t=e.currentTarget;"true"!==t.ariaDisabled&&t.dataset.value&&(this.activeDate=Ko(new Date(t.dataset.value),this.minDate,this.maxDate),this.dispatchEvent(new Event("change",{bubbles:!1})))},ui=function(e){let t=this.activeDate;switch(e.key){case" ":case"Enter":return e.preventDefault(),void e.currentTarget.click();case"ArrowLeft":case"Left":t=Vo(t,"rtl"===Ve.current?1:-1);break;case"ArrowRight":case"Right":t=Vo(t,"rtl"===Ve.current?-1:1);break;case"ArrowUp":case"Up":t=Vo(t,-4);break;case"ArrowDown":case"Down":t=Vo(t,4);break;case"Home":t=Vo(t,-t.getMonth());break;case"End":t=Vo(t,11-t.getMonth());break;case"PageUp":t=qo(t,e.altKey?-10:-1);break;case"PageDown":t=qo(t,e.altKey?10:1);break;default:return}e.preventDefault(),this._changeActiveDate(t)},vi.styles=[Go.styles,i`.item { height: 2.25rem; } .touch { width: 100%; } th { height: 1rem; } td { padding-inline: 0.375rem; } tbody { font-size: var(--m3e-calendar-item-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-calendar-item-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-calendar-item-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-calendar-item-tracking, ${v.typescale.standard.body.medium.tracking}); }`],vi=t([$("m3e-year-view")],vi);let _i=class extends r{constructor(){super(...arguments),bi.add(this),fi.set(this,void 0),this._today=new Date,this._activeView="month",this._activeDate=new Date,this.startView="month",this.date=null,this.startAt=null,this.minDate=null,this.maxDate=null,this.rangeStart=null,this.rangeEnd=null,this.blackoutDates=null,this.specialDates=null,this.previousMonthLabel="Previous month",this.previousYearLabel="Previous year",this.previousMultiYearLabel="Previous 24 years",this.nextMonthLabel="Next month",this.nextYearLabel="Next year",this.nextMultiYearLabel="Next 24 years"}get periodLabel(){switch(this._activeView){case"month":return new Intl.DateTimeFormat(navigator.language,{month:"short",year:"numeric"}).format(this._activeDate);case"year":return new Intl.DateTimeFormat(navigator.language,{year:"numeric"}).format(new Date(this._activeDate.getFullYear(),0,1));case"multi-year":return new Intl.DateTimeFormat(navigator.language,{year:"numeric"}).formatRange(new Date(jo(this._activeDate,this.minDate,this.maxDate),0,1),new Date(Yo(this._activeDate,this.minDate,this.maxDate),0,1))}}get canMovePreviousPeriod(){if(!this.minDate)return!0;switch(this._activeView){case"month":return new Date(this._activeDate.getFullYear(),this._activeDate.getMonth(),0)>=this.minDate;case"year":return new Date(this._activeDate.getFullYear()-1,12,1)>=this.minDate;case"multi-year":return new Date(jo(this._activeDate,this.minDate,this.maxDate)-1,12,1)>=this.minDate}}get canMoveNextPeriod(){if(!this.maxDate)return!0;switch(this._activeView){case"month":return new Date(this._activeDate.getFullYear(),this._activeDate.getMonth()+1,1)<=this.maxDate;case"year":return new Date(this._activeDate.getFullYear()+1,1,1)<=this.maxDate;case"multi-year":return new Date(Yo(this._activeDate,this.minDate,this.maxDate)+1,12,1)<=this.maxDate}}async focusActiveCell(){this.isUpdatePending&&await this.updateComplete,await(this._view?.focusActiveCell())}updateTodayDate(){this._today=new Date}async movePreviousPeriod(){if(!this.canMovePreviousPeriod)return;if(S())return void(this._activeDate=e(this,bi,"m",Ci).call(this,this._activeView));await e(this,fi,"f");const t=[...this.shadowRoot?.querySelectorAll(`.row.${this._activeView} .view`)??[]];3==t.length&&(a(this,fi,new Promise(a=>{t[0].addEventListener("transitionend",()=>{this._activeDate=e(this,bi,"m",Ci).call(this,this._activeView),t.forEach(e=>e.classList.add("no-animate")),t[1].classList.remove("after"),t[0].classList.add("before"),setTimeout(()=>{t.forEach(e=>e.classList.remove("no-animate")),a()})},{once:!0})}),"f"),this._body.style.overflow="hidden",t[1].classList.add("after"),t[0].classList.remove("before"),await e(this,fi,"f"),this._body.style.overflow="")}async moveNextPeriod(){if(!this.canMoveNextPeriod)return;if(S())return void(this._activeDate=e(this,bi,"m",Si).call(this,this._activeView));await e(this,fi,"f");const t=[...this.shadowRoot?.querySelectorAll(`.row.${this._activeView} .view`)??[]];3==t.length&&(a(this,fi,new Promise(a=>{t[2].addEventListener("transitionend",()=>{this._activeDate=e(this,bi,"m",Si).call(this,this._activeView),t.forEach(e=>e.classList.add("no-animate")),t[1].classList.remove("before"),t[2].classList.add("after"),setTimeout(()=>{t.forEach(e=>e.classList.remove("no-animate")),a()})},{once:!0})}),"f"),this._body.style.overflow="hidden",t[1].classList.add("before"),t[2].classList.remove("after"),await e(this,fi,"f"),this._body.style.overflow="")}async togglePeriod(){await e(this,fi,"f"),this._activeView="month"===this._activeView?"multi-year":"month",await this.focusActiveCell()}willUpdate(e){super.willUpdate(e),e.has("date")&&(this._activeDate=new Date(this.date??this._today)),e.has("startAt")&&(this._activeDate=new Date(this.startAt??this.date??this._today)),e.has("startView")&&(this._activeView=this.startView)}updated(e){super.updated(e),this._view instanceof ri&&(e.has("specialDates")||e.has("blackoutDates"))&&this.shadowRoot?.querySelectorAll("m3e-month-view").forEach(e=>{e.specialDates=this.specialDates,e.blackoutDates=this.blackoutDates})}render(){return s`<div class="base"><slot name="header">${e(this,bi,"m",gi).call(this)}</slot><div class="body ${this._activeView}"><div class="row multi-year">${e(this,bi,"m",yi).call(this,"multi-year",-1)}${e(this,bi,"m",yi).call(this,"multi-year",0)}${e(this,bi,"m",yi).call(this,"multi-year",1)}</div><div class="row year">${e(this,bi,"m",yi).call(this,"year",-1)}${e(this,bi,"m",yi).call(this,"year",0)}${e(this,bi,"m",yi).call(this,"year",1)}</div><div class="row month">${e(this,bi,"m",yi).call(this,"month",-1)}${e(this,bi,"m",yi).call(this,"month",0)}${e(this,bi,"m",yi).call(this,"month",1)}</div></div></div>`}};fi=new WeakMap,bi=new WeakSet,gi=function(){return s`<div class="header"><m3e-button @click="${this.togglePeriod}">${this.periodLabel} <svg class="${Ue({rotate:"month"!==this._activeView})}" slot="trailing-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></m3e-button><div class="spacer"></div><m3e-icon-button ?disabled="${!this.canMovePreviousPeriod}" @click="${this.movePreviousPeriod}" aria-label="${"month"===this._activeView?this.previousMonthLabel:"year"===this._activeView?this.previousYearLabel:this.previousMultiYearLabel}">${"ltr"===Ve.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`}</m3e-icon-button><m3e-icon-button ?disabled="${!this.canMoveNextPeriod}" @click="${this.moveNextPeriod}" aria-label="${"month"===this._activeView?this.nextMonthLabel:"year"===this._activeView?this.nextYearLabel:this.nextMultiYearLabel}">${"ltr"===Ve.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`}</m3e-icon-button></div>`},yi=function(t,a){const o=a<0?e(this,bi,"m",Ci).call(this,t):a>0?e(this,bi,"m",Si).call(this,t):new Date(this._activeDate);switch(t){case"month":return s`<m3e-month-view class="view ${Ue({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${Ne(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${Ne(this.minDate?.toISOString())}" max-date="${Ne(this.maxDate?.toISOString())}" range-start="${Ne(this.rangeStart?.toISOString())}" range-end="${Ne(this.rangeEnd?.toISOString())}" @active-change="${0===a?e(this,bi,"m",ki):void 0}" @change="${0===a?e(this,bi,"m",$i):void 0}"></m3e-month-view>`;case"year":return s`<m3e-year-view class="view ${Ue({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${Ne(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${Ne(this.minDate?.toISOString())}" max-date="${Ne(this.maxDate?.toISOString())}" @active-change="${0===a?e(this,bi,"m",ki):void 0}" @change="${0===a?e(this,bi,"m",xi):void 0}"></m3e-year-view>`;case"multi-year":return s`<m3e-multi-year-view class="view ${Ue({before:a<0,after:a>0,active:t===this._activeView&&0===a})}" ?inert="${0!==a}" today="${this._today.toISOString()}" date="${Ne(this.date?.toISOString())}" active-date="${o.toISOString()}" min-date="${Ne(this.minDate?.toISOString())}" max-date="${Ne(this.maxDate?.toISOString())}" @active-change="${0===a?e(this,bi,"m",ki):void 0}" @change="${0===a?e(this,bi,"m",wi):void 0}"></m3e-multi-year-view>`}},$i=function(e){const t=e.currentTarget;this._activeDate=new Date(t.activeDate),this.rangeStart=t.rangeStart,this.rangeEnd=t.rangeEnd,this.date=new Date(this._activeDate),this.dispatchEvent(new Event("change",{bubbles:!0}))},xi=async function(e){this._activeDate=new Date(e.currentTarget.activeDate),this._activeView="month",this.focusActiveCell()},wi=function(e){this._activeDate=new Date(e.currentTarget.activeDate),this._activeView="year",this.focusActiveCell()},ki=async function(e){this._view instanceof ri&&(this._view._suppressFocusHighlight=!1),this._activeDate=new Date(e.currentTarget.activeDate),await this.focusActiveCell(),this._view instanceof ri&&(this._view._suppressFocusHighlight=!1)},Ci=function(e){const t=new Date(this._activeDate);switch(e){case"month":for(t.setMonth(this._activeDate.getMonth()-1);t.getMonth()===this._activeDate.getMonth();)t.setDate(t.getDate()-1);break;case"year":t.setFullYear(this._activeDate.getFullYear()-1);break;case"multi-year":t.setDate(1),t.setFullYear(jo(this._activeDate,this.minDate,this.maxDate)-1)}return t},Si=function(e){const t=new Date(this._activeDate);switch(e){case"month":for(t.setMonth(this._activeDate.getMonth()+1);t.getMonth()===this._activeDate.getMonth();)t.setDate(t.getDate()+1);break;case"year":t.setFullYear(this._activeDate.getFullYear()+1);break;case"multi-year":t.setDate(1),t.setFullYear(Yo(this._activeDate,this.minDate,this.maxDate)+1)}return t},_i.styles=i`:host { display: inline-block; vertical-align: top; width: fit-content; height: fit-content; } .base { display: flex; flex-direction: column; width: fit-content; overflow: hidden; padding: var(--m3e-calendar-padding, 0.5rem); background-color: var(--m3e-calendar-container-color); box-shadow: var(--m3e-calendar-container-elevation); border-radius: var(--m3e-calendar-container-shape); } .header { display: flex; align-items: center; --m3e-text-button-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-hover-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-focus-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); --m3e-text-button-pressed-label-text-color: var( --m3e-calendar-period-button-text-color, ${v.color.onSurfaceVariant} ); } .spacer { flex: 1 1 auto; } svg { transition: transform ${v.motion.spring.fastEffects}; } svg.rotate { transform: rotate(-180deg); } .body { position: relative; } .view:not(.no-animate) { transition: ${o(`margin var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard},\n visibility var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .view.before, .view.after { visibility: hidden; position: absolute; } .view.before { margin-inline-start: -100%; } .view.after { margin-inline-start: 100%; } .view:not(.before):not(.after) { visibility: visible; position: relative; left: 0; margin-inline-start: 0; } .row { opacity: 1; transform: translateY(0); } .row.multi-year { transition: ${o(`transform var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete,\n opacity var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .row:not(.multi-year) { transition: ${o(`opacity var(--m3e-calendar-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard} allow-discrete`)}; } .body.month > .row:not(.month), .body.year > .row:not(.year), .body.multi-year > .row:not(.multi-year) { visibility: hidden; position: absolute; transform: translateY(-10%); opacity: 0; } .body.month > .row:not(.month) .view:not(.before):not(.after), .body.year > .row:not(.year) .view:not(.before):not(.after), .body.multi-year > .row:not(.multi-year) .view:not(.before):not(.after) { visibility: hidden; transition: none; } @media (prefers-reduced-motion) { .row:not(.multi-year), .row.multi-year, .view:not(.no-animate), svg { transition: none; } }`,t([u()],_i.prototype,"_today",void 0),t([u()],_i.prototype,"_activeView",void 0),t([u()],_i.prototype,"_activeDate",void 0),t([h(".active")],_i.prototype,"_view",void 0),t([h(".body")],_i.prototype,"_body",void 0),t([m({attribute:"start-view"})],_i.prototype,"startView",void 0),t([m({converter:J})],_i.prototype,"date",void 0),t([m({attribute:"start-at",converter:J})],_i.prototype,"startAt",void 0),t([m({attribute:"min-date",converter:J})],_i.prototype,"minDate",void 0),t([m({attribute:"max-date",converter:J})],_i.prototype,"maxDate",void 0),t([m({attribute:"range-start",converter:J})],_i.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],_i.prototype,"rangeEnd",void 0),t([m({attribute:!1})],_i.prototype,"blackoutDates",void 0),t([m({attribute:!1})],_i.prototype,"specialDates",void 0),t([m({attribute:"previous-month-label"})],_i.prototype,"previousMonthLabel",void 0),t([m({attribute:"previous-year-label"})],_i.prototype,"previousYearLabel",void 0),t([m({attribute:"previous-multi-year-label"})],_i.prototype,"previousMultiYearLabel",void 0),t([m({attribute:"next-month-label"})],_i.prototype,"nextMonthLabel",void 0),t([m({attribute:"next-year-label"})],_i.prototype,"nextYearLabel",void 0),t([m({attribute:"next-multi-year-label"})],_i.prototype,"nextMultiYearLabel",void 0),_i=t([$("m3e-calendar")],_i);const Li=o("var(--m3e-card-padding, 1rem)"),zi=o(`var(--m3e-card-shape, ${v.shape.corner.medium});`),Ei={filled:{textColor:o(`var(--m3e-filled-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-filled-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerHighest}))`),containerElevation:o(`var(--m3e-filled-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),disabled:{textColor:o(`var(--m3e-filled-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-filled-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-filled-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-filled-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surfaceVariant}))`),containerElevation:o(`var(--m3e-filled-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-filled-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-filled-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-filled-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-filled-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`)},focus:{textColor:o(`var(--m3e-filled-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`)},pressed:{textColor:o(`var(--m3e-filled-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-filled-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-filled-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-filled-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`)}},elevated:{textColor:o(`var(--m3e-elevated-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-elevated-card-container-color, var(--m3e-card-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level1}))`),disabled:{textColor:o(`var(--m3e-elevated-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-elevated-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-elevated-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerColor:o(`var(--m3e-elevated-card-disabled-container-color, var(--m3e-card-disabled-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-elevated-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level1}))`),containerElevationColor:o(`var(--m3e-elevated-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-elevated-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),containerOpacity:o("var(--m3e-elevated-card-disabled-container-opacity, var(--m3e-card-disabled-container-opacity, 38%))")},hover:{textColor:o(`var(--m3e-elevated-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level2}))`)},focus:{textColor:o(`var(--m3e-elevated-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level1}))`)},pressed:{textColor:o(`var(--m3e-elevated-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-elevated-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-elevated-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level1}))`)}},outlined:{textColor:o(`var(--m3e-outlined-card-text-color, var(--m3e-card-text-color, ${v.color.onSurface}))`),containerColor:o(`var(--m3e-outlined-card-container-color, var(--m3e-card-container-color, ${v.color.surface}))`),containerElevation:o(`var(--m3e-outlined-card-container-elevation, var(--m3e-card-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-outline-color, var(--m3e-card-outline-color, ${v.color.outlineVariant}))`),outlineThickness:o("var(--m3e-outlined-card-outline-thickness, var(--m3e-card-outline-thickness, 1px))"),disabled:{textColor:o(`var(--m3e-outlined-card-disabled-text-color, var(--m3e-card-disabled-text-color, ${v.color.onSurface}))`),textOpacity:o("var(--m3e-outlined-card-disabled-text-opacity, var(--m3e-card-disabled-text-opacity, 38%))"),imageOpacity:o("var(--m3e-outlined-card-disabled-image-opacity, var(--m3e-card-disabled-image-opacity, 38%))"),containerElevation:o(`var(--m3e-outlined-card-disabled-container-elevation, var(--m3e-card-disabled-container-elevation, ${v.elevation.level0}))`),containerElevationColor:o(`var(--m3e-outlined-card-disabled-container-elevation-color, var(--m3e-card-disabled-container-elevation-color, ${v.color.onSurface}))`),containerElevationOpacity:o("var(--m3e-outlined-card-disabled-container-elevation-opacity, var(--m3e-card-disabled-container-elevation-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-card-disabled-outline-color, var(--m3e-card-disabled-outline-color, ${v.color.outline}))`),outlineOpacity:o("var(--m3e-outlined-card-disabled-outline-opacity, var(--m3e-card-disabled-outline-opacity, 12%))")},hover:{textColor:o(`var(--m3e-outlined-card-hover-text-color, var(--m3e-card-hover-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-hover-state-layer-color, var(--m3e-card-hover-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-hover-state-layer-opacity, var(--m3e-card-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-hover-container-elevation, var(--m3e-card-hover-container-elevation, ${v.elevation.level1}))`),outlineColor:o(`var(--m3e-outlined-card-hover-outline-color, var(--m3e-card-hover-outline-color, ${v.color.outlineVariant}))`)},focus:{textColor:o(`var(--m3e-outlined-card-focus-text-color, var(--m3e-card-focus-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-focus-state-layer-color, var(--m3e-card-focus-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-focus-state-layer-opacity, var(--m3e-card-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-focus-container-elevation, var(--m3e-card-focus-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-focus-outline-color, var(--m3e-card-focus-outline-color, ${v.color.onSurface}))`)},pressed:{textColor:o(`var(--m3e-outlined-card-pressed-text-color, var(--m3e-card-pressed-text-color, ${v.color.onSurface}))`),stateLayerColor:o(`var(--m3e-outlined-card-pressed-state-layer-color, var(--m3e-card-pressed-state-layer-color, ${v.color.onSurface}))`),stateLayerOpacity:o(`var(--m3e-outlined-card-pressed-state-layer-opacity, var(--m3e-card-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-outlined-card-pressed-container-elevation, var(--m3e-card-pressed-container-elevation, ${v.elevation.level0}))`),outlineColor:o(`var(--m3e-outlined-card-pressed-outline-color, var(--m3e-card-pressed-outline-color, ${v.color.outlineVariant}))`)}}},Mi=i`:host { outline: none; } :host(:not([inline])) { display: block; } :host(:not([inline])) .base { display: flex; } :host([inline]) { display: inline-block; vertical-align: middle; } :host([inline]) .base { display: inline-flex; } .base { width: 100%; height: 100%; position: relative; box-sizing: border-box; border-radius: ${zi}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host([actionable]) { user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([actionable]:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([actionable][disabled-interactive]) { cursor: not-allowed; } :host(:not([actionable])) .focus-ring, :host(:not([actionable])) .state-layer, :host(:not([actionable])) .ripple { display: none; } :host([variant="outlined"]) .base { border-style: solid; } ::slotted([slot="content"]) { flex: 1 1 auto; } ::slotted(img), ::slotted(video) { inset: 0; object-fit: cover; } ::slotted(img[slot="header"]), ::slotted(video[slot="header"]) { border-radius: ${zi}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } ::slotted([slot="header"]), ::slotted([slot="actions"]), ::slotted([slot="footer"]) { flex: none; display: flex; align-items: center; } :host([orientation="vertical"]) .base, :host([orientation="horizontal"]) ::slotted([slot="header"]), :host([orientation="horizontal"]) ::slotted([slot="actions"]), :host([orientation="horizontal"]) ::slotted([slot="footer"]) { flex-direction: column; } :host([orientation="horizontal"]) .base, :host([orientation="vertical"]) ::slotted([slot="header"]), :host([orientation="vertical"]) ::slotted([slot="actions"]), :host([orientation="vertical"]) ::slotted([slot="footer"]) { flex-direction: row; } :host([orientation="horizontal"]) ::slotted(img), :host([orientation="horizontal"]) ::slotted(video) { aspect-ratio: 16 / 9; } .has-content:not(.has-default) slot[name="content"], .has-content.has-default slot:not([name]) { display: inherit; flex-direction: inherit; flex: 1 1 auto; } .has-header slot[name="header"], .has-actions slot[name="actions"], .has-footer slot[name="footer"] { display: inherit; flex-direction: inherit; flex: none; } :host([orientation="vertical"]) .has-content:not(.has-default) slot[name="content"] { margin-inline: ${Li}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-block-start: ${Li}; } :host([orientation="vertical"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-block-end: ${Li}; } :host([orientation="horizontal"]) .has-content:not(.has-default) slot[name="content"] { margin-block: ${Li}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-header) slot[name="content"] { margin-inline-start: ${Li}; } :host([orientation="horizontal"]) .has-content:not(.has-default):not(.has-actions):not(.has-footer) slot[name="content"] { margin-inline-end: ${Li}; } :host([orientation="vertical"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline: ${Li}; margin-block-start: ${Li}; } :host([orientation="horizontal"]) .has-header:not(.has-header-media) slot[name="header"] { margin-inline-start: ${Li}; margin-block: ${Li}; } .has-actions slot[name="actions"] { margin-inline: ${Li}; margin-block: ${Li}; } :host([orientation="vertical"]) .has-footer slot[name="footer"] { margin-inline: ${Li}; margin-block-end: ${Li}; } :host([orientation="horizontal"]) .has-footer slot[name="footer"] { margin-block: ${Li}; margin-inline-end: ${Li}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base { transition: none; } :host([variant]) .base { border-style: solid; border-color: CanvasText; border-width: ${Ei.outlined.outlineThickness??o("unset")}; } :host([actionable][variant]:disabled) .base, :host([actionable][variant][disabled-interactive]) .base { color: GrayText; border-color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`;function Ti(e){return i`:host([variant="${o(e)}"]) .base { background-color: ${Ei[e].containerColor??o("unset")}; box-shadow: ${Ei[e].containerElevation??o("unset")}; border-width: ${Ei[e].outlineThickness??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Ei[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Ei[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Ei[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Ei[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Ei[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Ei[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Ei[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Ei[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Ei[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Ei[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"]) .base { border-color: ${Ei[e].outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus .base) { border-color: ${Ei[e].focus.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover .base) { border-color: ${Ei[e].hover.outlineColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { border-color: ${Ei[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]) .base { color: ${Ei[e].textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:focus) .base { color: ${Ei[e].focus.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:hover) .base { color: ${Ei[e].hover.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]) .base.pressed { color: ${Ei[e].pressed.textColor??o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) .base, :host([actionable][variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Ei[e].disabled.containerElevation??o("unset")}; --m3e-elevation-color: color-mix( in srgb, ${Ei[e].disabled.containerElevationColor} ${Ei[e].disabled.containerElevationOpacity}, transparent ); color: color-mix( in srgb, ${Ei[e].disabled.textColor} ${Ei[e].disabled.textOpacity}, transparent ); background-color: ${Ei[e].disabled.containerColor&&Ei[e].disabled.containerOpacity?o(`color-mix(\n in srgb,\n ${Ei[e].disabled.containerColor} ${Ei[e].disabled.containerOpacity},\n transparent\n )`):o("unset")}; border-color: ${Ei[e].disabled.outlineColor&&Ei[e].disabled.outlineOpacity?o(`color-mix(\n in srgb,\n ${Ei[e].disabled.outlineColor} ${Ei[e].disabled.outlineOpacity},\n transparent\n )`):o("unset")}; } :host([actionable][variant="${o(e)}"]:disabled) ::slotted(img), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(img), :host([actionable][variant="${o(e)}"]:disabled) ::slotted(video), :host([actionable][variant="${o(e)}"][disabled-interactive]) ::slotted(video) { opacity: ${Ei[e].disabled.imageOpacity}; }`}const Pi=[Ti("filled"),Ti("elevated"),Ti("outlined")];var Ii,Wi,Di,Ai,Hi,Oi,Fi,Bi;let Vi=class extends(q(R(U(N(j(Y(P(r),!0))))))){constructor(){super(),Ii.add(this),Wi.set(this,t=>e(this,Ii,"m",Bi).call(this,t)),this.inline=!1,this.actionable=!1,this.variant="filled",this.orientation="vertical",new Z(this,{isPressedKey:e=>" "===e,callback:e=>{!this.actionable||this.disabled||this.disabledInteractive||this._base?.classList.toggle("pressed",e)}})}connectedCallback(){this.hasAttribute("actionable")&&(this.role="button"),super.connectedCallback(),this.addEventListener("click",e(this,Wi,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this.removeEventListener("click",e(this,Wi,"f"))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${!this.actionable||this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-ripple class="ripple" ?disabled="${!this.actionable||this.disabled||this.disabledInteractive}"></m3e-ripple>${this[G]()}<slot name="header" @slotchange="${e(this,Ii,"m",Di)}"></slot><slot name="content" @slotchange="${e(this,Ii,"m",Ai)}"><slot @slotchange="${e(this,Ii,"m",Hi)}"></slot></slot><slot name="actions" @slotchange="${e(this,Ii,"m",Oi)}"></slot><slot name="footer" @slotchange="${e(this,Ii,"m",Fi)}"></slot></div>`}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this)),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}update(e){super.update(e),!this.actionable&&this.hasAttribute("tabindex")&&this.removeAttribute("tabindex")}};var qi,Ri,Ui,Ni,ji,Yi;Wi=new WeakMap,Ii=new WeakSet,Di=function(e){const t=e.target.assignedNodes({flatten:!0}),a=this.shadowRoot?.querySelector(".base");a?.classList.toggle("has-header",t.length>0),a?.classList.toggle("has-header-media",t.some(e=>e instanceof HTMLElement&&("IMG"===e.tagName||"VIDEO"===e.tagName)))},Ai=function(){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-content",null!==this.querySelector("[slot='content']"))},Hi=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-default",g(e.target)&&null===this.querySelector("[slot='content']"))},Oi=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(e.target))},Fi=function(e){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-footer",g(e.target))},Bi=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation())},Vi.styles=[Pi,Mi],t([h(".base")],Vi.prototype,"_base",void 0),t([h(".elevation")],Vi.prototype,"_elevation",void 0),t([h(".focus-ring")],Vi.prototype,"_focusRing",void 0),t([h(".state-layer")],Vi.prototype,"_stateLayer",void 0),t([h(".ripple")],Vi.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],Vi.prototype,"inline",void 0),t([m({type:Boolean,reflect:!0})],Vi.prototype,"actionable",void 0),t([m({reflect:!0})],Vi.prototype,"variant",void 0),t([m({reflect:!0})],Vi.prototype,"orientation",void 0),Vi=t([$("m3e-card")],Vi);let Ki=class extends(Q(ee(te(ae(oe(ie(re(se(q(N(Y(P(f(r,"checkbox")))),!1)))))))))){constructor(){super(...arguments),qi.add(this),Ri.set(this,t=>e(this,qi,"m",Yi).call(this,t)),Ui.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),Ni.set(this,new Z(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Ri=new WeakMap,Ui=new WeakMap,Ni=new WeakMap,qi=new WeakSet,le)](){return!this.checked||this.disabled||this.indeterminate?null:this.value}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Ri,"f"));for(const t of this.labels)e(this,Ui,"f").observe(t),e(this,Ni,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ri,"f"));for(const t of this.labels)e(this,Ui,"f").unobserve(t),e(this,Ni,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,qi,"m",ji).call(this)}</div></div>`}};var Zi,Gi,Xi,Ji,Qi,er,tr;ji=function(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n},Yi=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.indeterminate=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},Ki.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-checkbox-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 0.125rem); } :host(:not([checked]):not([indeterminate])) .wrapper { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-checkbox-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-checkbox-selected-ripple-color, ${v.color.primary}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: var(--m3e-checkbox-selected-container-color, ${v.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${v.color.onPrimary}); } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper { border-color: var(--m3e-checkbox-unselected-outline-color, ${v.color.onSurfaceVariant}); } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover) .wrapper { border-color: var(--m3e-checkbox-unselected-hover-outline-color, ${v.color.onSurface}); } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${v.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${v.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-unselected-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-checkbox-unselected-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-checkbox-unselected-error-ripple-color, ${v.color.error}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: var(--m3e-checkbox-selected-error-hover-color, ${v.color.onError}); --m3e-state-layer-focus-color: var(--m3e-checkbox-selected-error-focus-color, ${v.color.onError}); --m3e-ripple-color: var(--m3e-checkbox-selected-error-ripple-color, ${v.color.onError}); } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: var(--m3e-checkbox-unselected-error-outline-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not(:state(-touched):state(-invalid)):not([indeterminate]):not([checked])) .base, :host(:not(:state(-touched):state(-invalid))[checked]) .base, :host(:not(:state(-touched):state(-invalid))[indeterminate]) .base { --m3e-state-layer-hover-color: CanvasText; --m3e-state-layer-focus-color: CanvasText; --m3e-ripple-color: CanvasText; } :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):not( :hover ) ) .wrapper, :host( :not([aria-disabled="true"]):not(:state(-touched):state(-invalid)):not([checked]):not([indeterminate]):hover ) .wrapper { border-color: CanvasText; } :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[checked]) .wrapper, :host(:not([aria-disabled="true"]):not(:state(-touched):state(-invalid))[indeterminate]) .wrapper { background-color: CanvasText; color: Canvas; } :host([aria-disabled="true"]:not([checked]):not([indeterminate])) .wrapper { border-color: GrayText; } :host([aria-disabled="true"][checked]) .wrapper, :host([aria-disabled="true"][indeterminate]) .wrapper { background-color: GrayText; color: Canvas; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .wrapper { border-color: Highlight; } :host(:not([aria-disabled="true"]):state(-touched):state(-invalid):not([checked]):not([indeterminate])) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[checked]) .base, :host(:not([aria-disabled="true"]):state(-touched):state(-invalid)[indeterminate]) .base { --m3e-state-layer-hover-color: Highlight; --m3e-state-layer-focus-color: Highlight; --m3e-ripple-color: Highlight; } }`,t([h(".focus-ring")],Ki.prototype,"_focusRing",void 0),t([h(".state-layer")],Ki.prototype,"_stateLayer",void 0),t([h(".ripple")],Ki.prototype,"_ripple",void 0),t([m()],Ki.prototype,"value",void 0),Ki=t([$("m3e-checkbox")],Ki);let ar=class extends(P(r)){constructor(){super(...arguments),Zi.add(this),Gi.set(this,void 0),Xi.set(this,""),this.variant="outlined"}get value(){return e(this,Gi,"f")??e(this,Xi,"f")}set value(e){a(this,Gi,e,"f")}get label(){return e(this,Xi,"f")}firstUpdated(e){super.firstUpdated(e),"listitem"===this.role&&this.removeAttribute("tabindex"),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>{e?.htmlFor||e?.attach(this)})}render(){const t=!ce(this)||this.disabled,a=de(this)&&this.disabledInteractive;return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${t||a}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${t||a}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${t}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${t||a}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${he(this)?this[G]():n}<div class="wrapper">${e(this,Zi,"m",Ji).call(this)}</div></div>`}_renderIcon(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,Zi,"m",Qi)}"></slot>`}_renderTrailingIcon(){return s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,Zi,"m",er)}"></slot>`}_renderSlot(){return s`<slot @slotchange="${e(this,Zi,"m",tr)}"></slot>`}};Gi=new WeakMap,Xi=new WeakMap,Zi=new WeakSet,Ji=function(){return s`${this._renderIcon()}<div class="label">${this._renderSlot()}</div>${this._renderTrailingIcon()}`},Qi=function(e){k(this,"-with-icon",g(e.target))},er=function(e){k(this,"-with-trailing-icon",g(e.target))},tr=function(e){a(this,Xi,me(e.target),"f")},ar.styles=i`:host { display: inline-block; vertical-align: middle; outline: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; border-radius: var(--m3e-chip-container-shape, ${v.shape.corner.small}); height: calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)}); font-size: var(--m3e-chip-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-chip-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-chip-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-chip-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host(:not(m3e-chip):not(:disabled)[disabled-interactive]) { cursor: not-allowed; } :host(:not(m3e-chip):not(:disabled):not([disabled-interactive])) .base { user-select: none; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; column-gap: var(--m3e-chip-spacing, 0.5rem); } .label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host([variant="elevated"]) .base { background-color: var(--m3e-elevated-chip-container-color, ${v.color.surfaceContainerLow}); --m3e-elevation-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-hover-level: var(--m3e-elevated-chip-hover-elevation, ${v.elevation.level2}); --m3e-elevation-focus-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); --m3e-elevation-pressed-level: var(--m3e-elevated-chip-elevation, ${v.elevation.level1}); } :host([variant="outlined"]) .base { outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-style: solid; outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: var(--m3e-outlined-chip-outline-color, ${v.color.outlineVariant}); } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: color-mix( in srgb, var(--m3e-outlined-chip-disabled-outline-color, ${v.color.onSurface}) var(--m3e-outlined-chip-disabled-outline-opacity, 12%), transparent ); } :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } :host(:not(:state(-with-icon))) .wrapper { padding-inline-start: var(--m3e-chip-padding-start, 1rem); } :host(:state(-with-trailing-icon)) .wrapper { padding-inline-end: var(--m3e-chip-with-icon-padding-end, 0.5rem); } :host(:not(:state(-with-trailing-icon))) .wrapper { padding-inline-end: var(--m3e-chip-padding-end, 1rem); } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]) { flex: none; width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem) !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-icon-color, ${v.color.primary}); } :host(:disabled) .base, :host([disabled-interactive]) .base { color: color-mix( in srgb, var(--m3e-chip-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-chip-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}) var(--m3e-chip-disabled-icon-opacity, 38%), transparent ); } :host([variant="elevated"]:disabled) .base, :host([variant="elevated"][disabled-interactive]) .base { background-color: color-mix( in srgb, var(--m3e-elevated-chip-disabled-container-color, ${v.color.onSurface}) var(--m3e-elevated-chip-disabled-container-opacity, 12%), transparent ); --m3e-elevation-level: var(--m3e-elevated-chip-disabled-elevation, ${v.elevation.level0}); } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { transition: none; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[variant="outlined"]) .base { outline-color: CanvasText; } :host(:disabled) .base, :host([disabled-interactive]) .base, :host(:disabled) ::slotted([slot="icon"]), :host([disabled-interactive]) ::slotted([slot="icon"]), :host(:disabled) ::slotted([slot="trailing-icon"]), :host([disabled-interactive]) ::slotted([slot="trailing-icon"]) { color: GrayText; } :host(:disabled[variant="outlined"]) .base, :host([disabled-interactive][variant="outlined"]) .base { outline-color: GrayText; } }`,t([h(".elevation")],ar.prototype,"_elevation",void 0),t([h(".focus-ring")],ar.prototype,"_focusRing",void 0),t([h(".state-layer")],ar.prototype,"_stateLayer",void 0),t([h(".ripple")],ar.prototype,"_ripple",void 0),t([m({reflect:!0})],ar.prototype,"variant",void 0),t([m()],ar.prototype,"value",null),ar=t([$("m3e-chip")],ar);let or=class extends(U(R(q(N(j(Y(f(ar,"button")))))))){_renderTrailingIcon(){return n}};or.formAssociated=!0,or=t([$("m3e-assist-chip")],or);let ir=class extends(pe(r)){render(){return s`<slot></slot>`}};var rr,sr,nr;ir.styles=i`:host { display: inline-flex; flex-wrap: wrap; vertical-align: middle; gap: var(--m3e-chip-set-spacing, 0.5rem); outline: none; } :host([vertical]) { flex-direction: column; }`,ir=t([$("m3e-chip-set")],ir);let lr=class extends(ue(q(N(j(Y(f(ar,"radio"))))))){constructor(){super(...arguments),rr.add(this),sr.set(this,t=>e(this,rr,"m",nr).call(this,t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,sr,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,sr,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-filter-chip-set")?.[We].notifySelectionChange(this)}_renderIcon(){return s`<div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg> ${super._renderIcon()}</div>`}};var cr,dr,hr,mr,pr,ur,vr;sr=new WeakMap,rr=new WeakSet,nr=function(e){if(e.defaultPrevented)return;const t=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-filter-chip-set")?.[We].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=t},lr.formAssociated=!0,lr.styles=[ar.styles,i`:host([selected]:not(:state(-hide-selection))) .wrapper { padding-inline-start: var(--m3e-chip-with-icon-padding-start, 0.5rem); } .icon { display: flex; align-items: center; justify-content: center; } .check { width: 1em; font-size: var(--m3e-chip-icon-size, 1.125rem); } :host(:not(:disabled):not([disabled-interactive])) .check { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not([selected])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-chip-with-icon-padding-start, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host([selected]) .icon { margin-inline-start: 0; } :host([selected]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base { color: var(--m3e-chip-unselected-label-text-color, ${v.color.onSurfaceVariant}); --m3e-ripple-color: var(--m3e-chip-unselected-ripple-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-focus-color: var( --m3e-chip-unselected-state-layer-focus-color, ${v.color.onSurfaceVariant} ); --m3e-state-layer-hover-color: var( --m3e-chip-unselected-state-layer-hover-color, ${v.color.onSurfaceVariant} ); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]) { color: var(--m3e-chip-unselected-leading-icon-color, ${v.color.primary}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-unselected-trailing-icon-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: unset; outline-width: var(--m3e-chip-selected-outline-thickness, 0); color: var(--m3e-chip-selected-label-text-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-chip-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-chip-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-chip-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-elevation-hover-level: var(--m3e-chip-selected-hover-elevation, ${v.elevation.level1}); --m3e-ripple-color: var(--m3e-chip-selected-ripple-color, ${v.color.onSecondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-chip-selected-state-layer-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-chip-selected-state-layer-hover-color, ${v.color.onSecondaryContainer} ); } :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]) { color: var(--m3e-chip-selected-leading-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: var(--m3e-chip-selected-trailing-icon-color, ${v.color.onSecondaryContainer}); } @media (prefers-reduced-motion) { .base, :host(:not(:state(-with-icon))) .icon { transition: none; } } @media (forced-colors: active) { :host(:not(:disabled):not([disabled-interactive]):not([selected])) .base, :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive]):not([selected])) ::slotted([slot="trailing-icon"]) { color: CanvasText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base, :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="icon"]), :host(:not(:disabled):not([disabled-interactive])[selected]) ::slotted([slot="trailing-icon"]), :host(:not(:disabled):not([disabled-interactive])) .check { color: ButtonText; } :host(:not(:disabled):not([disabled-interactive])[selected]) .base { outline-offset: calc(0px - var(--m3e-outlined-chip-outline-thickness, 1px)); outline-width: var(--m3e-outlined-chip-outline-thickness, 1px); outline-color: ButtonText; } }`],lr=t([$("m3e-filter-chip")],lr);let br=class extends(Q(te(ae(se(Y(P(f(ir,"radiogroup")))))))){constructor(){super(...arguments),cr.add(this),dr.set(this,void 0),this[vr]=(new De).onActiveItemChange(()=>this[We].activeItem?.focus()).withWrap().withDirectionality(Ve.current),this.multi=!1,this.hideSelectionIndicator=!1}get chips(){return this[We]?.items??[]}get selected(){return this[We]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(dr=new WeakMap,cr=new WeakSet,vr=We,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),a(this,dr,Ve.observe(()=>this[We].directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,dr,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(this[We].vertical=this.vertical),t.has("disabled")&&(void 0!==t.get("disabled")||this.disabled)&&(this[We].disabled=this.disabled),t.has("multi")&&(this.role=this.multi?"group":"radiogroup",e(this,cr,"m",ur).call(this),this[We].multi=this.multi,this[We].disableRovingTabIndex(this.multi)),(t.has("multi")||t.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),t.has("hideSelectionIndicator")&&this.chips.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,cr,"m",hr)}" @keydown="${e(this,cr,"m",mr)}" @change="${e(this,cr,"m",pr)}"></slot>`}};var fr,gr,yr,$r;hr=function(){const{added:t}=this[We].setItems([...this.querySelectorAll("m3e-filter-chip")]);t.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),e(this,cr,"m",ur).call(this)},mr=function(e){this.multi||this[We].onKeyDown(e)},pr=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},ur=function(){this.chips.forEach(e=>e.role=this.multi?"button":"radio")},t([m({type:Boolean})],br.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],br.prototype,"hideSelectionIndicator",void 0),br=t([$("m3e-filter-chip-set")],br);let xr=class extends(x(j(Y(f(ar,"row"))),"remove")){constructor(){super(...arguments),fr.add(this),this.removable=!1,this.removeLabel="Remove"}connectedCallback(){super.connectedCallback(),this.removeAttribute("tabindex")}update(e){super.update(e),this.removeAttribute("tabindex"),e.has("removable")&&k(this,"-with-trailing-icon",this.removable)}render(){return s`<div class="base"><m3e-elevation class="elevation" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" for="cell" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" for="cell" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="wrapper"><div id="cell" class="cell" role="gridcell" tabindex="${Ne(this.disabled?void 0:"-1")}" @keydown="${e(this,fr,"m",$r)}"><slot name="avatar" @slotchange="${e(this,fr,"m",gr)}"></slot>${this._renderIcon()}<div class="label">${this._renderSlot()}</div><div class="touch" aria-hidden="true"></div></div>${this._renderTrailingIcon()}</div></div>`}_renderTrailingIcon(){return this.removable?s`<span role="gridcell" class="remove"><m3e-icon-button class="remove-button" aria-label="${this.removeLabel}" size="extra-small" tabindex="-1" ?disabled="${this.disabled}" ?disabled-interactive="${this.disabledInteractive}" @click="${e(this,fr,"m",yr)}"><slot name="remove-icon"><svg class="remove-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button></span>`:n}};var wr,kr,Cr,Sr,_r,Lr,zr,Er,Mr,Tr,Pr,Ir,Wr,Dr,Ar,Hr,Or,Fr,Br,Vr,qr,Rr,Ur,Nr;fr=new WeakSet,gr=function(e){k(this,"-with-avatar",g(e.target))},yr=function(e){e.stopPropagation(),this.dispatchEvent(new Event("remove"))},$r=function(e){if(this.removable)switch(e.key){case"Backspace":case"Delete":this.dispatchEvent(new Event("remove"))}},xr.formAssociated=!0,xr.styles=[ar.styles,i`.cell { display: inline-flex; align-items: center; outline: none; column-gap: var(--m3e-chip-spacing, 0.5rem); min-width: 0; } .remove-button { --m3e-icon-button-extra-small-container-height: 1.5rem; --m3e-icon-button-extra-small-icon-size: var(--m3e-chip-icon-size, 1.125rem); width: 1.5rem; } .remove-icon { flex: none; width: var(--m3e-chip-icon-size, 1.125rem); height: var(--m3e-chip-icon-size, 1.125rem); } .touch { top: calc( 0px - calc(calc(3rem - calc(var(--m3e-chip-container-height, 2rem) + ${v.density.calc(-2)})) / 2) ); } .wrapper { height: 100%; overflow: visible; min-width: 0; } ::slotted([slot="avatar"]) { flex: none; font-size: var(--m3e-chip-avatar-size, 1.5rem); } ::slotted(m3e-avatar[slot="avatar"]) { --m3e-icon-size: var(--m3e-chip-avatar-icon-size, 1.125rem); --m3e-avatar-size: var(--m3e-chip-avatar-size, 1.5rem); --m3e-avatar-font-size: var( --m3e-chip-avatar-font-size, ${v.typescale.standard.title.small.fontSize} ); --m3e-avatar-font-weight: var( --m3e-chip-avatar-font-height, ${v.typescale.standard.title.small.fontWeight} ); --m3e-avatar-line-height: var( --m3e-chip-avatar-line-height, ${v.typescale.standard.title.small.lineHeight} ); --m3e-avatar-tracking: var(--m3e-chip-avatar-tracking, ${v.typescale.standard.title.small.tracking}); } :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { opacity: var(--m3e-chip-disabled-avatar-opacity, 38%); color: var(--m3e-chip-disabled-icon-color, ${v.color.onSurface}); } :host(:state(-with-avatar)) ::slotted([slot="icon"]) { display: none; } :host(:state(-with-avatar)) .wrapper { padding-inline-start: var(--m3e-chip-with-avatar-padding-start, 0.25rem); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="avatar"]), :host([disabled-interactive]) ::slotted([slot="avatar"]) { color: CanvasText; } }`],t([h(".cell")],xr.prototype,"cell",void 0),t([h(".remove-button")],xr.prototype,"removeButton",void 0),t([m({type:Boolean})],xr.prototype,"removable",void 0),t([m({attribute:"remove-label"})],xr.prototype,"removeLabel",void 0),xr=t([$("m3e-input-chip")],xr);let jr=class extends(ee(oe(ie(te(ae(se(Y(P(f(ir,"grid")))))))))){constructor(){super(...arguments),wr.add(this),kr.set(this,void 0),Cr.set(this,()=>e(this,wr,"m",Ur).call(this)),Sr.set(this,t=>e(this,wr,"m",Nr).call(this,t)),_r.set(this,()=>e(this,wr,"m",Fr).call(this)),Lr.set(this,()=>e(this,wr,"m",Br).call(this)),zr.set(this,()=>e(this,wr,"m",Vr).call(this)),Er.set(this,t=>e(this,wr,"m",qr).call(this,t)),Mr.set(this,t=>e(this,wr,"m",Rr).call(this,t)),Tr.set(this,new Ae),Pr.set(this,(new ze).onActiveItemChange(()=>e(this,Pr,"f").activeItem?.focus()).withHomeAndEnd().withSkipPredicate(e=>!e.hasAttribute("tabindex")).withDirectionality(Ve.current)),Ir.set(this,!1),Wr.set(this,null),Dr.set(this,0)}get chips(){return[...this.querySelectorAll("m3e-input-chip")]}get value(){const e=this.chips.filter(e=>!e.disabled).map(e=>e.value);return 0==e.length?null:e}get[(kr=new WeakMap,Cr=new WeakMap,Sr=new WeakMap,_r=new WeakMap,Lr=new WeakMap,zr=new WeakMap,Er=new WeakMap,Mr=new WeakMap,Tr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,Wr=new WeakMap,Dr=new WeakMap,wr=new WeakSet,le)](){const e=this.value;if(!e)return null;const t=new FormData;for(const a of e)t.append(this.name,a);return t}get shouldLabelFloat(){return this.chips.length>0}onContainerClick(){e(this,Wr,"f")?.focus()}connectedCallback(){super.connectedCallback(),customElements.get("m3e-form-field")?this.closest("m3e-form-field")?.notifyControlStateChange():customElements.whenDefined("m3e-form-field").then(()=>{this.closest("m3e-form-field")?.notifyControlStateChange()}),a(this,Dr,Number.parseInt(this.getAttribute("tabindex")??"0"),"f"),this.addEventListener("focus",e(this,_r,"f")),this.addEventListener("focusin",e(this,Lr,"f")),this.addEventListener("focusout",e(this,zr,"f")),a(this,kr,Ve.observe(()=>e(this,Pr,"f").directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",e(this,_r,"f")),this.removeEventListener("focusin",e(this,Lr,"f")),this.removeEventListener("focusout",e(this,zr,"f")),e(this,kr,"f")?.call(this)}firstUpdated(t){super.firstUpdated(t),this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${e(this,Dr,"f")}`)}update(t){super.update(t),t.has("vertical")&&(this.ariaOrientation=null),t.has("disabled")&&(e(this,Tr,"f").items.forEach(e=>e.disabled=this.disabled),e(this,Wr,"f")&&(e(this,Wr,"f").disabled=this.disabled))}render(){return s`<slot @keydown="${e(this,wr,"m",Ar)}" @slotchange="${e(this,wr,"m",Hr)}"></slot><span role="row"><span role="gridcell"><slot name="input" @slotchange="${e(this,wr,"m",Or)}"></slot></span></span>`}};Ar=function(t){e(this,Pr,"f").onKeyDown(t)},Hr=async function(){const{added:t,removed:a}=e(this,Tr,"f").setItems([...this.querySelectorAll("m3e-input-chip")]);for(const a of t)a.isUpdatePending&&await a.updateComplete,this.disabled&&(a.disabled=!0),a.addEventListener("remove",e(this,Er,"f")),a.cell.addEventListener("click",e(this,Mr,"f"));a.forEach(t=>{t.removeEventListener("remove",e(this,Er,"f")),t.cell.removeEventListener("click",e(this,Mr,"f"))}),e(this,Pr,"f").setItems(e(this,Tr,"f").items.flatMap(e=>e.removeButton?[e.cell,e.removeButton]:[e.cell])),e(this,Pr,"f").activeItem||e(this,Pr,"f").updateActiveItem(e(this,Pr,"f").items.find(e=>e.hasAttribute("tabindex")))},Or=function(){const t=this.querySelector("input");if(e(this,Wr,"f")&&(e(this,Wr,"f").removeEventListener("change",e(this,Cr,"f")),e(this,Wr,"f").removeEventListener("keydown",e(this,Sr,"f"))),a(this,Wr,t,"f"),e(this,Wr,"f")){e(this,Wr,"f").disabled=this.disabled,e(this,Wr,"f").addEventListener("change",e(this,Cr,"f")),e(this,Wr,"f").addEventListener("keydown",e(this,Sr,"f"));const a=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(t,"value",{get:()=>a.get?.call(t),set:o=>{a.set?.call(t,o),e(this,Wr,"f")!==t||e(this,Ir,"f")||e(this,wr,"m",Ur).call(this)}})}},Fr=function(){setTimeout(()=>(e(this,Pr,"f").activeItem??e(this,Wr,"f"))?.focus())},Br=function(){this.setAttribute("tabindex","-1")},Vr=function(){this.setAttribute("tabindex",`${e(this,Dr,"f")}`)},qr=function(t){const a=t.target,o=e(this,Tr,"f").items.indexOf(a),i=e(this,Tr,"f").items.find((e,t)=>t>o&&!e.disabled&&e.removable);a.remove(),e(this,Pr,"f").setActiveItem(e(this,Pr,"f").items.find(e=>e===i?.removeButton)),e(this,Pr,"f").activeItem||e(this,Wr,"f")?.focus(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"remove",value:a.value,chip:a}}))},Rr=function(t){e(this,Pr,"f").updateActiveItem(t.composedPath().find(e=>e instanceof xr)?.cell)},Ur=async function(){const t=e(this,Wr,"f")?.value;if(!t)return;const o=document.createElement("m3e-input-chip");if(o.removable=!0,o.appendChild(document.createTextNode(t)),this.appendChild(o),o.isUpdatePending&&await o.updateComplete,e(this,Wr,"f"))try{a(this,Ir,!0,"f"),e(this,Wr,"f").value=""}finally{a(this,Ir,!1,"f")}this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{type:"add",value:t,chip:o}}))},Nr=function(t){if("Backspace"===t.key&&!e(this,Wr,"f")?.value){const t=[...e(this,Tr,"f").items].reverse().find(e=>!e.disabled&&!e.disabledInteractive&&e.removable);t&&t.dispatchEvent(new Event("remove"))}},B(i`m3e-input-chip-set [slot="input"]::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-input-chip-set:not(:focus-within) [slot="input"]::placeholder { opacity: 0; transition: 0s; } m3e-input-chip-set:hover [slot="input"]::placeholder { transition: 0s; } @media (prefers-reduced-motion) { m3e-input-chip-set [slot="input"]::placeholder { transition: none !important; } }`),jr.styles=[ir.styles,i`::slotted([slot="input"]) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: initial; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(m3e-input-chip) { min-width: 0; } span[role="row"], span[role="gridcell"] { display: contents; }`],jr=t([$("m3e-input-chip-set")],jr);let Yr=class extends(U(R(q(N(j(Y(f(ar,"button")))))))){_renderTrailingIcon(){return n}};var Kr,Zr,Gr,Xr,Jr,Qr,es,ts,as,os,is,rs,ss,ns,ls,cs,ds,hs,ms,ps,us,vs,bs,fs,gs,ys,$s,xs,ws,ks,Cs,Ss,_s,Ls,zs,Es,Ms,Ts,Ps,Is,Ws,Ds,As,Hs,Os,Fs,Bs,Vs,qs,Rs,Us,Ns,js,Ys,Ks,Zs,Gs,Xs,Js,Qs,en,tn,an,on,rn,sn,nn,ln,cn,dn,hn,mn,pn,un,vn,bn,fn;Yr.formAssociated=!0,Yr=t([$("m3e-suggestion-chip")],Yr);class gn{constructor(t,o){Kr.set(this,null),Zr.set(this,0),Gr.set(this,!1),Xr.set(this,void 0),Jr.set(this,()=>{if(!e(this,Gr,"f"))return;const t=performance.now();e(this,Xr,"f").call(this,(t-e(this,Zr,"f"))/1e3,t/1e3),a(this,Zr,t,"f"),a(this,Kr,requestAnimationFrame(e(this,Jr,"f")),"f")}),a(this,Xr,o,"f"),t.addController(this)}hostDisconnected(){this.stop()}start(){e(this,Gr,"f")||(a(this,Gr,!0,"f"),a(this,Zr,performance.now(),"f"),e(this,Jr,"f").call(this))}stop(){e(this,Gr,"f")&&(a(this,Gr,!1,"f"),null!==e(this,Kr,"f")&&(cancelAnimationFrame(e(this,Kr,"f")),a(this,Kr,null,"f")))}}Kr=new WeakMap,Zr=new WeakMap,Gr=new WeakMap,Xr=new WeakMap,Jr=new WeakMap;class yn{constructor(t,o){Qr.set(this,void 0),es.set(this,void 0),ts.set(this,new Set),a(this,Qr,t,"f"),a(this,es,o.target,"f"),e(this,Qr,"f").addController(this)}get targets(){return e(this,ts,"f").values()}hostConnected(){null!==e(this,es,"f")&&this.observe(e(this,es,"f")??e(this,Qr,"f"))}hostDisconnected(){e(this,ts,"f").forEach(e=>this.unobserve(e)),e(this,ts,"f").clear()}observe(t){e(this,ts,"f").has(t)||(e(this,ts,"f").add(t),this._observe(t))}isObserving(t){return e(this,ts,"f").has(t)}unobserve(t){e(this,ts,"f").delete(t)&&this._unobserve(t)}}function $n(e,t){if(!t)return 0;const a=document.createElement("div");a.style.all="inherit",a.style.width=t,a.style.position="absolute",a.style.visibility="hidden",a.style.pointerEvents="none",e.appendChild(a);try{return parseFloat(getComputedStyle(a).width)}finally{a.remove()}}function xn(e){const t=parseFloat(getComputedStyle(e).lineHeight);return isNaN(t)||t<=0?0:Math.round(e.scrollHeight/t)}async function wn(e,t=200){function a(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement===e:document.activeElement===e}e.focus();const o=performance.now();for(;!a(e);){if(!e.isConnected||performance.now()-o>t)return!1;await new Promise(requestAnimationFrame),e.focus()}return!0}function kn(){return!l&&matchMedia("(forced-colors: active)").matches}function Cn(e,t,a){return e+(t-e)*a}function Sn(e,t,a,o){return{x:Math.pow(1-o,2)*e.x+2*(1-o)*o*t.x+Math.pow(o,2)*a.x,y:Math.pow(1-o,2)*e.y+2*(1-o)*o*t.y+Math.pow(o,2)*a.y}}function _n(e,t,a,o,i){return{x:Math.pow(1-i,3)*e.x+3*Math.pow(1-i,2)*i*t.x+3*(1-i)*Math.pow(i,2)*a.x+Math.pow(i,3)*o.x,y:Math.pow(1-i,3)*e.y+3*Math.pow(1-i,2)*i*t.y+3*(1-i)*Math.pow(i,2)*a.y+Math.pow(i,3)*o.y}}function Ln(e,t){const a=function(e){return(e.match(/[a-zA-Z][^a-zA-Z]*/g)||[]).map(e=>({type:e[0],nums:e.slice(1).trim().split(/[\s,]+/).filter(Boolean).map(Number)}))}(e);let o={x:0,y:0},i={x:0,y:0};const r=[];for(const e of a)if("M"===e.type)o={x:e.nums[0],y:e.nums[1]},i=o;else if("L"===e.type){const t={x:e.nums[0],y:e.nums[1]},a=t.x-o.x,i=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.hypot(a,i)}),o=t}else if("H"===e.type){const t={x:e.nums[0],y:o.y},a=t.x-o.x;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("V"===e.type){const t={x:o.x,y:e.nums[0]},a=t.y-o.y;r.push({type:"L",pts:[o,t],length:Math.abs(a)}),o=t}else if("Q"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]};let i=0,s=o;const n=20;for(let e=1;e<=n;e++){const r=Sn(o,t,a,e/n);i+=Math.hypot(r.x-s.x,r.y-s.y),s=r}r.push({type:"Q",pts:[o,t,a],length:i}),o=a}else if("C"===e.type){const t={x:e.nums[0],y:e.nums[1]},a={x:e.nums[2],y:e.nums[3]},i={x:e.nums[4],y:e.nums[5]};let s=0,n=o;const l=20;for(let e=1;e<=l;e++){const r=_n(o,t,a,i,e/l);s+=Math.hypot(r.x-n.x,r.y-n.y),n=r}r.push({type:"C",pts:[o,t,a,i],length:s}),o=i}else if("Z"===e.type){const e=i.x-o.x,t=i.y-o.y;r.push({type:"L",pts:[o,i],length:Math.hypot(e,t)}),o=i}const s=r.reduce((e,t)=>e+t.length,0)/(t-1),n=[];let l=0,c=0;for(let e=0;e<t;e++){const t=e*s;for(;c<r.length&&l+r[c].length<t;)l+=r[c].length,c++;const a=r[c];if(!a)break;const o=(t-l)/a.length;if("L"===a.type){const[e,t]=a.pts;n.push({x:Cn(e.x,t.x,o),y:Cn(e.y,t.y,o)})}else if("Q"===a.type){const[e,t,i]=a.pts;n.push(Sn(e,t,i,o))}else if("C"===a.type){const[e,t,i,r]=a.pts;n.push(_n(e,t,i,r,o))}}return n}function zn(e,t,a){return Math.max(t,Math.min(a,e))}function En(e,t){const a=e.length,o=new Array(a);for(let i=0;i<a;i++)o[i]=e[(i+t)%a];return o}function Mn(e,t){const a=Math.min(t.length,e.length);let o=0,i=1/0;for(let r=0;r<a;r++){let s=0;for(let o=0;o<a;o++){const n=t[(o+r)%a],l=e[o],c=n.x-l.x,d=n.y-l.y;if(s+=c*c+d*d,s>=i)break}s<i&&(i=s,o=r)}return o}function Tn(e){let t=0;const a=e.length;for(let o=0;o<a;o++){const i=e[o],r=e[(o+1)%a];t+=i.x*r.y-r.x*i.y}return t/2}function Pn(e,t){return function(e){const t=e.map(e=>{const t=function(e){let t=1/0,a=1/0,o=-1/0,i=-1/0;for(const r of e)r.x<t&&(t=r.x),r.x>o&&(o=r.x),r.y<a&&(a=r.y),r.y>i&&(i=r.y);return{minX:t,minY:a,maxX:o,maxY:i,width:o-t,height:i-a}}(e),a=e.map(e=>({x:e.x-t.minX,y:e.y-t.minY})),o=Math.max(t.width,t.height)||1,i=a.map(e=>({x:e.x/o,y:e.y/o})),r=t.width/o,s=t.height/o,n=(1-r)/2,l=(1-s)/2;return i.map(e=>({x:e.x+n,y:e.y+l}))}),a=t[0],o=Math.sign(Tn(a));for(let e=1;e<t.length;e++){let i=t[e];const r=Math.sign(Tn(i));0!==r&&r!==o&&(i=i.slice().reverse());const s=Mn(a,i);t[e]=En(i,s)}return t}(e.map(e=>Ln(e,t))).map(e=>`${e.map(e=>{const t=zn(100*e.x,0,100),a=zn(100*e.y,0,100);return`${t.toFixed(2)}% ${a.toFixed(2)}%`}).join(", ")}`)}function In(e,t=!1){let a="";switch(e.nodeType){case Node.TEXT_NODE:a=e.nodeValue??"";break;case Node.ELEMENT_NODE:if(e instanceof HTMLSlotElement)for(const o of e.assignedNodes({flatten:!0}))a+=In(o,t);else for(const o of e.childNodes)a+=In(o,t)}return t&&(a=a.trim()),a}function Wn(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Dn(e){return e.assignedNodes({flatten:!0}).length>0}function An(e,t,a){const o=Object.getOwnPropertyDescriptor(e,t)??Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t);if(!o)throw new Error(`Property ${String(t)} not found on target.`);const i=o.get?.bind(e),r=o.set?.bind(e);return Object.defineProperty(e,t,{configurable:!0,enumerable:o.enumerable,get:()=>a.get?a.get(()=>i?.()):i?.(),set(e){a.set?a.set(e,e=>r?.(e)):r?.(e)}}),()=>Object.defineProperty(e,t,o)}function Hn(){return l||matchMedia("(prefers-reduced-motion)").matches}function On(e){if("undefined"==typeof window)return;const t=new CSSStyleSheet;t.replaceSync(e.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}function Fn(e,t=document){return new Promise(a=>{const o=t.querySelector(`#${e}`);o?a(o):"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",()=>a(t.querySelector(`#${e}`)),{once:!0}):a(t.querySelector(`#${e}`))})}function Bn(e){const t=document?.location??null;return`url(${t?(t.pathname+t.search).split("#")[0]:""}#${e})`}function Vn(e,t,a){const o=t.getBoundingClientRect(),i=e.getBoundingClientRect();(i.top<o.top||i.bottom>o.bottom)&&e.scrollIntoView(a)}Qr=new WeakMap,es=new WeakMap,ts=new WeakMap;class qn{constructor(e=100){as.set(this,[]),os.set(this,void 0),a(this,os,e,"f")}add(t,a=performance.now()){e(this,as,"f").push({y:t,t:a});const o=a-e(this,os,"f");for(;e(this,as,"f").length>1&&e(this,as,"f")[0].t<o;)e(this,as,"f").shift()}getVelocity(){if(e(this,as,"f").length<2)return 0;const t=e(this,as,"f")[0],a=e(this,as,"f")[e(this,as,"f").length-1],o=a.y-t.y,i=(a.t-t.t)/1e3;return i>0?o/i:0}reset(){e(this,as,"f").length=0}}as=new WeakMap,os=new WeakMap;class Rn extends yn{constructor(t,o){super(t,o),is.add(this),rs.set(this,!1),ss.set(this,void 0),ns.set(this,t=>e(this,is,"m",vs).call(this,t)),ls.set(this,t=>e(this,is,"m",bs).call(this,t)),cs.set(this,t=>e(this,is,"m",fs).call(this,t)),ds.set(this,()=>a(this,rs,!0,"f")),hs.set(this,()=>a(this,rs,!1,"f")),ms.set(this,!1),ps.set(this,()=>a(this,ms,!0,"f")),us.set(this,()=>a(this,ms,!1,"f")),a(this,ss,o.callback,"f")}hostConnected(){super.hostConnected(),window?.addEventListener("keydown",e(this,ps,"f"),{capture:!0,passive:!0}),window?.addEventListener("pointerdown",e(this,us,"f"),{capture:!0})}hostDisconnected(){super.hostDisconnected(),window?.removeEventListener("keydown",e(this,ps,"f"),{capture:!0}),window?.removeEventListener("pointerdown",e(this,us,"f"),{capture:!0})}_observe(t){t.addEventListener("keydown",e(this,ns,"f")),t.addEventListener("focusin",e(this,ls,"f")),t.addEventListener("focusout",e(this,cs,"f")),t.addEventListener("touchstart",e(this,ds,"f")),t.addEventListener("touchend",e(this,hs,"f")),t.addEventListener("touchcancel",e(this,hs,"f"))}_unobserve(t){t.removeEventListener("keydown",e(this,ns,"f")),t.removeEventListener("focusin",e(this,ls,"f")),t.removeEventListener("focusout",e(this,cs,"f")),t.removeEventListener("touchstart",e(this,ds,"f")),t.removeEventListener("touchend",e(this,hs,"f")),t.removeEventListener("touchcancel",e(this,hs,"f"))}}rs=new WeakMap,ss=new WeakMap,ns=new WeakMap,ls=new WeakMap,cs=new WeakMap,ds=new WeakMap,hs=new WeakMap,ms=new WeakMap,ps=new WeakMap,us=new WeakMap,is=new WeakSet,vs=function(t){t.currentTarget.matches(":focus-within")&&e(this,is,"m",bs).call(this,t)},bs=function(t){if(e(this,rs,"f"))return;const a=t.currentTarget;e(this,ss,"f").call(this,!0,a.matches(":focus-visible")||e(this,ms,"f")||kn(),a)},fs=function(t){e(this,rs,"f")||e(this,ss,"f").call(this,!1,!1,t.currentTarget)};class Un extends yn{constructor(t,o){super(t,o),gs.add(this),ys.set(this,void 0),$s.set(this,new Map),xs.set(this,new Map),ws.set(this,t=>e(this,gs,"m",Ls).call(this,t)),ks.set(this,t=>e(this,gs,"m",zs).call(this,t)),a(this,ys,o.callback,"f"),this.startDelay=o.startDelay??0,this.endDelay=o.endDelay??0}clearDelays(){for(const t of this.targets)e(this,gs,"m",Cs).call(this,t)}_observe(t){t.addEventListener("pointerenter",e(this,ws,"f")),t.addEventListener("pointerleave",e(this,ks,"f")),t.addEventListener("touchend",e(this,ks,"f"))}_unobserve(t){t.removeEventListener("pointerenter",e(this,ws,"f")),t.removeEventListener("pointerleave",e(this,ks,"f")),t.removeEventListener("touchend",e(this,ks,"f"))}}ys=new WeakMap,$s=new WeakMap,xs=new WeakMap,ws=new WeakMap,ks=new WeakMap,gs=new WeakSet,Cs=function(t){e(this,gs,"m",Ss).call(this,t),e(this,gs,"m",_s).call(this,t)},Ss=function(t){return!!e(this,$s,"f").has(t)&&(clearTimeout(e(this,$s,"f").get(t)),e(this,$s,"f").delete(t))},_s=function(t){return!!e(this,xs,"f").has(t)&&(clearTimeout(e(this,xs,"f").get(t)),e(this,xs,"f").delete(t))},Ls=function(t){const a=t.target;e(this,gs,"m",_s).call(this,a),this.startDelay>0?(e(this,gs,"m",Ss).call(this,a),e(this,$s,"f").set(a,setTimeout(()=>{e(this,$s,"f").delete(a),e(this,ys,"f").call(this,!0,a)},this.startDelay))):e(this,ys,"f").call(this,!0,a)},zs=function(t){const a=t.target;e(this,gs,"m",Ss).call(this,a)||(this.endDelay>0?(e(this,gs,"m",_s).call(this,a),e(this,xs,"f").set(a,setTimeout(()=>{e(this,xs,"f").delete(a),e(this,ys,"f").call(this,!1,a)},this.endDelay))):e(this,ys,"f").call(this,!1,a))};class Nn{constructor(e){Es.set(this,void 0),Ms.set(this,new Array),a(this,Es,e,"f"),e.addController(this)}lock(){this.unlock();for(let t=e(this,Es,"f");t.parentNode&&t.parentNode!==document.documentElement;t=t.parentNode)for(const a of t.parentNode.children)a instanceof HTMLElement&&a!==t&&!a.inert&&(a.inert=!0,e(this,Ms,"f").push(a))}unlock(){e(this,Ms,"f").forEach(e=>e.inert=!1),e(this,Ms,"f").length=0}hostDisconnected(){this.unlock()}}Es=new WeakMap,Ms=new WeakMap;class jn extends yn{constructor(t,o){super(t,o),Ts.set(this,void 0),Ps.set(this,!1),Is.set(this,void 0),Ws.set(this,!0),a(this,Ts,o.callback,"f"),a(this,Ps,o.skipInitial??!1,"f"),l||(window.IntersectionObserver?a(this,Is,new IntersectionObserver((t,a)=>{e(this,Ts,"f").call(this,t,a)},o.init),"f"):console.warn("IntersectionController error: the browser does not support IntersectionObserver."))}async hostUpdated(){e(this,Is,"f")&&!e(this,Ps,"f")&&e(this,Ws,"f")&&e(this,Ts,"f").call(this,[],e(this,Is,"f")),a(this,Ws,!1,"f")}_observe(t){e(this,Is,"f")?.observe(t),a(this,Ws,!0,"f")}_unobserve(t){e(this,Is,"f")?.unobserve(t)}}Ts=new WeakMap,Ps=new WeakMap,Is=new WeakMap,Ws=new WeakMap;class Yn extends yn{constructor(t,o){super(t,o),Ds.add(this),As.set(this,void 0),Hs.set(this,void 0),Os.set(this,new Set),Fs.set(this,new Map),Bs.set(this,t=>e(this,Ds,"m",qs).call(this,t)),Vs.set(this,t=>e(this,Ds,"m",Rs).call(this,t)),a(this,As,o.callback,"f"),a(this,Hs,o.threshold??500,"f")}_observe(t){t.addEventListener("touchstart",e(this,Bs,"f"),{passive:!0}),t.addEventListener("touchend",e(this,Vs,"f")),t.addEventListener("touchcancel",e(this,Vs,"f"))}_unobserve(t){t.removeEventListener("touchstart",e(this,Bs,"f")),t.removeEventListener("touchend",e(this,Vs,"f")),t.removeEventListener("touchcancel",e(this,Vs,"f"))}}As=new WeakMap,Hs=new WeakMap,Os=new WeakMap,Fs=new WeakMap,Bs=new WeakMap,Vs=new WeakMap,Ds=new WeakSet,qs=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,Fs,"f").set(a,setTimeout(()=>{e(this,Os,"f").add(a),e(this,Fs,"f").delete(a),e(this,As,"f").call(this,!0,a)},e(this,Hs,"f")))}},Rs=function(t){if(t.currentTarget instanceof HTMLElement&&this.isObserving(t.currentTarget)){const a=t.currentTarget;e(this,Os,"f").has(a)&&(e(this,As,"f").call(this,!1,a),e(this,Os,"f").delete(a)),e(this,Fs,"f").has(a)&&(clearTimeout(e(this,Fs,"f").get(a)),e(this,Fs,"f").delete(a))}};class Kn extends yn{constructor(t,o){super(t,o),Us.set(this,void 0),Ns.set(this,!1),js.set(this,void 0),Ys.set(this,void 0),Ks.set(this,!0),a(this,Us,o.callback,"f"),a(this,Ns,o.skipInitial??!1,"f"),a(this,js,o.config,"f"),l||(window.MutationObserver?a(this,Ys,new MutationObserver((t,a)=>e(this,Us,"f").call(this,t,a)),"f"):console.warn("MutationController error: the browser does not support MutationObserver."))}async hostUpdated(){if(e(this,Ys,"f")&&!e(this,Ns,"f")&&e(this,Ks,"f")){const t=e(this,Ys,"f").takeRecords();t.length>0&&e(this,Us,"f").call(this,t,e(this,Ys,"f"))}a(this,Ks,!1,"f")}hostDisconnected(){super.hostDisconnected(),e(this,Ys,"f")?.disconnect()}_observe(t){e(this,Ys,"f")?.observe(t,e(this,js,"f")),a(this,Ks,!0,"f")}_unobserve(){e(this,Ys,"f")?.disconnect();for(const t of this.targets)e(this,Ys,"f")?.observe(t,e(this,js,"f"))}}Us=new WeakMap,Ns=new WeakMap,js=new WeakMap,Ys=new WeakMap,Ks=new WeakMap;class Zn extends yn{constructor(t,o){super(t,o),Zs.add(this),Gs.set(this,void 0),Xs.set(this,void 0),Js.set(this,void 0),Qs.set(this,new Map),en.set(this,void 0),tn.set(this,t=>e(this,Zs,"m",nn).call(this,t)),an.set(this,t=>e(this,Zs,"m",ln).call(this,t)),on.set(this,t=>e(this,Zs,"m",cn).call(this,t)),rn.set(this,t=>e(this,Zs,"m",dn).call(this,t)),sn.set(this,t=>e(this,Zs,"m",hn).call(this,t)),a(this,Gs,o.capture,"f"),a(this,Xs,o.callback,"f"),a(this,Js,o.isPressedKey,"f"),a(this,en,o.minPressedDuration??0,"f")}hostConnected(){document.addEventListener("pointerup",e(this,an,"f"),{capture:e(this,Gs,"f")}),document.addEventListener("touchend",e(this,on,"f"),{capture:e(this,Gs,"f")}),document.addEventListener("touchcancel",e(this,on,"f"),{capture:e(this,Gs,"f")}),super.hostConnected()}hostDisconnected(){document.removeEventListener("pointerup",e(this,an,"f"),{capture:e(this,Gs,"f")}),document.removeEventListener("touchend",e(this,on,"f"),{capture:e(this,Gs,"f")}),document.removeEventListener("touchcancel",e(this,on,"f"),{capture:e(this,Gs,"f")}),super.hostDisconnected(),e(this,Qs,"f").clear()}_observe(t){t.addEventListener("pointerdown",e(this,tn,"f"),{capture:e(this,Gs,"f")}),e(this,Js,"f")&&(t.addEventListener("keydown",e(this,rn,"f"),{capture:e(this,Gs,"f")}),t.addEventListener("keyup",e(this,sn,"f"),{capture:e(this,Gs,"f")}))}_unobserve(t){t.removeEventListener("pointerdown",e(this,tn,"f"),{capture:e(this,Gs,"f")}),e(this,Js,"f")&&(t.removeEventListener("keydown",e(this,rn,"f"),{capture:e(this,Gs,"f")}),t.removeEventListener("keyup",e(this,sn,"f"),{capture:e(this,Gs,"f")}))}}Gs=new WeakMap,Xs=new WeakMap,Js=new WeakMap,Qs=new WeakMap,en=new WeakMap,tn=new WeakMap,an=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,Zs=new WeakSet,nn=function(t){if(!("mouse"===t.pointerType&&t.button>1))for(const a of t.composedPath())if(a instanceof HTMLElement&&this.isObserving(a)){e(this,Qs,"f").has(a)||(e(this,Qs,"f").set(a,performance.now()),e(this,Xs,"f").call(this,!0,{x:t.x,y:t.y},a));break}},ln=function(t){"mouse"===t.pointerType&&t.button>1||e(this,Zs,"m",mn).call(this,t.x,t.y)},cn=function(t){e(this,Zs,"m",mn).call(this,t.changedTouches[0]?.clientX??0,t.changedTouches[0]?.clientY??0)},dn=function(t){if(t.target!==t.currentTarget)return;const a=t.currentTarget;if(e(this,Js,"f")?.call(this,t.key)&&(" "===t.key&&t.preventDefault(),!e(this,Qs,"f").has(a))){e(this,Qs,"f").set(a,performance.now());const t=a.getBoundingClientRect();e(this,Xs,"f").call(this,!0,{x:t.x+t.width/2,y:t.y+t.height/2},a)}},hn=function(t){const a=t.target;if(e(this,Qs,"f").has(a)&&e(this,Js,"f")?.call(this,t.key)){const t=e(this,en,"f")-(performance.now()-e(this,Qs,"f").get(a)),o=a.getBoundingClientRect();t>0?setTimeout(()=>{e(this,Qs,"f").delete(a),e(this,Xs,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a)},t):(e(this,Qs,"f").delete(a),e(this,Xs,"f").call(this,!1,{x:o.x+o.width/2,y:o.y+o.height/2},a))}},mn=function(t,a){for(const o of e(this,Qs,"f")){const i=e(this,en,"f")-(performance.now()-o[1]);i>0?setTimeout(()=>{e(this,Qs,"f").delete(o[0]),e(this,Xs,"f").call(this,!1,{x:t,y:a},o[0])},i):(e(this,Qs,"f").delete(o[0]),e(this,Xs,"f").call(this,!1,{x:t,y:a},o[0]))}};class Gn extends yn{constructor(t,o){super(t,o),pn.set(this,void 0),un.set(this,void 0),vn.set(this,void 0),bn.set(this,void 0),fn.set(this,!0),a(this,pn,o.callback,"f"),a(this,un,o.skipInitial??!1,"f"),a(this,vn,o.config,"f"),l||(window.ResizeObserver?a(this,bn,new ResizeObserver((t,a)=>e(this,pn,"f").call(this,t,a)),"f"):console.warn("ResizeController error: the browser does not support ResizeObserver."))}async hostUpdated(){e(this,bn,"f")&&!e(this,un,"f")&&e(this,fn,"f")&&e(this,pn,"f").call(this,[],e(this,bn,"f")),a(this,fn,!1,"f")}_observe(t){e(this,bn,"f")?.observe(t,e(this,vn,"f")),a(this,fn,!0,"f")}_unobserve(t){e(this,bn,"f")?.unobserve(t)}}pn=new WeakMap,un=new WeakMap,vn=new WeakMap,bn=new WeakMap,fn=new WeakMap;const Xn=e=>(t,a)=>{const o=()=>{"undefined"==typeof window||customElements.get(e)||customElements.define(e,t)};a?a.addInitializer(o):o()};function Jn(e){const t=Symbol("_id");return(a,o,i)=>{const r=i.value;return i.value=function(...a){clearTimeout(this[t]),this[t]=setTimeout(()=>r.apply(this,a),e)},i}}var Qn,el,tl,al,ol,il,rl,sl,nl,ll,cl,dl,hl,ml;class pl extends yn{constructor(t,o){super(t,o),Qn.add(this),el.set(this,void 0),tl.set(this,void 0),al.set(this,t=>e(this,Qn,"m",rl).call(this,t)),ol.set(this,new Map),a(this,el,!0===o.debounce,"f"),a(this,tl,o.callback,"f")}getScrollContainers(t){return e(this,ol,"f").get(t)}_observe(t){const a=e(this,Qn,"m",il).call(this,t);if(a.length>0){e(this,ol,"f").set(t,a);for(const t of a)(t===document.documentElement?document:t).addEventListener("scroll",e(this,al,"f"),{passive:!0})}}_unobserve(t){if(e(this,ol,"f").has(t)){for(const a of e(this,ol,"f").get(t))(a===document.documentElement?document:a).removeEventListener("scroll",e(this,al,"f"));e(this,ol,"f").delete(t)}}_debounceCallback(t){e(this,tl,"f").call(this,t)}}el=new WeakMap,tl=new WeakMap,al=new WeakMap,ol=new WeakMap,Qn=new WeakSet,il=function(e){const t=new Array;let a=e;for(;a;){const e=getComputedStyle(a);/(auto|scroll)/.test(e.overflow+e.overflowY+e.overflowX)&&t.push(a),a=a.parentElement}return t},rl=function(t){const a=t.target===document?document.documentElement:t.target;e(this,el,"f")?this._debounceCallback(a):e(this,tl,"f").call(this,a)},t([Jn(40)],pl.prototype,"_debounceCallback",null);class ul{constructor(e){sl.add(this),nl.set(this,!1),ll.set(this,0),cl.set(this,0),dl.set(this,""),hl.set(this,""),e.addController(this)}lock(){e(this,nl,"f")||(a(this,nl,!0,"f"),a(this,ll,window.scrollY,"f"),a(this,cl,window.scrollX,"f"),a(this,dl,document.documentElement.style.overflow,"f"),a(this,hl,document.documentElement.style.scrollbarGutter,"f"),e(this,sl,"m",ml).call(this)&&(document.documentElement.style.scrollbarGutter="stable"),document.documentElement.style.overflow="hidden",window.scrollTo(e(this,cl,"f"),e(this,ll,"f")))}unlock(){e(this,nl,"f")&&(a(this,nl,!1,"f"),document.documentElement.style.overflow=e(this,dl,"f"),document.documentElement.style.scrollbarGutter=e(this,hl,"f"),window.scrollTo(e(this,cl,"f"),e(this,ll,"f")))}hostDisconnected(){this.unlock()}}nl=new WeakMap,ll=new WeakMap,cl=new WeakMap,dl=new WeakMap,hl=new WeakMap,sl=new WeakSet,ml=function(){return document.documentElement.scrollHeight>document.documentElement.clientHeight};const vl={fromAttribute(e){if(!e)return null;const t=e.match(/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{3}))?)?(Z|[+-]\d{2}:\d{2})?$/);if(!t)return null;const a=Number(t[1]),o=Number(t[2])-1,i=Number(t[3]),r=void 0!==t[4],s=r?Number(t[4]):0,n=r?Number(t[5]):0,l=r?Number(t[6]):0,c=r&&t[7]?Number(t[7]):0,d=t[8];if(!r&&!d)return new Date(a,o,i);if(r&&!d)return new Date(a,o,i,s,n,l,c);if("Z"===d)return new Date(Date.UTC(a,o,i,s,n,l,c));if(d&&/^[+-]\d{2}:\d{2}$/.test(d)){const e=d.startsWith("-")?-1:1,[t,r]=d.slice(1).split(":").map(Number),h=e*(60*t+r),m=Date.UTC(a,o,i,s,n,l,c);return new Date(m-6e4*h)}return null},toAttribute:e=>e?.toISOString()??null},bl={fromAttribute:e=>e?e.split(/\s+/).map(e=>e.trim()).filter(Boolean):[],toAttribute:e=>e.join(" ")},fl="important",gl=" !"+fl;const yl=Ke(class extends Ze{constructor(e){if(super(e),e.type!==Ge.ATTRIBUTE||"style"!==e.name||e.strings?.length>2)throw new Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return n}update(e,[t]){const{style:a}=e.element;void 0===this._previousStyleProperties&&(this._previousStyleProperties=new Set(Object.keys(t)));for(const e of this._previousStyleProperties)null==t[e]&&(this._previousStyleProperties.delete(e),e.includes("-")?a.removeProperty(e):a[e]=null);for(const e in t){const o=t[e];if(null!=o){this._previousStyleProperties.add(e);const t="string"==typeof o&&o.endsWith(gl);e.includes("-")||t?a.setProperty(e,t?o.slice(0,-11):o,t?fl:""):a[e]=o}}return c}});function $l(e,...t){return"object"==typeof e&&null!==e&&t.every(t=>t in e)}const xl=Symbol("internals");function wl(e){return $l(e,xl)}const kl=Symbol("_internals"),Cl=Symbol("_customState");function Sl(e,t){var a;class o extends e{constructor(){super(...arguments),this[a]=new Set}get[(a=Cl,xl)](){return this[kl]??(this[kl]=this.attachInternals())}}return o.formAssociated=t,o}function _l(e,t){return Cl in e?e[Cl].has(t):e[xl].states.has(t)}function Ll(e,t){Cl in e&&e[Cl].add(t),e[xl]?.states.add(t),e[xl]?.states.has(t)}function zl(e,t){return Cl in e&&e[Cl].delete(t),!!e[xl]?.states.delete(t)&&(e[xl]?.states.has(t),!0)}function El(e,t,a){a?Ll(e,t):zl(e,t)}function Ml(e){return $l(e,"checked")}function Tl(e){class a extends e{constructor(){super(...arguments),this.checked=!1}update(e){super.update(e),e.has("checked")&&("button"===this.role?(this.ariaPressed=`${this.checked}`,this.ariaChecked=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=`${this.checked}`,this.ariaPressed=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"checked",void 0),a}function Pl(e){return $l(e,"indeterminate")&&Ml(e)}function Il(e){class a extends(Tl(e)){constructor(){super(...arguments),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaChecked=!this.checked&&this.indeterminate?"mixed":`${this.checked}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"indeterminate",void 0),a}function Wl(e){return $l(e,"selected")}function Dl(e){class a extends e{constructor(){super(...arguments),this.selected=!1}update(e){super.update(e),e.has("selected")&&("button"===this.role?(this.ariaPressed=`${this.selected}`,this.ariaSelected=null,this.ariaChecked=null):"radio"===this.role?(this.ariaChecked=`${this.selected}`,this.ariaSelected=null,this.ariaPressed=null):this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaSelected=`${this.selected}`,this.ariaPressed=null,this.ariaChecked=null))}}return t([m({type:Boolean,reflect:!0})],a.prototype,"selected",void 0),a}function Al(e){return Ml(e)||Wl(e)}function Hl(e){return Ml(e)&&e.checked||Wl(e)&&e.selected}function Ol(e,t){Ml(e)?e.checked=t:e.selected=t}function Fl(e){return $l(e,"dirty","pristine","markAsDirty","markAsPristine")}const Bl=Symbol("_eventHandler");function Vl(e){var t;return t=Bl,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsDirty()}get dirty(){return _l(this,"-dirty")}get pristine(){return!this.dirty}connectedCallback(){this.markAsPristine(),super.connectedCallback(),this.addEventListener("change",this[Bl])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this[Bl])}markAsPristine(){zl(this,"-dirty")}markAsDirty(){Ll(this,"-dirty")}}}function ql(e){return $l(e,"touched","untouched","markAsTouched","markAsUntouched")}const Rl=Symbol("_eventHandler");function Ul(e){var t;return t=Rl,class extends e{constructor(){super(...arguments),this[t]=()=>this.markAsTouched()}get touched(){return _l(this,"-touched")}get untouched(){return!this.touched}connectedCallback(){this.markAsUntouched(),super.connectedCallback(),this.addEventListener("focusout",this[Rl],{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[Rl],{capture:!0})}markAsTouched(){Ll(this,"-touched")}markAsUntouched(){zl(this,"-touched")}}}const Nl={primary:o("var(--md-sys-color-primary, #6750A4)"),onPrimary:o("var(--md-sys-color-on-primary, #FFFFFF)"),primaryContainer:o("var(--md-sys-color-primary-container, #EADDFF)"),onPrimaryContainer:o("var(--md-sys-color-on-primary-container, #4F378B)"),primaryFixed:o("var(--md-sys-color-primary-fixed, #EADDFF)"),primaryFixedDim:o("var(--md-sys-color-primary-fixed-dim, #D0BCFF)"),onPrimaryFixed:o("var(--md-sys-color-on-primary-fixed, #21005D)"),onPrimaryFixedVariant:o("var(--md-sys-color-on-primary-fixed-variant, #4F378B)"),secondary:o("var(--md-sys-color-secondary, #625B71)"),onSecondary:o("var(--md-sys-color-on-secondary, #FFFFFF)"),secondaryContainer:o("var(--md-sys-color-secondary-container, #E8DEF8)"),onSecondaryContainer:o("var(--md-sys-color-on-secondary-container, #4A4458)"),secondaryFixed:o("var(--md-sys-color-secondary-fixed, #E8DEF8)"),secondaryFixedDim:o("var(--md-sys-color-secondary-fixed-dim, #CCC2DC)"),onSecondaryFixed:o("var(--md-sys-color-on-secondary-fixed, #1D192B)"),onSecondaryFixedVariant:o("var(--md-sys-color-on-secondary-fixed-variant, #4A4458)"),tertiary:o("var(--md-sys-color-tertiary, #7D5260)"),onTertiary:o("var(--md-sys-color-on-tertiary, #FFFFFF)"),tertiaryContainer:o("var(--md-sys-color-tertiary-container, #FFD8E4)"),onTertiaryContainer:o("var(--md-sys-color-on-tertiary-container, #633B48)"),tertiaryFixed:o("var(--md-sys-color-tertiary-fixed, #FFD8E4)"),tertiaryFixedDim:o("var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)"),onTertiaryFixed:o("var(--md-sys-color-on-tertiary-fixed, #31111D)"),onTertiaryFixedVariant:o("var(--md-sys-color-on-tertiary-fixed-variant, #633B48)"),error:o("var(--md-sys-color-error, #B3261E)"),onError:o("var(--md-sys-color-on-error, #FFFFFF)"),errorContainer:o("var(--md-sys-color-error-container, #F9DEDC)"),onErrorContainer:o("var(--md-sys-color-on-error-container, #8C1D18)"),surface:o("var(--md-sys-color-surface, #FEF7FF)"),onSurface:o("var(--md-sys-color-on-surface, #1D1B20)"),onSurfaceVariant:o("var(--md-sys-color-on-surface-variant, #49454F)"),surfaceContainerLowest:o("var(--md-sys-color-surface-container-lowest, #FFFFFF)"),surfaceContainerLow:o("var(--md-sys-color-surface-container-low, #F7F2FA)"),surfaceContainer:o("var(--md-sys-color-surface-container, #F3EDF7)"),surfaceContainerHigh:o("var(--md-sys-color-surface-container-high, #ECE6F0)"),surfaceContainerHighest:o("var(--md-sys-color-surface-container-highest, #E6E0E9)"),surfaceDim:o("var(--md-sys-color-surface-dim, #DED8E1)"),surfaceBright:o("var(--md-sys-color-surface-bright, #FEF7FF)"),surfaceVariant:o("var(--md-sys-color-surface-variant, #E7E0EC)"),inverseSurface:o("var(--md-sys-color-inverse-surface, #322F35)"),inverseOnSurface:o("var(--md-sys-color-inverse-on-surface, #F5EFF7)"),inversePrimary:o("var(--md-sys-color-inverse-primary, #D0BCFF)"),outline:o("var(--md-sys-color-outline, #79747E)"),outlineVariant:o("var(--md-sys-color-outline-variant, #CAC4D0)"),shadow:o("var(--md-sys-color-shadow, #000000)"),scrim:o("var(--md-sys-color-scrim, #000000)")},jl={scale:o("var(--md-sys-density-scale, 0)"),size:o("var(--md-sys-density-size, 0.25rem)")},Yl={...jl,calc:e=>o(`calc(max(${e}, ${jl.scale}) * ${jl.size})`)},Kl=`color-mix(in srgb, var(--m3e-elevation-color, ${Nl.shadow}) 20%, transparent)`,Zl=["0px 0px 0px 0px","0px 2px 1px -1px","0px 3px 1px -2px","0px 3px 3px -2px","0px 2px 4px -1px","0px 3px 5px -1px","0px 3px 5px -1px","0px 4px 5px -2px","0px 5px 5px -3px","0px 5px 6px -3px","0px 6px 6px -3px","0px 6px 7px -4px","0px 7px 8px -4px","0px 7px 8px -4px","0px 7px 9px -4px","0px 8px 9px -5px","0px 8px 10px -5px","0px 8px 11px -5px","0px 9px 11px -5px","0px 9px 12px -6px","0px 10px 13px -6px","0px 10px 13px -6px","0px 10px 14px -6px","0px 11px 14px -7px","0px 11px 15px -7px"],Gl=`color-mix(in srgb, var(--m3e-elevation-color, ${Nl.shadow}) 14%, transparent)`,Xl=["0px 0px 0px 0px","0px 1px 1px 0px","0px 2px 2px 0px","0px 3px 4px 0px","0px 4px 5px 0px","0px 5px 8px 0px","0px 6px 10px 0px","0px 7px 10px 1px","0px 8px 10px 1px","0px 9px 12px 1px","0px 10px 14px 1px","0px 11px 15px 1px","0px 12px 17px 2px","0px 13px 19px 2px","0px 14px 21px 2px","0px 15px 22px 2px","0px 16px 24px 2px","0px 17px 26px 2px","0px 18px 28px 2px","0px 19px 29px 2px","0px 20px 31px 3px","0px 21px 33px 3px","0px 22px 35px 3px","0px 23px 36px 3px","0px 24px 38px 3px"],Jl=`color-mix(in srgb, var(--m3e-elevation-color, ${Nl.shadow}) 12%, transparent)`,Ql=["0px 0px 0px 0px","0px 1px 3px 0px","0px 1px 5px 0px","0px 1px 8px 0px","0px 1px 10px 0px","0px 1px 14px 0px","0px 1px 18px 0px","0px 2px 16px 1px","0px 3px 14px 2px","0px 3px 16px 2px","0px 4px 18px 3px","0px 4px 20px 3px","0px 5px 22px 4px","0px 5px 24px 4px","0px 5px 26px 4px","0px 6px 28px 5px","0px 6px 30px 5px","0px 6px 32px 5px","0px 7px 34px 6px","0px 7px 36px 6px","0px 8px 38px 7px","0px 8px 40px 7px","0px 8px 42px 7px","0px 9px 44px 8px","0px 9px 46px 8px"];function ec(e){return`${Kl} ${Zl[e]},${Gl} ${Xl[e]},${Jl} ${Ql[e]}`}const tc={level0:o(`var(--md-sys-elevation-level0, ${ec(0)})`),level1:o(`var(--md-sys-elevation-level1, ${ec(1)})`),level2:o(`var(--md-sys-elevation-level2, ${ec(3)})`),level3:o(`var(--md-sys-elevation-level3, ${ec(6)})`),level4:o(`var(--md-sys-elevation-level4, ${ec(8)})`),level5:o(`var(--md-sys-elevation-level5, ${ec(12)})`)},ac={emphasized:o("var(--md-sys-motion-easing-emphasized, cubic-bezier(0.2, 0.0, 0, 1.0))"),emphasizedDecelerate:o("var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1.0))"),emphasizedAccelerate:o("var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0.0, 0.8, 0.15))"),standard:o("var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0.0, 0, 1.0))"),standardDecelerate:o("var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"),standardAccelerate:o("var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))")},oc={fastSpatial:o("var(--md-sys-motion-spring-fast-spatial, 350ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),defaultSpatial:o("var(--md-sys-motion-spring-default-spatial, 500ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),slowSpatial:o("var(--md-sys-motion-spring-slow-spatial, 750ms cubic-bezier(0.27, 1.06, 0.18, 1.00))"),fastEffects:o("var(--md-sys-motion-spring-fast-effects, 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00))"),defaultEffects:o("var(--md-sys-motion-spring-default-effects, 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00))"),slowEffects:o("var(--md-sys-motion-spring-slow-effects, 200ms cubic-bezier(0.34, 0.88, 0.34, 1.00))")},ic={easing:ac,duration:{short1:o("var(--md-sys-motion-duration-short-1, 50ms)"),short2:o("var(--md-sys-motion-duration-short-2, 100ms)"),short3:o("var(--md-sys-motion-duration-short-3, 150ms)"),short4:o("var(--md-sys-motion-duration-short-4, 200ms)"),medium1:o("var(--md-sys-motion-duration-medium-1, 250ms)"),medium2:o("var(--md-sys-motion-duration-medium-2, 300ms)"),medium3:o("var(--md-sys-motion-duration-medium-3, 350ms)"),medium4:o("var(--md-sys-motion-duration-medium-4, 400ms)"),long1:o("var(--md-sys-motion-duration-long-1, 450ms)"),long2:o("var(--md-sys-motion-duration-long-2, 500ms)"),long3:o("var(--md-sys-motion-duration-long-3, 550ms)"),long4:o("var(--md-sys-motion-duration-long-4, 600ms)"),extraLong1:o("var(--md-sys-motion-duration-extra-long-1, 700ms)"),extraLong2:o("var(--md-sys-motion-duration-extra-long-2, 800ms)"),extraLong3:o("var(--md-sys-motion-duration-extra-long-3, 900ms)"),extraLong4:o("var(--md-sys-motion-duration-extra-long-4, 1000ms)")},spring:oc},rc={width:o("var(--m3e-scrollbar-width, auto)"),thinWidth:o("var(--m3e-scrollbar-thin-width, thin)"),color:o("var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)")},sc={none:o("var(--md-sys-shape-corner-value-none, 0)"),extraSmall:o("var(--md-sys-shape-corner-value-extra-small, 0.25rem)"),small:o("var(--md-sys-shape-corner-value-small, 0.5rem)"),medium:o("var(--md-sys-shape-corner-value-medium, 0.75rem)"),large:o("var(--md-sys-shape-corner-value-large, 1rem)"),largeIncreased:o("var(--md-sys-shape-corner-value-large-increased, 1.25rem)"),extraLarge:o("var(--md-sys-shape-corner-value-extra-large, 1.75rem)"),extraLargeIncreased:o("var(--md-sys-shape-corner-value-extra-large-increased, 2rem)"),extraExtraLarge:o("var(--md-sys-shape-corner-value-extra-extra-large, 3rem)")},nc={color:Nl,elevation:tc,motion:ic,shape:{corner:{full:o("var(--md-sys-shape-corner-full, 624.9375rem)"),extraLargeTop:o(`var(--md-sys-shape-corner-extra-large-top, ${sc.extraLarge} ${sc.extraLarge} ${sc.none} ${sc.none})`),extraLarge:o(`var(--md-sys-shape-corner-extra-large, ${sc.extraLarge})`),extraLargeEnd:o(`${sc.none} ${sc.extraLarge} ${sc.extraLarge} ${sc.none}`),extraLargeStart:o(`${sc.extraLarge} ${sc.none} ${sc.none} ${sc.extraLarge}`),largeTop:o(`var(--md-sys-shape-corner-large-top, ${sc.large} ${sc.large} ${sc.none} ${sc.none})`),largeEnd:o(`var(--md-sys-shape-corner-large-end, ${sc.none} ${sc.large} ${sc.large} ${sc.none})`),largeStart:o(`var(--md-sys-shape-corner-large-end, ${sc.large} ${sc.none} ${sc.none} ${sc.large})`),large:o(`var(--md-sys-shape-corner-large, ${sc.large})`),medium:o(`var(--md-sys-shape-corner-medium, ${sc.medium})`),mediumTop:o(`${sc.medium} ${sc.medium} ${sc.none} ${sc.none}`),mediumEnd:o(`${sc.none} ${sc.medium} ${sc.medium} ${sc.none}`),mediumStart:o(`${sc.medium} ${sc.none} ${sc.none} ${sc.medium}`),small:o(`var(--md-sys-shape-corner-small, ${sc.small})`),smallTop:o(`${sc.small} ${sc.small} ${sc.none} ${sc.none}`),smallEnd:o(`${sc.none} ${sc.small} ${sc.small} ${sc.none}`),smallStart:o(`${sc.small} ${sc.none} ${sc.none} ${sc.small}`),extraSmallTop:o(`var(--md-sys-shape-corner-extra-small-top, ${sc.extraSmall} ${sc.extraSmall} ${sc.none} ${sc.none})`),extraSmall:o(`var(--md-sys-shape-corner-extra-small, ${sc.extraSmall})`),extraSmallEnd:o(`${sc.none} ${sc.extraSmall} ${sc.extraSmall} ${sc.none}`),extraSmallStart:o(`${sc.extraSmall} ${sc.none} ${sc.none} ${sc.extraSmall}`),extraSmallBottom:o(`${sc.none} ${sc.none} ${sc.extraSmall} ${sc.extraSmall}`),none:o(`var(--md-sys-shape-corner-none, ${sc.none})`),largeIncreased:o(`var(--md-sys-shape-corner-large-increased, ${sc.largeIncreased})`),extraLargeIncreased:o(`var(--md-sys-shape-corner-extra-large-increased, ${sc.extraLargeIncreased})`),extraExtraLarge:o(`var(--md-sys-shape-corner-extra-extra-large, ${sc.extraExtraLarge})`),value:sc}},state:{focusStateLayerOpacity:o("var(--md-sys-state-focus-state-layer-opacity, 10%)"),hoverStateLayerOpacity:o("var(--md-sys-state-hover-state-layer-opacity, 8%)"),pressedStateLayerOpacity:o("var(--md-sys-state-pressed-state-layer-opacity, 10%)")},typescale:{standard:{display:{large:{fontSize:o("var(--md-sys-typescale-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-display-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-display-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-display-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-headline-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-headline-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-headline-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-title-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-title-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-medium-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-title-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-body-large-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-body-medium-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-body-small-font-weight, 400)"),lineHeight:o("var(--md-sys-typescale-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-label-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-label-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-label-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-label-small-tracking, 0.03125rem)")}}},emphasized:{display:{large:{fontSize:o("var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-display-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-display-small-tracking, 0)")}},headline:{large:{fontSize:o("var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)"),tracking:o("var(--md-sys-typescale-emphasized-headline-small-tracking, 0)")}},title:{large:{fontSize:o("var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-large-tracking, 0)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-title-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)")}},body:{large:{fontSize:o("var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-large-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-body-small-font-weight, 500)"),lineHeight:o("var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)")}},label:{large:{fontSize:o("var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-large-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)")},medium:{fontSize:o("var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)")},small:{fontSize:o("var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)"),fontWeight:o("var(--md-sys-typescale-emphasized-label-small-font-weight, 700)"),lineHeight:o("var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)"),tracking:o("var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)")}}}},scrollbar:rc,density:Yl};function lc(e){return $l(e,"disabled")}function cc(e,a=!0){class o extends e{constructor(){super(...arguments),this.disabled=!1}update(e){super.update(e),e.has("disabled")&&this.role&&"none"!==this.role&&"presentation"!==this.role&&(this.ariaDisabled=this.disabled?"true":null)}}return t([m({type:Boolean,reflect:a})],o.prototype,"disabled",void 0),o}function dc(e){return $l(e,"disabledInteractive")&&lc(e)}const hc=["click","dblclick","auxclick","keydown","keyup"],mc=["Tab","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Left","Up","Right","Down"],pc=Symbol("_suppressedEventHandler");function uc(e){var a;class o extends e{constructor(){super(...arguments),this[a]=e=>{if(this.disabledInteractive){if(e instanceof KeyboardEvent&&mc.includes(e.key))return;e.stopImmediatePropagation(),e.preventDefault()}},this.disabledInteractive=!1}connectedCallback(){hc.forEach(e=>this.addEventListener(e,this[pc],!0)),super.connectedCallback()}disconnectedCallback(){hc.forEach(e=>this.removeEventListener(e,this[pc],!0)),super.disconnectedCallback()}update(e){super.update(e),(e.has("disabled")||e.has("disabledInteractive"))&&this.role&&"none"!==this.role&&"presentation"!==this.role&&"none"!==this.role&&(this.ariaDisabled=this.disabled||this.disabledInteractive?"true":null)}}return a=pc,t([m({attribute:"disabled-interactive",type:Boolean,reflect:!0})],o.prototype,"disabledInteractive",void 0),o}const vc=Symbol("updateLabels");function bc(e){return $l(e,"labels")&&wl(e)}const fc=Symbol("_eventHandler");function gc(e){var t;class a extends e{constructor(){super(...arguments),this[t]=e=>{e.defaultPrevented||this[vc]()}}get labels(){return this[xl].labels}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this[fc]),this.addEventListener("change",this[fc])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this[fc]),this.removeEventListener("change",this[fc])}update(e){super.update(e),this[vc]()}[(t=fc,vc)](){const e=this.hasAttribute("tabindex"),t=lc(this)&&this.disabled||dc(this)&&this.disabledInteractive,a=ql(this)&&this.touched&&(this.ariaInvalid||_l(this,"-invalid"));for(const o of this.labels??[])o.style.userSelect=e?"none":"",o.style.cursor=!t&&e?"pointer":"",!t&&e?o.style.setProperty("-webkit-tap-highlight-color","rgba(0, 0, 0, 0)"):o.style.removeProperty("-webkit-tap-highlight-color"),o.style.color=t?`color-mix(in srgb, ${nc.color.onSurface} 38%, transparent)`:a?`${nc.color.error}`:""}}return a.formAssociated=!0,a}const yc=Symbol("formValue"),$c=Symbol("defaultValue");function xc(e){return $l(e,"disabled","form","name")&&bc(e)&&wl(e)}const wc=Symbol("_defaultValue"),kc=Symbol("_defaultIndeterminate"),Cc=Symbol("_formDisabled");function Sc(e){var a,o;class i extends e{constructor(){super(...arguments),this[a]=!1,this[o]=!1}get form(){return this[xl].form}get labels(){return this[xl].labels}get[(a=kc,o=Cc,yc)](){return null}get[$c](){return this[wc]}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get disabled(){return super.disabled||this[Cc]}set disabled(e){super.disabled=e}connectedCallback(){super.connectedCallback(),Ml(this)?(this[wc]=this.checked,Pl(this)&&(this[kc]=this.indeterminate)):"value"in this&&(this[wc]=this.value)}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[xl].setFormValue(this[yc])}formDisabledCallback(e){const t=this.disabled;this[Cc]=e,this.disabled!=t&&this.requestUpdate("disabled",t)}formResetCallback(){Ml(this)?(this.checked=!0===this[wc],Pl(this)&&(this.indeterminate=this[kc])):"value"in this&&(this.value=this[$c]),Fl(this)&&this.markAsPristine(),ql(this)&&this.markAsUntouched()}}return i.formAssociated=!0,t([m({noAccessor:!0})],i.prototype,"name",null),t([m({type:Boolean})],i.prototype,"disabled",null),i}const _c=Symbol("validate");function Lc(e){return $l(e,"willValidate","validity","validationMessage","reportValidity","checkValidity","setCustomValidity")&&xc(e)}const zc=Symbol("_updateValidity"),Ec=Symbol("_validityMessage");function Mc(t){var a,o;class i extends t{constructor(){super(...arguments),a.add(this)}get willValidate(){return this[xl].willValidate}get validity(){return this[zc](),this[xl].validity}get validationMessage(){return this[zc](),this[xl].validationMessage}[(a=new WeakSet,_c)](){return this[Ec]?{customError:!0}:void 0}reportValidity(){return ql(this)&&this.markAsTouched(),this[zc](),this[xl].reportValidity()}checkValidity(){return this[zc](),this[xl].checkValidity()}setCustomValidity(e){this[Ec]=e||void 0,this[zc]()}requestUpdate(e,t,a){super.requestUpdate(e,t,a),this[zc]()}firstUpdated(e){super.firstUpdated(e),this[zc]()}[zc](){if(l||!this.isConnected)return;const t=this[_c](),i=t&&Object.keys(t).some(e=>!0===t[e]);let r=t?.customError?this[Ec]:"";t&&!r&&(r=e(this,a,"m",o).call(this,t)),this[xl].setValidity(t,r),this.ariaInvalid=i?"true":null,El(this,"-invalid",!0===i),bc(this)&&this[vc]?.()}}return o=function(e){const t=document.createElement("input");return t.type="text",e.valueMissing&&(t.required=!0,t.value=""),e.typeMismatch&&(t.type="email",t.value="not-an-email"),e.patternMismatch&&(t.pattern="[0-9]{4}",t.value="abcd"),e.tooShort&&(t.minLength=5,t.value="abc"),e.tooLong&&(t.maxLength=2,t.value="abcdef"),e.rangeUnderflow&&(t.type="number",t.min="10",t.value="5"),e.rangeOverflow&&(t.type="number",t.max="5",t.value="10"),e.stepMismatch&&(t.type="number",t.step="2",t.value="3"),e.badInput&&(t.type="number",t.value="abc"),t.setCustomValidity(""),t.checkValidity(),t.validationMessage},i}function Tc(e,...t){return class extends e{dispatchEvent(e){if(t.includes(e.type)){const t=this.getAttribute(`on${e.type}`);t&&new Function("e",`${t};`).call(this,e)}return super.dispatchEvent(e)}}}const Pc=Symbol("_tabindex");function Ic(e){var t;return t=Pc,class extends e{constructor(){super(...arguments),this[t]=0}connectedCallback(){this[Pc]=Number.parseInt(this.getAttribute("tabindex")??"0"),super.connectedCallback()}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||e.has("disabled")||this.setAttribute("tabindex",`${this[Pc]}`)}update(e){if(super.update(e),e.has("disabled"))if(this.disabled||"none"===this.role){const e=this.getAttribute("tabindex");e&&(this[Pc]=Number.parseInt(e)),this.removeAttribute("tabindex")}else this.hasAttribute("tabindex")||this.setAttribute("tabindex",`${this[Pc]}`)}}}function Wc(e){return $l(e,"name","type","value")&&wl(e)}const Dc=Symbol("_clickHandler");function Ac(e){var a;class o extends e{constructor(){super(...arguments),this.type="button",this[a]=async e=>{if(e.defaultPrevented||lc(this)&&this.disabled||dc(this)&&this.disabledInteractive)return;const t=this[xl].form;if(t&&"button"!==this.type&&(await new Promise(e=>setTimeout(e)),!e.defaultPrevented))switch(this.type){case"reset":t.reset();break;case"submit":t.addEventListener("submit",e=>Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this}),{capture:!0,once:!0}),this[xl].setFormValue(this.value),t.requestSubmit()}}}get name(){return this.getAttribute("name")??""}set name(e){e?this.setAttribute("name",e):this.removeAttribute("name")}get value(){return this.getAttribute("value")}set value(e){null!=e?this.setAttribute("value",e):this.removeAttribute("value")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Dc])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Dc])}}return a=Dc,o.formAssociated=!0,t([m()],o.prototype,"name",null),t([m()],o.prototype,"value",null),t([m()],o.prototype,"type",void 0),o}function Hc(e){return $l(e,"htmlFor","control","attach","detach")}const Oc=Symbol("_control"),Fc=Symbol("_firstUpdated");function Bc(e){var a;class o extends e{constructor(){super(...arguments),this[a]=!1,this.htmlFor=null}get control(){return this[Oc]?.deref()??null}connectedCallback(){super.connectedCallback();const e=this[Oc]?.deref();e&&this.attach(e)}disconnectedCallback(){super.disconnectedCallback();const e=this[Oc];e&&(this.detach(),this[Oc]=e)}firstUpdated(e){super.firstUpdated(e),this[Fc]=!0}update(e){if(super.update(e),e.has("htmlFor"))if(this.htmlFor){const e=this.getRootNode();e&&Fn(this.htmlFor,e).then(e=>{e!==this.control&&(this.control&&this.detach(),e instanceof HTMLElement&&this.attach(e))})}else this.control&&this[Fc]&&this.detach()}attach(e){this[Oc]=new WeakRef(e)}detach(){this[Oc]=void 0}}return a=Fc,t([m({attribute:"for"})],o.prototype,"htmlFor",void 0),o}function Vc(t,o=!0){var i,r,s,n,l,c,d;return r=new WeakMap,s=new WeakMap,n=new WeakMap,l=new WeakMap,i=new WeakSet,c=function(e){e.target!==e.currentTarget||lc(this)&&this.disabled||dc(this)&&this.disabledInteractive?a(this,r,!1,"f"):(" "===e.key||o&&"Enter"===e.key)&&a(this,r,!0,"f")},d=function(t){t.target!==t.currentTarget||lc(this)&&this.disabled||dc(this)&&this.disabledInteractive||!e(this,r,"f")?a(this,r,!1,"f"):(a(this,r,!1,"f"),this.dispatchEvent(new MouseEvent("click",{cancelable:!0,bubbles:!0,composed:!0})))},class extends t{constructor(){super(...arguments),i.add(this),r.set(this,!1),s.set(this,t=>e(this,i,"m",c).call(this,t)),n.set(this,t=>e(this,i,"m",d).call(this,t)),l.set(this,()=>a(this,r,!1,"f"))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,s,"f")),this.addEventListener("keyup",e(this,n,"f")),this.addEventListener("focusout",e(this,l,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,s,"f")),this.removeEventListener("keyup",e(this,n,"f")),this.removeEventListener("focusout",e(this,l,"f"))}}}const qc=Symbol("renderPseudoLink");function Rc(e){return $l(e,"download","href","rel","target")}const Uc=Symbol("_clickHandler");function Nc(a){var o,i,r,l,c;class d extends a{constructor(){super(...arguments),o.add(this),this[c]=async e=>{if(dc(this)&&this.disabledInteractive&&(e.preventDefault(),e.stopPropagation()),await new Promise(e=>e()),!e.defaultPrevented&&this.href){e.preventDefault(),e.stopImmediatePropagation();const t=document.createElement("a");t.href=this.href,t.rel=this.rel,t.target=this.target,null!=this.download&&(t.download=this.download),t.addEventListener("click",async()=>{await new Promise(e=>e()),t.remove()}),document.body.appendChild(t),t.click()}},this.href="",this.target="",this.rel=""}get download(){return this.getAttribute("download")}set download(e){const t=this.download;t!==e&&(e?this.setAttribute("download",e):this.removeAttribute("download"),this.requestUpdate("download",t))}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this[Uc]),this.hasAttribute("href")&&"button"===this.role&&(this.role="link")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this[Uc])}[(o=new WeakSet,c=Uc,qc)](){const t=lc(this)&&this.disabled,a=dc(this)&&this.disabledInteractive;return t||a||!this.href?n:s`<a href="${this.href}" target="${Ne(this.target||void 0)}" rel="${Ne(this.rel||void 0)}" download="${Ne(this.download||void 0)}" tabindex="-1" aria-hidden="true" @pointerdown="${e(this,o,"m",i)}" @focus="${e(this,o,"m",r)}" @blur="${e(this,o,"m",l)}"></a>`}}return i=function(e){2!==e.button?(e.preventDefault(),e.stopImmediatePropagation(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))):e.target.removeAttribute("aria-hidden")},r=function(e){e.target.blur(),this.focus()},l=function(e){e.target.setAttribute("aria-hidden","true")},t([m()],d.prototype,"href",void 0),t([m()],d.prototype,"target",void 0),t([m()],d.prototype,"rel",void 0),t([m({reflect:!1})],d.prototype,"download",null),d}function jc(e){return $l(e,"readOnly")}function Yc(e,a=!0){class o extends e{constructor(){super(...arguments),this.readOnly=!1}update(e){super.update(e),e.has("readOnly")&&(this.ariaReadOnly=this.readOnly?"true":null)}}return t([m({attribute:"readonly",type:Boolean,reflect:a})],o.prototype,"readOnly",void 0),o}const Kc=Symbol("_wasConnected");function Zc(e){var t;return t=Kc,class extends e{constructor(){super(...arguments),this[t]=!1}reconnectedCallback(){}connectedCallback(){super.connectedCallback(),this[Kc]&&this.reconnectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this[Kc]=!0}}}function Gc(e){return $l(e,"required","optional")}function Xc(e){class a extends e{constructor(){super(...arguments),this.required=!1}get optional(){return!this.required}update(e){super.update(e),e.has("required")&&(this.ariaRequired=`${this.required}`)}}return t([m({type:Boolean,reflect:!0})],a.prototype,"required",void 0),a}function Jc(e){return Gc(e)&&Lc(e)}function Qc(e){return class extends e{[_c](){const e=super[_c]();if(!e&&this.required){if(Ml(this)&&!this.checked)return{valueMissing:!0};if(!this.value)return{valueMissing:!0}}return e}}}function ed(e,t){return class extends e{connectedCallback(){this.role=this.role||t,super.connectedCallback()}}}function td(e){return class extends e{connectedCallback(){super.connectedCallback(),Ll(this,"-no-animate"),requestAnimationFrame(()=>zl(this,"-no-animate"))}}}function ad(e){return $l(e,"vertical")}function od(e){class a extends e{constructor(){super(...arguments),this.vertical=!1}update(e){super.update(e),e.has("vertical")&&(this.ariaOrientation=this.vertical?"vertical":"horizontal")}}return t([m({type:Boolean,reflect:!0})],a.prototype,"vertical",void 0),a}var id,rd,sd,nd,ld,cd,dd,hd;class md extends r{constructor(){super(...arguments),id.set(this,e=>{e.defaultPrevented||this._onClick(e)})}connectedCallback(){super.connectedCallback(),this.parentElement?.addEventListener("click",e(this,id,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.parentElement?.removeEventListener("click",e(this,id,"f"))}render(){return s`<slot></slot>`}}id=new WeakMap,md.styles=i`:host { display: contents; } ::slotted(.material-icons) { font-size: inherit !important; }`;let pd=class extends(Tc(Sl(r),"opening","opened","closing","closed")){constructor(){super(...arguments),rd.add(this),sd.set(this,!1),nd.set(this,!1),this.open=!1}update(t){if(super.update(t),Ll(this,"-no-animate"),!e(this,sd,"f"))return this.open&&(a(this,nd,!0,"f"),e(this,rd,"m",cd).call(this)),void a(this,sd,!0,"f");this.toggleAttribute("inert",!this.open),this.open?(a(this,nd,!0,"f"),Hn()||(e(this,rd,"m",cd).call(this),El(this,"-overflows",this.clientHeight<this.scrollHeight),e(this,rd,"m",dd).call(this)),zl(this,"-closing"),Ll(this,"-opening"),this.dispatchEvent(new Event("opening")),e(this,rd,"m",dd).call(this),zl(this,"-no-animate"),e(this,rd,"m",hd).call(this),Hn()?(e(this,rd,"m",cd).call(this),zl(this,"-opening"),this.dispatchEvent(new Event("opened"))):this.addEventListener("transitionend",()=>{this.open&&(e(this,rd,"m",cd).call(this),zl(this,"-opening"),this.dispatchEvent(new Event("opened")))},{once:!0})):(zl(this,"-opening"),Ll(this,"-closing"),this.dispatchEvent(new Event("closing")),e(this,rd,"m",hd).call(this),e(this,nd,"f")&&zl(this,"-no-animate"),Hn()?(e(this,rd,"m",dd).call(this),zl(this,"-closing"),this.dispatchEvent(new Event("closed"))):requestAnimationFrame(()=>{e(this,rd,"m",dd).call(this),this.addEventListener("transitionend",()=>{this.open||(zl(this,"-closing"),this.dispatchEvent(new Event("closed")))},{once:!0})}))}render(){return s`<slot @slotchange="${e(this,rd,"m",ld)}"></slot>`}};sd=new WeakMap,nd=new WeakMap,rd=new WeakSet,ld=function(){a(this,sd,!0,"f")},cd=function(){this.style.height="auto"},dd=function(){this.style.height=""},hd=function(){this.style.height=`${this.scrollHeight}px`},pd.styles=i`:host { display: block; height: 0px; overflow: hidden; transition: ${o(`visibility var(--m3e-collapsible-animation-duration, ${nc.motion.duration.medium1})\n ${nc.motion.easing.standard},\n height var(--m3e-collapsible-animation-duration, ${nc.motion.duration.medium1})\n ${nc.motion.easing.standard},\n padding-top var(--m3e-collapsible-animation-duration, ${nc.motion.duration.medium1})\n ${nc.motion.easing.standard},\n padding-bottom var(--m3e-collapsible-animation-duration, ${nc.motion.duration.medium1})\n ${nc.motion.easing.standard}`)}; } :host(:not(:state(-closing)):not([open])) { visibility: hidden; } :host(:not([open])) { min-height: unset !important; padding-top: 0px !important; padding-bottom: 0px !important; } :host(:state(-no-animate)) { transition-duration: 0ms; } :host(:state(-opening)), :host(:state(-closing)) { overflow-y: hidden !important; } :host(:state(-overflows)) { scrollbar-gutter: stable; } ::slotted(*) { --m3e-collapsible-animation-duration: initial; } @media (prefers-reduced-motion) { :host { transition: none; } }`,t([m({type:Boolean,reflect:!0})],pd.prototype,"open",void 0),pd=t([Xn("m3e-collapsible")],pd);const ud=o(`var(--m3e-elevation-lift-duration, ${nc.motion.duration.short4})`),vd=o(`var(--m3e-elevation-lift-easing, ${nc.motion.easing.standard})`),bd=o(`var(--m3e-elevation-settle-duration, ${nc.motion.duration.short3})`),fd=o(`var(--m3e-elevation-settle-easing, ${nc.motion.easing.standardAccelerate})`),gd=o(`var(--m3e-elevation-level, ${nc.elevation.level0})`),yd=o(`var(--m3e-elevation-hover-level, ${nc.elevation.level0})`),$d=o(`var(--m3e-elevation-focus-level, ${nc.elevation.level0})`),xd=o(`var(--m3e-elevation-pressed-level, ${nc.elevation.level0})`);var wd,kd,Cd,Sd,_d,Ld,zd;let Ed=class extends(Bc(ed(r,"none"))){constructor(){super(...arguments),wd.add(this),kd.set(this,new Un(this,{target:null,callback:t=>e(this,wd,"m",_d).call(this,t)})),Cd.set(this,new Rn(this,{target:null,callback:t=>e(this,wd,"m",Ld).call(this,t)})),Sd.set(this,new Zn(this,{target:null,callback:t=>e(this,wd,"m",zd).call(this,t)})),this.disabled=!1,this.level=null}attach(t){super.attach(t),e(this,kd,"f").observe(t),e(this,Cd,"f").observe(t),e(this,Sd,"f").observe(t)}detach(){this.control&&(e(this,kd,"f").unobserve(this.control),e(this,Cd,"f").unobserve(this.control),e(this,Sd,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!1)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this._shadow?.classList.toggle("hover",!1),this._shadow?.classList.toggle("focus",!1),this._shadow?.classList.toggle("pressed",!1),this._shadow?.classList.toggle("resting",!0))}render(){return s`<div class="shadow"></div>`}};kd=new WeakMap,Cd=new WeakMap,Sd=new WeakMap,wd=new WeakSet,_d=function(e){this.disabled||(this._shadow?.classList.toggle("hover",e),this._shadow?.classList.toggle("resting",!e))},Ld=function(e){this.disabled||this._shadow?.classList.toggle("focus",e)},zd=function(e){this.disabled||this._shadow?.classList.toggle("pressed",e)},Ed.styles=i`:host { display: block; } :host, .shadow { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .shadow.resting, .shadow.focus, .shadow.pressed { will-change: box-shadow; transition: ${o(`box-shadow ${bd} ${fd};`)}; } .shadow.hover { will-change: box-shadow; transition: ${o(`box-shadow ${ud} ${vd};`)}; } .shadow { box-shadow: ${gd}; } .shadow.focus { box-shadow: ${$d}; } .shadow.hover { box-shadow: ${yd}; } .shadow.pressed { box-shadow: ${xd}; } :host([level="0"]) .shadow { --m3e-elevation-level: ${nc.elevation.level0}; --m3e-elevation-hover-level: ${nc.elevation.level1}; } :host([level="1"]) .shadow { --m3e-elevation-level: ${nc.elevation.level1}; --m3e-elevation-hover-level: ${nc.elevation.level2}; } :host([level="2"]) .shadow { --m3e-elevation-level: ${nc.elevation.level2}; --m3e-elevation-hover-level: ${nc.elevation.level3}; } :host([level="3"]) .shadow { --m3e-elevation-level: ${nc.elevation.level3}; --m3e-elevation-hover-level: ${nc.elevation.level4}; } :host([level="4"]) .shadow { --m3e-elevation-level: ${nc.elevation.level4}; --m3e-elevation-hover-level: ${nc.elevation.level5}; } :host([level="5"]) .shadow { --m3e-elevation-level: ${nc.elevation.level5}; --m3e-elevation-hover-level: ${gd}; } :host([level]) .shadow { --m3e-elevation-focus-level: ${gd}; --m3e-elevation-pressed-level: ${gd}; } @media (prefers-reduced-motion) { .shadow.resting, .shadow.pressed, .shadow.focus, .shadow.hover { transition: none; } } @media (forced-colors: active) { .shadow { display: none; } }`,t([h(".shadow")],Ed.prototype,"_shadow",void 0),t([m({type:Boolean,reflect:!0})],Ed.prototype,"disabled",void 0),t([m({type:Number,reflect:!0})],Ed.prototype,"level",void 0),Ed=t([Xn("m3e-elevation")],Ed);const Md=o(`var(--m3e-focus-ring-color, ${nc.color.secondary})`),Td=o(`var(--m3e-focus-ring-duration, ${nc.motion.duration.long2})`),Pd=o("var(--m3e-focus-ring-thickness, 3px)"),Id=o("var(--m3e-focus-ring-outward-offset, 2px)"),Wd=o("var(--m3e-focus-ring-inward-offset, 0px)"),Dd=o("var(--m3e-focus-ring-visibility, visible)"),Ad=o("var(--m3e-focus-ring-growth-factor, 2)");var Hd,Od,Fd;let Bd=class extends(Bc(ed(r,"none"))){constructor(){super(...arguments),Hd.add(this),Od.set(this,new Rn(this,{target:null,callback:(t,a)=>e(this,Hd,"m",Fd).call(this,a)})),this.inward=!1,this.disabled=!1}show(){this._outline?.classList.toggle("visible",!0)}hide(){this._outline?.classList.toggle("visible",!1)}attach(t){super.attach(t),e(this,Od,"f").observe(t)}detach(){this.control&&e(this,Od,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide()}render(){return s`<div class="outline"></div>`}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};Od=new WeakMap,Hd=new WeakSet,Fd=function(e){this.disabled||(e?this.show():this.hide())},Bd.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; outline: none; } .outline { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; z-index: 1; outline-color: ${Md}; outline-width: ${Pd}; visibility: ${Dd}; } .outline.visible { outline-style: solid; } :host(:not([inward])) .outline { outline-offset: ${Id}; } :host([inward]) .outline { outline-offset: calc(${Wd} - ${Pd}); } :host(:not([inward])) .outline.visible { animation: grow-shrink ${Td}; } :host([inward]) .outline.visible { animation: shrink-grow ${Td}; } @keyframes grow-shrink { 50% { outline-width: calc(${Pd} * ${Ad}); } } @keyframes shrink-grow { 50% { outline-offset: calc( ${Wd} - calc(${Pd} * ${Ad}) ); outline-width: calc(${Pd} * ${Ad}); } } @media (prefers-reduced-motion) { :host(:not([inward])) .outline.visible, :host([inward]) .outline.visible { animation: none; } } @media (forced-colors: active) { .outline { outline-color: Highlight; } }`,t([h(".outline")],Bd.prototype,"_outline",void 0),t([m({type:Boolean,reflect:!0})],Bd.prototype,"inward",void 0),t([m({type:Boolean,reflect:!0})],Bd.prototype,"disabled",void 0),Bd=t([Xn("m3e-focus-ring")],Bd);let Vd=class extends(Il(cc(ed(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return this.indeterminate?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path Required d="M240-440v-80h480v80H240Z"/></svg>`:this.checked?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`:n}};Vd.styles=i`:host { display: inline-block; vertical-align: middle; width: var(--m3e-checkbox-icon-size, 1.125rem); height: var(--m3e-checkbox-icon-size, 1.125rem); border-radius: var(--m3e-checkbox-container-shape, 2px); box-sizing: border-box; flex: none; } :host(:not([checked]):not([indeterminate])) { border-width: var(--m3e-checkbox-unselected-outline-thickness, 2px); border-style: solid; } :host(:not([disabled])[checked]), :host(:not([disabled])[indeterminate]) { background-color: var(--m3e-checkbox-selected-container-color, ${nc.color.primary}); color: var(--m3e-checkbox-selected-icon-color, ${nc.color.onPrimary}); } :host(:not([disabled]):not([checked]):not([indeterminate])) { border-color: var(--m3e-checkbox-unselected-outline-color, ${nc.color.onSurfaceVariant}); } :host([disabled]:not([checked]):not([indeterminate])) { border-color: color-mix( in srgb, var(--m3e-checkbox-unselected-disabled-outline-color, ${nc.color.onSurface}) var(--m3e-checkbox-unselected-disabled-outline-opacity, 38%), transparent ); } :host([disabled][checked]), :host([disabled][indeterminate]) { background-color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-container-color, ${nc.color.onSurface}) var(--m3e-checkbox-selected-disabled-container-opacity, 38%), transparent ); color: color-mix( in srgb, var(--m3e-checkbox-selected-disabled-icon-color, ${nc.color.surface}) var(--m3e-checkbox-selected-disabled-icon-opacity, 100%), transparent ); }`,Vd=t([Xn("m3e-pseudo-checkbox")],Vd);let qd=class extends(Tl(cc(ed(r,"none")))){connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<svg class="icon" viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`}};qd.styles=i`:host { display: inline-block; vertical-align: middle; box-sizing: border-box; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); flex: none; } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) { color: var(--m3e-radio-unselected-icon-color, ${nc.color.onSurfaceVariant}); } :host([checked]) { color: var(--m3e-radio-selected-icon-color, ${nc.color.primary}); } :host([disabled]) { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${nc.color.onSurface}) 38%, transparent); }`,qd=t([Xn("m3e-pseudo-radio")],qd);const Rd=o(`var(--m3e-ripple-color, ${nc.color.onSurface})`),Ud=o(`var(--m3e-ripple-opacity, ${nc.state.pressedStateLayerOpacity})`),Nd=o(`var(--m3e-ripple-enter-duration, ${nc.motion.duration.long4})`),jd=o(`var(--m3e-ripple-exit-duration, ${nc.motion.duration.short2})`),Yd=o("var(--m3e-ripple-scale-factor, 2.5)");var Kd,Zd,Gd,Xd,Jd,Qd;let eh=class extends(Bc(ed(r,"none"))){constructor(){super(...arguments),Kd.add(this),Zd.set(this,null),Gd.set(this,new Zn(this,{target:null,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,{x:a,y:o})=>e(this,Kd,"m",Qd).call(this,t,a,o)})),this.disabled=!1,this.centered=!1,this.unbounded=!1,this.radius=null}get visible(){return null!==e(this,Zd,"f")}show(t,o,i=!1){e(this,Kd,"m",Xd).call(this);const r=this.getBoundingClientRect();this.centered&&(t=r.left+r.width/2,o=r.top+r.height/2);let s=this.radius;if(!s||isNaN(s)){const e=Math.max(Math.abs(t-r.left),Math.abs(t-r.right)),a=Math.max(Math.abs(o-r.top),Math.abs(o-r.bottom));s=Math.sqrt(e*e+a*a)}const n=t-r.left,l=o-r.top;a(this,Zd,document.createElement("div"),"f"),e(this,Zd,"f").classList.add("ripple"),i&&e(this,Zd,"f").classList.add("persistent"),e(this,Zd,"f").style.left=n-s+"px",e(this,Zd,"f").style.top=l-s+"px",e(this,Zd,"f").style.width=2*s+"px",e(this,Zd,"f").style.height=2*s+"px",e(this,Zd,"f").addEventListener("animationend",()=>e(this,Kd,"m",Jd).call(this,i),{once:!0}),e(this,Zd,"f").addEventListener("transitionend",()=>e(this,Kd,"m",Xd).call(this),{once:!0}),this.shadowRoot?.appendChild(e(this,Zd,"f"))}hide(){e(this,Zd,"f")?.classList.add("exit")}attach(t){super.attach(t),e(this,Gd,"f").observe(t)}detach(){this.control&&e(this,Gd,"f").unobserve(this.control),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),e(this,Kd,"m",Xd).call(this)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&this.hide()}};var th;Zd=new WeakMap,Gd=new WeakMap,Kd=new WeakSet,Xd=function(){e(this,Zd,"f")?.remove(),a(this,Zd,null,"f")},Jd=function(t){t?e(this,Zd,"f")?.classList.add("pressed"):this.hide()},Qd=function(e,t,a){this.disabled||(e?this.show(t,a,!0):this.hide())},eh.styles=i`:host { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } :host(:not([unbounded])) { overflow: hidden; } .ripple { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; transform: scale(0); border-radius: ${nc.shape.corner.full}; background-color: color-mix(in srgb, ${Rd} ${Ud}, transparent); will-change: background-color, opacity; animation: ripple ${Nd} linear; } .ripple.persistent.pressed { transform: scale(${Yd}); } .ripple.exit { transition: opacity ${jd} cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; } @keyframes ripple { to { transform: scale(${Yd}); } } @media (prefers-reduced-motion) { .ripple { transform: scale(${Yd}); animation-duration: 90ms; } .ripple.exit { transition-duration: 10ms; } } @media (forced-colors: active) { .ripple { display: none; } }`,t([m({type:Boolean,reflect:!0})],eh.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],eh.prototype,"centered",void 0),t([m({type:Boolean,reflect:!0})],eh.prototype,"unbounded",void 0),t([m({type:Number})],eh.prototype,"radius",void 0),eh=t([Xn("m3e-ripple")],eh);let ah=class extends(Sl(r)){constructor(){super(...arguments),th.set(this,()=>this._updateScroll()),this.dividers="above-below",this.thin=!1}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("scroll",e(this,th,"f"))}update(t){super.update(t),t.has("dividers")&&(this.removeEventListener("scroll",e(this,th,"f")),"none"!==this.dividers&&this.addEventListener("scroll",e(this,th,"f"),{passive:!0}))}render(){return s`<slot @slotchange="${this._updateScroll}"></slot>`}_updateScroll(){const e=("above"===this.dividers||"above-below"===this.dividers)&&this.scrollTop>0,t=("below"===this.dividers||"above-below"===this.dividers)&&this.scrollHeight-this.scrollTop-this.clientHeight>1;El(this,"-above",e),El(this,"-below",t)}};var oh,ih,rh,sh;th=new WeakMap,ah.styles=i`:host { display: block; overflow-y: auto; position: relative; box-sizing: border-box; scrollbar-color: ${nc.scrollbar.color}; border-top: var(--m3e-divider-thickness, 1px) solid transparent; border-bottom: var(--m3e-divider-thickness, 1px) solid transparent; outline-color: ${Md}; outline-width: ${Pd}; outline-offset: ${Id}; } :host([thin]) { scrollbar-width: ${nc.scrollbar.thinWidth}; } :host(:not([thin])) { scrollbar-width: ${nc.scrollbar.width}; } :host(:not(:focus-visible):state(-above)) { border-top-color: var(--m3e-divider-color, ${nc.color.outlineVariant}); } :host(:not(:focus-visible):state(-below)) { border-bottom-color: var(--m3e-divider-color, ${nc.color.outlineVariant}); } :host(:focus-visible) { outline-style: solid; animation: grow-shrink ${Td}; } @keyframes grow-shrink { 50% { outline-width: calc(${Pd} * ${Ad}); } } @media (forced-colors: active) { :host { border-top: var(--m3e-divider-thickness, 1px) solid Canvas; border-bottom: var(--m3e-divider-thickness, 1px) solid Canvas; } :host(:not(:focus-visible):state(-above)) { border-top-color: GrayText; } :host(:not(:focus-visible):state(-below)) { border-bottom-color: GrayText; } } @media (prefers-reduced-motion) { :host(:focus-visible) { animation: none; } }`,t([m()],ah.prototype,"dividers",void 0),t([m({type:Boolean,reflect:!0})],ah.prototype,"thin",void 0),t([Jn(40)],ah.prototype,"_updateScroll",null),ah=t([Xn("m3e-scroll-container")],ah);let nh=class extends(Sl(r)){constructor(){super(...arguments),oh.add(this),ih.set(this,new Array),this.selectedIndex=null}connectedCallback(){super.connectedCallback(),Ll(this,"-no-animate")}update(t){super.update(t),t.has("selectedIndex")&&(null===this.selectedIndex&&Ll(this,"-no-animate"),e(this,oh,"m",sh).call(this),null!==this.selectedIndex&&_l(this,"-no-animate")&&requestAnimationFrame(()=>{null!==this.selectedIndex&&zl(this,"-no-animate")}))}render(){return s`<slot @slotchange="${e(this,oh,"m",rh)}"></slot>`}};ih=new WeakMap,oh=new WeakSet,rh=function(t){const o=[...t.target.assignedElements({flatten:!0})];for(const t of e(this,ih,"f").filter(e=>!o.includes(e)))t.classList.remove("-before"),t.classList.remove("-after"),t.removeAttribute("inert");a(this,ih,o,"f"),e(this,oh,"m",sh).call(this)},sh=function(){const t=this.selectedIndex??e(this,ih,"f").length;for(let a=0;a<e(this,ih,"f").length;a++){const o=e(this,ih,"f")[a];o.classList.toggle("-before",a<t),o.classList.toggle("-after",a>t),o.toggleAttribute("inert",a!==t)}},nh.styles=i`:host { display: flex; position: relative; overflow: hidden; } ::slotted(*) { width: 100%; top: 0; transition: ${o(`inset-inline-start var(--m3e-slide-animation-duration, ${nc.motion.duration.long2}) ${nc.motion.easing.standard},\n visibility var(--m3e-slide-animation-duration, ${nc.motion.duration.long2}) ${nc.motion.easing.standard} allow-discrete`)}; } ::slotted(.-before), ::slotted(.-after) { visibility: hidden; position: absolute; } ::slotted(.-before) { inset-inline-start: -100%; } ::slotted(.-after) { inset-inline-start: 100%; } ::slotted(:not(.-before):not(.-after)) { position: relative; inset-inline-start: 0; } :host(:state(-no-animate)) ::slotted(*) { transition: none; } @media (prefers-reduced-motion) { ::slotted(*) { transition: none; } }`,t([m({attribute:"selected-index",type:Number,reflect:!0})],nh.prototype,"selectedIndex",void 0),nh=t([Xn("m3e-slide")],nh);const lh=o(`var(--m3e-state-layer-hover-color, ${nc.color.onSurface})`),ch=o(`var(--m3e-state-layer-hover-opacity, ${nc.state.hoverStateLayerOpacity})`),dh=o(`var(--m3e-state-layer-focus-color, ${nc.color.onSurface})`),hh=o(`var(--m3e-state-layer-focus-opacity, ${nc.state.focusStateLayerOpacity})`),mh=o(`var(--m3e-state-layer-duration, ${nc.motion.duration.medium1})`),ph=o(`var(--m3e-state-layer-easing, ${nc.motion.easing.standard})`);var uh,vh,bh,fh,gh;let yh=class extends(Bc(ed(r,"none"))){constructor(){super(...arguments),uh.add(this),vh.set(this,new Un(this,{target:null,callback:t=>e(this,uh,"m",fh).call(this,t)})),bh.set(this,new Rn(this,{target:null,callback:(t,a)=>e(this,uh,"m",gh).call(this,a)})),this.disabled=!1,this.disableHover=!1}show(e){this._layer?.classList.toggle(e,!0)}hide(e){this._layer?.classList.toggle(e,!1)}attach(t){super.attach(t),e(this,vh,"f").observe(t),e(this,bh,"f").observe(t)}detach(){this.control&&(e(this,vh,"f").unobserve(this.control),e(this,bh,"f").unobserve(this.control)),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.hide("hover"),this.hide("focused")}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.hide("hover"),this.hide("focused")),e.has("disableHover")&&this.disableHover&&this.hide("hover")}render(){return s`<div class="layer"></div>`}};var $h,xh,wh,kh,Ch,Sh,_h,Lh;vh=new WeakMap,bh=new WeakMap,uh=new WeakSet,fh=function(e){this.disabled||this.disableHover||(e?this.show("hover"):this.hide("hover"))},gh=function(e){this.disabled||(e?this.show("focused"):this.hide("focused"))},yh.styles=i`:host { display: block; } :host, .layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; border-radius: inherit; } .layer { will-change: background-color; transition: ${o(`background-color ${mh} ${ph}`)}; } .layer.focused { background-color: color-mix(in srgb, ${dh} ${hh}, transparent); } .layer.hover { background-color: color-mix(in srgb, ${lh} ${ch}, transparent); } @media (prefers-reduced-motion) { .layer { transition: none; } } @media (forced-colors: active) { .layer { display: none; } }`,t([h(".layer")],yh.prototype,"_layer",void 0),t([m({type:Boolean,reflect:!0})],yh.prototype,"disabled",void 0),t([m({attribute:"disable-hover",type:Boolean,reflect:!0})],yh.prototype,"disableHover",void 0),yh=t([Xn("m3e-state-layer")],yh);let zh=Lh=class extends r{constructor(){super(),$h.add(this),xh.set(this,"m3e-text-highlight-"+Lh.__nextId++),wh.set(this,new Array),kh.set(this,null),this.disabled=!1,this.term="",this.caseSensitive=!1,this.mode="contains",this.isSupported&&(a(this,kh,new CSSStyleSheet,"f"),e(this,kh,"f").replaceSync(i`::highlight(${o(e(this,xh,"f"))}) { background-color: var(--m3e-text-highlight-container-color, ${nc.color.secondaryContainer}); color: var(--m3e-text-highlight-color, ${nc.color.onSecondaryContainer}); text-decoration: var(--m3e-text-highlight-decoration); text-shadow: var(--m3e-text-highlight-shadow); }`.toString()))}get isSupported(){return!(l||!CSS.highlights)}get ranges(){return e(this,wh,"f")}firstUpdated(t){super.firstUpdated(t),this.shadowRoot&&e(this,kh,"f")&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,kh,"f"))&&this.shadowRoot.adoptedStyleSheets.push(e(this,kh,"f"))}updated(t){super.updated(t),(t.has("term")||t.has("caseSensitive")||t.has("disabled"))&&e(this,$h,"m",_h).call(this)}render(){return s`<slot @slotchange="${e(this,$h,"m",_h)}"></slot>`}};xh=new WeakMap,wh=new WeakMap,kh=new WeakMap,$h=new WeakSet,Ch=function(e){return!/^\s*$/.test(e.data)},Sh=function t(a,o){a instanceof HTMLSlotElement?a.assignedNodes({flatten:!0}).forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,$h,"m",Ch).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,$h,"m",t).call(this,a,o)}}):a.childNodes.forEach(a=>{switch(a.nodeType){case Node.TEXT_NODE:e(this,$h,"m",Ch).call(this,a)&&o.push(a);break;case Node.ELEMENT_NODE:e(this,$h,"m",t).call(this,a,o)}})},_h=function(){if(!this.isSupported||!this.isConnected)return;if(CSS.highlights.delete(e(this,xh,"f")),e(this,wh,"f").length=0,this.disabled)return;if(!this.term)return void this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,wh,"f")],bubbles:!1,composed:!1}));const t=new Array;if(e(this,$h,"m",Sh).call(this,this,t),t.length>0){const o=this.caseSensitive?this.term:this.term.toLowerCase();switch(this.mode){case"starts-with":{const a=t[0];if(((this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"").startsWith(o)){const t=new Range;t.setStart(a,0),t.setEnd(a,o.length),e(this,wh,"f").push(t)}}break;case"ends-with":{const a=t[t.length-1],i=(this.caseSensitive?a.textContent:a.textContent?.toLowerCase())??"";if(i.endsWith(o)){const t=i.length-o.length,r=t+o.length,s=new Range;s.setStart(a,t),s.setEnd(a,r),e(this,wh,"f").push(s)}}break;case"contains":a(this,wh,t.map(e=>({el:e,text:(this.caseSensitive?e.textContent:e.textContent?.toLowerCase())??""})).map(({el:e,text:t})=>{const a=new Array;let i=0;for(;i<t.length;){const e=t.indexOf(o,i);if(-1===e)break;a.push(e),i=e+o.length}return a.map(t=>{const a=new Range;return a.setStart(e,t),a.setEnd(e,t+o.length),a})}).flat(),"f")}e(this,wh,"f").length>0&&CSS.highlights.set(e(this,xh,"f"),new Highlight(...e(this,wh,"f")))}this.dispatchEvent(new CustomEvent("highlight",{detail:[...e(this,wh,"f")],bubbles:!1,composed:!1}))},zh.styles=i`:host { display: contents; }`,zh.__nextId=0,t([m({type:Boolean,reflect:!0})],zh.prototype,"disabled",void 0),t([m()],zh.prototype,"term",void 0),t([m({attribute:"case-sensitive",type:Boolean})],zh.prototype,"caseSensitive",void 0),t([m()],zh.prototype,"mode",void 0),zh=Lh=t([Xn("m3e-text-highlight")],zh);let Eh=class extends r{render(){return s`<span class="base"><slot></slot></span>`}};var Mh,Th,Ph,Ih,Wh,Dh,Ah,Hh,Oh,Fh,Bh,Vh,qh,Rh,Uh,Nh,jh,Yh,Kh,Zh,Gh,Xh,Jh;Eh.styles=i`:host { flex: 1 1 auto; display: inline-flex; align-items: center; flex-wrap: nowrap; min-width: 0; } .base { flex: 1 1 auto; display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }`,Eh=t([Xn("m3e-text-overflow")],Eh);let Qh=Jh=class extends(T(M(P(f(r,"dialog"))))){constructor(){super(...arguments),Mh.add(this),Th.set(this,void 0),Ph.set(this,void 0),Ih.set(this,void 0),Wh.set(this,void 0),Dh.set(this,new W(this)),Ah.set(this,new D(this)),Hh.set(this,t=>e(this,Mh,"m",Vh).call(this,t)),Oh.set(this,t=>e(this,Mh,"m",jh).call(this,t)),Fh.set(this,t=>{"closed"===t.newState&&(e(this,Mh,"m",Xh).call(this),e(this,Wh,"f")?.call(this),a(this,Wh,void 0,"f"))}),this.variant="docked",this.startView="month",this.date=null,this.startAt=null,this.minDate=null,this.maxDate=null,this.rangeStart=null,this.rangeEnd=null,this.blackoutDates=null,this.specialDates=null,this.previousMonthLabel="Previous month",this.previousYearLabel="Previous year",this.previousMultiYearLabel="Previous 24 years",this.nextMonthLabel="Next month",this.nextYearLabel="Next year",this.nextMultiYearLabel="Next 24 years",this.clearable=!1,this.clearLabel="Clear",this.confirmLabel="OK",this.dismissLabel="Cancel",this.label="Select date"}get isOpen(){return void 0!==e(this,Ph,"f")}get currentVariant(){return this._variant??("modal"!==this.variant?"docked":"modal")}connectedCallback(){super.connectedCallback(),this.setAttribute("popover","manual"),this.addEventListener("toggle",e(this,Fh,"f")),document.addEventListener("click",e(this,Hh,"f")),document.addEventListener("keydown",e(this,Oh,"f"))}disconnectedCallback(){super.disconnectedCallback(),this._variant=void 0,e(this,Th,"f")?.call(this),e(this,Mh,"m",Gh).call(this),C(this,"-docked"),C(this,"-modal"),this.removeEventListener("toggle",e(this,Fh,"f")),document.removeEventListener("click",e(this,Hh,"f")),document.removeEventListener("keydown",e(this,Oh,"f"))}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.variant&&e(this,Mh,"m",Yh).call(this)}async show(t,o){e(this,Ph,"f")&&e(this,Ph,"f")!==t&&this.hide(),"modal"===this.currentVariant&&(e(this,Dh,"f").lock(),e(this,Ah,"f").lock());const i=this._calendar;i.date=this.date,i.rangeStart=this.rangeStart,i.rangeEnd=this.rangeEnd,i.requestUpdate("startView"),i.isUpdatePending&&await i.updateComplete,a(this,Ph,t,"f"),e(this,Ph,"f").ariaExpanded="true",a(this,Ih,o,"f"),await e(this,Mh,"m",Zh).call(this),this.showPopover(),await this._calendar.focusActiveCell()}hide(t=!1){"modal"===this.currentVariant&&(e(this,Dh,"f").unlock(),e(this,Ah,"f").unlock()),this.hidePopover(),e(this,Ph,"f")&&(e(this,Ph,"f").ariaExpanded="false",t&&e(this,Ph,"f").focus(),a(this,Ph,void 0,"f"))}async toggle(t,a){e(this,Ph,"f")?this.hide():await this.show(t,a)}render(){return s`<m3e-focus-trap>${e(this,Mh,"m",Bh).call(this)}<m3e-calendar class="calendar" start-view="${this.startView}" start-at="${Ne(this.startAt?.toISOString())}" min-date="${Ne(this.minDate?.toISOString())}" max-date="${Ne(this.maxDate?.toISOString())}" @change="${e(this,Mh,"m",qh)}"></m3e-calendar><div class="actions">${this.clearable?s`<m3e-button @click="${e(this,Mh,"m",Rh)}">${this.clearLabel}</m3e-button>`:n}<div class="spacer" aria-hidden="true"></div><m3e-button @click="${e(this,Mh,"m",Uh)}">${this.dismissLabel}</m3e-button><m3e-button @click="${e(this,Mh,"m",Nh)}">${this.confirmLabel}</m3e-button></div></m3e-focus-trap>`}willUpdate(t){super.willUpdate(t),["date","rangeStart","rangeEnd"].some(e=>t.has(e))&&e(this,Mh,"m",Xh).call(this),t.has("variant")&&(e(this,Th,"f")?.call(this),"auto"===this.variant?e(this,Mh,"m",Yh).call(this):(this._variant=void 0,e(this,Mh,"m",Kh).call(this)))}updated(e){super.updated(e),(e.has("specialDates")||e.has("blackoutDates"))&&(this._calendar.specialDates=this.specialDates,this._calendar.blackoutDates=this.blackoutDates)}};Th=new WeakMap,Ph=new WeakMap,Ih=new WeakMap,Wh=new WeakMap,Dh=new WeakMap,Ah=new WeakMap,Hh=new WeakMap,Oh=new WeakMap,Fh=new WeakMap,Mh=new WeakSet,Bh=function(){if("docked"===this.currentVariant)return n;const e=this._date??this.date;return s`<div class="supporting-text">${this.label}</div><div class="headline">${e?new Intl.DateTimeFormat(navigator.language,{weekday:"short",month:"short",day:"numeric"}).format(e):"––"}</div><div class="divider"></div>`},Vh=function(t){t.composedPath().some(t=>t instanceof Jh||t===e(this,Ph,"f")||t===e(this,Ih,"f"))||this.hide()},qh=function(){this._date=this._calendar.date,this._rangeStart=this._calendar.rangeStart,this._rangeEnd=this._calendar.rangeEnd},Rh=function(){this.date=null,this.rangeStart=null,this.rangeEnd=null,this.hide(!0),this.dispatchEvent(new Event("change",{bubbles:!0}))},Uh=function(){this.hide(!0)},Nh=function(){this.date=this._date??this.date,this.rangeStart=void 0===this._rangeStart?this.rangeStart:this._rangeStart,this.rangeEnd=void 0===this._rangeEnd?this.rangeEnd:this._rangeEnd,this.hide(!0),this.dispatchEvent(new Event("change",{bubbles:!0}))},jh=function(e){!this.isOpen||"modal"!==this.currentVariant||"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.hide(!0))},Yh=function(){a(this,Th,Xe.observe([Je.XSmall,Je.Small],t=>{this._variant=t.get(Je.XSmall)||t.get(Je.Small)?"modal":"docked",e(this,Mh,"m",Kh).call(this)}),"f")},Kh=function(){switch(this.currentVariant){case"docked":this.ariaModal=null,C(this,"-modal"),z(this,"-docked"),e(this,Dh,"f").unlock(),e(this,Ah,"f").unlock();break;case"modal":this.ariaModal="true",C(this,"-docked"),z(this,"-modal"),this.isOpen&&(e(this,Dh,"f").lock(),e(this,Ah,"f").lock())}this.isOpen&&e(this,Mh,"m",Zh).call(this)},Zh=async function(){"docked"===this.currentVariant&&e(this,Ph,"f")?(e(this,Wh,"f")?.call(this),a(this,Wh,await qe(this,e(this,Ih,"f")??e(this,Ph,"f"),{position:"bottom-start",inline:!0,flip:!0,shift:"both"},(e,t,a)=>{k(this,"-top",a.includes("top")),k(this,"-bottom",a.includes("bottom")),"rtl"===Ve.current?(this.style.right=window.innerWidth-e-this.clientWidth+"px",this.style.left=""):(this.style.left=`${e}px`,this.style.right=""),this.style.top=`${t}px`}),"f")):e(this,Mh,"m",Gh).call(this)},Gh=function(){e(this,Wh,"f")?.call(this),a(this,Wh,void 0,"f"),this.style.left="",this.style.right="",this.style.top=""},Xh=function(){this._date=this._rangeStart=this._rangeEnd=void 0},Qh.styles=i`:host { flex-direction: column; margin: unset; border: unset; padding-block: var(--m3e-datepicker-container-padding-block, 0.75rem); padding-inline: var(--m3e-datepicker-container-padding-inline, 0.25rem); background-color: var(--m3e-datepicker-container-color, ${v.color.surfaceContainer}); box-shadow: var(--m3e-datepicker-container-elevation, ${v.elevation.level3}); opacity: 0; display: none; } .calendar { --m3e-calendar-container-color: transparent; --m3e-calendar-container-elevation: ${v.elevation.level0}; --m3e-calendar-container-shape: ${v.shape.corner.none}; } .headline { font-size: var( --m3e-datepicker-modal-headline-font-size, ${v.typescale.standard.headline.large.fontSize} ); font-weight: var( --m3e-datepicker-modal-headline-font-weight, ${v.typescale.standard.headline.large.fontWeight} ); line-height: var( --m3e-datepicker-modal-headline-line-height, ${v.typescale.standard.headline.large.lineHeight} ); letter-spacing: var( --m3e-datepicker-modal-headline-tracking, ${v.typescale.standard.headline.large.tracking} ); margin-block-start: 2.25rem; margin-block-end: 0.75rem; margin-inline: 1.5rem; } .supporting-text { font-size: var( --m3e-datepicker-modal-supporting-text-font-size, ${v.typescale.standard.label.large.fontSize} ); font-weight: var( --m3e-datepicker-modal-supporting-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-datepicker-modal-supporting-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-datepicker-modal-supporting-text-tracking, ${v.typescale.standard.label.large.tracking} ); margin-block-start: 1rem; margin-inline: 1.5rem; } .divider { height: var(--m3e-divider-thickness, 1px); width: 100%; position: relative; } .divider::before { content: ""; box-sizing: border-box; position: absolute; border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); height: inherit; left: -0.25rem; right: -0.25rem; } .actions { display: flex; align-items: center; column-gap: 0.5rem; padding-inline: var(--m3e-datepicker-actions-padding-inline, 0.5rem); } .spacer { flex: 1 1 auto; } :host(:state(-docked)) { position: absolute; background-color: var(--m3e-datepicker-docked-container-color, ${v.color.surfaceContainer}); border-radius: var(--m3e-datepicker-docked-container-shape, ${v.shape.corner.large}); } :host(:state(-modal)) { position: fixed; inset: 0; margin: auto; transform-origin: top; background-color: var(--m3e-datepicker-modal-container-color, ${v.color.surfaceContainerHigh}); border-radius: var(--m3e-datepicker-modal-container-shape, ${v.shape.corner.extraLarge}); } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.duration.short2} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete`)}; } :host { transform: scaleY(0.8); } :host(:popover-open) { transform: scaleY(1); display: inline-flex; opacity: 1; } :host(:state(-docked))::backdrop { background-color: transparent; } :host(:state(-modal))::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); margin-inline-end: -20px; } :host(:state(-modal):not(:popover-open))::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-modal):popover-open)::backdrop { background-color: color-mix( in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) var(--m3e-dialog-scrim-opacity, 32%), transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } @starting-style { :host(:popover-open) { transform: scaleY(0.8); } :host(:state(-modal):popover-open)::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; border: 1px solid CanvasText; } }`,t([u()],Qh.prototype,"_date",void 0),t([u()],Qh.prototype,"_rangeStart",void 0),t([u()],Qh.prototype,"_rangeEnd",void 0),t([h("m3e-calendar")],Qh.prototype,"_calendar",void 0),t([u()],Qh.prototype,"_variant",void 0),t([m()],Qh.prototype,"variant",void 0),t([m({attribute:"start-view"})],Qh.prototype,"startView",void 0),t([m({converter:J})],Qh.prototype,"date",void 0),t([m({attribute:"start-at",converter:J})],Qh.prototype,"startAt",void 0),t([m({attribute:"min-date",converter:J})],Qh.prototype,"minDate",void 0),t([m({attribute:"max-date",converter:J})],Qh.prototype,"maxDate",void 0),t([m({attribute:"range-start",converter:J})],Qh.prototype,"rangeStart",void 0),t([m({attribute:"range-end",converter:J})],Qh.prototype,"rangeEnd",void 0),t([m({attribute:!1})],Qh.prototype,"blackoutDates",void 0),t([m({attribute:!1})],Qh.prototype,"specialDates",void 0),t([m({attribute:"previous-month-label"})],Qh.prototype,"previousMonthLabel",void 0),t([m({attribute:"previous-year-label"})],Qh.prototype,"previousYearLabel",void 0),t([m({attribute:"previous-multi-year-label"})],Qh.prototype,"previousMultiYearLabel",void 0),t([m({attribute:"next-month-label"})],Qh.prototype,"nextMonthLabel",void 0),t([m({attribute:"next-year-label"})],Qh.prototype,"nextYearLabel",void 0),t([m({attribute:"next-multi-year-label"})],Qh.prototype,"nextMultiYearLabel",void 0),t([m({type:Boolean})],Qh.prototype,"clearable",void 0),t([m({attribute:"clear-label"})],Qh.prototype,"clearLabel",void 0),t([m({attribute:"confirm-label"})],Qh.prototype,"confirmLabel",void 0),t([m({attribute:"dismiss-label"})],Qh.prototype,"dismissLabel",void 0),t([m()],Qh.prototype,"label",void 0),Qh=Jh=t([$("m3e-datepicker")],Qh);let em=class extends(b(E)){connectedCallback(){super.connectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup="dialog")}disconnectedCallback(){super.disconnectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup=null)}_onClick(){this.control instanceof Qh&&this.parentElement&&this.control.toggle(this.parentElement,this.closest("m3e-form-field")??void 0)}};em=t([$("m3e-datepicker-toggle")],em);let tm=class extends E{constructor(){super(...arguments),this.returnValue=""}_onClick(){this.closest("m3e-dialog")?.hide(this.returnValue)}};var am,om,im,rm,sm,nm,lm,cm,dm,hm,mm,pm;t([m({attribute:"return-value"})],tm.prototype,"returnValue",void 0),tm=t([$("m3e-dialog-action")],tm);let um=pm=class extends(x(P(r),"opening","opened","cancel","closing","closed")){constructor(){super(...arguments),am.add(this),om.set(this,pm.__nextId++),im.set(this,!1),rm.set(this,!1),this._withActions=!1,sm.set(this,new W(this)),this.alert=!1,this.dismissible=!1,this.disableClose=!1,this.noFocusTrap=!1,this.closeLabel="Close",this.returnValue=""}get open(){return e(this,im,"f")}set open(t){t!==e(this,im,"f")&&(a(this,im,t,"f"),e(this,im,"f")?this.show():this.hide())}async show(){if(await this.updateComplete,this._base.open)return;if(!this.dispatchEvent(new Event("opening",{cancelable:!0})))return void(this.open=!1);e(this,sm,"f").lock(),this._base.showModal(),this._content.scrollTop=0;const t=this.querySelector("[autofocus]");t&&H(t),this.dispatchEvent(new Event("opened"))}async hide(t=this.returnValue){if(!this.isConnected)return void(this.open=!1);if(await this.updateComplete,e(this,sm,"f").unlock(),!this._base.open)return void(this.open=!1);const a=this.returnValue;this.returnValue=t,this.dispatchEvent(new Event("closing",{cancelable:!0}))?(this.open=!1,this._base.close(t),this.dispatchEvent(new Event("closed"))):this.returnValue=a}render(){return s`<dialog class="base" role="${Ne(this.alert?"alertdialog":void 0)}" aria-labelledby="m3e-dialog-${e(this,om,"f")}-header" .returnvalue="${this.returnValue}" @close="${e(this,am,"m",lm)}" @cancel="${e(this,am,"m",cm)}" @click="${e(this,am,"m",dm)}" @keydown="${e(this,am,"m",hm)}"><m3e-elevation level="3"></m3e-elevation><m3e-focus-trap ?disabled="${this.noFocusTrap}"><div class="header"><slot name="header" id="m3e-dialog-${e(this,om,"f")}-header"></slot>${e(this,am,"m",nm).call(this)}</div><m3e-scroll-container class="content" dividers="${this._withActions?"above-below":"above"}"><slot></slot></m3e-scroll-container><div class="actions"><slot name="actions" @slotchange="${e(this,am,"m",mm)}"></slot></div></m3e-focus-trap></dialog>`}};om=new WeakMap,im=new WeakMap,rm=new WeakMap,sm=new WeakMap,am=new WeakSet,nm=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" class="close" @click="${this.hide}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},lm=function(){e(this,rm,"f")&&(a(this,rm,!0,"f"),this._base?.dispatchEvent(new Event("cancel",{cancelable:!0})))},cm=function(e){e.target===this._base&&(a(this,rm,!1,"f"),e.preventDefault(),this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.hide())},dm=function(e){this.disableClose||e.target!==this._base||this.hide()},hm=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.disableClose||this.hide())},mm=function(e){this._withActions=e.target.assignedNodes({flatten:!0}).length>0,k(this,"-with-actions",this._withActions)},um.styles=i`:host { display: contents; } .base { font: inherit; border: unset; outline: unset; padding: unset; display: flex; flex-direction: column; position: fixed; overflow: visible; border-radius: var(--m3e-dialog-shape, ${v.shape.corner.extraLarge}); min-width: var(--m3e-dialog-min-width, 17.5rem); max-width: var(--m3e-dialog-max-width, 35rem); color: var(--m3e-dialog-color, ${v.color.onSurface}); background-color: var(--m3e-dialog-container-color, ${v.color.surfaceContainerHigh}); visibility: hidden; opacity: 0; transform-origin: top; transform: translateY(-3.125rem) scaleY(0.8); } .base::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); margin-inline-end: -20px; } .base:not([open]) { visibility: hidden; opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.short3} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.emphasized} allow-discrete`)}; } .base[open] { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); transition: ${o(`opacity ${v.motion.duration.long2} ${v.motion.easing.emphasized}, \n transform ${v.motion.duration.long2} ${v.motion.easing.emphasized},\n overlay ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.emphasized} allow-discrete`)}; } .base:not([open])::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base[open]::backdrop { background-color: color-mix( in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) var(--m3e-dialog-scrim-opacity, 32%), transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .base[open] { opacity: 0; transform: translateY(-3.125rem) scaleY(0.8); } .base[open]::backdrop { background-color: color-mix(in srgb, var(--m3e-dialog-scrim-color, ${v.color.scrim}) 0%, transparent); } } .header { flex: none; display: flex; align-items: center; padding: 1.5rem 1.5rem 1rem 1.5rem; background-color: var(--m3e-dialog-header-container-color, transparent); } ::slotted([slot="header"]) { margin: unset; flex: 1 1 auto; color: var(--m3e-dialog-header-color, inherit); font-size: var(--m3e-dialog-header-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-dialog-header-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-dialog-header-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-dialog-header-tracking, ${v.typescale.standard.headline.small.tracking}); } .content { padding-inline: 1.5rem; color: var(--m3e-dialog-content-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-dialog-content-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var(--m3e-dialog-content-font-weight, ${v.typescale.standard.body.medium.fontWeight}); line-height: var(--m3e-dialog-content-line-height, ${v.typescale.standard.body.medium.lineHeight}); letter-spacing: var(--m3e-dialog-content-tracking, ${v.typescale.standard.body.medium.tracking}); } .actions { padding: 1.5rem; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } :host(:not(:state(-with-actions))) .content { margin-bottom: 1.5rem; } :host(:not(:state(-with-actions))) .actions { display: none; } .close { margin-inline-start: 0.5rem; } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } .base { border-style: solid; border-width: 1px; border-color: CanvasText; } } @media (prefers-reduced-motion) { .base:not([open]), .base[open], .base:not([open])::backdrop, .base[open]::backdrop { transition: none; } }`,um.__nextId=0,t([u()],um.prototype,"_withActions",void 0),t([h(".base")],um.prototype,"_base",void 0),t([h(".content")],um.prototype,"_content",void 0),t([m({type:Boolean})],um.prototype,"alert",void 0),t([m({type:Boolean,reflect:!0})],um.prototype,"open",null),t([m({type:Boolean})],um.prototype,"dismissible",void 0),t([m({attribute:"disable-close",type:Boolean})],um.prototype,"disableClose",void 0),t([m({attribute:"no-focus-trap",type:Boolean})],um.prototype,"noFocusTrap",void 0),t([m({attribute:"close-label"})],um.prototype,"closeLabel",void 0),um=pm=t([$("m3e-dialog")],um);let vm=class extends(b(E)){connectedCallback(){super.connectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup="dialog")}disconnectedCallback(){super.disconnectedCallback(),this.parentElement&&(this.parentElement.ariaHasPopup=null)}_onClick(){this.control instanceof um&&this.control.show()}};vm=t([$("m3e-dialog-trigger")],vm);let bm=class extends(f(r,"separator")){constructor(){super(...arguments),this.vertical=!1,this.inset=!1,this.insetStart=!1,this.insetEnd=!1}render(){return s`<div class="line"></div>`}};bm.styles=i`:host { display: block; position: relative; } :host(:not([vertical])) { height: var(--m3e-divider-thickness, 1px); width: 100%; } :host([vertical]) { width: var(--m3e-divider-thickness, 1px); height: 100%; } .line { box-sizing: border-box; position: absolute; } :host(:not([vertical])) .line { border-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); height: inherit; } :host([vertical]) .line { border-right: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); width: inherit; } :host([vertical][inset]) .line, :host([vertical][inset-start]) .line { top: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-start]) .line { left: var(--m3e-divider-inset-start-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical][inset]) .line, :host([vertical][inset-end]) .line { bottom: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host(:not([vertical])[inset]) .line, :host(:not([vertical])[inset-end]) .line { right: var(--m3e-divider-inset-end-size, var(--m3e-divider-inset-size, 1rem)); } :host([vertical]:not([inset]):not([inset-start])) .line { top: 0; } :host(:not([vertical]):not([inset]):not([inset-start])) .line { left: 0; } :host([vertical]:not([inset]):not([inset-end])) .line { bottom: 0; } :host(:not([vertical]):not([inset]):not([inset-end])) .line { right: 0; } @media (forced-colors: active) { .line { border-color: GrayText; } }`,t([m({type:Boolean,reflect:!0})],bm.prototype,"vertical",void 0),t([m({type:Boolean,reflect:!0})],bm.prototype,"inset",void 0),t([m({attribute:"inset-start",type:Boolean,reflect:!0})],bm.prototype,"insetStart",void 0),t([m({attribute:"inset-end",type:Boolean,reflect:!0})],bm.prototype,"insetEnd",void 0),bm=t([$("m3e-divider")],bm);const fm=o(`var(--m3e-drawer-container-color, ${v.color.surface})`),gm=o(`var(--m3e-drawer-container-elevation, ${v.elevation.level0})`),ym=o("var(--m3e-drawer-container-width, 22.5rem)"),$m=o("var(--m3e-drawer-container-scrim-opacity, 32%)"),xm=o(`var(--m3e-modal-drawer-corner-shape, ${v.shape.corner.large})`),wm=o(`var(--m3e-modal-drawer-container-color, ${v.color.surfaceContainerLow})`),km=o(`var(--m3e-modal-drawer-elevation, ${v.elevation.level1})`),Cm=o(`var(--m3e-drawer-divider-color, ${v.color.outline})`),Sm=o("var(--m3e-drawer-divider-thickness, 1px)"),_m=i`:host { display: block; position: relative; overflow: hidden; flex: 1 1 auto; } .start, .end { position: absolute; top: 0; bottom: 0; z-index: 3; outline: none; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; box-sizing: border-box; background-color: ${fm}; box-shadow: ${gm}; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete,\n background-color ${v.motion.duration.medium4} ${v.motion.easing.standard},\n box-shadow ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } .start { inset-inline-start: 0; } .end { inset-inline-end: 0; } :host(:not([start])) .start { visibility: hidden; } :host(:not([start]):not(:dir(rtl))) .start { margin-left: calc(0px - var(--_start-drawer-size, ${ym})); } :host(:not([start]):dir(rtl)) .start { margin-right: calc(0px - var(--_start-drawer-size, ${ym})); } :host([start]:not(:dir(rtl))) .start { margin-left: 0; } :host([start]:dir(rtl)) .start { margin-right: 0; } :host(:not([end])) .end { visibility: hidden; } :host(:not([end]):not(:dir(rtl))) .end { margin-right: calc(0px - var(--_end-drawer-size, ${ym})); } :host(:not([end]):dir(rtl)) .end { margin-left: calc(0px - var(--_end-drawer-size, ${ym})); } :host([end]:not(:dir(rtl))) .end { margin-right: 0; } :host([end]:dir(rtl)) .end { margin-left: 0; } ::slotted([slot="start"]), ::slotted([slot="end"]) { height: 100%; width: ${ym}; box-sizing: border-box; } .content { position: relative; height: 100%; overflow: auto; margin-left: 0; margin-right: 0; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard}`)}; } :host(:state(-start-push)[start]:not(:dir(rtl))) .content, :host(:state(-start-side)[start]:not(:dir(rtl))) .content { margin-left: var(--_start-drawer-size, ${ym}); } :host(:state(-start-push)[start]:dir(rtl)) .content, :host(:state(-start-side)[start]:dir(rtl)) .content { margin-right: var(--_start-drawer-size, ${ym}); } :host(:state(-end-push)[end]:not(:dir(rtl))) .content, :host(:state(-end-side)[end]:not(:dir(rtl))) .content { margin-right: var(--_end-drawer-size, ${ym}); } :host(:state(-end-push)[end]:dir(rtl)) .content, :host(:state(-end-side)[end]:dir(rtl)) .content { margin-left: var(--_end-drawer-size, ${ym}); } .scrim { display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 1; background-color: ${v.color.scrim}; opacity: 0; visibility: hidden; transition: ${o(`opacity ${v.motion.duration.medium4} ${v.motion.easing.standard}, \n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { .scrim { opacity: 0; } } :host(:state(-start-push)[start]) .scrim, :host(:state(-end-push)[end]) .scrim, :host(:state(-start-over)[start]) .scrim, :host(:state(-end-over)[end]) .scrim { visibility: visible; opacity: ${$m}; } :host(:state(-start-push)) .start, :host(:state(-start-over)) .start { border-start-end-radius: ${xm}; border-end-end-radius: ${xm}; } :host(:state(-end-push)) .end, :host(:state(-end-over)) .end { border-start-start-radius: ${xm}; border-end-start-radius: ${xm}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: ${wm}; box-shadow: ${km}; } :host([start-divider]) .start { border-inline-end-color: transparent; border-inline-end-width: ${Sm}; border-inline-end-style: solid; box-sizing: border-box; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: ${Cm}; } :host([end-divider]) .end { border-inline-start-color: transparent; border-inline-start-width: ${Sm}; border-inline-start-style: solid; box-sizing: border-box; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: ${Cm}; } :host(:state(-no-animate)) .start, :host(:state(-no-animate)) .end, :host(:state(-no-animate)) .content { transition: none; } @media (forced-colors: active) { .start, .end { background-color: Canvas; box-shadow: unset; transition: ${o(`margin ${v.motion.duration.medium4} ${v.motion.easing.standard},\n visibility ${v.motion.duration.medium4} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-start-push)) .start, :host(:state(-end-push)) .end, :host(:state(-start-over)) .start, :host(:state(-end-over)) .end { background-color: Canvas; box-shadow: unset; border-color: CanvasText; } .start, .end { border-style: solid; border-color: Canvas; border-width: 1px; } .start { border-inline-start-style: none; } .end { border-inline-end-style: none; } :host([start-divider]:state(-start-side)[start]:not(:state(-end-push)[end]):not(:state(-end-over)[end])) .start { border-inline-end-color: GrayText; } :host([end-divider]:state(-end-side)[end]:not(:state(-start-push)[start]):not(:state(-start-over)[start])) .end { border-inline-start-color: GrayText; } } @media (prefers-reduced-motion) { .start, .end, .content, .scrim { transition: none; } }`;var Lm,zm,Em,Mm,Tm,Pm,Im,Wm,Dm,Am,Hm,Om,Fm;let Bm=class extends(M(P(r))){constructor(){super(...arguments),Lm.add(this),this._startMode="side",this._endMode="side",zm.set(this,void 0),Em.set(this,!1),Mm.set(this,!1),Tm.set(this,new A(this,{target:null,skipInitial:!0,callback:t=>e(this,Lm,"m",Am).call(this,t)})),this.start=!1,this.startMode="side",this.startDivider=!1,this.end=!1,this.endMode="side",this.endDivider=!1}connectedCallback(){super.connectedCallback(),z(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),e(this,zm,"f")?.call(this),e(this,Lm,"m",Om).call(this)}willUpdate(t){super.willUpdate(t),(t.has("startMode")||t.has("endMode"))&&(e(this,zm,"f")?.call(this),"auto"===this.startMode||"auto"===this.endMode?e(this,Lm,"m",Hm).call(this):e(this,Lm,"m",Fm).call(this)),t.has("start")?this.start&&this.end&&"side"!==this._endMode&&(this.end=!1,this.dispatchEvent(new Event("change",{bubbles:!0}))):t.has("end")&&this.end&&this.start&&"side"!==this._startMode&&(this.start=!1,this.dispatchEvent(new Event("change",{bubbles:!0})))}reconnectedCallback(){super.reconnectedCallback(),e(this,Lm,"m",Pm).call(this),"auto"!==this.startMode&&"auto"!==this.endMode||e(this,Lm,"m",Hm).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Lm,"m",Pm).call(this)}render(){return s`<div class="start"><m3e-focus-trap ?disabled="${!this.start||"side"===this._startMode||e(this,Em,"f")}"><slot name="start" @slotchange="${e(this,Lm,"m",Wm)}"></slot></m3e-focus-trap></div><div class="content" .inert="${("side"!==this._startMode||"side"!==this._endMode)&&(this.start||this.end)}"><slot></slot></div><div class="scrim" @click="${e(this,Lm,"m",Im)}"></div><div class="end"><m3e-focus-trap ?disabled="${!this.end||"side"===this._endMode||e(this,Mm,"f")}"><slot name="end" @slotchange="${e(this,Lm,"m",Dm)}"></slot></m3e-focus-trap></div>`}};var Vm,qm,Rm,Um,Nm,jm;zm=new WeakMap,Em=new WeakMap,Mm=new WeakMap,Tm=new WeakMap,Lm=new WeakSet,Pm=function(){let t=this.shadowRoot?.querySelector(".start");t&&e(this,Tm,"f").observe(t),t=this.shadowRoot?.querySelector(".end"),t&&e(this,Tm,"f").observe(t)},Im=function(){"side"!==this._startMode&&(this.start=!1),"side"!==this._endMode&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0}))},Wm=function(e){a(this,Em,!g(e.target),"f")},Dm=function(e){a(this,Mm,!g(e.target),"f")},Am=function(e){for(const t of e){const e=Array.isArray(t.borderBoxSize)?t.borderBoxSize[0]:t.borderBoxSize;t.target.classList.contains("start")?this.style.setProperty("--_start-drawer-size",`${e.inlineSize}px`):t.target.classList.contains("end")&&this.style.setProperty("--_end-drawer-size",`${e.inlineSize}px`)}O(this,"-no-animate")&&(this.offsetTop,C(this,"-no-animate"))},Hm=function(){a(this,zm,Xe.observe([Je.XSmall,Je.Small],t=>e(this,Lm,"m",Fm).call(this,t,!0)),"f")},Om=function(){C(this,"-start-over"),C(this,"-start-push"),C(this,"-start-side"),C(this,"-end-over"),C(this,"-end-push"),C(this,"-end-side")},Fm=function(t,a=!1){let o=!1,i=!1;"auto"===this.startMode?t?.get(Je.Medium)?this._startMode="side":t?.get(Je.Small)?(o="side"===this._startMode&&this.start,this._startMode="push"):t?.get(Je.XSmall)?(o="over"!==this._startMode&&this.start,this._startMode="over"):this._startMode="side":this._startMode=this.startMode,"auto"===this.endMode?t?.get(Je.Medium)?this._endMode="side":t?.get(Je.Small)?(i="side"===this._endMode&&this.end,this._endMode="push"):t?.get(Je.XSmall)?(i="over"!==this._endMode&&this.end,this._endMode="over"):this._endMode="side":this._endMode=this.endMode,e(this,Lm,"m",Om).call(this),z(this,`-start-${this._startMode}`),z(this,`-end-${this._endMode}`),a&&(o||i)&&(o&&(this.start=!1),i&&(this.end=!1),this.dispatchEvent(new Event("change",{bubbles:!0})))},Bm.styles=_m,t([u()],Bm.prototype,"_startMode",void 0),t([u()],Bm.prototype,"_endMode",void 0),t([m({type:Boolean,reflect:!0})],Bm.prototype,"start",void 0),t([m({attribute:"start-mode",reflect:!0})],Bm.prototype,"startMode",void 0),t([m({attribute:"start-divider",type:Boolean,reflect:!0})],Bm.prototype,"startDivider",void 0),t([m({type:Boolean,reflect:!0})],Bm.prototype,"end",void 0),t([m({attribute:"end-mode",reflect:!0})],Bm.prototype,"endMode",void 0),t([m({attribute:"end-divider",type:Boolean,reflect:!0})],Bm.prototype,"endDivider",void 0),Bm=t([$("m3e-drawer-container")],Bm);let Ym=class extends(b(E)){constructor(){super(...arguments),Vm.add(this),qm.set(this,()=>e(this,Vm,"m",Um).call(this)),Rm.set(this,!1)}attach(t){super.attach(t),this.htmlFor&&this.parentElement&&Pe(this.parentElement,"aria-controls",this.htmlFor);const a=t.closest("m3e-drawer-container");a&&(a.addEventListener("change",e(this,qm,"f")),e(this,Vm,"m",jm).call(this,a,!0))}detach(){this.parentElement&&(this.htmlFor&&Ie(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),this.control?.closest("m3e-drawer-container")?.removeEventListener("change",e(this,qm,"f")),super.detach()}_onClick(){e(this,Vm,"m",Nm).call(this)}};var Km,Zm,Gm,Xm;qm=new WeakMap,Rm=new WeakMap,Vm=new WeakSet,Um=function(){if(this.control&&!e(this,Rm,"f")){const t=this.control.closest("m3e-drawer-container");t&&e(this,Vm,"m",jm).call(this,t,!0)}},Nm=async function(){if(!this.parentElement||!this.control)return;const t=this.control.closest("m3e-drawer-container");if(t){a(this,Rm,!0,"f");try{"start"===this.control.slot?t.start=!t.start:"end"===this.control.slot&&(t.end=!t.end),t.isUpdatePending&&await t.updateComplete,await e(this,Vm,"m",jm).call(this,t,!1)}finally{a(this,Rm,!1,"f")}}},jm=async function(e,t){if(!this.parentElement||!this.control)return;let a=!1;"start"===this.control.slot?a=e.start:"end"===this.control.slot&&(a=e.end),this.parentElement.ariaExpanded=`${a}`,t&&this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",a),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},Ym=t([$("m3e-drawer-toggle")],Ym);let Jm=class extends r{constructor(){super(...arguments),Km.add(this),Zm.set(this,[]),this.multi=!1}get panels(){return e(this,Zm,"f")}render(){return s`<slot @slotchange="${e(this,Km,"m",Gm)}" @opening="${e(this,Km,"m",Xm)}"></slot>`}};Zm=new WeakMap,Km=new WeakSet,Gm=function(){if(a(this,Zm,[...this.querySelectorAll("m3e-expansion-panel")],"f"),this.multi)return;let t=!1;for(const a of e(this,Zm,"f").filter(e=>!e.open))t&&(a.open=!1),t=!0},Xm=function(t){if(!this.multi)for(const a of e(this,Zm,"f").filter(e=>e!==t.target&&e.open))a.open=!1},Jm.styles=i`:host { display: block; } ::slotted(m3e-expansion-panel) { --m3e-expansion-panel-container-color: ${v.color.surface}; --m3e-expansion-panel-elevation: ${v.elevation.level2}; --m3e-expansion-panel-open-shape: ${v.shape.corner.medium}; --_expansion-panel-open-spacing: 1rem; } ::slotted(m3e-expansion-panel:first-of-type:last-of-type) { --m3e-expansion-panel-shape: ${v.shape.corner.medium}; } ::slotted(m3e-expansion-panel:first-of-type:not(:last-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.medium} ${v.shape.corner.value.medium} ${v.shape.corner.value.none} ${v.shape.corner.value.none}; } ::slotted(m3e-expansion-panel:last-of-type:not(:first-of-type)) { --m3e-expansion-panel-shape: ${v.shape.corner.value.none} ${v.shape.corner.value.none} ${v.shape.corner.value.medium} ${v.shape.corner.value.medium}; }`,t([m({type:Boolean})],Jm.prototype,"multi",void 0),Jm=t([$("m3e-accordion")],Jm);const Qm=o("var(--m3e-expansion-header-collapsed-height, 3rem)"),ep=o("var(--m3e-expansion-header-expanded-height, 4rem)"),tp=o("var(--m3e-expansion-header-padding-left, 1.5rem)"),ap=o("var(--m3e-expansion-header-padding-right, 1.5rem)"),op=o("var(--m3e-expansion-header-spacing, 0.5rem)"),ip=o("var(--m3e-expansion-header-toggle-icon-size, 1.5rem)"),rp=o(`var(--m3e-expansion-header-font-size, ${v.typescale.standard.title.medium.fontSize})`),sp=o(`var(--m3e-expansion-header-font-weight, ${v.typescale.standard.title.medium.fontWeight})`),np=o(`var(--m3e-expansion-header-line-height, ${v.typescale.standard.title.medium.lineHeight})`),lp=o(`var(--m3e-expansion-header-tracking, ${v.typescale.standard.title.medium.tracking})`),cp=i`:host { display: block; border-radius: inherit; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); transition: ${o(`height var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } .base { box-sizing: border-box; width: 100%; height: 100%; display: flex; border-radius: inherit; outline: none; position: relative; padding-inline-start: ${tp}; padding-inline-end: ${ap}; font-size: ${rp}; font-weight: ${sp}; line-height: ${np}; letter-spacing: ${lp}; column-gap: ${op}; } :host(:not(:disabled)) { cursor: pointer; } :host(:not([aria-expanded="true"])) { height: ${Qm}; } :host([aria-expanded="true"]) { height: ${ep}; } :host(:not(:focus-visible)) .state-layer { --m3e-state-layer-focus-color: transparent; } :host([aria-expanded="true"]) .state-layer { --m3e-state-layer-hover-color: transparent; } :host([aria-expanded="true"]) [part="background"], .content { flex: 1 1 auto; display: flex; align-items: center; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: ${ip}; transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host([toggle-direction="vertical"][aria-expanded="true"]) .toggle { transform: rotate(180deg); } :host([toggle-direction="horizontal"][aria-expanded="true"]) .toggle { transform: rotate(var(--_expansion-header-horizontal-expanded-toggle-rotation, 90deg)); } :host([toggle-position="before"]) .toggle { margin-inline-start: calc(0px - ${op}); } :host([toggle-position="after"]) .toggle { margin-inline-end: calc(0px - ${op}); } :host([hide-toggle]) .toggle { display: none; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } @media (prefers-reduced-motion) { :host, .toggle { transition: none; } }`,dp=o(`var(--m3e-expansion-panel-text-color, ${v.color.onSurface})`),hp=o(`var(--m3e-expansion-panel-disabled-text-color, ${v.color.onSurface})`),mp=o("var(--m3e-expansion-panel-disabled-text-opacity, 38%)"),pp=o("var(--m3e-expansion-panel-container-color)"),up=o("var(--m3e-expansion-panel-elevation)"),vp=o("var(--m3e-expansion-panel-shape)"),bp=o("var(--m3e-expansion-panel-open-elevation, var(--m3e-expansion-panel-elevation))"),fp=o("var(--m3e-expansion-panel-open-shape, var(--m3e-expansion-panel-shape))"),gp=o("var(--_expansion-panel-open-spacing)"),yp=o("var(--m3e-expansion-panel-content-padding, 0 1.5rem 1rem 1.5rem)"),$p=o("var(--m3e-expansion-panel-actions-spacing, 0.5rem)"),xp=o("var(--m3e-expansion-panel-actions-padding, 1rem 1.5rem 1rem 1.5rem)"),wp=o("var(--m3e-expansion-panel-actions-divider-thickness, var(--m3e-divider-thickness, 1px))"),kp=o(`var(--m3e-expansion-panel-actions-divider-color, var(--m3e-divider-color, ${v.color.outlineVariant}))`),Cp=i`:host { display: block; } .base { background-color: ${pp}; transition: ${o(`box-shadow var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) .base { color: ${dp}; } :host(:disabled) .base { color: color-mix( in srgb, ${hp} ${mp}, transparent ); } :host(:not([open])) .base { box-shadow: ${up}; border-radius: ${vp}; } :host([open]) .base { box-shadow: ${bp}; border-radius: ${fp}; margin-block: ${gp}; } .toggle { display: flex; align-items: center; justify-content: center; font-size: ${ip}; } ::slotted([slot="toggle-icon"]) { font-size: inherit !important; flex: none; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } .content { padding: ${yp}; } :host(:not(:state(-with-actions))) .actions { display: none; } .actions { padding: ${xp}; border-top-style: solid; border-top-width: ${wp}; border-top-color: ${kp}; } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; column-gap: ${$p}; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { border: 1px solid CanvasText; } :host(:disabled) .base { color: GrayText; } .actions { border-top-color: GrayText; } }`;var Sp,_p;let Lp=class extends(q(N(Y(P(f(r,"button"),!0))))){constructor(){super(...arguments),Sp.add(this),this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer>${"before"===this.togglePosition?e(this,Sp,"m",_p).call(this):n}<div class="content"><slot></slot></div>${"after"===this.togglePosition?e(this,Sp,"m",_p).call(this):n}</div>`}};var zp,Ep,Mp,Tp,Pp,Ip,Wp,Dp,Ap,Hp,Op,Fp;Sp=new WeakSet,_p=function(){return s`<div class="toggle" aria-hidden="true"><slot name="toggle-icon"></slot></div>`},Lp.styles=cp,t([h(".focus-ring")],Lp.prototype,"_focusRing",void 0),t([h(".state-layer")],Lp.prototype,"_stateLayer",void 0),t([m({attribute:"toggle-direction",reflect:!0})],Lp.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],Lp.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],Lp.prototype,"hideToggle",void 0),Lp=t([$("m3e-expansion-header")],Lp);let Bp=Fp=class extends(x(Y(M(P(r,!0))),"opening","opened","closing","closed")){constructor(){super(...arguments),zp.add(this),Ep.set(this,Fp.__nextId++),Mp.set(this,`m3e-expansion-panel-${e(this,Ep,"f")}-content`),Tp.set(this,`m3e-expansion-panel-${e(this,Ep,"f")}-header`),Pp.set(this,void 0),this.open=!1,this.toggleDirection="vertical",this.togglePosition="after",this.hideToggle=!1}focus(e){this._header?.focus(e)}blur(){this._header?.blur()}click(){this._header?.click()}connectedCallback(){super.connectedCallback(),a(this,Pp,Ve.observe(()=>{this.requestUpdate(),e(this,zp,"m",Op).call(this)}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Pp,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,zp,"m",Op).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,zp,"m",Op).call(this)}render(){return s`<div class="base"><m3e-expansion-header id="${e(this,Tp,"f")}" toggle-direction="${this.toggleDirection}" toggle-position="${this.togglePosition}" ?hide-toggle="${this.hideToggle}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,Mp,"f")}" @click="${e(this,zp,"m",Wp)}" @keydown="${e(this,zp,"m",Dp)}"><div slot="toggle-icon" class="toggle"><slot name="toggle-icon">${e(this,zp,"m",Ip).call(this)}</slot></div><slot name="header"></slot></m3e-expansion-header><m3e-collapsible id="${e(this,Mp,"f")}" role="region" aria-labelledby="${e(this,Tp,"f")}" ?open="${this.open}" @opening="${e(this,zp,"m",Ap)}" @opened="${e(this,zp,"m",Ap)}" @closing="${e(this,zp,"m",Ap)}" @closed="${e(this,zp,"m",Ap)}"><div class="content"><slot></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,zp,"m",Hp)}"></slot></div></m3e-collapsible></div>`}};Ep=new WeakMap,Mp=new WeakMap,Tp=new WeakMap,Pp=new WeakMap,zp=new WeakSet,Ip=function(){return"vertical"===this.toggleDirection?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>`:"ltr"===Ve.current?s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>`:s`<svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg>`},Wp=function(){this.open=!this.open},Dp=function(e){switch(e.key){case"ArrowUp":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=[...t.panels].reverse(),a=e.indexOf(this);(e.find((e,t)=>!e.disabled&&t>a)??e.find((e,t)=>!e.disabled&&t<a))?._header?.focus()}else this.open=!1}break;case"ArrowDown":{e.preventDefault();const t=this.closest("m3e-accordion");if(t){const e=t.panels.indexOf(this);(t.panels.find((t,a)=>!t.disabled&&a>e)??t.panels.find((t,a)=>!t.disabled&&a<e))?._header?.focus()}else this.open=!0}}},Ap=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},Hp=function(e){k(this,"-with-actions",g(e.target))},Op=function(){"rtl"===Ve.current?this._header?.style.setProperty("--_expansion-header-horizontal-expanded-toggle-rotation","-90deg"):this._header?.style.removeProperty("--_expansion-header-horizontal-expanded-toggle-rotation")},Bp.styles=Cp,Bp.__nextId=0,t([h("m3e-expansion-header")],Bp.prototype,"_header",void 0),t([m({type:Boolean,reflect:!0})],Bp.prototype,"open",void 0),t([m({attribute:"toggle-direction",reflect:!0})],Bp.prototype,"toggleDirection",void 0),t([m({attribute:"toggle-position",reflect:!0})],Bp.prototype,"togglePosition",void 0),t([m({attribute:"hide-toggle",type:Boolean,reflect:!0})],Bp.prototype,"hideToggle",void 0),Bp=Fp=t([$("m3e-expansion-panel")],Bp);const Vp=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .close-icon, ::slotted(:not([slot])), ::slotted([slot="close-icon"]) { font-size: inherit !important; flex: none; } .close-icon, ::slotted(svg:not([slot])), ::slotted(svg[slot="close-icon"]) { width: 1em; height: 1em; } :host(:not([extended])) ::slotted([slot="label"]), .base.with-menu ::slotted([slot="label"]), .base:not(.with-menu) ::slotted([slot="close-icon"]), .base:not(.with-menu) .close-icon, :host([aria-expanded="true"]) .base.with-menu ::slotted(:not([slot])), :host([aria-expanded="false"]) .base.with-menu ::slotted([slot="close-icon"]), :host([aria-expanded="false"]) .base.with-menu .close-icon { display: none; } :host([aria-expanded="true"]) .base.with-menu { border-radius: var(--m3e-fab-menu-close-button-container-shape, ${v.shape.corner.full}); height: calc(var(--m3e-fab-menu-close-button-container-height, 3.5rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .wrapper { padding-inline-start: calc(var(--m3e-fab-menu-close-button-leading-space, 1rem) + ${v.density.calc(-3)}); padding-inline-end: calc(var(--m3e-fab-menu-close-button-trailing-space, 1rem) + ${v.density.calc(-3)}); } :host([aria-expanded="true"]) .base.with-menu .icon { font-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); --m3e-icon-size: calc(var(--m3e-fab-menu-close-button-icon-size, 1.5rem) + ${v.density.calc(-3)}); } .base.with-menu { transition: height ${v.motion.spring.fastSpatial}; } .base.with-menu .wrapper { transition: padding ${v.motion.spring.fastSpatial}; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { .base, .icon { transition: none; } .base { outline-style: solid; } :host([variant]:not(:disabled):not([disabled-interactive])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])) .label, :host([variant]:not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-button-small-outline-thickness, 1px)); outline-width: var(--m3e-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-button-large-outline-thickness, 2px)); outline-width: var(--m3e-button-large-outline-thickness, 2px); } } @media (prefers-reduced-motion) { .base, .base.resting, .base.pressed, .label, .icon { transition: none; } }`,qp={small:{containerHeight:o(`calc(var(--m3e-fab-small-container-height, var(--m3e-fab-container-height, 3.5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-small-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.medium.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-small-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.medium.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-small-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.medium.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-small-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.medium.tracking}))`),iconSize:o(`calc(var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-small-icon-size, var(--m3e-fab-icon-size, 1.5rem))"),shape:o(`var(--m3e-fab-small-shape, var(--m3e-fab-shape, ${v.shape.corner.large}))`),leadingSpace:o(`calc(var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-small-icon-label-space, var(--m3e-fab-icon-label-space, 0.5rem))"),extendedLeadingSpace:o("var(--m3e-fab-small-leading-space, var(--m3e-fab-leading-space, 1rem))"),extendedTrailingSpace:o("var(--m3e-fab-small-trailing-space, var(--m3e-fab-trailing-space, 1rem))")},medium:{containerHeight:o(`calc(var(--m3e-fab-medium-container-height, var(--m3e-fab-container-height, 5rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-medium-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.title.large.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-medium-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.title.large.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-medium-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.title.large.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-medium-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.title.large.tracking}))`),iconSize:o(`calc(var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-medium-icon-size, var(--m3e-fab-icon-size, 1.75rem))"),shape:o(`var(--m3e-fab-medium-shape, var(--m3e-fab-shape, ${v.shape.corner.largeIncreased}))`),leadingSpace:o(`calc(var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-medium-icon-label-space, var(--m3e-fab-icon-label-space, 0.75rem))"),extendedLeadingSpace:o("var(--m3e-fab-medium-leading-space, var(--m3e-fab-leading-space, 1.625rem))"),extendedTrailingSpace:o("var(--m3e-fab-medium-trailing-space, var(--m3e-fab-trailing-space, 1.625rem))")},large:{containerHeight:o(`calc(var(--m3e-fab-large-container-height, var(--m3e-fab-container-height, 6rem)) + ${v.density.calc(-3)})`),labelTextFontSize:o(`var(--m3e-fab-large-label-text-font-size, var(--m3e-fab-label-text-font-size, ${v.typescale.standard.headline.small.fontSize}))`),labelTextFontWeight:o(`var(--m3e-fab-large-label-text-font-weight, var(--m3e-fab-label-text-font-weight, ${v.typescale.standard.headline.small.fontWeight}))`),labelTextLineHeight:o(`var(--m3e-fab-large-label-text-line-height, var(--m3e-fab-label-text-line-height, ${v.typescale.standard.headline.small.lineHeight}))`),labelTextTracking:o(`var(--m3e-fab-large-label-text-tracking, var(--m3e-fab-label-text-tracking, ${v.typescale.standard.headline.small.tracking}))`),iconSize:o(`calc(var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem)) + ${v.density.calc(-3)})`),extendedIconSize:o("var(--m3e-fab-large-icon-size, var(--m3e-fab-icon-size, 2.25rem))"),shape:o(`var(--m3e-fab-large-shape, var(--m3e-fab-shape, ${v.shape.corner.extraLarge}))`),leadingSpace:o(`calc(var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem)) + ${v.density.calc(-3)})`),trailingSpace:o(`calc(var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem)) + ${v.density.calc(-3)})`),iconLabelSpace:o("var(--m3e-fab-large-icon-label-space, var(--m3e-fab-icon-label-space, 1rem))"),extendedLeadingSpace:o("var(--m3e-fab-large-leading-space, var(--m3e-fab-leading-space, 1.75rem))"),extendedTrailingSpace:o("var(--m3e-fab-large-trailing-space, var(--m3e-fab-trailing-space, 1.75rem))")}};function Rp(e){return i`:host([size="${o(e)}"]) .base { height: ${qp[e].containerHeight}; } :host([size="${o(e)}"]) .base { border-radius: ${qp[e].shape}; } :host([size="${o(e)}"]) .label { font-size: ${qp[e].labelTextFontSize}; font-weight: ${qp[e].labelTextFontWeight}; line-height: ${qp[e].labelTextLineHeight}; letter-spacing: ${qp[e].labelTextTracking}; } :host([size="${o(e)}"]:not([extended])) .wrapper { padding-inline-start: ${qp[e].leadingSpace}; padding-inline-end: ${qp[e].trailingSpace}; } :host([size="${o(e)}"]:not([extended])) .icon { font-size: ${qp[e].iconSize}; --m3e-icon-size: ${qp[e].iconSize}; } :host([size="${o(e)}"][extended]) .wrapper { padding-inline-start: ${qp[e].extendedLeadingSpace}; padding-inline-end: ${qp[e].extendedTrailingSpace}; column-gap: ${qp[e].iconLabelSpace}; } :host([size="${o(e)}"][extended]) .icon { font-size: ${qp[e].extendedIconSize}; --m3e-icon-size: ${qp[e].extendedIconSize}; }`}const Up=[Rp("small"),Rp("medium"),Rp("large")],Np={primary:{labelTextColor:o(`var(--m3e-primary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onPrimary}))`),iconColor:o(`var(--m3e-primary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-primary-fab-container-color, var(--m3e-fab-container-color, ${v.color.primary}))`),containerElevation:o(`var(--m3e-primary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimary}))`),labelTextColor:o(`var(--m3e-primary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-primary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-primary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},secondary:{labelTextColor:o(`var(--m3e-secondary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondary}))`),iconColor:o(`var(--m3e-secondary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondary}))`),containerColor:o(`var(--m3e-secondary-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondary}))`),containerElevation:o(`var(--m3e-secondary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondary}))`),labelTextColor:o(`var(--m3e-secondary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondary}))`),stateLayerColor:o(`var(--m3e-secondary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondary}))`),stateLayerOpacity:o(`var(--m3e-secondary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},tertiary:{labelTextColor:o(`var(--m3e-tertiary-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiary}))`),iconColor:o(`var(--m3e-tertiary-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiary}))`),containerColor:o(`var(--m3e-tertiary-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiary}))`),containerElevation:o(`var(--m3e-tertiary-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiary}))`),labelTextColor:o(`var(--m3e-tertiary-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiary}))`),stateLayerColor:o(`var(--m3e-tertiary-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiary}))`),stateLayerOpacity:o(`var(--m3e-tertiary-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"primary-container":{labelTextColor:o(`var(--m3e-primary-container-fab-label-text-color, var(--m3e-primary-container-fab-label-text-color, ${v.color.onPrimaryContainer}))`),iconColor:o(`var(--m3e-primary-container-fab-icon-color, var(--m3e-primary-container-fab-icon-color, ${v.color.onPrimaryContainer}))`),containerColor:o(`var(--m3e-primary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.primaryContainer}))`),containerElevation:o(`var(--m3e-primary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-primary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-primary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-primary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-primary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-primary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-primary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-primary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-primary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-primary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-primary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onPrimaryContainer}))`),labelTextColor:o(`var(--m3e-primary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onPrimaryContainer}))`),stateLayerColor:o(`var(--m3e-primary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onPrimaryContainer}))`),stateLayerOpacity:o(`var(--m3e-primary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-primary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-primary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"secondary-container":{labelTextColor:o(`var(--m3e-secondary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onSecondaryContainer}))`),iconColor:o(`var(--m3e-secondary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-secondary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.secondaryContainer}))`),containerElevation:o(`var(--m3e-secondary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-secondary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-secondary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-secondary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-secondary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-secondary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-secondary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-secondary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-secondary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-secondary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-secondary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onSecondaryContainer}))`),labelTextColor:o(`var(--m3e-secondary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-secondary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-secondary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-secondary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-secondary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},"tertiary-container":{labelTextColor:o(`var(--m3e-tertiary-container-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.onTertiaryContainer}))`),iconColor:o(`var(--m3e-tertiary-container-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.onTertiaryContainer}))`),containerColor:o(`var(--m3e-tertiary-container-fab-container-color, var(--m3e-fab-container-color, ${v.color.tertiaryContainer}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),disabled:{containerColor:o(`var(--m3e-tertiary-container-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tertiary-container-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tertiary-container-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tertiary-container-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-tertiary-container-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-tertiary-container-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-tertiary-container-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-tertiary-container-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-tertiary-container-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-tertiary-container-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.onTertiaryContainer}))`),labelTextColor:o(`var(--m3e-tertiary-container-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.onTertiaryContainer}))`),stateLayerColor:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.onTertiaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tertiary-container-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-tertiary-container-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-tertiary-container-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}},surface:{labelTextColor:o(`var(--m3e-surface-fab-label-text-color, var(--m3e-fab-label-text-color, ${v.color.primary}))`),iconColor:o(`var(--m3e-surface-fab-icon-color, var(--m3e-fab-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-surface-fab-container-color, var(--m3e-fab-container-color, ${v.color.surfaceContainerHigh}))`),containerElevation:o(`var(--m3e-surface-fab-container-elevation, var(--m3e-fab-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-container-elevation, var(--m3e-fab-lowered-container-elevation, ${v.elevation.level2}))`),loweredContainerColor:o(`var(--m3e-surface-fab-lowered-container-color, var(--m3e-fab-lowered-container-color, ${v.color.surfaceContainerLow}))`),disabled:{containerColor:o(`var(--m3e-surface-fab-disabled-container-color, var(--m3e-fab-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-surface-fab-disabled-container-opacity, var(--m3e-fab-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-surface-fab-disabled-icon-color, var(--m3e-fab-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-surface-fab-disabled-icon-opacity, var(--m3e-fab-disabled-icon-opacity, 38%))"),labelTextColor:o(`var(--m3e-surface-fab-disabled-label-text-color, var(--m3e-fab-disabled-label-text-color, ${v.color.onSurface}))`),labelTextOpacity:o("var(--m3e-surface-fab-disabled-label-text-opacity, var(--m3e-fab-disabled-label-text-opacity, 38%))"),containerElevation:o(`var(--m3e-surface-fab-disabled-container-elevation, var(--m3e-fab-disabled-container-elevation, ${v.elevation.level0}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-disabled-container-elevation, var(--m3e-fab-lowered-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-surface-fab-hover-icon-color, var(--m3e-fab-hover-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-hover-label-text-color, var(--m3e-fab-hover-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-hover-state-layer-color, var(--m3e-fab-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-hover-state-layer-opacity, var(--m3e-fab-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-hover-container-elevation, var(--m3e-fab-hover-container-elevation, ${v.elevation.level4}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-hover-container-elevation, var(--m3e-fab-lowered-hover-container-elevation, ${v.elevation.level3}))`)},focus:{iconColor:o(`var(--m3e-surface-fab-focus-icon-color, var(--m3e-fab-focus-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-focus-label-text-color, var(--m3e-fab-focus-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-focus-state-layer-color, var(--m3e-fab-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-focus-state-layer-opacity, var(--m3e-fab-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-focus-container-elevation, var(--m3e-fab-focus-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-focus-container-elevation, var(--m3e-fab-lowered-focus-container-elevation, ${v.elevation.level2}))`)},pressed:{iconColor:o(`var(--m3e-surface-fab-pressed-icon-color, var(--m3e-fab-pressed-icon-color, ${v.color.primary}))`),labelTextColor:o(`var(--m3e-surface-fab-pressed-label-text-color, var(--m3e-fab-pressed-label-text-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-surface-fab-pressed-state-layer-color, var(--m3e-fab-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-surface-fab-pressed-state-layer-opacity, var(--m3e-fab-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-surface-fab-pressed-container-elevation, var(--m3e-fab-pressed-container-elevation, ${v.elevation.level3}))`),loweredContainerElevation:o(`var(--m3e-surface-fab-lowered-pressed-container-elevation, var(--m3e-fab-lowered-pressed-container-elevation, ${v.elevation.level2}))`)}}};function jp(e){return i`:host([variant="${o(e)}"]:not([lowered])) .base { background-color: ${Np[e].containerColor}; --m3e-elevation-level: ${Np[e].containerElevation}; --m3e-elevation-hover-level: ${Np[e].hover.containerElevation}; --m3e-elevation-focus-level: ${Np[e].focus.containerElevation}; --m3e-elevation-pressed-level: ${Np[e].pressed.containerElevation}; } :host([variant="${o(e)}"][lowered]) .base { background-color: ${Np[e].loweredContainerColor??Np[e].containerColor}; --m3e-elevation-level: ${Np[e].loweredContainerElevation}; --m3e-elevation-hover-level: ${Np[e].hover.loweredContainerElevation}; --m3e-elevation-focus-level: ${Np[e].focus.loweredContainerElevation}; --m3e-elevation-pressed-level: ${Np[e].pressed.loweredContainerElevation}; } :host([variant="${o(e)}"]) .base { --m3e-state-layer-hover-color: ${Np[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Np[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Np[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Np[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Np[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Np[e].pressed.stateLayerOpacity}; } :host([variant="${o(e)}"]) .label { color: ${Np[e].labelTextColor}; } :host([variant="${o(e)}"]:focus) .label { color: ${Np[e].focus.labelTextColor}; } :host([variant="${o(e)}"]:hover) .label { color: ${Np[e].hover.labelTextColor}; } :host([variant="${o(e)}"]) .base.pressed .label { color: ${Np[e].pressed.labelTextColor}; } :host([variant="${o(e)}"]) .icon { color: ${Np[e].iconColor}; } :host([variant="${o(e)}"]:focus) .icon { color: ${Np[e].focus.iconColor}; } :host([variant="${o(e)}"]:hover) .icon { color: ${Np[e].hover.iconColor}; } :host([variant="${o(e)}"]) .base.pressed .icon { color: ${Np[e].pressed.iconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { --m3e-elevation-level: ${Np[e].disabled.containerElevation}; background-color: color-mix( in srgb, ${Np[e].disabled.containerColor} ${Np[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .label, :host([variant="${o(e)}"][disabled-interactive]) .label { color: color-mix( in srgb, ${Np[e].disabled.labelTextColor} ${Np[e].disabled.labelTextOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Np[e].disabled.iconColor} ${Np[e].disabled.iconOpacity}, transparent ); }`}const Yp=[jp("primary"),jp("secondary"),jp("tertiary"),jp("primary-container"),jp("secondary-container"),jp("tertiary-container"),jp("surface")];var Kp,Zp;let Gp=class extends(q(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),Kp.add(this),this.variant="primary-container",this.lowered=!1,this.size="medium",this.extended=!1,new Z(this,{isPressedKey:e=>" "===e,callback:e=>{this.disabled||this.disabledInteractive||(this._base?.classList.toggle("pressed",e),this._base?.classList.toggle("resting",!e))}})}disconnectedCallback(){super.disconnectedCallback(),this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1)}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(this._base?.classList.toggle("pressed",!1),this._base?.classList.toggle("resting",!1))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?centered="${!this.extended}" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper"><slot class="icon" aria-hidden="true" @slotchange="${e(this,Kp,"m",Zp)}"></slot><slot class="icon" aria-hidden="true" name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot><div class="label"><slot name="label" @slotchange="${e(this,Kp,"m",Zp)}"></slot></div></div></div>`}};var Xp,Jp,Qp;Kp=new WeakSet,Zp=function(){this._base?.classList.toggle("with-menu",null!==this.querySelector("m3e-fab-menu-trigger"))},Gp.styles=[Up,Yp,Vp],t([h(".base")],Gp.prototype,"_base",void 0),t([h(".elevation")],Gp.prototype,"_elevation",void 0),t([h(".focus-ring")],Gp.prototype,"_focusRing",void 0),t([h(".state-layer")],Gp.prototype,"_stateLayer",void 0),t([h(".ripple")],Gp.prototype,"_ripple",void 0),t([m({reflect:!0})],Gp.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],Gp.prototype,"lowered",void 0),t([m({reflect:!0})],Gp.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],Gp.prototype,"extended",void 0),Gp=t([$("m3e-fab")],Gp);let eu=class extends(q(R(Y(P(f(r,"menuitem"),!0))))){constructor(){super(...arguments),Xp.add(this),Jp.set(this,t=>e(this,Xp,"m",Qp).call(this,t))}get menu(){return this.closest("m3e-fab-menu")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Jp,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Jp,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-elevation class="elevation" ?disabled="${this.disabled}"></m3e-elevation><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper"><slot class="icon" name="icon" aria-hidden="true"></slot><div class="label"><slot></slot></div></div></div>`}};var tu,au,ou,iu,ru,su,nu,lu,cu,du,hu,mu,pu,uu;Jp=new WeakMap,Xp=new WeakSet,Qp=function(e){e.defaultPrevented||this.menu?.hide(!0)},eu.styles=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; height: var(--m3e-fab-menu-item-height, 3.5rem); font-size: var(--m3e-fab-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-fab-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-fab-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-fab-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); border-radius: var(--m3e-fab-menu-item-shape, ${v.shape.corner.full}); } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: var(--_fab-menu-item-color); } :host(:not(:disabled)) .base { background-color: var(--_fab-menu-item-container-color); --m3e-state-layer-hover-color: var(--_fab-menu-background-hover-color); --m3e-state-layer-focus-color: var(--_fab-menu-background-focus-color); --m3e-ripple-color: var(--_fab-menu-ripple-color); } :host(:disabled) .base { background-color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-container-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-container-opacity, 10%), transparent ); } :host(:disabled) .label, :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-fab-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-fab-menu-item-disabled-opacity, 38%), transparent ); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-fab-menu-item-leading-space, 1.5rem); padding-inline-end: var(--m3e-fab-menu-item-trailing-space, 1.5rem); column-gap: var(--m3e-fab-menu-item-spacing, 0.5rem); } .label { justify-self: center; flex: 1 1 auto; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { font-size: var(--m3e-fab-menu-item-icon-size, 1.5rem); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } ::slotted([slot="icon"]) { font-size: inherit !important; flex: none; } ::slotted(svg[slot="icon"]) { width: 1em; height: 1em; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (prefers-reduced-motion) { .base, .label, .icon { transition: none; } } @media (forced-colors: active) { .base, .label, .icon { transition: none; } :host(:not(:disabled)) .base { background-color: Menu; } :host(:not(:disabled)) .label, :host(:not(:disabled)) .icon { color: MenuText; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } }`,t([h(".elevation")],eu.prototype,"_elevation",void 0),t([h(".focus-ring")],eu.prototype,"_focusRing",void 0),t([h(".state-layer")],eu.prototype,"_stateLayer",void 0),t([h(".ripple")],eu.prototype,"_ripple",void 0),eu=t([$("m3e-fab-menu-item")],eu);let vu=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),tu.add(this),au.set(this,void 0),ou.set(this,void 0),iu.set(this,void 0),ru.set(this,(new He).withWrap().withHomeAndEnd().withVerticalOrientation()),su.set(this,t=>e(this,tu,"m",hu).call(this,t)),nu.set(this,t=>e(this,tu,"m",mu).call(this,t)),lu.set(this,new ve(this,{target:null,callback:()=>this.hide()})),cu.set(this,t=>{"closed"===t.newState?(e(this,iu,"f")?.call(this),a(this,iu,void 0,"f")):setTimeout(()=>{e(this,ru,"f").setActiveItem(e(this,ru,"f").items.find(e=>!e.disabled))},40)}),this.variant="primary"}get isOpen(){return void 0!==e(this,ou,"f")}async show(t){e(this,ou,"f")&&e(this,ou,"f")!==t&&this.hide(),e(this,iu,"f")?.call(this),a(this,iu,await qe(this,t,{position:"top-end",inline:!0,shift:"main",flip:!0,offset:8},(e,t,a)=>{k(this,"-right",a.includes("end")),k(this,"-left",a.includes("start")),"rtl"===Ve.current?(this.style.right=window.innerWidth-e-this.clientWidth+"px",this.style.left=""):(this.style.left=`${e}px`,this.style.right=""),this.style.top=`${t}px`}),"f"),this.showPopover(),a(this,ou,t,"f"),e(this,ou,"f").ariaExpanded="true",e(this,lu,"f").observe(e(this,ou,"f")),e(this,tu,"m",pu).call(this)}hide(t=!1){e(this,iu,"f")?.call(this),a(this,iu,void 0,"f"),e(this,ou,"f")&&(e(this,ou,"f").ariaExpanded="false",t&&e(this,ou,"f").focus(),e(this,tu,"m",uu).call(this),e(this,lu,"f").unobserve(e(this,ou,"f")),a(this,ou,void 0,"f")),this.hidePopover()}async toggle(t){e(this,ou,"f")?this.hide():await this.show(t)}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,su,"f")),this.addEventListener("toggle",e(this,cu,"f")),document.addEventListener("click",e(this,nu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,su,"f")),this.removeEventListener("toggle",e(this,cu,"f")),document.removeEventListener("click",e(this,nu,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,tu,"m",du)}"></slot></div>`}};au=new WeakMap,ou=new WeakMap,iu=new WeakMap,ru=new WeakMap,su=new WeakMap,nu=new WeakMap,lu=new WeakMap,cu=new WeakMap,tu=new WeakSet,du=function(){const{added:t}=e(this,ru,"f").setItems([...this.querySelectorAll("m3e-fab-menu-item")]);e(this,ru,"f").activeItem||e(this,ru,"f").updateActiveItem(t.find(e=>!e.disabled))},hu=function(t){switch(t.key){case"Tab":this.hide();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,ru,"f").onKeyDown(t)}},mu=function(t){t.composedPath().some(t=>t instanceof eu||t===e(this,ou,"f"))||this.hide()},pu=function(){const t=e(this,ou,"f")?.closest("m3e-fab");t&&(a(this,au,t.tabIndex,"f"),t.addEventListener("keydown",e(this,su,"f")),e(this,ru,"f").setItems([...e(this,ru,"f").items,t]))},uu=function(){const t=e(this,ou,"f")?.closest("m3e-fab");t&&(void 0!==e(this,au,"f")&&(t.tabIndex=e(this,au,"f")),t.removeEventListener("keydown",e(this,su,"f")),e(this,ru,"f").setItems([...e(this,ru,"f").items.filter(e=>e!==t)]))},vu.styles=i`:host { position: absolute; flex-direction: column; row-gap: var(--m3e-fab-menu-spacing, 0.25rem); padding: unset; margin: unset; border: unset; overflow: visible; max-width: var(--m3e-fab-menu-max-width, 17.5rem); opacity: 0; background-color: transparent; display: none; } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.spring.fastEffects}, \n transform ${v.motion.spring.fastSpatial},\n overlay ${v.motion.spring.fastEffects} allow-discrete,\n display ${v.motion.spring.fastEffects} allow-discrete`)}; } .base { display: contents; } :host([variant="primary"]) .base { --_fab-menu-item-color: var(--m3e-primary-fab-color, ${v.color.onPrimaryContainer}); --_fab-menu-item-container-color: var(--m3e-primary-fab-container-color, ${v.color.primaryContainer}); --_fab-menu-background-hover-color: var(--m3e-primary-fab-hover-color, ${v.color.onPrimaryContainer}); --_fab-menu-background-focus-color: var(--m3e-primary-fab-focus-color, ${v.color.onPrimaryContainer}); --_fab-menu-ripple-color: var(--m3e-primary-fab-ripple-color, ${v.color.onPrimaryContainer}); } :host([variant="secondary"]) .base { --_fab-menu-item-color: var(--m3e-secondary-fab-color, ${v.color.onSecondaryContainer}); --_fab-menu-item-container-color: var( --m3e-secondary-fab-container-color, ${v.color.secondaryContainer} ); --_fab-menu-background-hover-color: var( --m3e-secondary-fab-hover-color, ${v.color.onSecondaryContainer} ); --_fab-menu-background-focus-color: var( --m3e-secondary-fab-focus-color, ${v.color.onSecondaryContainer} ); --_fab-menu-ripple-color: var(--m3e-secondary-fab-ripple-color, ${v.color.onSecondaryContainer}); } :host([variant="tertiary"]) .base { --_fab-menu-item-color: var(--m3e-tertiary-fab-color, ${v.color.onTertiaryContainer}); --_fab-menu-item-container-color: var(--m3e-tertiary-fab-container-color, ${v.color.tertiaryContainer}); --_fab-menu-background-hover-color: var(--m3e-tertiary-fab-hover-color, ${v.color.onTertiaryContainer}); --_fab-menu-background-focus-color: var(--m3e-tertiary-fab-focus-color, ${v.color.onTertiaryContainer}); --_fab-menu-ripple-color: var(--m3e-tertiary-fab-ripple-color, ${v.color.onTertiaryContainer}); } :host { transform: scaleX(0.8); } :host(:state(-left)) { align-items: flex-start; transform-origin: left; } :host(:state(-right)) { align-items: flex-end; transform-origin: right; } :host(:popover-open) { transform: scaleX(1); display: inline-flex; opacity: 1; } :host::backdrop { background-color: transparent; } @starting-style { :host(:popover-open) { opacity: 0; } :host(:popover-open) { transform: scaleX(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { border-radius: ${v.shape.corner.medium}; outline: 1px solid MenuText; background-color: Menu; } }`,t([m({reflect:!0})],vu.prototype,"variant",void 0),vu=t([$("m3e-fab-menu")],vu);let bu=class extends(b(E)){get menu(){return this.control instanceof vu?this.control:null}attach(e){super.attach(e),this.parentElement&&e instanceof vu&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",e.id&&Pe(this.parentElement,"aria-controls",e.id))}detach(){this.parentElement&&(this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null,this.control?.id&&Ie(this.parentElement,"aria-controls",this.control.id)),super.detach()}_onClick(){this.parentElement&&this.menu?.toggle(this.parentElement)}};bu=t([$("m3e-fab-menu-trigger")],bu);
7
43
  /**
8
44
  * Adapted from Angular Material Form Field Control
9
45
  * Source: https://github.com/angular/components/blob/main/src/material/form-field/form-field-control.ts
@@ -12,7 +48,7 @@ import{__classPrivateFieldGet as e,__decorate as t,__classPrivateFieldSet as a}f
12
48
  * Copyright (c) 2025 Google LLC
13
49
  * See LICENSE file in the project root for full license text.
14
50
  */
15
- const Xm=["m3e-input-chip-set","m3e-select"];function Ym(e){return e instanceof HTMLElement&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||Xm.includes(e.tagName.toLowerCase()))}function Jm(e){for(const t of e.assignedElements({flatten:!0})){if(Ym(t))return t;const e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;e.nextNode();)if(Ym(e.currentNode))return e.currentNode}return null}
51
+ const fu=["m3e-input-chip-set","m3e-select"];function gu(e){return e instanceof HTMLElement&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||fu.includes(e.tagName.toLowerCase()))}function yu(e){for(const t of e.assignedElements({flatten:!0})){if(gu(t))return t;const e=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT);for(;e.nextNode();)if(gu(e.currentNode))return e.currentNode}return null}
16
52
  /**
17
53
  * Adapted from Angular Material Form Field
18
54
  * Source: https://github.com/angular/components/blob/main/src/material/form-field/form-field.ts
@@ -20,7 +56,7 @@ const Xm=["m3e-input-chip-set","m3e-select"];function Ym(e){return e instanceof
20
56
  * @license MIT
21
57
  * Copyright (c) 2025 Google LLC
22
58
  * See LICENSE file in the project root for full license text.
23
- */var Qm,ep,tp,ap,op,ip,rp,sp,np,lp,cp,dp,hp,mp,pp,up,vp,bp,fp,gp,yp,$p,xp,wp,kp,Cp,Sp,_p,Lp,zp;let Ep=class extends(M(P(r))){constructor(){super(),Qm.add(this),ep.set(this,null),tp.set(this,void 0),ap.set(this,()=>e(this,Qm,"m",Cp).call(this)),op.set(this,()=>e(this,Qm,"m",wp).call(this)),ip.set(this,new x(this,{target:null,config:{attributeFilter:["disabled","readonly","required"]},callback:()=>this.notifyControlStateChange()})),rp.set(this,new A(this,{target:null,callback:()=>e(this,Qm,"m",yp).call(this)})),sp.set(this,new j(this,{target:null,callback:t=>{t=t&&!(e(this,ep,"f")?.disabled??1),w(this,"-no-animate",!1),a(this,dp,t,"f"),t?w(this,"-float-label",!0):(this._invalid=!(e(this,ep,"f")?.checkValidity?.()??1),this.notifyControlStateChange())}})),np.set(this,new x(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,Qm,"m",Lp).call(this)})),lp.set(this,new x(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,Qm,"m",zp).call(this)})),cp.set(this,new K(this,{target:null,callback:t=>w(this,"-pressed",t&&!(e(this,ep,"f")?.disabled??1))})),dp.set(this,!1),this._pseudoLabel="",this._required=!1,this._invalid=!1,this._validationMessage="",hp.set(this,""),mp.set(this,""),this.variant="outlined",this.hideRequiredMarker=!1,this.hideSubscript="auto",this.floatLabel="auto",new ie(this,{callback:()=>w(this,"-no-animate",!1)})}get menuAnchor(){return this._base}get control(){return e(this,ep,"f")}notifyControlStateChange(t=!1){this._required=!0===e(this,ep,"f")?.required,w(this,"-required",this._required),w(this,"-disabled",!0===e(this,ep,"f")?.disabled),w(this,"-readonly",pe(e(this,ep,"f"))&&!0===e(this,ep,"f").readOnly),"auto"===this.floatLabel&&w(this,"-float-label",e(this,Qm,"a",pp)||e(this,dp,"f")),t&&(this._invalid=!(e(this,ep,"f")?.checkValidity?.()??1)),w(this,"-invalid",this._invalid),this._validationMessage=e(this,ep,"f")?.validationMessage??"",this.isUpdatePending||this.performUpdate()}connectedCallback(){super.connectedCallback(),w(this,"-no-animate",!0)}disconnectedCallback(){super.disconnectedCallback(),e(this,Qm,"m",Sp).call(this,null)}reconnectedCallback(){super.reconnectedCallback(),e(this,Qm,"m",up).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Qm,"m",up).call(this)}update(t){super.update(t),t.has("_invalid")&&e(this,ep,"f")&&(e(this,ep,"f").ariaInvalid=this._invalid?"true":null,e(this,mp,"f")&&(this._invalid?Ae.describe(e(this,ep,"f"),e(this,mp,"f")):Ae.removeDescription(e(this,ep,"f"),e(this,mp,"f"))))}render(){return s`<div class="base" @click="${e(this,Qm,"m",xp)}">${"outlined"===this.variant?s`<div class="outline" aria-hidden="true"><div class="outline-start"></div><div class="outline-notch"><div class="pseudo-label">${this._pseudoLabel} ${!this.hideRequiredMarker&&this._required?s`&nbsp;*`:n}</div></div><div class="outline-end"></div></div>`:n}<div class="prefix"><slot name="prefix" @slotchange="${e(this,Qm,"m",fp)}"></slot></div><div class="content"><span class="prefix-text"><slot name="prefix-text"></slot></span><span class="input"><slot @slotchange="${e(this,Qm,"m",$p)}" @change="${e(this,Qm,"m",kp)}"></slot></span><span class="suffix-text"><slot name="suffix-text"></slot></span><span class="label"><slot name="label" @slotchange="${e(this,Qm,"m",bp)}"></slot>${!this.hideRequiredMarker&&this._required?s`<span class="required-marker" aria-hidden="true">&nbsp;*</span>`:n}</span></div><div class="suffix" @click="${e(this,Qm,"m",vp)}" @focusin="${e(this,Qm,"m",vp)}" @focusout="${e(this,Qm,"m",vp)}" @pointerdown="${e(this,Qm,"m",vp)}" @keydown="${e(this,Qm,"m",vp)}" @keyup="${e(this,Qm,"m",vp)}"><slot name="suffix" @slotchange="${e(this,Qm,"m",gp)}"></slot></div></div><span class="subscript" aria-hidden="true"><span class="error"><slot name="error">${this._validationMessage}</slot></span><span class="hint"><slot name="hint"></slot></span></span>`}};ep=new WeakMap,tp=new WeakMap,ap=new WeakMap,op=new WeakMap,ip=new WeakMap,rp=new WeakMap,sp=new WeakMap,np=new WeakMap,lp=new WeakMap,cp=new WeakMap,dp=new WeakMap,hp=new WeakMap,mp=new WeakMap,Qm=new WeakSet,pp=function(){return void 0!==e(this,ep,"f")?.shouldLabelFloat?!0===e(this,ep,"f").shouldLabelFloat:"string"==typeof e(this,ep,"f")?.value&&e(this,ep,"f").value.length>0},up=function(){e(this,sp,"f").observe(this._base),e(this,cp,"f").observe(this._base),e(this,np,"f").observe(this._hint),e(this,Qm,"m",Lp).call(this),e(this,lp,"f").observe(this._error),e(this,Qm,"m",zp).call(this)},vp=function(e){e.stopImmediatePropagation(),e.stopPropagation()},bp=function(e){const t=e.target.assignedElements({flatten:!0});w(this,"-with-label",t.length>0),this._pseudoLabel=t[0]?.textContent??""},fp=function(t){w(this,"-with-prefix",g(t.target)),e(this,rp,"f").observe(this._prefix)},gp=function(e){w(this,"-with-suffix",g(e.target))},yp=function(){"outlined"===this.variant&&this._base.style.setProperty("--_prefix-width",`${this._prefix.clientWidth}px`)},$p=function(t){e(this,Qm,"m",Sp).call(this,Jm(t.target))},xp=function(t){!e(this,ep,"f")||e(this,dp,"f")||e(this,ep,"f").disabled||(e(this,ep,"f").onContainerClick?e(this,ep,"f").onContainerClick(t):e(this,ep,"f").focus())},wp=function(){this._invalid=!0,this.notifyControlStateChange()},kp=function(){this._invalid=!(e(this,ep,"f")?.checkValidity?.()??1),this.notifyControlStateChange()},Cp=function(){this._invalid=!1,setTimeout(()=>this.notifyControlStateChange())},Sp=function(t){if(e(this,ep,"f")!==t&&(e(this,ep,"f")&&(e(this,hp,"f")&&Ae.removeDescription(e(this,ep,"f"),e(this,hp,"f")),e(this,mp,"f")&&Ae.removeDescription(e(this,ep,"f"),e(this,mp,"f")),e(this,ip,"f").unobserve(e(this,ep,"f")),e(this,ep,"f").removeEventListener("invalid",e(this,op,"f")),e(this,ep,"f").form?.removeEventListener("reset",e(this,ap,"f")),e(this,tp,"f")?.call(this),a(this,tp,void 0,"f")),a(this,ep,t,"f"),["INPUT","TEXTAREA"].includes(e(this,ep,"f")?.tagName??"")?this._base.style.setProperty("--_form-field-cursor","text"):this._base.style.removeProperty("--_form-field-cursor"),w(this,"-with-select","M3E-SELECT"===e(this,ep,"f")?.tagName),O(this,"-with-select")&&this._base.style.setProperty("--_form-field-cursor","pointer"),e(this,ep,"f"))){e(this,ip,"f").observe(e(this,ep,"f")),e(this,ep,"f").addEventListener("invalid",e(this,op,"f")),e(this,ep,"f").form?.addEventListener("reset",e(this,ap,"f")),e(this,ep,"f").removeAttribute("aria-invalid"),e(this,hp,"f")&&Ae.describe(e(this,ep,"f"),e(this,hp,"f")),this.notifyControlStateChange();const t=e(this,ep,"f").tagName.toLowerCase();t.startsWith("m3e-")&&!customElements.get(t)?customElements.whenDefined(t).then(()=>e(this,Qm,"m",_p).call(this)):e(this,Qm,"m",_p).call(this)}},_p=function(){e(this,ep,"f")&&a(this,tp,ue(e(this,ep,"f"),"value",{set:(e,t)=>{t(e),this.notifyControlStateChange(!0)}}),"f")},Lp=function(){const t=ce(this._hint,!0);t!==e(this,hp,"f")&&(e(this,ep,"f")&&e(this,hp,"f")&&Ae.removeDescription(e(this,ep,"f"),e(this,hp,"f")),a(this,hp,t,"f"),e(this,ep,"f")&&e(this,hp,"f")&&Ae.describe(e(this,ep,"f"),e(this,hp,"f")))},zp=function(){const t=ce(this._error,!0);t!==e(this,mp,"f")&&(e(this,ep,"f")&&e(this,mp,"f")&&Ae.removeDescription(e(this,ep,"f"),e(this,mp,"f")),a(this,mp,t,"f"),e(this,ep,"f")&&e(this,mp,"f")&&this._invalid&&Ae.describe(e(this,ep,"f"),e(this,mp,"f")))},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) input::placeholder, m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) textarea::placeholder { opacity: 0; transition: opacity 0s; } m3e-form-field[variant="outlined"] m3e-input-chip-set { margin-block: calc(calc(3.5rem + ${v.density.calc(-2)}) / 4); } @media (prefers-reduced-motion) { m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { transition: none !important; } }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),Ep.styles=i`:host { display: inline-flex; flex-direction: column; vertical-align: middle; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); width: var(--m3e-form-field-width, 14.5rem); color: var(--_form-field-color); } :host(:not(:state(-disabled))) .base { cursor: var(--_form-field-cursor); } .base { display: flex; align-items: center; position: relative; min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); --_form-field-label-line-height: var( --m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight} ); } .content { display: flex; align-items: center; position: relative; flex: 1 1 auto; min-width: 0; min-height: var(--m3e-form-field-icon-size, 1.5rem); } .prefix, .suffix { display: flex; align-items: center; position: relative; user-select: none; flex: none; font-size: var(--m3e-form-field-icon-size, 1.5rem); } .prefix-text, .suffix-text { opacity: 1; transition: opacity ${v.motion.duration.extraLong1}; user-select: none; flex: none; } .input { display: inline-flex; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; } .label { display: flex; position: absolute; pointer-events: none; user-select: none; top: 0; left: 0; right: 0; font-size: var(--m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-label-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-label-tracking, ${v.typescale.standard.body.small.tracking}); color: var(--_form-field-label-color, inherit); transition: ${o(`top ${v.motion.duration.short4}, \n font-size ${v.motion.duration.short4}, \n line-height ${v.motion.duration.short4}`)}; } :host(:state(-with-select)) .label { margin-inline-end: 1.5rem; } ::slotted([slot="label"]) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subscript { display: inline-flex; width: 100%; margin-top: 0.25rem; font-size: var(--m3e-form-field-subscript-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-subscript-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-subscript-tracking, ${v.typescale.standard.body.small.tracking}); min-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); color: var(--m3e-form-field-subscript-color, ${v.color.onSurfaceVariant}); } .error, .hint { flex: 1 1 auto; } :host([hide-subscript="always"]) .subscript { display: none; } :host([hide-subscript="auto"]:not(:state(-invalid))) .subscript { opacity: 0; margin-top: 0px; margin-bottom: 0.25rem; transition: ${o(`opacity ${v.motion.duration.short4}, \n margin-top ${v.motion.duration.short4}, \n margin-bottom ${v.motion.duration.short4}`)}; } :host([hide-subscript="auto"]:not(:state(-invalid)):focus-within) .subscript, :host([hide-subscript="auto"]:not(:state(-invalid)):state(-pressed)) .subscript { opacity: 1; margin-top: 0.25rem; margin-bottom: 0; } :host(:state(-invalid)) .hint { display: none; } :host(:not(:state(-invalid))) .error { display: none; } ::slotted(input), ::slotted(textarea), ::slotted(select) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(textarea) { scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } ::slotted(m3e-select), ::slotted(m3e-input-chip-set) { flex: 1 1 auto; min-width: 0; } :host([float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { font-size: inherit; } :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .prefix-text, :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .suffix-text { opacity: 0; transition: opacity 0s; } .prefix { margin-inline-start: 1rem; } :host(:state(-with-prefix)) .prefix { margin-inline-end: 1rem; margin-inline-start: 0.75rem; } .suffix { margin-inline-end: 1rem; } :host(:state(-with-suffix)) .suffix { margin-inline-start: 0.25rem; margin-inline-end: 0.5rem; } :host(:state(-with-suffix):state(-with-select)) .suffix { margin-inline-start: unset; } :host(:state(-with-select)) .suffix-text { display: none; } :host([variant="outlined"]) .label { margin-top: calc(0px - var(--_form-field-label-line-height) / 2); } :host([variant="outlined"]) .outline { position: absolute; display: flex; pointer-events: none; left: 0; top: 0; bottom: 0; right: 0; } :host([variant="outlined"]) .pseudo-label { visibility: hidden; margin-inline-end: 0.5rem; font-size: var(--_form-field-label-font-size); line-height: var(--_form-field-label-line-height); letter-spacing: var(--_form-field-label-tracking); max-width: 100%; transition-property: max-width, margin-inline-end; transition-duration: 1ms; } :host([variant="outlined"]:state(-required):not([hide-required-marker])) .pseudo-label { margin-inline-end: 0.25rem; } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .pseudo-label { max-width: 0; margin-inline-end: 0px; transition-delay: ${v.motion.duration.short2}; } :host([variant="outlined"]) .outline-start, :host([variant="outlined"]) .outline-notch, :host([variant="outlined"]) .outline-end { box-sizing: border-box; border-width: var(--_form-field-outline-size, 1px); border-color: var(--_form-field-outline-color); transition: border-color ${v.motion.duration.short4}; } :host([variant="outlined"]:not(:state(-with-label))) .outline-notch { display: none; } :host([variant="outlined"]) .outline-start { min-width: 0.75rem; border-top-style: solid; border-inline-start-style: solid; border-bottom-style: solid; border-start-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]) .outline-notch { border-bottom-style: solid; } :host([variant="outlined"]) .outline-end { flex-grow: 1; min-width: 1rem; border-top-style: solid; border-inline-end-style: solid; border-bottom-style: solid; border-start-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]:state(-with-prefix)) .outline-start { min-width: calc(1.25rem + var(--_prefix-width, 0px) + 0.25rem); } :host([variant="outlined"]:not(:state(-disabled))) .base:hover .outline, :host([variant="outlined"]:not(:state(-disabled)):focus-within) .outline, :host([variant="outlined"]:not(:state(-disabled)):state(-pressed)) .outline { --_form-field-outline-size: 2px; } :host([variant="outlined"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="outlined"]) .content { min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { margin-top: unset; line-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="filled"]) .base { --_select-arrow-margin-top: calc( 0px - calc(1rem / max(calc(0 - calc(var(--md-sys-density-scale, 0) + var(--md-sys-density-scale, 0))), 1)) ); } :host([variant="filled"]) .base::before { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; border-bottom-style: solid; border-width: 1px; border-radius: var(--m3e-form-field-container-shape, ${v.shape.corner.extraSmallTop}); border-color: var(--_form-field-outline-color); background-color: var(--_form-field-container-color); } :host([variant="filled"]:not(:state(-disabled))) .base:hover::before, :host([variant="filled"]:not(:state(-disabled)):focus-within) .base::before, :host([variant="filled"]:not(:state(-disabled)):state(-pressed)) .base::before { border-width: 3px; } :host([variant="filled"]) .base::after { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--_form-field-hover-container-color); transition: background-color ${v.motion.duration.short4}; } :host([variant="filled"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="filled"]) .content { padding-top: calc(1.5rem + ${v.density.calc(-2)}); margin-bottom: 0.5rem; } :host([variant="filled"]) .label { top: calc(0.5rem + ${v.density.calc(-2)}); } :host([variant="filled"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { top: 0px; line-height: calc(3.5rem + ${v.density.calc(-2)} - 0.0625rem); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host(:not(:state(-disabled)):not(:focus-within):not(:state(-pressed))) .base:hover { --_form-field-hover-container-color: color-mix( in srgb, var(--m3e-form-field-hover-container-color, ${v.color.onSurface}) var(--m3e-form-field-hover-container-opacity, 8%), transparent ); } :host(:not(:state(-disabled)):not(:state(-invalid))) { color: var(--m3e-form-field-color, ${v.color.onSurface}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.outline}); } :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.onSurfaceVariant}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base { --_form-field-outline-color: var(--m3e-form-field-focused-outline-color, ${v.color.primary}); --_form-field-label-color: var(--m3e-form-field-focused-color, ${v.color.primary}); } :host(:not(:state(-disabled))) .base { --_form-field-container-color: var( --m3e-form-field-container-color, ${v.color.surfaceContainerHighest} ); } :host(:not(:state(-disabled)):state(-invalid)) .base { --_form-field-label-color: var(--m3e-form-field-invalid-color, ${v.color.error}); --_form-field-outline-color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:not(:state(-disabled)):state(-invalid)) .subscript { color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:state(-disabled)) { color: color-mix( in srgb, var(--m3e-form-field-disabled-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-opacity, 38%), transparent ); } :host(:state(-disabled)) .base { --_form-field-container-color: color-mix( in srgb, var(--m3e-form-field-disabled-container-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-container-opacity, 4%), transparent ); } :host(:state(-no-animate)) *, :host(:state(-no-animate)) *::before, :host(:state(-no-animate)) *::after { transition: none !important; } @media (forced-colors: active) { :host([variant="filled"]) .base::after { transition: none; } :host { --_form-field-outline-color: CanvasText; } :host(:state(-disabled)) { --_form-field-input-color: GrayText; --_form-field-color: GrayText; --_form-field-label-color: GrayText; --_form-field-outline-color: GrayText; } } @media (prefers-reduced-motion) { .base::before, .prefix-text, .suffix-text, .label, .subscript, .outline-start, .outline-notch, .outline-end, .pseudo-label { transition: none !important; } }`,t([h(".base")],Ep.prototype,"_base",void 0),t([h(".prefix")],Ep.prototype,"_prefix",void 0),t([h(".error")],Ep.prototype,"_error",void 0),t([h(".hint")],Ep.prototype,"_hint",void 0),t([u()],Ep.prototype,"_pseudoLabel",void 0),t([u()],Ep.prototype,"_required",void 0),t([u()],Ep.prototype,"_invalid",void 0),t([u()],Ep.prototype,"_validationMessage",void 0),t([m({reflect:!0})],Ep.prototype,"variant",void 0),t([m({attribute:"hide-required-marker",type:Boolean,reflect:!0})],Ep.prototype,"hideRequiredMarker",void 0),t([m({attribute:"hide-subscript",reflect:!0})],Ep.prototype,"hideSubscript",void 0),t([m({attribute:"float-label",reflect:!0})],Ep.prototype,"floatLabel",void 0),Ep=t([$("m3e-form-field")],Ep);let Mp=class extends r{constructor(){super(...arguments),this.emphasized=!1,this.variant="display",this.size="medium"}update(e){super.update(e),e.has("level")&&(this.ariaLevel=void 0!==this.level?`${this.level}`:null,this.role=this.ariaLevel?"heading":null)}render(){return s`<slot></slot>`}};Mp.styles=i`:host { display: block; } :host([variant="display"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.display.large.fontSize}; font-weight: ${v.typescale.standard.display.large.fontWeight}; line-height: ${v.typescale.standard.display.large.lineHeight}; letter-spacing: ${v.typescale.standard.display.large.tracking}; } :host([variant="display"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.display.medium.fontSize}; font-weight: ${v.typescale.standard.display.medium.fontWeight}; line-height: ${v.typescale.standard.display.medium.lineHeight}; letter-spacing: ${v.typescale.standard.display.medium.tracking}; } :host([variant="display"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.display.small.fontSize}; font-weight: ${v.typescale.standard.display.small.fontWeight}; line-height: ${v.typescale.standard.display.small.lineHeight}; letter-spacing: ${v.typescale.standard.display.small.tracking}; } :host([variant="headline"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.large.fontSize}; font-weight: ${v.typescale.standard.headline.large.fontWeight}; line-height: ${v.typescale.standard.headline.large.lineHeight}; letter-spacing: ${v.typescale.standard.headline.large.tracking}; } :host([variant="headline"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.medium.fontSize}; font-weight: ${v.typescale.standard.headline.medium.fontWeight}; line-height: ${v.typescale.standard.headline.medium.lineHeight}; letter-spacing: ${v.typescale.standard.headline.medium.tracking}; } :host([variant="headline"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.small.fontSize}; font-weight: ${v.typescale.standard.headline.small.fontWeight}; line-height: ${v.typescale.standard.headline.small.lineHeight}; letter-spacing: ${v.typescale.standard.headline.small.tracking}; } :host([variant="title"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.title.large.fontSize}; font-weight: ${v.typescale.standard.title.large.fontWeight}; line-height: ${v.typescale.standard.title.large.lineHeight}; letter-spacing: ${v.typescale.standard.title.large.tracking}; } :host([variant="title"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.title.medium.fontSize}; font-weight: ${v.typescale.standard.title.medium.fontWeight}; line-height: ${v.typescale.standard.title.medium.lineHeight}; letter-spacing: ${v.typescale.standard.title.medium.tracking}; } :host([variant="title"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.title.small.fontSize}; font-weight: ${v.typescale.standard.title.small.fontWeight}; line-height: ${v.typescale.standard.title.small.lineHeight}; letter-spacing: ${v.typescale.standard.title.small.tracking}; } :host([variant="label"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.label.large.fontSize}; font-weight: ${v.typescale.standard.label.large.fontWeight}; line-height: ${v.typescale.standard.label.large.lineHeight}; letter-spacing: ${v.typescale.standard.label.large.tracking}; } :host([variant="label"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.label.medium.fontSize}; font-weight: ${v.typescale.standard.label.medium.fontWeight}; line-height: ${v.typescale.standard.label.medium.lineHeight}; letter-spacing: ${v.typescale.standard.label.medium.tracking}; } :host([variant="label"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.label.small.fontSize}; font-weight: ${v.typescale.standard.label.small.fontWeight}; line-height: ${v.typescale.standard.label.small.lineHeight}; letter-spacing: ${v.typescale.standard.label.small.tracking}; } :host([variant="display"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.display.large.fontSize}; font-weight: ${v.typescale.emphasized.display.large.fontWeight}; line-height: ${v.typescale.emphasized.display.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.large.tracking}; } :host([variant="display"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.display.medium.fontSize}; font-weight: ${v.typescale.emphasized.display.medium.fontWeight}; line-height: ${v.typescale.emphasized.display.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.medium.tracking}; } :host([variant="display"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.display.small.fontSize}; font-weight: ${v.typescale.emphasized.display.small.fontWeight}; line-height: ${v.typescale.emphasized.display.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.small.tracking}; } :host([variant="headline"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.headline.large.fontSize}; font-weight: ${v.typescale.emphasized.headline.large.fontWeight}; line-height: ${v.typescale.emphasized.headline.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.large.tracking}; } :host([variant="headline"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.headline.medium.fontSize}; font-weight: ${v.typescale.emphasized.headline.medium.fontWeight}; line-height: ${v.typescale.emphasized.headline.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.medium.tracking}; } :host([variant="headline"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.headline.small.fontSize}; font-weight: ${v.typescale.emphasized.headline.small.fontWeight}; line-height: ${v.typescale.emphasized.headline.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.small.tracking}; } :host([variant="title"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.title.large.fontSize}; font-weight: ${v.typescale.emphasized.title.large.fontWeight}; line-height: ${v.typescale.emphasized.title.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.large.tracking}; } :host([variant="title"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.title.medium.fontSize}; font-weight: ${v.typescale.emphasized.title.medium.fontWeight}; line-height: ${v.typescale.emphasized.title.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.medium.tracking}; } :host([variant="title"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.title.small.fontSize}; font-weight: ${v.typescale.emphasized.title.small.fontWeight}; line-height: ${v.typescale.emphasized.title.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.small.tracking}; } :host([variant="label"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.label.large.fontSize}; font-weight: ${v.typescale.emphasized.label.large.fontWeight}; line-height: ${v.typescale.emphasized.label.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.large.tracking}; } :host([variant="label"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.label.medium.fontSize}; font-weight: ${v.typescale.emphasized.label.medium.fontWeight}; line-height: ${v.typescale.emphasized.label.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.medium.tracking}; } :host([variant="label"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.label.small.fontSize}; font-weight: ${v.typescale.emphasized.label.small.fontWeight}; line-height: ${v.typescale.emphasized.label.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.small.tracking}; }`,t([m({type:Boolean,reflect:!0})],Mp.prototype,"emphasized",void 0),t([m({reflect:!0})],Mp.prototype,"variant",void 0),t([m({reflect:!0})],Mp.prototype,"size",void 0),t([m({type:Number})],Mp.prototype,"level",void 0),Mp=t([$("m3e-heading")],Mp);let Tp=class extends(f(r,"img")){constructor(){super(...arguments),this.name="",this.variant="outlined",this.filled=!1,this.grade="medium",this.weight=400,this.opticalSize=24}connectedCallback(){this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby")||this.hasAttribute("aria-hidden")||(this.ariaHidden="true"),super.connectedCallback()}updated(e){super.updated(e),e.has("filled")&&this._icon?.style.setProperty("--_icon-fill",this.filled?"1":"0"),e.has("grade")&&this._icon?.style.setProperty("--_icon-grade","low"===this.grade?"-25":"high"===this.grade?"200":"0"),e.has("weight")&&this._icon?.style.setProperty("--_icon-weight",`${this.weight}`),e.has("opticalSize")&&this._icon?.style.setProperty("--_icon-optical-size",`${this.opticalSize}`)}render(){return s`<div class="icon" aria-hidden="true">${this.name}</div>`}};Tp.styles=i`:host { display: inline-block; user-select: none; font-size: var(--m3e-icon-size, 1.5rem); width: 1em; vertical-align: middle; overflow: hidden; } .icon { font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; width: inherit; height: inherit; vertical-align: inherit; font-variation-settings: "FILL" var(--_icon-fill, 0), "wght" var(--_icon-weight, 400), "GRAD" var(--_icon-grade, 0), "opsz" var(--_icon-optical-size, 24); } :host([variant="outlined"]) .icon { font-family: "Material Symbols Outlined"; } :host([variant="rounded"]) .icon { font-family: "Material Symbols Rounded"; } :host([variant="sharp"]) .icon { font-family: "Material Symbols Sharp"; }`,t([h(".icon")],Tp.prototype,"_icon",void 0),t([m()],Tp.prototype,"name",void 0),t([m({reflect:!0})],Tp.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],Tp.prototype,"filled",void 0),t([m()],Tp.prototype,"grade",void 0),t([m({type:Number})],Tp.prototype,"weight",void 0),t([m({attribute:"optical-size",type:Number})],Tp.prototype,"opticalSize",void 0),Tp=t([$("m3e-icon")],Tp);const Pp={"extra-small":{containerHeight:o(`calc(var(--m3e-icon-button-extra-small-container-height, var(--m3e-icon-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-icon-button-extra-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-small-icon-size, var(--m3e-icon-button-icon-size, 1.25rem)) + ${v.density.calc(0)})`),shapeRound:o(`var(--m3e-icon-button-extra-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(0)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(0)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.375rem)) + ${v.density.calc(0)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.375rem)) + ${v.density.calc(0)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.625rem)) + ${v.density.calc(0)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.625rem)) + ${v.density.calc(0)})`)},small:{containerHeight:o(`calc(var(--m3e-icon-button-small-container-height, var(--m3e-icon-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-icon-button-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-small-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-1)})`),shapeRound:o(`var(--m3e-icon-button-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(-1)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(-1)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.5rem)) + ${v.density.calc(-1)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.5rem)) + ${v.density.calc(-1)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.875rem)) + ${v.density.calc(-1)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.875rem)) + ${v.density.calc(-1)})`)},medium:{containerHeight:o(`calc(var(--m3e-icon-button-medium-container-height, var(--m3e-icon-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-icon-button-medium-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-medium-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-2)})`),shapeRound:o(`var(--m3e-icon-button-medium-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-medium-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-icon-button-medium-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-icon-button-medium-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-medium-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.medium}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.75rem)) + ${v.density.calc(-2)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.75rem)) + ${v.density.calc(-2)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-medium-default-leading-space, var(--m3e-icon-button-default-leading-space, 1rem)) + ${v.density.calc(-2)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-medium-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 1rem)) + ${v.density.calc(-2)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-medium-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 1.5rem)) + ${v.density.calc(-2)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-medium-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 1.5rem)) + ${v.density.calc(-2)})`)},large:{containerHeight:o(`calc(var(--m3e-icon-button-large-container-height, var(--m3e-icon-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 2px))"),iconSize:o(`calc(var(--m3e-icon-button-large-icon-size, var(--m3e-icon-button-icon-size, 2rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 1rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 1rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 2rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 2rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 3rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 3rem)) + ${v.density.calc(-3)})`)},"extra-large":{containerHeight:o(`calc(var(--m3e-icon-button-extra-large-container-height, var(--m3e-icon-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-extra-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 3px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-large-icon-size, var(--m3e-icon-button-icon-size, 2.5rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-extra-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 2rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 2rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 3rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 3rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 4.5rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 4.5rem)) + ${v.density.calc(-3)})`)}};function Ip(e){return i`:host([size="${o(e)}"]) .base { height: ${Pp[e].containerHeight}; } :host([size="${o(e)}"][width="default"]) .wrapper { padding-inline-start: ${Pp[e].defaultLeadingSpace}; padding-inline-end: ${Pp[e].defaultTrailingSpace}; } :host([size="${o(e)}"][width="narrow"]) .wrapper { padding-inline-start: ${Pp[e].narrowLeadingSpace}; padding-inline-end: ${Pp[e].narrowTrailingSpace}; } :host([size="${o(e)}"][width="wide"]) .wrapper { padding-inline-start: ${Pp[e].wideLeadingSpace}; padding-inline-end: ${Pp[e].wideTrailingSpace}; } :host([size="${o(e)}"]) .icon { font-size: ${Pp[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${Pp[e].outlineThickness}); outline-width: ${Pp[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Pp[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${Pp[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${Pp[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Pp[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${Pp[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Pp[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Pp[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Pp[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Pp[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${Pp[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${Pp[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${Pp[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${Pp[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Pp[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var( --_button-start-shape-pressed-morph, ${Pp[e].shapePressedMorph} ); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${Pp[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${Pp[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${Pp[e].shapePressedMorph}); }`}const Wp=[Ip("extra-small"),Ip("small"),Ip("medium"),Ip("large"),Ip("extra-large")],Ap=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: auto; right: auto; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; --m3e-icon-size: 1em; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted(*) { font-size: inherit !important; flex: none; transform: var(--_icon-button-icon-transform); transform-origin: center center; transition: ${o(`transform var(--_icon-button-icon-transform-transition, ${v.motion.spring.fastEffects})`)}; } ::slotted(svg) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected"], :host([toggle][selected]) .base.with-selected-icon slot:not([name]) { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: border-radius ${v.motion.spring.fastEffects}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-large-outline-thickness, 2px)); outline-width: var(--m3e-icon-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-icon-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .wrapper, .icon { transition: none; } }`,Hp={elevated:{iconColor:o(`var(--m3e-elevated-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-icon-button-container-elevation, var(--m3e-icon-button-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-icon-button-disabled-container-elevation, var(--m3e-icon-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-hover-container-elevation, var(--m3e-icon-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-focus-container-elevation, var(--m3e-icon-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-pressed-container-elevation, var(--m3e-icon-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{iconColor:o(`var(--m3e-outlined-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-outline-color, var(--m3e-icon-button-outline-color, ${v.color.outlineVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-icon-button-disabled-outline-color, var(--m3e-icon-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-hover-outline-color, var(--m3e-icon-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-focus-outline-color, var(--m3e-icon-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-pressed-outline-color, var(--m3e-icon-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{iconColor:o(`var(--m3e-filled-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-filled-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{iconColor:o(`var(--m3e-tonal-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.secondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-tonal-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},standard:{iconColor:o(`var(--m3e-standard-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o("var(--m3e-standard-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, transparent))"),containerOpacity:o("var(--m3e-standard-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-standard-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-standard-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-standard-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-standard-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-standard-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function Op(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Hp[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${Hp[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${Hp[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${Hp[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${Hp[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${Hp[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${Hp[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${Hp[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${Hp[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${Hp[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${Hp[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${Hp[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Hp[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${Hp[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${Hp[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${Hp[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${Hp[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${Hp[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${Hp[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Hp[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Hp[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${Hp[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${Hp[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${Hp[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${Hp[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${Hp[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { outline-color: ${Hp[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${Hp[e].disabled.containerColor} ${Hp[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${Hp[e].disabled.iconColor} ${Hp[e].disabled.iconOpacity}, transparent ); }`}const Dp=[Op("standard"),Op("outlined"),Op("filled"),Op("tonal"),Op("elevated"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var Bp,qp,Fp,Vp,Rp,Np;let Up=class extends(q(F(V(R(N(U(P(f(r,"button"),!0)))))))){constructor(){super(),Bp.add(this),qp.set(this,t=>e(this,Bp,"m",Rp).call(this,t)),this.variant="standard",this.shape="rounded",this.size="small",this.width="default",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new j(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new K(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,Bp,"m",Fp).call(this),C()?e(this,Bp,"m",Vp).call(this,!0):requestAnimationFrame(()=>e(this,Bp,"m",Vp).call(this,!0))):e(this,Bp,"m",Vp).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[Z]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected" aria-hidden="true" @slotchange="${e(this,Bp,"m",Np)}"></slot>`:n}<slot class="icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,qp,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>k(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),k(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,qp,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(k(this,"-pressed"),k(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,Bp,"m",Fp).call(this,!0))}};var jp,Kp,Zp,Gp,Xp,Yp,Jp;qp=new WeakMap,Bp=new WeakSet,Fp=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},Vp=function(e){w(this,"-pressed",e),w(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),w(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),k(r,"-adjacent-pressed"))}}},Rp=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},Np=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},Up.styles=[Wp,Dp,Ap],t([h(".base")],Up.prototype,"_base",void 0),t([h(".elevation")],Up.prototype,"_elevation",void 0),t([h(".focus-ring")],Up.prototype,"_focusRing",void 0),t([h(".state-layer")],Up.prototype,"_stateLayer",void 0),t([h(".ripple")],Up.prototype,"_ripple",void 0),t([m({reflect:!0})],Up.prototype,"variant",void 0),t([m({reflect:!0})],Up.prototype,"shape",void 0),t([m({reflect:!0})],Up.prototype,"size",void 0),t([m({reflect:!0})],Up.prototype,"width",void 0),t([m({type:Boolean,reflect:!0})],Up.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],Up.prototype,"selected",void 0),t([y(40)],Up.prototype,"_handleResize",null),Up=t([$("m3e-icon-button")],Up);let Qp=class extends(M(P(f(r,"listitem")))){constructor(){super(...arguments),jp.add(this),Kp.set(this,new A(this,{target:null,callback:()=>e(this,jp,"m",Yp).call(this)})),Zp.set(this,void 0),Gp.set(this,void 0)}get leadingContentType(){return e(this,Zp,"f")}get trailingContentType(){return e(this,Gp,"f")}reconnectedCallback(){super.reconnectedCallback(),e(this,jp,"m",Xp).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,jp,"m",Xp).call(this)}render(){return s`<div class="base">${this._renderBase()}</div>`}_renderBase(){return s`<slot name="leading" @slotchange="${this._handleLeadingSlotChange}"><slot name="leading-icon" @slotchange="${this._handleLeadingSlotChange}"></slot></slot><div class="content"><slot name="overline"></slot><slot></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"><slot name="trailing-supporting-text" @slotchange="${this._handleTrailingSlotChange}"></slot><slot name="trailing-icon" @slotchange="${this._handleTrailingSlotChange}"></slot></slot>`}_handleLeadingSlotChange(t){const o=e(this,Zp,"f");a(this,Zp,e(this,jp,"m",Jp).call(this,t.target),"f"),w(this,"-has-leading",void 0!==e(this,Zp,"f")),o!==e(this,Zp,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyLeadingContentTypeChange(o,e(this,Zp,"f"))}_handleTrailingSlotChange(t){const o=e(this,Gp,"f");a(this,Gp,e(this,jp,"m",Jp).call(this,t.target),"f"),w(this,"-has-trailing",void 0!==e(this,Gp,"f")),o!==e(this,Gp,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyTrailingContentTypeChange(o,e(this,Gp,"f"))}};var eu,tu,au,ou,iu;Kp=new WeakMap,Zp=new WeakMap,Gp=new WeakMap,jp=new WeakSet,Xp=function(){const t=this.shadowRoot?.querySelector(".content");t&&e(this,Kp,"f").observe(t)},Yp=function(){const e=this.shadowRoot?.querySelector(".content")??null,t=null===e?0:ve(e);w(this,"-one-line",t<=1),w(this,"-two-line",2==t),w(this,"-three-line",t>2)},Jp=function(e){const t=e.assignedElements({flatten:!0});return t.some(e=>"VIDEO"===e.tagName)?"video":t.some(e=>"IMG"===e.tagName)?"image":t.some(e=>"M3E-AVATAR"===e.tagName)?"avatar":t.some(e=>"M3E-ICON"===e.tagName)?"icon":t.length>0?"text":void 0},Qp.styles=i`:host { display: block; } .base { display: flex; min-height: inherit; width: 100%; box-sizing: border-box; column-gap: var(--m3e-list-item-between-space, 1rem); padding-inline-start: var(--m3e-list-item-leading-space, 1rem); padding-inline-end: var(--m3e-list-item-trailing-space, 1rem); border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); transition: ${o(`border-radius ${v.motion.spring.fastEffects}, background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:state(-one-line)) { min-height: calc(var(--m3e-list-item-one-line-height, 3.5rem) + ${v.density.calc(-3)}); } :host(:state(-one-line)) .base { padding-block-start: var(--m3e-list-item-one-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-one-line-bottom-space, 0.5rem); } :host(:state(-two-line)) { min-height: calc(var(--m3e-list-item-two-line-height, 4.5rem) + ${v.density.calc(-3)}); } :host(:state(-two-line)) .base { padding-block-start: var(--m3e-list-item-two-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-two-line-bottom-space, 0.5rem); } :host(:state(-three-line)) { min-height: calc(var(--m3e-list-item-three-line-height, 5.5rem) + ${v.density.calc(-3)}); } :host(:state(-three-line)) .base { padding-block-start: var(--m3e-list-item-three-line-top-space, 0.75rem); padding-block-end: var(--m3e-list-item-three-line-bottom-space, 0.75rem); } :host(:not(:state(-three-line))) .base { align-items: center; } :host(:state(-three-line)) .base { align-items: flex-start; } :host(:not(:disabled):not([selected])) .base:not(.hover).focus-visible:not(.pressed) { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); } :host(:not(:disabled):not([selected])) .base.hover, :host(:not(:disabled):not([selected])) .base.pressed { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); } .content { flex: 1 1 auto; display: flex; flex-direction: column; align-items: unset; justify-content: unset; } ::slotted([slot="overline"]) { font-size: var(--m3e-list-item-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-list-item-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-list-item-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-list-item-overline-tracking, ${v.typescale.standard.label.small.tracking}); } ::slotted([slot="supporting-text"]) { font-size: var(--m3e-list-item-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-list-item-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-list-item-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-list-item-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } ::slotted(:not([slot])) { font-size: var(--m3e-list-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-list-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-list-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-list-item-tracking, ${v.typescale.standard.body.large.tracking}); } :host(:state(-has-leading)) slot[name="leading"], :host(:state(-has-trailing)) slot[name="trailing"] { display: flex; justify-content: center; } :host(:not(:state(-has-leading))) slot[name="leading"] { display: var(--_list-item-leading-reserved-display, contents); } :host(:not(:state(-has-trailing))) slot[name="trailing"] { display: var(--_list-item-trailing-reserved-display, contents); } slot[name="leading"] { min-width: var(--_list-item-leading-reserved-space, 0px); margin-inline-start: calc(0px - var(--_list-item-leading-reserved-outset, 0px)); } slot[name="trailing"] { min-width: var(--_list-item-trailing-reserved-space, 0px); margin-inline-end: calc(0px - var(--_list-item-trailing-reserved-outset, 0px)); } ::slotted(span[slot="trailing"]), ::slotted([slot="trailing-supporting-text"]) { white-space: nowrap; font-size: var(--m3e-list-item-trailing-text-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var( --m3e-list-item-trailing-text-font-weight, ${v.typescale.standard.label.small.fontWeight} ); line-height: var( --m3e-list-item-trailing-text-line-height, ${v.typescale.standard.label.small.lineHeight} ); letter-spacing: var( --m3e-list-item-trailing-text-tracking, ${v.typescale.standard.label.small.tracking} ); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]), ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; } ::slotted(video) { width: var(--m3e-list-item-video-width, 6.25rem); height: var(--m3e-list-item-video-height, 3.5rem); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]) { border-radius: var(--m3e-list-item-video-shape, ${v.shape.corner.none}); } ::slotted(video[slot="leading"]) { margin-inline-start: calc(0px - var(--_list-item-leading-video-outset, 0px)); } ::slotted(video[slot="trailing"]) { margin-inline-end: calc(0px - var(--_list-item-trailing-video-outset, 0px)); } ::slotted(img) { user-drag: none; user-select: none; pointer-events: none; width: var(--m3e-list-item-image-width, 3.5rem); height: var(--m3e-list-item-image-height, 3.5rem); } ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { border-radius: var(--m3e-list-item-image-shape, ${v.shape.corner.none}); } ::slotted(m3e-icon[slot="leading"]), ::slotted(m3e-icon[slot="leading-icon"]), ::slotted(m3e-icon[slot="trailing"]), ::slotted(m3e-icon[slot="trailing-icon"]) { --m3e-icon-size: var(--m3e-list-item-icon-size, 1.5rem); } :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading"]), :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading-icon"]) { color: var(--m3e-list-item-leading-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .content { color: var(--m3e-list-item-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-overline-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-supporting-text-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="trailing"]), :host(:not(:disabled)) ::slotted([slot="trailing-supporting-text"]), :host(:not(:disabled)) ::slotted([slot="trailing-icon"]) { color: var(--m3e-list-item-trailing-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .base { background-color: var(--_list-item-container-color, var(--m3e-list-item-container-color, transparent)); } :host(:disabled) .base { background-color: var(--m3e-list-item-disabled-container-color, transparent); } :host(:disabled) ::slotted(video), :host(:disabled) ::slotted(img), :host(:disabled) ::slotted(m3e-avatar) { opacity: var(--m3e-list-item-disabled-media-opacity, 38%); } :host(:disabled) .content { color: color-mix( in srgb, var(--m3e-list-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="overline"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-overline-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-overline-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="supporting-text"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-supporting-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-supporting-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-leading-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-leading-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-trailing-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-trailing-opacity, 38%), transparent ); } :host(:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var(--m3e-list-item-hover-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-hover-opacity: var( --m3e-list-item-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var(--m3e-list-item-focus-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-focus-opacity: var( --m3e-list-item-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host(:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]), :host(:disabled) .content, :host(:disabled) ::slotted([slot="overline"]), :host(:disabled) ::slotted([slot="supporting-text"]), :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`,Qp=t([$("m3e-list-item")],Qp);let ru=class extends(P(f(r,"list"))){constructor(){super(...arguments),eu.add(this),tu.set(this,new Array),au.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),ou.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),this.variant="standard"}get items(){return e(this,tu,"f")}get leadingContentType(){return e(this,au,"f").video>0?"video":e(this,au,"f").image>0?"image":e(this,au,"f").avatar>0?"avatar":e(this,au,"f").icon>0?"icon":e(this,au,"f").text>0?"text":void 0}get trailingContentType(){return e(this,ou,"f").video>0?"video":e(this,ou,"f").image>0?"image":e(this,ou,"f").avatar>0?"avatar":e(this,ou,"f").icon>0?"icon":e(this,ou,"f").text>0?"text":void 0}render(){return s`<slot @slotchange="${e(this,eu,"m",iu)}"></slot>`}notifyItemsChange(){}notifyLeadingContentTypeChange(t,a){t&&e(this,au,"f")[t]--,a&&e(this,au,"f")[a]++,["video","image","avatar","icon"].forEach(e=>{w(this,`-has-leading-${e}`,this.leadingContentType===e)})}notifyTrailingContentTypeChange(t,a){t&&e(this,ou,"f")[t]--,a&&e(this,ou,"f")[a]--,["video","image","avatar","icon"].forEach(e=>{w(this,`-has-trailing-${e}`,this.trailingContentType===e)})}};var su,nu,lu,cu,du,hu,mu,pu,uu;tu=new WeakMap,au=new WeakMap,ou=new WeakMap,eu=new WeakSet,iu=function(t){a(this,tu,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof Qp),"f"),e(this,tu,"f").forEach((t,a)=>{w(t,"-first",0===a),w(t,"-last",a===e(this,tu,"f").length-1)}),this.notifyItemsChange()},ru.styles=i`:host { display: flex; flex-direction: column; overflow-y: auto; box-sizing: border-box; padding-block: var(--m3e-list-block-padding, 0px); --m3e-divider-inset-start-size: var(--m3e-list-divider-inset-start-size, 1rem); --m3e-divider-inset-end-size: var(--m3e-list-divider-inset-end-size, 1.5rem); } :host([variant="standard"]) { --_list-item-leading-video-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-video-outset: var(--m3e-list-item-trailing-space, 1rem); --_expandable-list-item-expanded-toggle-icon-container-color: transparent; } :host([variant="segmented"]) { row-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); } :host([variant="segmented"]) { --m3e-list-item-container-color: var(--m3e-segmented-list-item-container-color, ${v.color.surface}); --m3e-list-item-disabled-container-color: var( --m3e-segmented-list-item-disabled-container-color, ${v.color.surface} ); --m3e-list-item-container-shape: var( --m3e-segmented-list-item-container-shape, ${v.shape.corner.extraSmall} ); --m3e-list-item-hover-container-shape: var( --m3e-segmented-list-item-hover-container-shape, ${v.shape.corner.medium} ); --m3e-list-item-focus-container-shape: var( --m3e-segmented-list-item-focus-container-shape, ${v.shape.corner.large} ); --m3e-list-item-selected-container-shape: var( --m3e-segmented-list-item-selected-container-shape, ${v.shape.corner.large} ); --m3e-list-item-video-shape: var(--m3e-segmented-list-item-video-shape, ${v.shape.corner.small}); --m3e-list-item-image-shape: var(--m3e-segmented-list-item-image-shape, ${v.shape.corner.small}); --m3e-list-item-between-space: var(--m3e-segmented-list-item-spacing, 0.75rem); --_expandable-list-item-items-segment-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); --_expandable-list-item-expanded-top-shape: var( --m3e-segmented-list-container-shape, ${v.shape.corner.large} ); } :host([variant="segmented"]) ::slotted(:state(-first)), :host([variant="segmented"]) ::slotted(:state(-has-previous-open):not([open])) { --_list-item-top-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(:state(-has-next-open):not([open])), :host([variant="segmented"]) ::slotted(:state(-last)) { --_list-item-bottom-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(m3e-divider) { display: none; } :host(:state(-has-leading-video)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-video-width, 6.25rem); } :host([variant="standard"]:state(-has-leading-video)) { --_list-item-leading-reserved-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-reserved-outset: var(--m3e-list-item-trailing-space, 1rem); } :host(:state(-has-leading-image)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-image-width, 3.5rem); } :host(:state(-has-leading-avatar)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-avatar-size, 2.5rem); } :host(:state(-has-leading-icon)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-icon-size, 1.5rem); }`,t([m({reflect:!0})],ru.prototype,"variant",void 0),ru=t([$("m3e-list")],ru);let vu=uu=class extends Qp{constructor(){super(...arguments),su.add(this),nu.set(this,uu.__nextId++),lu.set(this,`m3e-expandable-list-item-${e(this,nu,"f")}-content`),cu.set(this,`m3e-expandable-list-item-${e(this,nu,"f")}-header`),du.set(this,new Array),this.disabled=!1,this.open=!1}get items(){return e(this,du,"f")}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}updated(e){if(super.updated(e),e.has("open")){for(let e=this.previousElementSibling;e;e=e.previousElementSibling)if(e instanceof Qp){w(e,"-has-next-open",this.open);break}for(let e=this.nextElementSibling;e;e=e.nextElementSibling)if(e instanceof Qp){w(e,"-has-previous-open",this.open);break}}}render(){return s`<div class="base"><m3e-list-item-button id="${e(this,cu,"f")}" class="header" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,lu,"f")}" @click="${e(this,su,"m",hu)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><div class="toggle-container" slot="trailing" aria-hidden="true"><div class="toggle"><slot name="toggle-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg></slot></div></div></m3e-list-item-button><m3e-collapsible id="${e(this,lu,"f")}" class="items" role="list" aria-labelledby="${e(this,cu,"f")}" ?open="${this.open}" @opening="${e(this,su,"m",mu)}" @opened="${e(this,su,"m",mu)}" @closing="${e(this,su,"m",mu)}" @closed="${e(this,su,"m",mu)}"><slot name="items" @slotchange="${e(this,su,"m",pu)}"></slot></m3e-collapsible></div>`}};var bu,fu;nu=new WeakMap,lu=new WeakMap,cu=new WeakMap,du=new WeakMap,su=new WeakSet,hu=function(e){e.defaultPrevented||(this.open=!this.open,this.closest("m3e-action-list")?.[Te].updateActiveItem(this.button))},mu=function(e){e.stopPropagation(),["opening","opened","closing","closed"].forEach(t=>{this.button?.classList.toggle(t,e.type===t)}),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},pu=function(t){a(this,du,t.target.assignedElements({flatten:!0}).flatMap(e=>[...e.childNodes].filter(e=>e instanceof Qp)),"f"),e(this,du,"f").forEach((t,a)=>{a==e(this,du,"f").length-1?t.style.setProperty("--_list-item-bottom-container-shape",`var(--m3e-segmented-list-container-shape, ${v.shape.corner.large})`):t.style.removeProperty("--_list-item-bottom-container-shape")}),this.closest("m3e-list, m3e-action-list, m3e-selection-list")?.notifyItemsChange()},vu.styles=i`:host { display: block; } .header { width: 100%; margin-bottom: 0px; transition: ${o(`margin-bottom \n var(--m3e-expandable-list-item-bounce-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; --_list-item-button-trailing-align-self: stretch; } .toggle-container { display: flex; align-items: center; justify-content: center; align-self: stretch; width: var(--m3e-expandable-list-item-toggle-icon-container-width, 2rem); border-radius: var(--m3e-expandable-list-item-toggle-icon-container-shape, ${v.shape.corner.full}); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: var(--m3e-expandable-list-item-toggle-icon-size, 1.5rem); transition: ${o(`transform ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } :host([open]) .toggle-container { background-color: var( --_expandable-list-item-expanded-toggle-icon-container-color, var(--m3e-expandable-list-item-expanded-toggle-icon-container-color, ${v.color.surfaceContainer}) ); } :host([open]) .toggle { transform: rotate(180deg); } :host([open]) .header { --_list-item-top-container-shape: var(--_expandable-list-item-expanded-top-shape, initial); --_list-item-bottom-container-shape: initial; margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } :host([open]) .header.opening { margin-bottom: calc( var(--_expandable-list-item-items-segment-gap, 0px) * var(--m3e-expandable-list-item-bounce-factor, 4) ); } :host([open]) .header, :host([open]) .items { --_list-item-container-color: var( --m3e-expandable-list-item-expanded-container-color, var(--m3e-list-item-container-color, transparent) ); } .base, ::slotted([slot="items"]) { display: flex; flex-direction: column; box-sizing: border-box; } ::slotted([slot="items"]) { flex: none; --_list-item-top-container-shape: initial; --_list-item-bottom-container-shape: initial; row-gap: var(--_expandable-list-item-items-segment-gap, 0px); } .items { --m3e-collapsible-animation-duration: var( --m3e-expandable-list-item-expand-duration, ${v.motion.duration.medium1} ); } @media (forced-colors: active) { .header { transition: none; } :host([open]) .header.opening { margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } } @media (prefers-reduced-motion) { .header, .toggle-container, .toggle { transition: none; } }`,vu.__nextId=0,t([m({type:Boolean,reflect:!0})],vu.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],vu.prototype,"open",void 0),t([h(".header")],vu.prototype,"button",void 0),vu=uu=t([$("m3e-expandable-list-item")],vu);let gu=class extends ru{constructor(){super(...arguments),bu.set(this,e=>this[Te].onKeyDown(e)),this[fu]=(new We).withWrap().withHomeAndEnd().withVerticalOrientation().withSkipPredicate(e=>{if(e.disabled)return!0;const t=e.getRootNode().host;if("items"===t.parentElement?.slot){let e=t.closest("m3e-expandable-list-item");for(;e;){if(!e.open)return!0;const t=e.closest("m3e-expandable-list-item,m3e-action-list");if(!(t instanceof vu))break;e=t}}return!1})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,bu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,bu,"f"))}async notifyItemsChange(){const e=[...this.querySelectorAll("m3e-list-action,m3e-expandable-list-item")];for(const t of e)t.isUpdatePending&&await t.updateComplete;this.isUpdatePending&&await this.updateComplete;const{added:t}=this[Te].setItems(e.map(e=>e.button));this[Te].activeItem||this[Te].updateActiveItem(t.find(e=>!e.disabled))}};var yu,$u;bu=new WeakMap,fu=Te,gu=t([$("m3e-action-list")],gu);let xu=class extends(F(Qp)){constructor(){super(...arguments),yu.add(this),this.disabled=!1}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}render(){return s`<m3e-list-item-button class="button" ?disabled="${this.disabled}" href="${Fe(this.href||void 0)}" target="${Fe(this.target||void 0)}" download="${Fe(this.download||void 0)}" rel="${Fe(this.rel||void 0)}" @click="${e(this,yu,"m",$u)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><slot name="trailing" slot="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot></m3e-list-item-button>`}};yu=new WeakSet,$u=function(e){e.defaultPrevented||this.closest("m3e-action-list")?.[Te].updateActiveItem(this.button)},xu.styles=i`:host { display: block; } .button { width: 100%; }`,t([h(".button")],xu.prototype,"button",void 0),t([m({type:Boolean,reflect:!0})],xu.prototype,"disabled",void 0),xu=t([$("m3e-list-action")],xu);let wu=class extends(q(F(R(U(P(f(Qp,"button"),!0)))))){constructor(){super(),new j(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new K(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ie(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple>${this[Z]()} ${super._renderBase()}</div>`}};var ku,Cu,Su,_u,Lu,zu;wu.styles=[Qp.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } :host(:not(:disabled)) { cursor: pointer; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } slot[name="trailing"] { align-self: var(--_list-item-button-trailing-align-self, auto); }`],t([h(".focus-ring")],wu.prototype,"_focusRing",void 0),t([h(".state-layer")],wu.prototype,"_stateLayer",void 0),t([h(".ripple")],wu.prototype,"_ripple",void 0),wu=t([$("m3e-list-item-button")],wu);let Eu=class extends(q(R(he(U(P(f(Qp,"option"),!0)))))){constructor(){super(),ku.add(this),Cu.set(this,void 0),Su.set(this,""),_u.set(this,t=>e(this,ku,"m",zu).call(this,t)),new j(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new K(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ie(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}get value(){return e(this,Cu,"f")??e(this,Su,"f")}set value(e){a(this,Cu,e,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,_u,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,_u,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")){this.closest("m3e-selection-list")?.[Te].notifySelectionChange(this);for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><slot name="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><div class="content"><slot name="overline"></slot><slot @slotchange="${e(this,ku,"m",Lu)}"></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot><div class="indicator">${this.closest("m3e-selection-list")?.multi?s`<m3e-pseudo-checkbox ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-checkbox>`:s`<m3e-pseudo-radio ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-radio>`}</div></div>`}};var Mu,Tu,Pu,Iu,Wu;Cu=new WeakMap,Su=new WeakMap,_u=new WeakMap,ku=new WeakSet,Lu=function(e){a(this,Su,ce(e.target),"f")},zu=function(e){const t=this.closest("m3e-selection-list");if(!e.defaultPrevented&&t&&(t.multi||!this.selected)){const e=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(t[Te].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=e}},Eu.styles=[Qp.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } .indicator { min-width: 1.5rem; min-height: 1.5rem; display: flex; align-items: center; justify-content: center; } :host(:not(:disabled)) { cursor: pointer; } :host(:state(-three-line)) .indicator { align-self: flex-start; margin-top: var(--m3e-list-item-three-line-top-offset, 0.25rem); } :host([selected]) .base, :host([selected]) .state-layer, :host([selected]) .ripple, :host([selected]) .focus-ring { border-radius: var(--m3e-list-item-selected-container-shape, ${v.shape.corner.large}); } :host([selected]:not(:disabled)) .base { color: var(--m3e-list-item-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-selected-overline-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-selected-supporting-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="leading"]) { color: var(--m3e-list-item-selected-leading-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: var(--m3e-list-item-selected-trailing-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) .base { background-color: var(--m3e-list-item-selected-container-color, ${v.color.secondaryContainer}); } :host([selected]:disabled) .base { background-color: color-mix( in srgb, var(--m3e-list-item-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-list-item-selected-disabled-container-opacity, 10%), transparent ); } :host([selected]:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var( --m3e-list-item-selected-hover-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-hover-opacity: var( --m3e-list-item-selected-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var( --m3e-list-item-selected-focus-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-focus-opacity: var( --m3e-list-item-selected-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host([selected]:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-selected-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-selected-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } :host(:state(-hide-selection)) .indicator, :host(:not(:state(-hide-selection))) ::slotted([slot="trailing"]) { display: none; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .content, :host([selected]:not(:disabled)) ::slotted([slot="overline"]), :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]), :host([selected]:not(:disabled)) ::slotted([slot="leading"]), :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: HighlightText; forced-color-adjust: none; } :host([selected]:not(:disabled)) .base { background-color: Highlight; } }`],t([h(".focus-ring")],Eu.prototype,"_focusRing",void 0),t([h(".state-layer")],Eu.prototype,"_stateLayer",void 0),t([h(".ripple")],Eu.prototype,"_ripple",void 0),t([m()],Eu.prototype,"value",null),Eu=t([$("m3e-list-option")],Eu);let Au=class extends(X(J(Q(oe(U(P(f(ru,"listbox")))))))){constructor(){super(...arguments),Mu.add(this),Tu.set(this,e=>this[Te].onKeyDown(e)),Pu.set(this,t=>e(this,Mu,"m",Iu).call(this,t)),this[Wu]=(new Pe).withWrap().withHomeAndEnd().withVerticalOrientation(),this.multi=!1,this.hideSelectionIndicator=!1}get options(){return this[Te]?.items??[]}get selected(){return this[Te]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(Tu=new WeakMap,Pu=new WeakMap,Mu=new WeakSet,Wu=Te,re)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Tu,"f")),this.addEventListener("change",e(this,Pu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Tu,"f")),this.removeEventListener("change",e(this,Pu,"f"))}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[Te].disabled=this.disabled),e.has("multi")&&(this[Te].multi=this.multi,this.multi?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),this[Te].items.forEach(e=>e.requestUpdate())),e.has("hideSelectionIndicator")&&this[Te].items.forEach(e=>w(e,"-hide-selection",this.hideSelectionIndicator))}notifyItemsChange(){const{added:e}=this[Te].setItems(this.items.filter(e=>e instanceof Eu));e.forEach(e=>w(e,"-hide-selection",this.hideSelectionIndicator)),this[Te].activeItem||this[Te].updateActiveItem(e.find(e=>!e.disabled))}};Iu=function(e){e.target!==this&&(e.stopImmediatePropagation(),e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0})))},t([m({type:Boolean})],Au.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],Au.prototype,"hideSelectionIndicator",void 0),Au=t([$("m3e-selection-list")],Au);const Hu=o("var(--m3e-loading-indicator-size, 2.375rem)"),Ou=o(`var(--m3e-loading-indicator-active-indicator-color, ${v.color.primary})`),Du=o(`var(--m3e-loading-indicator-contained-active-indicator-color, ${v.color.onPrimaryContainer})`),Bu=o(`var(--m3e-loading-indicator-contained-container-color, ${v.color.secondaryContainer})`),qu=o(`var(--m3e-loading-indicator-container-shape, ${v.shape.corner.full})`),Fu=o("var(--m3e-loading-indicator-container-size, 3rem)"),Vu={"4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z"};let Ru=new Array;const Nu=new Map;for(const e in Vu)Ru.push(Vu[e]),Nu.set(e,Ru.length-1);const Uu={};Ru=be(Ru,300);for(const e of Nu)Uu[e[0]]=o(Ru[e[1]]);const ju=Uu;let Ku=class extends(M(f(r,"progressbar"))){constructor(){super(...arguments),this.variant="uncontained"}connectedCallback(){super.connectedCallback(),this.ariaValueMin=this.ariaValueMin||"0",this.ariaValueMax=this.ariaValueMax||"100"}disconnectedCallback(){super.disconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!1)}reconnectedCallback(){super.reconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!0)}firstUpdated(e){super.firstUpdated(e),this._activeIndicator?.classList.toggle("animate",!0)}render(){return s`<div class="container" aria-hidden="true"><div class="active-indicator"></div></div>`}};Ku.styles=i`:host { display: inline-block; aspect-ratio: 1 / 1; contain: strict; vertical-align: middle; content-visibility: auto; } :host([variant="uncontained"]) { width: ${Hu}; } :host([variant="contained"]) { width: ${Fu}; } :host([variant="uncontained"]) .active-indicator { background-color: ${Ou}; } :host([variant="contained"]) .active-indicator { background-color: ${Du}; } :host([variant="contained"]) .container { background-color: ${Bu}; } .container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: ${qu}; } .active-indicator { margin: auto; aspect-ratio: 1 / 1; width: calc(${Hu} * 0.842); transform-origin: center; transition: clip-path ${v.motion.spring.slowEffects}; will-change: transform, clip-path; --_polygon-soft-burst: polygon(${ju["soft-burst"]}); --_polygon-7-sided-cookie: polygon(${ju["7-sided-cookie"]}); --_polygon-pentagon: polygon(${ju.pentagon}); --_polygon-pill: polygon(${ju.pill}); --_polygon-very-sunny: polygon(${ju["very-sunny"]}); --_polygon-4-sided-cookie: polygon(${ju["4-sided-cookie"]}); --_polygon-oval: polygon(${ju.oval}); } .active-indicator.animate { animation: rotate 4998ms infinite; } @keyframes rotate { 0% { clip-path: var(--_polygon-soft-burst); transform: rotate(0deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 14% { clip-path: var(--_polygon-7-sided-cookie); transform: rotate(154deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 29% { clip-path: var(--_polygon-pentagon); transform: rotate(309deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 43% { clip-path: var(--_polygon-pill); transform: rotate(463deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 57% { clip-path: var(--_polygon-very-sunny); transform: rotate(617deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 71% { clip-path: var(--_polygon-4-sided-cookie); transform: rotate(771deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 83% { clip-path: var(--_polygon-oval); transform: rotate(926deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 100% { clip-path: var(--_polygon-soft-burst); transform: rotate(1080deg); } } @media (forced-colors: active) { .active-indicator { background-color: CanvasText !important; } }`,t([h(".active-indicator")],Ku.prototype,"_activeIndicator",void 0),t([m({reflect:!0})],Ku.prototype,"variant",void 0),Ku=t([$("m3e-loading-indicator")],Ku);class Zu extends(q(R(P(U(r),!0)))){constructor(){super(),new j(this,{callback:e=>{e&&this.menu?._activate()}})}get menu(){return this.closest("m3e-menu")}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${le(this)?this[Z]():n}<div class="wrapper">${this._renderContent()}</div></div>`}}Zu.styles=i`:host { display: inline-block; outline: none; user-select: none; flex: none; height: var(--m3e-menu-item-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) .base { color: var(--m3e-menu-item-color, ${v.color.onSurface}); } :host(:not([aria-expanded="true"])) .base { --m3e-state-layer-hover-color: var(--m3e-menu-item-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-menu-item-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-menu-item-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled)[aria-expanded="true"]) .base { background-color: color-mix( in srgb, var(--m3e-menu-item-active-state-layer-color, ${v.color.onSurface}) var(--m3e-menu-active-state-layer-opacity, 8%), transparent ); } :host([aria-expanded="true"]) .state-layer { display: none; } :host(:not(:disabled)[checked]) .base { color: var(--m3e-menu-item-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-menu-item-selected-container-color, ${v.color.tertiaryContainer}); } :host([checked]) .base { --m3e-state-layer-hover-color: var( --m3e-menu-item-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-menu-item-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-menu-item-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-menu-item-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-menu-item-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([checked]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host([checked]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; column-gap: var(--m3e-menu-item-icon-label-space, 0.5rem); padding-inline-start: var(--m3e-menu-item-padding-start, 0.75rem); padding-inline-end: var(--m3e-menu-item-padding-end, 0.75rem); font-size: var(--m3e-menu-item-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-menu-item-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-menu-item-label-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var(--m3e-menu-item-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-menu-item-focus-ring-shape, inherit); } .content { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]), .trailing-icon { flex: none; width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host(:disabled) .base { color: GrayText; } }`,t([h(".focus-ring")],Zu.prototype,"_focusRing",void 0),t([h(".state-layer")],Zu.prototype,"_stateLayer",void 0),t([h(".ripple")],Zu.prototype,"_ripple",void 0);let Gu=class extends(b(z)){get menu(){return"M3E-MENU"===this.control?.tagName?this.control:null}attach(e){super.attach(e);const t=this.menu;t&&(this.parentElement&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",t.id&&Ee(this.parentElement,"aria-controls",t.id)),this.closest("m3e-menu")&&(t.submenu=!0))}detach(){if(this.parentElement){this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null;const e=this.menu;e?.id&&Me(this.parentElement,"aria-controls",e.id)}super.detach()}_onClick(){this.parentElement&&("M3E-MENU-ITEM"===this.parentElement.tagName?this.menu?.show(this.parentElement):this.menu?.toggle(this.parentElement))}};var Xu,Yu,Ju,Qu,ev,tv,av,ov,iv,rv,sv,nv;Gu=t([$("m3e-menu-trigger")],Gu);let lv=nv=class extends(F(f(Zu,"menuitem"))){constructor(){super(),Xu.add(this),Yu.set(this,t=>e(this,Xu,"m",iv).call(this,t)),Ju.set(this,t=>e(this,Xu,"m",rv).call(this,t)),Qu.set(this,()=>e(this,Xu,"m",sv).call(this)),this._hasSubmenu=!1,ev.set(this,void 0),new ie(this,{startDelay:500,endDelay:500,callback:t=>{t&&!this.disabled&&e(this,ev,"f")&&e(this,ev,"f").menu?.show(this)}})}get submenu(){return e(this,ev,"f")?.menu??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Yu,"f")),this.addEventListener("keydown",e(this,Ju,"f")),this.addEventListener("mouseenter",e(this,Qu,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Yu,"f")),this.removeEventListener("keydown",e(this,Ju,"f")),this.removeEventListener("mouseenter",e(this,Qu,"f"))}_renderContent(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,Xu,"m",av)}"></slot><span class="content"><slot @slotchange="${e(this,Xu,"m",tv)}"></slot></span>${this._hasSubmenu?"ltr"===De.current?s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M400-280v-400l200 200-200 200Z"/></svg>`:s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M560-280 360-480l200-200v400Z"/></svg>`:s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,Xu,"m",ov)}"></slot>`}`}};var cv,dv,hv,mv,pv,uv,vv,bv,fv,gv,yv,$v,xv,wv,kv,Cv;Yu=new WeakMap,Ju=new WeakMap,Qu=new WeakMap,ev=new WeakMap,Xu=new WeakSet,tv=function(t){a(this,ev,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Gu),"f"),this._hasSubmenu=void 0!==e(this,ev,"f")},av=function(e){w(this,"-with-icon",g(e.target))},ov=function(e){w(this,"-with-trailing-icon",g(e.target))},iv=function(e){e.defaultPrevented||this._hasSubmenu||this.menu?.hideAll(!0)},rv=function(e){if(!e.defaultPrevented&&!this.disabled)switch(e.key){case"Right":case"ArrowRight":"ltr"===De.current&&(e.preventDefault(),this.submenu?.show(this));break;case"Left":case"ArrowLeft":"rtl"===De.current&&(e.preventDefault(),this.submenu?.show(this))}},sv=function(){this.menu?.items.forEach(e=>{e instanceof nv&&e!==this&&e.submenu?.isOpen&&e.submenu.hide()})},t([u()],lv.prototype,"_hasSubmenu",void 0),lv=nv=t([$("m3e-menu-item")],lv);let Sv=Cv=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),cv.add(this),dv.set(this,void 0),hv.set(this,void 0),mv.set(this,(new We).withWrap().withHomeAndEnd().withVerticalOrientation()),pv.set(this,t=>e(this,cv,"m",yv).call(this,t)),uv.set(this,()=>e(this,cv,"m",$v).call(this)),vv.set(this,t=>e(this,cv,"m",xv).call(this,t)),bv.set(this,new me(this,{target:null,callback:e=>e instanceof Cv?e.items.filter(e=>e instanceof lv).forEach(e=>e.submenu?.hide()):this.hideAll()})),fv.set(this,t=>{"closed"===t.newState?(e(this,hv,"f")?.call(this),a(this,hv,void 0,"f")):setTimeout(()=>{e(this,mv,"f").setActiveItem(e(this,mv,"f").items.find(e=>!e.disabled))},40)}),this.positionX="after",this.positionY="below",this.variant="standard",this.submenu=!1}get items(){return e(this,mv,"f").items}get isOpen(){return void 0!==e(this,dv,"f")}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,pv,"f")),this.addEventListener("mouseenter",e(this,uv,"f")),this.addEventListener("toggle",e(this,fv,"f")),document.addEventListener("click",e(this,vv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,pv,"f")),this.removeEventListener("mouseenter",e(this,uv,"f")),this.removeEventListener("toggle",e(this,fv,"f")),document.removeEventListener("click",e(this,vv,"f")),e(this,cv,"m",kv).call(this)}async show(t){e(this,dv,"f")&&e(this,dv,"f")!==t&&this.hide();let o=this.positionX;"rtl"===De.current&&(o="before"===o?"after":"before"),a(this,hv,await Be(this,t,{position:this.submenu?"before"===o?"left-start":"right-start":"above"===this.positionY?"before"===o?"top-end":"top-start":"before"===o?"bottom-end":"bottom-start",inline:!0,flip:!0,shift:!0,offset:this.submenu?void 0:4},(t,a,o)=>{if(this.submenu){if(e(this,dv,"f")){const t=e(this,cv,"m",wv).call(this,e(this,dv,"f")).y;w(this,"-shift-down",!1),w(this,"-shift-up",!1),w(this,Math.round(a)===Math.round(t)?"-shift-down":"-shift-up",!0)}}else w(this,"-top",o.includes("top")),w(this,"-bottom",o.includes("bottom"));"rtl"===De.current?this.style.right=window.innerWidth-t-this.clientWidth+"px":this.style.left=`${t}px`,this.style.top=`${a}px`}),"f");const i=t.closest("m3e-menu");i?this.variant=i.variant:this._activate(),this.showPopover(),a(this,dv,t,"f"),e(this,dv,"f").ariaExpanded="true",e(this,bv,"f").observe(e(this,dv,"f"))}hide(t=!1){for(const t of e(this,mv,"f").items){const e=t.submenu;e&&e.isOpen&&e.hide()}e(this,cv,"m",kv).call(this),this.hidePopover(),e(this,dv,"f")&&(e(this,dv,"f").ariaExpanded="false",t&&e(this,dv,"f").focus(),e(this,bv,"f").unobserve(e(this,dv,"f")),a(this,dv,void 0,"f"))}hideAll(t=!1){let a=this;for(;e(a,dv,"f");){const t=e(a,dv,"f").closest("m3e-menu");if(!t)break;a=t}a.hide(t)}async toggle(t){e(this,dv,"f")?this.hide():await this.show(t)}render(){return s`<div class="base"><slot @slotchange="${e(this,cv,"m",gv)}"></slot></div>`}_activate(){this!==Cv.__activeMenu&&(Cv.__activeMenu&&k(Cv.__activeMenu,"-active"),Cv.__activeMenu=this,L(Cv.__activeMenu,"-active"))}};var _v,Lv,zv,Ev,Mv,Tv,Pv,Iv,Wv,Av,Hv,Ov;dv=new WeakMap,hv=new WeakMap,mv=new WeakMap,pv=new WeakMap,uv=new WeakMap,vv=new WeakMap,bv=new WeakMap,fv=new WeakMap,cv=new WeakSet,gv=function(){const{added:t}=e(this,mv,"f").setItems([...this.querySelectorAll("m3e-menu-item,m3e-menu-item-checkbox,m3e-menu-item-radio")].filter(e=>e.closest("m3e-menu")===this));e(this,mv,"f").activeItem||e(this,mv,"f").updateActiveItem(t.find(e=>!e.disabled)),e(this,mv,"f").items.forEach((t,a)=>{w(t,"-first",0===a&&!t.previousElementSibling),w(t,"-last",a===e(this,mv,"f").items.length-1)})},yv=function(t){switch(t.key){case"Right":case"ArrowRight":"rtl"===De.current?(t.preventDefault(),this.hide(!0)):e(this,mv,"f").onKeyDown(t);break;case"Left":case"ArrowLeft":"ltr"===De.current?(t.preventDefault(),this.hide(!0)):e(this,mv,"f").onKeyDown(t);break;case"Tab":this.hideAll();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,mv,"f").onKeyDown(t)}},$v=function(){this._activate()},xv=function(t){this.submenu||t.composedPath().some(t=>t instanceof Cv||t===e(this,dv,"f"))||this.hide()},wv=function(e){let t=0,a=0;for(let o=e;o;o=o.offsetParent instanceof HTMLElement?o.offsetParent:null)t+=o.offsetLeft-o.scrollLeft+o.clientLeft,a+=o.offsetTop-o.scrollTop+o.clientTop;return{x:t,y:a}},kv=function(){this===Cv.__activeMenu&&(k(Cv.__activeMenu,"-active"),Cv.__activeMenu=void 0)},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-menu > m3e-divider { margin-block: var(--m3e-menu-divider-spacing, 0.5rem); }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),Sv.styles=i`:host { position: absolute; padding: unset; margin: unset; border: unset; overflow-y: auto; overflow-x: visible; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; scroll-padding-block: calc( var(--m3e-focus-ring-thickness, 3px) + var(--m3e-menu-container-padding-block, 0.25rem) ); min-width: var(--m3e-menu-container-min-width, 7rem); max-width: var(--m3e-menu-container-max-width, 17.5rem); max-height: var(--m3e-menu-container-max-height, 17.5rem); box-shadow: var(--m3e-menu-container-elevation, ${v.elevation.level3}); opacity: 0; display: none; } .base { display: flex; flex-direction: column; row-gap: var(--m3e-menu-gap, 0.125rem); min-width: inherit; max-width: inherit; padding-block: var(--m3e-menu-container-padding-block, 0.25rem); padding-inline: var(--m3e-menu-container-padding-inline, 0.25rem); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } :host(:not(:state(-active))) { border-radius: var(--m3e-menu-container-shape, ${v.shape.corner.small}); } :host(:not(:state(-active))) .base { --m3e-menu-item-first-child-shape: ${v.shape.corner.extraSmall}; --m3e-menu-item-last-child-shape: ${v.shape.corner.extraSmall}; } :host(:state(-active)) { border-radius: var(--m3e-menu-active-container-shape, ${v.shape.corner.large}); } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.duration.short2} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n border-radius ${v.motion.spring.fastEffects}`)}; } :host(:not([submenu])) { transform: scaleY(0.8); } :host(:not([submenu]):popover-open) { transform: scaleY(1); } :host::backdrop { background-color: transparent; } :host(:popover-open) { display: block; opacity: 1; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } :host(:state(-shift-down)) { margin-top: calc(0px - var(--m3e-menu-container-padding-block, 0.25rem)); } :host(:state(-shift-up)) { margin-top: var(--m3e-menu-container-padding-block, 0.25rem); } :host([variant="vibrant"]) { background-color: var(--m3e-vibrant-menu-container-color, ${v.color.tertiaryContainer}); --m3e-menu-item-color: var(--m3e-vibrant-menu-item-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-container-hover-color: var( --m3e-vibrant-menu-item-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-container-focus-color: var( --m3e-vibrant-menu-item-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-ripple-color: var(--m3e-vibrant-menu-item-ripple-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-active-state-layer-color: var( --m3e-vibrant-menu-item-active-state-layer-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-selected-color: var(--m3e-vibrant-menu-item-selected-color, ${v.color.onTertiary}); --m3e-menu-item-selected-container-color: var( --m3e-vibrant-menu-item-selected-container-color, ${v.color.tertiary} ); --m3e-menu-item-selected-container-hover-color: var( --m3e-vibrant-menu-item-selected-container-hover-color, ${v.color.onTertiary} ); --m3e-menu-item-container-selected-focus-color: var( --m3e-vibrant-menu-item-selected-container-focus-color, ${v.color.onTertiary} ); --m3e-menu-item-selected-ripple-color: var( --m3e-vibrant-menu-item-selected-ripple-color, ${v.color.onTertiary} ); --m3e-menu-item-disabled-color: var( --m3e-vibrant-menu-item-disabled-color, ${v.color.onTertiaryContainer} ); } :host([variant="standard"]) { background-color: var(--m3e-menu-container-color, ${v.color.surfaceContainer}); } @starting-style { :host(:popover-open) { opacity: 0; } :host(:not([submenu]):popover-open) { transform: scaleY(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; outline: 1px solid MenuText; } }`,t([m({attribute:"position-x"})],Sv.prototype,"positionX",void 0),t([m({attribute:"position-y"})],Sv.prototype,"positionY",void 0),t([m({reflect:!0})],Sv.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],Sv.prototype,"submenu",void 0),Sv=Cv=t([$("m3e-menu")],Sv);let Dv=class extends(fe(f(Zu,"menuitemcheckbox"))){constructor(){super(...arguments),_v.add(this),Lv.set(this,t=>e(this,_v,"m",Wv).call(this,t)),zv.set(this,t=>e(this,_v,"m",Av).call(this,t)),Ev.set(this,()=>e(this,_v,"m",Hv).call(this)),Mv.set(this,()=>e(this,_v,"m",Ov).call(this)),Tv.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Lv,"f")),this.addEventListener("keydown",e(this,zv,"f")),this.addEventListener("keyup",e(this,Ev,"f")),this.addEventListener("mouseenter",e(this,Mv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Lv,"f")),this.removeEventListener("keydown",e(this,zv,"f")),this.removeEventListener("keyup",e(this,Ev,"f")),this.removeEventListener("mouseenter",e(this,Mv,"f"))}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,_v,"m",Pv)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,_v,"m",Iv)}"></slot>`}};Lv=new WeakMap,zv=new WeakMap,Ev=new WeakMap,Mv=new WeakMap,Tv=new WeakMap,_v=new WeakSet,Pv=function(e){w(this,"-with-icon",g(e.target))},Iv=function(e){w(this,"-with-trailing-icon",g(e.target))},Wv=function(t){t.defaultPrevented||(this.checked=!this.checked,this.performUpdate(),e(this,Tv,"f")||(C()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},Av=function(e){a(this,Tv," "===e.key,"f")},Hv=function(){a(this,Tv,!1,"f")},Ov=function(){this.menu?.items.forEach(e=>{e instanceof lv&&e.submenu?.isOpen&&e.submenu.hide()})},Dv.styles=[Zu.styles,i`.icon { display: flex; align-items: center; justify-content: center; transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-menu-item-icon-label-space, 0.75rem)); } .check { width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } :host(:not([checked])) .check { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]) ::slotted([slot="icon"]) { display: none !important; } @media (prefers-reduced-motion) { .icon { transition: none; } }`],Dv=t([$("m3e-menu-item-checkbox")],Dv);let Bv=class extends(f(r,"group")){render(){return s`<slot></slot>`}};var qv,Fv,Vv,Rv,Nv,Uv,jv,Kv,Zv,Gv,Xv,Yv;Bv.styles=i`:host { display: contents; }`,Bv=t([$("m3e-menu-item-group")],Bv);let Jv=class extends(fe(f(Zu,"menuitemradio"))){constructor(){super(...arguments),qv.add(this),Fv.set(this,t=>e(this,qv,"m",Zv).call(this,t)),Vv.set(this,t=>e(this,qv,"m",Gv).call(this,t)),Rv.set(this,()=>e(this,qv,"m",Xv).call(this)),Nv.set(this,()=>e(this,qv,"m",Yv).call(this)),Uv.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Fv,"f")),this.addEventListener("keydown",e(this,Vv,"f")),this.addEventListener("keyup",e(this,Rv,"f")),this.addEventListener("mouseenter",e(this,Nv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Fv,"f")),this.removeEventListener("keydown",e(this,Vv,"f")),this.removeEventListener("keyup",e(this,Rv,"f")),this.removeEventListener("mouseenter",e(this,Nv,"f"))}update(e){super.update(e),e.has("checked")&&this.checked&&(this.closest("[role='group']")??this.closest("m3e-menu"))?.querySelectorAll("m3e-menu-item-radio").forEach(e=>{e!==this&&e.checked&&(e.checked=!1)})}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,qv,"m",jv)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,qv,"m",Kv)}"></slot>`}};var Qv,eb,tb,ab,ob;Fv=new WeakMap,Vv=new WeakMap,Rv=new WeakMap,Nv=new WeakMap,Uv=new WeakMap,qv=new WeakSet,jv=function(e){w(this,"-with-icon",g(e.target))},Kv=function(e){w(this,"-with-trailing-icon",g(e.target))},Zv=function(t){t.defaultPrevented||(this.checked=!0,this.performUpdate(),e(this,Uv,"f")||(C()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},Gv=function(e){a(this,Uv," "===e.key,"f")},Xv=function(){a(this,Uv,!1,"f")},Yv=function(){this.menu?.items.forEach(e=>{e instanceof lv&&e.submenu?.isOpen&&e.submenu.hide()})},Jv.styles=Dv.styles,Jv=t([$("m3e-menu-item-radio")],Jv);let ib=class extends(P(f(r,"navigation"))){constructor(){super(...arguments),Qv.add(this),this[ob]=(new Pe).disableRovingTabIndex(),eb.set(this,void 0),this.mode="compact"}get items(){return this[Te].items}get selected(){return this[Te].selectedItems[0]??null}get currentMode(){return this._mode??("compact"!==this.mode?"expanded":"compact")}set currentMode(e){this._mode=e}disconnectedCallback(){super.disconnectedCallback(),this._mode=void 0,e(this,eb,"f")?.call(this)}willUpdate(t){super.willUpdate(t),t.has("mode")&&(e(this,eb,"f")?.call(this),"auto"===this.mode?a(this,eb,je.observe([Ke.XSmall,Ke.Small],e=>{this._mode=e.get(Ke.XSmall)||e.get(Ke.Small)?"compact":"expanded",this._updateItems()}),"f"):(this._mode=void 0,this._updateItems())),t.has("_mode")&&this._updateItems()}render(){return s`<div class="base"><slot @change="${e(this,Qv,"m",ab)}" @slotchange="${e(this,Qv,"m",tb)}"></slot></div>`}_updateItems(){const e="compact"===this.currentMode?"vertical":"horizontal";this._updateOrientation(e),w(this,"-compact","vertical"===e)}_updateOrientation(e){this[Te].items.forEach(t=>t.orientation=e)}};var rb,sb,nb;eb=new WeakMap,Qv=new WeakSet,ob=Te,tb=function(){this[Te].setItems([...this.querySelectorAll("m3e-nav-item")]),this._updateItems()},ab=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},ib.styles=i`:host { display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; min-height: var(--m3e-nav-bar-height, 4rem); } .base { display: flex; align-items: stretch; justify-content: center; box-sizing: border-box; min-height: inherit; height: inherit; width: 100%; background-color: var(--m3e-nav-bar-container-color, ${v.color.surfaceContainer}); --_nav-item-min-width: var(--m3e-nav-bar-vertical-item-width, 7rem); }`,t([u()],ib.prototype,"_mode",void 0),t([m({reflect:!0})],ib.prototype,"mode",void 0),ib=t([$("m3e-nav-bar")],ib);let lb=class extends(F(he(q(R(N(U(P(f(r,"button"),!0)))))))){constructor(){super(...arguments),rb.add(this),sb.set(this,t=>e(this,rb,"m",nb).call(this,t)),this.orientation="vertical"}get navBar(){return this.closest("m3e-nav-bar")??this.closest("m3e-nav-rail")??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,sb,"f"),{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,sb,"f"),{capture:!0})}update(e){if(super.update(e),e.has("selected")){this.ariaSelected=null,this.ariaPressed=null,this.ariaCurrent=`${this.selected}`;for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected);this.navBar?.[Te].notifySelectionChange(this)}}updated(e){super.updated(e),e.has("orientation")&&this._focusRing?.attach(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const e=this.disabled||this.disabledInteractive;return s`${"vertical"===this.orientation?s`<m3e-focus-ring class="focus-ring" inward></m3e-focus-ring>`:n}<div class="outer">${this[Z]()}<div class="inner">${"horizontal"===this.orientation?s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring>`:n}<m3e-state-layer class="state-layer" ?disabled="${e}"></m3e-state-layer><m3e-ripple class="ripple" centered ?disabled="${e}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="base"><div class="icon-wrapper" aria-hidden="true"><div class="icon"><slot name="icon" aria-hidden="true"></slot></div></div><div class="label"><slot></slot></div></div></div></div>`}};var cb,db,hb,mb,pb,ub,vb,bb,fb,gb,yb,$b;sb=new WeakMap,rb=new WeakSet,nb=function(e){e.defaultPrevented||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.navBar?.[Te].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},lb.styles=i`:host { display: inline-block; vertical-align: middle; position: relative; outline: none; user-select: none; flex: 1; font-size: var(--m3e-nav-item-label-text-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var( --m3e-nav-item-label-text-font-weight, ${v.typescale.standard.label.medium.fontWeight} ); line-height: var( --m3e-nav-item-label-text-line-height, ${v.typescale.standard.label.medium.lineHeight} ); letter-spacing: var(--m3e-nav-item-label-text-tracking, ${v.typescale.standard.label.medium.tracking}); border-radius: var(--m3e-nav-item-shape, ${v.shape.corner.full}); min-width: var(--_nav-item-min-width); align-self: var(--_nav-item-align-self); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([orientation="horizontal"]) { max-width: fit-content; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .outer { height: 100%; } .outer, .inner { display: flex; align-items: center; justify-content: var(--_nav-item-justify-content, center); position: relative; border-radius: inherit; } .icon-wrapper { position: relative; flex: none; } .base { justify-content: unset; box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; } .icon { position: absolute; } .label { vertical-align: middle; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]) { width: 1em; font-size: var(--m3e-nav-item-icon-size, 1.5rem) !important; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-inactive-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-inactive-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-inactive-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-inactive-label-text-color, ${v.color.onSurfaceVariant}); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-inactive-icon-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-active-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-active-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-active-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host([selected]:not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-active-label-text-color, ${v.color.secondary}); } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: var(--m3e-nav-item-active-container-color, ${v.color.secondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-active-icon-color, ${v.color.onSecondaryContainer}); } :host([orientation="vertical"]) .outer { align-self: stretch; align-items: flex-start; } :host([orientation="vertical"]) .label { text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host([orientation="vertical"]) .base { flex-direction: column; row-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="vertical"]) .base { margin-block: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple { top: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); bottom: unset; } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { width: var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { height: var(--m3e-vertical-nav-item-active-indicator-height, 2rem); } :host([orientation="vertical"]) .icon { top: calc( calc(var(--m3e-vertical-nav-item-active-indicator-height, 2rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); left: calc( calc(var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); } :host([orientation="vertical"]) .focus-ring { border-radius: var(--m3e-nav-item-focus-ring-shape, ${v.shape.corner.medium}); } :host([orientation="horizontal"]) .icon-wrapper { width: var(--m3e-nav-item-icon-size, 1.5rem); height: var(--m3e-nav-item-icon-size, 1.5rem); } :host([orientation="horizontal"]) .base { padding: var(--m3e-horizontal-nav-item-padding, 1rem); } :host([orientation="horizontal"]) .label { flex: 1 1 auto; } :host([orientation="horizontal"]) .base { column-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="horizontal"]) .inner { height: var(--m3e-horizontal-nav-item-active-indicator-height, 2.5rem); width: fit-content; } .state-layer, .ripple { margin-inline: auto; } :host(:disabled) .label, :host([disabled-interactive]) .label { color: color-mix( in srgb, var(--m3e-nav-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: color-mix( in srgb, var(--m3e-nav-item-disabled-icon-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-icon-opacity, 38%), transparent ); } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { :host(:disabled) .label, :host([disabled-interactive]) .label, :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: GrayText; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label, :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: ButtonText; } :host([orientation="vertical"][selected]:not(:disabled):not([disabled-interactive])) .label { color: ButtonText; } :host([orientation="horizontal"][selected]:not(:disabled):not([disabled-interactive])) .label, :host([selected]:not(:disabled):not([disabled-interactive])) .icon { forced-color-adjust: none; color: ButtonFace; } }`,t([h(".focus-ring")],lb.prototype,"_focusRing",void 0),t([h(".state-layer")],lb.prototype,"_stateLayer",void 0),t([h(".ripple")],lb.prototype,"_ripple",void 0),t([m({reflect:!0})],lb.prototype,"orientation",void 0),lb=t([$("m3e-nav-item")],lb);let xb=$b=class extends(he(U(E(P(f(r,"treeitem"),!0),"opening","opened","closing","closed")))){constructor(){super(...arguments),cb.add(this),this._hasChildItems=!1,db.set(this,[]),hb.set(this,null),mb.set(this,new Array),pb.set(this,null),this.open=!1}get link(){return e(this,pb,"f")}get label(){return this._base??null}get visible(){return!e(this,mb,"f").some(e=>!e.open)}get path(){return[...e(this,mb,"f"),this]}get hasChildItems(){return this._hasChildItems}get parentItem(){return e(this,mb,"f")[e(this,mb,"f").length-1]??null}get childItems(){return e(this,db,"f")}get level(){return e(this,mb,"f").length+1}expand(e=!1){this.hasChildItems&&(this.open=!0,e&&this.childItems.forEach(e=>e.expand(!0)))}collapse(e=!1){this.hasChildItems&&(this.open=!1,e&&this.childItems.forEach(e=>e.collapse(!0)))}toggle(){this.hasChildItems&&(this.open=!this.open)}connectedCallback(){super.connectedCallback(),e(this,mb,"f").length=0;for(let t=this.parentElement?.closest("m3e-nav-menu-item");t;t=t.parentElement?.closest("m3e-nav-menu-item"))e(this,mb,"f").push(t);e(this,mb,"f").reverse(),this.style.setProperty("--_nav-menu-item-level",`${this.level}`),a(this,hb,this.closest("m3e-nav-menu"),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,mb,"f").length=0}update(t){if(super.update(t),t.has("selected")){this.ariaSelected=null,this.ariaCurrent=this.hasChildItems?null:`${this.selected}`;for(const e of this.querySelectorAll(":scope > m3e-icon[slot]"))e.toggleAttribute("filled",this.selected);e(this,mb,"f").forEach(e=>e.selected=this.selected),this.selected&&!this.hasChildItems&&this.closest("m3e-nav-menu")?.[Te].notifySelectionChange(this)}(t.has("open")||t.has("_hasChildItems"))&&(this.ariaExpanded=this._hasChildItems?`${this.open}`:null),(t.has("_hasChildItems")&&this.disabled||t.has("disabled"))&&e(this,db,"f").forEach(e=>e.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e);const t=this._base;t&&[this.focusRing,this.stateLayer,this.ripple].forEach(e=>e?.attach(t))}render(){return s`<div class="base" @click="${e(this,cb,"m",gb)}"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="icon" aria-hidden="true">${e(this,cb,"m",ub).call(this)}</div><div class="label"><slot name="label" @slotchange="${e(this,cb,"m",bb)}"></slot></div><slot name="badge"></slot><div aria-hidden="true" class="toggle"><slot name="toggle-icon"><svg class="toggle-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><m3e-collapsible class="group" role="group" aria-hidden="${Fe(this._hasChildItems?void 0:"true")}" ?open="${this._hasChildItems&&this.open}" @opening="${e(this,cb,"m",yb)}" @opened="${e(this,cb,"m",yb)}" @closing="${e(this,cb,"m",yb)}" @closed="${e(this,cb,"m",yb)}"><slot @slotchange="${e(this,cb,"m",fb)}"></slot></m3e-collapsible>`}};var wb,kb,Cb,Sb,_b,Lb,zb,Eb,Mb,Tb,Pb,Ib,Wb,Ab,Hb;db=new WeakMap,hb=new WeakMap,mb=new WeakMap,pb=new WeakMap,cb=new WeakSet,ub=function(){const t=s`<slot name="icon" @slotchange="${e(this,cb,"m",vb)}"></slot>`;return this.selected&&!this.hasChildItems?s`<slot name="selected-icon" @slotchange="${e(this,cb,"m",vb)}">${t}</slot>`:t},vb=function(e){w(this,"-with-icon",g(e.target))},bb=function(t){a(this,pb,t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLAnchorElement)??null,"f"),e(this,pb,"f")?.setAttribute("tabindex","-1")},fb=function(t){a(this,db,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof $b),"f");const o=this._hasChildItems;this._hasChildItems=e(this,db,"f").length>0,w(this,"-with-items",this._hasChildItems),(o||this._hasChildItems)&&(this.selected=e(this,db,"f").some(e=>e.selected))},gb=function(){if(!this.disabled)if(e(this,hb,"f")?.[Te].setActiveItem(this),this._hasChildItems)this.toggle();else{e(this,hb,"f")?.[Te].select(this),e(this,mb,"f").forEach(e=>e.selected=this.selected),e(this,pb,"f")?.click();const t=this.closest("m3e-drawer-container");if(t){const e=this.closest("[slot='start']")??this.closest("[slot='end']");e&&(O(t,`-${e.slot}-push`)||O(t,`-${e.slot}-over`))&&setTimeout(()=>{t.removeAttribute(e.slot),t.dispatchEvent(new Event("change",{bubbles:!0}))},300)}}},yb=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-nav-menu-item > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; } m3e-nav-menu-item > m3e-nav-menu-item:first-of-type { margin-block-start: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); } m3e-nav-menu-item > m3e-nav-menu-item:last-of-type { margin-block-end: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),xb.styles=i`:host { display: block; flex: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: flex; align-items: center; position: relative; padding-inline: var(--m3e-nav-menu-item-padding, 1.5rem); height: calc(var(--m3e-nav-menu-item-height, 3.5rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-nav-menu-item-spacing, 0.75rem); font-size: var(--m3e-nav-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard},\n background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .base, .focus-ring { border-radius: var(--m3e-nav-menu-item-shape, ${v.shape.corner.full}); } .label { flex: 1 1 auto; display: flex; align-items: center; position: relative; overflow: hidden; vertical-align: middle; } .icon, .toggle { flex: none; display: flex; align-items: center; justify-content: center; position: relative; vertical-align: middle; } ::slotted([slot="badge"]) { flex: none; position: relative; font-size: var(--m3e-nav-menu-item-badge-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-badge-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-badge-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-badge-tracking, ${v.typescale.standard.label.large.tracking}); } .toggle { transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:state(-with-icon))) .icon { display: none; } .icon { margin-inline-start: -0.5rem; } .toggle { margin-inline-end: -0.5rem; } .group { padding-inline-start: var(--m3e-nav-menu-item-inset, 1rem); } :host([open]) .toggle { transform: rotate(180deg); } :host(:not(:state(-with-items))) .toggle, :host(:not(:state(-with-items))) .group { display: none; } ::slotted([slot="selected-icon"]), ::slotted([slot="icon"]), ::slotted([slot="toggle-icon"]), .toggle-icon { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-nav-menu-item-icon-size, 1.5rem); } :host(:not(:disabled)) .base { cursor: pointer; } :host(:not(:disabled)) .base { color: var(--m3e-nav-menu-item-label-color, ${v.color.onSurfaceVariant}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-nav-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-nav-menu-item-disabled-color-opacity, 38%), transparent ); } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { color: var(--m3e-nav-menu-item-selected-label-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-nav-menu-item-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-nav-menu-item-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not([selected]):not(:state(-with-items)):not(:disabled)) .base { --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-unselected-ripple-color, ${v.color.onSurface}); } .state-layer { margin-inline: auto; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: var(--m3e-nav-menu-item-open-container-color, ${v.color.surfaceContainerHighest}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-open-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-open-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-open-ripple-color, ${v.color.onSurface}); } ::slotted(a[slot="label"]) { all: unset; } @media (prefers-reduced-motion) { .base, .toggle, .state-layer { transition: none !important; } } @media (forced-colors: active) { .base, .state-layer { transition: none !important; } :host(:disabled) .base { color: GrayText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: unset; color: ButtonText; } }`,t([h(".state-layer")],xb.prototype,"stateLayer",void 0),t([h(".focus-ring")],xb.prototype,"focusRing",void 0),t([h(".ripple")],xb.prototype,"ripple",void 0),t([h(".base")],xb.prototype,"_base",void 0),t([u()],xb.prototype,"_hasChildItems",void 0),t([m({type:Boolean,reflect:!0})],xb.prototype,"open",void 0),xb=$b=t([$("m3e-nav-menu-item")],xb);let Ob=Hb=class extends(f(r,"tree")){constructor(){super(),wb.add(this),kb.set(this,!1),Cb.set(this,!1),this[Ab]=(new Pe).withVerticalOrientation().withHomeAndEnd().withTypeahead().withSkipPredicate(e=>e.disabled||!e.visible).disableRovingTabIndex().onActiveItemChange(()=>{this[Te].activeItem&&e(this,wb,"m",Pb).call(this,this[Te].activeItem)}).onSelectedItemsChange(()=>{const t=this.selected;for(const a of this.items)a!==t&&e(this,wb,"m",Wb).call(this,a,!1,!1);t?.label&&S(t.label,this,{block:"start",behavior:"smooth"})}),Sb.set(this,t=>e(this,wb,"m",Eb).call(this,t)),_b.set(this,t=>e(this,wb,"m",Mb).call(this,t)),Lb.set(this,t=>e(this,wb,"m",Tb).call(this,t)),new K(this,{callback:e=>a(this,Cb,e,"f")}),new j(this,{callback:()=>{e(this,Cb,"f")||e(this,wb,"m",Ib).call(this)}})}get selected(){return this[Te].selectedItems[0]??null}get items(){return this[Te].items}expand(e){(e??this[Te].items).forEach(e=>e.expand())}collapse(e){(e??this[Te].items).forEach(e=>e.collapse());const t=this[Te].activeItem;if(t&&!t.visible)for(let e=t.parentItem;e;e=e.parentItem)if(e.visible){this[Te].setActiveItem(e);break}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",e(this,Sb,"f")),this.addEventListener("keyup",e(this,_b,"f")),this.addEventListener("pointerdown",e(this,Lb,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Sb,"f")),this.removeEventListener("keyup",e(this,_b,"f")),this.removeEventListener("pointerdown",e(this,Lb,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,wb,"m",zb)}"></slot></div>`}};var Db,Bb,qb,Fb,Vb;kb=new WeakMap,Cb=new WeakMap,Sb=new WeakMap,_b=new WeakMap,Lb=new WeakMap,wb=new WeakSet,Ab=Te,zb=function(){for(const e of this.querySelectorAll("m3e-divider"))e.ariaHidden="true";const{added:t}=this[Te].setItems([...this.querySelectorAll("m3e-nav-menu-item")]);for(const e of t)e.id=e.id||"m3e-nav-menu-item-"+Hb.__nextId++;this[Te].activeItem?(this.setAttribute("aria-activedescendant",this[Te].activeItem.id),e(this,wb,"m",Ib).call(this)):this.removeAttribute("aria-activedescendant")},Eb=function(t){a(this,kb,!1,"f"),e(this,wb,"m",Ib).call(this);const o=this[Te].activeItem;if(!t.defaultPrevented&&o&&!o.disabled)switch(t.key){case"Enter":case" ":t.preventDefault()," "===t.key&&o.ripple&&!o.ripple.visible&&o.ripple.show(0,0,!0),o.hasChildItems?requestAnimationFrame(()=>o.toggle()):o.selected||(this[Te].select(o),o.link?.click());break;case"*":t.preventDefault(),o.expand(!0);break;case"Left":case"ArrowLeft":if(t.preventDefault(),"ltr"===De.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&requestAnimationFrame(()=>{e.collapse(),this[Te].setActiveItem(e)})}else o.hasChildItems&&!o.open&&o.expand();break;case"Right":case"ArrowRight":if(t.preventDefault(),"rtl"===De.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&requestAnimationFrame(()=>{e.collapse(),this[Te].setActiveItem(e)})}else o.hasChildItems&&!o.open&&o.expand();break;default:this[Te].onKeyDown(t)}},Mb=function(e){const t=this[Te].activeItem;e.defaultPrevented||!t||t.disabled||" "!==e.key||t.ripple?.hide()},Tb=function(t){if(!t.defaultPrevented&&!e(this,kb,"f")){a(this,kb,!0,"f");const o=t.composedPath().reverse().find(e=>e instanceof xb);o&&!o.disabled&&e(this,wb,"m",Wb).call(this,o,!0,!1)}},Pb=function(t){this.setAttribute("aria-activedescendant",t.id),t.label&&S(t.label,this,{block:"nearest",behavior:"smooth"}),e(this,wb,"m",Ib).call(this)},Ib=function(){const t=this.matches(":focus")||this.matches(":focus-within"),a=!e(this,kb,"f")&&this.matches(":focus-visible");this[Te].items.forEach(o=>{const i=o===this[Te].activeItem;e(this,wb,"m",Wb).call(this,o,i&&t,i&&a)})},Wb=function(e,t,a){t&&a?e.stateLayer?.show("focused"):e.stateLayer?.hide("focused"),a?e.focusRing?.show():e.focusRing?.hide()},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-nav-menu > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),Ob.styles=i`:host { display: block; outline: none; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; } .base { width: 100%; display: flex; flex-direction: column; position: relative; min-height: inherit; box-sizing: border-box; padding-block-start: var(--m3e-nav-menu-padding-top, 0.5rem); padding-block-end: var(--m3e-nav-menu-padding-bottom, 0.5rem); padding-inline-start: var(--m3e-nav-menu-padding-left, 0.75rem); padding-inline-end: var(--m3e-nav-menu-padding-right, 0.75rem); }`,Ob.__nextId=0,Ob=Hb=t([$("m3e-nav-menu")],Ob);let Rb=Vb=class extends(P(f(r,"group"))){constructor(){super(...arguments),Db.add(this),Bb.set(this,"m3e-nav-menu-item-group-label-"+Vb.__nextId++),qb.set(this,void 0)}connectedCallback(){super.connectedCallback(),w(this,"-divided","M3E-DIVIDER"===this.previousElementSibling?.tagName)}disconnectedCallback(){super.disconnectedCallback(),k(this,"-divided")}render(){return s`<div class="label"><slot name="label" @slotchange="${e(this,Db,"m",Fb)}"></slot></div><slot></slot>`}};var Nb,Ub,jb,Kb;Bb=new WeakMap,qb=new WeakMap,Db=new WeakSet,Fb=function(t){const o=t.target.assignedElements({flatten:!0})[0];o!==e(this,qb,"f")&&(e(this,qb,"f")?.id===e(this,Bb,"f")&&(e(this,qb,"f").id=""),a(this,qb,o,"f"),e(this,qb,"f")?(e(this,qb,"f").id=e(this,qb,"f").id||e(this,Bb,"f"),this.setAttribute("aria-labelledby",e(this,qb,"f").id)):this.removeAttribute("aria-labelledby")),w(this,"-with-label",void 0!==e(this,qb,"f"))},Rb.styles=i`:host { display: contents; } :host(:not(:state(-with-label))) .label { display: none; } .label { margin-inline-start: var(--m3e-nav-menu-item-group-label-inset, 1rem); margin-block-end: var(--m3e-nav-menu-item-group-label-space, 1rem); flex: none; } :host(:state(-divided)) .label { margin-block-start: calc( var(--m3e-nav-menu-item-group-label-space, 1rem) - var(--m3e-nav-menu-divider-margin, 0.25rem) ); } :host(:not(:state(-divided))) .label { margin-block-start: var(--m3e-nav-menu-item-group-label-space, 1rem); }`,Rb.__nextId=0,Rb=Vb=t([$("m3e-nav-menu-item-group")],Rb);let Zb=class extends Ze{constructor(){super(),Nb.add(this),Ub.set(this,(new We).withHomeAndEnd().withWrap()),jb.set(this,t=>e(this,Nb,"m",Kb).call(this,t)),this[Te].onSelectedItemsChange(()=>{e(this,Ub,"f").updateActiveItem(this[Te].activeItem)})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,jb,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,jb,"f"))}_updateItems(){const t=Le.findInteractiveElements(this),{added:a}=e(this,Ub,"f").setItems(t);if(!e(this,Ub,"f").activeItem){const t=a.find(e=>!e.hasAttribute("disabled"));t&&e(this,Ub,"f").updateActiveItem(t)}super._updateItems()}_updateOrientation(e){super._updateOrientation(e),this.querySelectorAll("m3e-fab").forEach(t=>t.toggleAttribute("extended","horizontal"===e))}};var Gb,Xb,Yb;Ub=new WeakMap,jb=new WeakMap,Nb=new WeakSet,Kb=function(t){e(this,Ub,"f").onKeyDown(t)},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-nav-rail > m3e-icon-button, m3e-nav-rail > m3e-fab { margin-block-end: var(--m3e-nav-rail-button-item-space, 1rem); } m3e-nav-rail:not(:state(-compact)) > m3e-icon-button { margin-inline-start: var(--m3e-nav-rail-expanded-icon-button-inset, 0.5rem); }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),Zb.styles=i`:host { display: block; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } .base { display: flex; width: 100%; min-width: inherit; max-width: inherit; flex-direction: column; padding-block-start: var(--m3e-nav-rail-top-space, 2.75rem); padding-block-end: var(--m3e-nav-rail-bottom-space, 0.5rem); } :host(:state(-compact)) { width: var(--m3e-nav-rail-compact-width, 6rem); } :host(:state(-compact)) ::slotted(m3e-fab) { align-self: center; } :host(:not(:state(-compact))) { min-width: var(--m3e-nav-rail-expanded-min-width, 13.75rem); max-width: var(--m3e-nav-rail-expanded-max-width, 22.5rem); } :host(:not(:state(-compact))) .base { padding-inline: var(--m3e-nav-rail-expanded-inline-padding, 1.25rem); align-items: flex-start; --m3e-horizontal-nav-item-active-indicator-height: var(--m3e-nav-rail-expanded-item-height, 3.5rem); --_nav-item-align-self: stretch; --_nav-item-justify-content: flex-start; } ::slotted(*) { flex: none; } :host(:state(-compact)) ::slotted(m3e-icon-button) { align-self: center; } ::slotted(m3e-fab) { --m3e-fab-container-elevation: ${v.elevation.level0}; --m3e-fab-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-hover-container-elevation: ${v.elevation.level1}; --m3e-fab-lowered-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-hover-container-elevation: ${v.elevation.level1}; }`,Zb=t([$("m3e-nav-rail")],Zb);let Jb=class extends(b(z)){constructor(){super(...arguments),Gb.add(this),Xb.set(this,new x(this,{target:null,config:{attributeFilter:["class"]},callback:()=>e(this,Gb,"m",Yb).call(this)}))}attach(t){t instanceof Zb&&e(this,Xb,"f").observe(t),this.htmlFor&&this.parentElement&&Ee(this.parentElement,"aria-controls",this.htmlFor),super.attach(t),e(this,Gb,"m",Yb).call(this)}detach(){for(const t of e(this,Xb,"f").targets)e(this,Xb,"f").unobserve(t);this.parentElement&&(this.htmlFor&&Me(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),super.detach()}_onClick(){this.control instanceof Zb&&(this.control.currentMode="compact"===this.control.currentMode?"expanded":"compact")}};var Qb,ef,tf,af;Xb=new WeakMap,Gb=new WeakSet,Yb=async function(){if(!this.parentElement)return;const e=this.control instanceof Zb&&"expanded"===this.control.currentMode;this.parentElement.ariaExpanded=`${e}`,this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",e),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},Jb=t([$("m3e-nav-rail-toggle")],Jb);let of=class extends(he(U(P(f(r,"option"))))){constructor(){super(...arguments),Qb.add(this),ef.set(this,void 0),tf.set(this,""),this.term="",this.highlightMode="contains",this.disableHighlight=!1}get value(){return e(this,ef,"f")??e(this,tf,"f")}set value(e){a(this,ef,e,"f")}get label(){return e(this,tf,"f")}[(ef=new WeakMap,tf=new WeakMap,Qb=new WeakSet,He)](){return this.label}get isEmpty(){return""===this.value}connectedCallback(){super.connectedCallback(),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}firstUpdated(e){super.firstUpdated(e),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")&&this.selected){const e=this.closest("[role='listbox']")??this.closest("m3e-autocomplete")??this.closest("m3e-select");e&&"true"!==e.ariaMultiSelectable&&!e.hasAttribute("multi")&&e.querySelectorAll("m3e-option").forEach(e=>{e!==this&&e.selected&&(e.selected=!1)})}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></div><m3e-text-overflow class="label"><m3e-text-highlight term="${this.term}" mode="${this.highlightMode}" ?disabled="${this.disableHighlight}"><slot @slotchange="${e(this,Qb,"m",af)}"></slot></m3e-text-highlight></m3e-text-overflow></div></div>`}};var rf,sf,nf,lf,cf;af=function(e){a(this,tf,ce(e.target),"f"),w(this,"-empty",this.isEmpty),this.selected&&this.closest("m3e-select")?.requestUpdate()},of.styles=i`:host { display: block; outline: none; user-select: none; flex: none; height: var(--m3e-option-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) .base { color: var(--m3e-option-color, ${v.color.onSurface}); --m3e-state-layer-hover-color: var(--m3e-option-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-option-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-option-ripple-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not(:state(-empty))[selected]) .base { color: var(--m3e-option-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-option-selected-container-color, ${v.color.tertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-option-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-option-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-option-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not([aria-disabled="true"])) { cursor: pointer; } :host([aria-disabled="true"]) .base { color: color-mix( in srgb, var(--m3e-option-disabled-color, ${v.color.onSurface}) var(--m3e-option-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-option-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([selected]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host([selected]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; width: 100%; overflow: hidden; column-gap: var(--m3e-option-icon-label-space, 0.5rem); padding-inline-start: var(--_option-padding-start, var(--m3e-option-padding-start, 0.75rem)); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); font-size: var(--m3e-option-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-option-focus-ring-shape, inherit); } .icon { margin-inline-start: calc(0px - var(--m3e-option-icon-label-space, 0.5rem)); transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects}, width ${v.motion.spring.fastEffects}`)}; } :host([selected]) .icon { margin-inline-start: 0; width: var(--m3e-option-icon-size, 1.25rem); } .icon { flex: none; width: 0px; font-size: var(--m3e-option-icon-size, 1.25rem); } :host(:state(-empty)) .icon, :host(:state(-hide-selection-indicator)) .icon, :host(:not([selected])) .check { display: none; } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host([aria-disabled="true"]) .base { color: GrayText; } } @media (prefers-reduced-motion) { .icon, .base { transition: none; } }`,t([h(".focus-ring")],of.prototype,"focusRing",void 0),t([h(".state-layer")],of.prototype,"stateLayer",void 0),t([h(".ripple")],of.prototype,"_ripple",void 0),t([m()],of.prototype,"value",null),t([m()],of.prototype,"term",void 0),t([m({attribute:"highlight-mode"})],of.prototype,"highlightMode",void 0),t([m({attribute:"disable-highlight",type:Boolean})],of.prototype,"disableHighlight",void 0),of=t([$("m3e-option")],of);let df=cf=class extends(f(r,"group")){constructor(){super(...arguments),rf.add(this),sf.set(this,"m3e-optgroup-label-"+cf.__nextId++),nf.set(this,void 0)}render(){return s`<m3e-text-overflow class="label"><slot name="label" @slotchange="${e(this,rf,"m",lf)}"></slot></m3e-text-overflow><slot></slot>`}};var hf,mf,pf,uf;sf=new WeakMap,nf=new WeakMap,rf=new WeakSet,lf=function(t){const o=t.target.assignedElements({flatten:!0})[0]??void 0;o!==e(this,nf,"f")&&(e(this,nf,"f")?.id&&(Me(this,"aria-labelledby",e(this,nf,"f").id),e(this,nf,"f").id===e(this,sf,"f")&&(e(this,nf,"f").id="")),a(this,nf,o,"f"),e(this,nf,"f")&&(e(this,nf,"f").id=e(this,nf,"f").id||e(this,sf,"f"),Ee(this,"aria-labelledby",e(this,nf,"f").id)))},df.styles=i`:host { display: block; --_option-padding-start: calc(var(--m3e-option-padding-start, 0.75rem) * 2); } .label { height: var(--m3e-option-height, 3rem); font-size: var(--m3e-option-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-tracking, ${v.typescale.standard.label.large.tracking}); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); padding-inline-start: var(--m3e-option-padding-start, 0.75rem); color: var(--m3e-option-color, ${v.color.onSurface}); flex: none; }`,df.__nextId=0,df=cf=t([$("m3e-optgroup")],df);let vf=class extends(f(qe,"listbox")){constructor(){super(),hf.add(this),this.state="content",new x(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,hf,"m",uf).call(this)})}connectedCallback(){super.connectedCallback(),e(this,hf,"m",uf).call(this)}render(){return s`<div class="base"><slot></slot><div class="no-data" aria-hidden="true"><slot name="no-data" @slotchange="${e(this,hf,"m",mf)}"></slot></div><div class="loading" aria-hidden="true"><slot name="loading" @slotchange="${e(this,hf,"m",pf)}"></slot></div></div>`}};
59
+ */var $u,xu,wu,ku,Cu,Su,_u,Lu,zu,Eu,Mu,Tu,Pu,Iu,Wu,Du,Au,Hu,Ou,Fu,Bu,Vu,qu,Ru,Uu,Nu,ju,Yu,Ku,Zu;let Gu=class extends(M(P(r))){constructor(){super(),$u.add(this),xu.set(this,null),wu.set(this,void 0),ku.set(this,()=>e(this,$u,"m",Nu).call(this)),Cu.set(this,()=>e(this,$u,"m",Ru).call(this)),Su.set(this,new w(this,{target:null,config:{attributeFilter:["disabled","readonly","required"]},callback:()=>this.notifyControlStateChange()})),_u.set(this,new A(this,{target:null,callback:()=>e(this,$u,"m",Bu).call(this)})),Lu.set(this,new K(this,{target:null,callback:t=>{t=t&&!(e(this,xu,"f")?.disabled??1),k(this,"-no-animate",!1),a(this,Tu,t,"f"),t?k(this,"-float-label",!0):(this._invalid=!(e(this,xu,"f")?.checkValidity?.()??1),this.notifyControlStateChange())}})),zu.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,$u,"m",Ku).call(this)})),Eu.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>e(this,$u,"m",Zu).call(this)})),Mu.set(this,new Z(this,{target:null,callback:t=>k(this,"-pressed",t&&!(e(this,xu,"f")?.disabled??1))})),Tu.set(this,!1),this._pseudoLabel="",this._required=!1,this._invalid=!1,this._validationMessage="",Pu.set(this,""),Iu.set(this,""),this.variant="outlined",this.hideRequiredMarker=!1,this.hideSubscript="auto",this.floatLabel="auto",new ne(this,{callback:()=>k(this,"-no-animate",!1)})}get menuAnchor(){return this._base}get control(){return e(this,xu,"f")}notifyControlStateChange(t=!1){this._required=!0===e(this,xu,"f")?.required,k(this,"-required",this._required),k(this,"-disabled",!0===e(this,xu,"f")?.disabled),k(this,"-readonly",be(e(this,xu,"f"))&&!0===e(this,xu,"f").readOnly),"auto"===this.floatLabel&&k(this,"-float-label",e(this,$u,"a",Wu)||e(this,Tu,"f")),t&&(this._invalid=!(e(this,xu,"f")?.checkValidity?.()??1)),k(this,"-invalid",this._invalid),this._validationMessage=e(this,xu,"f")?.validationMessage??"",this.isUpdatePending||this.performUpdate()}connectedCallback(){super.connectedCallback(),k(this,"-no-animate",!0)}disconnectedCallback(){super.disconnectedCallback(),e(this,$u,"m",ju).call(this,null)}reconnectedCallback(){super.reconnectedCallback(),e(this,$u,"m",Du).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,$u,"m",Du).call(this)}update(t){super.update(t),t.has("_invalid")&&e(this,xu,"f")&&(e(this,xu,"f").ariaInvalid=this._invalid?"true":null,e(this,Iu,"f")&&(this._invalid?Oe.describe(e(this,xu,"f"),e(this,Iu,"f")):Oe.removeDescription(e(this,xu,"f"),e(this,Iu,"f"))))}render(){return s`<div class="base" @click="${e(this,$u,"m",qu)}">${"outlined"===this.variant?s`<div class="outline" aria-hidden="true"><div class="outline-start"></div><div class="outline-notch"><div class="pseudo-label">${this._pseudoLabel} ${!this.hideRequiredMarker&&this._required?s`&nbsp;*`:n}</div></div><div class="outline-end"></div></div>`:n}<div class="prefix"><slot name="prefix" @slotchange="${e(this,$u,"m",Ou)}"></slot></div><div class="content"><span class="prefix-text"><slot name="prefix-text"></slot></span><span class="input"><slot @slotchange="${e(this,$u,"m",Vu)}" @change="${e(this,$u,"m",Uu)}"></slot></span><span class="suffix-text"><slot name="suffix-text"></slot></span><span class="label"><slot name="label" @slotchange="${e(this,$u,"m",Hu)}"></slot>${!this.hideRequiredMarker&&this._required?s`<span class="required-marker" aria-hidden="true">&nbsp;*</span>`:n}</span></div><div class="suffix" @click="${e(this,$u,"m",Au)}" @focusin="${e(this,$u,"m",Au)}" @focusout="${e(this,$u,"m",Au)}" @pointerdown="${e(this,$u,"m",Au)}" @keydown="${e(this,$u,"m",Au)}" @keyup="${e(this,$u,"m",Au)}"><slot name="suffix" @slotchange="${e(this,$u,"m",Fu)}"></slot></div></div><span class="subscript" aria-hidden="true"><span class="error"><slot name="error">${this._validationMessage}</slot></span><span class="hint"><slot name="hint"></slot></span></span>`}};xu=new WeakMap,wu=new WeakMap,ku=new WeakMap,Cu=new WeakMap,Su=new WeakMap,_u=new WeakMap,Lu=new WeakMap,zu=new WeakMap,Eu=new WeakMap,Mu=new WeakMap,Tu=new WeakMap,Pu=new WeakMap,Iu=new WeakMap,$u=new WeakSet,Wu=function(){return void 0!==e(this,xu,"f")?.shouldLabelFloat?!0===e(this,xu,"f").shouldLabelFloat:"string"==typeof e(this,xu,"f")?.value&&e(this,xu,"f").value.length>0},Du=function(){e(this,Lu,"f").observe(this._base),e(this,Mu,"f").observe(this._base),e(this,zu,"f").observe(this._hint),e(this,$u,"m",Ku).call(this),e(this,Eu,"f").observe(this._error),e(this,$u,"m",Zu).call(this)},Au=function(e){e.stopImmediatePropagation(),e.stopPropagation()},Hu=function(e){const t=e.target.assignedElements({flatten:!0});k(this,"-with-label",t.length>0),this._pseudoLabel=t[0]?.textContent??""},Ou=function(t){k(this,"-with-prefix",g(t.target)),e(this,_u,"f").observe(this._prefix)},Fu=function(e){k(this,"-with-suffix",g(e.target))},Bu=function(){"outlined"===this.variant&&this._base.style.setProperty("--_prefix-width",`${this._prefix.clientWidth}px`)},Vu=function(t){e(this,$u,"m",ju).call(this,yu(t.target))},qu=function(t){!e(this,xu,"f")||e(this,Tu,"f")||e(this,xu,"f").disabled||(e(this,xu,"f").onContainerClick?e(this,xu,"f").onContainerClick(t):e(this,xu,"f").focus())},Ru=function(){this._invalid=!0,this.notifyControlStateChange()},Uu=function(){this._invalid=!(e(this,xu,"f")?.checkValidity?.()??1),this.notifyControlStateChange()},Nu=function(){this._invalid=!1,setTimeout(()=>this.notifyControlStateChange())},ju=function(t){if(e(this,xu,"f")!==t&&(e(this,xu,"f")&&(e(this,Pu,"f")&&Oe.removeDescription(e(this,xu,"f"),e(this,Pu,"f")),e(this,Iu,"f")&&Oe.removeDescription(e(this,xu,"f"),e(this,Iu,"f")),e(this,Su,"f").unobserve(e(this,xu,"f")),e(this,xu,"f").removeEventListener("invalid",e(this,Cu,"f")),e(this,xu,"f").form?.removeEventListener("reset",e(this,ku,"f")),e(this,wu,"f")?.call(this),a(this,wu,void 0,"f")),a(this,xu,t,"f"),["INPUT","TEXTAREA"].includes(e(this,xu,"f")?.tagName??"")?this._base.style.setProperty("--_form-field-cursor","text"):this._base.style.removeProperty("--_form-field-cursor"),k(this,"-with-select","M3E-SELECT"===e(this,xu,"f")?.tagName),O(this,"-with-select")&&this._base.style.setProperty("--_form-field-cursor","pointer"),e(this,xu,"f"))){e(this,Su,"f").observe(e(this,xu,"f")),e(this,xu,"f").addEventListener("invalid",e(this,Cu,"f")),e(this,xu,"f").form?.addEventListener("reset",e(this,ku,"f")),e(this,xu,"f").removeAttribute("aria-invalid"),e(this,Pu,"f")&&Oe.describe(e(this,xu,"f"),e(this,Pu,"f")),this.notifyControlStateChange();const t=e(this,xu,"f").tagName.toLowerCase();t.startsWith("m3e-")&&!customElements.get(t)?customElements.whenDefined(t).then(()=>e(this,$u,"m",Yu).call(this)):e(this,$u,"m",Yu).call(this)}},Yu=function(){e(this,xu,"f")&&a(this,wu,fe(e(this,xu,"f"),"value",{set:(e,t)=>{t(e),this.notifyControlStateChange(!0)}}),"f")},Ku=function(){const t=me(this._hint,!0);t!==e(this,Pu,"f")&&(e(this,xu,"f")&&e(this,Pu,"f")&&Oe.removeDescription(e(this,xu,"f"),e(this,Pu,"f")),a(this,Pu,t,"f"),e(this,xu,"f")&&e(this,Pu,"f")&&Oe.describe(e(this,xu,"f"),e(this,Pu,"f")))},Zu=function(){const t=me(this._error,!0);t!==e(this,Iu,"f")&&(e(this,xu,"f")&&e(this,Iu,"f")&&Oe.removeDescription(e(this,xu,"f"),e(this,Iu,"f")),a(this,Iu,t,"f"),e(this,xu,"f")&&e(this,Iu,"f")&&this._invalid&&Oe.describe(e(this,xu,"f"),e(this,Iu,"f")))},B(i`m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { user-select: none; color: currentColor; transition: opacity ${v.motion.duration.extraLong1}; } m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) input::placeholder, m3e-form-field[float-label="auto"]:not(:state(-float-label)):state(-with-label) textarea::placeholder { opacity: 0; transition: opacity 0s; } m3e-form-field[variant="outlined"] m3e-input-chip-set { margin-block: calc(calc(3.5rem + ${v.density.calc(-2)}) / 4); } @media (prefers-reduced-motion) { m3e-form-field input::placeholder, m3e-form-field textarea::placeholder { transition: none !important; } }`),Gu.styles=i`:host { display: inline-flex; flex-direction: column; vertical-align: middle; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); width: var(--m3e-form-field-width, 14.5rem); color: var(--_form-field-color); } :host(:not(:state(-disabled))) .base { cursor: var(--_form-field-cursor); } .base { display: flex; align-items: center; position: relative; min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); --_form-field-label-line-height: var( --m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight} ); } .content { display: flex; align-items: center; position: relative; flex: 1 1 auto; min-width: 0; min-height: var(--m3e-form-field-icon-size, 1.5rem); } .prefix, .suffix { display: flex; align-items: center; position: relative; user-select: none; flex: none; font-size: var(--m3e-form-field-icon-size, 1.5rem); } .prefix-text, .suffix-text { opacity: 1; transition: opacity ${v.motion.duration.extraLong1}; user-select: none; flex: none; } .input { display: inline-flex; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; } .label { display: flex; position: absolute; pointer-events: none; user-select: none; top: 0; left: 0; right: 0; font-size: var(--m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-label-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-label-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-label-tracking, ${v.typescale.standard.body.small.tracking}); color: var(--_form-field-label-color, inherit); transition: ${o(`top ${v.motion.duration.short4}, \n font-size ${v.motion.duration.short4}, \n line-height ${v.motion.duration.short4}`)}; } :host(:state(-with-select)) .label { margin-inline-end: 1.5rem; } ::slotted([slot="label"]) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subscript { display: inline-flex; width: 100%; margin-top: 0.25rem; font-size: var(--m3e-form-field-subscript-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-form-field-subscript-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-form-field-subscript-tracking, ${v.typescale.standard.body.small.tracking}); min-height: var(--m3e-form-field-subscript-line-height, ${v.typescale.standard.body.small.lineHeight}); color: var(--m3e-form-field-subscript-color, ${v.color.onSurfaceVariant}); } .error, .hint { flex: 1 1 auto; } :host([hide-subscript="always"]) .subscript { display: none; } :host([hide-subscript="auto"]:not(:state(-invalid))) .subscript { opacity: 0; margin-top: 0px; margin-bottom: 0.25rem; transition: ${o(`opacity ${v.motion.duration.short4}, \n margin-top ${v.motion.duration.short4}, \n margin-bottom ${v.motion.duration.short4}`)}; } :host([hide-subscript="auto"]:not(:state(-invalid)):focus-within) .subscript, :host([hide-subscript="auto"]:not(:state(-invalid)):state(-pressed)) .subscript { opacity: 1; margin-top: 0.25rem; margin-bottom: 0; } :host(:state(-invalid)) .hint { display: none; } :host(:not(:state(-invalid))) .error { display: none; } ::slotted(input), ::slotted(textarea), ::slotted(select) { outline: unset; border: unset; background-color: transparent; box-shadow: none; font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; color: var(--_form-field-input-color, inherit); flex: 1 1 auto; min-width: 0; padding: unset; } ::slotted(textarea) { scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } ::slotted(m3e-select), ::slotted(m3e-input-chip-set) { flex: 1 1 auto; min-width: 0; } :host([float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { font-size: inherit; } :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .prefix-text, :host([float-label="auto"]:not(:state(-float-label)):state(-with-label)) .suffix-text { opacity: 0; transition: opacity 0s; } .prefix { margin-inline-start: 1rem; } :host(:state(-with-prefix)) .prefix { margin-inline-end: 1rem; margin-inline-start: 0.75rem; } .suffix { margin-inline-end: 1rem; } :host(:state(-with-suffix)) .suffix { margin-inline-start: 0.25rem; margin-inline-end: 0.5rem; } :host(:state(-with-suffix):state(-with-select)) .suffix { margin-inline-start: unset; } :host(:state(-with-select)) .suffix-text { display: none; } :host([variant="outlined"]) .label { margin-top: calc(0px - var(--_form-field-label-line-height) / 2); } :host([variant="outlined"]) .outline { position: absolute; display: flex; pointer-events: none; left: 0; top: 0; bottom: 0; right: 0; } :host([variant="outlined"]) .pseudo-label { visibility: hidden; margin-inline-end: 0.5rem; font-size: var(--_form-field-label-font-size); line-height: var(--_form-field-label-line-height); letter-spacing: var(--_form-field-label-tracking); max-width: 100%; transition-property: max-width, margin-inline-end; transition-duration: 1ms; } :host([variant="outlined"]:state(-required):not([hide-required-marker])) .pseudo-label { margin-inline-end: 0.25rem; } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .pseudo-label { max-width: 0; margin-inline-end: 0px; transition-delay: ${v.motion.duration.short2}; } :host([variant="outlined"]) .outline-start, :host([variant="outlined"]) .outline-notch, :host([variant="outlined"]) .outline-end { box-sizing: border-box; border-width: var(--_form-field-outline-size, 1px); border-color: var(--_form-field-outline-color); transition: border-color ${v.motion.duration.short4}; } :host([variant="outlined"]:not(:state(-with-label))) .outline-notch { display: none; } :host([variant="outlined"]) .outline-start { min-width: 0.75rem; border-top-style: solid; border-inline-start-style: solid; border-bottom-style: solid; border-start-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-start-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]) .outline-notch { border-bottom-style: solid; } :host([variant="outlined"]) .outline-end { flex-grow: 1; min-width: 1rem; border-top-style: solid; border-inline-end-style: solid; border-bottom-style: solid; border-start-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); border-end-end-radius: var(--m3e-outlined-form-field-container-shape, ${v.shape.corner.extraSmall}); } :host([variant="outlined"]:state(-with-prefix)) .outline-start { min-width: calc(1.25rem + var(--_prefix-width, 0px) + 0.25rem); } :host([variant="outlined"]:not(:state(-disabled))) .base:hover .outline, :host([variant="outlined"]:not(:state(-disabled)):focus-within) .outline, :host([variant="outlined"]:not(:state(-disabled)):state(-pressed)) .outline { --_form-field-outline-size: 2px; } :host([variant="outlined"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="outlined"]) .content { min-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="outlined"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { margin-top: unset; line-height: calc(3.5rem + ${v.density.calc(-2)}); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host([variant="filled"]) .base { --_select-arrow-margin-top: calc( 0px - calc(1rem / max(calc(0 - calc(var(--md-sys-density-scale, 0) + var(--md-sys-density-scale, 0))), 1)) ); } :host([variant="filled"]) .base::before { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; border-bottom-style: solid; border-width: 1px; border-radius: var(--m3e-form-field-container-shape, ${v.shape.corner.extraSmallTop}); border-color: var(--_form-field-outline-color); background-color: var(--_form-field-container-color); } :host([variant="filled"]:not(:state(-disabled))) .base:hover::before, :host([variant="filled"]:not(:state(-disabled)):focus-within) .base::before, :host([variant="filled"]:not(:state(-disabled)):state(-pressed)) .base::before { border-width: 3px; } :host([variant="filled"]) .base::after { content: ""; box-sizing: border-box; position: absolute; pointer-events: none; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--_form-field-hover-container-color); transition: background-color ${v.motion.duration.short4}; } :host([variant="filled"]) .subscript { margin-inline: 1rem; width: calc(100% - 2rem); } :host([variant="filled"]) .content { padding-top: calc(1.5rem + ${v.density.calc(-2)}); margin-bottom: 0.5rem; } :host([variant="filled"]) .label { top: calc(0.5rem + ${v.density.calc(-2)}); } :host([variant="filled"][float-label="auto"]:not(:state(-float-label)):not(:state(-pressed))) .label { top: 0px; line-height: calc(3.5rem + ${v.density.calc(-2)} - 0.0625rem); --_form-field-label-font-size: var( --m3e-form-field-label-font-size, ${v.typescale.standard.body.small.fontSize} ); } :host(:not(:state(-disabled)):not(:focus-within):not(:state(-pressed))) .base:hover { --_form-field-hover-container-color: color-mix( in srgb, var(--m3e-form-field-hover-container-color, ${v.color.onSurface}) var(--m3e-form-field-hover-container-opacity, 8%), transparent ); } :host(:not(:state(-disabled)):not(:state(-invalid))) { color: var(--m3e-form-field-color, ${v.color.onSurface}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.outline}); } :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid))) .base { --_form-field-outline-color: var(--m3e-form-field-outline-color, ${v.color.onSurfaceVariant}); } :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="outlined"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):focus-within) .base, :host([variant="filled"]:not(:state(-disabled)):not(:state(-invalid)):state(-pressed)) .base { --_form-field-outline-color: var(--m3e-form-field-focused-outline-color, ${v.color.primary}); --_form-field-label-color: var(--m3e-form-field-focused-color, ${v.color.primary}); } :host(:not(:state(-disabled))) .base { --_form-field-container-color: var( --m3e-form-field-container-color, ${v.color.surfaceContainerHighest} ); } :host(:not(:state(-disabled)):state(-invalid)) .base { --_form-field-label-color: var(--m3e-form-field-invalid-color, ${v.color.error}); --_form-field-outline-color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:not(:state(-disabled)):state(-invalid)) .subscript { color: var(--m3e-form-field-invalid-color, ${v.color.error}); } :host(:state(-disabled)) { color: color-mix( in srgb, var(--m3e-form-field-disabled-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-opacity, 38%), transparent ); } :host(:state(-disabled)) .base { --_form-field-container-color: color-mix( in srgb, var(--m3e-form-field-disabled-container-color, ${v.color.onSurface}) var(--m3e-form-field-disabled-container-opacity, 4%), transparent ); } :host(:state(-no-animate)) *, :host(:state(-no-animate)) *::before, :host(:state(-no-animate)) *::after { transition: none !important; } @media (forced-colors: active) { :host([variant="filled"]) .base::after { transition: none; } :host { --_form-field-outline-color: CanvasText; } :host(:state(-disabled)) { --_form-field-input-color: GrayText; --_form-field-color: GrayText; --_form-field-label-color: GrayText; --_form-field-outline-color: GrayText; } } @media (prefers-reduced-motion) { .base::before, .prefix-text, .suffix-text, .label, .subscript, .outline-start, .outline-notch, .outline-end, .pseudo-label { transition: none !important; } }`,t([h(".base")],Gu.prototype,"_base",void 0),t([h(".prefix")],Gu.prototype,"_prefix",void 0),t([h(".error")],Gu.prototype,"_error",void 0),t([h(".hint")],Gu.prototype,"_hint",void 0),t([u()],Gu.prototype,"_pseudoLabel",void 0),t([u()],Gu.prototype,"_required",void 0),t([u()],Gu.prototype,"_invalid",void 0),t([u()],Gu.prototype,"_validationMessage",void 0),t([m({reflect:!0})],Gu.prototype,"variant",void 0),t([m({attribute:"hide-required-marker",type:Boolean,reflect:!0})],Gu.prototype,"hideRequiredMarker",void 0),t([m({attribute:"hide-subscript",reflect:!0})],Gu.prototype,"hideSubscript",void 0),t([m({attribute:"float-label",reflect:!0})],Gu.prototype,"floatLabel",void 0),Gu=t([$("m3e-form-field")],Gu);let Xu=class extends r{constructor(){super(...arguments),this.emphasized=!1,this.variant="display",this.size="medium"}update(e){super.update(e),e.has("level")&&(this.ariaLevel=void 0!==this.level?`${this.level}`:null,this.role=this.ariaLevel?"heading":null)}render(){return s`<slot></slot>`}};Xu.styles=i`:host { display: block; } :host([variant="display"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.display.large.fontSize}; font-weight: ${v.typescale.standard.display.large.fontWeight}; line-height: ${v.typescale.standard.display.large.lineHeight}; letter-spacing: ${v.typescale.standard.display.large.tracking}; } :host([variant="display"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.display.medium.fontSize}; font-weight: ${v.typescale.standard.display.medium.fontWeight}; line-height: ${v.typescale.standard.display.medium.lineHeight}; letter-spacing: ${v.typescale.standard.display.medium.tracking}; } :host([variant="display"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.display.small.fontSize}; font-weight: ${v.typescale.standard.display.small.fontWeight}; line-height: ${v.typescale.standard.display.small.lineHeight}; letter-spacing: ${v.typescale.standard.display.small.tracking}; } :host([variant="headline"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.large.fontSize}; font-weight: ${v.typescale.standard.headline.large.fontWeight}; line-height: ${v.typescale.standard.headline.large.lineHeight}; letter-spacing: ${v.typescale.standard.headline.large.tracking}; } :host([variant="headline"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.medium.fontSize}; font-weight: ${v.typescale.standard.headline.medium.fontWeight}; line-height: ${v.typescale.standard.headline.medium.lineHeight}; letter-spacing: ${v.typescale.standard.headline.medium.tracking}; } :host([variant="headline"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.headline.small.fontSize}; font-weight: ${v.typescale.standard.headline.small.fontWeight}; line-height: ${v.typescale.standard.headline.small.lineHeight}; letter-spacing: ${v.typescale.standard.headline.small.tracking}; } :host([variant="title"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.title.large.fontSize}; font-weight: ${v.typescale.standard.title.large.fontWeight}; line-height: ${v.typescale.standard.title.large.lineHeight}; letter-spacing: ${v.typescale.standard.title.large.tracking}; } :host([variant="title"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.title.medium.fontSize}; font-weight: ${v.typescale.standard.title.medium.fontWeight}; line-height: ${v.typescale.standard.title.medium.lineHeight}; letter-spacing: ${v.typescale.standard.title.medium.tracking}; } :host([variant="title"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.title.small.fontSize}; font-weight: ${v.typescale.standard.title.small.fontWeight}; line-height: ${v.typescale.standard.title.small.lineHeight}; letter-spacing: ${v.typescale.standard.title.small.tracking}; } :host([variant="label"][size="large"]:not([emphasized])) { font-size: ${v.typescale.standard.label.large.fontSize}; font-weight: ${v.typescale.standard.label.large.fontWeight}; line-height: ${v.typescale.standard.label.large.lineHeight}; letter-spacing: ${v.typescale.standard.label.large.tracking}; } :host([variant="label"][size="medium"]:not([emphasized])) { font-size: ${v.typescale.standard.label.medium.fontSize}; font-weight: ${v.typescale.standard.label.medium.fontWeight}; line-height: ${v.typescale.standard.label.medium.lineHeight}; letter-spacing: ${v.typescale.standard.label.medium.tracking}; } :host([variant="label"][size="small"]:not([emphasized])) { font-size: ${v.typescale.standard.label.small.fontSize}; font-weight: ${v.typescale.standard.label.small.fontWeight}; line-height: ${v.typescale.standard.label.small.lineHeight}; letter-spacing: ${v.typescale.standard.label.small.tracking}; } :host([variant="display"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.display.large.fontSize}; font-weight: ${v.typescale.emphasized.display.large.fontWeight}; line-height: ${v.typescale.emphasized.display.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.large.tracking}; } :host([variant="display"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.display.medium.fontSize}; font-weight: ${v.typescale.emphasized.display.medium.fontWeight}; line-height: ${v.typescale.emphasized.display.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.medium.tracking}; } :host([variant="display"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.display.small.fontSize}; font-weight: ${v.typescale.emphasized.display.small.fontWeight}; line-height: ${v.typescale.emphasized.display.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.display.small.tracking}; } :host([variant="headline"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.headline.large.fontSize}; font-weight: ${v.typescale.emphasized.headline.large.fontWeight}; line-height: ${v.typescale.emphasized.headline.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.large.tracking}; } :host([variant="headline"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.headline.medium.fontSize}; font-weight: ${v.typescale.emphasized.headline.medium.fontWeight}; line-height: ${v.typescale.emphasized.headline.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.medium.tracking}; } :host([variant="headline"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.headline.small.fontSize}; font-weight: ${v.typescale.emphasized.headline.small.fontWeight}; line-height: ${v.typescale.emphasized.headline.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.headline.small.tracking}; } :host([variant="title"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.title.large.fontSize}; font-weight: ${v.typescale.emphasized.title.large.fontWeight}; line-height: ${v.typescale.emphasized.title.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.large.tracking}; } :host([variant="title"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.title.medium.fontSize}; font-weight: ${v.typescale.emphasized.title.medium.fontWeight}; line-height: ${v.typescale.emphasized.title.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.medium.tracking}; } :host([variant="title"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.title.small.fontSize}; font-weight: ${v.typescale.emphasized.title.small.fontWeight}; line-height: ${v.typescale.emphasized.title.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.title.small.tracking}; } :host([variant="label"][size="large"][emphasized]) { font-size: ${v.typescale.emphasized.label.large.fontSize}; font-weight: ${v.typescale.emphasized.label.large.fontWeight}; line-height: ${v.typescale.emphasized.label.large.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.large.tracking}; } :host([variant="label"][size="medium"][emphasized]) { font-size: ${v.typescale.emphasized.label.medium.fontSize}; font-weight: ${v.typescale.emphasized.label.medium.fontWeight}; line-height: ${v.typescale.emphasized.label.medium.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.medium.tracking}; } :host([variant="label"][size="small"][emphasized]) { font-size: ${v.typescale.emphasized.label.small.fontSize}; font-weight: ${v.typescale.emphasized.label.small.fontWeight}; line-height: ${v.typescale.emphasized.label.small.lineHeight}; letter-spacing: ${v.typescale.emphasized.label.small.tracking}; }`,t([m({type:Boolean,reflect:!0})],Xu.prototype,"emphasized",void 0),t([m({reflect:!0})],Xu.prototype,"variant",void 0),t([m({reflect:!0})],Xu.prototype,"size",void 0),t([m({type:Number})],Xu.prototype,"level",void 0),Xu=t([$("m3e-heading")],Xu);let Ju=class extends(f(r,"img")){constructor(){super(...arguments),this.name="",this.variant="outlined",this.filled=!1,this.grade="medium",this.weight=400,this.opticalSize=24}connectedCallback(){this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby")||this.hasAttribute("aria-hidden")||(this.ariaHidden="true"),super.connectedCallback()}updated(e){super.updated(e),e.has("filled")&&this._icon?.style.setProperty("--_icon-fill",this.filled?"1":"0"),e.has("grade")&&this._icon?.style.setProperty("--_icon-grade","low"===this.grade?"-25":"high"===this.grade?"200":"0"),e.has("weight")&&this._icon?.style.setProperty("--_icon-weight",`${this.weight}`),e.has("opticalSize")&&this._icon?.style.setProperty("--_icon-optical-size",`${this.opticalSize}`)}render(){return s`<div class="icon" aria-hidden="true">${this.name}</div>`}};Ju.styles=i`:host { display: inline-block; user-select: none; font-size: var(--m3e-icon-size, 1.5rem); width: 1em; vertical-align: middle; overflow: hidden; } .icon { font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; width: inherit; height: inherit; vertical-align: inherit; font-variation-settings: "FILL" var(--_icon-fill, 0), "wght" var(--_icon-weight, 400), "GRAD" var(--_icon-grade, 0), "opsz" var(--_icon-optical-size, 24); } :host([variant="outlined"]) .icon { font-family: "Material Symbols Outlined"; } :host([variant="rounded"]) .icon { font-family: "Material Symbols Rounded"; } :host([variant="sharp"]) .icon { font-family: "Material Symbols Sharp"; }`,t([h(".icon")],Ju.prototype,"_icon",void 0),t([m()],Ju.prototype,"name",void 0),t([m({reflect:!0})],Ju.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],Ju.prototype,"filled",void 0),t([m()],Ju.prototype,"grade",void 0),t([m({type:Number})],Ju.prototype,"weight",void 0),t([m({attribute:"optical-size",type:Number})],Ju.prototype,"opticalSize",void 0),Ju=t([$("m3e-icon")],Ju);const Qu={"extra-small":{containerHeight:o(`calc(var(--m3e-icon-button-extra-small-container-height, var(--m3e-icon-button-container-height, 2rem)) + ${v.density.calc(0)})`),outlineThickness:o("var(--m3e-icon-button-extra-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-small-icon-size, var(--m3e-icon-button-icon-size, 1.25rem)) + ${v.density.calc(0)})`),shapeRound:o(`var(--m3e-icon-button-extra-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(0)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(0)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.375rem)) + ${v.density.calc(0)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.375rem)) + ${v.density.calc(0)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.625rem)) + ${v.density.calc(0)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.625rem)) + ${v.density.calc(0)})`)},small:{containerHeight:o(`calc(var(--m3e-icon-button-small-container-height, var(--m3e-icon-button-container-height, 2.5rem)) + ${v.density.calc(-1)})`),outlineThickness:o("var(--m3e-icon-button-small-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-small-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-1)})`),shapeRound:o(`var(--m3e-icon-button-small-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-small-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.medium}))`),selectedShapeRound:o(`var(--m3e-icon-button-small-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.medium}))`),selectedShapeSquare:o(`var(--m3e-icon-button-small-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-small-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.small}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-small-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.25rem)) + ${v.density.calc(-1)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-small-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.25rem)) + ${v.density.calc(-1)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-small-default-leading-space, var(--m3e-icon-button-default-leading-space, 0.5rem)) + ${v.density.calc(-1)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-small-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 0.5rem)) + ${v.density.calc(-1)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-small-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 0.875rem)) + ${v.density.calc(-1)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-small-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 0.875rem)) + ${v.density.calc(-1)})`)},medium:{containerHeight:o(`calc(var(--m3e-icon-button-medium-container-height, var(--m3e-icon-button-container-height, 3.5rem)) + ${v.density.calc(-2)})`),outlineThickness:o("var(--m3e-icon-button-medium-outline-thickness, var(--m3e-icon-button-outline-thickness, 1px))"),iconSize:o(`calc(var(--m3e-icon-button-medium-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) + ${v.density.calc(-2)})`),shapeRound:o(`var(--m3e-icon-button-medium-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-medium-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.large}))`),selectedShapeRound:o(`var(--m3e-icon-button-medium-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.large}))`),selectedShapeSquare:o(`var(--m3e-icon-button-medium-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-medium-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.medium}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 0.75rem)) + ${v.density.calc(-2)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-medium-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 0.75rem)) + ${v.density.calc(-2)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-medium-default-leading-space, var(--m3e-icon-button-default-leading-space, 1rem)) + ${v.density.calc(-2)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-medium-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 1rem)) + ${v.density.calc(-2)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-medium-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 1.5rem)) + ${v.density.calc(-2)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-medium-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 1.5rem)) + ${v.density.calc(-2)})`)},large:{containerHeight:o(`calc(var(--m3e-icon-button-large-container-height, var(--m3e-icon-button-container-height, 6rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 2px))"),iconSize:o(`calc(var(--m3e-icon-button-large-icon-size, var(--m3e-icon-button-icon-size, 2rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 1rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 1rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 2rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 2rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 3rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 3rem)) + ${v.density.calc(-3)})`)},"extra-large":{containerHeight:o(`calc(var(--m3e-icon-button-extra-large-container-height, var(--m3e-icon-button-container-height, 8.5rem)) + ${v.density.calc(-3)})`),outlineThickness:o("var(--m3e-icon-button-extra-large-outline-thickness, var(--m3e-icon-button-outline-thickness, 3px))"),iconSize:o(`calc(var(--m3e-icon-button-extra-large-icon-size, var(--m3e-icon-button-icon-size, 2.5rem)) + ${v.density.calc(-3)})`),shapeRound:o(`var(--m3e-icon-button-extra-large-shape-round, var(--m3e-icon-button-shape-round, ${v.shape.corner.full}))`),shapeSquare:o(`var(--m3e-icon-button-extra-large-shape-square, var(--m3e-icon-button-shape-square, ${v.shape.corner.extraLarge}))`),selectedShapeRound:o(`var(--m3e-icon-button-extra-large-selected-shape-round, var(--m3e-icon-button-selected-shape-round, ${v.shape.corner.extraLarge}))`),selectedShapeSquare:o(`var(--m3e-icon-button-extra-large-selected-shape-square, var(--m3e-icon-button-selected-shape-square, ${v.shape.corner.full}))`),shapePressedMorph:o(`var(--m3e-icon-button-extra-large-shape-pressed-morph, var(--m3e-icon-button-shape-pressed-morph, ${v.shape.corner.large}))`),narrowLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-leading-space, var(--m3e-icon-button-narrow-leading-space, 2rem)) + ${v.density.calc(-3)})`),narrowTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-narrow-trailing-space, var(--m3e-icon-button-narrow-trailing-space, 2rem)) + ${v.density.calc(-3)})`),defaultLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-leading-space, var(--m3e-icon-button-default-leading-space, 3rem)) + ${v.density.calc(-3)})`),defaultTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-default-trailing-space, var(--m3e-icon-button-default-trailing-space, 3rem)) + ${v.density.calc(-3)})`),wideLeadingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-leading-space, var(--m3e-icon-button-wide-leading-space, 4.5rem)) + ${v.density.calc(-3)})`),wideTrailingSpace:o(`calc(var(--m3e-icon-button-extra-large-wide-trailing-space, var(--m3e-icon-button-wide-trailing-space, 4.5rem)) + ${v.density.calc(-3)})`)}};function ev(e){return i`:host([size="${o(e)}"]) .base { height: ${Qu[e].containerHeight}; } :host([size="${o(e)}"][width="default"]) .wrapper { padding-inline-start: ${Qu[e].defaultLeadingSpace}; padding-inline-end: ${Qu[e].defaultTrailingSpace}; } :host([size="${o(e)}"][width="narrow"]) .wrapper { padding-inline-start: ${Qu[e].narrowLeadingSpace}; padding-inline-end: ${Qu[e].narrowTrailingSpace}; } :host([size="${o(e)}"][width="wide"]) .wrapper { padding-inline-start: ${Qu[e].wideLeadingSpace}; padding-inline-end: ${Qu[e].wideTrailingSpace}; } :host([size="${o(e)}"]) .icon { font-size: ${Qu[e].iconSize}; } :host([size="${o(e)}"]) .base { outline-offset: calc(0px - ${Qu[e].outlineThickness}); outline-width: ${Qu[e].outlineThickness}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Qu[e].shapeRound}); } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"]) .base { border-radius: ${Qu[e].shapeSquare}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="rounded"][toggle][selected]:not(:state(-pressed))) .base { border-radius: ${Qu[e].selectedShapeRound}; } :host(:not(:state(-connected))[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Qu[e].selectedShapeSquare}); } :host(:not(:state(-connected))[size="${o(e)}"]:state(-pressed)) .base { border-radius: ${Qu[e].shapePressedMorph}; } :host(:state(-connected)[size="${o(e)}"][shape="rounded"]) .base { border-start-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Qu[e].shapeRound}) ); border-end-start-radius: var( --_button-rounded-start-shape, var(--_button-shape, ${Qu[e].shapeRound}) ); border-start-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Qu[e].shapeRound}) ); border-end-end-radius: var( --_button-rounded-end-shape, var(--_button-shape, ${Qu[e].shapeRound}) ); } :host(:state(-connected)[size="${o(e)}"][shape="square"]) .base { border-start-start-radius: var(--_button-square-start-shape, ${Qu[e].shapeSquare}); border-end-start-radius: var(--_button-square-start-shape, ${Qu[e].shapeSquare}); border-start-end-radius: var(--_button-square-end-shape, ${Qu[e].shapeSquare}); border-end-end-radius: var(--_button-square-end-shape, ${Qu[e].shapeSquare}); } :host(:state(-connected)[size="${o(e)}"][shape="square"][toggle][selected]:not(:state(-pressed))) .base { border-radius: var(--_button-shape, ${Qu[e].selectedShapeSquare}); } :host(:state(-connected)[size="${o(e)}"]:state(-pressed)) .base { border-start-start-radius: var( --_button-start-shape-pressed-morph, ${Qu[e].shapePressedMorph} ); border-end-start-radius: var(--_button-start-shape-pressed-morph, ${Qu[e].shapePressedMorph}); border-start-end-radius: var(--_button-end-shape-pressed-morph, ${Qu[e].shapePressedMorph}); border-end-end-radius: var(--_button-end-shape-pressed-morph, ${Qu[e].shapePressedMorph}); }`}const tv=[ev("extra-small"),ev("small"),ev("medium"),ev("large"),ev("extra-large")],av=i`:host { display: inline-block; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; aspect-ratio: 1 / 1; height: 3rem; left: auto; right: auto; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n border-radius ${v.motion.spring.fastEffects}`)}; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; transition: ${o(`padding-inline ${v.motion.spring.fastEffects}`)}; } .icon { transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; --m3e-icon-size: 1em; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } ::slotted(*) { font-size: inherit !important; flex: none; transform: var(--_icon-button-icon-transform); transform-origin: center center; transition: ${o(`transform var(--_icon-button-icon-transform-transition, ${v.motion.spring.fastEffects})`)}; } ::slotted(svg) { width: 1em; height: 1em; } :host([toggle]:not([selected])) .base.with-selected-icon slot[name="selected"], :host([toggle][selected]) .base.with-selected-icon slot:not([name]) { display: none; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } :host(:state(-grouped):state(-connected)) { flex: 1 1 auto; } :host(:state(-grouped):not(:state(-connected)):not(:state(-adjacent-pressed)):not(:state(-pressed))) { flex-shrink: 0; flex-grow: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) { flex-shrink: 1; min-width: 0; } :host(:state(-grouped):not(:state(-connected)):state(-adjacent-pressed):not(:state(-pressed))) .label { text-overflow: clip; } :host(:state(-grouped):not(:state(-connected)):state(-pressed):not([disabled-interactive]):not(:disabled)) { flex-shrink: 0; flex-basis: calc( var(--_button-width) + calc(var(--_button-width) * var(--m3e-standard-button-group-width-multiplier, 0.15)) ); } @media (forced-colors: active) { .base, .icon { transition: none; } :host(:state(-pressed)) .base, :host(:state(-resting)) .base { transition: border-radius ${v.motion.spring.fastEffects}; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .label, :host([variant]:not(:disabled):not([disabled-interactive]):not([toggle])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .base { background-color: ButtonFace; outline-color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle]:not([selected])) .icon { color: ButtonText; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .base { background-color: ButtonText; outline: none; } :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .label, :host([variant]:not(:disabled):not([disabled-interactive])[toggle][selected]) .icon { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([variant]:disabled) .base, :host([variant][disabled-interactive]) .base { outline-color: GrayText; background-color: unset; } :host([variant]:disabled) .label, :host([variant][disabled-interactive]) .label, :host([variant]:disabled) .icon, :host([variant][disabled-interactive]) .icon { color: GrayText; } .base { outline-style: solid; } :host([size="extra-small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-extra-small-outline-thickness, 1px); } :host([size="small"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-small-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-small-outline-thickness, 1px); } :host([size="medium"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-medium-outline-thickness, 1px)); outline-width: var(--m3e-icon-button-medium-outline-thickness, 1px); } :host([size="large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-large-outline-thickness, 2px)); outline-width: var(--m3e-icon-button-large-outline-thickness, 2px); } :host([size="extra-large"]) .base { outline-offset: calc(0px - var(--m3e-icon-button-extra-large-outline-thickness, 3px)); outline-width: var(--m3e-icon-button-extra-large-outline-thickness, 3px); } } @media (prefers-reduced-motion) { :host(:state(-pressed)) .base, :host(:state(-resting)) .base, .base, .wrapper, .icon { transition: none; } }`,ov={elevated:{iconColor:o(`var(--m3e-elevated-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.primary}))`),containerColor:o(`var(--m3e-elevated-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.surfaceContainerLow}))`),containerElevation:o(`var(--m3e-elevated-icon-button-container-elevation, var(--m3e-icon-button-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.primary}))`),unselectedContainerColor:o(`var(--m3e-elevated-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainerLow}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-elevated-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-elevated-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-elevated-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-elevated-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-elevated-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),containerElevation:o(`var(--m3e-elevated-icon-button-disabled-container-elevation, var(--m3e-icon-button-disabled-container-elevation, ${v.elevation.level0}))`)},hover:{iconColor:o(`var(--m3e-elevated-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-hover-container-elevation, var(--m3e-icon-button-hover-container-elevation, ${v.elevation.level2}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-elevated-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-focus-container-elevation, var(--m3e-icon-button-focus-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-elevated-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.primary}))`),stateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.primary}))`),stateLayerOpacity:o(`var(--m3e-elevated-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),containerElevation:o(`var(--m3e-elevated-icon-button-pressed-container-elevation, var(--m3e-icon-button-pressed-container-elevation, ${v.elevation.level1}))`),unselectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.primary}))`),unselectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.primary}))`),selectedIconColor:o(`var(--m3e-elevated-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-elevated-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},outlined:{iconColor:o(`var(--m3e-outlined-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-outline-color, var(--m3e-icon-button-outline-color, ${v.color.outlineVariant}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedContainerColor:o(`var(--m3e-outlined-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.inverseSurface}))`),disabled:{containerColor:o(`var(--m3e-outlined-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-outlined-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-outlined-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-outlined-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))"),outlineColor:o(`var(--m3e-outlined-icon-button-disabled-outline-color, var(--m3e-icon-button-disabled-outline-color, ${v.color.outlineVariant}))`)},hover:{iconColor:o(`var(--m3e-outlined-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-hover-outline-color, var(--m3e-icon-button-hover-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},focus:{iconColor:o(`var(--m3e-outlined-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-focus-outline-color, var(--m3e-icon-button-focus-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.inverseOnSurface}))`)},pressed:{iconColor:o(`var(--m3e-outlined-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),outlineColor:o(`var(--m3e-outlined-icon-button-pressed-outline-color, var(--m3e-icon-button-pressed-outline-color, ${v.color.outlineVariant}))`),stateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-outlined-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-outlined-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.inverseOnSurface}))`),selectedStateLayerColor:o(`var(--m3e-outlined-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.inverseOnSurface}))`)}},filled:{iconColor:o(`var(--m3e-filled-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onPrimary}))`),containerColor:o(`var(--m3e-filled-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.primary}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedContainerColor:o(`var(--m3e-filled-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.surfaceContainer}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onPrimary}))`),selectedContainerColor:o(`var(--m3e-filled-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.primary}))`),disabled:{containerColor:o(`var(--m3e-filled-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-filled-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-filled-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-filled-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-filled-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onPrimary}))`)},focus:{iconColor:o(`var(--m3e-filled-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onPrimary}))`)},pressed:{iconColor:o(`var(--m3e-filled-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onPrimary}))`),stateLayerColor:o(`var(--m3e-filled-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onPrimary}))`),stateLayerOpacity:o(`var(--m3e-filled-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-filled-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-filled-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onPrimary}))`),selectedStateLayerColor:o(`var(--m3e-filled-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onPrimary}))`)}},tonal:{iconColor:o(`var(--m3e-tonal-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSecondaryContainer}))`),containerColor:o(`var(--m3e-tonal-icon-button-container-color, var(--m3e-icon-button-container-color, ${v.color.secondaryContainer}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedContainerColor:o(`var(--m3e-tonal-icon-button-unselected-container-color, var(--m3e-icon-button-unselected-container-color, ${v.color.secondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.onSecondary}))`),selectedContainerColor:o(`var(--m3e-tonal-icon-button-selected-container-color, var(--m3e-icon-button-selected-container-color, ${v.color.secondary}))`),disabled:{containerColor:o(`var(--m3e-tonal-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, ${v.color.onSurface}))`),containerOpacity:o("var(--m3e-tonal-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-tonal-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-tonal-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-tonal-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.onSecondary}))`)},focus:{iconColor:o(`var(--m3e-tonal-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.onSecondary}))`)},pressed:{iconColor:o(`var(--m3e-tonal-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSecondaryContainer}))`),stateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSecondaryContainer}))`),stateLayerOpacity:o(`var(--m3e-tonal-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSecondaryContainer}))`),unselectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSecondaryContainer}))`),selectedIconColor:o(`var(--m3e-tonal-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.onSecondary}))`),selectedStateLayerColor:o(`var(--m3e-tonal-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.onSecondary}))`)}},standard:{iconColor:o(`var(--m3e-standard-icon-button-icon-color, var(--m3e-icon-button-icon-color, ${v.color.onSurfaceVariant}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-unselected-icon-color, var(--m3e-icon-button-unselected-icon-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-selected-icon-color, var(--m3e-icon-button-selected-icon-color, ${v.color.primary}))`),disabled:{containerColor:o("var(--m3e-standard-icon-button-disabled-container-color, var(--m3e-icon-button-disabled-container-color, transparent))"),containerOpacity:o("var(--m3e-standard-icon-button-disabled-container-opacity, var(--m3e-icon-button-disabled-container-opacity, 10%))"),iconColor:o(`var(--m3e-standard-icon-button-disabled-icon-color, var(--m3e-icon-button-disabled-icon-color, ${v.color.onSurface}))`),iconOpacity:o("var(--m3e-standard-icon-button-disabled-icon-opacity, var(--m3e-icon-button-disabled-icon-opacity, 38%))")},hover:{iconColor:o(`var(--m3e-standard-icon-button-hover-icon-color, var(--m3e-icon-button-hover-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-hover-state-layer-color, var(--m3e-icon-button-hover-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-hover-state-layer-opacity, var(--m3e-icon-button-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-hover-unselected-icon-color, var(--m3e-icon-button-hover-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-unselected-state-layer-color, var(--m3e-icon-button-hover-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-hover-selected-icon-color, var(--m3e-icon-button-hover-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-hover-selected-state-layer-color, var(--m3e-icon-button-hover-selected-state-layer-color, ${v.color.primary}))`)},focus:{iconColor:o(`var(--m3e-standard-icon-button-focus-icon-color, var(--m3e-icon-button-focus-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-focus-state-layer-color, var(--m3e-icon-button-focus-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-focus-state-layer-opacity, var(--m3e-icon-button-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-focus-unselected-icon-color, var(--m3e-icon-button-focus-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-unselected-state-layer-color, var(--m3e-icon-button-focus-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-focus-selected-icon-color, var(--m3e-icon-button-focus-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-focus-selected-state-layer-color, var(--m3e-icon-button-focus-selected-state-layer-color, ${v.color.primary}))`)},pressed:{iconColor:o(`var(--m3e-standard-icon-button-pressed-icon-color, var(--m3e-icon-button-pressed-icon-color, ${v.color.onSurfaceVariant}))`),stateLayerColor:o(`var(--m3e-standard-icon-button-pressed-state-layer-color, var(--m3e-icon-button-pressed-state-layer-color, ${v.color.onSurfaceVariant}))`),stateLayerOpacity:o(`var(--m3e-standard-icon-button-pressed-state-layer-opacity, var(--m3e-icon-button-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity}))`),unselectedIconColor:o(`var(--m3e-standard-icon-button-pressed-unselected-icon-color, var(--m3e-icon-button-pressed-unselected-icon-color, ${v.color.onSurfaceVariant}))`),unselectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-unselected-state-layer-color, var(--m3e-icon-button-pressed-unselected-state-layer-color, ${v.color.onSurfaceVariant}))`),selectedIconColor:o(`var(--m3e-standard-icon-button-pressed-selected-icon-color, var(--m3e-icon-button-pressed-selected-icon-color, ${v.color.primary}))`),selectedStateLayerColor:o(`var(--m3e-standard-icon-button-pressed-selected-state-layer-color, var(--m3e-icon-button-pressed-selected-state-layer-color, ${v.color.primary}))`)}}};function iv(e){return i`:host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { background-color: ${ov[e].containerColor??o("unset")}; --m3e-state-layer-hover-color: ${ov[e].hover.stateLayerColor}; --m3e-state-layer-hover-opacity: ${ov[e].hover.stateLayerOpacity}; --m3e-state-layer-focus-color: ${ov[e].focus.stateLayerColor}; --m3e-state-layer-focus-opacity: ${ov[e].focus.stateLayerOpacity}; --m3e-ripple-color: ${ov[e].pressed.stateLayerColor}; --m3e-ripple-opacity: ${ov[e].pressed.stateLayerOpacity}; --m3e-elevation-level: ${ov[e].containerElevation??o("unset")}; --m3e-elevation-hover-level: ${ov[e].hover.containerElevation??o("unset")}; --m3e-elevation-focus-level: ${ov[e].focus.containerElevation??o("unset")}; --m3e-elevation-pressed-level: ${ov[e].pressed.containerElevation??o("unset")}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .base { background-color: ${ov[e].unselectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${ov[e].hover.unselectedStateLayerColor}; --m3e-state-layer-focus-color: ${ov[e].focus.unselectedStateLayerColor}; --m3e-ripple-color: ${ov[e].pressed.unselectedStateLayerColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .base { background-color: ${ov[e].selectedContainerColor??o("unset")}; --m3e-state-layer-hover-color: ${ov[e].hover.selectedStateLayerColor}; --m3e-state-layer-focus-color: ${ov[e].focus.selectedStateLayerColor}; --m3e-ripple-color: ${ov[e].pressed.selectedStateLayerColor}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .base { outline-color: ${ov[e].outlineColor??o("unset")}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .base { outline-color: ${ov[e].focus.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .base { outline-color: ${ov[e].hover.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .base { outline-color: ${ov[e].pressed.outlineColor??o("unset")}; } :host([variant="${o(e)}"]:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].selectedIconColor}; } :host([variant="${o(e)}"]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].focus.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):focus:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].focus.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:focus:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].focus.selectedIconColor}; } :host([variant="${o(e)}"]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].hover.iconColor}; } :host([variant="${o(e)}"][toggle]:not([selected]):hover:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].hover.unselectedIconColor}; } :host([variant="${o(e)}"][toggle][selected]:hover:not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].hover.selectedIconColor}; } :host([variant="${o(e)}"]:state(-pressed):not(:disabled):not([disabled-interactive])) .icon { color: ${ov[e].pressed.iconColor}; } :host( [variant="${o(e)}"][toggle]:not([selected]):state(-pressed):not(:disabled):not( [disabled-interactive] ) ) .icon { color: ${ov[e].pressed.unselectedIconColor}; } :host( [variant="${o(e)}"][toggle][selected]:state(-pressed):not(:disabled):not([disabled-interactive]) ) .icon { color: ${ov[e].pressed.selectedIconColor}; } :host([variant="${o(e)}"]:disabled) .base, :host([variant="${o(e)}"][disabled-interactive]) .base { outline-color: ${ov[e].disabled.outlineColor??o("unset")}; background-color: color-mix( in srgb, ${ov[e].disabled.containerColor} ${ov[e].disabled.containerOpacity}, transparent ); } :host([variant="${o(e)}"]:disabled) .icon, :host([variant="${o(e)}"][disabled-interactive]) .icon { color: color-mix( in srgb, ${ov[e].disabled.iconColor} ${ov[e].disabled.iconOpacity}, transparent ); }`}const rv=[iv("standard"),iv("outlined"),iv("filled"),iv("tonal"),iv("elevated"),i`:host([variant="outlined"]:not([toggle][selected]):not(:disabled):not([disabled-interactive])) .base { outline-style: solid; }`];var sv,nv,lv,cv,dv,hv;let mv=class extends(q(R(U(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(),sv.add(this),nv.set(this,t=>e(this,sv,"m",dv).call(this,t)),this.variant="standard",this.shape="rounded",this.size="small",this.width="default",this.toggle=!1,this.selected=!1,new A(this,{callback:()=>{this.grouped&&this._handleResize()}}),new K(this,{callback:e=>{this.disabledInteractive||e||this.grouped||this._base?.style.removeProperty("--_button-shape")}}),new Z(this,{isPressedKey:e=>" "===e,minPressedDuration:150,callback:t=>{this.disabled||this.disabledInteractive||(t?(e(this,sv,"m",lv).call(this),S()?e(this,sv,"m",cv).call(this,!0):requestAnimationFrame(()=>e(this,sv,"m",cv).call(this,!0))):e(this,sv,"m",cv).call(this,!1))}})}get grouped(){return O(this,"-grouped")}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-state-layer><m3e-elevation class="elevation" ?disabled="${this.disabled||this.disabledInteractive}"></m3e-elevation><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled||this.disabledInteractive}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${this[G]()}<div class="wrapper">${this.toggle?s`<slot class="icon" name="selected" aria-hidden="true" @slotchange="${e(this,sv,"m",hv)}"></slot>`:n}<slot class="icon" aria-hidden="true"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,nv,"f"))}disconnectedCallback(){super.disconnectedCallback(),["-pressed","-resting","-grouped","-connected"].forEach(e=>C(this,e)),this._base?.style.removeProperty("--_button-shape"),this.style.removeProperty("--_button-width"),this.style.removeProperty("--_adjacent-button-width"),C(this,"-adjacent-pressed"),this.removeEventListener("click",e(this,nv,"f"))}firstUpdated(e){super.firstUpdated(e),[this._elevation,this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}updated(e){if(super.updated(e),(e.has("disabled")&&this.disabled||e.has("disabledInteractive")&&this.disabledInteractive)&&(C(this,"-pressed"),C(this,"-resting")),(e.has("toggle")||e.has("selected"))&&(this.ariaPressed=this.toggle?`${this.selected}`:null,this.toggle))for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}_handleResize(){this.grouped&&!O(this,"-pressed")&&(this.style.setProperty("--_button-width",`${this.clientWidth}px`),e(this,sv,"m",lv).call(this,!0))}};var pv,uv,vv,bv,fv,gv,yv;nv=new WeakMap,sv=new WeakSet,lv=function(e=!1){if(!this._base)return;const t=parseFloat(getComputedStyle(this._base).borderRadius);if(!isNaN(t)||e){const a=this.clientHeight/2;(a<t||e)&&this._base?.style.setProperty("--_button-shape",`${a}px`)}},cv=function(e){k(this,"-pressed",e),k(this,"-resting",!e);const t=this.closest("m3e-button-group");if(t){const a=this.getBoundingClientRect().width,o=[...t.querySelectorAll("m3e-button,m3e-icon-button")],i=o.indexOf(this);for(let t=0;t<o.length;t++){const r=o[t];t===i-1||t===i+1?(r.style.setProperty("--_adjacent-button-width",`${a}px`),k(r,"-adjacent-pressed",e)):(r.style.removeProperty("--_adjacent-button-width"),C(r,"-adjacent-pressed"))}}},dv=function(e){(this.disabled||this.disabledInteractive)&&(e.preventDefault(),e.stopImmediatePropagation()),this.toggle&&!e.defaultPrevented&&(this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!this.selected)},hv=function(e){this._base?.classList.toggle("with-selected-icon",g(e.target))},mv.styles=[tv,rv,av],t([h(".base")],mv.prototype,"_base",void 0),t([h(".elevation")],mv.prototype,"_elevation",void 0),t([h(".focus-ring")],mv.prototype,"_focusRing",void 0),t([h(".state-layer")],mv.prototype,"_stateLayer",void 0),t([h(".ripple")],mv.prototype,"_ripple",void 0),t([m({reflect:!0})],mv.prototype,"variant",void 0),t([m({reflect:!0})],mv.prototype,"shape",void 0),t([m({reflect:!0})],mv.prototype,"size",void 0),t([m({reflect:!0})],mv.prototype,"width",void 0),t([m({type:Boolean,reflect:!0})],mv.prototype,"toggle",void 0),t([m({type:Boolean,reflect:!0})],mv.prototype,"selected",void 0),t([y(40)],mv.prototype,"_handleResize",null),mv=t([$("m3e-icon-button")],mv);let $v=class extends(M(P(f(r,"listitem")))){constructor(){super(...arguments),pv.add(this),uv.set(this,new A(this,{target:null,callback:()=>e(this,pv,"m",gv).call(this)})),vv.set(this,void 0),bv.set(this,void 0)}get leadingContentType(){return e(this,vv,"f")}get trailingContentType(){return e(this,bv,"f")}reconnectedCallback(){super.reconnectedCallback(),e(this,pv,"m",fv).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,pv,"m",fv).call(this)}render(){return s`<div class="base">${this._renderBase()}</div>`}_renderBase(){return s`<slot name="leading" @slotchange="${this._handleLeadingSlotChange}"><slot name="leading-icon" @slotchange="${this._handleLeadingSlotChange}"></slot></slot><div class="content"><slot name="overline"></slot><slot></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"><slot name="trailing-supporting-text" @slotchange="${this._handleTrailingSlotChange}"></slot><slot name="trailing-icon" @slotchange="${this._handleTrailingSlotChange}"></slot></slot>`}_handleLeadingSlotChange(t){const o=e(this,vv,"f");a(this,vv,e(this,pv,"m",yv).call(this,t.target),"f"),k(this,"-has-leading",void 0!==e(this,vv,"f")),o!==e(this,vv,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyLeadingContentTypeChange(o,e(this,vv,"f"))}_handleTrailingSlotChange(t){const o=e(this,bv,"f");a(this,bv,e(this,pv,"m",yv).call(this,t.target),"f"),k(this,"-has-trailing",void 0!==e(this,bv,"f")),o!==e(this,bv,"f")&&this.closest("m3e-list,m3e-action-list,m3e-selection-list")?.notifyTrailingContentTypeChange(o,e(this,bv,"f"))}};var xv,wv,kv,Cv,Sv;uv=new WeakMap,vv=new WeakMap,bv=new WeakMap,pv=new WeakSet,fv=function(){const t=this.shadowRoot?.querySelector(".content");t&&e(this,uv,"f").observe(t)},gv=function(){const e=this.shadowRoot?.querySelector(".content")??null,t=null===e?0:ge(e);k(this,"-one-line",t<=1),k(this,"-two-line",2==t),k(this,"-three-line",t>2)},yv=function(e){const t=e.assignedElements({flatten:!0});return t.some(e=>"VIDEO"===e.tagName)?"video":t.some(e=>"IMG"===e.tagName)?"image":t.some(e=>"M3E-AVATAR"===e.tagName)?"avatar":t.some(e=>"M3E-ICON"===e.tagName)?"icon":t.length>0?"text":void 0},$v.styles=i`:host { display: block; } .base { display: flex; min-height: inherit; width: 100%; box-sizing: border-box; column-gap: var(--m3e-list-item-between-space, 1rem); padding-inline-start: var(--m3e-list-item-leading-space, 1rem); padding-inline-end: var(--m3e-list-item-trailing-space, 1rem); border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-container-shape, ${v.shape.corner.none}) ); transition: ${o(`border-radius ${v.motion.spring.fastEffects}, background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:state(-one-line)) { min-height: calc(var(--m3e-list-item-one-line-height, 3.5rem) + ${v.density.calc(-3)}); } :host(:state(-one-line)) .base { padding-block-start: var(--m3e-list-item-one-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-one-line-bottom-space, 0.5rem); } :host(:state(-two-line)) { min-height: calc(var(--m3e-list-item-two-line-height, 4.5rem) + ${v.density.calc(-3)}); } :host(:state(-two-line)) .base { padding-block-start: var(--m3e-list-item-two-line-top-space, 0.5rem); padding-block-end: var(--m3e-list-item-two-line-bottom-space, 0.5rem); } :host(:state(-three-line)) { min-height: calc(var(--m3e-list-item-three-line-height, 5.5rem) + ${v.density.calc(-3)}); } :host(:state(-three-line)) .base { padding-block-start: var(--m3e-list-item-three-line-top-space, 0.75rem); padding-block-end: var(--m3e-list-item-three-line-bottom-space, 0.75rem); } :host(:not(:state(-three-line))) .base { align-items: center; } :host(:state(-three-line)) .base { align-items: flex-start; } :host(:not(:disabled):not([selected])) .base:not(.hover).focus-visible:not(.pressed) { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-focus-container-shape, ${v.shape.corner.large}) ); } :host(:not(:disabled):not([selected])) .base.hover, :host(:not(:disabled):not([selected])) .base.pressed { border-top-left-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-top-right-radius: var( --_list-item-top-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-left-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); border-bottom-right-radius: var( --_list-item-bottom-container-shape, var(--m3e-list-item-hover-container-shape, ${v.shape.corner.medium}) ); } .content { flex: 1 1 auto; display: flex; flex-direction: column; align-items: unset; justify-content: unset; } ::slotted([slot="overline"]) { font-size: var(--m3e-list-item-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-list-item-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-list-item-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-list-item-overline-tracking, ${v.typescale.standard.label.small.tracking}); } ::slotted([slot="supporting-text"]) { font-size: var(--m3e-list-item-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize}); font-weight: var( --m3e-list-item-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-list-item-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-list-item-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } ::slotted(:not([slot])) { font-size: var(--m3e-list-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-list-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-list-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-list-item-tracking, ${v.typescale.standard.body.large.tracking}); } :host(:state(-has-leading)) slot[name="leading"], :host(:state(-has-trailing)) slot[name="trailing"] { display: flex; justify-content: center; } :host(:not(:state(-has-leading))) slot[name="leading"] { display: var(--_list-item-leading-reserved-display, contents); } :host(:not(:state(-has-trailing))) slot[name="trailing"] { display: var(--_list-item-trailing-reserved-display, contents); } slot[name="leading"] { min-width: var(--_list-item-leading-reserved-space, 0px); margin-inline-start: calc(0px - var(--_list-item-leading-reserved-outset, 0px)); } slot[name="trailing"] { min-width: var(--_list-item-trailing-reserved-space, 0px); margin-inline-end: calc(0px - var(--_list-item-trailing-reserved-outset, 0px)); } ::slotted(span[slot="trailing"]), ::slotted([slot="trailing-supporting-text"]) { white-space: nowrap; font-size: var(--m3e-list-item-trailing-text-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var( --m3e-list-item-trailing-text-font-weight, ${v.typescale.standard.label.small.fontWeight} ); line-height: var( --m3e-list-item-trailing-text-line-height, ${v.typescale.standard.label.small.lineHeight} ); letter-spacing: var( --m3e-list-item-trailing-text-tracking, ${v.typescale.standard.label.small.tracking} ); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]), ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { display: block; margin: 0 auto; overflow: hidden; object-fit: cover; } ::slotted(video) { width: var(--m3e-list-item-video-width, 6.25rem); height: var(--m3e-list-item-video-height, 3.5rem); } ::slotted(video[slot="leading"]), ::slotted(video[slot="trailing"]) { border-radius: var(--m3e-list-item-video-shape, ${v.shape.corner.none}); } ::slotted(video[slot="leading"]) { margin-inline-start: calc(0px - var(--_list-item-leading-video-outset, 0px)); } ::slotted(video[slot="trailing"]) { margin-inline-end: calc(0px - var(--_list-item-trailing-video-outset, 0px)); } ::slotted(img) { user-drag: none; user-select: none; pointer-events: none; width: var(--m3e-list-item-image-width, 3.5rem); height: var(--m3e-list-item-image-height, 3.5rem); } ::slotted(img[slot="leading"]), ::slotted(img[slot="trailing"]) { border-radius: var(--m3e-list-item-image-shape, ${v.shape.corner.none}); } ::slotted(m3e-icon[slot="leading"]), ::slotted(m3e-icon[slot="leading-icon"]), ::slotted(m3e-icon[slot="trailing"]), ::slotted(m3e-icon[slot="trailing-icon"]) { --m3e-icon-size: var(--m3e-list-item-icon-size, 1.5rem); } :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading"]), :host(:not(:disabled)) ::slotted(m3e-icon[slot="leading-icon"]) { color: var(--m3e-list-item-leading-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .content { color: var(--m3e-list-item-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-overline-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-supporting-text-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) ::slotted([slot="trailing"]), :host(:not(:disabled)) ::slotted([slot="trailing-supporting-text"]), :host(:not(:disabled)) ::slotted([slot="trailing-icon"]) { color: var(--m3e-list-item-trailing-color, ${v.color.onSurfaceVariant}); } :host(:not(:disabled)) .base { background-color: var(--_list-item-container-color, var(--m3e-list-item-container-color, transparent)); } :host(:disabled) .base { background-color: var(--m3e-list-item-disabled-container-color, transparent); } :host(:disabled) ::slotted(video), :host(:disabled) ::slotted(img), :host(:disabled) ::slotted(m3e-avatar) { opacity: var(--m3e-list-item-disabled-media-opacity, 38%); } :host(:disabled) .content { color: color-mix( in srgb, var(--m3e-list-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="overline"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-overline-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-overline-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="supporting-text"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-supporting-text-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-supporting-text-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-leading-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-leading-opacity, 38%), transparent ); } :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: color-mix( in srgb, var(--m3e-list-item-disabled-trailing-color, ${v.color.onSurface}) var(--m3e-list-item-disabled-trailing-opacity, 38%), transparent ); } :host(:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var(--m3e-list-item-hover-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-hover-opacity: var( --m3e-list-item-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var(--m3e-list-item-focus-state-layer-color, ${v.color.onSurface}); --m3e-state-layer-focus-opacity: var( --m3e-list-item-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host(:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } @media (forced-colors: active) { :host(:disabled) ::slotted([slot="leading"]), :host(:disabled) ::slotted([slot="leading-icon"]), :host(:disabled) .content, :host(:disabled) ::slotted([slot="overline"]), :host(:disabled) ::slotted([slot="supporting-text"]), :host(:disabled) ::slotted([slot="trailing"]), :host(:disabled) ::slotted([slot="trailing-supporting-text"]), :host(:disabled) ::slotted([slot="trailing-icon"]) { color: GrayText; } } @media (prefers-reduced-motion) { .base { transition: none; } }`,$v=t([$("m3e-list-item")],$v);let _v=class extends(P(f(r,"list"))){constructor(){super(...arguments),xv.add(this),wv.set(this,new Array),kv.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),Cv.set(this,{video:0,image:0,avatar:0,icon:0,text:0}),this.variant="standard"}get items(){return e(this,wv,"f")}get leadingContentType(){return e(this,kv,"f").video>0?"video":e(this,kv,"f").image>0?"image":e(this,kv,"f").avatar>0?"avatar":e(this,kv,"f").icon>0?"icon":e(this,kv,"f").text>0?"text":void 0}get trailingContentType(){return e(this,Cv,"f").video>0?"video":e(this,Cv,"f").image>0?"image":e(this,Cv,"f").avatar>0?"avatar":e(this,Cv,"f").icon>0?"icon":e(this,Cv,"f").text>0?"text":void 0}render(){return s`<slot @slotchange="${e(this,xv,"m",Sv)}"></slot>`}notifyItemsChange(){}notifyLeadingContentTypeChange(t,a){t&&e(this,kv,"f")[t]--,a&&e(this,kv,"f")[a]++,["video","image","avatar","icon"].forEach(e=>{k(this,`-has-leading-${e}`,this.leadingContentType===e)})}notifyTrailingContentTypeChange(t,a){t&&e(this,Cv,"f")[t]--,a&&e(this,Cv,"f")[a]--,["video","image","avatar","icon"].forEach(e=>{k(this,`-has-trailing-${e}`,this.trailingContentType===e)})}};var Lv,zv,Ev,Mv,Tv,Pv,Iv,Wv,Dv;wv=new WeakMap,kv=new WeakMap,Cv=new WeakMap,xv=new WeakSet,Sv=function(t){a(this,wv,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof $v),"f"),e(this,wv,"f").forEach((t,a)=>{k(t,"-first",0===a),k(t,"-last",a===e(this,wv,"f").length-1)}),this.notifyItemsChange()},_v.styles=i`:host { display: flex; flex-direction: column; overflow-y: auto; box-sizing: border-box; padding-block: var(--m3e-list-block-padding, 0px); --m3e-divider-inset-start-size: var(--m3e-list-divider-inset-start-size, 1rem); --m3e-divider-inset-end-size: var(--m3e-list-divider-inset-end-size, 1.5rem); } :host([variant="standard"]) { --_list-item-leading-video-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-video-outset: var(--m3e-list-item-trailing-space, 1rem); --_expandable-list-item-expanded-toggle-icon-container-color: transparent; } :host([variant="segmented"]) { row-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); } :host([variant="segmented"]) { --m3e-list-item-container-color: var(--m3e-segmented-list-item-container-color, ${v.color.surface}); --m3e-list-item-disabled-container-color: var( --m3e-segmented-list-item-disabled-container-color, ${v.color.surface} ); --m3e-list-item-container-shape: var( --m3e-segmented-list-item-container-shape, ${v.shape.corner.extraSmall} ); --m3e-list-item-hover-container-shape: var( --m3e-segmented-list-item-hover-container-shape, ${v.shape.corner.medium} ); --m3e-list-item-focus-container-shape: var( --m3e-segmented-list-item-focus-container-shape, ${v.shape.corner.large} ); --m3e-list-item-selected-container-shape: var( --m3e-segmented-list-item-selected-container-shape, ${v.shape.corner.large} ); --m3e-list-item-video-shape: var(--m3e-segmented-list-item-video-shape, ${v.shape.corner.small}); --m3e-list-item-image-shape: var(--m3e-segmented-list-item-image-shape, ${v.shape.corner.small}); --m3e-list-item-between-space: var(--m3e-segmented-list-item-spacing, 0.75rem); --_expandable-list-item-items-segment-gap: var(--m3e-segmented-list-segment-gap, 0.125rem); --_expandable-list-item-expanded-top-shape: var( --m3e-segmented-list-container-shape, ${v.shape.corner.large} ); } :host([variant="segmented"]) ::slotted(:state(-first)), :host([variant="segmented"]) ::slotted(:state(-has-previous-open):not([open])) { --_list-item-top-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(:state(-has-next-open):not([open])), :host([variant="segmented"]) ::slotted(:state(-last)) { --_list-item-bottom-container-shape: var(--m3e-segmented-list-container-shape, ${v.shape.corner.large}); } :host([variant="segmented"]) ::slotted(m3e-divider) { display: none; } :host(:state(-has-leading-video)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-video-width, 6.25rem); } :host([variant="standard"]:state(-has-leading-video)) { --_list-item-leading-reserved-outset: var(--m3e-list-item-leading-space, 1rem); --_list-item-trailing-reserved-outset: var(--m3e-list-item-trailing-space, 1rem); } :host(:state(-has-leading-image)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-image-width, 3.5rem); } :host(:state(-has-leading-avatar)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-avatar-size, 2.5rem); } :host(:state(-has-leading-icon)) { --_list-item-leading-reserved-display: block; --_list-item-leading-reserved-space: var(--m3e-list-item-icon-size, 1.5rem); }`,t([m({reflect:!0})],_v.prototype,"variant",void 0),_v=t([$("m3e-list")],_v);let Av=Dv=class extends $v{constructor(){super(...arguments),Lv.add(this),zv.set(this,Dv.__nextId++),Ev.set(this,`m3e-expandable-list-item-${e(this,zv,"f")}-content`),Mv.set(this,`m3e-expandable-list-item-${e(this,zv,"f")}-header`),Tv.set(this,new Array),this.disabled=!1,this.open=!1}get items(){return e(this,Tv,"f")}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}updated(e){if(super.updated(e),e.has("open")){for(let e=this.previousElementSibling;e;e=e.previousElementSibling)if(e instanceof $v){k(e,"-has-next-open",this.open);break}for(let e=this.nextElementSibling;e;e=e.nextElementSibling)if(e instanceof $v){k(e,"-has-previous-open",this.open);break}}}render(){return s`<div class="base"><m3e-list-item-button id="${e(this,Mv,"f")}" class="header" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="${e(this,Ev,"f")}" @click="${e(this,Lv,"m",Pv)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><div class="toggle-container" slot="trailing" aria-hidden="true"><div class="toggle"><slot name="toggle-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg></slot></div></div></m3e-list-item-button><m3e-collapsible id="${e(this,Ev,"f")}" class="items" role="list" aria-labelledby="${e(this,Mv,"f")}" ?open="${this.open}" @opening="${e(this,Lv,"m",Iv)}" @opened="${e(this,Lv,"m",Iv)}" @closing="${e(this,Lv,"m",Iv)}" @closed="${e(this,Lv,"m",Iv)}"><slot name="items" @slotchange="${e(this,Lv,"m",Wv)}"></slot></m3e-collapsible></div>`}};var Hv,Ov;zv=new WeakMap,Ev=new WeakMap,Mv=new WeakMap,Tv=new WeakMap,Lv=new WeakSet,Pv=function(e){e.defaultPrevented||(this.open=!this.open,this.closest("m3e-action-list")?.[We].updateActiveItem(this.button))},Iv=function(e){e.stopPropagation(),["opening","opened","closing","closed"].forEach(t=>{this.button?.classList.toggle(t,e.type===t)}),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},Wv=function(t){a(this,Tv,t.target.assignedElements({flatten:!0}).flatMap(e=>[...e.childNodes].filter(e=>e instanceof $v)),"f"),e(this,Tv,"f").forEach((t,a)=>{a==e(this,Tv,"f").length-1?t.style.setProperty("--_list-item-bottom-container-shape",`var(--m3e-segmented-list-container-shape, ${v.shape.corner.large})`):t.style.removeProperty("--_list-item-bottom-container-shape")}),this.closest("m3e-list, m3e-action-list, m3e-selection-list")?.notifyItemsChange()},Av.styles=i`:host { display: block; } .header { width: 100%; margin-bottom: 0px; transition: ${o(`margin-bottom \n var(--m3e-expandable-list-item-bounce-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; --_list-item-button-trailing-align-self: stretch; } .toggle-container { display: flex; align-items: center; justify-content: center; align-self: stretch; width: var(--m3e-expandable-list-item-toggle-icon-container-width, 2rem); border-radius: var(--m3e-expandable-list-item-toggle-icon-container-shape, ${v.shape.corner.full}); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle { display: flex; align-items: center; justify-content: center; vertical-align: middle; font-size: var(--m3e-expandable-list-item-toggle-icon-size, 1.5rem); transition: ${o(`transform ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .toggle svg, ::slotted(svg[slot="toggle-icon"]) { width: 1em; height: 1em; } :host([open]) .toggle-container { background-color: var( --_expandable-list-item-expanded-toggle-icon-container-color, var(--m3e-expandable-list-item-expanded-toggle-icon-container-color, ${v.color.surfaceContainer}) ); } :host([open]) .toggle { transform: rotate(180deg); } :host([open]) .header { --_list-item-top-container-shape: var(--_expandable-list-item-expanded-top-shape, initial); --_list-item-bottom-container-shape: initial; margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } :host([open]) .header.opening { margin-bottom: calc( var(--_expandable-list-item-items-segment-gap, 0px) * var(--m3e-expandable-list-item-bounce-factor, 4) ); } :host([open]) .header, :host([open]) .items { --_list-item-container-color: var( --m3e-expandable-list-item-expanded-container-color, var(--m3e-list-item-container-color, transparent) ); } .base, ::slotted([slot="items"]) { display: flex; flex-direction: column; box-sizing: border-box; } ::slotted([slot="items"]) { flex: none; --_list-item-top-container-shape: initial; --_list-item-bottom-container-shape: initial; row-gap: var(--_expandable-list-item-items-segment-gap, 0px); } .items { --m3e-collapsible-animation-duration: var( --m3e-expandable-list-item-expand-duration, ${v.motion.duration.medium1} ); } @media (forced-colors: active) { .header { transition: none; } :host([open]) .header.opening { margin-bottom: var(--_expandable-list-item-items-segment-gap, 0px); } } @media (prefers-reduced-motion) { .header, .toggle-container, .toggle { transition: none; } }`,Av.__nextId=0,t([m({type:Boolean,reflect:!0})],Av.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],Av.prototype,"open",void 0),t([h(".header")],Av.prototype,"button",void 0),Av=Dv=t([$("m3e-expandable-list-item")],Av);let Fv=class extends _v{constructor(){super(...arguments),Hv.set(this,e=>this[We].onKeyDown(e)),this[Ov]=(new He).withWrap().withHomeAndEnd().withVerticalOrientation().withSkipPredicate(e=>{if(e.disabled)return!0;const t=e.getRootNode().host;if("items"===t.parentElement?.slot){let e=t.closest("m3e-expandable-list-item");for(;e;){if(!e.open)return!0;const t=e.closest("m3e-expandable-list-item,m3e-action-list");if(!(t instanceof Av))break;e=t}}return!1})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Hv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Hv,"f"))}async notifyItemsChange(){const e=[...this.querySelectorAll("m3e-list-action,m3e-expandable-list-item")];for(const t of e)t.isUpdatePending&&await t.updateComplete;this.isUpdatePending&&await this.updateComplete;const{added:t}=this[We].setItems(e.map(e=>e.button));this[We].activeItem||this[We].updateActiveItem(t.find(e=>!e.disabled))}};var Bv,Vv;Hv=new WeakMap,Ov=We,Fv=t([$("m3e-action-list")],Fv);let qv=class extends(R($v)){constructor(){super(...arguments),Bv.add(this),this.disabled=!1}focus(e){this.button?.focus(e)}blur(){this.button?.blur()}click(){this.button?.click()}render(){return s`<m3e-list-item-button class="button" ?disabled="${this.disabled}" href="${Ne(this.href||void 0)}" target="${Ne(this.target||void 0)}" download="${Ne(this.download||void 0)}" rel="${Ne(this.rel||void 0)}" @click="${e(this,Bv,"m",Vv)}"><slot name="leading" slot="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><slot name="overline" slot="overline"></slot><slot></slot><slot name="supporting-text" slot="supporting-text"></slot><slot name="trailing" slot="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot></m3e-list-item-button>`}};Bv=new WeakSet,Vv=function(e){e.defaultPrevented||this.closest("m3e-action-list")?.[We].updateActiveItem(this.button)},qv.styles=i`:host { display: block; } .button { width: 100%; }`,t([h(".button")],qv.prototype,"button",void 0),t([m({type:Boolean,reflect:!0})],qv.prototype,"disabled",void 0),qv=t([$("m3e-list-action")],qv);let Rv=class extends(q(R(N(Y(P(f($v,"button"),!0)))))){constructor(){super(),new K(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new Z(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ne(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple>${this[G]()} ${super._renderBase()}</div>`}};var Uv,Nv,jv,Yv,Kv,Zv;Rv.styles=[$v.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } :host(:not(:disabled)) { cursor: pointer; } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } slot[name="trailing"] { align-self: var(--_list-item-button-trailing-align-self, auto); }`],t([h(".focus-ring")],Rv.prototype,"_focusRing",void 0),t([h(".state-layer")],Rv.prototype,"_stateLayer",void 0),t([h(".ripple")],Rv.prototype,"_ripple",void 0),Rv=t([$("m3e-list-item-button")],Rv);let Gv=class extends(q(N(ue(Y(P(f($v,"option"),!0)))))){constructor(){super(),Uv.add(this),Nv.set(this,void 0),jv.set(this,""),Yv.set(this,t=>e(this,Uv,"m",Zv).call(this,t)),new K(this,{callback:(e,t)=>this.shadowRoot?.querySelector(".base")?.classList.toggle("focus-visible",t)}),new Z(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("pressed",e)}),new ne(this,{callback:e=>this.shadowRoot?.querySelector(".base")?.classList.toggle("hover",e)})}get value(){return e(this,Nv,"f")??e(this,jv,"f")}set value(e){a(this,Nv,e,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Yv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Yv,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")){this.closest("m3e-selection-list")?.[We].notifySelectionChange(this);for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected)}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><slot name="leading" @slotchange="${this._handleLeadingSlotChange}"></slot><div class="content"><slot name="overline"></slot><slot @slotchange="${e(this,Uv,"m",Kv)}"></slot><slot name="supporting-text"></slot></div><slot name="trailing" @slotchange="${this._handleTrailingSlotChange}"></slot><div class="indicator">${this.closest("m3e-selection-list")?.multi?s`<m3e-pseudo-checkbox ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-checkbox>`:s`<m3e-pseudo-radio ?checked="${this.selected}" ?disabled="${this.disabled}"></m3e-pseudo-radio>`}</div></div>`}};var Xv,Jv,Qv,eb,tb;Nv=new WeakMap,jv=new WeakMap,Yv=new WeakMap,Uv=new WeakSet,Kv=function(e){a(this,jv,me(e.target),"f")},Zv=function(e){const t=this.closest("m3e-selection-list");if(!e.defaultPrevented&&t&&(t.multi||!this.selected)){const e=this.selected;this.selected=!this.selected,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(t[We].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=e}},Gv.styles=[$v.styles,i`:host { outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { position: relative; } .indicator { min-width: 1.5rem; min-height: 1.5rem; display: flex; align-items: center; justify-content: center; } :host(:not(:disabled)) { cursor: pointer; } :host(:state(-three-line)) .indicator { align-self: flex-start; margin-top: var(--m3e-list-item-three-line-top-offset, 0.25rem); } :host([selected]) .base, :host([selected]) .state-layer, :host([selected]) .ripple, :host([selected]) .focus-ring { border-radius: var(--m3e-list-item-selected-container-shape, ${v.shape.corner.large}); } :host([selected]:not(:disabled)) .base { color: var(--m3e-list-item-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="overline"]) { color: var(--m3e-list-item-selected-overline-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]) { color: var(--m3e-list-item-selected-supporting-text-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="leading"]) { color: var(--m3e-list-item-selected-leading-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: var(--m3e-list-item-selected-trailing-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled)) .base { background-color: var(--m3e-list-item-selected-container-color, ${v.color.secondaryContainer}); } :host([selected]:disabled) .base { background-color: color-mix( in srgb, var(--m3e-list-item-selected-disabled-container-color, ${v.color.onSurface}) var(--m3e-list-item-selected-disabled-container-opacity, 10%), transparent ); } :host([selected]:not(:disabled)) .state-layer { --m3e-state-layer-hover-color: var( --m3e-list-item-selected-hover-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-hover-opacity: var( --m3e-list-item-selected-hover-state-layer-opacity, ${v.state.hoverStateLayerOpacity} ); --m3e-state-layer-focus-color: var( --m3e-list-item-selected-focus-state-layer-color, ${v.color.onSurface} ); --m3e-state-layer-focus-opacity: var( --m3e-list-item-selected-focus-state-layer-opacity, ${v.state.focusStateLayerOpacity} ); } :host([selected]:not(:disabled)) .ripple { --m3e-ripple-color: var(--m3e-list-item-selected-pressed-state-layer-color, ${v.color.onSurface}); --m3e-ripple-opacity: var( --m3e-list-item-selected-pressed-state-layer-opacity, ${v.state.pressedStateLayerOpacity} ); } :host(:state(-hide-selection)) .indicator, :host(:not(:state(-hide-selection))) ::slotted([slot="trailing"]) { display: none; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .content, :host([selected]:not(:disabled)) ::slotted([slot="overline"]), :host([selected]:not(:disabled)) ::slotted([slot="supporting-text"]), :host([selected]:not(:disabled)) ::slotted([slot="leading"]), :host([selected]:not(:disabled)) ::slotted([slot="trailing"]) { color: HighlightText; forced-color-adjust: none; } :host([selected]:not(:disabled)) .base { background-color: Highlight; } }`],t([h(".focus-ring")],Gv.prototype,"_focusRing",void 0),t([h(".state-layer")],Gv.prototype,"_stateLayer",void 0),t([h(".ripple")],Gv.prototype,"_ripple",void 0),t([m()],Gv.prototype,"value",null),Gv=t([$("m3e-list-option")],Gv);let ab=class extends(Q(te(ae(se(Y(P(f(_v,"listbox")))))))){constructor(){super(...arguments),Xv.add(this),Jv.set(this,e=>this[We].onKeyDown(e)),Qv.set(this,t=>e(this,Xv,"m",eb).call(this,t)),this[tb]=(new De).withWrap().withHomeAndEnd().withVerticalOrientation(),this.multi=!1,this.hideSelectionIndicator=!1}get options(){return this[We]?.items??[]}get selected(){return this[We]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(Jv=new WeakMap,Qv=new WeakMap,Xv=new WeakSet,tb=We,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,Jv,"f")),this.addEventListener("change",e(this,Qv,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Jv,"f")),this.removeEventListener("change",e(this,Qv,"f"))}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[We].disabled=this.disabled),e.has("multi")&&(this[We].multi=this.multi,this.multi?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),this[We].items.forEach(e=>e.requestUpdate())),e.has("hideSelectionIndicator")&&this[We].items.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}notifyItemsChange(){const{added:e}=this[We].setItems(this.items.filter(e=>e instanceof Gv));e.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),this[We].activeItem||this[We].updateActiveItem(e.find(e=>!e.disabled))}};eb=function(e){e.target!==this&&(e.stopImmediatePropagation(),e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0})))},t([m({type:Boolean})],ab.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],ab.prototype,"hideSelectionIndicator",void 0),ab=t([$("m3e-selection-list")],ab);const ob=o("var(--m3e-loading-indicator-size, 2.375rem)"),ib=o(`var(--m3e-loading-indicator-active-indicator-color, ${v.color.primary})`),rb=o(`var(--m3e-loading-indicator-contained-active-indicator-color, ${v.color.onPrimaryContainer})`),sb=o(`var(--m3e-loading-indicator-contained-container-color, ${v.color.secondaryContainer})`),nb=o(`var(--m3e-loading-indicator-container-shape, ${v.shape.corner.full})`),lb=o("var(--m3e-loading-indicator-container-size, 3rem)"),cb={"4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z"};let db=new Array;const hb=new Map;for(const e in cb)db.push(cb[e]),hb.set(e,db.length-1);const mb={};db=ye(db,300);for(const e of hb)mb[e[0]]=o(db[e[1]]);const pb=mb;let ub=class extends(M(f(r,"progressbar"))){constructor(){super(...arguments),this.variant="uncontained"}connectedCallback(){super.connectedCallback(),this.ariaValueMin=this.ariaValueMin||"0",this.ariaValueMax=this.ariaValueMax||"100"}disconnectedCallback(){super.disconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!1)}reconnectedCallback(){super.reconnectedCallback(),this._activeIndicator?.classList.toggle("animate",!0)}firstUpdated(e){super.firstUpdated(e),this._activeIndicator?.classList.toggle("animate",!0)}render(){return s`<div class="container" aria-hidden="true"><div class="active-indicator"></div></div>`}};ub.styles=i`:host { display: inline-block; aspect-ratio: 1 / 1; contain: strict; vertical-align: middle; content-visibility: auto; } :host([variant="uncontained"]) { width: ${ob}; } :host([variant="contained"]) { width: ${lb}; } :host([variant="uncontained"]) .active-indicator { background-color: ${ib}; } :host([variant="contained"]) .active-indicator { background-color: ${rb}; } :host([variant="contained"]) .container { background-color: ${sb}; } .container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: ${nb}; } .active-indicator { margin: auto; aspect-ratio: 1 / 1; width: calc(${ob} * 0.842); transform-origin: center; transition: clip-path ${v.motion.spring.slowEffects}; will-change: transform, clip-path; --_polygon-soft-burst: polygon(${pb["soft-burst"]}); --_polygon-7-sided-cookie: polygon(${pb["7-sided-cookie"]}); --_polygon-pentagon: polygon(${pb.pentagon}); --_polygon-pill: polygon(${pb.pill}); --_polygon-very-sunny: polygon(${pb["very-sunny"]}); --_polygon-4-sided-cookie: polygon(${pb["4-sided-cookie"]}); --_polygon-oval: polygon(${pb.oval}); } .active-indicator.animate { animation: rotate 4998ms infinite; } @keyframes rotate { 0% { clip-path: var(--_polygon-soft-burst); transform: rotate(0deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 14% { clip-path: var(--_polygon-7-sided-cookie); transform: rotate(154deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 29% { clip-path: var(--_polygon-pentagon); transform: rotate(309deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 43% { clip-path: var(--_polygon-pill); transform: rotate(463deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 57% { clip-path: var(--_polygon-very-sunny); transform: rotate(617deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 71% { clip-path: var(--_polygon-4-sided-cookie); transform: rotate(771deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 83% { clip-path: var(--_polygon-oval); transform: rotate(926deg); animation-timing-function: cubic-bezier(0.5, 0.2, 0, 0.8); } 100% { clip-path: var(--_polygon-soft-burst); transform: rotate(1080deg); } } @media (forced-colors: active) { .active-indicator { background-color: CanvasText !important; } }`,t([h(".active-indicator")],ub.prototype,"_activeIndicator",void 0),t([m({reflect:!0})],ub.prototype,"variant",void 0),ub=t([$("m3e-loading-indicator")],ub);class vb extends(q(N(P(Y(r),!0)))){constructor(){super(),new K(this,{callback:e=>{e&&this.menu?._activate()}})}get menu(){return this.closest("m3e-menu")}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div>${he(this)?this[G]():n}<div class="wrapper">${this._renderContent()}</div></div>`}}vb.styles=i`:host { display: inline-block; outline: none; user-select: none; flex: none; height: var(--m3e-menu-item-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) .base { color: var(--m3e-menu-item-color, ${v.color.onSurface}); } :host(:not([aria-expanded="true"])) .base { --m3e-state-layer-hover-color: var(--m3e-menu-item-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-menu-item-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-menu-item-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled)[aria-expanded="true"]) .base { background-color: color-mix( in srgb, var(--m3e-menu-item-active-state-layer-color, ${v.color.onSurface}) var(--m3e-menu-active-state-layer-opacity, 8%), transparent ); } :host([aria-expanded="true"]) .state-layer { display: none; } :host(:not(:disabled)[checked]) .base { color: var(--m3e-menu-item-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-menu-item-selected-container-color, ${v.color.tertiaryContainer}); } :host([checked]) .base { --m3e-state-layer-hover-color: var( --m3e-menu-item-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-menu-item-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-menu-item-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-menu-item-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-menu-item-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([checked]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host([checked]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-menu-item-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-menu-item-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; column-gap: var(--m3e-menu-item-icon-label-space, 0.5rem); padding-inline-start: var(--m3e-menu-item-padding-start, 0.75rem); padding-inline-end: var(--m3e-menu-item-padding-end, 0.75rem); font-size: var(--m3e-menu-item-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-menu-item-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-menu-item-label-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var(--m3e-menu-item-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-menu-item-focus-ring-shape, inherit); } .content { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ::slotted([slot="icon"]), ::slotted([slot="trailing-icon"]), .trailing-icon { flex: none; width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host(:disabled) .base { color: GrayText; } }`,t([h(".focus-ring")],vb.prototype,"_focusRing",void 0),t([h(".state-layer")],vb.prototype,"_stateLayer",void 0),t([h(".ripple")],vb.prototype,"_ripple",void 0);let bb=class extends(b(E)){get menu(){return"M3E-MENU"===this.control?.tagName?this.control:null}attach(e){super.attach(e);const t=this.menu;t&&(this.parentElement&&(this.parentElement.ariaHasPopup="menu",this.parentElement.ariaExpanded="false",t.id&&Pe(this.parentElement,"aria-controls",t.id)),this.closest("m3e-menu")&&(t.submenu=!0))}detach(){if(this.parentElement){this.parentElement.ariaHasPopup=null,this.parentElement.ariaExpanded=null;const e=this.menu;e?.id&&Ie(this.parentElement,"aria-controls",e.id)}super.detach()}_onClick(){this.parentElement&&("M3E-MENU-ITEM"===this.parentElement.tagName?this.menu?.show(this.parentElement):this.menu?.toggle(this.parentElement))}};var fb,gb,yb,$b,xb,wb,kb,Cb,Sb,_b,Lb,zb;bb=t([$("m3e-menu-trigger")],bb);let Eb=zb=class extends(R(f(vb,"menuitem"))){constructor(){super(),fb.add(this),gb.set(this,t=>e(this,fb,"m",Sb).call(this,t)),yb.set(this,t=>e(this,fb,"m",_b).call(this,t)),$b.set(this,()=>e(this,fb,"m",Lb).call(this)),this._hasSubmenu=!1,xb.set(this,void 0),new ne(this,{startDelay:500,endDelay:500,callback:t=>{t&&!this.disabled&&e(this,xb,"f")&&e(this,xb,"f").menu?.show(this)}})}get submenu(){return e(this,xb,"f")?.menu??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,gb,"f")),this.addEventListener("keydown",e(this,yb,"f")),this.addEventListener("mouseenter",e(this,$b,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,gb,"f")),this.removeEventListener("keydown",e(this,yb,"f")),this.removeEventListener("mouseenter",e(this,$b,"f"))}_renderContent(){return s`<slot name="icon" aria-hidden="true" @slotchange="${e(this,fb,"m",kb)}"></slot><span class="content"><slot @slotchange="${e(this,fb,"m",wb)}"></slot></span>${this._hasSubmenu?"ltr"===Ve.current?s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M400-280v-400l200 200-200 200Z"/></svg>`:s`<svg class="trailing-icon" aria-hidden="true" viewBox="0 -960 960 960" fill="currentColor"><path d="M560-280 360-480l200-200v400Z"/></svg>`:s`<slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,fb,"m",Cb)}"></slot>`}`}};var Mb,Tb,Pb,Ib,Wb,Db,Ab,Hb,Ob,Fb,Bb,Vb,qb,Rb,Ub,Nb;gb=new WeakMap,yb=new WeakMap,$b=new WeakMap,xb=new WeakMap,fb=new WeakSet,wb=function(t){a(this,xb,t.target.assignedElements({flatten:!0}).find(e=>e instanceof bb),"f"),this._hasSubmenu=void 0!==e(this,xb,"f")},kb=function(e){k(this,"-with-icon",g(e.target))},Cb=function(e){k(this,"-with-trailing-icon",g(e.target))},Sb=function(e){e.defaultPrevented||this._hasSubmenu||this.menu?.hideAll(!0)},_b=function(e){if(!e.defaultPrevented&&!this.disabled)switch(e.key){case"Right":case"ArrowRight":"ltr"===Ve.current&&(e.preventDefault(),this.submenu?.show(this));break;case"Left":case"ArrowLeft":"rtl"===Ve.current&&(e.preventDefault(),this.submenu?.show(this))}},Lb=function(){this.menu?.items.forEach(e=>{e instanceof zb&&e!==this&&e.submenu?.isOpen&&e.submenu.hide()})},t([u()],Eb.prototype,"_hasSubmenu",void 0),Eb=zb=t([$("m3e-menu-item")],Eb);let jb=Nb=class extends(T(P(f(r,"menu")))){constructor(){super(...arguments),Mb.add(this),Tb.set(this,void 0),Pb.set(this,void 0),Ib.set(this,(new He).withWrap().withHomeAndEnd().withVerticalOrientation()),Wb.set(this,t=>e(this,Mb,"m",Bb).call(this,t)),Db.set(this,()=>e(this,Mb,"m",Vb).call(this)),Ab.set(this,t=>e(this,Mb,"m",qb).call(this,t)),Hb.set(this,new ve(this,{target:null,callback:e=>e instanceof Nb?e.items.filter(e=>e instanceof Eb).forEach(e=>e.submenu?.hide()):this.hideAll()})),Ob.set(this,t=>{"closed"===t.newState?(e(this,Pb,"f")?.call(this),a(this,Pb,void 0,"f")):setTimeout(()=>{e(this,Ib,"f").setActiveItem(e(this,Ib,"f").items.find(e=>!e.disabled))},40)}),this.positionX="after",this.positionY="below",this.variant="standard",this.submenu=!1}get items(){return e(this,Ib,"f").items}get isOpen(){return void 0!==e(this,Tb,"f")}connectedCallback(){super.connectedCallback(),this.tabIndex=-1,this.setAttribute("popover","manual"),this.addEventListener("keydown",e(this,Wb,"f")),this.addEventListener("mouseenter",e(this,Db,"f")),this.addEventListener("toggle",e(this,Ob,"f")),document.addEventListener("click",e(this,Ab,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Wb,"f")),this.removeEventListener("mouseenter",e(this,Db,"f")),this.removeEventListener("toggle",e(this,Ob,"f")),document.removeEventListener("click",e(this,Ab,"f")),e(this,Mb,"m",Ub).call(this)}async show(t){e(this,Tb,"f")&&e(this,Tb,"f")!==t&&this.hide();let o=this.positionX;"rtl"===Ve.current&&(o="before"===o?"after":"before"),a(this,Pb,await qe(this,t,{position:this.submenu?"before"===o?"left-start":"right-start":"above"===this.positionY?"before"===o?"top-end":"top-start":"before"===o?"bottom-end":"bottom-start",inline:!0,flip:!0,shift:"main",offset:this.submenu?void 0:4},(t,a,o)=>{if(this.submenu){if(e(this,Tb,"f")){const t=e(this,Mb,"m",Rb).call(this,e(this,Tb,"f")).y;k(this,"-shift-down",!1),k(this,"-shift-up",!1),k(this,Math.round(a)===Math.round(t)?"-shift-down":"-shift-up",!0)}}else k(this,"-top",o.includes("top")),k(this,"-bottom",o.includes("bottom"));"rtl"===Ve.current?this.style.right=window.innerWidth-t-this.clientWidth+"px":this.style.left=`${t}px`,this.style.top=`${a}px`}),"f");const i=t.closest("m3e-menu");i?this.variant=i.variant:this._activate(),this.showPopover(),a(this,Tb,t,"f"),e(this,Tb,"f").ariaExpanded="true",e(this,Hb,"f").observe(e(this,Tb,"f"))}hide(t=!1){for(const t of e(this,Ib,"f").items){const e=t.submenu;e&&e.isOpen&&e.hide()}e(this,Mb,"m",Ub).call(this),this.hidePopover(),e(this,Tb,"f")&&(e(this,Tb,"f").ariaExpanded="false",t&&e(this,Tb,"f").focus(),e(this,Hb,"f").unobserve(e(this,Tb,"f")),a(this,Tb,void 0,"f"))}hideAll(t=!1){let a=this;for(;e(a,Tb,"f");){const t=e(a,Tb,"f").closest("m3e-menu");if(!t)break;a=t}a.hide(t)}async toggle(t){e(this,Tb,"f")?this.hide():await this.show(t)}render(){return s`<div class="base"><slot @slotchange="${e(this,Mb,"m",Fb)}"></slot></div>`}_activate(){this!==Nb.__activeMenu&&(Nb.__activeMenu&&C(Nb.__activeMenu,"-active"),Nb.__activeMenu=this,z(Nb.__activeMenu,"-active"))}};var Yb,Kb,Zb,Gb,Xb,Jb,Qb,ef,tf,af,of,rf;Tb=new WeakMap,Pb=new WeakMap,Ib=new WeakMap,Wb=new WeakMap,Db=new WeakMap,Ab=new WeakMap,Hb=new WeakMap,Ob=new WeakMap,Mb=new WeakSet,Fb=function(){const{added:t}=e(this,Ib,"f").setItems([...this.querySelectorAll("m3e-menu-item,m3e-menu-item-checkbox,m3e-menu-item-radio")].filter(e=>e.closest("m3e-menu")===this));e(this,Ib,"f").activeItem||e(this,Ib,"f").updateActiveItem(t.find(e=>!e.disabled)),e(this,Ib,"f").items.forEach((t,a)=>{k(t,"-first",0===a&&!t.previousElementSibling),k(t,"-last",a===e(this,Ib,"f").items.length-1)})},Bb=function(t){switch(t.key){case"Right":case"ArrowRight":"rtl"===Ve.current?(t.preventDefault(),this.hide(!0)):e(this,Ib,"f").onKeyDown(t);break;case"Left":case"ArrowLeft":"ltr"===Ve.current?(t.preventDefault(),this.hide(!0)):e(this,Ib,"f").onKeyDown(t);break;case"Tab":this.hideAll();break;case"Escape":t.shiftKey||t.ctrlKey||this.hide(!0);break;default:e(this,Ib,"f").onKeyDown(t)}},Vb=function(){this._activate()},qb=function(t){this.submenu||t.composedPath().some(t=>t instanceof Nb||t===e(this,Tb,"f"))||this.hide()},Rb=function(e){let t=0,a=0;for(let o=e;o;o=o.offsetParent instanceof HTMLElement?o.offsetParent:null)t+=o.offsetLeft-o.scrollLeft+o.clientLeft,a+=o.offsetTop-o.scrollTop+o.clientTop;return{x:t,y:a}},Ub=function(){this===Nb.__activeMenu&&(C(Nb.__activeMenu,"-active"),Nb.__activeMenu=void 0)},B(i`m3e-menu > m3e-divider { margin-block: var(--m3e-menu-divider-spacing, 0.5rem); }`),jb.styles=i`:host { position: absolute; padding: unset; margin: unset; border: unset; overflow-y: auto; overflow-x: visible; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; scroll-padding-block: calc( var(--m3e-focus-ring-thickness, 3px) + var(--m3e-menu-container-padding-block, 0.25rem) ); min-width: var(--m3e-menu-container-min-width, 7rem); max-width: var(--m3e-menu-container-max-width, 17.5rem); max-height: var(--m3e-menu-container-max-height, 17.5rem); box-shadow: var(--m3e-menu-container-elevation, ${v.elevation.level3}); opacity: 0; display: none; } .base { display: flex; flex-direction: column; row-gap: var(--m3e-menu-gap, 0.125rem); min-width: inherit; max-width: inherit; padding-block: var(--m3e-menu-container-padding-block, 0.25rem); padding-inline: var(--m3e-menu-container-padding-inline, 0.25rem); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } :host(:not(:state(-active))) { border-radius: var(--m3e-menu-container-shape, ${v.shape.corner.small}); } :host(:not(:state(-active))) .base { --m3e-menu-item-first-child-shape: ${v.shape.corner.extraSmall}; --m3e-menu-item-last-child-shape: ${v.shape.corner.extraSmall}; } :host(:state(-active)) { border-radius: var(--m3e-menu-active-container-shape, ${v.shape.corner.large}); } :host(:not(:state(-no-animate))) { transition: ${o(`opacity ${v.motion.duration.short2} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n border-radius ${v.motion.spring.fastEffects}`)}; } :host(:not([submenu])) { transform: scaleY(0.8); } :host(:not([submenu]):popover-open) { transform: scaleY(1); } :host::backdrop { background-color: transparent; } :host(:popover-open) { display: block; opacity: 1; } :host(:state(-bottom)) { transform-origin: top; } :host(:state(-top)) { transform-origin: bottom; } :host(:state(-shift-down)) { margin-top: calc(0px - var(--m3e-menu-container-padding-block, 0.25rem)); } :host(:state(-shift-up)) { margin-top: var(--m3e-menu-container-padding-block, 0.25rem); } :host([variant="vibrant"]) { background-color: var(--m3e-vibrant-menu-container-color, ${v.color.tertiaryContainer}); --m3e-menu-item-color: var(--m3e-vibrant-menu-item-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-container-hover-color: var( --m3e-vibrant-menu-item-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-container-focus-color: var( --m3e-vibrant-menu-item-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-ripple-color: var(--m3e-vibrant-menu-item-ripple-color, ${v.color.onTertiaryContainer}); --m3e-menu-item-active-state-layer-color: var( --m3e-vibrant-menu-item-active-state-layer-color, ${v.color.onTertiaryContainer} ); --m3e-menu-item-selected-color: var(--m3e-vibrant-menu-item-selected-color, ${v.color.onTertiary}); --m3e-menu-item-selected-container-color: var( --m3e-vibrant-menu-item-selected-container-color, ${v.color.tertiary} ); --m3e-menu-item-selected-container-hover-color: var( --m3e-vibrant-menu-item-selected-container-hover-color, ${v.color.onTertiary} ); --m3e-menu-item-container-selected-focus-color: var( --m3e-vibrant-menu-item-selected-container-focus-color, ${v.color.onTertiary} ); --m3e-menu-item-selected-ripple-color: var( --m3e-vibrant-menu-item-selected-ripple-color, ${v.color.onTertiary} ); --m3e-menu-item-disabled-color: var( --m3e-vibrant-menu-item-disabled-color, ${v.color.onTertiaryContainer} ); } :host([variant="standard"]) { background-color: var(--m3e-menu-container-color, ${v.color.surfaceContainer}); } @starting-style { :host(:popover-open) { opacity: 0; } :host(:not([submenu]):popover-open) { transform: scaleY(0.8); } } @media (prefers-reduced-motion) { :host(:not(:state(-no-animate))) { transition: none; } } @media (forced-colors: active) { :host { background-color: Menu; color: MenuText; outline: 1px solid MenuText; } }`,t([m({attribute:"position-x"})],jb.prototype,"positionX",void 0),t([m({attribute:"position-y"})],jb.prototype,"positionY",void 0),t([m({reflect:!0})],jb.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],jb.prototype,"submenu",void 0),jb=Nb=t([$("m3e-menu")],jb);let sf=class extends($e(f(vb,"menuitemcheckbox"))){constructor(){super(...arguments),Yb.add(this),Kb.set(this,t=>e(this,Yb,"m",tf).call(this,t)),Zb.set(this,t=>e(this,Yb,"m",af).call(this,t)),Gb.set(this,()=>e(this,Yb,"m",of).call(this)),Xb.set(this,()=>e(this,Yb,"m",rf).call(this)),Jb.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Kb,"f")),this.addEventListener("keydown",e(this,Zb,"f")),this.addEventListener("keyup",e(this,Gb,"f")),this.addEventListener("mouseenter",e(this,Xb,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Kb,"f")),this.removeEventListener("keydown",e(this,Zb,"f")),this.removeEventListener("keyup",e(this,Gb,"f")),this.removeEventListener("mouseenter",e(this,Xb,"f"))}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,Yb,"m",Qb)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,Yb,"m",ef)}"></slot>`}};Kb=new WeakMap,Zb=new WeakMap,Gb=new WeakMap,Xb=new WeakMap,Jb=new WeakMap,Yb=new WeakSet,Qb=function(e){k(this,"-with-icon",g(e.target))},ef=function(e){k(this,"-with-trailing-icon",g(e.target))},tf=function(t){t.defaultPrevented||(this.checked=!this.checked,this.performUpdate(),e(this,Jb,"f")||(S()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},af=function(e){a(this,Jb," "===e.key,"f")},of=function(){a(this,Jb,!1,"f")},rf=function(){this.menu?.items.forEach(e=>{e instanceof Eb&&e.submenu?.isOpen&&e.submenu.hide()})},sf.styles=[vb.styles,i`.icon { display: flex; align-items: center; justify-content: center; transition: margin-inline-start ${v.motion.spring.fastEffects}; } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-menu-item-icon-label-space, 0.75rem)); } .check { width: 1em; font-size: var(--m3e-menu-item-icon-size, 1.25rem) !important; } :host(:not([checked])) .check { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]) ::slotted([slot="icon"]) { display: none !important; } @media (prefers-reduced-motion) { .icon { transition: none; } }`],sf=t([$("m3e-menu-item-checkbox")],sf);let nf=class extends(f(r,"group")){render(){return s`<slot></slot>`}};var lf,cf,df,hf,mf,pf,uf,vf,bf,ff,gf,yf;nf.styles=i`:host { display: contents; }`,nf=t([$("m3e-menu-item-group")],nf);let $f=class extends($e(f(vb,"menuitemradio"))){constructor(){super(...arguments),lf.add(this),cf.set(this,t=>e(this,lf,"m",bf).call(this,t)),df.set(this,t=>e(this,lf,"m",ff).call(this,t)),hf.set(this,()=>e(this,lf,"m",gf).call(this)),mf.set(this,()=>e(this,lf,"m",yf).call(this)),pf.set(this,!1)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,cf,"f")),this.addEventListener("keydown",e(this,df,"f")),this.addEventListener("keyup",e(this,hf,"f")),this.addEventListener("mouseenter",e(this,mf,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,cf,"f")),this.removeEventListener("keydown",e(this,df,"f")),this.removeEventListener("keyup",e(this,hf,"f")),this.removeEventListener("mouseenter",e(this,mf,"f"))}update(e){super.update(e),e.has("checked")&&this.checked&&(this.closest("[role='group']")??this.closest("m3e-menu"))?.querySelectorAll("m3e-menu-item-radio").forEach(e=>{e!==this&&e.checked&&(e.checked=!1)})}_renderContent(){return s`<div class="icon"><svg class="check" viewBox="0 -960 960 960" aria-hidden="true"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,lf,"m",uf)}"></slot></div><slot></slot><slot name="trailing-icon" aria-hidden="true" @slotchange="${e(this,lf,"m",vf)}"></slot>`}};var xf,wf,kf,Cf,Sf,_f;cf=new WeakMap,df=new WeakMap,hf=new WeakMap,mf=new WeakMap,pf=new WeakMap,lf=new WeakSet,uf=function(e){k(this,"-with-icon",g(e.target))},vf=function(e){k(this,"-with-trailing-icon",g(e.target))},bf=function(t){t.defaultPrevented||(this.checked=!0,this.performUpdate(),e(this,pf,"f")||(S()?this.menu?.hideAll(!0):setTimeout(()=>this.menu?.hideAll(!0),150)))},ff=function(e){a(this,pf," "===e.key,"f")},gf=function(){a(this,pf,!1,"f")},yf=function(){this.menu?.items.forEach(e=>{e instanceof Eb&&e.submenu?.isOpen&&e.submenu.hide()})},$f.styles=sf.styles,$f=t([$("m3e-menu-item-radio")],$f);let Lf=class extends(M(P(f(r,"navigation")))){constructor(){super(...arguments),xf.add(this),this[_f]=(new De).disableRovingTabIndex(),wf.set(this,void 0),this.mode="compact"}get items(){return this[We].items}get selected(){return this[We].selectedItems[0]??null}get currentMode(){return this._mode??("compact"!==this.mode?"expanded":"compact")}set currentMode(e){this._mode=e}disconnectedCallback(){super.disconnectedCallback(),this._mode=void 0,e(this,wf,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.mode&&e(this,xf,"m",kf).call(this)}willUpdate(t){super.willUpdate(t),t.has("mode")&&(e(this,wf,"f")?.call(this),"auto"===this.mode?e(this,xf,"m",kf).call(this):(this._mode=void 0,this._updateItems())),t.has("_mode")&&this._updateItems()}render(){return s`<div class="base"><slot @change="${e(this,xf,"m",Sf)}" @slotchange="${e(this,xf,"m",Cf)}"></slot></div>`}_updateItems(){const e="compact"===this.currentMode?"vertical":"horizontal";this._updateOrientation(e),k(this,"-compact","vertical"===e)}_updateOrientation(e){this[We].items.forEach(t=>t.orientation=e)}};var zf,Ef,Mf;wf=new WeakMap,xf=new WeakSet,_f=We,kf=function(){a(this,wf,Xe.observe([Je.XSmall,Je.Small],e=>{this._mode=e.get(Je.XSmall)||e.get(Je.Small)?"compact":"expanded",this._updateItems()}),"f")},Cf=function(){this[We].setItems([...this.querySelectorAll("m3e-nav-item")]),this._updateItems()},Sf=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},Lf.styles=i`:host { display: block; overflow-x: auto; overflow-y: hidden; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; min-height: var(--m3e-nav-bar-height, 4rem); } .base { display: flex; align-items: stretch; justify-content: center; box-sizing: border-box; min-height: inherit; height: inherit; width: 100%; background-color: var(--m3e-nav-bar-container-color, ${v.color.surfaceContainer}); --_nav-item-min-width: var(--m3e-nav-bar-vertical-item-width, 7rem); }`,t([u()],Lf.prototype,"_mode",void 0),t([m({reflect:!0})],Lf.prototype,"mode",void 0),Lf=t([$("m3e-nav-bar")],Lf);let Tf=class extends(R(ue(q(N(j(Y(P(f(r,"button"),!0)))))))){constructor(){super(...arguments),zf.add(this),Ef.set(this,t=>e(this,zf,"m",Mf).call(this,t)),this.orientation="vertical"}get navBar(){return this.closest("m3e-nav-bar")??this.closest("m3e-nav-rail")??null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Ef,"f"),{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ef,"f"),{capture:!0})}update(e){if(super.update(e),e.has("selected")){this.ariaSelected=null,this.ariaPressed=null,this.ariaCurrent=`${this.selected}`;for(const e of this.querySelectorAll("m3e-icon"))e.toggleAttribute("filled",this.selected);this.navBar?.[We].notifySelectionChange(this)}}updated(e){super.updated(e),e.has("orientation")&&this._focusRing?.attach(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const e=this.disabled||this.disabledInteractive;return s`${"vertical"===this.orientation?s`<m3e-focus-ring class="focus-ring" inward></m3e-focus-ring>`:n}<div class="outer">${this[G]()}<div class="inner">${"horizontal"===this.orientation?s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring>`:n}<m3e-state-layer class="state-layer" ?disabled="${e}"></m3e-state-layer><m3e-ripple class="ripple" centered ?disabled="${e}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="base"><div class="icon-wrapper" aria-hidden="true"><div class="icon"><slot name="icon" aria-hidden="true"></slot></div></div><div class="label"><slot></slot></div></div></div></div>`}};var Pf,If,Wf,Df,Af,Hf,Of,Ff,Bf,Vf,qf,Rf;Ef=new WeakMap,zf=new WeakSet,Mf=function(e){e.defaultPrevented||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.navBar?.[We].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},Tf.styles=i`:host { display: inline-block; vertical-align: middle; position: relative; outline: none; user-select: none; flex: 1; font-size: var(--m3e-nav-item-label-text-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var( --m3e-nav-item-label-text-font-weight, ${v.typescale.standard.label.medium.fontWeight} ); line-height: var( --m3e-nav-item-label-text-line-height, ${v.typescale.standard.label.medium.lineHeight} ); letter-spacing: var(--m3e-nav-item-label-text-tracking, ${v.typescale.standard.label.medium.tracking}); border-radius: var(--m3e-nav-item-shape, ${v.shape.corner.full}); min-width: var(--_nav-item-min-width); align-self: var(--_nav-item-align-self); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host([orientation="horizontal"]) { max-width: fit-content; } :host(:not(:disabled):not([disabled-interactive])) { cursor: pointer; } :host([disabled-interactive]) { cursor: not-allowed; } .outer { height: 100%; } .outer, .inner { display: flex; align-items: center; justify-content: var(--_nav-item-justify-content, center); position: relative; border-radius: inherit; } .icon-wrapper { position: relative; flex: none; } .base { justify-content: unset; box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; } .icon { position: absolute; } .label { vertical-align: middle; } ::slotted([slot="icon"]), ::slotted([slot="selected-icon"]) { width: 1em; font-size: var(--m3e-nav-item-icon-size, 1.5rem) !important; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-inactive-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-inactive-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-inactive-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-inactive-label-text-color, ${v.color.onSurfaceVariant}); } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-inactive-icon-color, ${v.color.onSecondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .outer { --m3e-state-layer-hover-color: var( --m3e-nav-item-active-hover-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-nav-item-active-focus-state-layer-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var( --m3e-nav-item-active-pressed-state-layer-color, ${v.color.onSecondaryContainer} ); } :host([selected]:not(:disabled):not([disabled-interactive])) .label { color: var(--m3e-nav-item-active-label-text-color, ${v.color.secondary}); } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: var(--m3e-nav-item-active-container-color, ${v.color.secondaryContainer}); } :host([selected]:not(:disabled):not([disabled-interactive])) .icon { color: var(--m3e-nav-item-active-icon-color, ${v.color.onSecondaryContainer}); } :host([orientation="vertical"]) .outer { align-self: stretch; align-items: flex-start; } :host([orientation="vertical"]) .label { text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host([orientation="vertical"]) .base { flex-direction: column; row-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="vertical"]) .base { margin-block: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple { top: var(--m3e-vertical-nav-item-active-indicator-margin, 0.375rem); bottom: unset; } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { width: var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem); } :host([orientation="vertical"]) .state-layer, :host([orientation="vertical"]) .ripple, :host([orientation="vertical"]) .icon-wrapper { height: var(--m3e-vertical-nav-item-active-indicator-height, 2rem); } :host([orientation="vertical"]) .icon { top: calc( calc(var(--m3e-vertical-nav-item-active-indicator-height, 2rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); left: calc( calc(var(--m3e-vertical-nav-item-active-indicator-width, 3.5rem) / 2) - calc( var(--m3e-nav-item-icon-size, 1.5rem) / 2 ) ); } :host([orientation="vertical"]) .focus-ring { border-radius: var(--m3e-nav-item-focus-ring-shape, ${v.shape.corner.medium}); } :host([orientation="horizontal"]) .icon-wrapper { width: var(--m3e-nav-item-icon-size, 1.5rem); height: var(--m3e-nav-item-icon-size, 1.5rem); } :host([orientation="horizontal"]) .base { padding: var(--m3e-horizontal-nav-item-padding, 1rem); } :host([orientation="horizontal"]) .label { flex: 1 1 auto; } :host([orientation="horizontal"]) .base { column-gap: var(--m3e-nav-item-spacing, 0.25rem); } :host([orientation="horizontal"]) .inner { height: var(--m3e-horizontal-nav-item-active-indicator-height, 2.5rem); width: fit-content; } .state-layer, .ripple { margin-inline: auto; } :host(:disabled) .label, :host([disabled-interactive]) .label { color: color-mix( in srgb, var(--m3e-nav-item-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: color-mix( in srgb, var(--m3e-nav-item-disabled-icon-color, ${v.color.onSurface}) var(--m3e-nav-item-disabled-icon-opacity, 38%), transparent ); } a { all: unset; display: block; position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; z-index: 1; } @media (forced-colors: active) { :host(:disabled) .label, :host([disabled-interactive]) .label, :host(:disabled) .icon, :host([disabled-interactive]) .icon { color: GrayText; } :host(:not([selected]):not(:disabled):not([disabled-interactive])) .label, :host(:not([selected]):not(:disabled):not([disabled-interactive])) .icon { color: ButtonText; } :host([selected]:not(:disabled):not([disabled-interactive])) .state-layer { background-color: ButtonText; } :host([orientation="vertical"][selected]:not(:disabled):not([disabled-interactive])) .label { color: ButtonText; } :host([orientation="horizontal"][selected]:not(:disabled):not([disabled-interactive])) .label, :host([selected]:not(:disabled):not([disabled-interactive])) .icon { forced-color-adjust: none; color: ButtonFace; } }`,t([h(".focus-ring")],Tf.prototype,"_focusRing",void 0),t([h(".state-layer")],Tf.prototype,"_stateLayer",void 0),t([h(".ripple")],Tf.prototype,"_ripple",void 0),t([m({reflect:!0})],Tf.prototype,"orientation",void 0),Tf=t([$("m3e-nav-item")],Tf);let Uf=Rf=class extends(ue(Y(x(P(f(r,"treeitem"),!0),"opening","opened","closing","closed")))){constructor(){super(...arguments),Pf.add(this),this._hasChildItems=!1,If.set(this,[]),Wf.set(this,null),Df.set(this,new Array),Af.set(this,null),this.open=!1}get link(){return e(this,Af,"f")}get label(){return this._base??null}get visible(){return!e(this,Df,"f").some(e=>!e.open)}get path(){return[...e(this,Df,"f"),this]}get hasChildItems(){return this._hasChildItems}get parentItem(){return e(this,Df,"f")[e(this,Df,"f").length-1]??null}get childItems(){return e(this,If,"f")}get level(){return e(this,Df,"f").length+1}expand(e=!1){this.hasChildItems&&(this.open=!0,e&&this.childItems.forEach(e=>e.expand(!0)))}collapse(e=!1){this.hasChildItems&&(this.open=!1,e&&this.childItems.forEach(e=>e.collapse(!0)))}toggle(){this.hasChildItems&&(this.open=!this.open)}connectedCallback(){super.connectedCallback(),e(this,Df,"f").length=0;for(let t=this.parentElement?.closest("m3e-nav-menu-item");t;t=t.parentElement?.closest("m3e-nav-menu-item"))e(this,Df,"f").push(t);e(this,Df,"f").reverse(),this.style.setProperty("--_nav-menu-item-level",`${this.level}`),a(this,Wf,this.closest("m3e-nav-menu"),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Df,"f").length=0}update(t){if(super.update(t),t.has("selected")){this.ariaSelected=null,this.ariaCurrent=this.hasChildItems?null:`${this.selected}`;for(const e of this.querySelectorAll(":scope > m3e-icon[slot]"))e.toggleAttribute("filled",this.selected);e(this,Df,"f").forEach(e=>e.selected=this.selected),this.selected&&!this.hasChildItems&&this.closest("m3e-nav-menu")?.[We].notifySelectionChange(this)}(t.has("open")||t.has("_hasChildItems"))&&(this.ariaExpanded=this._hasChildItems?`${this.open}`:null),(t.has("_hasChildItems")&&this.disabled||t.has("disabled"))&&e(this,If,"f").forEach(e=>e.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e);const t=this._base;t&&[this.focusRing,this.stateLayer,this.ripple].forEach(e=>e?.attach(t))}render(){return s`<div class="base" @click="${e(this,Pf,"m",Vf)}"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="icon" aria-hidden="true">${e(this,Pf,"m",Hf).call(this)}</div><div class="label"><slot name="label" @slotchange="${e(this,Pf,"m",Ff)}"></slot></div><slot name="badge"></slot><div aria-hidden="true" class="toggle"><slot name="toggle-icon"><svg class="toggle-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><m3e-collapsible class="group" role="group" aria-hidden="${Ne(this._hasChildItems?void 0:"true")}" ?open="${this._hasChildItems&&this.open}" @opening="${e(this,Pf,"m",qf)}" @opened="${e(this,Pf,"m",qf)}" @closing="${e(this,Pf,"m",qf)}" @closed="${e(this,Pf,"m",qf)}"><slot @slotchange="${e(this,Pf,"m",Bf)}"></slot></m3e-collapsible>`}};var Nf,jf,Yf,Kf,Zf,Gf,Xf,Jf,Qf,eg,tg,ag,og,ig,rg;If=new WeakMap,Wf=new WeakMap,Df=new WeakMap,Af=new WeakMap,Pf=new WeakSet,Hf=function(){const t=s`<slot name="icon" @slotchange="${e(this,Pf,"m",Of)}"></slot>`;return this.selected&&!this.hasChildItems?s`<slot name="selected-icon" @slotchange="${e(this,Pf,"m",Of)}">${t}</slot>`:t},Of=function(e){k(this,"-with-icon",g(e.target))},Ff=function(t){a(this,Af,t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLAnchorElement)??null,"f"),e(this,Af,"f")?.setAttribute("tabindex","-1")},Bf=function(t){a(this,If,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof Rf),"f");const o=this._hasChildItems;this._hasChildItems=e(this,If,"f").length>0,k(this,"-with-items",this._hasChildItems),(o||this._hasChildItems)&&(this.selected=e(this,If,"f").some(e=>e.selected))},Vf=function(){if(!this.disabled)if(e(this,Wf,"f")?.[We].setActiveItem(this),this._hasChildItems)this.toggle();else{e(this,Wf,"f")?.[We].select(this),e(this,Df,"f").forEach(e=>e.selected=this.selected),e(this,Af,"f")?.click();const t=this.closest("m3e-drawer-container");if(t){const e=this.closest("[slot='start']")??this.closest("[slot='end']");e&&(O(t,`-${e.slot}-push`)||O(t,`-${e.slot}-over`))&&setTimeout(()=>{t.removeAttribute(e.slot),t.dispatchEvent(new Event("change",{bubbles:!0}))},300)}}},qf=function(e){e.stopPropagation(),this.dispatchEvent(new Event(e.type,{bubbles:!0}))},B(i`m3e-nav-menu-item > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; } m3e-nav-menu-item > m3e-nav-menu-item:first-of-type { margin-block-start: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); } m3e-nav-menu-item > m3e-nav-menu-item:last-of-type { margin-block-end: var(--m3e-nav-menu-item-vertical-inset, 0.25rem); }`),Uf.styles=i`:host { display: block; flex: none; outline: none; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: flex; align-items: center; position: relative; padding-inline: var(--m3e-nav-menu-item-padding, 1.5rem); height: calc(var(--m3e-nav-menu-item-height, 3.5rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-nav-menu-item-spacing, 0.75rem); font-size: var(--m3e-nav-menu-item-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-tracking, ${v.typescale.standard.label.large.tracking}); transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard},\n background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .base, .focus-ring { border-radius: var(--m3e-nav-menu-item-shape, ${v.shape.corner.full}); } .label { flex: 1 1 auto; display: flex; align-items: center; position: relative; overflow: hidden; vertical-align: middle; } .icon, .toggle { flex: none; display: flex; align-items: center; justify-content: center; position: relative; vertical-align: middle; } ::slotted([slot="badge"]) { flex: none; position: relative; font-size: var(--m3e-nav-menu-item-badge-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-nav-menu-item-badge-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-nav-menu-item-badge-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-nav-menu-item-badge-tracking, ${v.typescale.standard.label.large.tracking}); } .toggle { transition: ${o(`transform var(--m3e-collapsible-animation-duration, ${v.motion.duration.medium1})\n ${v.motion.easing.standard}`)}; } :host(:not(:state(-with-icon))) .icon { display: none; } .icon { margin-inline-start: -0.5rem; } .toggle { margin-inline-end: -0.5rem; } .group { padding-inline-start: var(--m3e-nav-menu-item-inset, 1rem); } :host([open]) .toggle { transform: rotate(180deg); } :host(:not(:state(-with-items))) .toggle, :host(:not(:state(-with-items))) .group { display: none; } ::slotted([slot="selected-icon"]), ::slotted([slot="icon"]), ::slotted([slot="toggle-icon"]), .toggle-icon { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-nav-menu-item-icon-size, 1.5rem); } :host(:not(:disabled)) .base { cursor: pointer; } :host(:not(:disabled)) .base { color: var(--m3e-nav-menu-item-label-color, ${v.color.onSurfaceVariant}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-nav-menu-item-disabled-color, ${v.color.onSurface}) var(--m3e-nav-menu-item-disabled-color-opacity, 38%), transparent ); } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { color: var(--m3e-nav-menu-item-selected-label-color, ${v.color.onSecondaryContainer}); background-color: var(--m3e-nav-menu-item-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-nav-menu-item-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not([selected]):not(:state(-with-items)):not(:disabled)) .base { --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-unselected-ripple-color, ${v.color.onSurface}); } .state-layer { margin-inline: auto; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: var(--m3e-nav-menu-item-open-container-color, ${v.color.surfaceContainerHighest}); --m3e-state-layer-focus-color: var( --m3e-nav-menu-item-open-container-focus-color, ${v.color.onSurface} ); --m3e-state-layer-hover-color: var( --m3e-nav-menu-item-open-container-hover-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-nav-menu-item-open-ripple-color, ${v.color.onSurface}); } ::slotted(a[slot="label"]) { all: unset; } @media (prefers-reduced-motion) { .base, .toggle, .state-layer { transition: none !important; } } @media (forced-colors: active) { .base, .state-layer { transition: none !important; } :host(:disabled) .base { color: GrayText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host([selected]:not(:state(-with-items)):not(:disabled)) .base { forced-color-adjust: none; color: ButtonFace; background-color: ButtonText; } :host([selected]:state(-with-items):not(:disabled)) .base { background-color: unset; color: ButtonText; } }`,t([h(".state-layer")],Uf.prototype,"stateLayer",void 0),t([h(".focus-ring")],Uf.prototype,"focusRing",void 0),t([h(".ripple")],Uf.prototype,"ripple",void 0),t([h(".base")],Uf.prototype,"_base",void 0),t([u()],Uf.prototype,"_hasChildItems",void 0),t([m({type:Boolean,reflect:!0})],Uf.prototype,"open",void 0),Uf=Rf=t([$("m3e-nav-menu-item")],Uf);let sg=rg=class extends(f(r,"tree")){constructor(){super(),Nf.add(this),jf.set(this,!1),Yf.set(this,!1),this[ig]=(new De).withVerticalOrientation().withHomeAndEnd().withTypeahead().withSkipPredicate(e=>e.disabled||!e.visible).disableRovingTabIndex().onActiveItemChange(()=>{this[We].activeItem&&e(this,Nf,"m",tg).call(this,this[We].activeItem)}).onSelectedItemsChange(()=>{const t=this.selected;for(const a of this.items)a!==t&&e(this,Nf,"m",og).call(this,a,!1,!1);t?.label&&_(t.label,this,{block:"start",behavior:"smooth"})}),Kf.set(this,t=>e(this,Nf,"m",Jf).call(this,t)),Zf.set(this,t=>e(this,Nf,"m",Qf).call(this,t)),Gf.set(this,t=>e(this,Nf,"m",eg).call(this,t)),new Z(this,{callback:e=>a(this,Yf,e,"f")}),new K(this,{callback:()=>{e(this,Yf,"f")||e(this,Nf,"m",ag).call(this)}})}get selected(){return this[We].selectedItems[0]??null}get items(){return this[We].items}expand(e){(e??this[We].items).forEach(e=>e.expand())}collapse(e){(e??this[We].items).forEach(e=>e.collapse());const t=this[We].activeItem;if(t&&!t.visible)for(let e=t.parentItem;e;e=e.parentItem)if(e.visible){this[We].setActiveItem(e);break}}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),this.addEventListener("keydown",e(this,Kf,"f")),this.addEventListener("keyup",e(this,Zf,"f")),this.addEventListener("pointerdown",e(this,Gf,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,Kf,"f")),this.removeEventListener("keyup",e(this,Zf,"f")),this.removeEventListener("pointerdown",e(this,Gf,"f"))}render(){return s`<div class="base"><slot @slotchange="${e(this,Nf,"m",Xf)}"></slot></div>`}};var ng,lg,cg,dg,hg;jf=new WeakMap,Yf=new WeakMap,Kf=new WeakMap,Zf=new WeakMap,Gf=new WeakMap,Nf=new WeakSet,ig=We,Xf=function(){for(const e of this.querySelectorAll("m3e-divider"))e.ariaHidden="true";const{added:t}=this[We].setItems([...this.querySelectorAll("m3e-nav-menu-item")]);for(const e of t)e.id=e.id||"m3e-nav-menu-item-"+rg.__nextId++;this[We].activeItem?(this.setAttribute("aria-activedescendant",this[We].activeItem.id),e(this,Nf,"m",ag).call(this)):this.removeAttribute("aria-activedescendant")},Jf=function(t){a(this,jf,!1,"f"),e(this,Nf,"m",ag).call(this);const o=this[We].activeItem;if(!t.defaultPrevented&&o&&!o.disabled)switch(t.key){case"Enter":case" ":t.preventDefault()," "===t.key&&o.ripple&&!o.ripple.visible&&o.ripple.show(0,0,!0),o.hasChildItems?requestAnimationFrame(()=>o.toggle()):o.selected||(this[We].select(o),o.link?.click());break;case"*":t.preventDefault(),o.expand(!0);break;case"Left":case"ArrowLeft":if(t.preventDefault(),"ltr"===Ve.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&requestAnimationFrame(()=>{e.collapse(),this[We].setActiveItem(e)})}else o.hasChildItems&&!o.open&&o.expand();break;case"Right":case"ArrowRight":if(t.preventDefault(),"rtl"===Ve.current)if(o.hasChildItems&&o.open)requestAnimationFrame(()=>o.collapse());else{const e=o.parentItem;e&&requestAnimationFrame(()=>{e.collapse(),this[We].setActiveItem(e)})}else o.hasChildItems&&!o.open&&o.expand();break;default:this[We].onKeyDown(t)}},Qf=function(e){const t=this[We].activeItem;e.defaultPrevented||!t||t.disabled||" "!==e.key||t.ripple?.hide()},eg=function(t){if(!t.defaultPrevented&&!e(this,jf,"f")){a(this,jf,!0,"f");const o=t.composedPath().reverse().find(e=>e instanceof Uf);o&&!o.disabled&&e(this,Nf,"m",og).call(this,o,!0,!1)}},tg=function(t){this.setAttribute("aria-activedescendant",t.id),t.label&&_(t.label,this,{block:"nearest",behavior:"smooth"}),e(this,Nf,"m",ag).call(this)},ag=function(){const t=this.matches(":focus")||this.matches(":focus-within"),a=!e(this,jf,"f")&&this.matches(":focus-visible");this[We].items.forEach(o=>{const i=o===this[We].activeItem;e(this,Nf,"m",og).call(this,o,i&&t,i&&a)})},og=function(e,t,a){t&&a?e.stateLayer?.show("focused"):e.stateLayer?.hide("focused"),a?e.focusRing?.show():e.focusRing?.hide()},B(i`m3e-nav-menu > m3e-divider { margin-block: var(--m3e-nav-menu-divider-margin, 0.25rem); flex: none; }`),sg.styles=i`:host { display: block; outline: none; overflow-y: auto; overflow-x: hidden; min-height: 0; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; } .base { width: 100%; display: flex; flex-direction: column; position: relative; min-height: inherit; box-sizing: border-box; padding-block-start: var(--m3e-nav-menu-padding-top, 0.5rem); padding-block-end: var(--m3e-nav-menu-padding-bottom, 0.5rem); padding-inline-start: var(--m3e-nav-menu-padding-left, 0.75rem); padding-inline-end: var(--m3e-nav-menu-padding-right, 0.75rem); }`,sg.__nextId=0,sg=rg=t([$("m3e-nav-menu")],sg);let mg=hg=class extends(P(f(r,"group"))){constructor(){super(...arguments),ng.add(this),lg.set(this,"m3e-nav-menu-item-group-label-"+hg.__nextId++),cg.set(this,void 0)}connectedCallback(){super.connectedCallback(),k(this,"-divided","M3E-DIVIDER"===this.previousElementSibling?.tagName)}disconnectedCallback(){super.disconnectedCallback(),C(this,"-divided")}render(){return s`<div class="label"><slot name="label" @slotchange="${e(this,ng,"m",dg)}"></slot></div><slot></slot>`}};var pg,ug,vg,bg;lg=new WeakMap,cg=new WeakMap,ng=new WeakSet,dg=function(t){const o=t.target.assignedElements({flatten:!0})[0];o!==e(this,cg,"f")&&(e(this,cg,"f")?.id===e(this,lg,"f")&&(e(this,cg,"f").id=""),a(this,cg,o,"f"),e(this,cg,"f")?(e(this,cg,"f").id=e(this,cg,"f").id||e(this,lg,"f"),this.setAttribute("aria-labelledby",e(this,cg,"f").id)):this.removeAttribute("aria-labelledby")),k(this,"-with-label",void 0!==e(this,cg,"f"))},mg.styles=i`:host { display: contents; } :host(:not(:state(-with-label))) .label { display: none; } .label { margin-inline-start: var(--m3e-nav-menu-item-group-label-inset, 1rem); margin-block-end: var(--m3e-nav-menu-item-group-label-space, 1rem); flex: none; } :host(:state(-divided)) .label { margin-block-start: calc( var(--m3e-nav-menu-item-group-label-space, 1rem) - var(--m3e-nav-menu-divider-margin, 0.25rem) ); } :host(:not(:state(-divided))) .label { margin-block-start: var(--m3e-nav-menu-item-group-label-space, 1rem); }`,mg.__nextId=0,mg=hg=t([$("m3e-nav-menu-item-group")],mg);let fg=class extends Qe{constructor(){super(),pg.add(this),ug.set(this,(new He).withHomeAndEnd().withWrap()),vg.set(this,t=>e(this,pg,"m",bg).call(this,t)),this[We].onSelectedItemsChange(()=>{e(this,ug,"f").updateActiveItem(this[We].activeItem)})}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",e(this,vg,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",e(this,vg,"f"))}_updateItems(){const t=Me.findInteractiveElements(this),{added:a}=e(this,ug,"f").setItems(t);if(!e(this,ug,"f").activeItem){const t=a.find(e=>!e.hasAttribute("disabled"));t&&e(this,ug,"f").updateActiveItem(t)}super._updateItems()}_updateOrientation(e){super._updateOrientation(e),this.querySelectorAll("m3e-fab").forEach(t=>t.toggleAttribute("extended","horizontal"===e))}};var gg,yg,$g;ug=new WeakMap,vg=new WeakMap,pg=new WeakSet,bg=function(t){e(this,ug,"f").onKeyDown(t)},B(i`m3e-nav-rail > m3e-icon-button, m3e-nav-rail > m3e-fab { margin-block-end: var(--m3e-nav-rail-button-item-space, 1rem); } m3e-nav-rail:not(:state(-compact)) > m3e-icon-button { margin-inline-start: var(--m3e-nav-rail-expanded-icon-button-inset, 0.5rem); }`),fg.styles=i`:host { display: block; overflow-x: hidden; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; } .base { display: flex; width: 100%; min-width: inherit; max-width: inherit; flex-direction: column; padding-block-start: var(--m3e-nav-rail-top-space, 2.75rem); padding-block-end: var(--m3e-nav-rail-bottom-space, 0.5rem); } :host(:state(-compact)) { width: var(--m3e-nav-rail-compact-width, 6rem); } :host(:state(-compact)) ::slotted(m3e-fab) { align-self: center; } :host(:not(:state(-compact))) { min-width: var(--m3e-nav-rail-expanded-min-width, 13.75rem); max-width: var(--m3e-nav-rail-expanded-max-width, 22.5rem); } :host(:not(:state(-compact))) .base { padding-inline: var(--m3e-nav-rail-expanded-inline-padding, 1.25rem); align-items: flex-start; --m3e-horizontal-nav-item-active-indicator-height: var(--m3e-nav-rail-expanded-item-height, 3.5rem); --_nav-item-align-self: stretch; --_nav-item-justify-content: flex-start; } ::slotted(*) { flex: none; } :host(:state(-compact)) ::slotted(m3e-icon-button) { align-self: center; } ::slotted(m3e-fab) { --m3e-fab-container-elevation: ${v.elevation.level0}; --m3e-fab-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-hover-container-elevation: ${v.elevation.level1}; --m3e-fab-lowered-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-disabled-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-focus-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-pressed-container-elevation: ${v.elevation.level0}; --m3e-fab-lowered-hover-container-elevation: ${v.elevation.level1}; }`,fg=t([$("m3e-nav-rail")],fg);let xg=class extends(b(E)){constructor(){super(...arguments),gg.add(this),yg.set(this,new w(this,{target:null,config:{attributeFilter:["class"]},callback:()=>e(this,gg,"m",$g).call(this)}))}attach(t){t instanceof fg&&e(this,yg,"f").observe(t),this.htmlFor&&this.parentElement&&Pe(this.parentElement,"aria-controls",this.htmlFor),super.attach(t),e(this,gg,"m",$g).call(this)}detach(){for(const t of e(this,yg,"f").targets)e(this,yg,"f").unobserve(t);this.parentElement&&(this.htmlFor&&Ie(this.parentElement,"aria-controls",this.htmlFor),this.parentElement.ariaExpanded=null),super.detach()}_onClick(){this.control instanceof fg&&(this.control.currentMode="compact"===this.control.currentMode?"expanded":"compact")}};var wg,kg,Cg,Sg;yg=new WeakMap,gg=new WeakSet,$g=async function(){if(!this.parentElement)return;const e=this.control instanceof fg&&"expanded"===this.control.currentMode;this.parentElement.ariaExpanded=`${e}`,this.parentElement.hasAttribute("toggle")&&this.parentElement.toggleAttribute("selected",e),this.parentElement instanceof r&&(await this.parentElement.updateComplete,this.parentElement.ariaPressed=null)},xg=t([$("m3e-nav-rail-toggle")],xg);let _g=class extends(ue(Y(P(f(r,"option"))))){constructor(){super(...arguments),wg.add(this),kg.set(this,void 0),Cg.set(this,""),this.term="",this.highlightMode="contains",this.disableHighlight=!1}get value(){return e(this,kg,"f")??e(this,Cg,"f")}set value(e){a(this,kg,e,"f")}get label(){return e(this,Cg,"f")}[(kg=new WeakMap,Cg=new WeakMap,wg=new WeakSet,Fe)](){return this.label}get isEmpty(){return""===this.value}connectedCallback(){super.connectedCallback(),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}firstUpdated(e){super.firstUpdated(e),[this.focusRing,this.stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){if(super.update(e),e.has("selected")&&this.selected){const e=this.closest("[role='listbox']")??this.closest("m3e-autocomplete")??this.closest("m3e-select");e&&"true"!==e.ariaMultiSelectable&&!e.hasAttribute("multi")&&e.querySelectorAll("m3e-option").forEach(e=>{e!==this&&e.selected&&(e.selected=!1)})}}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></div><m3e-text-overflow class="label"><m3e-text-highlight term="${this.term}" mode="${this.highlightMode}" ?disabled="${this.disableHighlight}"><slot @slotchange="${e(this,wg,"m",Sg)}"></slot></m3e-text-highlight></m3e-text-overflow></div></div>`}};var Lg,zg,Eg,Mg,Tg;Sg=function(e){a(this,Cg,me(e.target),"f"),k(this,"-empty",this.isEmpty),this.selected&&this.closest("m3e-select")?.requestUpdate?.()},_g.styles=i`:host { display: block; outline: none; user-select: none; flex: none; height: var(--m3e-option-container-height, 2.75rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) .base { color: var(--m3e-option-color, ${v.color.onSurface}); --m3e-state-layer-hover-color: var(--m3e-option-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-option-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-option-ripple-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not(:state(-empty))[selected]) .base { color: var(--m3e-option-selected-color, ${v.color.onTertiaryContainer}); background-color: var(--m3e-option-selected-container-color, ${v.color.tertiaryContainer}); --m3e-state-layer-hover-color: var( --m3e-option-selected-container-hover-color, ${v.color.onTertiaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-option-selected-container-focus-color, ${v.color.onTertiaryContainer} ); --m3e-ripple-color: var(--m3e-option-selected-ripple-color, ${v.color.onTertiaryContainer}); } :host(:not([aria-disabled="true"])) { cursor: pointer; } :host([aria-disabled="true"]) .base { color: color-mix( in srgb, var(--m3e-option-disabled-color, ${v.color.onSurface}) var(--m3e-option-disabled-opacity, 38%), transparent ); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: var(--m3e-option-shape, ${v.shape.corner.extraSmall}); transition: ${o(`border-radius ${v.motion.spring.fastEffects}`)}; } :host([selected]:not(:state(-first))) .base { border-top-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host([selected]:not(:state(-last))) .base { border-bottom-left-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-selected-shape, ${v.shape.corner.medium}); } :host(:state(-first)) .base { border-top-left-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); border-top-right-radius: var(--m3e-option-first-child-shape, ${v.shape.corner.medium}); } :host(:state(-last)) .base { border-bottom-left-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); border-bottom-right-radius: var(--m3e-option-last-child-shape, ${v.shape.corner.medium}); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { flex: 1 1 auto; display: inline-flex; align-items: center; width: 100%; overflow: hidden; column-gap: var(--m3e-option-icon-label-space, 0.5rem); padding-inline-start: var(--_option-padding-start, var(--m3e-option-padding-start, 0.75rem)); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); font-size: var(--m3e-option-label-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-label-text-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-label-text-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-label-text-tracking, ${v.typescale.standard.label.large.tracking}); } .focus-ring { border-radius: var(--m3e-option-focus-ring-shape, inherit); } .icon { margin-inline-start: calc(0px - var(--m3e-option-icon-label-space, 0.5rem)); transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects}, width ${v.motion.spring.fastEffects}`)}; } :host([selected]) .icon { margin-inline-start: 0; width: var(--m3e-option-icon-size, 1.25rem); } .icon { flex: none; width: 0px; font-size: var(--m3e-option-icon-size, 1.25rem); } :host(:state(-empty)) .icon, :host(:state(-hide-selection-indicator)) .icon, :host(:not([selected])) .check { display: none; } @media (forced-colors: active) { .base { background-color: Menu; color: MenuText; } :host([aria-disabled="true"]) .base { color: GrayText; } } @media (prefers-reduced-motion) { .icon, .base { transition: none; } }`,t([h(".focus-ring")],_g.prototype,"focusRing",void 0),t([h(".state-layer")],_g.prototype,"stateLayer",void 0),t([h(".ripple")],_g.prototype,"_ripple",void 0),t([m()],_g.prototype,"value",null),t([m()],_g.prototype,"term",void 0),t([m({attribute:"highlight-mode"})],_g.prototype,"highlightMode",void 0),t([m({attribute:"disable-highlight",type:Boolean})],_g.prototype,"disableHighlight",void 0),_g=t([$("m3e-option")],_g);let Pg=Tg=class extends(f(r,"group")){constructor(){super(...arguments),Lg.add(this),zg.set(this,"m3e-optgroup-label-"+Tg.__nextId++),Eg.set(this,void 0)}render(){return s`<m3e-text-overflow class="label"><slot name="label" @slotchange="${e(this,Lg,"m",Mg)}"></slot></m3e-text-overflow><slot></slot>`}};var Ig,Wg,Dg,Ag;zg=new WeakMap,Eg=new WeakMap,Lg=new WeakSet,Mg=function(t){const o=t.target.assignedElements({flatten:!0})[0]??void 0;o!==e(this,Eg,"f")&&(e(this,Eg,"f")?.id&&(Ie(this,"aria-labelledby",e(this,Eg,"f").id),e(this,Eg,"f").id===e(this,zg,"f")&&(e(this,Eg,"f").id="")),a(this,Eg,o,"f"),e(this,Eg,"f")&&(e(this,Eg,"f").id=e(this,Eg,"f").id||e(this,zg,"f"),Pe(this,"aria-labelledby",e(this,Eg,"f").id)))},Pg.styles=i`:host { display: block; --_option-padding-start: calc(var(--m3e-option-padding-start, 0.75rem) * 2); } .label { height: var(--m3e-option-height, 3rem); font-size: var(--m3e-option-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-option-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-option-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-option-tracking, ${v.typescale.standard.label.large.tracking}); padding-inline-end: var(--m3e-option-padding-end, 0.75rem); padding-inline-start: var(--m3e-option-padding-start, 0.75rem); color: var(--m3e-option-color, ${v.color.onSurface}); flex: none; }`,Pg.__nextId=0,Pg=Tg=t([$("m3e-optgroup")],Pg);let Hg=class extends(f(Re,"listbox")){constructor(){super(),Ig.add(this),this.state="content",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,Ig,"m",Ag).call(this)})}connectedCallback(){super.connectedCallback(),e(this,Ig,"m",Ag).call(this)}render(){return s`<div class="base"><slot></slot><div class="no-data" aria-hidden="true"><slot name="no-data" @slotchange="${e(this,Ig,"m",Wg)}"></slot></div><div class="loading" aria-hidden="true"><slot name="loading" @slotchange="${e(this,Ig,"m",Dg)}"></slot></div></div>`}};
24
60
  /**
25
61
  * Adapted from Angular Material Paginator
26
62
  * Source: https://github.com/angular/components/blob/main/src/material/paginator/paginator.ts
@@ -29,37 +65,37 @@ const Xm=["m3e-input-chip-set","m3e-select"];function Ym(e){return e instanceof
29
65
  * Copyright (c) 2025 Google LLC
30
66
  * See LICENSE file in the project root for full license text.
31
67
  */
32
- var bf,ff,gf,yf,$f,xf,wf,kf,Cf;hf=new WeakSet,mf=function(e){w(this,"-with-no-data",g(e.target))},pf=function(e){w(this,"-with-loading",g(e.target)),w(this,"-with-loading-indicator",null!==this.querySelector("m3e-loading-indicator[slot='loading'], m3e-circular-progress-indicator[slot='loading']"))},uf=function(){const e=this.querySelectorAll("m3e-option");let t,a=!1;for(let o=0;o<e.length;o++){const i=e[o];i.hidden?(k(i,"-first"),k(i,"-last")):a||i.parentElement instanceof df?(k(i,"-first"),t&&k(t,"-last"),L(i,"-last"),t=i):(L(i,"-first"),a=!0,L(i,"-last"),t=i)}},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-option-panel > m3e-divider { margin-block: var(--m3e-option-panel-divider-spacing, 0.5rem); } m3e-option-panel m3e-option[hidden], m3e-option-panel m3e-optgroup[hidden] { display: none; }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),vf.styles=[qe.styles,i`:host { --m3e-floating-panel-container-shape: var( --m3e-option-panel-container-shape, ${v.shape.corner.large} ); --m3e-floating-panel-container-min-width: var(--m3e-option-panel-container-min-width, 7rem); --m3e-floating-panel-container-max-width: var(--m3e-option-panel-container-max-width, 17.5rem); --m3e-floating-panel-container-max-height: var(--m3e-option-panel-container-max-height, 17.5rem); --m3e-floating-panel-container-color: var( --m3e-option-panel-container-color, ${v.color.surfaceContainer} ); --m3e-floating-panel-container-elevation: var( --m3e-option-panel-container-elevation, ${v.elevation.level3} ); --m3e-floating-panel-container-padding-inline: var(--m3e-option-panel-container-padding-inline, 0.25rem); --m3e-floating-panel-container-padding-block: var(--m3e-option-panel-container-padding-block, 0.25rem); } .base { row-gap: var(--m3e-option-panel-gap, 0.125rem); --m3e-text-highlight-container-color: var( --m3e-option-panel-text-highlight-container-color, ${v.color.tertiaryContainer} ); --m3e-text-highlight-color: var( --m3e-option-panel-text-highlight-color, ${v.color.onTertiaryContainer} ); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } .no-data { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-no-data-container-height, 2.75rem); padding: var(--m3e-option-panel-no-data-container-padding, 0.75rem); color: var(--m3e-option-panel-no-data-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-no-data-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-no-data-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-no-data-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-no-data-tracking, ${v.typescale.standard.label.large.tracking} ); } .loading { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-loading-container-height, 2.75rem); padding: var(--m3e-option-panel-loading-container-padding, 0.75rem); color: var(--m3e-option-panel-loading-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-loading-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-loading-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-loading-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-loading-tracking, ${v.typescale.standard.label.large.tracking} ); } :host(:state(-no-data)) slot:not([name]), :host(:state(-loading)) slot:not([name]), :host(:state(-loading)) .no-data, :host(:not(:state(-no-data))) .no-data, :host(:not(:state(-with-no-data))) .no-data, :host(:not(:state(-loading))) .loading, :host(:not(:state(-with-loading))) .loading { display: none; } :host(:state(-no-data)) .base, :host(:state(-loading)) .base { overflow-y: hidden; } :host(:state(-with-loading-indicator)) .loading { padding: 0; justify-content: center; }`],t([m({reflect:!0})],vf.prototype,"state",void 0),vf=t([$("m3e-option-panel")],vf);let Sf=Cf=class extends(E(f(r,"group"),"page")){constructor(){super(...arguments),bf.add(this),ff.set(this,"m3e-paginator-page-size-label-"+Cf.__nextId++),gf.set(this,(e,t,a)=>{if(a=Math.max(a,0),"all"===t)return"";if(0===a||t<=0)return`0 of ${a}`;const o=e*t;return`${o+1} - ${o<a?Math.min(o+t,a):o+t} of ${a}`}),this.disabled=!1,this.pageIndex=0,this.length=0,this.pageSize=50,this.pageSizes="5,10,25,50,100",this.hidePageSize=!1,this.showFirstLastButtons=!1,this.itemsPerPageLabel="Items per page:",this.previousPageLabel="Previous page",this.nextPageLabel="Next page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.pageSizeVariant="outlined"}get pageCount(){return this.pageSize&&"all"!==this.pageSize?Math.ceil(this.length/this.pageSize):0}get hasPreviousPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex>=1}get hasNextPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex<this.pageCount-1}firstPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex=0,e(this,bf,"m",kf).call(this,t)}}previousPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex--,e(this,bf,"m",kf).call(this,t)}}nextPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex++,e(this,bf,"m",kf).call(this,t)}}lastPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex=this.pageCount-1,e(this,bf,"m",kf).call(this,t)}}willUpdate(t){if(super.willUpdate(t),t.has("pageIndex")){const t=e(this,bf,"m",$f).call(this);t.includes(this.pageSize)||(this.pageSizes=[...t,this.pageSize].join(","),this.pageSizes=e(this,bf,"m",$f).call(this).join(","))}}render(){return s`<div class="outer"><div class="inner">${e(this,bf,"m",yf).call(this)} ${e(this,bf,"m",xf).call(this)}</div></div>`}};ff=new WeakMap,gf=new WeakMap,bf=new WeakSet,yf=function(){const t=e(this,bf,"m",$f).call(this);return this.hidePageSize?n:s`<div id="${e(this,ff,"f")}" class="items-per-page-label" aria-live="polite">${this.itemsPerPageLabel}</div><m3e-form-field class="form-field" variant="${this.pageSizeVariant}" hide-subscript="always"><m3e-select class="select" aria-labelledby="${e(this,ff,"f")}" hide-selection-indicator ?disabled="${this.disabled||t.length<=1}" @change="${e(this,bf,"m",wf)}">${t.map(e=>s`<m3e-option value="${e}" ?selected="${e===this.pageSize}">${"all"===e?"All":e}</m3e-option>`)}</m3e-select></m3e-form-field>`},$f=function(){const e=this.pageSizes.split(",").map(e=>e.trim()).filter(e=>""!==e).map(e=>"all"===e?e:Number(e)),t=e.filter(e=>"all"!==e);return t.sort((e,t)=>e-t),e.some(e=>"all"===e)?[...t,"all"]:t},xf=function(){const t=this.rangeLabelFormatter??e(this,gf,"f");return"all"===this.pageSize?n:s`<div class="range-actions"><div class="range-label">${t(this.pageIndex,this.pageSize,this.length)}</div>${this.showFirstLastButtons?s`<m3e-icon-button id="firstPageButton" aria-label="${this.firstPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.firstPage}"><slot name="first-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M240-240v-480h80v480h-80Zm440 0L440-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="firstPageButton" position="above">${this.firstPageLabel}</m3e-tooltip>`:n}<m3e-icon-button id="previousPageButton" aria-label="${this.previousPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.previousPage}"><slot name="previous-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="previousPageButton" position="above">${this.previousPageLabel}</m3e-tooltip><m3e-icon-button id="nextPageButton" aria-label="${this.nextPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.nextPage}"><slot name="next-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="nextPageButton" position="above">${this.nextPageLabel}</m3e-tooltip>${this.showFirstLastButtons?s`<m3e-icon-button id="lastPageButton" aria-label="${this.lastPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.lastPage}"><slot name="last-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m280-240-56-56 184-184-184-184 56-56 240 240-240 240Zm360 0v-480h80v480h-80Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="lastPageButton" position="above">${this.lastPageLabel}</m3e-tooltip>`:n}</div>`},wf=function(t){const a=t.target?.selected[0];if(!a)return;const o="all"===a.value?"all":Number(a.value);if(o!==this.pageSize){const t=this.pageIndex;this.pageIndex=0,this.pageSize=o,e(this,bf,"m",kf).call(this,t)}},kf=function(e){this.dispatchEvent(new CustomEvent("page",{detail:{previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length}}))},Sf.styles=i`:host { display: block; } .outer { display: flex; font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .inner { display: flex; align-items: center; justify-content: flex-end; padding-inline: 0.5rem; width: 100%; } .form-field { --md-sys-density-scale: -2; --m3e-form-field-font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); --m3e-form-field-font-weight: var( --m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight} ); --m3e-form-field-line-height: var( --m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight} ); --m3e-form-field-tracking: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .items-per-page-label { display: flex; align-items: center; margin-inline-end: 0.5rem; } .form-field { min-width: auto; width: 6rem; margin-inline: 0.25rem; } .range-label { margin-inline: 1.5rem 2rem; } :host([hide-page-size]) .range-label { margin-inline-start: unset; } .range-actions { display: flex; align-items: center; } ::slotted([slot="first-page-icon"]), ::slotted([slot="previous-page-icon"]), ::slotted([slot="next-page-icon"]), ::slotted([slot="last-page-icon"]), svg { width: 1em; font-size: var(--m3e-icon-button-medium-icon-size, 1.5rem) !important; } :host(:dir(rtl)) svg { transform: rotate(180deg); }`,Sf.__nextId=0,t([m({type:Boolean,reflect:!0})],Sf.prototype,"disabled",void 0),t([m({attribute:"page-index",type:Number})],Sf.prototype,"pageIndex",void 0),t([m({type:Number})],Sf.prototype,"length",void 0),t([m({attribute:"page-size",converter:e=>"all"===e?"all":Number(e)})],Sf.prototype,"pageSize",void 0),t([m({attribute:"page-sizes"})],Sf.prototype,"pageSizes",void 0),t([m({attribute:"hide-page-size",type:Boolean,reflect:!0})],Sf.prototype,"hidePageSize",void 0),t([m({attribute:"show-first-last-buttons",type:Boolean})],Sf.prototype,"showFirstLastButtons",void 0),t([m({attribute:"items-per-page-label"})],Sf.prototype,"itemsPerPageLabel",void 0),t([m({attribute:"previous-page-label"})],Sf.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],Sf.prototype,"nextPageLabel",void 0),t([m({attribute:"first-page-label"})],Sf.prototype,"firstPageLabel",void 0),t([m({attribute:"last-page-label"})],Sf.prototype,"lastPageLabel",void 0),t([m({attribute:"page-size-variant"})],Sf.prototype,"pageSizeVariant",void 0),Sf=Cf=t([$("m3e-paginator")],Sf);class _f extends(M(P(f(r,"progressbar"),!0))){constructor(){super(...arguments),this.value=0,this.max=100,this.variant="flat"}connectedCallback(){super.connectedCallback(),this.ariaValueMin="0"}update(e){super.update(e),e.has("value")&&(this.ariaValueNow=`${this.value}`),e.has("max")&&(this.ariaValueMax=`${this.max}`)}}var Lf,zf,Ef,Mf,Tf,Pf,If,Wf,Af,Hf,Of,Df,Bf,qf,Ff,Vf,Rf,Nf,Uf,jf,Kf,Zf,Gf,Xf,Yf,Jf;_f.styles=i`@media (forced-colors: active) { :host { --m3e-progress-indicator-color: CanvasText; --m3e-progress-indicator-track-color: Canvas; } }`,t([m({type:Number,reflect:!0})],_f.prototype,"value",void 0),t([m({type:Number})],_f.prototype,"max",void 0),t([m({reflect:!0})],_f.prototype,"variant",void 0);let Qf=Jf=class extends _f{constructor(){super(...arguments),Lf.add(this),zf.set(this,"m3e-circular-progress-mask-"+Jf.__nextMaskId++),Ef.set(this,0),Mf.set(this,0),Tf.set(this,0),Pf.set(this,0),If.set(this,void 0),Wf.set(this,void 0),Af.set(this,new A(this,{skipInitial:!0,target:null,callback:()=>{e(this,Lf,"m",Vf).call(this),e(this,Lf,"m",Rf).call(this),queueMicrotask(()=>this.requestUpdate())}})),Hf.set(this,new ge(this,(t,a)=>e(this,Lf,"m",Nf).call(this,a))),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&(this.ariaValueNow=this.indeterminate?null:`${this.value}`)}reconnectedCallback(){super.reconnectedCallback(),e(this,Lf,"m",Of).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Lf,"m",Of).call(this)}updated(t){super.updated(t),t.has("indeterminate")&&(a(this,If,this.shadowRoot?.querySelector(".spinner.active-track"),"f"),a(this,Wf,this.shadowRoot?.querySelector(".spinner.track"),"f"),this.indeterminate?e(this,Hf,"f").start():e(this,Hf,"f").stop())}render(){return"wavy"===this.variant?e(this,Lf,"m",Bf).call(this):e(this,Lf,"m",Df).call(this)}};var eg,tg,ag,og,ig,rg,sg,ng,lg,cg,dg,hg,mg;zf=new WeakMap,Ef=new WeakMap,Mf=new WeakMap,Tf=new WeakMap,Pf=new WeakMap,If=new WeakMap,Wf=new WeakMap,Af=new WeakMap,Hf=new WeakMap,Lf=new WeakSet,Of=function(){const t=this.shadowRoot?.querySelector(".diameter-and-stroke");t&&(e(this,Lf,"m",Vf).call(this),e(this,Af,"f").observe(t));const a=this.shadowRoot?.querySelector(".amplitude-and-wavelength");a&&(e(this,Lf,"m",Vf).call(this),e(this,Af,"f").observe(a))},Df=function(){if(this.indeterminate){const t=e(this,Lf,"m",Xf).call(this,{startAngle:-45,endAngle:90+e(this,Mf,"f")}),a=e(this,Lf,"m",Xf).call(this,{startAngle:-e(this,Mf,"f"),endAngle:135});return s`<div class="progress" aria-hidden="true"><div class="spinner"><div class="left"><svg width="${e(this,Ef,"f")}" height="${e(this,Ef,"f")}" viewBox="${t.viewBox}" class="circle"><path class="active-track" d="${t.path}" stroke="currentColor" stroke-width="${e(this,Mf,"f")}" fill="none" stroke-linecap="round"/></svg></div><div class="right"><svg width="${e(this,Ef,"f")}" height="${e(this,Ef,"f")}" viewBox="${a.viewBox}" class="circle"><path class="active-track" d="${a.path}" stroke="currentColor" stroke-width="${e(this,Mf,"f")}" fill="none" stroke-linecap="round"/></svg></div></div></div>${e(this,Lf,"m",qf).call(this)}`}const t=e(this,Lf,"m",jf).call(this,2*e(this,Mf,"f"),e(this,Ef,"f"));let a=this.value/this.max*360;a>0&&(a=Math.max(0,t,a));const o=e(this,Lf,"m",Xf).call(this,{gap:a<360?e(this,Mf,"f"):0,endAngle:a}),i=e(this,Lf,"m",Xf).call(this,{gap:a>0?e(this,Mf,"f"):0,startAngle:a,endAngle:360});return s`<div class="progress" aria-hidden="true"><svg width="${e(this,Ef,"f")}" height="${e(this,Ef,"f")}" viewBox="${o.viewBox}">${a>0?d`<path
68
+ var Og,Fg,Bg,Vg,qg,Rg,Ug,Ng,jg;Ig=new WeakSet,Wg=function(e){k(this,"-with-no-data",g(e.target))},Dg=function(e){k(this,"-with-loading",g(e.target)),k(this,"-with-loading-indicator",null!==this.querySelector("m3e-loading-indicator[slot='loading'], m3e-circular-progress-indicator[slot='loading']"))},Ag=function(){const e=this.querySelectorAll("m3e-option");let t,a=!1;for(let o=0;o<e.length;o++){const i=e[o];!0===i.hidden?(C(i,"-first"),C(i,"-last")):a||i.parentElement instanceof Pg?(C(i,"-first"),t&&C(t,"-last"),z(i,"-last"),t=i):(z(i,"-first"),a=!0,z(i,"-last"),t=i)}},B(i`m3e-option-panel > m3e-divider { margin-block: var(--m3e-option-panel-divider-spacing, 0.5rem); } m3e-option-panel m3e-option[hidden], m3e-option-panel m3e-optgroup[hidden] { display: none; }`),Hg.styles=[Re.styles,i`:host { --m3e-floating-panel-container-shape: var( --m3e-option-panel-container-shape, ${v.shape.corner.large} ); --m3e-floating-panel-container-min-width: var(--m3e-option-panel-container-min-width, 7rem); --m3e-floating-panel-container-max-width: var(--m3e-option-panel-container-max-width, 17.5rem); --m3e-floating-panel-container-max-height: var(--m3e-option-panel-container-max-height, 17.5rem); --m3e-floating-panel-container-color: var( --m3e-option-panel-container-color, ${v.color.surfaceContainer} ); --m3e-floating-panel-container-elevation: var( --m3e-option-panel-container-elevation, ${v.elevation.level3} ); --m3e-floating-panel-container-padding-inline: var(--m3e-option-panel-container-padding-inline, 0.25rem); --m3e-floating-panel-container-padding-block: var(--m3e-option-panel-container-padding-block, 0.25rem); } .base { row-gap: var(--m3e-option-panel-gap, 0.125rem); --m3e-text-highlight-container-color: var( --m3e-option-panel-text-highlight-container-color, ${v.color.tertiaryContainer} ); --m3e-text-highlight-color: var( --m3e-option-panel-text-highlight-color, ${v.color.onTertiaryContainer} ); --m3e-focus-ring-outward-offset: 0px; --m3e-focus-ring-growth-factor: 1.5; } .no-data { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-no-data-container-height, 2.75rem); padding: var(--m3e-option-panel-no-data-container-padding, 0.75rem); color: var(--m3e-option-panel-no-data-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-no-data-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-no-data-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-no-data-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-no-data-tracking, ${v.typescale.standard.label.large.tracking} ); } .loading { display: flex; align-items: center; box-sizing: border-box; min-height: var(--m3e-option-panel-loading-container-height, 2.75rem); padding: var(--m3e-option-panel-loading-container-padding, 0.75rem); color: var(--m3e-option-panel-loading-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-option-panel-loading-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-option-panel-loading-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-option-panel-loading-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-option-panel-loading-tracking, ${v.typescale.standard.label.large.tracking} ); } :host(:state(-no-data)) slot:not([name]), :host(:state(-loading)) slot:not([name]), :host(:state(-loading)) .no-data, :host(:not(:state(-no-data))) .no-data, :host(:not(:state(-with-no-data))) .no-data, :host(:not(:state(-loading))) .loading, :host(:not(:state(-with-loading))) .loading { display: none; } :host(:state(-no-data)) .base, :host(:state(-loading)) .base { overflow-y: hidden; } :host(:state(-with-loading-indicator)) .loading { padding: 0; justify-content: center; }`],t([m({reflect:!0})],Hg.prototype,"state",void 0),Hg=t([$("m3e-option-panel")],Hg);let Yg=jg=class extends(x(f(r,"group"),"page")){constructor(){super(...arguments),Og.add(this),Fg.set(this,"m3e-paginator-page-size-label-"+jg.__nextId++),Bg.set(this,(e,t,a)=>{if(a=Math.max(a,0),"all"===t)return"";if(0===a||t<=0)return`0 of ${a}`;const o=e*t;return`${o+1} - ${o<a?Math.min(o+t,a):o+t} of ${a}`}),this.disabled=!1,this.pageIndex=0,this.length=0,this.pageSize=50,this.pageSizes="5,10,25,50,100",this.hidePageSize=!1,this.showFirstLastButtons=!1,this.itemsPerPageLabel="Items per page:",this.previousPageLabel="Previous page",this.nextPageLabel="Next page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.pageSizeVariant="outlined"}get pageCount(){return this.pageSize&&"all"!==this.pageSize?Math.ceil(this.length/this.pageSize):0}get hasPreviousPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex>=1}get hasNextPage(){return"all"!==this.pageSize&&this.pageSize>0&&this.pageIndex<this.pageCount-1}firstPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex=0,e(this,Og,"m",Ng).call(this,t)}}previousPage(){if(this.hasPreviousPage){const t=this.pageIndex;this.pageIndex--,e(this,Og,"m",Ng).call(this,t)}}nextPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex++,e(this,Og,"m",Ng).call(this,t)}}lastPage(){if(this.hasNextPage){const t=this.pageIndex;this.pageIndex=this.pageCount-1,e(this,Og,"m",Ng).call(this,t)}}willUpdate(t){if(super.willUpdate(t),t.has("pageIndex")){const t=e(this,Og,"m",qg).call(this);t.includes(this.pageSize)||(this.pageSizes=[...t,this.pageSize].join(","),this.pageSizes=e(this,Og,"m",qg).call(this).join(","))}}render(){return s`<div class="outer"><div class="inner">${e(this,Og,"m",Vg).call(this)} ${e(this,Og,"m",Rg).call(this)}</div></div>`}};Fg=new WeakMap,Bg=new WeakMap,Og=new WeakSet,Vg=function(){const t=e(this,Og,"m",qg).call(this);return this.hidePageSize?n:s`<div id="${e(this,Fg,"f")}" class="items-per-page-label" aria-live="polite">${this.itemsPerPageLabel}</div><m3e-form-field class="form-field" variant="${this.pageSizeVariant}" hide-subscript="always"><m3e-select class="select" aria-labelledby="${e(this,Fg,"f")}" hide-selection-indicator ?disabled="${this.disabled||t.length<=1}" @change="${e(this,Og,"m",Ug)}">${t.map(e=>s`<m3e-option value="${e}" ?selected="${e===this.pageSize}">${"all"===e?"All":e}</m3e-option>`)}</m3e-select></m3e-form-field>`},qg=function(){const e=this.pageSizes.split(",").map(e=>e.trim()).filter(e=>""!==e).map(e=>"all"===e?e:Number(e)),t=e.filter(e=>"all"!==e);return t.sort((e,t)=>e-t),e.some(e=>"all"===e)?[...t,"all"]:t},Rg=function(){const t=this.rangeLabelFormatter??e(this,Bg,"f");return"all"===this.pageSize?n:s`<div class="range-actions"><div class="range-label">${t(this.pageIndex,this.pageSize,this.length)}</div>${this.showFirstLastButtons?s`<m3e-icon-button id="firstPageButton" aria-label="${this.firstPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.firstPage}"><slot name="first-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M240-240v-480h80v480h-80Zm440 0L440-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="firstPageButton" position="above">${this.firstPageLabel}</m3e-tooltip>`:n}<m3e-icon-button id="previousPageButton" aria-label="${this.previousPageLabel}" ?disabled="${this.disabled||!this.hasPreviousPage}" @click="${this.previousPage}"><slot name="previous-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="previousPageButton" position="above">${this.previousPageLabel}</m3e-tooltip><m3e-icon-button id="nextPageButton" aria-label="${this.nextPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.nextPage}"><slot name="next-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="nextPageButton" position="above">${this.nextPageLabel}</m3e-tooltip>${this.showFirstLastButtons?s`<m3e-icon-button id="lastPageButton" aria-label="${this.lastPageLabel}" ?disabled="${this.disabled||!this.hasNextPage}" @click="${this.lastPage}"><slot name="last-page-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m280-240-56-56 184-184-184-184 56-56 240 240-240 240Zm360 0v-480h80v480h-80Z"/></svg></slot></m3e-icon-button><m3e-tooltip for="lastPageButton" position="above">${this.lastPageLabel}</m3e-tooltip>`:n}</div>`},Ug=function(t){const a=t.target?.selected[0];if(!a)return;const o="all"===a.value?"all":Number(a.value);if(o!==this.pageSize){const t=this.pageIndex;this.pageIndex=0,this.pageSize=o,e(this,Og,"m",Ng).call(this,t)}},Ng=function(e){this.dispatchEvent(new CustomEvent("page",{detail:{previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length}}))},Yg.styles=i`:host { display: block; } .outer { display: flex; font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .inner { display: flex; align-items: center; justify-content: flex-end; padding-inline: 0.5rem; width: 100%; } .form-field { --md-sys-density-scale: -2; --m3e-form-field-font-size: var(--m3e-paginator-font-size, ${v.typescale.standard.body.small.fontSize}); --m3e-form-field-font-weight: var( --m3e-paginator-font-weight, ${v.typescale.standard.body.small.fontWeight} ); --m3e-form-field-line-height: var( --m3e-paginator-line-height, ${v.typescale.standard.body.small.lineHeight} ); --m3e-form-field-tracking: var(--m3e-paginator-tracking, ${v.typescale.standard.body.small.tracking}); } .items-per-page-label { display: flex; align-items: center; margin-inline-end: 0.5rem; } .form-field { min-width: auto; width: 6rem; margin-inline: 0.25rem; } .range-label { margin-inline: 1.5rem 2rem; } :host([hide-page-size]) .range-label { margin-inline-start: unset; } .range-actions { display: flex; align-items: center; } ::slotted([slot="first-page-icon"]), ::slotted([slot="previous-page-icon"]), ::slotted([slot="next-page-icon"]), ::slotted([slot="last-page-icon"]), svg { width: 1em; font-size: var(--m3e-icon-button-medium-icon-size, 1.5rem) !important; } :host(:dir(rtl)) svg { transform: rotate(180deg); }`,Yg.__nextId=0,t([m({type:Boolean,reflect:!0})],Yg.prototype,"disabled",void 0),t([m({attribute:"page-index",type:Number})],Yg.prototype,"pageIndex",void 0),t([m({type:Number})],Yg.prototype,"length",void 0),t([m({attribute:"page-size",converter:e=>"all"===e?"all":Number(e)})],Yg.prototype,"pageSize",void 0),t([m({attribute:"page-sizes"})],Yg.prototype,"pageSizes",void 0),t([m({attribute:"hide-page-size",type:Boolean,reflect:!0})],Yg.prototype,"hidePageSize",void 0),t([m({attribute:"show-first-last-buttons",type:Boolean})],Yg.prototype,"showFirstLastButtons",void 0),t([m({attribute:"items-per-page-label"})],Yg.prototype,"itemsPerPageLabel",void 0),t([m({attribute:"previous-page-label"})],Yg.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],Yg.prototype,"nextPageLabel",void 0),t([m({attribute:"first-page-label"})],Yg.prototype,"firstPageLabel",void 0),t([m({attribute:"last-page-label"})],Yg.prototype,"lastPageLabel",void 0),t([m({attribute:"page-size-variant"})],Yg.prototype,"pageSizeVariant",void 0),Yg=jg=t([$("m3e-paginator")],Yg);class Kg extends(M(P(f(r,"progressbar"),!0))){constructor(){super(...arguments),this.value=0,this.max=100,this.variant="flat"}connectedCallback(){super.connectedCallback(),this.ariaValueMin="0"}update(e){super.update(e),e.has("value")&&(this.ariaValueNow=`${this.value}`),e.has("max")&&(this.ariaValueMax=`${this.max}`)}}var Zg,Gg,Xg,Jg,Qg,ey,ty,ay,oy,iy,ry,sy,ny,ly,cy,dy,hy,my,py,uy,vy,by,fy,gy,yy,$y;Kg.styles=i`@media (forced-colors: active) { :host { --m3e-progress-indicator-color: CanvasText; --m3e-progress-indicator-track-color: Canvas; } }`,t([m({type:Number,reflect:!0})],Kg.prototype,"value",void 0),t([m({type:Number})],Kg.prototype,"max",void 0),t([m({reflect:!0})],Kg.prototype,"variant",void 0);let xy=$y=class extends Kg{constructor(){super(...arguments),Zg.add(this),Gg.set(this,"m3e-circular-progress-mask-"+$y.__nextMaskId++),Xg.set(this,0),Jg.set(this,0),Qg.set(this,0),ey.set(this,0),ty.set(this,void 0),ay.set(this,void 0),oy.set(this,new A(this,{skipInitial:!0,target:null,callback:()=>{e(this,Zg,"m",dy).call(this),e(this,Zg,"m",hy).call(this),queueMicrotask(()=>this.requestUpdate())}})),iy.set(this,new xe(this,(t,a)=>e(this,Zg,"m",my).call(this,a))),this.indeterminate=!1}update(e){super.update(e),e.has("indeterminate")&&(this.ariaValueNow=this.indeterminate?null:`${this.value}`)}reconnectedCallback(){super.reconnectedCallback(),e(this,Zg,"m",ry).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,Zg,"m",ry).call(this)}updated(t){super.updated(t),t.has("indeterminate")&&(a(this,ty,this.shadowRoot?.querySelector(".spinner.active-track"),"f"),a(this,ay,this.shadowRoot?.querySelector(".spinner.track"),"f"),this.indeterminate?e(this,iy,"f").start():e(this,iy,"f").stop())}render(){return"wavy"===this.variant?e(this,Zg,"m",ny).call(this):e(this,Zg,"m",sy).call(this)}};var wy,ky,Cy,Sy,_y,Ly,zy,Ey,My,Ty,Py,Iy,Wy;Gg=new WeakMap,Xg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,ey=new WeakMap,ty=new WeakMap,ay=new WeakMap,oy=new WeakMap,iy=new WeakMap,Zg=new WeakSet,ry=function(){const t=this.shadowRoot?.querySelector(".diameter-and-stroke");t&&(e(this,Zg,"m",dy).call(this),e(this,oy,"f").observe(t));const a=this.shadowRoot?.querySelector(".amplitude-and-wavelength");a&&(e(this,Zg,"m",dy).call(this),e(this,oy,"f").observe(a))},sy=function(){if(this.indeterminate){const t=e(this,Zg,"m",gy).call(this,{startAngle:-45,endAngle:90+e(this,Jg,"f")}),a=e(this,Zg,"m",gy).call(this,{startAngle:-e(this,Jg,"f"),endAngle:135});return s`<div class="progress" aria-hidden="true"><div class="spinner"><div class="left"><svg width="${e(this,Xg,"f")}" height="${e(this,Xg,"f")}" viewBox="${t.viewBox}" class="circle"><path class="active-track" d="${t.path}" stroke="currentColor" stroke-width="${e(this,Jg,"f")}" fill="none" stroke-linecap="round"/></svg></div><div class="right"><svg width="${e(this,Xg,"f")}" height="${e(this,Xg,"f")}" viewBox="${a.viewBox}" class="circle"><path class="active-track" d="${a.path}" stroke="currentColor" stroke-width="${e(this,Jg,"f")}" fill="none" stroke-linecap="round"/></svg></div></div></div>${e(this,Zg,"m",ly).call(this)}`}const t=e(this,Zg,"m",uy).call(this,2*e(this,Jg,"f"),e(this,Xg,"f"));let a=this.value/this.max*360;a>0&&(a=Math.max(0,t,a));const o=e(this,Zg,"m",gy).call(this,{gap:a<360?e(this,Jg,"f"):0,endAngle:a}),i=e(this,Zg,"m",gy).call(this,{gap:a>0?e(this,Jg,"f"):0,startAngle:a,endAngle:360});return s`<div class="progress" aria-hidden="true"><svg width="${e(this,Xg,"f")}" height="${e(this,Xg,"f")}" viewBox="${o.viewBox}">${a>0?d`<path
33
69
  class="active-track"
34
70
  d="${o.path}"
35
71
  stroke="currentColor"
36
- stroke-width=${e(this,Mf,"f")}
72
+ stroke-width=${e(this,Jg,"f")}
37
73
  fill="none"
38
74
  stroke-linecap="round"
39
75
  />`:n} ${360-a>=t?d`<path
40
76
  class="track"
41
77
  d="${i.path}"
42
78
  stroke="currentColor"
43
- stroke-width=${e(this,Mf,"f")}
79
+ stroke-width=${e(this,Jg,"f")}
44
80
  fill="none"
45
81
  stroke-linecap="round"
46
- />`:n}</svg></div>${e(this,Lf,"m",qf).call(this)}${e(this,Lf,"m",Ff).call(this)}`},Bf=function(){if(this.indeterminate)return s`<div class="progress" aria-hidden="true"><svg width="${e(this,Ef,"f")}" height="${e(this,Ef,"f")}" viewBox="${e(this,Lf,"m",Yf).call(this,{endAngle:20}).viewBox}"><path class="spinner active-track" stroke="currentColor" stroke-width="${e(this,Mf,"f")}" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path class="spinner track" stroke="currentColor" stroke-width="${e(this,Mf,"f")}" fill="none" stroke-linecap="round"/></svg></div>${e(this,Lf,"m",qf).call(this)}`;const t=e(this,Lf,"m",jf).call(this,2*e(this,Mf,"f"),e(this,Ef,"f"));let a=this.value/this.max*360;a>0&&(a=Math.max(0,t,a));const o=a<=t+t/2||360==a?0:e(this,Tf,"f"),i=e(this,Lf,"m",Xf).call(this,{gap:a<360?e(this,Mf,"f"):0,endAngle:a}),r=0==o?i:e(this,Lf,"m",Yf).call(this,{endAngle:360,amplitude:o}),l=e(this,Lf,"m",Xf).call(this,{gap:a>0?e(this,Mf,"f"):0,startAngle:a,endAngle:360}),c=o>0?o+e(this,Mf,"f")/2:e(this,Mf,"f");return s`<svg class="progress" viewBox="${l.viewBox}" aria-hidden="true">${a>0?d`${o>0?d`<defs>
47
- <mask id="${e(this,zf,"f")}">
82
+ />`:n}</svg></div>${e(this,Zg,"m",ly).call(this)}${e(this,Zg,"m",cy).call(this)}`},ny=function(){if(this.indeterminate)return s`<div class="progress" aria-hidden="true"><svg width="${e(this,Xg,"f")}" height="${e(this,Xg,"f")}" viewBox="${e(this,Zg,"m",yy).call(this,{endAngle:20}).viewBox}"><path class="spinner active-track" stroke="currentColor" stroke-width="${e(this,Jg,"f")}" stroke-linecap="round" stroke-linejoin="round" fill="none"/><path class="spinner track" stroke="currentColor" stroke-width="${e(this,Jg,"f")}" fill="none" stroke-linecap="round"/></svg></div>${e(this,Zg,"m",ly).call(this)}`;const t=e(this,Zg,"m",uy).call(this,2*e(this,Jg,"f"),e(this,Xg,"f"));let a=this.value/this.max*360;a>0&&(a=Math.max(0,t,a));const o=a<=t+t/2||360==a?0:e(this,Qg,"f"),i=e(this,Zg,"m",gy).call(this,{gap:a<360?e(this,Jg,"f"):0,endAngle:a}),r=0==o?i:e(this,Zg,"m",yy).call(this,{endAngle:360,amplitude:o}),l=e(this,Zg,"m",gy).call(this,{gap:a>0?e(this,Jg,"f"):0,startAngle:a,endAngle:360}),c=o>0?o+e(this,Jg,"f")/2:e(this,Jg,"f");return s`<svg class="progress" viewBox="${l.viewBox}" aria-hidden="true">${a>0?d`${o>0?d`<defs>
83
+ <mask id="${e(this,Gg,"f")}">
48
84
  <path
49
85
  d="${i.path}"
50
86
  stroke="white"
51
- stroke-width="${e(this,Mf,"f")+c}"
87
+ stroke-width="${e(this,Jg,"f")+c}"
52
88
  fill="none"
53
89
  stroke-linecap="round"
54
90
  />
55
91
  </mask>
56
92
  </defs>`:n}
57
- <g class="active-track" mask="${Fe(o>0?ye(e(this,zf,"f")):void 0)}">
93
+ <g class="active-track" mask="${Ne(o>0?we(e(this,Gg,"f")):void 0)}">
58
94
  <path
59
- class="${Ge({wave:o>0})}"
95
+ class="${Ue({wave:o>0})}"
60
96
  d="${r.path}"
61
97
  stroke="currentColor"
62
- stroke-width=${e(this,Mf,"f")}
98
+ stroke-width=${e(this,Jg,"f")}
63
99
  stroke-linecap="round"
64
100
  stroke-linejoin="round"
65
101
  fill="none"
@@ -68,26 +104,26 @@ var bf,ff,gf,yf,$f,xf,wf,kf,Cf;hf=new WeakSet,mf=function(e){w(this,"-with-no-da
68
104
  class="track"
69
105
  d="${l.path}"
70
106
  stroke="currentColor"
71
- stroke-width=${e(this,Mf,"f")}
107
+ stroke-width=${e(this,Jg,"f")}
72
108
  fill="none"
73
109
  stroke-linecap="round"
74
- />`:n}</svg> ${e(this,Lf,"m",qf).call(this)}${e(this,Lf,"m",Ff).call(this)}`},qf=function(){return s`<div class="diameter-and-stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},Ff=function(){return s`<div class="content" aria-hidden="true"><slot></slot></div>`},Vf=function(){const e=this.shadowRoot?.querySelector(".diameter-and-stroke");e&&(a(this,Ef,e.clientWidth,"f"),a(this,Mf,e.clientHeight,"f"))},Rf=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,Tf,e.clientWidth,"f"),a(this,Pf,e.clientHeight,"f"))},Nf=function(t){if(0===e(this,Tf,"f")||0===e(this,Pf,"f"))return;const a=e(this,Lf,"m",Uf).call(this,t);e(this,If,"f")?.setAttribute("d",e(this,Lf,"m",Yf).call(this,{endAngle:a}).path),e(this,Wf,"f")?.setAttribute("d",e(this,Lf,"m",Xf).call(this,{gap:e(this,Lf,"m",jf).call(this,e(this,Mf,"f"),e(this,Ef,"f")),startAngle:a}).path)},Uf=function(t){const a=2*e(this,Lf,"m",jf).call(this,e(this,Mf,"f")),o=18+a,i=280-a,r=1.575,s=t%6.3;if(s<r)return o;if(s<3.15){const e=(s-r)/r;return o+e*e*(3-2*e)*(i-o)}if(s<4.725)return i;const n=(s-4.725)/r;return i-n*n*(3-2*n)*(i-o)},jf=function(t,a=e(this,Tf,"f")){return t*(360/(2*Math.PI*e(this,Lf,"m",Gf).call(this,a).r))},Kf=function(e){return(e-90)*(Math.PI/180)},Zf=function(t,a){const o=e(this,Lf,"m",Kf).call(this,a);return{x:t.cx+t.r*Math.cos(o),y:t.cy+t.r*Math.sin(o)}},Gf=function(t){t+=e(this,Mf,"f")/2;const a=e(this,Ef,"f")/2;return{cx:a+t,cy:a+t,r:a,padding:t}},Xf=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,Tf,"f")}){if(0===e(this,Ef,"f")||0===e(this,Mf,"f"))return{path:"",viewBox:"0 0 0 0"};const r=e(this,Lf,"m",Gf).call(this,i);o>0&&(t+=e(this,Lf,"m",jf).call(this,o,i),a-=e(this,Lf,"m",jf).call(this,o,i)),a-t>=360&&(a=t+359.999);const s=e(this,Lf,"m",Zf).call(this,r,a),n=e(this,Lf,"m",Zf).call(this,r,t);return{path:`M ${s.x} ${s.y} A ${r.r} ${r.r} 0 ${a-t<=180?"0":"1"} 0 ${n.x} ${n.y}`,viewBox:`0 0 ${e(this,Ef,"f")+2*r.padding} ${e(this,Ef,"f")+2*r.padding}`}},Yf=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,Tf,"f"),amplitude:r=e(this,Tf,"f"),steps:s=200}){if(0===e(this,Ef,"f")||0===e(this,Mf,"f"))return{path:"",viewBox:"0 0 0 0"};const n=e(this,Lf,"m",Gf).call(this,i);o>0&&(t+=e(this,Lf,"m",jf).call(this,o,i),a-=e(this,Lf,"m",jf).call(this,o,i));const l=e(this,Lf,"m",Kf).call(this,t);let c=e(this,Lf,"m",Kf).call(this,a);t===a?c=l:c<l&&(c+=2*Math.PI);const d=c-l,h=2*Math.PI*n.r/e(this,Pf,"f"),m=Math.PI/2*(h-1),p=[];for(let e=0;e<=s;e++){const t=l+(0===s?0:e/s)*d,a=Math.sin(t*h+m),o=n.r-r*a,i=o*Math.cos(t)+n.cx,c=o*Math.sin(t)+n.cy;p.push([i,c])}return{path:1===p.length?`M ${p[0][0]},${p[0][1]}`:`M ${p[0][0]},${p[0][1]} `+p.slice(1).map(([e,t])=>`L ${e},${t}`).join(" "),viewBox:`0 0 ${e(this,Ef,"f")+2*n.padding} ${e(this,Ef,"f")+2*n.padding}`}},Qf.styles=[_f.styles,i`:host { display: inline-flex; vertical-align: middle; aspect-ratio: 1; position: relative; align-items: center; justify-content: center; } .progress { --_arc-duration: 1333ms; --_cycle-duration: calc(4 * var(--_arc-duration)); --_linear-rotate-duration: calc(var(--_arc-duration) * 360 / 306); --_indeterminate-easing: cubic-bezier(0.4, 0, 0.2, 1); } .active-track { transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1); } :host([variant="flat"]) .progress { flex: 1; align-self: stretch; pointer-events: none; } .progress, .spinner, .left, .right, .content, .circle { position: absolute; inset: 0; } .content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .diameter-and-stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .diameter-and-stroke { width: inherit; height: var(--m3e-circular-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { width: var(--m3e-circular-wavy-progress-indicator-amplitude, 0.1rem); height: var(--m3e-circular-wavy-progress-indicator-wavelength, 0.9375rem); } :host([variant="flat"]) { width: var(--m3e-circular-flat-progress-indicator-diameter, 2.5rem); } :host([variant="wavy"]) { width: var(--m3e-circular-wavy-progress-indicator-diameter, 3rem); } :host([variant="flat"][indeterminate]) .progress { animation: linear infinite linear-rotate; animation-duration: var(--_linear-rotate-duration); } :host([variant="flat"][indeterminate]) .spinner { animation: infinite both rotate-arc; animation-duration: var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } :host([variant="wavy"][indeterminate]) .spinner { transform-origin: 50% 50%; animation: wavy-spin ${1.575}s linear infinite; } .left { clip-path: inset(0); inset: 0 50% 0 0; } .right { clip-path: inset(0); inset: 0 0 0 50%; } .circle { animation: expand-arc; animation-iteration-count: infinite; animation-fill-mode: both; animation-duration: var(--_arc-duration), var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } .left .circle { rotate: 135deg; inset: 0 -100% 0 0; } .right .circle { rotate: 100deg; inset: 0 0 0 -100%; animation-delay: calc(-0.5 * var(--_arc-duration)), 0ms; } .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } .active-track { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } .wave { animation: spin-reverse 8s linear infinite; transform-origin: 50% 50%; } @keyframes expand-arc { 0% { transform: rotate(265deg); } 50% { transform: rotate(130deg); } 100% { transform: rotate(265deg); } } @keyframes rotate-arc { 12.5% { transform: rotate(135deg); } 25% { transform: rotate(270deg); } 37.5% { transform: rotate(405deg); } 50% { transform: rotate(540deg); } 62.5% { transform: rotate(675deg); } 75% { transform: rotate(810deg); } 87.5% { transform: rotate(945deg); } 100% { transform: rotate(1080deg); } } @keyframes linear-rotate { to { transform: rotate(360deg); } } @keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes wavy-spin { 0% { transform: rotate(0deg); } 10% { transform: rotate(90deg); } 100% { transform: rotate(360deg); } } @media (forced-colors: active) { :host([variant="flat"]) circle { fill: Canvas; } :host([variant="flat"]) .circle { border-color: var(--m3e-progress-indicator-color, ${v.color.primary}) var(--m3e-progress-indicator-color, ${v.color.primary}) Canvas Canvas; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],Qf.__nextMaskId=0,t([m({type:Boolean,reflect:!0})],Qf.prototype,"indeterminate",void 0),Qf=Jf=t([$("m3e-circular-progress-indicator")],Qf);let pg=mg=class extends _f{constructor(){super(...arguments),eg.add(this),tg.set(this,"m3e-linear-progress-mask-"+mg.__nextMaskId++),ag.set(this,0),og.set(this,0),ig.set(this,0),rg.set(this,new A(this,{skipInitial:!0,target:null,callback:()=>{e(this,eg,"m",cg).call(this),e(this,eg,"m",dg).call(this),queueMicrotask(()=>this.requestUpdate())}})),this.mode="determinate",this.bufferValue=0}reconnectedCallback(){super.reconnectedCallback(),e(this,eg,"m",sg).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,eg,"m",sg).call(this)}update(e){super.update(e),e.has("mode")&&(this.ariaValueNow="indeterminate"===this.mode||"query"===this.mode?null:`${this.value}`)}updated(e){if(super.updated(e),e.has("value")||e.has("bufferValue")||e.has("max")){const e=this.shadowRoot?.querySelector(".progress");e?.style.setProperty("--_value",this.value/this.max*100+"%"),e?.style.setProperty("--_buffer-value",this.bufferValue/this.max*100+"%")}}render(){const t=Math.max(0,Math.min(this.value,this.max))/this.max*this.clientWidth,a="indeterminate"===this.mode||"query"===this.mode?this.clientWidth:t+3*e(this,ig,"f"),o="wavy"===this.variant&&e(this,ag,"f")>0&&e(this,og,"f")>0&&e(this,ig,"f")>0?e(this,eg,"m",hg).call(this,a):void 0;return s`<div class="progress" aria-hidden="true" style="${$e({"--_translate-x":`-${t}px`})}">${o?n:s`<div class="track"></div>`} ${("determinate"===this.mode||"buffer"===this.mode)&&this.value<=0?n:s`<div class="primary">${!o||"determinate"!==this.mode&&"buffer"!==this.mode?n:e(this,eg,"m",ng).call(this,a,o.height,o.viewBox,o.path)}</div>${"determinate"===this.mode||"buffer"===this.mode?s`<div class="gap"></div>`:n}`} ${"buffer"!==this.mode||this.bufferValue>0?s`<div class="secondary"></div>`:n} ${"buffer"===this.mode&&this.bufferValue>0?s`<div class="gap"></div>`:n} ${"buffer"===this.mode?s`<div class="buffer"></div>`:n} ${("determinate"===this.mode||"buffer"===this.mode)&&this.value>0?s`<div class="gap"></div><div class="stop"></div>`:n} ${o&&"determinate"!==this.mode&&"buffer"!==this.mode?e(this,eg,"m",ng).call(this,a,o.height,o.viewBox,o.path):n}</div>${e(this,eg,"m",lg).call(this)}`}};var ug,vg,bg,fg,gg,yg,$g;tg=new WeakMap,ag=new WeakMap,og=new WeakMap,ig=new WeakMap,rg=new WeakMap,eg=new WeakSet,sg=function(){e(this,eg,"m",cg).call(this),e(this,eg,"m",dg).call(this);const t=this.shadowRoot?.querySelector(".stroke");t&&e(this,rg,"f").observe(t);const a=this.shadowRoot?.querySelector(".amplitude-and-wavelength");a&&e(this,rg,"f").observe(a)},ng=function(t,a,o,i){const r="indeterminate"===this.mode||"query"===this.mode;return r||this.value/this.max!==1?s`<svg class="wave" width="${t}" height="${a}" viewBox="${o}" preserveAspectRatio="none">${r?d`
75
- <mask id="${e(this,tg,"f")}" maskUnits="userSpaceOnUse">
110
+ />`:n}</svg> ${e(this,Zg,"m",ly).call(this)}${e(this,Zg,"m",cy).call(this)}`},ly=function(){return s`<div class="diameter-and-stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},cy=function(){return s`<div class="content" aria-hidden="true"><slot></slot></div>`},dy=function(){const e=this.shadowRoot?.querySelector(".diameter-and-stroke");e&&(a(this,Xg,e.clientWidth,"f"),a(this,Jg,e.clientHeight,"f"))},hy=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,Qg,e.clientWidth,"f"),a(this,ey,e.clientHeight,"f"))},my=function(t){if(0===e(this,Qg,"f")||0===e(this,ey,"f"))return;const a=e(this,Zg,"m",py).call(this,t);e(this,ty,"f")?.setAttribute("d",e(this,Zg,"m",yy).call(this,{endAngle:a}).path),e(this,ay,"f")?.setAttribute("d",e(this,Zg,"m",gy).call(this,{gap:e(this,Zg,"m",uy).call(this,e(this,Jg,"f"),e(this,Xg,"f")),startAngle:a}).path)},py=function(t){const a=2*e(this,Zg,"m",uy).call(this,e(this,Jg,"f")),o=18+a,i=280-a,r=1.575,s=t%6.3;if(s<r)return o;if(s<3.15){const e=(s-r)/r;return o+e*e*(3-2*e)*(i-o)}if(s<4.725)return i;const n=(s-4.725)/r;return i-n*n*(3-2*n)*(i-o)},uy=function(t,a=e(this,Qg,"f")){return t*(360/(2*Math.PI*e(this,Zg,"m",fy).call(this,a).r))},vy=function(e){return(e-90)*(Math.PI/180)},by=function(t,a){const o=e(this,Zg,"m",vy).call(this,a);return{x:t.cx+t.r*Math.cos(o),y:t.cy+t.r*Math.sin(o)}},fy=function(t){t+=e(this,Jg,"f")/2;const a=e(this,Xg,"f")/2;return{cx:a+t,cy:a+t,r:a,padding:t}},gy=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,Qg,"f")}){if(0===e(this,Xg,"f")||0===e(this,Jg,"f"))return{path:"",viewBox:"0 0 0 0"};const r=e(this,Zg,"m",fy).call(this,i);o>0&&(t+=e(this,Zg,"m",uy).call(this,o,i),a-=e(this,Zg,"m",uy).call(this,o,i)),a-t>=360&&(a=t+359.999);const s=e(this,Zg,"m",by).call(this,r,a),n=e(this,Zg,"m",by).call(this,r,t);return{path:`M ${s.x} ${s.y} A ${r.r} ${r.r} 0 ${a-t<=180?"0":"1"} 0 ${n.x} ${n.y}`,viewBox:`0 0 ${e(this,Xg,"f")+2*r.padding} ${e(this,Xg,"f")+2*r.padding}`}},yy=function({startAngle:t=0,endAngle:a=360,gap:o=0,padding:i=e(this,Qg,"f"),amplitude:r=e(this,Qg,"f"),steps:s=200}){if(0===e(this,Xg,"f")||0===e(this,Jg,"f"))return{path:"",viewBox:"0 0 0 0"};const n=e(this,Zg,"m",fy).call(this,i);o>0&&(t+=e(this,Zg,"m",uy).call(this,o,i),a-=e(this,Zg,"m",uy).call(this,o,i));const l=e(this,Zg,"m",vy).call(this,t);let c=e(this,Zg,"m",vy).call(this,a);t===a?c=l:c<l&&(c+=2*Math.PI);const d=c-l,h=2*Math.PI*n.r/e(this,ey,"f"),m=Math.PI/2*(h-1),p=[];for(let e=0;e<=s;e++){const t=l+(0===s?0:e/s)*d,a=Math.sin(t*h+m),o=n.r-r*a,i=o*Math.cos(t)+n.cx,c=o*Math.sin(t)+n.cy;p.push([i,c])}return{path:1===p.length?`M ${p[0][0]},${p[0][1]}`:`M ${p[0][0]},${p[0][1]} `+p.slice(1).map(([e,t])=>`L ${e},${t}`).join(" "),viewBox:`0 0 ${e(this,Xg,"f")+2*n.padding} ${e(this,Xg,"f")+2*n.padding}`}},xy.styles=[Kg.styles,i`:host { display: inline-flex; vertical-align: middle; aspect-ratio: 1; position: relative; align-items: center; justify-content: center; } .progress { --_arc-duration: 1333ms; --_cycle-duration: calc(4 * var(--_arc-duration)); --_linear-rotate-duration: calc(var(--_arc-duration) * 360 / 306); --_indeterminate-easing: cubic-bezier(0.4, 0, 0.2, 1); } .active-track { transition: stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1); } :host([variant="flat"]) .progress { flex: 1; align-self: stretch; pointer-events: none; } .progress, .spinner, .left, .right, .content, .circle { position: absolute; inset: 0; } .content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .diameter-and-stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .diameter-and-stroke { width: inherit; height: var(--m3e-circular-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { width: var(--m3e-circular-wavy-progress-indicator-amplitude, 0.1rem); height: var(--m3e-circular-wavy-progress-indicator-wavelength, 0.9375rem); } :host([variant="flat"]) { width: var(--m3e-circular-flat-progress-indicator-diameter, 2.5rem); } :host([variant="wavy"]) { width: var(--m3e-circular-wavy-progress-indicator-diameter, 3rem); } :host([variant="flat"][indeterminate]) .progress { animation: linear infinite linear-rotate; animation-duration: var(--_linear-rotate-duration); } :host([variant="flat"][indeterminate]) .spinner { animation: infinite both rotate-arc; animation-duration: var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } :host([variant="wavy"][indeterminate]) .spinner { transform-origin: 50% 50%; animation: wavy-spin ${1.575}s linear infinite; } .left { clip-path: inset(0); inset: 0 50% 0 0; } .right { clip-path: inset(0); inset: 0 0 0 50%; } .circle { animation: expand-arc; animation-iteration-count: infinite; animation-fill-mode: both; animation-duration: var(--_arc-duration), var(--_cycle-duration); animation-timing-function: var(--_indeterminate-easing); } .left .circle { rotate: 135deg; inset: 0 -100% 0 0; } .right .circle { rotate: 100deg; inset: 0 0 0 -100%; animation-delay: calc(-0.5 * var(--_arc-duration)), 0ms; } .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } .active-track { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } .wave { animation: spin-reverse 8s linear infinite; transform-origin: 50% 50%; } @keyframes expand-arc { 0% { transform: rotate(265deg); } 50% { transform: rotate(130deg); } 100% { transform: rotate(265deg); } } @keyframes rotate-arc { 12.5% { transform: rotate(135deg); } 25% { transform: rotate(270deg); } 37.5% { transform: rotate(405deg); } 50% { transform: rotate(540deg); } 62.5% { transform: rotate(675deg); } 75% { transform: rotate(810deg); } 87.5% { transform: rotate(945deg); } 100% { transform: rotate(1080deg); } } @keyframes linear-rotate { to { transform: rotate(360deg); } } @keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes wavy-spin { 0% { transform: rotate(0deg); } 10% { transform: rotate(90deg); } 100% { transform: rotate(360deg); } } @media (forced-colors: active) { :host([variant="flat"]) circle { fill: Canvas; } :host([variant="flat"]) .circle { border-color: var(--m3e-progress-indicator-color, ${v.color.primary}) var(--m3e-progress-indicator-color, ${v.color.primary}) Canvas Canvas; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],xy.__nextMaskId=0,t([m({type:Boolean,reflect:!0})],xy.prototype,"indeterminate",void 0),xy=$y=t([$("m3e-circular-progress-indicator")],xy);let Dy=Wy=class extends Kg{constructor(){super(...arguments),wy.add(this),ky.set(this,"m3e-linear-progress-mask-"+Wy.__nextMaskId++),Cy.set(this,0),Sy.set(this,0),_y.set(this,0),Ly.set(this,new A(this,{skipInitial:!0,target:null,callback:()=>{e(this,wy,"m",Ty).call(this),e(this,wy,"m",Py).call(this),queueMicrotask(()=>this.requestUpdate())}})),this.mode="determinate",this.bufferValue=0}reconnectedCallback(){super.reconnectedCallback(),e(this,wy,"m",zy).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,wy,"m",zy).call(this)}update(e){super.update(e),e.has("mode")&&(this.ariaValueNow="indeterminate"===this.mode||"query"===this.mode?null:`${this.value}`)}updated(e){if(super.updated(e),e.has("value")||e.has("bufferValue")||e.has("max")){const e=this.shadowRoot?.querySelector(".progress");e?.style.setProperty("--_value",this.value/this.max*100+"%"),e?.style.setProperty("--_buffer-value",this.bufferValue/this.max*100+"%")}}render(){const t=Math.max(0,Math.min(this.value,this.max))/this.max*this.clientWidth,a="indeterminate"===this.mode||"query"===this.mode?this.clientWidth:t+3*e(this,_y,"f"),o="wavy"===this.variant&&e(this,Cy,"f")>0&&e(this,Sy,"f")>0&&e(this,_y,"f")>0?e(this,wy,"m",Iy).call(this,a):void 0;return s`<div class="progress" aria-hidden="true" style="${ke({"--_translate-x":`-${t}px`})}">${o?n:s`<div class="track"></div>`} ${("determinate"===this.mode||"buffer"===this.mode)&&this.value<=0?n:s`<div class="primary">${!o||"determinate"!==this.mode&&"buffer"!==this.mode?n:e(this,wy,"m",Ey).call(this,a,o.height,o.viewBox,o.path)}</div>${"determinate"===this.mode||"buffer"===this.mode?s`<div class="gap"></div>`:n}`} ${"buffer"!==this.mode||this.bufferValue>0?s`<div class="secondary"></div>`:n} ${"buffer"===this.mode&&this.bufferValue>0?s`<div class="gap"></div>`:n} ${"buffer"===this.mode?s`<div class="buffer"></div>`:n} ${("determinate"===this.mode||"buffer"===this.mode)&&this.value>0?s`<div class="gap"></div><div class="stop"></div>`:n} ${o&&"determinate"!==this.mode&&"buffer"!==this.mode?e(this,wy,"m",Ey).call(this,a,o.height,o.viewBox,o.path):n}</div>${e(this,wy,"m",My).call(this)}`}};var Ay,Hy,Oy,Fy,By,Vy,qy;ky=new WeakMap,Cy=new WeakMap,Sy=new WeakMap,_y=new WeakMap,Ly=new WeakMap,wy=new WeakSet,zy=function(){e(this,wy,"m",Ty).call(this),e(this,wy,"m",Py).call(this);const t=this.shadowRoot?.querySelector(".stroke");t&&e(this,Ly,"f").observe(t);const a=this.shadowRoot?.querySelector(".amplitude-and-wavelength");a&&e(this,Ly,"f").observe(a)},Ey=function(t,a,o,i){const r="indeterminate"===this.mode||"query"===this.mode;return r||this.value/this.max!==1?s`<svg class="wave" width="${t}" height="${a}" viewBox="${o}" preserveAspectRatio="none">${r?d`
111
+ <mask id="${e(this,ky,"f")}" maskUnits="userSpaceOnUse">
76
112
  <rect width="${t}" height="${a}" fill="black" />
77
113
  <rect class="primary" height="${a}" fill="white" />
78
114
  <rect class="secondary" height="${a}" fill="white" />
79
115
  </mask>
80
- <mask id="${`${e(this,tg,"f")}-inverse`}" maskUnits="userSpaceOnUse">
116
+ <mask id="${`${e(this,ky,"f")}-inverse`}" maskUnits="userSpaceOnUse">
81
117
  <rect width="${t}" height="${a}" fill="white" />
82
118
  <rect class="primary" height="${a}" fill="black" />
83
119
  <rect class="secondary" height="${a}" fill="black" />
84
120
  </mask>
85
- <g mask="${ye(e(this,tg,"f"))}">
86
- <path d="${i}" stroke="currentColor" stroke-width=${e(this,ag,"f")} fill="none" stroke-linecap="round" />
121
+ <g mask="${we(e(this,ky,"f"))}">
122
+ <path d="${i}" stroke="currentColor" stroke-width=${e(this,Cy,"f")} fill="none" stroke-linecap="round" />
87
123
  </g>
88
- <g mask="${ye(`${e(this,tg,"f")}-inverse`)}">
89
- <rect class="track" width="100%" height="${e(this,ag,"f")}" fill="currentColor" />
90
- </g>`:d`<path d="${i}" stroke="currentColor" stroke-width=${e(this,ag,"f")} fill="none" stroke-linecap="round" />`}</svg>`:s`<div class="complete"></div>`},lg=function(){return s`<div class="stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},cg=function(){const e=this.shadowRoot?.querySelector(".stroke");e&&a(this,ag,e.clientHeight,"f")},dg=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,og,e.clientHeight,"f"),a(this,ig,e.clientWidth,"f"))},hg=function(t,a=0){const o=e(this,og,"f")+e(this,ag,"f")/2,i=o,r=[],s=e(this,ig,"f")/2;let n=0;for(r.push(`M ${n},${i}`);n<=t;){const t=n+s,l=i+o*Math.sin(2*Math.PI*t/e(this,ig,"f")+a),c=n+s/2,d=i+o*Math.sin(2*Math.PI*(n+s/2)/e(this,ig,"f")+a);r.push(`Q ${c},${d} ${t},${l}`),n+=s}const l=`0 -1 ${t} ${2*o+2}`;return{path:r.join(" "),viewBox:l,height:e(this,ag,"f")+2*e(this,og,"f"),padding:1}},pg.styles=[_f.styles,i`:host { display: block; position: relative; } .progress { width: 100%; height: 100%; position: relative; align-items: center; border-radius: var(--m3e-linear-progress-indicator-shape, ${v.shape.corner.extraSmall}); } .stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .stroke { width: 100%; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { height: var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem); width: var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem); } :host([mode="indeterminate"]) .amplitude-and-wavelength, :host([mode="query"]) .amplitude-and-wavelength { width: var(--m3e-linear-wavy-indeterminate-progress-indicator-wavelength, 1.5rem); } .primary, .secondary, .stop { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } .stop { aspect-ratio: 1; flex: none; } :host([variant="flat"]) { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } :host([variant="wavy"]) { height: calc( var(--m3e-linear-progress-indicator-thickness, 0.25rem) + calc(var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem) * 2) ); } :host([variant="wavy"]) .primary, :host([variant="wavy"]) .secondary { position: relative; height: 100%; overflow: hidden; } :host([variant="wavy"]) .complete { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } :host([variant="wavy"]) .secondary { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .wave { position: absolute; display: block; } .primary .wave, .secondary .wave { margin-inline-start: calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem)); } :host([variant="wavy"][mode="determinate"]) .primary path, :host([variant="wavy"][mode="buffer"]) .primary path { animation: wave-slide 1.5s linear infinite; } @keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem))); } } :host([mode="determinate"]) .progress, :host([mode="buffer"]) .progress { display: flex; overflow: hidden; } :host([mode="determinate"]) .primary, :host([mode="buffer"]) .primary { width: var(--_value, 0px); flex: none; } :host([mode="determinate"]) .gap, :host([mode="buffer"]) .gap { flex-basis: var(--m3e-linear-progress-indicator-thickness, 0.25rem); flex-shrink: 1; } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .buffer { flex: 1 1 auto; } :host([mode="buffer"]) .buffer { flex-shrink: 5; height: 100%; width: 100%; background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); mask-image: radial-gradient( circle, black 0, black calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2), transparent calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2) ); mask-size: calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2) 100%; mask-repeat: repeat; animation: buffer 250ms linear infinite; } :host(:dir(rtl)[mode="buffer"]) .buffer { transform: scaleX(-1); } @keyframes buffer { from { mask-position: 0 0; } to { mask-position: calc(-1 * calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2)) 0; } } :host([mode="buffer"]) .secondary { width: var(--_buffer-value, 0px); flex: none; } :host([mode="indeterminate"]) .primary, :host([mode="query"]) .primary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-primary 2.1s infinite linear; } :host([variant="wavy"][mode="indeterminate"]) .primary, :host([variant="wavy"][mode="query"]) .primary { animation-name: wavy-indeterminate-primary; } :host([mode="indeterminate"]) .secondary, :host([mode="query"]) .secondary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-secondary 2.1s infinite linear; animation-delay: 1.15s; animation-fill-mode: backwards; } :host([variant="wavy"][mode="indeterminate"]) .secondary, :host([variant="wavy"][mode="query"]) .secondary { animation-name: wavy-indeterminate-secondary; } :host([mode="indeterminate"]) .progress, :host([mode="query"]) .progress { overflow: hidden; position: relative; } :host(:not(:dir(rtl))[mode="query"]) .progress, :host(:dir(rtl)[mode="indeterminate"]) .progress { transform: scaleX(-1); } :host([variant="flat"]) .primary, :host([variant="flat"][mode="indeterminate"]) .secondary, :host([variant="flat"][mode="query"]) .secondary, :host([variant="wavy"]) .complete, .stop { background-color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([variant="wavy"]) .progress { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .secondary, :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { y: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); border-radius: inherit; } :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } @keyframes indeterminate-primary { 0% { left: -145.167%; width: 8%; } 20% { left: -113.333%; width: 48%; } 60% { left: 56.333%; width: 78%; } 100% { left: 100%; width: 8%; } } @keyframes indeterminate-secondary { 0% { left: -54.888%; width: 8%; } 20% { left: -20%; width: 48%; } 60% { left: 60%; width: 78%; } 100% { left: 160%; width: 8%; } } @keyframes wavy-indeterminate-primary { 0% { transform: translateX(-145.167%); width: 8%; } 20% { transform: translateX(-113.333%); width: 48%; } 60% { transform: translateX(56.333%); width: 78%; } 100% { transform: translateX(100%); width: 8%; } } @keyframes wavy-indeterminate-secondary { 0% { transform: translateX(-54.888%); width: 8%; } 20% { transform: translateX(-20%); width: 48%; } 60% { transform: translateX(60%); width: 78%; } 100% { transform: translateX(160%); width: 8%; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],pg.__nextMaskId=0,t([m({reflect:!0})],pg.prototype,"mode",void 0),t([m({attribute:"buffer-value",type:Number,reflect:!0})],pg.prototype,"bufferValue",void 0),pg=mg=t([$("m3e-linear-progress-indicator")],pg);let xg=class extends(X(J(Q(fe(q(R(oe(U(P(f(r,"radio"),!0)))))))))){constructor(){super(...arguments),ug.add(this),vg.set(this,t=>e(this,ug,"m",yg).call(this,t)),bg.set(this,new ie(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),fg.set(this,new K(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(vg=new WeakMap,bg=new WeakMap,fg=new WeakMap,ug=new WeakSet,re)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,vg,"f"));for(const t of this.labels)e(this,bg,"f").observe(t),e(this,fg,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,vg,"f"));for(const t of this.labels)e(this,bg,"f").unobserve(t),e(this,fg,"f").unobserve(t)}update(t){super.update(t),t.has("checked")&&e(this,ug,"m",$g).call(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,ug,"m",gg).call(this)}</div></div>`}};var wg,kg,Cg,Sg,_g,Lg,zg;gg=function(){return s`<svg viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`},yg=function(t){t.defaultPrevented||this.checked||this.disabled||(this.checked=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(e(this,ug,"m",$g).call(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!1,this.closest("label")&&t.preventDefault())},$g=function(){const e=this.closest("m3e-radio-group");e?e[Te].notifySelectionChange(this):this.name&&this.checked&&[...this.getRootNode()?.querySelectorAll(`m3e-radio[name="${this.name}"]`)??[]].filter(e=>e!==this&&e.checked).forEach(e=>e.checked=!1)},xg.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-radio-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-radio-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-radio-unselected-ripple-color, ${v.color.onSurface}); color: var(--m3e-radio-unselected-icon-color, ${v.color.onSurfaceVariant}); } :host([checked]) .base { --m3e-state-layer-hover-color: var(--m3e-radio-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-radio-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-radio-selected-ripple-color, ${v.color.primary}); color: var(--m3e-radio-selected-icon-color, ${v.color.primary}); } :host([aria-disabled="true"]) .base { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:state(-touched):state(-invalid)) .base { --m3e-state-layer-hover-color: var(--m3e-radio-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-radio-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-radio-error-ripple-color, ${v.color.error}); color: var(--m3e-radio-error-icon-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not([checked])) .base, :host([checked]) .base { --m3e-state-layer-hover-color: var(--_radio-forced-color, CanvasText); --m3e-state-layer-focus-color: var(--_radio-forced-color, CanvasText); --m3e-ripple-color: var(--_radio-forced-color, CanvasText); color: var(--_radio-forced-color, CanvasText); } :host([aria-disabled="true"]) .base { color: GrayText; } :host(:state(-touched):state(-invalid)) .base { --_radio-forced-color: Highlight; color: Highlight; } }`,t([h(".focus-ring")],xg.prototype,"_focusRing",void 0),t([h(".state-layer")],xg.prototype,"_stateLayer",void 0),t([h(".ripple")],xg.prototype,"_ripple",void 0),t([m()],xg.prototype,"value",void 0),xg=t([$("m3e-radio")],xg);let Eg=class extends(X(Y(J(Q(ee(te(oe(U(P(f(r,"radiogroup"))))))))))){constructor(){super(...arguments),wg.add(this),kg.set(this,void 0),Cg.set(this,()=>e(this,wg,"m",Lg).call(this)),this[zg]=(new Pe).withWrap().withDirectionality(De.current).onActiveItemChange(()=>{this[Te].activeItem?.click()})}static get observedAttributes(){return[...super.observedAttributes,"aria-invalid"]}get radios(){return this[Te]?.items??[]}get selected(){return this[Te]?.selectedItems[0]??null}get value(){return this.selected?.value??null}markAsTouched(){super.markAsTouched(),this.radios.forEach(e=>e.markAsTouched())}markAsUntouched(){super.markAsUntouched(),this.radios.forEach(e=>e.markAsUntouched())}markAsDirty(){super.markAsDirty(),this.radios.forEach(e=>e.markAsDirty())}markAsPristine(){super.markAsPristine(),this.radios.forEach(e=>e.markAsPristine())}attributeChangedCallback(e,t,a){switch(super.attributeChangedCallback(e,t,a),e){case"name":this.radios.forEach(e=>e.name=this.name);break;case"aria-invalid":this.radios.forEach(e=>{w(e,"-invalid","true"===a),e[xe]?.()})}}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",e(this,Cg,"f")),a(this,kg,De.observe(()=>this[Te].directionality=De.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",e(this,Cg,"f")),e(this,kg,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(this.ariaDisabled=null),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[Te].disabled=this.disabled)}render(){return s`<slot @slotchange="${e(this,wg,"m",Sg)}" @keydown="${e(this,wg,"m",_g)}" @change="${e(this,wg,"m",Lg)}"></slot>`}};var Mg,Tg,Pg,Ig,Wg;kg=new WeakMap,Cg=new WeakMap,wg=new WeakSet,zg=Te,Sg=function(){const{added:e}=this[Te].setItems([...this.querySelectorAll("m3e-radio")]);e.forEach(e=>e.name=e.name||this.name)},_g=function(e){this[Te].onKeyDown(e)},Lg=function(){this.checkValidity()},Eg.styles=i`:host { display: inline-flex; }`,Eg=t([$("m3e-radio-group")],Eg);let Ag=Wg=class extends(J(Q(fe(U(P(f(r,"radio"),!0)))))){constructor(){super(...arguments),Mg.add(this),Tg.set(this,t=>e(this,Mg,"m",Ig).call(this,t)),this.value="on"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Tg,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Tg,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){const t=this.closest("m3e-segmented-button");t&&(this.role=t.multi?"button":"radio"),super.update(e),e.has("checked")&&t?.[Te].notifySelectionChange(this),e.has("disabled")&&(this.disabled?this.nextElementSibling instanceof Wg&&(this.nextElementSibling.disabled?this.style.removeProperty("--_segmented-button-disabled-outline-color"):this.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`)):(this.style.removeProperty("--_segmented-button-disabled-outline-color"),this.previousElementSibling instanceof Wg&&(this.previousElementSibling.disabled?this.previousElementSibling.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`):this.previousElementSibling.style.removeProperty("--_segmented-button-disabled-outline-color"))))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,Mg,"m",Pg)}"></slot></div><div class="label"><slot></slot></div></div></div>`}};var Hg,Og,Dg,Bg,qg,Fg;Tg=new WeakMap,Mg=new WeakSet,Pg=function(e){w(this,"-with-icon",g(e.target))},Ig=function(e){if(e.defaultPrevented)return;const t=this.closest("m3e-segmented-button");if(t&&(t.multi||!this.checked)){const e=this.checked;this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-segmented-button")?.[Te].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=e}},Ag.styles=i`:host { display: inline-block; position: relative; vertical-align: middle; outline: none; user-select: none; flex: 1 1 auto; min-width: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: inline-flex; vertical-align: middle; align-items: center; width: 100%; height: calc(var(--m3e-segmented-button-height, 2.5rem) + ${v.density.calc(-3)}); box-sizing: border-box; border-width: var(--m3e-segmented-button-outline-thickness, 1px); border-color: var(--m3e-segmented-button-outline-color, ${v.color.outline}); border-style: solid; border-radius: inherit; border-inline-start-style: var(--_segmented-button-left-border, solid); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-segmented-button-padding-start, 1rem); padding-inline-end: var(--m3e-segmented-button-padding-end, 1rem); column-gap: var(--m3e-segmented-button-spacing, 0.5rem); } .label { font-size: var(--m3e-segmented-button-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-segmented-button-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-segmented-button-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-segmented-button-tracking, ${v.typescale.standard.label.large.tracking}); justify-self: center; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { display: flex; align-items: center; justify-content: center; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } :host([checked]:not(:state(-hide-selection))) .wrapper, :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-segmented-button-with-icon-padding-start, 0.75rem); } :host(:not(:disabled)[checked]) .base { background-color: var(--m3e-segmented-button-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-segmented-button-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-segmented-button-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .label { color: var(--m3e-segmented-button-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .icon { color: var(--m3e-segmented-button-selected-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([checked])) .base { --m3e-state-layer-hover-color: var( --m3e-segmented-button-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-segmented-button-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .label { color: var(--m3e-segmented-button-unselected-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .icon { color: var(--m3e-segmented-button-unselected-icon-color, ${v.color.onSurface}); } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-segmented-button-spacing, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } .check, ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-segmented-button-icon-size, 1.125rem) !important; } :host(:not([checked])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:disabled) .base { border-color: color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ); border-inline-end-color: var( --_segmented-button-disabled-outline-color, color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ) ); } :host(:disabled) .label { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-icon-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-icon-opacity, 38%), transparent ); } @media (prefers-reduced-motion) { .base, .icon, .label { transition: none; } } @media (forced-colors: active) { .base, .icon, .label { transition: none !important; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } :host(:not([selected]):not(:disabled)) .label, :host(:not([selected]):not(:disabled)) .icon { color: ButtonText; } :host(:not(:disabled)[checked]) .base { background-color: ButtonText; } :host(:not(:disabled)[checked]) .label, :host(:not(:disabled)[checked]) .icon { forced-color-adjust: none; color: ButtonFace; } :host { --m3e-segmented-button-outline-color: ButtonText; } }`,t([h(".focus-ring")],Ag.prototype,"_focusRing",void 0),t([h(".state-layer")],Ag.prototype,"_stateLayer",void 0),t([h(".ripple")],Ag.prototype,"_ripple",void 0),t([m()],Ag.prototype,"value",void 0),Ag=Wg=t([$("m3e-button-segment")],Ag);let Vg=class extends(X(J(Q(oe(U(P(f(r,"radiogroup")))))))){constructor(){super(...arguments),Hg.add(this),Og.set(this,void 0),this[Fg]=(new Pe).withWrap().withDirectionality(De.current).onActiveItemChange(()=>this[Te].activeItem?.click()),this.multi=!1,this.hideSelectionIndicator=!1}get segments(){return this[Te]?.items??[]}get selected(){return this[Te]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(Og=new WeakMap,Hg=new WeakSet,Fg=Te,re)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this[Te].multi=this.multi,this[Te].disableRovingTabIndex(this.multi),a(this,Og,De.observe(()=>this[Te].directionality=De.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Og,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[Te].disabled=this.disabled),e.has("multi")&&(this.role=this.multi?"group":"radiogroup",this[Te].multi=this.multi,this[Te].disableRovingTabIndex(this.multi)),(e.has("multi")||e.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),e.has("hideSelectionIndicator")&&this.segments.forEach(e=>w(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,Hg,"m",Dg)}" @keydown="${e(this,Hg,"m",Bg)}" @change="${e(this,Hg,"m",qg)}"></slot>`}};var Rg,Ng,Ug,jg,Kg,Zg,Gg,Xg,Yg,Jg,Qg,ey,ty,ay,oy,iy,ry,sy,ny,ly,cy,dy,hy,my,py,uy,vy,by,fy,gy;Dg=function(){const{added:e}=this[Te].setItems([...this.querySelectorAll("m3e-button-segment")]);e.forEach(e=>w(e,"-hide-selection",this.hideSelectionIndicator)),this[Te].items.forEach((e,t)=>{w(e,"-first",0==t),w(e,"-last",t==this[Te].items.length-1)})},Bg=function(e){this.multi||this[Te].onKeyDown(e)},qg=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},Vg.styles=i`:host { display: inline-flex; vertical-align: middle; align-items: center; } ::slotted(:state(-first)) { border-start-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); border-end-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); } ::slotted(:state(-last)) { border-start-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); border-end-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); } ::slotted(:not(:state(-first))) { --_segmented-button-left-border: none; }`,t([m({type:Boolean})],Vg.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],Vg.prototype,"hideSelectionIndicator",void 0),Vg=t([$("m3e-segmented-button")],Vg);let yy=gy=class extends(R(X(Y(J(Q(ee(te(oe(U(P(f(r,"combobox")))))))))))){constructor(){super(),Rg.add(this),this._options=new Array,Ng.set(this,void 0),Ug.set(this,void 0),jg.set(this,!1),Kg.set(this,!1),Zg.set(this,"m3e-select-"+gy.__nextId++),Gg.set(this,`${e(this,Zg,"f")}-list`),Xg.set(this,t=>e(this,Rg,"m",sy).call(this,t)),Yg.set(this,t=>e(this,Rg,"m",ny).call(this,t)),Jg.set(this,t=>e(this,Rg,"m",ly).call(this,t)),Qg.set(this,t=>e(this,Rg,"m",dy).call(this,t)),ey.set(this,t=>e(this,Rg,"m",cy).call(this,t)),this._listKeyManager=(new Se).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withTypeahead().onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,Rg,"m",vy).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.multi=!1,this.panelClass="",new A(this,{callback:()=>{e(this,Ug,"f")&&(e(this,Ug,"f").style.minWidth=e(this,Rg,"a",oy))}}),new x(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,Rg,"m",ry).call(this)})}get options(){return this._options??[]}get selected(){return this.options.filter(e=>e.selected)}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(Ng=new WeakMap,Ug=new WeakMap,jg=new WeakMap,Kg=new WeakMap,Zg=new WeakMap,Gg=new WeakMap,Xg=new WeakMap,Yg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,ey=new WeakMap,Rg=new WeakSet,ty=function(){return this._listKeyManager?.items??[]},ay=function(){return e(this,Rg,"a",ty).filter(e=>e.selected)},re)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}get shouldLabelFloat(){return this.selected.filter(e=>!e.isEmpty).length>0}onContainerClick(){a(this,Kg,!0,"f"),e(this,Rg,"m",my).call(this),this.focus({preventScroll:!0})}clear(t=!1){const a=e(this,Rg,"a",ay),o=a.length>0;o&&(a.forEach(t=>{t.selected=!1,e(this,Rg,"m",by).call(this,t)}),this.requestUpdate()),e(this,Rg,"m",uy).call(this),o&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&this.focus()}connectedCallback(){super.connectedCallback(),this.ariaHasPopup="listbox",this.ariaExpanded="false",this.addEventListener("click",e(this,Xg,"f")),this.addEventListener("keydown",e(this,Yg,"f")),this.addEventListener("keyup",e(this,Jg,"f")),e(this,Rg,"m",ry).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Xg,"f")),this.removeEventListener("keydown",e(this,Yg,"f")),this.removeEventListener("keyup",e(this,Jg,"f"))}update(t){super.update(t),t.has("hideSelectionIndicator")&&e(this,Rg,"a",ty).forEach(e=>w(e,"-hide-selection-indicator",this.hideSelectionIndicator))}firstUpdated(t){super.firstUpdated(t),this._focusRing?.attach(this),e(this,Rg,"a",iy)&&this._focusRing&&(this._focusRing.style.display="none")}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="base"><m3e-text-overflow><slot name="value">${this.selected.filter(e=>!e.isEmpty).map((e,t)=>t>0?s`<span>, </span>${e.label}`:e.label)}</slot></m3e-text-overflow><div class="arrow-wrapper" aria-hidden="true"><slot name="arrow"><svg class="arrow" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><div class="options" aria-hidden="true"><slot></slot></div>`}};oy=function(){const t=e(this,Rg,"a",iy);return`${t?t.menuAnchor.clientWidth:this.clientWidth}px`},iy=function(){return this.closest("m3e-form-field")},ry=function(){a(this,Ng,this.cloneNode(!0),"f");const{added:t}=this._listKeyManager.setItems([...e(this,Ng,"f").querySelectorAll("m3e-option")]);t.forEach(t=>{t.id=t.id||`${e(this,Zg,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,w(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),this._options=[...this.querySelectorAll("m3e-option")],e(this,Rg,"a",iy)?.notifyControlStateChange(),e(this,Ug,"f")&&(e(this,Ug,"f").replaceChildren(...e(this,Ng,"f").childNodes),0==this._options.length&&e(this,Rg,"m",uy).call(this))},sy=function(t){t.defaultPrevented||this.disabled||e(this,Rg,"m",my).call(this)},ny=function(t){if(!t.defaultPrevented)switch(a(this,Kg,!1,"f"),t.key){case" ":case"Enter":t.preventDefault(),this.multi?e(this,Ug,"f")||(a(this,jg,!0,"f"),e(this,Rg,"m",my).call(this)):(e(this,Ug,"f")&&this._listKeyManager.activeItem&&e(this,Rg,"m",fy).call(this,this._listKeyManager.activeItem),e(this,Ug,"f")?.isOpen?C()?e(this,Rg,"m",uy).call(this):setTimeout(()=>e(this,Rg,"m",uy).call(this),150):e(this,Rg,"m",py).call(this));break;case"Escape":case"Tab":e(this,Rg,"m",uy).call(this);break;case"Down":case"ArrowDown":this.multi&&!e(this,Ug,"f")?e(this,Rg,"m",my).call(this):(this._listKeyManager.onKeyDown(t),!e(this,Ug,"f")&&this._listKeyManager.activeItem&&e(this,Rg,"m",fy).call(this,this._listKeyManager.activeItem));break;default:this._listKeyManager.onKeyDown(t),this.multi||e(this,Ug,"f")||!this._listKeyManager.activeItem||e(this,Rg,"m",fy).call(this,this._listKeyManager.activeItem)}},ly=function(t){if(!t.defaultPrevented)if(e(this,jg,"f"))a(this,jg,!1,"f");else switch(t.key){case" ":case"Enter":if(!this.multi)return;t.preventDefault(),e(this,Ug,"f")&&this._listKeyManager.activeItem&&e(this,Rg,"m",fy).call(this,this._listKeyManager.activeItem)}},cy=function(t){if(2===t.button)return;t.preventDefault(),t.stopImmediatePropagation();const a=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);a&&!a.disabled&&(e(this,Rg,"m",fy).call(this,a),this._listKeyManager.setActiveItem(a),this.multi?this.requestUpdate():C()?e(this,Rg,"m",uy).call(this):setTimeout(()=>e(this,Rg,"m",uy).call(this),150))},dy=function(t){if(e(this,Ug,"f"))if("closed"!==t.newState){const a=e(this,Rg,"a",ay).find(e=>!e.disabled)??this._listKeyManager.items.find(e=>!e.disabled);this._listKeyManager.setActiveItem(a),a&&S(a,e(this,Ug,"f"),{block:"nearest",behavior:"instant"}),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else C()?e(this,Rg,"m",hy).call(this,t):setTimeout(()=>e(this,Rg,"m",hy).call(this,t),100)},hy=function(t){e(this,Ug,"f")&&(e(this,Ng,"f")?.replaceChildren(...e(this,Ug,"f").childNodes),e(this,Ug,"f").remove(),e(this,Ug,"f").removeEventListener("toggle",e(this,Qg,"f")),e(this,Ug,"f").removeEventListener("pointerdown",e(this,ey,"f")),a(this,Ug,void 0,"f"),this.ariaExpanded="false",this.removeAttribute("aria-controls"),this.removeAttribute("aria-owns"),this.requestUpdate(),k(this,"-open"),e(this,Rg,"a",iy)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})))},my=function(){this.disabled||(e(this,Ug,"f")?e(this,Rg,"m",uy).call(this):e(this,Rg,"m",py).call(this))},py=function(){if(!e(this,Ug,"f")&&0!=this._options.length){if(a(this,Ug,document.createElement("m3e-option-panel"),"f"),this.multi&&(e(this,Ug,"f").ariaMultiSelectable="true"),e(this,Ug,"f").id=e(this,Gg,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,Ug,"f").classList.add(t);e(this,Ug,"f").style.overflowX="hidden",e(this,Ug,"f").style.minWidth=e(this,Rg,"a",oy),e(this,Ug,"f").addEventListener("toggle",e(this,Qg,"f")),e(this,Ug,"f").addEventListener("pointerdown",e(this,ey,"f")),e(this,Ng,"f")&&e(this,Ug,"f").replaceChildren(...e(this,Ng,"f").childNodes),(e(this,Rg,"a",iy)??this).insertAdjacentElement("afterend",e(this,Ug,"f")),this.ariaExpanded="true",this.setAttribute("aria-controls",e(this,Gg,"f")),this.setAttribute("aria-owns",e(this,Gg,"f")),e(this,Rg,"a",iy)?.notifyControlStateChange(),setTimeout(()=>{e(this,Ug,"f")?.show(this,e(this,Rg,"a",iy)?.menuAnchor),L(this,"-open")})}},uy=function(){e(this,Ug,"f")&&(e(this,Ug,"f").hide(),this.removeAttribute("aria-activedescendant"),k(this,"-open"))},vy=function(t){if(this.setAttribute("aria-activedescendant",t.id),e(this,Ug,"f")){S(t,e(this,Ug,"f"),{block:"nearest",behavior:"instant"});const a=!e(this,Kg,"f")&&(this.matches(":focus-visible")||_());e(this,Rg,"a",ty).forEach(e=>{e===t&&a?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},by=function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected)},fy=function(t){const a=!this.multi||!t.selected;t.selected!==a&&(t.selected=a,e(this,Rg,"m",by).call(this,t),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.multi||e(this,Rg,"a",ay).filter(e=>e!==t).forEach(t=>{t.selected=!1,e(this,Rg,"m",by).call(this,t)}),this.requestUpdate(),e(this,Rg,"a",iy)?.notifyControlStateChange(),this.dispatchEvent(new Event("change",{bubbles:!0}))):(t.selected=!a,e(this,Rg,"m",by).call(this,t)))},yy.styles=i`:host { display: inline-flex; vertical-align: middle; outline: none; position: relative; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); min-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); border-radius: var(--m3e-select-container-shape, ${v.shape.corner.extraSmall}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) { color: color-mix( in srgb, var(--m3e-select-disabled-color, ${v.color.onSurface}) var(--m3e-select-disabled-color-opacity, 38%), transparent ); } .options { display: none; } .base { flex: 1 1 auto; display: inline-flex; align-items: center; overflow: hidden; } .arrow-wrapper { display: flex; align-items: center; justify-content: center; margin-top: var(--_select-arrow-margin-top); } ::slotted([slot="arrow"]), .arrow { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-select-icon-size, 1.5rem); } :host(:state(-open)) .focus-ring { display: none; }`,yy.__nextId=0,t([h(".focus-ring")],yy.prototype,"_focusRing",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],yy.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean})],yy.prototype,"multi",void 0),t([m({attribute:"panel-class"})],yy.prototype,"panelClass",void 0),yy=gy=t([$("m3e-select")],yy);const $y=o("var(--m3e-shape-size, 3rem)"),xy=o(`var(--m3e-shape-container-color, ${v.color.primary})`),wy=o(`var(--m3e-shape-transition, clip-path ${v.motion.spring.slowEffects})`),ky=i`:host { display: inline-block; position: relative; aspect-ratio: 1 / 1; width: ${$y}; } :host([name]) .wrapper { background-color: ${xy}; transition: ${wy}; transform-origin: center; } .wrapper { width: 100%; height: 100%; position: relative; isolation: isolate; overflow: hidden; will-change: clip-path; } ::slotted(img), ::slotted(video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } @media (prefers-reduced-motion) { .wrapper { transition: none; } }`,Cy={"4-leaf-clover":"M63.0014 190C49.8954 174.339 42 154.126 42 132.06C42 82.321 82.1131 42 131.595 42C153.99 42 174.466 50.2594 190.173 63.9131C205.843 50.2594 226.271 42 248.614 42C297.981 42 338 82.321 338 132.06C338 154.126 330.123 174.339 317.048 190C330.123 205.661 338 225.874 338 247.94C338 297.679 297.981 338 248.614 338C226.271 338 205.843 329.741 190.173 316.087C174.466 329.741 153.99 338 131.595 338C82.1131 338 42 297.679 42 247.94C42 225.874 49.8954 205.661 63.0014 190Z","4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","6-sided-cookie":"M134.186 54.5654C165.276 24.4782 214.724 24.4782 245.814 54.5654C255.328 63.7718 266.984 70.4811 279.738 74.0919C321.419 85.8924 346.142 128.586 335.552 170.473C332.312 183.291 332.312 196.709 335.552 209.527C346.142 251.414 321.419 294.108 279.738 305.908C266.984 309.519 255.328 316.228 245.814 325.435C214.724 355.522 165.276 355.522 134.186 325.435C124.672 316.228 113.016 309.519 100.262 305.908C58.5815 294.108 33.8578 251.414 44.4476 209.527C47.6879 196.709 47.6879 183.291 44.4476 170.473C33.8578 128.586 58.5815 85.8924 100.262 74.0919C113.016 70.4811 124.672 63.7718 134.186 54.5654Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z","8-leaf-clover":"M338.584 189.998C364.427 238.164 344.902 281.771 295.066 295.061C281.771 344.902 238.164 364.422 189.998 338.584C141.831 364.427 98.2245 344.902 84.9337 295.066C35.0981 281.771 15.573 238.164 41.4157 189.998C15.573 141.831 35.0981 98.2245 84.9337 84.9337C98.2245 35.0981 141.831 15.573 189.998 41.4157C238.164 15.573 281.771 35.0981 295.061 84.9337C344.902 98.2245 364.422 141.831 338.584 189.998Z","9-sided-cookie":"M154.828 43.2756C156.574 41.8498 157.448 41.1369 158.245 40.535C177.03 26.3548 202.97 26.3548 221.755 40.535C222.552 41.1369 223.425 41.8498 225.172 43.2756C225.952 43.9121 226.342 44.2303 226.727 44.5333C235.567 51.4788 246.406 55.4147 257.652 55.7636C258.143 55.7788 258.647 55.785 259.654 55.7975C261.911 55.8255 263.039 55.8395 264.037 55.8898C287.563 57.0742 307.435 73.7107 312.689 96.6205C312.912 97.5928 313.121 98.6991 313.541 100.911C313.728 101.899 313.822 102.393 313.922 102.872C316.219 113.862 321.986 123.828 330.377 131.308C330.743 131.635 331.125 131.962 331.888 132.618C333.599 134.087 334.454 134.821 335.187 135.5C352.445 151.495 356.95 176.983 346.215 197.903C345.76 198.791 345.208 199.773 344.104 201.737C343.611 202.613 343.364 203.052 343.132 203.483C337.812 213.375 335.809 224.708 337.418 235.82C337.488 236.304 337.569 236.8 337.732 237.792C338.096 240.014 338.278 241.125 338.402 242.115C341.318 265.436 328.347 287.851 306.647 296.991C305.726 297.379 304.67 297.778 302.559 298.574C301.617 298.929 301.146 299.107 300.69 299.289C290.241 303.455 281.406 310.852 275.48 320.395C275.221 320.811 274.964 321.243 274.449 322.107C273.297 324.043 272.721 325.011 272.178 325.849C259.387 345.584 235.011 354.436 212.498 347.521C211.543 347.228 210.477 346.856 208.347 346.112C207.396 345.78 206.921 345.614 206.455 345.461C195.767 341.951 184.233 341.951 173.545 345.461C173.079 345.614 172.603 345.78 171.652 346.112C169.522 346.856 168.457 347.228 167.502 347.521C144.989 354.436 120.613 345.584 107.822 325.849C107.279 325.011 106.703 324.043 105.55 322.107C105.036 321.243 104.779 320.811 104.52 320.395C98.5939 310.852 89.7583 303.455 79.3096 299.289C78.8539 299.107 78.3827 298.929 77.4404 298.574C75.3294 297.778 74.274 297.379 73.3529 296.991C51.6523 287.851 38.6819 265.436 41.598 242.115C41.7218 241.125 41.9039 240.014 42.2682 237.792C42.4308 236.8 42.5121 236.304 42.5822 235.82C44.1908 224.708 42.188 213.375 36.8675 203.483C36.6354 203.052 36.389 202.613 35.8962 201.737C34.7921 199.773 34.2401 198.791 33.7845 197.903C23.0499 176.983 27.5544 151.495 44.8128 135.5C45.5454 134.821 46.4007 134.087 48.1113 132.618C48.875 131.962 49.2568 131.635 49.6228 131.308C58.0134 123.828 63.7804 113.862 66.0777 102.872C66.1779 102.393 66.2715 101.899 66.4588 100.911C66.8783 98.699 67.088 97.5928 67.311 96.6204C72.5652 73.7107 92.4369 57.0742 115.962 55.8898C116.961 55.8395 118.089 55.8255 120.346 55.7975C121.353 55.785 121.857 55.7788 122.347 55.7636C133.594 55.4147 144.432 51.4788 153.272 44.5333C153.658 44.2303 154.048 43.9121 154.828 43.2756Z","12-sided-cookie":"M166.697 39.8458C167.238 39.3157 167.508 39.0506 167.743 38.8298C180.246 27.0567 199.754 27.0567 212.257 38.8298C212.492 39.0506 212.762 39.3157 213.303 39.8458C213.628 40.1639 213.79 40.323 213.945 40.4703C221.945 48.1056 233.282 51.1433 244.028 48.5311C244.235 48.4807 244.456 48.4242 244.896 48.311C245.629 48.1224 245.996 48.0282 246.31 47.9542C263.024 44.0098 279.919 53.7642 284.86 70.2114C284.953 70.5199 285.055 70.8847 285.258 71.6143C285.38 72.0522 285.442 72.2711 285.502 72.4758C288.613 83.0884 296.912 91.3875 307.524 94.4985C307.729 94.5585 307.948 94.6195 308.386 94.7417C309.115 94.9452 309.48 95.0469 309.789 95.1396C326.236 100.081 335.99 116.976 332.046 133.69C331.972 134.004 331.878 134.371 331.689 135.104C331.576 135.544 331.519 135.765 331.469 135.972C328.857 146.718 331.894 158.055 339.53 166.055C339.677 166.21 339.836 166.372 340.154 166.697C340.684 167.238 340.949 167.508 341.17 167.743C352.943 180.246 352.943 199.754 341.17 212.257C340.949 212.492 340.684 212.762 340.154 213.303C339.836 213.628 339.677 213.79 339.53 213.945C331.894 221.945 328.857 233.282 331.469 244.028C331.519 244.235 331.576 244.456 331.689 244.896C331.878 245.629 331.972 245.996 332.046 246.31C335.99 263.024 326.236 279.919 309.789 284.86C309.48 284.953 309.115 285.055 308.386 285.258C307.948 285.381 307.729 285.442 307.524 285.502C296.912 288.613 288.613 296.912 285.502 307.524C285.442 307.729 285.381 307.948 285.258 308.386C285.055 309.115 284.953 309.48 284.86 309.789C279.919 326.236 263.024 335.99 246.31 332.046C245.996 331.972 245.629 331.878 244.896 331.689C244.456 331.576 244.235 331.519 244.028 331.469C233.282 328.857 221.945 331.894 213.945 339.53C213.79 339.677 213.628 339.836 213.303 340.154C212.762 340.684 212.492 340.949 212.257 341.17C199.754 352.943 180.246 352.943 167.743 341.17C167.508 340.949 167.238 340.684 166.697 340.154C166.372 339.836 166.21 339.677 166.055 339.53C158.055 331.894 146.718 328.857 135.972 331.469C135.765 331.519 135.544 331.576 135.104 331.689C134.371 331.878 134.004 331.972 133.69 332.046C116.976 335.99 100.081 326.236 95.1396 309.789C95.0469 309.48 94.9452 309.115 94.7417 308.386C94.6195 307.948 94.5585 307.729 94.4985 307.524C91.3875 296.912 83.0884 288.613 72.4758 285.502C72.2711 285.442 72.0522 285.38 71.6143 285.258C70.8847 285.055 70.5199 284.953 70.2114 284.86C53.7642 279.919 44.0098 263.024 47.9542 246.31C48.0282 245.996 48.1224 245.629 48.311 244.896C48.4242 244.456 48.4807 244.235 48.5311 244.028C51.1433 233.282 48.1056 221.945 40.4703 213.945C40.323 213.79 40.1639 213.628 39.8458 213.303C39.3157 212.762 39.0506 212.492 38.8298 212.257C27.0567 199.754 27.0567 180.246 38.8298 167.743C39.0506 167.508 39.3157 167.238 39.8458 166.697C40.1639 166.372 40.323 166.21 40.4703 166.055C48.1056 158.055 51.1433 146.718 48.5311 135.972C48.4807 135.765 48.4242 135.544 48.311 135.104C48.1224 134.371 48.0282 134.004 47.9542 133.69C44.0098 116.976 53.7642 100.081 70.2114 95.1396C70.5199 95.0469 70.8847 94.9452 71.6143 94.7417C72.0522 94.6195 72.2711 94.5585 72.4758 94.4985C83.0884 91.3875 91.3875 83.0884 94.4985 72.4758C94.5585 72.2711 94.6195 72.0522 94.7417 71.6143C94.9452 70.8847 95.0469 70.5199 95.1396 70.2114C100.081 53.7642 116.976 44.0098 133.69 47.9542C134.004 48.0282 134.371 48.1224 135.104 48.311C135.544 48.4242 135.765 48.4807 135.972 48.5311C146.718 51.1433 158.055 48.1056 166.055 40.4703C166.21 40.323 166.372 40.1639 166.697 39.8458Z",burst:"M187.293 26.6421C188.056 25.2785 188.437 24.5966 188.902 24.3108C189.575 23.8964 190.425 23.8964 191.098 24.3108C191.563 24.5966 191.944 25.2785 192.707 26.6421L218.917 73.4925C219.386 74.3306 219.62 74.7497 219.937 75.0046C220.396 75.3737 220.989 75.5326 221.571 75.4425C221.973 75.3802 222.386 75.1345 223.211 74.6431L269.335 47.1743C270.677 46.3748 271.348 45.9751 271.893 45.9598C272.684 45.9377 273.42 46.3624 273.796 47.0581C274.055 47.5379 274.045 48.3191 274.023 49.8814L273.296 103.56C273.283 104.52 273.277 105 273.424 105.38C273.637 105.929 274.071 106.363 274.62 106.576C275 106.723 275.48 106.717 276.44 106.704L330.119 105.977C331.681 105.955 332.462 105.945 332.942 106.204C333.638 106.58 334.062 107.316 334.04 108.107C334.025 108.652 333.625 109.323 332.826 110.665L305.357 156.789C304.865 157.614 304.62 158.027 304.557 158.429C304.467 159.011 304.626 159.604 304.995 160.063C305.25 160.38 305.669 160.614 306.508 161.083L353.358 187.293C354.722 188.056 355.403 188.437 355.689 188.902C356.104 189.575 356.104 190.425 355.689 191.098C355.403 191.563 354.722 191.944 353.358 192.707L306.508 218.917C305.669 219.386 305.25 219.62 304.995 219.937C304.626 220.396 304.467 220.989 304.557 221.571C304.62 221.973 304.865 222.386 305.357 223.211L332.826 269.335C333.625 270.677 334.025 271.348 334.04 271.893C334.062 272.684 333.638 273.42 332.942 273.796C332.462 274.055 331.681 274.045 330.119 274.023L276.44 273.296C275.48 273.283 275 273.277 274.62 273.424C274.071 273.637 273.637 274.071 273.424 274.62C273.277 275 273.283 275.48 273.296 276.44L274.023 330.119C274.045 331.681 274.055 332.462 273.796 332.942C273.42 333.638 272.684 334.062 271.893 334.04C271.348 334.025 270.677 333.625 269.335 332.826L223.211 305.357C222.386 304.865 221.973 304.62 221.571 304.557C220.989 304.467 220.396 304.626 219.937 304.995C219.62 305.25 219.386 305.669 218.917 306.508L192.707 353.358C191.944 354.722 191.563 355.403 191.098 355.689C190.425 356.104 189.575 356.104 188.902 355.689C188.437 355.403 188.056 354.722 187.293 353.358L161.083 306.508C160.614 305.669 160.38 305.25 160.063 304.995C159.604 304.626 159.011 304.467 158.429 304.557C158.027 304.62 157.614 304.865 156.789 305.357L110.665 332.826C109.323 333.625 108.652 334.025 108.107 334.04C107.316 334.062 106.58 333.638 106.204 332.942C105.945 332.462 105.955 331.681 105.977 330.119L106.704 276.44C106.717 275.48 106.723 275 106.576 274.62C106.363 274.071 105.929 273.637 105.38 273.424C105 273.277 104.52 273.283 103.56 273.296L49.8814 274.023C48.3191 274.045 47.5379 274.055 47.0581 273.796C46.3624 273.42 45.9377 272.684 45.9598 271.893C45.9751 271.348 46.3748 270.677 47.1743 269.335L74.6431 223.211C75.1345 222.386 75.3802 221.973 75.4425 221.571C75.5326 220.989 75.3737 220.396 75.0046 219.937C74.7497 219.62 74.3306 219.386 73.4925 218.917L26.6421 192.707C25.2785 191.944 24.5966 191.563 24.3108 191.098C23.8964 190.425 23.8964 189.575 24.3108 188.902C24.5966 188.437 25.2785 188.056 26.6421 187.293L73.4925 161.083C74.3306 160.614 74.7497 160.38 75.0046 160.063C75.3737 159.604 75.5326 159.011 75.4425 158.429C75.3802 158.027 75.1345 157.614 74.6431 156.789L47.1743 110.665C46.3748 109.323 45.9751 108.652 45.9598 108.107C45.9377 107.316 46.3624 106.58 47.0581 106.204C47.5379 105.945 48.3191 105.955 49.8814 105.977L103.56 106.704C104.52 106.717 105 106.723 105.38 106.576C105.929 106.363 106.363 105.929 106.576 105.38C106.723 105 106.717 104.52 106.704 103.56L105.977 49.8814C105.955 48.3191 105.945 47.5379 106.204 47.0581C106.58 46.3624 107.316 45.9377 108.107 45.9598C108.652 45.9751 109.323 46.3748 110.665 47.1743L156.789 74.6431C157.614 75.1345 158.027 75.3802 158.429 75.4425C159.011 75.5326 159.604 75.3737 160.063 75.0046C160.38 74.7497 160.614 74.3306 161.083 73.4925L187.293 26.6421Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z",sunny:"M276.453 68.8118C286.405 69.4881 291.381 69.8263 295.404 71.5853C301.223 74.1305 305.87 78.7766 308.415 84.5965C310.174 88.6186 310.512 93.5948 311.188 103.547L312.732 126.259C313.005 130.284 313.142 132.296 313.579 134.219C314.212 136.997 315.31 139.648 316.827 142.059C317.877 143.728 319.203 145.248 321.856 148.288L336.824 165.438C343.384 172.954 346.663 176.712 348.263 180.8C350.579 186.715 350.579 193.285 348.263 199.2C346.663 203.288 343.384 207.046 336.824 214.562L321.856 231.712C319.203 234.752 317.877 236.272 316.827 237.941C315.31 240.352 314.212 243.003 313.579 245.781C313.142 247.704 313.005 249.716 312.732 253.741L311.188 276.453C310.512 286.405 310.174 291.381 308.415 295.404C305.87 301.223 301.223 305.87 295.404 308.415C291.381 310.174 286.405 310.512 276.453 311.188L253.741 312.732C249.716 313.005 247.704 313.142 245.781 313.579C243.003 314.212 240.352 315.31 237.941 316.827C236.272 317.877 234.752 319.203 231.712 321.856L214.562 336.824C207.046 343.384 203.288 346.663 199.2 348.263C193.285 350.579 186.715 350.579 180.8 348.263C176.712 346.663 172.954 343.384 165.438 336.824L148.288 321.856C145.248 319.203 143.728 317.877 142.059 316.827C139.648 315.31 136.997 314.212 134.219 313.579C132.296 313.142 130.284 313.005 126.259 312.732L103.547 311.188C93.5947 310.512 88.6186 310.174 84.5965 308.415C78.7766 305.87 74.1305 301.223 71.5853 295.404C69.8263 291.381 69.4881 286.405 68.8118 276.453L67.2684 253.741C66.9949 249.716 66.8581 247.704 66.4206 245.781C65.7883 243.003 64.6903 240.352 63.173 237.941C62.123 236.272 60.7965 234.752 58.1437 231.712L43.1756 214.562C36.6164 207.046 33.3369 203.288 31.7366 199.2C29.4211 193.285 29.4211 186.715 31.7366 180.8C33.3369 176.712 36.6164 172.954 43.1756 165.438L58.1437 148.288C60.7965 145.248 62.123 143.728 63.173 142.059C64.6903 139.648 65.7883 136.997 66.4206 134.219C66.8581 132.296 66.9949 130.284 67.2684 126.259L68.8118 103.547C69.4881 93.5948 69.8263 88.6186 71.5853 84.5965C74.1305 78.7766 78.7766 74.1305 84.5965 71.5853C88.6186 69.8263 93.5948 69.4881 103.547 68.8118L126.259 67.2684C130.284 66.9949 132.296 66.8581 134.219 66.4206C136.997 65.7883 139.648 64.6903 142.059 63.173C143.728 62.123 145.248 60.7966 148.288 58.1437L165.438 43.1756C172.954 36.6164 176.712 33.3369 180.8 31.7366C186.715 29.4211 193.285 29.4211 199.2 31.7366C203.288 33.3369 207.046 36.6164 214.562 43.1756L231.712 58.1437C234.752 60.7966 236.272 62.123 237.941 63.173C240.352 64.6903 243.003 65.7883 245.781 66.4206C247.704 66.8581 249.716 66.9949 253.741 67.2684L276.453 68.8118Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z",bun:"M38.875 113.322C38.875 69.5137 74.3887 34 118.197 34H261.803C305.611 34 341.125 69.5137 341.125 113.322C341.125 149.45 316.972 179.937 283.932 189.516C283.717 189.579 283.567 189.776 283.567 190C283.567 190.224 283.717 190.421 283.932 190.484C316.972 200.063 341.125 230.55 341.125 266.678C341.125 310.486 305.611 346 261.803 346H118.197C74.3887 346 38.875 310.486 38.875 266.678C38.875 230.785 62.7138 200.461 95.422 190.674C95.72 190.585 95.9264 190.311 95.9264 190C95.9264 189.689 95.72 189.415 95.422 189.326C62.7138 179.539 38.875 149.214 38.875 113.322Z",boom:"M186.738 36.413C187.51 30.2399 187.896 27.1534 188.483 26.6019C189.337 25.7994 190.663 25.7994 191.517 26.6019C192.104 27.1534 192.49 30.2399 193.262 36.413L203.079 114.907C203.39 117.398 203.546 118.644 203.993 119.158C204.642 119.904 205.703 120.131 206.598 119.715C207.214 119.428 207.861 118.353 209.153 116.205L249.875 48.5119C253.078 43.1883 254.679 40.5264 255.438 40.2626C256.543 39.8785 257.754 40.4209 258.21 41.5032C258.522 42.247 257.626 45.2245 255.834 51.1796L233.049 126.902C232.326 129.305 231.964 130.507 232.165 131.159C232.456 132.107 233.333 132.748 234.319 132.733C234.998 132.723 236.023 132.006 238.073 130.572L302.659 85.3844C307.738 81.8306 310.278 80.0538 311.078 80.1231C312.243 80.2241 313.13 81.2151 313.108 82.39C313.093 83.1974 311.07 85.5511 307.024 90.2585L255.576 150.116C253.943 152.016 253.126 152.966 253.045 153.644C252.928 154.628 253.47 155.573 254.377 155.963C255.001 156.231 256.228 155.995 258.681 155.524L335.963 140.655C342.041 139.485 345.08 138.901 345.783 139.291C346.806 139.86 347.215 141.128 346.72 142.192C346.38 142.924 343.579 144.247 337.979 146.893L266.764 180.536C264.503 181.604 263.373 182.137 263.025 182.724C262.52 183.575 262.633 184.66 263.304 185.387C263.765 185.887 264.981 186.173 267.413 186.745L344.029 204.766C350.054 206.184 353.067 206.892 353.551 207.537C354.256 208.474 354.117 209.8 353.234 210.57C352.627 211.099 349.534 211.163 343.347 211.289L264.679 212.901C262.182 212.952 260.933 212.977 260.378 213.371C259.572 213.942 259.237 214.979 259.555 215.917C259.774 216.563 260.77 217.322 262.76 218.839L325.462 266.634C330.393 270.393 332.858 272.272 333.04 273.059C333.304 274.203 332.641 275.358 331.523 275.7C330.755 275.935 327.903 274.728 322.2 272.314L249.681 241.615C247.379 240.641 246.228 240.153 245.562 240.286C244.595 240.478 243.869 241.288 243.78 242.275C243.719 242.955 244.321 244.055 245.526 246.255L283.472 315.559C286.456 321.01 287.948 323.735 287.796 324.528C287.574 325.682 286.501 326.466 285.341 326.321C284.544 326.221 282.428 323.952 278.194 319.415L224.364 261.714C222.655 259.882 221.801 258.966 221.139 258.815C220.177 258.594 219.187 259.038 218.706 259.904C218.375 260.5 218.48 261.751 218.691 264.253L225.32 343.084C225.841 349.283 226.102 352.383 225.642 353.045C224.973 354.009 223.676 354.286 222.675 353.679C221.987 353.263 220.971 350.324 218.939 344.447L193.105 269.721C192.285 267.349 191.875 266.163 191.332 265.754C190.542 265.16 189.458 265.16 188.668 265.754C188.125 266.163 187.715 267.349 186.895 269.721L161.061 344.447C159.029 350.324 158.013 353.263 157.325 353.679C156.324 354.286 155.027 354.009 154.358 353.045C153.898 352.383 154.159 349.283 154.68 343.084L161.309 264.253C161.52 261.751 161.625 260.5 161.294 259.904C160.813 259.038 159.823 258.594 158.861 258.815C158.199 258.966 157.345 259.882 155.636 261.714L101.806 319.415C97.5724 323.952 95.4556 326.221 94.6586 326.321C93.4987 326.466 92.4257 325.682 92.2041 324.528C92.0519 323.735 93.544 321.01 96.5282 315.559L134.474 246.255C135.679 244.055 136.281 242.955 136.22 242.275C136.131 241.288 135.405 240.478 134.438 240.286C133.772 240.153 132.621 240.641 130.319 241.615L57.8002 272.314C52.097 274.728 49.2455 275.935 48.4771 275.7C47.3589 275.358 46.6958 274.203 46.9601 273.059C47.1418 272.272 49.6074 270.393 54.5385 266.634L117.24 218.839C119.23 217.322 120.226 216.563 120.445 215.917C120.763 214.979 120.428 213.942 119.622 213.371C119.067 212.977 117.818 212.952 115.321 212.901L36.6531 211.289C30.4664 211.163 27.373 211.099 26.7662 210.57C25.8831 209.8 25.7445 208.474 26.449 207.537C26.9332 206.892 29.9459 206.184 35.9713 204.766L112.587 186.745C115.019 186.173 116.235 185.887 116.697 185.387C117.367 184.66 117.48 183.575 116.975 182.724C116.627 182.137 115.497 181.604 113.236 180.536L42.0212 146.893C36.4205 144.247 33.6202 142.924 33.2799 142.192C32.7846 141.128 33.1944 139.86 34.2174 139.291C34.9204 138.901 37.9592 139.485 44.037 140.655L121.319 155.524C123.772 155.995 124.999 156.231 125.623 155.963C126.53 155.573 127.072 154.628 126.955 153.644C126.874 152.966 126.057 152.016 124.424 150.116L72.9761 90.2585C68.93 85.5511 66.907 83.1974 66.8919 82.39C66.87 81.2151 67.7575 80.2241 68.922 80.1231C69.7222 80.0538 72.2618 81.8306 77.3411 85.3844L141.927 130.572C143.977 132.006 145.002 132.723 145.681 132.733C146.667 132.748 147.544 132.107 147.835 131.159C148.036 130.507 147.674 129.305 146.951 126.902L124.166 51.1796C122.374 45.2245 121.478 42.247 121.79 41.5032C122.246 40.4209 123.457 39.8785 124.562 40.2626C125.321 40.5264 126.922 43.1883 130.125 48.5119L170.847 116.205C172.139 118.354 172.786 119.428 173.402 119.715C174.297 120.131 175.358 119.904 176.007 119.158C176.454 118.644 176.61 117.398 176.921 114.907L186.738 36.413Z",arch:"M345 293.727C345 299.96 345 303.076 344.689 305.696C342.259 326.14 326.14 342.259 305.696 344.689C303.076 345 299.96 345 293.727 345H86.2732C80.0405 345 76.9242 345 74.3043 344.689C53.8596 342.259 37.7407 326.14 35.3113 305.696C35 303.076 35 299.96 35 293.727L35 190C35 104.396 104.396 35 190 35C275.604 35 345 104.396 345 190V293.727Z",arrow:"M262.422 104.907C253.213 90.2936 243.84 75.4777 231.389 63.8739C218.938 52.2412 202.808 44.023 186.27 45.0937C171.748 46.0486 158.288 54.0932 147.662 64.5974C137.036 75.1015 128.781 88.0365 120.661 100.856C98.7011 135.464 76.7136 170.073 54.7533 204.711C44.3181 221.147 33.6105 238.307 30.7224 257.898C27.2349 281.568 36.6348 305.673 53.3093 321.415C70.7467 337.88 99.0008 336.549 120.225 332.035C143.493 327.086 166.244 317.769 189.975 317.797C210.301 317.797 229.945 324.685 249.726 329.691C269.479 334.668 290.704 337.735 309.776 330.327C333.453 321.154 350.454 295.082 349.991 268.315C349.555 243.892 323.508 201.759 323.508 201.759C323.508 201.759 282.78 137.194 262.422 104.907Z",diamond:"M247.442 306.481C230.606 328.514 222.188 339.53 212.466 344.548C198.383 351.817 181.617 351.817 167.534 344.548C157.812 339.53 149.394 328.514 132.558 306.481L76.646 233.308C66.4059 219.906 61.2859 213.206 58.7505 206.032C55.0832 195.654 55.0832 184.346 58.7505 173.968C61.2859 166.794 66.4059 160.094 76.6461 146.692L132.558 73.5194C149.394 51.4863 157.812 40.4697 167.534 35.4518C181.617 28.1827 198.383 28.1827 212.466 35.4518C222.188 40.4697 230.606 51.4863 247.442 73.5195L303.354 146.692C313.594 160.094 318.714 166.794 321.249 173.968C324.917 184.346 324.917 195.654 321.249 206.032C318.714 213.206 313.594 219.906 303.354 233.308L247.442 306.481Z",fan:"M40 87.3684C40 85.697 40 84.8613 40.0219 84.1547C40.7686 60.0969 60.0969 40.7686 84.1547 40.0219C84.8613 40 85.697 40 87.3684 40C96.2825 40 100.74 40 104.508 40.117C232.816 44.0992 335.901 147.184 339.883 275.492C340 279.26 340 283.717 340 292.632C340 294.303 340 295.139 339.978 295.845C339.231 319.903 319.903 339.231 295.845 339.978C295.139 340 294.303 340 292.632 340H107.441C87.0642 340 76.8757 340 68.7935 336.8C57.0947 332.168 47.8318 322.905 43.2 311.207C40 303.124 40 292.936 40 272.559V87.3684Z",flower:"M303.126 76.8625C291.251 64.988 264.194 70.8597 231.547 89.6813C221.771 53.2855 206.79 30 189.996 30C173.203 30 158.223 53.2841 148.447 89.6779C115.802 70.8581 88.7463 64.9874 76.8722 76.8614C64.997 88.7367 70.8701 115.796 89.6945 148.446C53.2912 158.222 30 173.204 30 190C30 206.793 53.283 221.773 89.6753 231.549C70.8495 264.2 64.9757 291.261 76.8513 303.137C88.7274 315.013 115.79 309.138 148.444 290.31C158.22 326.711 173.201 350 189.996 350C206.792 350 221.774 326.709 231.55 290.307C264.205 309.136 291.27 315.012 303.146 303.136C315.022 291.26 309.148 264.2 290.323 231.549C326.716 221.773 350 206.793 350 190C350 173.204 326.708 158.222 290.304 148.446C309.128 115.797 315.001 88.7376 303.126 76.8625Z",gem:"M133.415 65.7498C150.981 52.991 159.763 46.6116 169.124 43.4402C182.663 38.8533 197.337 38.8533 210.876 43.4402C220.237 46.6116 229.019 52.991 246.585 65.7498L286.083 94.4402C296.514 102.017 301.729 105.805 305.981 110.353C312.125 116.926 316.839 124.702 319.823 133.189C321.888 139.062 322.834 145.437 324.725 158.189L332.038 207.501C335.355 229.87 337.014 241.055 335.34 251.136C332.918 265.718 325.6 279.04 314.59 288.907C306.979 295.728 296.649 300.329 275.987 309.532L229.176 330.382C216.707 335.935 210.473 338.712 204.064 340.131C194.8 342.182 185.2 342.182 175.936 340.131C169.527 338.712 163.293 335.935 150.824 330.382L104.013 309.532C83.3515 300.329 73.0207 295.728 65.4097 288.907C54.4005 279.04 47.0819 265.718 44.6602 251.136C42.9859 241.055 44.6447 229.87 47.9621 207.501L55.2752 158.189C57.1662 145.437 58.1117 139.062 60.1768 133.189C63.1612 124.702 67.8747 116.926 74.0191 110.353C78.2706 105.805 83.4862 102.017 93.9172 94.4402L133.415 65.7498Z","ghost-ish":"M40 182.857C40 103.959 107.157 40 190 40C272.843 40 340 103.959 340 182.857L340 282.857C340 314.416 313.137 340 280 340C270.178 340 260.907 337.752 252.724 333.768C248.554 331.737 244.394 329.512 240.216 327.277C225.513 319.411 210.592 311.429 194.27 311.429H185.73C169.408 311.429 154.487 319.411 139.784 327.277C135.606 329.512 131.446 331.737 127.276 333.768C119.093 337.752 109.822 340 100 340C66.8629 340 40 314.416 40 282.857L40 182.857Z",heart:"M281.1 47.134C259.439 47.134 240.113 57.3021 227.481 73.1973L190 114.513V114.379L152.519 73.0633C139.887 57.1681 120.561 47 98.8995 47C60.8478 47 30 78.3656 30 117.059C30 151.058 58.3751 176.471 78.9187 200.884C99.3895 225.205 119.856 249.523 140.323 273.844L186.272 328.437C187.516 329.914 188.756 331.388 190 332.866V333C191.244 331.522 192.484 330.048 193.728 328.571C209.043 310.375 224.358 292.178 239.677 273.978C260.144 249.657 280.614 225.339 301.081 201.018C321.625 176.608 350 151.196 350 117.193C350 78.4996 319.152 47.134 281.1 47.134Z",hexagon:"M360.196 147.081C367.995 160.591 371.894 167.346 373.864 174.403C376.712 184.606 376.712 195.394 373.864 205.597C371.894 212.654 367.995 219.409 360.196 232.919L336.437 274.079C328.638 287.589 324.738 294.344 319.613 299.58C312.202 307.148 302.86 312.543 292.601 315.177C285.505 317 277.706 317 262.108 317L117.892 317C102.294 317 94.4949 317 87.399 315.178C77.1398 312.543 67.798 307.149 60.3873 299.58C55.2616 294.345 51.3621 287.589 43.5632 274.079L19.8039 232.919C12.0054 219.409 8.10612 212.654 6.13613 205.597C3.28796 195.394 3.28796 184.606 6.13613 174.403C8.10613 167.346 12.0054 160.591 19.804 147.081L43.5632 105.921C51.3622 92.4107 55.2616 85.6554 60.3874 80.4202C67.798 72.8514 77.1398 67.457 87.3989 64.8224C94.4949 63.0002 102.294 63.0002 117.892 63.0002L262.108 63C277.706 63 285.505 63 292.601 64.8222C302.86 67.4567 312.202 72.8511 319.613 80.42C324.738 85.6551 328.638 92.4104 336.437 105.921L360.196 147.081Z","pixel-circle":"M253.556 34H126.444V54.2217H83.1111V80.2222H57.1111V126.444H34V253.556H57.1111V299.778H83.1111V325.777H126.444V346H253.556V325.777H296.889V299.778H322.889V253.556H346V126.444H322.889V80.2222H296.889V54.2217H253.556V34Z","pixel-triangle":"M121.641 30H66V350H121.641V322.174H164.564V295.739H209.077V265.13H245.641V240.086H282.205V209.478H314V170.522H282.205V139.912H245.641V114.869H209.077V84.2609H164.564V57.8262H121.641V30Z",puffy:"M371.982 187.559C371.686 165.488 353.541 147.816 331.439 148.112C330.218 148.112 329.016 148.204 327.832 148.334C328.757 147.576 329.663 146.799 330.532 145.949C346.365 130.551 346.698 105.226 331.291 89.4031C330.384 88.4788 329.478 87.5546 328.553 86.6673C312.721 71.2692 287.4 71.6019 271.974 87.4252C271.123 88.294 270.347 89.1997 269.588 90.124C269.718 88.9409 269.792 87.7394 269.81 86.5194C270.125 64.4482 252.443 46.3142 230.359 46C229.711 46 229.064 46 228.417 46H227.103C210.734 46 196.696 55.8341 190.5 69.9013C184.304 55.8341 170.247 46 153.897 46H152.583C151.936 46 151.289 46 150.641 46C128.557 46.2958 110.875 64.4297 111.171 86.5194C111.171 87.7394 111.264 88.9409 111.393 90.124C110.635 89.1997 109.858 88.294 109.007 87.4252C93.6001 71.6019 68.2608 71.2692 52.4283 86.6673C51.5035 87.573 50.5787 88.4788 49.6909 89.4031C34.2839 105.226 34.6168 130.532 50.4493 145.949C51.3186 146.799 52.2249 147.576 53.1497 148.334C51.9659 148.204 50.7637 148.13 49.543 148.112C27.4589 147.816 9.31443 165.488 9 187.559C9 188.206 9 188.853 9 189.5C9 190.147 9 190.794 9 191.441C9.29593 213.512 27.4404 231.184 49.543 230.888C50.7637 230.888 51.9659 230.796 53.1497 230.666C52.2249 231.424 51.3186 232.201 50.4493 233.051C34.6168 248.449 34.2839 273.774 49.6909 289.597C50.5972 290.521 51.5035 291.445 52.4283 292.333C68.2608 307.731 93.5816 307.398 109.007 291.575C109.858 290.706 110.635 289.8 111.393 288.876C111.264 290.059 111.19 291.261 111.171 292.481C110.875 314.552 128.539 332.704 150.641 333C151.289 333 151.936 333 152.583 333H153.897C170.266 333 184.304 323.166 190.5 309.099C196.696 323.166 210.753 333 227.103 333H228.417C229.064 333 229.711 333 230.359 333C252.443 332.704 270.125 314.57 269.829 292.481C269.829 291.261 269.736 290.059 269.607 288.876C270.365 289.8 271.142 290.706 271.993 291.575C287.4 307.398 312.739 307.731 328.572 292.333C329.496 291.427 330.421 290.521 331.309 289.597C346.716 273.774 346.383 248.468 330.551 233.051C329.681 232.201 328.775 231.424 327.85 230.666C329.034 230.796 330.236 230.87 331.457 230.888C353.541 231.184 371.704 213.531 372 191.441C372 190.794 372 190.147 372 189.5C372 188.853 372 188.206 372 187.559H371.982Z","puffy-diamond":"M279.397 279.754C291.485 267.666 295.573 250.608 291.663 235.157C307.124 239.086 324.202 235.001 336.3 222.902C354.567 204.636 354.567 175.02 336.3 156.754C324.273 144.727 307.325 140.619 291.936 144.43C295.368 129.286 291.188 112.766 279.397 100.975C267.282 88.8601 250.174 84.7804 234.696 88.736C238.798 73.1705 234.747 55.9026 222.544 43.6997C204.278 25.4334 174.662 25.4334 156.396 43.6997C144.266 55.83 140.191 72.9655 144.172 88.4584C129.001 84.9862 112.435 89.1585 100.618 100.975C88.8257 112.767 84.6462 129.289 88.0792 144.434C72.6865 140.616 55.7312 144.723 43.6997 156.754C25.4334 175.02 25.4334 204.636 43.6997 222.902C55.8026 235.005 72.8879 239.089 88.3531 235.153C84.4405 250.605 88.5288 267.665 100.618 279.754C112.385 291.521 128.862 295.708 143.98 292.314C140.328 307.602 144.467 324.371 156.396 336.3C174.662 354.567 204.278 354.567 222.544 336.3C234.544 324.301 238.661 307.403 234.894 292.043C250.32 295.914 267.333 291.817 279.397 279.754Z",semicircle:"M350 256.921C350 275.19 335.19 290 316.921 290L63.0794 290C44.8102 290 30 275.19 30 256.921L30 250C30 161.634 101.634 90 190 90C278.366 90 350 161.634 350 250V256.921Z",slanted:"M45.7147 120.543C48.289 95.9642 49.5761 83.6748 54.3025 73.9777C61.142 59.9453 73.0768 49.1101 87.6278 43.7229C97.6833 40 109.933 40 134.432 40H258.137C287.764 40 302.578 40 313.887 44.8539C330.261 51.8819 342.72 65.8495 347.927 83.0153C351.523 94.8709 349.967 109.733 346.854 139.457L334.285 259.457C331.711 284.036 330.424 296.325 325.697 306.022C318.858 320.055 306.923 330.89 292.372 336.277C282.317 340 270.067 340 245.568 340H121.863C92.2359 340 77.4221 340 66.1134 335.146C49.7395 328.118 37.2802 314.151 32.0729 296.985C28.4765 285.129 30.0331 270.267 33.1463 240.543L45.7147 120.543Z","soft-boom":"M204.57 116.822C226.539 6.39254 153.487 6.39254 175.457 116.822C153.487 6.39254 85.9934 34.3433 148.549 127.966C85.9934 34.3433 34.3433 85.9934 127.966 148.549C34.3433 85.9934 6.39254 153.487 116.822 175.444C6.39254 153.474 6.39254 226.526 116.822 204.556C6.39254 226.526 34.3565 294.007 127.966 231.451C34.3565 294.007 86.0066 345.657 148.549 252.034C85.9934 345.644 153.487 373.594 175.444 263.178C153.474 373.607 226.526 373.607 204.556 263.178C226.526 373.607 294.007 345.644 231.451 252.034C294.007 345.644 345.657 293.993 252.034 231.451C345.644 294.007 373.594 226.513 263.178 204.556C373.607 226.526 373.607 153.474 263.178 175.444C373.607 153.474 345.644 85.9934 252.034 148.549C345.644 85.9934 293.993 34.3433 231.451 127.966C294.007 34.3565 226.513 6.40574 204.556 116.822H204.57Z",square:"M350 202C350 246.717 350 269.076 342.978 286.812C332.813 312.485 312.485 332.813 286.812 342.978C269.076 350 246.717 350 202 350H178C133.283 350 110.924 350 93.1875 342.978C67.5145 332.813 47.187 312.485 37.0223 286.812C30 269.076 30 246.717 30 202L30 178C30 133.283 30 110.924 37.0224 93.1875C47.187 67.5145 67.5146 47.187 93.1876 37.0223C110.924 30 133.283 30 178 30L202 30C246.717 30 269.076 30 286.812 37.0224C312.485 47.187 332.813 67.5146 342.978 93.1876C350 110.924 350 133.283 350 178V202Z",circle:"M350 190C350 278.366 278.366 350 190 350C101.634 350 30 278.366 30 190C30 101.634 101.634 30 190 30C278.366 30 350 101.634 350 190Z",triangle:"M136.461 98.2021C151.597 71.8217 159.165 58.6315 168.342 53.0594C181.648 44.9802 198.352 44.9802 211.658 53.0594C220.835 58.6315 228.403 71.8217 243.539 98.2021L325.309 240.72C340.3 266.847 347.795 279.911 347.993 290.585C348.28 306.06 339.949 320.418 326.364 327.864C316.994 333 301.919 333 271.77 333H108.23C78.0806 333 63.006 333 53.636 327.864C40.0505 320.418 31.7204 306.06 32.0072 290.585C32.2049 279.911 39.7003 266.847 54.6909 240.72L136.461 98.2021Z"};let Sy=new Array;const _y=new Map;for(const e in Cy)Sy.push(Cy[e]),_y.set(e,Sy.length-1);const Ly={};Sy=be(Sy,300);for(const e of _y)Ly[e[0]]=o(Sy[e[1]]);const zy=Ly;const Ey=[...Object.getOwnPropertyNames(zy).map(e=>function(e){return i`:host([name="${o(e)}"]) .wrapper { clip-path: polygon(${zy[e]}); }`}(e))];let My=class extends r{constructor(){super(...arguments),this.name=null}render(){return s`<div class="wrapper"><slot></slot></div>`}};var Ty,Py,Iy,Wy,Ay;My.styles=[ky,Ey],t([m({reflect:!0})],My.prototype,"name",void 0),My=t([$("m3e-shape")],My);let Hy=class extends(M(r)){constructor(){super(...arguments),Ty.add(this),Py.set(this,void 0),Iy.set(this,new A(this,{target:null,callback:()=>this._updatePaging()})),this._canPage=!1,this._canPageStart=!1,this._canPageEnd=!1,this.disabled=!1,this.vertical=!1,this.threshold=0,this.previousPageLabel="Previous page",this.nextPageLabel="Next page"}connectedCallback(){super.connectedCallback(),a(this,Py,De.observe(()=>this.requestUpdate()),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Py,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,Iy,"f").observe(this.scrollContainer)}firstUpdated(t){super.firstUpdated(t),e(this,Iy,"f").observe(this.scrollContainer)}render(){const t=s`<m3e-icon-button class="prev-button" tabindex="-1" aria-label="${this.previousPageLabel}" ?disabled="${!this._canPageStart}" @click="${e(this,Ty,"m",Wy)}"><slot name="prev-icon">${"ltr"===De.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`}</slot></m3e-icon-button>`,a=s`<m3e-icon-button class="next-button" tabindex="-1" aria-label="${this.nextPageLabel}" ?disabled="${!this._canPageEnd}" @click="${e(this,Ty,"m",Ay)}"><slot name="next-icon">${"ltr"===De.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`}</slot></m3e-icon-button>`;return s`${this._canPage?t:n}<div class="content" @scroll="${this._updatePaging}"><slot></slot></div>${this._canPage?a:n}`}_updatePaging(){this.disabled?this._canPage=!1:this.vertical?(this._canPage=Math.round(this.scrollContainer.scrollHeight)>Math.round(this.scrollContainer.clientHeight)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollTop)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollTop)+ +this.threshold<Math.round(this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight))):(this._canPage=Math.round(this.scrollContainer.scrollWidth)>Math.round(this.scrollContainer.clientWidth)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollLeft)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollLeft)+this.threshold<Math.round(this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth))),this._canPage||(this._canPageStart=this._canPageEnd=!1)}};var Oy,Dy;Py=new WeakMap,Iy=new WeakMap,Ty=new WeakSet,Wy=function(){if(this.vertical){let e=this.scrollContainer.scrollTop-this.scrollContainer.clientHeight;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft-this.scrollContainer.clientWidth;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},Ay=function(){if(this.vertical){let e=this.scrollContainer.scrollTop+this.scrollContainer.clientHeight;e>=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight-this.threshold&&(e=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft+this.scrollContainer.clientWidth;e>=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth-this.threshold&&(e=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},Hy.styles=i`:host { display: flex; flex-wrap: nowrap; overflow: hidden; } :host([vertical]) { flex-direction: column; } .prev-button, .next-button { flex: none; --m3e-icon-button-small-shape-round: 0px; --m3e-icon-button-small-shape-square: 0px; --m3e-icon-button-small-shape-pressed-morph: 0px; --m3e-focus-ring-visibility: hidden; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-slide-group-button-icon-size, var(--m3e-icon-button-small-icon-size, 1.5rem)) !important; } :host(:not([vertical])) .prev-button, :host(:not([vertical])) .next-button { --m3e-icon-button-small-container-height: 100%; width: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button, :host([vertical]) .next-button { width: unset; --m3e-icon-button-small-container-height: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button .icon, :host([vertical]) .next-button .icon { transform: rotate(90deg); } .content { flex: 1 1 auto; display: inherit; flex-wrap: inherit; flex-direction: inherit; overflow: inherit; position: relative; border-top: var(--m3e-slide-group-divider-top); border-bottom: var(--m3e-slide-group-divider-bottom); }`,t([h(".content")],Hy.prototype,"scrollContainer",void 0),t([u()],Hy.prototype,"_canPage",void 0),t([u()],Hy.prototype,"_canPageStart",void 0),t([u()],Hy.prototype,"_canPageEnd",void 0),t([m({type:Boolean,reflect:!0})],Hy.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],Hy.prototype,"vertical",void 0),t([m({type:Number})],Hy.prototype,"threshold",void 0),t([m({attribute:"previous-page-label"})],Hy.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],Hy.prototype,"nextPageLabel",void 0),t([y(40)],Hy.prototype,"_updatePaging",null),Hy=t([$("m3e-slide-group")],Hy);let By=class extends(J(Q(oe(R(U(P(f(r,"slider")))))))){constructor(){super(...arguments),Oy.add(this),this.value=null}get[(Oy=new WeakSet,re)](){return this.value?.toString()??null}focus(e){this._focusRing&&(this._focusRing.disabled=!0),super.focus(e),this._focusRing&&(this._focusRing.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e),this._focusRing?.attach(this)}update(e){super.update(e),e.has("value")&&this.dispatchEvent(new Event("value-change",{bubbles:!0}))}render(){return s`<div class="label" aria-hidden="true">${e(this,Oy,"a",Dy)}</div><div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="handle"></div></div></div>`}};var qy,Fy,Vy,Ry,Ny,Uy,jy,Ky,Zy,Gy,Xy,Yy,Jy,Qy,e$,t$,a$,o$,i$,r$,s$;Dy=function(){return this.closest("m3e-slider")?.displayWith?.(this.value)??this.value?.toString()??""},By.styles=i`:host { display: block; box-sizing: border-box; position: absolute; outline: none; top: 0; bottom: 0; border-radius: var(--m3e-slider-thumb-shape, ${v.shape.corner.full}); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; border-radius: inherit; } .touch { position: absolute; height: 3rem; left: 0; right: 0; touch-action: none; } .wrapper { display: inline-flex; justify-content: center; height: 100%; border-radius: inherit; width: calc(var(--m3e-slider-thumb-width, 0.25rem) + calc(var(--m3e-slider-thumb-padding, 0.375em) * 2)); } .focus-ring { top: calc(0px - var(--m3e-focus-ring-thickness, 3px)); bottom: calc(0px - var(--m3e-focus-ring-thickness, 3px)); left: var(--m3e-focus-ring-thickness, 3px); right: var(--m3e-focus-ring-thickness, 3px); } .label { user-select: none; position: absolute; display: flex; align-items: center; justify-content: center; visibility: var(--_slider-label-visibility, hidden); opacity: var(--_slider-label-opacity, 0); transform: var(--_slider-label-transform, scale(0)); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; width: var(--m3e-slider-label-width, 3rem); height: var(--_m3e-slider-label-height, 2.75rem); top: calc(0px - var(--_m3e-slider-label-height, 2.75rem) - var(--_m3e-slider-label-margin, 0.25rem)); inset-inline-start: calc(0px - 100%); border-radius: var(--m3e-slider-label-shape, ${v.shape.corner.full}); background-color: var(--m3e-slider-label-container-color, ${v.color.inverseSurface}); color: var(--m3e-slider-label-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-slider-label-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var(--m3e-slider-label-font-weight, ${v.typescale.standard.label.medium.fontWeight}); line-height: var(--m3e-slider-label-line-height, ${v.typescale.standard.label.medium.lineHeight}); letter-spacing: var(--m3e-slider-label-tracking, ${v.typescale.standard.label.medium.tracking}); } @starting-style { .label { opacity: 0; transform: scale(0); } } .handle { height: 100%; width: var(--m3e-slider-thumb-width, 0.25rem); border-radius: inherit; transition: ${o(`width ${v.motion.duration.short2} ${v.motion.easing.standard}`)}; } :host(:active:not([aria-disabled="true"])) .handle { width: var(--m3e-slider-thumb-pressed-width, 2px); } :host(:not([aria-disabled="true"])) .handle { background-color: var(--m3e-slider-thumb-color, ${v.color.primary}); } :host([aria-disabled="true"]) .handle { opacity: var(--m3e-slider-thumb-disabled-opacity, 38%); background-color: var(--m3e-slider-thumb-disabled-color, ${v.color.onSurface}); } @media (prefers-reduced-motion) { .label { transition: none; } } @media (forced-colors: active) { .label { forced-color-adjust: none; background-color: CanvasText; color: Canvas; } :host(:not([aria-disabled="true"])) .handle { background-color: CanvasText; } :host([aria-disabled="true"]) .handle { opacity: unset; background-color: GrayText; } }`,t([h(".focus-ring")],By.prototype,"_focusRing",void 0),t([m({type:Number,reflect:!0})],By.prototype,"value",void 0),By=t([$("m3e-slider-thumb")],By);let n$=class extends(P(r)){constructor(){super(),qy.add(this),Fy.set(this,void 0),this._ticks=new Array,Vy.set(this,new Array),Ry.set(this,void 0),Ny.set(this,0),Uy.set(this,0),jy.set(this,0),this.size="extra-small",this.disabled=!1,this.discrete=!1,this.min=0,this.max=100,this.step=1,this.labelled=!1,this.displayWith=null,new A(this,{callback:()=>e(this,qy,"m",Qy).call(this,!0)})}get thumbs(){return e(this,Vy,"f")}get isRange(){return e(this,Vy,"f").length>1}get thumb(){return e(this,Vy,"f")[0]??null}get lowerThumb(){return this.thumb}get upperThumb(){return e(this,Vy,"f")[1]??null}connectedCallback(){super.connectedCallback(),a(this,Fy,De.observe(()=>{e(this,qy,"m",Qy).call(this,!0),this.requestUpdate()}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Fy,"f")?.call(this)}updated(t){super.updated(t),t.has("disabled")&&e(this,Vy,"f").forEach(e=>e.disabled=this.disabled)}render(){return s`<div class="base" tabindex="${Fe(this.disabled?void 0:"-1")}" @pointerdown="${e(this,qy,"m",t$)}" @pointermove="${e(this,qy,"m",a$)}" @pointerup="${e(this,qy,"m",o$)}" @keydown="${e(this,qy,"m",i$)}" @value-change="${e(this,qy,"m",r$)}"><div class="track" aria-hidden="true"><div class="track-inactive start"></div><div class="track-active"></div><div class="track-inactive end"></div></div><div class="ticks" aria-hidden="true">${this._ticks.map(t=>e(this,qy,"m",Ky).call(this,t))}</div><slot @slotchange="${e(this,qy,"m",Zy)}"></slot></div>`}};var l$,c$,d$,h$,m$,p$,u$,v$,b$;Fy=new WeakMap,Vy=new WeakMap,Ry=new WeakMap,Ny=new WeakMap,Uy=new WeakMap,jy=new WeakMap,qy=new WeakSet,Ky=function(t){return s`<div class="tick ${t.active?"active":"inactive"}" style="${$e({transform:`translate(${"rtl"===De.current?-e(this,qy,"m",Xy).call(this,t.value):e(this,qy,"m",Xy).call(this,t.value)}px, 0)`})}"></div>`},Zy=function(t){a(this,Vy,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof By),"f"),e(this,Vy,"f").length>2&&(e(this,Vy,"f").length=2),this.isRange?this._base?.style.setProperty("--_slider-active-track-middle-shape","0"):this._base?.style.removeProperty("--_slider-active-track-middle-shape"),e(this,qy,"m",Gy).call(this)},Gy=function(){e(this,Vy,"f").forEach((t,a)=>{this.disabled&&(t.disabled=!0),t.ariaValueMin=`${e(this,Vy,"f")[a-1]?.value??this.min}`,t.ariaValueMax=`${e(this,Vy,"f")[a+1]?.value??this.max}`,t.ariaValueNow=`${t.value??e(this,Vy,"f")[a-1]?.value??this.min}`})},Xy=function(t){return(e(this,Ny,"f")-e(this,Uy,"f"))*((t-this.min)/(this.max-this.min))},Yy=function(t){const a="rtl"===De.current?e(this,jy,"f")+e(this,Ny,"f")-t.clientX:t.clientX-e(this,jy,"f"),o=0===this.step?1:this.step,i=Math.floor((this.max-this.min)/o),r=a/e(this,Ny,"f"),s=Math.round(r*i)/i*(this.max-this.min)+this.min;return Math.round(s/o)*o},Jy=function(t=!1){this.lowerThumb&&(a(this,Ny,!t&&e(this,Ny,"f")>0?e(this,Ny,"f"):this.clientWidth,"f"),a(this,Uy,!t&&e(this,Uy,"f")>0?e(this,Uy,"f"):this.lowerThumb.clientWidth,"f"),a(this,jy,!t&&e(this,jy,"f")>0?e(this,jy,"f"):this.getBoundingClientRect().left,"f"))},Qy=function(t=!1){if(e(this,qy,"m",Jy).call(this,t),!this.lowerThumb)return;const a=this.lowerThumb.value??this.min,o=e(this,qy,"m",Xy).call(this,a);if(this.lowerThumb.style.transform=`translate(${"rtl"===De.current?-o:o}px, 0)`,this.upperThumb){const t=this.upperThumb.value??a,i=e(this,qy,"m",Xy).call(this,t);this.upperThumb.style.transform=`translate(${"rtl"===De.current?-i:i}px, 0)`,this._base?.classList.toggle("range",!0),this._base?.style.setProperty("--_slider-inactive-track-before-size",`${o}px`),this._base?.style.setProperty("--_slider-active-track-offset",`${o+e(this,Uy,"f")}px`),this._base?.style.setProperty("--_slider-active-track-size",i-o-e(this,Uy,"f")+"px"),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${i+e(this,Uy,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,Ny,"f")-e(this,Uy,"f")-i+"px"),e(this,qy,"m",e$).call(this,e=>e>a&&e<t)}else this._base?.classList.toggle("range",!1),this._base?.style.setProperty("--_slider-active-track-size",`${o}px`),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${o+e(this,Uy,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,Ny,"f")-o-e(this,Uy,"f")+"px"),e(this,qy,"m",e$).call(this,e=>e<a)},e$=function(e){if(this._ticks=[],this.discrete&&this.step>1)for(let t=this.min;t<=this.max;t+=this.step)this._ticks.push({value:t,active:e(t)});else this._ticks.push({value:this.min,active:e(this.min)}),this.min<0&&this.max>0&&this._ticks.push({value:0,active:e(0)}),this._ticks.push({value:this.max,active:e(this.max)})},t$=function(t){if("mouse"===t.pointerType&&t.button>1)return;if(!this.lowerThumb||this.disabled)return;if(t.target instanceof HTMLElement&&t.target.setPointerCapture(t.pointerId),a(this,Ry,t.composedPath().find(e=>e instanceof By),"f"),e(this,Ry,"f"))return;const o=e(this,qy,"m",Yy).call(this,t);if(this.upperThumb){const t=this.lowerThumb.value??this.min,i=this.upperThumb.value??t;if(o<t)this.lowerThumb.disabled||(e(this,qy,"m",s$).call(this,this.lowerThumb,o,!0),a(this,Ry,this.lowerThumb,"f"));else if(o>i)this.upperThumb.disabled||(e(this,qy,"m",s$).call(this,this.upperThumb,o,!0),a(this,Ry,this.upperThumb,"f"));else{o<(t+i)/2&&!this.lowerThumb.disabled?(e(this,qy,"m",s$).call(this,this.lowerThumb,o,!0),a(this,Ry,this.lowerThumb,"f")):this.upperThumb.disabled||(e(this,qy,"m",s$).call(this,this.upperThumb,o,!0),a(this,Ry,this.upperThumb,"f"))}}else this.lowerThumb.disabled||(e(this,qy,"m",s$).call(this,this.lowerThumb,o,!0),a(this,Ry,this.lowerThumb,"f"))},a$=function(t){if(!(t.target instanceof HTMLElement)||!t.target.hasPointerCapture(t.pointerId)||!e(this,Ry,"f")||e(this,Ry,"f").disabled)return;const a=e(this,qy,"m",Yy).call(this,t);let o=this.min,i=this.max;e(this,Ry,"f")===this.upperThumb?o=Math.max(o,this.lowerThumb?.value??0):this.upperThumb&&(i=Math.min(i,this.upperThumb.value??this.max)),O(this,"-animating")&&(k(this,"-animating"),e(this,Ry,"f").style.transition=""),e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.min(i,Math.max(o,a)))},o$=function(t){"mouse"===t.pointerType&&t.button>1||this.lowerThumb&&!this.disabled&&(t.target instanceof HTMLElement&&t.target.releasePointerCapture(t.pointerId),e(this,Ry,"f")&&!e(this,Ry,"f").disabled&&e(this,Ry,"f").focus())},i$=function(t){if(a(this,Ry,t.composedPath().find(e=>e instanceof By),"f"),!e(this,Ry,"f"))return;const o=e(this,Ry,"f").value??0;let i=this.min,r=this.max;switch(e(this,Ry,"f")===this.upperThumb?i=Math.max(i,this.lowerThumb?.value??0):this.upperThumb&&(r=Math.max(r,this.upperThumb.value??this.max)),t.key){case"Home":e(this,qy,"m",s$).call(this,e(this,Ry,"f"),i),t.preventDefault();break;case"End":e(this,qy,"m",s$).call(this,e(this,Ry,"f"),r),t.preventDefault();break;case"PageUp":"ltr"===De.current?e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.min(r,o+(this.step>1?this.step:10))):e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.max(i,o-(this.step>1?this.step:10))),t.preventDefault();break;case"PageDown":"ltr"===De.current?e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.max(i,o-(this.step>1?this.step:10))):e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.min(r,o+(this.step>1?this.step:10))),t.preventDefault();break;case"Down":case"ArrowDown":case"Left":case"ArrowLeft":"ltr"===De.current?e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.max(i,o-this.step)):e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.min(r,o+this.step)),t.preventDefault();break;case"Up":case"ArrowUp":case"Right":case"ArrowRight":"ltr"===De.current?e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.min(r,o+this.step)):e(this,qy,"m",s$).call(this,e(this,Ry,"f"),Math.max(i,o-this.step)),t.preventDefault();break;case" ":t.preventDefault()}},r$=function(t){t.stopPropagation(),e(this,qy,"m",Gy).call(this),e(this,qy,"m",Qy).call(this)},s$=function(e,t,a=!1){if(e.value===t)return;const o=e.value;a&&!C()&&(L(this,"-animating"),e.addEventListener("transitionend",()=>{e.style.transition="",k(this,"-animating")},{once:!0}),e.style.transition=`transform ${v.motion.spring.fastEffects}`),e.value=t,e.markAsDirty(),e.markAsTouched(),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})):e.value=o},n$.styles=i`:host { display: inline-block; vertical-align: middle; min-inline-size: var(--m3e-slider-min-width, 12.5rem); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([disabled])) { cursor: pointer; } :host([size="extra-small"]), :host([size="small"]) { height: var(--m3e-slider-small-height, 2.75rem); } :host(:not(:dir(rtl))[size="extra-small"]) .base, :host(:not(:dir(rtl))[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallEnd} ); } :host(:dir(rtl)[size="extra-small"]) .base, :host(:dir(rtl)[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallStart} ); } :host([size="extra-small"]) .track { height: calc(var(--m3e-slider-extra-small-track-height, 1rem)); } :host([size="small"]) .track { height: calc(var(--m3e-slider-small-track-height, 1.5rem)); } :host([size="medium"]) { height: var(--m3e-slider-medium-height, 3.25rem); } :host(:not(:dir(rtl))[size="medium"]) .base { --_slider-active-track-shape: var( --m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumEnd} ); } :host(:dir(rtl)[size="medium"]) .base { --_slider-active-track-shape: var(--m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumStart} ); } :host([size="medium"]) .track { height: var(--m3e-slider-medium-track-height, 2.5rem); } :host([size="large"]) { height: var(--m3e-slider-large-height, 4.25rem); } :host(:not(:dir(rtl))[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeEnd} ); } :host(:dir(rtl)[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeStart} ); } :host([size="large"]) .track { height: var(--m3e-slider-large-track-height, 3.5rem); } :host([size="extra-large"]) { height: var(--m3e-slider-extra-large-height, 6.75rem); } :host(:not(:dir(rtl))[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeEnd} ); } :host(:dir(rtl)[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeStart} ); } :host([size="extra-large"]) .track { height: var(--m3e-slider-extra-large-track-height, 6rem); } :host(:state(-animating)) .track-active, :host(:state(-animating)) .track-inactive.start, :host(:state(-animating)) .track-inactive.end { transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects},\n width ${v.motion.spring.fastEffects}`)}; } .base { display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: inherit; outline: none; touch-action: none; } .track { position: relative; flex: 1 1 auto; touch-action: none; } .track-inactive, .track-active { position: absolute; height: 100%; touch-action: none; } .track-active { margin-inline-start: var(--_slider-active-track-offset, 0px); width: var(--_slider-active-track-size, 0px); border-radius: var(--_slider-active-track-middle-shape, var(--_slider-active-track-shape)); } .track-inactive.start { width: var(--_slider-inactive-track-before-size, 0px); border-radius: var(--_slider-inactive-track-start-shape); } .track-inactive.end { margin-inline-start: var(--_slider-inactive-track-after-offset, 0px); width: var(--_slider-inactive-track-after-size, 0px); border-radius: var(--_slider-inactive-track-end-shape); } .ticks { position: absolute; width: 100%; height: var(--m3e-slider-tick-size, 0.25rem); overflow: visible; touch-action: none; } .tick { position: absolute; top: 0; touch-action: none; inset-inline-start: calc(var(--m3e-slider-tick-size, 0.25rem) + calc(var(--m3e-slider-tick-size, 0.25rem) / 2)); width: var(--m3e-slider-tick-size, 0.25rem); height: var(--m3e-slider-tick-size, 0.25rem); border-radius: var(--m3e-slider-tick-shape, ${v.shape.corner.full}); } :host(:not([disabled])) .track-inactive { background-color: var(--m3e-slider-inactive-track-color, ${v.color.secondaryContainer}); } :host([disabled]) .track-inactive { background-color: color-mix( in srgb, var(--m3e-slider-disabled-inactive-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-inactive-track-opacity, 12%), transparent ); } :host(:not([disabled])) .track-active { background-color: var(--m3e-slider-active-track-color, ${v.color.primary}); } :host([disabled]) .track-active { background-color: color-mix( in srgb, var(--m3e-slider-disabled-active-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-active-track-opacity, 38%), transparent ); } :host(:not([disabled])) .tick.active { background-color: var(--m3e-slider-tick-active-color, ${v.color.onPrimary}); } :host([disabled]) .tick.active { background-color: var(--m3e-slider-disabled-tick-active-color, ${v.color.inverseOnSurface}); } :host(:not([disabled])) .tick.inactive { background-color: var(--m3e-slider-tick-inactive-color, ${v.color.onSecondaryContainer}); } :host([disabled]) .tick.inactive { background-color: var(--m3e-slider-disabled-tick-inactive-color, ${v.color.onSurface}); } :host(:not([discrete])) .tick.active { display: none; } :host(:hover[labelled]) .base, :host(:focus-within[labelled]) .base { --_slider-label-visibility: visible; --_slider-label-opacity: 1; --_slider-label-transform: scale(1); } @media (forced-colors: active) { :host(:not([disabled])) .track-inactive { background-color: unset; } :host(:not([disabled])) .base.range .track-inactive.start, :host(:not([disabled])) .track-inactive.end { border: 1px solid CanvasText; box-sizing: border-box; } :host(:not([disabled])) .tick.inactive { background-color: CanvasText; } :host(:not([disabled])) .tick.active { background-color: Canvas; } :host(:not([disabled])) .track-active { background-color: CanvasText; } :host([disabled]) .base.range .track-inactive.start, :host([disabled]) .track-inactive.end { border: 1px solid GrayText; box-sizing: border-box; } :host([disabled]) .track-active { background-color: GrayText; } :host([disabled]) .tick.inactive { background-color: GrayText; } :host([disabled]) .tick.active { background-color: Canvas; } }`,t([h(".base")],n$.prototype,"_base",void 0),t([u()],n$.prototype,"_ticks",void 0),t([m({reflect:!0})],n$.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],n$.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],n$.prototype,"discrete",void 0),t([m({type:Number})],n$.prototype,"min",void 0),t([m({type:Number})],n$.prototype,"max",void 0),t([m({type:Number})],n$.prototype,"step",void 0),t([m({type:Boolean})],n$.prototype,"labelled",void 0),t([m({attribute:!1})],n$.prototype,"displayWith",void 0),n$=t([$("m3e-slider")],n$);let f$=b$=class extends(f(r,"status")){constructor(){super(...arguments),l$.add(this),c$.set(this,-1),d$.set(this,!1),h$.set(this,t=>e(this,l$,"m",v$).call(this,t)),this.duration=3e3,this.action="",this.dismissible=!1,this.closeLabel="Close"}static get current(){return b$.__current}get isActionTaken(){return e(this,d$,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("beforetoggle",e(this,h$,"f")),this.setAttribute("popover","manual"),this.ariaLive="polite"}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",e(this,h$,"f"))}render(){return s`<div class="base"><span class="supporting-text"><slot></slot></span>${e(this,l$,"m",m$).call(this)} ${e(this,l$,"m",p$).call(this)}</div>`}updated(e){super.updated(e),this.style.setProperty("--_snackbar-height",this.getBoundingClientRect().height/.8+"px")}};c$=new WeakMap,d$=new WeakMap,h$=new WeakMap,l$=new WeakSet,m$=function(){return this.action?s`<m3e-button @click="${e(this,l$,"m",u$)}">${this.action}</m3e-button>`:n},p$=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" @click="${this.hidePopover}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},u$=function(){a(this,d$,!0,"f"),this.hidePopover()},v$=function(t){"open"==t.newState?(b$.__current?.hidePopover(),b$.__current=this,this.duration>0&&a(this,c$,setTimeout(()=>this.hidePopover(),this.duration),"f")):(b$.__current===this&&(b$.__current=null),clearTimeout(e(this,c$,"f")))},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-snackbar { margin-inline: auto; }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),f$.styles=i`:host { position: fixed; top: calc(100vh - var(--_snackbar-height, 0px) - var(--m3e-snackbar-margin, 1rem)); display: inline-flex; align-items: center; min-width: var(--m3e-snackbar-min-width, 21.5rem); max-width: var(--m3e-snackbar-max-width, 42rem); visibility: hidden; border: none; margin: 0; padding: 0; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host::backdrop { background-color: transparent; } :host(:popover-open) { visibility: visible; opacity: 1; transform: scale(1); } @starting-style { :host(:popover-open) { opacity: 0; transform: scale(0.8); } } .base { display: inline-flex; align-items: center; flex: 1 1 auto; box-sizing: border-box; padding: var(--m3e-snackbar-padding, 0 1rem 0 1rem); border-radius: var(--m3e-snackbar-container-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-snackbar-container-color, ${v.color.inverseSurface}); font-size: var(--m3e-snackbar-supporting-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-snackbar-supporting-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-snackbar-supporting-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-snackbar-supporting-text-tracking, ${v.typescale.standard.label.large.tracking} ); color: var(--m3e-snackbar-supporting-text-color, ${v.color.inverseOnSurface}); --m3e-text-button-label-text-color: var(--m3e-snackbar-action-text-color, ${v.color.inversePrimary}); --m3e-text-button-hover-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-hover-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-standard-icon-button-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); } :host([dismissible]) .base { padding-inline-end: 0.5rem; } .supporting-text { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; margin-block: var(--m3e-snackbar-supporting-text-margin-block, 0.875rem); } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host { background-color: Canvas; color: CanvasText; border-radius: ${v.shape.corner.small}; box-sizing: border-box; outline: 1px solid CanvasText; } }`,f$.__current=null,t([m({type:Number})],f$.prototype,"duration",void 0),t([m()],f$.prototype,"action",void 0),t([m({type:Boolean,reflect:!0})],f$.prototype,"dismissible",void 0),t([m({attribute:"close-label"})],f$.prototype,"closeLabel",void 0),f$=b$=t([$("m3e-snackbar")],f$);class g${static open(e,t,a,o){if(l)return;const i=document.createElement("m3e-snackbar");let r;i.append(document.createTextNode(e)),"string"==typeof t?i.action=t:"boolean"==typeof t?i.dismissible=t:r=t,"boolean"==typeof a?i.dismissible=a:r=a,o&&(r=o),void 0!==r?.duration&&(i.duration=r.duration),r?.closeLabel&&(i.closeLabel=r.closeLabel),i.addEventListener("toggle",e=>{"closed"===e.newState&&(C()?i.remove():i.addEventListener("transitionend",()=>i.remove(),{once:!0}),i.isActionTaken&&r?.actionCallback?.())}),(document.querySelector("m3e-theme")??document.body).append(i),i.showPopover()}static dismiss(){f$.current?.hidePopover()}}var y$,$$,x$,w$,k$,C$,S$,_$,L$,z$,E$,M$;globalThis.M3eSnackbar=g$;let T$=class extends(f(r,"group")){constructor(){super(...arguments),y$.add(this),$$.set(this,void 0),x$.set(this,void 0),w$.set(this,!1),k$.set(this,new K(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,a,o)=>{switch(o){case e(this,$$,"f"):e(this,y$,"m",z$).call(this,t);break;case e(this,x$,"f"):e(this,y$,"m",E$).call(this,t||e(this,w$,"f"))}}})),C$.set(this,new ie(this,{target:null,callback:(t,o)=>{if(o===e(this,x$,"f"))e(this,x$,"f")?.disabled||e(this,x$,"f")?.disabledInteractive||(a(this,w$,t,"f"),e(this,y$,"m",E$).call(this,t))}})),this.variant="filled",this.size="small"}update(t){super.update(t),t.has("variant")&&e(this,y$,"m",L$).call(this)}render(){return s`<m3e-button-group class="base" disable-role variant="connected" size="${this.size}"><slot name="leading-button" @slotchange="${e(this,y$,"m",S$)}"></slot><slot name="trailing-button" @slotchange="${e(this,y$,"m",_$)}"></slot></m3e-button-group>`}};$$=new WeakMap,x$=new WeakMap,w$=new WeakMap,k$=new WeakMap,C$=new WeakMap,y$=new WeakSet,S$=function(t){e(this,$$,"f")&&e(this,k$,"f").unobserve(e(this,$$,"f")),a(this,$$,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Xe),"f"),e(this,$$,"f")&&e(this,k$,"f").observe(e(this,$$,"f")),e(this,y$,"m",L$).call(this)},_$=function(t){e(this,x$,"f")&&(e(this,k$,"f").unobserve(e(this,x$,"f")),e(this,C$,"f").unobserve(e(this,x$,"f"))),a(this,x$,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Ue),"f"),e(this,x$,"f")&&(e(this,k$,"f").observe(e(this,x$,"f")),e(this,C$,"f").observe(e(this,x$,"f"))),e(this,y$,"m",L$).call(this)},L$=function(){e(this,$$,"f")&&(e(this,$$,"f").variant=this.variant,e(this,$$,"f").size=this.size,e(this,$$,"f").shape="rounded"),e(this,x$,"f")&&(e(this,x$,"f").width="default",e(this,x$,"f").shape="rounded",e(this,x$,"f").setAttribute("variant",this.variant),e(this,x$,"f").size=this.size)},z$=function(t){t&&e(this,$$,"f")?e(this,y$,"m",M$).call(this,e(this,$$,"f"),"--_leading-button-shape"):this._base?.style.removeProperty("--_leading-button-shape")},E$=function(t){t&&e(this,x$,"f")?e(this,y$,"m",M$).call(this,e(this,x$,"f"),"--_trailing-button-shape"):this._base?.style.removeProperty("--_trailing-button-shape")},M$=function(e,t){const a=e.clientHeight/2;a&&this._base?.style.setProperty(t,`${a}px`)},T$.styles=i`:host { display: inline-flex; vertical-align: middle; } ::slotted([slot="leading-button"]) { flex: 1 1 auto; min-width: 0; --_button-start-shape-pressed-morph: var(--_leading-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"])) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-unselected-leading-space, 0.8125rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-unselected-trailing-space, 1.0625rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-unselected-leading-space, 1.625rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-unselected-trailing-space, 2rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-unselected-leading-space, 2.3125rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-unselected-trailing-space, 3.0625rem ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-selected-leading-space, 0.9375rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-selected-trailing-space, 0.9375rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-selected-leading-space, 1.8125rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-selected-trailing-space, 1.8125rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-selected-leading-space, 2.6875rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-selected-trailing-space, 2.6875rem ); } ::slotted([slot="leading-button"]:not(:hover)), ::slotted([slot="leading-button"]:disabled), ::slotted([slot="leading-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="leading-button"]:hover:not(:disabled):not([disabled-interactive])), ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):hover:not(:disabled):not([disabled-interactive])) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-hover-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="leading-button"]), ::slotted([slot="trailing-button"]) { --m3e-connected-button-group-extra-small-inner-pressed-shape: var( --m3e-split-button-extra-small-inner-corner-pressed-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-pressed-shape: var( --m3e-split-button-small-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-pressed-shape: var( --m3e-split-button-medium-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-pressed-shape: var( --m3e-split-button-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-pressed-shape: var( --m3e-split-button-extra-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):not(:hover)), ::slotted([slot="trailing-button"]:disabled), ::slotted([slot="trailing-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --_icon-button-icon-transform: rotate(180deg); --_button-rounded-start-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); --_button-rounded-end-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]) { --_button-end-shape-pressed-morph: var(--_trailing-button-shape, ${v.shape.corner.full}); } .base { --m3e-icon-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-icon-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-icon-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-icon-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-icon-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); --m3e-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); } :host([size="extra-small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-small-between-spacing, 0.125rem); } :host([size="small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-small-between-spacing, 0.125rem); } :host([size="medium"]).base { --m3e-connected-button-group-spacing: var(--m3e-split-button-medium-between-spacing, 0.125rem); } :host([size="large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-large-between-spacing, 0.125rem); } :host([size="extra-large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-large-between-spacing, 0.125rem); }`,t([h(".base")],T$.prototype,"_base",void 0),t([m({reflect:!0})],T$.prototype,"variant",void 0),t([m({reflect:!0})],T$.prototype,"size",void 0),T$=t([$("m3e-split-button")],T$);let P$=class extends(f(r,"tabpanel")){constructor(){super(...arguments),this.active=!1}connectedCallback(){this.slot="panel",super.connectedCallback()}render(){return s`<m3e-collapsible ?open="${this.active}"><div class="content"><div><slot></slot></div><slot name="actions"></slot></div></m3e-collapsible>`}};var I$,W$,A$,H$,O$;P$.styles=i`:host { display: block; } .content { display: flex; flex-direction: column; padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem); row-gap: var(--m3e-step-panel-spacing, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: var(--m3e-step-panel-actions-height, 3rem); } ::slotted([slot="actions"][end]) { justify-content: flex-end; }`,t([u()],P$.prototype,"active",void 0),P$=t([$("m3e-step-panel")],P$);let D$=O$=class extends(he(q(R(b(U(P(f(r,"tab")))))))){constructor(){super(...arguments),I$.add(this),W$.set(this,t=>e(this,I$,"m",H$).call(this,t)),this.optional=!1,this.editable=!1,this.completed=!1,this.invalid=!1,this.index=-1}get panel(){return this.control instanceof P$?this.control:null}get stepper(){return this.closest("m3e-stepper")}reset(){this.invalid=!1,this.completed=!1,this.panel?.querySelector("form")?.reset()}attach(e){e instanceof P$&&(e.id=e.id||"m3e-step-panel-"+O$.__nextId++,Ee(this,"aria-controls",e.id),e.style.order=this.style.order),super.attach(e)}detach(){this.control&&(this.control.style.order="",this.control.id&&Me(this,"aria-controls",this.control.id)),super.detach()}connectedCallback(){this.slot="step",super.connectedCallback(),this.addEventListener("click",e(this,W$,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,W$,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-stepper")?.[Te].notifySelectionChange(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const t=s`<slot name="hint">${this.optional?s`<span class="hint">(Optional)</span>`:n}</slot>`,a=s`<slot name="error">${t}</slot>`;return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="wrapper"><div class="icon" aria-hidden="true">${e(this,I$,"m",A$).call(this)}</div><div class="label"><slot></slot>${this.invalid?a:t}</div></div></div>`}};var B$,q$,F$,V$,R$,N$,U$,j$,K$,Z$,G$;W$=new WeakMap,I$=new WeakSet,A$=function(){if(!this.selected){if(this.invalid)return s`<slot name="error-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg></slot>`;if(this.completed)return this.editable?s`<slot name="edit-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg></slot>`:s`<slot name="done-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></slot>`}return s`<slot name="icon">${this.index+1}</slot>`},H$=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))&&this.closest("m3e-stepper")?.moveTo(this.index)?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!1)},D$.styles=i`:host { display: block; outline: none; min-width: 0px; position: relative; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { min-width: inherit; position: relative; border-radius: var(--m3e-step-shape, ${v.shape.corner.medium}); padding: var(--m3e-step-padding, 1.5rem); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .icon { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--m3e-step-icon-shape, 50%); width: var(--m3e-step-icon-size, 1.5rem); height: var(--m3e-step-icon-size, 1.5rem); } .icon svg, ::slotted([slot="icon"]), ::slotted([slot="edit-icon"]), ::slotted([slot="done-icon"]), ::slotted([slot="error-icon"]) { width: 1em; font-size: var(--m3e-step-icon-size, 1.5rem) !important; } :host(:not([aria-disabled="true"])[selected]) .icon { background-color: var(--m3e-step-selected-icon-container-color, ${v.color.primary}); color: var(--m3e-step-selected-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon { background-color: var(--m3e-step-completed-icon-container-color, ${v.color.primary}); color: var(--m3e-step-completed-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon { background-color: var(--m3e-step-unselected-icon-container-color, ${v.color.inverseSurface}); color: var(--m3e-step-unselected-icon-color, ${v.color.inverseOnSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon { color: var(--m3e-step-icon-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .icon { background-color: color-mix( in srgb, var(--m3e-step-disabled-icon-container-color, ${v.color.onSurface}) 10%, transparent ); color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:not([aria-disabled="true"])) .label { color: var(--m3e-step-label-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label { color: var(--m3e-step-label-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .label { color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${v.color.onSurface}) 38%, transparent); } .wrapper { display: flex; align-items: center; height: 100%; border-radius: inherit; font-size: var(--m3e-step-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-step-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-step-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-step-tracking, ${v.typescale.standard.title.small.tracking}); flex-direction: var(--_step-direction, row); gap: var(--m3e-step-icon-label-space, 0.5rem); justify-content: flex-start; } .label { display: flex; flex-direction: column; align-items: var(--_step-label-align-items, flex-start); } ::slotted([slot="hint"]), .hint, ::slotted([slot="error"]) { font-size: var(--m3e-step-hint-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-step-hint-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-step-hint-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-step-hint-tracking, ${v.typescale.standard.body.small.tracking}); } :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]), :host(:not([aria-disabled="true"]):not([invalid])) .hint { color: var(--m3e-step-hint-color, ${v.color.onSurfaceVariant}); } :host([aria-disabled="true"]) ::slotted([slot="hint"]), :host([aria-disabled="true"]) .hint { color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${v.color.onSurface}) 38%, transparent); }`,D$.__nextId=0,t([h(".focus-ring")],D$.prototype,"_focusRing",void 0),t([h(".state-layer")],D$.prototype,"_stateLayer",void 0),t([h(".ripple")],D$.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],D$.prototype,"optional",void 0),t([m({type:Boolean,reflect:!0})],D$.prototype,"editable",void 0),t([m({type:Boolean,reflect:!0})],D$.prototype,"completed",void 0),t([m({type:Boolean,reflect:!0})],D$.prototype,"invalid",void 0),t([u()],D$.prototype,"index",void 0),D$=O$=t([$("m3e-step")],D$);class X$ extends z{constructor(e){super(),B$.set(this,void 0),a(this,B$,e,"f")}_onClick(){switch(e(this,B$,"f")){case"next":this.closest("m3e-stepper")?.moveNext();break;case"previous":this.closest("m3e-stepper")?.movePrevious();break;case"reset":this.closest("m3e-stepper")?.reset()}}}B$=new WeakMap;let Y$=class extends(P(r)){constructor(){super(...arguments),q$.add(this),F$.set(this,void 0),this._selectedIndex=null,this[G$]=(new Pe).withHomeAndEnd().withWrap().onSelectedItemsChange(()=>e(this,q$,"m",j$).call(this)),this.headerPosition="above",this.labelPosition="end",this.linear=!1,this.orientation="horizontal"}get steps(){return this[Te]?.items??[]}get selectedStep(){return null!==this._selectedIndex?this.steps[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}movePrevious(){return this.moveTo((this._selectedIndex??1)-1)}moveNext(){return this.moveTo((this._selectedIndex??-1)+1)}moveTo(t){const a=this.selectedStep;if(a&&a.index===t)return!0;if(this.steps[t]?.disabled)return!1;if(t>=0&&t<this.steps.length){if(a){const o=e(this,q$,"m",K$).call(this);if(this.linear)if(t<a.index){const e=this[Te].items[t];if(!e||e.completed&&!e.editable)return!1}else if(t>a.index+1){const e=this[Te].items[t];if(!e||!e.completed)return!1}else if(!o&&!a.optional)return!1;a.completed=!0}return this._selectedIndex=t,this[Te].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})),!0}return a&&(this[Te].deselect(a),this.dispatchEvent(new Event("change",{bubbles:!0}))),!1}reset(){this.steps.forEach(e=>e.reset());const e=this.steps.findIndex(e=>!e.disabled);e!==this._selectedIndex&&(this._selectedIndex=e,this[Te].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})))}connectedCallback(){super.connectedCallback(),L(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),this._orientation=void 0,e(this,F$,"f")?.call(this)}willUpdate(t){super.willUpdate(t),t.has("orientation")&&(e(this,F$,"f")?.call(this),"auto"===this.orientation?a(this,F$,je.observe([Ke.XSmall],t=>{this._orientation=t.get(Ke.XSmall)?"vertical":"horizontal",e(this,q$,"m",Z$).call(this)}),"f"):(this._orientation=void 0,e(this,q$,"m",Z$).call(this))),t.has("_orientation")&&e(this,q$,"m",Z$).call(this)}render(){let t;return this.selectedStep?.panel&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedStep.panel),-1===t&&(t=void 0)),this[Te].vertical?s`${e(this,q$,"m",V$).call(this)}<slot name="panel"></slot>`:s`${"above"===this.headerPosition?e(this,q$,"m",V$).call(this):n}<m3e-slide class="steps" selected-index="${Fe(t)}"><slot name="panel"></slot></m3e-slide>${"below"===this.headerPosition?e(this,q$,"m",V$).call(this):n}`}};F$=new WeakMap,q$=new WeakSet,G$=Te,V$=function(){return s`<div class="header" role="tablist" aria-orientation="${Fe(this[Te].vertical?"vertical":void 0)}" @change="${e(this,q$,"m",R$)}"><slot name="step" @slotchange="${e(this,q$,"m",N$)}" @keydown="${e(this,q$,"m",U$)}"></slot></div>`},R$=function(e){e.stopPropagation()},N$=function(){const{added:t,removed:a}=this[Te].setItems([...this.querySelectorAll("m3e-step")]);if(t.length>0||a.length>0){this.querySelectorAll(".-m3e-step-divider").forEach(e=>e.remove());for(let e=0;e<this[Te].items.length;e++){const t=this[Te].items[e];if(t.index=e,e>0){const e=document.createElement("div");e.ariaHidden="true",e.classList.add("-m3e-step-divider"),e.slot="step",t.insertAdjacentElement("beforebegin",e)}}e(this,q$,"m",Z$).call(this),0==this[Te].selectedItems.length&&this[Te].select(this[Te].items.find(e=>!e.disabled))}},U$=function(e){this[Te].onKeyDown(e)},j$=function(){const e=this[Te].selectedItems[0];let t=e?this.steps.indexOf(e):null;-1===t&&(t=null),this._selectedIndex=t;for(const e of this[Te].items)e.panel&&(e.panel.active=e.index===t);e&&this.matches(":focus-within")&&!e.matches(":focus")&&e.focus(),O(this,"-no-animate")&&requestAnimationFrame(()=>k(this,"-no-animate"))},K$=function(){let e=!1;return this.selectedStep&&(e=this.selectedStep.panel?.querySelector("form")?.checkValidity()??!0,this.selectedStep.optional&&(e=!0),this.selectedStep.invalid=!e),e},Z$=function(){this[Te].vertical="vertical"===(this._orientation??this.orientation),w(this,"-vertical",this[Te].vertical),this[Te].vertical?this.steps.forEach((e,t)=>{e.style.order=`${t}`,e.panel&&(e.panel.style.order=`${t}`)}):this.steps.forEach(e=>{e.style.order="",e.panel&&(e.panel.style.order="")})},(()=>{if("undefined"!=typeof window){const e=new CSSStyleSheet;e.replaceSync(i`m3e-stepper:not(:state(-vertical)) > .-m3e-step-divider::before { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical))[label-position="end"] > .-m3e-step-divider { margin-block: auto; } m3e-stepper:not(:state(-vertical))[label-position="below"] > .-m3e-step-divider::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-block-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"] { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"]:not(:last-of-type) { border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); }`.toString()),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}})(),Y$.styles=i`:host { display: flex; flex-direction: column; position: relative; } :host(:not(:state(-vertical))) .header { display: flex; align-items: flex-start; flex-wrap: nowrap; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider) { flex: 1 1 auto; position: relative; min-width: 2rem; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider)::before { content: ""; position: absolute; left: 0; right: 0; } :host(:not(:state(-vertical)):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before { top: 50%; } :host(:not(:state(-vertical))) ::slotted([slot="step"]) { align-self: stretch; } :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; top: 0; } :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: 50%; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:state(-vertical))[label-position="below"]) { --_step-direction: column; --_step-label-align-items: center; } :host(:state(-vertical)) .header { display: contents; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider)) { flex: none; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; left: 0; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { top: 0; bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); bottom: 0; } :host(:not(:state(-vertical))) { --m3e-collapsible-animation-duration: 0ms; } :host(:state(-no-animate)) { --m3e-collapsible-animation-duration: 0ms; }`,t([u()],Y$.prototype,"_orientation",void 0),t([u()],Y$.prototype,"_selectedIndex",void 0),t([m({attribute:"header-position",reflect:!0})],Y$.prototype,"headerPosition",void 0),t([m({attribute:"label-position",reflect:!0})],Y$.prototype,"labelPosition",void 0),t([m({type:Boolean,reflect:!0})],Y$.prototype,"linear",void 0),t([m({reflect:!0})],Y$.prototype,"orientation",void 0),Y$=t([$("m3e-stepper")],Y$);let J$=class extends X${constructor(){super("next")}};J$=t([$("m3e-stepper-next")],J$);let Q$=class extends X${constructor(){super("previous")}};Q$=t([$("m3e-stepper-previous")],Q$);let ex=class extends X${constructor(){super("reset")}};ex=t([$("m3e-stepper-reset")],ex);const tx=o(`var(--m3e-switch-selected-icon-color, ${v.color.onPrimaryContainer})`),ax=o("var(--m3e-switch-selected-icon-size, 1rem)"),ox=o(`var(--m3e-switch-unselected-icon-color, ${v.color.surfaceContainerHighest})`),ix=o("var(--m3e-switch-unselected-icon-size, 1rem)"),rx=o("var(--m3e-switch-track-height, 2rem)"),sx=o("var(--m3e-switch-track-width, 3.25rem)"),nx=o(`var(--m3e-switch-track-outline-color, ${v.color.outline})`),lx=o("var(--m3e-switch-track-outline-width, 2px)"),cx=o(`var(--m3e-switch-track-shape, ${v.shape.corner.full})`),dx=o(`var(--m3e-switch-selected-track-color, ${v.color.primary})`),hx=o(`var(--m3e-switch-unselected-track-color, ${v.color.surfaceContainerHighest})`),mx=o("var(--m3e-switch-unselected-handle-height, 1rem)"),px=o("var(--m3e-switch-unselected-handle-width, 1rem)"),ux=o("var(--m3e-switch-with-icon-handle-height, 1.5rem)"),vx=o("var(--m3e-switch-with-icon-handle-width, 1.5rem)"),bx=o("var(--m3e-switch-selected-handle-height, 1.5rem)"),fx=o("var(--m3e-switch-selected-handle-width, 1.5rem)"),gx=o("var(--m3e-switch-pressed-handle-height, 1.75rem)"),yx=o("var(--m3e-switch-pressed-handle-width, 1.75rem)"),$x=o(`var(--m3e-switch-handle-shape, ${v.shape.corner.full})`),xx=o(`var(--m3e-switch-selected-handle-color, ${v.color.onPrimary})`),wx=o(`var(--m3e-switch-unselected-handle-color, ${v.color.outline})`),kx=o("var(--m3e-switch-state-layer-size, 2.5rem)"),Cx=o(`var(--m3e-switch-state-layer-shape, ${v.shape.corner.full})`),Sx=o(`var(--m3e-switch-disabled-selected-icon-color, ${v.color.onSurface})`),_x=o("var(--m3e-switch-disabled-selected-icon-opacity, 38%)"),Lx=o(`var(--m3e-switch-disabled-unselected-icon-color, ${v.color.surfaceContainerHighest})`),zx=o("var(--m3e-switch-disabled-unselected-icon-opacity, 38%)"),Ex=o("var(--m3e-switch-disabled-track-opacity, 12%)"),Mx=o(`var(--m3e-switch-disabled-selected-track-color, ${v.color.onSurface})`),Tx=o(`var(--m3e-switch-disabled-unselected-track-color, ${v.color.surfaceContainerHighest})`),Px=o(`var(--m3e-switch-disabled-unselected-track-outline-color, ${v.color.onSurface})`),Ix=o("var(--m3e-switch-disabled-unselected-handle-opacity, 38%)"),Wx=o("var(--m3e-switch-disabled-selected-handle-opacity, 100%)"),Ax=o(`var(--m3e-switch-disabled-selected-handle-color, ${v.color.surface})`),Hx=o(`var(--m3e-switch-disabled-unselected-handle-color, ${v.color.onSurface})`),Ox=o(`var(--m3e-switch-selected-hover-icon-color, ${v.color.onPrimaryContainer})`),Dx=o(`var(--m3e-switch-unselected-hover-icon-color, ${v.color.surfaceContainerHighest})`),Bx=o(`var(--m3e-switch-selected-hover-track-color, ${v.color.primary})`),qx=o(`var(--m3e-switch-selected-hover-state-layer-color, ${v.color.primary})`),Fx=o("var(--m3e-switch-selected-hover-state-layer-opacity, 8%)"),Vx=o(`var(--m3e-switch-unselected-hover-track-color, ${v.color.surfaceContainerHighest})`),Rx=o(`var(--m3e-switch-unselected-hover-track-outline-color, ${v.color.outline})`),Nx=o(`var(--m3e-switch-unselected-hover-state-layer-color, ${v.color.onSurface})`),Ux=o("var(--m3e-switch-unselected-hover-state-layer-opacity, 8%)"),jx=o(`var(--m3e-switch-selected-hover-handle-color, ${v.color.surfaceContainerHighest})`),Kx=o(`var(--m3e-switch-unselected-hover-handle-color, ${v.color.onSurfaceVariant})`),Zx=o(`var(--m3e-switch-selected-focus-icon-color, ${v.color.onPrimaryContainer})`),Gx=o(`var(--m3e-switch-unselected-focus-icon-color, ${v.color.surfaceContainerHighest})`),Xx=o(`var(--m3e-switch-selected-focus-track-color, ${v.color.primary})`),Yx=o(`var(--m3e-switch-selected-focus-state-layer-color, ${v.color.primary})`),Jx=o("var(--m3e-switch-selected-focus-state-layer-opacity, 10%)"),Qx=o(`var(--m3e-switch-unselected-focus-track-color, ${v.color.surfaceContainerHighest})`),ew=o(`var(--m3e-switch-unselected-focus-track-outline-color, ${v.color.outline})`),tw=o(`var(--m3e-switch-unselected-focus-state-layer-color, ${v.color.onSurface})`),aw=o("var(--m3e-switch-unselected-focus-state-layer-opacity, 10%)"),ow=o(`var(--m3e-switch-selected-focus-handle-color, ${v.color.primaryContainer})`),iw=o(`var(--m3e-switch-unselected-focus-handle-color, ${v.color.onSurfaceVariant})`),rw=o(`var(--m3e-switch-selected-pressed-icon-color, ${v.color.onPrimaryContainer})`),sw=o(`var(--m3e-switch-unselected-pressed-icon-color, ${v.color.surfaceContainerHighest})`),nw=o(`var(--m3e-switch-selected-pressed-track-color, ${v.color.primary})`),lw=(o(`var(--m3e-switch-selected-pressed-state-layer-color, ${v.color.primary})`),o("var(--m3e-switch-selected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-unselected-pressed-track-color, ${v.color.surfaceContainerHighest})`)),cw=o(`var(--m3e-switch-unselected-pressed-track-outline-color, ${v.color.outline})`),dw=(o(`var(--m3e-switch-unselected-pressed-state-layer-color, ${v.color.onSurface})`),o("var(--m3e-switch-unselected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-selected-pressed-handle-color, ${v.color.primaryContainer})`)),hw=o(`var(--m3e-switch-unselected-pressed-handle-color, ${v.color.onSurfaceVariant})`),mw=i`.handle { position: relative; display: flex; align-items: center; justify-content: center; pointer-events: none; transform-origin: center center; border-radius: ${$x}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } .track:not(.pressed) .handle { --_switch-handle-effect: ${v.motion.spring.fastSpatial}; } .track.pressed .handle { --_switch-handle-effect: ${v.motion.spring.fastEffects}; } :host(:not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { width: ${vx}; height: ${ux}; } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host([aria-disabled="true"]:not([checked])) .handle { width: ${px}; height: ${mx}; } :host([checked]) .track:not(.pressed) .handle { width: ${fx}; height: ${bx}; } .track.pressed .handle { width: ${yx}; height: ${gx}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${wx}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle { background-color: ${Kx}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle { background-color: ${iw}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ${hw}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${xx}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle { background-color: ${jx}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle { background-color: ${ow}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: ${dw}; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: color-mix( in srgb, ${Hx} ${Ix}, transparent ); } :host([aria-disabled="true"][checked]) .handle { background-color: color-mix( in srgb, ${Ax} ${Wx}, transparent ); } :host(:not(:dir(rtl))[checked]) .track:not(.pressed) .handle { transform: translateX( calc(${sx} - ${fx} - calc(${lx} * 2)) ); } :host(:dir(rtl)[checked]) .track:not(.pressed) .handle { transform: translateX( calc( 0px - calc( ${sx} - ${fx} - calc(${lx} * 2) ) ) ); } :host(:not(:dir(rtl))[checked]) .track.pressed .handle { transform: translateX( calc(${sx} - ${yx} - ${lx}) ); } :host(:dir(rtl)[checked]) .track.pressed .handle { transform: translateX( calc(0px - calc(${sx} - ${yx} - ${lx})) ); } :host(:not(:dir(rtl)):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:not(:dir(rtl))[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( ${lx} + calc(${yx} - ${vx}) ) ); } :host(:dir(rtl):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:dir(rtl)[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( 0px - calc( ${lx} + calc(${yx} - ${vx}) ) ) ); } :host(:not(:dir(rtl)):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(${lx}); } :host(:dir(rtl):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(calc(0px - ${lx})); } @media (forced-colors: active) { .handle { transition: ${o(`transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ButtonText; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: GrayText; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: Canvas; } :host([aria-disabled="true"][checked]) .handle { background-color: Canvas; } } @media (prefers-reduced-motion) { .handle { transition: none; } }`,pw=i`:host([icons="none"]) .icon, :host([icons="selected"]:not([checked])) .icon, :host([aria-disabled="true"]:not([checked])) .icon { display: none; } .icon { width: 1em; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .icon { font-size: ${ix}; } :host([checked]) .icon { font-size: ${ax}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${ox}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon { color: ${Dx}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon { color: ${Gx}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: ${sw}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${tx}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon { color: ${Ox}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon { color: ${Zx}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: ${rw}; } :host([aria-disabled="true"]:not([checked])) .icon { color: color-mix( in srgb, ${Lx} ${zx}, transparent ); } :host([aria-disabled="true"][checked]) .icon { color: color-mix( in srgb, ${Sx} ${_x}, transparent ); } @media (forced-colors: active) { :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: CanvasText; } :host([aria-disabled="true"]:not([checked])) .icon { color: Canvas; } :host([aria-disabled="true"][checked]) .icon { color: GrayText; } } @media (prefers-reduced-motion) { .icon { transition: none; } }`,uw=i`.state-layer { width: ${kx}; height: ${kx}; border-radius: ${Cx}; transition: ${o(`top ${v.motion.spring.fastEffects},\n left ${v.motion.spring.fastEffects},\n right ${v.motion.spring.fastEffects}`)}; } :host(:not([checked])[icons="both"]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${kx} - ${vx}) / 2)); top: calc(0px - calc(calc(${kx} - ${ux}) / 2)); } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .state-layer { inset-inline-start: calc( 0px - calc(calc(${kx} - ${px}) / 2) ); top: calc(0px - calc(calc(${kx} - ${mx}) / 2)); } :host([checked]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${kx} - ${fx}) / 2)); top: calc(0px - calc(calc(${kx} - ${bx}) / 2)); } .track.pressed .state-layer { inset-inline-start: calc(0px - calc(calc(${kx} - ${yx}) / 2)); top: calc(0px - calc(calc(${kx} - ${yx}) / 2)); } :host(:not([checked])) .state-layer { --m3e-state-layer-hover-color: ${Nx}; --m3e-state-layer-hover-opacity: ${Ux}; --m3e-state-layer-focus-color: ${tw}; --m3e-state-layer-focus-opacity: ${aw}; } :host([checked]) .state-layer { --m3e-state-layer-hover-color: ${qx}; --m3e-state-layer-hover-opacity: ${Fx}; --m3e-state-layer-focus-color: ${Yx}; --m3e-state-layer-focus-opacity: ${Jx}; }`,vw=i`:host { display: inline-block; position: relative; outline: none; height: fit-content; width: fit-content; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .focus-ring { border-radius: ${cx}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .base { display: flex; align-items: center; justify-content: center; }`,bw=i`.track { display: flex; align-items: center; position: relative; box-sizing: border-box; border-radius: ${cx}; width: ${sx}; height: ${rx}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .track { border-width: ${lx}; border-style: solid; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) { border-color: ${nx}; background-color: ${hx}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) { border-color: ${Rx}; background-color: ${Vx}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) { border-color: ${ew}; background-color: ${Qx}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ${cw}; background-color: ${lw}; } :host([aria-disabled="true"]:not([checked])) .track { border-color: color-mix( in srgb, ${Px} ${Ex}, transparent ); background-color: color-mix( in srgb, ${Tx} ${Ex}, transparent ); } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) { background-color: ${dx}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) { background-color: ${Bx}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) { background-color: ${Xx}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ${nw}; } :host([aria-disabled="true"][checked]) .track { background-color: color-mix( in srgb, ${Mx} ${Ex}, transparent ); } @media (forced-colors: active) { .track { transition: none; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ButtonText; background-color: Canvas; } :host([aria-disabled="true"]:not([checked])) .track { border-color: GrayText; background-color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ButtonText; } :host([aria-disabled="true"][checked]) .track { background-color: GrayText; } } @media (prefers-reduced-motion) { .track { transition: none; } }`;var fw,gw,yw,$w,xw,ww;let kw=class extends(X(J(Q(te(fe(oe(q(R(U(P(f(r,"switch")))))))))))){constructor(){super(),fw.add(this),gw.set(this,t=>e(this,fw,"m",ww).call(this,t)),yw.set(this,new ie(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),$w.set(this,new K(this,{target:null,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})),this.icons="none",this.value="on",new K(this,{isPressedKey:e=>" "===e,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})}get[(gw=new WeakMap,yw=new WeakMap,$w=new WeakMap,fw=new WeakSet,re)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,gw,"f"));for(const t of this.labels)e(this,yw,"f").observe(t),e(this,$w,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,gw,"f"));for(const t of this.labels)e(this,yw,"f").unobserve(t),e(this,$w,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="track" aria-hidden="true"><div class="touch" aria-hidden="true"></div><div class="handle"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><div class="base">${e(this,fw,"m",xw).call(this)}</div></div></div>`}};var Cw,Sw,_w,Lw;xw=function(){return this.checked?s`<svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"></path></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>`},ww=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},kw.styles=[vw,uw,bw,mw,pw],t([h(".track")],kw.prototype,"_track",void 0),t([h(".focus-ring")],kw.prototype,"_focusRing",void 0),t([h(".state-layer")],kw.prototype,"_stateLayer",void 0),t([m({reflect:!0})],kw.prototype,"icons",void 0),t([m()],kw.prototype,"value",void 0),kw=t([$("m3e-switch")],kw);let zw=Lw=class extends(he(b(q(R(U(P(f(r,"tab"),!0))))))){constructor(){super(...arguments),Cw.add(this),Sw.set(this,t=>e(this,Cw,"m",_w).call(this,t))}attach(e){super.attach(e),e.id=e.id||"m3e-tab-panel-"+Lw.__nextId++,Ee(this,"aria-controls",e.id)}detach(){this.control&&this.control.id&&Me(this,"aria-controls",this.control.id),super.detach()}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Sw,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Sw,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-tabs")?.[Te].notifySelectionChange(this)}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><slot name="icon" aria-hidden="true"></slot><span class="label"><slot></slot></span></div></div>`}};Sw=new WeakMap,Cw=new WeakSet,_w=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-tabs")?.[Te].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},zw.styles=i`:host { display: inline-block; outline: none; user-select: none; height: calc(var(--_tab-height) + ${v.density.calc(-3)}); font-size: var(--m3e-tab-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-tab-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-tab-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-tab-tracking, ${v.typescale.standard.title.small.tracking}); flex-grow: var(--_tab-grow); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; padding-inline-start: var(--m3e-tab-padding-start, 1.5rem); padding-inline-end: var(--m3e-tab-padding-end, 1.5rem); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .focus-ring { border-radius: var(--m3e-tab-focus-ring-shape, ${v.shape.corner.large}); } :host([selected]:focus-within) .focus-ring { top: var(--_tab-focus-ring-top-offset, 0); bottom: var(--_tab-focus-ring-bottom-offset, 0); } :host([selected]:not(:disabled)) .base { color: var(--m3e-tab-selected-color, var(--_tab-selected-color, ${v.color.primary})); --m3e-state-layer-hover-color: var( --m3e-tab-selected-container-hover-color, var(--_tab-selected-container-hover-color, ${v.color.primary}) ); --m3e-state-layer-focus-color: var( --_tab-selected-container-focus-color, var(--m3e-tab-selected-container-focus-color, ${v.color.primary}) ); --m3e-ripple-color: var( --_tab-selected-ripple-color, var(--m3e-tab-selected-ripple-color, ${v.color.primary}) ); } :host(:not([selected]):not(:disabled)) .base { color: var(--m3e-tab-unselected-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-hover-color: var(--m3e-tab-unselected-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-tab-unselected-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-tab-unselected-ripple-color, ${v.color.onSurface}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-tab-disabled-color, ${v.color.onSurface}) var(--m3e-tab-disabled-opacity, 38%), transparent ); } .wrapper { display: inline-flex; align-items: center; white-space: nowrap; flex-direction: var(--_tab-direction); justify-content: center; column-gap: var(--m3e-tab-spacing, 0.5rem); } ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-tab-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .base { color: ButtonText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host(:disabled) .base { color: GrayText; } }`,zw.__nextId=0,t([h(".focus-ring")],zw.prototype,"_focusRing",void 0),t([h(".state-layer")],zw.prototype,"_stateLayer",void 0),t([h(".ripple")],zw.prototype,"_ripple",void 0),t([h(".label")],zw.prototype,"label",void 0),zw=Lw=t([$("m3e-tab")],zw);let Ew=class extends(f(r,"tabpanel")){connectedCallback(){super.connectedCallback(),this.slot="panel"}render(){return s`<slot></slot>`}};var Mw,Tw,Pw,Iw,Ww,Aw,Hw,Ow,Dw;Ew.styles=i`:host { display: block; overflow-y: auto; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; }`,Ew=t([$("m3e-tab-panel")],Ew);let Bw=class extends(P(r)){constructor(){super(),Mw.add(this),Tw.set(this,void 0),this._selectedIndex=null,this[Dw]=(new Pe).onSelectedItemsChange(()=>e(this,Mw,"m",Hw).call(this)).withHomeAndEnd().withWrap().withDirectionality(De.current),this.disablePagination=!1,this.headerPosition="before",this.variant="secondary",this.stretch=!1,this.previousPageLabel="Previous page",this.nextPageLabel="Next page",new A(this,{skipInitial:!0,callback:()=>{L(this,"-no-animate"),e(this,Mw,"m",Ow).call(this)}})}get tabs(){return this[Te]?.items??[]}get selectedTab(){return null!==this._selectedIndex?this.tabs[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}set selectedIndex(e){if(e>=0&&e<this.tabs.length)this.tabs[e].selected=!0;else{const e=this.selectedTab;e&&(e.selected=!1)}}connectedCallback(){super.connectedCallback(),L(this,"-no-animate"),a(this,Tw,De.observe(()=>{this.requestUpdate(),this[Te].directionality=De.current}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Tw,"f")?.call(this)}updated(t){super.updated(t),(t.has("variant")||t.has("stretch"))&&null!==this._selectedIndex&&e(this,Mw,"m",Ow).call(this)}render(){let t;return this.selectedTab?.control&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedTab.control),-1===t&&(t=void 0)),s`${"before"===this.headerPosition?e(this,Mw,"m",Pw).call(this):n}<m3e-slide class="tabs" selected-index="${Fe(t)}"><slot name="panel"></slot></m3e-slide>${"after"===this.headerPosition?e(this,Mw,"m",Pw).call(this):n}`}};
124
+ <g mask="${we(`${e(this,ky,"f")}-inverse`)}">
125
+ <rect class="track" width="100%" height="${e(this,Cy,"f")}" fill="currentColor" />
126
+ </g>`:d`<path d="${i}" stroke="currentColor" stroke-width=${e(this,Cy,"f")} fill="none" stroke-linecap="round" />`}</svg>`:s`<div class="complete"></div>`},My=function(){return s`<div class="stroke" aria-hidden="true"></div><div class="amplitude-and-wavelength" aria-hidden="true"></div>`},Ty=function(){const e=this.shadowRoot?.querySelector(".stroke");e&&a(this,Cy,e.clientHeight,"f")},Py=function(){const e=this.shadowRoot?.querySelector(".amplitude-and-wavelength");e&&(a(this,Sy,e.clientHeight,"f"),a(this,_y,e.clientWidth,"f"))},Iy=function(t,a=0){const o=e(this,Sy,"f")+e(this,Cy,"f")/2,i=o,r=[],s=e(this,_y,"f")/2;let n=0;for(r.push(`M ${n},${i}`);n<=t;){const t=n+s,l=i+o*Math.sin(2*Math.PI*t/e(this,_y,"f")+a),c=n+s/2,d=i+o*Math.sin(2*Math.PI*(n+s/2)/e(this,_y,"f")+a);r.push(`Q ${c},${d} ${t},${l}`),n+=s}const l=`0 -1 ${t} ${2*o+2}`;return{path:r.join(" "),viewBox:l,height:e(this,Cy,"f")+2*e(this,Sy,"f"),padding:1}},Dy.styles=[Kg.styles,i`:host { display: block; position: relative; } .progress { width: 100%; height: 100%; position: relative; align-items: center; border-radius: var(--m3e-linear-progress-indicator-shape, ${v.shape.corner.extraSmall}); } .stroke, .amplitude-and-wavelength { visibility: hidden; position: absolute; } .stroke { width: 100%; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .amplitude-and-wavelength { height: var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem); width: var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem); } :host([mode="indeterminate"]) .amplitude-and-wavelength, :host([mode="query"]) .amplitude-and-wavelength { width: var(--m3e-linear-wavy-indeterminate-progress-indicator-wavelength, 1.5rem); } .primary, .secondary, .stop { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } .stop { aspect-ratio: 1; flex: none; } :host([variant="flat"]) { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } :host([variant="wavy"]) { height: calc( var(--m3e-linear-progress-indicator-thickness, 0.25rem) + calc(var(--m3e-linear-wavy-progress-indicator-amplitude, 0.1875rem) * 2) ); } :host([variant="wavy"]) .primary, :host([variant="wavy"]) .secondary { position: relative; height: 100%; overflow: hidden; } :host([variant="wavy"]) .complete { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } :host([variant="wavy"]) .secondary { height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); } .wave { position: absolute; display: block; } .primary .wave, .secondary .wave { margin-inline-start: calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem)); } :host([variant="wavy"][mode="determinate"]) .primary path, :host([variant="wavy"][mode="buffer"]) .primary path { animation: wave-slide 1.5s linear infinite; } @keyframes wave-slide { from { transform: translateX(0); } to { transform: translateX(calc(0px - var(--m3e-linear-wavy-progress-indicator-wavelength, 2.5rem))); } } :host([mode="determinate"]) .progress, :host([mode="buffer"]) .progress { display: flex; overflow: hidden; } :host([mode="determinate"]) .primary, :host([mode="buffer"]) .primary { width: var(--_value, 0px); flex: none; } :host([mode="determinate"]) .gap, :host([mode="buffer"]) .gap { flex-basis: var(--m3e-linear-progress-indicator-thickness, 0.25rem); flex-shrink: 1; } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .buffer { flex: 1 1 auto; } :host([mode="buffer"]) .buffer { flex-shrink: 5; height: 100%; width: 100%; background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); mask-image: radial-gradient( circle, black 0, black calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2), transparent calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2) ); mask-size: calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2) 100%; mask-repeat: repeat; animation: buffer 250ms linear infinite; } :host(:dir(rtl)[mode="buffer"]) .buffer { transform: scaleX(-1); } @keyframes buffer { from { mask-position: 0 0; } to { mask-position: calc(-1 * calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) * 2)) 0; } } :host([mode="buffer"]) .secondary { width: var(--_buffer-value, 0px); flex: none; } :host([mode="indeterminate"]) .primary, :host([mode="query"]) .primary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-primary 2.1s infinite linear; } :host([variant="wavy"][mode="indeterminate"]) .primary, :host([variant="wavy"][mode="query"]) .primary { animation-name: wavy-indeterminate-primary; } :host([mode="indeterminate"]) .secondary, :host([mode="query"]) .secondary { position: absolute; top: 0; height: 100%; border-radius: inherit; animation: indeterminate-secondary 2.1s infinite linear; animation-delay: 1.15s; animation-fill-mode: backwards; } :host([variant="wavy"][mode="indeterminate"]) .secondary, :host([variant="wavy"][mode="query"]) .secondary { animation-name: wavy-indeterminate-secondary; } :host([mode="indeterminate"]) .progress, :host([mode="query"]) .progress { overflow: hidden; position: relative; } :host(:not(:dir(rtl))[mode="query"]) .progress, :host(:dir(rtl)[mode="indeterminate"]) .progress { transform: scaleX(-1); } :host([variant="flat"]) .primary, :host([variant="flat"][mode="indeterminate"]) .secondary, :host([variant="flat"][mode="query"]) .secondary, :host([variant="wavy"]) .complete, .stop { background-color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([variant="wavy"]) .progress { color: var(--m3e-progress-indicator-color, ${v.color.primary}); } :host([mode="determinate"]) .secondary, :host([mode="buffer"]) .secondary, :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { background-color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { color: var(--m3e-progress-indicator-track-color, ${v.color.secondaryContainer}); } :host([variant="wavy"][mode="indeterminate"]) .track, :host([variant="wavy"][mode="query"]) .track { y: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); border-radius: inherit; } :host([variant="flat"][mode="indeterminate"]) .track, :host([variant="flat"][mode="query"]) .track { position: absolute; margin: auto; top: calc(50% - calc(var(--m3e-linear-progress-indicator-thickness, 0.25rem) / 2)); left: 0; right: 0; height: var(--m3e-linear-progress-indicator-thickness, 0.25rem); border-radius: inherit; } @keyframes indeterminate-primary { 0% { left: -145.167%; width: 8%; } 20% { left: -113.333%; width: 48%; } 60% { left: 56.333%; width: 78%; } 100% { left: 100%; width: 8%; } } @keyframes indeterminate-secondary { 0% { left: -54.888%; width: 8%; } 20% { left: -20%; width: 48%; } 60% { left: 60%; width: 78%; } 100% { left: 160%; width: 8%; } } @keyframes wavy-indeterminate-primary { 0% { transform: translateX(-145.167%); width: 8%; } 20% { transform: translateX(-113.333%); width: 48%; } 60% { transform: translateX(56.333%); width: 78%; } 100% { transform: translateX(100%); width: 8%; } } @keyframes wavy-indeterminate-secondary { 0% { transform: translateX(-54.888%); width: 8%; } 20% { transform: translateX(-20%); width: 48%; } 60% { transform: translateX(60%); width: 78%; } 100% { transform: translateX(160%); width: 8%; } } @media (forced-colors: active) { .progress { --m3e-progress-indicator-track-color: GrayText; --m3e-progress-indicator-color: CanvasText; } }`],Dy.__nextMaskId=0,t([m({reflect:!0})],Dy.prototype,"mode",void 0),t([m({attribute:"buffer-value",type:Number,reflect:!0})],Dy.prototype,"bufferValue",void 0),Dy=Wy=t([$("m3e-linear-progress-indicator")],Dy);let Ry=class extends(Q(te(ae($e(q(N(se(Y(P(f(r,"radio"),!0)))))))))){constructor(){super(...arguments),Ay.add(this),Hy.set(this,t=>e(this,Ay,"m",Vy).call(this,t)),Oy.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),Fy.set(this,new Z(this,{target:null,minPressedDuration:150,callback:e=>{this.disabled||(e?this._ripple?.show(0,0,!0):this._ripple?.hide())}})),this.value="on"}get[(Hy=new WeakMap,Oy=new WeakMap,Fy=new WeakMap,Ay=new WeakSet,le)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Hy,"f"));for(const t of this.labels)e(this,Oy,"f").observe(t),e(this,Fy,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Hy,"f"));for(const t of this.labels)e(this,Oy,"f").unobserve(t),e(this,Fy,"f").unobserve(t)}update(t){super.update(t),t.has("checked")&&e(this,Ay,"m",qy).call(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" centered ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper" aria-hidden="true">${e(this,Ay,"m",By).call(this)}</div></div>`}};var Uy,Ny,jy,Yy,Ky,Zy,Gy;By=function(){return s`<svg viewBox="0 0 20 20"><mask id="cutout2"><rect width="100%" height="100%" fill="white"></rect><circle cx="10" cy="10" r="8" fill="black"></circle></mask><circle class="outer circle" cx="10" cy="10" r="10" mask="url(#cutout2)"></circle><circle class="inner circle" cx="10" cy="10" r="5"></circle></svg>`},Vy=function(t){t.defaultPrevented||this.checked||this.disabled||(this.checked=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(e(this,Ay,"m",qy).call(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=!1,this.closest("label")&&t.preventDefault())},qy=function(){const e=this.closest("m3e-radio-group");e?e[We].notifySelectionChange(this):this.name&&this.checked&&[...this.getRootNode()?.querySelectorAll(`m3e-radio[name="${this.name}"]`)??[]].filter(e=>e!==this&&e.checked).forEach(e=>e.checked=!1)},Ry.styles=i`:host { display: inline-block; outline: none; width: fit-content; height: fit-content; vertical-align: middle; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: 50%; width: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); height: calc(var(--m3e-radio-container-size, 2.5rem) + ${v.density.calc(-3)}); } .touch { position: absolute; height: 3rem; width: 3rem; margin: auto; } .wrapper { box-sizing: border-box; pointer-events: none; width: var(--m3e-radio-icon-size, 1.25rem); height: var(--m3e-radio-icon-size, 1.25rem); } .circle { fill: currentColor; } :host(:not([checked])) .circle.inner { opacity: 0; } :host(:not([checked])) .base { --m3e-state-layer-hover-color: var(--m3e-radio-unselected-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-radio-unselected-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-radio-unselected-ripple-color, ${v.color.onSurface}); color: var(--m3e-radio-unselected-icon-color, ${v.color.onSurfaceVariant}); } :host([checked]) .base { --m3e-state-layer-hover-color: var(--m3e-radio-selected-hover-color, ${v.color.primary}); --m3e-state-layer-focus-color: var(--m3e-radio-selected-focus-color, ${v.color.primary}); --m3e-ripple-color: var(--m3e-radio-selected-ripple-color, ${v.color.primary}); color: var(--m3e-radio-selected-icon-color, ${v.color.primary}); } :host([aria-disabled="true"]) .base { color: color-mix(in srgb, var(--m3e-radio-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:state(-touched):state(-invalid)) .base { --m3e-state-layer-hover-color: var(--m3e-radio-error-hover-color, ${v.color.error}); --m3e-state-layer-focus-color: var(--m3e-radio-error-focus-color, ${v.color.error}); --m3e-ripple-color: var(--m3e-radio-error-ripple-color, ${v.color.error}); color: var(--m3e-radio-error-icon-color, ${v.color.error}); } @media (forced-colors: active) { :host(:not([checked])) .base, :host([checked]) .base { --m3e-state-layer-hover-color: var(--_radio-forced-color, CanvasText); --m3e-state-layer-focus-color: var(--_radio-forced-color, CanvasText); --m3e-ripple-color: var(--_radio-forced-color, CanvasText); color: var(--_radio-forced-color, CanvasText); } :host([aria-disabled="true"]) .base { color: GrayText; } :host(:state(-touched):state(-invalid)) .base { --_radio-forced-color: Highlight; color: Highlight; } }`,t([h(".focus-ring")],Ry.prototype,"_focusRing",void 0),t([h(".state-layer")],Ry.prototype,"_stateLayer",void 0),t([h(".ripple")],Ry.prototype,"_ripple",void 0),t([m()],Ry.prototype,"value",void 0),Ry=t([$("m3e-radio")],Ry);let Xy=class extends(Q(ee(te(ae(oe(ie(se(Y(P(f(r,"radiogroup"))))))))))){constructor(){super(...arguments),Uy.add(this),Ny.set(this,void 0),jy.set(this,()=>e(this,Uy,"m",Zy).call(this)),this[Gy]=(new De).withWrap().withDirectionality(Ve.current).onActiveItemChange(()=>{this[We].activeItem?.click()})}static get observedAttributes(){return[...super.observedAttributes,"aria-invalid"]}get radios(){return this[We]?.items??[]}get selected(){return this[We]?.selectedItems[0]??null}get value(){return this.selected?.value??null}markAsTouched(){super.markAsTouched(),this.radios.forEach(e=>e.markAsTouched())}markAsUntouched(){super.markAsUntouched(),this.radios.forEach(e=>e.markAsUntouched())}markAsDirty(){super.markAsDirty(),this.radios.forEach(e=>e.markAsDirty())}markAsPristine(){super.markAsPristine(),this.radios.forEach(e=>e.markAsPristine())}attributeChangedCallback(e,t,a){switch(super.attributeChangedCallback(e,t,a),e){case"name":this.radios.forEach(e=>e.name=this.name);break;case"aria-invalid":this.radios.forEach(e=>{k(e,"-invalid","true"===a),e[Ce]?.()})}}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",e(this,jy,"f")),a(this,Ny,Ve.observe(()=>this[We].directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",e(this,jy,"f")),e(this,Ny,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(this.ariaDisabled=null),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[We].disabled=this.disabled)}render(){return s`<slot @slotchange="${e(this,Uy,"m",Yy)}" @keydown="${e(this,Uy,"m",Ky)}" @change="${e(this,Uy,"m",Zy)}"></slot>`}};Ny=new WeakMap,jy=new WeakMap,Uy=new WeakSet,Gy=We,Yy=function(){const{added:e}=this[We].setItems([...this.querySelectorAll("m3e-radio")]);e.forEach(e=>e.name=e.name||this.name)},Ky=function(e){this[We].onKeyDown(e)},Zy=function(){this.checkValidity()},Xy.styles=i`:host { display: inline-flex; }`,Xy=t([$("m3e-radio-group")],Xy);const Jy=o(`var(--m3e-search-bar-container-color, ${v.color.surfaceContainerHigh})`),Qy=o(`var(--m3e-search-bar-leading-icon-color, ${v.color.onSurface})`),e$=o(`var(--m3e-search-bar-trailing-icon-color, ${v.color.onSurfaceVariant})`),t$=o("var(--m3e-search-bar-container-height, 3.5rem)"),a$=o(`var(--m3e-search-bar-container-shape, ${v.shape.corner.full})`),o$=o("var(--m3e-search-bar-icon-size, 1.5rem)"),i$=o(`var(--m3e-search-bar-supporting-text-color, ${v.color.onSurfaceVariant})`),r$=o(`var(--m3e-search-bar-supporting-text-font-size, ${v.typescale.standard.body.large.fontSize})`),s$=o(`var(--m3e-search-bar-supporting-text-font-weight, ${v.typescale.standard.body.large.fontWeight})`),n$=o(`var(--m3e-search-bar-supporting-text-line-height, ${v.typescale.standard.body.large.lineHeight})`),l$=o(`var(--m3e-search-bar-supporting-text-tracking, ${v.typescale.standard.body.large.tracking})`),c$=o(`var(--m3e-search-bar-input-color, ${v.color.onSurface})`),d$=o(`var(--m3e-search-bar-input-text-font-size, ${v.typescale.standard.body.large.fontSize})`),h$=o(`var(--m3e-search-bar-input-text-font-weight, ${v.typescale.standard.body.large.fontWeight})`),m$=o(`var(--m3e-search-bar-input-text-line-height, ${v.typescale.standard.body.large.lineHeight})`),p$=o(`var(--m3e-search-bar-input-text-tracking, ${v.typescale.standard.body.large.tracking})`),u$=o("var(--m3e-search-bar-leading-space, 0.25rem)"),v$=o("var(--m3e-search-bar-trailing-space, 0.25rem)"),b$=o("var(--m3e-search-bar-no-actions-leading-space, 1rem)"),f$=o("var(--m3e-search-bar-no-actions-trailing-space, 1rem)"),g$=o("var(--m3e-search-bar-leading-actions-trailing-space, 0.25rem)"),y$=o("var(--m3e-search-bar-trailing-actions-leading-space, 0.25rem)"),$$=o("var(--m3e-search-bar-actions-gap, 0px)"),x$=i`m3e-search-bar input[slot="input"]::placeholder { user-select: none; color: ${i$}; font-size: ${r$}; font-weight: ${s$}; line-height: ${n$}; letter-spacing: ${l$}; }`,w$=i`:host { display: block; height: ${t$}; } .base { cursor: text; display: flex; align-items: center; box-sizing: border-box; width: 100%; height: 100%; border-radius: ${a$}; background-color: ${Jy}; } .clear { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; } :host(:not(:state(-clearable))) .clear { display: none; } :host(:state(-with-leading)) slot[name="leading"], :host(:state(-with-trailing)) slot[name="trailing"] { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; padding-inline: 0.25rem; column-gap: calc(0.5rem + ${$$}); } ::slotted([slot="input"]) { flex: 1 1 auto; outline: unset; border: unset; background-color: transparent; box-shadow: none; min-width: 0; padding: unset; color: ${c$}; font-size: ${d$}; font-weight: ${h$}; line-height: ${m$}; letter-spacing: ${p$}; } :host(:state(-with-leading)) .base { padding-inline-start: ${u$}; } :host(:not(:state(-with-leading))) .base { padding-inline-start: ${b$}; } :host(:is(:state(-with-trailing), :state(-clearable))) .base { padding-inline-end: ${v$}; } :host(:not(:is(:state(-with-trailing), :state(-clearable)))) .base { padding-inline-end: ${f$}; } :host(:state(-with-leading)) ::slotted([slot="input"]) { margin-inline-start: ${g$}; } :host(:is(:state(-with-trailing), :state(-clearable))) ::slotted([slot="input"]) { margin-inline-end: ${y$}; } slot[name="leading"] { color: ${Qy}; --m3e-icon-color: ${Qy}; --m3e-icon-button-icon-color: ${Qy}; --m3e-icon-size: ${o$}; } slot[name="trailing"], .clear { color: ${e$}; --m3e-icon-color: ${e$}; --m3e-icon-button-icon-color: ${e$}; --m3e-icon-size: ${o$}; } ::slotted(svg[slot="leading"]), ::slotted(svg[slot="trailing"]) { width: 1em; font-size: ${o$}; } ::slotted([slot="clear-icon"]), .clear-icon { width: 1em; font-size: ${o$} !important; } slot[name="clear-icon"] { --m3e-icon-size: ${o$}; } @media (forced-colors: active) { .base { border: 1px var(--_search-bar-forced-color-outline-style, solid) CanvasText; } }`,k$=o(`var(--m3e-search-view-container-color, ${v.color.surfaceContainerHigh})`),C$=o(`var(--m3e-search-view-contained-container-color, ${v.color.surfaceContainerLow})`),S$=o(`var(--m3e-search-view-divider-color, ${v.color.outline})`),_$=o("var(--m3e-search-view-divider-thickness, 1px)"),L$=o(`var(--m3e-search-view-full-screen-container-shape, ${v.shape.corner.none})`),z$=o("var(--m3e-search-view-full-screen-header-container-height, 4.5rem)"),E$=o(`var(--m3e-search-view-docked-container-shape, ${v.shape.corner.extraLarge})`),M$=o("var(--m3e-search-view-docked-header-container-height, 3.5rem)"),T$=o("var(--m3e-search-view-contained-leading-margin, 1.5rem)"),P$=o("var(--m3e-search-view-contained-trailing-margin, 1.55rem)"),I$=o("var(--m3e-search-view-contained-focused-leading-margin, 0.75rem)"),W$=o("var(--m3e-search-view-contained-focused-trailing-margin, 0.75rem)"),D$=o("var(--m3e-search-view-contained-docked-bar-results-gap, 2px)"),A$=(o(`var(--m3e-search-view-contained-docked-results-shape, ${v.shape.corner.medium})`),o(`var(--m3e-search-view-contained-docked-bar-shape, ${v.shape.corner.full})`),o("var(--m3e-search-view-contained-full-screen-bar-container-height, 3.5rem)")),H$=o("var(--m3e-search-view-docked-container-min-height, 240px)"),O$=o("var(--m3e-search-view-docked-container-max-height, calc(100vh * 0.6667))"),F$=o("var(--m3e-search-view-contained-docked-results-space, 0.25rem)"),B$=o("var(--m3e-search-view-docked-results-bottom-space, 1rem)"),V$=o(`var(--m3e-search-view-docked-scrim-color, ${v.color.scrim})`),q$=o("var(--m3e-search-view-docked-scrim-opacity, 32%)"),R$=i`m3e-search-view input[slot="input"]::placeholder { user-select: none; color: ${i$}; font-size: ${r$}; font-weight: ${s$}; line-height: ${n$}; letter-spacing: ${l$}; }`,U$=i`:host { display: block; } .base { position: relative; width: 100%; } .anchor { position: absolute; width: 100%; visibility: hidden; } .view { display: flex; flex-direction: column; box-sizing: border-box; width: 100%; outline: none; padding: unset; margin: unset; border: unset; } .header { flex: none; display: flex; align-items: center; } .bar { flex: 1 1 auto; } :host(:state(-fullscreen)) .bar { transition: ${o(`margin ${v.motion.duration.short2} ${v.motion.easing.standard}`)}; } :host(:state(-fullscreen)[contained]:not([open])) .bar { margin-inline-start: ${T$}; margin-inline-end: ${P$}; } :host(:state(-fullscreen)[contained][open]) .bar, :host(:state(-fullscreen)[contained][open]) .results { margin-inline-start: ${I$}; margin-inline-end: ${W$}; } .icon { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 3rem; } ::slotted([slot="search-icon"]), .search-icon, ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: ${o$} !important; } .results { overflow: hidden; flex: 1 1 auto; display: flex; flex-direction: column; } .scroll-container { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; scrollbar-color: ${v.scrollbar.color}; } .view:not(:popover-open) .results, .view.closing .results { display: none; } :host(:not(:is(:state(-clearable), [open]))) .clear { display: none; } ::slotted([slot="clear-icon"]), .clear-icon { width: 1em; font-size: ${o$} !important; } slot[name="clear-icon"] { --m3e-icon-size: ${o$}; } :host(:state(-fullscreen)) .header { transition: height 150ms cubic-bezier(0.2, 0, 0, 1); } :host(:state(-fullscreen)) .view:popover-open:not(.closing) .header { height: ${z$}; } :host(:state(-fullscreen):not([open])) .header, :host(:state(-fullscreen)[open]) .view.closing .header { height: ${A$}; } :host(:state(-fullscreen)[open]) .bar { --m3e-search-bar-container-height: ${A$}; } :host(:state(-fullscreen)) .anchor { height: ${A$}; } :host(:state(-fullscreen)) .view:popover-open { border-radius: ${L$}; } :host(:state(-fullscreen)[contained]) .view:popover-open { background-color: ${C$}; } :host(:state(-fullscreen):not([contained])) .view:popover-open { background-color: ${k$}; } :host(:state(-docked)[open]) .header, :host(:state(-docked)) .anchor { height: ${M$}; } :host(:not([contained])[open]) .results { border-top-width: ${_$}; border-top-style: solid; border-top-color: ${S$}; } :host(:state(-docked)[contained]) .results { margin-top: ${D$}; } :host(:state(-docked):not([contained])[open]) .view { background-color: ${k$}; --m3e-search-bar-container-color: ${k$}; } :host(:state(-docked)[contained]) .results { background-color: ${k$}; } :host(:state(-docked):not([contained])[open]) .view, :host(:state(-docked)[contained]) .results { border-radius: ${E$}; } :host(:state(-docked)) .results { min-height: calc(${H$} - ${M$}); max-height: calc(${O$} - ${M$}); } :host(:state(-docked)) .scroll-container { scrollbar-width: ${v.scrollbar.thinWidth}; } :host(:state(-docked):not([contained])) .scroll-container { padding-bottom: ${B$}; } :host(:state(-docked)[contained]) .scroll-container { padding: ${F$}; } :host(:state(-docked)) .results { transform-origin: top; transition: ${o(`transform ${v.motion.duration.short2} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short2} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-docked):not([open])) .results { transform: scaleY(0.8); } :host(:state(-docked)[open]) .results { transform: scaleY(1); } @starting-style { :host(:state(-docked)[open]) .results { transform: scaleY(0.8); } } :host(:state(-docked)[contained]) .view { background-color: transparent; } :host(:state(-docked):not([open])) .view { transition: ${o(`border-radius ${v.motion.duration.long2} ${v.motion.easing.standard},\n background-color ${v.motion.duration.long2} ${v.motion.easing.standard}`)}; } :host(:state(-docked):not([open])) .view::backdrop { transition: ${o(`background-color ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-docked)) .view::backdrop { background-color: color-mix(in srgb, ${V$} 0%, transparent); margin-inline-end: -20px; } :host(:state(-docked)[open]) .view::backdrop { background-color: color-mix( in srgb, ${V$} ${q$}, transparent ); transition: ${o(`background-color ${v.motion.duration.long2} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.long2} ${v.motion.easing.standard} allow-discrete`)}; } @starting-style { :host(:state(-docked)[open]) .view::backdrop { background-color: color-mix(in srgb, ${V$} 0%, transparent); } } :host(:state(-fullscreen)) .view:popover-open { width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; overflow: hidden; } @media (prefers-reduced-motion) { :host(:state(-fullscreen)) .bar, :host(:state(-fullscreen)) .header, :host(:state(-docked)) .results, :host(:state(-docked):not([open])) .view, :host(:state(-docked):not([open])) .view::backdrop, :host(:state(-docked)[open]) .view::backdrop { transition: none; } } @media (forced-colors: active) { :host(:not([contained])[open]) .bar { --_search-bar-forced-color-outline-style: none; } :host(:state(-docked):not([contained])[open]) .view, :host(:state(-docked)[contained]) .results { border: 1px solid CanvasText; } :host(:not([contained])[open]) .results { border-top-color: CanvasText; } }`;var N$,j$,Y$,K$,Z$,G$,X$,J$,Q$,ex;let tx=class extends(x(P(r),"clear")){constructor(){super(...arguments),N$.add(this),j$.set(this,void 0),Y$.set(this,()=>e(this,N$,"m",Q$).call(this)),this.clearable=!1,this.clearLabel="Clear"}clear(){e(this,j$,"f")&&(e(this,j$,"f").value="",e(this,N$,"m",Q$).call(this),this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})))}render(){return s`<div class="base" @click="${e(this,N$,"m",Z$)}"><slot name="leading" @slotchange="${e(this,N$,"m",G$)}"></slot><slot name="input" @slotchange="${e(this,N$,"m",J$)}"></slot>${e(this,N$,"m",K$).call(this)}<slot name="trailing" @slotchange="${e(this,N$,"m",X$)}"></slot></div>`}};var ax,ox,ix,rx,sx,nx,lx,cx,dx,hx,mx,px,ux,vx,bx,fx,gx,yx,$x,xx,wx,kx,Cx,Sx,_x,Lx,zx,Ex,Mx,Tx,Px,Ix;j$=new WeakMap,Y$=new WeakMap,N$=new WeakSet,K$=function(){return this.clearable?s`<div class="clear"><m3e-icon-button aria-label="${this.clearLabel}" @click="${e(this,N$,"m",ex)}"><slot name="clear-icon"><svg class="clear-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button></div>`:n},Z$=function(){this.matches(":focus-within")||e(this,j$,"f")?.focus()},G$=function(e){k(this,"-with-leading",g(e.target))},X$=function(e){k(this,"-with-trailing",g(e.target))},J$=function(t){const o=t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLInputElement);o!=e(this,j$,"f")&&(e(this,j$,"f")?.removeEventListener("input",e(this,Y$,"f")),a(this,j$,o,"f"),e(this,j$,"f")?.addEventListener("input",e(this,Y$,"f")),e(this,j$,"f")&&(e(this,j$,"f").role=e(this,j$,"f").role||"searchbox",e(this,j$,"f").inputMode=e(this,j$,"f").inputMode||"search",e(this,j$,"f").type="text"),e(this,N$,"m",Q$).call(this))},Q$=function(){k(this,"-clearable",this.clearable&&(e(this,j$,"f")?.value??"").length>0)},ex=function(){this.clear(),e(this,j$,"f")?.focus()},B(x$),tx.styles=w$,t([m({type:Boolean,reflect:!0})],tx.prototype,"clearable",void 0),t([m({attribute:"clear-label"})],tx.prototype,"clearLabel",void 0),tx=t([$("m3e-search-bar")],tx);let Wx=class extends(x(M(P(r)),"clear","query")){constructor(){super(),ax.add(this),ox.set(this,void 0),ix.set(this,!1),rx.set(this,()=>e(this,ax,"m",$x).call(this)),sx.set(this,()=>e(this,ax,"m",kx).call(this)),nx.set(this,t=>e(this,ax,"m",Lx).call(this,t)),lx.set(this,()=>e(this,ax,"m",_x).call(this)),cx.set(this,new W(this)),dx.set(this,new D(this)),this._clearable=!1,hx.set(this,void 0),mx.set(this,void 0),px.set(this,void 0),this.contained=!1,this.mode="docked",this.open=!1,this.clearLabel="Clear",this.closeLabel="Close",this.hideSearchIcon=!1,new K(this,{callback:e=>this._handleFocusChange(e)})}get currentMode(){return this._mode??("fullscreen"!==this.mode?"docked":"fullscreen")}set currentMode(e){this._mode=e}clear(){e(this,ox,"f")&&(e(this,ox,"f").value="",e(this,ax,"m",wx).call(this),this.dispatchEvent(new CustomEvent("query",{detail:{term:""},bubbles:!0,composed:!0})),this.dispatchEvent(new Event("clear",{bubbles:!0,composed:!0})))}disconnectedCallback(){super.disconnectedCallback(),this._mode=void 0,e(this,px,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.mode&&e(this,ax,"m",gx).call(this)}willUpdate(t){if(super.willUpdate(t),t.has("mode")){e(this,px,"f")?.call(this);const a=t.get("mode");a&&a!==this.mode&&this.open&&(this.open=!1),"auto"===this.mode?e(this,ax,"m",gx).call(this):(this._mode=void 0,e(this,ax,"m",xx).call(this))}t.has("_mode")&&e(this,ax,"m",xx).call(this)}updated(t){super.updated(t),t.has("open")&&(this.open?"fullscreen"===this.currentMode?e(this,ax,"m",Px).call(this):e(this,ax,"m",Ex).call(this):"fullscreen"===(e(this,hx,"f")??this.currentMode)?e(this,ax,"m",Ix).call(this):e(this,ax,"m",Mx).call(this))}render(){return s`<div class="base"><div class="anchor"></div><div role="${Ne(this.open?"dialog":void 0)}" aria-modal="${Ne(this.open?"true":void 0)}" aria-labelledby="${Ne(this.open?"header":void 0)}" class="view" tabindex="-1" @keydown="${e(this,ax,"m",zx)}"><m3e-focus-trap ?disabled="${!this.open}"><div class="header" id="header"><m3e-search-bar class="bar">${e(this,ax,"m",ux).call(this)} ${this.open?s`<slot name="open-leading" slot="leading"></slot>`:s`<slot name="closed-leading" slot="leading"></slot>`}<slot name="input" slot="input" @slotchange="${e(this,ax,"m",yx)}"></slot>${e(this,ax,"m",fx).call(this)} ${this.open?s`<slot name="open-trailing" slot="trailing"></slot>`:s`<slot name="closed-trailing" slot="trailing"></slot>`}</m3e-search-bar></div><div class="results"><div class="scroll-container"><slot></slot></div></div></m3e-focus-trap></div></div>`}_handleFocusChange(e){e||"docked"!==this.currentMode||(this.clear(),this.open=!1)}};var Dx,Ax,Hx,Ox,Fx;ox=new WeakMap,ix=new WeakMap,rx=new WeakMap,sx=new WeakMap,nx=new WeakMap,lx=new WeakMap,cx=new WeakMap,dx=new WeakMap,hx=new WeakMap,mx=new WeakMap,px=new WeakMap,ax=new WeakSet,ux=function(){return!this.open&&this.hideSearchIcon?n:s`<div class="icon" slot="leading">${this.open?e(this,ax,"m",bx).call(this):e(this,ax,"m",vx).call(this)}</div>`},vx=function(){return s`<slot name="search-icon"><svg class="search-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg></slot>`},bx=function(){return s`<m3e-icon-button class="close" slot="leading" aria-label="${this.closeLabel}" @click="${e(this,ax,"m",Cx)}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor">${"docked"===this.currentMode?d`<path d="m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"/>`:d`<path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"/>`}</svg></slot></m3e-icon-button>`},fx=function(){return s`<m3e-icon-button class="clear" slot="trailing" aria-label="${this.open&&!this._clearable?this.closeLabel:this.clearLabel}" @click="${e(this,ax,"m",Sx)}"><slot name="clear-icon"><svg class="clear-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`},gx=function(){a(this,px,Xe.observe([Je.XSmall],t=>{const a=this.currentMode;this._mode=t.get(Je.XSmall)?"fullscreen":"docked",a!==this._mode&&this.open&&(this.open=!1),e(this,ax,"m",xx).call(this)}),"f")},yx=function(t){const o=t.target.assignedElements({flatten:!0}).find(e=>e instanceof HTMLInputElement);o!=e(this,ox,"f")&&(e(this,ox,"f")?.removeEventListener("input",e(this,rx,"f")),e(this,ox,"f")?.removeEventListener("focus",e(this,sx,"f")),e(this,ox,"f")?.removeEventListener("keydown",e(this,nx,"f")),e(this,ox,"f")?.removeEventListener("pointerdown",e(this,lx,"f")),a(this,ox,o,"f"),e(this,ox,"f")?.addEventListener("input",e(this,rx,"f")),e(this,ox,"f")?.addEventListener("focus",e(this,sx,"f")),e(this,ox,"f")?.addEventListener("keydown",e(this,nx,"f")),e(this,ox,"f")?.addEventListener("pointerdown",e(this,lx,"f")),e(this,ox,"f")&&(e(this,ox,"f").role=e(this,ox,"f").role||"searchbox",e(this,ox,"f").inputMode=e(this,ox,"f").inputMode||"search",e(this,ox,"f").type="text",e(this,ox,"f").ariaHasPopup="dialog"),e(this,ax,"m",wx).call(this))},$x=function(){e(this,ax,"m",wx).call(this),this.open?this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,ox,"f")?.value??""},bubbles:!0,composed:!0})):this.open=!0},xx=function(){k(this,"-fullscreen","fullscreen"===this.currentMode),k(this,"-docked","docked"===this.currentMode)},wx=function(){this._clearable=(e(this,ox,"f")?.value??"").length>0,k(this,"-clearable",this._clearable)},kx=function(){this.open=!e(this,ix,"f"),a(this,ix,!1,"f")},Cx=function(){e(this,ox,"f")&&(e(this,ox,"f").value&&this.clear(),a(this,ix,!0,"f"),e(this,ox,"f")?.focus())},Sx=function(){e(this,ox,"f")&&(e(this,ox,"f").value?this.clear():a(this,ix,!0,"f"),e(this,ox,"f")?.focus())},_x=function(){!this.open&&e(this,ox,"f")?.matches(":focus")&&(this.open=!0)},Lx=function(e){if(this.open&&"Escape"===e.key&&!e.shiftKey&&!e.ctrlKey){e.preventDefault();e.target.value&&this.clear(),this.open=!1}},zx=function(t){!this.open||"Escape"!==t.key||t.shiftKey||t.ctrlKey||(t.preventDefault(),e(this,ax,"m",Cx).call(this))},Ex=async function(){if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!1);a(this,hx,this.currentMode,"f");const t=this._view;e(this,mx,"f")?.call(this),a(this,mx,await qe(t,this._anchor,{position:"bottom"},(e,t)=>{const a=this._view;a.style.top=t-this._anchor.clientHeight+"px",a.style.width=`${this._anchor.clientWidth}px`,"rtl"===Ve.current?(a.style.right=window.innerWidth-e-this.clientWidth+"px",a.style.left=""):(a.style.left=`${e}px`,a.style.right="")}),"f"),this._anchor.style.position="relative",t.popover="manual",t.style.position="absolute",t.showPopover(),e(this,cx,"f").lock(),e(this,dx,"f").lock(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,ox,"f")?.value??""},bubbles:!0,composed:!0}))},Mx=function(){const t=this._view;"manual"===t.popover&&(this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0,cancelable:!0}))?(a(this,hx,void 0,"f"),e(this,cx,"f").unlock(),e(this,dx,"f").unlock(),S()?e(this,ax,"m",Tx).call(this):(t.classList.add("closing"),t.addEventListener("transitionend",()=>e(this,ax,"m",Tx).call(this),{once:!0}))):this.open=!0)},Tx=function(){e(this,mx,"f")?.call(this),a(this,mx,void 0,"f");const t=this._view;t.classList.remove("closing"),t.style.position="",t.style.width="",t.style.top="",t.style.left="",t.style.right="",t.hidePopover(),t.popover=null,this._anchor.style.position="",this.dispatchEvent(new ToggleEvent("toggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0}))},Px=async function(){if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!1);a(this,hx,this.currentMode,"f"),e(this,cx,"f").lock(),e(this,dx,"f").lock();const t=this._view;if(e(this,mx,"f")?.call(this),S())t.style.position="fixed",t.popover="manual",t.showPopover(),this._anchor.style.position="relative";else{const e=t.getBoundingClientRect(),a="rtl"===Ve.current?window.innerWidth-e.right:e.left;t.style.position="fixed",t.popover="manual",t.showPopover(),this._anchor.style.position="relative",t.animate([{transform:`translateX(${a}px)`,width:`${e.width}px`,top:`${e.top}px`,height:`${e.height}px`},{transform:"translateX(0px)",width:"100vw",top:"0px",height:"100vh"}],{duration:150,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"})}this.dispatchEvent(new ToggleEvent("toggle",{oldState:"closed",newState:"open",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("query",{detail:{term:e(this,ox,"f")?.value??""},bubbles:!0,composed:!0}))},Ix=async function(){const t=this._view;if("manual"!==t.popover)return;if(!this.dispatchEvent(new ToggleEvent("beforetoggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0,cancelable:!0})))return void(this.open=!0);a(this,hx,void 0,"f"),e(this,cx,"f").unlock(),e(this,dx,"f").unlock();const o=this._anchor;if(!S()){const e=t.getBoundingClientRect(),a=o.getBoundingClientRect(),i="rtl"===Ve.current?window.innerWidth-e.right:e.left,r="rtl"===Ve.current?window.innerWidth-a.right:a.left,s="rtl"===Ve.current?i-r:r-i;t.classList.add("closing"),await t.animate([{transform:"translateX(0px)",width:`${e.width}px`,top:`${e.top}px`,height:`${e.height}px`},{transform:`translateX(${s}px)`,width:`${a.width}px`,top:`${a.top}px`,height:`${a.height}px`}],{duration:150,easing:"cubic-bezier(0.2, 0.0, 0, 1.0)"}).finished}t.hidePopover(),t.style.position="",t.popover=null,t.classList.remove("closing"),o.style.position="",this.dispatchEvent(new ToggleEvent("toggle",{oldState:"open",newState:"closed",bubbles:!0,composed:!0}))},B(R$),Wx.styles=U$,t([u()],Wx.prototype,"_clearable",void 0),t([u()],Wx.prototype,"_mode",void 0),t([h(".anchor")],Wx.prototype,"_anchor",void 0),t([h(".view")],Wx.prototype,"_view",void 0),t([m({type:Boolean,reflect:!0})],Wx.prototype,"contained",void 0),t([m({reflect:!0})],Wx.prototype,"mode",void 0),t([m({type:Boolean,reflect:!0})],Wx.prototype,"open",void 0),t([m({attribute:"clear-label"})],Wx.prototype,"clearLabel",void 0),t([m({attribute:"close-label"})],Wx.prototype,"closeLabel",void 0),t([m({attribute:"hide-search-icon",type:Boolean})],Wx.prototype,"hideSearchIcon",void 0),t([y(40)],Wx.prototype,"_handleFocusChange",null),Wx=t([$("m3e-search-view")],Wx);let Bx=Fx=class extends(te(ae($e(Y(P(f(r,"radio"),!0)))))){constructor(){super(...arguments),Dx.add(this),Ax.set(this,t=>e(this,Dx,"m",Ox).call(this,t)),this.value="on"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,Ax,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ax,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){const t=this.closest("m3e-segmented-button");t&&(this.role=t.multi?"button":"radio"),super.update(e),e.has("checked")&&t?.[We].notifySelectionChange(this),e.has("disabled")&&(this.disabled?this.nextElementSibling instanceof Fx&&(this.nextElementSibling.disabled?this.style.removeProperty("--_segmented-button-disabled-outline-color"):this.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`)):(this.style.removeProperty("--_segmented-button-disabled-outline-color"),this.previousElementSibling instanceof Fx&&(this.previousElementSibling.disabled?this.previousElementSibling.style.setProperty("--_segmented-button-disabled-outline-color",`var(--m3e-segmented-button-outline-color, ${v.color.outline})`):this.previousElementSibling.style.removeProperty("--_segmented-button-disabled-outline-color"))))}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="icon" aria-hidden="true"><svg class="check" viewBox="0 -960 960 960"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg><slot name="icon" @slotchange="${e(this,Dx,"m",Hx)}"></slot></div><div class="label"><slot></slot></div></div></div>`}};var Vx,qx,Rx,Ux,Nx,jx;Ax=new WeakMap,Dx=new WeakSet,Hx=function(e){k(this,"-with-icon",g(e.target))},Ox=function(e){if(e.defaultPrevented)return;const t=this.closest("m3e-segmented-button");if(t&&(t.multi||!this.checked)){const e=this.checked;this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-segmented-button")?.[We].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.checked=e}},Bx.styles=i`:host { display: inline-block; position: relative; vertical-align: middle; outline: none; user-select: none; flex: 1 1 auto; min-width: 0; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { display: inline-flex; vertical-align: middle; align-items: center; width: 100%; height: calc(var(--m3e-segmented-button-height, 2.5rem) + ${v.density.calc(-3)}); box-sizing: border-box; border-width: var(--m3e-segmented-button-outline-thickness, 1px); border-color: var(--m3e-segmented-button-outline-color, ${v.color.outline}); border-style: solid; border-radius: inherit; border-inline-start-style: var(--_segmented-button-left-border, solid); transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .wrapper { width: 100%; overflow: hidden; display: inline-flex; align-items: center; padding-inline-start: var(--m3e-segmented-button-padding-start, 1rem); padding-inline-end: var(--m3e-segmented-button-padding-end, 1rem); column-gap: var(--m3e-segmented-button-spacing, 0.5rem); } .label { font-size: var(--m3e-segmented-button-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var(--m3e-segmented-button-font-weight, ${v.typescale.standard.label.large.fontWeight}); line-height: var(--m3e-segmented-button-line-height, ${v.typescale.standard.label.large.lineHeight}); letter-spacing: var(--m3e-segmented-button-tracking, ${v.typescale.standard.label.large.tracking}); justify-self: center; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } .icon { display: flex; align-items: center; justify-content: center; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not(:disabled)) { cursor: pointer; } :host([checked]:not(:state(-hide-selection))) .wrapper, :host(:state(-with-icon)) .wrapper { padding-inline-start: var(--m3e-segmented-button-with-icon-padding-start, 0.75rem); } :host(:not(:disabled)[checked]) .base { background-color: var(--m3e-segmented-button-selected-container-color, ${v.color.secondaryContainer}); --m3e-state-layer-hover-color: var( --m3e-segmented-button-selected-container-hover-color, ${v.color.onSecondaryContainer} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-selected-container-focus-color, ${v.color.onSecondaryContainer} ); --m3e-ripple-color: var(--m3e-segmented-button-selected-ripple-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .label { color: var(--m3e-segmented-button-selected-label-text-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled)[checked]) .icon { color: var(--m3e-segmented-button-selected-icon-color, ${v.color.onSecondaryContainer}); } :host(:not(:disabled):not([checked])) .base { --m3e-state-layer-hover-color: var( --m3e-segmented-button-unselected-container-hover-color, ${v.color.onSurface} ); --m3e-state-layer-focus-color: var( --m3e-segmented-button-unselected-container-focus-color, ${v.color.onSurface} ); --m3e-ripple-color: var(--m3e-segmented-button-unselected-ripple-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .label { color: var(--m3e-segmented-button-unselected-label-text-color, ${v.color.onSurface}); } :host(:not(:disabled):not([checked])) .icon { color: var(--m3e-segmented-button-unselected-icon-color, ${v.color.onSurface}); } :host(:not(:state(-with-icon))) .icon { margin-inline-start: calc(0px - var(--m3e-segmented-button-spacing, 0.5rem)); transition: margin-inline-start ${v.motion.spring.fastEffects}; } .check, ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-segmented-button-icon-size, 1.125rem) !important; } :host(:not([checked])) .check, :host(:state(-hide-selection)) .check, :host(:state(-hide-selection):not(:state(-with-icon))) .icon { display: none; } :host([checked]) .icon { margin-inline-start: 0; } :host([checked]:not(:state(-hide-selection))) ::slotted([slot="icon"]) { display: none !important; } :host(:disabled) .base { border-color: color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ); border-inline-end-color: var( --_segmented-button-disabled-outline-color, color-mix( in srgb, var(--m3e-segmented-button-disabled-outline-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-outline-opacity, 12%), transparent ) ); } :host(:disabled) .label { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-label-text-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-label-text-opacity, 38%), transparent ); } :host(:disabled) .icon { color: color-mix( in srgb, var(--m3e-segmented-button-disabled-icon-color, ${v.color.onSurface}) var(--m3e-segmented-button-disabled-icon-opacity, 38%), transparent ); } @media (prefers-reduced-motion) { .base, .icon, .label { transition: none; } } @media (forced-colors: active) { .base, .icon, .label { transition: none !important; } :host(:disabled) .label, :host(:disabled) .icon { color: GrayText; } :host(:not([selected]):not(:disabled)) .label, :host(:not([selected]):not(:disabled)) .icon { color: ButtonText; } :host(:not(:disabled)[checked]) .base { background-color: ButtonText; } :host(:not(:disabled)[checked]) .label, :host(:not(:disabled)[checked]) .icon { forced-color-adjust: none; color: ButtonFace; } :host { --m3e-segmented-button-outline-color: ButtonText; } }`,t([h(".focus-ring")],Bx.prototype,"_focusRing",void 0),t([h(".state-layer")],Bx.prototype,"_stateLayer",void 0),t([h(".ripple")],Bx.prototype,"_ripple",void 0),t([m()],Bx.prototype,"value",void 0),Bx=Fx=t([$("m3e-button-segment")],Bx);let Yx=class extends(Q(te(ae(se(Y(P(f(r,"radiogroup")))))))){constructor(){super(...arguments),Vx.add(this),qx.set(this,void 0),this[jx]=(new De).withWrap().withDirectionality(Ve.current).onActiveItemChange(()=>this[We].activeItem?.click()),this.multi=!1,this.hideSelectionIndicator=!1}get segments(){return this[We]?.items??[]}get selected(){return this[We]?.selectedItems??[]}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(qx=new WeakMap,Vx=new WeakSet,jx=We,le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}connectedCallback(){super.connectedCallback(),this[We].multi=this.multi,this[We].disableRovingTabIndex(this.multi),a(this,qx,Ve.observe(()=>this[We].directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,qx,"f")?.call(this)}update(e){super.update(e),e.has("disabled")&&(void 0!==e.get("disabled")||this.disabled)&&(this[We].disabled=this.disabled),e.has("multi")&&(this.role=this.multi?"group":"radiogroup",this[We].multi=this.multi,this[We].disableRovingTabIndex(this.multi)),(e.has("multi")||e.has("disabled"))&&(this.ariaDisabled=this.multi&&this.disabled?"true":null),e.has("hideSelectionIndicator")&&this.segments.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator))}render(){return s`<slot @slotchange="${e(this,Vx,"m",Rx)}" @keydown="${e(this,Vx,"m",Ux)}" @change="${e(this,Vx,"m",Nx)}"></slot>`}};var Kx,Zx,Gx,Xx,Jx,Qx,ew,tw,aw,ow,iw,rw,sw,nw,lw,cw,dw,hw,mw,pw,uw,vw,bw,fw,gw,yw,$w,xw,ww;Rx=function(){const{added:e}=this[We].setItems([...this.querySelectorAll("m3e-button-segment")]);e.forEach(e=>k(e,"-hide-selection",this.hideSelectionIndicator)),this[We].items.forEach((e,t)=>{k(e,"-first",0==t),k(e,"-last",t==this[We].items.length-1)})},Ux=function(e){this.multi||this[We].onKeyDown(e)},Nx=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},Yx.styles=i`:host { display: inline-flex; vertical-align: middle; align-items: center; } ::slotted(:state(-first)) { border-start-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); border-end-start-radius: var(--m3e-segmented-button-start-shape, ${v.shape.corner.full}); } ::slotted(:state(-last)) { border-start-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); border-end-end-radius: var(--m3e-segmented-button-end-shape, ${v.shape.corner.full}); } ::slotted(:not(:state(-first))) { --_segmented-button-left-border: none; }`,t([m({type:Boolean})],Yx.prototype,"multi",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],Yx.prototype,"hideSelectionIndicator",void 0),Yx=t([$("m3e-segmented-button")],Yx);let kw=ww=class extends(N(Q(ee(te(ae(oe(ie(se(Y(P(f(r,"combobox")))))))))))){constructor(){super(),Kx.add(this),this._options=new Array,Zx.set(this,void 0),Gx.set(this,void 0),Xx.set(this,!1),Jx.set(this,!1),Qx.set(this,"m3e-select-"+ww.__nextId++),ew.set(this,`${e(this,Qx,"f")}-list`),tw.set(this,t=>e(this,Kx,"m",dw).call(this,t)),aw.set(this,t=>e(this,Kx,"m",hw).call(this,t)),ow.set(this,t=>e(this,Kx,"m",mw).call(this,t)),iw.set(this,t=>e(this,Kx,"m",uw).call(this,t)),rw.set(this,t=>e(this,Kx,"m",pw).call(this,t)),this._listKeyManager=(new ze).withWrap().withHomeAndEnd().withPageUpAndDown().withVerticalOrientation().withTypeahead().onActiveItemChange(()=>{this._listKeyManager.activeItem&&e(this,Kx,"m",yw).call(this,this._listKeyManager.activeItem)}),this.hideSelectionIndicator=!1,this.multi=!1,this.panelClass="",new w(this,{config:{childList:!0,subtree:!0},callback:()=>e(this,Kx,"m",cw).call(this)})}get options(){return this._options??[]}get selected(){return this.options.filter(e=>e.selected)}get value(){const e=this.selected.filter(e=>!e.disabled).map(e=>e.value);switch(e.length){case 0:return null;case 1:return e[0];default:return e}}get[(Zx=new WeakMap,Gx=new WeakMap,Xx=new WeakMap,Jx=new WeakMap,Qx=new WeakMap,ew=new WeakMap,tw=new WeakMap,aw=new WeakMap,ow=new WeakMap,iw=new WeakMap,rw=new WeakMap,Kx=new WeakSet,sw=function(){return this._listKeyManager?.items??[]},nw=function(){return e(this,Kx,"a",sw).filter(e=>e.selected)},le)](){const e=this.value;if(Array.isArray(e)){const t=new FormData;for(const a of e)t.append(this.name,a);return t}return e}get shouldLabelFloat(){return this.selected.filter(e=>!e.isEmpty).length>0}onContainerClick(){a(this,Jx,!0,"f"),e(this,Kx,"m",bw).call(this),this.focus({preventScroll:!0})}clear(t=!1){const a=e(this,Kx,"a",nw),o=a.length>0;o&&(a.forEach(t=>{t.selected=!1,e(this,Kx,"m",$w).call(this,t)}),this.requestUpdate()),e(this,Kx,"m",gw).call(this),o&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&this.focus()}connectedCallback(){super.connectedCallback(),this.ariaHasPopup="listbox",this.ariaExpanded="false",this.addEventListener("click",e(this,tw,"f")),this.addEventListener("keydown",e(this,aw,"f")),this.addEventListener("keyup",e(this,ow,"f")),e(this,Kx,"m",cw).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,tw,"f")),this.removeEventListener("keydown",e(this,aw,"f")),this.removeEventListener("keyup",e(this,ow,"f"))}update(t){super.update(t),t.has("hideSelectionIndicator")&&e(this,Kx,"a",sw).forEach(e=>k(e,"-hide-selection-indicator",this.hideSelectionIndicator))}firstUpdated(t){super.firstUpdated(t),this._focusRing?.attach(this),e(this,Kx,"a",lw)&&this._focusRing&&(this._focusRing.style.display="none")}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="base"><m3e-text-overflow><slot name="value">${this.selected.filter(e=>!e.isEmpty).map((e,t)=>t>0?s`<span>, </span>${e.label}`:e.label)}</slot></m3e-text-overflow><div class="arrow-wrapper" aria-hidden="true"><slot name="arrow"><svg class="arrow" viewBox="0 -960 960 960" fill="currentColor"><path d="M480-360 280-560h400L480-360Z"/></svg></slot></div></div><div class="options" aria-hidden="true"><slot></slot></div>`}};lw=function(){return this.closest("m3e-form-field")},cw=function(){a(this,Zx,this.cloneNode(!0),"f");const{added:t}=this._listKeyManager.setItems([...e(this,Zx,"f").querySelectorAll("m3e-option")]);t.forEach(t=>{t.id=t.id||`${e(this,Qx,"f")}-option-${this._listKeyManager.items.indexOf(t)}`,k(t,"-hide-selection-indicator",this.hideSelectionIndicator)}),this._options=[...this.querySelectorAll("m3e-option")],e(this,Kx,"a",lw)?.notifyControlStateChange(),e(this,Gx,"f")&&(e(this,Gx,"f").replaceChildren(...e(this,Zx,"f").childNodes),0==this._options.length&&e(this,Kx,"m",gw).call(this))},dw=function(t){t.defaultPrevented||this.disabled||e(this,Kx,"m",bw).call(this)},hw=function(t){if(!t.defaultPrevented)switch(a(this,Jx,!1,"f"),t.key){case" ":case"Enter":t.preventDefault(),this.multi?e(this,Gx,"f")||(a(this,Xx,!0,"f"),e(this,Kx,"m",bw).call(this)):(e(this,Gx,"f")&&this._listKeyManager.activeItem&&e(this,Kx,"m",xw).call(this,this._listKeyManager.activeItem),e(this,Gx,"f")?.isOpen?S()?e(this,Kx,"m",gw).call(this):setTimeout(()=>e(this,Kx,"m",gw).call(this),150):e(this,Kx,"m",fw).call(this));break;case"Escape":case"Tab":e(this,Kx,"m",gw).call(this);break;case"Down":case"ArrowDown":this.multi&&!e(this,Gx,"f")?e(this,Kx,"m",bw).call(this):(this._listKeyManager.onKeyDown(t),!e(this,Gx,"f")&&this._listKeyManager.activeItem&&e(this,Kx,"m",xw).call(this,this._listKeyManager.activeItem));break;default:this._listKeyManager.onKeyDown(t),this.multi||e(this,Gx,"f")||!this._listKeyManager.activeItem||e(this,Kx,"m",xw).call(this,this._listKeyManager.activeItem)}},mw=function(t){if(!t.defaultPrevented)if(e(this,Xx,"f"))a(this,Xx,!1,"f");else switch(t.key){case" ":case"Enter":if(!this.multi)return;t.preventDefault(),e(this,Gx,"f")&&this._listKeyManager.activeItem&&e(this,Kx,"m",xw).call(this,this._listKeyManager.activeItem)}},pw=function(t){if(2===t.button)return;t.preventDefault(),t.stopImmediatePropagation();const a=t.composedPath().find(e=>e instanceof HTMLElement&&"M3E-OPTION"===e.tagName);a&&!a.disabled&&(e(this,Kx,"m",xw).call(this,a),this._listKeyManager.setActiveItem(a),this.multi?this.requestUpdate():S()?e(this,Kx,"m",gw).call(this):setTimeout(()=>e(this,Kx,"m",gw).call(this),150))},uw=function(t){if(e(this,Gx,"f"))if("closed"!==t.newState){const a=e(this,Kx,"a",nw).find(e=>!e.disabled)??this._listKeyManager.items.find(e=>!e.disabled);this._listKeyManager.setActiveItem(a),a&&_(a,e(this,Gx,"f"),{block:"nearest",behavior:"instant"}),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState}))}else S()?e(this,Kx,"m",vw).call(this,t):setTimeout(()=>e(this,Kx,"m",vw).call(this,t),100)},vw=function(t){e(this,Gx,"f")&&(e(this,Zx,"f")?.replaceChildren(...e(this,Gx,"f").childNodes),e(this,Gx,"f").remove(),e(this,Gx,"f").removeEventListener("toggle",e(this,iw,"f")),e(this,Gx,"f").removeEventListener("pointerdown",e(this,rw,"f")),a(this,Gx,void 0,"f"),this.ariaExpanded="false",this.removeAttribute("aria-controls"),this.removeAttribute("aria-owns"),this.removeAttribute("aria-activedescendant"),this.requestUpdate(),C(this,"-open"),e(this,Kx,"a",lw)?.notifyControlStateChange(),this.dispatchEvent(new ToggleEvent("toggle",{oldState:t.oldState,newState:t.newState})))},bw=function(){this.disabled||(e(this,Gx,"f")?e(this,Kx,"m",gw).call(this):e(this,Kx,"m",fw).call(this))},fw=function(){if(!e(this,Gx,"f")&&0!=this._options.length){if(a(this,Gx,document.createElement("m3e-option-panel"),"f"),this.multi&&(e(this,Gx,"f").ariaMultiSelectable="true"),e(this,Gx,"f").id=e(this,ew,"f"),this.panelClass)for(const t of this.panelClass.split(/\s+/).map(e=>e.trim()).filter(Boolean))e(this,Gx,"f").classList.add(t);e(this,Gx,"f").style.overflowX="hidden",e(this,Gx,"f").fitAnchorWidth=!0,e(this,Gx,"f").addEventListener("toggle",e(this,iw,"f")),e(this,Gx,"f").addEventListener("pointerdown",e(this,rw,"f")),e(this,Zx,"f")&&e(this,Gx,"f").replaceChildren(...e(this,Zx,"f").childNodes),(e(this,Kx,"a",lw)??this).insertAdjacentElement("afterend",e(this,Gx,"f")),this.ariaExpanded="true",this.setAttribute("aria-controls",e(this,ew,"f")),this.setAttribute("aria-owns",e(this,ew,"f")),e(this,Kx,"a",lw)?.notifyControlStateChange(),setTimeout(()=>{e(this,Gx,"f")?.show(this,e(this,Kx,"a",lw)?.menuAnchor),z(this,"-open")})}},gw=function(){e(this,Gx,"f")&&(e(this,Gx,"f").hide(),C(this,"-open"))},yw=function(t){if(this.setAttribute("aria-activedescendant",t.id),e(this,Gx,"f")){_(t,e(this,Gx,"f"),{block:"nearest",behavior:"instant"});const a=!e(this,Jx,"f")&&(this.matches(":focus-visible")||L());e(this,Kx,"a",sw).forEach(e=>{e===t&&a?(e.focusRing?.show(),e.stateLayer?.show("focused")):(e.focusRing?.hide(),e.stateLayer?.hide("focused"))})}},$w=function(e){const t=this._options[this._listKeyManager.items.indexOf(e)];t&&(t.selected=e.selected)},xw=function(t){const a=!this.multi||!t.selected;t.selected!==a&&(t.selected=a,e(this,Kx,"m",$w).call(this,t),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.multi||e(this,Kx,"a",nw).filter(e=>e!==t).forEach(t=>{t.selected=!1,e(this,Kx,"m",$w).call(this,t)}),this.requestUpdate(),e(this,Kx,"a",lw)?.notifyControlStateChange(),this.dispatchEvent(new Event("change",{bubbles:!0}))):(t.selected=!a,e(this,Kx,"m",$w).call(this,t)))},kw.styles=i`:host { display: inline-flex; vertical-align: middle; outline: none; position: relative; font-size: var(--m3e-form-field-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-form-field-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-form-field-tracking, ${v.typescale.standard.body.large.tracking}); min-height: var(--m3e-form-field-line-height, ${v.typescale.standard.body.large.lineHeight}); border-radius: var(--m3e-select-container-shape, ${v.shape.corner.extraSmall}); } :host(:not(:disabled)) { cursor: pointer; } :host(:disabled) { color: color-mix( in srgb, var(--m3e-select-disabled-color, ${v.color.onSurface}) var(--m3e-select-disabled-color-opacity, 38%), transparent ); } .options { display: none; } .base { flex: 1 1 auto; display: inline-flex; align-items: center; overflow: hidden; } .arrow-wrapper { display: flex; align-items: center; justify-content: center; margin-top: var(--_select-arrow-margin-top); } ::slotted([slot="arrow"]), .arrow { vertical-align: middle; width: 1em; height: 1em; font-size: var(--m3e-select-icon-size, 1.5rem); } :host(:state(-open)) .focus-ring { display: none; }`,kw.__nextId=0,t([h(".focus-ring")],kw.prototype,"_focusRing",void 0),t([m({attribute:"hide-selection-indicator",type:Boolean})],kw.prototype,"hideSelectionIndicator",void 0),t([m({type:Boolean})],kw.prototype,"multi",void 0),t([m({attribute:"panel-class"})],kw.prototype,"panelClass",void 0),kw=ww=t([$("m3e-select")],kw);const Cw=o("var(--m3e-shape-size, 3rem)"),Sw=o(`var(--m3e-shape-container-color, ${v.color.primary})`),_w=o(`var(--m3e-shape-transition, clip-path ${v.motion.spring.slowEffects})`),Lw=i`:host { display: inline-block; position: relative; aspect-ratio: 1 / 1; width: ${Cw}; } :host([name]) .wrapper { background-color: ${Sw}; transition: ${_w}; transform-origin: center; } .wrapper { width: 100%; height: 100%; position: relative; isolation: isolate; overflow: hidden; will-change: clip-path; } ::slotted(img), ::slotted(video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } @media (prefers-reduced-motion) { .wrapper { transition: none; } }`,zw={"4-leaf-clover":"M63.0014 190C49.8954 174.339 42 154.126 42 132.06C42 82.321 82.1131 42 131.595 42C153.99 42 174.466 50.2594 190.173 63.9131C205.843 50.2594 226.271 42 248.614 42C297.981 42 338 82.321 338 132.06C338 154.126 330.123 174.339 317.048 190C330.123 205.661 338 225.874 338 247.94C338 297.679 297.981 338 248.614 338C226.271 338 205.843 329.741 190.173 316.087C174.466 329.741 153.99 338 131.595 338C82.1131 338 42 297.679 42 247.94C42 225.874 49.8954 205.661 63.0014 190Z","4-sided-cookie":"M230.389 50.473C293.109 23.2328 356.767 86.8908 329.527 149.611L325.023 159.981C316.707 179.13 316.707 200.87 325.023 220.019L329.527 230.389C356.767 293.109 293.109 356.767 230.389 329.527L220.019 325.023C200.87 316.707 179.13 316.707 159.981 325.023L149.611 329.527C86.8908 356.767 23.2328 293.109 50.473 230.389L54.9768 220.019C63.2934 200.87 63.2934 179.13 54.9768 159.981L50.473 149.611C23.2328 86.8908 86.8908 23.2328 149.611 50.473L159.981 54.9768C179.13 63.2934 200.87 63.2934 220.019 54.9768L230.389 50.473Z","6-sided-cookie":"M134.186 54.5654C165.276 24.4782 214.724 24.4782 245.814 54.5654C255.328 63.7718 266.984 70.4811 279.738 74.0919C321.419 85.8924 346.142 128.586 335.552 170.473C332.312 183.291 332.312 196.709 335.552 209.527C346.142 251.414 321.419 294.108 279.738 305.908C266.984 309.519 255.328 316.228 245.814 325.435C214.724 355.522 165.276 355.522 134.186 325.435C124.672 316.228 113.016 309.519 100.262 305.908C58.5815 294.108 33.8578 251.414 44.4476 209.527C47.6879 196.709 47.6879 183.291 44.4476 170.473C33.8578 128.586 58.5815 85.8924 100.262 74.0919C113.016 70.4811 124.672 63.7718 134.186 54.5654Z","7-sided-cookie":"M142.67 51.7842C146.243 48.6394 148.029 47.067 149.671 45.7954C173.425 27.4015 206.575 27.4015 230.329 45.7954C231.971 47.067 233.757 48.6394 237.33 51.7842C238.526 52.8372 239.124 53.3636 239.724 53.8672C248.136 60.9247 258.171 65.7683 268.92 67.9594C269.688 68.1158 270.471 68.2562 272.038 68.537C276.719 69.3756 279.059 69.7949 281.075 70.2889C310.234 77.4346 330.902 103.411 331.364 133.493C331.396 135.573 331.283 137.953 331.057 142.713C330.982 144.307 330.944 145.104 330.925 145.888C330.665 156.88 333.143 167.763 338.136 177.553C338.493 178.252 338.872 178.953 339.63 180.356C341.894 184.547 343.026 186.642 343.897 188.53C356.503 215.834 349.127 248.226 325.949 267.344C324.347 268.666 322.42 270.061 318.566 272.852C317.276 273.787 316.63 274.254 316.007 274.729C307.27 281.377 300.326 290.105 295.803 300.122C295.48 300.837 295.169 301.571 294.547 303.04C292.69 307.427 291.761 309.62 290.832 311.48C277.393 338.382 247.526 352.798 218.162 346.556C216.132 346.124 213.842 345.484 209.262 344.204C207.728 343.776 206.962 343.562 206.203 343.369C195.569 340.668 184.431 340.668 173.797 343.369C173.038 343.562 172.272 343.776 170.738 344.204C166.158 345.484 163.868 346.124 161.838 346.556C132.474 352.798 102.607 338.382 89.168 311.48C88.2388 309.62 87.3102 307.427 85.453 303.04C84.8311 301.571 84.5202 300.837 84.1975 300.122C79.6741 290.105 72.7297 281.377 63.993 274.729C63.3696 274.254 62.7244 273.787 61.434 272.852C57.5801 270.061 55.6532 268.666 54.0507 267.344C30.873 248.226 23.4965 215.834 36.1027 188.53C36.9742 186.642 38.1062 184.547 40.3703 180.356C41.1283 178.953 41.5074 178.252 41.8636 177.553C46.8568 167.763 49.3353 156.88 49.0745 145.888C49.0559 145.104 49.0182 144.307 48.9426 142.713C48.7168 137.953 48.6039 135.573 48.6359 133.493C49.0982 103.411 69.7665 77.4346 98.9252 70.2889C100.941 69.7949 103.281 69.3756 107.962 68.537C109.529 68.2562 110.312 68.1158 111.08 67.9594C121.829 65.7683 131.864 60.9247 140.276 53.8672C140.876 53.3636 141.474 52.8372 142.67 51.7842Z","8-leaf-clover":"M338.584 189.998C364.427 238.164 344.902 281.771 295.066 295.061C281.771 344.902 238.164 364.422 189.998 338.584C141.831 364.427 98.2245 344.902 84.9337 295.066C35.0981 281.771 15.573 238.164 41.4157 189.998C15.573 141.831 35.0981 98.2245 84.9337 84.9337C98.2245 35.0981 141.831 15.573 189.998 41.4157C238.164 15.573 281.771 35.0981 295.061 84.9337C344.902 98.2245 364.422 141.831 338.584 189.998Z","9-sided-cookie":"M154.828 43.2756C156.574 41.8498 157.448 41.1369 158.245 40.535C177.03 26.3548 202.97 26.3548 221.755 40.535C222.552 41.1369 223.425 41.8498 225.172 43.2756C225.952 43.9121 226.342 44.2303 226.727 44.5333C235.567 51.4788 246.406 55.4147 257.652 55.7636C258.143 55.7788 258.647 55.785 259.654 55.7975C261.911 55.8255 263.039 55.8395 264.037 55.8898C287.563 57.0742 307.435 73.7107 312.689 96.6205C312.912 97.5928 313.121 98.6991 313.541 100.911C313.728 101.899 313.822 102.393 313.922 102.872C316.219 113.862 321.986 123.828 330.377 131.308C330.743 131.635 331.125 131.962 331.888 132.618C333.599 134.087 334.454 134.821 335.187 135.5C352.445 151.495 356.95 176.983 346.215 197.903C345.76 198.791 345.208 199.773 344.104 201.737C343.611 202.613 343.364 203.052 343.132 203.483C337.812 213.375 335.809 224.708 337.418 235.82C337.488 236.304 337.569 236.8 337.732 237.792C338.096 240.014 338.278 241.125 338.402 242.115C341.318 265.436 328.347 287.851 306.647 296.991C305.726 297.379 304.67 297.778 302.559 298.574C301.617 298.929 301.146 299.107 300.69 299.289C290.241 303.455 281.406 310.852 275.48 320.395C275.221 320.811 274.964 321.243 274.449 322.107C273.297 324.043 272.721 325.011 272.178 325.849C259.387 345.584 235.011 354.436 212.498 347.521C211.543 347.228 210.477 346.856 208.347 346.112C207.396 345.78 206.921 345.614 206.455 345.461C195.767 341.951 184.233 341.951 173.545 345.461C173.079 345.614 172.603 345.78 171.652 346.112C169.522 346.856 168.457 347.228 167.502 347.521C144.989 354.436 120.613 345.584 107.822 325.849C107.279 325.011 106.703 324.043 105.55 322.107C105.036 321.243 104.779 320.811 104.52 320.395C98.5939 310.852 89.7583 303.455 79.3096 299.289C78.8539 299.107 78.3827 298.929 77.4404 298.574C75.3294 297.778 74.274 297.379 73.3529 296.991C51.6523 287.851 38.6819 265.436 41.598 242.115C41.7218 241.125 41.9039 240.014 42.2682 237.792C42.4308 236.8 42.5121 236.304 42.5822 235.82C44.1908 224.708 42.188 213.375 36.8675 203.483C36.6354 203.052 36.389 202.613 35.8962 201.737C34.7921 199.773 34.2401 198.791 33.7845 197.903C23.0499 176.983 27.5544 151.495 44.8128 135.5C45.5454 134.821 46.4007 134.087 48.1113 132.618C48.875 131.962 49.2568 131.635 49.6228 131.308C58.0134 123.828 63.7804 113.862 66.0777 102.872C66.1779 102.393 66.2715 101.899 66.4588 100.911C66.8783 98.699 67.088 97.5928 67.311 96.6204C72.5652 73.7107 92.4369 57.0742 115.962 55.8898C116.961 55.8395 118.089 55.8255 120.346 55.7975C121.353 55.785 121.857 55.7788 122.347 55.7636C133.594 55.4147 144.432 51.4788 153.272 44.5333C153.658 44.2303 154.048 43.9121 154.828 43.2756Z","12-sided-cookie":"M166.697 39.8458C167.238 39.3157 167.508 39.0506 167.743 38.8298C180.246 27.0567 199.754 27.0567 212.257 38.8298C212.492 39.0506 212.762 39.3157 213.303 39.8458C213.628 40.1639 213.79 40.323 213.945 40.4703C221.945 48.1056 233.282 51.1433 244.028 48.5311C244.235 48.4807 244.456 48.4242 244.896 48.311C245.629 48.1224 245.996 48.0282 246.31 47.9542C263.024 44.0098 279.919 53.7642 284.86 70.2114C284.953 70.5199 285.055 70.8847 285.258 71.6143C285.38 72.0522 285.442 72.2711 285.502 72.4758C288.613 83.0884 296.912 91.3875 307.524 94.4985C307.729 94.5585 307.948 94.6195 308.386 94.7417C309.115 94.9452 309.48 95.0469 309.789 95.1396C326.236 100.081 335.99 116.976 332.046 133.69C331.972 134.004 331.878 134.371 331.689 135.104C331.576 135.544 331.519 135.765 331.469 135.972C328.857 146.718 331.894 158.055 339.53 166.055C339.677 166.21 339.836 166.372 340.154 166.697C340.684 167.238 340.949 167.508 341.17 167.743C352.943 180.246 352.943 199.754 341.17 212.257C340.949 212.492 340.684 212.762 340.154 213.303C339.836 213.628 339.677 213.79 339.53 213.945C331.894 221.945 328.857 233.282 331.469 244.028C331.519 244.235 331.576 244.456 331.689 244.896C331.878 245.629 331.972 245.996 332.046 246.31C335.99 263.024 326.236 279.919 309.789 284.86C309.48 284.953 309.115 285.055 308.386 285.258C307.948 285.381 307.729 285.442 307.524 285.502C296.912 288.613 288.613 296.912 285.502 307.524C285.442 307.729 285.381 307.948 285.258 308.386C285.055 309.115 284.953 309.48 284.86 309.789C279.919 326.236 263.024 335.99 246.31 332.046C245.996 331.972 245.629 331.878 244.896 331.689C244.456 331.576 244.235 331.519 244.028 331.469C233.282 328.857 221.945 331.894 213.945 339.53C213.79 339.677 213.628 339.836 213.303 340.154C212.762 340.684 212.492 340.949 212.257 341.17C199.754 352.943 180.246 352.943 167.743 341.17C167.508 340.949 167.238 340.684 166.697 340.154C166.372 339.836 166.21 339.677 166.055 339.53C158.055 331.894 146.718 328.857 135.972 331.469C135.765 331.519 135.544 331.576 135.104 331.689C134.371 331.878 134.004 331.972 133.69 332.046C116.976 335.99 100.081 326.236 95.1396 309.789C95.0469 309.48 94.9452 309.115 94.7417 308.386C94.6195 307.948 94.5585 307.729 94.4985 307.524C91.3875 296.912 83.0884 288.613 72.4758 285.502C72.2711 285.442 72.0522 285.38 71.6143 285.258C70.8847 285.055 70.5199 284.953 70.2114 284.86C53.7642 279.919 44.0098 263.024 47.9542 246.31C48.0282 245.996 48.1224 245.629 48.311 244.896C48.4242 244.456 48.4807 244.235 48.5311 244.028C51.1433 233.282 48.1056 221.945 40.4703 213.945C40.323 213.79 40.1639 213.628 39.8458 213.303C39.3157 212.762 39.0506 212.492 38.8298 212.257C27.0567 199.754 27.0567 180.246 38.8298 167.743C39.0506 167.508 39.3157 167.238 39.8458 166.697C40.1639 166.372 40.323 166.21 40.4703 166.055C48.1056 158.055 51.1433 146.718 48.5311 135.972C48.4807 135.765 48.4242 135.544 48.311 135.104C48.1224 134.371 48.0282 134.004 47.9542 133.69C44.0098 116.976 53.7642 100.081 70.2114 95.1396C70.5199 95.0469 70.8847 94.9452 71.6143 94.7417C72.0522 94.6195 72.2711 94.5585 72.4758 94.4985C83.0884 91.3875 91.3875 83.0884 94.4985 72.4758C94.5585 72.2711 94.6195 72.0522 94.7417 71.6143C94.9452 70.8847 95.0469 70.5199 95.1396 70.2114C100.081 53.7642 116.976 44.0098 133.69 47.9542C134.004 48.0282 134.371 48.1224 135.104 48.311C135.544 48.4242 135.765 48.4807 135.972 48.5311C146.718 51.1433 158.055 48.1056 166.055 40.4703C166.21 40.323 166.372 40.1639 166.697 39.8458Z",burst:"M187.293 26.6421C188.056 25.2785 188.437 24.5966 188.902 24.3108C189.575 23.8964 190.425 23.8964 191.098 24.3108C191.563 24.5966 191.944 25.2785 192.707 26.6421L218.917 73.4925C219.386 74.3306 219.62 74.7497 219.937 75.0046C220.396 75.3737 220.989 75.5326 221.571 75.4425C221.973 75.3802 222.386 75.1345 223.211 74.6431L269.335 47.1743C270.677 46.3748 271.348 45.9751 271.893 45.9598C272.684 45.9377 273.42 46.3624 273.796 47.0581C274.055 47.5379 274.045 48.3191 274.023 49.8814L273.296 103.56C273.283 104.52 273.277 105 273.424 105.38C273.637 105.929 274.071 106.363 274.62 106.576C275 106.723 275.48 106.717 276.44 106.704L330.119 105.977C331.681 105.955 332.462 105.945 332.942 106.204C333.638 106.58 334.062 107.316 334.04 108.107C334.025 108.652 333.625 109.323 332.826 110.665L305.357 156.789C304.865 157.614 304.62 158.027 304.557 158.429C304.467 159.011 304.626 159.604 304.995 160.063C305.25 160.38 305.669 160.614 306.508 161.083L353.358 187.293C354.722 188.056 355.403 188.437 355.689 188.902C356.104 189.575 356.104 190.425 355.689 191.098C355.403 191.563 354.722 191.944 353.358 192.707L306.508 218.917C305.669 219.386 305.25 219.62 304.995 219.937C304.626 220.396 304.467 220.989 304.557 221.571C304.62 221.973 304.865 222.386 305.357 223.211L332.826 269.335C333.625 270.677 334.025 271.348 334.04 271.893C334.062 272.684 333.638 273.42 332.942 273.796C332.462 274.055 331.681 274.045 330.119 274.023L276.44 273.296C275.48 273.283 275 273.277 274.62 273.424C274.071 273.637 273.637 274.071 273.424 274.62C273.277 275 273.283 275.48 273.296 276.44L274.023 330.119C274.045 331.681 274.055 332.462 273.796 332.942C273.42 333.638 272.684 334.062 271.893 334.04C271.348 334.025 270.677 333.625 269.335 332.826L223.211 305.357C222.386 304.865 221.973 304.62 221.571 304.557C220.989 304.467 220.396 304.626 219.937 304.995C219.62 305.25 219.386 305.669 218.917 306.508L192.707 353.358C191.944 354.722 191.563 355.403 191.098 355.689C190.425 356.104 189.575 356.104 188.902 355.689C188.437 355.403 188.056 354.722 187.293 353.358L161.083 306.508C160.614 305.669 160.38 305.25 160.063 304.995C159.604 304.626 159.011 304.467 158.429 304.557C158.027 304.62 157.614 304.865 156.789 305.357L110.665 332.826C109.323 333.625 108.652 334.025 108.107 334.04C107.316 334.062 106.58 333.638 106.204 332.942C105.945 332.462 105.955 331.681 105.977 330.119L106.704 276.44C106.717 275.48 106.723 275 106.576 274.62C106.363 274.071 105.929 273.637 105.38 273.424C105 273.277 104.52 273.283 103.56 273.296L49.8814 274.023C48.3191 274.045 47.5379 274.055 47.0581 273.796C46.3624 273.42 45.9377 272.684 45.9598 271.893C45.9751 271.348 46.3748 270.677 47.1743 269.335L74.6431 223.211C75.1345 222.386 75.3802 221.973 75.4425 221.571C75.5326 220.989 75.3737 220.396 75.0046 219.937C74.7497 219.62 74.3306 219.386 73.4925 218.917L26.6421 192.707C25.2785 191.944 24.5966 191.563 24.3108 191.098C23.8964 190.425 23.8964 189.575 24.3108 188.902C24.5966 188.437 25.2785 188.056 26.6421 187.293L73.4925 161.083C74.3306 160.614 74.7497 160.38 75.0046 160.063C75.3737 159.604 75.5326 159.011 75.4425 158.429C75.3802 158.027 75.1345 157.614 74.6431 156.789L47.1743 110.665C46.3748 109.323 45.9751 108.652 45.9598 108.107C45.9377 107.316 46.3624 106.58 47.0581 106.204C47.5379 105.945 48.3191 105.955 49.8814 105.977L103.56 106.704C104.52 106.717 105 106.723 105.38 106.576C105.929 106.363 106.363 105.929 106.576 105.38C106.723 105 106.717 104.52 106.704 103.56L105.977 49.8814C105.955 48.3191 105.945 47.5379 106.204 47.0581C106.58 46.3624 107.316 45.9377 108.107 45.9598C108.652 45.9751 109.323 46.3748 110.665 47.1743L156.789 74.6431C157.614 75.1345 158.027 75.3802 158.429 75.4425C159.011 75.5326 159.604 75.3737 160.063 75.0046C160.38 74.7497 160.614 74.3306 161.083 73.4925L187.293 26.6421Z",oval:"M271.309 271.309C201.705 340.913 108.877 360.935 63.9707 316.029C19.0648 271.123 39.0867 178.295 108.691 108.691C178.295 39.0867 271.123 19.0648 316.029 63.9707C360.935 108.877 340.913 201.705 271.309 271.309Z",pentagon:"M155.064 49.459C176.093 34.1803 204.569 34.1803 225.598 49.459L322.926 120.171C343.955 135.45 352.754 162.532 344.722 187.253L307.546 301.668C299.514 326.39 276.476 343.127 250.483 343.127H130.18C104.186 343.127 81.1489 326.39 73.1164 301.668L35.9407 187.253C27.9082 162.532 36.7077 135.45 57.737 120.171L155.064 49.459Z",pill:"M116.116 71.7851C169.162 18.7383 255.168 18.7383 308.215 71.7851C361.262 124.832 361.262 210.838 308.215 263.884L263.884 308.215C210.838 361.262 124.832 361.262 71.7851 308.215C18.7383 255.168 18.7383 169.162 71.7851 116.116L116.116 71.7851Z","soft-burst":"M175.147 33.1508C181.983 22.2831 198.017 22.2831 204.853 33.1508L221.238 59.2009C225.731 66.3458 234.797 69.2506 242.692 66.0751L271.475 54.4972C283.482 49.6671 296.455 58.9613 295.507 71.7154L293.235 102.288C292.612 110.673 298.215 118.278 306.494 120.284L336.681 127.601C349.275 130.653 354.23 145.692 345.861 155.461L325.8 178.877C320.298 185.3 320.298 194.7 325.8 201.123L345.861 224.539C354.23 234.308 349.275 249.347 336.681 252.399L306.494 259.716C298.215 261.722 292.612 269.327 293.235 277.712L295.507 308.285C296.455 321.039 283.482 330.333 271.475 325.503L242.692 313.925C234.797 310.749 225.731 313.654 221.238 320.799L204.853 346.849C198.017 357.717 181.983 357.717 175.147 346.849L158.762 320.799C154.269 313.654 145.203 310.749 137.308 313.925L108.525 325.503C96.5177 330.333 83.5454 321.039 84.4931 308.285L86.7649 277.712C87.388 269.327 81.785 261.722 73.5056 259.716L43.3186 252.399C30.7252 249.347 25.7702 234.308 34.1391 224.539L54.1997 201.123C59.7018 194.7 59.7018 185.3 54.1997 178.877L34.1391 155.461C25.7702 145.692 30.7252 130.653 43.3186 127.601L73.5056 120.284C81.785 118.278 87.388 110.673 86.7649 102.288L84.4931 71.7154C83.5454 58.9613 96.5177 49.6671 108.525 54.4972L137.308 66.0751C145.203 69.2506 154.269 66.3458 158.762 59.201L175.147 33.1508Z",sunny:"M276.453 68.8118C286.405 69.4881 291.381 69.8263 295.404 71.5853C301.223 74.1305 305.87 78.7766 308.415 84.5965C310.174 88.6186 310.512 93.5948 311.188 103.547L312.732 126.259C313.005 130.284 313.142 132.296 313.579 134.219C314.212 136.997 315.31 139.648 316.827 142.059C317.877 143.728 319.203 145.248 321.856 148.288L336.824 165.438C343.384 172.954 346.663 176.712 348.263 180.8C350.579 186.715 350.579 193.285 348.263 199.2C346.663 203.288 343.384 207.046 336.824 214.562L321.856 231.712C319.203 234.752 317.877 236.272 316.827 237.941C315.31 240.352 314.212 243.003 313.579 245.781C313.142 247.704 313.005 249.716 312.732 253.741L311.188 276.453C310.512 286.405 310.174 291.381 308.415 295.404C305.87 301.223 301.223 305.87 295.404 308.415C291.381 310.174 286.405 310.512 276.453 311.188L253.741 312.732C249.716 313.005 247.704 313.142 245.781 313.579C243.003 314.212 240.352 315.31 237.941 316.827C236.272 317.877 234.752 319.203 231.712 321.856L214.562 336.824C207.046 343.384 203.288 346.663 199.2 348.263C193.285 350.579 186.715 350.579 180.8 348.263C176.712 346.663 172.954 343.384 165.438 336.824L148.288 321.856C145.248 319.203 143.728 317.877 142.059 316.827C139.648 315.31 136.997 314.212 134.219 313.579C132.296 313.142 130.284 313.005 126.259 312.732L103.547 311.188C93.5947 310.512 88.6186 310.174 84.5965 308.415C78.7766 305.87 74.1305 301.223 71.5853 295.404C69.8263 291.381 69.4881 286.405 68.8118 276.453L67.2684 253.741C66.9949 249.716 66.8581 247.704 66.4206 245.781C65.7883 243.003 64.6903 240.352 63.173 237.941C62.123 236.272 60.7965 234.752 58.1437 231.712L43.1756 214.562C36.6164 207.046 33.3369 203.288 31.7366 199.2C29.4211 193.285 29.4211 186.715 31.7366 180.8C33.3369 176.712 36.6164 172.954 43.1756 165.438L58.1437 148.288C60.7965 145.248 62.123 143.728 63.173 142.059C64.6903 139.648 65.7883 136.997 66.4206 134.219C66.8581 132.296 66.9949 130.284 67.2684 126.259L68.8118 103.547C69.4881 93.5948 69.8263 88.6186 71.5853 84.5965C74.1305 78.7766 78.7766 74.1305 84.5965 71.5853C88.6186 69.8263 93.5948 69.4881 103.547 68.8118L126.259 67.2684C130.284 66.9949 132.296 66.8581 134.219 66.4206C136.997 65.7883 139.648 64.6903 142.059 63.173C143.728 62.123 145.248 60.7966 148.288 58.1437L165.438 43.1756C172.954 36.6164 176.712 33.3369 180.8 31.7366C186.715 29.4211 193.285 29.4211 199.2 31.7366C203.288 33.3369 207.046 36.6164 214.562 43.1756L231.712 58.1437C234.752 60.7966 236.272 62.123 237.941 63.173C240.352 64.6903 243.003 65.7883 245.781 66.4206C247.704 66.8581 249.716 66.9949 253.741 67.2684L276.453 68.8118Z","very-sunny":"M166.725 43.1869C177.261 25.6044 202.739 25.6044 213.275 43.1868L225.124 62.9597C231.268 73.2136 243.399 78.2385 254.995 75.3327L277.355 69.7294C297.237 64.7468 315.253 82.7627 310.271 102.645L304.667 125.005C301.762 136.601 306.786 148.732 317.04 154.876L336.813 166.725C354.396 177.261 354.396 202.739 336.813 213.275L317.04 225.124C306.786 231.268 301.762 243.399 304.667 254.995L310.271 277.355C315.253 297.237 297.237 315.253 277.355 310.271L254.995 304.667C243.399 301.762 231.268 306.786 225.124 317.04L213.275 336.813C202.739 354.396 177.261 354.396 166.725 336.813L154.876 317.04C148.732 306.786 136.601 301.762 125.005 304.667L102.646 310.271C82.7627 315.253 64.7468 297.237 69.7294 277.355L75.3327 254.995C78.2385 243.399 73.2136 231.268 62.9597 225.124L43.1869 213.275C25.6044 202.739 25.6044 177.261 43.1868 166.725L62.9597 154.876C73.2136 148.732 78.2385 136.601 75.3327 125.005L69.7294 102.646C64.7468 82.7627 82.7627 64.7468 102.645 69.7294L125.005 75.3327C136.601 78.2385 148.732 73.2136 154.876 62.9597L166.725 43.1869Z",bun:"M38.875 113.322C38.875 69.5137 74.3887 34 118.197 34H261.803C305.611 34 341.125 69.5137 341.125 113.322C341.125 149.45 316.972 179.937 283.932 189.516C283.717 189.579 283.567 189.776 283.567 190C283.567 190.224 283.717 190.421 283.932 190.484C316.972 200.063 341.125 230.55 341.125 266.678C341.125 310.486 305.611 346 261.803 346H118.197C74.3887 346 38.875 310.486 38.875 266.678C38.875 230.785 62.7138 200.461 95.422 190.674C95.72 190.585 95.9264 190.311 95.9264 190C95.9264 189.689 95.72 189.415 95.422 189.326C62.7138 179.539 38.875 149.214 38.875 113.322Z",boom:"M186.738 36.413C187.51 30.2399 187.896 27.1534 188.483 26.6019C189.337 25.7994 190.663 25.7994 191.517 26.6019C192.104 27.1534 192.49 30.2399 193.262 36.413L203.079 114.907C203.39 117.398 203.546 118.644 203.993 119.158C204.642 119.904 205.703 120.131 206.598 119.715C207.214 119.428 207.861 118.353 209.153 116.205L249.875 48.5119C253.078 43.1883 254.679 40.5264 255.438 40.2626C256.543 39.8785 257.754 40.4209 258.21 41.5032C258.522 42.247 257.626 45.2245 255.834 51.1796L233.049 126.902C232.326 129.305 231.964 130.507 232.165 131.159C232.456 132.107 233.333 132.748 234.319 132.733C234.998 132.723 236.023 132.006 238.073 130.572L302.659 85.3844C307.738 81.8306 310.278 80.0538 311.078 80.1231C312.243 80.2241 313.13 81.2151 313.108 82.39C313.093 83.1974 311.07 85.5511 307.024 90.2585L255.576 150.116C253.943 152.016 253.126 152.966 253.045 153.644C252.928 154.628 253.47 155.573 254.377 155.963C255.001 156.231 256.228 155.995 258.681 155.524L335.963 140.655C342.041 139.485 345.08 138.901 345.783 139.291C346.806 139.86 347.215 141.128 346.72 142.192C346.38 142.924 343.579 144.247 337.979 146.893L266.764 180.536C264.503 181.604 263.373 182.137 263.025 182.724C262.52 183.575 262.633 184.66 263.304 185.387C263.765 185.887 264.981 186.173 267.413 186.745L344.029 204.766C350.054 206.184 353.067 206.892 353.551 207.537C354.256 208.474 354.117 209.8 353.234 210.57C352.627 211.099 349.534 211.163 343.347 211.289L264.679 212.901C262.182 212.952 260.933 212.977 260.378 213.371C259.572 213.942 259.237 214.979 259.555 215.917C259.774 216.563 260.77 217.322 262.76 218.839L325.462 266.634C330.393 270.393 332.858 272.272 333.04 273.059C333.304 274.203 332.641 275.358 331.523 275.7C330.755 275.935 327.903 274.728 322.2 272.314L249.681 241.615C247.379 240.641 246.228 240.153 245.562 240.286C244.595 240.478 243.869 241.288 243.78 242.275C243.719 242.955 244.321 244.055 245.526 246.255L283.472 315.559C286.456 321.01 287.948 323.735 287.796 324.528C287.574 325.682 286.501 326.466 285.341 326.321C284.544 326.221 282.428 323.952 278.194 319.415L224.364 261.714C222.655 259.882 221.801 258.966 221.139 258.815C220.177 258.594 219.187 259.038 218.706 259.904C218.375 260.5 218.48 261.751 218.691 264.253L225.32 343.084C225.841 349.283 226.102 352.383 225.642 353.045C224.973 354.009 223.676 354.286 222.675 353.679C221.987 353.263 220.971 350.324 218.939 344.447L193.105 269.721C192.285 267.349 191.875 266.163 191.332 265.754C190.542 265.16 189.458 265.16 188.668 265.754C188.125 266.163 187.715 267.349 186.895 269.721L161.061 344.447C159.029 350.324 158.013 353.263 157.325 353.679C156.324 354.286 155.027 354.009 154.358 353.045C153.898 352.383 154.159 349.283 154.68 343.084L161.309 264.253C161.52 261.751 161.625 260.5 161.294 259.904C160.813 259.038 159.823 258.594 158.861 258.815C158.199 258.966 157.345 259.882 155.636 261.714L101.806 319.415C97.5724 323.952 95.4556 326.221 94.6586 326.321C93.4987 326.466 92.4257 325.682 92.2041 324.528C92.0519 323.735 93.544 321.01 96.5282 315.559L134.474 246.255C135.679 244.055 136.281 242.955 136.22 242.275C136.131 241.288 135.405 240.478 134.438 240.286C133.772 240.153 132.621 240.641 130.319 241.615L57.8002 272.314C52.097 274.728 49.2455 275.935 48.4771 275.7C47.3589 275.358 46.6958 274.203 46.9601 273.059C47.1418 272.272 49.6074 270.393 54.5385 266.634L117.24 218.839C119.23 217.322 120.226 216.563 120.445 215.917C120.763 214.979 120.428 213.942 119.622 213.371C119.067 212.977 117.818 212.952 115.321 212.901L36.6531 211.289C30.4664 211.163 27.373 211.099 26.7662 210.57C25.8831 209.8 25.7445 208.474 26.449 207.537C26.9332 206.892 29.9459 206.184 35.9713 204.766L112.587 186.745C115.019 186.173 116.235 185.887 116.697 185.387C117.367 184.66 117.48 183.575 116.975 182.724C116.627 182.137 115.497 181.604 113.236 180.536L42.0212 146.893C36.4205 144.247 33.6202 142.924 33.2799 142.192C32.7846 141.128 33.1944 139.86 34.2174 139.291C34.9204 138.901 37.9592 139.485 44.037 140.655L121.319 155.524C123.772 155.995 124.999 156.231 125.623 155.963C126.53 155.573 127.072 154.628 126.955 153.644C126.874 152.966 126.057 152.016 124.424 150.116L72.9761 90.2585C68.93 85.5511 66.907 83.1974 66.8919 82.39C66.87 81.2151 67.7575 80.2241 68.922 80.1231C69.7222 80.0538 72.2618 81.8306 77.3411 85.3844L141.927 130.572C143.977 132.006 145.002 132.723 145.681 132.733C146.667 132.748 147.544 132.107 147.835 131.159C148.036 130.507 147.674 129.305 146.951 126.902L124.166 51.1796C122.374 45.2245 121.478 42.247 121.79 41.5032C122.246 40.4209 123.457 39.8785 124.562 40.2626C125.321 40.5264 126.922 43.1883 130.125 48.5119L170.847 116.205C172.139 118.354 172.786 119.428 173.402 119.715C174.297 120.131 175.358 119.904 176.007 119.158C176.454 118.644 176.61 117.398 176.921 114.907L186.738 36.413Z",arch:"M345 293.727C345 299.96 345 303.076 344.689 305.696C342.259 326.14 326.14 342.259 305.696 344.689C303.076 345 299.96 345 293.727 345H86.2732C80.0405 345 76.9242 345 74.3043 344.689C53.8596 342.259 37.7407 326.14 35.3113 305.696C35 303.076 35 299.96 35 293.727L35 190C35 104.396 104.396 35 190 35C275.604 35 345 104.396 345 190V293.727Z",arrow:"M262.422 104.907C253.213 90.2936 243.84 75.4777 231.389 63.8739C218.938 52.2412 202.808 44.023 186.27 45.0937C171.748 46.0486 158.288 54.0932 147.662 64.5974C137.036 75.1015 128.781 88.0365 120.661 100.856C98.7011 135.464 76.7136 170.073 54.7533 204.711C44.3181 221.147 33.6105 238.307 30.7224 257.898C27.2349 281.568 36.6348 305.673 53.3093 321.415C70.7467 337.88 99.0008 336.549 120.225 332.035C143.493 327.086 166.244 317.769 189.975 317.797C210.301 317.797 229.945 324.685 249.726 329.691C269.479 334.668 290.704 337.735 309.776 330.327C333.453 321.154 350.454 295.082 349.991 268.315C349.555 243.892 323.508 201.759 323.508 201.759C323.508 201.759 282.78 137.194 262.422 104.907Z",diamond:"M247.442 306.481C230.606 328.514 222.188 339.53 212.466 344.548C198.383 351.817 181.617 351.817 167.534 344.548C157.812 339.53 149.394 328.514 132.558 306.481L76.646 233.308C66.4059 219.906 61.2859 213.206 58.7505 206.032C55.0832 195.654 55.0832 184.346 58.7505 173.968C61.2859 166.794 66.4059 160.094 76.6461 146.692L132.558 73.5194C149.394 51.4863 157.812 40.4697 167.534 35.4518C181.617 28.1827 198.383 28.1827 212.466 35.4518C222.188 40.4697 230.606 51.4863 247.442 73.5195L303.354 146.692C313.594 160.094 318.714 166.794 321.249 173.968C324.917 184.346 324.917 195.654 321.249 206.032C318.714 213.206 313.594 219.906 303.354 233.308L247.442 306.481Z",fan:"M40 87.3684C40 85.697 40 84.8613 40.0219 84.1547C40.7686 60.0969 60.0969 40.7686 84.1547 40.0219C84.8613 40 85.697 40 87.3684 40C96.2825 40 100.74 40 104.508 40.117C232.816 44.0992 335.901 147.184 339.883 275.492C340 279.26 340 283.717 340 292.632C340 294.303 340 295.139 339.978 295.845C339.231 319.903 319.903 339.231 295.845 339.978C295.139 340 294.303 340 292.632 340H107.441C87.0642 340 76.8757 340 68.7935 336.8C57.0947 332.168 47.8318 322.905 43.2 311.207C40 303.124 40 292.936 40 272.559V87.3684Z",flower:"M303.126 76.8625C291.251 64.988 264.194 70.8597 231.547 89.6813C221.771 53.2855 206.79 30 189.996 30C173.203 30 158.223 53.2841 148.447 89.6779C115.802 70.8581 88.7463 64.9874 76.8722 76.8614C64.997 88.7367 70.8701 115.796 89.6945 148.446C53.2912 158.222 30 173.204 30 190C30 206.793 53.283 221.773 89.6753 231.549C70.8495 264.2 64.9757 291.261 76.8513 303.137C88.7274 315.013 115.79 309.138 148.444 290.31C158.22 326.711 173.201 350 189.996 350C206.792 350 221.774 326.709 231.55 290.307C264.205 309.136 291.27 315.012 303.146 303.136C315.022 291.26 309.148 264.2 290.323 231.549C326.716 221.773 350 206.793 350 190C350 173.204 326.708 158.222 290.304 148.446C309.128 115.797 315.001 88.7376 303.126 76.8625Z",gem:"M133.415 65.7498C150.981 52.991 159.763 46.6116 169.124 43.4402C182.663 38.8533 197.337 38.8533 210.876 43.4402C220.237 46.6116 229.019 52.991 246.585 65.7498L286.083 94.4402C296.514 102.017 301.729 105.805 305.981 110.353C312.125 116.926 316.839 124.702 319.823 133.189C321.888 139.062 322.834 145.437 324.725 158.189L332.038 207.501C335.355 229.87 337.014 241.055 335.34 251.136C332.918 265.718 325.6 279.04 314.59 288.907C306.979 295.728 296.649 300.329 275.987 309.532L229.176 330.382C216.707 335.935 210.473 338.712 204.064 340.131C194.8 342.182 185.2 342.182 175.936 340.131C169.527 338.712 163.293 335.935 150.824 330.382L104.013 309.532C83.3515 300.329 73.0207 295.728 65.4097 288.907C54.4005 279.04 47.0819 265.718 44.6602 251.136C42.9859 241.055 44.6447 229.87 47.9621 207.501L55.2752 158.189C57.1662 145.437 58.1117 139.062 60.1768 133.189C63.1612 124.702 67.8747 116.926 74.0191 110.353C78.2706 105.805 83.4862 102.017 93.9172 94.4402L133.415 65.7498Z","ghost-ish":"M40 182.857C40 103.959 107.157 40 190 40C272.843 40 340 103.959 340 182.857L340 282.857C340 314.416 313.137 340 280 340C270.178 340 260.907 337.752 252.724 333.768C248.554 331.737 244.394 329.512 240.216 327.277C225.513 319.411 210.592 311.429 194.27 311.429H185.73C169.408 311.429 154.487 319.411 139.784 327.277C135.606 329.512 131.446 331.737 127.276 333.768C119.093 337.752 109.822 340 100 340C66.8629 340 40 314.416 40 282.857L40 182.857Z",heart:"M281.1 47.134C259.439 47.134 240.113 57.3021 227.481 73.1973L190 114.513V114.379L152.519 73.0633C139.887 57.1681 120.561 47 98.8995 47C60.8478 47 30 78.3656 30 117.059C30 151.058 58.3751 176.471 78.9187 200.884C99.3895 225.205 119.856 249.523 140.323 273.844L186.272 328.437C187.516 329.914 188.756 331.388 190 332.866V333C191.244 331.522 192.484 330.048 193.728 328.571C209.043 310.375 224.358 292.178 239.677 273.978C260.144 249.657 280.614 225.339 301.081 201.018C321.625 176.608 350 151.196 350 117.193C350 78.4996 319.152 47.134 281.1 47.134Z",hexagon:"M360.196 147.081C367.995 160.591 371.894 167.346 373.864 174.403C376.712 184.606 376.712 195.394 373.864 205.597C371.894 212.654 367.995 219.409 360.196 232.919L336.437 274.079C328.638 287.589 324.738 294.344 319.613 299.58C312.202 307.148 302.86 312.543 292.601 315.177C285.505 317 277.706 317 262.108 317L117.892 317C102.294 317 94.4949 317 87.399 315.178C77.1398 312.543 67.798 307.149 60.3873 299.58C55.2616 294.345 51.3621 287.589 43.5632 274.079L19.8039 232.919C12.0054 219.409 8.10612 212.654 6.13613 205.597C3.28796 195.394 3.28796 184.606 6.13613 174.403C8.10613 167.346 12.0054 160.591 19.804 147.081L43.5632 105.921C51.3622 92.4107 55.2616 85.6554 60.3874 80.4202C67.798 72.8514 77.1398 67.457 87.3989 64.8224C94.4949 63.0002 102.294 63.0002 117.892 63.0002L262.108 63C277.706 63 285.505 63 292.601 64.8222C302.86 67.4567 312.202 72.8511 319.613 80.42C324.738 85.6551 328.638 92.4104 336.437 105.921L360.196 147.081Z","pixel-circle":"M253.556 34H126.444V54.2217H83.1111V80.2222H57.1111V126.444H34V253.556H57.1111V299.778H83.1111V325.777H126.444V346H253.556V325.777H296.889V299.778H322.889V253.556H346V126.444H322.889V80.2222H296.889V54.2217H253.556V34Z","pixel-triangle":"M121.641 30H66V350H121.641V322.174H164.564V295.739H209.077V265.13H245.641V240.086H282.205V209.478H314V170.522H282.205V139.912H245.641V114.869H209.077V84.2609H164.564V57.8262H121.641V30Z",puffy:"M371.982 187.559C371.686 165.488 353.541 147.816 331.439 148.112C330.218 148.112 329.016 148.204 327.832 148.334C328.757 147.576 329.663 146.799 330.532 145.949C346.365 130.551 346.698 105.226 331.291 89.4031C330.384 88.4788 329.478 87.5546 328.553 86.6673C312.721 71.2692 287.4 71.6019 271.974 87.4252C271.123 88.294 270.347 89.1997 269.588 90.124C269.718 88.9409 269.792 87.7394 269.81 86.5194C270.125 64.4482 252.443 46.3142 230.359 46C229.711 46 229.064 46 228.417 46H227.103C210.734 46 196.696 55.8341 190.5 69.9013C184.304 55.8341 170.247 46 153.897 46H152.583C151.936 46 151.289 46 150.641 46C128.557 46.2958 110.875 64.4297 111.171 86.5194C111.171 87.7394 111.264 88.9409 111.393 90.124C110.635 89.1997 109.858 88.294 109.007 87.4252C93.6001 71.6019 68.2608 71.2692 52.4283 86.6673C51.5035 87.573 50.5787 88.4788 49.6909 89.4031C34.2839 105.226 34.6168 130.532 50.4493 145.949C51.3186 146.799 52.2249 147.576 53.1497 148.334C51.9659 148.204 50.7637 148.13 49.543 148.112C27.4589 147.816 9.31443 165.488 9 187.559C9 188.206 9 188.853 9 189.5C9 190.147 9 190.794 9 191.441C9.29593 213.512 27.4404 231.184 49.543 230.888C50.7637 230.888 51.9659 230.796 53.1497 230.666C52.2249 231.424 51.3186 232.201 50.4493 233.051C34.6168 248.449 34.2839 273.774 49.6909 289.597C50.5972 290.521 51.5035 291.445 52.4283 292.333C68.2608 307.731 93.5816 307.398 109.007 291.575C109.858 290.706 110.635 289.8 111.393 288.876C111.264 290.059 111.19 291.261 111.171 292.481C110.875 314.552 128.539 332.704 150.641 333C151.289 333 151.936 333 152.583 333H153.897C170.266 333 184.304 323.166 190.5 309.099C196.696 323.166 210.753 333 227.103 333H228.417C229.064 333 229.711 333 230.359 333C252.443 332.704 270.125 314.57 269.829 292.481C269.829 291.261 269.736 290.059 269.607 288.876C270.365 289.8 271.142 290.706 271.993 291.575C287.4 307.398 312.739 307.731 328.572 292.333C329.496 291.427 330.421 290.521 331.309 289.597C346.716 273.774 346.383 248.468 330.551 233.051C329.681 232.201 328.775 231.424 327.85 230.666C329.034 230.796 330.236 230.87 331.457 230.888C353.541 231.184 371.704 213.531 372 191.441C372 190.794 372 190.147 372 189.5C372 188.853 372 188.206 372 187.559H371.982Z","puffy-diamond":"M279.397 279.754C291.485 267.666 295.573 250.608 291.663 235.157C307.124 239.086 324.202 235.001 336.3 222.902C354.567 204.636 354.567 175.02 336.3 156.754C324.273 144.727 307.325 140.619 291.936 144.43C295.368 129.286 291.188 112.766 279.397 100.975C267.282 88.8601 250.174 84.7804 234.696 88.736C238.798 73.1705 234.747 55.9026 222.544 43.6997C204.278 25.4334 174.662 25.4334 156.396 43.6997C144.266 55.83 140.191 72.9655 144.172 88.4584C129.001 84.9862 112.435 89.1585 100.618 100.975C88.8257 112.767 84.6462 129.289 88.0792 144.434C72.6865 140.616 55.7312 144.723 43.6997 156.754C25.4334 175.02 25.4334 204.636 43.6997 222.902C55.8026 235.005 72.8879 239.089 88.3531 235.153C84.4405 250.605 88.5288 267.665 100.618 279.754C112.385 291.521 128.862 295.708 143.98 292.314C140.328 307.602 144.467 324.371 156.396 336.3C174.662 354.567 204.278 354.567 222.544 336.3C234.544 324.301 238.661 307.403 234.894 292.043C250.32 295.914 267.333 291.817 279.397 279.754Z",semicircle:"M350 256.921C350 275.19 335.19 290 316.921 290L63.0794 290C44.8102 290 30 275.19 30 256.921L30 250C30 161.634 101.634 90 190 90C278.366 90 350 161.634 350 250V256.921Z",slanted:"M45.7147 120.543C48.289 95.9642 49.5761 83.6748 54.3025 73.9777C61.142 59.9453 73.0768 49.1101 87.6278 43.7229C97.6833 40 109.933 40 134.432 40H258.137C287.764 40 302.578 40 313.887 44.8539C330.261 51.8819 342.72 65.8495 347.927 83.0153C351.523 94.8709 349.967 109.733 346.854 139.457L334.285 259.457C331.711 284.036 330.424 296.325 325.697 306.022C318.858 320.055 306.923 330.89 292.372 336.277C282.317 340 270.067 340 245.568 340H121.863C92.2359 340 77.4221 340 66.1134 335.146C49.7395 328.118 37.2802 314.151 32.0729 296.985C28.4765 285.129 30.0331 270.267 33.1463 240.543L45.7147 120.543Z","soft-boom":"M204.57 116.822C226.539 6.39254 153.487 6.39254 175.457 116.822C153.487 6.39254 85.9934 34.3433 148.549 127.966C85.9934 34.3433 34.3433 85.9934 127.966 148.549C34.3433 85.9934 6.39254 153.487 116.822 175.444C6.39254 153.474 6.39254 226.526 116.822 204.556C6.39254 226.526 34.3565 294.007 127.966 231.451C34.3565 294.007 86.0066 345.657 148.549 252.034C85.9934 345.644 153.487 373.594 175.444 263.178C153.474 373.607 226.526 373.607 204.556 263.178C226.526 373.607 294.007 345.644 231.451 252.034C294.007 345.644 345.657 293.993 252.034 231.451C345.644 294.007 373.594 226.513 263.178 204.556C373.607 226.526 373.607 153.474 263.178 175.444C373.607 153.474 345.644 85.9934 252.034 148.549C345.644 85.9934 293.993 34.3433 231.451 127.966C294.007 34.3565 226.513 6.40574 204.556 116.822H204.57Z",square:"M350 202C350 246.717 350 269.076 342.978 286.812C332.813 312.485 312.485 332.813 286.812 342.978C269.076 350 246.717 350 202 350H178C133.283 350 110.924 350 93.1875 342.978C67.5145 332.813 47.187 312.485 37.0223 286.812C30 269.076 30 246.717 30 202L30 178C30 133.283 30 110.924 37.0224 93.1875C47.187 67.5145 67.5146 47.187 93.1876 37.0223C110.924 30 133.283 30 178 30L202 30C246.717 30 269.076 30 286.812 37.0224C312.485 47.187 332.813 67.5146 342.978 93.1876C350 110.924 350 133.283 350 178V202Z",circle:"M350 190C350 278.366 278.366 350 190 350C101.634 350 30 278.366 30 190C30 101.634 101.634 30 190 30C278.366 30 350 101.634 350 190Z",triangle:"M136.461 98.2021C151.597 71.8217 159.165 58.6315 168.342 53.0594C181.648 44.9802 198.352 44.9802 211.658 53.0594C220.835 58.6315 228.403 71.8217 243.539 98.2021L325.309 240.72C340.3 266.847 347.795 279.911 347.993 290.585C348.28 306.06 339.949 320.418 326.364 327.864C316.994 333 301.919 333 271.77 333H108.23C78.0806 333 63.006 333 53.636 327.864C40.0505 320.418 31.7204 306.06 32.0072 290.585C32.2049 279.911 39.7003 266.847 54.6909 240.72L136.461 98.2021Z"};let Ew=new Array;const Mw=new Map;for(const e in zw)Ew.push(zw[e]),Mw.set(e,Ew.length-1);const Tw={};Ew=ye(Ew,300);for(const e of Mw)Tw[e[0]]=o(Ew[e[1]]);const Pw=Tw;const Iw=[...Object.getOwnPropertyNames(Pw).map(e=>function(e){return i`:host([name="${o(e)}"]) .wrapper { clip-path: polygon(${Pw[e]}); }`}(e))];let Ww=class extends r{constructor(){super(...arguments),this.name=null}render(){return s`<div class="wrapper"><slot></slot></div>`}};var Dw,Aw,Hw,Ow,Fw;Ww.styles=[Lw,Iw],t([m({reflect:!0})],Ww.prototype,"name",void 0),Ww=t([$("m3e-shape")],Ww);let Bw=class extends(M(r)){constructor(){super(...arguments),Dw.add(this),Aw.set(this,void 0),Hw.set(this,new A(this,{target:null,callback:()=>this._updatePaging()})),this._canPage=!1,this._canPageStart=!1,this._canPageEnd=!1,this.disabled=!1,this.vertical=!1,this.threshold=0,this.previousPageLabel="Previous page",this.nextPageLabel="Next page"}connectedCallback(){super.connectedCallback(),a(this,Aw,Ve.observe(()=>this.requestUpdate()),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Aw,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),e(this,Hw,"f").observe(this.scrollContainer)}firstUpdated(t){super.firstUpdated(t),e(this,Hw,"f").observe(this.scrollContainer)}render(){const t=s`<m3e-icon-button class="prev-button" tabindex="-1" aria-label="${this.previousPageLabel}" ?disabled="${!this._canPageStart}" @click="${e(this,Dw,"m",Ow)}"><slot name="prev-icon">${"ltr"===Ve.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`}</slot></m3e-icon-button>`,a=s`<m3e-icon-button class="next-button" tabindex="-1" aria-label="${this.nextPageLabel}" ?disabled="${!this._canPageEnd}" @click="${e(this,Dw,"m",Fw)}"><slot name="next-icon">${"ltr"===Ve.current||this.vertical?s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`}</slot></m3e-icon-button>`;return s`${this._canPage?t:n}<div class="content" @scroll="${this._updatePaging}"><slot></slot></div>${this._canPage?a:n}`}_updatePaging(){this.disabled?this._canPage=!1:this.vertical?(this._canPage=Math.round(this.scrollContainer.scrollHeight)>Math.round(this.scrollContainer.clientHeight)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollTop)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollTop)+ +this.threshold<Math.round(this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight))):(this._canPage=Math.round(this.scrollContainer.scrollWidth)>Math.round(this.scrollContainer.clientWidth)+this.threshold,this._canPage&&(this._canPageStart=Math.round(this.scrollContainer.scrollLeft)>this.threshold,this._canPageEnd=Math.round(this.scrollContainer.scrollLeft)+this.threshold<Math.round(this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth))),this._canPage||(this._canPageStart=this._canPageEnd=!1)}};var Vw,qw;Aw=new WeakMap,Hw=new WeakMap,Dw=new WeakSet,Ow=function(){if(this.vertical){let e=this.scrollContainer.scrollTop-this.scrollContainer.clientHeight;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft-this.scrollContainer.clientWidth;e<=this.threshold&&(e=0),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},Fw=function(){if(this.vertical){let e=this.scrollContainer.scrollTop+this.scrollContainer.clientHeight;e>=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight-this.threshold&&(e=this.scrollContainer.scrollHeight-this.scrollContainer.clientHeight),this.scrollContainer.scrollTo({top:e,behavior:"smooth"})}else{let e=this.scrollContainer.scrollLeft+this.scrollContainer.clientWidth;e>=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth-this.threshold&&(e=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth),this.scrollContainer.scrollTo({left:e,behavior:"smooth"})}},Bw.styles=i`:host { display: flex; flex-wrap: nowrap; overflow: hidden; } :host([vertical]) { flex-direction: column; } .prev-button, .next-button { flex: none; --m3e-icon-button-small-shape-round: 0px; --m3e-icon-button-small-shape-square: 0px; --m3e-icon-button-small-shape-pressed-morph: 0px; --m3e-focus-ring-visibility: hidden; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-slide-group-button-icon-size, var(--m3e-icon-button-small-icon-size, 1.5rem)) !important; } :host(:not([vertical])) .prev-button, :host(:not([vertical])) .next-button { --m3e-icon-button-small-container-height: 100%; width: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button, :host([vertical]) .next-button { width: unset; --m3e-icon-button-small-container-height: var(--m3e-slide-group-button-size, 2.5rem); } :host([vertical]) .prev-button .icon, :host([vertical]) .next-button .icon { transform: rotate(90deg); } .content { flex: 1 1 auto; display: inherit; flex-wrap: inherit; flex-direction: inherit; overflow: inherit; position: relative; border-top: var(--m3e-slide-group-divider-top); border-bottom: var(--m3e-slide-group-divider-bottom); }`,t([h(".content")],Bw.prototype,"scrollContainer",void 0),t([u()],Bw.prototype,"_canPage",void 0),t([u()],Bw.prototype,"_canPageStart",void 0),t([u()],Bw.prototype,"_canPageEnd",void 0),t([m({type:Boolean,reflect:!0})],Bw.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],Bw.prototype,"vertical",void 0),t([m({type:Number})],Bw.prototype,"threshold",void 0),t([m({attribute:"previous-page-label"})],Bw.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],Bw.prototype,"nextPageLabel",void 0),t([y(40)],Bw.prototype,"_updatePaging",null),Bw=t([$("m3e-slide-group")],Bw);let Rw=class extends(te(ae(se(N(Y(P(f(r,"slider")))))))){constructor(){super(...arguments),Vw.add(this),this.value=null}get[(Vw=new WeakSet,le)](){return this.value?.toString()??null}focus(e){this._focusRing&&(this._focusRing.disabled=!0),super.focus(e),this._focusRing&&(this._focusRing.disabled=this.disabled)}firstUpdated(e){super.firstUpdated(e),this._focusRing?.attach(this)}update(e){super.update(e),e.has("value")&&this.dispatchEvent(new Event("value-change",{bubbles:!0}))}render(){return s`<div class="label" aria-hidden="true">${e(this,Vw,"a",qw)}</div><div class="base"><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><div class="touch" aria-hidden="true"></div><div class="wrapper"><div class="handle"></div></div></div>`}};var Uw,Nw,jw,Yw,Kw,Zw,Gw,Xw,Jw,Qw,ek,tk,ak,ok,ik,rk,sk,nk,lk,ck,dk;qw=function(){return this.closest("m3e-slider")?.displayWith?.(this.value)??this.value?.toString()??""},Rw.styles=i`:host { display: block; box-sizing: border-box; position: absolute; outline: none; top: 0; bottom: 0; border-radius: var(--m3e-slider-thumb-shape, ${v.shape.corner.full}); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; border-radius: inherit; } .touch { position: absolute; height: 3rem; left: 0; right: 0; touch-action: none; } .wrapper { display: inline-flex; justify-content: center; height: 100%; border-radius: inherit; width: calc(var(--m3e-slider-thumb-width, 0.25rem) + calc(var(--m3e-slider-thumb-padding, 0.375em) * 2)); } .focus-ring { top: calc(0px - var(--m3e-focus-ring-thickness, 3px)); bottom: calc(0px - var(--m3e-focus-ring-thickness, 3px)); left: var(--m3e-focus-ring-thickness, 3px); right: var(--m3e-focus-ring-thickness, 3px); } .label { user-select: none; position: absolute; display: flex; align-items: center; justify-content: center; visibility: var(--_slider-label-visibility, hidden); opacity: var(--_slider-label-opacity, 0); transform: var(--_slider-label-transform, scale(0)); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; width: var(--m3e-slider-label-width, 3rem); height: var(--_m3e-slider-label-height, 2.75rem); top: calc(0px - var(--_m3e-slider-label-height, 2.75rem) - var(--_m3e-slider-label-margin, 0.25rem)); inset-inline-start: calc(0px - 100%); border-radius: var(--m3e-slider-label-shape, ${v.shape.corner.full}); background-color: var(--m3e-slider-label-container-color, ${v.color.inverseSurface}); color: var(--m3e-slider-label-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-slider-label-font-size, ${v.typescale.standard.label.medium.fontSize}); font-weight: var(--m3e-slider-label-font-weight, ${v.typescale.standard.label.medium.fontWeight}); line-height: var(--m3e-slider-label-line-height, ${v.typescale.standard.label.medium.lineHeight}); letter-spacing: var(--m3e-slider-label-tracking, ${v.typescale.standard.label.medium.tracking}); } @starting-style { .label { opacity: 0; transform: scale(0); } } .handle { height: 100%; width: var(--m3e-slider-thumb-width, 0.25rem); border-radius: inherit; transition: ${o(`width ${v.motion.duration.short2} ${v.motion.easing.standard}`)}; } :host(:active:not([aria-disabled="true"])) .handle { width: var(--m3e-slider-thumb-pressed-width, 2px); } :host(:not([aria-disabled="true"])) .handle { background-color: var(--m3e-slider-thumb-color, ${v.color.primary}); } :host([aria-disabled="true"]) .handle { opacity: var(--m3e-slider-thumb-disabled-opacity, 38%); background-color: var(--m3e-slider-thumb-disabled-color, ${v.color.onSurface}); } @media (prefers-reduced-motion) { .label { transition: none; } } @media (forced-colors: active) { .label { forced-color-adjust: none; background-color: CanvasText; color: Canvas; } :host(:not([aria-disabled="true"])) .handle { background-color: CanvasText; } :host([aria-disabled="true"]) .handle { opacity: unset; background-color: GrayText; } }`,t([h(".focus-ring")],Rw.prototype,"_focusRing",void 0),t([m({type:Number,reflect:!0})],Rw.prototype,"value",void 0),Rw=t([$("m3e-slider-thumb")],Rw);let hk=class extends(P(r)){constructor(){super(),Uw.add(this),Nw.set(this,void 0),this._ticks=new Array,jw.set(this,new Array),Yw.set(this,void 0),Kw.set(this,0),Zw.set(this,0),Gw.set(this,0),this.size="extra-small",this.disabled=!1,this.discrete=!1,this.min=0,this.max=100,this.step=1,this.labelled=!1,this.displayWith=null,new A(this,{callback:()=>e(this,Uw,"m",ok).call(this,!0)})}get thumbs(){return e(this,jw,"f")}get isRange(){return e(this,jw,"f").length>1}get thumb(){return e(this,jw,"f")[0]??null}get lowerThumb(){return this.thumb}get upperThumb(){return e(this,jw,"f")[1]??null}connectedCallback(){super.connectedCallback(),a(this,Nw,Ve.observe(()=>{e(this,Uw,"m",ok).call(this,!0),this.requestUpdate()}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,Nw,"f")?.call(this)}updated(t){super.updated(t),t.has("disabled")&&e(this,jw,"f").forEach(e=>e.disabled=this.disabled)}render(){return s`<div class="base" tabindex="${Ne(this.disabled?void 0:"-1")}" @pointerdown="${e(this,Uw,"m",rk)}" @pointermove="${e(this,Uw,"m",sk)}" @pointerup="${e(this,Uw,"m",nk)}" @keydown="${e(this,Uw,"m",lk)}" @value-change="${e(this,Uw,"m",ck)}"><div class="track" aria-hidden="true"><div class="track-inactive start"></div><div class="track-active"></div><div class="track-inactive end"></div></div><div class="ticks" aria-hidden="true">${this._ticks.map(t=>e(this,Uw,"m",Xw).call(this,t))}</div><slot @slotchange="${e(this,Uw,"m",Jw)}"></slot></div>`}};var mk,pk,uk,vk,bk,fk,gk,yk,$k;Nw=new WeakMap,jw=new WeakMap,Yw=new WeakMap,Kw=new WeakMap,Zw=new WeakMap,Gw=new WeakMap,Uw=new WeakSet,Xw=function(t){return s`<div class="tick ${t.active?"active":"inactive"}" style="${ke({transform:`translate(${"rtl"===Ve.current?-e(this,Uw,"m",ek).call(this,t.value):e(this,Uw,"m",ek).call(this,t.value)}px, 0)`})}"></div>`},Jw=function(t){a(this,jw,t.target.assignedElements({flatten:!0}).filter(e=>e instanceof Rw),"f"),e(this,jw,"f").length>2&&(e(this,jw,"f").length=2),this.isRange?this._base?.style.setProperty("--_slider-active-track-middle-shape","0"):this._base?.style.removeProperty("--_slider-active-track-middle-shape"),e(this,Uw,"m",Qw).call(this)},Qw=function(){e(this,jw,"f").forEach((t,a)=>{this.disabled&&(t.disabled=!0),t.ariaValueMin=`${e(this,jw,"f")[a-1]?.value??this.min}`,t.ariaValueMax=`${e(this,jw,"f")[a+1]?.value??this.max}`,t.ariaValueNow=`${t.value??e(this,jw,"f")[a-1]?.value??this.min}`})},ek=function(t){return(e(this,Kw,"f")-e(this,Zw,"f"))*((t-this.min)/(this.max-this.min))},tk=function(t){const a="rtl"===Ve.current?e(this,Gw,"f")+e(this,Kw,"f")-t.clientX:t.clientX-e(this,Gw,"f"),o=0===this.step?1:this.step,i=Math.floor((this.max-this.min)/o),r=a/e(this,Kw,"f"),s=Math.round(r*i)/i*(this.max-this.min)+this.min;return Math.round(s/o)*o},ak=function(t=!1){this.lowerThumb&&(a(this,Kw,!t&&e(this,Kw,"f")>0?e(this,Kw,"f"):this.clientWidth,"f"),a(this,Zw,!t&&e(this,Zw,"f")>0?e(this,Zw,"f"):this.lowerThumb.clientWidth,"f"),a(this,Gw,!t&&e(this,Gw,"f")>0?e(this,Gw,"f"):this.getBoundingClientRect().left,"f"))},ok=function(t=!1){if(e(this,Uw,"m",ak).call(this,t),!this.lowerThumb)return;const a=this.lowerThumb.value??this.min,o=e(this,Uw,"m",ek).call(this,a);if(this.lowerThumb.style.transform=`translate(${"rtl"===Ve.current?-o:o}px, 0)`,this.upperThumb){const t=this.upperThumb.value??a,i=e(this,Uw,"m",ek).call(this,t);this.upperThumb.style.transform=`translate(${"rtl"===Ve.current?-i:i}px, 0)`,this._base?.classList.toggle("range",!0),this._base?.style.setProperty("--_slider-inactive-track-before-size",`${o}px`),this._base?.style.setProperty("--_slider-active-track-offset",`${o+e(this,Zw,"f")}px`),this._base?.style.setProperty("--_slider-active-track-size",i-o-e(this,Zw,"f")+"px"),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${i+e(this,Zw,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,Kw,"f")-e(this,Zw,"f")-i+"px"),e(this,Uw,"m",ik).call(this,e=>e>a&&e<t)}else this._base?.classList.toggle("range",!1),this._base?.style.setProperty("--_slider-active-track-size",`${o}px`),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${o+e(this,Zw,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",e(this,Kw,"f")-o-e(this,Zw,"f")+"px"),e(this,Uw,"m",ik).call(this,e=>e<a)},ik=function(e){if(this._ticks=[],this.discrete&&this.step>1)for(let t=this.min;t<=this.max;t+=this.step)this._ticks.push({value:t,active:e(t)});else this._ticks.push({value:this.min,active:e(this.min)}),this.min<0&&this.max>0&&this._ticks.push({value:0,active:e(0)}),this._ticks.push({value:this.max,active:e(this.max)})},rk=function(t){if("mouse"===t.pointerType&&t.button>1)return;if(!this.lowerThumb||this.disabled)return;if(t.target instanceof HTMLElement&&t.target.setPointerCapture(t.pointerId),a(this,Yw,t.composedPath().find(e=>e instanceof Rw),"f"),e(this,Yw,"f"))return;const o=e(this,Uw,"m",tk).call(this,t);if(this.upperThumb){const t=this.lowerThumb.value??this.min,i=this.upperThumb.value??t;if(o<t)this.lowerThumb.disabled||(e(this,Uw,"m",dk).call(this,this.lowerThumb,o,!0),a(this,Yw,this.lowerThumb,"f"));else if(o>i)this.upperThumb.disabled||(e(this,Uw,"m",dk).call(this,this.upperThumb,o,!0),a(this,Yw,this.upperThumb,"f"));else{o<(t+i)/2&&!this.lowerThumb.disabled?(e(this,Uw,"m",dk).call(this,this.lowerThumb,o,!0),a(this,Yw,this.lowerThumb,"f")):this.upperThumb.disabled||(e(this,Uw,"m",dk).call(this,this.upperThumb,o,!0),a(this,Yw,this.upperThumb,"f"))}}else this.lowerThumb.disabled||(e(this,Uw,"m",dk).call(this,this.lowerThumb,o,!0),a(this,Yw,this.lowerThumb,"f"))},sk=function(t){if(!(t.target instanceof HTMLElement)||!t.target.hasPointerCapture(t.pointerId)||!e(this,Yw,"f")||e(this,Yw,"f").disabled)return;const a=e(this,Uw,"m",tk).call(this,t);let o=this.min,i=this.max;e(this,Yw,"f")===this.upperThumb?o=Math.max(o,this.lowerThumb?.value??0):this.upperThumb&&(i=Math.min(i,this.upperThumb.value??this.max)),O(this,"-animating")&&(C(this,"-animating"),e(this,Yw,"f").style.transition=""),e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.min(i,Math.max(o,a)))},nk=function(t){"mouse"===t.pointerType&&t.button>1||this.lowerThumb&&!this.disabled&&(t.target instanceof HTMLElement&&t.target.releasePointerCapture(t.pointerId),e(this,Yw,"f")&&!e(this,Yw,"f").disabled&&e(this,Yw,"f").focus())},lk=function(t){if(a(this,Yw,t.composedPath().find(e=>e instanceof Rw),"f"),!e(this,Yw,"f"))return;const o=e(this,Yw,"f").value??0;let i=this.min,r=this.max;switch(e(this,Yw,"f")===this.upperThumb?i=Math.max(i,this.lowerThumb?.value??0):this.upperThumb&&(r=Math.max(r,this.upperThumb.value??this.max)),t.key){case"Home":e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),i),t.preventDefault();break;case"End":e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),r),t.preventDefault();break;case"PageUp":"ltr"===Ve.current?e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.min(r,o+(this.step>1?this.step:10))):e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.max(i,o-(this.step>1?this.step:10))),t.preventDefault();break;case"PageDown":"ltr"===Ve.current?e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.max(i,o-(this.step>1?this.step:10))):e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.min(r,o+(this.step>1?this.step:10))),t.preventDefault();break;case"Down":case"ArrowDown":case"Left":case"ArrowLeft":"ltr"===Ve.current?e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.max(i,o-this.step)):e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.min(r,o+this.step)),t.preventDefault();break;case"Up":case"ArrowUp":case"Right":case"ArrowRight":"ltr"===Ve.current?e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.min(r,o+this.step)):e(this,Uw,"m",dk).call(this,e(this,Yw,"f"),Math.max(i,o-this.step)),t.preventDefault();break;case" ":t.preventDefault()}},ck=function(t){t.stopPropagation(),e(this,Uw,"m",Qw).call(this),e(this,Uw,"m",ok).call(this)},dk=function(e,t,a=!1){if(e.value===t)return;const o=e.value;a&&!S()&&(z(this,"-animating"),e.addEventListener("transitionend",()=>{e.style.transition="",C(this,"-animating")},{once:!0}),e.style.transition=`transform ${v.motion.spring.fastEffects}`),e.value=t,e.markAsDirty(),e.markAsTouched(),e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})):e.value=o},hk.styles=i`:host { display: inline-block; vertical-align: middle; min-inline-size: var(--m3e-slider-min-width, 12.5rem); user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([disabled])) { cursor: pointer; } :host([size="extra-small"]), :host([size="small"]) { height: var(--m3e-slider-small-height, 2.75rem); } :host(:not(:dir(rtl))[size="extra-small"]) .base, :host(:not(:dir(rtl))[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallEnd} ); } :host(:dir(rtl)[size="extra-small"]) .base, :host(:dir(rtl)[size="small"]) .base { --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${v.shape.corner.smallEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-small-inactive-active-track-start-shape, ${v.shape.corner.smallEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-small-inactive-track-end-shape, ${v.shape.corner.smallStart} ); } :host([size="extra-small"]) .track { height: calc(var(--m3e-slider-extra-small-track-height, 1rem)); } :host([size="small"]) .track { height: calc(var(--m3e-slider-small-track-height, 1.5rem)); } :host([size="medium"]) { height: var(--m3e-slider-medium-height, 3.25rem); } :host(:not(:dir(rtl))[size="medium"]) .base { --_slider-active-track-shape: var( --m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumEnd} ); } :host(:dir(rtl)[size="medium"]) .base { --_slider-active-track-shape: var(--m3e-slider-medium-active-track-shape, ${v.shape.corner.mediumEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-medium-inactive-active-track-start-shape, ${v.shape.corner.mediumEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-medium-inactive-track-end-shape, ${v.shape.corner.mediumStart} ); } :host([size="medium"]) .track { height: var(--m3e-slider-medium-track-height, 2.5rem); } :host([size="large"]) { height: var(--m3e-slider-large-height, 4.25rem); } :host(:not(:dir(rtl))[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeStart}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeEnd} ); } :host(:dir(rtl)[size="large"]) .base { --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${v.shape.corner.largeEnd}); --_slider-inactive-track-start-shape: var( --m3e-slider-large-inactive-active-track-start-shape, ${v.shape.corner.largeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-large-inactive-track-end-shape, ${v.shape.corner.largeStart} ); } :host([size="large"]) .track { height: var(--m3e-slider-large-track-height, 3.5rem); } :host([size="extra-large"]) { height: var(--m3e-slider-extra-large-height, 6.75rem); } :host(:not(:dir(rtl))[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeStart} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeEnd} ); } :host(:dir(rtl)[size="extra-large"]) .base { --_slider-active-track-shape: var( --m3e-slider-extra-large-active-track-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-start-shape: var( --m3e-slider-extra-large-inactive-active-track-start-shape, ${v.shape.corner.extraLargeEnd} ); --_slider-inactive-track-end-shape: var( --m3e-slider-extra-large-inactive-track-end-shape, ${v.shape.corner.extraLargeStart} ); } :host([size="extra-large"]) .track { height: var(--m3e-slider-extra-large-track-height, 6rem); } :host(:state(-animating)) .track-active, :host(:state(-animating)) .track-inactive.start, :host(:state(-animating)) .track-inactive.end { transition: ${o(`margin-inline-start ${v.motion.spring.fastEffects},\n width ${v.motion.spring.fastEffects}`)}; } .base { display: inline-flex; align-items: center; position: relative; width: 100%; height: 100%; border-radius: inherit; outline: none; touch-action: none; } .track { position: relative; flex: 1 1 auto; touch-action: none; } .track-inactive, .track-active { position: absolute; height: 100%; touch-action: none; } .track-active { margin-inline-start: var(--_slider-active-track-offset, 0px); width: var(--_slider-active-track-size, 0px); border-radius: var(--_slider-active-track-middle-shape, var(--_slider-active-track-shape)); } .track-inactive.start { width: var(--_slider-inactive-track-before-size, 0px); border-radius: var(--_slider-inactive-track-start-shape); } .track-inactive.end { margin-inline-start: var(--_slider-inactive-track-after-offset, 0px); width: var(--_slider-inactive-track-after-size, 0px); border-radius: var(--_slider-inactive-track-end-shape); } .ticks { position: absolute; width: 100%; height: var(--m3e-slider-tick-size, 0.25rem); overflow: visible; touch-action: none; } .tick { position: absolute; top: 0; touch-action: none; inset-inline-start: calc(var(--m3e-slider-tick-size, 0.25rem) + calc(var(--m3e-slider-tick-size, 0.25rem) / 2)); width: var(--m3e-slider-tick-size, 0.25rem); height: var(--m3e-slider-tick-size, 0.25rem); border-radius: var(--m3e-slider-tick-shape, ${v.shape.corner.full}); } :host(:not([disabled])) .track-inactive { background-color: var(--m3e-slider-inactive-track-color, ${v.color.secondaryContainer}); } :host([disabled]) .track-inactive { background-color: color-mix( in srgb, var(--m3e-slider-disabled-inactive-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-inactive-track-opacity, 12%), transparent ); } :host(:not([disabled])) .track-active { background-color: var(--m3e-slider-active-track-color, ${v.color.primary}); } :host([disabled]) .track-active { background-color: color-mix( in srgb, var(--m3e-slider-disabled-active-track-color, ${v.color.onSurface}) var(--m3e-slider-disabled-active-track-opacity, 38%), transparent ); } :host(:not([disabled])) .tick.active { background-color: var(--m3e-slider-tick-active-color, ${v.color.onPrimary}); } :host([disabled]) .tick.active { background-color: var(--m3e-slider-disabled-tick-active-color, ${v.color.inverseOnSurface}); } :host(:not([disabled])) .tick.inactive { background-color: var(--m3e-slider-tick-inactive-color, ${v.color.onSecondaryContainer}); } :host([disabled]) .tick.inactive { background-color: var(--m3e-slider-disabled-tick-inactive-color, ${v.color.onSurface}); } :host(:not([discrete])) .tick.active { display: none; } :host(:hover[labelled]) .base, :host(:focus-within[labelled]) .base { --_slider-label-visibility: visible; --_slider-label-opacity: 1; --_slider-label-transform: scale(1); } @media (forced-colors: active) { :host(:not([disabled])) .track-inactive { background-color: unset; } :host(:not([disabled])) .base.range .track-inactive.start, :host(:not([disabled])) .track-inactive.end { border: 1px solid CanvasText; box-sizing: border-box; } :host(:not([disabled])) .tick.inactive { background-color: CanvasText; } :host(:not([disabled])) .tick.active { background-color: Canvas; } :host(:not([disabled])) .track-active { background-color: CanvasText; } :host([disabled]) .base.range .track-inactive.start, :host([disabled]) .track-inactive.end { border: 1px solid GrayText; box-sizing: border-box; } :host([disabled]) .track-active { background-color: GrayText; } :host([disabled]) .tick.inactive { background-color: GrayText; } :host([disabled]) .tick.active { background-color: Canvas; } }`,t([h(".base")],hk.prototype,"_base",void 0),t([u()],hk.prototype,"_ticks",void 0),t([m({reflect:!0})],hk.prototype,"size",void 0),t([m({type:Boolean,reflect:!0})],hk.prototype,"disabled",void 0),t([m({type:Boolean,reflect:!0})],hk.prototype,"discrete",void 0),t([m({type:Number})],hk.prototype,"min",void 0),t([m({type:Number})],hk.prototype,"max",void 0),t([m({type:Number})],hk.prototype,"step",void 0),t([m({type:Boolean})],hk.prototype,"labelled",void 0),t([m({attribute:!1})],hk.prototype,"displayWith",void 0),hk=t([$("m3e-slider")],hk);let xk=$k=class extends(f(r,"status")){constructor(){super(...arguments),mk.add(this),pk.set(this,-1),uk.set(this,!1),vk.set(this,t=>e(this,mk,"m",yk).call(this,t)),this.duration=3e3,this.action="",this.dismissible=!1,this.closeLabel="Close"}static get current(){return $k.__current}get isActionTaken(){return e(this,uk,"f")}connectedCallback(){super.connectedCallback(),this.addEventListener("beforetoggle",e(this,vk,"f")),this.setAttribute("popover","manual"),this.ariaLive="polite"}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",e(this,vk,"f"))}render(){return s`<div class="base"><span class="supporting-text"><slot></slot></span>${e(this,mk,"m",bk).call(this)} ${e(this,mk,"m",fk).call(this)}</div>`}updated(e){super.updated(e),this.style.setProperty("--_snackbar-height",this.getBoundingClientRect().height/.8+"px")}};pk=new WeakMap,uk=new WeakMap,vk=new WeakMap,mk=new WeakSet,bk=function(){return this.action?s`<m3e-button @click="${e(this,mk,"m",gk)}">${this.action}</m3e-button>`:n},fk=function(){return this.dismissible?s`<m3e-icon-button aria-label="${this.closeLabel}" @click="${this.hidePopover}"><slot name="close-icon"><svg class="close-icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg></slot></m3e-icon-button>`:n},gk=function(){a(this,uk,!0,"f"),this.hidePopover()},yk=function(t){"open"==t.newState?($k.__current?.hidePopover(),$k.__current=this,this.duration>0&&a(this,pk,setTimeout(()=>this.hidePopover(),this.duration),"f")):($k.__current===this&&($k.__current=null),clearTimeout(e(this,pk,"f")))},B(i`m3e-snackbar { margin-inline: auto; }`),xk.styles=i`:host { position: fixed; top: calc(100vh - var(--_snackbar-height, 0px) - var(--m3e-snackbar-margin, 1rem)); display: inline-flex; align-items: center; min-width: var(--m3e-snackbar-min-width, 21.5rem); max-width: var(--m3e-snackbar-max-width, 42rem); visibility: hidden; border: none; margin: 0; padding: 0; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard}, \n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n visibility ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host::backdrop { background-color: transparent; } :host(:popover-open) { visibility: visible; opacity: 1; transform: scale(1); } @starting-style { :host(:popover-open) { opacity: 0; transform: scale(0.8); } } .base { display: inline-flex; align-items: center; flex: 1 1 auto; box-sizing: border-box; padding: var(--m3e-snackbar-padding, 0 1rem 0 1rem); border-radius: var(--m3e-snackbar-container-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-snackbar-container-color, ${v.color.inverseSurface}); font-size: var(--m3e-snackbar-supporting-text-font-size, ${v.typescale.standard.label.large.fontSize}); font-weight: var( --m3e-snackbar-supporting-text-font-weight, ${v.typescale.standard.label.large.fontWeight} ); line-height: var( --m3e-snackbar-supporting-text-line-height, ${v.typescale.standard.label.large.lineHeight} ); letter-spacing: var( --m3e-snackbar-supporting-text-tracking, ${v.typescale.standard.label.large.tracking} ); color: var(--m3e-snackbar-supporting-text-color, ${v.color.inverseOnSurface}); --m3e-text-button-label-text-color: var(--m3e-snackbar-action-text-color, ${v.color.inversePrimary}); --m3e-text-button-hover-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-hover-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-focus-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-label-text-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-text-button-pressed-state-layer-color: var( --m3e-snackbar-action-text-color, ${v.color.inversePrimary} ); --m3e-standard-icon-button-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-hover-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-focus-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-icon-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); --m3e-standard-icon-button-pressed-state-layer-color: var( --m3e-snackbar-close-icon-color, ${v.color.inverseOnSurface} ); } :host([dismissible]) .base { padding-inline-end: 0.5rem; } .supporting-text { flex: 1 1 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; margin-block: var(--m3e-snackbar-supporting-text-margin-block, 0.875rem); } ::slotted([slot="close-icon"]), .close-icon { width: 1em; font-size: var(--m3e-icon-button-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host { background-color: Canvas; color: CanvasText; border-radius: ${v.shape.corner.small}; box-sizing: border-box; outline: 1px solid CanvasText; } }`,xk.__current=null,t([m({type:Number})],xk.prototype,"duration",void 0),t([m()],xk.prototype,"action",void 0),t([m({type:Boolean,reflect:!0})],xk.prototype,"dismissible",void 0),t([m({attribute:"close-label"})],xk.prototype,"closeLabel",void 0),xk=$k=t([$("m3e-snackbar")],xk);class wk{static open(e,t,a,o){if(l)return;const i=document.createElement("m3e-snackbar");let r;i.append(document.createTextNode(e)),"string"==typeof t?i.action=t:"boolean"==typeof t?i.dismissible=t:r=t,"boolean"==typeof a?i.dismissible=a:r=a,o&&(r=o),void 0!==r?.duration&&(i.duration=r.duration),r?.closeLabel&&(i.closeLabel=r.closeLabel),i.addEventListener("toggle",e=>{"closed"===e.newState&&(S()?i.remove():i.addEventListener("transitionend",()=>i.remove(),{once:!0}),i.isActionTaken&&r?.actionCallback?.())}),(document.querySelector("m3e-theme")??document.body).append(i),i.showPopover()}static dismiss(){xk.current?.hidePopover()}}var kk,Ck,Sk,_k,Lk,zk,Ek,Mk,Tk,Pk,Ik,Wk;globalThis.M3eSnackbar=wk;let Dk=class extends(f(r,"group")){constructor(){super(...arguments),kk.add(this),Ck.set(this,void 0),Sk.set(this,void 0),_k.set(this,!1),Lk.set(this,new Z(this,{target:null,capture:!0,minPressedDuration:150,isPressedKey:e=>" "===e,callback:(t,a,o)=>{switch(o){case e(this,Ck,"f"):e(this,kk,"m",Pk).call(this,t);break;case e(this,Sk,"f"):e(this,kk,"m",Ik).call(this,t||e(this,_k,"f"))}}})),zk.set(this,new ne(this,{target:null,callback:(t,o)=>{if(o===e(this,Sk,"f"))e(this,Sk,"f")?.disabled||e(this,Sk,"f")?.disabledInteractive||(a(this,_k,t,"f"),e(this,kk,"m",Ik).call(this,t))}})),this.variant="filled",this.size="small"}update(t){super.update(t),t.has("variant")&&e(this,kk,"m",Tk).call(this)}render(){return s`<m3e-button-group class="base" disable-role variant="connected" size="${this.size}"><slot name="leading-button" @slotchange="${e(this,kk,"m",Ek)}"></slot><slot name="trailing-button" @slotchange="${e(this,kk,"m",Mk)}"></slot></m3e-button-group>`}};Ck=new WeakMap,Sk=new WeakMap,_k=new WeakMap,Lk=new WeakMap,zk=new WeakMap,kk=new WeakSet,Ek=function(t){e(this,Ck,"f")&&e(this,Lk,"f").unobserve(e(this,Ck,"f")),a(this,Ck,t.target.assignedElements({flatten:!0}).find(e=>e instanceof je),"f"),e(this,Ck,"f")&&e(this,Lk,"f").observe(e(this,Ck,"f")),e(this,kk,"m",Tk).call(this)},Mk=function(t){e(this,Sk,"f")&&(e(this,Lk,"f").unobserve(e(this,Sk,"f")),e(this,zk,"f").unobserve(e(this,Sk,"f"))),a(this,Sk,t.target.assignedElements({flatten:!0}).find(e=>e instanceof Ye),"f"),e(this,Sk,"f")&&(e(this,Lk,"f").observe(e(this,Sk,"f")),e(this,zk,"f").observe(e(this,Sk,"f"))),e(this,kk,"m",Tk).call(this)},Tk=function(){e(this,Ck,"f")&&(e(this,Ck,"f").variant=this.variant,e(this,Ck,"f").size=this.size,e(this,Ck,"f").shape="rounded"),e(this,Sk,"f")&&(e(this,Sk,"f").width="default",e(this,Sk,"f").shape="rounded",e(this,Sk,"f").setAttribute("variant",this.variant),e(this,Sk,"f").size=this.size)},Pk=function(t){t&&e(this,Ck,"f")?e(this,kk,"m",Wk).call(this,e(this,Ck,"f"),"--_leading-button-shape"):this._base?.style.removeProperty("--_leading-button-shape")},Ik=function(t){t&&e(this,Sk,"f")?e(this,kk,"m",Wk).call(this,e(this,Sk,"f"),"--_trailing-button-shape"):this._base?.style.removeProperty("--_trailing-button-shape")},Wk=function(e,t){const a=e.clientHeight/2;a&&this._base?.style.setProperty(t,`${a}px`)},Dk.styles=i`:host { display: inline-flex; vertical-align: middle; } ::slotted([slot="leading-button"]) { flex: 1 1 auto; min-width: 0; --_button-start-shape-pressed-morph: var(--_leading-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"])) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-unselected-leading-space, 0.75rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-unselected-trailing-space, 0.875rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-unselected-leading-space, 0.8125rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-unselected-trailing-space, 1.0625rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-unselected-leading-space, 1.625rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-unselected-trailing-space, 2rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-unselected-leading-space, 2.3125rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-unselected-trailing-space, 3.0625rem ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --m3e-icon-button-extra-small-default-leading-space: var( --m3e-split-button-extra-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-extra-small-default-trailing-space: var( --m3e-split-button-extra-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-small-default-leading-space: var( --m3e-split-button-small-trailing-button-selected-leading-space, 0.8125rem ); --m3e-icon-button-small-default-trailing-space: var( --m3e-split-button-small-trailing-button-selected-trailing-space, 0.8125rem ); --m3e-icon-button-medium-default-leading-space: var( --m3e-split-button-medium-trailing-button-selected-leading-space, 0.9375rem ); --m3e-icon-button-medium-default-trailing-space: var( --m3e-split-button-medium-trailing-button-selected-trailing-space, 0.9375rem ); --m3e-icon-button-large-default-leading-space: var( --m3e-split-button-large-trailing-button-selected-leading-space, 1.8125rem ); --m3e-icon-button-large-default-trailing-space: var( --m3e-split-button-large-trailing-button-selected-trailing-space, 1.8125rem ); --m3e-icon-button-extra-large-default-leading-space: var( --m3e-split-button-extra-large-trailing-button-selected-leading-space, 2.6875rem ); --m3e-icon-button-extra-large-default-trailing-space: var( --m3e-split-button-extra-large-trailing-button-selected-trailing-space, 2.6875rem ); } ::slotted([slot="leading-button"]:not(:hover)), ::slotted([slot="leading-button"]:disabled), ::slotted([slot="leading-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="leading-button"]:hover:not(:disabled):not([disabled-interactive])), ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):hover:not(:disabled):not([disabled-interactive])) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-hover-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-hover-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-hover-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="leading-button"]), ::slotted([slot="trailing-button"]) { --m3e-connected-button-group-extra-small-inner-pressed-shape: var( --m3e-split-button-extra-small-inner-corner-pressed-size, ${v.shape.corner.small} ); --m3e-connected-button-group-small-inner-pressed-shape: var( --m3e-split-button-small-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-medium-inner-pressed-shape: var( --m3e-split-button-medium-inner-corner-pressed-size, ${v.shape.corner.medium} ); --m3e-connected-button-group-large-inner-pressed-shape: var( --m3e-split-button-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); --m3e-connected-button-group-extra-large-inner-pressed-shape: var( --m3e-split-button-extra-large-inner-corner-pressed-size, ${v.shape.corner.largeIncreased} ); } ::slotted([slot="trailing-button"]:not([aria-expanded="true"]):not(:hover)), ::slotted([slot="trailing-button"]:disabled), ::slotted([slot="trailing-button"][disabled-interactive]) { --m3e-connected-button-group-extra-small-inner-shape: var( --m3e-split-button-extra-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-small-inner-shape: var( --m3e-split-button-small-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-medium-inner-shape: var( --m3e-split-button-medium-inner-corner-size, ${v.shape.corner.extraSmall} ); --m3e-connected-button-group-large-inner-shape: var( --m3e-split-button-large-inner-corner-size, ${v.shape.corner.small} ); --m3e-connected-button-group-extra-large-inner-shape: var( --m3e-split-button-extra-large-inner-corner-size, ${v.shape.corner.medium} ); } ::slotted([slot="trailing-button"][aria-expanded="true"]) { --_icon-button-icon-transform: rotate(180deg); --_button-rounded-start-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); --_button-rounded-end-shape: var(--_trailing-button-shape, ${v.shape.corner.full}); } ::slotted([slot="trailing-button"]) { --_button-end-shape-pressed-morph: var(--_trailing-button-shape, ${v.shape.corner.full}); } .base { --m3e-icon-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-button-extra-small-icon-size: calc( var(--m3e-spit-button-extra-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(0)} ); --m3e-icon-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-button-small-icon-size: calc( var(--m3e-spit-button-small-trailing-button-icon-size, 1.375rem) + ${v.density.calc(-1)} ); --m3e-icon-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-button-medium-icon-size: calc( var(--m3e-spit-button-medium-trailing-button-icon-size, 1.625rem) + ${v.density.calc(-2)} ); --m3e-icon-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-button-large-icon-size: calc( var(--m3e-spit-button-large-trailing-button-icon-size, 2.375rem) + ${v.density.calc(-3)} ); --m3e-icon-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); --m3e-button-extra-large-icon-size: calc( var(--m3e-spit-button-extra-large-trailing-button-icon-size, 3.125rem) + ${v.density.calc(-3)} ); } :host([size="extra-small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-small-between-spacing, 0.125rem); } :host([size="small"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-small-between-spacing, 0.125rem); } :host([size="medium"]).base { --m3e-connected-button-group-spacing: var(--m3e-split-button-medium-between-spacing, 0.125rem); } :host([size="large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-large-between-spacing, 0.125rem); } :host([size="extra-large"]) .base { --m3e-connected-button-group-spacing: var(--m3e-split-button-extra-large-between-spacing, 0.125rem); }`,t([h(".base")],Dk.prototype,"_base",void 0),t([m({reflect:!0})],Dk.prototype,"variant",void 0),t([m({reflect:!0})],Dk.prototype,"size",void 0),Dk=t([$("m3e-split-button")],Dk);let Ak=class extends(f(r,"tabpanel")){constructor(){super(...arguments),this.active=!1}connectedCallback(){this.slot="panel",super.connectedCallback()}render(){return s`<m3e-collapsible ?open="${this.active}"><div class="content"><div><slot></slot></div><slot name="actions"></slot></div></m3e-collapsible>`}};var Hk,Ok,Fk,Bk,Vk;Ak.styles=i`:host { display: block; } .content { display: flex; flex-direction: column; padding: var(--m3e-step-panel-padding, 1rem 1.5rem 1.5rem 1.5rem); row-gap: var(--m3e-step-panel-spacing, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: var(--m3e-step-panel-actions-height, 3rem); } ::slotted([slot="actions"][end]) { justify-content: flex-end; }`,t([u()],Ak.prototype,"active",void 0),Ak=t([$("m3e-step-panel")],Ak);let qk=Vk=class extends(ue(q(N(b(Y(P(f(r,"tab")))))))){constructor(){super(...arguments),Hk.add(this),Ok.set(this,t=>e(this,Hk,"m",Bk).call(this,t)),this.optional=!1,this.editable=!1,this.completed=!1,this.invalid=!1,this.index=-1}get panel(){return this.control instanceof Ak?this.control:null}get stepper(){return this.closest("m3e-stepper")}reset(){this.invalid=!1,this.completed=!1,this.panel?.querySelector("form")?.reset()}attach(e){e instanceof Ak&&(e.id=e.id||"m3e-step-panel-"+Vk.__nextId++,Pe(this,"aria-controls",e.id),e.style.order=this.style.order),super.attach(e)}detach(){this.control&&(this.control.style.order="",this.control.id&&Ie(this,"aria-controls",this.control.id)),super.detach()}connectedCallback(){this.slot="step",super.connectedCallback(),this.addEventListener("click",e(this,Ok,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,Ok,"f"))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-stepper")?.[We].notifySelectionChange(this)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}render(){const t=s`<slot name="hint">${this.optional?s`<span class="hint">(Optional)</span>`:n}</slot>`,a=s`<slot name="error">${t}</slot>`;return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="wrapper"><div class="icon" aria-hidden="true">${e(this,Hk,"m",Fk).call(this)}</div><div class="label"><slot></slot>${this.invalid?a:t}</div></div></div>`}};var Rk,Uk,Nk,jk,Yk,Kk,Zk,Gk,Xk,Jk,Qk,eC;Ok=new WeakMap,Hk=new WeakSet,Fk=function(){if(!this.selected){if(this.invalid)return s`<slot name="error-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg></slot>`;if(this.completed)return this.editable?s`<slot name="edit-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg></slot>`:s`<slot name="done-icon"><svg viewBox="0 -960 960 960" fill="currentColor"><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg></slot>`}return s`<slot name="icon">${this.index+1}</slot>`},Bk=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))&&this.closest("m3e-stepper")?.moveTo(this.index)?this.dispatchEvent(new Event("change",{bubbles:!0})):this.selected=!1)},qk.styles=i`:host { display: block; outline: none; min-width: 0px; position: relative; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .base { min-width: inherit; position: relative; border-radius: var(--m3e-step-shape, ${v.shape.corner.medium}); padding: var(--m3e-step-padding, 1.5rem); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .icon { flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--m3e-step-icon-shape, 50%); width: var(--m3e-step-icon-size, 1.5rem); height: var(--m3e-step-icon-size, 1.5rem); } .icon svg, ::slotted([slot="icon"]), ::slotted([slot="edit-icon"]), ::slotted([slot="done-icon"]), ::slotted([slot="error-icon"]) { width: 1em; font-size: var(--m3e-step-icon-size, 1.5rem) !important; } :host(:not([aria-disabled="true"])[selected]) .icon { background-color: var(--m3e-step-selected-icon-container-color, ${v.color.primary}); color: var(--m3e-step-selected-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"])[completed]:not([invalid])) .icon { background-color: var(--m3e-step-completed-icon-container-color, ${v.color.primary}); color: var(--m3e-step-completed-icon-color, ${v.color.onPrimary}); } :host(:not([aria-disabled="true"]):not([selected]):not([completed]):not([invalid])) .icon { background-color: var(--m3e-step-unselected-icon-container-color, ${v.color.inverseSurface}); color: var(--m3e-step-unselected-icon-color, ${v.color.inverseOnSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .icon { color: var(--m3e-step-icon-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .icon { background-color: color-mix( in srgb, var(--m3e-step-disabled-icon-container-color, ${v.color.onSurface}) 10%, transparent ); color: color-mix(in srgb, var(--m3e-step-disabled-icon-color, ${v.color.onSurface}) 38%, transparent); } :host(:not([aria-disabled="true"])) .label { color: var(--m3e-step-label-color, ${v.color.onSurface}); } :host(:not([aria-disabled="true"]):not([selected])[invalid]) .label { color: var(--m3e-step-label-error-color, ${v.color.error}); } :host([aria-disabled="true"]) .label { color: color-mix(in srgb, var(--m3e-step-disabled-label-color, ${v.color.onSurface}) 38%, transparent); } .wrapper { display: flex; align-items: center; height: 100%; border-radius: inherit; font-size: var(--m3e-step-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-step-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-step-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-step-tracking, ${v.typescale.standard.title.small.tracking}); flex-direction: var(--_step-direction, row); gap: var(--m3e-step-icon-label-space, 0.5rem); justify-content: flex-start; } .label { display: flex; flex-direction: column; align-items: var(--_step-label-align-items, flex-start); } ::slotted([slot="hint"]), .hint, ::slotted([slot="error"]) { font-size: var(--m3e-step-hint-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var(--m3e-step-hint-font-weight, ${v.typescale.standard.body.small.fontWeight}); line-height: var(--m3e-step-hint-line-height, ${v.typescale.standard.body.small.lineHeight}); letter-spacing: var(--m3e-step-hint-tracking, ${v.typescale.standard.body.small.tracking}); } :host(:not([aria-disabled="true"]):not([invalid])) ::slotted([slot="hint"]), :host(:not([aria-disabled="true"]):not([invalid])) .hint { color: var(--m3e-step-hint-color, ${v.color.onSurfaceVariant}); } :host([aria-disabled="true"]) ::slotted([slot="hint"]), :host([aria-disabled="true"]) .hint { color: color-mix(in srgb, var(--m3e-step-disabled-hint-color, ${v.color.onSurface}) 38%, transparent); }`,qk.__nextId=0,t([h(".focus-ring")],qk.prototype,"_focusRing",void 0),t([h(".state-layer")],qk.prototype,"_stateLayer",void 0),t([h(".ripple")],qk.prototype,"_ripple",void 0),t([m({type:Boolean,reflect:!0})],qk.prototype,"optional",void 0),t([m({type:Boolean,reflect:!0})],qk.prototype,"editable",void 0),t([m({type:Boolean,reflect:!0})],qk.prototype,"completed",void 0),t([m({type:Boolean,reflect:!0})],qk.prototype,"invalid",void 0),t([u()],qk.prototype,"index",void 0),qk=Vk=t([$("m3e-step")],qk);class tC extends E{constructor(e){super(),Rk.set(this,void 0),a(this,Rk,e,"f")}_onClick(){switch(e(this,Rk,"f")){case"next":this.closest("m3e-stepper")?.moveNext();break;case"previous":this.closest("m3e-stepper")?.movePrevious();break;case"reset":this.closest("m3e-stepper")?.reset()}}}Rk=new WeakMap;let aC=class extends(M(P(r))){constructor(){super(...arguments),Uk.add(this),Nk.set(this,void 0),this._selectedIndex=null,this[eC]=(new De).withHomeAndEnd().withWrap().onSelectedItemsChange(()=>e(this,Uk,"m",Gk).call(this)),this.headerPosition="above",this.labelPosition="end",this.linear=!1,this.orientation="horizontal"}get steps(){return this[We]?.items??[]}get selectedStep(){return null!==this._selectedIndex?this.steps[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}movePrevious(){return this.moveTo((this._selectedIndex??1)-1)}moveNext(){return this.moveTo((this._selectedIndex??-1)+1)}moveTo(t){const a=this.selectedStep;if(a&&a.index===t)return!0;if(this.steps[t]?.disabled)return!1;if(t>=0&&t<this.steps.length){if(a){const o=e(this,Uk,"m",Xk).call(this);if(this.linear)if(t<a.index){const e=this[We].items[t];if(!e||e.completed&&!e.editable)return!1}else if(t>a.index+1){const e=this[We].items[t];if(!e||!e.completed)return!1}else if(!o&&!a.optional)return!1;a.completed=!0}return this._selectedIndex=t,this[We].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})),!0}return a&&(this[We].deselect(a),this.dispatchEvent(new Event("change",{bubbles:!0}))),!1}reset(){this.steps.forEach(e=>e.reset());const e=this.steps.findIndex(e=>!e.disabled);e!==this._selectedIndex&&(this._selectedIndex=e,this[We].select(this.selectedStep),this.dispatchEvent(new Event("change",{bubbles:!0})))}connectedCallback(){super.connectedCallback(),z(this,"-no-animate")}disconnectedCallback(){super.disconnectedCallback(),this._orientation=void 0,e(this,Nk,"f")?.call(this)}reconnectedCallback(){super.reconnectedCallback(),"auto"===this.orientation&&e(this,Uk,"m",Jk).call(this)}willUpdate(t){super.willUpdate(t),t.has("orientation")&&(e(this,Nk,"f")?.call(this),"auto"===this.orientation?e(this,Uk,"m",Jk).call(this):(this._orientation=void 0,e(this,Uk,"m",Qk).call(this))),t.has("_orientation")&&e(this,Uk,"m",Qk).call(this)}render(){let t;return this.selectedStep?.panel&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedStep.panel),-1===t&&(t=void 0)),this[We].vertical?s`${e(this,Uk,"m",jk).call(this)}<slot name="panel"></slot>`:s`${"above"===this.headerPosition?e(this,Uk,"m",jk).call(this):n}<m3e-slide class="steps" selected-index="${Ne(t)}"><slot name="panel"></slot></m3e-slide>${"below"===this.headerPosition?e(this,Uk,"m",jk).call(this):n}`}};Nk=new WeakMap,Uk=new WeakSet,eC=We,jk=function(){return s`<div class="header" role="tablist" aria-orientation="${Ne(this[We].vertical?"vertical":void 0)}" @change="${e(this,Uk,"m",Yk)}"><slot name="step" @slotchange="${e(this,Uk,"m",Kk)}" @keydown="${e(this,Uk,"m",Zk)}"></slot></div>`},Yk=function(e){e.stopPropagation()},Kk=function(){const{added:t,removed:a}=this[We].setItems([...this.querySelectorAll("m3e-step")]);if(t.length>0||a.length>0){this.querySelectorAll(".-m3e-step-divider").forEach(e=>e.remove());for(let e=0;e<this[We].items.length;e++){const t=this[We].items[e];if(t.index=e,e>0){const e=document.createElement("div");e.ariaHidden="true",e.classList.add("-m3e-step-divider"),e.slot="step",t.insertAdjacentElement("beforebegin",e)}}e(this,Uk,"m",Qk).call(this),0==this[We].selectedItems.length&&this[We].select(this[We].items.find(e=>!e.disabled))}},Zk=function(e){this[We].onKeyDown(e)},Gk=function(){const e=this[We].selectedItems[0];let t=e?this.steps.indexOf(e):null;-1===t&&(t=null),this._selectedIndex=t;for(const e of this[We].items)e.panel&&(e.panel.active=e.index===t);e&&this.matches(":focus-within")&&!e.matches(":focus")&&e.focus(),O(this,"-no-animate")&&requestAnimationFrame(()=>C(this,"-no-animate"))},Xk=function(){let e=!1;return this.selectedStep&&(e=this.selectedStep.panel?.querySelector("form")?.checkValidity()??!0,this.selectedStep.optional&&(e=!0),this.selectedStep.invalid=!e),e},Jk=function(){a(this,Nk,Xe.observe([Je.XSmall],t=>{this._orientation=t.get(Je.XSmall)?"vertical":"horizontal",e(this,Uk,"m",Qk).call(this)}),"f")},Qk=function(){this[We].vertical="vertical"===(this._orientation??this.orientation),k(this,"-vertical",this[We].vertical),this[We].vertical?this.steps.forEach((e,t)=>{e.style.order=`${t}`,e.panel&&(e.panel.style.order=`${t}`)}):this.steps.forEach(e=>{e.style.order="",e.panel&&(e.panel.style.order="")})},B(i`m3e-stepper:not(:state(-vertical)) > .-m3e-step-divider::before { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical)) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { border-bottom-width: var(--m3e-step-divider-thickness, 1px); border-bottom-style: solid; border-bottom-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:not(:state(-vertical))[label-position="end"] > .-m3e-step-divider { margin-block: auto; } m3e-stepper:not(:state(-vertical))[label-position="below"] > .-m3e-step-divider::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:not(:state(-vertical))[label-position="below"] > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-block-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"] { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); } m3e-stepper:state(-vertical) > [slot="panel"]:not(:last-of-type) { border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); } m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:first-of-type)::before, m3e-stepper:state(-vertical) > [slot="step"]:not(.-m3e-step-divider):not(:last-of-type)::after { margin-inline-start: calc(var(--m3e-step-padding, 1.5rem) + calc(var(--m3e-step-icon-size, 1.5rem) / 2)); border-inline-start-width: var(--m3e-step-divider-thickness, 1px); border-inline-start-style: solid; border-inline-start-color: var(--m3e-step-divider-color, ${v.color.outline}); }`),aC.styles=i`:host { display: flex; flex-direction: column; position: relative; } :host(:not(:state(-vertical))) .header { display: flex; align-items: flex-start; flex-wrap: nowrap; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider) { flex: 1 1 auto; position: relative; min-width: 2rem; } :host(:not(:state(-vertical))) ::slotted(.-m3e-step-divider)::before { content: ""; position: absolute; left: 0; right: 0; } :host(:not(:state(-vertical)):not([label-position="below"])) ::slotted(.-m3e-step-divider)::before { top: 50%; } :host(:not(:state(-vertical))) ::slotted([slot="step"]) { align-self: stretch; } :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; top: 0; } :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: 50%; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="end"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { left: 0; right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { right: 0; left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:not(:dir(rtl)):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { left: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); right: 0; } :host(:dir(rtl):not(:state(-vertical))[label-position="below"]) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { right: calc(50% + calc(var(--m3e-step-icon-size, 1.5rem) / 2) + var(--m3e-step-divider-inset, 0.5rem)); left: 0; } :host(:not(:state(-vertical))[label-position="below"]) { --_step-direction: column; --_step-label-align-items: center; } :host(:state(-vertical)) .header { display: contents; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider)) { flex: none; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before, :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { content: ""; display: block; position: absolute; left: 0; } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:first-of-type))::before { top: 0; bottom: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); } :host(:state(-vertical)) ::slotted([slot="step"]:not(.-m3e-step-divider):not(:last-of-type))::after { top: calc(100% - var(--m3e-step-padding, 1.5rem) + var(--m3e-step-divider-inset, 0.5rem)); bottom: 0; } :host(:not(:state(-vertical))) { --m3e-collapsible-animation-duration: 0ms; } :host(:state(-no-animate)) { --m3e-collapsible-animation-duration: 0ms; }`,t([u()],aC.prototype,"_orientation",void 0),t([u()],aC.prototype,"_selectedIndex",void 0),t([m({attribute:"header-position",reflect:!0})],aC.prototype,"headerPosition",void 0),t([m({attribute:"label-position",reflect:!0})],aC.prototype,"labelPosition",void 0),t([m({type:Boolean,reflect:!0})],aC.prototype,"linear",void 0),t([m({reflect:!0})],aC.prototype,"orientation",void 0),aC=t([$("m3e-stepper")],aC);let oC=class extends tC{constructor(){super("next")}};oC=t([$("m3e-stepper-next")],oC);let iC=class extends tC{constructor(){super("previous")}};iC=t([$("m3e-stepper-previous")],iC);let rC=class extends tC{constructor(){super("reset")}};rC=t([$("m3e-stepper-reset")],rC);const sC=o(`var(--m3e-switch-selected-icon-color, ${v.color.onPrimaryContainer})`),nC=o("var(--m3e-switch-selected-icon-size, 1rem)"),lC=o(`var(--m3e-switch-unselected-icon-color, ${v.color.surfaceContainerHighest})`),cC=o("var(--m3e-switch-unselected-icon-size, 1rem)"),dC=o("var(--m3e-switch-track-height, 2rem)"),hC=o("var(--m3e-switch-track-width, 3.25rem)"),mC=o(`var(--m3e-switch-track-outline-color, ${v.color.outline})`),pC=o("var(--m3e-switch-track-outline-width, 2px)"),uC=o(`var(--m3e-switch-track-shape, ${v.shape.corner.full})`),vC=o(`var(--m3e-switch-selected-track-color, ${v.color.primary})`),bC=o(`var(--m3e-switch-unselected-track-color, ${v.color.surfaceContainerHighest})`),fC=o("var(--m3e-switch-unselected-handle-height, 1rem)"),gC=o("var(--m3e-switch-unselected-handle-width, 1rem)"),yC=o("var(--m3e-switch-with-icon-handle-height, 1.5rem)"),$C=o("var(--m3e-switch-with-icon-handle-width, 1.5rem)"),xC=o("var(--m3e-switch-selected-handle-height, 1.5rem)"),wC=o("var(--m3e-switch-selected-handle-width, 1.5rem)"),kC=o("var(--m3e-switch-pressed-handle-height, 1.75rem)"),CC=o("var(--m3e-switch-pressed-handle-width, 1.75rem)"),SC=o(`var(--m3e-switch-handle-shape, ${v.shape.corner.full})`),_C=o(`var(--m3e-switch-selected-handle-color, ${v.color.onPrimary})`),LC=o(`var(--m3e-switch-unselected-handle-color, ${v.color.outline})`),zC=o("var(--m3e-switch-state-layer-size, 2.5rem)"),EC=o(`var(--m3e-switch-state-layer-shape, ${v.shape.corner.full})`),MC=o(`var(--m3e-switch-disabled-selected-icon-color, ${v.color.onSurface})`),TC=o("var(--m3e-switch-disabled-selected-icon-opacity, 38%)"),PC=o(`var(--m3e-switch-disabled-unselected-icon-color, ${v.color.surfaceContainerHighest})`),IC=o("var(--m3e-switch-disabled-unselected-icon-opacity, 38%)"),WC=o("var(--m3e-switch-disabled-track-opacity, 12%)"),DC=o(`var(--m3e-switch-disabled-selected-track-color, ${v.color.onSurface})`),AC=o(`var(--m3e-switch-disabled-unselected-track-color, ${v.color.surfaceContainerHighest})`),HC=o(`var(--m3e-switch-disabled-unselected-track-outline-color, ${v.color.onSurface})`),OC=o("var(--m3e-switch-disabled-unselected-handle-opacity, 38%)"),FC=o("var(--m3e-switch-disabled-selected-handle-opacity, 100%)"),BC=o(`var(--m3e-switch-disabled-selected-handle-color, ${v.color.surface})`),VC=o(`var(--m3e-switch-disabled-unselected-handle-color, ${v.color.onSurface})`),qC=o(`var(--m3e-switch-selected-hover-icon-color, ${v.color.onPrimaryContainer})`),RC=o(`var(--m3e-switch-unselected-hover-icon-color, ${v.color.surfaceContainerHighest})`),UC=o(`var(--m3e-switch-selected-hover-track-color, ${v.color.primary})`),NC=o(`var(--m3e-switch-selected-hover-state-layer-color, ${v.color.primary})`),jC=o("var(--m3e-switch-selected-hover-state-layer-opacity, 8%)"),YC=o(`var(--m3e-switch-unselected-hover-track-color, ${v.color.surfaceContainerHighest})`),KC=o(`var(--m3e-switch-unselected-hover-track-outline-color, ${v.color.outline})`),ZC=o(`var(--m3e-switch-unselected-hover-state-layer-color, ${v.color.onSurface})`),GC=o("var(--m3e-switch-unselected-hover-state-layer-opacity, 8%)"),XC=o(`var(--m3e-switch-selected-hover-handle-color, ${v.color.surfaceContainerHighest})`),JC=o(`var(--m3e-switch-unselected-hover-handle-color, ${v.color.onSurfaceVariant})`),QC=o(`var(--m3e-switch-selected-focus-icon-color, ${v.color.onPrimaryContainer})`),eS=o(`var(--m3e-switch-unselected-focus-icon-color, ${v.color.surfaceContainerHighest})`),tS=o(`var(--m3e-switch-selected-focus-track-color, ${v.color.primary})`),aS=o(`var(--m3e-switch-selected-focus-state-layer-color, ${v.color.primary})`),oS=o("var(--m3e-switch-selected-focus-state-layer-opacity, 10%)"),iS=o(`var(--m3e-switch-unselected-focus-track-color, ${v.color.surfaceContainerHighest})`),rS=o(`var(--m3e-switch-unselected-focus-track-outline-color, ${v.color.outline})`),sS=o(`var(--m3e-switch-unselected-focus-state-layer-color, ${v.color.onSurface})`),nS=o("var(--m3e-switch-unselected-focus-state-layer-opacity, 10%)"),lS=o(`var(--m3e-switch-selected-focus-handle-color, ${v.color.primaryContainer})`),cS=o(`var(--m3e-switch-unselected-focus-handle-color, ${v.color.onSurfaceVariant})`),dS=o(`var(--m3e-switch-selected-pressed-icon-color, ${v.color.onPrimaryContainer})`),hS=o(`var(--m3e-switch-unselected-pressed-icon-color, ${v.color.surfaceContainerHighest})`),mS=o(`var(--m3e-switch-selected-pressed-track-color, ${v.color.primary})`),pS=(o(`var(--m3e-switch-selected-pressed-state-layer-color, ${v.color.primary})`),o("var(--m3e-switch-selected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-unselected-pressed-track-color, ${v.color.surfaceContainerHighest})`)),uS=o(`var(--m3e-switch-unselected-pressed-track-outline-color, ${v.color.outline})`),vS=(o(`var(--m3e-switch-unselected-pressed-state-layer-color, ${v.color.onSurface})`),o("var(--m3e-switch-unselected-pressed-state-layer-opacity, 10%)"),o(`var(--m3e-switch-selected-pressed-handle-color, ${v.color.primaryContainer})`)),bS=o(`var(--m3e-switch-unselected-pressed-handle-color, ${v.color.onSurfaceVariant})`),fS=i`.handle { position: relative; display: flex; align-items: center; justify-content: center; pointer-events: none; transform-origin: center center; border-radius: ${SC}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard},\n transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } .track:not(.pressed) .handle { --_switch-handle-effect: ${v.motion.spring.fastSpatial}; } .track.pressed .handle { --_switch-handle-effect: ${v.motion.spring.fastEffects}; } :host(:not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { width: ${$C}; height: ${yC}; } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host([aria-disabled="true"]:not([checked])) .handle { width: ${gC}; height: ${fC}; } :host([checked]) .track:not(.pressed) .handle { width: ${wC}; height: ${xC}; } .track.pressed .handle { width: ${CC}; height: ${kC}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${LC}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle { background-color: ${JC}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle { background-color: ${cS}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ${bS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle { background-color: ${_C}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle { background-color: ${XC}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle { background-color: ${lS}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: ${vS}; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: color-mix( in srgb, ${VC} ${OC}, transparent ); } :host([aria-disabled="true"][checked]) .handle { background-color: color-mix( in srgb, ${BC} ${FC}, transparent ); } :host(:not(:dir(rtl))[checked]) .track:not(.pressed) .handle { transform: translateX( calc(${hC} - ${wC} - calc(${pC} * 2)) ); } :host(:dir(rtl)[checked]) .track:not(.pressed) .handle { transform: translateX( calc( 0px - calc( ${hC} - ${wC} - calc(${pC} * 2) ) ) ); } :host(:not(:dir(rtl))[checked]) .track.pressed .handle { transform: translateX( calc(${hC} - ${CC} - ${pC}) ); } :host(:dir(rtl)[checked]) .track.pressed .handle { transform: translateX( calc(0px - calc(${hC} - ${CC} - ${pC})) ); } :host(:not(:dir(rtl)):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:not(:dir(rtl))[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( ${pC} + calc(${CC} - ${$C}) ) ); } :host(:dir(rtl):not([checked]):not([icons="both"])) .track:not(.pressed) .handle, :host(:dir(rtl)[aria-disabled="true"]:not([checked])) .handle { transform: translateX( calc( 0px - calc( ${pC} + calc(${CC} - ${$C}) ) ) ); } :host(:not(:dir(rtl)):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(${pC}); } :host(:dir(rtl):not([aria-disabled="true"]):not([checked])[icons="both"]) .track:not(.pressed) .handle { transform: translateX(calc(0px - ${pC})); } @media (forced-colors: active) { .handle { transition: ${o(`transform var(--_switch-handle-effect),\n width ${v.motion.spring.fastEffects},\n height ${v.motion.spring.fastEffects}`)}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .handle { background-color: ButtonText; } :host([aria-disabled="true"]:not([checked])) .handle { background-color: GrayText; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .handle, :host(:not([aria-disabled="true"])[checked]) .track.pressed .handle { background-color: Canvas; } :host([aria-disabled="true"][checked]) .handle { background-color: Canvas; } } @media (prefers-reduced-motion) { .handle { transition: none; } }`,gS=i`:host([icons="none"]) .icon, :host([icons="selected"]:not([checked])) .icon, :host([aria-disabled="true"]:not([checked])) .icon { display: none; } .icon { width: 1em; transition: ${o(`color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .icon { font-size: ${cC}; } :host([checked]) .icon { font-size: ${nC}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${lC}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon { color: ${RC}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon { color: ${eS}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: ${hS}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon { color: ${sC}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon { color: ${qC}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon { color: ${QC}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: ${dS}; } :host([aria-disabled="true"]:not([checked])) .icon { color: color-mix( in srgb, ${PC} ${IC}, transparent ); } :host([aria-disabled="true"][checked]) .icon { color: color-mix( in srgb, ${MC} ${TC}, transparent ); } @media (forced-colors: active) { :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"]):not([checked])) .track.pressed .icon { color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) .icon, :host(:not([aria-disabled="true"])[checked]) .track.pressed .icon { color: CanvasText; } :host([aria-disabled="true"]:not([checked])) .icon { color: Canvas; } :host([aria-disabled="true"][checked]) .icon { color: GrayText; } } @media (prefers-reduced-motion) { .icon { transition: none; } }`,yS=i`.state-layer { width: ${zC}; height: ${zC}; border-radius: ${EC}; transition: ${o(`top ${v.motion.spring.fastEffects},\n left ${v.motion.spring.fastEffects},\n right ${v.motion.spring.fastEffects}`)}; } :host(:not([checked])[icons="both"]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${zC} - ${$C}) / 2)); top: calc(0px - calc(calc(${zC} - ${yC}) / 2)); } :host(:not([checked]):not([icons="both"])) .track:not(.pressed) .state-layer { inset-inline-start: calc( 0px - calc(calc(${zC} - ${gC}) / 2) ); top: calc(0px - calc(calc(${zC} - ${fC}) / 2)); } :host([checked]) .track:not(.pressed) .state-layer { inset-inline-start: calc(0px - calc(calc(${zC} - ${wC}) / 2)); top: calc(0px - calc(calc(${zC} - ${xC}) / 2)); } .track.pressed .state-layer { inset-inline-start: calc(0px - calc(calc(${zC} - ${CC}) / 2)); top: calc(0px - calc(calc(${zC} - ${CC}) / 2)); } :host(:not([checked])) .state-layer { --m3e-state-layer-hover-color: ${ZC}; --m3e-state-layer-hover-opacity: ${GC}; --m3e-state-layer-focus-color: ${sS}; --m3e-state-layer-focus-opacity: ${nS}; } :host([checked]) .state-layer { --m3e-state-layer-hover-color: ${NC}; --m3e-state-layer-hover-opacity: ${jC}; --m3e-state-layer-focus-color: ${aS}; --m3e-state-layer-focus-opacity: ${oS}; }`,$S=i`:host { display: inline-block; position: relative; outline: none; height: fit-content; width: fit-content; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not([aria-disabled="true"])) { cursor: pointer; } .focus-ring { border-radius: ${uC}; } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .base { display: flex; align-items: center; justify-content: center; }`,xS=i`.track { display: flex; align-items: center; position: relative; box-sizing: border-box; border-radius: ${uC}; width: ${hC}; height: ${dC}; transition: ${o(`background-color ${v.motion.duration.short4} ${v.motion.easing.standard}`)}; } :host(:not([checked])) .track { border-width: ${pC}; border-style: solid; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed) { border-color: ${mC}; background-color: ${bC}; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed) { border-color: ${KC}; background-color: ${YC}; } :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed) { border-color: ${rS}; background-color: ${iS}; } :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ${uS}; background-color: ${pS}; } :host([aria-disabled="true"]:not([checked])) .track { border-color: color-mix( in srgb, ${HC} ${WC}, transparent ); background-color: color-mix( in srgb, ${AC} ${WC}, transparent ); } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed) { background-color: ${vC}; } :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed) { background-color: ${UC}; } :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed) { background-color: ${tS}; } :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ${mS}; } :host([aria-disabled="true"][checked]) .track { background-color: color-mix( in srgb, ${DC} ${WC}, transparent ); } @media (forced-colors: active) { .track { transition: none; } :host(:not([aria-disabled="true"]):not([checked]):not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked]):focus) .track:not(.pressed), :host(:not([aria-disabled="true"]):not([checked])) .track.pressed { border-color: ButtonText; background-color: Canvas; } :host([aria-disabled="true"]:not([checked])) .track { border-color: GrayText; background-color: Canvas; } :host(:not([aria-disabled="true"])[checked]:not(:focus):not(:hover)) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:not(:focus):hover) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]:focus) .track:not(.pressed), :host(:not([aria-disabled="true"])[checked]) .track.pressed { background-color: ButtonText; } :host([aria-disabled="true"][checked]) .track { background-color: GrayText; } } @media (prefers-reduced-motion) { .track { transition: none; } }`;var wS,kS,CS,SS,_S,LS;let zS=class extends(Q(te(ae(ie($e(se(q(N(Y(P(f(r,"switch")))))))))))){constructor(){super(),wS.add(this),kS.set(this,t=>e(this,wS,"m",LS).call(this,t)),CS.set(this,new ne(this,{target:null,callback:e=>{this.disabled||(e?this._stateLayer?.show("hover"):this._stateLayer?.hide("hover"))}})),SS.set(this,new Z(this,{target:null,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})),this.icons="none",this.value="on",new Z(this,{isPressedKey:e=>" "===e,callback:e=>this._track?.classList.toggle("pressed",e&&!this.disabled)})}get[(kS=new WeakMap,CS=new WeakMap,SS=new WeakMap,wS=new WeakSet,le)](){return this.checked&&!this.disabled?this.value:null}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,kS,"f"));for(const t of this.labels)e(this,CS,"f").observe(t),e(this,SS,"f").observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,kS,"f"));for(const t of this.labels)e(this,CS,"f").unobserve(t),e(this,SS,"f").unobserve(t)}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer].forEach(e=>e?.attach(this))}render(){return s`<m3e-focus-ring class="focus-ring"></m3e-focus-ring><div class="track" aria-hidden="true"><div class="touch" aria-hidden="true"></div><div class="handle"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><div class="base">${e(this,wS,"m",_S).call(this)}</div></div></div>`}};var ES,MS,TS,PS;_S=function(){return this.checked?s`<svg class="icon" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"></path></svg>`:s`<svg class="icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>`},LS=function(e){e.defaultPrevented||(this.checked=!this.checked,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?this.dispatchEvent(new Event("change",{bubbles:!0})):this.checked=!this.checked,this.closest("label")&&e.preventDefault())},zS.styles=[$S,yS,xS,fS,gS],t([h(".track")],zS.prototype,"_track",void 0),t([h(".focus-ring")],zS.prototype,"_focusRing",void 0),t([h(".state-layer")],zS.prototype,"_stateLayer",void 0),t([m({reflect:!0})],zS.prototype,"icons",void 0),t([m()],zS.prototype,"value",void 0),zS=t([$("m3e-switch")],zS);let IS=PS=class extends(ue(b(q(N(Y(P(f(r,"tab"),!0))))))){constructor(){super(...arguments),ES.add(this),MS.set(this,t=>e(this,ES,"m",TS).call(this,t))}attach(e){super.attach(e),e.id=e.id||"m3e-tab-panel-"+PS.__nextId++,Pe(this,"aria-controls",e.id)}detach(){this.control&&this.control.id&&Ie(this,"aria-controls",this.control.id),super.detach()}connectedCallback(){super.connectedCallback(),this.addEventListener("click",e(this,MS,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",e(this,MS,"f"))}firstUpdated(e){super.firstUpdated(e),[this._focusRing,this._stateLayer,this._ripple].forEach(e=>e?.attach(this))}update(e){super.update(e),e.has("selected")&&this.closest("m3e-tabs")?.[We].notifySelectionChange(this)}render(){return s`<div class="base"><m3e-state-layer class="state-layer" ?disabled="${this.disabled}"></m3e-state-layer><m3e-focus-ring class="focus-ring" inward ?disabled="${this.disabled}"></m3e-focus-ring><m3e-ripple class="ripple" ?disabled="${this.disabled}"></m3e-ripple><div class="touch" aria-hidden="true"></div><div class="wrapper"><slot name="icon" aria-hidden="true"></slot><span class="label"><slot></slot></span></div></div>`}};MS=new WeakMap,ES=new WeakSet,TS=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation()),e.defaultPrevented||this.selected||(this.selected=!0,this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?(this.closest("m3e-tabs")?.[We].notifySelectionChange(this),this.dispatchEvent(new Event("change",{bubbles:!0}))):this.selected=!1)},IS.styles=i`:host { display: inline-block; outline: none; user-select: none; height: calc(var(--_tab-height) + ${v.density.calc(-3)}); font-size: var(--m3e-tab-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var(--m3e-tab-font-weight, ${v.typescale.standard.title.small.fontWeight}); line-height: var(--m3e-tab-line-height, ${v.typescale.standard.title.small.lineHeight}); letter-spacing: var(--m3e-tab-tracking, ${v.typescale.standard.title.small.tracking}); flex-grow: var(--_tab-grow); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; position: relative; width: 100%; height: 100%; padding-inline-start: var(--m3e-tab-padding-start, 1.5rem); padding-inline-end: var(--m3e-tab-padding-end, 1.5rem); } .touch { position: absolute; height: 3rem; left: 0; right: 0; } .focus-ring { border-radius: var(--m3e-tab-focus-ring-shape, ${v.shape.corner.large}); } :host([selected]:focus-within) .focus-ring { top: var(--_tab-focus-ring-top-offset, 0); bottom: var(--_tab-focus-ring-bottom-offset, 0); } :host([selected]:not(:disabled)) .base { color: var(--m3e-tab-selected-color, var(--_tab-selected-color, ${v.color.primary})); --m3e-state-layer-hover-color: var( --m3e-tab-selected-container-hover-color, var(--_tab-selected-container-hover-color, ${v.color.primary}) ); --m3e-state-layer-focus-color: var( --_tab-selected-container-focus-color, var(--m3e-tab-selected-container-focus-color, ${v.color.primary}) ); --m3e-ripple-color: var( --_tab-selected-ripple-color, var(--m3e-tab-selected-ripple-color, ${v.color.primary}) ); } :host(:not([selected]):not(:disabled)) .base { color: var(--m3e-tab-unselected-color, ${v.color.onSurfaceVariant}); --m3e-state-layer-hover-color: var(--m3e-tab-unselected-container-hover-color, ${v.color.onSurface}); --m3e-state-layer-focus-color: var(--m3e-tab-unselected-container-focus-color, ${v.color.onSurface}); --m3e-ripple-color: var(--m3e-tab-unselected-ripple-color, ${v.color.onSurface}); } :host(:disabled) .base { color: color-mix( in srgb, var(--m3e-tab-disabled-color, ${v.color.onSurface}) var(--m3e-tab-disabled-opacity, 38%), transparent ); } .wrapper { display: inline-flex; align-items: center; white-space: nowrap; flex-direction: var(--_tab-direction); justify-content: center; column-gap: var(--m3e-tab-spacing, 0.5rem); } ::slotted([slot="icon"]) { width: 1em; font-size: var(--m3e-tab-icon-size, 1.5rem) !important; } @media (forced-colors: active) { :host([selected]:not(:disabled)) .base { color: ButtonText; } :host(:not([selected]):not(:disabled)) .base { color: ButtonText; } :host(:disabled) .base { color: GrayText; } }`,IS.__nextId=0,t([h(".focus-ring")],IS.prototype,"_focusRing",void 0),t([h(".state-layer")],IS.prototype,"_stateLayer",void 0),t([h(".ripple")],IS.prototype,"_ripple",void 0),t([h(".label")],IS.prototype,"label",void 0),IS=PS=t([$("m3e-tab")],IS);let WS=class extends(f(r,"tabpanel")){connectedCallback(){super.connectedCallback(),this.slot="panel"}render(){return s`<slot></slot>`}};var DS,AS,HS,OS,FS,BS,VS,qS,RS;WS.styles=i`:host { display: block; overflow-y: auto; scrollbar-width: ${v.scrollbar.width}; scrollbar-color: ${v.scrollbar.color}; }`,WS=t([$("m3e-tab-panel")],WS);let US=class extends(P(r)){constructor(){super(),DS.add(this),AS.set(this,void 0),this._selectedIndex=null,this[RS]=(new De).onSelectedItemsChange(()=>e(this,DS,"m",VS).call(this)).withHomeAndEnd().withWrap().withDirectionality(Ve.current),this.disablePagination=!1,this.headerPosition="before",this.variant="secondary",this.stretch=!1,this.previousPageLabel="Previous page",this.nextPageLabel="Next page",new A(this,{skipInitial:!0,callback:()=>{z(this,"-no-animate"),e(this,DS,"m",qS).call(this)}})}get tabs(){return this[We]?.items??[]}get selectedTab(){return null!==this._selectedIndex?this.tabs[this._selectedIndex]??null:null}get selectedIndex(){return this._selectedIndex??-1}set selectedIndex(e){if(e>=0&&e<this.tabs.length)this.tabs[e].selected=!0;else{const e=this.selectedTab;e&&(e.selected=!1)}}connectedCallback(){super.connectedCallback(),z(this,"-no-animate"),a(this,AS,Ve.observe(()=>{this.requestUpdate(),this[We].directionality=Ve.current}),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,AS,"f")?.call(this)}updated(t){super.updated(t),(t.has("variant")||t.has("stretch"))&&null!==this._selectedIndex&&e(this,DS,"m",qS).call(this)}render(){let t;return this.selectedTab?.control&&(t=[...this.querySelectorAll("[slot='panel']")].indexOf(this.selectedTab.control),-1===t&&(t=void 0)),s`${"before"===this.headerPosition?e(this,DS,"m",HS).call(this):n}<m3e-slide class="tabs" selected-index="${Ne(t)}"><slot name="panel"></slot></m3e-slide>${"after"===this.headerPosition?e(this,DS,"m",HS).call(this):n}`}};
91
127
  /**
92
128
  * Adapted from Angular Material CDK Text Field
93
129
  * Source: https://github.com/angular/components/blob/main/src/cdk/text-field/autosize.ts
@@ -96,7 +132,7 @@ var bf,ff,gf,yf,$f,xf,wf,kf,Cf;hf=new WeakSet,mf=function(e){w(this,"-with-no-da
96
132
  * Copyright (c) 2025 Google LLC
97
133
  * See LICENSE file in the project root for full license text.
98
134
  */
99
- var qw,Fw,Vw,Rw,Nw,Uw,jw,Kw,Zw,Gw,Xw,Yw,Jw,Qw,ek,tk;Tw=new WeakMap,Mw=new WeakSet,Dw=Te,Pw=function(){return s`<m3e-slide-group class="tablist" threshold="8" previous-page-label="${this.previousPageLabel}" next-page-label="${this.nextPageLabel}" ?disabled="${this.disablePagination}"><slot name="prev-icon" slot="prev-icon">${"ltr"===De.current?s`<svg class="prev icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`:s`<svg class="next icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`}</slot><slot name="next-icon" slot="next-icon">${"ltr"===De.current?s`<svg class="next icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`:s`<svg class="prev icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`}</slot><div class="header" role="tablist"><div class="tabs"><slot @slotchange="${e(this,Mw,"m",Iw)}" @keydown="${e(this,Mw,"m",Ww)}" @change="${e(this,Mw,"m",Aw)}"></slot></div><div class="ink-bar" aria-hidden="true"><div class="active-indicator"></div></div></div></m3e-slide-group>`},Iw=function(){this[Te].setItems([...this.querySelectorAll("m3e-tab")])},Ww=function(e){this[Te].onKeyDown(e)},Aw=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},Hw=function(){const t=this[Te].selectedItems[0];let a=t?this.tabs.indexOf(t):null;-1===a&&(a=null),this._selectedIndex=a,e(this,Mw,"m",Ow).call(this)},Ow=function(){if(!this._tablist)return;const e=this[Te].selectedItems[0];let t=0,a=0;if(e&&null!==this._selectedIndex){for(let e=0;e<this._selectedIndex;e++)t+=this.tabs[e].clientWidth;a=e.clientWidth,"primary"===this.variant&&e.label&&(t+=e.label.offsetLeft,a=e.label.clientWidth,a<24&&(t-=(24-a)/2,a=24))}this._tablist.style.setProperty("--_tabs-active-tab-position",`${t}px`),this._tablist.style.setProperty("--_tabs-active-tab-size",`${a}px`),a>0&&O(this,"-no-animate")&&setTimeout(()=>k(this,"-no-animate"))},Bw.styles=i`:host { display: flex; flex-direction: column; position: relative; } .tablist { position: relative; box-sizing: border-box; flex: none; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-tabs-paginator-button-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) !important; } .header { display: flex; flex-direction: column; } .tabs { display: flex; flex-wrap: nowrap; align-items: center; } .ink-bar { box-sizing: border-box; height: var(--_tabs-active-indicator-thickness); } .active-indicator { position: relative; height: var(--_tabs-active-indicator-thickness); left: calc(var(--_tabs-active-tab-position) + var(--_tabs-activate-indicator-inset, 0px)); width: calc(var(--_tabs-active-tab-size) - calc(var(--_tabs-activate-indicator-inset, 0px) * 2)); background-color: var(--m3e-tabs-active-indicator-color, ${v.color.primary}); transition: ${o(`left var(--m3e-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard},\n width var(--m3e-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard}`)}; } :host([header-position="after"]) .header { flex-direction: column-reverse; } :host([header-position="before"]) .ink-bar { margin-top: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="before"]) .tablist { --m3e-slide-group-divider-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); } :host([header-position="after"]) .ink-bar { margin-bottom: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="after"]) .tablist { --m3e-slide-group-divider-top: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); } :host([header-position="before"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-before-active-indicator-shape, ${v.shape.corner.extraSmallTop}); } :host([header-position="after"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-after-active-indicator-shape, ${v.shape.corner.extraSmallBottom}); } .tabs { flex: 1 1 auto; } :host([variant="primary"]) .tablist { --_tabs-activate-indicator-inset: var(--m3e-tabs-primary-active-indicator-inset, 0.125rem); --_tabs-active-indicator-thickness: var(--m3e-tabs-primary-active-indicator-thickness, 3px); --_tab-height: 4rem; } :host([header-position="before"]) .tablist { --_tab-focus-ring-bottom-offset: calc(var(--_tabs-active-indicator-thickness) + 1px); } :host([header-position="after"]) .tablist { --_tab-focus-ring-top-offset: calc(var(--_tabs-active-indicator-thickness) + 2px); } :host([header-position="before"][variant="primary"]) .tablist { --_tab-direction: column; } :host([header-position="after"][variant="primary"]) .tablist { --_tab-direction: column-reverse; } :host([variant="secondary"]) .tablist { --_tabs-active-indicator-thickness: var(--m3e-tabs-secondary-active-indicator-thickness, 2px); --_tab-height: 3rem; --_tab-selected-color: ${v.color.onSurface}; --_tab-selected-container-hover-color: ${v.color.onSurface}; --_tab-selected-container-focus-color: ${v.color.onSurface}; --_tab-selected-ripple-color: ${v.color.onSurface}; } :host([stretch]) .header { width: 100%; --_tab-grow: 1; } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } } @media (forced-colors: active) { .active-indicator { background-color: ButtonText; --m3e-divider-color: GrayText; } }`,t([h(".tablist")],Bw.prototype,"_tablist",void 0),t([u()],Bw.prototype,"_selectedIndex",void 0),t([m({attribute:"disable-pagination",type:Boolean})],Bw.prototype,"disablePagination",void 0),t([m({attribute:"header-position",reflect:!0})],Bw.prototype,"headerPosition",void 0),t([m({reflect:!0})],Bw.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],Bw.prototype,"stretch",void 0),t([m({attribute:"previous-page-label"})],Bw.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],Bw.prototype,"nextPageLabel",void 0),Bw=t([$("m3e-tabs")],Bw);let ak=class extends(b(f(r,"none"))){constructor(){super(...arguments),qw.add(this),Fw.set(this,void 0),Vw.set(this,void 0),Rw.set(this,void 0),Nw.set(this,void 0),Uw.set(this,void 0),jw.set(this,!1),Kw.set(this,()=>this._handleWindowResize()),Zw.set(this,e=>a(this,jw,"focus"===e.type,"f")),Gw.set(this,()=>this.resizeToFitContent()),this.maxRows=0,this.minRows=0,this.disabled=!1}attach(t){super.attach(t),t instanceof HTMLTextAreaElement&&(t.style.resize="none",a(this,Fw,t.style.height,"f"),t.addEventListener("focus",e(this,Zw,"f")),t.addEventListener("blur",e(this,Zw,"f")),t.addEventListener("input",e(this,Gw,"f")),window.addEventListener("resize",e(this,Kw,"f")),this.resizeToFitContent(!0))}detach(){this.control instanceof HTMLTextAreaElement&&(window.removeEventListener("resize",e(this,Kw,"f")),this.control.removeEventListener("focus",e(this,Zw,"f")),this.control.removeEventListener("blur",e(this,Zw,"f")),this.control.removeEventListener("input",e(this,Gw,"f"))),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}updated(e){super.updated(e),e.has("disabled")&&(this.disabled?this.reset():this.resizeToFitContent(!0))}resizeToFitContent(t=!1){if(this.disabled||!(this.control instanceof HTMLTextAreaElement))return;if(e(this,qw,"m",Xw).call(this),e(this,qw,"m",Yw).call(this),!e(this,Vw,"f"))return;const o=this.control.value;if(!t&&this.minRows===e(this,Nw,"f")&&o===e(this,Uw,"f"))return;const i=e(this,qw,"m",ek).call(this),r=Math.max(i,e(this,Rw,"f")||0);this.control.style.height=`${r}px`,setTimeout(()=>e(this,qw,"m",tk).call(this)),a(this,Uw,o,"f"),a(this,Nw,this.minRows,"f")}reset(){void 0!==e(this,Fw,"f")&&this.control instanceof HTMLTextAreaElement&&(this.control.style.height=e(this,Fw,"f"))}_handleWindowResize(){a(this,Vw,a(this,Rw,void 0,"f"),"f"),this.resizeToFitContent(!0)}};
135
+ var NS,jS,YS,KS,ZS,GS,XS,JS,QS,e_,t_,a_,o_,i_,r_,s_;AS=new WeakMap,DS=new WeakSet,RS=We,HS=function(){return s`<m3e-slide-group class="tablist" threshold="8" previous-page-label="${this.previousPageLabel}" next-page-label="${this.nextPageLabel}" ?disabled="${this.disablePagination}"><slot name="prev-icon" slot="prev-icon">${"ltr"===Ve.current?s`<svg class="prev icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`:s`<svg class="next icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`}</slot><slot name="next-icon" slot="next-icon">${"ltr"===Ve.current?s`<svg class="next icon" viewBox="0 -960 960 960" fill="currentColor"><path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z"/></svg>`:s`<svg class="prev icon" viewBox="0 -960 960 960" fill="currentColor"><path d="M640-80 240-480l400-400 71 71-329 329 329 329-71 71Z"/></svg>`}</slot><div class="header" role="tablist"><div class="tabs"><slot @slotchange="${e(this,DS,"m",OS)}" @keydown="${e(this,DS,"m",FS)}" @change="${e(this,DS,"m",BS)}"></slot></div><div class="ink-bar" aria-hidden="true"><div class="active-indicator"></div></div></div></m3e-slide-group>`},OS=function(){this[We].setItems([...this.querySelectorAll("m3e-tab")])},FS=function(e){this[We].onKeyDown(e)},BS=function(e){e.stopPropagation(),this.dispatchEvent(new Event("change",{bubbles:!0}))},VS=function(){const t=this[We].selectedItems[0];let a=t?this.tabs.indexOf(t):null;-1===a&&(a=null),this._selectedIndex=a,e(this,DS,"m",qS).call(this)},qS=function(){if(!this._tablist)return;const e=this[We].selectedItems[0];let t=0,a=0;if(e&&null!==this._selectedIndex){for(let e=0;e<this._selectedIndex;e++)t+=this.tabs[e].clientWidth;a=e.clientWidth,"primary"===this.variant&&e.label&&(t+=e.label.offsetLeft,a=e.label.clientWidth,a<24&&(t-=(24-a)/2,a=24))}this._tablist.style.setProperty("--_tabs-active-tab-position",`${t}px`),this._tablist.style.setProperty("--_tabs-active-tab-size",`${a}px`),a>0&&O(this,"-no-animate")&&setTimeout(()=>C(this,"-no-animate"))},US.styles=i`:host { display: flex; flex-direction: column; position: relative; } .tablist { position: relative; box-sizing: border-box; flex: none; } ::slotted(prev-icon), ::slotted(next-icon), .icon { width: 1em; font-size: var(--m3e-tabs-paginator-button-icon-size, var(--m3e-icon-button-icon-size, 1.5rem)) !important; } .header { display: flex; flex-direction: column; } .tabs { display: flex; flex-wrap: nowrap; align-items: center; } .ink-bar { box-sizing: border-box; height: var(--_tabs-active-indicator-thickness); } .active-indicator { position: relative; height: var(--_tabs-active-indicator-thickness); left: calc(var(--_tabs-active-tab-position) + var(--_tabs-activate-indicator-inset, 0px)); width: calc(var(--_tabs-active-tab-size) - calc(var(--_tabs-activate-indicator-inset, 0px) * 2)); background-color: var(--m3e-tabs-active-indicator-color, ${v.color.primary}); transition: ${o(`left var(--m3e-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard},\n width var(--m3e-slide-animation-duration, ${v.motion.duration.long2}) ${v.motion.easing.standard}`)}; } :host([header-position="after"]) .header { flex-direction: column-reverse; } :host([header-position="before"]) .ink-bar { margin-top: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="before"]) .tablist { --m3e-slide-group-divider-bottom: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); } :host([header-position="after"]) .ink-bar { margin-bottom: calc(0px - var(--_tabs-active-indicator-thickness)); } :host([header-position="after"]) .tablist { --m3e-slide-group-divider-top: var(--m3e-divider-thickness, 1px) solid var(--m3e-divider-color, ${v.color.outlineVariant}); } :host([header-position="before"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-before-active-indicator-shape, ${v.shape.corner.extraSmallTop}); } :host([header-position="after"][variant="primary"]) .active-indicator { border-radius: var(--m3e-tabs-primary-after-active-indicator-shape, ${v.shape.corner.extraSmallBottom}); } .tabs { flex: 1 1 auto; } :host([variant="primary"]) .tablist { --_tabs-activate-indicator-inset: var(--m3e-tabs-primary-active-indicator-inset, 0.125rem); --_tabs-active-indicator-thickness: var(--m3e-tabs-primary-active-indicator-thickness, 3px); --_tab-height: 4rem; } :host([header-position="before"]) .tablist { --_tab-focus-ring-bottom-offset: calc(var(--_tabs-active-indicator-thickness) + 1px); } :host([header-position="after"]) .tablist { --_tab-focus-ring-top-offset: calc(var(--_tabs-active-indicator-thickness) + 2px); } :host([header-position="before"][variant="primary"]) .tablist { --_tab-direction: column; } :host([header-position="after"][variant="primary"]) .tablist { --_tab-direction: column-reverse; } :host([variant="secondary"]) .tablist { --_tabs-active-indicator-thickness: var(--m3e-tabs-secondary-active-indicator-thickness, 2px); --_tab-height: 3rem; --_tab-selected-color: ${v.color.onSurface}; --_tab-selected-container-hover-color: ${v.color.onSurface}; --_tab-selected-container-focus-color: ${v.color.onSurface}; --_tab-selected-ripple-color: ${v.color.onSurface}; } :host([stretch]) .header { width: 100%; --_tab-grow: 1; } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } } @media (forced-colors: active) { .active-indicator { background-color: ButtonText; --m3e-divider-color: GrayText; } }`,t([h(".tablist")],US.prototype,"_tablist",void 0),t([u()],US.prototype,"_selectedIndex",void 0),t([m({attribute:"disable-pagination",type:Boolean})],US.prototype,"disablePagination",void 0),t([m({attribute:"header-position",reflect:!0})],US.prototype,"headerPosition",void 0),t([m({reflect:!0})],US.prototype,"variant",void 0),t([m({type:Boolean,reflect:!0})],US.prototype,"stretch",void 0),t([m({attribute:"previous-page-label"})],US.prototype,"previousPageLabel",void 0),t([m({attribute:"next-page-label"})],US.prototype,"nextPageLabel",void 0),US=t([$("m3e-tabs")],US);let n_=class extends(b(f(r,"none"))){constructor(){super(...arguments),NS.add(this),jS.set(this,void 0),YS.set(this,void 0),KS.set(this,void 0),ZS.set(this,void 0),GS.set(this,void 0),XS.set(this,!1),JS.set(this,()=>this._handleWindowResize()),QS.set(this,e=>a(this,XS,"focus"===e.type,"f")),e_.set(this,()=>this.resizeToFitContent()),this.maxRows=0,this.minRows=0,this.disabled=!1}attach(t){super.attach(t),t instanceof HTMLTextAreaElement&&(t.style.resize="none",a(this,jS,t.style.height,"f"),t.addEventListener("focus",e(this,QS,"f")),t.addEventListener("blur",e(this,QS,"f")),t.addEventListener("input",e(this,e_,"f")),window.addEventListener("resize",e(this,JS,"f")),this.resizeToFitContent(!0))}detach(){this.control instanceof HTMLTextAreaElement&&(window.removeEventListener("resize",e(this,JS,"f")),this.control.removeEventListener("focus",e(this,QS,"f")),this.control.removeEventListener("blur",e(this,QS,"f")),this.control.removeEventListener("input",e(this,e_,"f"))),super.detach()}connectedCallback(){this.ariaHidden="true",super.connectedCallback()}updated(e){super.updated(e),e.has("disabled")&&(this.disabled?this.reset():this.resizeToFitContent(!0))}resizeToFitContent(t=!1){if(this.disabled||!(this.control instanceof HTMLTextAreaElement))return;if(e(this,NS,"m",t_).call(this),e(this,NS,"m",a_).call(this),!e(this,YS,"f"))return;const o=this.control.value;if(!t&&this.minRows===e(this,ZS,"f")&&o===e(this,GS,"f"))return;const i=e(this,NS,"m",r_).call(this),r=Math.max(i,e(this,KS,"f")||0);this.control.style.height=`${r}px`,setTimeout(()=>e(this,NS,"m",s_).call(this)),a(this,GS,o,"f"),a(this,ZS,this.minRows,"f")}reset(){void 0!==e(this,jS,"f")&&this.control instanceof HTMLTextAreaElement&&(this.control.style.height=e(this,jS,"f"))}_handleWindowResize(){a(this,YS,a(this,KS,void 0,"f"),"f"),this.resizeToFitContent(!0)}};
100
136
  /**
101
137
  * @license
102
138
  * Copyright 2021 Google LLC
@@ -113,7 +149,7 @@ var qw,Fw,Vw,Rw,Nw,Uw,jw,Kw,Zw,Gw,Xw,Yw,Jw,Qw,ek,tk;Tw=new WeakMap,Mw=new WeakSe
113
149
  * See the License for the specific language governing permissions and
114
150
  * limitations under the License.
115
151
  */
116
- function ok(e){return e<0?-1:0===e?0:1}function ik(e,t,a){return(1-a)*e+a*t}function rk(e,t,a){return a<e?e:a>t?t:a}function sk(e){return(e%=360)<0&&(e+=360),e}function nk(e,t){return[e[0]*t[0][0]+e[1]*t[0][1]+e[2]*t[0][2],e[0]*t[1][0]+e[1]*t[1][1]+e[2]*t[1][2],e[0]*t[2][0]+e[1]*t[2][1]+e[2]*t[2][2]]}
152
+ function l_(e){return e<0?-1:0===e?0:1}function c_(e,t,a){return(1-a)*e+a*t}function d_(e,t,a){return a<e?e:a>t?t:a}function h_(e){return(e%=360)<0&&(e+=360),e}function m_(e,t){return[e[0]*t[0][0]+e[1]*t[0][1]+e[2]*t[0][2],e[0]*t[1][0]+e[1]*t[1][1]+e[2]*t[1][2],e[0]*t[2][0]+e[1]*t[2][1]+e[2]*t[2][2]]}
117
153
  /**
118
154
  * @license
119
155
  * Copyright 2021 Google LLC
@@ -129,7 +165,7 @@ function ok(e){return e<0?-1:0===e?0:1}function ik(e,t,a){return(1-a)*e+a*t}func
129
165
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
130
166
  * See the License for the specific language governing permissions and
131
167
  * limitations under the License.
132
- */Fw=new WeakMap,Vw=new WeakMap,Rw=new WeakMap,Nw=new WeakMap,Uw=new WeakMap,jw=new WeakMap,Kw=new WeakMap,Zw=new WeakMap,Gw=new WeakMap,qw=new WeakSet,Xw=function(){if(e(this,Vw,"f")||!(this.control instanceof HTMLTextAreaElement))return;const t=this.control.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.top=t.style.bottom=t.style.left=t.style.right="auto",t.style.overflow="hidden",this.control.parentElement?.appendChild(t),a(this,Vw,t.clientHeight,"f"),t.remove(),e(this,qw,"m",Jw).call(this),e(this,qw,"m",Qw).call(this)},Yw=function(){if(!(this.control instanceof HTMLTextAreaElement)||null!=e(this,Rw,"f"))return;if(!this.control.placeholder)return void a(this,Rw,0,"f");const t=this.control.value;this.control.value=this.control.placeholder,a(this,Rw,e(this,qw,"m",ek).call(this),"f"),this.control.value=t},Jw=function(){const t=this.minRows&&e(this,Vw,"f")?this.minRows*e(this,Vw,"f")+"px":null;t&&this.control&&(this.control.style.minHeight=t)},Qw=function(){const t=this.maxRows&&e(this,Vw,"f")?this.maxRows*e(this,Vw,"f")+"px":null;t&&this.control&&(this.control.style.maxHeight=t)},ek=function(){if(!this.control)return 0;const t=this.control,a=t.style.marginBottom||"",o=navigator.userAgent.includes("Firefox"),i=o&&e(this,jw,"f");i&&(t.style.marginBottom=`${t.clientHeight}px`);const r={padding:t.style.padding,boxSizing:t.style.boxSizing,height:t.style.height,overflow:t.style.overflow};t.style.padding="2px 0",t.style.boxSizing="content-box",o?t.style.height="0":(t.style.height="auto",t.style.overflow="hidden");const s=t.scrollHeight-4;return t.style.padding=r.padding,t.style.boxSizing=r.boxSizing,t.style.height=r.height,t.style.overflow=r.overflow,i&&(t.style.marginBottom=a),s},tk=function(){if(!(this.control instanceof HTMLTextAreaElement&&e(this,jw,"f")))return;const{selectionStart:t,selectionEnd:a}=this.control;this.control.setSelectionRange(t,a)},ak.styles=i`:host { display: none; }`,t([m({attribute:"max-rows",type:Number})],ak.prototype,"maxRows",void 0),t([m({attribute:"min-rows",type:Number})],ak.prototype,"minRows",void 0),t([m({type:Boolean,reflect:!0})],ak.prototype,"disabled",void 0),t([y(16)],ak.prototype,"_handleWindowResize",null),ak=t([$("m3e-textarea-autosize")],ak);const lk=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],ck=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],dk=[95.047,100,108.883];function hk(e,t,a){return(255<<24|(255&e)<<16|(255&t)<<8|255&a)>>>0}function mk(e){return hk($k(e[0]),$k(e[1]),$k(e[2]))}function pk(e){return e>>16&255}function uk(e){return e>>8&255}function vk(e){return 255&e}function bk(e){const t=function(e){return nk([yk(pk(e)),yk(uk(e)),yk(vk(e))],lk)}(e)[1];return 116*xk(t/100)-16}function fk(e){return 100*function(e){const t=24389/27,a=e*e*e;return a>216/24389?a:(116*e-16)/t}
168
+ */jS=new WeakMap,YS=new WeakMap,KS=new WeakMap,ZS=new WeakMap,GS=new WeakMap,XS=new WeakMap,JS=new WeakMap,QS=new WeakMap,e_=new WeakMap,NS=new WeakSet,t_=function(){if(e(this,YS,"f")||!(this.control instanceof HTMLTextAreaElement))return;const t=this.control.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.top=t.style.bottom=t.style.left=t.style.right="auto",t.style.overflow="hidden",this.control.parentElement?.appendChild(t),a(this,YS,t.clientHeight,"f"),t.remove(),e(this,NS,"m",o_).call(this),e(this,NS,"m",i_).call(this)},a_=function(){if(!(this.control instanceof HTMLTextAreaElement)||null!=e(this,KS,"f"))return;if(!this.control.placeholder)return void a(this,KS,0,"f");const t=this.control.value;this.control.value=this.control.placeholder,a(this,KS,e(this,NS,"m",r_).call(this),"f"),this.control.value=t},o_=function(){const t=this.minRows&&e(this,YS,"f")?this.minRows*e(this,YS,"f")+"px":null;t&&this.control&&(this.control.style.minHeight=t)},i_=function(){const t=this.maxRows&&e(this,YS,"f")?this.maxRows*e(this,YS,"f")+"px":null;t&&this.control&&(this.control.style.maxHeight=t)},r_=function(){if(!this.control)return 0;const t=this.control,a=t.style.marginBottom||"",o=navigator.userAgent.includes("Firefox"),i=o&&e(this,XS,"f");i&&(t.style.marginBottom=`${t.clientHeight}px`);const r={padding:t.style.padding,boxSizing:t.style.boxSizing,height:t.style.height,overflow:t.style.overflow};t.style.padding="2px 0",t.style.boxSizing="content-box",o?t.style.height="0":(t.style.height="auto",t.style.overflow="hidden");const s=t.scrollHeight-4;return t.style.padding=r.padding,t.style.boxSizing=r.boxSizing,t.style.height=r.height,t.style.overflow=r.overflow,i&&(t.style.marginBottom=a),s},s_=function(){if(!(this.control instanceof HTMLTextAreaElement&&e(this,XS,"f")))return;const{selectionStart:t,selectionEnd:a}=this.control;this.control.setSelectionRange(t,a)},n_.styles=i`:host { display: none; }`,t([m({attribute:"max-rows",type:Number})],n_.prototype,"maxRows",void 0),t([m({attribute:"min-rows",type:Number})],n_.prototype,"minRows",void 0),t([m({type:Boolean,reflect:!0})],n_.prototype,"disabled",void 0),t([y(16)],n_.prototype,"_handleWindowResize",null),n_=t([$("m3e-textarea-autosize")],n_);const p_=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],u_=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],v_=[95.047,100,108.883];function b_(e,t,a){return(255<<24|(255&e)<<16|(255&t)<<8|255&a)>>>0}function f_(e){return b_(S_(e[0]),S_(e[1]),S_(e[2]))}function g_(e){return e>>16&255}function y_(e){return e>>8&255}function $_(e){return 255&e}function x_(e){const t=function(e){return m_([C_(g_(e)),C_(y_(e)),C_($_(e))],p_)}(e)[1];return 116*__(t/100)-16}function w_(e){return 100*function(e){const t=24389/27,a=e*e*e;return a>216/24389?a:(116*e-16)/t}
133
169
  /**
134
170
  * @license
135
171
  * Copyright 2021 Google LLC
@@ -145,7 +181,7 @@ function ok(e){return e<0?-1:0===e?0:1}function ik(e,t,a){return(1-a)*e+a*t}func
145
181
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
146
182
  * See the License for the specific language governing permissions and
147
183
  * limitations under the License.
148
- */((e+16)/116)}function gk(e){return 116*xk(e/100)-16}function yk(e){const t=e/255;return t<=.040449936?t/12.92*100:100*Math.pow((t+.055)/1.055,2.4)}function $k(e){const t=e/100;let a=0;return a=t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,o=0,i=255,(r=Math.round(255*a))<o?o:r>i?i:r;var o,i,r}function xk(e){const t=24389/27;return e>216/24389?Math.pow(e,1/3):(t*e+16)/116}class wk{static make(e=function(){return dk}(),t=200/Math.PI*fk(50)/100,a=50,o=2,i=!1){const r=e,s=.401288*r[0]+.650173*r[1]+-.051461*r[2],n=-.250268*r[0]+1.204414*r[1]+.045854*r[2],l=-.002079*r[0]+.048952*r[1]+.953127*r[2],c=.8+o/10,d=c>=.9?ik(.59,.69,10*(c-.9)):ik(.525,.59,10*(c-.8));let h=i?1:c*(1-1/3.6*Math.exp((-t-42)/92));h=h>1?1:h<0?0:h;const m=c,p=[h*(100/s)+1-h,h*(100/n)+1-h,h*(100/l)+1-h],u=1/(5*t+1),v=u*u*u*u,b=1-v,f=v*t+.1*b*b*Math.cbrt(5*t),g=fk(a)/e[1],y=1.48+Math.sqrt(g),$=.725/Math.pow(g,.2),x=$,w=[Math.pow(f*p[0]*s/100,.42),Math.pow(f*p[1]*n/100,.42),Math.pow(f*p[2]*l/100,.42)],k=[400*w[0]/(w[0]+27.13),400*w[1]/(w[1]+27.13),400*w[2]/(w[2]+27.13)];return new wk(g,(2*k[0]+k[1]+.05*k[2])*$,$,x,d,m,p,f,Math.pow(f,.25),y)}constructor(e,t,a,o,i,r,s,n,l,c){this.n=e,this.aw=t,this.nbb=a,this.ncb=o,this.c=i,this.nc=r,this.rgbD=s,this.fl=n,this.fLRoot=l,this.z=c}}wk.DEFAULT=wk.make();
184
+ */((e+16)/116)}function k_(e){return 116*__(e/100)-16}function C_(e){const t=e/255;return t<=.040449936?t/12.92*100:100*Math.pow((t+.055)/1.055,2.4)}function S_(e){const t=e/100;let a=0;return a=t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,o=0,i=255,(r=Math.round(255*a))<o?o:r>i?i:r;var o,i,r}function __(e){const t=24389/27;return e>216/24389?Math.pow(e,1/3):(t*e+16)/116}class L_{static make(e=function(){return v_}(),t=200/Math.PI*w_(50)/100,a=50,o=2,i=!1){const r=e,s=.401288*r[0]+.650173*r[1]+-.051461*r[2],n=-.250268*r[0]+1.204414*r[1]+.045854*r[2],l=-.002079*r[0]+.048952*r[1]+.953127*r[2],c=.8+o/10,d=c>=.9?c_(.59,.69,10*(c-.9)):c_(.525,.59,10*(c-.8));let h=i?1:c*(1-1/3.6*Math.exp((-t-42)/92));h=h>1?1:h<0?0:h;const m=c,p=[h*(100/s)+1-h,h*(100/n)+1-h,h*(100/l)+1-h],u=1/(5*t+1),v=u*u*u*u,b=1-v,f=v*t+.1*b*b*Math.cbrt(5*t),g=w_(a)/e[1],y=1.48+Math.sqrt(g),$=.725/Math.pow(g,.2),x=$,w=[Math.pow(f*p[0]*s/100,.42),Math.pow(f*p[1]*n/100,.42),Math.pow(f*p[2]*l/100,.42)],k=[400*w[0]/(w[0]+27.13),400*w[1]/(w[1]+27.13),400*w[2]/(w[2]+27.13)];return new L_(g,(2*k[0]+k[1]+.05*k[2])*$,$,x,d,m,p,f,Math.pow(f,.25),y)}constructor(e,t,a,o,i,r,s,n,l,c){this.n=e,this.aw=t,this.nbb=a,this.ncb=o,this.c=i,this.nc=r,this.rgbD=s,this.fl=n,this.fLRoot=l,this.z=c}}L_.DEFAULT=L_.make();
149
185
  /**
150
186
  * @license
151
187
  * Copyright 2021 Google LLC
@@ -162,7 +198,7 @@ function ok(e){return e<0?-1:0===e?0:1}function ik(e,t,a){return(1-a)*e+a*t}func
162
198
  * See the License for the specific language governing permissions and
163
199
  * limitations under the License.
164
200
  */
165
- class kk{constructor(e,t,a,o,i,r,s,n,l){this.hue=e,this.chroma=t,this.j=a,this.q=o,this.m=i,this.s=r,this.jstar=s,this.astar=n,this.bstar=l}distance(e){const t=this.jstar-e.jstar,a=this.astar-e.astar,o=this.bstar-e.bstar,i=Math.sqrt(t*t+a*a+o*o);return 1.41*Math.pow(i,.63)}static fromInt(e){return kk.fromIntInViewingConditions(e,wk.DEFAULT)}static fromIntInViewingConditions(e,t){const a=(65280&e)>>8,o=255&e,i=yk((16711680&e)>>16),r=yk(a),s=yk(o),n=.41233895*i+.35762064*r+.18051042*s,l=.2126*i+.7152*r+.0722*s,c=.01932141*i+.11916382*r+.95034478*s,d=.401288*n+.650173*l-.051461*c,h=-.250268*n+1.204414*l+.045854*c,m=-.002079*n+.048952*l+.953127*c,p=t.rgbD[0]*d,u=t.rgbD[1]*h,v=t.rgbD[2]*m,b=Math.pow(t.fl*Math.abs(p)/100,.42),f=Math.pow(t.fl*Math.abs(u)/100,.42),g=Math.pow(t.fl*Math.abs(v)/100,.42),y=400*ok(p)*b/(b+27.13),$=400*ok(u)*f/(f+27.13),x=400*ok(v)*g/(g+27.13),w=(11*y+-12*$+x)/11,k=(y+$-2*x)/9,C=(20*y+20*$+21*x)/20,S=(40*y+20*$+x)/20,_=180*Math.atan2(k,w)/Math.PI,L=_<0?_+360:_>=360?_-360:_,z=L*Math.PI/180,E=S*t.nbb,M=100*Math.pow(E/t.aw,t.c*t.z),T=4/t.c*Math.sqrt(M/100)*(t.aw+4)*t.fLRoot,P=L<20.14?L+360:L,I=5e4/13*(.25*(Math.cos(P*Math.PI/180+2)+3.8))*t.nc*t.ncb*Math.sqrt(w*w+k*k)/(C+.305),W=Math.pow(I,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),A=W*Math.sqrt(M/100),H=A*t.fLRoot,O=50*Math.sqrt(W*t.c/(t.aw+4)),D=(1+100*.007)*M/(1+.007*M),B=1/.0228*Math.log(1+.0228*H),q=B*Math.cos(z),F=B*Math.sin(z);return new kk(L,A,M,T,H,O,D,q,F)}static fromJch(e,t,a){return kk.fromJchInViewingConditions(e,t,a,wk.DEFAULT)}static fromJchInViewingConditions(e,t,a,o){const i=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,r=t*o.fLRoot,s=t/Math.sqrt(e/100),n=50*Math.sqrt(s*o.c/(o.aw+4)),l=a*Math.PI/180,c=(1+100*.007)*e/(1+.007*e),d=1/.0228*Math.log(1+.0228*r),h=d*Math.cos(l),m=d*Math.sin(l);return new kk(a,t,e,i,r,n,c,h,m)}static fromUcs(e,t,a){return kk.fromUcsInViewingConditions(e,t,a,wk.DEFAULT)}static fromUcsInViewingConditions(e,t,a,o){const i=t,r=a,s=Math.sqrt(i*i+r*r),n=(Math.exp(.0228*s)-1)/.0228/o.fLRoot;let l=Math.atan2(r,i)*(180/Math.PI);l<0&&(l+=360);const c=e/(1-.007*(e-100));return kk.fromJchInViewingConditions(c,n,l,o)}toInt(){return this.viewed(wk.DEFAULT)}viewed(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),r=e.aw*Math.pow(this.j/100,1/e.c/e.z),s=i*(5e4/13)*e.nc*e.ncb,n=r/e.nbb,l=Math.sin(o),c=Math.cos(o),d=23*(n+.305)*a/(23*s+11*a*c+108*a*l),h=d*c,m=d*l,p=(460*n+451*h+288*m)/1403,u=(460*n-891*h-261*m)/1403,v=(460*n-220*h-6300*m)/1403,b=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),f=ok(p)*(100/e.fl)*Math.pow(b,1/.42),g=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),y=ok(u)*(100/e.fl)*Math.pow(g,1/.42),$=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),x=ok(v)*(100/e.fl)*Math.pow($,1/.42),w=f/e.rgbD[0],k=y/e.rgbD[1],C=x/e.rgbD[2],S=function(e,t,a){const o=ck,i=o[0][0]*e+o[0][1]*t+o[0][2]*a,r=o[1][0]*e+o[1][1]*t+o[1][2]*a,s=o[2][0]*e+o[2][1]*t+o[2][2]*a;return hk($k(i),$k(r),$k(s))}(1.86206786*w-1.01125463*k+.14918677*C,.38752654*w+.62144744*k-.00897398*C,-.0158415*w-.03412294*k+1.04996444*C);return S}static fromXyzInViewingConditions(e,t,a,o){const i=.401288*e+.650173*t-.051461*a,r=-.250268*e+1.204414*t+.045854*a,s=-.002079*e+.048952*t+.953127*a,n=o.rgbD[0]*i,l=o.rgbD[1]*r,c=o.rgbD[2]*s,d=Math.pow(o.fl*Math.abs(n)/100,.42),h=Math.pow(o.fl*Math.abs(l)/100,.42),m=Math.pow(o.fl*Math.abs(c)/100,.42),p=400*ok(n)*d/(d+27.13),u=400*ok(l)*h/(h+27.13),v=400*ok(c)*m/(m+27.13),b=(11*p+-12*u+v)/11,f=(p+u-2*v)/9,g=(20*p+20*u+21*v)/20,y=(40*p+20*u+v)/20,$=180*Math.atan2(f,b)/Math.PI,x=$<0?$+360:$>=360?$-360:$,w=x*Math.PI/180,k=y*o.nbb,C=100*Math.pow(k/o.aw,o.c*o.z),S=4/o.c*Math.sqrt(C/100)*(o.aw+4)*o.fLRoot,_=x<20.14?x+360:x,L=5e4/13*(1/4*(Math.cos(_*Math.PI/180+2)+3.8))*o.nc*o.ncb*Math.sqrt(b*b+f*f)/(g+.305),z=Math.pow(L,.9)*Math.pow(1.64-Math.pow(.29,o.n),.73),E=z*Math.sqrt(C/100),M=E*o.fLRoot,T=50*Math.sqrt(z*o.c/(o.aw+4)),P=(1+100*.007)*C/(1+.007*C),I=Math.log(1+.0228*M)/.0228,W=I*Math.cos(w),A=I*Math.sin(w);return new kk(x,E,C,S,M,T,P,W,A)}xyzInViewingConditions(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),r=e.aw*Math.pow(this.j/100,1/e.c/e.z),s=i*(5e4/13)*e.nc*e.ncb,n=r/e.nbb,l=Math.sin(o),c=Math.cos(o),d=23*(n+.305)*a/(23*s+11*a*c+108*a*l),h=d*c,m=d*l,p=(460*n+451*h+288*m)/1403,u=(460*n-891*h-261*m)/1403,v=(460*n-220*h-6300*m)/1403,b=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),f=ok(p)*(100/e.fl)*Math.pow(b,1/.42),g=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),y=ok(u)*(100/e.fl)*Math.pow(g,1/.42),$=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),x=ok(v)*(100/e.fl)*Math.pow($,1/.42),w=f/e.rgbD[0],k=y/e.rgbD[1],C=x/e.rgbD[2];return[1.86206786*w-1.01125463*k+.14918677*C,.38752654*w+.62144744*k-.00897398*C,-.0158415*w-.03412294*k+1.04996444*C]}}
201
+ class z_{constructor(e,t,a,o,i,r,s,n,l){this.hue=e,this.chroma=t,this.j=a,this.q=o,this.m=i,this.s=r,this.jstar=s,this.astar=n,this.bstar=l}distance(e){const t=this.jstar-e.jstar,a=this.astar-e.astar,o=this.bstar-e.bstar,i=Math.sqrt(t*t+a*a+o*o);return 1.41*Math.pow(i,.63)}static fromInt(e){return z_.fromIntInViewingConditions(e,L_.DEFAULT)}static fromIntInViewingConditions(e,t){const a=(65280&e)>>8,o=255&e,i=C_((16711680&e)>>16),r=C_(a),s=C_(o),n=.41233895*i+.35762064*r+.18051042*s,l=.2126*i+.7152*r+.0722*s,c=.01932141*i+.11916382*r+.95034478*s,d=.401288*n+.650173*l-.051461*c,h=-.250268*n+1.204414*l+.045854*c,m=-.002079*n+.048952*l+.953127*c,p=t.rgbD[0]*d,u=t.rgbD[1]*h,v=t.rgbD[2]*m,b=Math.pow(t.fl*Math.abs(p)/100,.42),f=Math.pow(t.fl*Math.abs(u)/100,.42),g=Math.pow(t.fl*Math.abs(v)/100,.42),y=400*l_(p)*b/(b+27.13),$=400*l_(u)*f/(f+27.13),x=400*l_(v)*g/(g+27.13),w=(11*y+-12*$+x)/11,k=(y+$-2*x)/9,C=(20*y+20*$+21*x)/20,S=(40*y+20*$+x)/20,_=180*Math.atan2(k,w)/Math.PI,L=_<0?_+360:_>=360?_-360:_,z=L*Math.PI/180,E=S*t.nbb,M=100*Math.pow(E/t.aw,t.c*t.z),T=4/t.c*Math.sqrt(M/100)*(t.aw+4)*t.fLRoot,P=L<20.14?L+360:L,I=5e4/13*(.25*(Math.cos(P*Math.PI/180+2)+3.8))*t.nc*t.ncb*Math.sqrt(w*w+k*k)/(C+.305),W=Math.pow(I,.9)*Math.pow(1.64-Math.pow(.29,t.n),.73),D=W*Math.sqrt(M/100),A=D*t.fLRoot,H=50*Math.sqrt(W*t.c/(t.aw+4)),O=(1+100*.007)*M/(1+.007*M),F=1/.0228*Math.log(1+.0228*A),B=F*Math.cos(z),V=F*Math.sin(z);return new z_(L,D,M,T,A,H,O,B,V)}static fromJch(e,t,a){return z_.fromJchInViewingConditions(e,t,a,L_.DEFAULT)}static fromJchInViewingConditions(e,t,a,o){const i=4/o.c*Math.sqrt(e/100)*(o.aw+4)*o.fLRoot,r=t*o.fLRoot,s=t/Math.sqrt(e/100),n=50*Math.sqrt(s*o.c/(o.aw+4)),l=a*Math.PI/180,c=(1+100*.007)*e/(1+.007*e),d=1/.0228*Math.log(1+.0228*r),h=d*Math.cos(l),m=d*Math.sin(l);return new z_(a,t,e,i,r,n,c,h,m)}static fromUcs(e,t,a){return z_.fromUcsInViewingConditions(e,t,a,L_.DEFAULT)}static fromUcsInViewingConditions(e,t,a,o){const i=t,r=a,s=Math.sqrt(i*i+r*r),n=(Math.exp(.0228*s)-1)/.0228/o.fLRoot;let l=Math.atan2(r,i)*(180/Math.PI);l<0&&(l+=360);const c=e/(1-.007*(e-100));return z_.fromJchInViewingConditions(c,n,l,o)}toInt(){return this.viewed(L_.DEFAULT)}viewed(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),r=e.aw*Math.pow(this.j/100,1/e.c/e.z),s=i*(5e4/13)*e.nc*e.ncb,n=r/e.nbb,l=Math.sin(o),c=Math.cos(o),d=23*(n+.305)*a/(23*s+11*a*c+108*a*l),h=d*c,m=d*l,p=(460*n+451*h+288*m)/1403,u=(460*n-891*h-261*m)/1403,v=(460*n-220*h-6300*m)/1403,b=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),f=l_(p)*(100/e.fl)*Math.pow(b,1/.42),g=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),y=l_(u)*(100/e.fl)*Math.pow(g,1/.42),$=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),x=l_(v)*(100/e.fl)*Math.pow($,1/.42),w=f/e.rgbD[0],k=y/e.rgbD[1],C=x/e.rgbD[2],S=function(e,t,a){const o=u_,i=o[0][0]*e+o[0][1]*t+o[0][2]*a,r=o[1][0]*e+o[1][1]*t+o[1][2]*a,s=o[2][0]*e+o[2][1]*t+o[2][2]*a;return b_(S_(i),S_(r),S_(s))}(1.86206786*w-1.01125463*k+.14918677*C,.38752654*w+.62144744*k-.00897398*C,-.0158415*w-.03412294*k+1.04996444*C);return S}static fromXyzInViewingConditions(e,t,a,o){const i=.401288*e+.650173*t-.051461*a,r=-.250268*e+1.204414*t+.045854*a,s=-.002079*e+.048952*t+.953127*a,n=o.rgbD[0]*i,l=o.rgbD[1]*r,c=o.rgbD[2]*s,d=Math.pow(o.fl*Math.abs(n)/100,.42),h=Math.pow(o.fl*Math.abs(l)/100,.42),m=Math.pow(o.fl*Math.abs(c)/100,.42),p=400*l_(n)*d/(d+27.13),u=400*l_(l)*h/(h+27.13),v=400*l_(c)*m/(m+27.13),b=(11*p+-12*u+v)/11,f=(p+u-2*v)/9,g=(20*p+20*u+21*v)/20,y=(40*p+20*u+v)/20,$=180*Math.atan2(f,b)/Math.PI,x=$<0?$+360:$>=360?$-360:$,w=x*Math.PI/180,k=y*o.nbb,C=100*Math.pow(k/o.aw,o.c*o.z),S=4/o.c*Math.sqrt(C/100)*(o.aw+4)*o.fLRoot,_=x<20.14?x+360:x,L=5e4/13*(1/4*(Math.cos(_*Math.PI/180+2)+3.8))*o.nc*o.ncb*Math.sqrt(b*b+f*f)/(g+.305),z=Math.pow(L,.9)*Math.pow(1.64-Math.pow(.29,o.n),.73),E=z*Math.sqrt(C/100),M=E*o.fLRoot,T=50*Math.sqrt(z*o.c/(o.aw+4)),P=(1+100*.007)*C/(1+.007*C),I=Math.log(1+.0228*M)/.0228,W=I*Math.cos(w),D=I*Math.sin(w);return new z_(x,E,C,S,M,T,P,W,D)}xyzInViewingConditions(e){const t=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),a=Math.pow(t/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),o=this.hue*Math.PI/180,i=.25*(Math.cos(o+2)+3.8),r=e.aw*Math.pow(this.j/100,1/e.c/e.z),s=i*(5e4/13)*e.nc*e.ncb,n=r/e.nbb,l=Math.sin(o),c=Math.cos(o),d=23*(n+.305)*a/(23*s+11*a*c+108*a*l),h=d*c,m=d*l,p=(460*n+451*h+288*m)/1403,u=(460*n-891*h-261*m)/1403,v=(460*n-220*h-6300*m)/1403,b=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),f=l_(p)*(100/e.fl)*Math.pow(b,1/.42),g=Math.max(0,27.13*Math.abs(u)/(400-Math.abs(u))),y=l_(u)*(100/e.fl)*Math.pow(g,1/.42),$=Math.max(0,27.13*Math.abs(v)/(400-Math.abs(v))),x=l_(v)*(100/e.fl)*Math.pow($,1/.42),w=f/e.rgbD[0],k=y/e.rgbD[1],C=x/e.rgbD[2];return[1.86206786*w-1.01125463*k+.14918677*C,.38752654*w+.62144744*k-.00897398*C,-.0158415*w-.03412294*k+1.04996444*C]}}
166
202
  /**
167
203
  * @license
168
204
  * Copyright 2021 Google LLC
@@ -178,7 +214,7 @@ class kk{constructor(e,t,a,o,i,r,s,n,l){this.hue=e,this.chroma=t,this.j=a,this.q
178
214
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
215
  * See the License for the specific language governing permissions and
180
216
  * limitations under the License.
181
- */class Ck{static sanitizeRadians(e){return(e+8*Math.PI)%(2*Math.PI)}static trueDelinearized(e){const t=e/100;let a=0;return a=t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,255*a}static chromaticAdaptation(e){const t=Math.pow(Math.abs(e),.42);return 400*ok(e)*t/(t+27.13)}static hueOf(e){const t=nk(e,Ck.SCALED_DISCOUNT_FROM_LINRGB),a=Ck.chromaticAdaptation(t[0]),o=Ck.chromaticAdaptation(t[1]),i=Ck.chromaticAdaptation(t[2]),r=(11*a+-12*o+i)/11,s=(a+o-2*i)/9;return Math.atan2(s,r)}static areInCyclicOrder(e,t,a){return Ck.sanitizeRadians(t-e)<Ck.sanitizeRadians(a-e)}static intercept(e,t,a){return(t-e)/(a-e)}static lerpPoint(e,t,a){return[e[0]+(a[0]-e[0])*t,e[1]+(a[1]-e[1])*t,e[2]+(a[2]-e[2])*t]}static setCoordinate(e,t,a,o){const i=Ck.intercept(e[o],t,a[o]);return Ck.lerpPoint(e,i,a)}static isBounded(e){return 0<=e&&e<=100}static nthVertex(e,t){const a=Ck.Y_FROM_LINRGB[0],o=Ck.Y_FROM_LINRGB[1],i=Ck.Y_FROM_LINRGB[2],r=t%4<=1?0:100,s=t%2==0?0:100;if(t<4){const t=r,n=s,l=(e-t*o-n*i)/a;return Ck.isBounded(l)?[l,t,n]:[-1,-1,-1]}if(t<8){const t=r,n=s,l=(e-n*a-t*i)/o;return Ck.isBounded(l)?[n,l,t]:[-1,-1,-1]}{const t=r,n=s,l=(e-t*a-n*o)/i;return Ck.isBounded(l)?[t,n,l]:[-1,-1,-1]}}static bisectToSegment(e,t){let a=[-1,-1,-1],o=a,i=0,r=0,s=!1,n=!0;for(let l=0;l<12;l++){const c=Ck.nthVertex(e,l);if(c[0]<0)continue;const d=Ck.hueOf(c);s?(n||Ck.areInCyclicOrder(i,d,r))&&(n=!1,Ck.areInCyclicOrder(i,t,d)?(o=c,r=d):(a=c,i=d)):(a=c,o=c,i=d,r=d,s=!0)}return[a,o]}static midpoint(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2,(e[2]+t[2])/2]}static criticalPlaneBelow(e){return Math.floor(e-.5)}static criticalPlaneAbove(e){return Math.ceil(e-.5)}static bisectToLimit(e,t){const a=Ck.bisectToSegment(e,t);let o=a[0],i=Ck.hueOf(o),r=a[1];for(let e=0;e<3;e++)if(o[e]!==r[e]){let a=-1,s=255;o[e]<r[e]?(a=Ck.criticalPlaneBelow(Ck.trueDelinearized(o[e])),s=Ck.criticalPlaneAbove(Ck.trueDelinearized(r[e]))):(a=Ck.criticalPlaneAbove(Ck.trueDelinearized(o[e])),s=Ck.criticalPlaneBelow(Ck.trueDelinearized(r[e])));for(let n=0;n<8&&!(Math.abs(s-a)<=1);n++){const n=Math.floor((a+s)/2),l=Ck.CRITICAL_PLANES[n],c=Ck.setCoordinate(o,l,r,e),d=Ck.hueOf(c);Ck.areInCyclicOrder(i,t,d)?(r=c,s=n):(o=c,i=d,a=n)}}return Ck.midpoint(o,r)}static inverseChromaticAdaptation(e){const t=Math.abs(e),a=Math.max(0,27.13*t/(400-t));return ok(e)*Math.pow(a,1/.42)}static findResultByJ(e,t,a){let o=11*Math.sqrt(a);const i=wk.DEFAULT,r=1/Math.pow(1.64-Math.pow(.29,i.n),.73),s=.25*(Math.cos(e+2)+3.8)*(5e4/13)*i.nc*i.ncb,n=Math.sin(e),l=Math.cos(e);for(let e=0;e<5;e++){const c=o/100,d=0===t||0===o?0:t/Math.sqrt(c),h=Math.pow(d*r,1/.9),m=i.aw*Math.pow(c,1/i.c/i.z)/i.nbb,p=23*(m+.305)*h/(23*s+11*h*l+108*h*n),u=p*l,v=p*n,b=(460*m+451*u+288*v)/1403,f=(460*m-891*u-261*v)/1403,g=(460*m-220*u-6300*v)/1403,y=nk([Ck.inverseChromaticAdaptation(b),Ck.inverseChromaticAdaptation(f),Ck.inverseChromaticAdaptation(g)],Ck.LINRGB_FROM_SCALED_DISCOUNT);if(y[0]<0||y[1]<0||y[2]<0)return 0;const $=Ck.Y_FROM_LINRGB[0],x=Ck.Y_FROM_LINRGB[1],w=Ck.Y_FROM_LINRGB[2],k=$*y[0]+x*y[1]+w*y[2];if(k<=0)return 0;if(4===e||Math.abs(k-a)<.002)return y[0]>100.01||y[1]>100.01||y[2]>100.01?0:mk(y);o-=(k-a)*o/(2*k)}return 0}static solveToInt(e,t,a){if(t<1e-4||a<1e-4||a>99.9999)return function(e){const t=$k(fk(e));return hk(t,t,t)}(a);const o=(e=sk(e))/180*Math.PI,i=fk(a),r=Ck.findResultByJ(o,t,i);if(0!==r)return r;return mk(Ck.bisectToLimit(i,o))}static solveToCam(e,t,a){return kk.fromInt(Ck.solveToInt(e,t,a))}}Ck.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],Ck.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],Ck.Y_FROM_LINRGB=[.2126,.7152,.0722],Ck.CRITICAL_PLANES=[.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];
217
+ */class E_{static sanitizeRadians(e){return(e+8*Math.PI)%(2*Math.PI)}static trueDelinearized(e){const t=e/100;let a=0;return a=t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,255*a}static chromaticAdaptation(e){const t=Math.pow(Math.abs(e),.42);return 400*l_(e)*t/(t+27.13)}static hueOf(e){const t=m_(e,E_.SCALED_DISCOUNT_FROM_LINRGB),a=E_.chromaticAdaptation(t[0]),o=E_.chromaticAdaptation(t[1]),i=E_.chromaticAdaptation(t[2]),r=(11*a+-12*o+i)/11,s=(a+o-2*i)/9;return Math.atan2(s,r)}static areInCyclicOrder(e,t,a){return E_.sanitizeRadians(t-e)<E_.sanitizeRadians(a-e)}static intercept(e,t,a){return(t-e)/(a-e)}static lerpPoint(e,t,a){return[e[0]+(a[0]-e[0])*t,e[1]+(a[1]-e[1])*t,e[2]+(a[2]-e[2])*t]}static setCoordinate(e,t,a,o){const i=E_.intercept(e[o],t,a[o]);return E_.lerpPoint(e,i,a)}static isBounded(e){return 0<=e&&e<=100}static nthVertex(e,t){const a=E_.Y_FROM_LINRGB[0],o=E_.Y_FROM_LINRGB[1],i=E_.Y_FROM_LINRGB[2],r=t%4<=1?0:100,s=t%2==0?0:100;if(t<4){const t=r,n=s,l=(e-t*o-n*i)/a;return E_.isBounded(l)?[l,t,n]:[-1,-1,-1]}if(t<8){const t=r,n=s,l=(e-n*a-t*i)/o;return E_.isBounded(l)?[n,l,t]:[-1,-1,-1]}{const t=r,n=s,l=(e-t*a-n*o)/i;return E_.isBounded(l)?[t,n,l]:[-1,-1,-1]}}static bisectToSegment(e,t){let a=[-1,-1,-1],o=a,i=0,r=0,s=!1,n=!0;for(let l=0;l<12;l++){const c=E_.nthVertex(e,l);if(c[0]<0)continue;const d=E_.hueOf(c);s?(n||E_.areInCyclicOrder(i,d,r))&&(n=!1,E_.areInCyclicOrder(i,t,d)?(o=c,r=d):(a=c,i=d)):(a=c,o=c,i=d,r=d,s=!0)}return[a,o]}static midpoint(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2,(e[2]+t[2])/2]}static criticalPlaneBelow(e){return Math.floor(e-.5)}static criticalPlaneAbove(e){return Math.ceil(e-.5)}static bisectToLimit(e,t){const a=E_.bisectToSegment(e,t);let o=a[0],i=E_.hueOf(o),r=a[1];for(let e=0;e<3;e++)if(o[e]!==r[e]){let a=-1,s=255;o[e]<r[e]?(a=E_.criticalPlaneBelow(E_.trueDelinearized(o[e])),s=E_.criticalPlaneAbove(E_.trueDelinearized(r[e]))):(a=E_.criticalPlaneAbove(E_.trueDelinearized(o[e])),s=E_.criticalPlaneBelow(E_.trueDelinearized(r[e])));for(let n=0;n<8&&!(Math.abs(s-a)<=1);n++){const n=Math.floor((a+s)/2),l=E_.CRITICAL_PLANES[n],c=E_.setCoordinate(o,l,r,e),d=E_.hueOf(c);E_.areInCyclicOrder(i,t,d)?(r=c,s=n):(o=c,i=d,a=n)}}return E_.midpoint(o,r)}static inverseChromaticAdaptation(e){const t=Math.abs(e),a=Math.max(0,27.13*t/(400-t));return l_(e)*Math.pow(a,1/.42)}static findResultByJ(e,t,a){let o=11*Math.sqrt(a);const i=L_.DEFAULT,r=1/Math.pow(1.64-Math.pow(.29,i.n),.73),s=.25*(Math.cos(e+2)+3.8)*(5e4/13)*i.nc*i.ncb,n=Math.sin(e),l=Math.cos(e);for(let e=0;e<5;e++){const c=o/100,d=0===t||0===o?0:t/Math.sqrt(c),h=Math.pow(d*r,1/.9),m=i.aw*Math.pow(c,1/i.c/i.z)/i.nbb,p=23*(m+.305)*h/(23*s+11*h*l+108*h*n),u=p*l,v=p*n,b=(460*m+451*u+288*v)/1403,f=(460*m-891*u-261*v)/1403,g=(460*m-220*u-6300*v)/1403,y=m_([E_.inverseChromaticAdaptation(b),E_.inverseChromaticAdaptation(f),E_.inverseChromaticAdaptation(g)],E_.LINRGB_FROM_SCALED_DISCOUNT);if(y[0]<0||y[1]<0||y[2]<0)return 0;const $=E_.Y_FROM_LINRGB[0],x=E_.Y_FROM_LINRGB[1],w=E_.Y_FROM_LINRGB[2],k=$*y[0]+x*y[1]+w*y[2];if(k<=0)return 0;if(4===e||Math.abs(k-a)<.002)return y[0]>100.01||y[1]>100.01||y[2]>100.01?0:f_(y);o-=(k-a)*o/(2*k)}return 0}static solveToInt(e,t,a){if(t<1e-4||a<1e-4||a>99.9999)return function(e){const t=S_(w_(e));return b_(t,t,t)}(a);const o=(e=h_(e))/180*Math.PI,i=w_(a),r=E_.findResultByJ(o,t,i);if(0!==r)return r;return f_(E_.bisectToLimit(i,o))}static solveToCam(e,t,a){return z_.fromInt(E_.solveToInt(e,t,a))}}E_.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],E_.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],E_.Y_FROM_LINRGB=[.2126,.7152,.0722],E_.CRITICAL_PLANES=[.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];
182
218
  /**
183
219
  * @license
184
220
  * Copyright 2021 Google LLC
@@ -195,7 +231,7 @@ class kk{constructor(e,t,a,o,i,r,s,n,l){this.hue=e,this.chroma=t,this.j=a,this.q
195
231
  * See the License for the specific language governing permissions and
196
232
  * limitations under the License.
197
233
  */
198
- class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e){return new Sk(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Ck.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Ck.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(Ck.solveToInt(this.internalHue,this.internalChroma,e))}constructor(e){this.argb=e;const t=kk.fromInt(e);this.internalHue=t.hue,this.internalChroma=t.chroma,this.internalTone=bk(e),this.argb=e}setInternalState(e){const t=kk.fromInt(e);this.internalHue=t.hue,this.internalChroma=t.chroma,this.internalTone=bk(e),this.argb=e}inViewingConditions(e){const t=kk.fromInt(this.toInt()).xyzInViewingConditions(e),a=kk.fromXyzInViewingConditions(t[0],t[1],t[2],wk.make());return Sk.from(a.hue,a.chroma,gk(t[1]))}}
234
+ class M_{static from(e,t,a){return new M_(E_.solveToInt(e,t,a))}static fromInt(e){return new M_(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(E_.solveToInt(e,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(E_.solveToInt(this.internalHue,e,this.internalTone))}get tone(){return this.internalTone}set tone(e){this.setInternalState(E_.solveToInt(this.internalHue,this.internalChroma,e))}constructor(e){this.argb=e;const t=z_.fromInt(e);this.internalHue=t.hue,this.internalChroma=t.chroma,this.internalTone=x_(e),this.argb=e}setInternalState(e){const t=z_.fromInt(e);this.internalHue=t.hue,this.internalChroma=t.chroma,this.internalTone=x_(e),this.argb=e}inViewingConditions(e){const t=z_.fromInt(this.toInt()).xyzInViewingConditions(e),a=z_.fromXyzInViewingConditions(t[0],t[1],t[2],L_.make());return M_.from(a.hue,a.chroma,k_(t[1]))}}
199
235
  /**
200
236
  * @license
201
237
  * Copyright 2022 Google LLC
@@ -211,7 +247,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
211
247
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
212
248
  * See the License for the specific language governing permissions and
213
249
  * limitations under the License.
214
- */class _k{static ratioOfTones(e,t){return e=rk(0,100,e),t=rk(0,100,t),_k.ratioOfYs(fk(e),fk(t))}static ratioOfYs(e,t){const a=e>t?e:t;return(a+5)/((a===t?e:t)+5)}static lighter(e,t){if(e<0||e>100)return-1;const a=fk(e),o=t*(a+5)-5,i=_k.ratioOfYs(o,a),r=Math.abs(i-t);if(i<t&&r>.04)return-1;const s=gk(o)+.4;return s<0||s>100?-1:s}static darker(e,t){if(e<0||e>100)return-1;const a=fk(e),o=(a+5)/t-5,i=_k.ratioOfYs(a,o),r=Math.abs(i-t);if(i<t&&r>.04)return-1;const s=gk(o)-.4;return s<0||s>100?-1:s}static lighterUnsafe(e,t){const a=_k.lighter(e,t);return a<0?100:a}static darkerUnsafe(e,t){const a=_k.darker(e,t);return a<0?0:a}}
250
+ */class T_{static ratioOfTones(e,t){return e=d_(0,100,e),t=d_(0,100,t),T_.ratioOfYs(w_(e),w_(t))}static ratioOfYs(e,t){const a=e>t?e:t;return(a+5)/((a===t?e:t)+5)}static lighter(e,t){if(e<0||e>100)return-1;const a=w_(e),o=t*(a+5)-5,i=T_.ratioOfYs(o,a),r=Math.abs(i-t);if(i<t&&r>.04)return-1;const s=k_(o)+.4;return s<0||s>100?-1:s}static darker(e,t){if(e<0||e>100)return-1;const a=w_(e),o=(a+5)/t-5,i=T_.ratioOfYs(a,o),r=Math.abs(i-t);if(i<t&&r>.04)return-1;const s=k_(o)-.4;return s<0||s>100?-1:s}static lighterUnsafe(e,t){const a=T_.lighter(e,t);return a<0?100:a}static darkerUnsafe(e,t){const a=T_.darker(e,t);return a<0?0:a}}
215
251
  /**
216
252
  * @license
217
253
  * Copyright 2023 Google LLC
@@ -227,7 +263,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
227
263
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
228
264
  * See the License for the specific language governing permissions and
229
265
  * limitations under the License.
230
- */class Lk{static isDisliked(e){const t=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,a=Math.round(e.chroma)>16,o=Math.round(e.tone)<65;return t&&a&&o}static fixIfDisliked(e){return Lk.isDisliked(e)?Sk.from(e.hue,e.chroma,70):e}}
266
+ */class P_{static isDisliked(e){const t=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,a=Math.round(e.chroma)>16,o=Math.round(e.tone)<65;return t&&a&&o}static fixIfDisliked(e){return P_.isDisliked(e)?M_.from(e.hue,e.chroma,70):e}}
231
267
  /**
232
268
  * @license
233
269
  * Copyright 2022 Google LLC
@@ -243,7 +279,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
243
279
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
244
280
  * See the License for the specific language governing permissions and
245
281
  * limitations under the License.
246
- */class zk{static fromPalette(e){return new zk(e.name??"",e.palette,e.tone,e.isBackground??!1,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}constructor(e,t,a,o,i,r,s,n){if(this.name=e,this.palette=t,this.tone=a,this.isBackground=o,this.background=i,this.secondBackground=r,this.contrastCurve=s,this.toneDeltaPair=n,this.hctCache=new Map,!i&&r)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!i&&s)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(i&&!s)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(e){return this.getHct(e).toInt()}getHct(e){const t=this.hctCache.get(e);if(null!=t)return t;const a=this.getTone(e),o=this.palette(e).getHct(a);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,o),o}getTone(e){const t=e.contrastLevel<0;if(this.toneDeltaPair){const a=this.toneDeltaPair(e),o=a.roleA,i=a.roleB,r=a.delta,s=a.polarity,n=a.stayTogether,l=this.background(e).getTone(e),c="nearer"===s||"lighter"===s&&!e.isDark||"darker"===s&&e.isDark,d=c?o:i,h=c?i:o,m=this.name===d.name,p=e.isDark?1:-1,u=d.contrastCurve.get(e.contrastLevel),v=h.contrastCurve.get(e.contrastLevel),b=d.tone(e);let f=_k.ratioOfTones(l,b)>=u?b:zk.foregroundTone(l,u);const g=h.tone(e);let y=_k.ratioOfTones(l,g)>=v?g:zk.foregroundTone(l,v);return t&&(f=zk.foregroundTone(l,u),y=zk.foregroundTone(l,v)),(y-f)*p>=r||(y=rk(0,100,f+r*p),(y-f)*p>=r||(f=rk(0,100,y-r*p))),50<=f&&f<60?p>0?(f=60,y=Math.max(y,f+r*p)):(f=49,y=Math.min(y,f+r*p)):50<=y&&y<60&&(n?p>0?(f=60,y=Math.max(y,f+r*p)):(f=49,y=Math.min(y,f+r*p)):y=p>0?60:49),m?f:y}{let a=this.tone(e);if(null==this.background)return a;const o=this.background(e).getTone(e),i=this.contrastCurve.get(e.contrastLevel);if(_k.ratioOfTones(o,a)>=i||(a=zk.foregroundTone(o,i)),t&&(a=zk.foregroundTone(o,i)),this.isBackground&&50<=a&&a<60&&(a=_k.ratioOfTones(49,o)>=i?49:60),this.secondBackground){const[t,o]=[this.background,this.secondBackground],[r,s]=[t(e).getTone(e),o(e).getTone(e)],[n,l]=[Math.max(r,s),Math.min(r,s)];if(_k.ratioOfTones(n,a)>=i&&_k.ratioOfTones(l,a)>=i)return a;const c=_k.lighter(n,i),d=_k.darker(l,i),h=[];-1!==c&&h.push(c),-1!==d&&h.push(d);return zk.tonePrefersLightForeground(r)||zk.tonePrefersLightForeground(s)?c<0?100:c:1===h.length?h[0]:d<0?0:d}return a}}static foregroundTone(e,t){const a=_k.lighterUnsafe(e,t),o=_k.darkerUnsafe(e,t),i=_k.ratioOfTones(a,e),r=_k.ratioOfTones(o,e);if(zk.tonePrefersLightForeground(e)){const e=Math.abs(i-r)<.1&&i<t&&r<t;return i>=t||i>=r||e?a:o}return r>=t||r>=i?o:a}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return zk.tonePrefersLightForeground(e)&&!zk.toneAllowsLightForeground(e)?49:e}}
282
+ */class I_{static fromPalette(e){return new I_(e.name??"",e.palette,e.tone,e.isBackground??!1,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}constructor(e,t,a,o,i,r,s,n){if(this.name=e,this.palette=t,this.tone=a,this.isBackground=o,this.background=i,this.secondBackground=r,this.contrastCurve=s,this.toneDeltaPair=n,this.hctCache=new Map,!i&&r)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!i&&s)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(i&&!s)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(e){return this.getHct(e).toInt()}getHct(e){const t=this.hctCache.get(e);if(null!=t)return t;const a=this.getTone(e),o=this.palette(e).getHct(a);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,o),o}getTone(e){const t=e.contrastLevel<0;if(this.toneDeltaPair){const a=this.toneDeltaPair(e),o=a.roleA,i=a.roleB,r=a.delta,s=a.polarity,n=a.stayTogether,l=this.background(e).getTone(e),c="nearer"===s||"lighter"===s&&!e.isDark||"darker"===s&&e.isDark,d=c?o:i,h=c?i:o,m=this.name===d.name,p=e.isDark?1:-1,u=d.contrastCurve.get(e.contrastLevel),v=h.contrastCurve.get(e.contrastLevel),b=d.tone(e);let f=T_.ratioOfTones(l,b)>=u?b:I_.foregroundTone(l,u);const g=h.tone(e);let y=T_.ratioOfTones(l,g)>=v?g:I_.foregroundTone(l,v);return t&&(f=I_.foregroundTone(l,u),y=I_.foregroundTone(l,v)),(y-f)*p>=r||(y=d_(0,100,f+r*p),(y-f)*p>=r||(f=d_(0,100,y-r*p))),50<=f&&f<60?p>0?(f=60,y=Math.max(y,f+r*p)):(f=49,y=Math.min(y,f+r*p)):50<=y&&y<60&&(n?p>0?(f=60,y=Math.max(y,f+r*p)):(f=49,y=Math.min(y,f+r*p)):y=p>0?60:49),m?f:y}{let a=this.tone(e);if(null==this.background)return a;const o=this.background(e).getTone(e),i=this.contrastCurve.get(e.contrastLevel);if(T_.ratioOfTones(o,a)>=i||(a=I_.foregroundTone(o,i)),t&&(a=I_.foregroundTone(o,i)),this.isBackground&&50<=a&&a<60&&(a=T_.ratioOfTones(49,o)>=i?49:60),this.secondBackground){const[t,o]=[this.background,this.secondBackground],[r,s]=[t(e).getTone(e),o(e).getTone(e)],[n,l]=[Math.max(r,s),Math.min(r,s)];if(T_.ratioOfTones(n,a)>=i&&T_.ratioOfTones(l,a)>=i)return a;const c=T_.lighter(n,i),d=T_.darker(l,i),h=[];-1!==c&&h.push(c),-1!==d&&h.push(d);return I_.tonePrefersLightForeground(r)||I_.tonePrefersLightForeground(s)?c<0?100:c:1===h.length?h[0]:d<0?0:d}return a}}static foregroundTone(e,t){const a=T_.lighterUnsafe(e,t),o=T_.darkerUnsafe(e,t),i=T_.ratioOfTones(a,e),r=T_.ratioOfTones(o,e);if(I_.tonePrefersLightForeground(e)){const e=Math.abs(i-r)<.1&&i<t&&r<t;return i>=t||i>=r||e?a:o}return r>=t||r>=i?o:a}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return I_.tonePrefersLightForeground(e)&&!I_.toneAllowsLightForeground(e)?49:e}}
247
283
  /**
248
284
  * @license
249
285
  * Copyright 2021 Google LLC
@@ -259,7 +295,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
259
295
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
260
296
  * See the License for the specific language governing permissions and
261
297
  * limitations under the License.
262
- */class Ek{static fromInt(e){const t=Sk.fromInt(e);return Ek.fromHct(t)}static fromHct(e){return new Ek(e.hue,e.chroma,e)}static fromHueAndChroma(e,t){const a=new Mk(e,t).create();return new Ek(e,t,a)}constructor(e,t,a){this.hue=e,this.chroma=t,this.keyColor=a,this.cache=new Map}tone(e){let t=this.cache.get(e);return void 0===t&&(t=Sk.from(this.hue,this.chroma,e).toInt(),this.cache.set(e,t)),t}getHct(e){return Sk.fromInt(this.tone(e))}}class Mk{constructor(e,t){this.hue=e,this.requestedChroma=t,this.chromaCache=new Map,this.maxChromaValue=200}create(){let e=0,t=100;for(;e<t;){const a=Math.floor((e+t)/2),o=this.maxChroma(a)<this.maxChroma(a+1);if(this.maxChroma(a)>=this.requestedChroma-.01)if(Math.abs(e-50)<Math.abs(t-50))t=a;else{if(e===a)return Sk.from(this.hue,this.requestedChroma,e);e=a}else o?e=a+1:t=a}return Sk.from(this.hue,this.requestedChroma,e)}maxChroma(e){if(this.chromaCache.has(e))return this.chromaCache.get(e);const t=Sk.from(this.hue,this.maxChromaValue,e).chroma;return this.chromaCache.set(e,t),t}}
298
+ */class W_{static fromInt(e){const t=M_.fromInt(e);return W_.fromHct(t)}static fromHct(e){return new W_(e.hue,e.chroma,e)}static fromHueAndChroma(e,t){const a=new D_(e,t).create();return new W_(e,t,a)}constructor(e,t,a){this.hue=e,this.chroma=t,this.keyColor=a,this.cache=new Map}tone(e){let t=this.cache.get(e);return void 0===t&&(t=M_.from(this.hue,this.chroma,e).toInt(),this.cache.set(e,t)),t}getHct(e){return M_.fromInt(this.tone(e))}}class D_{constructor(e,t){this.hue=e,this.requestedChroma=t,this.chromaCache=new Map,this.maxChromaValue=200}create(){let e=0,t=100;for(;e<t;){const a=Math.floor((e+t)/2),o=this.maxChroma(a)<this.maxChroma(a+1);if(this.maxChroma(a)>=this.requestedChroma-.01)if(Math.abs(e-50)<Math.abs(t-50))t=a;else{if(e===a)return M_.from(this.hue,this.requestedChroma,e);e=a}else o?e=a+1:t=a}return M_.from(this.hue,this.requestedChroma,e)}maxChroma(e){if(this.chromaCache.has(e))return this.chromaCache.get(e);const t=M_.from(this.hue,this.maxChromaValue,e).chroma;return this.chromaCache.set(e,t),t}}
263
299
  /**
264
300
  * @license
265
301
  * Copyright 2023 Google LLC
@@ -275,7 +311,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
275
311
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
276
312
  * See the License for the specific language governing permissions and
277
313
  * limitations under the License.
278
- */class Tk{constructor(e,t,a,o){this.low=e,this.normal=t,this.medium=a,this.high=o}get(e){return e<=-1?this.low:e<0?ik(this.low,this.normal,(e- -1)/1):e<.5?ik(this.normal,this.medium,(e-0)/.5):e<1?ik(this.medium,this.high,(e-.5)/.5):this.high}}
314
+ */class A_{constructor(e,t,a,o){this.low=e,this.normal=t,this.medium=a,this.high=o}get(e){return e<=-1?this.low:e<0?c_(this.low,this.normal,(e- -1)/1):e<.5?c_(this.normal,this.medium,(e-0)/.5):e<1?c_(this.medium,this.high,(e-.5)/.5):this.high}}
279
315
  /**
280
316
  * @license
281
317
  * Copyright 2023 Google LLC
@@ -291,7 +327,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
291
327
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
292
328
  * See the License for the specific language governing permissions and
293
329
  * limitations under the License.
294
- */class Pk{constructor(e,t,a,o,i){this.roleA=e,this.roleB=t,this.delta=a,this.polarity=o,this.stayTogether=i}}
330
+ */class H_{constructor(e,t,a,o,i){this.roleA=e,this.roleB=t,this.delta=a,this.polarity=o,this.stayTogether=i}}
295
331
  /**
296
332
  * @license
297
333
  * Copyright 2022 Google LLC
@@ -307,7 +343,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
307
343
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
308
344
  * See the License for the specific language governing permissions and
309
345
  * limitations under the License.
310
- */var Ik,Wk,Ak,Hk,Ok,Dk,Bk,qk,Fk,Vk;
346
+ */var O_,F_,B_,V_,q_,R_,U_,N_,j_,Y_;
311
347
  /**
312
348
  * @license
313
349
  * Copyright 2022 Google LLC
@@ -324,7 +360,7 @@ class Sk{static from(e,t,a){return new Sk(Ck.solveToInt(e,t,a))}static fromInt(e
324
360
  * See the License for the specific language governing permissions and
325
361
  * limitations under the License.
326
362
  */
327
- function Rk(e){return e.variant===Ik.FIDELITY||e.variant===Ik.CONTENT}function Nk(e){return e.variant===Ik.MONOCHROME}!function(e){e[e.MONOCHROME=0]="MONOCHROME",e[e.NEUTRAL=1]="NEUTRAL",e[e.TONAL_SPOT=2]="TONAL_SPOT",e[e.VIBRANT=3]="VIBRANT",e[e.EXPRESSIVE=4]="EXPRESSIVE",e[e.FIDELITY=5]="FIDELITY",e[e.CONTENT=6]="CONTENT",e[e.RAINBOW=7]="RAINBOW",e[e.FRUIT_SALAD=8]="FRUIT_SALAD"}(Ik||(Ik={}));class Uk{static highestSurface(e){return e.isDark?Uk.surfaceBright:Uk.surfaceDim}}Uk.contentAccentToneDelta=15,Uk.primaryPaletteKeyColor=zk.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone}),Uk.secondaryPaletteKeyColor=zk.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone}),Uk.tertiaryPaletteKeyColor=zk.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone}),Uk.neutralPaletteKeyColor=zk.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone}),Uk.neutralVariantPaletteKeyColor=zk.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone}),Uk.background=zk.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),Uk.onBackground=zk.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>Uk.background,contrastCurve:new Tk(3,3,4.5,7)}),Uk.surface=zk.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),Uk.surfaceDim=zk.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:new Tk(87,87,80,75).get(e.contrastLevel),isBackground:!0}),Uk.surfaceBright=zk.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Tk(24,24,29,34).get(e.contrastLevel):98,isBackground:!0}),Uk.surfaceContainerLowest=zk.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Tk(4,4,2,0).get(e.contrastLevel):100,isBackground:!0}),Uk.surfaceContainerLow=zk.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Tk(10,10,11,12).get(e.contrastLevel):new Tk(96,96,96,95).get(e.contrastLevel),isBackground:!0}),Uk.surfaceContainer=zk.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Tk(12,12,16,20).get(e.contrastLevel):new Tk(94,94,92,90).get(e.contrastLevel),isBackground:!0}),Uk.surfaceContainerHigh=zk.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Tk(17,17,21,25).get(e.contrastLevel):new Tk(92,92,88,85).get(e.contrastLevel),isBackground:!0}),Uk.surfaceContainerHighest=zk.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Tk(22,22,26,30).get(e.contrastLevel):new Tk(90,90,84,80).get(e.contrastLevel),isBackground:!0}),Uk.onSurface=zk.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(4.5,7,11,21)}),Uk.surfaceVariant=zk.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0}),Uk.onSurfaceVariant=zk.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(3,4.5,7,11)}),Uk.inverseSurface=zk.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20}),Uk.inverseOnSurface=zk.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>Uk.inverseSurface,contrastCurve:new Tk(4.5,7,11,21)}),Uk.outline=zk.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1.5,3,4.5,7)}),Uk.outlineVariant=zk.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5)}),Uk.shadow=zk.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0}),Uk.scrim=zk.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0}),Uk.surfaceTint=zk.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0}),Uk.primary=zk.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Nk(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(3,4.5,7,7),toneDeltaPair:e=>new Pk(Uk.primaryContainer,Uk.primary,10,"nearer",!1)}),Uk.onPrimary=zk.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Nk(e)?e.isDark?10:90:e.isDark?20:100,background:e=>Uk.primary,contrastCurve:new Tk(4.5,7,11,21)}),Uk.primaryContainer=zk.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>Rk(e)?e.sourceColorHct.tone:Nk(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.primaryContainer,Uk.primary,10,"nearer",!1)}),Uk.onPrimaryContainer=zk.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>Rk(e)?zk.foregroundTone(Uk.primaryContainer.tone(e),4.5):Nk(e)?e.isDark?0:100:e.isDark?90:30,background:e=>Uk.primaryContainer,contrastCurve:new Tk(3,4.5,7,11)}),Uk.inversePrimary=zk.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>Uk.inverseSurface,contrastCurve:new Tk(3,4.5,7,7)}),Uk.secondary=zk.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(3,4.5,7,7),toneDeltaPair:e=>new Pk(Uk.secondaryContainer,Uk.secondary,10,"nearer",!1)}),Uk.onSecondary=zk.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Nk(e)?e.isDark?10:100:e.isDark?20:100,background:e=>Uk.secondary,contrastCurve:new Tk(4.5,7,11,21)}),Uk.secondaryContainer=zk.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;return Nk(e)?e.isDark?30:85:Rk(e)?function(e,t,a,o){let i=a,r=Sk.from(e,t,a);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){i+=o?-1:1;const s=Sk.from(e,t,i);if(a>s.chroma)break;if(Math.abs(s.chroma-t)<.4)break;Math.abs(s.chroma-t)<Math.abs(r.chroma-t)&&(r=s),a=Math.max(a,s.chroma)}}return i}(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark):t},isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.secondaryContainer,Uk.secondary,10,"nearer",!1)}),Uk.onSecondaryContainer=zk.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>Nk(e)?e.isDark?90:10:Rk(e)?zk.foregroundTone(Uk.secondaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>Uk.secondaryContainer,contrastCurve:new Tk(3,4.5,7,11)}),Uk.tertiary=zk.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Nk(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(3,4.5,7,7),toneDeltaPair:e=>new Pk(Uk.tertiaryContainer,Uk.tertiary,10,"nearer",!1)}),Uk.onTertiary=zk.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Nk(e)?e.isDark?10:90:e.isDark?20:100,background:e=>Uk.tertiary,contrastCurve:new Tk(4.5,7,11,21)}),Uk.tertiaryContainer=zk.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Nk(e))return e.isDark?60:49;if(!Rk(e))return e.isDark?30:90;const t=e.tertiaryPalette.getHct(e.sourceColorHct.tone);return Lk.fixIfDisliked(t).tone},isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.tertiaryContainer,Uk.tertiary,10,"nearer",!1)}),Uk.onTertiaryContainer=zk.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Nk(e)?e.isDark?0:100:Rk(e)?zk.foregroundTone(Uk.tertiaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>Uk.tertiaryContainer,contrastCurve:new Tk(3,4.5,7,11)}),Uk.error=zk.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(3,4.5,7,7),toneDeltaPair:e=>new Pk(Uk.errorContainer,Uk.error,10,"nearer",!1)}),Uk.onError=zk.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>Uk.error,contrastCurve:new Tk(4.5,7,11,21)}),Uk.errorContainer=zk.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.errorContainer,Uk.error,10,"nearer",!1)}),Uk.onErrorContainer=zk.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>Nk(e)?e.isDark?90:10:e.isDark?90:30,background:e=>Uk.errorContainer,contrastCurve:new Tk(3,4.5,7,11)}),Uk.primaryFixed=zk.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Nk(e)?40:90,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.primaryFixed,Uk.primaryFixedDim,10,"lighter",!0)}),Uk.primaryFixedDim=zk.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Nk(e)?30:80,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.primaryFixed,Uk.primaryFixedDim,10,"lighter",!0)}),Uk.onPrimaryFixed=zk.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Nk(e)?100:10,background:e=>Uk.primaryFixedDim,secondBackground:e=>Uk.primaryFixed,contrastCurve:new Tk(4.5,7,11,21)}),Uk.onPrimaryFixedVariant=zk.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Nk(e)?90:30,background:e=>Uk.primaryFixedDim,secondBackground:e=>Uk.primaryFixed,contrastCurve:new Tk(3,4.5,7,11)}),Uk.secondaryFixed=zk.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Nk(e)?80:90,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.secondaryFixed,Uk.secondaryFixedDim,10,"lighter",!0)}),Uk.secondaryFixedDim=zk.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Nk(e)?70:80,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.secondaryFixed,Uk.secondaryFixedDim,10,"lighter",!0)}),Uk.onSecondaryFixed=zk.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>Uk.secondaryFixedDim,secondBackground:e=>Uk.secondaryFixed,contrastCurve:new Tk(4.5,7,11,21)}),Uk.onSecondaryFixedVariant=zk.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Nk(e)?25:30,background:e=>Uk.secondaryFixedDim,secondBackground:e=>Uk.secondaryFixed,contrastCurve:new Tk(3,4.5,7,11)}),Uk.tertiaryFixed=zk.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Nk(e)?40:90,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.tertiaryFixed,Uk.tertiaryFixedDim,10,"lighter",!0)}),Uk.tertiaryFixedDim=zk.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Nk(e)?30:80,isBackground:!0,background:e=>Uk.highestSurface(e),contrastCurve:new Tk(1,1,3,4.5),toneDeltaPair:e=>new Pk(Uk.tertiaryFixed,Uk.tertiaryFixedDim,10,"lighter",!0)}),Uk.onTertiaryFixed=zk.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Nk(e)?100:10,background:e=>Uk.tertiaryFixedDim,secondBackground:e=>Uk.tertiaryFixed,contrastCurve:new Tk(4.5,7,11,21)}),Uk.onTertiaryFixedVariant=zk.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Nk(e)?90:30,background:e=>Uk.tertiaryFixedDim,secondBackground:e=>Uk.tertiaryFixed,contrastCurve:new Tk(3,4.5,7,11)});
363
+ function K_(e){return e.variant===O_.FIDELITY||e.variant===O_.CONTENT}function Z_(e){return e.variant===O_.MONOCHROME}!function(e){e[e.MONOCHROME=0]="MONOCHROME",e[e.NEUTRAL=1]="NEUTRAL",e[e.TONAL_SPOT=2]="TONAL_SPOT",e[e.VIBRANT=3]="VIBRANT",e[e.EXPRESSIVE=4]="EXPRESSIVE",e[e.FIDELITY=5]="FIDELITY",e[e.CONTENT=6]="CONTENT",e[e.RAINBOW=7]="RAINBOW",e[e.FRUIT_SALAD=8]="FRUIT_SALAD"}(O_||(O_={}));class G_{static highestSurface(e){return e.isDark?G_.surfaceBright:G_.surfaceDim}}G_.contentAccentToneDelta=15,G_.primaryPaletteKeyColor=I_.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone}),G_.secondaryPaletteKeyColor=I_.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone}),G_.tertiaryPaletteKeyColor=I_.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone}),G_.neutralPaletteKeyColor=I_.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone}),G_.neutralVariantPaletteKeyColor=I_.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone}),G_.background=I_.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),G_.onBackground=I_.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>G_.background,contrastCurve:new A_(3,3,4.5,7)}),G_.surface=I_.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0}),G_.surfaceDim=I_.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:new A_(87,87,80,75).get(e.contrastLevel),isBackground:!0}),G_.surfaceBright=I_.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?new A_(24,24,29,34).get(e.contrastLevel):98,isBackground:!0}),G_.surfaceContainerLowest=I_.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new A_(4,4,2,0).get(e.contrastLevel):100,isBackground:!0}),G_.surfaceContainerLow=I_.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?new A_(10,10,11,12).get(e.contrastLevel):new A_(96,96,96,95).get(e.contrastLevel),isBackground:!0}),G_.surfaceContainer=I_.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?new A_(12,12,16,20).get(e.contrastLevel):new A_(94,94,92,90).get(e.contrastLevel),isBackground:!0}),G_.surfaceContainerHigh=I_.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?new A_(17,17,21,25).get(e.contrastLevel):new A_(92,92,88,85).get(e.contrastLevel),isBackground:!0}),G_.surfaceContainerHighest=I_.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new A_(22,22,26,30).get(e.contrastLevel):new A_(90,90,84,80).get(e.contrastLevel),isBackground:!0}),G_.onSurface=I_.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>G_.highestSurface(e),contrastCurve:new A_(4.5,7,11,21)}),G_.surfaceVariant=I_.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0}),G_.onSurfaceVariant=I_.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>G_.highestSurface(e),contrastCurve:new A_(3,4.5,7,11)}),G_.inverseSurface=I_.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20}),G_.inverseOnSurface=I_.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>G_.inverseSurface,contrastCurve:new A_(4.5,7,11,21)}),G_.outline=I_.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>G_.highestSurface(e),contrastCurve:new A_(1.5,3,4.5,7)}),G_.outlineVariant=I_.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5)}),G_.shadow=I_.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0}),G_.scrim=I_.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0}),G_.surfaceTint=I_.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0}),G_.primary=I_.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Z_(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(3,4.5,7,7),toneDeltaPair:e=>new H_(G_.primaryContainer,G_.primary,10,"nearer",!1)}),G_.onPrimary=I_.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Z_(e)?e.isDark?10:90:e.isDark?20:100,background:e=>G_.primary,contrastCurve:new A_(4.5,7,11,21)}),G_.primaryContainer=I_.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>K_(e)?e.sourceColorHct.tone:Z_(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.primaryContainer,G_.primary,10,"nearer",!1)}),G_.onPrimaryContainer=I_.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>K_(e)?I_.foregroundTone(G_.primaryContainer.tone(e),4.5):Z_(e)?e.isDark?0:100:e.isDark?90:30,background:e=>G_.primaryContainer,contrastCurve:new A_(3,4.5,7,11)}),G_.inversePrimary=I_.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>G_.inverseSurface,contrastCurve:new A_(3,4.5,7,7)}),G_.secondary=I_.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(3,4.5,7,7),toneDeltaPair:e=>new H_(G_.secondaryContainer,G_.secondary,10,"nearer",!1)}),G_.onSecondary=I_.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Z_(e)?e.isDark?10:100:e.isDark?20:100,background:e=>G_.secondary,contrastCurve:new A_(4.5,7,11,21)}),G_.secondaryContainer=I_.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;return Z_(e)?e.isDark?30:85:K_(e)?function(e,t,a,o){let i=a,r=M_.from(e,t,a);if(r.chroma<t){let a=r.chroma;for(;r.chroma<t;){i+=o?-1:1;const s=M_.from(e,t,i);if(a>s.chroma)break;if(Math.abs(s.chroma-t)<.4)break;Math.abs(s.chroma-t)<Math.abs(r.chroma-t)&&(r=s),a=Math.max(a,s.chroma)}}return i}(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark):t},isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.secondaryContainer,G_.secondary,10,"nearer",!1)}),G_.onSecondaryContainer=I_.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>Z_(e)?e.isDark?90:10:K_(e)?I_.foregroundTone(G_.secondaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>G_.secondaryContainer,contrastCurve:new A_(3,4.5,7,11)}),G_.tertiary=I_.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Z_(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(3,4.5,7,7),toneDeltaPair:e=>new H_(G_.tertiaryContainer,G_.tertiary,10,"nearer",!1)}),G_.onTertiary=I_.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Z_(e)?e.isDark?10:90:e.isDark?20:100,background:e=>G_.tertiary,contrastCurve:new A_(4.5,7,11,21)}),G_.tertiaryContainer=I_.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Z_(e))return e.isDark?60:49;if(!K_(e))return e.isDark?30:90;const t=e.tertiaryPalette.getHct(e.sourceColorHct.tone);return P_.fixIfDisliked(t).tone},isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.tertiaryContainer,G_.tertiary,10,"nearer",!1)}),G_.onTertiaryContainer=I_.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Z_(e)?e.isDark?0:100:K_(e)?I_.foregroundTone(G_.tertiaryContainer.tone(e),4.5):e.isDark?90:30,background:e=>G_.tertiaryContainer,contrastCurve:new A_(3,4.5,7,11)}),G_.error=I_.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(3,4.5,7,7),toneDeltaPair:e=>new H_(G_.errorContainer,G_.error,10,"nearer",!1)}),G_.onError=I_.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>G_.error,contrastCurve:new A_(4.5,7,11,21)}),G_.errorContainer=I_.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.errorContainer,G_.error,10,"nearer",!1)}),G_.onErrorContainer=I_.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>Z_(e)?e.isDark?90:10:e.isDark?90:30,background:e=>G_.errorContainer,contrastCurve:new A_(3,4.5,7,11)}),G_.primaryFixed=I_.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Z_(e)?40:90,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.primaryFixed,G_.primaryFixedDim,10,"lighter",!0)}),G_.primaryFixedDim=I_.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Z_(e)?30:80,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.primaryFixed,G_.primaryFixedDim,10,"lighter",!0)}),G_.onPrimaryFixed=I_.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Z_(e)?100:10,background:e=>G_.primaryFixedDim,secondBackground:e=>G_.primaryFixed,contrastCurve:new A_(4.5,7,11,21)}),G_.onPrimaryFixedVariant=I_.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Z_(e)?90:30,background:e=>G_.primaryFixedDim,secondBackground:e=>G_.primaryFixed,contrastCurve:new A_(3,4.5,7,11)}),G_.secondaryFixed=I_.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Z_(e)?80:90,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.secondaryFixed,G_.secondaryFixedDim,10,"lighter",!0)}),G_.secondaryFixedDim=I_.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Z_(e)?70:80,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.secondaryFixed,G_.secondaryFixedDim,10,"lighter",!0)}),G_.onSecondaryFixed=I_.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>G_.secondaryFixedDim,secondBackground:e=>G_.secondaryFixed,contrastCurve:new A_(4.5,7,11,21)}),G_.onSecondaryFixedVariant=I_.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Z_(e)?25:30,background:e=>G_.secondaryFixedDim,secondBackground:e=>G_.secondaryFixed,contrastCurve:new A_(3,4.5,7,11)}),G_.tertiaryFixed=I_.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Z_(e)?40:90,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.tertiaryFixed,G_.tertiaryFixedDim,10,"lighter",!0)}),G_.tertiaryFixedDim=I_.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Z_(e)?30:80,isBackground:!0,background:e=>G_.highestSurface(e),contrastCurve:new A_(1,1,3,4.5),toneDeltaPair:e=>new H_(G_.tertiaryFixed,G_.tertiaryFixedDim,10,"lighter",!0)}),G_.onTertiaryFixed=I_.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Z_(e)?100:10,background:e=>G_.tertiaryFixedDim,secondBackground:e=>G_.tertiaryFixed,contrastCurve:new A_(4.5,7,11,21)}),G_.onTertiaryFixedVariant=I_.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Z_(e)?90:30,background:e=>G_.tertiaryFixedDim,secondBackground:e=>G_.tertiaryFixed,contrastCurve:new A_(3,4.5,7,11)});
328
364
  /**
329
365
  * @license
330
366
  * Copyright 2022 Google LLC
@@ -341,7 +377,7 @@ function Rk(e){return e.variant===Ik.FIDELITY||e.variant===Ik.CONTENT}function N
341
377
  * See the License for the specific language governing permissions and
342
378
  * limitations under the License.
343
379
  */
344
- class jk{constructor(e){this.sourceColorArgb=e.sourceColorArgb,this.variant=e.variant,this.contrastLevel=e.contrastLevel,this.isDark=e.isDark,this.sourceColorHct=Sk.fromInt(e.sourceColorArgb),this.primaryPalette=e.primaryPalette,this.secondaryPalette=e.secondaryPalette,this.tertiaryPalette=e.tertiaryPalette,this.neutralPalette=e.neutralPalette,this.neutralVariantPalette=e.neutralVariantPalette,this.errorPalette=Ek.fromHueAndChroma(25,84)}static getRotatedHue(e,t,a){const o=e.hue;if(t.length!==a.length)throw new Error(`mismatch between hue length ${t.length} & rotations ${a.length}`);if(1===a.length)return sk(e.hue+a[0]);const i=t.length;for(let e=0;e<=i-2;e++){const i=t[e],r=t[e+1];if(i<o&&o<r)return sk(o+a[e])}return o}getArgb(e){return e.getArgb(this)}getHct(e){return e.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(Uk.primaryPaletteKeyColor)}get secondaryPaletteKeyColor(){return this.getArgb(Uk.secondaryPaletteKeyColor)}get tertiaryPaletteKeyColor(){return this.getArgb(Uk.tertiaryPaletteKeyColor)}get neutralPaletteKeyColor(){return this.getArgb(Uk.neutralPaletteKeyColor)}get neutralVariantPaletteKeyColor(){return this.getArgb(Uk.neutralVariantPaletteKeyColor)}get background(){return this.getArgb(Uk.background)}get onBackground(){return this.getArgb(Uk.onBackground)}get surface(){return this.getArgb(Uk.surface)}get surfaceDim(){return this.getArgb(Uk.surfaceDim)}get surfaceBright(){return this.getArgb(Uk.surfaceBright)}get surfaceContainerLowest(){return this.getArgb(Uk.surfaceContainerLowest)}get surfaceContainerLow(){return this.getArgb(Uk.surfaceContainerLow)}get surfaceContainer(){return this.getArgb(Uk.surfaceContainer)}get surfaceContainerHigh(){return this.getArgb(Uk.surfaceContainerHigh)}get surfaceContainerHighest(){return this.getArgb(Uk.surfaceContainerHighest)}get onSurface(){return this.getArgb(Uk.onSurface)}get surfaceVariant(){return this.getArgb(Uk.surfaceVariant)}get onSurfaceVariant(){return this.getArgb(Uk.onSurfaceVariant)}get inverseSurface(){return this.getArgb(Uk.inverseSurface)}get inverseOnSurface(){return this.getArgb(Uk.inverseOnSurface)}get outline(){return this.getArgb(Uk.outline)}get outlineVariant(){return this.getArgb(Uk.outlineVariant)}get shadow(){return this.getArgb(Uk.shadow)}get scrim(){return this.getArgb(Uk.scrim)}get surfaceTint(){return this.getArgb(Uk.surfaceTint)}get primary(){return this.getArgb(Uk.primary)}get onPrimary(){return this.getArgb(Uk.onPrimary)}get primaryContainer(){return this.getArgb(Uk.primaryContainer)}get onPrimaryContainer(){return this.getArgb(Uk.onPrimaryContainer)}get inversePrimary(){return this.getArgb(Uk.inversePrimary)}get secondary(){return this.getArgb(Uk.secondary)}get onSecondary(){return this.getArgb(Uk.onSecondary)}get secondaryContainer(){return this.getArgb(Uk.secondaryContainer)}get onSecondaryContainer(){return this.getArgb(Uk.onSecondaryContainer)}get tertiary(){return this.getArgb(Uk.tertiary)}get onTertiary(){return this.getArgb(Uk.onTertiary)}get tertiaryContainer(){return this.getArgb(Uk.tertiaryContainer)}get onTertiaryContainer(){return this.getArgb(Uk.onTertiaryContainer)}get error(){return this.getArgb(Uk.error)}get onError(){return this.getArgb(Uk.onError)}get errorContainer(){return this.getArgb(Uk.errorContainer)}get onErrorContainer(){return this.getArgb(Uk.onErrorContainer)}get primaryFixed(){return this.getArgb(Uk.primaryFixed)}get primaryFixedDim(){return this.getArgb(Uk.primaryFixedDim)}get onPrimaryFixed(){return this.getArgb(Uk.onPrimaryFixed)}get onPrimaryFixedVariant(){return this.getArgb(Uk.onPrimaryFixedVariant)}get secondaryFixed(){return this.getArgb(Uk.secondaryFixed)}get secondaryFixedDim(){return this.getArgb(Uk.secondaryFixedDim)}get onSecondaryFixed(){return this.getArgb(Uk.onSecondaryFixed)}get onSecondaryFixedVariant(){return this.getArgb(Uk.onSecondaryFixedVariant)}get tertiaryFixed(){return this.getArgb(Uk.tertiaryFixed)}get tertiaryFixedDim(){return this.getArgb(Uk.tertiaryFixedDim)}get onTertiaryFixed(){return this.getArgb(Uk.onTertiaryFixed)}get onTertiaryFixedVariant(){return this.getArgb(Uk.onTertiaryFixedVariant)}}
380
+ class X_{constructor(e){this.sourceColorArgb=e.sourceColorArgb,this.variant=e.variant,this.contrastLevel=e.contrastLevel,this.isDark=e.isDark,this.sourceColorHct=M_.fromInt(e.sourceColorArgb),this.primaryPalette=e.primaryPalette,this.secondaryPalette=e.secondaryPalette,this.tertiaryPalette=e.tertiaryPalette,this.neutralPalette=e.neutralPalette,this.neutralVariantPalette=e.neutralVariantPalette,this.errorPalette=W_.fromHueAndChroma(25,84)}static getRotatedHue(e,t,a){const o=e.hue;if(t.length!==a.length)throw new Error(`mismatch between hue length ${t.length} & rotations ${a.length}`);if(1===a.length)return h_(e.hue+a[0]);const i=t.length;for(let e=0;e<=i-2;e++){const i=t[e],r=t[e+1];if(i<o&&o<r)return h_(o+a[e])}return o}getArgb(e){return e.getArgb(this)}getHct(e){return e.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(G_.primaryPaletteKeyColor)}get secondaryPaletteKeyColor(){return this.getArgb(G_.secondaryPaletteKeyColor)}get tertiaryPaletteKeyColor(){return this.getArgb(G_.tertiaryPaletteKeyColor)}get neutralPaletteKeyColor(){return this.getArgb(G_.neutralPaletteKeyColor)}get neutralVariantPaletteKeyColor(){return this.getArgb(G_.neutralVariantPaletteKeyColor)}get background(){return this.getArgb(G_.background)}get onBackground(){return this.getArgb(G_.onBackground)}get surface(){return this.getArgb(G_.surface)}get surfaceDim(){return this.getArgb(G_.surfaceDim)}get surfaceBright(){return this.getArgb(G_.surfaceBright)}get surfaceContainerLowest(){return this.getArgb(G_.surfaceContainerLowest)}get surfaceContainerLow(){return this.getArgb(G_.surfaceContainerLow)}get surfaceContainer(){return this.getArgb(G_.surfaceContainer)}get surfaceContainerHigh(){return this.getArgb(G_.surfaceContainerHigh)}get surfaceContainerHighest(){return this.getArgb(G_.surfaceContainerHighest)}get onSurface(){return this.getArgb(G_.onSurface)}get surfaceVariant(){return this.getArgb(G_.surfaceVariant)}get onSurfaceVariant(){return this.getArgb(G_.onSurfaceVariant)}get inverseSurface(){return this.getArgb(G_.inverseSurface)}get inverseOnSurface(){return this.getArgb(G_.inverseOnSurface)}get outline(){return this.getArgb(G_.outline)}get outlineVariant(){return this.getArgb(G_.outlineVariant)}get shadow(){return this.getArgb(G_.shadow)}get scrim(){return this.getArgb(G_.scrim)}get surfaceTint(){return this.getArgb(G_.surfaceTint)}get primary(){return this.getArgb(G_.primary)}get onPrimary(){return this.getArgb(G_.onPrimary)}get primaryContainer(){return this.getArgb(G_.primaryContainer)}get onPrimaryContainer(){return this.getArgb(G_.onPrimaryContainer)}get inversePrimary(){return this.getArgb(G_.inversePrimary)}get secondary(){return this.getArgb(G_.secondary)}get onSecondary(){return this.getArgb(G_.onSecondary)}get secondaryContainer(){return this.getArgb(G_.secondaryContainer)}get onSecondaryContainer(){return this.getArgb(G_.onSecondaryContainer)}get tertiary(){return this.getArgb(G_.tertiary)}get onTertiary(){return this.getArgb(G_.onTertiary)}get tertiaryContainer(){return this.getArgb(G_.tertiaryContainer)}get onTertiaryContainer(){return this.getArgb(G_.onTertiaryContainer)}get error(){return this.getArgb(G_.error)}get onError(){return this.getArgb(G_.onError)}get errorContainer(){return this.getArgb(G_.errorContainer)}get onErrorContainer(){return this.getArgb(G_.onErrorContainer)}get primaryFixed(){return this.getArgb(G_.primaryFixed)}get primaryFixedDim(){return this.getArgb(G_.primaryFixedDim)}get onPrimaryFixed(){return this.getArgb(G_.onPrimaryFixed)}get onPrimaryFixedVariant(){return this.getArgb(G_.onPrimaryFixedVariant)}get secondaryFixed(){return this.getArgb(G_.secondaryFixed)}get secondaryFixedDim(){return this.getArgb(G_.secondaryFixedDim)}get onSecondaryFixed(){return this.getArgb(G_.onSecondaryFixed)}get onSecondaryFixedVariant(){return this.getArgb(G_.onSecondaryFixedVariant)}get tertiaryFixed(){return this.getArgb(G_.tertiaryFixed)}get tertiaryFixedDim(){return this.getArgb(G_.tertiaryFixedDim)}get onTertiaryFixed(){return this.getArgb(G_.onTertiaryFixed)}get onTertiaryFixedVariant(){return this.getArgb(G_.onTertiaryFixedVariant)}}
345
381
  /**
346
382
  * @license
347
383
  * Copyright 2021 Google LLC
@@ -357,7 +393,7 @@ class jk{constructor(e){this.sourceColorArgb=e.sourceColorArgb,this.variant=e.va
357
393
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
358
394
  * See the License for the specific language governing permissions and
359
395
  * limitations under the License.
360
- */class Kk{static of(e){return new Kk(e,!1)}static contentOf(e){return new Kk(e,!0)}static fromColors(e){return Kk.createPaletteFromColors(!1,e)}static contentFromColors(e){return Kk.createPaletteFromColors(!0,e)}static createPaletteFromColors(e,t){const a=new Kk(t.primary,e);if(t.secondary){const o=new Kk(t.secondary,e);a.a2=o.a1}if(t.tertiary){const o=new Kk(t.tertiary,e);a.a3=o.a1}if(t.error){const o=new Kk(t.error,e);a.error=o.a1}if(t.neutral){const o=new Kk(t.neutral,e);a.n1=o.n1}if(t.neutralVariant){const o=new Kk(t.neutralVariant,e);a.n2=o.n2}return a}constructor(e,t){const a=Sk.fromInt(e),o=a.hue,i=a.chroma;t?(this.a1=Ek.fromHueAndChroma(o,i),this.a2=Ek.fromHueAndChroma(o,i/3),this.a3=Ek.fromHueAndChroma(o+60,i/2),this.n1=Ek.fromHueAndChroma(o,Math.min(i/12,4)),this.n2=Ek.fromHueAndChroma(o,Math.min(i/6,8))):(this.a1=Ek.fromHueAndChroma(o,Math.max(48,i)),this.a2=Ek.fromHueAndChroma(o,16),this.a3=Ek.fromHueAndChroma(o+60,24),this.n1=Ek.fromHueAndChroma(o,4),this.n2=Ek.fromHueAndChroma(o,8)),this.error=Ek.fromHueAndChroma(25,84)}}
396
+ */class J_{static of(e){return new J_(e,!1)}static contentOf(e){return new J_(e,!0)}static fromColors(e){return J_.createPaletteFromColors(!1,e)}static contentFromColors(e){return J_.createPaletteFromColors(!0,e)}static createPaletteFromColors(e,t){const a=new J_(t.primary,e);if(t.secondary){const o=new J_(t.secondary,e);a.a2=o.a1}if(t.tertiary){const o=new J_(t.tertiary,e);a.a3=o.a1}if(t.error){const o=new J_(t.error,e);a.error=o.a1}if(t.neutral){const o=new J_(t.neutral,e);a.n1=o.n1}if(t.neutralVariant){const o=new J_(t.neutralVariant,e);a.n2=o.n2}return a}constructor(e,t){const a=M_.fromInt(e),o=a.hue,i=a.chroma;t?(this.a1=W_.fromHueAndChroma(o,i),this.a2=W_.fromHueAndChroma(o,i/3),this.a3=W_.fromHueAndChroma(o+60,i/2),this.n1=W_.fromHueAndChroma(o,Math.min(i/12,4)),this.n2=W_.fromHueAndChroma(o,Math.min(i/6,8))):(this.a1=W_.fromHueAndChroma(o,Math.max(48,i)),this.a2=W_.fromHueAndChroma(o,16),this.a3=W_.fromHueAndChroma(o+60,24),this.n1=W_.fromHueAndChroma(o,4),this.n2=W_.fromHueAndChroma(o,8)),this.error=W_.fromHueAndChroma(25,84)}}
361
397
  /**
362
398
  * @license
363
399
  * Copyright 2022 Google LLC
@@ -373,7 +409,7 @@ class jk{constructor(e){this.sourceColorArgb=e.sourceColorArgb,this.variant=e.va
373
409
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
374
410
  * See the License for the specific language governing permissions and
375
411
  * limitations under the License.
376
- */class Zk extends jk{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:Ik.EXPRESSIVE,contrastLevel:a,isDark:t,primaryPalette:Ek.fromHueAndChroma(sk(e.hue+240),40),secondaryPalette:Ek.fromHueAndChroma(jk.getRotatedHue(e,Zk.hues,Zk.secondaryRotations),24),tertiaryPalette:Ek.fromHueAndChroma(jk.getRotatedHue(e,Zk.hues,Zk.tertiaryRotations),32),neutralPalette:Ek.fromHueAndChroma(e.hue+15,8),neutralVariantPalette:Ek.fromHueAndChroma(e.hue+15,12)})}}Zk.hues=[0,21,51,121,151,191,271,321,360],Zk.secondaryRotations=[45,95,45,20,45,90,45,45,45],Zk.tertiaryRotations=[120,120,20,45,20,15,20,120,120];
412
+ */class Q_ extends X_{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:O_.EXPRESSIVE,contrastLevel:a,isDark:t,primaryPalette:W_.fromHueAndChroma(h_(e.hue+240),40),secondaryPalette:W_.fromHueAndChroma(X_.getRotatedHue(e,Q_.hues,Q_.secondaryRotations),24),tertiaryPalette:W_.fromHueAndChroma(X_.getRotatedHue(e,Q_.hues,Q_.tertiaryRotations),32),neutralPalette:W_.fromHueAndChroma(e.hue+15,8),neutralVariantPalette:W_.fromHueAndChroma(e.hue+15,12)})}}Q_.hues=[0,21,51,121,151,191,271,321,360],Q_.secondaryRotations=[45,95,45,20,45,90,45,45,45],Q_.tertiaryRotations=[120,120,20,45,20,15,20,120,120];
377
413
  /**
378
414
  * @license
379
415
  * Copyright 2022 Google LLC
@@ -390,7 +426,7 @@ class jk{constructor(e){this.sourceColorArgb=e.sourceColorArgb,this.variant=e.va
390
426
  * See the License for the specific language governing permissions and
391
427
  * limitations under the License.
392
428
  */
393
- class Gk extends jk{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:Ik.VIBRANT,contrastLevel:a,isDark:t,primaryPalette:Ek.fromHueAndChroma(e.hue,200),secondaryPalette:Ek.fromHueAndChroma(jk.getRotatedHue(e,Gk.hues,Gk.secondaryRotations),24),tertiaryPalette:Ek.fromHueAndChroma(jk.getRotatedHue(e,Gk.hues,Gk.tertiaryRotations),32),neutralPalette:Ek.fromHueAndChroma(e.hue,10),neutralVariantPalette:Ek.fromHueAndChroma(e.hue,12)})}}
429
+ class eL extends X_{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:O_.VIBRANT,contrastLevel:a,isDark:t,primaryPalette:W_.fromHueAndChroma(e.hue,200),secondaryPalette:W_.fromHueAndChroma(X_.getRotatedHue(e,eL.hues,eL.secondaryRotations),24),tertiaryPalette:W_.fromHueAndChroma(X_.getRotatedHue(e,eL.hues,eL.tertiaryRotations),32),neutralPalette:W_.fromHueAndChroma(e.hue,10),neutralVariantPalette:W_.fromHueAndChroma(e.hue,12)})}}
394
430
  /**
395
431
  * @license
396
432
  * Copyright 2021 Google LLC
@@ -407,5 +443,5 @@ class Gk extends jk{constructor(e,t,a){super({sourceColorArgb:e.toInt(),variant:
407
443
  * See the License for the specific language governing permissions and
408
444
  * limitations under the License.
409
445
  */
410
- function Xk(e){const t=pk(e),a=uk(e),o=vk(e),i=[t.toString(16),a.toString(16),o.toString(16)];for(const[e,t]of i.entries())1===t.length&&(i[e]="0"+t);return"#"+i.join("")}function Yk(e){return parseInt(e,16)}Gk.hues=[0,41,61,101,131,181,251,301,360],Gk.secondaryRotations=[18,15,10,12,15,18,15,12,12],Gk.tertiaryRotations=[35,30,20,25,30,35,30,25,25];let Jk=class extends r{constructor(){super(...arguments),Wk.add(this),Ak.set(this,new CSSStyleSheet),Hk.set(this,!1),Ok.set(this,void 0),Dk.set(this,void 0),Bk.set(this,void 0),qk.set(this,()=>e(this,Wk,"m",Fk).call(this,!0)),this.color="#6750A4",this.scheme="auto",this.contrast="standard",this.strongFocus=!1,this.density=0,this.motion="standard"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return e(this,Dk,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,Ak,"f"))&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,e(this,Ak,"f")]),a(this,Ok,matchMedia("(prefers-color-scheme: light)"),"f"),a(this,Dk,matchMedia("(prefers-color-scheme: dark)"),"f"),a(this,Bk,matchMedia("(forced-colors: active)"),"f"),[e(this,Ok,"f"),e(this,Dk,"f"),e(this,Bk,"f")].forEach(t=>t.addEventListener("change",e(this,qk,"f")))}disconnectedCallback(){super.disconnectedCallback(),[e(this,Ok,"f"),e(this,Dk,"f"),e(this,Bk,"f")].forEach(t=>t?.removeEventListener("change",e(this,qk,"f"))),a(this,Ok,a(this,Dk,a(this,Bk,void 0,"f"),"f"),"f")}updated(t){super.updated(t),e(this,Wk,"m",Fk).call(this,e(this,Hk,"f")&&["color","scheme","contrast"].some(e=>t.has(e)))}firstUpdated(e){super.firstUpdated(e),a(this,Hk,!0,"f")}render(){return s`<slot></slot>`}};Ak=new WeakMap,Hk=new WeakMap,Ok=new WeakMap,Dk=new WeakMap,Bk=new WeakMap,qk=new WeakMap,Wk=new WeakSet,Fk=function(t){const a=function(e){const t=3===(e=e.replace("#","")).length,a=6===e.length,o=8===e.length;if(!t&&!a&&!o)throw new Error("unexpected hex "+e);let i=0,r=0,s=0;return t?(i=Yk(e.slice(0,1).repeat(2)),r=Yk(e.slice(1,2).repeat(2)),s=Yk(e.slice(2,3).repeat(2))):a?(i=Yk(e.slice(0,2)),r=Yk(e.slice(2,4)),s=Yk(e.slice(4,6))):o&&(i=Yk(e.slice(2,4)),r=Yk(e.slice(4,6)),s=Yk(e.slice(6,8))),(255<<24|(255&i)<<16|(255&r)<<8|255&s)>>>0}(this.color),o=Kk.of(a),i=new jk({sourceColorArgb:a,variant:1,contrastLevel:e(this,Wk,"m",Vk).call(this),isDark:this.isDark,primaryPalette:o.a1,secondaryPalette:o.a2,tertiaryPalette:o.a3,neutralPalette:o.n1,neutralVariantPalette:o.n2});let r="";for(const e in Uk)if(!e.endsWith("PaletteKeyColor")){const t=Uk[e];t instanceof zk&&(r+=`--md-sys-color-${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}: ${Xk(t.getArgb(i))};`)}if("expressive"===this.motion&&(r+="--md-sys-motion-spring-fast-spatial: 350ms cubic-bezier(0.42, 1.67, 0.21, 0.90);",r+="--md-sys-motion-spring-default-spatial: 500ms cubic-bezier(0.38, 1.21, 0.22, 1.00);",r+="--md-sys-motion-spring-slow-spatial: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);",r+="--md-sys-motion-spring-fast-effects: 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00);",r+="--md-sys-motion-spring-default-effects: 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00);",r+="--md-sys-motion-spring-slow-effects: 300ms cubic-bezier(0.34, 0.88, 0.34, 1.00);"),r+=`--md-sys-density-scale: ${this.density};`,r+=`--m3e-scrollbar-thumb-color: ${Xk(i.neutralPalette.tone(60))};`,r+=`--m3e-focus-ring-visibility: ${this.strongFocus?"visible":"hidden"};`,e(this,Ak,"f").replaceSync(`:host { ${r} }`),this.parentElement instanceof HTMLBodyElement){const t=getComputedStyle(this);switch(this.scheme){case"light":document.documentElement.style.colorScheme="light";break;case"dark":document.documentElement.style.colorScheme="dark";break;default:switch(document.documentElement.style.colorScheme){case"light":case"dark":document.documentElement.style.colorScheme="light dark"}}e(this,Bk,"f")?.matches?this.parentElement.style.backgroundColor=this.parentElement.style.color=this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor="":(this.parentElement.style.backgroundColor=t.getPropertyValue("--md-sys-color-background"),this.parentElement.style.color=t.getPropertyValue("--md-sys-color-on-background"),this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor=`${t.getPropertyValue("--m3e-scrollbar-thumb-color")} ${t.getPropertyValue("--m3e-scrollbar-track-color")}`)}e(this,Hk,"f")&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&document.body.offsetHeight},Vk=function(){switch(this.contrast){case"high":return 1;case"medium":return.5;default:return 0}},Jk.styles=i`:host { display: contents; font-size: ${v.typescale.standard.body.large.fontSize}; font-weight: ${v.typescale.standard.body.large.fontWeight}; line-height: ${v.typescale.standard.body.large.lineHeight}; letter-spacing: ${v.typescale.standard.body.large.tracking}; }`,t([m()],Jk.prototype,"color",void 0),t([m()],Jk.prototype,"scheme",void 0),t([m()],Jk.prototype,"contrast",void 0),t([m({attribute:"strong-focus",type:Boolean})],Jk.prototype,"strongFocus",void 0),t([m({type:Number})],Jk.prototype,"density",void 0),t([m()],Jk.prototype,"motion",void 0),Jk=t([$("m3e-theme")],Jk);let Qk=class extends(he(U(P(f(r,"link"))))){update(e){super.update(e),e.has("selected")&&(this.ariaSelected=null,this.ariaCurrent=this.selected?"true":null),e.has("node")&&(this.node?this._base?.style.setProperty("--_level",""+(this.node.level-1)):this._base?.style.removeProperty("--_level"))}firstUpdated(e){super.firstUpdated(e),this._stateLayer?.attach(this)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><div class="base"><slot></slot></div>`}};var eC,tC,aC,oC,iC,rC,sC,nC,lC,cC,dC,hC,mC;Qk.styles=i`:host { display: inline-block; position: relative; user-select: none; outline: none; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); padding-block: var(--m3e-toc-item-padding-block, 0.5rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { padding-inline-start: calc( var(--m3e-toc-item-padding, 1rem) + calc(var(--m3e-toc-item-inset, 0.75rem) * var(--_level, 0)) ); padding-inline-end: var(--m3e-toc-item-padding, 1rem); transition: ${o(`color var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1}) ${v.motion.easing.standard}`)}; } :host(:not([selected])) { font-size: var(--m3e-toc-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-toc-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-toc-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-tracking, ${v.typescale.standard.body.large.tracking}); color: var(--m3e-toc-item-color, ${v.color.onSurfaceVariant}); } :host([selected]) { font-size: var(--m3e-toc-item-selected-font-size, ${v.typescale.emphasized.body.large.fontSize}); font-weight: var(--m3e-toc-item-selected-font-weight, ${v.typescale.emphasized.body.large.fontWeight}); line-height: var(--m3e-toc-item-selected-line-height, ${v.typescale.emphasized.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-selected-tracking, ${v.typescale.emphasized.body.large.tracking}); color: var(--m3e-toc-item-selected-color, ${v.color.onSecondaryContainer}); } .base { justify-content: unset; } .state-layer { --m3e-state-layer-focus-opacity: 0; } @media (prefers-reduced-motion) { .base { transition: none; } }`,t([h(".base")],Qk.prototype,"_base",void 0),t([h(".state-layer")],Qk.prototype,"_stateLayer",void 0),t([u()],Qk.prototype,"node",void 0),Qk=t([$("m3e-toc-item")],Qk);class pC{static generate(t,a=6){let o=6;const i=new Array;t.querySelectorAll("h1:not([m3e-toc-ignore]),h2:not([m3e-toc-ignore]),h3:not([m3e-toc-ignore]),h4:not([m3e-toc-ignore]),h5:not([m3e-toc-ignore]),h6:not([m3e-toc-ignore]),m3e-heading[level]:not([m3e-toc-ignore])").forEach(t=>{const a=e(eC,eC,"m",tC).call(eC,t);o=Math.min(a,o),i.push({id:t.id||we(),element:t,level:a,label:ce(t,!0),nodes:new Array})});for(let e=o+a-1;e>o;e--)for(let t=0;t<i.length;t++){const a=i[t];if(a.level===e)for(let o=t;o>=0;o--){const t=i[o];if(t.level<e){t.nodes.push(a);break}}}return i.forEach(e=>e.level-=o-1),i.filter(e=>1===e.level)}}eC=pC,tC=function(e){return e.tagName.startsWith("H")?parseInt(e.tagName.substring(1)):parseInt(e.getAttribute("level")??"0")};let uC=class extends(b(P(f(r,"navigation")))){constructor(){super(...arguments),aC.add(this),this._toc=[],oC.set(this,!1),iC.set(this,(new Pe).withHomeAndEnd().withVerticalOrientation().disableRovingTabIndex().onSelectedItemsChange(()=>{if(this._activeIndicator){const t=e(this,iC,"f").selectedItems[0];t?(S(t,this,{block:"nearest",behavior:"smooth"}),this._activeIndicator.style.top=`${t.offsetTop}px`,this._activeIndicator.style.height=`${t.clientHeight}px`,this._activeIndicator.style.visibility=0==t.clientHeight?"hidden":"",O(this,"-no-animate")&&setTimeout(()=>w(this,"-no-animate",!1),40)):(w(this,"-no-animate",!0),this._activeIndicator.style.top="0px",this._activeIndicator.style.height="0px",this._activeIndicator.style.visibility="hidden")}})),rC.set(this,new ke(this,{target:null,callback:t=>{if(!this.control||e(this,oC,"f"))return;const a=this.control.scrollTop;let o=null,i=Number.POSITIVE_INFINITY;if(t.filter(e=>e.isIntersecting).map(e=>e.target).forEach(e=>{const t=e.offsetTop,r=Math.abs(t-a);r<i&&(i=r,o=e)}),o){const t=e(this,iC,"f").items.find(e=>e.node?.element===o);t&&e(this,iC,"f").select(t)}}})),sC.set(this,new me(this,{target:null,callback:()=>a(this,oC,!1,"f"),debounce:!0})),nC.set(this,new x(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>this._updateToc()})),this.maxDepth=2}attach(t){super.attach(t),e(this,nC,"f").observe(t),e(this,sC,"f").observe(t),e(this,aC,"m",mC).call(this)}detach(){this.control&&(e(this,nC,"f").unobserve(this.control),e(this,sC,"f").unobserve(this.control)),super.detach(),e(this,aC,"m",mC).call(this)}willUpdate(t){super.willUpdate(t),t.has("maxDepth")&&e(this,aC,"m",mC).call(this)}updated(t){if(super.updated(t),t.has("_toc")){const{added:t,removed:a}=e(this,iC,"f").setItems([...this.shadowRoot?.querySelectorAll("m3e-toc-item")??[]]);e(this,iC,"f").activeItem||(w(this,"-no-animate",!0),e(this,iC,"f").updateActiveItem(t.find(e=>!e.disabled)));for(const a of t)a.node&&e(this,rC,"f").observe(a.node.element);for(const t of a)t.node&&e(this,rC,"f").unobserve(t.node.element)}}render(){return s`<div class="header"><div class="overline"><slot name="overline" @slotchange="${e(this,aC,"m",cC)}"></slot></div><div class="title"><slot name="title" @slotchange="${e(this,aC,"m",dC)}"></slot></div></div><slot></slot><ul class="list">${this._toc.map(t=>e(this,aC,"m",lC).call(this,t))}</ul><div class="active-indicator" aria-hidden="true"></div>`}_updateToc(){e(this,aC,"m",mC).call(this)}};var vC,bC,fC,gC,yC,$C;oC=new WeakMap,iC=new WeakMap,rC=new WeakMap,sC=new WeakMap,nC=new WeakMap,aC=new WeakSet,lC=function t(a){return s`<li><m3e-toc-item tabindex="-1" .node="${a}" @click="${e(this,aC,"m",hC)}">${a.label}</m3e-toc-item>${0==a.nodes.length?n:s`<ul>${a.nodes.map(a=>e(this,aC,"m",t).call(this,a))}</ul>`}</li>`},cC=function(e){w(this,"-with-overline",g(e.target))},dC=function(e){w(this,"-with-title",g(e.target))},hC=function(t){t.target instanceof Qk&&!t.target.disabled&&t.target.node?.element&&(a(this,oC,!0,"f"),t.target.node.element.scrollIntoView({block:"start",behavior:"smooth"}),e(this,iC,"f").updateActiveItem(t.target),e(this,iC,"f").select(t.target))},mC=function(){this._toc=this.control?pC.generate(this.control,Math.max(1,Math.min(this.maxDepth,6))):[]},uC.styles=i`:host { display: inline-block; position: relative; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; width: var(--m3e-toc-width, 9.75rem); } ul { list-style: none; padding-inline-start: unset; margin-block-start: unset; margin-block-end: unset; } ul, li { display: flex; flex-direction: column; align-items: stretch; } m3e-toc-item { flex: none; } .active-indicator { position: absolute; pointer-events: none; box-sizing: border-box; left: 0; right: 0; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); border: 1px solid var(--m3e-toc-active-indicator-color, ${v.color.outline}); transition: ${o(`visibility var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n height var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n top var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard}`)}; } .header { display: flex; flex-direction: column; align-items: stretch; padding-inline-start: var(--m3e-toc-item-padding, 1rem); padding-block-end: var(--m3e-toc-header-space, 0.5rem); row-gap: var(--m3e-toc-header-space, 0.5rem); } .overline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host(:not(:state(-with-overline))) .overline, :host(:not(:state(-with-title))) .title, :host(:not(:state(-with-overline)):not(:state(-with-title))) .header { display: none; } ::slotted([slot="overline"]) { font-size: var(--m3e-toc-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-toc-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-toc-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-toc-overline-tracking, ${v.typescale.standard.label.small.tracking}); color: var(--m3e-toc-overline-color, ${v.color.onSurfaceVariant}); } ::slotted([slot="title"]) { font-size: var(--m3e-toc-title-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-toc-title-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-toc-title-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-toc-title-tracking, ${v.typescale.standard.headline.small.tracking}); color: var(--m3e-toc-title-color, ${v.color.onSurface}); } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } }`,t([u()],uC.prototype,"_toc",void 0),t([h(".active-indicator")],uC.prototype,"_activeIndicator",void 0),t([m({attribute:"max-depth",type:Number})],uC.prototype,"maxDepth",void 0),t([y(40)],uC.prototype,"_updateToc",null),uC=t([$("m3e-toc")],uC);let xC=class extends(de(f(r,"toolbar"))){constructor(){super(...arguments),vC.add(this),bC.set(this,void 0),fC.set(this,(new We).withHomeAndEnd().withDirectionality(De.current)),this.variant="standard",this.shape="square",this.elevated=!1}connectedCallback(){super.connectedCallback(),a(this,bC,De.observe(()=>e(this,fC,"f").directionality=De.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,bC,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(e(this,fC,"f").vertical=this.vertical)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><m3e-elevation class="elevation" level="${this.elevated?3:0}"></m3e-elevation><div class="base"><slot @click="${e(this,vC,"m",$C)}" @keydown="${e(this,vC,"m",yC)}" @slotchange="${e(this,vC,"m",gC)}"></slot></div>`}};bC=new WeakMap,fC=new WeakMap,vC=new WeakSet,gC=function(){const{added:t}=e(this,fC,"f").setItems(Le.findInteractiveElements(this));if(!e(this,fC,"f").activeItem){const a=t.find(e=>!e.hasAttribute("disabled"));a&&e(this,fC,"f").updateActiveItem(a)}},yC=function(t){e(this,fC,"f").onKeyDown(t)},$C=function(t){const a=t.composedPath().find(t=>t instanceof HTMLElement&&e(this,fC,"f").items.includes(t));a&&e(this,fC,"f").updateActiveItem(a)},xC.styles=i`:host { display: inline-block; position: relative; } .base { display: flex; align-items: center; box-sizing: border-box; border-radius: inherit; } :host(:not([vertical])) { height: fit-content; } :host(:not([vertical])) .base { height: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([vertical]) { width: fit-content; } :host([vertical]) .base { width: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); } :host([vertical]) .base { flex-direction: column; justify-content: center; row-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([shape="rounded"]) { border-radius: var(--m3e-toolbar-rounded-shape, ${v.shape.corner.full}); } :host([shape="rounded"]) .base { padding: var(--m3e-toolbar-rounded-padding, 0.5rem); } :host(:not([vertical])[shape="square"]) .base { padding-inline: var(--m3e-toolbar-square-padding, 1rem); } :host([vertical][shape="square"]) .base { padding-block: var(--m3e-toolbar-square-padding, 1rem); } :host([variant="standard"]) .state-layer { background-color: var(--m3e-toolbar-standard-container-color, ${v.color.surfaceContainer}); } :host([variant="standard"]) .base { color: var(--m3e-toolbar-standard-color, ${v.color.onSurface}); } :host([variant="vibrant"]) .state-layer { background-color: var(--m3e-toolbar-vibrant-container-color, ${v.color.primaryContainer}); } :host([variant="vibrant"]) .base { color: var(--m3e-toolbar-vibrant-color, ${v.color.onPrimaryContainer}); } @media (forced-colors: active) { :host([variant]) .state-layer { background-color: Canvas; } :host([variant]) .base { color: CanvasText; outline: 1px solid CanvasText; } }`,t([m({reflect:!0})],xC.prototype,"variant",void 0),t([m({reflect:!0})],xC.prototype,"shape",void 0),t([m({type:Boolean,reflect:!0})],xC.prototype,"elevated",void 0),xC=t([$("m3e-toolbar")],xC);let wC=class extends z{constructor(){super(...arguments),this.disableRestoreFocus=!1}_onClick(){this.closest("m3e-rich-tooltip")?.hide(!this.disableRestoreFocus)}};var kC,CC,SC,_C,LC,zC,EC,MC,TC,PC,IC;t([m({attribute:"disable-restore-focus",type:Boolean})],wC.prototype,"disableRestoreFocus",void 0),wC=t([$("m3e-rich-tooltip-action")],wC);class WC extends(b(M(P(r)))){constructor(){super(...arguments),kC.add(this),SC.set(this,null),_C.set(this,void 0),LC.set(this,!1),zC.set(this,()=>e(this,kC,"m",PC).call(this)),EC.set(this,new ie(this,{target:null,endDelay:200,callback:(t,o)=>{if(!this._isInteractive)if(t){if(o===this._base)return void a(this,LC,!0,"f");this.show()}else e(this,LC,"f")&&o!==this._base||(a(this,LC,!1,"f"),this.hide())}})),MC.set(this,new Ce(this,{target:null,callback:e=>{this._isInteractive||(e?this.show():this.hide())}})),this.disabled=!1,this.touchGestures="auto"}get showDelay(){return e(this,EC,"f").startDelay}set showDelay(t){e(this,EC,"f").startDelay=t}get hideDelay(){return e(this,EC,"f").endDelay}set hideDelay(t){e(this,EC,"f").endDelay=t}get isOpen(){return CC.__openTooltips.includes(this)}get _isInteractive(){return!1}attach(t){super.attach(t),Ye.iOS||Ye.Android?(e(this,MC,"f").observe(t),e(this,kC,"m",IC).call(this)):e(this,EC,"f").observe(t),t.addEventListener("click",e(this,zC,"f"))}detach(){this.control&&(e(this,EC,"f").unobserve(this.control),e(this,MC,"f").unobserve(this.control),this.control.removeEventListener("click",e(this,zC,"f")),this.hide()),super.detach()}update(e){super.update(e),e.has("disabled")&&this.disabled&&this.hide()}reconnectedCallback(){super.reconnectedCallback(),e(this,kC,"m",TC).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,kC,"m",TC).call(this)}async show(){!this.control||this.disabled||se(this.control)&&this.control.disabled||(CC.__openTooltips.filter(e=>e!==this).forEach(e=>e.hide()),this._base.showPopover(),a(this,_C,await Be(this._base,this.control,{position:this._anchorPosition,inline:!0,flip:!0,shift:!0,offset:4},(e,t)=>this._updatePosition(this._base,e,t)),"f"),CC.__openTooltips.includes(this)||CC.__openTooltips.push(this))}hide(){this._base.hidePopover(),e(this,_C,"f")?.call(this),a(this,_C,void 0,"f"),e(this,EC,"f").clearDelays(),CC.__openTooltips.includes(this)&&(CC.__openTooltips=CC.__openTooltips.filter(e=>e!==this))}}var AC,HC,OC,DC,BC,qC,FC,VC,RC,NC,UC,jC,KC,ZC,GC,XC;CC=WC,SC=new WeakMap,_C=new WeakMap,LC=new WeakMap,zC=new WeakMap,EC=new WeakMap,MC=new WeakMap,kC=new WeakSet,TC=function(){this._base&&e(this,EC,"f").observe(this._base)},PC=function(){this._isInteractive?CC.__openTooltips.includes(this)?this.hide():this.show():this.hide()},IC=function(){if("off"!==this.touchGestures&&e(this,SC,"f")){const t=e(this,SC,"f").style;("on"===this.touchGestures||"INPUT"!==e(this,SC,"f").nodeName&&"TEXTAREA"!==e(this,SC,"f").nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==this.touchGestures&&e(this,SC,"f").draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent"}},WC.__openTooltips=new Array,t([h(".base")],WC.prototype,"_base",void 0),t([m({type:Boolean,reflect:!0})],WC.prototype,"disabled",void 0),t([m({attribute:"show-delay",type:Number})],WC.prototype,"showDelay",null),t([m({attribute:"hide-delay",type:Number})],WC.prototype,"hideDelay",null),t([m({attribute:"touch-gestures"})],WC.prototype,"touchGestures",void 0);let YC=XC=class extends WC{constructor(){super(...arguments),AC.add(this),HC.set(this,XC.__nextId++),OC.set(this,""),DC.set(this,""),BC.set(this,""),qC.set(this,!1),this._hasSubhead=!1,this._interactive=!1,FC.set(this,t=>e(this,AC,"m",NC).call(this,t)),this.position="below-after"}get _isInteractive(){return this._interactive}get _anchorPosition(){switch(this.position){case"above":return"top";case"above-after":return"rtl"===De.current?"top-start":"top-end";case"above-before":return"rtl"===De.current?"top-end":"top-start";case"after":return"rtl"===De.current?"left":"right";case"before":return"rtl"===De.current?"right":"left";case"below":return"bottom";case"below-after":return"rtl"===De.current?"bottom-start":"bottom-end";case"below-before":return"rtl"===De.current?"bottom-end":"bottom-start"}}render(){const t=this._interactive&&this._hasSubhead?`m3e-rich-tooltip-${e(this,HC,"f")}-subhead`:void 0;return s`<div class="base" popover="manual" role="${Fe(this._interactive?"dialog":void 0)}" aria-labelledby="${Fe(t)}" @keydown="${e(this,AC,"m",UC)}" @beforetoggle="${e(this,AC,"m",VC)}" @toggle="${e(this,AC,"m",RC)}"><m3e-elevation level="3"></m3e-elevation><div class="subhead" id="${Fe(t)}"><slot name="subhead" @slotchange="${e(this,AC,"m",jC)}"></slot></div><div class="content"><slot @slotchange="${e(this,AC,"m",KC)}"></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,AC,"m",ZC)}"></slot></div></div>`}show(){return this._interactive&&document.addEventListener("click",e(this,FC,"f")),super.show()}hide(t=!0){this._interactive&&document.removeEventListener("click",e(this,FC,"f")),super.hide(),t&&this._interactive&&this.control&&Le.isFocusable(this.control)&&this.control.focus()}attach(t){super.attach(t),e(this,AC,"m",GC).call(this),this._interactive&&(t.ariaHasPopup="dialog")}update(t){super.update(t),t.has("_interactive")&&(this.ariaHidden=this._interactive?null:"true",e(this,AC,"m",GC).call(this),this.control&&this._interactive&&(this.control.ariaHasPopup="dialog"))}_updatePosition(e,t,a){this.position.includes("before")&&"before"!==this.position&&("rtl"===De.current?t+=this.control?.clientWidth??0:t-=this.control?.clientWidth??0),this.position.includes("after")&&"after"!==this.position&&("rtl"===De.current?t-=this.control?.clientWidth??0:t+=this.control?.clientWidth??0),"rtl"===De.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};var JC,QC,eS,tS;HC=new WeakMap,OC=new WeakMap,DC=new WeakMap,BC=new WeakMap,qC=new WeakMap,FC=new WeakMap,AC=new WeakSet,VC=function(e){const t=new ToggleEvent("beforetoggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0,cancelable:e.cancelable});this.dispatchEvent(t)||(e.preventDefault(),this.hide())},RC=function(e){const t=new ToggleEvent("toggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0});this.dispatchEvent(t)},NC=function(e){e.composedPath().some(e=>e instanceof XC||e===this.control)||this.hide()},UC=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.hide())},jC=function(t){this._hasSubhead=g(t.target),this.shadowRoot?.querySelector(".base")?.classList.toggle("has-subhead",this._hasSubhead),a(this,OC,this._hasSubhead?ce(t.target,!0):"","f"),e(this,AC,"m",GC).call(this)},KC=function(t){this._interactive=Le.findInteractiveElements(this).length>0,a(this,DC,ce(t.target,!0),"f"),e(this,AC,"m",GC).call(this)},ZC=function(t){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(t.target)),this._interactive=Le.findInteractiveElements(this).length>0,e(this,AC,"m",GC).call(this)},GC=function(){const t=e(this,OC,"f")?`${e(this,OC,"f")}/n${e(this,DC,"f")}`:e(this,DC,"f");this.isConnected&&this.control&&(e(this,BC,"f")&&e(this,qC,"f")&&(Ae.removeDescription(this.control,e(this,BC,"f")),a(this,qC,!1,"f")),a(this,BC,t,"f"),e(this,BC,"f")&&!this._interactive&&(Ae.describe(this.control,e(this,BC,"f")),a(this,qC,!0,"f")))},YC.styles=i`:host { display: contents; } .base { flex-direction: column; position: absolute; padding: unset; margin: unset; border: unset; padding-block-start: var(--m3e-rich-tooltip-padding-top, 0.75rem); padding-inline: var(--m3e-rich-tooltip-padding-inline, 1rem); max-width: var(--m3e-rich-tooltip-max-width, 20rem); box-sizing: border-box; overflow: visible; border-radius: var(--m3e-rich-tooltip-shape, ${v.shape.corner.medium}); background-color: var(--m3e-rich-tooltip-container-color, ${v.color.surfaceContainer}); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base:not(.has-actions) { padding-block-end: var(--m3e-rich-tooltip-padding-bottom, 0.75rem); } .base::backdrop { background-color: transparent; } .base:popover-open { display: flex; opacity: 1; transform: scale(1); } .base:not(.has-subhead) .subhead, .base:not(.has-actions) .actions { display: none; } .subhead { color: var(--m3e-rich-tooltip-subhead-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-rich-tooltip-subhead-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var( --m3e-rich-tooltip-subhead-font-weight, ${v.typescale.standard.title.small.fontWeight} ); line-height: var( --m3e-rich-tooltip-subhead-line-height, ${v.typescale.standard.title.small.lineHeight} ); letter-spacing: var(--m3e-rich-tooltip-subhead-tracking, ${v.typescale.standard.title.small.tracking}); padding-block-end: var(--m3e-rich-tooltip-subhead-bottom-space, 0.25rem); } .content { color: var(--m3e-rich-tooltip-supporting-text-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-rich-tooltip-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize} ); font-weight: var( --m3e-rich-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-rich-tooltip-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-rich-tooltip-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } .actions { margin-inline: calc( 0px - calc( var(--m3e-rich-tooltip-padding-inline, 1rem) - var(--m3e-rich-tooltip-actions-padding-inline, 0.25rem) ) ); padding-block-start: var(--m3e-rich-tooltip-actions-top-space, 0.75rem); padding-block-end: var(--m3e-rich-tooltip-actions-bottom-space, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,YC.__nextId=0,t([u()],YC.prototype,"_hasSubhead",void 0),t([u()],YC.prototype,"_interactive",void 0),t([m()],YC.prototype,"position",void 0),YC=XC=t([$("m3e-rich-tooltip")],YC);let aS=class extends WC{constructor(){super(...arguments),JC.add(this),QC.set(this,void 0),this.position="below"}get _anchorPosition(){return"above"===this.position?"top":"below"===this.position?"bottom":"before"===this.position?"ltr"===De.current?"left":"right":"ltr"===De.current?"right":"left"}attach(t){super.attach(t),e(this,QC,"f")&&Ae.describe(t,e(this,QC,"f"))}detach(){this.control&&e(this,QC,"f")&&Ae.removeDescription(this.control,e(this,QC,"f")),super.detach()}connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<div class="base" popover="manual" @toggle="${e(this,JC,"m",tS)}"><slot @slotchange="${e(this,JC,"m",eS)}"></slot></div>`}_updatePosition(e,t,a){"rtl"===De.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};QC=new WeakMap,JC=new WeakSet,eS=function(t){const o=ce(t.target,!0);this.isConnected&&this.control?(e(this,QC,"f")&&Ae.removeDescription(this.control,e(this,QC,"f")),a(this,QC,o,"f"),e(this,QC,"f")&&Ae.describe(this.control,e(this,QC,"f"))):a(this,QC,o,"f")},tS=function(e){if("open"===e.newState){const e=this._base.getBoundingClientRect().height>parseFloat(getComputedStyle(this._base).minHeight);w(this,"-multiline",e)}},aS.styles=i`:host { display: contents; } .base { position: absolute; pointer-events: none; margin: unset; border: unset; word-break: normal; overflow-wrap: anywhere; padding: var(--m3e-tooltip-padding, 0.25rem 0.5rem); min-width: var(--m3e-tooltip-min-width, 2.5rem); max-width: var(--m3e-tooltip-max-width, 12.5rem); min-height: var(--m3e-tooltip-min-height, 1.5rem); max-height: var(--m3e-tooltip-max-height, 40vh); box-sizing: border-box; overflow: hidden; text-align: center; border-radius: var(--m3e-tooltip-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-tooltip-container-color, ${v.color.inverseSurface}); color: var(--m3e-tooltip-supporting-text-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-tooltip-supporting-text-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var( --m3e-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.small.fontWeight} ); line-height: var( --m3e-tooltip-supporting-text-line-height, ${v.typescale.standard.body.small.lineHeight} ); letter-spacing: var( --m3e-tooltip-supporting-text-tracking, ${v.typescale.standard.body.small.tracking} ); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-multiline)) .base { text-align: start; } .base::backdrop { background-color: transparent; } .base:popover-open { display: block; opacity: 1; transform: scale(1); } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,t([m()],aS.prototype,"position",void 0),aS=t([$("m3e-tooltip")],aS);export{fc as ActionElementBase,Ss as AnimationLoopController,Mn as AttachInternals,Hn as Checked,Dn as CheckedIndeterminate,Al as ConstraintValidation,ml as DesignToken,jn as Dirty,ul as Disabled,yl as DisabledInteractive,Hl as EventAttribute,Gs as FocusController,Dl as Focusable,Ml as FormAssociated,Fl as FormSubmitter,Xs as HoverController,Ul as HtmlFor,Ys as IntersectionController,jl as KeyboardClick,kl as Labelled,Xl as LinkButton,Js as LongPressController,Th as M3eAccordionElement,gu as M3eActionListElement,xt as M3eAppBarElement,pi as M3eAssistChipElement,ga as M3eAutocompleteElement,ya as M3eAvatarElement,_a as M3eBadgeElement,La as M3eBottomSheetActionElement,bo as M3eBottomSheetElement,fo as M3eBottomSheetTriggerElement,To as M3eButtonElement,Ho as M3eButtonGroupElement,Ag as M3eButtonSegmentElement,Yo as M3eCardElement,ii as M3eCheckboxElement,mi as M3eChipElement,ui as M3eChipSetElement,Qf as M3eCircularProgressIndicatorElement,gc as M3eCollapsibleElement,Ad as M3eDialogActionElement,Zd as M3eDialogElement,Gd as M3eDialogTriggerElement,Xd as M3eDividerElement,yh as M3eDrawerContainerElement,_h as M3eDrawerToggleElement,Wc as M3eElevationElement,vu as M3eExpandableListItemElement,sm as M3eExpansionHeaderElement,ym as M3eExpansionPanelElement,Em as M3eFabElement,Zm as M3eFabMenuElement,Im as M3eFabMenuItemElement,Gm as M3eFabMenuTriggerElement,gi as M3eFilterChipElement,_i as M3eFilterChipSetElement,Uc as M3eFocusRingElement,Ep as M3eFormFieldElement,Mp as M3eHeadingElement,Up as M3eIconButtonElement,Tp as M3eIconElement,Ti as M3eInputChipElement,ar as M3eInputChipSetElement,pg as M3eLinearProgressIndicatorElement,xu as M3eListActionElement,ru as M3eListElement,wu as M3eListItemButtonElement,Qp as M3eListItemElement,Eu as M3eListOptionElement,Ku as M3eLoadingIndicatorElement,Sv as M3eMenuElement,Dv as M3eMenuItemCheckboxElement,lv as M3eMenuItemElement,Bv as M3eMenuItemGroupElement,Jv as M3eMenuItemRadioElement,Gu as M3eMenuTriggerElement,ib as M3eNavBarElement,lb as M3eNavItemElement,Ob as M3eNavMenuElement,xb as M3eNavMenuItemElement,Rb as M3eNavMenuItemGroupElement,Zb as M3eNavRailElement,Jb as M3eNavRailToggleElement,df as M3eOptGroupElement,of as M3eOptionElement,vf as M3eOptionPanelElement,Sf as M3ePaginatorElement,jc as M3ePseudoCheckboxElement,Kc as M3ePseudoRadioElement,xg as M3eRadioElement,Eg as M3eRadioGroupElement,wC as M3eRichTooltipActionElement,YC as M3eRichTooltipElement,rd as M3eRippleElement,nd as M3eScrollContainerElement,Vg as M3eSegmentedButtonElement,yy as M3eSelectElement,Au as M3eSelectionListElement,My as M3eShapeElement,md as M3eSlideElement,Hy as M3eSlideGroupElement,n$ as M3eSliderElement,By as M3eSliderThumbElement,g$ as M3eSnackbar,f$ as M3eSnackbarElement,T$ as M3eSplitButtonElement,Cd as M3eStateLayerElement,D$ as M3eStepElement,P$ as M3eStepPanelElement,Y$ as M3eStepperElement,J$ as M3eStepperNextElement,Q$ as M3eStepperPreviousElement,ex as M3eStepperResetElement,or as M3eSuggestionChipElement,kw as M3eSwitchElement,zw as M3eTabElement,Ew as M3eTabPanelElement,Bw as M3eTabsElement,Id as M3eTextHighlightElement,Wd as M3eTextOverflowElement,ak as M3eTextareaAutosizeElement,Jk as M3eThemeElement,uC as M3eTocElement,Qk as M3eTocItemElement,xC as M3eToolbarElement,aS as M3eTooltipElement,Qs as MutationController,en as PressedController,_f as ProgressElementIndicatorBase,Jl as ReadOnly,ec as ReconnectedCallback,ac as Required,ic as RequiredConstraintValidation,tn as ResizeController,rc as Role,yn as ScrollController,$n as ScrollLockController,qn as Selected,X$ as StepperButtonElementBase,sc as SuppressInitialAnimation,pC as TocGenerator,WC as TooltipElementBase,Gn as Touched,Zs as VelocityTracker,lc as Vertical,Pn as addCustomState,Rn as checkOrSelect,Ls as computeCssSize,zs as computeLineCount,an as customElement,on as debounce,Sl as defaultValue,In as deleteCustomState,Jm as findFormFieldControl,Es as focusWhenReady,Ms as forcedColorsActive,Cl as formValue,Bs as generateClipPaths,qs as getTextContent,Fs as guid,Vs as hasAssignedNodes,Tn as hasCustomState,Sn as hasKeys,Rs as interceptProperty,_n as internals,Ln as isAttachInternalsMixin,On as isCheckedIndeterminateMixin,An as isCheckedMixin,Vn as isCheckedOrSelected,Fn as isCheckedOrSelectedMixin,Pl as isConstraintValidationMixin,Nn as isDirtyMixin,vl as isDisabledInteractiveMixin,pl as isDisabledMixin,_l as isFormAssociatedMixin,Ym as isFormFieldControl,Bl as isFormSubmitterMixin,Vl as isHtmlForMixin,xl as isLabelledMixin,Zl as isLinkButtonMixin,Yl as isReadOnlyMixin,oc as isRequiredConstraintValidationMixin,tc as isRequiredMixin,Bn as isSelectedMixin,Kn as isTouchedMixin,nc as isVerticalMixin,Ns as prefersReducedMotion,Kl as renderPseudoLink,Us as resolveElementById,js as resolveFragmentUrl,Cn as safeStyleMap,Ks as scrollIntoViewIfNeeded,Wn as setCustomState,xn as spaceSeparatedStringConverter,$l as updateLabels,Tl as validate};
446
+ function tL(e){const t=g_(e),a=y_(e),o=$_(e),i=[t.toString(16),a.toString(16),o.toString(16)];for(const[e,t]of i.entries())1===t.length&&(i[e]="0"+t);return"#"+i.join("")}function aL(e){return parseInt(e,16)}eL.hues=[0,41,61,101,131,181,251,301,360],eL.secondaryRotations=[18,15,10,12,15,18,15,12,12],eL.tertiaryRotations=[35,30,20,25,30,35,30,25,25];let oL=class extends r{constructor(){super(...arguments),F_.add(this),B_.set(this,new CSSStyleSheet),V_.set(this,!1),q_.set(this,void 0),R_.set(this,void 0),U_.set(this,void 0),N_.set(this,()=>e(this,F_,"m",j_).call(this,!0)),this.color="#6750A4",this.scheme="auto",this.contrast="standard",this.strongFocus=!1,this.density=0,this.motion="standard"}get isDark(){switch(this.scheme){case"light":return!1;case"dark":return!0;default:if(this.parentElement instanceof HTMLBodyElement)switch(document.documentElement.style.colorScheme){case"light":return!1;case"dark":return!0}return e(this,R_,"f")?.matches??!1}}connectedCallback(){super.connectedCallback(),this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(e(this,B_,"f"))&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,e(this,B_,"f")]),a(this,q_,matchMedia("(prefers-color-scheme: light)"),"f"),a(this,R_,matchMedia("(prefers-color-scheme: dark)"),"f"),a(this,U_,matchMedia("(forced-colors: active)"),"f"),[e(this,q_,"f"),e(this,R_,"f"),e(this,U_,"f")].forEach(t=>t.addEventListener("change",e(this,N_,"f")))}disconnectedCallback(){super.disconnectedCallback(),[e(this,q_,"f"),e(this,R_,"f"),e(this,U_,"f")].forEach(t=>t?.removeEventListener("change",e(this,N_,"f"))),a(this,q_,a(this,R_,a(this,U_,void 0,"f"),"f"),"f")}updated(t){super.updated(t),e(this,F_,"m",j_).call(this,e(this,V_,"f")&&["color","scheme","contrast"].some(e=>t.has(e)))}firstUpdated(e){super.firstUpdated(e),a(this,V_,!0,"f")}render(){return s`<slot></slot>`}};B_=new WeakMap,V_=new WeakMap,q_=new WeakMap,R_=new WeakMap,U_=new WeakMap,N_=new WeakMap,F_=new WeakSet,j_=function(t){const a=function(e){const t=3===(e=e.replace("#","")).length,a=6===e.length,o=8===e.length;if(!t&&!a&&!o)throw new Error("unexpected hex "+e);let i=0,r=0,s=0;return t?(i=aL(e.slice(0,1).repeat(2)),r=aL(e.slice(1,2).repeat(2)),s=aL(e.slice(2,3).repeat(2))):a?(i=aL(e.slice(0,2)),r=aL(e.slice(2,4)),s=aL(e.slice(4,6))):o&&(i=aL(e.slice(2,4)),r=aL(e.slice(4,6)),s=aL(e.slice(6,8))),(255<<24|(255&i)<<16|(255&r)<<8|255&s)>>>0}(this.color),o=J_.of(a),i=new X_({sourceColorArgb:a,variant:1,contrastLevel:e(this,F_,"m",Y_).call(this),isDark:this.isDark,primaryPalette:o.a1,secondaryPalette:o.a2,tertiaryPalette:o.a3,neutralPalette:o.n1,neutralVariantPalette:o.n2});let r="";for(const e in G_)if(!e.endsWith("PaletteKeyColor")){const t=G_[e];t instanceof I_&&(r+=`--md-sys-color-${e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}: ${tL(t.getArgb(i))};`)}if("expressive"===this.motion&&(r+="--md-sys-motion-spring-fast-spatial: 350ms cubic-bezier(0.42, 1.67, 0.21, 0.90);",r+="--md-sys-motion-spring-default-spatial: 500ms cubic-bezier(0.38, 1.21, 0.22, 1.00);",r+="--md-sys-motion-spring-slow-spatial: 650ms cubic-bezier(0.39, 1.29, 0.35, 0.98);",r+="--md-sys-motion-spring-fast-effects: 150ms cubic-bezier(0.31, 0.94, 0.34, 1.00);",r+="--md-sys-motion-spring-default-effects: 200ms cubic-bezier(0.34, 0.80, 0.34, 1.00);",r+="--md-sys-motion-spring-slow-effects: 300ms cubic-bezier(0.34, 0.88, 0.34, 1.00);"),r+=`--md-sys-density-scale: ${this.density};`,r+=`--m3e-scrollbar-thumb-color: ${tL(i.neutralPalette.tone(60))};`,r+=`--m3e-focus-ring-visibility: ${this.strongFocus?"visible":"hidden"};`,e(this,B_,"f").replaceSync(`:host { ${r} }`),this.parentElement instanceof HTMLBodyElement){const t=getComputedStyle(this);switch(this.scheme){case"light":document.documentElement.style.colorScheme="light";break;case"dark":document.documentElement.style.colorScheme="dark";break;default:switch(document.documentElement.style.colorScheme){case"light":case"dark":document.documentElement.style.colorScheme="light dark"}}e(this,U_,"f")?.matches?this.parentElement.style.backgroundColor=this.parentElement.style.color=this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor="":(this.parentElement.style.backgroundColor=t.getPropertyValue("--md-sys-color-background"),this.parentElement.style.color=t.getPropertyValue("--md-sys-color-on-background"),this.parentElement.ownerDocument.documentElement.style.scrollbarColor=this.parentElement.style.scrollbarColor=`${t.getPropertyValue("--m3e-scrollbar-thumb-color")} ${t.getPropertyValue("--m3e-scrollbar-track-color")}`)}e(this,V_,"f")&&this.dispatchEvent(new Event("change",{bubbles:!0})),t&&document.body.offsetHeight},Y_=function(){switch(this.contrast){case"high":return 1;case"medium":return.5;default:return 0}},oL.styles=i`:host { display: contents; font-size: ${v.typescale.standard.body.large.fontSize}; font-weight: ${v.typescale.standard.body.large.fontWeight}; line-height: ${v.typescale.standard.body.large.lineHeight}; letter-spacing: ${v.typescale.standard.body.large.tracking}; }`,t([m()],oL.prototype,"color",void 0),t([m()],oL.prototype,"scheme",void 0),t([m()],oL.prototype,"contrast",void 0),t([m({attribute:"strong-focus",type:Boolean})],oL.prototype,"strongFocus",void 0),t([m({type:Number})],oL.prototype,"density",void 0),t([m()],oL.prototype,"motion",void 0),oL=t([$("m3e-theme")],oL);let iL=class extends(ue(Y(P(f(r,"link"))))){update(e){super.update(e),e.has("selected")&&(this.ariaSelected=null,this.ariaCurrent=this.selected?"true":null),e.has("node")&&(this.node?this._base?.style.setProperty("--_level",""+(this.node.level-1)):this._base?.style.removeProperty("--_level"))}firstUpdated(e){super.firstUpdated(e),this._stateLayer?.attach(this)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><div class="base"><slot></slot></div>`}};var rL,sL,nL,lL,cL,dL,hL,mL,pL,uL,vL,bL,fL;iL.styles=i`:host { display: inline-block; position: relative; user-select: none; outline: none; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); padding-block: var(--m3e-toc-item-padding-block, 0.5rem); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } :host(:not(:disabled)) { cursor: pointer; } .base { padding-inline-start: calc( var(--m3e-toc-item-padding, 1rem) + calc(var(--m3e-toc-item-inset, 0.75rem) * var(--_level, 0)) ); padding-inline-end: var(--m3e-toc-item-padding, 1rem); transition: ${o(`color var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1}) ${v.motion.easing.standard}`)}; } :host(:not([selected])) { font-size: var(--m3e-toc-item-font-size, ${v.typescale.standard.body.large.fontSize}); font-weight: var(--m3e-toc-item-font-weight, ${v.typescale.standard.body.large.fontWeight}); line-height: var(--m3e-toc-item-line-height, ${v.typescale.standard.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-tracking, ${v.typescale.standard.body.large.tracking}); color: var(--m3e-toc-item-color, ${v.color.onSurfaceVariant}); } :host([selected]) { font-size: var(--m3e-toc-item-selected-font-size, ${v.typescale.emphasized.body.large.fontSize}); font-weight: var(--m3e-toc-item-selected-font-weight, ${v.typescale.emphasized.body.large.fontWeight}); line-height: var(--m3e-toc-item-selected-line-height, ${v.typescale.emphasized.body.large.lineHeight}); letter-spacing: var(--m3e-toc-item-selected-tracking, ${v.typescale.emphasized.body.large.tracking}); color: var(--m3e-toc-item-selected-color, ${v.color.onSecondaryContainer}); } .base { justify-content: unset; } .state-layer { --m3e-state-layer-focus-opacity: 0; } @media (prefers-reduced-motion) { .base { transition: none; } }`,t([h(".base")],iL.prototype,"_base",void 0),t([h(".state-layer")],iL.prototype,"_stateLayer",void 0),t([u()],iL.prototype,"node",void 0),iL=t([$("m3e-toc-item")],iL);class gL{static generate(t,a=6){let o=6;const i=new Array;t.querySelectorAll("h1:not([m3e-toc-ignore]),h2:not([m3e-toc-ignore]),h3:not([m3e-toc-ignore]),h4:not([m3e-toc-ignore]),h5:not([m3e-toc-ignore]),h6:not([m3e-toc-ignore]),m3e-heading[level]:not([m3e-toc-ignore])").forEach(t=>{const a=e(rL,rL,"m",sL).call(rL,t);o=Math.min(a,o),i.push({id:t.id||Se(),element:t,level:a,label:me(t,!0),nodes:new Array})});for(let e=o+a-1;e>o;e--)for(let t=0;t<i.length;t++){const a=i[t];if(a.level===e)for(let o=t;o>=0;o--){const t=i[o];if(t.level<e){t.nodes.push(a);break}}}return i.forEach(e=>e.level-=o-1),i.filter(e=>1===e.level)}}rL=gL,sL=function(e){return e.tagName.startsWith("H")?parseInt(e.tagName.substring(1)):parseInt(e.getAttribute("level")??"0")};let yL=class extends(b(P(f(r,"navigation")))){constructor(){super(...arguments),nL.add(this),this._toc=[],lL.set(this,!1),cL.set(this,(new De).withHomeAndEnd().withVerticalOrientation().disableRovingTabIndex().onSelectedItemsChange(()=>{if(this._activeIndicator){const t=e(this,cL,"f").selectedItems[0];t?(_(t,this,{block:"nearest",behavior:"smooth"}),this._activeIndicator.style.top=`${t.offsetTop}px`,this._activeIndicator.style.height=`${t.clientHeight}px`,this._activeIndicator.style.visibility=0==t.clientHeight?"hidden":"",O(this,"-no-animate")&&setTimeout(()=>k(this,"-no-animate",!1),40)):(k(this,"-no-animate",!0),this._activeIndicator.style.top="0px",this._activeIndicator.style.height="0px",this._activeIndicator.style.visibility="hidden")}})),dL.set(this,new _e(this,{target:null,callback:t=>{if(!this.control||e(this,lL,"f"))return;const a=this.control.scrollTop;let o=null,i=Number.POSITIVE_INFINITY;if(t.filter(e=>e.isIntersecting).map(e=>e.target).forEach(e=>{const t=e.offsetTop,r=Math.abs(t-a);r<i&&(i=r,o=e)}),o){const t=e(this,cL,"f").items.find(e=>e.node?.element===o);t&&e(this,cL,"f").select(t)}}})),hL.set(this,new ve(this,{target:null,callback:()=>a(this,lL,!1,"f"),debounce:!0})),mL.set(this,new w(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>this._updateToc()})),this.maxDepth=2}attach(t){super.attach(t),e(this,mL,"f").observe(t),e(this,hL,"f").observe(t),e(this,nL,"m",fL).call(this)}detach(){this.control&&(e(this,mL,"f").unobserve(this.control),e(this,hL,"f").unobserve(this.control)),super.detach(),e(this,nL,"m",fL).call(this)}willUpdate(t){super.willUpdate(t),t.has("maxDepth")&&e(this,nL,"m",fL).call(this)}updated(t){if(super.updated(t),t.has("_toc")){const{added:t,removed:a}=e(this,cL,"f").setItems([...this.shadowRoot?.querySelectorAll("m3e-toc-item")??[]]);e(this,cL,"f").activeItem||(k(this,"-no-animate",!0),e(this,cL,"f").updateActiveItem(t.find(e=>!e.disabled)));for(const a of t)a.node&&e(this,dL,"f").observe(a.node.element);for(const t of a)t.node&&e(this,dL,"f").unobserve(t.node.element)}}render(){return s`<div class="header"><div class="overline"><slot name="overline" @slotchange="${e(this,nL,"m",uL)}"></slot></div><div class="title"><slot name="title" @slotchange="${e(this,nL,"m",vL)}"></slot></div></div><slot></slot><ul class="list">${this._toc.map(t=>e(this,nL,"m",pL).call(this,t))}</ul><div class="active-indicator" aria-hidden="true"></div>`}_updateToc(){e(this,nL,"m",fL).call(this)}};var $L,xL,wL,kL,CL,SL;lL=new WeakMap,cL=new WeakMap,dL=new WeakMap,hL=new WeakMap,mL=new WeakMap,nL=new WeakSet,pL=function t(a){return s`<li><m3e-toc-item tabindex="-1" .node="${a}" @click="${e(this,nL,"m",bL)}">${a.label}</m3e-toc-item>${0==a.nodes.length?n:s`<ul>${a.nodes.map(a=>e(this,nL,"m",t).call(this,a))}</ul>`}</li>`},uL=function(e){k(this,"-with-overline",g(e.target))},vL=function(e){k(this,"-with-title",g(e.target))},bL=function(t){t.target instanceof iL&&!t.target.disabled&&t.target.node?.element&&(a(this,lL,!0,"f"),t.target.node.element.scrollIntoView({block:"start",behavior:"smooth"}),e(this,cL,"f").updateActiveItem(t.target),e(this,cL,"f").select(t.target))},fL=function(){this._toc=this.control?gL.generate(this.control,Math.max(1,Math.min(this.maxDepth,6))):[]},yL.styles=i`:host { display: inline-block; position: relative; overflow-y: auto; scrollbar-width: ${v.scrollbar.thinWidth}; scrollbar-color: ${v.scrollbar.color}; width: var(--m3e-toc-width, 9.75rem); } ul { list-style: none; padding-inline-start: unset; margin-block-start: unset; margin-block-end: unset; } ul, li { display: flex; flex-direction: column; align-items: stretch; } m3e-toc-item { flex: none; } .active-indicator { position: absolute; pointer-events: none; box-sizing: border-box; left: 0; right: 0; border-radius: var(--m3e-toc-item-shape, ${v.shape.corner.largeIncreased}); border: 1px solid var(--m3e-toc-active-indicator-color, ${v.color.outline}); transition: ${o(`visibility var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n height var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard},\n top var(--m3e-toc-active-indicator-animation-duration, ${v.motion.duration.long1})\n ${v.motion.easing.standard}`)}; } .header { display: flex; flex-direction: column; align-items: stretch; padding-inline-start: var(--m3e-toc-item-padding, 1rem); padding-block-end: var(--m3e-toc-header-space, 0.5rem); row-gap: var(--m3e-toc-header-space, 0.5rem); } .overline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2; } :host(:not(:state(-with-overline))) .overline, :host(:not(:state(-with-title))) .title, :host(:not(:state(-with-overline)):not(:state(-with-title))) .header { display: none; } ::slotted([slot="overline"]) { font-size: var(--m3e-toc-overline-font-size, ${v.typescale.standard.label.small.fontSize}); font-weight: var(--m3e-toc-overline-font-weight, ${v.typescale.standard.label.small.fontWeight}); line-height: var(--m3e-toc-overline-line-height, ${v.typescale.standard.label.small.lineHeight}); letter-spacing: var(--m3e-toc-overline-tracking, ${v.typescale.standard.label.small.tracking}); color: var(--m3e-toc-overline-color, ${v.color.onSurfaceVariant}); } ::slotted([slot="title"]) { font-size: var(--m3e-toc-title-font-size, ${v.typescale.standard.headline.small.fontSize}); font-weight: var(--m3e-toc-title-font-weight, ${v.typescale.standard.headline.small.fontWeight}); line-height: var(--m3e-toc-title-line-height, ${v.typescale.standard.headline.small.lineHeight}); letter-spacing: var(--m3e-toc-title-tracking, ${v.typescale.standard.headline.small.tracking}); color: var(--m3e-toc-title-color, ${v.color.onSurface}); } :host(:state(-no-animate)) .active-indicator { transition: none; } @media (prefers-reduced-motion) { .active-indicator { transition: none; } }`,t([u()],yL.prototype,"_toc",void 0),t([h(".active-indicator")],yL.prototype,"_activeIndicator",void 0),t([m({attribute:"max-depth",type:Number})],yL.prototype,"maxDepth",void 0),t([y(40)],yL.prototype,"_updateToc",null),yL=t([$("m3e-toc")],yL);let _L=class extends(pe(f(r,"toolbar"))){constructor(){super(...arguments),$L.add(this),xL.set(this,void 0),wL.set(this,(new He).withHomeAndEnd().withDirectionality(Ve.current)),this.variant="standard",this.shape="square",this.elevated=!1}connectedCallback(){super.connectedCallback(),a(this,xL,Ve.observe(()=>e(this,wL,"f").directionality=Ve.current),"f")}disconnectedCallback(){super.disconnectedCallback(),e(this,xL,"f")?.call(this)}update(t){super.update(t),t.has("vertical")&&(e(this,wL,"f").vertical=this.vertical)}render(){return s`<m3e-state-layer class="state-layer"></m3e-state-layer><m3e-elevation class="elevation" level="${this.elevated?3:0}"></m3e-elevation><div class="base"><slot @click="${e(this,$L,"m",SL)}" @keydown="${e(this,$L,"m",CL)}" @slotchange="${e(this,$L,"m",kL)}"></slot></div>`}};xL=new WeakMap,wL=new WeakMap,$L=new WeakSet,kL=function(){const{added:t}=e(this,wL,"f").setItems(Me.findInteractiveElements(this));if(!e(this,wL,"f").activeItem){const a=t.find(e=>!e.hasAttribute("disabled"));a&&e(this,wL,"f").updateActiveItem(a)}},CL=function(t){e(this,wL,"f").onKeyDown(t)},SL=function(t){const a=t.composedPath().find(t=>t instanceof HTMLElement&&e(this,wL,"f").items.includes(t));a&&e(this,wL,"f").updateActiveItem(a)},_L.styles=i`:host { display: inline-block; position: relative; } .base { display: flex; align-items: center; box-sizing: border-box; border-radius: inherit; } :host(:not([vertical])) { height: fit-content; } :host(:not([vertical])) .base { height: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); column-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([vertical]) { width: fit-content; } :host([vertical]) .base { width: calc(var(--m3e-toolbar-size, 4rem) + ${v.density.calc(-3)}); } :host([vertical]) .base { flex-direction: column; justify-content: center; row-gap: var(--m3e-toolbar-spacing, 0.25rem); } :host([shape="rounded"]) { border-radius: var(--m3e-toolbar-rounded-shape, ${v.shape.corner.full}); } :host([shape="rounded"]) .base { padding: var(--m3e-toolbar-rounded-padding, 0.5rem); } :host(:not([vertical])[shape="square"]) .base { padding-inline: var(--m3e-toolbar-square-padding, 1rem); } :host([vertical][shape="square"]) .base { padding-block: var(--m3e-toolbar-square-padding, 1rem); } :host([variant="standard"]) .state-layer { background-color: var(--m3e-toolbar-standard-container-color, ${v.color.surfaceContainer}); } :host([variant="standard"]) .base { color: var(--m3e-toolbar-standard-color, ${v.color.onSurface}); } :host([variant="vibrant"]) .state-layer { background-color: var(--m3e-toolbar-vibrant-container-color, ${v.color.primaryContainer}); } :host([variant="vibrant"]) .base { color: var(--m3e-toolbar-vibrant-color, ${v.color.onPrimaryContainer}); } @media (forced-colors: active) { :host([variant]) .state-layer { background-color: Canvas; } :host([variant]) .base { color: CanvasText; outline: 1px solid CanvasText; } }`,t([m({reflect:!0})],_L.prototype,"variant",void 0),t([m({reflect:!0})],_L.prototype,"shape",void 0),t([m({type:Boolean,reflect:!0})],_L.prototype,"elevated",void 0),_L=t([$("m3e-toolbar")],_L);let LL=class extends E{constructor(){super(...arguments),this.disableRestoreFocus=!1}_onClick(){this.closest("m3e-rich-tooltip")?.hide(!this.disableRestoreFocus)}};var zL,EL,ML,TL,PL,IL,WL,DL,AL,HL,OL;t([m({attribute:"disable-restore-focus",type:Boolean})],LL.prototype,"disableRestoreFocus",void 0),LL=t([$("m3e-rich-tooltip-action")],LL);class FL extends(b(M(P(r)))){constructor(){super(...arguments),zL.add(this),ML.set(this,null),TL.set(this,void 0),PL.set(this,!1),IL.set(this,()=>e(this,zL,"m",HL).call(this)),WL.set(this,new ne(this,{target:null,endDelay:200,callback:(t,o)=>{if(!this._isInteractive)if(t){if(o===this._base)return void a(this,PL,!0,"f");this.show()}else e(this,PL,"f")&&o!==this._base||(a(this,PL,!1,"f"),this.hide())}})),DL.set(this,new Le(this,{target:null,callback:e=>{this._isInteractive||(e?this.show():this.hide())}})),this.disabled=!1,this.touchGestures="auto"}get showDelay(){return e(this,WL,"f").startDelay}set showDelay(t){e(this,WL,"f").startDelay=t}get hideDelay(){return e(this,WL,"f").endDelay}set hideDelay(t){e(this,WL,"f").endDelay=t}get isOpen(){return EL.__openTooltips.includes(this)}get _isInteractive(){return!1}attach(t){super.attach(t),et.iOS||et.Android?(e(this,DL,"f").observe(t),e(this,zL,"m",OL).call(this)):e(this,WL,"f").observe(t),t.addEventListener("click",e(this,IL,"f"))}detach(){this.control&&(e(this,WL,"f").unobserve(this.control),e(this,DL,"f").unobserve(this.control),this.control.removeEventListener("click",e(this,IL,"f")),this.hide()),super.detach()}update(e){super.update(e),e.has("disabled")&&this.disabled&&this.hide()}reconnectedCallback(){super.reconnectedCallback(),e(this,zL,"m",AL).call(this)}firstUpdated(t){super.firstUpdated(t),e(this,zL,"m",AL).call(this)}async show(){!this.control||this.disabled||ce(this.control)&&this.control.disabled||(EL.__openTooltips.filter(e=>e!==this).forEach(e=>e.hide()),this._base.showPopover(),a(this,TL,await qe(this._base,this.control,{position:this._anchorPosition,inline:!0,flip:!0,shift:"main",offset:4},(e,t)=>this._updatePosition(this._base,e,t)),"f"),EL.__openTooltips.includes(this)||EL.__openTooltips.push(this))}hide(){this._base.hidePopover(),e(this,TL,"f")?.call(this),a(this,TL,void 0,"f"),e(this,WL,"f").clearDelays(),EL.__openTooltips.includes(this)&&(EL.__openTooltips=EL.__openTooltips.filter(e=>e!==this))}}var BL,VL,qL,RL,UL,NL,jL,YL,KL,ZL,GL,XL,JL,QL,ez,tz;EL=FL,ML=new WeakMap,TL=new WeakMap,PL=new WeakMap,IL=new WeakMap,WL=new WeakMap,DL=new WeakMap,zL=new WeakSet,AL=function(){this._base&&e(this,WL,"f").observe(this._base)},HL=function(){this._isInteractive?EL.__openTooltips.includes(this)?this.hide():this.show():this.hide()},OL=function(){if("off"!==this.touchGestures&&e(this,ML,"f")){const t=e(this,ML,"f").style;("on"===this.touchGestures||"INPUT"!==e(this,ML,"f").nodeName&&"TEXTAREA"!==e(this,ML,"f").nodeName)&&(t.userSelect=t.msUserSelect=t.webkitUserSelect=t.MozUserSelect="none"),"on"!==this.touchGestures&&e(this,ML,"f").draggable||(t.webkitUserDrag="none"),t.touchAction="none",t.webkitTapHighlightColor="transparent"}},FL.__openTooltips=new Array,t([h(".base")],FL.prototype,"_base",void 0),t([m({type:Boolean,reflect:!0})],FL.prototype,"disabled",void 0),t([m({attribute:"show-delay",type:Number})],FL.prototype,"showDelay",null),t([m({attribute:"hide-delay",type:Number})],FL.prototype,"hideDelay",null),t([m({attribute:"touch-gestures"})],FL.prototype,"touchGestures",void 0);let az=tz=class extends FL{constructor(){super(...arguments),BL.add(this),VL.set(this,tz.__nextId++),qL.set(this,""),RL.set(this,""),UL.set(this,""),NL.set(this,!1),this._hasSubhead=!1,this._interactive=!1,jL.set(this,t=>e(this,BL,"m",ZL).call(this,t)),this.position="below-after"}get _isInteractive(){return this._interactive}get _anchorPosition(){switch(this.position){case"above":return"top";case"above-after":return"rtl"===Ve.current?"top-start":"top-end";case"above-before":return"rtl"===Ve.current?"top-end":"top-start";case"after":return"rtl"===Ve.current?"left":"right";case"before":return"rtl"===Ve.current?"right":"left";case"below":return"bottom";case"below-after":return"rtl"===Ve.current?"bottom-start":"bottom-end";case"below-before":return"rtl"===Ve.current?"bottom-end":"bottom-start"}}render(){const t=this._interactive&&this._hasSubhead?`m3e-rich-tooltip-${e(this,VL,"f")}-subhead`:void 0;return s`<div class="base" popover="manual" role="${Ne(this._interactive?"dialog":void 0)}" aria-labelledby="${Ne(t)}" @keydown="${e(this,BL,"m",GL)}" @beforetoggle="${e(this,BL,"m",YL)}" @toggle="${e(this,BL,"m",KL)}"><m3e-elevation level="3"></m3e-elevation><div class="subhead" id="${Ne(t)}"><slot name="subhead" @slotchange="${e(this,BL,"m",XL)}"></slot></div><div class="content"><slot @slotchange="${e(this,BL,"m",JL)}"></slot></div><div class="actions"><slot name="actions" @slotchange="${e(this,BL,"m",QL)}"></slot></div></div>`}show(){return this._interactive&&document.addEventListener("click",e(this,jL,"f")),super.show()}hide(t=!0){this._interactive&&document.removeEventListener("click",e(this,jL,"f")),super.hide(),t&&this._interactive&&this.control&&Me.isFocusable(this.control)&&this.control.focus()}attach(t){super.attach(t),e(this,BL,"m",ez).call(this),this._interactive&&(t.ariaHasPopup="dialog")}update(t){super.update(t),t.has("_interactive")&&(this.ariaHidden=this._interactive?null:"true",e(this,BL,"m",ez).call(this),this.control&&this._interactive&&(this.control.ariaHasPopup="dialog"))}_updatePosition(e,t,a){this.position.includes("before")&&"before"!==this.position&&("rtl"===Ve.current?t+=this.control?.clientWidth??0:t-=this.control?.clientWidth??0),this.position.includes("after")&&"after"!==this.position&&("rtl"===Ve.current?t-=this.control?.clientWidth??0:t+=this.control?.clientWidth??0),"rtl"===Ve.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};var oz,iz,rz,sz;VL=new WeakMap,qL=new WeakMap,RL=new WeakMap,UL=new WeakMap,NL=new WeakMap,jL=new WeakMap,BL=new WeakSet,YL=function(e){const t=new ToggleEvent("beforetoggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0,cancelable:e.cancelable});this.dispatchEvent(t)||(e.preventDefault(),this.hide())},KL=function(e){const t=new ToggleEvent("toggle",{oldState:e.oldState,newState:e.newState,bubbles:!0,composed:!0});this.dispatchEvent(t)},ZL=function(e){e.composedPath().some(e=>e instanceof tz||e===this.control)||this.hide()},GL=function(e){"Escape"!==e.key||e.shiftKey||e.ctrlKey||(e.preventDefault(),this.hide())},XL=function(t){this._hasSubhead=g(t.target),this.shadowRoot?.querySelector(".base")?.classList.toggle("has-subhead",this._hasSubhead),a(this,qL,this._hasSubhead?me(t.target,!0):"","f"),e(this,BL,"m",ez).call(this)},JL=function(t){this._interactive=Me.findInteractiveElements(this).length>0,a(this,RL,me(t.target,!0),"f"),e(this,BL,"m",ez).call(this)},QL=function(t){this.shadowRoot?.querySelector(".base")?.classList.toggle("has-actions",g(t.target)),this._interactive=Me.findInteractiveElements(this).length>0,e(this,BL,"m",ez).call(this)},ez=function(){const t=e(this,qL,"f")?`${e(this,qL,"f")}/n${e(this,RL,"f")}`:e(this,RL,"f");this.isConnected&&this.control&&(e(this,UL,"f")&&e(this,NL,"f")&&(Oe.removeDescription(this.control,e(this,UL,"f")),a(this,NL,!1,"f")),a(this,UL,t,"f"),e(this,UL,"f")&&!this._interactive&&(Oe.describe(this.control,e(this,UL,"f")),a(this,NL,!0,"f")))},az.styles=i`:host { display: contents; } .base { flex-direction: column; position: absolute; padding: unset; margin: unset; border: unset; padding-block-start: var(--m3e-rich-tooltip-padding-top, 0.75rem); padding-inline: var(--m3e-rich-tooltip-padding-inline, 1rem); max-width: var(--m3e-rich-tooltip-max-width, 20rem); box-sizing: border-box; overflow: visible; border-radius: var(--m3e-rich-tooltip-shape, ${v.shape.corner.medium}); background-color: var(--m3e-rich-tooltip-container-color, ${v.color.surfaceContainer}); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } .base:not(.has-actions) { padding-block-end: var(--m3e-rich-tooltip-padding-bottom, 0.75rem); } .base::backdrop { background-color: transparent; } .base:popover-open { display: flex; opacity: 1; transform: scale(1); } .base:not(.has-subhead) .subhead, .base:not(.has-actions) .actions { display: none; } .subhead { color: var(--m3e-rich-tooltip-subhead-color, ${v.color.onSurfaceVariant}); font-size: var(--m3e-rich-tooltip-subhead-font-size, ${v.typescale.standard.title.small.fontSize}); font-weight: var( --m3e-rich-tooltip-subhead-font-weight, ${v.typescale.standard.title.small.fontWeight} ); line-height: var( --m3e-rich-tooltip-subhead-line-height, ${v.typescale.standard.title.small.lineHeight} ); letter-spacing: var(--m3e-rich-tooltip-subhead-tracking, ${v.typescale.standard.title.small.tracking}); padding-block-end: var(--m3e-rich-tooltip-subhead-bottom-space, 0.25rem); } .content { color: var(--m3e-rich-tooltip-supporting-text-color, ${v.color.onSurfaceVariant}); font-size: var( --m3e-rich-tooltip-supporting-text-font-size, ${v.typescale.standard.body.medium.fontSize} ); font-weight: var( --m3e-rich-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.medium.fontWeight} ); line-height: var( --m3e-rich-tooltip-supporting-text-line-height, ${v.typescale.standard.body.medium.lineHeight} ); letter-spacing: var( --m3e-rich-tooltip-supporting-text-tracking, ${v.typescale.standard.body.medium.tracking} ); } .actions { margin-inline: calc( 0px - calc( var(--m3e-rich-tooltip-padding-inline, 1rem) - var(--m3e-rich-tooltip-actions-padding-inline, 0.25rem) ) ); padding-block-start: var(--m3e-rich-tooltip-actions-top-space, 0.75rem); padding-block-end: var(--m3e-rich-tooltip-actions-bottom-space, 0.5rem); } ::slotted([slot="actions"]) { flex: none; display: flex; align-items: center; min-height: 1.5rem; column-gap: 0.5rem; } ::slotted([slot="actions"][end]) { justify-content: flex-end; } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,az.__nextId=0,t([u()],az.prototype,"_hasSubhead",void 0),t([u()],az.prototype,"_interactive",void 0),t([m()],az.prototype,"position",void 0),az=tz=t([$("m3e-rich-tooltip")],az);let nz=class extends FL{constructor(){super(...arguments),oz.add(this),iz.set(this,void 0),this.position="below"}get _anchorPosition(){return"above"===this.position?"top":"below"===this.position?"bottom":"before"===this.position?"ltr"===Ve.current?"left":"right":"ltr"===Ve.current?"right":"left"}attach(t){super.attach(t),e(this,iz,"f")&&Oe.describe(t,e(this,iz,"f"))}detach(){this.control&&e(this,iz,"f")&&Oe.removeDescription(this.control,e(this,iz,"f")),super.detach()}connectedCallback(){super.connectedCallback(),this.ariaHidden="true"}render(){return s`<div class="base" popover="manual" @toggle="${e(this,oz,"m",sz)}"><slot @slotchange="${e(this,oz,"m",rz)}"></slot></div>`}_updatePosition(e,t,a){"rtl"===Ve.current?(e.style.right=window.innerWidth-t-e.clientWidth+"px",e.style.left=""):(e.style.left=`${t}px`,e.style.right=""),e.style.top=`${a}px`}};iz=new WeakMap,oz=new WeakSet,rz=function(t){const o=me(t.target,!0);this.isConnected&&this.control?(e(this,iz,"f")&&Oe.removeDescription(this.control,e(this,iz,"f")),a(this,iz,o,"f"),e(this,iz,"f")&&Oe.describe(this.control,e(this,iz,"f"))):a(this,iz,o,"f")},sz=function(e){if("open"===e.newState){const e=this._base.getBoundingClientRect().height>parseFloat(getComputedStyle(this._base).minHeight);k(this,"-multiline",e)}},nz.styles=i`:host { display: contents; } .base { position: absolute; pointer-events: none; margin: unset; border: unset; word-break: normal; overflow-wrap: anywhere; padding: var(--m3e-tooltip-padding, 0.25rem 0.5rem); min-width: var(--m3e-tooltip-min-width, 2.5rem); max-width: var(--m3e-tooltip-max-width, 12.5rem); min-height: var(--m3e-tooltip-min-height, 1.5rem); max-height: var(--m3e-tooltip-max-height, 40vh); box-sizing: border-box; overflow: hidden; text-align: center; border-radius: var(--m3e-tooltip-shape, ${v.shape.corner.extraSmall}); background-color: var(--m3e-tooltip-container-color, ${v.color.inverseSurface}); color: var(--m3e-tooltip-supporting-text-color, ${v.color.inverseOnSurface}); font-size: var(--m3e-tooltip-supporting-text-font-size, ${v.typescale.standard.body.small.fontSize}); font-weight: var( --m3e-tooltip-supporting-text-font-weight, ${v.typescale.standard.body.small.fontWeight} ); line-height: var( --m3e-tooltip-supporting-text-line-height, ${v.typescale.standard.body.small.lineHeight} ); letter-spacing: var( --m3e-tooltip-supporting-text-tracking, ${v.typescale.standard.body.small.tracking} ); display: none; opacity: 0; transform: scale(0.8); transition: ${o(`opacity ${v.motion.duration.short3} ${v.motion.easing.standard}, \n transform ${v.motion.duration.short3} ${v.motion.easing.standard},\n overlay ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete,\n display ${v.motion.duration.short3} ${v.motion.easing.standard} allow-discrete`)}; } :host(:state(-multiline)) .base { text-align: start; } .base::backdrop { background-color: transparent; } .base:popover-open { display: block; opacity: 1; transform: scale(1); } @starting-style { .base:popover-open { opacity: 0; transform: scale(0.8); } } @media (prefers-reduced-motion) { .base { transition: none; } } @media (forced-colors: active) { .base { background-color: Canvas; color: CanvasText; box-sizing: border-box; border: 1px solid CanvasText; } }`,t([m()],nz.prototype,"position",void 0),nz=t([$("m3e-tooltip")],nz);export{md as ActionElementBase,gn as AnimationLoopController,Sl as AttachInternals,Go as CalendarViewElementBase,Tl as Checked,Il as CheckedIndeterminate,Mc as ConstraintValidation,nc as DesignToken,Vl as Dirty,cc as Disabled,uc as DisabledInteractive,Tc as EventAttribute,Rn as FocusController,Ic as Focusable,Sc as FormAssociated,Ac as FormSubmitter,Un as HoverController,Bc as HtmlFor,Nn as InertController,jn as IntersectionController,Vc as KeyboardClick,gc as Labelled,Nc as LinkButton,Yn as LongPressController,Jm as M3eAccordionElement,Fv as M3eActionListElement,St as M3eAppBarElement,or as M3eAssistChipElement,wa as M3eAutocompleteElement,ka as M3eAvatarElement,Ma as M3eBadgeElement,Ta as M3eBottomSheetActionElement,go as M3eBottomSheetElement,yo as M3eBottomSheetTriggerElement,Io as M3eButtonElement,Oo as M3eButtonGroupElement,Bx as M3eButtonSegmentElement,_i as M3eCalendarElement,Vi as M3eCardElement,Ki as M3eCheckboxElement,ar as M3eChipElement,ir as M3eChipSetElement,xy as M3eCircularProgressIndicatorElement,pd as M3eCollapsibleElement,Qh as M3eDatepickerElement,em as M3eDatepickerToggleElement,tm as M3eDialogActionElement,um as M3eDialogElement,vm as M3eDialogTriggerElement,bm as M3eDividerElement,Bm as M3eDrawerContainerElement,Ym as M3eDrawerToggleElement,Ed as M3eElevationElement,Av as M3eExpandableListItemElement,Lp as M3eExpansionHeaderElement,Bp as M3eExpansionPanelElement,Gp as M3eFabElement,vu as M3eFabMenuElement,eu as M3eFabMenuItemElement,bu as M3eFabMenuTriggerElement,lr as M3eFilterChipElement,br as M3eFilterChipSetElement,Bd as M3eFocusRingElement,Gu as M3eFormFieldElement,Xu as M3eHeadingElement,mv as M3eIconButtonElement,Ju as M3eIconElement,xr as M3eInputChipElement,jr as M3eInputChipSetElement,Dy as M3eLinearProgressIndicatorElement,qv as M3eListActionElement,_v as M3eListElement,Rv as M3eListItemButtonElement,$v as M3eListItemElement,Gv as M3eListOptionElement,ub as M3eLoadingIndicatorElement,jb as M3eMenuElement,sf as M3eMenuItemCheckboxElement,Eb as M3eMenuItemElement,nf as M3eMenuItemGroupElement,$f as M3eMenuItemRadioElement,bb as M3eMenuTriggerElement,ri as M3eMonthViewElement,di as M3eMultiYearViewElement,Lf as M3eNavBarElement,Tf as M3eNavItemElement,sg as M3eNavMenuElement,Uf as M3eNavMenuItemElement,mg as M3eNavMenuItemGroupElement,fg as M3eNavRailElement,xg as M3eNavRailToggleElement,Pg as M3eOptGroupElement,_g as M3eOptionElement,Hg as M3eOptionPanelElement,Yg as M3ePaginatorElement,Vd as M3ePseudoCheckboxElement,qd as M3ePseudoRadioElement,Ry as M3eRadioElement,Xy as M3eRadioGroupElement,LL as M3eRichTooltipActionElement,az as M3eRichTooltipElement,eh as M3eRippleElement,ah as M3eScrollContainerElement,tx as M3eSearchBarElement,Wx as M3eSearchViewElement,Yx as M3eSegmentedButtonElement,kw as M3eSelectElement,ab as M3eSelectionListElement,Ww as M3eShapeElement,nh as M3eSlideElement,Bw as M3eSlideGroupElement,hk as M3eSliderElement,Rw as M3eSliderThumbElement,wk as M3eSnackbar,xk as M3eSnackbarElement,Dk as M3eSplitButtonElement,yh as M3eStateLayerElement,qk as M3eStepElement,Ak as M3eStepPanelElement,aC as M3eStepperElement,oC as M3eStepperNextElement,iC as M3eStepperPreviousElement,rC as M3eStepperResetElement,Yr as M3eSuggestionChipElement,zS as M3eSwitchElement,IS as M3eTabElement,WS as M3eTabPanelElement,US as M3eTabsElement,zh as M3eTextHighlightElement,Eh as M3eTextOverflowElement,n_ as M3eTextareaAutosizeElement,oL as M3eThemeElement,yL as M3eTocElement,iL as M3eTocItemElement,_L as M3eToolbarElement,nz as M3eTooltipElement,vi as M3eYearViewElement,Kn as MutationController,Zn as PressedController,Kg as ProgressElementIndicatorBase,Yc as ReadOnly,Zc as ReconnectedCallback,Xc as Required,Qc as RequiredConstraintValidation,Gn as ResizeController,ed as Role,pl as ScrollController,ul as ScrollLockController,Dl as Selected,tC as StepperButtonElementBase,td as SuppressInitialAnimation,gL as TocGenerator,FL as TooltipElementBase,Ul as Touched,qn as VelocityTracker,od as Vertical,Ll as addCustomState,Ol as checkOrSelect,$n as computeCssSize,xn as computeLineCount,Xn as customElement,vl as dateConverter,Jn as debounce,$c as defaultValue,zl as deleteCustomState,yu as findFormFieldControl,wn as focusWhenReady,kn as forcedColorsActive,yc as formValue,Pn as generateClipPaths,In as getTextContent,Wn as guid,Dn as hasAssignedNodes,_l as hasCustomState,$l as hasKeys,An as interceptProperty,xl as internals,wl as isAttachInternalsMixin,Pl as isCheckedIndeterminateMixin,Ml as isCheckedMixin,Hl as isCheckedOrSelected,Al as isCheckedOrSelectedMixin,Lc as isConstraintValidationMixin,Fl as isDirtyMixin,dc as isDisabledInteractiveMixin,lc as isDisabledMixin,xc as isFormAssociatedMixin,gu as isFormFieldControl,Wc as isFormSubmitterMixin,Hc as isHtmlForMixin,bc as isLabelledMixin,Rc as isLinkButtonMixin,jc as isReadOnlyMixin,Jc as isRequiredConstraintValidationMixin,Gc as isRequiredMixin,Wl as isSelectedMixin,ql as isTouchedMixin,ad as isVerticalMixin,Hn as prefersReducedMotion,On as registerStyleSheet,qc as renderPseudoLink,Fn as resolveElementById,Bn as resolveFragmentUrl,yl as safeStyleMap,Vn as scrollIntoViewIfNeeded,El as setCustomState,bl as spaceSeparatedStringConverter,vc as updateLabels,_c as validate};
411
447
  //# sourceMappingURL=all.min.js.map