@covalent/components 7.1.0-beta.1 → 7.1.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/action-ribbon/action-ribbon.d.ts +1 -2
  2. package/action-ribbon/action-ribbon.d.ts.map +1 -1
  3. package/action-ribbon.js +5 -5
  4. package/action-ribbon.mjs +12 -14
  5. package/alert/alert.d.ts +1 -2
  6. package/alert/alert.d.ts.map +1 -1
  7. package/alert.js +4 -4
  8. package/alert.mjs +10 -12
  9. package/app-shell/app-shell.d.ts +1 -2
  10. package/app-shell/app-shell.d.ts.map +1 -1
  11. package/app-shell.js +5 -5
  12. package/app-shell.mjs +19 -21
  13. package/button/button.d.ts +1 -2
  14. package/button/button.d.ts.map +1 -1
  15. package/button.js +2 -2
  16. package/button.mjs +11 -13
  17. package/card/card.d.ts +1 -2
  18. package/card/card.d.ts.map +1 -1
  19. package/card.js +7 -7
  20. package/card.mjs +1 -3
  21. package/check-list-item.js +5 -5
  22. package/check-list-item.mjs +19 -21
  23. package/checkbox/checkbox.d.ts +1 -2
  24. package/checkbox/checkbox.d.ts.map +1 -1
  25. package/checkbox.js +2 -2
  26. package/checkbox.mjs +15 -17
  27. package/chips/chip-set-base.d.ts +1 -1
  28. package/chips/chip-set-base.d.ts.map +1 -1
  29. package/chips/chip-set.d.ts +1 -2
  30. package/chips/chip-set.d.ts.map +1 -1
  31. package/chips/chip.d.ts +1 -2
  32. package/chips/chip.d.ts.map +1 -1
  33. package/circular-progress/circular-progress.d.ts +1 -2
  34. package/circular-progress/circular-progress.d.ts.map +1 -1
  35. package/circular-progress.js +2 -2
  36. package/circular-progress.mjs +9 -11
  37. package/code-snippet/code-snippet.d.ts +1 -2
  38. package/code-snippet/code-snippet.d.ts.map +1 -1
  39. package/code-snippet-557c2c8c.mjs +12228 -0
  40. package/code-snippet-792fa24f.js +13 -0
  41. package/code-snippet.js +1 -13
  42. package/code-snippet.mjs +6 -12206
  43. package/dialog/dialog.d.ts +1 -2
  44. package/dialog/dialog.d.ts.map +1 -1
  45. package/{dialog-79036d60.js → dialog-9eb800e8.js} +4 -4
  46. package/{dialog-9ac44447.mjs → dialog-b0a2f7ff.mjs} +23 -25
  47. package/dialog.js +1 -1
  48. package/dialog.mjs +3 -4
  49. package/drawer/drawer.d.ts +1 -2
  50. package/drawer/drawer.d.ts.map +1 -1
  51. package/drawer.js +2 -2
  52. package/drawer.mjs +11 -13
  53. package/empty-state/empty-state.d.ts +1 -2
  54. package/empty-state/empty-state.d.ts.map +1 -1
  55. package/empty-state.js +4 -4
  56. package/empty-state.mjs +14 -16
  57. package/{form-element-ead758d4.js → form-element-c553d6f5.js} +1 -1
  58. package/{form-element-bd973124.mjs → form-element-ffcf59ff.mjs} +1 -1
  59. package/formfield/formfield.d.ts +1 -2
  60. package/formfield/formfield.d.ts.map +1 -1
  61. package/{foundation-3f556da7.mjs → foundation-39dc72d2.mjs} +1 -1
  62. package/{foundation-62d4413d.js → foundation-786bf879.js} +1 -1
  63. package/icon/icon.d.ts +1 -2
  64. package/icon/icon.d.ts.map +1 -1
  65. package/icon-button/icon-button.d.ts +1 -2
  66. package/icon-button/icon-button.d.ts.map +1 -1
  67. package/icon-button.js +2 -2
  68. package/icon-button.mjs +21 -23
  69. package/icon-check-toggle.js +6 -6
  70. package/icon-check-toggle.mjs +5 -7
  71. package/icon-checkbox/icon-check-toggle.d.ts +1 -2
  72. package/icon-checkbox/icon-check-toggle.d.ts.map +1 -1
  73. package/icon-radio/icon-radio-toggle.d.ts +1 -2
  74. package/icon-radio/icon-radio-toggle.d.ts.map +1 -1
  75. package/icon-radio-toggle.js +5 -5
  76. package/icon-radio-toggle.mjs +17 -19
  77. package/icon.js +2 -2
  78. package/icon.mjs +14 -16
  79. package/index.d.ts +2 -0
  80. package/index.d.ts.map +1 -1
  81. package/index.js +568 -1
  82. package/index.mjs +3680 -108
  83. package/linear-progress/linear-progress.d.ts +1 -2
  84. package/linear-progress/linear-progress.d.ts.map +1 -1
  85. package/linear-progress.js +6 -6
  86. package/linear-progress.mjs +23 -25
  87. package/list/check-list-item.d.ts +1 -2
  88. package/list/check-list-item.d.ts.map +1 -1
  89. package/list/list-item.d.ts +1 -2
  90. package/list/list-item.d.ts.map +1 -1
  91. package/list/list.d.ts +1 -2
  92. package/list/list.d.ts.map +1 -1
  93. package/list/nav-list-item.d.ts +6 -5
  94. package/list/nav-list-item.d.ts.map +1 -1
  95. package/list/radio-list-item.d.ts +1 -2
  96. package/list/radio-list-item.d.ts.map +1 -1
  97. package/list-item-7970e039.js +8 -0
  98. package/list-item-b1f5251a.mjs +30 -0
  99. package/list-item.js +1 -1
  100. package/list-item.mjs +5 -6
  101. package/list.js +3 -3
  102. package/list.mjs +13 -15
  103. package/menu/menu.d.ts +1 -2
  104. package/menu/menu.d.ts.map +1 -1
  105. package/menu.js +2 -2
  106. package/menu.mjs +16 -18
  107. package/{mwc-checkbox-base-d46c7666.js → mwc-checkbox-base-3d8c9549.js} +1 -1
  108. package/{mwc-checkbox-base-3da36456.mjs → mwc-checkbox-base-f10fd709.mjs} +3 -3
  109. package/{mwc-drawer-base-fe660bdf.mjs → mwc-drawer-base-135de8a5.mjs} +1 -1
  110. package/{mwc-drawer-base-8eecb1de.js → mwc-drawer-base-798b11f8.js} +1 -1
  111. package/{mwc-icon-ba18383d.mjs → mwc-icon-bf656cf5.mjs} +1 -1
  112. package/{mwc-icon-8c9cd0c9.js → mwc-icon-f87639bc.js} +1 -1
  113. package/{mwc-line-ripple-directive-d1cf9570.js → mwc-line-ripple-directive-a6b39a3c.js} +1 -1
  114. package/{mwc-line-ripple-directive-ffce2cff.mjs → mwc-line-ripple-directive-b24a914e.mjs} +1 -1
  115. package/{mwc-list-base-cb3500b4.js → mwc-list-base-400b00e2.js} +1 -1
  116. package/{mwc-list-base-32d4ac31.mjs → mwc-list-base-76e37212.mjs} +2 -2
  117. package/{mwc-list-item-base-4a4d1e1b.js → mwc-list-item-base-297d86b0.js} +1 -1
  118. package/{mwc-list-item-base-8654347d.mjs → mwc-list-item-base-fe4398c3.mjs} +2 -2
  119. package/{mwc-menu-base-572a76b9.mjs → mwc-menu-base-c4bc88ea.mjs} +2 -2
  120. package/{mwc-menu-base-f14ec544.js → mwc-menu-base-c75ca473.js} +1 -1
  121. package/{mwc-radio-base-470b4fcc.js → mwc-radio-base-913e02e2.js} +1 -1
  122. package/{mwc-radio-base-9446d39b.mjs → mwc-radio-base-a374fbd9.mjs} +3 -3
  123. package/{mwc-slider.css-10adbaf8.mjs → mwc-slider.css-8b6f275c.mjs} +3 -3
  124. package/{mwc-slider.css-9dd57b10.js → mwc-slider.css-c7107d94.js} +1 -1
  125. package/{mwc-tab-base-4ba47acc.mjs → mwc-tab-base-be0c887f.mjs} +2 -2
  126. package/{mwc-tab-base-fc3ffb43.js → mwc-tab-base-f28722aa.js} +1 -1
  127. package/{mwc-top-app-bar-base-adc4168a.mjs → mwc-top-app-bar-base-55da3fe4.mjs} +1 -1
  128. package/{mwc-top-app-bar-base-0304e67f.js → mwc-top-app-bar-base-aec60f27.js} +1 -1
  129. package/nav-list-item.js +12 -12
  130. package/nav-list-item.mjs +68 -64
  131. package/package.json +1 -1
  132. package/radio/radio.d.ts +1 -2
  133. package/radio/radio.d.ts.map +1 -1
  134. package/radio-list-item.js +5 -5
  135. package/radio-list-item.mjs +20 -22
  136. package/radio.js +2 -2
  137. package/radio.mjs +15 -17
  138. package/{ripple-handlers-c82b1232.js → ripple-handlers-5d5b21db.js} +1 -1
  139. package/{ripple-handlers-321219b8.mjs → ripple-handlers-f37f21cf.mjs} +1 -1
  140. package/select/select.d.ts +1 -2
  141. package/select/select.d.ts.map +1 -1
  142. package/select.js +10 -10
  143. package/select.mjs +127 -129
  144. package/side-sheet/side-sheet.d.ts +2 -2
  145. package/side-sheet/side-sheet.d.ts.map +1 -1
  146. package/side-sheet.js +4 -4
  147. package/side-sheet.mjs +6 -6
  148. package/slider/slider-range.d.ts +1 -2
  149. package/slider/slider-range.d.ts.map +1 -1
  150. package/slider/slider.d.ts +1 -2
  151. package/slider/slider.d.ts.map +1 -1
  152. package/slider-range.js +7 -7
  153. package/slider-range.mjs +21 -23
  154. package/slider.js +2 -2
  155. package/slider.mjs +12 -14
  156. package/snackbar/snackbar.d.ts +1 -2
  157. package/snackbar/snackbar.d.ts.map +1 -1
  158. package/snackbar.js +10 -10
  159. package/snackbar.mjs +10 -12
  160. package/status-header/status-header-item.d.ts +1 -2
  161. package/status-header/status-header-item.d.ts.map +1 -1
  162. package/status-header/status-header.d.ts +1 -2
  163. package/status-header/status-header.d.ts.map +1 -1
  164. package/status-header-item.js +3 -3
  165. package/status-header-item.mjs +17 -19
  166. package/status-header.js +5 -5
  167. package/status-header.mjs +15 -17
  168. package/style.css +1 -1
  169. package/switch/switch.d.ts +1 -2
  170. package/switch/switch.d.ts.map +1 -1
  171. package/switch.js +8 -8
  172. package/switch.mjs +4 -6
  173. package/tab/tab-bar.d.ts +1 -2
  174. package/tab/tab-bar.d.ts.map +1 -1
  175. package/tab/tab.d.ts +1 -2
  176. package/tab/tab.d.ts.map +1 -1
  177. package/tab-bar.js +5 -5
  178. package/tab-bar.mjs +20 -22
  179. package/tab.js +2 -2
  180. package/tab.mjs +12 -14
  181. package/text-lockup/text-lockup.d.ts +1 -2
  182. package/text-lockup/text-lockup.d.ts.map +1 -1
  183. package/text-lockup.js +5 -5
  184. package/text-lockup.mjs +5 -7
  185. package/textarea/textarea.d.ts +1 -2
  186. package/textarea/textarea.d.ts.map +1 -1
  187. package/textarea.js +2 -2
  188. package/textarea.mjs +15 -17
  189. package/textfield/textfield.d.ts +1 -2
  190. package/textfield/textfield.d.ts.map +1 -1
  191. package/{textfield-0993c163.js → textfield-62e16cc2.js} +1 -1
  192. package/{textfield-2cee5a1a.mjs → textfield-63d1859a.mjs} +3 -3
  193. package/textfield.js +3 -3
  194. package/textfield.mjs +13 -15
  195. package/toolbar/toolbar.d.ts +1 -2
  196. package/toolbar/toolbar.d.ts.map +1 -1
  197. package/toolbar.js +3 -3
  198. package/toolbar.mjs +11 -13
  199. package/tooltip/tooltip.d.ts +1 -2
  200. package/tooltip/tooltip.d.ts.map +1 -1
  201. package/tooltip.js +6 -6
  202. package/tooltip.mjs +59 -61
  203. package/top-app-bar/top-app-bar-fixed.d.ts +1 -2
  204. package/top-app-bar/top-app-bar-fixed.d.ts.map +1 -1
  205. package/top-app-bar/top-app-bar.d.ts +1 -2
  206. package/top-app-bar/top-app-bar.d.ts.map +1 -1
  207. package/top-app-bar-fixed.js +6 -6
  208. package/top-app-bar-fixed.mjs +21 -23
  209. package/top-app-bar.js +3 -3
  210. package/top-app-bar.mjs +16 -18
  211. package/tree-list/tree-list-item.d.ts +1 -2
  212. package/tree-list/tree-list-item.d.ts.map +1 -1
  213. package/tree-list/tree-list.d.ts +1 -2
  214. package/tree-list/tree-list.d.ts.map +1 -1
  215. package/tree-list-item.js +8 -8
  216. package/tree-list-item.mjs +1 -3
  217. package/tree-list.js +4 -4
  218. package/tree-list.mjs +8 -9
  219. package/tslib.es6-98719205.js +1 -0
  220. package/tslib.es6-f3e988cd.mjs +86 -0
  221. package/typography/typography.d.ts +1 -2
  222. package/typography/typography.d.ts.map +1 -1
  223. package/typography.js +3 -3
  224. package/typography.mjs +10 -12
  225. package/list-item-3dc4b60f.js +0 -8
  226. package/list-item-bab8d6ba.mjs +0 -32
  227. package/tslib.es6-e6a11c8a.js +0 -1
  228. package/tslib.es6-f1eaf65c.mjs +0 -82
package/index.mjs CHANGED
@@ -1,123 +1,3695 @@
1
- import { CovalentActionRibbon as N } from "./action-ribbon.mjs";
2
- import { CovalentAlert as q } from "./alert.mjs";
3
- import { CovalentAppShell as G } from "./app-shell.mjs";
4
- import { CovalentButton as K } from "./button.mjs";
5
- import { CovalentCheckbox as Q } from "./checkbox.mjs";
6
- import { CovalentCard as V } from "./card.mjs";
7
- import { CovalentCircularProgress as X } from "./circular-progress.mjs";
8
- import { CovalentCodeSnippet as Z } from "./code-snippet.mjs";
9
- import { C as $ } from "./dialog-9ac44447.mjs";
10
- import { CovalentDrawer as to } from "./drawer.mjs";
11
- import { CovalentEmptyState as eo } from "./empty-state.mjs";
12
- import { CovalentIcon as mo } from "./icon.mjs";
13
- import { CovalentIconButton as io } from "./icon-button.mjs";
14
- import { CovalentIconCheckToggle as no } from "./icon-check-toggle.mjs";
15
- import { CovalentIconRadioToggle as xo } from "./icon-radio-toggle.mjs";
16
- import { CovalentLinearProgress as fo } from "./linear-progress.mjs";
17
- import { CovalentCheckListItem as co } from "./check-list-item.mjs";
18
- import { CovalentList as So } from "./list.mjs";
19
- import { C as go } from "./list-item-bab8d6ba.mjs";
20
- import { CovalentNavRailListItem as ho } from "./nav-list-item.mjs";
21
- import { CovalentRadioListItem as uo } from "./radio-list-item.mjs";
22
- import { CovalentMenu as Ro } from "./menu.mjs";
23
- import { CovalentRadio as Bo } from "./radio.mjs";
24
- import { CovalentSelect as wo } from "./select.mjs";
25
- import { CovalentSideSheet as Fo } from "./side-sheet.mjs";
26
- import { CovalentSlider as Po } from "./slider.mjs";
27
- import { CovalentSliderRange as Mo } from "./slider-range.mjs";
28
- import { CovalentSnackbar as jo } from "./snackbar.mjs";
29
- import { CovalentStatusHeader as zo } from "./status-header.mjs";
30
- import { CovalentStatusHeaderItem as Jo } from "./status-header-item.mjs";
31
- import { CovalentSwitch as Oo } from "./switch.mjs";
32
- import { CovalentTab as Uo } from "./tab.mjs";
33
- import { CovalentTabBar as Wo } from "./tab-bar.mjs";
34
- import { CovalentTextArea as Yo } from "./textarea.mjs";
35
- import { CovalentTextField as _o } from "./textfield.mjs";
36
- import { CovalentTextLockup as ot } from "./text-lockup.mjs";
37
- import { CovalentToolbar as rt } from "./toolbar.mjs";
38
- import { CovalentTooltip as pt } from "./tooltip.mjs";
39
- import { CovalentTopAppBar as at } from "./top-app-bar.mjs";
40
- import { CovalentTopAppBarFixed as lt } from "./top-app-bar-fixed.mjs";
41
- import { CovalentTreeList as Ct } from "./tree-list.mjs";
42
- import { CovalentTreeListItem as vt } from "./tree-list-item.mjs";
43
- import { CovalentTypography as st } from "./typography.mjs";
44
- import "./query-assigned-elements-4a39219d.mjs";
45
- import "./utils-2932417c.mjs";
1
+ var me = Object.defineProperty;
2
+ var fe = (i, e, t) => e in i ? me(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var f = (i, e, t) => (fe(i, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import "./action-ribbon.mjs";
5
+ import "./alert.mjs";
6
+ import "./app-shell.mjs";
7
+ import "./button.mjs";
8
+ import "./checkbox.mjs";
9
+ import "./card.mjs";
10
+ import { s as Bt, x as $, i as Gt, r as Wt, e as jt } from "./query-assigned-elements-4a39219d.mjs";
11
+ import { a as ve } from "./utils-2932417c.mjs";
12
+ import { _ as U, a as T, b as C, c as H, d as ge, e as _e } from "./tslib.es6-f3e988cd.mjs";
13
+ import { n as R } from "./property-9b6ea53b.mjs";
14
+ import { i as $t } from "./query-d843aa92.mjs";
15
+ import { o as ye } from "./class-map-4b94b017.mjs";
16
+ import { g as y } from "./code-snippet-557c2c8c.mjs";
17
+ import "./circular-progress.mjs";
18
+ import "./dialog-b0a2f7ff.mjs";
19
+ import "./drawer.mjs";
20
+ import "./empty-state.mjs";
21
+ import "./icon.mjs";
22
+ import "./icon-button.mjs";
23
+ import "./icon-check-toggle.mjs";
24
+ import "./icon-radio-toggle.mjs";
25
+ import "./linear-progress.mjs";
26
+ import "./check-list-item.mjs";
27
+ import "./list.mjs";
28
+ import "./list-item-b1f5251a.mjs";
29
+ import "./nav-list-item.mjs";
30
+ import "./radio-list-item.mjs";
31
+ import "./menu.mjs";
32
+ import "./radio.mjs";
33
+ import "./select.mjs";
34
+ import "./side-sheet.mjs";
35
+ import "./slider.mjs";
36
+ import "./slider-range.mjs";
37
+ import "./snackbar.mjs";
38
+ import "./status-header.mjs";
39
+ import "./status-header-item.mjs";
40
+ import "./switch.mjs";
41
+ import "./tab.mjs";
42
+ import "./tab-bar.mjs";
43
+ import "./textarea.mjs";
44
+ import "./textfield.mjs";
45
+ import "./text-lockup.mjs";
46
+ import "./toolbar.mjs";
47
+ import "./tooltip.mjs";
48
+ import "./top-app-bar.mjs";
49
+ import "./top-app-bar-fixed.mjs";
50
+ import "./tree-list.mjs";
51
+ import "./tree-list-item.mjs";
52
+ import "./typography.mjs";
46
53
  import "./observer-be7b92e2.mjs";
47
- import "./foundation-3f556da7.mjs";
48
- import "./tslib.es6-f1eaf65c.mjs";
49
- import "./class-map-4b94b017.mjs";
50
- import "./property-9b6ea53b.mjs";
51
- import "./query-d843aa92.mjs";
52
- import "./mwc-drawer-base-fe660bdf.mjs";
54
+ import "./foundation-39dc72d2.mjs";
55
+ import "./mwc-drawer-base-135de8a5.mjs";
53
56
  import "./inert.esm-359d4581.mjs";
54
57
  import "./base-element-67ae173f.mjs";
55
- import "./mwc-icon-ba18383d.mjs";
56
- import "./ripple-handlers-321219b8.mjs";
58
+ import "./mwc-icon-bf656cf5.mjs";
59
+ import "./ripple-handlers-f37f21cf.mjs";
57
60
  import "./state-b5e865db.mjs";
58
61
  import "./style-map-bc3ed3e0.mjs";
59
62
  import "./aria-property-fa2717fe.mjs";
60
63
  import "./event-options-78d6cf94.mjs";
61
64
  import "./if-defined-c367f208.mjs";
62
- import "./mwc-checkbox-base-3da36456.mjs";
63
- import "./form-element-bd973124.mjs";
65
+ import "./mwc-checkbox-base-f10fd709.mjs";
66
+ import "./form-element-ffcf59ff.mjs";
64
67
  import "./mwc-checkbox.css-8f4f1a9b.mjs";
65
68
  import "./query-assigned-nodes-df691e78.mjs";
66
- import "./mwc-radio-base-9446d39b.mjs";
69
+ import "./mwc-radio-base-a374fbd9.mjs";
67
70
  import "./mwc-radio.css-7454bb11.mjs";
68
- import "./mwc-list-item-base-8654347d.mjs";
71
+ import "./mwc-list-item-base-fe4398c3.mjs";
69
72
  import "./mwc-list-item.css-b0009fc7.mjs";
70
- import "./mwc-list-base-32d4ac31.mjs";
71
- import "./mwc-menu-base-572a76b9.mjs";
72
- import "./mwc-line-ripple-directive-ffce2cff.mjs";
73
- import "./mwc-slider.css-10adbaf8.mjs";
73
+ import "./mwc-list-base-76e37212.mjs";
74
+ import "./mwc-menu-base-c4bc88ea.mjs";
75
+ import "./mwc-line-ripple-directive-b24a914e.mjs";
76
+ import "./mwc-slider.css-8b6f275c.mjs";
74
77
  import "./directive-helpers-e3ea6592.mjs";
75
- import "./mwc-tab-base-4ba47acc.mjs";
76
- import "./textfield-2cee5a1a.mjs";
77
- import "./mwc-top-app-bar-base-adc4168a.mjs";
78
+ import "./mwc-tab-base-be0c887f.mjs";
79
+ import "./textfield-63d1859a.mjs";
80
+ import "./mwc-top-app-bar-base-55da3fe4.mjs";
78
81
  import "./top-app-bar-f83386e0.mjs";
79
- export {
80
- N as CovalentActionRibbon,
81
- q as CovalentAlert,
82
- G as CovalentAppShell,
83
- K as CovalentButton,
84
- V as CovalentCard,
85
- co as CovalentCheckListItem,
86
- Q as CovalentCheckbox,
87
- X as CovalentCircularProgress,
88
- Z as CovalentCodeSnippet,
89
- $ as CovalentDialog,
90
- to as CovalentDrawer,
91
- eo as CovalentEmptyState,
92
- mo as CovalentIcon,
93
- io as CovalentIconButton,
94
- no as CovalentIconCheckToggle,
95
- xo as CovalentIconRadioToggle,
96
- fo as CovalentLinearProgress,
97
- So as CovalentList,
98
- go as CovalentListItem,
99
- Ro as CovalentMenu,
100
- ho as CovalentNavRailListItem,
101
- Bo as CovalentRadio,
102
- uo as CovalentRadioListItem,
103
- wo as CovalentSelect,
104
- Fo as CovalentSideSheet,
105
- Po as CovalentSlider,
106
- Mo as CovalentSliderRange,
107
- jo as CovalentSnackbar,
108
- zo as CovalentStatusHeader,
109
- Jo as CovalentStatusHeaderItem,
110
- Oo as CovalentSwitch,
111
- Uo as CovalentTab,
112
- Wo as CovalentTabBar,
113
- Yo as CovalentTextArea,
114
- _o as CovalentTextField,
115
- ot as CovalentTextLockup,
116
- rt as CovalentToolbar,
117
- pt as CovalentTooltip,
118
- at as CovalentTopAppBar,
119
- lt as CovalentTopAppBarFixed,
120
- Ct as CovalentTreeList,
121
- vt as CovalentTreeListItem,
122
- st as CovalentTypography
82
+ var L = {};
83
+ /**
84
+ * @license
85
+ * SPDX-License-Identifier: Apache-2.0
86
+ */
87
+ const P = {};
88
+ function G(i) {
89
+ if (i !== P)
90
+ throw new Error("Bad secret");
91
+ }
92
+ /**
93
+ * @license
94
+ * SPDX-License-Identifier: Apache-2.0
95
+ */
96
+ class Kt {
97
+ constructor() {
98
+ // @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
99
+ f(this, "brand");
100
+ }
101
+ // To prevent structural typing.
102
+ }
103
+ class Vt extends Kt {
104
+ constructor(t, n) {
105
+ super();
106
+ f(this, "privateDoNotAccessOrElseWrappedAttrPrefix");
107
+ process.env.NODE_ENV !== "production" && G(n), this.privateDoNotAccessOrElseWrappedAttrPrefix = t;
108
+ }
109
+ toString() {
110
+ return this.privateDoNotAccessOrElseWrappedAttrPrefix;
111
+ }
112
+ }
113
+ function qt(i) {
114
+ return new Vt(i, P);
115
+ }
116
+ function Xt(i) {
117
+ if (i instanceof Vt)
118
+ return i.privateDoNotAccessOrElseWrappedAttrPrefix;
119
+ {
120
+ let e = "";
121
+ throw process.env.NODE_ENV !== "production" && (e = "Unexpected type when unwrapping SafeAttributePrefix"), new Error(e);
122
+ }
123
+ }
124
+ const Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
125
+ __proto__: null,
126
+ SafeAttributePrefix: Kt,
127
+ createAttributePrefix: qt,
128
+ unwrapAttributePrefix: Xt
129
+ }, Symbol.toStringTag, { value: "Module" }));
130
+ /**
131
+ * @license
132
+ * SPDX-License-Identifier: Apache-2.0
133
+ */
134
+ function Y(i, e, t) {
135
+ if (!Array.isArray(i) || !Array.isArray(i.raw) || !e && i.length !== 1)
136
+ throw new TypeError(t);
137
+ }
138
+ /**
139
+ * @license
140
+ * SPDX-License-Identifier: Apache-2.0
141
+ */
142
+ const be = [
143
+ "href",
144
+ "rel",
145
+ "src",
146
+ "srcdoc",
147
+ "action",
148
+ "formaction",
149
+ "sandbox",
150
+ "cite",
151
+ "poster",
152
+ "icon"
153
+ ];
154
+ /**
155
+ * @license
156
+ * SPDX-License-Identifier: Apache-2.0
157
+ */
158
+ function Ee(i) {
159
+ process.env.NODE_ENV !== "production" && Y(i, !0, "safeAttr is a template literal tag function and should be called using the tagged template syntax. For example, safeAttr`foo`;");
160
+ const e = i[0].toLowerCase();
161
+ if (process.env.NODE_ENV !== "production") {
162
+ if (e.indexOf("on") === 0 || "on".indexOf(e) === 0)
163
+ throw new Error(`Prefix '${i[0]}' does not guarantee the attribute to be safe as it is also a prefix for event handler attributesPlease use 'addEventListener' to set event handlers.`);
164
+ be.forEach((t) => {
165
+ if (t.indexOf(e) === 0)
166
+ throw new Error(`Prefix '${i[0]}' does not guarantee the attribute to be safe as it is also a prefix for the security sensitive attribute '${t}'. Please use native or safe DOM APIs to set the attribute.`);
167
+ });
168
+ }
169
+ return qt(e);
170
+ }
171
+ const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
172
+ __proto__: null,
173
+ safeAttrPrefix: Ee
174
+ }, Symbol.toStringTag, { value: "Module" })), we = /* @__PURE__ */ y(Se);
175
+ /**
176
+ * @license
177
+ * SPDX-License-Identifier: Apache-2.0
178
+ */
179
+ let Yt = "google#safe";
180
+ function Ie() {
181
+ if (typeof window < "u")
182
+ return window.trustedTypes;
183
+ }
184
+ function Z() {
185
+ return Yt !== "" ? Ie() ?? null : null;
186
+ }
187
+ let rt;
188
+ function ft() {
189
+ var i;
190
+ if (rt === void 0)
191
+ try {
192
+ rt = ((i = Z()) == null ? void 0 : i.createPolicy(Yt, {
193
+ createHTML: (e) => e,
194
+ createScript: (e) => e,
195
+ createScriptURL: (e) => e
196
+ })) ?? null;
197
+ } catch {
198
+ rt = null;
199
+ }
200
+ return rt;
201
+ }
202
+ /**
203
+ * @license
204
+ * SPDX-License-Identifier: Apache-2.0
205
+ */
206
+ class vt {
207
+ constructor(e, t) {
208
+ f(this, "privateDoNotAccessOrElseWrappedHtml");
209
+ process.env.NODE_ENV !== "production" && G(t), this.privateDoNotAccessOrElseWrappedHtml = e;
210
+ }
211
+ toString() {
212
+ return this.privateDoNotAccessOrElseWrappedHtml.toString();
213
+ }
214
+ }
215
+ function Zt(i, e) {
216
+ return e ?? new vt(i, P);
217
+ }
218
+ const Ce = typeof window !== void 0 ? window.TrustedHTML : void 0, Jt = Ce ?? vt;
219
+ function W(i) {
220
+ var t;
221
+ const e = i;
222
+ return Zt(e, (t = ft()) == null ? void 0 : t.createHTML(e));
223
+ }
224
+ const Te = /* @__PURE__ */ (() => {
225
+ var i;
226
+ return Zt("", (i = Z()) == null ? void 0 : i.emptyHTML);
227
+ })();
228
+ function Re(i) {
229
+ return i instanceof Jt;
230
+ }
231
+ function gt(i) {
232
+ var e;
233
+ if ((e = Z()) != null && e.isHTML(i))
234
+ return i;
235
+ if (i instanceof vt)
236
+ return i.privateDoNotAccessOrElseWrappedHtml;
237
+ {
238
+ let t = "";
239
+ throw process.env.NODE_ENV !== "production" && (t = "Unexpected type when unwrapping SafeHtml"), new Error(t);
240
+ }
241
+ }
242
+ const Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
243
+ __proto__: null,
244
+ EMPTY_HTML: Te,
245
+ SafeHtml: Jt,
246
+ createHtml: W,
247
+ isHtml: Re,
248
+ unwrapHtml: gt
249
+ }, Symbol.toStringTag, { value: "Module" }));
250
+ /**
251
+ * @license
252
+ * SPDX-License-Identifier: Apache-2.0
253
+ */
254
+ class _t {
255
+ constructor(e, t) {
256
+ f(this, "privateDoNotAccessOrElseWrappedResourceUrl");
257
+ process.env.NODE_ENV !== "production" && G(t), this.privateDoNotAccessOrElseWrappedResourceUrl = e;
258
+ }
259
+ toString() {
260
+ return this.privateDoNotAccessOrElseWrappedResourceUrl.toString();
261
+ }
262
+ }
263
+ const Oe = typeof window !== void 0 ? window.TrustedScriptURL : void 0, Qt = Oe ?? _t;
264
+ function q(i) {
265
+ var n;
266
+ const e = i;
267
+ return ((n = ft()) == null ? void 0 : n.createScriptURL(e)) ?? new _t(e, P);
268
+ }
269
+ function De(i) {
270
+ return i instanceof Qt;
271
+ }
272
+ function pt(i) {
273
+ var e;
274
+ if ((e = Z()) != null && e.isScriptURL(i))
275
+ return i;
276
+ if (i instanceof _t)
277
+ return i.privateDoNotAccessOrElseWrappedResourceUrl;
278
+ {
279
+ let t = "";
280
+ throw process.env.NODE_ENV !== "production" && (t = "Unexpected type when unwrapping TrustedResourceUrl"), new Error(t);
281
+ }
282
+ }
283
+ const Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
284
+ __proto__: null,
285
+ TrustedResourceUrl: Qt,
286
+ createResourceUrl: q,
287
+ isResourceUrl: De,
288
+ unwrapResourceUrl: pt
289
+ }, Symbol.toStringTag, { value: "Module" }));
290
+ /**
291
+ * @license
292
+ * SPDX-License-Identifier: Apache-2.0
293
+ */
294
+ class yt {
295
+ constructor(e, t) {
296
+ f(this, "privateDoNotAccessOrElseWrappedScript");
297
+ process.env.NODE_ENV !== "production" && G(t), this.privateDoNotAccessOrElseWrappedScript = e;
298
+ }
299
+ toString() {
300
+ return this.privateDoNotAccessOrElseWrappedScript.toString();
301
+ }
302
+ }
303
+ function te(i, e) {
304
+ return e ?? new yt(i, P);
305
+ }
306
+ const xe = typeof window !== void 0 ? window.TrustedScript : void 0, ee = xe ?? yt;
307
+ function tt(i) {
308
+ var t;
309
+ const e = i;
310
+ return te(e, (t = ft()) == null ? void 0 : t.createScript(e));
311
+ }
312
+ const Fe = /* @__PURE__ */ (() => {
313
+ var i;
314
+ return te("", (i = Z()) == null ? void 0 : i.emptyScript);
315
+ })();
316
+ function Le(i) {
317
+ return i instanceof ee;
318
+ }
319
+ function ut(i) {
320
+ var e;
321
+ if ((e = Z()) != null && e.isScript(i))
322
+ return i;
323
+ if (i instanceof yt)
324
+ return i.privateDoNotAccessOrElseWrappedScript;
325
+ {
326
+ let t = "";
327
+ throw process.env.NODE_ENV !== "production" && (t = "Unexpected type when unwrapping SafeScript"), new Error(t);
328
+ }
329
+ }
330
+ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
331
+ __proto__: null,
332
+ EMPTY_SCRIPT: Fe,
333
+ SafeScript: ee,
334
+ createScript: tt,
335
+ isScript: Le,
336
+ unwrapScript: ut
337
+ }, Symbol.toStringTag, { value: "Module" }));
338
+ /**
339
+ * @license
340
+ * SPDX-License-Identifier: Apache-2.0
341
+ */
342
+ function Me(i, e = {}) {
343
+ let t = V(i);
344
+ return e.preserveSpaces && (t = t.replace(/(^|[\r\n\t ]) /g, "$1&#160;")), e.preserveNewlines && (t = t.replace(/(\r\n|\n|\r)/g, "<br>")), e.preserveTabs && (t = t.replace(/(\t+)/g, '<span style="white-space:pre">$1</span>')), W(t);
345
+ }
346
+ function ze(i, e = {}) {
347
+ const t = ut(i).toString();
348
+ let n = "<script";
349
+ return e.id && (n += ` id="${V(e.id)}"`), e.nonce && (n += ` nonce="${V(e.nonce)}"`), e.type && (n += ` type="${V(e.type)}"`), n += `>${t}<\/script>`, W(n);
350
+ }
351
+ function He(i, e, t) {
352
+ const n = pt(i).toString();
353
+ let r = `<script src="${V(n)}"`;
354
+ return e && (r += " async"), t && (r += ` nonce="${V(t)}"`), r += "><\/script>", W(r);
355
+ }
356
+ function V(i) {
357
+ return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
358
+ }
359
+ function ke(i) {
360
+ return W(i.map(gt).join(""));
361
+ }
362
+ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
363
+ __proto__: null,
364
+ concatHtmls: ke,
365
+ createScript: ze,
366
+ createScriptSrc: He,
367
+ htmlEscape: Me
368
+ }, Symbol.toStringTag, { value: "Module" })), Ge = /* @__PURE__ */ y(Be);
369
+ /**
370
+ * @license
371
+ * SPDX-License-Identifier: Apache-2.0
372
+ */
373
+ function We(i) {
374
+ let e;
375
+ try {
376
+ e = new URL(i);
377
+ } catch {
378
+ return "https:";
379
+ }
380
+ return e.protocol;
381
+ }
382
+ const je = ["data:", "http:", "https:", "mailto:", "ftp:"];
383
+ function $e(i) {
384
+ const e = We(i);
385
+ return e !== void 0 && je.indexOf(e.toLowerCase()) !== -1 ? i : "about:invalid#zClosurez";
386
+ }
387
+ /**
388
+ * @license
389
+ * SPDX-License-Identifier: Apache-2.0
390
+ */
391
+ class ie {
392
+ constructor() {
393
+ // @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
394
+ f(this, "brand");
395
+ }
396
+ // To prevent structural typing.
397
+ }
398
+ class At extends ie {
399
+ constructor(t, n) {
400
+ super();
401
+ f(this, "privateDoNotAccessOrElseWrappedStyle");
402
+ process.env.NODE_ENV !== "production" && G(n), this.privateDoNotAccessOrElseWrappedStyle = t;
403
+ }
404
+ toString() {
405
+ return this.privateDoNotAccessOrElseWrappedStyle;
406
+ }
407
+ }
408
+ function bt(i) {
409
+ return new At(i, P);
410
+ }
411
+ function Ke(i) {
412
+ return i instanceof At;
413
+ }
414
+ function ne(i) {
415
+ if (i instanceof At)
416
+ return i.privateDoNotAccessOrElseWrappedStyle;
417
+ {
418
+ let e = "";
419
+ throw process.env.NODE_ENV !== "production" && (e = "Unexpected type when unwrapping SafeStyle"), new Error(e);
420
+ }
421
+ }
422
+ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
423
+ __proto__: null,
424
+ SafeStyle: ie,
425
+ createStyle: bt,
426
+ isStyle: Ke,
427
+ unwrapStyle: ne
428
+ }, Symbol.toStringTag, { value: "Module" }));
429
+ /**
430
+ * @license
431
+ * SPDX-License-Identifier: Apache-2.0
432
+ */
433
+ function qe(i, e) {
434
+ Ye(i) && Xe(i), i.innerHTML = gt(e);
435
+ }
436
+ function re(i, e, t, n) {
437
+ if (i.length === 0)
438
+ throw new Error("No prefixes are provided");
439
+ const r = i.map((a) => Xt(a)), o = t.toLowerCase();
440
+ if (r.every((a) => o.indexOf(a) !== 0))
441
+ throw new Error(`Attribute "${t}" does not match any of the allowed prefixes.`);
442
+ e.setAttribute(t, n);
443
+ }
444
+ function Xe(i) {
445
+ if (i.tagName.toLowerCase() === "script")
446
+ throw new Error("Use setTextContent with a SafeScript.");
447
+ if (i.tagName.toLowerCase() === "style")
448
+ throw new Error("Use setTextContent with a SafeStyleSheet.");
449
+ }
450
+ function Ye(i) {
451
+ return i.tagName !== void 0;
452
+ }
453
+ /**
454
+ * @license
455
+ * SPDX-License-Identifier: Apache-2.0
456
+ */
457
+ function Ze(i) {
458
+ const e = document.createElement("template"), t = W(i);
459
+ return qe(e, t), e.content;
460
+ }
461
+ /**
462
+ * @license
463
+ * SPDX-License-Identifier: Apache-2.0
464
+ */
465
+ function Ct(i) {
466
+ const e = i.nodeName;
467
+ return typeof e == "string" ? e : "FORM";
468
+ }
469
+ function Tt(i) {
470
+ return i.nodeType === Node.TEXT_NODE;
471
+ }
472
+ function Rt(i) {
473
+ const e = i.nodeType;
474
+ return e === Node.ELEMENT_NODE || typeof e != "number";
475
+ }
476
+ /**
477
+ * @license
478
+ * SPDX-License-Identifier: Apache-2.0
479
+ */
480
+ class z {
481
+ constructor(e, t, n, r) {
482
+ f(this, "allowedElements");
483
+ f(this, "elementPolicies");
484
+ f(this, "allowedGlobalAttributes");
485
+ f(this, "globalAttributePolicies");
486
+ this.allowedElements = e, this.elementPolicies = t, this.allowedGlobalAttributes = n, this.globalAttributePolicies = r;
487
+ }
488
+ isAllowedElement(e) {
489
+ return e.toLowerCase() !== "form" && (this.allowedElements.has(e) || this.elementPolicies.has(e));
490
+ }
491
+ getAttributePolicy(e, t) {
492
+ const n = this.elementPolicies.get(t);
493
+ return n != null && n.has(e) ? n.get(e) : this.allowedGlobalAttributes.has(e) ? { policyAction: d.KEEP } : this.globalAttributePolicies.get(e) || { policyAction: d.DROP };
494
+ }
495
+ }
496
+ var d;
497
+ (function(i) {
498
+ i[i.DROP = 0] = "DROP", i[i.KEEP = 1] = "KEEP", i[i.KEEP_AND_SANITIZE_URL = 2] = "KEEP_AND_SANITIZE_URL", i[i.KEEP_AND_NORMALIZE = 3] = "KEEP_AND_NORMALIZE", i[i.KEEP_AND_SANITIZE_STYLE = 4] = "KEEP_AND_SANITIZE_STYLE";
499
+ })(d || (d = {}));
500
+ /**
501
+ * @license
502
+ * SPDX-License-Identifier: Apache-2.0
503
+ */
504
+ const oe = new z(/* @__PURE__ */ new Set([
505
+ "ARTICLE",
506
+ "SECTION",
507
+ "NAV",
508
+ "ASIDE",
509
+ "H1",
510
+ "H2",
511
+ "H3",
512
+ "H4",
513
+ "H5",
514
+ "H6",
515
+ "HEADER",
516
+ "FOOTER",
517
+ "ADDRESS",
518
+ "P",
519
+ "HR",
520
+ "PRE",
521
+ "BLOCKQUOTE",
522
+ "OL",
523
+ "UL",
524
+ "LH",
525
+ "LI",
526
+ "DL",
527
+ "DT",
528
+ "DD",
529
+ "FIGURE",
530
+ "FIGCAPTION",
531
+ "MAIN",
532
+ "DIV",
533
+ "EM",
534
+ "STRONG",
535
+ "SMALL",
536
+ "S",
537
+ "CITE",
538
+ "Q",
539
+ "DFN",
540
+ "ABBR",
541
+ "RUBY",
542
+ "RB",
543
+ "RT",
544
+ "RTC",
545
+ "RP",
546
+ "DATA",
547
+ "TIME",
548
+ "CODE",
549
+ "VAR",
550
+ "SAMP",
551
+ "KBD",
552
+ "SUB",
553
+ "SUP",
554
+ "I",
555
+ "B",
556
+ "U",
557
+ "MARK",
558
+ "BDI",
559
+ "BDO",
560
+ "SPAN",
561
+ "BR",
562
+ "WBR",
563
+ "INS",
564
+ "DEL",
565
+ "PICTURE",
566
+ "PARAM",
567
+ "TRACK",
568
+ "MAP",
569
+ "TABLE",
570
+ "CAPTION",
571
+ "COLGROUP",
572
+ "COL",
573
+ "TBODY",
574
+ "THEAD",
575
+ "TFOOT",
576
+ "TR",
577
+ "TD",
578
+ "TH",
579
+ "SELECT",
580
+ "DATALIST",
581
+ "OPTGROUP",
582
+ "OPTION",
583
+ "OUTPUT",
584
+ "PROGRESS",
585
+ "METER",
586
+ "FIELDSET",
587
+ "LEGEND",
588
+ "DETAILS",
589
+ "SUMMARY",
590
+ "MENU",
591
+ "DIALOG",
592
+ "SLOT",
593
+ "CANVAS",
594
+ "FONT",
595
+ "CENTER"
596
+ ]), /* @__PURE__ */ new Map([
597
+ [
598
+ "A",
599
+ /* @__PURE__ */ new Map([
600
+ ["href", { policyAction: d.KEEP_AND_SANITIZE_URL }]
601
+ ])
602
+ ],
603
+ [
604
+ "AREA",
605
+ /* @__PURE__ */ new Map([
606
+ ["href", { policyAction: d.KEEP_AND_SANITIZE_URL }]
607
+ ])
608
+ ],
609
+ [
610
+ "LINK",
611
+ /* @__PURE__ */ new Map([
612
+ [
613
+ "href",
614
+ {
615
+ policyAction: d.KEEP_AND_SANITIZE_URL,
616
+ conditions: /* @__PURE__ */ new Map([[
617
+ "rel",
618
+ /* @__PURE__ */ new Set([
619
+ "alternate",
620
+ "author",
621
+ "bookmark",
622
+ "canonical",
623
+ "cite",
624
+ "help",
625
+ "icon",
626
+ "license",
627
+ "next",
628
+ "prefetch",
629
+ "dns-prefetch",
630
+ "prerender",
631
+ "preconnect",
632
+ "preload",
633
+ "prev",
634
+ "search",
635
+ "subresource"
636
+ ])
637
+ ]])
638
+ }
639
+ ]
640
+ ])
641
+ ],
642
+ [
643
+ "SOURCE",
644
+ /* @__PURE__ */ new Map([
645
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
646
+ ])
647
+ ],
648
+ [
649
+ "IMG",
650
+ /* @__PURE__ */ new Map([
651
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
652
+ ])
653
+ ],
654
+ [
655
+ "VIDEO",
656
+ /* @__PURE__ */ new Map([
657
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
658
+ ])
659
+ ],
660
+ [
661
+ "AUDIO",
662
+ /* @__PURE__ */ new Map([
663
+ ["src", { policyAction: d.KEEP_AND_SANITIZE_URL }]
664
+ ])
665
+ ]
666
+ ]), /* @__PURE__ */ new Set([
667
+ "title",
668
+ "aria-atomic",
669
+ "aria-autocomplete",
670
+ "aria-busy",
671
+ "aria-checked",
672
+ "aria-current",
673
+ "aria-disabled",
674
+ "aria-dropeffect",
675
+ "aria-expanded",
676
+ "aria-haspopup",
677
+ "aria-hidden",
678
+ "aria-invalid",
679
+ "aria-label",
680
+ "aria-level",
681
+ "aria-live",
682
+ "aria-multiline",
683
+ "aria-multiselectable",
684
+ "aria-orientation",
685
+ "aria-posinset",
686
+ "aria-pressed",
687
+ "aria-readonly",
688
+ "aria-relevant",
689
+ "aria-required",
690
+ "aria-selected",
691
+ "aria-setsize",
692
+ "aria-sort",
693
+ "aria-valuemax",
694
+ "aria-valuemin",
695
+ "aria-valuenow",
696
+ "aria-valuetext",
697
+ "alt",
698
+ "align",
699
+ "autocapitalize",
700
+ "autocomplete",
701
+ "autocorrect",
702
+ "autofocus",
703
+ "autoplay",
704
+ "bgcolor",
705
+ "border",
706
+ "cellpadding",
707
+ "cellspacing",
708
+ "checked",
709
+ "color",
710
+ "cols",
711
+ "colspan",
712
+ "controls",
713
+ "datetime",
714
+ "disabled",
715
+ "download",
716
+ "draggable",
717
+ "enctype",
718
+ "face",
719
+ "formenctype",
720
+ "frameborder",
721
+ "height",
722
+ "hreflang",
723
+ "hidden",
724
+ "ismap",
725
+ "label",
726
+ "lang",
727
+ "loop",
728
+ "max",
729
+ "maxlength",
730
+ "media",
731
+ "minlength",
732
+ "min",
733
+ "multiple",
734
+ "muted",
735
+ "nonce",
736
+ "open",
737
+ "placeholder",
738
+ "preload",
739
+ "rel",
740
+ "required",
741
+ "reversed",
742
+ "role",
743
+ "rows",
744
+ "rowspan",
745
+ "selected",
746
+ "shape",
747
+ "size",
748
+ "sizes",
749
+ "slot",
750
+ "span",
751
+ "spellcheck",
752
+ "start",
753
+ "step",
754
+ "summary",
755
+ "translate",
756
+ "type",
757
+ "valign",
758
+ "value",
759
+ "width",
760
+ "wrap",
761
+ "itemscope",
762
+ "itemtype",
763
+ "itemid",
764
+ "itemprop",
765
+ "itemref"
766
+ ]), /* @__PURE__ */ new Map([
767
+ [
768
+ "dir",
769
+ {
770
+ policyAction: d.KEEP_AND_NORMALIZE,
771
+ conditions: /* @__PURE__ */ new Map([[
772
+ "dir",
773
+ /* @__PURE__ */ new Set([
774
+ "auto",
775
+ "ltr",
776
+ "rtl"
777
+ ])
778
+ ]])
779
+ }
780
+ ],
781
+ [
782
+ "async",
783
+ {
784
+ policyAction: d.KEEP_AND_NORMALIZE,
785
+ conditions: /* @__PURE__ */ new Map([[
786
+ "async",
787
+ /* @__PURE__ */ new Set([
788
+ "async"
789
+ ])
790
+ ]])
791
+ }
792
+ ],
793
+ ["cite", { policyAction: d.KEEP_AND_SANITIZE_URL }],
794
+ [
795
+ "loading",
796
+ {
797
+ policyAction: d.KEEP_AND_NORMALIZE,
798
+ conditions: /* @__PURE__ */ new Map([[
799
+ "loading",
800
+ /* @__PURE__ */ new Set([
801
+ "eager",
802
+ "lazy"
803
+ ])
804
+ ]])
805
+ }
806
+ ],
807
+ ["poster", { policyAction: d.KEEP_AND_SANITIZE_URL }],
808
+ [
809
+ "target",
810
+ {
811
+ policyAction: d.KEEP_AND_NORMALIZE,
812
+ conditions: /* @__PURE__ */ new Map([[
813
+ "target",
814
+ /* @__PURE__ */ new Set([
815
+ "_self",
816
+ "_blank"
817
+ ])
818
+ ]])
819
+ }
820
+ ]
821
+ ]));
822
+ /**
823
+ * @license
824
+ * SPDX-License-Identifier: Apache-2.0
825
+ */
826
+ class Et {
827
+ constructor(e, t) {
828
+ f(this, "sanitizerTable");
829
+ f(this, "changes", []);
830
+ this.sanitizerTable = e, G(t);
831
+ }
832
+ sanitizeAssertUnchanged(e) {
833
+ this.changes = [];
834
+ const t = this.sanitize(e);
835
+ if (this.changes.length !== 0) {
836
+ let n = "";
837
+ throw process.env.NODE_ENV !== "production" && (n = `Unexpected change to HTML value as a result of sanitization. Input: "${e}", sanitized output: "${t}"
838
+ List of changes:${this.changes.join(`
839
+ `)}`), new Error(n);
840
+ }
841
+ return t;
842
+ }
843
+ sanitize(e) {
844
+ const t = document.createElement("span");
845
+ t.appendChild(this.sanitizeToFragment(e));
846
+ let n = new XMLSerializer().serializeToString(t);
847
+ return n = n.slice(n.indexOf(">") + 1, n.lastIndexOf("</")), W(n);
848
+ }
849
+ sanitizeToFragment(e) {
850
+ const t = Ze(e), n = document.createTreeWalker(
851
+ t,
852
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT,
853
+ // IE10 and IE11 won't accept a proper `NodeFilter` interface, and
854
+ // expect the filtering function to be passed directly. It seems that
855
+ // other browsers also do not mind getting the function directly. see
856
+ // https://stackoverflow.com/q/38245898
857
+ (c) => this.nodeFilter(c),
858
+ // @ts-ignore: error TS2554: Expected 1-3 arguments, but got 4.
859
+ !1
860
+ );
861
+ let r = n.nextNode();
862
+ const o = document.createDocumentFragment();
863
+ let a = o;
864
+ for (; r !== null; ) {
865
+ let c;
866
+ if (Tt(r))
867
+ c = this.sanitizeTextNode(r);
868
+ else if (Rt(r))
869
+ c = this.sanitizeElementNode(r);
870
+ else
871
+ throw new Error("Node is not of type text or element");
872
+ if (a.appendChild(c), r = n.firstChild(), r)
873
+ a = c;
874
+ else
875
+ for (; !(r = n.nextSibling()) && (r = n.parentNode()); )
876
+ a = a.parentNode;
877
+ }
878
+ return o;
879
+ }
880
+ sanitizeTextNode(e) {
881
+ return document.createTextNode(e.data);
882
+ }
883
+ sanitizeElementNode(e) {
884
+ const t = Ct(e), n = document.createElement(t), r = e.attributes;
885
+ for (const { name: o, value: a } of r) {
886
+ const c = this.sanitizerTable.getAttributePolicy(o, t);
887
+ if (!this.satisfiesAllConditions(c.conditions, r)) {
888
+ this.recordChange(`Not all conditions satisfied for attribute: ${o}.`);
889
+ continue;
890
+ }
891
+ switch (c.policyAction) {
892
+ case d.KEEP:
893
+ n.setAttribute(o, a);
894
+ break;
895
+ case d.KEEP_AND_SANITIZE_URL:
896
+ const s = $e(a);
897
+ s !== a && this.recordChange(`Url in attribute ${o} was modified during sanitization. Original url:"${a}" was sanitized to: "${s}"`), n.setAttribute(o, s);
898
+ break;
899
+ case d.KEEP_AND_NORMALIZE:
900
+ n.setAttribute(o, a.toLowerCase());
901
+ break;
902
+ case d.KEEP_AND_SANITIZE_STYLE:
903
+ n.setAttribute(o, a);
904
+ break;
905
+ case d.DROP:
906
+ this.recordChange(`Attribute: ${o} was dropped`);
907
+ break;
908
+ default:
909
+ ei(c.policyAction, "Unhandled AttributePolicyAction case");
910
+ }
911
+ }
912
+ return n;
913
+ }
914
+ nodeFilter(e) {
915
+ if (Tt(e))
916
+ return NodeFilter.FILTER_ACCEPT;
917
+ if (!Rt(e))
918
+ return NodeFilter.FILTER_REJECT;
919
+ const t = Ct(e);
920
+ return t === null ? (this.recordChange(`Node name was null for node: ${e}`), NodeFilter.FILTER_REJECT) : this.sanitizerTable.isAllowedElement(t) ? NodeFilter.FILTER_ACCEPT : (this.recordChange(`Element: ${t} was dropped`), NodeFilter.FILTER_REJECT);
921
+ }
922
+ recordChange(e) {
923
+ process.env.NODE_ENV !== "production" ? this.changes.push(e) : this.changes.length === 0 && this.changes.push("");
924
+ }
925
+ satisfiesAllConditions(e, t) {
926
+ var n;
927
+ if (!e)
928
+ return !0;
929
+ for (const [r, o] of e) {
930
+ const a = (n = t.getNamedItem(r)) == null ? void 0 : n.value;
931
+ if (a && !o.has(a))
932
+ return !1;
933
+ }
934
+ return !0;
935
+ }
936
+ }
937
+ const St = /* @__PURE__ */ (() => new Et(oe, P))();
938
+ function Je(i) {
939
+ return St.sanitize(i);
940
+ }
941
+ function Qe(i) {
942
+ return St.sanitizeAssertUnchanged(i);
943
+ }
944
+ function ti(i) {
945
+ return St.sanitizeToFragment(i);
946
+ }
947
+ function ei(i, e = `unexpected value ${i}!`) {
948
+ throw new Error(e);
949
+ }
950
+ const ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
951
+ __proto__: null,
952
+ HtmlSanitizerImpl: Et,
953
+ sanitizeHtml: Je,
954
+ sanitizeHtmlAssertUnchanged: Qe,
955
+ sanitizeHtmlToFragment: ti
956
+ }, Symbol.toStringTag, { value: "Module" })), ni = /* @__PURE__ */ y(ii);
957
+ /**
958
+ * @license
959
+ * SPDX-License-Identifier: Apache-2.0
960
+ */
961
+ class ri {
962
+ constructor() {
963
+ f(this, "sanitizerTable");
964
+ // To denote if the builder has called build() and therefore should make no
965
+ // further changes to the sanitizer table.
966
+ f(this, "calledBuild", !1);
967
+ this.sanitizerTable = oe;
968
+ }
969
+ /** Builder option to restrict allowed elements to a smaller subset. */
970
+ onlyAllowElements(e) {
971
+ const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
972
+ for (let r of e) {
973
+ if (r = r.toUpperCase(), !this.sanitizerTable.isAllowedElement(r))
974
+ throw new Error(`Element: ${r}, is not allowed by html5_contract.textpb`);
975
+ const o = this.sanitizerTable.elementPolicies.get(r);
976
+ o !== void 0 ? n.set(r, o) : t.add(r);
977
+ }
978
+ return this.sanitizerTable = new z(t, n, this.sanitizerTable.allowedGlobalAttributes, this.sanitizerTable.globalAttributePolicies), this;
979
+ }
980
+ /**
981
+ * Builder option to restrict allowed attributes to a smaller subset.
982
+ *
983
+ * If the attribute isn't currently allowed then it won't be added.
984
+ */
985
+ onlyAllowAttributes(e) {
986
+ const t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
987
+ for (const o of e)
988
+ this.sanitizerTable.allowedGlobalAttributes.has(o) && t.add(o), this.sanitizerTable.globalAttributePolicies.has(o) && n.set(o, this.sanitizerTable.globalAttributePolicies.get(o));
989
+ for (const [o, a] of this.sanitizerTable.elementPolicies.entries()) {
990
+ const c = /* @__PURE__ */ new Map();
991
+ for (const [s, p] of a.entries())
992
+ e.has(s) && c.set(s, p);
993
+ r.set(o, c);
994
+ }
995
+ return this.sanitizerTable = new z(this.sanitizerTable.allowedElements, r, t, n), this;
996
+ }
997
+ /**
998
+ * Allows the set of data attributes passed.
999
+ *
1000
+ * These values must be prefixed with "data-"
1001
+ *
1002
+ * If called with onlyAllowElements or onlyAllowAttributes, those methods must
1003
+ * be called first.
1004
+ */
1005
+ allowDataAttributes(e) {
1006
+ const t = new Set(this.sanitizerTable.allowedGlobalAttributes);
1007
+ for (const n of e) {
1008
+ if (n.indexOf("data-") !== 0)
1009
+ throw new Error(`data attribute: ${n} does not begin with the prefix "data-"`);
1010
+ t.add(n);
1011
+ }
1012
+ return this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, t, this.sanitizerTable.globalAttributePolicies), this;
1013
+ }
1014
+ /**
1015
+ * Preserves style attributes. Note that the sanitizer won't parse and
1016
+ * sanitize the values but keep them as they are. In particular this means
1017
+ * that the code will be able to call functions that could do undesirable
1018
+ * things (e.g. `url` to trigger a network request), as well as any custom
1019
+ * properties or functions defined by the application.
1020
+ */
1021
+ allowStyleAttributes() {
1022
+ const e = new Map(this.sanitizerTable.globalAttributePolicies);
1023
+ return e.set("style", { policyAction: d.KEEP_AND_SANITIZE_STYLE }), this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
1024
+ }
1025
+ /**
1026
+ * Preserves the class attribute on all elements. This means contents can
1027
+ * adopt CSS styles from other page elements and possibly mask themselves as
1028
+ * legitimate UI elements, which can lead to phishing.
1029
+ */
1030
+ allowClassAttributes() {
1031
+ const e = new Map(this.sanitizerTable.globalAttributePolicies);
1032
+ return e.set("class", { policyAction: d.KEEP }), this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
1033
+ }
1034
+ /**
1035
+ * Preserves id attributes. This carries moderate risk as it allows an
1036
+ * element to override other elements with the same ID.
1037
+ */
1038
+ allowIdAttributes() {
1039
+ const e = new Map(this.sanitizerTable.globalAttributePolicies);
1040
+ return e.set("id", { policyAction: d.KEEP }), this.sanitizerTable = new z(this.sanitizerTable.allowedElements, this.sanitizerTable.elementPolicies, this.sanitizerTable.allowedGlobalAttributes, e), this;
1041
+ }
1042
+ build() {
1043
+ if (this.calledBuild)
1044
+ throw new Error("this sanitizer has already called build");
1045
+ return this.calledBuild = !0, new Et(this.sanitizerTable, P);
1046
+ }
1047
+ }
1048
+ const oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1049
+ __proto__: null,
1050
+ HtmlSanitizerBuilder: ri
1051
+ }, Symbol.toStringTag, { value: "Module" })), ai = /* @__PURE__ */ y(oi);
1052
+ /**
1053
+ * @license
1054
+ * SPDX-License-Identifier: Apache-2.0
1055
+ */
1056
+ function ci(i) {
1057
+ if (!(/^https:\/\//.test(i) || /^\/\//.test(i)))
1058
+ return !1;
1059
+ const e = i.indexOf("//") + 2, t = i.indexOf("/", e);
1060
+ if (t <= e)
1061
+ throw new Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");
1062
+ const n = i.substring(e, t);
1063
+ if (!/^[0-9a-z.:-]+$/i.test(n))
1064
+ throw new Error("The origin contains unsupported characters.");
1065
+ if (!/^[^:]*(:[0-9]+)?$/i.test(n))
1066
+ throw new Error("Invalid port number.");
1067
+ if (!/(^|\.)[a-z][^.]*$/i.test(n))
1068
+ throw new Error("The top-level domain must start with a letter.");
1069
+ return !0;
1070
+ }
1071
+ function si(i) {
1072
+ if (!/^about:blank/.test(i))
1073
+ return !1;
1074
+ if (i !== "about:blank" && !/^about:blank#/.test(i))
1075
+ throw new Error("The about url is invalid.");
1076
+ return !0;
1077
+ }
1078
+ function li(i) {
1079
+ if (!/^\//.test(i))
1080
+ return !1;
1081
+ if (i === "/" || i.length > 1 && i[1] !== "/" && i[1] !== "\\")
1082
+ return !0;
1083
+ throw new Error("The path start in the url is invalid.");
1084
+ }
1085
+ function pi(i, ...e) {
1086
+ if (process.env.NODE_ENV !== "production" && Y(i, !0, "trustedResourceUrl is a template literal tag function and can only be called as such (e.g. trustedResourceUrl`/somepath.js`)"), e.length === 0)
1087
+ return q(i[0]);
1088
+ const t = i[0].toLowerCase();
1089
+ if (process.env.NODE_ENV !== "production") {
1090
+ if (/^data:/.test(t))
1091
+ throw new Error("Data URLs cannot have expressions in the template literal input.");
1092
+ if (!ci(t) && !li(t) && !si(t))
1093
+ throw new Error("Trying to interpolate expressions in an unsupported url format.");
1094
+ }
1095
+ const n = [i[0]];
1096
+ for (let r = 0; r < e.length; r++)
1097
+ n.push(encodeURIComponent(e[r])), n.push(i[r + 1]);
1098
+ return q(n.join(""));
1099
+ }
1100
+ function ui(i, e) {
1101
+ let t = pt(i).toString();
1102
+ if (/#/.test(t)) {
1103
+ let r = "";
1104
+ throw process.env.NODE_ENV !== "production" && (r = `Found a hash in url (${t}), appending not supported`), new Error(r);
1105
+ }
1106
+ let n = /\?/.test(t) ? "&" : "?";
1107
+ return e.forEach((r, o) => {
1108
+ const a = r instanceof Array ? r : [r];
1109
+ for (let c = 0; c < a.length; c++) {
1110
+ const s = a[c];
1111
+ s != null && (t += n + encodeURIComponent(o) + "=" + encodeURIComponent(String(s)), n = "&");
1112
+ }
1113
+ }), q(t);
1114
+ }
1115
+ const di = /[^#]*/;
1116
+ function hi(i, e) {
1117
+ const t = pt(i).toString();
1118
+ return q(di.exec(t)[0] + "#" + e);
1119
+ }
1120
+ function mi(i) {
1121
+ const e = ut(i).toString(), t = new Blob([e], { type: "text/javascript" });
1122
+ return q(URL.createObjectURL(t));
1123
+ }
1124
+ const fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1125
+ __proto__: null,
1126
+ appendParams: ui,
1127
+ blobUrlFromScript: mi,
1128
+ replaceFragment: hi,
1129
+ trustedResourceUrl: pi
1130
+ }, Symbol.toStringTag, { value: "Module" })), vi = /* @__PURE__ */ y(fi);
1131
+ /**
1132
+ * @license
1133
+ * SPDX-License-Identifier: Apache-2.0
1134
+ */
1135
+ function gi(i) {
1136
+ return process.env.NODE_ENV !== "production" && Y(i, !1, "safeScript is a template literal tag function that only accepts template literals without expressions. For example, safeScript`foo`;"), tt(i[0]);
1137
+ }
1138
+ function _i(i) {
1139
+ return tt(i.map(ut).join(""));
1140
+ }
1141
+ function ae(i) {
1142
+ return tt(JSON.stringify(i).replace(/</g, "\\x3c"));
1143
+ }
1144
+ function yi(i, ...e) {
1145
+ if (process.env.NODE_ENV !== "production") {
1146
+ if (e.some((t) => t !== ""))
1147
+ throw new Error("safeScriptWithArgs only allows empty string expressions to enable inline comments.");
1148
+ Y(i, !0, "safeScriptWithArgs is a template literal tag function that only accepts template literals. For example, safeScriptWithArgs`foo`;");
1149
+ }
1150
+ return (...t) => {
1151
+ const n = t.map((r) => ae(r).toString());
1152
+ return tt(`(${i.join("")})(${n.join(",")})`);
1153
+ };
1154
+ }
1155
+ const Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1156
+ __proto__: null,
1157
+ concatScripts: _i,
1158
+ safeScript: gi,
1159
+ safeScriptWithArgs: yi,
1160
+ scriptFromJson: ae
1161
+ }, Symbol.toStringTag, { value: "Module" })), bi = /* @__PURE__ */ y(Ai);
1162
+ /**
1163
+ * @license
1164
+ * SPDX-License-Identifier: Apache-2.0
1165
+ */
1166
+ function Ei(i) {
1167
+ process.env.NODE_ENV !== "production" && Y(i, !1, "safeStyle is a template literal tag function that only accepts template literals without expressions. For example, safeStyle`foo`;");
1168
+ const e = i[0];
1169
+ if (process.env.NODE_ENV !== "production") {
1170
+ if (/[<>]/.test(e))
1171
+ throw new Error("Forbidden characters in style string: " + e);
1172
+ if (!/;$/.test(e))
1173
+ throw new Error('Style string does not end with ";": ' + e);
1174
+ if (!/:/.test(e))
1175
+ throw new Error('Style string should contain one or more ":": ' + e);
1176
+ }
1177
+ return bt(e);
1178
+ }
1179
+ function Si(i) {
1180
+ return bt(i.map(ne).join(""));
1181
+ }
1182
+ const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1183
+ __proto__: null,
1184
+ concatStyles: Si,
1185
+ safeStyle: Ei
1186
+ }, Symbol.toStringTag, { value: "Module" })), Ii = /* @__PURE__ */ y(wi);
1187
+ /**
1188
+ * @license
1189
+ * SPDX-License-Identifier: Apache-2.0
1190
+ */
1191
+ class ce {
1192
+ constructor() {
1193
+ // @ts-ignore: error TS6133: 'brand' is declared but its value is never read.
1194
+ f(this, "brand");
1195
+ }
1196
+ // To prevent structural typing.
1197
+ }
1198
+ class wt extends ce {
1199
+ constructor(t, n) {
1200
+ super();
1201
+ f(this, "privateDoNotAccessOrElseWrappedStyleSheet");
1202
+ process.env.NODE_ENV !== "production" && G(n), this.privateDoNotAccessOrElseWrappedStyleSheet = t;
1203
+ }
1204
+ toString() {
1205
+ return this.privateDoNotAccessOrElseWrappedStyleSheet;
1206
+ }
1207
+ }
1208
+ function It(i) {
1209
+ return new wt(i, P);
1210
+ }
1211
+ function Ci(i) {
1212
+ return i instanceof wt;
1213
+ }
1214
+ function se(i) {
1215
+ if (i instanceof wt)
1216
+ return i.privateDoNotAccessOrElseWrappedStyleSheet;
1217
+ {
1218
+ let e = "";
1219
+ throw process.env.NODE_ENV !== "production" && (e = "Unexpected type when unwrapping SafeStyleSheet"), new Error(e);
1220
+ }
1221
+ }
1222
+ const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1223
+ __proto__: null,
1224
+ SafeStyleSheet: ce,
1225
+ createStyleSheet: It,
1226
+ isStyleSheet: Ci,
1227
+ unwrapStyleSheet: se
1228
+ }, Symbol.toStringTag, { value: "Module" }));
1229
+ /**
1230
+ * @license
1231
+ * SPDX-License-Identifier: Apache-2.0
1232
+ */
1233
+ function Ri(i) {
1234
+ process.env.NODE_ENV !== "production" && Y(i, !1, "safeStyleSheet is a template literal tag function that only accepts template literals without expressions. For example, safeStyleSheet`foo`;");
1235
+ const e = i[0];
1236
+ if (process.env.NODE_ENV !== "production" && /[<>]/.test(e))
1237
+ throw new Error("Forbidden characters in styleSheet string: " + e);
1238
+ return It(e);
1239
+ }
1240
+ function Ni(i) {
1241
+ return It(i.map(se).join(""));
1242
+ }
1243
+ const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1244
+ __proto__: null,
1245
+ concatStyleSheets: Ni,
1246
+ safeStyleSheet: Ri
1247
+ }, Symbol.toStringTag, { value: "Module" })), Di = /* @__PURE__ */ y(Oi), Pi = /* @__PURE__ */ y(Ae), xi = /* @__PURE__ */ y(Ne), Fi = /* @__PURE__ */ y(Pe), Li = /* @__PURE__ */ y(Ue), Ui = /* @__PURE__ */ y(Ve), Mi = /* @__PURE__ */ y(Ti);
1248
+ (function(i) {
1249
+ /**
1250
+ * @license
1251
+ * SPDX-License-Identifier: Apache-2.0
1252
+ */
1253
+ Object.defineProperty(i, "__esModule", { value: !0 }), i.unwrapStyleSheet = i.SafeStyleSheet = i.isStyleSheet = i.unwrapStyle = i.SafeStyle = i.isStyle = i.unwrapScript = i.SafeScript = i.isScript = i.EMPTY_SCRIPT = i.unwrapResourceUrl = i.TrustedResourceUrl = i.isResourceUrl = i.unwrapHtml = i.SafeHtml = i.isHtml = i.EMPTY_HTML = i.unwrapAttributePrefix = i.SafeAttributePrefix = i.safeStyleSheet = i.concatStyleSheets = i.safeStyle = i.concatStyles = i.scriptFromJson = i.safeScriptWithArgs = i.safeScript = i.concatScripts = i.trustedResourceUrl = i.replaceFragment = i.blobUrlFromScript = i.appendParams = i.HtmlSanitizerBuilder = i.sanitizeHtmlToFragment = i.sanitizeHtmlAssertUnchanged = i.sanitizeHtml = i.htmlEscape = i.createScriptSrc = i.createScript = i.concatHtmls = i.safeAttrPrefix = void 0;
1254
+ var e = we;
1255
+ Object.defineProperty(i, "safeAttrPrefix", { enumerable: !0, get: function() {
1256
+ return e.safeAttrPrefix;
1257
+ } });
1258
+ var t = Ge;
1259
+ Object.defineProperty(i, "concatHtmls", { enumerable: !0, get: function() {
1260
+ return t.concatHtmls;
1261
+ } }), Object.defineProperty(i, "createScript", { enumerable: !0, get: function() {
1262
+ return t.createScript;
1263
+ } }), Object.defineProperty(i, "createScriptSrc", { enumerable: !0, get: function() {
1264
+ return t.createScriptSrc;
1265
+ } }), Object.defineProperty(i, "htmlEscape", { enumerable: !0, get: function() {
1266
+ return t.htmlEscape;
1267
+ } });
1268
+ var n = ni;
1269
+ Object.defineProperty(i, "sanitizeHtml", { enumerable: !0, get: function() {
1270
+ return n.sanitizeHtml;
1271
+ } }), Object.defineProperty(i, "sanitizeHtmlAssertUnchanged", { enumerable: !0, get: function() {
1272
+ return n.sanitizeHtmlAssertUnchanged;
1273
+ } }), Object.defineProperty(i, "sanitizeHtmlToFragment", { enumerable: !0, get: function() {
1274
+ return n.sanitizeHtmlToFragment;
1275
+ } });
1276
+ var r = ai;
1277
+ Object.defineProperty(i, "HtmlSanitizerBuilder", { enumerable: !0, get: function() {
1278
+ return r.HtmlSanitizerBuilder;
1279
+ } });
1280
+ var o = vi;
1281
+ Object.defineProperty(i, "appendParams", { enumerable: !0, get: function() {
1282
+ return o.appendParams;
1283
+ } }), Object.defineProperty(i, "blobUrlFromScript", { enumerable: !0, get: function() {
1284
+ return o.blobUrlFromScript;
1285
+ } }), Object.defineProperty(i, "replaceFragment", { enumerable: !0, get: function() {
1286
+ return o.replaceFragment;
1287
+ } }), Object.defineProperty(i, "trustedResourceUrl", { enumerable: !0, get: function() {
1288
+ return o.trustedResourceUrl;
1289
+ } });
1290
+ var a = bi;
1291
+ Object.defineProperty(i, "concatScripts", { enumerable: !0, get: function() {
1292
+ return a.concatScripts;
1293
+ } }), Object.defineProperty(i, "safeScript", { enumerable: !0, get: function() {
1294
+ return a.safeScript;
1295
+ } }), Object.defineProperty(i, "safeScriptWithArgs", { enumerable: !0, get: function() {
1296
+ return a.safeScriptWithArgs;
1297
+ } }), Object.defineProperty(i, "scriptFromJson", { enumerable: !0, get: function() {
1298
+ return a.scriptFromJson;
1299
+ } });
1300
+ var c = Ii;
1301
+ Object.defineProperty(i, "concatStyles", { enumerable: !0, get: function() {
1302
+ return c.concatStyles;
1303
+ } }), Object.defineProperty(i, "safeStyle", { enumerable: !0, get: function() {
1304
+ return c.safeStyle;
1305
+ } });
1306
+ var s = Di;
1307
+ Object.defineProperty(i, "concatStyleSheets", { enumerable: !0, get: function() {
1308
+ return s.concatStyleSheets;
1309
+ } }), Object.defineProperty(i, "safeStyleSheet", { enumerable: !0, get: function() {
1310
+ return s.safeStyleSheet;
1311
+ } });
1312
+ var p = Pi;
1313
+ Object.defineProperty(i, "SafeAttributePrefix", { enumerable: !0, get: function() {
1314
+ return p.SafeAttributePrefix;
1315
+ } }), Object.defineProperty(i, "unwrapAttributePrefix", { enumerable: !0, get: function() {
1316
+ return p.unwrapAttributePrefix;
1317
+ } });
1318
+ var u = xi;
1319
+ Object.defineProperty(i, "EMPTY_HTML", { enumerable: !0, get: function() {
1320
+ return u.EMPTY_HTML;
1321
+ } }), Object.defineProperty(i, "isHtml", { enumerable: !0, get: function() {
1322
+ return u.isHtml;
1323
+ } }), Object.defineProperty(i, "SafeHtml", { enumerable: !0, get: function() {
1324
+ return u.SafeHtml;
1325
+ } }), Object.defineProperty(i, "unwrapHtml", { enumerable: !0, get: function() {
1326
+ return u.unwrapHtml;
1327
+ } });
1328
+ var h = Fi;
1329
+ Object.defineProperty(i, "isResourceUrl", { enumerable: !0, get: function() {
1330
+ return h.isResourceUrl;
1331
+ } }), Object.defineProperty(i, "TrustedResourceUrl", { enumerable: !0, get: function() {
1332
+ return h.TrustedResourceUrl;
1333
+ } }), Object.defineProperty(i, "unwrapResourceUrl", { enumerable: !0, get: function() {
1334
+ return h.unwrapResourceUrl;
1335
+ } });
1336
+ var b = Li;
1337
+ Object.defineProperty(i, "EMPTY_SCRIPT", { enumerable: !0, get: function() {
1338
+ return b.EMPTY_SCRIPT;
1339
+ } }), Object.defineProperty(i, "isScript", { enumerable: !0, get: function() {
1340
+ return b.isScript;
1341
+ } }), Object.defineProperty(i, "SafeScript", { enumerable: !0, get: function() {
1342
+ return b.SafeScript;
1343
+ } }), Object.defineProperty(i, "unwrapScript", { enumerable: !0, get: function() {
1344
+ return b.unwrapScript;
1345
+ } });
1346
+ var N = Ui;
1347
+ Object.defineProperty(i, "isStyle", { enumerable: !0, get: function() {
1348
+ return N.isStyle;
1349
+ } }), Object.defineProperty(i, "SafeStyle", { enumerable: !0, get: function() {
1350
+ return N.SafeStyle;
1351
+ } }), Object.defineProperty(i, "unwrapStyle", { enumerable: !0, get: function() {
1352
+ return N.unwrapStyle;
1353
+ } });
1354
+ var j = Mi;
1355
+ Object.defineProperty(i, "isStyleSheet", { enumerable: !0, get: function() {
1356
+ return j.isStyleSheet;
1357
+ } }), Object.defineProperty(i, "SafeStyleSheet", { enumerable: !0, get: function() {
1358
+ return j.SafeStyleSheet;
1359
+ } }), Object.defineProperty(i, "unwrapStyleSheet", { enumerable: !0, get: function() {
1360
+ return j.unwrapStyleSheet;
1361
+ } });
1362
+ })(L);
1363
+ /**
1364
+ * @license
1365
+ * Copyright 2020 Google Inc.
1366
+ *
1367
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1368
+ * of this software and associated documentation files (the "Software"), to deal
1369
+ * in the Software without restriction, including without limitation the rights
1370
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1371
+ * copies of the Software, and to permit persons to whom the Software is
1372
+ * furnished to do so, subject to the following conditions:
1373
+ *
1374
+ * The above copyright notice and this permission notice shall be included in
1375
+ * all copies or substantial portions of the Software.
1376
+ *
1377
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1378
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1379
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1380
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1381
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1382
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1383
+ * THE SOFTWARE.
1384
+ */
1385
+ var zi = (
1386
+ /** @class */
1387
+ function() {
1388
+ function i() {
1389
+ this.rafIDs = /* @__PURE__ */ new Map();
1390
+ }
1391
+ return i.prototype.request = function(e, t) {
1392
+ var n = this;
1393
+ this.cancel(e);
1394
+ var r = requestAnimationFrame(function(o) {
1395
+ n.rafIDs.delete(e), t(o);
1396
+ });
1397
+ this.rafIDs.set(e, r);
1398
+ }, i.prototype.cancel = function(e) {
1399
+ var t = this.rafIDs.get(e);
1400
+ t && (cancelAnimationFrame(t), this.rafIDs.delete(e));
1401
+ }, i.prototype.cancelAll = function() {
1402
+ var e = this;
1403
+ this.rafIDs.forEach(function(t, n) {
1404
+ e.cancel(n);
1405
+ });
1406
+ }, i.prototype.getQueue = function() {
1407
+ var e = [];
1408
+ return this.rafIDs.forEach(function(t, n) {
1409
+ e.push(n);
1410
+ }), e;
1411
+ }, i;
1412
+ }()
1413
+ );
1414
+ /**
1415
+ * @license
1416
+ * Copyright 2016 Google Inc.
1417
+ *
1418
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1419
+ * of this software and associated documentation files (the "Software"), to deal
1420
+ * in the Software without restriction, including without limitation the rights
1421
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1422
+ * copies of the Software, and to permit persons to whom the Software is
1423
+ * furnished to do so, subject to the following conditions:
1424
+ *
1425
+ * The above copyright notice and this permission notice shall be included in
1426
+ * all copies or substantial portions of the Software.
1427
+ *
1428
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1429
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1430
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1431
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1432
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1433
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1434
+ * THE SOFTWARE.
1435
+ */
1436
+ var et = (
1437
+ /** @class */
1438
+ function() {
1439
+ function i(e) {
1440
+ e === void 0 && (e = {}), this.adapter = e;
1441
+ }
1442
+ return Object.defineProperty(i, "cssClasses", {
1443
+ get: function() {
1444
+ return {};
1445
+ },
1446
+ enumerable: !1,
1447
+ configurable: !0
1448
+ }), Object.defineProperty(i, "strings", {
1449
+ get: function() {
1450
+ return {};
1451
+ },
1452
+ enumerable: !1,
1453
+ configurable: !0
1454
+ }), Object.defineProperty(i, "numbers", {
1455
+ get: function() {
1456
+ return {};
1457
+ },
1458
+ enumerable: !1,
1459
+ configurable: !0
1460
+ }), Object.defineProperty(i, "defaultAdapter", {
1461
+ get: function() {
1462
+ return {};
1463
+ },
1464
+ enumerable: !1,
1465
+ configurable: !0
1466
+ }), i.prototype.init = function() {
1467
+ }, i.prototype.destroy = function() {
1468
+ }, i;
1469
+ }()
1470
+ );
1471
+ /**
1472
+ * @license
1473
+ * Copyright 2020 Google Inc.
1474
+ *
1475
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1476
+ * of this software and associated documentation files (the "Software"), to deal
1477
+ * in the Software without restriction, including without limitation the rights
1478
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1479
+ * copies of the Software, and to permit persons to whom the Software is
1480
+ * furnished to do so, subject to the following conditions:
1481
+ *
1482
+ * The above copyright notice and this permission notice shall be included in
1483
+ * all copies or substantial portions of the Software.
1484
+ *
1485
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1486
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1487
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1488
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1489
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1490
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1491
+ * THE SOFTWARE.
1492
+ */
1493
+ var l = {
1494
+ UNKNOWN: "Unknown",
1495
+ BACKSPACE: "Backspace",
1496
+ ENTER: "Enter",
1497
+ SPACEBAR: "Spacebar",
1498
+ PAGE_UP: "PageUp",
1499
+ PAGE_DOWN: "PageDown",
1500
+ END: "End",
1501
+ HOME: "Home",
1502
+ ARROW_LEFT: "ArrowLeft",
1503
+ ARROW_UP: "ArrowUp",
1504
+ ARROW_RIGHT: "ArrowRight",
1505
+ ARROW_DOWN: "ArrowDown",
1506
+ DELETE: "Delete",
1507
+ ESCAPE: "Escape",
1508
+ TAB: "Tab"
1509
+ }, g = /* @__PURE__ */ new Set();
1510
+ g.add(l.BACKSPACE);
1511
+ g.add(l.ENTER);
1512
+ g.add(l.SPACEBAR);
1513
+ g.add(l.PAGE_UP);
1514
+ g.add(l.PAGE_DOWN);
1515
+ g.add(l.END);
1516
+ g.add(l.HOME);
1517
+ g.add(l.ARROW_LEFT);
1518
+ g.add(l.ARROW_UP);
1519
+ g.add(l.ARROW_RIGHT);
1520
+ g.add(l.ARROW_DOWN);
1521
+ g.add(l.DELETE);
1522
+ g.add(l.ESCAPE);
1523
+ g.add(l.TAB);
1524
+ var A = {
1525
+ BACKSPACE: 8,
1526
+ ENTER: 13,
1527
+ SPACEBAR: 32,
1528
+ PAGE_UP: 33,
1529
+ PAGE_DOWN: 34,
1530
+ END: 35,
1531
+ HOME: 36,
1532
+ ARROW_LEFT: 37,
1533
+ ARROW_UP: 38,
1534
+ ARROW_RIGHT: 39,
1535
+ ARROW_DOWN: 40,
1536
+ DELETE: 46,
1537
+ ESCAPE: 27,
1538
+ TAB: 9
1539
+ }, _ = /* @__PURE__ */ new Map();
1540
+ _.set(A.BACKSPACE, l.BACKSPACE);
1541
+ _.set(A.ENTER, l.ENTER);
1542
+ _.set(A.SPACEBAR, l.SPACEBAR);
1543
+ _.set(A.PAGE_UP, l.PAGE_UP);
1544
+ _.set(A.PAGE_DOWN, l.PAGE_DOWN);
1545
+ _.set(A.END, l.END);
1546
+ _.set(A.HOME, l.HOME);
1547
+ _.set(A.ARROW_LEFT, l.ARROW_LEFT);
1548
+ _.set(A.ARROW_UP, l.ARROW_UP);
1549
+ _.set(A.ARROW_RIGHT, l.ARROW_RIGHT);
1550
+ _.set(A.ARROW_DOWN, l.ARROW_DOWN);
1551
+ _.set(A.DELETE, l.DELETE);
1552
+ _.set(A.ESCAPE, l.ESCAPE);
1553
+ _.set(A.TAB, l.TAB);
1554
+ var x = /* @__PURE__ */ new Set();
1555
+ x.add(l.PAGE_UP);
1556
+ x.add(l.PAGE_DOWN);
1557
+ x.add(l.END);
1558
+ x.add(l.HOME);
1559
+ x.add(l.ARROW_LEFT);
1560
+ x.add(l.ARROW_UP);
1561
+ x.add(l.ARROW_RIGHT);
1562
+ x.add(l.ARROW_DOWN);
1563
+ function le(i) {
1564
+ var e = i.key;
1565
+ if (g.has(e))
1566
+ return e;
1567
+ var t = _.get(i.keyCode);
1568
+ return t || l.UNKNOWN;
1569
+ }
1570
+ function Hi(i) {
1571
+ return x.has(le(i));
1572
+ }
1573
+ /**
1574
+ * @license
1575
+ * Copyright 2020 Google Inc.
1576
+ *
1577
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1578
+ * of this software and associated documentation files (the "Software"), to deal
1579
+ * in the Software without restriction, including without limitation the rights
1580
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1581
+ * copies of the Software, and to permit persons to whom the Software is
1582
+ * furnished to do so, subject to the following conditions:
1583
+ *
1584
+ * The above copyright notice and this permission notice shall be included in
1585
+ * all copies or substantial portions of the Software.
1586
+ *
1587
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1588
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1589
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1590
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1591
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1592
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1593
+ * THE SOFTWARE.
1594
+ */
1595
+ var Q;
1596
+ (function(i) {
1597
+ i.PRIMARY_ACTION = "mdc-evolution-chip__action--primary", i.TRAILING_ACTION = "mdc-evolution-chip__action--trailing", i.CHIP_ROOT = "mdc-evolution-chip";
1598
+ })(Q || (Q = {}));
1599
+ var D;
1600
+ (function(i) {
1601
+ i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.CLICK = 1] = "CLICK", i[i.BACKSPACE_KEY = 2] = "BACKSPACE_KEY", i[i.DELETE_KEY = 3] = "DELETE_KEY", i[i.SPACEBAR_KEY = 4] = "SPACEBAR_KEY", i[i.ENTER_KEY = 5] = "ENTER_KEY";
1602
+ })(D || (D = {}));
1603
+ var E;
1604
+ (function(i) {
1605
+ i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.PRIMARY = 1] = "PRIMARY", i[i.TRAILING = 2] = "TRAILING";
1606
+ })(E || (E = {}));
1607
+ var X;
1608
+ (function(i) {
1609
+ i.INTERACTION = "MDCChipAction:interaction", i.NAVIGATION = "MDCChipAction:navigation";
1610
+ })(X || (X = {}));
1611
+ var I;
1612
+ (function(i) {
1613
+ i[i.FOCUSABLE = 0] = "FOCUSABLE", i[i.FOCUSABLE_AND_FOCUSED = 1] = "FOCUSABLE_AND_FOCUSED", i[i.NOT_FOCUSABLE = 2] = "NOT_FOCUSABLE";
1614
+ })(I || (I = {}));
1615
+ var v;
1616
+ (function(i) {
1617
+ i.ARIA_DISABLED = "aria-disabled", i.ARIA_HIDDEN = "aria-hidden", i.ARIA_SELECTED = "aria-selected", i.DATA_DELETABLE = "data-mdc-deletable", i.DISABLED = "disabled", i.ROLE = "role", i.TAB_INDEX = "tabindex";
1618
+ })(v || (v = {}));
1619
+ /**
1620
+ * @license
1621
+ * Copyright 2016 Google Inc.
1622
+ *
1623
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1624
+ * of this software and associated documentation files (the "Software"), to deal
1625
+ * in the Software without restriction, including without limitation the rights
1626
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1627
+ * copies of the Software, and to permit persons to whom the Software is
1628
+ * furnished to do so, subject to the following conditions:
1629
+ *
1630
+ * The above copyright notice and this permission notice shall be included in
1631
+ * all copies or substantial portions of the Software.
1632
+ *
1633
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1634
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1635
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1636
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1637
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1638
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1639
+ * THE SOFTWARE.
1640
+ */
1641
+ var m;
1642
+ (function(i) {
1643
+ i.SELECTING = "mdc-evolution-chip--selecting", i.DESELECTING = "mdc-evolution-chip--deselecting", i.SELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--selecting-with-primary-icon", i.DESELECTING_WITH_PRIMARY_ICON = "mdc-evolution-chip--deselecting-with-primary-icon", i.DISABLED = "mdc-evolution-chip--disabled", i.ENTER = "mdc-evolution-chip--enter", i.EXIT = "mdc-evolution-chip--exit", i.SELECTED = "mdc-evolution-chip--selected", i.HIDDEN = "mdc-evolution-chip--hidden", i.WITH_PRIMARY_ICON = "mdc-evolution-chip--with-primary-icon";
1644
+ })(m || (m = {}));
1645
+ var S;
1646
+ (function(i) {
1647
+ i.INTERACTION = "MDCChip:interaction", i.NAVIGATION = "MDCChip:navigation", i.ANIMATION = "MDCChip:animation";
1648
+ })(S || (S = {}));
1649
+ var st;
1650
+ (function(i) {
1651
+ i.DATA_REMOVED_ANNOUNCEMENT = "data-mdc-removed-announcement", i.DATA_ADDED_ANNOUNCEMENT = "data-mdc-added-announcement";
1652
+ })(st || (st = {}));
1653
+ var w;
1654
+ (function(i) {
1655
+ i.ENTER = "mdc-evolution-chip-enter", i.EXIT = "mdc-evolution-chip-exit";
1656
+ })(w || (w = {}));
1657
+ /**
1658
+ * @license
1659
+ * Copyright 2020 Google Inc.
1660
+ *
1661
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1662
+ * of this software and associated documentation files (the "Software"), to deal
1663
+ * in the Software without restriction, including without limitation the rights
1664
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1665
+ * copies of the Software, and to permit persons to whom the Software is
1666
+ * furnished to do so, subject to the following conditions:
1667
+ *
1668
+ * The above copyright notice and this permission notice shall be included in
1669
+ * all copies or substantial portions of the Software.
1670
+ *
1671
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1672
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1673
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1674
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1675
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1676
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1677
+ * THE SOFTWARE.
1678
+ */
1679
+ var k;
1680
+ (function(i) {
1681
+ i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.LEFT = 1] = "LEFT", i[i.RIGHT = 2] = "RIGHT";
1682
+ })(k || (k = {}));
1683
+ var O;
1684
+ (function(i) {
1685
+ i.SELECTION = "selection", i.EXIT = "exit";
1686
+ })(O || (O = {}));
1687
+ var ki = (
1688
+ /** @class */
1689
+ function(i) {
1690
+ U(e, i);
1691
+ function e(t) {
1692
+ var n = i.call(this, T(T({}, e.defaultAdapter), t)) || this;
1693
+ return n.animFrame = new zi(), n;
1694
+ }
1695
+ return Object.defineProperty(e, "defaultAdapter", {
1696
+ get: function() {
1697
+ return {
1698
+ addClass: function() {
1699
+ },
1700
+ emitEvent: function() {
1701
+ },
1702
+ getActions: function() {
1703
+ return [];
1704
+ },
1705
+ getAttribute: function() {
1706
+ return null;
1707
+ },
1708
+ getElementID: function() {
1709
+ return "";
1710
+ },
1711
+ getOffsetWidth: function() {
1712
+ return 0;
1713
+ },
1714
+ hasClass: function() {
1715
+ return !1;
1716
+ },
1717
+ isActionDisabled: function() {
1718
+ return !1;
1719
+ },
1720
+ isActionFocusable: function() {
1721
+ return !1;
1722
+ },
1723
+ isActionSelectable: function() {
1724
+ return !1;
1725
+ },
1726
+ isActionSelected: function() {
1727
+ return !1;
1728
+ },
1729
+ isRTL: function() {
1730
+ return !1;
1731
+ },
1732
+ removeClass: function() {
1733
+ },
1734
+ setActionDisabled: function() {
1735
+ },
1736
+ setActionFocus: function() {
1737
+ },
1738
+ setActionSelected: function() {
1739
+ },
1740
+ setStyleProperty: function() {
1741
+ }
1742
+ };
1743
+ },
1744
+ enumerable: !1,
1745
+ configurable: !0
1746
+ }), e.prototype.destroy = function() {
1747
+ this.animFrame.cancelAll();
1748
+ }, e.prototype.getElementID = function() {
1749
+ return this.adapter.getElementID();
1750
+ }, e.prototype.setDisabled = function(t) {
1751
+ var n, r, o = this.getActions();
1752
+ try {
1753
+ for (var a = C(o), c = a.next(); !c.done; c = a.next()) {
1754
+ var s = c.value;
1755
+ this.adapter.setActionDisabled(s, t);
1756
+ }
1757
+ } catch (p) {
1758
+ n = { error: p };
1759
+ } finally {
1760
+ try {
1761
+ c && !c.done && (r = a.return) && r.call(a);
1762
+ } finally {
1763
+ if (n)
1764
+ throw n.error;
1765
+ }
1766
+ }
1767
+ t ? this.adapter.addClass(m.DISABLED) : this.adapter.removeClass(m.DISABLED);
1768
+ }, e.prototype.isDisabled = function() {
1769
+ var t, n, r = this.getActions();
1770
+ try {
1771
+ for (var o = C(r), a = o.next(); !a.done; a = o.next()) {
1772
+ var c = a.value;
1773
+ if (this.adapter.isActionDisabled(c))
1774
+ return !0;
1775
+ }
1776
+ } catch (s) {
1777
+ t = { error: s };
1778
+ } finally {
1779
+ try {
1780
+ a && !a.done && (n = o.return) && n.call(o);
1781
+ } finally {
1782
+ if (t)
1783
+ throw t.error;
1784
+ }
1785
+ }
1786
+ return !1;
1787
+ }, e.prototype.getActions = function() {
1788
+ return this.adapter.getActions();
1789
+ }, e.prototype.isActionFocusable = function(t) {
1790
+ return this.adapter.isActionFocusable(t);
1791
+ }, e.prototype.isActionSelectable = function(t) {
1792
+ return this.adapter.isActionSelectable(t);
1793
+ }, e.prototype.isActionSelected = function(t) {
1794
+ return this.adapter.isActionSelected(t);
1795
+ }, e.prototype.setActionFocus = function(t, n) {
1796
+ this.adapter.setActionFocus(t, n);
1797
+ }, e.prototype.setActionSelected = function(t, n) {
1798
+ this.adapter.setActionSelected(t, n), this.animateSelection(n);
1799
+ }, e.prototype.startAnimation = function(t) {
1800
+ if (t === w.ENTER) {
1801
+ this.adapter.addClass(m.ENTER);
1802
+ return;
1803
+ }
1804
+ if (t === w.EXIT) {
1805
+ this.adapter.addClass(m.EXIT);
1806
+ return;
1807
+ }
1808
+ }, e.prototype.handleAnimationEnd = function(t) {
1809
+ var n = this, r = t.animationName;
1810
+ if (r === w.ENTER) {
1811
+ this.adapter.removeClass(m.ENTER), this.adapter.emitEvent(S.ANIMATION, {
1812
+ chipID: this.getElementID(),
1813
+ animation: w.ENTER,
1814
+ addedAnnouncement: this.getAddedAnnouncement(),
1815
+ isComplete: !0
1816
+ });
1817
+ return;
1818
+ }
1819
+ if (r === w.EXIT) {
1820
+ this.adapter.removeClass(m.EXIT), this.adapter.addClass(m.HIDDEN);
1821
+ var o = this.adapter.getOffsetWidth();
1822
+ this.adapter.setStyleProperty("width", o + "px"), this.animFrame.request(O.EXIT, function() {
1823
+ n.animFrame.request(O.EXIT, function() {
1824
+ n.adapter.setStyleProperty("width", "0");
1825
+ });
1826
+ });
1827
+ }
1828
+ }, e.prototype.handleTransitionEnd = function() {
1829
+ this.adapter.hasClass(m.HIDDEN) && this.adapter.emitEvent(S.ANIMATION, {
1830
+ chipID: this.getElementID(),
1831
+ animation: w.EXIT,
1832
+ removedAnnouncement: this.getRemovedAnnouncement(),
1833
+ isComplete: !0
1834
+ });
1835
+ }, e.prototype.handleActionInteraction = function(t) {
1836
+ var n = t.detail, r = n.source, o = n.actionID, a = this.adapter.isActionSelectable(r), c = this.adapter.isActionSelected(r);
1837
+ this.adapter.emitEvent(S.INTERACTION, {
1838
+ chipID: this.getElementID(),
1839
+ shouldRemove: this.shouldRemove(n),
1840
+ actionID: o,
1841
+ isSelectable: a,
1842
+ isSelected: c,
1843
+ source: r
1844
+ });
1845
+ }, e.prototype.handleActionNavigation = function(t) {
1846
+ var n = t.detail, r = n.source, o = n.key, a = this.adapter.isRTL(), c = this.adapter.isActionFocusable(E.TRAILING), s = this.adapter.isActionFocusable(E.PRIMARY), p = this.directionFromKey(o, a), u = r === E.PRIMARY && p === k.RIGHT && c, h = r === E.TRAILING && p === k.LEFT && s;
1847
+ if (u) {
1848
+ this.navigateActions({ from: r, to: E.TRAILING });
1849
+ return;
1850
+ }
1851
+ if (h) {
1852
+ this.navigateActions({ from: r, to: E.PRIMARY });
1853
+ return;
1854
+ }
1855
+ this.adapter.emitEvent(S.NAVIGATION, {
1856
+ chipID: this.getElementID(),
1857
+ isRTL: a,
1858
+ source: r,
1859
+ key: o
1860
+ });
1861
+ }, e.prototype.directionFromKey = function(t, n) {
1862
+ var r = t === l.ARROW_LEFT, o = t === l.ARROW_RIGHT;
1863
+ return !n && r || n && o ? k.LEFT : !n && o || n && r ? k.RIGHT : k.UNSPECIFIED;
1864
+ }, e.prototype.navigateActions = function(t) {
1865
+ this.adapter.setActionFocus(t.from, I.NOT_FOCUSABLE), this.adapter.setActionFocus(t.to, I.FOCUSABLE_AND_FOCUSED);
1866
+ }, e.prototype.shouldRemove = function(t) {
1867
+ var n = t.source, r = t.trigger;
1868
+ return r === D.BACKSPACE_KEY || r === D.DELETE_KEY ? !0 : n === E.TRAILING;
1869
+ }, e.prototype.getRemovedAnnouncement = function() {
1870
+ var t = this.adapter.getAttribute(st.DATA_REMOVED_ANNOUNCEMENT);
1871
+ return t || void 0;
1872
+ }, e.prototype.getAddedAnnouncement = function() {
1873
+ var t = this.adapter.getAttribute(st.DATA_ADDED_ANNOUNCEMENT);
1874
+ return t || void 0;
1875
+ }, e.prototype.animateSelection = function(t) {
1876
+ var n = this;
1877
+ this.resetAnimationStyles(), this.animFrame.request(O.SELECTION, function() {
1878
+ n.animFrame.request(O.SELECTION, function() {
1879
+ n.updateSelectionStyles(t);
1880
+ });
1881
+ });
1882
+ }, e.prototype.resetAnimationStyles = function() {
1883
+ this.adapter.removeClass(m.SELECTING), this.adapter.removeClass(m.DESELECTING), this.adapter.removeClass(m.SELECTING_WITH_PRIMARY_ICON), this.adapter.removeClass(m.DESELECTING_WITH_PRIMARY_ICON);
1884
+ }, e.prototype.updateSelectionStyles = function(t) {
1885
+ var n = this, r = this.adapter.hasClass(m.WITH_PRIMARY_ICON);
1886
+ if (r && t) {
1887
+ this.adapter.addClass(m.SELECTING_WITH_PRIMARY_ICON), this.animFrame.request(O.SELECTION, function() {
1888
+ n.adapter.addClass(m.SELECTED);
1889
+ });
1890
+ return;
1891
+ }
1892
+ if (r && !t) {
1893
+ this.adapter.addClass(m.DESELECTING_WITH_PRIMARY_ICON), this.animFrame.request(O.SELECTION, function() {
1894
+ n.adapter.removeClass(m.SELECTED);
1895
+ });
1896
+ return;
1897
+ }
1898
+ if (t) {
1899
+ this.adapter.addClass(m.SELECTING), this.animFrame.request(O.SELECTION, function() {
1900
+ n.adapter.addClass(m.SELECTED);
1901
+ });
1902
+ return;
1903
+ }
1904
+ if (!t) {
1905
+ this.adapter.addClass(m.DESELECTING), this.animFrame.request(O.SELECTION, function() {
1906
+ n.adapter.removeClass(m.SELECTED);
1907
+ });
1908
+ return;
1909
+ }
1910
+ }, e;
1911
+ }(et)
1912
+ );
1913
+ /**
1914
+ * @license
1915
+ * Copyright 2016 Google Inc.
1916
+ *
1917
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1918
+ * of this software and associated documentation files (the "Software"), to deal
1919
+ * in the Software without restriction, including without limitation the rights
1920
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1921
+ * copies of the Software, and to permit persons to whom the Software is
1922
+ * furnished to do so, subject to the following conditions:
1923
+ *
1924
+ * The above copyright notice and this permission notice shall be included in
1925
+ * all copies or substantial portions of the Software.
1926
+ *
1927
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1928
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1929
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1930
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1931
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1932
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1933
+ * THE SOFTWARE.
1934
+ */
1935
+ function Bi(i) {
1936
+ return String(i).replace(/\-([a-z])/g, function(e, t) {
1937
+ return t.toUpperCase();
1938
+ });
1939
+ }
1940
+ var pe = (
1941
+ /** @class */
1942
+ function() {
1943
+ function i(e, t) {
1944
+ for (var n = [], r = 2; r < arguments.length; r++)
1945
+ n[r - 2] = arguments[r];
1946
+ this.root = e, this.initialize.apply(this, ge([], _e(n))), this.foundation = t === void 0 ? this.getDefaultFoundation() : t, this.foundation.init(), this.initialSyncWithDOM();
1947
+ }
1948
+ return i.attachTo = function(e) {
1949
+ return new i(e, new et({}));
1950
+ }, i.prototype.initialize = function() {
1951
+ }, i.prototype.getDefaultFoundation = function() {
1952
+ throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class");
1953
+ }, i.prototype.initialSyncWithDOM = function() {
1954
+ }, i.prototype.destroy = function() {
1955
+ this.foundation.destroy();
1956
+ }, i.prototype.listen = function(e, t, n) {
1957
+ this.root.addEventListener(e, t, n);
1958
+ }, i.prototype.unlisten = function(e, t, n) {
1959
+ this.root.removeEventListener(e, t, n);
1960
+ }, i.prototype.emit = function(e, t, n) {
1961
+ n === void 0 && (n = !1);
1962
+ var r;
1963
+ typeof CustomEvent == "function" ? r = new CustomEvent(e, {
1964
+ bubbles: n,
1965
+ detail: t
1966
+ }) : (r = document.createEvent("CustomEvent"), r.initCustomEvent(e, n, !1, t)), this.root.dispatchEvent(r);
1967
+ }, i.prototype.safeSetAttribute = function(e, t, n) {
1968
+ if (t.toLowerCase() === "tabindex")
1969
+ e.tabIndex = Number(n);
1970
+ else if (t.indexOf("data-") === 0) {
1971
+ var r = Bi(t.replace(/^data-/, ""));
1972
+ e.dataset[r] = n;
1973
+ } else
1974
+ re([L.safeAttrPrefix(Nt || (Nt = H(["aria-"], ["aria-"]))), L.safeAttrPrefix(Ot || (Ot = H(["role"], ["role"])))], e, t, n);
1975
+ }, i;
1976
+ }()
1977
+ ), Nt, Ot;
1978
+ /**
1979
+ * @license
1980
+ * Copyright 2018 Google Inc.
1981
+ *
1982
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
1983
+ * of this software and associated documentation files (the "Software"), to deal
1984
+ * in the Software without restriction, including without limitation the rights
1985
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1986
+ * copies of the Software, and to permit persons to whom the Software is
1987
+ * furnished to do so, subject to the following conditions:
1988
+ *
1989
+ * The above copyright notice and this permission notice shall be included in
1990
+ * all copies or substantial portions of the Software.
1991
+ *
1992
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1993
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1994
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1995
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1996
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1997
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1998
+ * THE SOFTWARE.
1999
+ */
2000
+ function Gi(i, e) {
2001
+ if (i.closest)
2002
+ return i.closest(e);
2003
+ for (var t = i; t; ) {
2004
+ if (ue(t, e))
2005
+ return t;
2006
+ t = t.parentElement;
2007
+ }
2008
+ return null;
2009
+ }
2010
+ function ue(i, e) {
2011
+ var t = i.matches || i.webkitMatchesSelector || i.msMatchesSelector;
2012
+ return t.call(i, e);
2013
+ }
2014
+ /**
2015
+ * @license
2016
+ * Copyright 2019 Google Inc.
2017
+ *
2018
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2019
+ * of this software and associated documentation files (the "Software"), to deal
2020
+ * in the Software without restriction, including without limitation the rights
2021
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2022
+ * copies of the Software, and to permit persons to whom the Software is
2023
+ * furnished to do so, subject to the following conditions:
2024
+ *
2025
+ * The above copyright notice and this permission notice shall be included in
2026
+ * all copies or substantial portions of the Software.
2027
+ *
2028
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2029
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2030
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2031
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2032
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2033
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2034
+ * THE SOFTWARE.
2035
+ */
2036
+ function ot(i) {
2037
+ return i === void 0 && (i = window), Wi(i) ? { passive: !0 } : !1;
2038
+ }
2039
+ function Wi(i) {
2040
+ i === void 0 && (i = window);
2041
+ var e = !1;
2042
+ try {
2043
+ var t = {
2044
+ // This function will be called when the browser
2045
+ // attempts to access the passive property.
2046
+ get passive() {
2047
+ return e = !0, !1;
2048
+ }
2049
+ }, n = function() {
2050
+ };
2051
+ i.document.addEventListener("test", n, t), i.document.removeEventListener("test", n, t);
2052
+ } catch {
2053
+ e = !1;
2054
+ }
2055
+ return e;
2056
+ }
2057
+ /**
2058
+ * @license
2059
+ * Copyright 2016 Google Inc.
2060
+ *
2061
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2062
+ * of this software and associated documentation files (the "Software"), to deal
2063
+ * in the Software without restriction, including without limitation the rights
2064
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2065
+ * copies of the Software, and to permit persons to whom the Software is
2066
+ * furnished to do so, subject to the following conditions:
2067
+ *
2068
+ * The above copyright notice and this permission notice shall be included in
2069
+ * all copies or substantial portions of the Software.
2070
+ *
2071
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2072
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2073
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2074
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2075
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2076
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2077
+ * THE SOFTWARE.
2078
+ */
2079
+ var ji = {
2080
+ // Ripple is a special case where the "root" component is really a "mixin" of
2081
+ // sorts,
2082
+ // given that it's an 'upgrade' to an existing component. That being said it
2083
+ // is the root
2084
+ // CSS class that all other CSS classes derive from.
2085
+ BG_FOCUSED: "mdc-ripple-upgraded--background-focused",
2086
+ FG_ACTIVATION: "mdc-ripple-upgraded--foreground-activation",
2087
+ FG_DEACTIVATION: "mdc-ripple-upgraded--foreground-deactivation",
2088
+ ROOT: "mdc-ripple-upgraded",
2089
+ UNBOUNDED: "mdc-ripple-upgraded--unbounded"
2090
+ }, $i = {
2091
+ VAR_FG_SCALE: "--mdc-ripple-fg-scale",
2092
+ VAR_FG_SIZE: "--mdc-ripple-fg-size",
2093
+ VAR_FG_TRANSLATE_END: "--mdc-ripple-fg-translate-end",
2094
+ VAR_FG_TRANSLATE_START: "--mdc-ripple-fg-translate-start",
2095
+ VAR_LEFT: "--mdc-ripple-left",
2096
+ VAR_TOP: "--mdc-ripple-top"
2097
+ }, Dt = {
2098
+ DEACTIVATION_TIMEOUT_MS: 225,
2099
+ // animation duration)
2100
+ FG_DEACTIVATION_MS: 150,
2101
+ // (i.e. deactivation animation duration)
2102
+ INITIAL_ORIGIN_SCALE: 0.6,
2103
+ PADDING: 10,
2104
+ TAP_DELAY_MS: 300
2105
+ // Delay between touch and simulated mouse events on touch devices
2106
+ }, at;
2107
+ function Ki(i, e) {
2108
+ e === void 0 && (e = !1);
2109
+ var t = i.CSS, n = at;
2110
+ if (typeof at == "boolean" && !e)
2111
+ return at;
2112
+ var r = t && typeof t.supports == "function";
2113
+ if (!r)
2114
+ return !1;
2115
+ var o = t.supports("--css-vars", "yes"), a = t.supports("(--css-vars: yes)") && t.supports("color", "#00000000");
2116
+ return n = o || a, e || (at = n), n;
2117
+ }
2118
+ function Vi(i, e, t) {
2119
+ if (!i)
2120
+ return { x: 0, y: 0 };
2121
+ var n = e.x, r = e.y, o = n + t.left, a = r + t.top, c, s;
2122
+ if (i.type === "touchstart") {
2123
+ var p = i;
2124
+ c = p.changedTouches[0].pageX - o, s = p.changedTouches[0].pageY - a;
2125
+ } else {
2126
+ var u = i;
2127
+ c = u.pageX - o, s = u.pageY - a;
2128
+ }
2129
+ return { x: c, y: s };
2130
+ }
2131
+ /**
2132
+ * @license
2133
+ * Copyright 2016 Google Inc.
2134
+ *
2135
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2136
+ * of this software and associated documentation files (the "Software"), to deal
2137
+ * in the Software without restriction, including without limitation the rights
2138
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2139
+ * copies of the Software, and to permit persons to whom the Software is
2140
+ * furnished to do so, subject to the following conditions:
2141
+ *
2142
+ * The above copyright notice and this permission notice shall be included in
2143
+ * all copies or substantial portions of the Software.
2144
+ *
2145
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2146
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2147
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2148
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2149
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2150
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2151
+ * THE SOFTWARE.
2152
+ */
2153
+ var Pt = [
2154
+ "touchstart",
2155
+ "pointerdown",
2156
+ "mousedown",
2157
+ "keydown"
2158
+ ], xt = [
2159
+ "touchend",
2160
+ "pointerup",
2161
+ "mouseup",
2162
+ "contextmenu"
2163
+ ], ct = [], de = (
2164
+ /** @class */
2165
+ function(i) {
2166
+ U(e, i);
2167
+ function e(t) {
2168
+ var n = i.call(this, T(T({}, e.defaultAdapter), t)) || this;
2169
+ return n.activationAnimationHasEnded = !1, n.activationTimer = 0, n.fgDeactivationRemovalTimer = 0, n.fgScale = "0", n.frame = { width: 0, height: 0 }, n.initialSize = 0, n.layoutFrame = 0, n.maxRadius = 0, n.unboundedCoords = { left: 0, top: 0 }, n.activationState = n.defaultActivationState(), n.activationTimerCallback = function() {
2170
+ n.activationAnimationHasEnded = !0, n.runDeactivationUXLogicIfReady();
2171
+ }, n.activateHandler = function(r) {
2172
+ n.activateImpl(r);
2173
+ }, n.deactivateHandler = function() {
2174
+ n.deactivateImpl();
2175
+ }, n.focusHandler = function() {
2176
+ n.handleFocus();
2177
+ }, n.blurHandler = function() {
2178
+ n.handleBlur();
2179
+ }, n.resizeHandler = function() {
2180
+ n.layout();
2181
+ }, n;
2182
+ }
2183
+ return Object.defineProperty(e, "cssClasses", {
2184
+ get: function() {
2185
+ return ji;
2186
+ },
2187
+ enumerable: !1,
2188
+ configurable: !0
2189
+ }), Object.defineProperty(e, "strings", {
2190
+ get: function() {
2191
+ return $i;
2192
+ },
2193
+ enumerable: !1,
2194
+ configurable: !0
2195
+ }), Object.defineProperty(e, "numbers", {
2196
+ get: function() {
2197
+ return Dt;
2198
+ },
2199
+ enumerable: !1,
2200
+ configurable: !0
2201
+ }), Object.defineProperty(e, "defaultAdapter", {
2202
+ get: function() {
2203
+ return {
2204
+ addClass: function() {
2205
+ },
2206
+ browserSupportsCssVars: function() {
2207
+ return !0;
2208
+ },
2209
+ computeBoundingRect: function() {
2210
+ return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 };
2211
+ },
2212
+ containsEventTarget: function() {
2213
+ return !0;
2214
+ },
2215
+ deregisterDocumentInteractionHandler: function() {
2216
+ },
2217
+ deregisterInteractionHandler: function() {
2218
+ },
2219
+ deregisterResizeHandler: function() {
2220
+ },
2221
+ getWindowPageOffset: function() {
2222
+ return { x: 0, y: 0 };
2223
+ },
2224
+ isSurfaceActive: function() {
2225
+ return !0;
2226
+ },
2227
+ isSurfaceDisabled: function() {
2228
+ return !0;
2229
+ },
2230
+ isUnbounded: function() {
2231
+ return !0;
2232
+ },
2233
+ registerDocumentInteractionHandler: function() {
2234
+ },
2235
+ registerInteractionHandler: function() {
2236
+ },
2237
+ registerResizeHandler: function() {
2238
+ },
2239
+ removeClass: function() {
2240
+ },
2241
+ updateCssVariable: function() {
2242
+ }
2243
+ };
2244
+ },
2245
+ enumerable: !1,
2246
+ configurable: !0
2247
+ }), e.prototype.init = function() {
2248
+ var t = this, n = this.supportsPressRipple();
2249
+ if (this.registerRootHandlers(n), n) {
2250
+ var r = e.cssClasses, o = r.ROOT, a = r.UNBOUNDED;
2251
+ requestAnimationFrame(function() {
2252
+ t.adapter.addClass(o), t.adapter.isUnbounded() && (t.adapter.addClass(a), t.layoutInternal());
2253
+ });
2254
+ }
2255
+ }, e.prototype.destroy = function() {
2256
+ var t = this;
2257
+ if (this.supportsPressRipple()) {
2258
+ this.activationTimer && (clearTimeout(this.activationTimer), this.activationTimer = 0, this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)), this.fgDeactivationRemovalTimer && (clearTimeout(this.fgDeactivationRemovalTimer), this.fgDeactivationRemovalTimer = 0, this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));
2259
+ var n = e.cssClasses, r = n.ROOT, o = n.UNBOUNDED;
2260
+ requestAnimationFrame(function() {
2261
+ t.adapter.removeClass(r), t.adapter.removeClass(o), t.removeCssVars();
2262
+ });
2263
+ }
2264
+ this.deregisterRootHandlers(), this.deregisterDeactivationHandlers();
2265
+ }, e.prototype.activate = function(t) {
2266
+ this.activateImpl(t);
2267
+ }, e.prototype.deactivate = function() {
2268
+ this.deactivateImpl();
2269
+ }, e.prototype.layout = function() {
2270
+ var t = this;
2271
+ this.layoutFrame && cancelAnimationFrame(this.layoutFrame), this.layoutFrame = requestAnimationFrame(function() {
2272
+ t.layoutInternal(), t.layoutFrame = 0;
2273
+ });
2274
+ }, e.prototype.setUnbounded = function(t) {
2275
+ var n = e.cssClasses.UNBOUNDED;
2276
+ t ? this.adapter.addClass(n) : this.adapter.removeClass(n);
2277
+ }, e.prototype.handleFocus = function() {
2278
+ var t = this;
2279
+ requestAnimationFrame(function() {
2280
+ t.adapter.addClass(e.cssClasses.BG_FOCUSED);
2281
+ });
2282
+ }, e.prototype.handleBlur = function() {
2283
+ var t = this;
2284
+ requestAnimationFrame(function() {
2285
+ t.adapter.removeClass(e.cssClasses.BG_FOCUSED);
2286
+ });
2287
+ }, e.prototype.supportsPressRipple = function() {
2288
+ return this.adapter.browserSupportsCssVars();
2289
+ }, e.prototype.defaultActivationState = function() {
2290
+ return {
2291
+ activationEvent: void 0,
2292
+ hasDeactivationUXRun: !1,
2293
+ isActivated: !1,
2294
+ isProgrammatic: !1,
2295
+ wasActivatedByPointer: !1,
2296
+ wasElementMadeActive: !1
2297
+ };
2298
+ }, e.prototype.registerRootHandlers = function(t) {
2299
+ var n, r;
2300
+ if (t) {
2301
+ try {
2302
+ for (var o = C(Pt), a = o.next(); !a.done; a = o.next()) {
2303
+ var c = a.value;
2304
+ this.adapter.registerInteractionHandler(c, this.activateHandler);
2305
+ }
2306
+ } catch (s) {
2307
+ n = { error: s };
2308
+ } finally {
2309
+ try {
2310
+ a && !a.done && (r = o.return) && r.call(o);
2311
+ } finally {
2312
+ if (n)
2313
+ throw n.error;
2314
+ }
2315
+ }
2316
+ this.adapter.isUnbounded() && this.adapter.registerResizeHandler(this.resizeHandler);
2317
+ }
2318
+ this.adapter.registerInteractionHandler("focus", this.focusHandler), this.adapter.registerInteractionHandler("blur", this.blurHandler);
2319
+ }, e.prototype.registerDeactivationHandlers = function(t) {
2320
+ var n, r;
2321
+ if (t.type === "keydown")
2322
+ this.adapter.registerInteractionHandler("keyup", this.deactivateHandler);
2323
+ else
2324
+ try {
2325
+ for (var o = C(xt), a = o.next(); !a.done; a = o.next()) {
2326
+ var c = a.value;
2327
+ this.adapter.registerDocumentInteractionHandler(c, this.deactivateHandler);
2328
+ }
2329
+ } catch (s) {
2330
+ n = { error: s };
2331
+ } finally {
2332
+ try {
2333
+ a && !a.done && (r = o.return) && r.call(o);
2334
+ } finally {
2335
+ if (n)
2336
+ throw n.error;
2337
+ }
2338
+ }
2339
+ }, e.prototype.deregisterRootHandlers = function() {
2340
+ var t, n;
2341
+ try {
2342
+ for (var r = C(Pt), o = r.next(); !o.done; o = r.next()) {
2343
+ var a = o.value;
2344
+ this.adapter.deregisterInteractionHandler(a, this.activateHandler);
2345
+ }
2346
+ } catch (c) {
2347
+ t = { error: c };
2348
+ } finally {
2349
+ try {
2350
+ o && !o.done && (n = r.return) && n.call(r);
2351
+ } finally {
2352
+ if (t)
2353
+ throw t.error;
2354
+ }
2355
+ }
2356
+ this.adapter.deregisterInteractionHandler("focus", this.focusHandler), this.adapter.deregisterInteractionHandler("blur", this.blurHandler), this.adapter.isUnbounded() && this.adapter.deregisterResizeHandler(this.resizeHandler);
2357
+ }, e.prototype.deregisterDeactivationHandlers = function() {
2358
+ var t, n;
2359
+ this.adapter.deregisterInteractionHandler("keyup", this.deactivateHandler);
2360
+ try {
2361
+ for (var r = C(xt), o = r.next(); !o.done; o = r.next()) {
2362
+ var a = o.value;
2363
+ this.adapter.deregisterDocumentInteractionHandler(a, this.deactivateHandler);
2364
+ }
2365
+ } catch (c) {
2366
+ t = { error: c };
2367
+ } finally {
2368
+ try {
2369
+ o && !o.done && (n = r.return) && n.call(r);
2370
+ } finally {
2371
+ if (t)
2372
+ throw t.error;
2373
+ }
2374
+ }
2375
+ }, e.prototype.removeCssVars = function() {
2376
+ var t = this, n = e.strings, r = Object.keys(n);
2377
+ r.forEach(function(o) {
2378
+ o.indexOf("VAR_") === 0 && t.adapter.updateCssVariable(n[o], null);
2379
+ });
2380
+ }, e.prototype.activateImpl = function(t) {
2381
+ var n = this;
2382
+ if (!this.adapter.isSurfaceDisabled()) {
2383
+ var r = this.activationState;
2384
+ if (!r.isActivated) {
2385
+ var o = this.previousActivationEvent, a = o && t !== void 0 && o.type !== t.type;
2386
+ if (!a) {
2387
+ r.isActivated = !0, r.isProgrammatic = t === void 0, r.activationEvent = t, r.wasActivatedByPointer = r.isProgrammatic ? !1 : t !== void 0 && (t.type === "mousedown" || t.type === "touchstart" || t.type === "pointerdown");
2388
+ var c = t !== void 0 && ct.length > 0 && ct.some(function(s) {
2389
+ return n.adapter.containsEventTarget(s);
2390
+ });
2391
+ if (c) {
2392
+ this.resetActivationState();
2393
+ return;
2394
+ }
2395
+ t !== void 0 && (ct.push(t.target), this.registerDeactivationHandlers(t)), r.wasElementMadeActive = this.checkElementMadeActive(t), r.wasElementMadeActive && this.animateActivation(), requestAnimationFrame(function() {
2396
+ ct = [], !r.wasElementMadeActive && t !== void 0 && (t.key === " " || t.keyCode === 32) && (r.wasElementMadeActive = n.checkElementMadeActive(t), r.wasElementMadeActive && n.animateActivation()), r.wasElementMadeActive || (n.activationState = n.defaultActivationState());
2397
+ });
2398
+ }
2399
+ }
2400
+ }
2401
+ }, e.prototype.checkElementMadeActive = function(t) {
2402
+ return t !== void 0 && t.type === "keydown" ? this.adapter.isSurfaceActive() : !0;
2403
+ }, e.prototype.animateActivation = function() {
2404
+ var t = this, n = e.strings, r = n.VAR_FG_TRANSLATE_START, o = n.VAR_FG_TRANSLATE_END, a = e.cssClasses, c = a.FG_DEACTIVATION, s = a.FG_ACTIVATION, p = e.numbers.DEACTIVATION_TIMEOUT_MS;
2405
+ this.layoutInternal();
2406
+ var u = "", h = "";
2407
+ if (!this.adapter.isUnbounded()) {
2408
+ var b = this.getFgTranslationCoordinates(), N = b.startPoint, j = b.endPoint;
2409
+ u = N.x + "px, " + N.y + "px", h = j.x + "px, " + j.y + "px";
2410
+ }
2411
+ this.adapter.updateCssVariable(r, u), this.adapter.updateCssVariable(o, h), clearTimeout(this.activationTimer), clearTimeout(this.fgDeactivationRemovalTimer), this.rmBoundedActivationClasses(), this.adapter.removeClass(c), this.adapter.computeBoundingRect(), this.adapter.addClass(s), this.activationTimer = setTimeout(function() {
2412
+ t.activationTimerCallback();
2413
+ }, p);
2414
+ }, e.prototype.getFgTranslationCoordinates = function() {
2415
+ var t = this.activationState, n = t.activationEvent, r = t.wasActivatedByPointer, o;
2416
+ r ? o = Vi(n, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()) : o = {
2417
+ x: this.frame.width / 2,
2418
+ y: this.frame.height / 2
2419
+ }, o = {
2420
+ x: o.x - this.initialSize / 2,
2421
+ y: o.y - this.initialSize / 2
2422
+ };
2423
+ var a = {
2424
+ x: this.frame.width / 2 - this.initialSize / 2,
2425
+ y: this.frame.height / 2 - this.initialSize / 2
2426
+ };
2427
+ return { startPoint: o, endPoint: a };
2428
+ }, e.prototype.runDeactivationUXLogicIfReady = function() {
2429
+ var t = this, n = e.cssClasses.FG_DEACTIVATION, r = this.activationState, o = r.hasDeactivationUXRun, a = r.isActivated, c = o || !a;
2430
+ c && this.activationAnimationHasEnded && (this.rmBoundedActivationClasses(), this.adapter.addClass(n), this.fgDeactivationRemovalTimer = setTimeout(function() {
2431
+ t.adapter.removeClass(n);
2432
+ }, Dt.FG_DEACTIVATION_MS));
2433
+ }, e.prototype.rmBoundedActivationClasses = function() {
2434
+ var t = e.cssClasses.FG_ACTIVATION;
2435
+ this.adapter.removeClass(t), this.activationAnimationHasEnded = !1, this.adapter.computeBoundingRect();
2436
+ }, e.prototype.resetActivationState = function() {
2437
+ var t = this;
2438
+ this.previousActivationEvent = this.activationState.activationEvent, this.activationState = this.defaultActivationState(), setTimeout(function() {
2439
+ return t.previousActivationEvent = void 0;
2440
+ }, e.numbers.TAP_DELAY_MS);
2441
+ }, e.prototype.deactivateImpl = function() {
2442
+ var t = this, n = this.activationState;
2443
+ if (n.isActivated) {
2444
+ var r = T({}, n);
2445
+ n.isProgrammatic ? (requestAnimationFrame(function() {
2446
+ t.animateDeactivation(r);
2447
+ }), this.resetActivationState()) : (this.deregisterDeactivationHandlers(), requestAnimationFrame(function() {
2448
+ t.activationState.hasDeactivationUXRun = !0, t.animateDeactivation(r), t.resetActivationState();
2449
+ }));
2450
+ }
2451
+ }, e.prototype.animateDeactivation = function(t) {
2452
+ var n = t.wasActivatedByPointer, r = t.wasElementMadeActive;
2453
+ (n || r) && this.runDeactivationUXLogicIfReady();
2454
+ }, e.prototype.layoutInternal = function() {
2455
+ var t = this;
2456
+ this.frame = this.adapter.computeBoundingRect();
2457
+ var n = Math.max(this.frame.height, this.frame.width), r = function() {
2458
+ var a = Math.sqrt(Math.pow(t.frame.width, 2) + Math.pow(t.frame.height, 2));
2459
+ return a + e.numbers.PADDING;
2460
+ };
2461
+ this.maxRadius = this.adapter.isUnbounded() ? n : r();
2462
+ var o = Math.floor(n * e.numbers.INITIAL_ORIGIN_SCALE);
2463
+ this.adapter.isUnbounded() && o % 2 !== 0 ? this.initialSize = o - 1 : this.initialSize = o, this.fgScale = "" + this.maxRadius / this.initialSize, this.updateLayoutCssVars();
2464
+ }, e.prototype.updateLayoutCssVars = function() {
2465
+ var t = e.strings, n = t.VAR_FG_SIZE, r = t.VAR_LEFT, o = t.VAR_TOP, a = t.VAR_FG_SCALE;
2466
+ this.adapter.updateCssVariable(n, this.initialSize + "px"), this.adapter.updateCssVariable(a, this.fgScale), this.adapter.isUnbounded() && (this.unboundedCoords = {
2467
+ left: Math.round(this.frame.width / 2 - this.initialSize / 2),
2468
+ top: Math.round(this.frame.height / 2 - this.initialSize / 2)
2469
+ }, this.adapter.updateCssVariable(r, this.unboundedCoords.left + "px"), this.adapter.updateCssVariable(o, this.unboundedCoords.top + "px"));
2470
+ }, e;
2471
+ }(et)
2472
+ );
2473
+ /**
2474
+ * @license
2475
+ * Copyright 2016 Google Inc.
2476
+ *
2477
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2478
+ * of this software and associated documentation files (the "Software"), to deal
2479
+ * in the Software without restriction, including without limitation the rights
2480
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2481
+ * copies of the Software, and to permit persons to whom the Software is
2482
+ * furnished to do so, subject to the following conditions:
2483
+ *
2484
+ * The above copyright notice and this permission notice shall be included in
2485
+ * all copies or substantial portions of the Software.
2486
+ *
2487
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2488
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2489
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2490
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2491
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2492
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2493
+ * THE SOFTWARE.
2494
+ */
2495
+ var Ft = (
2496
+ /** @class */
2497
+ function(i) {
2498
+ U(e, i);
2499
+ function e() {
2500
+ var t = i !== null && i.apply(this, arguments) || this;
2501
+ return t.disabled = !1, t;
2502
+ }
2503
+ return e.attachTo = function(t, n) {
2504
+ n === void 0 && (n = {
2505
+ isUnbounded: void 0
2506
+ });
2507
+ var r = new e(t);
2508
+ return n.isUnbounded !== void 0 && (r.unbounded = n.isUnbounded), r;
2509
+ }, e.createAdapter = function(t) {
2510
+ return {
2511
+ addClass: function(n) {
2512
+ t.root.classList.add(n);
2513
+ },
2514
+ browserSupportsCssVars: function() {
2515
+ return Ki(window);
2516
+ },
2517
+ computeBoundingRect: function() {
2518
+ return t.root.getBoundingClientRect();
2519
+ },
2520
+ containsEventTarget: function(n) {
2521
+ return t.root.contains(n);
2522
+ },
2523
+ deregisterDocumentInteractionHandler: function(n, r) {
2524
+ document.documentElement.removeEventListener(n, r, ot());
2525
+ },
2526
+ deregisterInteractionHandler: function(n, r) {
2527
+ t.root.removeEventListener(n, r, ot());
2528
+ },
2529
+ deregisterResizeHandler: function(n) {
2530
+ window.removeEventListener("resize", n);
2531
+ },
2532
+ getWindowPageOffset: function() {
2533
+ return { x: window.pageXOffset, y: window.pageYOffset };
2534
+ },
2535
+ isSurfaceActive: function() {
2536
+ return ue(t.root, ":active");
2537
+ },
2538
+ isSurfaceDisabled: function() {
2539
+ return !!t.disabled;
2540
+ },
2541
+ isUnbounded: function() {
2542
+ return !!t.unbounded;
2543
+ },
2544
+ registerDocumentInteractionHandler: function(n, r) {
2545
+ document.documentElement.addEventListener(n, r, ot());
2546
+ },
2547
+ registerInteractionHandler: function(n, r) {
2548
+ t.root.addEventListener(n, r, ot());
2549
+ },
2550
+ registerResizeHandler: function(n) {
2551
+ window.addEventListener("resize", n);
2552
+ },
2553
+ removeClass: function(n) {
2554
+ t.root.classList.remove(n);
2555
+ },
2556
+ updateCssVariable: function(n, r) {
2557
+ t.root.style.setProperty(n, r);
2558
+ }
2559
+ };
2560
+ }, Object.defineProperty(e.prototype, "unbounded", {
2561
+ get: function() {
2562
+ return !!this.isUnbounded;
2563
+ },
2564
+ set: function(t) {
2565
+ this.isUnbounded = !!t, this.setUnbounded();
2566
+ },
2567
+ enumerable: !1,
2568
+ configurable: !0
2569
+ }), e.prototype.activate = function() {
2570
+ this.foundation.activate();
2571
+ }, e.prototype.deactivate = function() {
2572
+ this.foundation.deactivate();
2573
+ }, e.prototype.layout = function() {
2574
+ this.foundation.layout();
2575
+ }, e.prototype.getDefaultFoundation = function() {
2576
+ return new de(e.createAdapter(this));
2577
+ }, e.prototype.initialSyncWithDOM = function() {
2578
+ var t = this.root;
2579
+ this.isUnbounded = "mdcRippleIsUnbounded" in t.dataset;
2580
+ }, e.prototype.setUnbounded = function() {
2581
+ this.foundation.setUnbounded(!!this.isUnbounded);
2582
+ }, e;
2583
+ }(pe)
2584
+ );
2585
+ /**
2586
+ * @license
2587
+ * Copyright 2020 Google Inc.
2588
+ *
2589
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2590
+ * of this software and associated documentation files (the "Software"), to deal
2591
+ * in the Software without restriction, including without limitation the rights
2592
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2593
+ * copies of the Software, and to permit persons to whom the Software is
2594
+ * furnished to do so, subject to the following conditions:
2595
+ *
2596
+ * The above copyright notice and this permission notice shall be included in
2597
+ * all copies or substantial portions of the Software.
2598
+ *
2599
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2600
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2601
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2602
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2603
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2604
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2605
+ * THE SOFTWARE.
2606
+ */
2607
+ function qi(i, e) {
2608
+ var t = Number(e.replace("px", ""));
2609
+ return Number.isNaN(t) ? i : {
2610
+ width: i.width + t,
2611
+ height: i.height,
2612
+ top: i.top,
2613
+ right: i.right,
2614
+ bottom: i.bottom,
2615
+ left: i.left
2616
+ };
2617
+ }
2618
+ var Xi = "--mdc-chip-graphic-selected-width";
2619
+ /**
2620
+ * @license
2621
+ * Copyright 2020 Google Inc.
2622
+ *
2623
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2624
+ * of this software and associated documentation files (the "Software"), to deal
2625
+ * in the Software without restriction, including without limitation the rights
2626
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2627
+ * copies of the Software, and to permit persons to whom the Software is
2628
+ * furnished to do so, subject to the following conditions:
2629
+ *
2630
+ * The above copyright notice and this permission notice shall be included in
2631
+ * all copies or substantial portions of the Software.
2632
+ *
2633
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2634
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2635
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2636
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2637
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2638
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2639
+ * THE SOFTWARE.
2640
+ */
2641
+ var it = /* @__PURE__ */ new Map();
2642
+ it.set(l.SPACEBAR, D.SPACEBAR_KEY);
2643
+ it.set(l.ENTER, D.ENTER_KEY);
2644
+ it.set(l.DELETE, D.DELETE_KEY);
2645
+ it.set(l.BACKSPACE, D.BACKSPACE_KEY);
2646
+ var he = (
2647
+ /** @class */
2648
+ function(i) {
2649
+ U(e, i);
2650
+ function e(t) {
2651
+ return i.call(this, T(T({}, e.defaultAdapter), t)) || this;
2652
+ }
2653
+ return Object.defineProperty(e, "defaultAdapter", {
2654
+ get: function() {
2655
+ return {
2656
+ emitEvent: function() {
2657
+ },
2658
+ focus: function() {
2659
+ },
2660
+ getAttribute: function() {
2661
+ return null;
2662
+ },
2663
+ getElementID: function() {
2664
+ return "";
2665
+ },
2666
+ removeAttribute: function() {
2667
+ },
2668
+ setAttribute: function() {
2669
+ }
2670
+ };
2671
+ },
2672
+ enumerable: !1,
2673
+ configurable: !0
2674
+ }), e.prototype.handleClick = function() {
2675
+ this.isDisabled() || this.emitInteraction(D.CLICK);
2676
+ }, e.prototype.handleKeydown = function(t) {
2677
+ var n = le(t);
2678
+ if (this.shouldNotifyInteractionFromKey(n)) {
2679
+ t.preventDefault(), this.emitInteraction(this.getTriggerFromKey(n));
2680
+ return;
2681
+ }
2682
+ if (Hi(t)) {
2683
+ t.preventDefault(), this.emitNavigation(n);
2684
+ return;
2685
+ }
2686
+ return !0;
2687
+ }, e.prototype.setDisabled = function(t) {
2688
+ if (this.isSelectable()) {
2689
+ this.adapter.setAttribute(v.ARIA_DISABLED, "" + t);
2690
+ return;
2691
+ }
2692
+ t ? this.adapter.setAttribute(v.DISABLED, "true") : this.adapter.removeAttribute(v.DISABLED);
2693
+ }, e.prototype.isDisabled = function() {
2694
+ return this.adapter.getAttribute(v.ARIA_DISABLED) === "true" || this.adapter.getAttribute(v.DISABLED) !== null;
2695
+ }, e.prototype.setFocus = function(t) {
2696
+ if (this.isFocusable()) {
2697
+ if (t === I.FOCUSABLE_AND_FOCUSED) {
2698
+ this.adapter.setAttribute(v.TAB_INDEX, "0"), this.adapter.focus();
2699
+ return;
2700
+ }
2701
+ if (t === I.FOCUSABLE) {
2702
+ this.adapter.setAttribute(v.TAB_INDEX, "0");
2703
+ return;
2704
+ }
2705
+ if (t === I.NOT_FOCUSABLE) {
2706
+ this.adapter.setAttribute(v.TAB_INDEX, "-1");
2707
+ return;
2708
+ }
2709
+ }
2710
+ }, e.prototype.isFocusable = function() {
2711
+ return !(this.isDisabled() || this.adapter.getAttribute(v.ARIA_HIDDEN) === "true");
2712
+ }, e.prototype.setSelected = function(t) {
2713
+ this.isSelectable() && this.adapter.setAttribute(v.ARIA_SELECTED, "" + t);
2714
+ }, e.prototype.isSelected = function() {
2715
+ return this.adapter.getAttribute(v.ARIA_SELECTED) === "true";
2716
+ }, e.prototype.emitInteraction = function(t) {
2717
+ this.adapter.emitEvent(X.INTERACTION, {
2718
+ actionID: this.adapter.getElementID(),
2719
+ source: this.actionType(),
2720
+ trigger: t
2721
+ });
2722
+ }, e.prototype.emitNavigation = function(t) {
2723
+ this.adapter.emitEvent(X.NAVIGATION, {
2724
+ source: this.actionType(),
2725
+ key: t
2726
+ });
2727
+ }, e.prototype.shouldNotifyInteractionFromKey = function(t) {
2728
+ var n = t === l.ENTER || t === l.SPACEBAR, r = t === l.BACKSPACE || t === l.DELETE;
2729
+ return !!(n || r && this.shouldEmitInteractionOnRemoveKey());
2730
+ }, e.prototype.getTriggerFromKey = function(t) {
2731
+ var n = it.get(t);
2732
+ return n || D.UNSPECIFIED;
2733
+ }, e;
2734
+ }(et)
2735
+ );
2736
+ /**
2737
+ * @license
2738
+ * Copyright 2020 Google Inc.
2739
+ *
2740
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2741
+ * of this software and associated documentation files (the "Software"), to deal
2742
+ * in the Software without restriction, including without limitation the rights
2743
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2744
+ * copies of the Software, and to permit persons to whom the Software is
2745
+ * furnished to do so, subject to the following conditions:
2746
+ *
2747
+ * The above copyright notice and this permission notice shall be included in
2748
+ * all copies or substantial portions of the Software.
2749
+ *
2750
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2751
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2752
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2753
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2754
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2755
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2756
+ * THE SOFTWARE.
2757
+ */
2758
+ var Yi = (
2759
+ /** @class */
2760
+ function(i) {
2761
+ U(e, i);
2762
+ function e() {
2763
+ return i !== null && i.apply(this, arguments) || this;
2764
+ }
2765
+ return e.prototype.isSelectable = function() {
2766
+ return this.adapter.getAttribute(v.ROLE) === "option";
2767
+ }, e.prototype.actionType = function() {
2768
+ return E.PRIMARY;
2769
+ }, e.prototype.shouldEmitInteractionOnRemoveKey = function() {
2770
+ return this.adapter.getAttribute(v.DATA_DELETABLE) === "true";
2771
+ }, e;
2772
+ }(he)
2773
+ );
2774
+ /**
2775
+ * @license
2776
+ * Copyright 2020 Google Inc.
2777
+ *
2778
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2779
+ * of this software and associated documentation files (the "Software"), to deal
2780
+ * in the Software without restriction, including without limitation the rights
2781
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2782
+ * copies of the Software, and to permit persons to whom the Software is
2783
+ * furnished to do so, subject to the following conditions:
2784
+ *
2785
+ * The above copyright notice and this permission notice shall be included in
2786
+ * all copies or substantial portions of the Software.
2787
+ *
2788
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2789
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2790
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2791
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2792
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2793
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2794
+ * THE SOFTWARE.
2795
+ */
2796
+ var Zi = (
2797
+ /** @class */
2798
+ function(i) {
2799
+ U(e, i);
2800
+ function e() {
2801
+ return i !== null && i.apply(this, arguments) || this;
2802
+ }
2803
+ return e.prototype.isSelectable = function() {
2804
+ return !1;
2805
+ }, e.prototype.actionType = function() {
2806
+ return E.TRAILING;
2807
+ }, e.prototype.shouldEmitInteractionOnRemoveKey = function() {
2808
+ return !0;
2809
+ }, e;
2810
+ }(he)
2811
+ );
2812
+ /**
2813
+ * @license
2814
+ * Copyright 2020 Google Inc.
2815
+ *
2816
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
2817
+ * of this software and associated documentation files (the "Software"), to deal
2818
+ * in the Software without restriction, including without limitation the rights
2819
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2820
+ * copies of the Software, and to permit persons to whom the Software is
2821
+ * furnished to do so, subject to the following conditions:
2822
+ *
2823
+ * The above copyright notice and this permission notice shall be included in
2824
+ * all copies or substantial portions of the Software.
2825
+ *
2826
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2827
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2828
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2829
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2830
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2831
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2832
+ * THE SOFTWARE.
2833
+ */
2834
+ var Ji = [
2835
+ L.safeAttrPrefix(Lt || (Lt = H(["aria-"], ["aria-"]))),
2836
+ L.safeAttrPrefix(Ut || (Ut = H(["data-"], ["data-"]))),
2837
+ L.safeAttrPrefix(Mt || (Mt = H(["disabled"], ["disabled"]))),
2838
+ L.safeAttrPrefix(zt || (zt = H(["role"], ["role"]))),
2839
+ L.safeAttrPrefix(Ht || (Ht = H(["tabindex"], ["tabindex"])))
2840
+ ], Qi = (
2841
+ /** @class */
2842
+ function(i) {
2843
+ U(e, i);
2844
+ function e() {
2845
+ var t = i !== null && i.apply(this, arguments) || this;
2846
+ return t.rootHTML = t.root, t;
2847
+ }
2848
+ return e.attachTo = function(t) {
2849
+ return new e(t);
2850
+ }, Object.defineProperty(e.prototype, "ripple", {
2851
+ get: function() {
2852
+ return this.rippleInstance;
2853
+ },
2854
+ enumerable: !1,
2855
+ configurable: !0
2856
+ }), e.prototype.initialize = function(t) {
2857
+ var n = this;
2858
+ t === void 0 && (t = function(o, a) {
2859
+ return new Ft(o, a);
2860
+ });
2861
+ var r = T(T({}, Ft.createAdapter(this)), { computeBoundingRect: function() {
2862
+ return n.computeRippleClientRect();
2863
+ } });
2864
+ this.rippleInstance = t(this.root, new de(r));
2865
+ }, e.prototype.initialSyncWithDOM = function() {
2866
+ var t = this;
2867
+ this.handleClick = function() {
2868
+ t.foundation.handleClick();
2869
+ }, this.handleKeydown = function(n) {
2870
+ t.foundation.handleKeydown(n);
2871
+ }, this.listen("click", this.handleClick), this.listen("keydown", this.handleKeydown);
2872
+ }, e.prototype.destroy = function() {
2873
+ this.ripple.destroy(), this.unlisten("click", this.handleClick), this.unlisten("keydown", this.handleKeydown), i.prototype.destroy.call(this);
2874
+ }, e.prototype.getDefaultFoundation = function() {
2875
+ var t = this, n = {
2876
+ emitEvent: function(r, o) {
2877
+ t.emit(
2878
+ r,
2879
+ o,
2880
+ !0
2881
+ /* shouldBubble */
2882
+ );
2883
+ },
2884
+ focus: function() {
2885
+ t.rootHTML.focus();
2886
+ },
2887
+ getAttribute: function(r) {
2888
+ return t.root.getAttribute(r);
2889
+ },
2890
+ getElementID: function() {
2891
+ return t.root.id;
2892
+ },
2893
+ removeAttribute: function(r) {
2894
+ t.root.removeAttribute(r);
2895
+ },
2896
+ setAttribute: function(r, o) {
2897
+ re(Ji, t.root, r, o);
2898
+ }
2899
+ };
2900
+ return this.root.classList.contains(Q.TRAILING_ACTION) ? new Zi(n) : new Yi(n);
2901
+ }, e.prototype.setDisabled = function(t) {
2902
+ this.foundation.setDisabled(t);
2903
+ }, e.prototype.isDisabled = function() {
2904
+ return this.foundation.isDisabled();
2905
+ }, e.prototype.setFocus = function(t) {
2906
+ this.foundation.setFocus(t);
2907
+ }, e.prototype.isFocusable = function() {
2908
+ return this.foundation.isFocusable();
2909
+ }, e.prototype.setSelected = function(t) {
2910
+ this.foundation.setSelected(t);
2911
+ }, e.prototype.isSelected = function() {
2912
+ return this.foundation.isSelected();
2913
+ }, e.prototype.isSelectable = function() {
2914
+ return this.foundation.isSelectable();
2915
+ }, e.prototype.actionType = function() {
2916
+ return this.foundation.actionType();
2917
+ }, e.prototype.computeRippleClientRect = function() {
2918
+ if (this.root.classList.contains(Q.PRIMARY_ACTION)) {
2919
+ var t = Gi(this.root, "." + Q.CHIP_ROOT);
2920
+ if (!t)
2921
+ return this.root.getBoundingClientRect();
2922
+ var n = window.getComputedStyle(t).getPropertyValue(Xi);
2923
+ return qi(t.getBoundingClientRect(), n);
2924
+ }
2925
+ return this.root.getBoundingClientRect();
2926
+ }, e;
2927
+ }(pe)
2928
+ ), Lt, Ut, Mt, zt, Ht, tn = Object.defineProperty, en = Object.getOwnPropertyDescriptor, M = (i, e, t, n) => {
2929
+ for (var r = n > 1 ? void 0 : n ? en(e, t) : e, o = i.length - 1, a; o >= 0; o--)
2930
+ (a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
2931
+ return n && r && tn(e, t, r), r;
123
2932
  };
2933
+ let nn = 0;
2934
+ class F extends Bt {
2935
+ constructor() {
2936
+ super(), this.mdcFoundationClass = ki, this.label = "", this.icon = "", this.trailingIcon = !1, this.avatar = !1, this.disabled = !1, this.filter = !1, this.chipId = nn++;
2937
+ }
2938
+ render() {
2939
+ const e = {
2940
+ "mdc-evolution-chip": !0,
2941
+ "mdc-evolution-chip--disabled": this.disabled,
2942
+ "mdc-evolution-chip--with-trailing-action": this.trailingIcon,
2943
+ "mdc-evolution-chip--with-primary-graphic": !this.trailingIcon && this.icon,
2944
+ "mdc-evolution-chip--with-primary-icon": this.icon && !this.filter,
2945
+ "mdc-evolution-chip--filter": this.filter,
2946
+ "mdc-evolution-chip--selectable": this.filter,
2947
+ "mdc-evolution-chip--with-avatar": this.avatar,
2948
+ secondary: this.state === "secondary",
2949
+ negative: this.state === "negative",
2950
+ caution: this.state === "caution"
2951
+ };
2952
+ return $`
2953
+ <span
2954
+ class="${ye(e)}"
2955
+ role="${this.filter ? "presentation" : "row"}"
2956
+ id="cv-chip-${this.chipId}"
2957
+ >
2958
+ <span
2959
+ class="mdc-evolution-chip__cell mdc-evolution-chip__cell--primary"
2960
+ role="${this.filter ? "presentation" : "gridcell"}"
2961
+ >
2962
+ <button
2963
+ class="mdc-evolution-chip__action mdc-evolution-chip__action--primary"
2964
+ role="${this.filter ? "option" : ""}"
2965
+ type="button"
2966
+ tabindex="-1"
2967
+ >
2968
+ <span
2969
+ class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--primary"
2970
+ ></span>
2971
+ ${!this.trailingIcon && this.icon || this.filter ? this.renderGraphic() : ""}
2972
+ <span class="mdc-evolution-chip__text-label">${this.label}</span>
2973
+ </button>
2974
+ </span>
2975
+ ${this.trailingIcon ? this.renderTrailing() : ""}
2976
+ </span>
2977
+ `;
2978
+ }
2979
+ async firstUpdated() {
2980
+ this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new this.mdcFoundationClass(this.createAdapter()), this.actions = /* @__PURE__ */ new Map();
2981
+ const e = this.mdcRoot.querySelectorAll(
2982
+ ".mdc-evolution-chip__action"
2983
+ );
2984
+ for (let t = 0; t < e.length; t++) {
2985
+ const n = new Qi(e[t]);
2986
+ this.actions.set(n.actionType(), n), e[t].addEventListener(
2987
+ X.INTERACTION,
2988
+ (r) => {
2989
+ var o;
2990
+ (o = this.mdcFoundation) == null || o.handleActionInteraction(r);
2991
+ }
2992
+ ), e[t].addEventListener(X.NAVIGATION, (r) => {
2993
+ var o;
2994
+ (o = this.mdcFoundation) == null || o.handleActionNavigation(r);
2995
+ });
2996
+ }
2997
+ }
2998
+ renderGraphic() {
2999
+ const e = this.filter ? this.renderCheckMark() : this.renderIcon();
3000
+ return $`<span class="mdc-evolution-chip__graphic">
3001
+ ${e}
3002
+ </span>`;
3003
+ }
3004
+ renderCheckMark() {
3005
+ return $` <span class="mdc-evolution-chip__checkmark">
3006
+ <svg class="mdc-evolution-chip__checkmark-svg" viewBox="-2 -3 30 30">
3007
+ <path
3008
+ class="mdc-evolution-chip__checkmark-path"
3009
+ fill="none"
3010
+ d="M1.73,12.91 8.1,19.28 22.79,4.59"
3011
+ />
3012
+ </svg>
3013
+ </span>`;
3014
+ }
3015
+ renderIcon(e = !1) {
3016
+ return $` <span
3017
+ class="mdc-evolution-chip__icon mdc-evolution-chip__icon--${e ? "trailing" : "primary"}"
3018
+ >
3019
+ ${this.icon}
3020
+ </span>`;
3021
+ }
3022
+ renderTrailing() {
3023
+ return $` <span
3024
+ class="mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"
3025
+ role="gridcell"
3026
+ >
3027
+ <button
3028
+ class="mdc-evolution-chip__action mdc-evolution-chip__action--trailing"
3029
+ type="button"
3030
+ tabindex="-1"
3031
+ data-mdc-deletable="true"
3032
+ aria-label="Remove ${this.label}"
3033
+ >
3034
+ <span
3035
+ class="mdc-evolution-chip__ripple mdc-evolution-chip__ripple--trailing"
3036
+ ></span>
3037
+ ${this.renderIcon(!0)}
3038
+ </button>
3039
+ </span>`;
3040
+ }
3041
+ createAdapter() {
3042
+ return {
3043
+ ...ve(this.mdcRoot),
3044
+ emitEvent: (e, t) => this.dispatchEvent(
3045
+ new CustomEvent(e, { bubbles: !0, detail: t })
3046
+ ),
3047
+ /** Returns the child actions provided by the chip. */
3048
+ getActions: () => {
3049
+ const e = [];
3050
+ for (const [t] of this.actions)
3051
+ e.push(t);
3052
+ return e;
3053
+ },
3054
+ /** Returns the value for the given attribute, if it exists. */
3055
+ getAttribute: (e) => this.mdcRoot.getAttribute(e),
3056
+ /** Returns the ID of the root element. */
3057
+ getElementID: () => this.mdcRoot.getAttribute("id") ?? "",
3058
+ /** Returns the offset width of the root element. */
3059
+ getOffsetWidth: () => this.mdcRoot.offsetWidth,
3060
+ /** Returns true if the root element has the given class. */
3061
+ hasClass: (e) => this.mdcRoot.classList.contains(e),
3062
+ /** Proxies to the MDCChipAction#isSelectable method. */
3063
+ isActionSelectable: (e) => {
3064
+ var t;
3065
+ return ((t = this.actions.get(e)) == null ? void 0 : t.isSelectable()) ?? !0;
3066
+ },
3067
+ /** Proxies to the MDCChipAction#isSelected method. */
3068
+ isActionSelected: (e) => {
3069
+ var t;
3070
+ return ((t = this.actions.get(e)) == null ? void 0 : t.isSelected()) ?? !1;
3071
+ },
3072
+ /** Proxies to the MDCChipAction#isFocusable method. */
3073
+ isActionFocusable: (e) => {
3074
+ var t;
3075
+ return ((t = this.actions.get(e)) == null ? void 0 : t.isFocusable()) ?? !0;
3076
+ },
3077
+ /** Proxies to the MDCChipAction#isDisabled method. */
3078
+ isActionDisabled: (e) => {
3079
+ var t;
3080
+ return ((t = this.actions.get(e)) == null ? void 0 : t.isDisabled()) ?? !1;
3081
+ },
3082
+ /** Returns true if the text direction is right-to-left. */
3083
+ isRTL: () => window.getComputedStyle(this.mdcRoot).getPropertyValue("direction") === "rtl",
3084
+ /** Proxies to the MDCChipAction#setDisabled method. */
3085
+ setActionDisabled: (e, t) => {
3086
+ var n;
3087
+ return (n = this.actions.get(e)) == null ? void 0 : n.setDisabled(t);
3088
+ },
3089
+ /** Proxies to the MDCChipAction#setFocus method. */
3090
+ setActionFocus: (e, t) => {
3091
+ var n;
3092
+ return (n = this.actions.get(e)) == null ? void 0 : n.setFocus(t);
3093
+ },
3094
+ /** Proxies to the MDCChipAction#setSelected method. */
3095
+ setActionSelected: (e, t) => {
3096
+ var n;
3097
+ return (n = this.actions.get(e)) == null ? void 0 : n.setSelected(t);
3098
+ },
3099
+ /** Sets the style property to the given value. */
3100
+ setStyleProperty: (e, t) => this.mdcRoot.style.setProperty(e, t)
3101
+ };
3102
+ }
3103
+ getActions() {
3104
+ var e;
3105
+ return ((e = this.mdcFoundation) == null ? void 0 : e.getActions()) ?? [];
3106
+ }
3107
+ getElementID() {
3108
+ var e;
3109
+ return ((e = this.mdcFoundation) == null ? void 0 : e.getElementID()) ?? "";
3110
+ }
3111
+ isActionFocusable(e) {
3112
+ var t;
3113
+ return ((t = this.mdcFoundation) == null ? void 0 : t.isActionFocusable(e)) ?? !1;
3114
+ }
3115
+ isActionSelectable(e) {
3116
+ var t;
3117
+ return ((t = this.mdcFoundation) == null ? void 0 : t.isActionSelectable(e)) ?? !1;
3118
+ }
3119
+ isActionSelected(e) {
3120
+ var t;
3121
+ return ((t = this.mdcFoundation) == null ? void 0 : t.isActionSelected(e)) ?? !1;
3122
+ }
3123
+ setActionFocus(e, t) {
3124
+ var n;
3125
+ return (n = this.mdcFoundation) == null ? void 0 : n.setActionFocus(e, t);
3126
+ }
3127
+ setActionSelected(e, t) {
3128
+ var n;
3129
+ return (n = this.mdcFoundation) == null ? void 0 : n.setActionSelected(e, t);
3130
+ }
3131
+ startAnimation(e) {
3132
+ var t;
3133
+ return (t = this.mdcFoundation) == null ? void 0 : t.startAnimation(e);
3134
+ }
3135
+ }
3136
+ M([
3137
+ $t(".mdc-evolution-chip")
3138
+ ], F.prototype, "mdcRoot", 2);
3139
+ M([
3140
+ R()
3141
+ ], F.prototype, "label", 2);
3142
+ M([
3143
+ R({ type: String })
3144
+ ], F.prototype, "icon", 2);
3145
+ M([
3146
+ R({ type: Boolean, reflect: !0 })
3147
+ ], F.prototype, "trailingIcon", 2);
3148
+ M([
3149
+ R({ type: Boolean, reflect: !0 })
3150
+ ], F.prototype, "avatar", 2);
3151
+ M([
3152
+ R({ type: Boolean, reflect: !0 })
3153
+ ], F.prototype, "disabled", 2);
3154
+ M([
3155
+ R({ type: Boolean, reflect: !0 })
3156
+ ], F.prototype, "filter", 2);
3157
+ M([
3158
+ R()
3159
+ ], F.prototype, "state", 2);
3160
+ const rn = `.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;-webkit-user-select:none;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width .15s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform .15s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 45ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width .1s 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform .1s 0ms cubic-bezier(.4,0,.2,1);transform:translate(-75%,-50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity .15s 75ms cubic-bezier(.4,0,.2,1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(.4,0,.2,1);transform:translate(-50%,-50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%,-50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{0%{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter .1s 0ms cubic-bezier(0,0,.2,1)}@keyframes mdc-evolution-chip-exit{0%{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width .15s 0ms cubic-bezier(.4,0,1,1)}.mdc-evolution-chip{height:32px;border-radius:16px;background-color:#e0e0e0}.mdc-evolution-chip .mdc-evolution-chip__ripple{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__icon--primary{border-radius:16px}.mdc-evolution-chip .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip .mdc-evolution-chip__action--primary,.mdc-evolution-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip .mdc-evolution-chip__text-label,.mdc-evolution-chip .mdc-evolution-chip__icon--primary,.mdc-evolution-chip .mdc-evolution-chip__checkmark,.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{color:#000000de}.mdc-evolution-chip .mdc-evolution-chip__text-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit)}.mdc-evolution-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 20px}.mdc-evolution-chip .mdc-evolution-chip__graphic,.mdc-evolution-chip .mdc-evolution-chip__icon--primary{height:20px;width:20px;font-size:20px}.mdc-evolution-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mdc-evolution-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-evolution-chip.mdc-evolution-chip .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-color:CanvasText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:GrayText}.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--disabled,.mdc-evolution-chip.mdc-evolution-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:Canvas}}.mdc-evolution-chip .mdc-evolution-chip__focus-ring{display:none}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{z-index:1;display:block;pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% - 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring{border-color:CanvasText}}.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused .mdc-evolution-chip__focus-ring:after,.mdc-evolution-chip .mdc-evolution-chip__action--trailing:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__focus-ring:after{border-color:CanvasText}}.mdc-evolution-chip--filter.mdc-evolution-chip--selected{background-color:#cecece}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width: 24px}.mdc-evolution-chip--with-avatar .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar .mdc-evolution-chip__icon--primary{height:24px;width:24px;font-size:24px}.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing .mdc-evolution-chip__ripple:after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-evolution-chip__action--trailing:hover .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing.mdc-ripple-surface--hover .mdc-evolution-chip__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity, .04)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple:before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-focus-opacity, .12)}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded) .mdc-evolution-chip__ripple:after{transition:opacity .15s linear}.mdc-evolution-chip__action--trailing:not(.mdc-ripple-upgraded):active .mdc-evolution-chip__ripple:after{transition-duration:75ms;opacity:.12;opacity:var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__action--trailing.mdc-ripple-upgraded{--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, .12)}.mdc-evolution-chip__ripple--trailing{height:18px;width:18px}.mdc-evolution-chip__action{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-evolution-chip__action.mdc-ripple-upgraded--unbounded .mdc-evolution-chip__ripple:after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-activation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-evolution-chip__action.mdc-ripple-upgraded--foreground-deactivation .mdc-evolution-chip__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-evolution-chip__action .mdc-evolution-chip__ripple:before,.mdc-evolution-chip__action .mdc-evolution-chip__ripple:after{top:-50%;left:-50%;width:200%;height:200%}.mdc-evolution-chip__action.mdc-ripple-upgraded .mdc-evolution-chip__ripple:after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-evolution-chip__ripple{position:absolute;box-sizing:content-box;overflow:hidden;pointer-events:none}.mdc-evolution-chip__ripple--primary{height:100%;width:100%;top:0;left:0}.mdc-evolution-chip__ripple--trailing{top:50%;transform:translateY(-50%)}.mdc-evolution-chip{background-color:var(--mdc-theme-surface-neutral)}.mdc-evolution-chip .mdc-evolution-chip__text-label{color:var(--mdc-theme-text-primary-on-background)}.mdc-evolution-chip .mdc-evolution-chip__icon{font-family:var(--mdc-icon-font, "Material Symbols Rounded");color:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip .mdc-evolution-chip__checkmark-path{stroke:var(--mdc-theme-text-icon-on-background)}.mdc-evolution-chip.mdc-evolution-chip--selected{background-color:var(--mdc-theme-surface-primary)}.mdc-evolution-chip.negative{background-color:var(--mdc-theme-surface-negative)}.mdc-evolution-chip.caution{background-color:var(--mdc-theme-surface-caution)}.mdc-evolution-chip.secondary{background-color:var(--mdc-theme-surface-secondary)}
3161
+ `;
3162
+ var on = Object.defineProperty, an = Object.getOwnPropertyDescriptor, cn = (i, e, t, n) => {
3163
+ for (var r = n > 1 ? void 0 : n ? an(e, t) : e, o = i.length - 1, a; o >= 0; o--)
3164
+ (a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
3165
+ return n && r && on(e, t, r), r;
3166
+ };
3167
+ let lt = class extends F {
3168
+ };
3169
+ lt.styles = [
3170
+ Gt`
3171
+ ${Wt(rn)}
3172
+ `
3173
+ ];
3174
+ lt = cn([
3175
+ jt("cv-chip")
3176
+ ], lt);
3177
+ /**
3178
+ * @license
3179
+ * Copyright 2016 Google Inc.
3180
+ *
3181
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3182
+ * of this software and associated documentation files (the "Software"), to deal
3183
+ * in the Software without restriction, including without limitation the rights
3184
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3185
+ * copies of the Software, and to permit persons to whom the Software is
3186
+ * furnished to do so, subject to the following conditions:
3187
+ *
3188
+ * The above copyright notice and this permission notice shall be included in
3189
+ * all copies or substantial portions of the Software.
3190
+ *
3191
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3192
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3193
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3194
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3195
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3196
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3197
+ * THE SOFTWARE.
3198
+ */
3199
+ var dt;
3200
+ (function(i) {
3201
+ i.ARIA_MULTISELECTABLE = "aria-multiselectable";
3202
+ })(dt || (dt = {}));
3203
+ var kt;
3204
+ (function(i) {
3205
+ i.CHIP = "mdc-evolution-chip";
3206
+ })(kt || (kt = {}));
3207
+ var K;
3208
+ (function(i) {
3209
+ i.INTERACTION = "MDCChipSet:interaction", i.REMOVAL = "MDCChipSet:removal", i.SELECTION = "MDCChipSet:selection";
3210
+ })(K || (K = {}));
3211
+ /**
3212
+ * @license
3213
+ * Copyright 2020 Google Inc.
3214
+ *
3215
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3216
+ * of this software and associated documentation files (the "Software"), to deal
3217
+ * in the Software without restriction, including without limitation the rights
3218
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3219
+ * copies of the Software, and to permit persons to whom the Software is
3220
+ * furnished to do so, subject to the following conditions:
3221
+ *
3222
+ * The above copyright notice and this permission notice shall be included in
3223
+ * all copies or substantial portions of the Software.
3224
+ *
3225
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3226
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3227
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3228
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3229
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3230
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3231
+ * THE SOFTWARE.
3232
+ */
3233
+ var B;
3234
+ (function(i) {
3235
+ i[i.INCREMENT = 0] = "INCREMENT", i[i.DECREMENT = 1] = "DECREMENT";
3236
+ })(B || (B = {}));
3237
+ var sn = (
3238
+ /** @class */
3239
+ function(i) {
3240
+ U(e, i);
3241
+ function e(t) {
3242
+ return i.call(this, T(T({}, e.defaultAdapter), t)) || this;
3243
+ }
3244
+ return Object.defineProperty(e, "defaultAdapter", {
3245
+ get: function() {
3246
+ return {
3247
+ announceMessage: function() {
3248
+ },
3249
+ emitEvent: function() {
3250
+ },
3251
+ getAttribute: function() {
3252
+ return null;
3253
+ },
3254
+ getChipActionsAtIndex: function() {
3255
+ return [];
3256
+ },
3257
+ getChipCount: function() {
3258
+ return 0;
3259
+ },
3260
+ getChipIdAtIndex: function() {
3261
+ return "";
3262
+ },
3263
+ getChipIndexById: function() {
3264
+ return 0;
3265
+ },
3266
+ isChipFocusableAtIndex: function() {
3267
+ return !1;
3268
+ },
3269
+ isChipSelectableAtIndex: function() {
3270
+ return !1;
3271
+ },
3272
+ isChipSelectedAtIndex: function() {
3273
+ return !1;
3274
+ },
3275
+ removeChipAtIndex: function() {
3276
+ },
3277
+ setChipFocusAtIndex: function() {
3278
+ },
3279
+ setChipSelectedAtIndex: function() {
3280
+ },
3281
+ startChipAnimationAtIndex: function() {
3282
+ }
3283
+ };
3284
+ },
3285
+ enumerable: !1,
3286
+ configurable: !0
3287
+ }), e.prototype.handleChipAnimation = function(t) {
3288
+ var n = t.detail, r = n.chipID, o = n.animation, a = n.isComplete, c = n.addedAnnouncement, s = n.removedAnnouncement, p = this.adapter.getChipIndexById(r);
3289
+ if (o === w.EXIT && a) {
3290
+ s && this.adapter.announceMessage(s), this.removeAfterAnimation(p, r);
3291
+ return;
3292
+ }
3293
+ if (o === w.ENTER && a && c) {
3294
+ this.adapter.announceMessage(c);
3295
+ return;
3296
+ }
3297
+ }, e.prototype.handleChipInteraction = function(t) {
3298
+ var n = t.detail, r = n.source, o = n.chipID, a = n.isSelectable, c = n.isSelected, s = n.shouldRemove, p = this.adapter.getChipIndexById(o);
3299
+ if (s) {
3300
+ this.removeChip(p);
3301
+ return;
3302
+ }
3303
+ this.focusChip(p, r, I.FOCUSABLE), this.adapter.emitEvent(K.INTERACTION, {
3304
+ chipIndex: p,
3305
+ chipID: o
3306
+ }), a && this.setSelection(p, r, !c);
3307
+ }, e.prototype.handleChipNavigation = function(t) {
3308
+ var n = t.detail, r = n.chipID, o = n.key, a = n.isRTL, c = n.source, s = this.adapter.getChipIndexById(r), p = o === l.ARROW_RIGHT && !a || o === l.ARROW_LEFT && a;
3309
+ if (p) {
3310
+ this.focusNextChipFrom(s + 1);
3311
+ return;
3312
+ }
3313
+ var u = o === l.ARROW_LEFT && !a || o === l.ARROW_RIGHT && a;
3314
+ if (u) {
3315
+ this.focusPrevChipFrom(s - 1);
3316
+ return;
3317
+ }
3318
+ if (o === l.ARROW_DOWN) {
3319
+ this.focusNextChipFrom(s + 1, c);
3320
+ return;
3321
+ }
3322
+ if (o === l.ARROW_UP) {
3323
+ this.focusPrevChipFrom(s - 1, c);
3324
+ return;
3325
+ }
3326
+ if (o === l.HOME) {
3327
+ this.focusNextChipFrom(0, c);
3328
+ return;
3329
+ }
3330
+ if (o === l.END) {
3331
+ this.focusPrevChipFrom(this.adapter.getChipCount() - 1, c);
3332
+ return;
3333
+ }
3334
+ }, e.prototype.getSelectedChipIndexes = function() {
3335
+ for (var t, n, r = /* @__PURE__ */ new Set(), o = this.adapter.getChipCount(), a = 0; a < o; a++) {
3336
+ var c = this.adapter.getChipActionsAtIndex(a);
3337
+ try {
3338
+ for (var s = (t = void 0, C(c)), p = s.next(); !p.done; p = s.next()) {
3339
+ var u = p.value;
3340
+ this.adapter.isChipSelectedAtIndex(a, u) && r.add(a);
3341
+ }
3342
+ } catch (h) {
3343
+ t = { error: h };
3344
+ } finally {
3345
+ try {
3346
+ p && !p.done && (n = s.return) && n.call(s);
3347
+ } finally {
3348
+ if (t)
3349
+ throw t.error;
3350
+ }
3351
+ }
3352
+ }
3353
+ return r;
3354
+ }, e.prototype.setChipSelected = function(t, n, r) {
3355
+ this.adapter.isChipSelectableAtIndex(t, n) && this.setSelection(t, n, r);
3356
+ }, e.prototype.isChipSelected = function(t, n) {
3357
+ return this.adapter.isChipSelectedAtIndex(t, n);
3358
+ }, e.prototype.removeChip = function(t) {
3359
+ t >= this.adapter.getChipCount() || t < 0 || (this.adapter.startChipAnimationAtIndex(t, w.EXIT), this.adapter.emitEvent(K.REMOVAL, {
3360
+ chipID: this.adapter.getChipIdAtIndex(t),
3361
+ chipIndex: t,
3362
+ isComplete: !1
3363
+ }));
3364
+ }, e.prototype.addChip = function(t) {
3365
+ t >= this.adapter.getChipCount() || t < 0 || this.adapter.startChipAnimationAtIndex(t, w.ENTER);
3366
+ }, e.prototype.focusNextChipFrom = function(t, n) {
3367
+ for (var r = this.adapter.getChipCount(), o = t; o < r; o++) {
3368
+ var a = this.getFocusableAction(o, B.INCREMENT, n);
3369
+ if (a) {
3370
+ this.focusChip(o, a, I.FOCUSABLE_AND_FOCUSED);
3371
+ return;
3372
+ }
3373
+ }
3374
+ }, e.prototype.focusPrevChipFrom = function(t, n) {
3375
+ for (var r = t; r > -1; r--) {
3376
+ var o = this.getFocusableAction(r, B.DECREMENT, n);
3377
+ if (o) {
3378
+ this.focusChip(r, o, I.FOCUSABLE_AND_FOCUSED);
3379
+ return;
3380
+ }
3381
+ }
3382
+ }, e.prototype.getFocusableAction = function(t, n, r) {
3383
+ var o = this.adapter.getChipActionsAtIndex(t);
3384
+ return n === B.DECREMENT && o.reverse(), r ? this.getMatchingFocusableAction(t, o, r) : this.getFirstFocusableAction(t, o);
3385
+ }, e.prototype.getFirstFocusableAction = function(t, n) {
3386
+ var r, o;
3387
+ try {
3388
+ for (var a = C(n), c = a.next(); !c.done; c = a.next()) {
3389
+ var s = c.value;
3390
+ if (this.adapter.isChipFocusableAtIndex(t, s))
3391
+ return s;
3392
+ }
3393
+ } catch (p) {
3394
+ r = { error: p };
3395
+ } finally {
3396
+ try {
3397
+ c && !c.done && (o = a.return) && o.call(a);
3398
+ } finally {
3399
+ if (r)
3400
+ throw r.error;
3401
+ }
3402
+ }
3403
+ return null;
3404
+ }, e.prototype.getMatchingFocusableAction = function(t, n, r) {
3405
+ var o, a, c = null;
3406
+ try {
3407
+ for (var s = C(n), p = s.next(); !p.done; p = s.next()) {
3408
+ var u = p.value;
3409
+ if (this.adapter.isChipFocusableAtIndex(t, u) && (c = u), c === r)
3410
+ return c;
3411
+ }
3412
+ } catch (h) {
3413
+ o = { error: h };
3414
+ } finally {
3415
+ try {
3416
+ p && !p.done && (a = s.return) && a.call(s);
3417
+ } finally {
3418
+ if (o)
3419
+ throw o.error;
3420
+ }
3421
+ }
3422
+ return c;
3423
+ }, e.prototype.focusChip = function(t, n, r) {
3424
+ var o, a;
3425
+ this.adapter.setChipFocusAtIndex(t, n, r);
3426
+ for (var c = this.adapter.getChipCount(), s = 0; s < c; s++) {
3427
+ var p = this.adapter.getChipActionsAtIndex(s);
3428
+ try {
3429
+ for (var u = (o = void 0, C(p)), h = u.next(); !h.done; h = u.next()) {
3430
+ var b = h.value;
3431
+ b === n && s === t || this.adapter.setChipFocusAtIndex(s, b, I.NOT_FOCUSABLE);
3432
+ }
3433
+ } catch (N) {
3434
+ o = { error: N };
3435
+ } finally {
3436
+ try {
3437
+ h && !h.done && (a = u.return) && a.call(u);
3438
+ } finally {
3439
+ if (o)
3440
+ throw o.error;
3441
+ }
3442
+ }
3443
+ }
3444
+ }, e.prototype.supportsMultiSelect = function() {
3445
+ return this.adapter.getAttribute(dt.ARIA_MULTISELECTABLE) === "true";
3446
+ }, e.prototype.setSelection = function(t, n, r) {
3447
+ var o, a;
3448
+ if (this.adapter.setChipSelectedAtIndex(t, n, r), this.adapter.emitEvent(K.SELECTION, {
3449
+ chipID: this.adapter.getChipIdAtIndex(t),
3450
+ chipIndex: t,
3451
+ isSelected: r
3452
+ }), !this.supportsMultiSelect())
3453
+ for (var c = this.adapter.getChipCount(), s = 0; s < c; s++) {
3454
+ var p = this.adapter.getChipActionsAtIndex(s);
3455
+ try {
3456
+ for (var u = (o = void 0, C(p)), h = u.next(); !h.done; h = u.next()) {
3457
+ var b = h.value;
3458
+ b === n && s === t || this.adapter.setChipSelectedAtIndex(s, b, !1);
3459
+ }
3460
+ } catch (N) {
3461
+ o = { error: N };
3462
+ } finally {
3463
+ try {
3464
+ h && !h.done && (a = u.return) && a.call(u);
3465
+ } finally {
3466
+ if (o)
3467
+ throw o.error;
3468
+ }
3469
+ }
3470
+ }
3471
+ }, e.prototype.removeAfterAnimation = function(t, n) {
3472
+ this.adapter.removeChipAtIndex(t), this.adapter.emitEvent(K.REMOVAL, {
3473
+ chipIndex: t,
3474
+ isComplete: !0,
3475
+ chipID: n
3476
+ });
3477
+ var r = this.adapter.getChipCount();
3478
+ r <= 0 || this.focusNearestFocusableAction(t);
3479
+ }, e.prototype.focusNearestFocusableAction = function(t) {
3480
+ for (var n = this.adapter.getChipCount(), r = t, o = t; r > -1 || o < n; ) {
3481
+ var a = this.getNearestFocusableAction(r, o, E.TRAILING);
3482
+ if (a) {
3483
+ this.focusChip(a.index, a.action, I.FOCUSABLE_AND_FOCUSED);
3484
+ return;
3485
+ }
3486
+ r--, o++;
3487
+ }
3488
+ }, e.prototype.getNearestFocusableAction = function(t, n, r) {
3489
+ var o = this.getFocusableAction(t, B.DECREMENT, r);
3490
+ if (o)
3491
+ return {
3492
+ index: t,
3493
+ action: o
3494
+ };
3495
+ if (n === t)
3496
+ return null;
3497
+ var a = this.getFocusableAction(n, B.INCREMENT, r);
3498
+ return a ? {
3499
+ index: n,
3500
+ action: a
3501
+ } : null;
3502
+ }, e;
3503
+ }(et)
3504
+ );
3505
+ /**
3506
+ * @license
3507
+ * Copyright 2020 Google Inc.
3508
+ *
3509
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
3510
+ * of this software and associated documentation files (the "Software"), to deal
3511
+ * in the Software without restriction, including without limitation the rights
3512
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3513
+ * copies of the Software, and to permit persons to whom the Software is
3514
+ * furnished to do so, subject to the following conditions:
3515
+ *
3516
+ * The above copyright notice and this permission notice shall be included in
3517
+ * all copies or substantial portions of the Software.
3518
+ *
3519
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3520
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3521
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3522
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3523
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3524
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3525
+ * THE SOFTWARE.
3526
+ */
3527
+ var ht;
3528
+ (function(i) {
3529
+ i.POLITE = "polite", i.ASSERTIVE = "assertive";
3530
+ })(ht || (ht = {}));
3531
+ var ln = "data-mdc-dom-announce";
3532
+ function pn(i, e) {
3533
+ un.getInstance().say(i, e);
3534
+ }
3535
+ var un = (
3536
+ /** @class */
3537
+ function() {
3538
+ function i() {
3539
+ this.liveRegions = /* @__PURE__ */ new Map();
3540
+ }
3541
+ return i.getInstance = function() {
3542
+ return i.instance || (i.instance = new i()), i.instance;
3543
+ }, i.prototype.say = function(e, t) {
3544
+ var n, r, o = (n = t == null ? void 0 : t.priority) !== null && n !== void 0 ? n : ht.POLITE, a = (r = t == null ? void 0 : t.ownerDocument) !== null && r !== void 0 ? r : document, c = this.getLiveRegion(o, a);
3545
+ c.textContent = "", setTimeout(function() {
3546
+ c.textContent = e, a.addEventListener("click", s);
3547
+ }, 1);
3548
+ function s() {
3549
+ c.textContent = "", a.removeEventListener("click", s);
3550
+ }
3551
+ }, i.prototype.getLiveRegion = function(e, t) {
3552
+ var n = this.liveRegions.get(t);
3553
+ n || (n = /* @__PURE__ */ new Map(), this.liveRegions.set(t, n));
3554
+ var r = n.get(e);
3555
+ if (r && t.body.contains(r))
3556
+ return r;
3557
+ var o = this.createLiveRegion(e, t);
3558
+ return n.set(e, o), o;
3559
+ }, i.prototype.createLiveRegion = function(e, t) {
3560
+ var n = t.createElement("div");
3561
+ return n.style.position = "absolute", n.style.top = "-9999px", n.style.left = "-9999px", n.style.height = "1px", n.style.overflow = "hidden", n.setAttribute("aria-atomic", "true"), n.setAttribute("aria-live", e), n.setAttribute(ln, "true"), t.body.appendChild(n), n;
3562
+ }, i;
3563
+ }()
3564
+ ), dn = Object.defineProperty, hn = Object.getOwnPropertyDescriptor, nt = (i, e, t, n) => {
3565
+ for (var r = n > 1 ? void 0 : n ? hn(e, t) : e, o = i.length - 1, a; o >= 0; o--)
3566
+ (a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
3567
+ return n && r && dn(e, t, r), r;
3568
+ };
3569
+ class J extends Bt {
3570
+ constructor() {
3571
+ super(...arguments), this.selectable = !1, this.multi = !1, this.label = "", this.activeIndex = 0, this._previousActiveIndex = -1, this.chips = [];
3572
+ }
3573
+ render() {
3574
+ return $`<span
3575
+ class="mdc-evolution-chip-set"
3576
+ role="${this.selectable || this.multi ? "listbox" : "grid"}"
3577
+ aria-label="${this.label}"
3578
+ aria-multiselectable="${this.multi}"
3579
+ >
3580
+ <span class="mdc-evolution-chip-set__chips" role="presentation">
3581
+ <slot></slot>
3582
+ </span>
3583
+ </span>`;
3584
+ }
3585
+ async updated(e) {
3586
+ super.updated(e), await this.updateComplete, this.activeIndex != this._previousActiveIndex && this.mdcFoundation.setChipSelected(
3587
+ this.activeIndex,
3588
+ E.PRIMARY,
3589
+ !0
3590
+ );
3591
+ }
3592
+ firstUpdated(e) {
3593
+ var r;
3594
+ super.firstUpdated(e);
3595
+ const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("slot"), n = (t == null ? void 0 : t.assignedElements().filter((o) => o instanceof lt)) ?? [];
3596
+ for (let o = 0; o < n.length; o++) {
3597
+ const a = n[o];
3598
+ this.chips.push(a);
3599
+ }
3600
+ this.mdcFoundation !== void 0 && this.mdcFoundation.destroy(), this.mdcFoundation = new sn(this.createAdapter()), this.mdcFoundation.init();
3601
+ }
3602
+ connectedCallback() {
3603
+ super.connectedCallback(), this.addEventListener(S.ANIMATION, this._handleChipAnimation), this.addEventListener(
3604
+ S.INTERACTION,
3605
+ this._handleChipInteraction
3606
+ ), this.addEventListener(S.NAVIGATION, this._handleChipNavigation);
3607
+ }
3608
+ disconnectedCallback() {
3609
+ super.disconnectedCallback(), this.removeEventListener(
3610
+ S.ANIMATION,
3611
+ this._handleChipAnimation
3612
+ ), this.removeEventListener(
3613
+ S.INTERACTION,
3614
+ this._handleChipInteraction
3615
+ ), this.removeEventListener(
3616
+ S.NAVIGATION,
3617
+ this._handleChipNavigation
3618
+ );
3619
+ }
3620
+ createAdapter() {
3621
+ return {
3622
+ /** Announces the message via an aria-live region */
3623
+ announceMessage: pn,
3624
+ /** Emits the given event with the given detail. */
3625
+ emitEvent: (e, t) => this.dispatchEvent(
3626
+ new CustomEvent(e, { bubbles: !0, detail: t })
3627
+ ),
3628
+ /** Returns the value for the given attribute, if it exists. */
3629
+ getAttribute: (e) => this.mdcRoot.getAttribute(e),
3630
+ /** Returns the actions provided by the child chip at the given index. */
3631
+ getChipActionsAtIndex: (e) => this.chips[e].getActions(),
3632
+ /** Returns the number of child chips. */
3633
+ getChipCount: () => this.chips.length,
3634
+ /** Returns the ID of the chip at the given index. */
3635
+ getChipIdAtIndex: (e) => this.chips[e].getElementID(),
3636
+ /** Returns the index of the child chip with the matching ID. */
3637
+ getChipIndexById: (e) => this.chips.findIndex((t) => t.getElementID() === e),
3638
+ /** Proxies to the MDCChip#isActionFocusable method. */
3639
+ isChipFocusableAtIndex: (e, t) => this.chips[e].isActionFocusable(t),
3640
+ /** Proxies to the MDCChip#isActionSelectable method. */
3641
+ isChipSelectableAtIndex: (e, t) => this.chips[e].isActionSelectable(t),
3642
+ /** Proxies to the MDCChip#isActionSelected method. */
3643
+ isChipSelectedAtIndex: (e, t) => this.chips[e].isActionSelected(t),
3644
+ /** Removes the chip at the given index. */
3645
+ removeChipAtIndex: (e) => this.chips[e].remove(),
3646
+ /** Proxies to the MDCChip#setActionFocus method. */
3647
+ setChipFocusAtIndex: (e, t, n) => this.chips[e].setActionFocus(t, n),
3648
+ /** Proxies to the MDCChip#setActionSelected method. */
3649
+ setChipSelectedAtIndex: (e, t, n) => this.chips[e].setActionSelected(t, n),
3650
+ /** Starts the chip animation at the given index. */
3651
+ startChipAnimationAtIndex: (e, t) => this.chips[e].startAnimation(t)
3652
+ };
3653
+ }
3654
+ _handleChipAnimation(e) {
3655
+ this.mdcFoundation.handleChipAnimation(e);
3656
+ }
3657
+ _handleChipInteraction(e) {
3658
+ this.mdcFoundation.handleChipInteraction(e);
3659
+ }
3660
+ _handleChipNavigation(e) {
3661
+ this.mdcFoundation.handleChipNavigation(e);
3662
+ }
3663
+ }
3664
+ nt([
3665
+ $t(".mdc-evolution-chip-set")
3666
+ ], J.prototype, "mdcRoot", 2);
3667
+ nt([
3668
+ R({ type: Boolean, reflect: !0 })
3669
+ ], J.prototype, "selectable", 2);
3670
+ nt([
3671
+ R({ type: Boolean, reflect: !0 })
3672
+ ], J.prototype, "multi", 2);
3673
+ nt([
3674
+ R()
3675
+ ], J.prototype, "label", 2);
3676
+ nt([
3677
+ R({ type: Number })
3678
+ ], J.prototype, "activeIndex", 2);
3679
+ const mn = `.mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}::slotted(cv-chip){margin:4px 0 4px 8px}[dir=rtl] ::slotted(cv-chip),::slotted(cv-chip[dir=rtl]){margin-left:0;margin-right:8px}
3680
+ `;
3681
+ var fn = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, gn = (i, e, t, n) => {
3682
+ for (var r = n > 1 ? void 0 : n ? vn(e, t) : e, o = i.length - 1, a; o >= 0; o--)
3683
+ (a = i[o]) && (r = (n ? a(e, t, r) : a(r)) || r);
3684
+ return n && r && fn(e, t, r), r;
3685
+ };
3686
+ let mt = class extends J {
3687
+ };
3688
+ mt.styles = [
3689
+ Gt`
3690
+ ${Wt(mn)}
3691
+ `
3692
+ ];
3693
+ mt = gn([
3694
+ jt("cv-chip-set")
3695
+ ], mt);