@holoviz/panel 0.14.3-rc.3 → 1.0.0-a.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (341) hide show
  1. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.iife.min.js +217 -0
  2. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.js +28286 -0
  3. package/dist/bundled/@microsoft/fast-components@2.30.6/dist/fast-components.min.js +217 -0
  4. package/dist/bundled/bootstrap/css/bootstrap.css +688 -0
  5. package/dist/bundled/bootstrap5/css/bootstrap-grid.css +4226 -0
  6. package/dist/bundled/bootstrap5/css/bootstrap-grid.min.css +6 -0
  7. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.css +4225 -0
  8. package/dist/bundled/bootstrap5/css/bootstrap-grid.rtl.min.css +6 -0
  9. package/dist/bundled/bootstrap5/css/bootstrap-reboot.css +591 -0
  10. package/dist/bundled/bootstrap5/css/bootstrap-reboot.min.css +6 -0
  11. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.css +588 -0
  12. package/dist/bundled/bootstrap5/css/bootstrap-reboot.rtl.min.css +6 -0
  13. package/dist/bundled/bootstrap5/css/bootstrap-utilities.css +5099 -0
  14. package/dist/bundled/bootstrap5/css/bootstrap-utilities.min.css +6 -0
  15. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.css +5090 -0
  16. package/dist/bundled/bootstrap5/css/bootstrap-utilities.rtl.min.css +6 -0
  17. package/dist/bundled/bootstrap5/css/bootstrap.css +11783 -0
  18. package/dist/bundled/bootstrap5/css/bootstrap.min.css +6 -0
  19. package/dist/bundled/bootstrap5/css/bootstrap.rtl.css +11747 -0
  20. package/dist/bundled/bootstrap5/css/bootstrap.rtl.min.css +6 -0
  21. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js +6295 -0
  22. package/dist/bundled/bootstrap5/js/bootstrap.bundle.js.map +1 -0
  23. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +7 -0
  24. package/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js.map +1 -0
  25. package/dist/bundled/bootstrap5/js/bootstrap.esm.js +4422 -0
  26. package/dist/bundled/bootstrap5/js/bootstrap.esm.js.map +1 -0
  27. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js +7 -0
  28. package/dist/bundled/bootstrap5/js/bootstrap.esm.min.js.map +1 -0
  29. package/dist/bundled/bootstrap5/js/bootstrap.js +4468 -0
  30. package/dist/bundled/bootstrap5/js/bootstrap.js.map +1 -0
  31. package/dist/bundled/bootstrap5/js/bootstrap.min.js +7 -0
  32. package/dist/bundled/bootstrap5/js/bootstrap.min.js.map +1 -0
  33. package/dist/bundled/bootstrapdarktheme/bootstrap_dark.css +170 -0
  34. package/dist/bundled/bootstrapdefaulttheme/bootstrap_default.css +120 -0
  35. package/dist/bundled/bootstraptemplate/bootstrap.css +119 -77
  36. package/dist/bundled/darktheme/dark.css +33 -106
  37. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/tabulator_fast.min.css +1 -0
  38. package/dist/bundled/defaulttheme/default.css +33 -2
  39. package/dist/bundled/fast/css/fast.css +919 -0
  40. package/dist/bundled/fast/js/fast_design.js +87 -0
  41. package/dist/bundled/fastbasetemplate/fast.css +335 -0
  42. package/dist/bundled/fastgridtemplate/fast_grid_template.css +256 -232
  43. package/dist/bundled/golden-layout@1.5.9/dist/css/goldenlayout-base.css +1 -0
  44. package/dist/bundled/golden-layout@1.5.9/dist/css/theme/goldenlayout-dark-theme.css +1 -0
  45. package/dist/bundled/goldentemplate/golden.css +2 -22
  46. package/dist/bundled/material/css/material.css +443 -0
  47. package/dist/bundled/materialtemplate/dark.css +2 -20
  48. package/dist/bundled/materialtemplate/default.css +2 -17
  49. package/dist/bundled/materialtemplate/material.css +119 -114
  50. package/dist/bundled/materialthememixin/material_variables.css +19 -0
  51. package/dist/bundled/native/css/native.css +28 -0
  52. package/dist/bundled/notificationarea/panel/1.0.0-a.1/dist/bundled/font-awesome/css/all.min.css +2 -0
  53. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/bootstrap5/css/bootstrap.min.css +2 -0
  54. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/bootstrap5/js/bootstrap.bundle.min.js +2 -0
  55. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/font-awesome/css/all.min.css +2 -0
  56. package/dist/bundled/panel/1.0.0-a.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
  57. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/fonts.css +1 -0
  58. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material-dark.css +1 -0
  59. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/material.css +1 -0
  60. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/monokai.css +1 -0
  61. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized-dark.css +1 -0
  62. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/solarized.css +1 -0
  63. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/themes.css +1 -0
  64. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/vaporwave.css +1 -0
  65. package/dist/bundled/perspective/@finos/perspective-viewer@1.9.3/dist/css/variables.css +0 -0
  66. package/dist/bundled/plotlyplot/panel/1.0.0-a.1/dist/bundled/jquery/jquery.slim.min.js +2 -0
  67. package/dist/bundled/react-dom@17/umd/react-dom.production.min.js +245 -0
  68. package/dist/bundled/react-grid-layout@1.3.4/dist/react-grid-layout.min.js +2 -0
  69. package/dist/bundled/react-grid-layout@1.3.4/dist/react-grid-layout.min.js.map +1 -0
  70. package/dist/bundled/react@17/umd/react.production.min.js +31 -0
  71. package/dist/bundled/reacttemplate/react.css +0 -12
  72. package/dist/bundled/vanillatemplate/vanilla.css +129 -134
  73. package/dist/css/alerts.css +64 -64
  74. package/dist/css/booleanstatus.css +48 -0
  75. package/dist/css/card.css +16 -8
  76. package/dist/css/dataframe.css +7 -2
  77. package/dist/css/debugger.css +16 -10
  78. package/dist/css/divider.css +10 -0
  79. package/dist/css/editable_slider.css +22 -0
  80. package/dist/css/katex.css +3 -0
  81. package/dist/css/loadingspinner.css +119 -0
  82. package/dist/css/markdown.css +2 -1
  83. package/dist/css/perspective-datatable.css +504 -0
  84. package/dist/css/plotly.css +246 -0
  85. package/dist/css/progress.css +209 -0
  86. package/dist/css/widgetbox.css +9 -0
  87. package/dist/css/widgets.css +0 -305
  88. package/dist/dts/styles/alerts.css.d.ts +3 -0
  89. package/dist/dts/styles/booleanstatus.css.d.ts +3 -0
  90. package/dist/dts/styles/card.css.d.ts +3 -0
  91. package/dist/dts/styles/dataframe.css.d.ts +3 -0
  92. package/dist/dts/styles/debugger.css.d.ts +3 -0
  93. package/dist/dts/styles/divider.css.d.ts +4 -0
  94. package/dist/dts/styles/editable_slider.css.d.ts +8 -0
  95. package/dist/dts/styles/json.css.d.ts +3 -0
  96. package/dist/dts/styles/katex.css.d.ts +3 -0
  97. package/dist/dts/styles/loading.css.d.ts +3 -0
  98. package/dist/dts/styles/loadingspinner.css.d.ts +3 -0
  99. package/dist/dts/styles/markdown.css.d.ts +3 -0
  100. package/dist/dts/styles/perspective-datatable.css.d.ts +3 -0
  101. package/dist/dts/styles/plotly.css.d.ts +3 -0
  102. package/dist/dts/styles/progress.css.d.ts +3 -0
  103. package/dist/dts/styles/widgetbox.css.d.ts +3 -0
  104. package/dist/dts/styles/widgets.css.d.ts +4 -0
  105. package/dist/lib/models/ace.d.ts +3 -5
  106. package/dist/lib/models/ace.js +24 -23
  107. package/dist/lib/models/ace.js.map +1 -1
  108. package/dist/lib/models/audio.d.ts +2 -4
  109. package/dist/lib/models/audio.js +18 -18
  110. package/dist/lib/models/audio.js.map +1 -1
  111. package/dist/lib/models/card.d.ts +3 -3
  112. package/dist/lib/models/card.js +56 -62
  113. package/dist/lib/models/card.js.map +1 -1
  114. package/dist/lib/models/comm_manager.d.ts +2 -2
  115. package/dist/lib/models/comm_manager.js +20 -19
  116. package/dist/lib/models/comm_manager.js.map +1 -1
  117. package/dist/lib/models/data.js +1 -1
  118. package/dist/lib/models/data.js.map +1 -1
  119. package/dist/lib/models/datetime_picker.d.ts +8 -7
  120. package/dist/lib/models/datetime_picker.js +128 -34
  121. package/dist/lib/models/datetime_picker.js.map +1 -1
  122. package/dist/lib/models/deckgl.d.ts +2 -4
  123. package/dist/lib/models/deckgl.js +24 -25
  124. package/dist/lib/models/deckgl.js.map +1 -1
  125. package/dist/lib/models/echarts.d.ts +3 -2
  126. package/dist/lib/models/echarts.js +22 -12
  127. package/dist/lib/models/echarts.js.map +1 -1
  128. package/dist/lib/models/file_download.d.ts +2 -2
  129. package/dist/lib/models/file_download.js +18 -17
  130. package/dist/lib/models/file_download.js.map +1 -1
  131. package/dist/lib/models/html.d.ts +5 -3
  132. package/dist/lib/models/html.js +20 -16
  133. package/dist/lib/models/html.js.map +1 -1
  134. package/dist/lib/models/index.d.ts +1 -2
  135. package/dist/lib/models/index.js +1 -2
  136. package/dist/lib/models/index.js.map +1 -1
  137. package/dist/lib/models/ipywidget.d.ts +2 -6
  138. package/dist/lib/models/ipywidget.js +14 -24
  139. package/dist/lib/models/ipywidget.js.map +1 -1
  140. package/dist/lib/models/json.d.ts +1 -1
  141. package/dist/lib/models/json.js +14 -12
  142. package/dist/lib/models/json.js.map +1 -1
  143. package/dist/lib/models/jsoneditor.d.ts +9 -6
  144. package/dist/lib/models/jsoneditor.js +27 -18
  145. package/dist/lib/models/jsoneditor.js.map +1 -1
  146. package/dist/lib/models/katex.d.ts +0 -1
  147. package/dist/lib/models/katex.js +7 -6
  148. package/dist/lib/models/katex.js.map +1 -1
  149. package/dist/lib/models/layout.d.ts +25 -22
  150. package/dist/lib/models/layout.js +75 -81
  151. package/dist/lib/models/layout.js.map +1 -1
  152. package/dist/lib/models/location.d.ts +0 -1
  153. package/dist/lib/models/location.js +15 -14
  154. package/dist/lib/models/location.js.map +1 -1
  155. package/dist/lib/models/mathjax.d.ts +0 -3
  156. package/dist/lib/models/mathjax.js +6 -16
  157. package/dist/lib/models/mathjax.js.map +1 -1
  158. package/dist/lib/models/pdf.d.ts +24 -0
  159. package/dist/lib/models/pdf.js +62 -0
  160. package/dist/lib/models/pdf.js.map +1 -0
  161. package/dist/lib/models/perspective.d.ts +4 -9
  162. package/dist/lib/models/perspective.js +36 -64
  163. package/dist/lib/models/perspective.js.map +1 -1
  164. package/dist/lib/models/player.d.ts +0 -1
  165. package/dist/lib/models/player.js +18 -17
  166. package/dist/lib/models/player.js.map +1 -1
  167. package/dist/lib/models/plotly.d.ts +3 -7
  168. package/dist/lib/models/plotly.js +60 -67
  169. package/dist/lib/models/plotly.js.map +1 -1
  170. package/dist/lib/models/progress.d.ts +4 -7
  171. package/dist/lib/models/progress.js +28 -32
  172. package/dist/lib/models/progress.js.map +1 -1
  173. package/dist/lib/models/quill.d.ts +3 -6
  174. package/dist/lib/models/quill.js +25 -24
  175. package/dist/lib/models/quill.js.map +1 -1
  176. package/dist/lib/models/reactive_html.d.ts +6 -12
  177. package/dist/lib/models/reactive_html.js +48 -121
  178. package/dist/lib/models/reactive_html.js.map +1 -1
  179. package/dist/lib/models/singleselect.d.ts +0 -1
  180. package/dist/lib/models/singleselect.js +11 -10
  181. package/dist/lib/models/singleselect.js.map +1 -1
  182. package/dist/lib/models/speech_to_text.d.ts +1 -2
  183. package/dist/lib/models/speech_to_text.js +27 -26
  184. package/dist/lib/models/speech_to_text.js.map +1 -1
  185. package/dist/lib/models/state.d.ts +0 -2
  186. package/dist/lib/models/state.js +12 -13
  187. package/dist/lib/models/state.js.map +1 -1
  188. package/dist/lib/models/tabulator.d.ts +10 -14
  189. package/dist/lib/models/tabulator.js +73 -150
  190. package/dist/lib/models/tabulator.js.map +1 -1
  191. package/dist/lib/models/terminal.d.ts +6 -7
  192. package/dist/lib/models/terminal.js +20 -26
  193. package/dist/lib/models/terminal.js.map +1 -1
  194. package/dist/lib/models/text_to_speech.d.ts +1 -2
  195. package/dist/lib/models/text_to_speech.js +16 -15
  196. package/dist/lib/models/text_to_speech.js.map +1 -1
  197. package/dist/lib/models/trend.d.ts +1 -2
  198. package/dist/lib/models/trend.js +24 -23
  199. package/dist/lib/models/trend.js.map +1 -1
  200. package/dist/lib/models/vega.d.ts +7 -6
  201. package/dist/lib/models/vega.js +31 -36
  202. package/dist/lib/models/vega.js.map +1 -1
  203. package/dist/lib/models/video.d.ts +2 -4
  204. package/dist/lib/models/video.js +18 -18
  205. package/dist/lib/models/video.js.map +1 -1
  206. package/dist/lib/models/videostream.d.ts +2 -4
  207. package/dist/lib/models/videostream.js +19 -19
  208. package/dist/lib/models/videostream.js.map +1 -1
  209. package/dist/lib/models/vtk/util.d.ts +4 -4
  210. package/dist/lib/models/vtk/vtkaxes.d.ts +1 -2
  211. package/dist/lib/models/vtk/vtkaxes.js +15 -14
  212. package/dist/lib/models/vtk/vtkaxes.js.map +1 -1
  213. package/dist/lib/models/vtk/vtkjs.d.ts +0 -1
  214. package/dist/lib/models/vtk/vtkjs.js +9 -8
  215. package/dist/lib/models/vtk/vtkjs.js.map +1 -1
  216. package/dist/lib/models/vtk/vtklayout.d.ts +2 -5
  217. package/dist/lib/models/vtk/vtklayout.js +24 -30
  218. package/dist/lib/models/vtk/vtklayout.js.map +1 -1
  219. package/dist/lib/models/vtk/vtksynchronized.d.ts +0 -1
  220. package/dist/lib/models/vtk/vtksynchronized.js +17 -16
  221. package/dist/lib/models/vtk/vtksynchronized.js.map +1 -1
  222. package/dist/lib/models/vtk/vtkvolume.d.ts +0 -1
  223. package/dist/lib/models/vtk/vtkvolume.js +27 -26
  224. package/dist/lib/models/vtk/vtkvolume.js.map +1 -1
  225. package/dist/lib/styles/alerts.css.d.ts +1 -2
  226. package/dist/lib/styles/alerts.css.js +1 -139
  227. package/dist/lib/styles/booleanstatus.css.d.ts +1 -0
  228. package/dist/lib/styles/booleanstatus.css.js +1 -0
  229. package/dist/lib/styles/card.css.d.ts +1 -2
  230. package/dist/lib/styles/card.css.js +1 -43
  231. package/dist/lib/styles/dataframe.css.d.ts +1 -2
  232. package/dist/lib/styles/dataframe.css.js +1 -44
  233. package/dist/lib/styles/debugger.css.d.ts +1 -2
  234. package/dist/lib/styles/debugger.css.js +1 -68
  235. package/dist/lib/styles/divider.css.d.ts +2 -0
  236. package/dist/lib/styles/divider.css.js +2 -0
  237. package/dist/lib/styles/editable_slider.css.d.ts +6 -0
  238. package/dist/lib/styles/editable_slider.css.js +6 -0
  239. package/dist/lib/styles/json.css.d.ts +1 -2
  240. package/dist/lib/styles/json.css.js +1 -197
  241. package/dist/lib/styles/katex.css.d.ts +1 -0
  242. package/dist/lib/styles/katex.css.js +1 -0
  243. package/dist/lib/styles/loading.css.d.ts +1 -2
  244. package/dist/lib/styles/loading.css.js +1 -31
  245. package/dist/lib/styles/loadingspinner.css.d.ts +1 -0
  246. package/dist/lib/styles/loadingspinner.css.js +17 -0
  247. package/dist/lib/styles/markdown.css.d.ts +1 -2
  248. package/dist/lib/styles/markdown.css.js +1 -91
  249. package/dist/lib/styles/perspective-datatable.css.d.ts +1 -0
  250. package/dist/lib/styles/perspective-datatable.css.js +1 -0
  251. package/dist/lib/styles/plotly.css.d.ts +1 -0
  252. package/dist/lib/styles/plotly.css.js +1 -0
  253. package/dist/lib/styles/progress.css.d.ts +1 -0
  254. package/dist/lib/styles/progress.css.js +22 -0
  255. package/dist/lib/styles/widgetbox.css.d.ts +1 -0
  256. package/dist/lib/styles/widgetbox.css.js +1 -0
  257. package/dist/lib/styles/widgets.css.d.ts +2 -2
  258. package/dist/lib/styles/widgets.css.js +2 -320
  259. package/dist/panel.js +4467 -5894
  260. package/dist/panel.js.map +1 -1
  261. package/dist/panel.json +1 -1
  262. package/dist/panel.min.js +65 -102
  263. package/dist/wheels/bokeh-3.1.0.dev4-py3-none-any.whl +0 -0
  264. package/dist/wheels/panel-1.0.0a1-py3-none-any.whl +0 -0
  265. package/package.json +5 -4
  266. package/dist/bundled/bootstraptemplate/dark.css +0 -19
  267. package/dist/bundled/css/golden-layout@1.5.9/src/css/goldenlayout-base.css +0 -1
  268. package/dist/bundled/css/panel/0.14.3-rc.3/dist/bundled/bootstrap4/css/bootstrap.min.css +0 -2
  269. package/dist/bundled/css/panel/0.14.3-rc.3/dist/bundled/font-awesome/css/all.min.css +0 -2
  270. package/dist/bundled/datatabulator/@holoviz/panel@0.14.3-rc.3/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  271. package/dist/bundled/datatabulator/tabulator-tables@5.3.2/dist/css/fast/tabulator_fast.min.css +0 -1
  272. package/dist/bundled/fastbasetemplate/fast_awesome.css +0 -13
  273. package/dist/bundled/fastbasetemplate/fast_bokeh.css +0 -1646
  274. package/dist/bundled/fastbasetemplate/fast_bokeh_slickgrid.css +0 -200
  275. package/dist/bundled/fastbasetemplate/fast_panel.css +0 -53
  276. package/dist/bundled/fastbasetemplate/fast_panel_dataframe.css +0 -14
  277. package/dist/bundled/fastbasetemplate/fast_panel_markdown.css +0 -23
  278. package/dist/bundled/fastbasetemplate/fast_panel_widgets.css +0 -301
  279. package/dist/bundled/fastbasetemplate/fast_root.css +0 -41
  280. package/dist/bundled/fastdarktheme/fast_root_dark.css +0 -4
  281. package/dist/bundled/fastdefaulttheme/fast_root_default.css +0 -4
  282. package/dist/bundled/fastgridtemplate/dark.css +0 -26
  283. package/dist/bundled/fastgridtemplate/default.css +0 -4
  284. package/dist/bundled/fastlisttemplate/dark.css +0 -13
  285. package/dist/bundled/fastlisttemplate/default.css +0 -1
  286. package/dist/bundled/fastlisttemplate/fast_list_template.css +0 -237
  287. package/dist/bundled/goldentemplate/dark.css +0 -26
  288. package/dist/bundled/goldentemplate/default.css +0 -23
  289. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/array-pixel-blob.js +0 -39
  290. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-blending.js +0 -270
  291. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-converters.js +0 -524
  292. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsl.js +0 -42
  293. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-hsv.js +0 -42
  294. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-interpolation.js +0 -133
  295. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lab.js +0 -47
  296. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-lch.js +0 -50
  297. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-palette.js +0 -285
  298. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-quantization.js +0 -135
  299. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-rgba-64.js +0 -95
  300. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-scale.js +0 -176
  301. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/color-xyz.js +0 -50
  302. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/component-state-color-palette.js +0 -113
  303. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/histogram.js +0 -76
  304. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/index.js +0 -19
  305. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/math-utilities.js +0 -138
  306. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/named-colors.js +0 -743
  307. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/palette-extractor.js +0 -134
  308. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/parse-color.js +0 -219
  309. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-blob.js +0 -72
  310. package/dist/bundled/js/@microsoft/fast-colors@5.3.1/dist/pixel-box.js +0 -249
  311. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/harness.js +0 -33
  312. package/dist/bundled/js/@microsoft/fast-components@1.21.8/__test__/server.js +0 -36
  313. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.iife.min.js +0 -19
  314. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.js +0 -25813
  315. package/dist/bundled/js/@microsoft/fast-components@1.21.8/dist/fast-components.min.js +0 -19
  316. package/dist/bundled/js/ajax/libs/react-grid-layout/1.1.1/react-grid-layout.min.js +0 -7
  317. package/dist/bundled/js/ajax/libs/react-grid-layout/1.1.1/react-grid-layout.min.js.map +0 -1
  318. package/dist/bundled/js/panel/0.14.3-rc.3/dist/bundled/bootstrap4/js/bootstrap.bundle.min.js +0 -2
  319. package/dist/bundled/js/panel/0.14.3-rc.3/dist/bundled/jquery/jquery.slim.min.js +0 -2
  320. package/dist/bundled/js/react-dom@18/umd/react-dom.production.min.js +0 -267
  321. package/dist/bundled/js/react@18/umd/react.production.min.js +0 -31
  322. package/dist/bundled/notificationarea/panel/0.14.3-rc.3/dist/bundled/font-awesome/css/all.min.css +0 -2
  323. package/dist/bundled/plotlyplot/panel/0.14.3-rc.3/dist/bundled/jquery/jquery.slim.min.js +0 -2
  324. package/dist/bundled/reacttemplate/dark.css +0 -18
  325. package/dist/bundled/reacttemplate/default.css +0 -12
  326. package/dist/bundled/theme/dark.css +0 -107
  327. package/dist/bundled/theme/default.css +0 -3
  328. package/dist/bundled/vanillatemplate/default.css +0 -8
  329. package/dist/idom/package.json +0 -38
  330. package/dist/lib/models/idom.d.ts +0 -36
  331. package/dist/lib/models/idom.js +0 -239
  332. package/dist/lib/models/idom.js.map +0 -1
  333. package/dist/lib/models/tabs.d.ts +0 -24
  334. package/dist/lib/models/tabs.js +0 -231
  335. package/dist/lib/models/tabs.js.map +0 -1
  336. package/dist/wheels/bokeh-2.4.3-py3-none-any.whl +0 -0
  337. package/dist/wheels/panel-0.14.3rc3-py3-none-any.whl +0 -0
  338. /package/dist/bundled/{js/babel-standalone@latest → babel-standalone@latest}/babel.min.js +0 -0
  339. /package/dist/bundled/{js/golden-layout@1.5.9 → golden-layout@1.5.9}/dist/goldenlayout.min.js +0 -0
  340. /package/dist/bundled/{css/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.css +0 -0
  341. /package/dist/bundled/{js/material-components-web@7.0.0 → material-components-web@7.0.0}/dist/material-components-web.min.js +0 -0
@@ -0,0 +1,217 @@
1
+ !function(t){"use strict";const e=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(t){return{}}}();void 0===e.trustedTypes&&(e.trustedTypes={createPolicy:(t,e)=>e});const i={configurable:!1,enumerable:!1,writable:!1};void 0===e.FAST&&Reflect.defineProperty(e,"FAST",Object.assign({value:Object.create(null)},i));const o=e.FAST;if(void 0===o.getById){const t=Object.create(null);Reflect.defineProperty(o,"getById",Object.assign({value(e,i){let o=t[e];return void 0===o&&(o=i?t[e]=i():null),o}},i))}const s=Object.freeze([]),n=e.FAST.getById(1,()=>{const t=[],i=[];function o(){if(i.length)throw i.shift()}function s(t){try{t.call()}catch(t){i.push(t),setTimeout(o,0)}}function n(){let e=0;for(;e<t.length;)if(s(t[e]),e++,e>1024){for(let i=0,o=t.length-e;i<o;i++)t[i]=t[i+e];t.length-=e,e=0}t.length=0}return Object.freeze({enqueue:function(i){t.length<1&&e.requestAnimationFrame(n),t.push(i)},process:n})}),r=e.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let a=r;const l="fast-"+Math.random().toString(36).substring(2,8),c=l+"{",h="}"+l,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(a!==r)throw new Error("The HTML policy can only be set once.");a=t},createHTML:t=>a.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(l+":","")),createInterpolationPlaceholder:t=>`${c}${t}${h}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate:n.enqueue,processUpdates:n.process,nextUpdate:()=>new Promise(n.enqueue),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});function u(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function p(t){const e=this.spillover,i=e.indexOf(t);-1!==i&&e.splice(i,1)}function g(t){const e=this.spillover,i=this.source;for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}function m(t){return-1!==this.spillover.indexOf(t)}class f{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.sub1===t||this.sub2===t}subscribe(t){this.has(t)||(void 0!==this.sub1?void 0!==this.sub2?(this.spillover=[this.sub1,this.sub2,t],this.subscribe=u,this.unsubscribe=p,this.notify=g,this.has=m,this.sub1=void 0,this.sub2=void 0):this.sub2=t:this.sub1=t)}unsubscribe(t){this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0)}notify(t){const e=this.sub1,i=this.sub2,o=this.source;void 0!==e&&e.handleChange(o,t),void 0!==i&&i.handleChange(o,t)}}class b{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new f(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new f(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const v=o.getById(2,()=>{const t=/(:|&&|\|\||if)/,e=new WeakMap,i=new WeakMap,o=d.queueUpdate;let s=void 0,n=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(t){let i=t.$fastController||e.get(t);return void 0===i&&(Array.isArray(t)?i=n(t):e.set(t,i=new b(t))),i}function a(t){let e=i.get(t);if(void 0===e){let o=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==o;)e=i.get(o),o=Reflect.getPrototypeOf(o);e=void 0===e?[]:e.slice(0),i.set(t,e)}return e}class l{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==s&&s.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),r(t).notify(this.name)}}}class c extends f{constructor(t,e,i=!1){super(t,e),this.binding=t,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return s=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=r(t),n=null===i?this.first:{};if(n.propertySource=t,n.propertyName=e,n.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;s=void 0,e=i.propertySource[i.propertyName],s=this,t===e&&(this.needsRefresh=!0)}i.next=n}this.last=n}handleChange(){this.needsQueue&&(this.needsQueue=!1,o(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(t){n=t},getNotifier:r,track(t,e){void 0!==s&&s.watch(t,e)},trackVolatile(){void 0!==s&&(s.needsRefresh=!0)},notify(t,e){r(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new l(e)),a(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors:a,binding(t,e,i=this.isVolatileBinding(t)){return new c(t,e,i)},isVolatileBinding:e=>t.test(e.toString())})});function y(t,e){v.defineProperty(t,e)}const x=o.getById(3,()=>{let t=null;return{get:()=>t,set(e){t=e}}});class ${constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return x.get()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){x.set(t)}}v.defineProperty($.prototype,"index"),v.defineProperty($.prototype,"length");const w=Object.seal(new $);class k{constructor(){this.targetIndex=0}}class C extends k{constructor(){super(...arguments),this.createPlaceholder=d.createInterpolationPlaceholder}}class I extends k{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return d.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function T(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=v.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function F(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function S(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function D(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function E(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function O(t){d.setAttribute(this.target,this.targetName,t)}function R(t){d.setBooleanAttribute(this.target,this.targetName,t)}function L(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function A(t){this.target[this.targetName]=t}function P(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class V extends C{constructor(t){super(),this.binding=t,this.bind=T,this.unbind=S,this.updateTarget=O,this.isBindingVolatile=v.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=A,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>d.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=R;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=F,this.unbind=E;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=P)}}targetAtContent(){this.updateTarget=L,this.unbind=D}createBehavior(t){return new H(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class H{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){$.setEvent(t);const e=this.binding(this.source,this.context);$.setEvent(null),!0!==e&&t.preventDefault()}}let z=null;class M{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){z=this}static borrow(t){const e=z||new M;return e.directives=t,e.reset(),z=null,e}}function B(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new V((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const N=h.length;function j(t,e){const i=e.split(c);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(h);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+N)}""!==r&&o.push(r)}return o}function q(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=j(t,a);let c=null;null===l?i&&(c=new V(()=>a),c.targetName=r.name):c=B(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function U(t,e,i){const o=j(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const _=document.createRange();class G{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){_.setStartBefore(t[0].firstChild),_.setEndAfter(t[t.length-1].lastChild),_.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class W{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=d.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=M.borrow(e);q(o,t,!0);const s=o.behaviorFactories;o.reset();const n=d.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:q(o,r);break;case 3:U(o,r,n);break;case 8:d.isMarker(r)&&o.addFactory(e[d.extractDirectiveIndexFromMarker(r)])}let a=0;(d.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=d.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new G(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,w),o.appendTo(e),o}}const K=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function X(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof W){const t=r;r=()=>t}if("function"==typeof r&&(r=new V(r)),r instanceof C){const t=K.exec(n);null!==t&&(r.targetName=t[2])}r instanceof k?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new W(o,i)}class Y{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function Q(t){return t.map(t=>t instanceof Y?Q(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function Z(t){return t.map(t=>t instanceof Y?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}Y.create=(()=>{if(d.supportsAdoptedStyleSheets){const t=new Map;return e=>new J(e,t)}return t=>new et(t)})();class J extends Y{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=Z(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=Q(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let tt=0;class et extends Y{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Z(t),this.styleSheets=Q(t),this.styleClass="fast-style-class-"+ ++tt}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const it={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},ot={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class st{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=it)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return v.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||d.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;d.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":d.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new st(t,o)):i.push(new st(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function nt(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const rt={mode:"open"},at={},lt=o.getById(4,()=>{const t=new Map;return Object.freeze({register:e=>!t.has(e.type)&&(t.set(e.type,e),!0),getByType:e=>t.get(e)})});class ct{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=st.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?rt:null===e.shadowOptions?void 0:Object.assign(Object.assign({},rt),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?at:Object.assign(Object.assign({},at),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?Y.create(e.styles):e.styles instanceof Y?e.styles:Y.create([e.styles])}get isDefined(){return!!lt.getByType(this.type)}define(t=customElements){const e=this.type;if(lt.register(this)){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)v.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}}ct.forType=lt.getByType;const ht=new WeakMap,dt={bubbles:!0,composed:!0,cancelable:!0};function ut(t){return t.shadowRoot||ht.get(t)||null}class pt extends b{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&ht.set(t,e)}const o=v.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return v.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,v.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=ut(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=ut(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,w)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,w);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,w);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},dt),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=ut(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||d.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=ct.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new pt(t,i)}}function gt(t){return class extends t{constructor(){super(),pt.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const mt=Object.assign(gt(HTMLElement),{from:t=>gt(t),define:(t,e)=>new ct(t,e).define().type});class ft{createCSS(){return""}createBehavior(){}}function bt(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof ft){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof Y||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function vt(t,...e){const{styles:i,behaviors:o}=bt(t,e),s=Y.create(i);return o.length&&s.withBehaviors(...o),s}class yt extends ft{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=Y.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function xt(t,...e){const{styles:i,behaviors:o}=bt(t,e);return new yt(i,o)}function $t(t,e,i){return{index:t,removed:e,addedCount:i}}function wt(t,e,i,o,n,r){let a=0,l=0;const c=Math.min(i-e,r-n);if(0===e&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,o,c)),i===t.length&&r===o.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,o,c-a)),n+=a,r-=l,(i-=l)-(e+=a)==0&&r-n==0)return s;if(e===i){const t=$t(e,[],0);for(;n<r;)t.removed.push(o[n++]);return[t]}if(n===r)return[$t(e,[],i-e)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,e,i,o,n,r)),d=[];let u=void 0,p=e,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=$t(p,[],0)),u.addedCount++,p++,u.removed.push(o[g]),g++;break;case 2:void 0===u&&(u=$t(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=$t(p,[],0)),u.removed.push(o[g]),g++}return void 0!==u&&d.push(u),d}const kt=Array.prototype.push;function Ct(t,e,i,o){const s=$t(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);kt.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);kt.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function It(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];Ct(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(wt(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let Tt=!1;function Ft(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class St extends f{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?It(this.source,t):wt(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Dt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Et(t){return new I("fast-ref",Dt,t)}function Ot(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}const Rt=Object.freeze({positioning:!1,recycle:!0});function Lt(t,e,i,o){t.bind(e[i],o)}function At(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class Pt{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Lt,this.itemsBindingObserver=v.binding(e,this,i),this.templateBindingObserver=v.binding(o,this,s),n.positioning&&(this.bindView=At)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=s);const e=this.itemsObserver,i=this.itemsObserver=v.getNotifier(this.items),o=e!==i;o&&null!==e&&e.unsubscribe(this),(o||t)&&i.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=[],s=this.bindView;let n=0;for(let e=0,s=t.length;e<s;++e){const s=t[e],r=s.removed;o.push(...i.splice(s.index+n,r.length)),n-=s.addedCount}const r=this.items,a=this.template;for(let n=0,l=t.length;n<l;++n){const l=t[n];let c=l.index;const h=c+l.addedCount;for(;c<h;++c){const t=i[c],n=t?t.firstChild:this.location,l=this.options.recycle&&o.length>0?o.shift():a.create();i.splice(c,0,l),s(l,r,c,e),l.insertBefore(n)}}for(let t=0,e=o.length;t<e;++t)o[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if((0===r||t)&&(G.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class Vt extends k{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=d.createBlockPlaceholder,function(){if(Tt)return;Tt=!0,v.setArrayObserverFactory(t=>new St(t));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice($t(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ft($t(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice($t(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ft($t(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ft($t(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=v.isVolatileBinding(t),this.isTemplateBindingVolatile=v.isVolatileBinding(e)}createBehavior(t){return new Pt(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Ht(t,e,i=Rt){return new Vt(t,"function"==typeof e?e:()=>e,i)}function zt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Mt{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=v.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(s),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Bt extends Mt{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Nt(t){return"string"==typeof t&&(t={property:t}),new I("fast-slotted",Bt,t)}class jt extends Mt{constructor(t,e){super(t,e),this.observer=null,e.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function qt(t){return"string"==typeof t&&(t={property:t}),new I("fast-children",jt,t)}class Ut{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const _t=(t,e)=>X`<span part="end" ${Et("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${Et("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,Gt=(t,e)=>X`<span part="start" ${Et("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${Et("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`,Wt=X`<span part="end" ${Et("endContainer")}><slot name="end" ${Et("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,Kt=X`<span part="start" ${Et("startContainer")}><slot name="start" ${Et("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */
16
+ function Xt(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const Yt=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=Yt.get(i);void 0===o&&Yt.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=Yt.get(e);if(void 0!==i)return i.get(t)});class Qt{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,ye(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new ae(o,t,e))}}function Zt(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],Fe(s)||(e[s]=t[s]);return e}const Jt=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new ae(t,1,t),transient:t=>new ae(t,2,t)}),te=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Jt.singleton})}),ee=new Map;function ie(t){return e=>Reflect.getOwnMetadata(t,e)}let oe=null;const se=Object.freeze({createContainer:t=>new be(null,Object.assign({},te.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:se.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(me,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||se.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new be(t,Object.assign({},te.default,e,{parentLocator:se.findParentContainer})):oe||(oe=new be(null,Object.assign({},te.default,e,{parentLocator:()=>null}))),getDesignParamtypes:ie("design:paramtypes"),getAnnotationParamtypes:ie("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=ee.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=se.getDesignParamtypes(t),o=se.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?Zt(se.getDependencies(i)):[]}else e=Zt(o);else if(void 0===o)e=Zt(i);else{e=Zt(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],Fe(r)||(e[r]=o[r])}}else e=Zt(i);ee.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?se.findResponsibleContainer(this):se.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof mt){const o=this.$fastController,n=()=>{se.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||ke,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)se.defineProperty(t,e,n,s);else{se.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new Qt(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=se.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)se.defineProperty(e,i,t[0]);else{const i=o?se.getOrCreateAnnotationParamTypes(o.value):se.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return xe.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=re)=>(t.register=function(e){return xe.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),ne=se.createInterface("Container");se.inject;const re={scoped:!1};class ae{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error("Cyclic dependency found: "+this.state.name);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function le(t){return this.get(t)}function ce(t,e){return e(t)}class he{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(le,t)):new this.Type(...this.dependencies.map(le,t),...e),null==this.transformers?i:this.transformers.reduce(ce,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const de={$isResolver:!0,resolve:(t,e)=>e};function ue(t){return"function"==typeof t.register}function pe(t){return function(t){return ue(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const ge=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),me="__DI_LOCATE_PARENT__",fe=new Map;class be{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(ne,de),t instanceof Node&&t.addEventListener(me,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.stopImmediatePropagation())})}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],Ce(e))if(ue(e))e.register(this,r);else if(void 0!==e.prototype)xe.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],Ce(o)&&(ue(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){$e(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof ae&&4===o.strategy?o.state.push(e):i.set(t,new ae(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if($e(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=pe(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if($e(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=pe(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,e=!1){$e(t);const i=this;let o,n=i;if(e){let e=s;for(;null!=n;)o=n.resolvers.get(t),null!=o&&(e=e.concat(we(o,n,i))),n=n.parent;return e}for(;null!=n;){if(o=n.resolvers.get(t),null!=o)return we(o,n,i);if(n=n.parent,null==n)return s}return s}getFactory(t){let e=fe.get(t);if(void 0===e){if(Ie(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");fe.set(t,e=new he(t,se.getDependencies(t)))}return e}registerFactory(t,e){fe.set(t,e)}createChild(t){return new be(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(ge.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ue(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const ve=new WeakMap;function ye(t){return function(e,i,o){if(ve.has(o))return ve.get(o);const s=t(e,i,o);return ve.set(o,s),s}}const xe=Object.freeze({instance:(t,e)=>new ae(t,0,e),singleton:(t,e)=>new ae(t,1,e),transient:(t,e)=>new ae(t,2,e),callback:(t,e)=>new ae(t,3,e),cachedCallback:(t,e)=>new ae(t,3,ye(e)),aliasTo:(t,e)=>new ae(e,5,t)});function $e(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function we(t,e,i){if(t instanceof ae&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const ke="(anonymous)";function Ce(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Ie=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),Te={};function Fe(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=Te[t];if(void 0!==e)return e;const i=t.length;if(0===i)return Te[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return Te[t]=!1;return Te[t]=!0}default:return!1}}function Se(t){return t.toLowerCase()+":presentation"}const De=new Map,Ee=Object.freeze({define(t,e,i){const o=Se(t);void 0===De.get(o)?De.set(o,e):De.set(o,!1),i.register(xe.instance(o,e))},forTag(t,e){const i=Se(t),o=De.get(i);if(!1===o){return se.findResponsibleContainer(e).get(i)}return o||null}});class Oe{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?Y.create(e):e instanceof Y?e:Y.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class Re extends mt{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Ee.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Ae(this===Re?class extends Re{}:this,t,e)}}function Le(t,e,i){return"function"==typeof t?t(e,i):t}Xt([y],Re.prototype,"template",void 0),Xt([y],Re.prototype,"styles",void 0);class Ae{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new Oe(Le(i.template,t,i),Le(i.styles,t,i));t.definePresentation(e);let s=Le(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Le(i.elementOptions,t,i),shadowOptions:s,attributes:Le(i.attributes,t,i)})}})}}function Pe(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class Ve extends Re{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}Xt([nt({attribute:"heading-level",mode:"fromView",converter:ot})],Ve.prototype,"headinglevel",void 0),Xt([nt({mode:"boolean"})],Ve.prototype,"expanded",void 0),Xt([nt],Ve.prototype,"id",void 0),Pe(Ve,Ut);const He="horizontal",ze="vertical";function Me(...t){return t.every(t=>t instanceof HTMLElement)}let Be;var Ne;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Ne||(Ne={}));const je={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var qe;function Ue(t,e,i){return i<t?e:i>e?t:i}function _e(t,e,i){return Math.min(Math.max(i,t),e)}function Ge(t,e,i=0){return[e,i]=[e,i].sort((t,e)=>t-e),e<=t&&t<i}!function(t){t.ltr="ltr",t.rtl="rtl"}(qe||(qe={}));let We=0;function Ke(t=""){return`${t}${We++}`}var Xe;!function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(Xe||(Xe={}));const Ye="single",Qe="multi";class Ze extends Re{constructor(){super(...arguments),this.expandmode=Qe,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof Ve&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===Ye}adjust(t){this.activeItemIndex=Ue(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof Ve&&t.expandbutton.focus()}}Xt([nt({attribute:"expand-mode"})],Ze.prototype,"expandmode",void 0),Xt([y],Ze.prototype,"accordionItems",void 0);const Je=(t,e)=>X`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Et("control")}>${Gt(0,e)}<span class="content" part="content"><slot ${Nt("defaultSlottedContent")}></slot></span>${_t(0,e)}</a>`;class ti{}Xt([nt({attribute:"aria-atomic"})],ti.prototype,"ariaAtomic",void 0),Xt([nt({attribute:"aria-busy"})],ti.prototype,"ariaBusy",void 0),Xt([nt({attribute:"aria-controls"})],ti.prototype,"ariaControls",void 0),Xt([nt({attribute:"aria-current"})],ti.prototype,"ariaCurrent",void 0),Xt([nt({attribute:"aria-describedby"})],ti.prototype,"ariaDescribedby",void 0),Xt([nt({attribute:"aria-details"})],ti.prototype,"ariaDetails",void 0),Xt([nt({attribute:"aria-disabled"})],ti.prototype,"ariaDisabled",void 0),Xt([nt({attribute:"aria-errormessage"})],ti.prototype,"ariaErrormessage",void 0),Xt([nt({attribute:"aria-flowto"})],ti.prototype,"ariaFlowto",void 0),Xt([nt({attribute:"aria-haspopup"})],ti.prototype,"ariaHaspopup",void 0),Xt([nt({attribute:"aria-hidden"})],ti.prototype,"ariaHidden",void 0),Xt([nt({attribute:"aria-invalid"})],ti.prototype,"ariaInvalid",void 0),Xt([nt({attribute:"aria-keyshortcuts"})],ti.prototype,"ariaKeyshortcuts",void 0),Xt([nt({attribute:"aria-label"})],ti.prototype,"ariaLabel",void 0),Xt([nt({attribute:"aria-labelledby"})],ti.prototype,"ariaLabelledby",void 0),Xt([nt({attribute:"aria-live"})],ti.prototype,"ariaLive",void 0),Xt([nt({attribute:"aria-owns"})],ti.prototype,"ariaOwns",void 0),Xt([nt({attribute:"aria-relevant"})],ti.prototype,"ariaRelevant",void 0),Xt([nt({attribute:"aria-roledescription"})],ti.prototype,"ariaRoledescription",void 0);class ei extends Re{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}Xt([nt],ei.prototype,"download",void 0),Xt([nt],ei.prototype,"href",void 0),Xt([nt],ei.prototype,"hreflang",void 0),Xt([nt],ei.prototype,"ping",void 0),Xt([nt],ei.prototype,"referrerpolicy",void 0),Xt([nt],ei.prototype,"rel",void 0),Xt([nt],ei.prototype,"target",void 0),Xt([nt],ei.prototype,"type",void 0),Xt([y],ei.prototype,"defaultSlottedContent",void 0);class ii{}Xt([nt({attribute:"aria-expanded"})],ii.prototype,"ariaExpanded",void 0),Pe(ii,ti),Pe(ei,Ut,ii);const oi=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?qe.rtl:qe.ltr};class si extends Re{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=qe.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(si.intersectionService.requestPosition(this,this.handleIntersection),si.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&si.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,si.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&si.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&si.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=oi(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=oi(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===qe.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const t=this.anchorRect.left+o,e=this.anchorRect.right-o;t<this.viewportRect.left&&!(e>this.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t<this.viewportRect.left)&&(this.translateX=this.translateX-(e-this.viewportRect.right))}}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const t=this.anchorRect.top+o,e=this.anchorRect.bottom-o;t<this.viewportRect.top&&!(e>this.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(t<this.viewportRect.top)&&(this.translateY=this.translateY-(e-this.viewportRect.bottom))}}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),d.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}si.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{e.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},Xt([nt],si.prototype,"anchor",void 0),Xt([nt],si.prototype,"viewport",void 0),Xt([nt({attribute:"horizontal-positioning-mode"})],si.prototype,"horizontalPositioningMode",void 0),Xt([nt({attribute:"horizontal-default-position"})],si.prototype,"horizontalDefaultPosition",void 0),Xt([nt({attribute:"horizontal-viewport-lock",mode:"boolean"})],si.prototype,"horizontalViewportLock",void 0),Xt([nt({attribute:"horizontal-inset",mode:"boolean"})],si.prototype,"horizontalInset",void 0),Xt([nt({attribute:"horizontal-threshold"})],si.prototype,"horizontalThreshold",void 0),Xt([nt({attribute:"horizontal-scaling"})],si.prototype,"horizontalScaling",void 0),Xt([nt({attribute:"vertical-positioning-mode"})],si.prototype,"verticalPositioningMode",void 0),Xt([nt({attribute:"vertical-default-position"})],si.prototype,"verticalDefaultPosition",void 0),Xt([nt({attribute:"vertical-viewport-lock",mode:"boolean"})],si.prototype,"verticalViewportLock",void 0),Xt([nt({attribute:"vertical-inset",mode:"boolean"})],si.prototype,"verticalInset",void 0),Xt([nt({attribute:"vertical-threshold"})],si.prototype,"verticalThreshold",void 0),Xt([nt({attribute:"vertical-scaling"})],si.prototype,"verticalScaling",void 0),Xt([nt({attribute:"fixed-placement",mode:"boolean"})],si.prototype,"fixedPlacement",void 0),Xt([nt({attribute:"auto-update-mode"})],si.prototype,"autoUpdateMode",void 0),Xt([y],si.prototype,"anchorElement",void 0),Xt([y],si.prototype,"viewportElement",void 0),Xt([y],si.prototype,"initialLayoutComplete",void 0);const ni={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},ri=Object.assign(Object.assign({},ni),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),ai=Object.assign(Object.assign({},ni),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),li=Object.assign(Object.assign({},ni),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),ci=Object.assign(Object.assign({},ri),{verticalScaling:"fill"}),hi=Object.assign(Object.assign({},ai),{verticalScaling:"fill"}),di=Object.assign(Object.assign({},li),{verticalScaling:"fill"});class ui extends Re{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}}Xt([nt],ui.prototype,"fill",void 0),Xt([nt],ui.prototype,"color",void 0),Xt([nt],ui.prototype,"link",void 0),Xt([nt],ui.prototype,"shape",void 0);class pi extends Re{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}Xt([nt({attribute:"fill"})],pi.prototype,"fill",void 0),Xt([nt({attribute:"color"})],pi.prototype,"color",void 0),Xt([nt({mode:"boolean"})],pi.prototype,"circular",void 0);class gi extends ei{constructor(){super(...arguments),this.separator=!0}}Xt([y],gi.prototype,"separator",void 0),Pe(gi,Ut,ii);class mi extends Re{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(e=>{const i=e===t;this.setItemSeparator(e,i),this.setAriaCurrent(e,i)})}}setItemSeparator(t,e){t instanceof gi&&(t.separator=!e)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setAriaCurrent(t,e){const i=this.findChildWithHref(t);null===i&&t.hasAttribute("href")&&t instanceof gi?e?t.setAttribute("aria-current","page"):t.removeAttribute("aria-current"):null!==i&&(e?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current"))}}Xt([y],mi.prototype,"slottedBreadcrumbItems",void 0);const fi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,bi=new WeakMap;function vi(t){const e=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return fi}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return s}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),d.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),d.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!fi)return null;let t=bi.get(this);return t||(t=this.attachInternals(),bi.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return nt({mode:"boolean"})(e.prototype,"disabled"),nt({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),nt({attribute:"current-value"})(e.prototype,"currentValue"),nt(e.prototype,"name"),nt({mode:"boolean"})(e.prototype,"required"),y(e.prototype,"value"),e}function yi(t){class e extends(vi(t)){}class i extends e{constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return nt({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),nt({attribute:"current-checked",converter:it})(i.prototype,"currentChecked"),y(i.prototype,"defaultChecked"),y(i.prototype,"checked"),i}class xi extends Re{}class $i extends(vi(xi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class wi extends $i{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.removeEventListener("click",this.handleClick)})}}Xt([nt({mode:"boolean"})],wi.prototype,"autofocus",void 0),Xt([nt({attribute:"form"})],wi.prototype,"formId",void 0),Xt([nt],wi.prototype,"formaction",void 0),Xt([nt],wi.prototype,"formenctype",void 0),Xt([nt],wi.prototype,"formmethod",void 0),Xt([nt({mode:"boolean"})],wi.prototype,"formnovalidate",void 0),Xt([nt],wi.prototype,"formtarget",void 0),Xt([nt],wi.prototype,"type",void 0),Xt([y],wi.prototype,"defaultSlottedContent",void 0);class ki{}Xt([nt({attribute:"aria-expanded"})],ki.prototype,"ariaExpanded",void 0),Xt([nt({attribute:"aria-pressed"})],ki.prototype,"ariaPressed",void 0),Pe(ki,ti),Pe(wi,Ut,ki);class Ci{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:o}=t;return new Date(o,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(t),s=Object.assign({timeZone:"utc"},e);return new Intl.DateTimeFormat(i,s).format(o)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const o=`1-${t+1}-2017`;return this.getDate(o,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map((i,o)=>this.getWeekday(o,t,e))}}class Ii extends Re{constructor(){super(...arguments),this.dateFormatter=new Ci,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},s=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:o(s),month:t,start:i(s),year:e,previous:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:o,previous:s,next:n}=t,r=[];let a=1-i;for(;a<o+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?s:a>o?n:t,l=a<1?s.length+a:a>o?a-o:a,c=`${e}-${l}-${i}`,h={day:l,month:e,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=r[r.length-1];0===r.length||d.length%7==0?r.push([h]):d.push(h),a++}return r}dateInString(t,e){const i=e.split(",").map(t=>t.trim());return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some(e=>e===t)}getDayClassNames(t,e){const{day:i,month:o,year:s,disabled:n,selected:r}=t;return["day",e===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map(t=>({text:t}));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach((t,i)=>{t.abbr=e[i]})}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return"Enter"===t.key&&this.handleDateSelect(t,e),!0}}Xt([nt({mode:"boolean"})],Ii.prototype,"readonly",void 0),Xt([nt],Ii.prototype,"locale",void 0),Xt([nt({converter:ot})],Ii.prototype,"month",void 0),Xt([nt({converter:ot})],Ii.prototype,"year",void 0),Xt([nt({attribute:"day-format",mode:"fromView"})],Ii.prototype,"dayFormat",void 0),Xt([nt({attribute:"weekday-format",mode:"fromView"})],Ii.prototype,"weekdayFormat",void 0),Xt([nt({attribute:"month-format",mode:"fromView"})],Ii.prototype,"monthFormat",void 0),Xt([nt({attribute:"year-format",mode:"fromView"})],Ii.prototype,"yearFormat",void 0),Xt([nt({attribute:"min-weeks",converter:ot})],Ii.prototype,"minWeeks",void 0),Xt([nt({attribute:"disabled-dates"})],Ii.prototype,"disabledDates",void 0),Xt([nt({attribute:"selected-dates"})],Ii.prototype,"selectedDates",void 0);const Ti="none",Fi="default",Si="sticky",Di="default",Ei="columnheader",Oi="rowheader",Ri="default",Li="header",Ai="sticky-header";class Pi extends Re{constructor(){super(...arguments),this.rowType=Ri,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Vt(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Ri&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Ri&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}Xt([nt({attribute:"grid-template-columns"})],Pi.prototype,"gridTemplateColumns",void 0),Xt([nt({attribute:"row-type"})],Pi.prototype,"rowType",void 0),Xt([y],Pi.prototype,"rowData",void 0),Xt([y],Pi.prototype,"columnDefinitions",void 0),Xt([y],Pi.prototype,"cellItemTemplate",void 0),Xt([y],Pi.prototype,"headerCellItemTemplate",void 0),Xt([y],Pi.prototype,"rowIndex",void 0),Xt([y],Pi.prototype,"isActiveRow",void 0),Xt([y],Pi.prototype,"activeCellItemTemplate",void 0),Xt([y],Pi.prototype,"defaultCellItemTemplate",void 0),Xt([y],Pi.prototype,"defaultHeaderCellItemTemplate",void 0),Xt([y],Pi.prototype,"cellElements",void 0);class Vi extends Re{constructor(){super(),this.noTabbing=!1,this.generateHeader=Fi,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,d.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(void 0===t){if(""===this.generatedGridTemplateColumns&&this.rowElements.length>0){const t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=Vi.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=Vi.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Vt(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),d.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===Si&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,d.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Ti&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Si?Ai:Li,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}Vi.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),Xt([nt({attribute:"no-tabbing",mode:"boolean"})],Vi.prototype,"noTabbing",void 0),Xt([nt({attribute:"generate-header"})],Vi.prototype,"generateHeader",void 0),Xt([nt({attribute:"grid-template-columns"})],Vi.prototype,"gridTemplateColumns",void 0),Xt([y],Vi.prototype,"rowsData",void 0),Xt([y],Vi.prototype,"columnDefinitions",void 0),Xt([y],Vi.prototype,"rowItemTemplate",void 0),Xt([y],Vi.prototype,"cellItemTemplate",void 0),Xt([y],Vi.prototype,"headerCellItemTemplate",void 0),Xt([y],Vi.prototype,"focusRowIndex",void 0),Xt([y],Vi.prototype,"focusColumnIndex",void 0),Xt([y],Vi.prototype,"defaultRowItemTemplate",void 0),Xt([y],Vi.prototype,"rowElementTag",void 0),Xt([y],Vi.prototype,"rowElements",void 0);const Hi=X`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,zi=X`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Mi extends Re{constructor(){super(...arguments),this.cellType=Di,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.gridColumn)?0:this.columnDefinition.gridColumn),this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case Ei:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===Di&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ei&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case Ei:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}break;default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus(),t.preventDefault()}}break;case"Escape":this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ei:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=zi.render(this,this);break;case void 0:case Oi:case Di:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Hi.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}Xt([nt({attribute:"cell-type"})],Mi.prototype,"cellType",void 0),Xt([nt({attribute:"grid-column"})],Mi.prototype,"gridColumn",void 0),Xt([y],Mi.prototype,"rowData",void 0),Xt([y],Mi.prototype,"columnDefinition",void 0);const Bi=X`<div class="title" part="title" aria-label="${t=>t.dateFormatter.getDate(`${t.month}-2-${t.year}`,{month:"long",year:"numeric"})}"><span part="month">${t=>t.dateFormatter.getMonth(t.month)}</span><span part="year">${t=>t.dateFormatter.getYear(t.year)}</span></div>`,Ni=(t,e)=>{const i=t.tagFor(Pi);return X`<${i} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Ht(t=>t,((t,e)=>{const i=t.tagFor(Mi);return X`<${i} class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}" part="day" tabindex="-1" role="gridcell" grid-column="${(t,e)=>e.index+1}" @click="${(t,e)=>e.parentContext.parent.handleDateSelect(e.event,t)}" @keydown="${(t,e)=>e.parentContext.parent.handleKeydown(e.event,t)}" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${t=>e===`${t.month}-${t.day}-${t.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></${i}>`})(t,e),{positioning:!0})}</${i}>`},ji=(t,e)=>{const i=t.tagFor(Vi),o=t.tagFor(Pi);return X`<${i} class="days interact" part="days" generate-header="none"><${o} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Ht(t=>t.getWeekdayText(),(t=>{const e=t.tagFor(Mi);return X`<${e} class="week-day" part="week-day" tabindex="-1" grid-column="${(t,e)=>e.index+1}" abbr="${t=>t.abbr}">${t=>t.text}</${e}>`})(t),{positioning:!0})}</${o}>${Ht(t=>t.getDays(),Ni(t,e))}</${i}>`};class qi extends Re{}class Ui extends Re{}class _i extends(yi(Ui)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Gi extends _i{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function Wi(t){return Me(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}Xt([nt({attribute:"readonly",mode:"boolean"})],Gi.prototype,"readOnly",void 0),Xt([y],Gi.prototype,"defaultSlottedNodes",void 0),Xt([y],Gi.prototype,"indeterminate",void 0);class Ki extends Re{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=""+(null!=t?t:"");this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),v.notify(this,"value")}get value(){var t;return v.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}}Xt([y],Ki.prototype,"checked",void 0),Xt([y],Ki.prototype,"content",void 0),Xt([y],Ki.prototype,"defaultSelected",void 0),Xt([nt({mode:"boolean"})],Ki.prototype,"disabled",void 0),Xt([nt({attribute:"selected",mode:"boolean"})],Ki.prototype,"selectedAttribute",void 0),Xt([y],Ki.prototype,"selected",void 0),Xt([nt({attribute:"value",mode:"fromView"})],Ki.prototype,"initialValue",void 0);class Xi{}Xt([y],Xi.prototype,"ariaChecked",void 0),Xt([y],Xi.prototype,"ariaPosInSet",void 0),Xt([y],Xi.prototype,"ariaSelected",void 0),Xt([y],Xi.prototype,"ariaSetSize",void 0),Pe(Xi,ti),Pe(Ki,Ut,Xi);class Yi extends Re{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return v.track(this,"options"),this._options}set options(t){this._options=t,v.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi");return this.options.filter(t=>t.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,o=t+i;let s=null;switch(i){case-1:s=this.options.reduceRight((t,e,i)=>!t&&!e.disabled&&i<o?e:t,s);break;case 1:s=this.options.reduce((t,e,i)=>!t&&!e.disabled&&i>o?e:t,s)}return this.options.indexOf(s)}handleChange(t,e){switch(e){case"selected":Yi.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Yi.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),o=i>-1?i:t;return this.selectedIndex=o,void(e===o&&this.selectedIndexChanged(e,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const o=e.filter(Yi.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach(t=>{const e=v.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=o.includes(t),e.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>!t.disabled))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.defaultSelected))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((t,e)=>(Wi(e)&&t.push(e),t),[]);const i=""+this.options.length;this.options.forEach((t,e)=>{t.id||(t.id=Ke("option-")),t.ariaPosInSet=""+(e+1),t.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}Yi.slottedOptionFilter=t=>Wi(t)&&!t.hidden,Yi.TYPE_AHEAD_TIMEOUT_MS=1e3,Xt([nt({mode:"boolean"})],Yi.prototype,"disabled",void 0),Xt([y],Yi.prototype,"selectedIndex",void 0),Xt([y],Yi.prototype,"selectedOptions",void 0),Xt([y],Yi.prototype,"slottedOptions",void 0),Xt([y],Yi.prototype,"typeaheadBuffer",void 0);class Qi{}Xt([y],Qi.prototype,"ariaActiveDescendant",void 0),Xt([y],Qi.prototype,"ariaDisabled",void 0),Xt([y],Qi.prototype,"ariaExpanded",void 0),Xt([y],Qi.prototype,"ariaMultiSelectable",void 0),Pe(Qi,ti),Pe(Yi,Qi);const Zi="above",Ji="below";class to extends Yi{}class eo extends(vi(to)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const io="inline",oo="list",so="both",no="none";class ro extends eo{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Ke("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}get isAutocompleteInline(){return this.autocomplete===io||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===oo||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===so}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void d.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}get options(){return v.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,v.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return v.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),v.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==no||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})}))}focusoutHandler(t){if(this.updateValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),"deleteContentBackward"===t.inputType||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&this.filteredOptions.length&&(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection())}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":this.updateValue(!0),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.updateValue(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&(this.updateValue(),this.setInlineSelection());break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=_e(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInlineSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Zi:Ji,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Zi?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}Xt([nt({attribute:"autocomplete",mode:"fromView"})],ro.prototype,"autocomplete",void 0),Xt([y],ro.prototype,"maxHeight",void 0),Xt([nt({attribute:"open",mode:"boolean"})],ro.prototype,"open",void 0),Xt([nt],ro.prototype,"placeholder",void 0),Xt([nt({attribute:"position"})],ro.prototype,"positionAttribute",void 0),Xt([y],ro.prototype,"position",void 0);class ao{}Xt([y],ao.prototype,"ariaAutoComplete",void 0),Xt([y],ao.prototype,"ariaControls",void 0),Pe(ao,Qi),Pe(ro,Ut,ao);function lo(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}const co=document.createElement("div");class ho{setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class uo extends ho{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class po extends ho{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class go{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),v.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),d.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),d.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}Xt([y],go.prototype,"target",void 0);class mo{constructor(t){this.target=t.style}setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class fo{setProperty(t,e){fo.properties[t]=e;for(const i of fo.roots.values())yo.getOrCreate(fo.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete fo.properties[t];for(const e of fo.roots.values())yo.getOrCreate(fo.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=fo;if(!e.has(t)){e.add(t);const i=yo.getOrCreate(this.normalizeRoot(t));for(const t in fo.properties)i.setProperty(t,fo.properties[t])}}static unregisterRoot(t){const{roots:e}=fo;if(e.has(t)){e.delete(t);const i=yo.getOrCreate(fo.normalizeRoot(t));for(const t in fo.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===co?document:t}}fo.roots=new Set,fo.properties={};const bo=new WeakMap,vo=d.supportsAdoptedStyleSheets?class extends ho{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(Y.create([e]))}}:go,yo=Object.freeze({getOrCreate(t){if(bo.has(t))return bo.get(t);let e;return t===co?e=new fo:t instanceof Document?e=d.supportsAdoptedStyleSheets?new uo:new po:e=t instanceof mt?new vo(t):new mo(t),bo.set(t,e),e}});class xo extends ft{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=xo.uniqueId(),xo.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new xo({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return xo.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=Io.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof xo&&(e=this.alias(e)),Io.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),Io.existsFor(t)&&Io.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(co,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!Io.existsFor(e)&&Io.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}xo.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),xo.tokensById=new Map;class $o{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=v.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,w))}}class wo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),v.getNotifier(this).notify(t.id))}get(t){return v.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const ko=new WeakMap,Co=new WeakMap;class Io{constructor(t){this.target=t,this.store=new wo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=xo.getTokenById(e);if(i&&(i.notify(this.target),xo.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},ko.set(t,this),v.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof mt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return ko.get(t)||new Io(t)}static existsFor(t){return ko.has(t)}static findParent(t){if(co!==t.target){let e=lo(t.target);for(;null!==e;){if(ko.has(e))return ko.get(e);e=lo(e)}return Io.getOrCreate(co)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==co?Io.getOrCreate(co):null}while(null!==i);return null}get parent(){return Co.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=Io.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){xo.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),xo.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=Io.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){Co.get(this).removeChild(this)}}appendChild(t){t.parent&&Co.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));Co.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),v.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),v.getNotifier(this.store).unsubscribe(t),t.parent===this&&Co.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=lo(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Io.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Io.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=xo.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);xo.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new $o(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}Io.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){yo.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(Io.getOrCreate(e).get(t)))}remove(t,e){yo.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},Xt([y],Io.prototype,"children",void 0);const To=Object.freeze({create:function(t){return xo.from(t)},notifyConnection:t=>!(!t.isConnected||!Io.existsFor(t))&&(Io.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!Io.existsFor(t))&&(Io.getOrCreate(t).unbind(),!0),registerRoot(t=co){fo.registerRoot(t)},unregisterRoot(t=co){fo.unregisterRoot(t)}}),Fo=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),So=new Map,Do=new Map;let Eo=null;const Oo=se.createInterface(t=>t.cachedCallback(t=>(null===Eo&&(Eo=new Lo(null,t)),Eo))),Ro=Object.freeze({tagFor:t=>Do.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return se.findResponsibleContainer(t).get(Oo)},getOrCreate(t){if(!t)return null===Eo&&(Eo=se.getOrCreateDOMContainer().get(Oo)),Eo;const e=t.$$designSystem$$;if(e)return e;const i=se.getOrCreateDOMContainer(t);if(i.has(Oo,!1))return i.get(Oo);{const e=new Lo(t,i);return i.register(xe.instance(Oo,e)),e}}});class Lo{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Fo.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=So.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case Fo.ignoreDuplicate:return;case Fo.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=So.get(u)}}g&&((Do.has(d)||d===Re)&&(d=class extends d{}),So.set(u,d),Do.set(d,u),h&&Do.set(h,u)),i.push(new Ao(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&To.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class Ao{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Ee.define(this.name,t,this.container)}defineElement(t){this.definition=new ct(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Ro.tagFor(t)}}
17
+ /*!
18
+ * tabbable 5.2.1
19
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
20
+ */
21
+ var Po=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Vo=Po.join(","),Ho="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zo=function(t){return"INPUT"===t.tagName},Mo=function(t){return function(t){return zo(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},Bo=function(t,e){return!(e.disabled||function(t){return zo(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Ho.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Ho.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(zo(t)||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||"BUTTON"===t.tagName)for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var i=0;i<e.children.length;i++){var o=e.children.item(i);if("LEGEND"===o.tagName)return!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},No=function(t,e){return!(!Bo(t,e)||Mo(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},jo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ho.call(t,Vo)&&No(e,t)},qo=Po.concat("iframe").join(","),Uo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ho.call(t,qo)&&Bo(e,t)};class _o extends Re{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>_o.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),d.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=v.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:jo(e)||_o.isFocusableFastElement(e)&&_o.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(_o.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>jo(t))}}Xt([nt({mode:"boolean"})],_o.prototype,"modal",void 0),Xt([nt({mode:"boolean"})],_o.prototype,"hidden",void 0),Xt([nt({attribute:"trap-focus",mode:"boolean"})],_o.prototype,"trapFocus",void 0),Xt([nt({attribute:"aria-describedby"})],_o.prototype,"ariaDescribedby",void 0),Xt([nt({attribute:"aria-labelledby"})],_o.prototype,"ariaLabelledby",void 0),Xt([nt({attribute:"aria-label"})],_o.prototype,"ariaLabel",void 0);class Go extends Re{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit("toggle")}}Xt([nt({mode:"boolean"})],Go.prototype,"expanded",void 0),Xt([nt],Go.prototype,"title",void 0);const Wo="separator";class Ko extends Re{constructor(){super(...arguments),this.role=Wo,this.orientation=He}}Xt([nt],Ko.prototype,"role",void 0),Xt([nt],Ko.prototype,"orientation",void 0);const Xo="next",Yo="previous";class Qo extends Re{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Xo}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"!==e&&"Space"!==e||this.$emit("click",t),"Escape"===e&&this.blur()}}}Xt([nt({mode:"boolean"})],Qo.prototype,"disabled",void 0),Xt([nt({attribute:"aria-hidden",converter:it})],Qo.prototype,"hiddenFromAT",void 0),Xt([nt],Qo.prototype,"direction",void 0);class Zo extends Yi{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,e)=>{t.checked=Ge(e,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ge(e,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=Ge(e,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((t,e)=>{t.checked=Ge(e,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case"Home":return void this.checkFirstOption(i);case"ArrowDown":return void this.checkNextOption(i);case"ArrowUp":return void this.checkPreviousOption(i);case"End":return void this.checkLastOption(i);case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Escape":return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case" ":if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach(t=>{t.checked=!e&&void 0}),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const o=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));o!==e&&d.queueUpdate(()=>{this.size=o})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(t=>!t.disabled),e=!t.every(t=>t.selected);t.forEach(t=>t.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach(t=>t.checked=!this.multiple&&void 0),t||(this.rangeStartIndex=-1)}}Xt([y],Zo.prototype,"activeIndex",void 0),Xt([nt({mode:"boolean"})],Zo.prototype,"multiple",void 0),Xt([nt({converter:ot})],Zo.prototype,"size",void 0);class Jo extends Re{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(t){void 0!==t&&t.forEach(t=>{1===t.nodeType&&"listitem"===t.getAttribute("role")&&(t.id=t.id||Ke("option-"),this.optionElements.push(t))})}}Xt([y],Jo.prototype,"menuElements",void 0),Xt([y],Jo.prototype,"headerElements",void 0),Xt([y],Jo.prototype,"footerElements",void 0),Xt([y],Jo.prototype,"suggestionsAvailableText",void 0);const ts=X`<template>${t=>t.value}</template>`;class es extends Re{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(t){return t.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var t,e;this.disconnectView(),this.customView=null!==(e=null===(t=this.contentsTemplate)||void 0===t?void 0:t.render(this,this))&&void 0!==e?e:ts.render(this,this)}disconnectView(){var t;null===(t=this.customView)||void 0===t||t.dispose(),this.customView=void 0}}Xt([nt({attribute:"value"})],es.prototype,"value",void 0),Xt([y],es.prototype,"contentsTemplate",void 0);class is extends Re{}const os=X`<template>${t=>t.value}</template>`;class ss extends Re{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(t){return!t.defaultPrevented&&("Enter"!==t.key||(this.handleInvoke(),!1))}handleClick(t){return t.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var t,e;this.disconnectView(),this.customView=null!==(e=null===(t=this.contentsTemplate)||void 0===t?void 0:t.render(this,this))&&void 0!==e?e:os.render(this,this)}disconnectView(){var t;null===(t=this.customView)||void 0===t||t.dispose(),this.customView=void 0}}Xt([nt({attribute:"value"})],ss.prototype,"value",void 0),Xt([y],ss.prototype,"contentsTemplate",void 0);class ns extends Re{}class rs extends(vi(ns)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const as=X`<input slot="input-region" role="combobox" type="text" autocapitalize="off" autocomplete="off" haspopup="list" aria-label="${t=>t.label}" aria-labelledby="${t=>t.labelledBy}" placeholder="${t=>t.placeholder}" ${Et("inputElement")}></input>`;class ls extends rs{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=t=>{this.query=this.inputElement.value},this.handleInputClick=t=>{t.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{this.flyoutOpen&&(null!==this.region&&void 0!==this.region?this.region.anchorElement=this.inputElement:d.queueUpdate(this.setRegionProps))},this.configLookup={top:ri,bottom:ai,tallest:li,"top-fill":ci,"bottom-fill":hi,"tallest-fill":di}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map(t=>t.trim()).filter(t=>""!==t)}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&d.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=0===this.filteredOptionsList.length&&0===this.menuElement.querySelectorAll('[role="listitem"]').length,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(d.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&d.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=as.render(this,this.listElement);const t=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(e=>e.tagName===t),void 0===this.menuElement&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),""===this.menuElement.id&&(this.menuElement.id=Ke("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),d.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),null!==this.inputElementView&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new Vt(t=>t.selectedItems,t=>t.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new Vt(t=>t.filteredOptionsList,t=>t.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(t){if(this.flyoutOpen!==t){if(t&&document.activeElement===this.inputElement)return this.flyoutOpen=t,void d.queueUpdate(()=>{void 0!==this.menuElement?this.setFocusedOption(0):this.disableMenu()});this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(t){t.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(t){if(t.defaultPrevented)return!1;switch(t.key){case"ArrowDown":if(this.flyoutOpen){const t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case"ArrowUp":if(this.flyoutOpen){const t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}else this.toggleFlyout(!0);return!1;case"Escape":return this.toggleFlyout(!1),!1;case"Enter":return-1!==this.menuFocusIndex&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case"ArrowRight":return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case"ArrowLeft":return 0!==this.inputElement.selectionStart||(this.incrementFocusedItem(-1),!1);case"Delete":case"Backspace":{if(null===document.activeElement)return!0;if(document.activeElement===this.inputElement)return 0!==this.inputElement.selectionStart||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);const t=Array.from(this.listElement.children),e=t.indexOf(document.activeElement);return!(e>-1)||(this.selection=this.selectedItems.splice(e,1).toString(),d.queueUpdate(()=>{t[Math.min(t.length,e)].focus()}),!1)}}return this.toggleFlyout(!0),!0}handleFocusIn(t){return!1}handleFocusOut(t){return void 0!==this.menuElement&&this.menuElement.contains(t.relatedTarget)||this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=""===this.selection?[]:this.selection.split(","),this.updateFilteredOptions(),d.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(t){d.queueUpdate(()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})})}checkMaxItems(){if(void 0!==this.inputElement)if(void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));t[t.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(t){if(t.defaultPrevented)return!1;if(t.target instanceof ss){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(t.target);if(-1!==e){const t=this.selectedItems.slice();t.splice(e,1),this.selection=t.toString(),d.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(t){return!t.defaultPrevented&&(!(t.target instanceof es)||(void 0!==t.target.value&&(this.selection=`${this.selection}${""===this.selection?"":","}${t.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1))}incrementFocusedItem(t){if(0===this.selectedItems.length)return void this.inputElement.focus();const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(null!==document.activeElement){let i=e.indexOf(document.activeElement);-1===i&&(i=e.length);const o=Math.min(e.length,Math.max(0,i+t));o===e.length?void 0!==this.maxSelected&&this.selectedItems.length>=this.maxSelected?e[o-1].focus():this.inputElement.focus():e[o].focus()}}disableMenu(){var t,e,i;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,null===(t=this.inputElement)||void 0===t||t.removeAttribute("aria-activedescendant"),null===(e=this.inputElement)||void 0===e||e.removeAttribute("aria-owns"),null===(i=this.inputElement)||void 0===i||i.removeAttribute("aria-expanded")}setFocusedOption(t){if(!this.flyoutOpen||-1===t||this.showNoOptions||this.showLoading)return void this.disableMenu();if(0===this.menuElement.optionElements.length)return;this.menuElement.optionElements.forEach(t=>{t.setAttribute("aria-selected","false")}),this.menuFocusIndex=t,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const e=this.menuElement.optionElements[this.menuFocusIndex];e.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,e.offsetTop)}updateListItemTemplate(){var t;this.activeListItemTemplate=null!==(t=this.listItemTemplate)&&void 0!==t?t:this.defaultListItemTemplate}updateOptionTemplate(){var t;this.activeMenuOptionTemplate=null!==(t=this.menuOptionTemplate)&&void 0!==t?t:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(t=>-1===this.selectedItems.indexOf(t))),this.filterQuery&&""!==this.query&&void 0!==this.query&&(this.filteredOptionsList=this.filteredOptionsList.filter(t=>-1!==t.indexOf(this.query)))}updateMenuConfig(){let t=this.configLookup[this.menuPlacement];null===t&&(t=hi),this.menuConfig=Object.assign(Object.assign({},t),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}}Xt([nt({attribute:"selection"})],ls.prototype,"selection",void 0),Xt([nt({attribute:"options"})],ls.prototype,"options",void 0),Xt([nt({attribute:"filter-selected",mode:"boolean"})],ls.prototype,"filterSelected",void 0),Xt([nt({attribute:"filter-query",mode:"boolean"})],ls.prototype,"filterQuery",void 0),Xt([nt({attribute:"max-selected"})],ls.prototype,"maxSelected",void 0),Xt([nt({attribute:"no-suggestions-text"})],ls.prototype,"noSuggestionsText",void 0),Xt([nt({attribute:"suggestions-available-text"})],ls.prototype,"suggestionsAvailableText",void 0),Xt([nt({attribute:"loading-text"})],ls.prototype,"loadingText",void 0),Xt([nt({attribute:"label"})],ls.prototype,"label",void 0),Xt([nt({attribute:"labelledby"})],ls.prototype,"labelledBy",void 0),Xt([nt({attribute:"placeholder"})],ls.prototype,"placeholder",void 0),Xt([nt({attribute:"menu-placement"})],ls.prototype,"menuPlacement",void 0),Xt([y],ls.prototype,"showLoading",void 0),Xt([y],ls.prototype,"listItemTemplate",void 0),Xt([y],ls.prototype,"defaultListItemTemplate",void 0),Xt([y],ls.prototype,"activeListItemTemplate",void 0),Xt([y],ls.prototype,"menuOptionTemplate",void 0),Xt([y],ls.prototype,"defaultMenuOptionTemplate",void 0),Xt([y],ls.prototype,"activeMenuOptionTemplate",void 0),Xt([y],ls.prototype,"listItemContentsTemplate",void 0),Xt([y],ls.prototype,"menuOptionContentsTemplate",void 0),Xt([y],ls.prototype,"optionsList",void 0),Xt([y],ls.prototype,"query",void 0),Xt([y],ls.prototype,"filteredOptionsList",void 0),Xt([y],ls.prototype,"flyoutOpen",void 0),Xt([y],ls.prototype,"menuId",void 0),Xt([y],ls.prototype,"selectedListTag",void 0),Xt([y],ls.prototype,"menuTag",void 0),Xt([y],ls.prototype,"menuFocusIndex",void 0),Xt([y],ls.prototype,"menuFocusOptionId",void 0),Xt([y],ls.prototype,"showNoOptions",void 0),Xt([y],ls.prototype,"menuConfig",void 0),Xt([y],ls.prototype,"selectedItems",void 0);const cs="menuitem",hs="menuitemcheckbox",ds="menuitemradio",us={[cs]:"menuitem",[hs]:"menuitemcheckbox",[ds]:"menuitemradio"};class ps extends Re{constructor(){super(...arguments),this.role=cs,this.hasSubmenu=!1,this.currentDirection=qe.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case hs:this.checked=!this.checked;break;case cs:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case ds:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=oi(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}}Xt([nt({mode:"boolean"})],ps.prototype,"disabled",void 0),Xt([nt({mode:"boolean"})],ps.prototype,"expanded",void 0),Xt([y],ps.prototype,"startColumnCount",void 0),Xt([nt],ps.prototype,"role",void 0),Xt([nt({mode:"boolean"})],ps.prototype,"checked",void 0),Xt([y],ps.prototype,"submenuRegion",void 0),Xt([y],ps.prototype,"hasSubmenu",void 0),Xt([y],ps.prototype,"currentDirection",void 0),Xt([y],ps.prototype,"submenu",void 0),Pe(ps,Ut);class gs extends Re{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Me(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||void 0===this.menuItems||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce((t,e)=>{const i=function(t){const e=t.getAttribute("role"),i=t.querySelector("[slot=start]");return e!==cs&&null===i||e===cs&&null!==i?1:e!==cs&&null!==i?2:0}(e);return t>i?t:i},0);e.forEach((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof ps&&(t.startColumnCount=i)})},this.changeHandler=t=>{if(void 0===this.menuItems)return;const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===ds&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===ds&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Me(t)&&gs.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented&&void 0!==this.menuItems)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children).filter(t=>!t.hasAttribute("hidden"))}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}gs.focusableElementRoles=us,Xt([y],gs.prototype,"items",void 0);class ms extends Re{}class fs extends(vi(ms)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const bs="text";class vs extends fs{constructor(){super(...arguments),this.type=bs}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}Xt([nt({attribute:"readonly",mode:"boolean"})],vs.prototype,"readOnly",void 0),Xt([nt({mode:"boolean"})],vs.prototype,"autofocus",void 0),Xt([nt],vs.prototype,"placeholder",void 0),Xt([nt],vs.prototype,"type",void 0),Xt([nt],vs.prototype,"list",void 0),Xt([nt({converter:ot})],vs.prototype,"maxlength",void 0),Xt([nt({converter:ot})],vs.prototype,"minlength",void 0),Xt([nt],vs.prototype,"pattern",void 0),Xt([nt({converter:ot})],vs.prototype,"size",void 0),Xt([nt({mode:"boolean"})],vs.prototype,"spellcheck",void 0),Xt([y],vs.prototype,"defaultSlottedNodes",void 0);class ys{}Pe(ys,ti),Pe(vs,Ut,ys);class xs extends Re{}class $s extends(vi(xs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ws extends $s{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&d.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}Xt([nt({attribute:"readonly",mode:"boolean"})],ws.prototype,"readOnly",void 0),Xt([nt({mode:"boolean"})],ws.prototype,"autofocus",void 0),Xt([nt({attribute:"hide-step",mode:"boolean"})],ws.prototype,"hideStep",void 0),Xt([nt],ws.prototype,"placeholder",void 0),Xt([nt],ws.prototype,"list",void 0),Xt([nt({converter:ot})],ws.prototype,"maxlength",void 0),Xt([nt({converter:ot})],ws.prototype,"minlength",void 0),Xt([nt({converter:ot})],ws.prototype,"size",void 0),Xt([nt({converter:ot})],ws.prototype,"step",void 0),Xt([nt({converter:ot})],ws.prototype,"max",void 0),Xt([nt({converter:ot})],ws.prototype,"min",void 0),Xt([y],ws.prototype,"defaultSlottedNodes",void 0),Pe(ws,Ut,ys);class ks extends Re{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}Xt([nt({converter:ot})],ks.prototype,"value",void 0),Xt([nt({converter:ot})],ks.prototype,"min",void 0),Xt([nt({converter:ot})],ks.prototype,"max",void 0),Xt([nt({mode:"boolean"})],ks.prototype,"paused",void 0),Xt([y],ks.prototype,"percentComplete",void 0);class Cs extends Re{constructor(){super(...arguments),this.orientation=He,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in je&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===qe.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===qe.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("value")===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=oi(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}Xt([nt({attribute:"readonly",mode:"boolean"})],Cs.prototype,"readOnly",void 0),Xt([nt({attribute:"disabled",mode:"boolean"})],Cs.prototype,"disabled",void 0),Xt([nt],Cs.prototype,"name",void 0),Xt([nt],Cs.prototype,"value",void 0),Xt([nt],Cs.prototype,"orientation",void 0),Xt([y],Cs.prototype,"childItems",void 0),Xt([y],Cs.prototype,"slottedRadioButtons",void 0);class Is extends Re{}class Ts extends(yi(Is)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Fs extends Ts{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}Xt([nt({attribute:"readonly",mode:"boolean"})],Fs.prototype,"readOnly",void 0),Xt([y],Fs.prototype,"name",void 0),Xt([y],Fs.prototype,"defaultSlottedNodes",void 0);class Ss extends Re{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&d.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e>=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>=e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}Xt([nt({converter:ot})],Ss.prototype,"speed",void 0),Xt([nt],Ss.prototype,"duration",void 0),Xt([nt],Ss.prototype,"easing",void 0),Xt([nt({attribute:"flippers-hidden-from-at",converter:it})],Ss.prototype,"flippersHiddenFromAT",void 0),Xt([y],Ss.prototype,"scrolling",void 0),Xt([y],Ss.prototype,"scrollItems",void 0),Xt([nt({attribute:"view"})],Ss.prototype,"view",void 0);function Ds(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}class Es extends Re{}class Os extends(vi(Es)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Rs extends Os{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}Xt([nt({attribute:"readonly",mode:"boolean"})],Rs.prototype,"readOnly",void 0),Xt([nt({mode:"boolean"})],Rs.prototype,"autofocus",void 0),Xt([nt],Rs.prototype,"placeholder",void 0),Xt([nt],Rs.prototype,"list",void 0),Xt([nt({converter:ot})],Rs.prototype,"maxlength",void 0),Xt([nt({converter:ot})],Rs.prototype,"minlength",void 0),Xt([nt],Rs.prototype,"pattern",void 0),Xt([nt({converter:ot})],Rs.prototype,"size",void 0),Xt([nt({mode:"boolean"})],Rs.prototype,"spellcheck",void 0),Xt([y],Rs.prototype,"defaultSlottedNodes",void 0);class Ls{}Pe(Ls,ti),Pe(Rs,Ut,Ls);class As extends Zo{}class Ps extends(vi(As)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Vs extends Ps{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Ke("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void d.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return v.track(this,"value"),this._value}set value(t){var e,i,o,s,n,r,a;const l=""+this._value;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex(e=>e.value===t),l=null!==(o=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==o?o:null,c=null!==(n=null===(s=this._options[e])||void 0===s?void 0:s.value)&&void 0!==n?n:null;-1!==e&&l===c||(t="",this.selectedIndex=e),t=null!==(a=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==a?a:t}l!==t&&(this._value=t,super.valueChanged(l,t),v.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Zi:Ji,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Zi?~~t.top:~~e}get displayValue(){var t,e;return v.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach(t=>{v.getNotifier(t).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,e),this.options.forEach(t=>{v.getNotifier(t).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach((t,e)=>{var i;const o=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);o&&(o.selected=t.selected)})}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(Yi.slottedOptionFilter),i=null==e?void 0:e.findIndex(t=>t.hasAttribute("selected")||t.selected||t.value===this.value);this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)}))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case" ":t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case"Home":case"End":t.preventDefault();break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e in je)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&v.notify(this,"displayValue")}}Xt([nt({attribute:"open",mode:"boolean"})],Vs.prototype,"open",void 0),Xt([function(t,e,i){return Object.assign({},i,{get:function(){return v.trackVolatile(),i.get.apply(this)}})}],Vs.prototype,"collapsible",null),Xt([y],Vs.prototype,"control",void 0),Xt([nt({attribute:"position"})],Vs.prototype,"positionAttribute",void 0),Xt([y],Vs.prototype,"position",void 0),Xt([y],Vs.prototype,"maxHeight",void 0);class Hs{}Xt([y],Hs.prototype,"ariaControls",void 0),Pe(Hs,Qi),Pe(Vs,Ut,Hs);class zs extends Re{constructor(){super(...arguments),this.shape="rect"}}Xt([nt],zs.prototype,"fill",void 0),Xt([nt],zs.prototype,"shape",void 0),Xt([nt],zs.prototype,"pattern",void 0),Xt([nt({mode:"boolean"})],zs.prototype,"shimmer",void 0);function Ms(t,e,i,o){let s=_e(0,1,(t-e)/(i-e));return o===qe.rtl&&(s=1-s),s}const Bs={min:0,max:0,direction:qe.ltr,orientation:He,disabled:!1};class Ns extends Re{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=qe.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||qe.ltr,this.sliderOrientation=s||He,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=Bs.direction||qe.ltr,this.sliderOrientation=Bs.orientation,this.sliderMaxPosition=Bs.max,this.sliderMinPosition=Bs.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:qe.ltr,e=Ms(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===He?t===qe.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=v.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}Xt([y],Ns.prototype,"positionStyle",void 0),Xt([nt],Ns.prototype,"position",void 0),Xt([nt({attribute:"hide-mark",mode:"boolean"})],Ns.prototype,"hideMark",void 0),Xt([nt({attribute:"disabled",mode:"boolean"})],Ns.prototype,"disabled",void 0),Xt([y],Ns.prototype,"sliderOrientation",void 0),Xt([y],Ns.prototype,"sliderMinPosition",void 0),Xt([y],Ns.prototype,"sliderMaxPosition",void 0),Xt([y],Ns.prototype,"sliderDirection",void 0);class js extends Re{}class qs extends(vi(js)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const Us="single-value";class _s extends qs{constructor(){super(...arguments),this.direction=qe.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=He,this.mode=Us,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[e]("touchstart",this.handleThumbMouseDown,{passive:!0}),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove,{passive:!0}),window[e]("touchmove",this.handleMouseMove,{passive:!0}),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===He?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=Ms(t,this.orientation===He?this.trackMinWidth:this.trackMinHeight,this.orientation===He?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===He?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=oi(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==qe.rtl&&this.orientation!==ze?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==qe.rtl&&this.orientation!==ze?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=100*(1-Ms(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===He?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}Xt([nt({attribute:"readonly",mode:"boolean"})],_s.prototype,"readOnly",void 0),Xt([y],_s.prototype,"direction",void 0),Xt([y],_s.prototype,"isDragging",void 0),Xt([y],_s.prototype,"position",void 0),Xt([y],_s.prototype,"trackWidth",void 0),Xt([y],_s.prototype,"trackMinWidth",void 0),Xt([y],_s.prototype,"trackHeight",void 0),Xt([y],_s.prototype,"trackLeft",void 0),Xt([y],_s.prototype,"trackMinHeight",void 0),Xt([y],_s.prototype,"valueTextFormatter",void 0),Xt([nt({converter:ot})],_s.prototype,"min",void 0),Xt([nt({converter:ot})],_s.prototype,"max",void 0),Xt([nt({converter:ot})],_s.prototype,"step",void 0),Xt([nt],_s.prototype,"orientation",void 0),Xt([nt],_s.prototype,"mode",void 0);class Gs extends Re{}class Ws extends(yi(Gs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ks extends Ws{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}Xt([nt({attribute:"readonly",mode:"boolean"})],Ks.prototype,"readOnly",void 0),Xt([y],Ks.prototype,"defaultSlottedNodes",void 0);class Xs extends Re{}class Ys extends Re{}Xt([nt({mode:"boolean"})],Ys.prototype,"disabled",void 0);const Qs="horizontal";class Zs extends Re{constructor(){super(...arguments),this.orientation=Qs,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot){const t=this.activeTabIndex===i&&this.isFocusableElement(e);this.activeindicator&&this.isFocusableElement(e)&&(this.showActiveIndicator=!0);const o=this.tabIds[i],s=this.tabpanelIds[i];e.setAttribute("id",o),e.setAttribute("aria-selected",t?"true":"false"),e.setAttribute("aria-controls",s),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",t?"0":"-1"),t&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id",o),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"tab-"+Ke()})}getTabPanelIds(){return this.tabpanels.map(t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:"panel-"+Ke()})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Qs}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Ue(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Xt([nt],Zs.prototype,"orientation",void 0),Xt([nt],Zs.prototype,"activeid",void 0),Xt([y],Zs.prototype,"tabs",void 0),Xt([y],Zs.prototype,"tabpanels",void 0),Xt([nt({mode:"boolean"})],Zs.prototype,"activeindicator",void 0),Xt([y],Zs.prototype,"activeIndicatorRef",void 0),Xt([y],Zs.prototype,"showActiveIndicator",void 0),Pe(Zs,Ut);class Js extends Re{}class tn extends(vi(Js)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const en="none";class on extends tn{constructor(){super(...arguments),this.resize=en,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}}Xt([nt({mode:"boolean"})],on.prototype,"readOnly",void 0),Xt([nt],on.prototype,"resize",void 0),Xt([nt({mode:"boolean"})],on.prototype,"autofocus",void 0),Xt([nt({attribute:"form"})],on.prototype,"formId",void 0),Xt([nt],on.prototype,"list",void 0),Xt([nt({converter:ot})],on.prototype,"maxlength",void 0),Xt([nt({converter:ot})],on.prototype,"minlength",void 0),Xt([nt],on.prototype,"name",void 0),Xt([nt],on.prototype,"placeholder",void 0),Xt([nt({converter:ot,mode:"fromView"})],on.prototype,"cols",void 0),Xt([nt({converter:ot,mode:"fromView"})],on.prototype,"rows",void 0),Xt([nt({mode:"boolean"})],on.prototype,"spellcheck",void 0),Xt([y],on.prototype,"defaultSlottedNodes",void 0),Pe(on,ys);const sn=Object.freeze({[je.ArrowUp]:{[ze]:-1},[je.ArrowDown]:{[ze]:1},[je.ArrowLeft]:{[He]:{[qe.ltr]:-1,[qe.rtl]:1}},[je.ArrowRight]:{[He]:{[qe.ltr]:1,[qe.rtl]:-1}}});class nn extends Re{constructor(){super(...arguments),this._activeIndex=0,this.direction=qe.ltr,this.orientation=He,this.startEndSlotChange=()=>{this.$fastController.isConnected&&this.reduceFocusableElements()}}get activeIndex(){return v.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=_e(0,this.focusableElements.length-1,t),v.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=oi(this),this.start.addEventListener("slotchange",this.startEndSlotChange),this.end.addEventListener("slotchange",this.startEndSlotChange)}disconnectedCallback(){super.disconnectedCallback(),this.start.removeEventListener("slotchange",this.startEndSlotChange),this.end.removeEventListener("slotchange",this.startEndSlotChange)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=sn[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=sn[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in je)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(nn.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Uo(t));return Uo(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(nn.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}Xt([y],nn.prototype,"direction",void 0),Xt([nt],nn.prototype,"orientation",void 0),Xt([y],nn.prototype,"slottedItems",void 0),Xt([y],nn.prototype,"slottedLabel",void 0);class rn{}Xt([nt({attribute:"aria-labelledby"})],rn.prototype,"ariaLabelledby",void 0),Xt([nt({attribute:"aria-label"})],rn.prototype,"ariaLabel",void 0),Pe(rn,ti),Pe(nn,Ut,rn);const an="top",ln="right",cn="bottom",hn="left",dn="start",un="end",pn="top-left",gn="top-right",mn="bottom-left",fn="bottom-right",bn="top-start",vn="top-end",yn="bottom-start",xn="bottom-end";class $n extends Re{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=qe.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleRegionMouseOver=t=>{this.isRegionHovered=!0},this.handleRegionMouseOut=t=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=t=>{this.tooltipVisible?this.isAnchorHoveredFocused=!0:this.startShowDelayTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=t=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{null!==this.hideDelayTimer&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.showDelayTimer&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{null!==this.showDelayTimer&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused||this.isRegionHovered)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=oi(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),d.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startShowDelayTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case an:case cn:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case ln:case hn:case dn:case un:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case pn:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case gn:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case mn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case fn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case bn:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case vn:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case yn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case xn:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}Xt([nt({mode:"boolean"})],$n.prototype,"visible",void 0),Xt([nt],$n.prototype,"anchor",void 0),Xt([nt],$n.prototype,"delay",void 0),Xt([nt],$n.prototype,"position",void 0),Xt([nt({attribute:"auto-update-mode"})],$n.prototype,"autoUpdateMode",void 0),Xt([nt({attribute:"horizontal-viewport-lock"})],$n.prototype,"horizontalViewportLock",void 0),Xt([nt({attribute:"vertical-viewport-lock"})],$n.prototype,"verticalViewportLock",void 0),Xt([y],$n.prototype,"anchorElement",void 0),Xt([y],$n.prototype,"viewportElement",void 0),Xt([y],$n.prototype,"verticalPositioningMode",void 0),Xt([y],$n.prototype,"horizontalPositioningMode",void 0),Xt([y],$n.prototype,"horizontalInset",void 0),Xt([y],$n.prototype,"verticalInset",void 0),Xt([y],$n.prototype,"horizontalScaling",void 0),Xt([y],$n.prototype,"verticalScaling",void 0),Xt([y],$n.prototype,"verticalDefaultPosition",void 0),Xt([y],$n.prototype,"horizontalDefaultPosition",void 0),Xt([y],$n.prototype,"tooltipVisible",void 0),Xt([y],$n.prototype,"currentDirection",void 0);function wn(t){return Me(t)&&"treeitem"===t.getAttribute("role")}class kn extends Re{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>wn(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{wn(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>wn(t));return t?t.length:0}}Xt([nt({mode:"boolean"})],kn.prototype,"expanded",void 0),Xt([nt({mode:"boolean"})],kn.prototype,"selected",void 0),Xt([nt({mode:"boolean"})],kn.prototype,"disabled",void 0),Xt([y],kn.prototype,"focusable",void 0),Xt([y],kn.prototype,"childItems",void 0),Xt([y],kn.prototype,"items",void 0),Xt([y],kn.prototype,"nested",void 0),Xt([y],kn.prototype,"renderCollapsedChildren",void 0),Pe(kn,Ut);class Cn extends Re{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&kn.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case"Home":return void(e.length&&kn.focusItem(e[0]));case"End":return void(e.length&&kn.focusItem(e[e.length-1]));case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof kn&&e.childItemLength()>0&&e.expanded?e.expanded=!1:e instanceof kn&&e.parentElement instanceof kn&&kn.focusItem(e.parentElement)}return!1;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof kn&&e.childItemLength()>0&&!e.expanded?e.expanded=!0:e instanceof kn&&e.childItemLength()>0&&this.focusNextNode(1,t.target)}return;case"ArrowDown":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case"ArrowUp":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case"Enter":return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&wn(t.target)))return!0;const e=t.target;e.selected?(this.currentSelected&&this.currentSelected!==e&&(this.currentSelected.selected=!1),this.currentSelected=e):e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach(t=>{wn(t)&&(t.nested=this.nested)})},this.isFocusableElement=t=>wn(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),d.queueUpdate(()=>{this.setItems()})}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&wn(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(e)+t];Me(o)&&kn.focusItem(o)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some(t=>wn(t)&&t.querySelector("[role='treeitem']"))}getVisibleNodes(){return function(t,e){if(!t||!e||!Me(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}Xt([nt({attribute:"render-collapsed-nodes"})],Cn.prototype,"renderCollapsedNodes",void 0),Xt([y],Cn.prototype,"currentSelected",void 0),Xt([y],Cn.prototype,"slottedTreeItems",void 0);class In extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new In(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const Tn=In.with(window.matchMedia("(forced-colors)"));In.with(window.matchMedia("(prefers-color-scheme: dark)")),In.with(window.matchMedia("(prefers-color-scheme: light)"));class Fn{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){v.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){v.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function Sn(t){return`:host([hidden]){display:none}:host{display:${t}}`}const Dn=function(){if("boolean"==typeof Be)return Be;if("undefined"==typeof window||!window.document||!window.document.createElement)return Be=!1,Be;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),Be=!0}catch(t){Be=!1}finally{document.head.removeChild(t)}return Be}()?"focus-visible":"focus";function En(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function On(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Rn(t,e,i){return isNaN(t)?e:e+t*(i-e)}function Ln(t){return t*(Math.PI/180)}function An(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function Pn(t,e,i){if(t<=0)return e%360;if(t>=1)return i%360;const o=(e-i+360)%360;return o<=(i-e+360)%360?(e-o*t+360)%360:(e+o*t+360)%360}function Vn(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}class Hn{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new Hn(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new Hn(Vn(this.h,t),Vn(this.s,t),Vn(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class zn{constructor(t,e,i){this.h=t,this.s=e,this.v=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.v)?null:new zn(t.h,t.s,t.v)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.v===t.v}roundToPrecision(t){return new zn(Vn(this.h,t),Vn(this.s,t),Vn(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class Mn{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Mn(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Mn(Vn(this.l,t),Vn(this.a,t),Vn(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Mn.epsilon=216/24389,Mn.kappa=24389/27;class Bn{constructor(t,e,i){this.l=t,this.c=e,this.h=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.c)||isNaN(t.h)?null:new Bn(t.l,t.c,t.h)}equalValue(t){return this.l===t.l&&this.c===t.c&&this.h===t.h}roundToPrecision(t){return new Bn(Vn(this.l,t),Vn(this.c,t),Vn(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class Nn{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Nn(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Rn(this.r,0,255))},${Math.round(Rn(this.g,0,255))},${Math.round(Rn(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Rn(this.r,0,255))},${Math.round(Rn(this.g,0,255))},${Math.round(Rn(this.b,0,255))},${En(this.a,0,1)})`}roundToPrecision(t){return new Nn(Vn(this.r,t),Vn(this.g,t),Vn(this.b,t),Vn(this.a,t))}clamp(){return new Nn(En(this.r,0,1),En(this.g,0,1),En(this.b,0,1),En(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(En(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Rn(t,0,255))}}class jn{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new jn(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new jn(Vn(this.x,t),Vn(this.y,t),Vn(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function qn(t){return.2126*t.r+.7152*t.g+.0722*t.b}function Un(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return qn(new Nn(e(t.r),e(t.g),e(t.b),1))}jn.whitePoint=new jn(.95047,1,1.08883);const _n=(t,e)=>(t+.05)/(e+.05);function Gn(t,e){const i=Un(t),o=Un(e);return i>o?_n(i,o):_n(o,i)}function Wn(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new Hn(s,r,n)}function Kn(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Nn(n+s,r+s,a+s,e)}function Xn(t){const e=Math.max(t.r,t.g,t.b),i=e-Math.min(t.r,t.g,t.b);let o=0;0!==i&&(o=e===t.r?(t.g-t.b)/i%6*60:e===t.g?60*((t.b-t.r)/i+2):60*((t.r-t.g)/i+4)),o<0&&(o+=360);let s=0;return 0!==e&&(s=i/e),new zn(o,s,e)}function Yn(t){let e=0;(Math.abs(t.b)>.001||Math.abs(t.a)>.001)&&(e=Math.atan2(t.b,t.a)*(180/Math.PI)),e<0&&(e+=360);const i=Math.sqrt(t.a*t.a+t.b*t.b);return new Bn(t.l,i,e)}function Qn(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new jn(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}function Zn(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Nn(o,s,n,e)}function Jn(t){return function(t){function e(t){return t>Mn.epsilon?Math.pow(t,1/3):(Mn.kappa*t+16)/116}const i=e(t.x/jn.whitePoint.x),o=e(t.y/jn.whitePoint.y),s=e(t.z/jn.whitePoint.z);return new Mn(116*o-16,500*(i-o),200*(o-s))}(Qn(t))}function tr(t,e=1){return Zn(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Mn.epsilon?s:(116*i-16)/Mn.kappa;let l=0;l=t.l>Mn.epsilon*Mn.kappa?n:t.l/Mn.kappa;let c=0;return c=r>Mn.epsilon?r:(116*o-16)/Mn.kappa,a=jn.whitePoint.x*a,l=jn.whitePoint.y*l,c=jn.whitePoint.z*c,new jn(a,l,c)}(t),e)}function er(t){return Yn(Jn(t))}function ir(t,e=1){return tr(function(t){let e=0,i=0;return 0!==t.h&&(e=Math.cos(Ln(t.h))*t.c,i=Math.sin(Ln(t.h))*t.c),new Mn(t.l,e,i)}(t),e)}function or(t,e,i=18){const o=er(t);let s=o.c+e*i;return s<0&&(s=0),ir(new Bn(o.l,s,o.h))}function sr(t,e){return t*e}function nr(t,e){return new Nn(sr(t.r,e.r),sr(t.g,e.g),sr(t.b,e.b),1)}function rr(t,e){return En(t<.5?2*e*t:1-2*(1-e)*(1-t),0,1)}function ar(t,e){return new Nn(rr(t.r,e.r),rr(t.g,e.g),rr(t.b,e.b),1)}var lr,cr;function hr(t,e,i,o){if(isNaN(t)||t<=0)return i;if(t>=1)return o;switch(e){case cr.HSL:return Kn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Hn(Pn(t,e.h,i.h),An(t,e.s,i.s),An(t,e.l,i.l))}(t,Wn(i),Wn(o)));case cr.HSV:return function(t,e=1){const i=t.s*t.v,o=i*(1-Math.abs(t.h/60%2-1)),s=t.v-i;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Nn(n+s,r+s,a+s,e)}(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new zn(Pn(t,e.h,i.h),An(t,e.s,i.s),An(t,e.v,i.v))}(t,Xn(i),Xn(o)));case cr.XYZ:return Zn(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new jn(An(t,e.x,i.x),An(t,e.y,i.y),An(t,e.z,i.z))}(t,Qn(i),Qn(o)));case cr.LAB:return tr(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Mn(An(t,e.l,i.l),An(t,e.a,i.a),An(t,e.b,i.b))}(t,Jn(i),Jn(o)));case cr.LCH:return ir(function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Bn(An(t,e.l,i.l),An(t,e.c,i.c),Pn(t,e.h,i.h))}(t,er(i),er(o)));default:return function(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Nn(An(t,e.r,i.r),An(t,e.g,i.g),An(t,e.b,i.b),An(t,e.a,i.a))}(t,i,o)}}!function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(lr||(lr={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(cr||(cr={}));class dr{constructor(t){if(null==t||0===t.length)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(t)}static createBalancedColorScale(t){if(null==t||0===t.length)throw new Error("The colors argument must be non-empty");const e=new Array(t.length);for(let i=0;i<t.length;i++)0===i?e[i]={color:t[i],position:0}:i===t.length-1?e[i]={color:t[i],position:1}:e[i]={color:t[i],position:i*(1/(t.length-1))};return new dr(e)}getColor(t,e=cr.RGB){if(1===this.stops.length)return this.stops[0].color;if(t<=0)return this.stops[0].color;if(t>=1)return this.stops[this.stops.length-1].color;let i=0;for(let e=0;e<this.stops.length;e++)this.stops[e].position<=t&&(i=e);let o=i+1;o>=this.stops.length&&(o=this.stops.length-1);return hr((t-this.stops[i].position)*(1/(this.stops[o].position-this.stops[i].position)),e,this.stops[i].color,this.stops[o].color)}trim(t,e,i=cr.RGB){if(t<0||e>1||e<t)throw new Error("Invalid bounds");if(t===e)return new dr([{color:this.getColor(t,i),position:0}]);const o=[];for(let i=0;i<this.stops.length;i++)this.stops[i].position>=t&&this.stops[i].position<=e&&o.push(this.stops[i]);if(0===o.length)return new dr([{color:this.getColor(t),position:t},{color:this.getColor(e),position:e}]);o[0].position!==t&&o.unshift({color:this.getColor(t),position:t}),o[o.length-1].position!==e&&o.push({color:this.getColor(e),position:e});const s=e-t,n=new Array(o.length);for(let e=0;e<o.length;e++)n[e]={color:o[e].color,position:(o[e].position-t)/s};return new dr(n)}findNextColor(t,e,i=!1,o=cr.RGB,s=.005,n=32){isNaN(t)||t<=0?t=0:t>=1&&(t=1);const r=this.getColor(t,o),a=i?0:1;if(Gn(r,this.getColor(a,o))<=e)return a;let l=i?0:t,c=i?t:0,h=a,d=0;for(;d<=n;){h=Math.abs(c-l)/2+l;const t=Gn(r,this.getColor(h,o));if(Math.abs(t-e)<=s)return h;t>e?i?l=h:c=h:i?c=h:l=h,d++}return h}clone(){const t=new Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new dr(t)}sortColorScaleStops(t){return t.sort((t,e)=>{const i=t.position,o=e.position;return i<o?-1:i>o?1:0})}}const ur=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function pr(t){const e=ur.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new Nn(On((16711680&o)>>>16,0,255),On((65280&o)>>>8,0,255),On(255&o,0,255),1)}class gr{constructor(t){this.config=Object.assign({},gr.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(t){let e=!1;for(const i in t)this.config[i]&&(this.config[i].equalValue?this.config[i].equalValue(t[i])||(this.config[i]=t[i],e=!0):t[i]!==this.config[i]&&(this.config[i]=t[i],e=!0));return e&&this.updatePaletteColors(),e}updatePaletteColors(){const t=this.generatePaletteColorScale();for(let e=0;e<this.config.steps;e++)this.palette[e]=t.getColor(e/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){const t=Wn(this.config.baseColor),e=new dr([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark);let i=e.getColor(0),o=e.getColor(1);if(t.s>=this.config.saturationAdjustmentCutoff&&(i=or(i,this.config.saturationLight),o=or(o,this.config.saturationDark)),0!==this.config.multiplyLight){const t=nr(this.config.baseColor,i);i=hr(this.config.multiplyLight,this.config.interpolationMode,i,t)}if(0!==this.config.multiplyDark){const t=nr(this.config.baseColor,o);o=hr(this.config.multiplyDark,this.config.interpolationMode,o,t)}if(0!==this.config.overlayLight){const t=ar(this.config.baseColor,i);i=hr(this.config.overlayLight,this.config.interpolationMode,i,t)}if(0!==this.config.overlayDark){const t=ar(this.config.baseColor,o);o=hr(this.config.overlayDark,this.config.interpolationMode,o,t)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new dr([{position:0,color:this.config.baseColor},{position:1,color:o.clamp()}]):this.config.baseScalePosition>=1?new dr([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new dr([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:o.clamp()}]):new dr([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:o.clamp()}])}}gr.defaultPaletteConfig={baseColor:pr("#808080"),steps:11,interpolationMode:cr.RGB,scaleColorLight:new Nn(1,1,1,1),scaleColorDark:new Nn(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},gr.greyscalePaletteConfig={baseColor:pr("#808080"),steps:11,interpolationMode:cr.RGB,scaleColorLight:new Nn(1,1,1,1),scaleColorDark:new Nn(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},gr.defaultPaletteConfig.scaleColorLight,gr.defaultPaletteConfig.scaleColorDark;class mr{constructor(t){this.palette=[],this.config=Object.assign({},mr.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let t=this.config.steps;(isNaN(t)||t<3)&&(t=3);const e=new Nn(.14,.14,.14,1),i=new gr(Object.assign(Object.assign({},gr.greyscalePaletteConfig),{baseColor:e,baseScalePosition:86/94,steps:t})).palette,o=(qn(this.config.baseColor)+Wn(this.config.baseColor).l)/2,s=this.matchRelativeLuminanceIndex(o,i)/(t-1),n=this.matchRelativeLuminanceIndex(.14,i)/(t-1),r=Wn(this.config.baseColor),a=Kn(Hn.fromObject({h:r.h,s:r.s,l:.14})),l=Kn(Hn.fromObject({h:r.h,s:r.s,l:.06})),c=new Array(5);c[0]={position:0,color:new Nn(1,1,1,1)},c[1]={position:s,color:this.config.baseColor},c[2]={position:n,color:a},c[3]={position:.99,color:l},c[4]={position:1,color:new Nn(0,0,0,1)};const h=new dr(c);this.palette=new Array(t);for(let e=0;e<t;e++){const i=h.getColor(e/(t-1),cr.RGB);this.palette[e]=i}}matchRelativeLuminanceIndex(t,e){let i=Number.MAX_VALUE,o=0,s=0;const n=e.length;for(;s<n;s++){const n=Math.abs(qn(e[s])-t);n<i&&(i=n,o=s)}return o}}function fr(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}mr.defaultPaletteConfig={baseColor:pr("#808080"),steps:94};const br=Object.freeze({create:(t,e,i)=>new vr(t,e,i),from:t=>new vr(t.r,t.g,t.b)});class vr extends Nn{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=fr.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=Un(this)}static fromObject(t){return new vr(t.r,t.g,t.b)}}const yr=(-.1+Math.sqrt(.21))/2;function xr(t){return t.relativeLuminance<=yr}function $r(t){return xr(t)?-1:1}const wr=Object.freeze({create:function(t,e,i){return"number"==typeof t?wr.from(br.create(t,e,i)):wr.from(t)},from:function(t){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?kr.from(t):kr.from(br.create(t.r,t.g,t.b))}});class kr{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=$r(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>fr(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[En(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static from(t){return new kr(t,Object.freeze(new mr({baseColor:Nn.fromObject(t)}).palette.map(t=>{const e=pr(t.toStringHexRGB());return br.create(e.r,e.g,e.b)})))}}const Cr=br.create(1,1,1),Ir=br.create(0,0,0),Tr=br.from(pr("#808080")),Fr=br.from(pr("#DA1A5F"));function Sr(t){return br.create(t,t,t)}const Dr={LightMode:1,DarkMode:.23};function Er(t,e,i,o,s,n){return Math.max(t.closestIndexOf(Sr(e))+i,o,s,n)}const{create:Or}=To;function Rr(t){return To.create({name:t,cssCustomPropertyName:null})}const Lr=Or("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),Ar=Or("base-height-multiplier").withDefault(10),Pr=Or("base-horizontal-spacing-multiplier").withDefault(3),Vr=Or("base-layer-luminance").withDefault(Dr.DarkMode),Hr=Or("control-corner-radius").withDefault(4),zr=Or("density").withDefault(0),Mr=Or("design-unit").withDefault(4),Br=Or("direction").withDefault(qe.ltr),Nr=Or("disabled-opacity").withDefault(.3),jr=Or("stroke-width").withDefault(1),qr=Or("focus-stroke-width").withDefault(2),Ur=Or("type-ramp-base-font-size").withDefault("14px"),_r=Or("type-ramp-base-line-height").withDefault("20px"),Gr=Or("type-ramp-minus-1-font-size").withDefault("12px"),Wr=Or("type-ramp-minus-1-line-height").withDefault("16px"),Kr=Or("type-ramp-minus-2-font-size").withDefault("10px"),Xr=Or("type-ramp-minus-2-line-height").withDefault("16px"),Yr=Or("type-ramp-plus-1-font-size").withDefault("16px"),Qr=Or("type-ramp-plus-1-line-height").withDefault("24px"),Zr=Or("type-ramp-plus-2-font-size").withDefault("20px"),Jr=Or("type-ramp-plus-2-line-height").withDefault("28px"),ta=Or("type-ramp-plus-3-font-size").withDefault("28px"),ea=Or("type-ramp-plus-3-line-height").withDefault("36px"),ia=Or("type-ramp-plus-4-font-size").withDefault("34px"),oa=Or("type-ramp-plus-4-line-height").withDefault("44px"),sa=Or("type-ramp-plus-5-font-size").withDefault("46px"),na=Or("type-ramp-plus-5-line-height").withDefault("56px"),ra=Or("type-ramp-plus-6-font-size").withDefault("60px"),aa=Or("type-ramp-plus-6-line-height").withDefault("72px"),la=Rr("accent-fill-rest-delta").withDefault(0),ca=Rr("accent-fill-hover-delta").withDefault(4),ha=Rr("accent-fill-active-delta").withDefault(-5),da=Rr("accent-fill-focus-delta").withDefault(0),ua=Rr("accent-foreground-rest-delta").withDefault(0),pa=Rr("accent-foreground-hover-delta").withDefault(6),ga=Rr("accent-foreground-active-delta").withDefault(-4),ma=Rr("accent-foreground-focus-delta").withDefault(0),fa=Rr("neutral-fill-rest-delta").withDefault(7),ba=Rr("neutral-fill-hover-delta").withDefault(10),va=Rr("neutral-fill-active-delta").withDefault(5),ya=Rr("neutral-fill-focus-delta").withDefault(0),xa=Rr("neutral-fill-input-rest-delta").withDefault(0),$a=Rr("neutral-fill-input-hover-delta").withDefault(0),wa=Rr("neutral-fill-input-active-delta").withDefault(0),ka=Rr("neutral-fill-input-focus-delta").withDefault(0),Ca=Rr("neutral-fill-stealth-rest-delta").withDefault(0),Ia=Rr("neutral-fill-stealth-hover-delta").withDefault(5),Ta=Rr("neutral-fill-stealth-active-delta").withDefault(3),Fa=Rr("neutral-fill-stealth-focus-delta").withDefault(0),Sa=Rr("neutral-fill-strong-rest-delta").withDefault(0),Da=Rr("neutral-fill-strong-hover-delta").withDefault(8),Ea=Rr("neutral-fill-strong-active-delta").withDefault(-5),Oa=Rr("neutral-fill-strong-focus-delta").withDefault(0),Ra=Rr("neutral-fill-layer-rest-delta").withDefault(3),La=Rr("neutral-stroke-rest-delta").withDefault(25),Aa=Rr("neutral-stroke-hover-delta").withDefault(40),Pa=Rr("neutral-stroke-active-delta").withDefault(16),Va=Rr("neutral-stroke-focus-delta").withDefault(25),Ha=Rr("neutral-stroke-divider-rest-delta").withDefault(8),za=Or("neutral-color").withDefault(Tr),Ma=Rr("neutral-palette").withDefault(t=>wr.from(za.getValueFor(t))),Ba=Or("accent-color").withDefault(Fr),Na=Rr("accent-palette").withDefault(t=>wr.from(Ba.getValueFor(t))),ja=Rr("neutral-layer-card-container-recipe").withDefault({evaluate:t=>{return e=Ma.getValueFor(t),i=Vr.getValueFor(t),o=Ra.getValueFor(t),e.get(e.closestIndexOf(Sr(i))+o);var e,i,o}}),qa=Or("neutral-layer-card-container").withDefault(t=>ja.getValueFor(t).evaluate(t)),Ua=Rr("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){const o=t.closestIndexOf(Sr(e))-i;return t.get(o-i)}(Ma.getValueFor(t),Vr.getValueFor(t),Ra.getValueFor(t))}),_a=Or("neutral-layer-floating").withDefault(t=>Ua.getValueFor(t).evaluate(t)),Ga=Rr("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(t.closestIndexOf(Sr(e)))}(Ma.getValueFor(t),Vr.getValueFor(t))}),Wa=Or("neutral-layer-1").withDefault(t=>Ga.getValueFor(t).evaluate(t)),Ka=Rr("neutral-layer-2-recipe").withDefault({evaluate:t=>{return e=Ma.getValueFor(t),i=Vr.getValueFor(t),o=Ra.getValueFor(t),s=fa.getValueFor(t),n=ba.getValueFor(t),r=va.getValueFor(t),e.get(Er(e,i,o,s,n,r));var e,i,o,s,n,r}}),Xa=Or("neutral-layer-2").withDefault(t=>Ka.getValueFor(t).evaluate(t)),Ya=Rr("neutral-layer-3-recipe").withDefault({evaluate:t=>{return e=Ma.getValueFor(t),i=Vr.getValueFor(t),o=Ra.getValueFor(t),s=fa.getValueFor(t),n=ba.getValueFor(t),r=va.getValueFor(t),e.get(Er(e,i,o,s,n,r)+o);var e,i,o,s,n,r}}),Qa=Or("neutral-layer-3").withDefault(t=>Ya.getValueFor(t).evaluate(t)),Za=Rr("neutral-layer-4-recipe").withDefault({evaluate:t=>{return e=Ma.getValueFor(t),i=Vr.getValueFor(t),o=Ra.getValueFor(t),s=fa.getValueFor(t),n=ba.getValueFor(t),r=va.getValueFor(t),e.get(Er(e,i,o,s,n,r)+2*o);var e,i,o,s,n,r}}),Ja=Or("neutral-layer-4").withDefault(t=>Za.getValueFor(t).evaluate(t)),tl=Or("fill-color").withDefault(t=>Wa.getValueFor(t));var el;!function(t){t[t.normal=4.5]="normal",t[t.large=7]="large"}(el||(el={}));const il=Or({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l){const c=t.source,h=e.closestIndexOf(i)>=Math.max(r,a,l)?-1:1,d=t.closestIndexOf(c),u=d+-1*h*o,p=u+h*s,g=u+h*n;return{rest:t.get(u),hover:t.get(d),active:t.get(p),focus:t.get(g)}}(Na.getValueFor(t),Ma.getValueFor(t),e||tl.getValueFor(t),ca.getValueFor(t),ha.getValueFor(t),da.getValueFor(t),fa.getValueFor(t),ba.getValueFor(t),va.getValueFor(t))}),ol=Or("accent-fill-rest").withDefault(t=>il.getValueFor(t).evaluate(t).rest),sl=Or("accent-fill-hover").withDefault(t=>il.getValueFor(t).evaluate(t).hover),nl=Or("accent-fill-active").withDefault(t=>il.getValueFor(t).evaluate(t).active),rl=Or("accent-fill-focus").withDefault(t=>il.getValueFor(t).evaluate(t).focus),al=t=>(e,i)=>function(t,e){return t.contrast(Cr)>=e?Cr:Ir}(i||ol.getValueFor(e),t),ll=Rr("foreground-on-accent-recipe").withDefault({evaluate:(t,e)=>al(el.normal)(t,e)}),cl=Or("foreground-on-accent-rest").withDefault(t=>ll.getValueFor(t).evaluate(t,ol.getValueFor(t))),hl=Or("foreground-on-accent-hover").withDefault(t=>ll.getValueFor(t).evaluate(t,sl.getValueFor(t))),dl=Or("foreground-on-accent-active").withDefault(t=>ll.getValueFor(t).evaluate(t,nl.getValueFor(t))),ul=Or("foreground-on-accent-focus").withDefault(t=>ll.getValueFor(t).evaluate(t,rl.getValueFor(t))),pl=Rr("foreground-on-accent-large-recipe").withDefault({evaluate:(t,e)=>al(el.large)(t,e)}),gl=Or("foreground-on-accent-rest-large").withDefault(t=>pl.getValueFor(t).evaluate(t,ol.getValueFor(t))),ml=Or("foreground-on-accent-hover-large").withDefault(t=>pl.getValueFor(t).evaluate(t,sl.getValueFor(t))),fl=Or("foreground-on-accent-active-large").withDefault(t=>pl.getValueFor(t).evaluate(t,nl.getValueFor(t))),bl=Or("foreground-on-accent-focus-large").withDefault(t=>pl.getValueFor(t).evaluate(t,rl.getValueFor(t))),vl=t=>(e,i)=>function(t,e,i,o,s,n,r){const a=t.source,l=t.closestIndexOf(a),c=$r(e),h=l+(1===c?Math.min(o,s):Math.max(c*o,c*s)),d=t.colorContrast(e,i,h,c),u=t.closestIndexOf(d),p=u+c*Math.abs(o-s);let g,m;return(1===c?o<s:c*o>c*s)?(g=u,m=p):(g=p,m=u),{rest:t.get(g),hover:t.get(m),active:t.get(g+c*n),focus:t.get(g+c*r)}}(Na.getValueFor(e),i||tl.getValueFor(e),t,ua.getValueFor(e),pa.getValueFor(e),ga.getValueFor(e),ma.getValueFor(e)),yl=Or({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>vl(el.normal)(t,e)}),xl=Or("accent-foreground-rest").withDefault(t=>yl.getValueFor(t).evaluate(t).rest),$l=Or("accent-foreground-hover").withDefault(t=>yl.getValueFor(t).evaluate(t).hover),wl=Or("accent-foreground-active").withDefault(t=>yl.getValueFor(t).evaluate(t).active),kl=Or("accent-foreground-focus").withDefault(t=>yl.getValueFor(t).evaluate(t).focus),Cl=Or({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=r>=Math.max(i,o,s,n)?-1:1;return{rest:t.get(r+a*i),hover:t.get(r+a*o),active:t.get(r+a*s),focus:t.get(r+a*n)}}(Ma.getValueFor(t),e||tl.getValueFor(t),fa.getValueFor(t),ba.getValueFor(t),va.getValueFor(t),ya.getValueFor(t))}),Il=Or("neutral-fill-rest").withDefault(t=>Cl.getValueFor(t).evaluate(t).rest),Tl=Or("neutral-fill-hover").withDefault(t=>Cl.getValueFor(t).evaluate(t).hover),Fl=Or("neutral-fill-active").withDefault(t=>Cl.getValueFor(t).evaluate(t).active),Sl=Or("neutral-fill-focus").withDefault(t=>Cl.getValueFor(t).evaluate(t).focus),Dl=Or({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=$r(e),a=t.closestIndexOf(e);return{rest:t.get(a-r*i),hover:t.get(a-r*o),active:t.get(a-r*s),focus:t.get(a-r*n)}}(Ma.getValueFor(t),e||tl.getValueFor(t),xa.getValueFor(t),$a.getValueFor(t),wa.getValueFor(t),ka.getValueFor(t))}),El=Or("neutral-fill-input-rest").withDefault(t=>Dl.getValueFor(t).evaluate(t).rest),Ol=Or("neutral-fill-input-hover").withDefault(t=>Dl.getValueFor(t).evaluate(t).hover),Rl=Or("neutral-fill-input-active").withDefault(t=>Dl.getValueFor(t).evaluate(t).active),Ll=Or("neutral-fill-input-focus").withDefault(t=>Dl.getValueFor(t).evaluate(t).focus),Al=Or({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c){const h=Math.max(i,o,s,n,r,a,l,c),d=t.closestIndexOf(e),u=d>=h?-1:1;return{rest:t.get(d+u*i),hover:t.get(d+u*o),active:t.get(d+u*s),focus:t.get(d+u*n)}}(Ma.getValueFor(t),e||tl.getValueFor(t),Ca.getValueFor(t),Ia.getValueFor(t),Ta.getValueFor(t),Fa.getValueFor(t),fa.getValueFor(t),ba.getValueFor(t),va.getValueFor(t),ya.getValueFor(t))}),Pl=Or("neutral-fill-stealth-rest").withDefault(t=>Al.getValueFor(t).evaluate(t).rest),Vl=Or("neutral-fill-stealth-hover").withDefault(t=>Al.getValueFor(t).evaluate(t).hover),Hl=Or("neutral-fill-stealth-active").withDefault(t=>Al.getValueFor(t).evaluate(t).active),zl=Or("neutral-fill-stealth-focus").withDefault(t=>Al.getValueFor(t).evaluate(t).focus),Ml=Or({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=$r(e),a=t.closestIndexOf(t.colorContrast(e,4.5)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(Ma.getValueFor(t),e||tl.getValueFor(t),Sa.getValueFor(t),Da.getValueFor(t),Ea.getValueFor(t),Oa.getValueFor(t))}),Bl=Or("neutral-fill-strong-rest").withDefault(t=>Ml.getValueFor(t).evaluate(t).rest),Nl=Or("neutral-fill-strong-hover").withDefault(t=>Ml.getValueFor(t).evaluate(t).hover),jl=Or("neutral-fill-strong-active").withDefault(t=>Ml.getValueFor(t).evaluate(t).active),ql=Or("neutral-fill-strong-focus").withDefault(t=>Ml.getValueFor(t).evaluate(t).focus),Ul=Rr("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){const o=t.closestIndexOf(e);return t.get(o-(o<i?-1*i:i))}(Ma.getValueFor(t),e||tl.getValueFor(t),Ra.getValueFor(t))}),_l=Or("neutral-fill-layer-rest").withDefault(t=>Ul.getValueFor(t).evaluate(t)),Gl=Rr("focus-stroke-outer-recipe").withDefault({evaluate:t=>{return e=Ma.getValueFor(t),i=tl.getValueFor(t),e.colorContrast(i,3.5);var e,i}}),Wl=Or("focus-stroke-outer").withDefault(t=>Gl.getValueFor(t).evaluate(t)),Kl=Rr("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return e=Na.getValueFor(t),i=tl.getValueFor(t),o=Wl.getValueFor(t),e.colorContrast(o,3.5,e.closestIndexOf(e.source),-1*$r(i));var e,i,o}}),Xl=Or("focus-stroke-inner").withDefault(t=>Kl.getValueFor(t).evaluate(t)),Yl=Rr("neutral-foreground-hint-recipe").withDefault({evaluate:t=>{return e=Ma.getValueFor(t),i=tl.getValueFor(t),e.colorContrast(i,4.5);var e,i}}),Ql=Or("neutral-foreground-hint").withDefault(t=>Yl.getValueFor(t).evaluate(t)),Zl=Rr("neutral-foreground-recipe").withDefault({evaluate:t=>{return e=Ma.getValueFor(t),i=tl.getValueFor(t),e.colorContrast(i,14);var e,i}}),Jl=Or("neutral-foreground-rest").withDefault(t=>Zl.getValueFor(t).evaluate(t)),tc=Or({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:t=>function(t,e,i,o,s,n){const r=t.closestIndexOf(e),a=$r(e),l=r+a*i,c=l+a*(o-i),h=l+a*(s-i),d=l+a*(n-i);return{rest:t.get(l),hover:t.get(c),active:t.get(h),focus:t.get(d)}}(Ma.getValueFor(t),tl.getValueFor(t),La.getValueFor(t),Aa.getValueFor(t),Pa.getValueFor(t),Va.getValueFor(t))}),ec=Or("neutral-stroke-rest").withDefault(t=>tc.getValueFor(t).evaluate(t).rest),ic=Or("neutral-stroke-hover").withDefault(t=>tc.getValueFor(t).evaluate(t).hover),oc=Or("neutral-stroke-active").withDefault(t=>tc.getValueFor(t).evaluate(t).active),sc=Or("neutral-stroke-focus").withDefault(t=>tc.getValueFor(t).evaluate(t).focus),nc=Rr("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+$r(e)*i)}(Ma.getValueFor(t),e||tl.getValueFor(t),Ha.getValueFor(t))}),rc=Or("neutral-stroke-divider-rest").withDefault(t=>nc.getValueFor(t).evaluate(t)),ac=To.create({name:"height-number",cssCustomPropertyName:null}).withDefault(t=>(Ar.getValueFor(t)+zr.getValueFor(t))*Mr.getValueFor(t)),lc=(t,e)=>vt`
22
+ ${Sn("flex")} :host{box-sizing:border-box;flex-direction:column;font-family:${Lr};font-size:${Gr};line-height:${Wr};color:${Jl};border-top:calc(${jr} * 1px) solid ${rc}}`,cc=xt`(${Ar} + ${zr}) * ${Mr}`,hc=(t,e)=>vt`
23
+ ${Sn("flex")} :host{box-sizing:border-box;font-family:${Lr};flex-direction:column;font-size:${Gr};line-height:${Wr};border-bottom:calc(${jr} * 1px) solid ${rc}}.region{display:none;padding:calc((6 + (${Mr} * 2 * ${zr})) * 1px)}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto calc(${cc} * 1px)}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;padding:0 calc((6 + (${Mr} * 2 * ${zr})) * 1px);text-align:left;height:calc(${cc} * 1px);color:${Jl};cursor:pointer;font-family:inherit}.button:hover{color:${Jl}}.button:active{color:${Jl}}.button::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer}.button:${Dn}::before{outline:none;border:calc(${qr} * 1px) solid ${Wl};border-radius:calc(${Hr} * 1px)}:host([expanded]) .region{display:block}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;pointer-events:none;position:relative}slot[name="expanded-icon"],slot[name="collapsed-icon"]{fill:${xl}}slot[name="collapsed-icon"]{display:flex}:host([expanded]) slot[name="collapsed-icon"]{display:none}slot[name="expanded-icon"]{display:none}:host([expanded]) slot[name="expanded-icon"]{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${Mr} * 1px);justify-content:center;grid-column:1;position:relative}.end{display:flex;align-items:center;justify-content:center;grid-column:3;position:relative}`.withBehaviors(Tn(vt`
24
+ .button:${Dn}::before{border-color:${Xe.Highlight}}:host slot[name="collapsed-icon"],:host([expanded]) slot[name="expanded-icon"]{fill:${Xe.ButtonText}}`)),dc=Ve.compose({baseName:"accordion-item",template:(t,e)=>X`<template class="${t=>t.expanded?"expanded":""}"><div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Et("expandbutton")} aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading-content" part="heading-content"><slot name="heading"></slot></span></button>${Gt(0,e)} ${_t(0,e)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon" part="expanded-icon">${e.expandedIcon||""}</slot><slot name="collapsed-icon" part="collapsed-icon">${e.collapsedIcon||""}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div></template>`,styles:hc,collapsedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M16.22 3H3.78a.78.78 0 00-.78.78v12.44c0 .43.35.78.78.78h12.44c.43 0 .78-.35.78-.78V3.78a.78.78 0 00-.78-.78zM3.78 2h12.44C17.2 2 18 2.8 18 3.78v12.44c0 .98-.8 1.78-1.78 1.78H3.78C2.8 18 2 17.2 2 16.22V3.78C2 2.8 2.8 2 3.78 2zM11 9h3v2h-3v3H9v-3H6V9h3V6h2v3z"\n />\n </svg>\n ',expandedIcon:'\n <svg\n width="20"\n height="20"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M3.78 3h12.44c.43 0 .78.35.78.78v12.44c0 .43-.35.78-.78.78H3.78a.78.78 0 01-.78-.78V3.78c0-.43.35-.78.78-.78zm12.44-1H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.78-.8 1.78-1.78V3.78C18 2.8 17.2 2 16.22 2zM14 9H6v2h8V9z"\n />\n </svg>\n '}),uc=Ze.compose({baseName:"accordion",template:(t,e)=>X`<template><slot ${Nt({property:"accordionItems",filter:zt()})}></slot><slot name="item" part="item" ${Nt("accordionItems")}></slot></template>`,styles:lc});
25
+ /*! *****************************************************************************
26
+ Copyright (c) Microsoft Corporation.
27
+
28
+ Permission to use, copy, modify, and/or distribute this software for any
29
+ purpose with or without fee is hereby granted.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
32
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
33
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
34
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
35
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
36
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
37
+ PERFORMANCE OF THIS SOFTWARE.
38
+ ***************************************************************************** */
39
+ function pc(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const gc="box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))));",mc=vt`
40
+ ${Sn("inline-flex")} :host{font-family:${Lr};outline:none;font-size:${Ur};line-height:${_r};height:calc(${cc} * 1px);min-width:calc(${cc} * 1px);background-color:${Il};color:${Jl};border-radius:calc(${Hr} * 1px);fill:currentcolor;cursor:pointer}.control{background:transparent;height:inherit;flex-grow:1;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:baseline;padding:0 calc((10 + (${Mr} * 2 * ${zr})) * 1px);white-space:nowrap;outline:none;text-decoration:none;border:calc(${jr} * 1px) solid transparent;color:inherit;border-radius:inherit;fill:inherit;cursor:inherit;font-weight:inherit;font-family:inherit;font-size:inherit;line-height:inherit}:host(:hover){background-color:${Tl}}:host(:active){background-color:${Fl}}.control:${Dn}{border-color:${Wl};box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px) ${Wl} inset}.control::-moz-focus-inner{border:0}.start,.content,.end{align-self:center}.start,.end{display:flex}.control.icon-only{padding:0;line-height:0}::slotted(svg){${""} width:16px;height:16px;pointer-events:none}.start{margin-inline-end:11px}.end{margin-inline-start:11px}`.withBehaviors(Tn(vt`
41
+ :host .control{background-color:${Xe.ButtonFace};border-color:${Xe.ButtonText};color:${Xe.ButtonText};fill:currentColor}:host(:hover) .control{forced-color-adjust:none;background-color:${Xe.Highlight};color:${Xe.HighlightText}}.control:${Dn}{forced-color-adjust:none;background-color:${Xe.Highlight};border-color:${Xe.ButtonText};box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px) ${Xe.ButtonText} inset;color:${Xe.HighlightText}}.control:hover,:host([appearance="outline"]) .control:hover{border-color:${Xe.ButtonText}}:host([href]) .control{border-color:${Xe.LinkText};color:${Xe.LinkText}}:host([href]) .control:hover,:host([href]) .control:${Dn}{forced-color-adjust:none;background:${Xe.ButtonFace};border-color:${Xe.LinkText};box-shadow:0 0 0 1px ${Xe.LinkText} inset;color:${Xe.LinkText};fill:currentColor}`)),fc=vt`
42
+ :host([appearance="accent"]){background:${ol};color:${cl}}:host([appearance="accent"]:hover){background:${sl};color:${hl}}:host([appearance="accent"]:active) .control:active{background:${nl};color:${dl}}:host([appearance="accent"]) .control:${Dn}{box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px) ${Wl} inset,0 0 0 calc((${qr} + ${jr}) * 1px) ${Xl} inset}`.withBehaviors(Tn(vt`
43
+ :host([appearance="accent"]) .control{forced-color-adjust:none;background:${Xe.Highlight};color:${Xe.HighlightText}}:host([appearance="accent"]) .control:hover,:host([appearance="accent"]:active) .control:active{background:${Xe.HighlightText};border-color:${Xe.Highlight};color:${Xe.Highlight}}:host([appearance="accent"]) .control:${Dn}{border-color:${Xe.Highlight};box-shadow:0 0 0 calc(${qr} * 1px) ${Xe.HighlightText} inset}:host([appearance="accent"][href]) .control{background:${Xe.LinkText};color:${Xe.HighlightText}}:host([appearance="accent"][href]) .control:hover{background:${Xe.ButtonFace};border-color:${Xe.LinkText};box-shadow:none;color:${Xe.LinkText};fill:currentColor}:host([appearance="accent"][href]) .control:${Dn}{border-color:${Xe.LinkText};box-shadow:0 0 0 calc(${qr} * 1px) ${Xe.HighlightText} inset}`)),bc=vt`
44
+ :host([appearance="hypertext"]){font-size:inherit;line-height:inherit;height:auto;min-width:0;background:transparent}:host([appearance="hypertext"]) .control{display:inline;padding:0;border:none;box-shadow:none;border-radius:0;line-height:1}:host a.control:not(:link){background-color:transparent;cursor:default}:host([appearance="hypertext"]) .control:link,:host([appearance="hypertext"]) .control:visited{background:transparent;color:${xl};border-bottom:calc(${jr} * 1px) solid ${xl}}:host([appearance="hypertext"]:hover),:host([appearance="hypertext"]) .control:hover{background:transparent;border-bottom-color:${$l}}:host([appearance="hypertext"]:active),:host([appearance="hypertext"]) .control:active{background:transparent;border-bottom-color:${wl}}:host([appearance="hypertext"]) .control:${Dn}{border-bottom:calc(${qr} * 1px) solid ${Wl};margin-bottom:calc(calc(${jr} - ${qr}) * 1px)}`.withBehaviors(Tn(vt`
45
+ :host([appearance="hypertext"]:hover){background-color:${Xe.ButtonFace};color:${Xe.ButtonText}}:host([appearance="hypertext"][href]) .control:hover,:host([appearance="hypertext"][href]) .control:active,:host([appearance="hypertext"][href]) .control:${Dn}{color:${Xe.LinkText};border-bottom-color:${Xe.LinkText};box-shadow:none}`)),vc=vt`
46
+ :host([appearance="lightweight"]){background:transparent;color:${xl}}:host([appearance="lightweight"]) .control{padding:0;height:initial;border:none;box-shadow:none;border-radius:0}:host([appearance="lightweight"]:hover){background:transparent;color:${$l}}:host([appearance="lightweight"]:active){background:transparent;color:${wl}}:host([appearance="lightweight"]) .content{position:relative}:host([appearance="lightweight"]) .content::before{content:"";display:block;height:calc(${jr} * 1px);position:absolute;top:calc(1em + 4px);width:100%}:host([appearance="lightweight"]:hover) .content::before{background:${$l}}:host([appearance="lightweight"]:active) .content::before{background:${wl}}:host([appearance="lightweight"]) .control:${Dn} .content::before{background:${Jl};height:calc(${qr} * 1px)}`.withBehaviors(Tn(vt`
47
+ :host([appearance="lightweight"]) .control:hover,:host([appearance="lightweight"]) .control:${Dn}{forced-color-adjust:none;background:${Xe.ButtonFace};color:${Xe.Highlight}}:host([appearance="lightweight"]) .control:hover .content::before,:host([appearance="lightweight"]) .control:${Dn} .content::before{background:${Xe.Highlight}}:host([appearance="lightweight"][href]) .control:hover,:host([appearance="lightweight"][href]) .control:${Dn}{background:${Xe.ButtonFace};box-shadow:none;color:${Xe.LinkText}}:host([appearance="lightweight"][href]) .control:hover .content::before,:host([appearance="lightweight"][href]) .control:${Dn} .content::before{background:${Xe.LinkText}}`)),yc=vt`
48
+ :host([appearance="outline"]){background:transparent;border-color:${ol}}:host([appearance="outline"]:hover){border-color:${sl}}:host([appearance="outline"]:active){border-color:${nl}}:host([appearance="outline"]) .control{border-color:inherit}:host([appearance="outline"]) .control:${Dn}{box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px) ${Wl} inset;border-color:${Wl}}`.withBehaviors(Tn(vt`
49
+ :host([appearance="outline"]) .control{border-color:${Xe.ButtonText}}:host([appearance="outline"]) .control:${Dn}{forced-color-adjust:none;background-color:${Xe.Highlight};border-color:${Xe.ButtonText};box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px) ${Xe.ButtonText} inset;color:${Xe.HighlightText};fill:currentColor}:host([appearance="outline"][href]) .control{background:${Xe.ButtonFace};border-color:${Xe.LinkText};color:${Xe.LinkText};fill:currentColor}:host([appearance="outline"][href]) .control:hover,:host([appearance="outline"][href]) .control:${Dn}{forced-color-adjust:none;border-color:${Xe.LinkText};box-shadow:0 0 0 1px ${Xe.LinkText} inset}`)),xc=vt`
50
+ :host([appearance="stealth"]){background:${Pl}}:host([appearance="stealth"]:hover){background:${Vl}}:host([appearance="stealth"]:active){background:${Hl}}`.withBehaviors(Tn(vt`
51
+ :host([appearance="stealth"]),:host([appearance="stealth"]) .control{forced-color-adjust:none;background:${Xe.ButtonFace};border-color:transparent;color:${Xe.ButtonText};fill:currentColor}:host([appearance="stealth"]:hover) .control{background:${Xe.Highlight};border-color:${Xe.Highlight};color:${Xe.HighlightText};fill:currentColor}:host([appearance="stealth"]:${Dn}) .control{background:${Xe.Highlight};box-shadow:0 0 0 1px ${Xe.Highlight};color:${Xe.HighlightText};fill:currentColor}:host([appearance="stealth"][href]) .control{color:${Xe.LinkText}}:host([appearance="stealth"][href]:hover) .control,:host([appearance="stealth"][href]:${Dn}) .control{background:${Xe.LinkText};border-color:${Xe.LinkText};color:${Xe.HighlightText};fill:currentColor}:host([appearance="stealth"][href]:${Dn}) .control{forced-color-adjust:none;box-shadow:0 0 0 1px ${Xe.LinkText}}`));class $c{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&Br.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new wc(this.ltr,this.rtl,t),i=Br.getValueFor(t);Br.subscribe(e),e.attach(i),this.cache.set(t,e)}}class wc{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(t))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}function kc(t,e){return new Fn("appearance",t,e)}const Cc=(t,e)=>vt`
52
+ ${mc}
53
+ `.withBehaviors(kc("accent",fc),kc("hypertext",bc),kc("lightweight",vc),kc("outline",yc),kc("stealth",xc));class Ic extends ei{appearanceChanged(t,e){this.$fastController.isConnected&&(this.classList.remove(t),this.classList.add(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(t,e){const i=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===i.length&&i[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}pc([nt],Ic.prototype,"appearance",void 0);const Tc=Ic.compose({baseName:"anchor",baseClass:ei,template:Je,styles:Cc,shadowOptions:{delegatesFocus:!0}}),Fc=(t,e)=>vt`
54
+ :host{contain:layout;display:block}`,Sc=si.compose({baseName:"anchored-region",template:(t,e)=>X`<template class="${t=>t.initialLayoutComplete?"loaded":""}">${Ot(t=>t.initialLayoutComplete,X`<slot></slot>`)}</template>`,styles:Fc}),Dc=(t,e)=>vt`
55
+ ${Sn("flex")} :host{position:relative;height:var(--avatar-size,var(--avatar-size-default));max-width:var(--avatar-size,var(--avatar-size-default));--avatar-size-default:calc(
56
+ (
57
+ (${Ar} + ${zr}) * ${Mr} +
58
+ ((${Mr} * 8) - 40)
59
+ ) * 1px
60
+ );--avatar-text-size:${Ur};--avatar-text-ratio:${Mr}}.link{text-decoration:none;color:${Jl};display:flex;flex-direction:row;justify-content:center;align-items:center;min-width:100%}.square{border-radius:calc(${Hr} * 1px);min-width:100%;overflow:hidden}.circle{border-radius:100%;min-width:100%;overflow:hidden}.backplate{position:relative;display:flex}.media,::slotted(img){max-width:100%;position:absolute;display:block}.content{font-size:calc(
61
+ (var(--avatar-text-size) + var(--avatar-size,var(--avatar-size-default))) /
62
+ var(--avatar-text-ratio)
63
+ );line-height:var(--avatar-size,var(--avatar-size-default));display:block;min-height:var(--avatar-size,var(--avatar-size-default))}::slotted(${t.tagFor(pi)}){position:absolute;display:block}`.withBehaviors(new $c(((t,e)=>vt`
64
+ ::slotted(${t.tagFor(pi)}){right:0}`)(t),((t,e)=>vt`
65
+ ::slotted(${t.tagFor(pi)}){left:0}`)(t)));class Ec extends ui{}pc([nt({attribute:"src"})],Ec.prototype,"imgSrc",void 0),pc([nt],Ec.prototype,"alt",void 0);const Oc=X` ${Ot(t=>t.imgSrc,X`<img src="${t=>t.imgSrc}" alt="${t=>t.alt}" slot="media" class="media" part="media" />`)}
66
+ `,Rc=Ec.compose({baseName:"avatar",baseClass:ui,template:(t,e)=>X`<div class="backplate ${t=>t.shape}" part="backplate" style="${t=>t.fill?`background-color: var(--avatar-fill-${t.fill});`:void 0}"><a class="link" part="link" href="${t=>t.link?t.link:void 0}" style="${t=>t.color?`color: var(--avatar-color-${t.color});`:void 0}"><slot name="media" part="media">${e.media||""}</slot><slot class="content" part="content"><slot></a></div><slot name="badge" part="badge"></slot>`,styles:Dc,media:Oc,shadowOptions:{delegatesFocus:!0}}),Lc=(t,e)=>vt`
67
+ ${Sn("inline-block")} :host{box-sizing:border-box;font-family:${Lr};font-size:${Gr};line-height:${Wr}}.control{border-radius:calc(${Hr} * 1px);padding:calc(((${Mr} * 0.5) - ${jr}) * 1px)
68
+ calc((${Mr} - ${jr}) * 1px);color:${xl};font-weight:600;border:calc(${jr} * 1px) solid transparent}.control[style]{font-weight:400}:host([circular]) .control{border-radius:100px;padding:0 calc(${Mr} * 1px);height:calc((${cc} - (${Mr} * 3)) * 1px);min-width:calc((${cc} - (${Mr} * 3)) * 1px);display:flex;align-items:center;justify-content:center;box-sizing:border-box}`,Ac=pi.compose({baseName:"badge",template:(t,e)=>X`<template class="${t=>t.circular?"circular":""}"><div class="control" part="control" style="${t=>t.generateBadgeStyle()}"><slot></slot></div></template>`,styles:Lc}),Pc=(t,e)=>vt`
69
+ ${Sn("inline-flex")} :host{background:transparent;box-sizing:border-box;font-family:${Lr};font-size:${Ur};fill:currentColor;line-height:${_r};min-width:calc(${cc} * 1px);outline:none;color:${Jl}}.listitem{display:flex;align-items:center;width:max-content}.separator{margin:0 6px;display:flex}.control{align-items:center;box-sizing:border-box;color:${xl};cursor:pointer;display:flex;fill:inherit;outline:none;text-decoration:none;white-space:nowrap}.control:hover{color:${$l}}.control:active{color:${wl}}.control .content{position:relative}.control .content::before{content:"";display:block;height:calc(${jr} * 1px);left:0;position:absolute;right:0;top:calc(1em + 4px);width:100%}.control:hover .content::before{background:${$l}}.control:active .content::before{background:${wl}}.control:${Dn} .content::before{background:${Jl};height:calc(${qr} * 1px)}.control:not([href]){color:${Jl};cursor:default}.control:not([href]) .content::before{background:none}.start,.end{display:flex}::slotted(svg){width:16px;height:16px}.start{margin-inline-end:6px}.end{margin-inline-start:6px}`.withBehaviors(Tn(vt`
70
+ .control:hover .content::before,.control:${Dn} .content::before{background:${Xe.LinkText}}.start,.end{fill:${Xe.ButtonText}}`)),Vc=gi.compose({baseName:"breadcrumb-item",template:(t,e)=>X`<div role="listitem" class="listitem" part="listitem">${Ot(t=>t.href&&t.href.length>0,X` ${Je(0,e)} `)} ${Ot(t=>!t.href,X` ${Gt(0,e)}<slot></slot>${_t(0,e)} `)} ${Ot(t=>t.separator,X`<span class="separator" part="separator" aria-hidden="true"><slot name="separator">${e.separator||""}</slot></span>`)}</div>`,styles:Pc,separator:"/",shadowOptions:{delegatesFocus:!0}}),Hc=(t,e)=>vt`
71
+ ${Sn("inline-block")} :host{box-sizing:border-box;font-family:${Lr};font-size:${Ur};line-height:${_r}}.list{display:flex;flex-wrap:wrap}`,zc=mi.compose({baseName:"breadcrumb",template:(t,e)=>X`<template role="navigation"><div role="list" class="list" part="list"><slot ${Nt({property:"slottedBreadcrumbItems",filter:zt()})}></slot></div></template>`,styles:Hc}),Mc=(t,e)=>vt`
72
+ :host([disabled]),:host([disabled]:hover),:host([disabled]:active){opacity:${Nr};background-color:${Il};cursor:${"not-allowed"}}${mc}
73
+ `.withBehaviors(Tn(vt`
74
+ :host([disabled]),:host([disabled]) .control,:host([disabled]:hover),:host([disabled]:active){forced-color-adjust:none;background-color:${Xe.ButtonFace};border-color:${Xe.GrayText};color:${Xe.GrayText};cursor:${"not-allowed"};opacity:1}`),kc("accent",vt`
75
+ :host([appearance="accent"][disabled]),:host([appearance="accent"][disabled]:hover),:host([appearance="accent"][disabled]:active){background:${ol}}${fc}
76
+ `.withBehaviors(Tn(vt`
77
+ :host([appearance="accent"][disabled]) .control,:host([appearance="accent"][disabled]) .control:hover{background:${Xe.ButtonFace};border-color:${Xe.GrayText};color:${Xe.GrayText}}`))),kc("lightweight",vt`
78
+ :host([appearance="lightweight"][disabled]:hover),:host([appearance="lightweight"][disabled]:active){background-color:transparent;color:${xl}}:host([appearance="lightweight"][disabled]) .content::before,:host([appearance="lightweight"][disabled]:hover) .content::before,:host([appearance="lightweight"][disabled]:active) .content::before{background:transparent}${vc}
79
+ `.withBehaviors(Tn(vt`
80
+ :host([appearance="lightweight"].disabled) .control{forced-color-adjust:none;color:${Xe.GrayText}}:host([appearance="lightweight"].disabled)
81
+ .control:hover
82
+ .content::before{background:none}`))),kc("outline",vt`
83
+ :host([appearance="outline"][disabled]),:host([appearance="outline"][disabled]:hover),:host([appearance="outline"][disabled]:active){background:transparent;border-color:${ol}}${yc}
84
+ `.withBehaviors(Tn(vt`
85
+ :host([appearance="outline"][disabled]) .control{border-color:${Xe.GrayText}}`))),kc("stealth",vt`
86
+ :host([appearance="stealth"][disabled]),:host([appearance="stealth"][disabled]:hover),:host([appearance="stealth"][disabled]:active){background:${Pl}}${xc}
87
+ `.withBehaviors(Tn(vt`
88
+ :host([appearance="stealth"][disabled]){background:${Xe.ButtonFace}}:host([appearance="stealth"][disabled]) .control{background:${Xe.ButtonFace};border-color:transparent;color:${Xe.GrayText}}`))));class Bc extends wi{constructor(){super(...arguments),this.appearance="neutral"}defaultSlottedContentChanged(t,e){const i=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===i.length&&i[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}pc([nt],Bc.prototype,"appearance",void 0);const Nc=Bc.compose({baseName:"button",baseClass:wi,template:(t,e)=>X`<button class="control" part="control" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" form="${t=>t.formId}" formaction="${t=>t.formaction}" formenctype="${t=>t.formenctype}" formmethod="${t=>t.formmethod}" formnovalidate="${t=>t.formnovalidate}" formtarget="${t=>t.formtarget}" name="${t=>t.name}" type="${t=>t.type}" value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-pressed="${t=>t.ariaPressed}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Et("control")}>${Gt(0,e)}<span class="content" part="content"><slot ${Nt("defaultSlottedContent")}></slot></span>${_t(0,e)}</button>`,styles:Mc,shadowOptions:{delegatesFocus:!0}}),jc=vt`
89
+ ${Sn("block")} :host{--cell-border:none;--cell-height:calc(${cc} * 1px);--selected-day-outline:1px solid ${wl};--selected-day-color:${wl};--selected-day-background:${Il};--cell-padding:calc(${Mr} * 1px);--disabled-day-opacity:${Nr};--inactive-day-opacity:${Nr};font-family:${Lr};font-size:${Ur};line-height:${_r};color:${Jl}}.title{font-size:${ta};line-height:${ea};padding:var(--cell-padding);text-align:center}.week-days,.week{display:grid;grid-template-columns:repeat(7,1fr);border-left:var(--cell-border,none);border-bottom:none;padding:0}.interact .week{grid-gap:calc(${Mr} * 1px);margin-top:calc(${Mr} * 1px)}.day,.week-day{border-bottom:var(--cell-border);border-right:var(--cell-border);padding:var(--cell-padding)}.week-day{text-align:center;border-radius:0;border-top:var(--cell-border)}.day{box-sizing:border-box;vertical-align:top;outline-offset:-1px;line-height:var(--cell-line-height);white-space:normal}.interact .day{background:${Il};cursor:pointer}.day.inactive{background:var(--inactive-day-background);color:var(--inactive-day-color);opacity:var(--inactive-day-opacity);outline:var(--inactive-day-outline)}.day.disabled{background:var(--disabled-day-background);color:var(--disabled-day-color);cursor:${"not-allowed"};opacity:var(--disabled-day-opacity);outline:var(--disabled-day-outline)}.day.selected{color:var(--selected-day-color);background:var(--selected-day-background);outline:var(--selected-day-outline)}.date{padding:var(--cell-padding);text-align:center}.interact .today,.today{color:${dl};background:${wl}}.today.inactive .date{background:transparent;color:inherit;width:auto}`.withBehaviors(Tn(vt`
90
+ :host{--selected-day-outline:1px solid ${Xe.Highlight}}.day,.week-day{background:${Xe.Canvas};color:${Xe.CanvasText};fill:currentcolor}.day.selected{color:${Xe.Highlight}}.today .date{background:${Xe.Highlight};color:${Xe.HighlightText}}`)),qc=Ii.compose({baseName:"calendar",template:(t,e)=>{var i;const o=new Date,s=`${o.getMonth()+1}-${o.getDate()}-${o.getFullYear()}`;return X`<template>${Kt} ${e.title instanceof Function?e.title(t,e):null!==(i=e.title)&&void 0!==i?i:""}<slot></slot>${Ot(t=>!1===t.readonly,ji(t,s))} ${Ot(t=>!0===t.readonly,(t=>X`<div class="days" part="days"><div class="week-days" part="week-days">${Ht(t=>t.getWeekdayText(),X`<div class="week-day" part="week-day" abbr="${t=>t.abbr}">${t=>t.text}</div>`)}</div>${Ht(t=>t.getDays(),X`<div class="week">${Ht(t=>t,X`<div class="${(e,i)=>i.parentContext.parent.getDayClassNames(e,t)}" part="day" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${e=>t===`${e.month}-${e.day}-${e.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></div>`)}</div>`)}</div>`)(s))} ${Wt}</template>`},styles:jc,title:Bi}),Uc=(t,e)=>vt`
91
+ ${Sn("block")} :host{--elevation:4;display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${tl};border-radius:calc(${Hr} * 1px);${gc}}`.withBehaviors(Tn(vt`
92
+ :host{forced-color-adjust:none;background:${Xe.Canvas};box-shadow:0 0 0 1px ${Xe.CanvasText}}`));class _c extends qi{connectedCallback(){super.connectedCallback();const t=lo(this);t&&tl.setValueFor(this,e=>Ul.getValueFor(e).evaluate(e,tl.getValueFor(t)))}}const Gc=_c.compose({baseName:"card",baseClass:qi,template:(t,e)=>X`<slot></slot>`,styles:Uc}),Wc=(t,e)=>vt`
93
+ ${Sn("inline-flex")} :host{align-items:center;outline:none;margin:calc(${Mr} * 1px) 0;user-select:none}.control{position:relative;width:calc((${cc} / 2 + ${Mr}) * 1px);height:calc((${cc} / 2 + ${Mr}) * 1px);box-sizing:border-box;border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ec};background:${El};outline:none;cursor:pointer}.label{font-family:${Lr};color:${Jl};padding-inline-start:calc(${Mr} * 2px + 2px);margin-inline-end:calc(${Mr} * 2px + 2px);cursor:pointer;font-size:${Ur};line-height:${_r}}.label__hidden{display:none;visibility:hidden}.checked-indicator{width:100%;height:100%;display:block;fill:${cl};opacity:0;pointer-events:none}.indeterminate-indicator{border-radius:calc(${Hr} * 1px);background:${cl};position:absolute;top:50%;left:50%;width:50%;height:50%;transform:translate(-50%,-50%);opacity:0}:host(:not([disabled])) .control:hover{background:${Ol};border-color:${ic}}:host(:not([disabled])) .control:active{background:${Rl};border-color:${oc}}:host(:${Dn}) .control{box-shadow:0 0 0 2px ${tl},0 0 0 4px ${Wl}}:host([aria-checked="true"]) .control{background:${ol};border:calc(${jr} * 1px) solid ${ol}}:host([aria-checked="true"]:not([disabled])) .control:hover{background:${sl};border:calc(${jr} * 1px) solid ${sl}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill:${hl}}:host([aria-checked="true"]:not([disabled])) .control:hover .indeterminate-indicator{background:${hl}}:host([aria-checked="true"]:not([disabled])) .control:active{background:${nl};border:calc(${jr} * 1px) solid ${nl}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{fill:${dl}}:host([aria-checked="true"]:not([disabled])) .control:active .indeterminate-indicator{background:${dl}}:host([aria-checked="true"]:${Dn}:not([disabled])) .control{box-shadow:0 0 0 2px ${tl},0 0 0 4px ${Wl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([aria-checked="true"]:not(.indeterminate)) .checked-indicator,:host(.indeterminate) .indeterminate-indicator{opacity:1}:host([disabled]){opacity:${Nr}}`.withBehaviors(Tn(vt`
94
+ .control{forced-color-adjust:none;border-color:${Xe.FieldText};background:${Xe.Field}}.checked-indicator{fill:${Xe.FieldText}}.indeterminate-indicator{background:${Xe.FieldText}}:host(:not([disabled])) .control:hover,.control:active{border-color:${Xe.Highlight};background:${Xe.Field}}:host(:${Dn}) .control{box-shadow:0 0 0 2px ${Xe.Field},0 0 0 4px ${Xe.FieldText}}:host([aria-checked="true"]:${Dn}:not([disabled])) .control{box-shadow:0 0 0 2px ${Xe.Field},0 0 0 4px ${Xe.FieldText}}:host([aria-checked="true"]) .control{background:${Xe.Highlight};border-color:${Xe.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover,.control:active{border-color:${Xe.Highlight};background:${Xe.HighlightText}}:host([aria-checked="true"]) .checked-indicator{fill:${Xe.HighlightText}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill:${Xe.Highlight}}:host([aria-checked="true"]) .indeterminate-indicator{background:${Xe.HighlightText}}:host([aria-checked="true"]) .control:hover .indeterminate-indicator{background:${Xe.Highlight}}:host([disabled]){opacity:1}:host([disabled]) .control{forced-color-adjust:none;border-color:${Xe.GrayText};background:${Xe.Field}}:host([disabled]) .indeterminate-indicator,:host([aria-checked="true"][disabled]) .control:hover .indeterminate-indicator{forced-color-adjust:none;background:${Xe.GrayText}}:host([disabled]) .checked-indicator,:host([aria-checked="true"][disabled]) .control:hover .checked-indicator{forced-color-adjust:none;fill:${Xe.GrayText}}`)),Kc=Gi.compose({baseName:"checkbox",template:(t,e)=>X`<template role="checkbox" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot><slot name="indeterminate-indicator">${e.indeterminateIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label></template>`,styles:Wc,checkedIndicator:'\n <svg\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '}),Xc=(t,e)=>{const i=t.tagFor(Ki),o=t.name===t.tagFor(Zo)?"":".listbox";return vt`
95
+ ${o?"":Sn("inline-flex")}
96
+
97
+ :host ${o}{background:${tl};border:calc(${jr} * 1px) solid ${ec};border-radius:calc(${Hr} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${Mr} * 1px) 0}${o?"":vt`
98
+ :host(:focus-within:not([disabled])){border-color:${Wl};box-shadow:0 0 0
99
+ calc((${qr} - ${jr}) * 1px)
100
+ ${Wl} inset}:host([disabled]) ::slotted(*){cursor:${"not-allowed"};opacity:${Nr};pointer-events:none}`}
101
+
102
+ ${o||":host([size])"}{max-height:calc(
103
+ (var(--size) * ${cc} + (${Mr} * ${jr} * 2)) * 1px
104
+ );overflow-y:auto}:host([size="0"]) ${o}{max-height:none}`.withBehaviors(Tn(vt`
105
+ :host(:not([multiple]):${Dn}) ::slotted(${i}[aria-selected="true"]),:host([multiple]:${Dn}) ::slotted(${i}[aria-checked="true"]){border-color:${Xe.ButtonText};box-shadow:0 0 0 calc(${qr} * 1px) inset ${Xe.HighlightText}}:host(:not([multiple]):${Dn}) ::slotted(${i}[aria-selected="true"]){background:${Xe.Highlight};color:${Xe.HighlightText};fill:currentcolor}::slotted(${i}[aria-selected="true"]:not([aria-checked="true"])){background:${Xe.Highlight};border-color:${Xe.HighlightText};color:${Xe.HighlightText}}`))},Yc=(t,e)=>{const i=t.name===t.tagFor(Vs);return vt`
106
+ ${Sn("inline-flex")}
107
+
108
+ :host{--elevation:14;background:${El};border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ol};box-sizing:border-box;color:${Jl};font-family:${Lr};height:calc(${cc} * 1px);position:relative;user-select:none;min-width:250px;outline:none;vertical-align:top}${i?vt`
109
+ :host(:not([aria-haspopup])){--elevation:0;border:0;height:auto;min-width:0}`:""}
110
+
111
+ ${Xc(t)}
112
+
113
+ :host .listbox{${gc}
114
+ border:none;display:flex;left:0;position:absolute;width:100%;z-index:1}.control + .listbox{--stroke-size:calc(${Mr} * ${jr} * 2);max-height:calc(
115
+ (var(--listbox-max-height) * ${cc} + var(--stroke-size)) * 1px
116
+ )}${i?vt`
117
+ :host(:not([aria-haspopup])) .listbox{left:auto;position:static;z-index:auto}`:""}
118
+
119
+ .listbox[hidden]{display:none}.control{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:${Ur};font-family:inherit;line-height:${_r};min-height:100%;padding:0 calc(${Mr} * 2.25px);width:100%}:host(:not([disabled]):hover){background:${Ol};border-color:${sl}}:host(:${Dn}){border-color:${Wl}}:host(:not([size]):not([multiple]):not([open]):${Dn}),:host([multiple]:${Dn}),:host([size]:${Dn}){box-shadow:0 0 0 calc(${qr} * 1px) ${Wl}}:host(:not([multiple]):not([size]):${Dn}) ::slotted(${t.tagFor(Ki)}[aria-selected="true"]:not([disabled])){box-shadow:0 0 0 calc(${qr} * 1px) inset ${Xl};border-color:${Wl};background:${rl};color:${ul}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}:host([disabled]) .control{cursor:${"not-allowed"};user-select:none}:host([disabled]:hover){background:${Pl};color:${Jl};fill:currentcolor}:host(:not([disabled])) .control:active{background:${Rl};border-color:${nl};border-radius:calc(${Hr} * 1px)}:host([open][position="above"]) .listbox{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0;bottom:calc(${cc} * 1px)}:host([open][position="below"]) .listbox{border-top-left-radius:0;border-top-right-radius:0;border-top:0;top:calc(${cc} * 1px)}.selected-value{flex:1 1 auto;font-family:inherit;min-width:calc(var(--listbox-scroll-width,0) - (${Mr} * 4) * 1px);overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap}.indicator{flex:0 0 auto;margin-inline-start:1em}slot[name="listbox"]{display:none;width:100%}:host([open]) slot[name="listbox"]{display:flex;position:absolute;${gc}}.end{margin-inline-start:auto}.start,.end,.indicator,.select-indicator,::slotted(svg){fill:currentcolor;height:1em;min-height:calc(${Mr} * 4px);min-width:calc(${Mr} * 4px);width:1em}::slotted([role="option"]),::slotted(option){flex:0 0 auto}`.withBehaviors(Tn(vt`
120
+ :host(:not([disabled]):hover),:host(:not([disabled]):active){border-color:${Xe.Highlight}}:host(:not([disabled]):${Dn}){background-color:${Xe.ButtonFace};box-shadow:0 0 0 calc(${qr} * 1px) ${Xe.Highlight};color:${Xe.ButtonText};fill:currentcolor;forced-color-adjust:none}:host(:not([disabled]):${Dn}) .listbox{background:${Xe.ButtonFace}}:host([disabled]){border-color:${Xe.GrayText};background-color:${Xe.ButtonFace};color:${Xe.GrayText};fill:currentcolor;opacity:1;forced-color-adjust:none}:host([disabled]:hover){background:${Xe.ButtonFace}}:host([disabled]) .control{color:${Xe.GrayText};border-color:${Xe.GrayText}}:host([disabled]) .control .select-indicator{fill:${Xe.GrayText}}:host(:${Dn}) ::slotted([aria-selected="true"][role="option"]),:host(:${Dn}) ::slotted(option[aria-selected="true"]),:host(:${Dn}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background:${Xe.Highlight};border-color:${Xe.ButtonText};box-shadow:0 0 0 calc(${qr} * 1px) inset ${Xe.HighlightText};color:${Xe.HighlightText};fill:currentcolor}.start,.end,.indicator,.select-indicator,::slotted(svg){color:${Xe.ButtonText};fill:currentcolor}`))},Qc=(t,e)=>vt`
121
+ ${Yc(t)}
122
+
123
+ :host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;font-size:${Ur};line-height:${_r};height:calc(100% - (${jr} * 1px));margin:auto 0;width:100%}.selected-value:hover,.selected-value:${Dn},.selected-value:disabled,.selected-value:active{outline:none}`;class Zc extends ro{maxHeightChanged(t,e){this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);const t=Math.floor(this.maxHeight/ac.getValueFor(this)).toString();this.computedStylesheet=vt`
124
+ :host{--listbox-max-height:${t}}`,this.$fastController.addStyles(this.computedStylesheet)}}const Jc=Zc.compose({baseName:"combobox",baseClass:ro,template:(t,e)=>X`<template aria-disabled="${t=>t.ariaDisabled}" autocomplete="${t=>t.autocomplete}" class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" ?open="${t=>t.open}" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><div class="control" part="control">${Gt(0,e)}<slot name="control"><input aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-autocomplete="${t=>t.ariaAutoComplete}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${t=>t.placeholder}" role="combobox" type="text" ?disabled="${t=>t.disabled}" :value="${t=>t.value}" @input="${(t,e)=>t.inputHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}" ${Et("control")} /><div class="indicator" part="indicator" aria-hidden="true"><slot name="indicator">${e.indicator||""}</slot></div></slot>${_t(0,e)}</div><div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Et("listbox")}><slot ${Nt({filter:Yi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:Qc,shadowOptions:{delegatesFocus:!0},indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),th=(t,e)=>vt`
125
+ :host{display:flex;position:relative;flex-direction:column}`,eh=(t,e)=>vt`
126
+ :host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${jr} * 1px) solid ${rc}}:host(.header){}:host(.sticky-header){background:${Il};position:sticky;top:0}`,ih=(t,e)=>vt`
127
+ :host{padding:calc(${Mr} * 1px) calc(${Mr} * 3px);color:${Jl};box-sizing:border-box;font-family:${Lr};font-size:${Ur};line-height:${_r};font-weight:400;border:transparent calc(${qr} * 1px) solid;overflow:hidden;white-space:nowrap;border-radius:calc(${Hr} * 1px)}:host(.column-header){font-weight:600}:host(:${Dn}){border:${Wl} calc(${qr} * 1px) solid;outline:none;color:${Jl}}`.withBehaviors(Tn(vt`
128
+ :host{forced-color-adjust:none;border-color:transparent;background:${Xe.Field};color:${Xe.FieldText}}:host(:${Dn}){border-color:${Xe.FieldText};box-shadow:0 0 0 2px inset ${Xe.Field};color:${Xe.FieldText}}`)),oh=Mi.compose({baseName:"data-grid-cell",template:(t,e)=>X`<template tabindex="-1" role="${t=>t.cellType&&"default"!==t.cellType?t.cellType:"gridcell"}" class=" ${t=>"columnheader"===t.cellType?"column-header":"rowheader"===t.cellType?"row-header":""} "><slot></slot></template>`,styles:ih}),sh=Pi.compose({baseName:"data-grid-row",template:(t,e)=>X`<template role="row" class="${t=>"default"!==t.rowType?t.rowType:""}" :defaultCellItemTemplate="${function(t){const e=t.tagFor(Mi);return X`<${e} cell-type="${t=>t.isRowHeader?"rowheader":void 0}" grid-column="${(t,e)=>e.index+1}" :rowData="${(t,e)=>e.parent.rowData}" :columnDefinition="${t=>t}"></${e}>`}(t)}" :defaultHeaderCellItemTemplate="${function(t){const e=t.tagFor(Mi);return X`<${e} cell-type="columnheader" grid-column="${(t,e)=>e.index+1}" :columnDefinition="${t=>t}"></${e}>`}(t)}" ${qt({property:"cellElements",filter:zt('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}><slot ${Nt("slottedCellElements")}></slot></template>`,styles:eh}),nh=Vi.compose({baseName:"data-grid",template:(t,e)=>{const i=function(t){const e=t.tagFor(Pi);return X`<${e} :rowData="${t=>t}" :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}" :headerCellItemTemplate="${(t,e)=>e.parent.headerCellItemTemplate}"></${e}>`}(t),o=t.tagFor(Pi);return X`<template role="grid" tabindex="0" :rowElementTag="${()=>o}" :defaultRowItemTemplate="${i}" ${qt({property:"rowElements",filter:zt("[role=row]")})}><slot></slot></template>`},styles:th}),rh={toView:t=>null==t?null:null==t?void 0:t.toColorString(),fromView(t){if(null==t)return null;const e=pr(t);return e?br.create(e.r,e.g,e.b):null}},ah=vt`
129
+ :host{background-color:${tl};color:${Jl}}`.withBehaviors(Tn(vt`
130
+ :host{background-color:${Xe.ButtonFace};box-shadow:0 0 0 1px ${Xe.CanvasText};color:${Xe.ButtonText}}`));function lh(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class ch extends Re{constructor(){super(),this.noPaint=!1;const t={handleChange:this.noPaintChanged.bind(this)};v.getNotifier(this).subscribe(t,"fillColor"),v.getNotifier(this).subscribe(t,"baseLayerLuminance")}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(ah):this.$fastController.addStyles(ah)}}pc([nt({attribute:"no-paint",mode:"boolean"})],ch.prototype,"noPaint",void 0),pc([nt({attribute:"fill-color",converter:rh}),lh(tl)],ch.prototype,"fillColor",void 0),pc([nt({attribute:"accent-color",converter:rh,mode:"fromView"}),lh(Ba)],ch.prototype,"accentColor",void 0),pc([nt({attribute:"neutral-color",converter:rh,mode:"fromView"}),lh(za)],ch.prototype,"neutralColor",void 0),pc([nt({converter:ot}),lh(zr)],ch.prototype,"density",void 0),pc([nt({attribute:"design-unit",converter:ot}),lh(Mr)],ch.prototype,"designUnit",void 0),pc([nt({attribute:"direction"}),lh(Br)],ch.prototype,"direction",void 0),pc([nt({attribute:"base-height-multiplier",converter:ot}),lh(Ar)],ch.prototype,"baseHeightMultiplier",void 0),pc([nt({attribute:"base-horizontal-spacing-multiplier",converter:ot}),lh(Pr)],ch.prototype,"baseHorizontalSpacingMultiplier",void 0),pc([nt({attribute:"control-corner-radius",converter:ot}),lh(Hr)],ch.prototype,"controlCornerRadius",void 0),pc([nt({attribute:"stroke-width",converter:ot}),lh(jr)],ch.prototype,"strokeWidth",void 0),pc([nt({attribute:"focus-stroke-width",converter:ot}),lh(qr)],ch.prototype,"focusStrokeWidth",void 0),pc([nt({attribute:"disabled-opacity",converter:ot}),lh(Nr)],ch.prototype,"disabledOpacity",void 0),pc([nt({attribute:"type-ramp-minus-2-font-size"}),lh(Kr)],ch.prototype,"typeRampMinus2FontSize",void 0),pc([nt({attribute:"type-ramp-minus-2-line-height"}),lh(Xr)],ch.prototype,"typeRampMinus2LineHeight",void 0),pc([nt({attribute:"type-ramp-minus-1-font-size"}),lh(Gr)],ch.prototype,"typeRampMinus1FontSize",void 0),pc([nt({attribute:"type-ramp-minus-1-line-height"}),lh(Wr)],ch.prototype,"typeRampMinus1LineHeight",void 0),pc([nt({attribute:"type-ramp-base-font-size"}),lh(Ur)],ch.prototype,"typeRampBaseFontSize",void 0),pc([nt({attribute:"type-ramp-base-line-height"}),lh(_r)],ch.prototype,"typeRampBaseLineHeight",void 0),pc([nt({attribute:"type-ramp-plus-1-font-size"}),lh(Yr)],ch.prototype,"typeRampPlus1FontSize",void 0),pc([nt({attribute:"type-ramp-plus-1-line-height"}),lh(Qr)],ch.prototype,"typeRampPlus1LineHeight",void 0),pc([nt({attribute:"type-ramp-plus-2-font-size"}),lh(Zr)],ch.prototype,"typeRampPlus2FontSize",void 0),pc([nt({attribute:"type-ramp-plus-2-line-height"}),lh(Jr)],ch.prototype,"typeRampPlus2LineHeight",void 0),pc([nt({attribute:"type-ramp-plus-3-font-size"}),lh(ta)],ch.prototype,"typeRampPlus3FontSize",void 0),pc([nt({attribute:"type-ramp-plus-3-line-height"}),lh(ea)],ch.prototype,"typeRampPlus3LineHeight",void 0),pc([nt({attribute:"type-ramp-plus-4-font-size"}),lh(ia)],ch.prototype,"typeRampPlus4FontSize",void 0),pc([nt({attribute:"type-ramp-plus-4-line-height"}),lh(oa)],ch.prototype,"typeRampPlus4LineHeight",void 0),pc([nt({attribute:"type-ramp-plus-5-font-size"}),lh(sa)],ch.prototype,"typeRampPlus5FontSize",void 0),pc([nt({attribute:"type-ramp-plus-5-line-height"}),lh(na)],ch.prototype,"typeRampPlus5LineHeight",void 0),pc([nt({attribute:"type-ramp-plus-6-font-size"}),lh(ra)],ch.prototype,"typeRampPlus6FontSize",void 0),pc([nt({attribute:"type-ramp-plus-6-line-height"}),lh(aa)],ch.prototype,"typeRampPlus6LineHeight",void 0),pc([nt({attribute:"accent-fill-rest-delta",converter:ot}),lh(la)],ch.prototype,"accentFillRestDelta",void 0),pc([nt({attribute:"accent-fill-hover-delta",converter:ot}),lh(ca)],ch.prototype,"accentFillHoverDelta",void 0),pc([nt({attribute:"accent-fill-active-delta",converter:ot}),lh(ha)],ch.prototype,"accentFillActiveDelta",void 0),pc([nt({attribute:"accent-fill-focus-delta",converter:ot}),lh(da)],ch.prototype,"accentFillFocusDelta",void 0),pc([nt({attribute:"accent-foreground-rest-delta",converter:ot}),lh(ua)],ch.prototype,"accentForegroundRestDelta",void 0),pc([nt({attribute:"accent-foreground-hover-delta",converter:ot}),lh(pa)],ch.prototype,"accentForegroundHoverDelta",void 0),pc([nt({attribute:"accent-foreground-active-delta",converter:ot}),lh(ga)],ch.prototype,"accentForegroundActiveDelta",void 0),pc([nt({attribute:"accent-foreground-focus-delta",converter:ot}),lh(ma)],ch.prototype,"accentForegroundFocusDelta",void 0),pc([nt({attribute:"neutral-fill-rest-delta",converter:ot}),lh(fa)],ch.prototype,"neutralFillRestDelta",void 0),pc([nt({attribute:"neutral-fill-hover-delta",converter:ot}),lh(ba)],ch.prototype,"neutralFillHoverDelta",void 0),pc([nt({attribute:"neutral-fill-active-delta",converter:ot}),lh(va)],ch.prototype,"neutralFillActiveDelta",void 0),pc([nt({attribute:"neutral-fill-focus-delta",converter:ot}),lh(ya)],ch.prototype,"neutralFillFocusDelta",void 0),pc([nt({attribute:"neutral-fill-input-rest-delta",converter:ot}),lh(xa)],ch.prototype,"neutralFillInputRestDelta",void 0),pc([nt({attribute:"neutral-fill-input-hover-delta",converter:ot}),lh($a)],ch.prototype,"neutralFillInputHoverDelta",void 0),pc([nt({attribute:"neutral-fill-input-active-delta",converter:ot}),lh(wa)],ch.prototype,"neutralFillInputActiveDelta",void 0),pc([nt({attribute:"neutral-fill-input-focus-delta",converter:ot}),lh(ka)],ch.prototype,"neutralFillInputFocusDelta",void 0),pc([nt({attribute:"neutral-fill-stealth-rest-delta",converter:ot}),lh(Ca)],ch.prototype,"neutralFillStealthRestDelta",void 0),pc([nt({attribute:"neutral-fill-stealth-hover-delta",converter:ot}),lh(Ia)],ch.prototype,"neutralFillStealthHoverDelta",void 0),pc([nt({attribute:"neutral-fill-stealth-active-delta",converter:ot}),lh(Ta)],ch.prototype,"neutralFillStealthActiveDelta",void 0),pc([nt({attribute:"neutral-fill-stealth-focus-delta",converter:ot}),lh(Fa)],ch.prototype,"neutralFillStealthFocusDelta",void 0),pc([nt({attribute:"neutral-fill-strong-hover-delta",converter:ot}),lh(Da)],ch.prototype,"neutralFillStrongHoverDelta",void 0),pc([nt({attribute:"neutral-fill-strong-active-delta",converter:ot}),lh(Ea)],ch.prototype,"neutralFillStrongActiveDelta",void 0),pc([nt({attribute:"neutral-fill-strong-focus-delta",converter:ot}),lh(Oa)],ch.prototype,"neutralFillStrongFocusDelta",void 0),pc([nt({attribute:"base-layer-luminance",converter:ot}),lh(Vr)],ch.prototype,"baseLayerLuminance",void 0),pc([nt({attribute:"neutral-fill-layer-rest-delta",converter:ot}),lh(Ra)],ch.prototype,"neutralFillLayerRestDelta",void 0),pc([nt({attribute:"neutral-stroke-divider-rest-delta",converter:ot}),lh(Ha)],ch.prototype,"neutralStrokeDividerRestDelta",void 0),pc([nt({attribute:"neutral-stroke-rest-delta",converter:ot}),lh(La)],ch.prototype,"neutralStrokeRestDelta",void 0),pc([nt({attribute:"neutral-stroke-hover-delta",converter:ot}),lh(Aa)],ch.prototype,"neutralStrokeHoverDelta",void 0),pc([nt({attribute:"neutral-stroke-active-delta",converter:ot}),lh(Pa)],ch.prototype,"neutralStrokeActiveDelta",void 0),pc([nt({attribute:"neutral-stroke-focus-delta",converter:ot}),lh(Va)],ch.prototype,"neutralStrokeFocusDelta",void 0);const hh=(t,e)=>X`<slot></slot>`,dh=(t,e)=>vt`
131
+ ${Sn("block")}
132
+ `,uh=ch.compose({baseName:"design-system-provider",template:hh,styles:dh}),ph=(t,e)=>vt`
133
+ :host([hidden]){display:none}:host{--elevation:14;--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{${gc}
134
+ margin-top:auto;margin-bottom:auto;width:var(--dialog-width);height:var(--dialog-height);background-color:${tl};z-index:1;border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid transparent}`,gh=_o.compose({baseName:"dialog",template:(t,e)=>X`<div class="positioning-region" part="positioning-region">${Ot(t=>t.modal,X`<div class="overlay" part="overlay" role="presentation" @click="${t=>t.dismiss()}"></div>`)}<div role="dialog" tabindex="-1" class="control" part="control" aria-modal="${t=>t.modal}" aria-describedby="${t=>t.ariaDescribedby}" aria-labelledby="${t=>t.ariaLabelledby}" aria-label="${t=>t.ariaLabel}" ${Et("dialog")}><slot></slot></div></div>`,styles:ph}),mh=(t,e)=>vt`
135
+ .disclosure{transition:height 0.35s}.disclosure .invoker::-webkit-details-marker{display:none}.disclosure .invoker{list-style-type:none}:host([appearance="accent"]) .invoker{background:${ol};color:${cl};font-family:${Lr};font-size:${Ur};border-radius:calc(${Hr} * 1px);outline:none;cursor:pointer;margin:16px 0;padding:12px;max-width:max-content}:host([appearance="accent"]) .invoker:active{background:${nl};color:${dl}}:host([appearance="accent"]) .invoker:hover{background:${sl};color:${hl}}:host([appearance="lightweight"]) .invoker{background:transparent;color:${xl};border-bottom:calc(${jr} * 1px) solid ${xl};cursor:pointer;width:max-content;margin:16px 0}:host([appearance="lightweight"]) .invoker:active{border-bottom-color:${wl}}:host([appearance="lightweight"]) .invoker:hover{border-bottom-color:${$l}}.disclosure[open] .invoker ~ *{animation:fadeIn 0.5s ease-in-out}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}`;class fh extends Go{constructor(){super(...arguments),this.height=0,this.totalHeight=0}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="accent")}appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}onToggle(){super.onToggle(),this.details.style.setProperty("height",this.disclosureHeight+"px")}setup(){super.setup();const t=()=>this.details.getBoundingClientRect().height;this.show(),this.totalHeight=t(),this.hide(),this.height=t(),this.expanded&&this.show()}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}}pc([nt],fh.prototype,"appearance",void 0);const bh=fh.compose({baseName:"disclosure",baseClass:Go,template:(t,e)=>X`<details class="disclosure" ${Et("details")}><summary class="invoker" role="button" aria-controls="disclosure-content" aria-expanded="${t=>t.expanded}"><slot name="start"></slot><slot name="title">${t=>t.title}</slot><slot name="end"></slot></summary><div id="disclosure-content"><slot></slot></div></details>`,styles:mh}),vh=(t,e)=>vt`
136
+ ${Sn("block")} :host{box-sizing:content-box;height:0;margin:calc(${Mr} * 1px) 0;border-top:calc(${jr} * 1px) solid ${rc};border-left:none}:host([orientation="vertical"]){height:100%;margin:0 calc(${Mr} * 1px);border-top:none;border-left:calc(${jr} * 1px) solid ${rc}}`,yh=Ko.compose({baseName:"divider",template:(t,e)=>X`<template role="${t=>t.role}" aria-orientation="${t=>t.orientation}"></template>`,styles:vh}),xh=(t,e)=>vt`
137
+ ${Sn("inline-flex")} :host{width:calc(${cc} * 1px);height:calc(${cc} * 1px);justify-content:center;align-items:center;margin:0;position:relative;fill:currentcolor;color:${cl};background:transparent;outline:none;border:none;padding:0}:host::before{content:"";background:${ol};border:calc(${jr} * 1px) solid ${ol};border-radius:50%;position:absolute;top:0;right:0;left:0;bottom:0;transition:all 0.1s ease-in-out}.next,.previous{position:relative;width:16px;height:16px;display:grid}:host([disabled]){opacity:${Nr};cursor:${"not-allowed"};fill:currentcolor;color:${Jl};pointer-events:none}:host([disabled])::before,:host([disabled]:hover)::before,:host([disabled]:active)::before{background:${Pl};border-color:${ec}}:host(:hover){color:${hl}}:host(:hover)::before{background:${sl};border-color:${sl}}:host(:active){color:${dl}}:host(:active)::before{background:${nl};border-color:${nl}}:host(:${Dn}){outline:none}:host(:${Dn})::before{box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px) ${Wl} inset,0 0 0 calc((${qr} + ${jr}) * 1px) ${Xl} inset;border-color:${Wl}}:host::-moz-focus-inner{border:0}`.withBehaviors(Tn(vt`
138
+ :host{background:${Xe.Canvas}}:host .next,:host .previous{color:${Xe.ButtonText};fill:currentcolor}:host::before{background:${Xe.Canvas};border-color:${Xe.ButtonText}}:host(:hover)::before{forced-color-adjust:none;background:${Xe.Highlight};border-color:${Xe.ButtonText};opacity:1}:host(:hover) .next,:host(:hover) .previous{forced-color-adjust:none;color:${Xe.HighlightText};fill:currentcolor}:host([disabled]){opacity:1}:host([disabled])::before,:host([disabled]:hover)::before,:host([disabled]) .next,:host([disabled]) .previous{forced-color-adjust:none;background:${Xe.Canvas};border-color:${Xe.GrayText};color:${Xe.GrayText};fill:${Xe.GrayText}}:host(:${Dn})::before{forced-color-adjust:none;border-color:${Xe.Highlight};box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px) ${Xe.Highlight} inset}`)),$h=Qo.compose({baseName:"flipper",template:(t,e)=>X`<template role="button" aria-disabled="${t=>!!t.disabled||void 0}" tabindex="${t=>t.hiddenFromAT?-1:0}" class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Ot(t=>t.direction===Xo,X`<span part="next" class="next"><slot name="next">${e.next||""}</slot></span>`)} ${Ot(t=>t.direction===Yo,X`<span part="previous" class="previous"><slot name="previous">${e.previous||""}</slot></span>`)}</template>`,styles:xh,next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '}),wh=vt`
139
+ .scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,kh=vt`
140
+ .scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,Ch=vt`
141
+ .scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:"";display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}`.withBehaviors(new $c(wh,kh)),Ih=(t,e)=>vt`
142
+ ${Sn("block")} :host{--scroll-align:center;--scroll-item-spacing:5px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class Th extends Ss{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(Ch)}}const Fh=Th.compose({baseName:"horizontal-scroll",baseClass:Ss,template:(t,e)=>{var i,o;return X`<template class="horizontal-scroll" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Gt(0,e)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${t=>t.scrolled()}" ${Et("scrollContainer")}><div class="content-container" part="content-container" ${Et("content")}><slot ${Nt({property:"scrollItems",filter:zt()})}></slot></div></div>${Ot(t=>"mobile"!==t.view,X`<div class="scroll scroll-prev" part="scroll-prev" ${Et("previousFlipperContainer")}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${e.previousFlipper instanceof Function?e.previousFlipper(t,e):null!==(i=e.previousFlipper)&&void 0!==i?i:""}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${Et("nextFlipperContainer")}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${e.nextFlipper instanceof Function?e.nextFlipper(t,e):null!==(o=e.nextFlipper)&&void 0!==o?o:""}</slot></div></div>`)}</div>${_t(0,e)}</template>`},styles:Ih,nextFlipper:t=>X`<${t.tagFor(Qo)} @click="${t=>t.scrollToNext()}" aria-hidden="${t=>t.flippersHiddenFromAT}"></${t.tagFor(Qo)}>`,previousFlipper:t=>X`<${t.tagFor(Qo)} @click="${t=>t.scrollToPrevious()}" direction="previous" aria-hidden="${t=>t.flippersHiddenFromAT}"></${t.tagFor(Qo)}>`}),Sh=(t,e)=>vt`
143
+ ${Sn("inline-flex")} :host{align-items:center;font-family:${Lr};border-radius:calc(${Hr} * 1px);border:calc(${qr} * 1px) solid transparent;box-sizing:border-box;background:${Pl};color:${Jl};cursor:pointer;flex:0 0 auto;fill:currentcolor;font-size:${Ur};height:calc(${cc} * 1px);line-height:${_r};margin:0 calc((${Mr} - ${qr}) * 1px);outline:none;overflow:hidden;padding:0 1ch;user-select:none;white-space:nowrap}:host(:not([disabled]):not([aria-selected="true"]):hover){background:${Vl}}:host(:not([disabled]):not([aria-selected="true"]):active){background:${Hl}}:host([aria-selected="true"]){background:${ol};color:${cl}}:host(:not([disabled])[aria-selected="true"]:hover){background:${sl};color:${hl}}:host(:not([disabled])[aria-selected="true"]:active){background:${nl};color:${dl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted(svg){height:calc(${Mr} * 4px);width:calc(${Mr} * 4px)}::slotted([slot="end"]){margin-inline-start:1ch}::slotted([slot="start"]){margin-inline-end:1ch}:host([aria-checked="true"][aria-selected="false"]){border-color:${Wl}}:host([aria-checked="true"][aria-selected="true"]){border-color:${Wl};box-shadow:0 0 0 calc(${qr} * 2 * 1px) inset
144
+ ${Xl}}`.withBehaviors(Tn(vt`
145
+ :host{border-color:transparent;forced-color-adjust:none;color:${Xe.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${Xe.Highlight};color:${Xe.HighlightText}}:host([disabled]),:host([disabled][aria-selected="false"]:hover){background:${Xe.Canvas};color:${Xe.GrayText};fill:currentcolor;opacity:1}:host([aria-checked="true"][aria-selected="false"]){background:${Xe.ButtonFace};color:${Xe.ButtonText};border-color:${Xe.ButtonText}}:host([aria-checked="true"][aria-selected="true"]),:host([aria-checked="true"][aria-selected="true"]:hover){background:${Xe.Highlight};color:${Xe.HighlightText};border-color:${Xe.ButtonText}}`)),Dh=Ki.compose({baseName:"option",template:(t,e)=>X`<template aria-checked="${t=>t.ariaChecked}" aria-disabled="${t=>t.ariaDisabled}" aria-posinset="${t=>t.ariaPosInSet}" aria-selected="${t=>t.ariaSelected}" aria-setsize="${t=>t.ariaSetSize}" class="${t=>[t.checked&&"checked",t.selected&&"selected",t.disabled&&"disabled"].filter(Boolean).join(" ")}" role="option">${Gt(0,e)}<span class="content" part="content"><slot ${Nt("content")}></slot></span>${_t(0,e)}</template>`,styles:Sh});class Eh extends Zo{sizeChanged(t,e){super.sizeChanged(t,e),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);const t=""+this.size;this.computedStylesheet=vt`
146
+ :host{--size:${t}}`,this.$fastController.addStyles(this.computedStylesheet)}}const Oh=Eh.compose({baseName:"listbox",baseClass:Zo,template:(t,e)=>X`<template aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-multiselectable="${t=>t.ariaMultiSelectable}" class="listbox" role="listbox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"><slot ${Nt({filter:Zo.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></template>`,styles:Xc}),Rh=(t,e)=>vt`
147
+ ${Sn("grid")} :host{contain:layout;overflow:visible;font-family:${Lr};outline:none;box-sizing:border-box;height:calc(${cc} * 1px);grid-template-columns:minmax(42px,auto) 1fr minmax(42px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;margin:0 calc(${Mr} * 1px);white-space:nowrap;background:${Pl};color:${Jl};fill:currentcolor;cursor:pointer;font-size:${Ur};line-height:${_r};border-radius:calc(${Hr} * 1px);border:calc(${qr} * 1px) solid transparent}:host(:hover){position:relative;z-index:1}:host(.indent-0){grid-template-columns:auto 1fr minmax(42px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2){grid-template-columns:minmax(42px,auto) minmax(42px,auto) 1fr minmax(42px,auto) minmax(42px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${Dn}){border-color:${Wl};background:${zl};color:${Jl}}:host(:hover){background:${Vl};color:${Jl}}:host(:active){background:${Hl}}:host([aria-checked="true"]),:host(.expanded){background:${Il};color:${Jl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}:host([disabled]:hover){color:${Jl};fill:currentcolor;background:${Pl}}:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){fill:${Jl}}.expand-collapse-glyph{width:16px;height:16px;fill:currentcolor}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}::slotted(svg){width:16px;height:16px}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${Jl}}:host(.indent-0[aria-haspopup="menu"]){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-1[aria-haspopup="menu"]),:host(.indent-1[role="menuitemcheckbox"]),:host(.indent-1[role="menuitemradio"]){display:grid;grid-template-columns:minmax(42px,auto) auto 1fr minmax(42px,auto) minmax(42px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup="menu"])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup="menu"]) .expand-collapse-glyph-container,:host([role="menuitemcheckbox"]) .input-container,:host([role="menuitemradio"]) .input-container{display:grid;margin-inline-end:10px}:host([aria-haspopup="menu"]) .content,:host([role="menuitemcheckbox"]) .content,:host([role="menuitemradio"]) .content{grid-column-start:3}:host([aria-haspopup="menu"].indent-0) .content{grid-column-start:1}:host([aria-haspopup="menu"]) .end,:host([role="menuitemcheckbox"]) .end,:host([role="menuitemradio"]) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;width:20px;height:20px;box-sizing:border-box;outline:none;margin-inline-start:10px}:host .checkbox,:host .radio{border:calc(${jr} * 1px) solid ${Jl}}:host([aria-checked="true"]) .checkbox,:host([aria-checked="true"]) .radio{background:${ol};border-color:${ol}}:host .checkbox{border-radius:calc(${Hr} * 1px)}:host .radio{border-radius:999px}:host .checkbox-indicator,:host .radio-indicator,:host .expand-collapse-indicator,::slotted([slot="checkbox-indicator"]),::slotted([slot="radio-indicator"]),::slotted([slot="expand-collapse-indicator"]){display:none}::slotted([slot="end"]:not(svg)){margin-inline-end:10px;color:${Ql}}:host([aria-checked="true"]) .checkbox-indicator,:host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]){width:100%;height:100%;display:block;fill:${cl};pointer-events:none}:host([aria-checked="true"]) .radio-indicator{position:absolute;top:4px;left:4px;right:4px;bottom:4px;border-radius:999px;display:block;background:${cl};pointer-events:none}:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){display:block;pointer-events:none}`.withBehaviors(Tn(vt`
148
+ :host{border-color:transparent;color:${Xe.ButtonText};forced-color-adjust:none}:host(:hover){background:${Xe.Highlight};color:${Xe.HighlightText}}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg){fill:${Xe.HighlightText}}:host(.expanded){background:${Xe.Highlight};border-color:${Xe.Highlight};color:${Xe.HighlightText}}:host(:${Dn}){background:${Xe.Highlight};border-color:${Xe.ButtonText};box-shadow:0 0 0 calc(${qr} * 1px) inset ${Xe.HighlightText};color:${Xe.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg){background:${Xe.Canvas};color:${Xe.GrayText};fill:currentcolor;opacity:1}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${Xe.ButtonText};background:${Xe.HighlightText}}:host([checked="true"]) .checkbox,:host([checked="true"]) .radio{background:${Xe.HighlightText};border-color:${Xe.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${Dn}) .expanded-toggle,:host(:${Dn}) .checkbox,:host(:${Dn}) .radio,:host([checked="true"]:hover) .checkbox,:host([checked="true"]:hover) .radio,:host([checked="true"]:${Dn}) .checkbox,:host([checked="true"]:${Dn}) .radio{border-color:${Xe.HighlightText}}:host([aria-checked="true"]){background:${Xe.Highlight};color:${Xe.HighlightText}}:host([aria-checked="true"]) .checkbox-indicator,:host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]),:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){fill:${Xe.Highlight}}:host([aria-checked="true"]) .radio-indicator{background:${Xe.Highlight}}::slotted([slot="end"]:not(svg)){color:${Xe.ButtonText}}:host(:hover) ::slotted([slot="end"]:not(svg)),:host(:${Dn}) ::slotted([slot="end"]:not(svg)){color:${Xe.HighlightText}}`),new $c(vt`
149
+ .expand-collapse-glyph{transform:rotate(0deg)}`,vt`
150
+ .expand-collapse-glyph{transform:rotate(180deg)}`)),Lh=ps.compose({baseName:"menu-item",template:(t,e)=>X`<template role="${t=>t.role}" aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==cs?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>"indent-"+t.startColumnCount}">${Ot(t=>t.role===hs,X`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${e.checkboxIndicator||""}</slot></span></div>`)} ${Ot(t=>t.role===ds,X`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${e.radioIndicator||""}</slot></span></div>`)}</div>${Gt(0,e)}<span class="content" part="content"><slot></slot></span>${_t(0,e)} ${Ot(t=>t.hasSubmenu,X`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${e.expandCollapseGlyph||""}</slot></span></div>`)} ${Ot(t=>t.expanded,X`<${t.tagFor(si)} :anchorElement="${t=>t}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${t=>t.currentDirection}" @loaded="${t=>t.submenuLoaded()}" ${Et("submenuRegion")} part="submenu-region"><slot name="submenu"></slot></${t.tagFor(si)}>`)}</template>`,styles:Rh,checkboxIndicator:'\n <svg\n part="checkbox-indicator"\n class="checkbox-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n ',radioIndicator:'\n <span part="radio-indicator" class="radio-indicator"></span>\n '}),Ah=(t,e)=>vt`
151
+ ${Sn("block")} :host{--elevation:11;background:${tl};border:calc(${jr} * 1px) solid transparent;${gc}
152
+ margin:0;border-radius:calc(${Hr} * 1px);padding:calc(${Mr} * 1px) 0;max-width:368px;min-width:64px}:host([slot="submenu"]){width:max-content;margin:0 calc(${Mr} * 1px)}::slotted(hr){box-sizing:content-box;height:0;margin:0;border:none;border-top:calc(${jr} * 1px) solid ${rc}}`.withBehaviors(Tn(vt`
153
+ :host{background:${Xe.Canvas};border-color:${Xe.CanvasText}}`));class Ph extends gs{connectedCallback(){super.connectedCallback(),tl.setValueFor(this,_a)}}const Vh=Ph.compose({baseName:"menu",template:(t,e)=>X`<template slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(t,e)=>t.handleMenuKeyDown(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}"><slot ${Nt("items")}></slot></template>`,styles:Ah}),Hh=(t,e)=>vt`
154
+ ${Sn("inline-block")} :host{font-family:${Lr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Jl};background:${El};border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ol};height:calc(${cc} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Mr} * 2px + 1px);font-size:${Ur};line-height:${_r}}.control:hover,.control:${Dn},.control:disabled,.control:active{outline:none}.controls{opacity:0}.label{display:block;color:${Jl};cursor:pointer;font-size:${Ur};line-height:${_r};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.control,.controls,.end{align-self:center}.start,.end{margin:auto;fill:currentcolor}.step-up-glyph,.step-down-glyph{display:block;padding:4px 10px;cursor:pointer}.step-up-glyph:before,.step-down-glyph:before{content:'';display:block;border:solid transparent 6px}.step-up-glyph:before{border-bottom-color:${Jl}}.step-down-glyph:before{border-top-color:${Jl}}::slotted(svg){width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${Ol};border-color:${sl}}:host(:active:not([disabled])) .root{background:${Ol};border-color:${nl}}:host(:focus-within:not([disabled])) .root{border-color:${Wl};box-shadow:0 0 0 calc(${qr} * 1px) ${Wl} inset}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}:host([appearance="filled"]) .root{background:${Il}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Tl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${ec}}`.withBehaviors(Tn(vt`
155
+ .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${Xe.Field};border-color:${Xe.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${Xe.Field};border-color:${Xe.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${Xe.GrayText};background:${Xe.Field}}:host(:focus-within:enabled) .root{border-color:${Xe.Highlight};box-shadow:0 0 0 1px ${Xe.Highlight} inset}input::placeholder{color:${Xe.GrayText}}`));class zh extends ws{constructor(){super(...arguments),this.appearance="outline"}}pc([nt],zh.prototype,"appearance",void 0);const Mh=zh.compose({baseName:"number-field",baseClass:ws,styles:Hh,template:(t,e)=>X`<template class="${t=>t.readOnly?"readonly":""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label><div class="root" part="root">${Gt(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @blur="${(t,e)=>t.handleBlur()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" type="text" inputmode="numeric" min="${t=>t.min}" max="${t=>t.max}" step="${t=>t.step}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Et("control")} />${Ot(t=>!t.hideStep&&!t.readOnly&&!t.disabled,X`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${t=>t.stepUp()}"><slot name="step-up-glyph">${e.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${t=>t.stepDown()}"><slot name="step-down-glyph">${e.stepDownGlyph||""}</slot></div></div>`)} ${_t(0,e)}</div></template>`,shadowOptions:{delegatesFocus:!0},stepDownGlyph:'\n <span class="step-down-glyph" part="step-down-glyph"></span>\n ',stepUpGlyph:'\n <span class="step-up-glyph" part="step-up-glyph"></span>\n '}),Bh=(t,e)=>vt`
156
+ .region{z-index:1000;overflow:hidden;display:flex;font-family:${Lr};font-size:${Ur}}.loaded{opacity:1;pointer-events:none}.loading-display,.no-options-display{background:${tl};width:100%;min-height:calc(${cc} * 1px);display:flex;flex-direction:column;align-items:center;justify-items:center;padding:calc(${Mr} * 1px)}.loading-progress{width:42px;height:42px}.bottom{flex-direction:column}.top{flex-direction:column-reverse}`,Nh=(t,e)=>vt`
157
+ :host{background:${tl};--elevation:11;z-index:1000;display:flex;width:100%;max-height:100%;min-height:58px;box-sizing:border-box;flex-direction:column;overflow-y:auto;overflow-x:hidden;pointer-events:auto;border-radius:calc(${Hr} * 1px);padding:calc(${Mr} * 1px) 0;border:calc(${jr} * 1px) solid transparent;${gc}}.suggestions-available-alert{height:0;opacity:0;overflow:hidden}`.withBehaviors(Tn(vt`
158
+ :host{background:${Xe.Canvas};border-color:${Xe.CanvasText}}`)),jh=(t,e)=>vt`
159
+ :host{display:flex;align-items:center;justify-items:center;font-family:${Lr};border-radius:calc(${Hr} * 1px);border:calc(${qr} * 1px) solid transparent;box-sizing:border-box;background:${Pl};color:${Jl};cursor:pointer;fill:currentcolor;font-size:${Ur};min-height:calc(${cc} * 1px);line-height:${_r};margin:0 calc(${Mr} * 1px);outline:none;overflow:hidden;padding:0 calc(${Mr} * 2.25px);user-select:none;white-space:nowrap}:host(:${Dn}[role="listitem"]){border-color:${Wl};background:${zl}}:host(:hover){background:${Vl}}:host(:active){background:${Hl}}:host([aria-selected="true"]){background:${ol};color:${cl}}:host([aria-selected="true"]:hover){background:${sl};color:${hl}}:host([aria-selected="true"]:active){background:${nl};color:${dl}}`.withBehaviors(Tn(vt`
160
+ :host{border-color:transparent;forced-color-adjust:none;color:${Xe.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${Xe.Highlight};color:${Xe.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected="true"]):hover){background:${Xe.Canvas};color:${Xe.GrayText};fill:currentcolor;opacity:1}`)),qh=(t,e)=>vt`
161
+ :host{display:flex;align-items:center;justify-items:center;font-family:${Lr};border-radius:calc(${Hr} * 1px);border:calc(${qr} * 1px) solid transparent;box-sizing:border-box;background:${Pl};color:${Jl};cursor:pointer;fill:currentcolor;font-size:${Ur};height:calc(${cc} * 1px);line-height:${_r};outline:none;overflow:hidden;padding:0 calc(${Mr} * 2.25px);user-select:none;white-space:nowrap}:host(:hover){background:${Vl}}:host(:active){background:${Hl}}:host(:${Dn}){background:${zl};border-color:${Wl}}:host([aria-selected="true"]){background:${ol};color:${dl}}`.withBehaviors(Tn(vt`
162
+ :host{border-color:transparent;forced-color-adjust:none;color:${Xe.ButtonText};fill:currentcolor}:host(:not([aria-selected="true"]):hover),:host([aria-selected="true"]){background:${Xe.Highlight};color:${Xe.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected="true"]):hover){background:${Xe.Canvas};color:${Xe.GrayText};fill:currentcolor;opacity:1}`)),Uh=ls.compose({baseName:"picker",template:(t,e)=>{const i=t.tagFor(si),o=t.tagFor(Jo),s=t.tagFor(is),n=t.tagFor(is);return X`<template :selectedListTag="${()=>s}" :menuTag="${()=>o}" :defaultListItemTemplate="${function(t){const e=t.tagFor(ss);return X`<${e} value="${t=>t}" :contentsTemplate="${(t,e)=>e.parent.listItemContentsTemplate}"></${e}>`}(t)}" :defaultMenuOptionTemplate="${function(t){const e=t.tagFor(es);return X`<${e} value="${t=>t}" :contentsTemplate="${(t,e)=>e.parent.menuOptionContentsTemplate}"></${e}>`}(t)}" @focusin="${(t,e)=>t.handleFocusIn(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @pickeriteminvoked="${(t,e)=>t.handleItemInvoke(e.event)}" @pickeroptioninvoked="${(t,e)=>t.handleOptionInvoke(e.event)}"><slot name="list-region"></slot>${Ot(t=>t.flyoutOpen,X`<${i} class="region" part="region" auto-update-mode="${t=>t.menuConfig.autoUpdateMode}" fixed-placement="${t=>t.menuConfig.fixedPlacement}" vertical-positioning-mode="${t=>t.menuConfig.verticalPositioningMode}" vertical-default-position="${t=>t.menuConfig.verticalDefaultPosition}" vertical-scaling="${t=>t.menuConfig.verticalScaling}" vertical-inset="${t=>t.menuConfig.verticalInset}" vertical-viewport-lock="${t=>t.menuConfig.verticalViewportLock}" horizontal-positioning-mode="${t=>t.menuConfig.horizontalPositioningMode}" horizontal-default-position="${t=>t.menuConfig.horizontalDefaultPosition}" horizontal-scaling="${t=>t.menuConfig.horizontalScaling}" horizontal-inset="${t=>t.menuConfig.horizontalInset}" horizontal-viewport-lock="${t=>t.menuConfig.horizontalViewportLock}" @loaded="${(t,e)=>t.handleRegionLoaded(e.event)}" ${Et("region")}>${Ot(t=>!t.showNoOptions&&!t.showLoading,X`<slot name="menu-region"></slot>`)} ${Ot(t=>t.showNoOptions&&!t.showLoading,X`<div class="no-options-display" part="no-options-display"><slot name="no-options-region">${t=>t.noSuggestionsText}</slot></div>`)} ${Ot(t=>t.showLoading,X`<div class="loading-display" part="loading-display"><slot name="loading-region"><${n} part="loading-progress" class="loading-progress slot="loading-region"></${n}>${t=>t.loadingText}</slot></div>`)}</${i}>`)}</template>`},styles:Bh,shadowOptions:{}});class _h extends Jo{connectedCallback(){tl.setValueFor(this,_a),super.connectedCallback()}}const Gh=_h.compose({baseName:"picker-menu",baseClass:Jo,template:(t,e)=>X`<template role="list" slot="menu-region"><div class="options-display" part="options-display"><div class="header-region" part="header-region"><slot name="header-region" ${Nt("headerElements")}></slot></div><slot ${Nt("menuElements")}></slot><div class="footer-region" part="footer-region"><slot name="footer-region" ${Nt("footerElements")}></slot></div><div role="alert" aria-live="polite" part="suggestions-available-alert" class="suggestions-available-alert">${t=>t.suggestionsAvailableText}</div></div></template>`,styles:Nh}),Wh=es.compose({baseName:"picker-menu-option",template:(t,e)=>X`<template role="listitem" tabindex="-1" @click="${(t,e)=>t.handleClick(e.event)}"><slot></slot></template>`,styles:jh}),Kh=is.compose({baseName:"picker-list",template:(t,e)=>X`<template slot="list-region" role="list" class="picker-list"><slot></slot><slot name="input-region"></slot></template>`,styles:(t,e)=>vt`
163
+ :host{display:flex;flex-direction:row;column-gap:calc(${Mr} * 1px);row-gap:calc(${Mr} * 1px);flex-wrap:wrap}::slotted([role="combobox"]){min-width:260px;width:auto;box-sizing:border-box;color:${Jl};background:${El};border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ol};height:calc(${cc} * 1px);font-family:${Lr};outline:none;user-select:none;font-size:${Ur};line-height:${_r};padding:0 calc(${Mr} * 2px + 1px)}::slotted([role="combobox"]:active){{background:${Ol};border-color:${nl}}::slotted([role="combobox"]:focus-within){border-color:${Wl};box-shadow:0 0 0 1px ${Wl} inset}`.withBehaviors(Tn(vt`
164
+ ::slotted([role="combobox"]:active){background:${Xe.Field};border-color:${Xe.Highlight}}::slotted([role="combobox"]:focus-within){border-color:${Xe.Highlight};box-shadow:0 0 0 1px ${Xe.Highlight} inset}::slotted(input:placeholder){color:${Xe.GrayText}}`))}),Xh=ss.compose({baseName:"picker-list-item",template:(t,e)=>X`<template role="listitem" tabindex="0" @click="${(t,e)=>t.handleClick(e.event)}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}"><slot></slot></template>`,styles:qh}),Yh=(t,e)=>vt`
165
+ ${Sn("flex")} :host{align-items:center;outline:none;height:calc(${cc} * 1px);width:calc(${cc} * 1px);margin:calc(${cc} * 1px) 0}.progress{height:100%;width:100%}.background{stroke:${Il};fill:none;stroke-width:2px}.determinate{stroke:${xl};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${xl};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host([paused]) .indeterminate-indicator-1{animation-play-state:paused;stroke:${Il}}:host([paused]) .determinate{stroke:${Ql}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`.withBehaviors(Tn(vt`
166
+ .indeterminate-indicator-1,.determinate{stroke:${Xe.FieldText}}.background{stroke:${Xe.Field}}:host([paused]) .indeterminate-indicator-1{stroke:${Xe.Field}}:host([paused]) .determinate{stroke:${Xe.GrayText}}`)),Qh=ks.compose({baseName:"progress-ring",template:(t,e)=>X`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Ot(t=>"number"==typeof t.value,X`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${t=>44*t.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${Ot(t=>"number"!=typeof t.value,X`<slot name="indeterminate" slot="indeterminate">${e.indeterminateIndicator||""}</slot>`)}</template>`,styles:Yh,indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '}),Zh=(t,e)=>vt`
167
+ ${Sn("flex")} :host{align-items:center;outline:none;height:calc(${Mr} * 1px);margin:calc(${Mr} * 1px) 0}.progress{background-color:${Il};border-radius:calc(${Mr} * 1px);width:100%;height:100%;display:flex;align-items:center;position:relative}.determinate{background-color:${xl};border-radius:calc(${Mr} * 1px);height:100%;transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:100%;border-radius:calc(${Mr} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${xl};border-radius:calc(${Mr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${xl};border-radius:calc(${Mr} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host([paused]) .indeterminate-indicator-1,:host([paused]) .indeterminate-indicator-2{animation-play-state:paused;background-color:${Il}}:host([paused]) .determinate{background-color:${Ql}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(Tn(vt`
168
+ .progress{forced-color-adjust:none;background-color:${Xe.Field};box-shadow:0 0 0 1px inset ${Xe.FieldText}}.determinate,.indeterminate-indicator-1,.indeterminate-indicator-2{forced-color-adjust:none;background-color:${Xe.FieldText}}:host([paused]) .determinate,:host([paused]) .indeterminate-indicator-1,:host([paused]) .indeterminate-indicator-2{background-color:${Xe.GrayText}}`)),Jh=ks.compose({baseName:"progress",template:(t,e)=>X`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Ot(t=>"number"==typeof t.value,X`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${t=>t.percentComplete}%"></div></div>`)} ${Ot(t=>"number"!=typeof t.value,X`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${e.indeterminateIndicator1||""} ${e.indeterminateIndicator2||""}</slot></div>`)}</template>`,styles:Zh,indeterminateIndicator1:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n ',indeterminateIndicator2:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n '}),td=(t,e)=>vt`
169
+ ${Sn("flex")} :host{align-items:flex-start;margin:calc(${Mr} * 1px) 0;flex-direction:column}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation="vertical"]) .positioning-region{flex-direction:column}:host([orientation="horizontal"]) .positioning-region{flex-direction:row}`,ed=Cs.compose({baseName:"radio-group",template:(t,e)=>X`<template role="radiogroup" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @focusout="${(t,e)=>t.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${t=>t.orientation===He?"horizontal":"vertical"}" part="positioning-region"><slot ${Nt({property:"slottedRadioButtons",filter:zt("[role=radio]")})}></slot></div></template>`,styles:td}),id=(t,e)=>vt`
170
+ ${Sn("inline-flex")} :host{--input-size:calc((${cc} / 2) + ${Mr});align-items:center;outline:none;margin:calc(${Mr} * 1px) 0;user-select:none;position:relative;flex-direction:row;transition:all 0.2s ease-in-out}.control{position:relative;width:calc((${cc} / 2 + ${Mr}) * 1px);height:calc((${cc} / 2 + ${Mr}) * 1px);box-sizing:border-box;border-radius:999px;border:calc(${jr} * 1px) solid ${ec};background:${El};outline:none;cursor:pointer}.label{font-family:${Lr};color:${Jl};padding-inline-start:calc(${Mr} * 2px + 2px);margin-inline-end:calc(${Mr} * 2px + 2px);cursor:pointer;font-size:${Ur};line-height:${_r}}.label__hidden{display:none;visibility:hidden}.control,.checked-indicator{flex-shrink:0}.checked-indicator{position:absolute;top:5px;left:5px;right:5px;bottom:5px;border-radius:999px;display:inline-block;background:${cl};fill:${cl};opacity:0;pointer-events:none}:host(:not([disabled])) .control:hover{background:${Ol};border-color:${ic}}:host(:not([disabled])) .control:active{background:${Rl};border-color:${oc}}:host(:${Dn}) .control{box-shadow:0 0 0 2px ${tl},0 0 0 4px ${Wl}}:host([aria-checked="true"]) .control{background:${ol};border:calc(${jr} * 1px) solid ${ol}}:host([aria-checked="true"]:not([disabled])) .control:hover{background:${sl};border:calc(${jr} * 1px) solid ${sl}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{background:${hl};fill:${hl}}:host([aria-checked="true"]:not([disabled])) .control:active{background:${nl};border:calc(${jr} * 1px) solid ${nl}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background:${dl};fill:${dl}}:host([aria-checked="true"]:${Dn}:not([disabled])) .control{box-shadow:0 0 0 2px ${tl},0 0 0 4px ${Wl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([aria-checked="true"]) .checked-indicator{opacity:1}:host([disabled]){opacity:${Nr}}`.withBehaviors(Tn(vt`
171
+ .control,:host([aria-checked="true"]:not([disabled])) .control{forced-color-adjust:none;border-color:${Xe.FieldText};background:${Xe.Field}}:host(:not([disabled])) .control:hover{border-color:${Xe.Highlight};background:${Xe.Field}}:host([aria-checked="true"]:not([disabled])) .control:hover,:host([aria-checked="true"]:not([disabled])) .control:active{border-color:${Xe.Highlight};background:${Xe.Highlight}}:host([aria-checked="true"]) .checked-indicator{background:${Xe.Highlight};fill:${Xe.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator,:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background:${Xe.HighlightText};fill:${Xe.HighlightText}}:host(:${Dn}) .control{border-color:${Xe.Highlight};box-shadow:0 0 0 2px ${Xe.Field},0 0 0 4px ${Xe.FieldText}}:host([aria-checked="true"]:${Dn}:not([disabled])) .control{border-color:${Xe.Highlight};box-shadow:0 0 0 2px ${Xe.Field},0 0 0 4px ${Xe.FieldText}}:host([disabled]){forced-color-adjust:none;opacity:1}:host([disabled]) .label{color:${Xe.GrayText}}:host([disabled]) .control,:host([aria-checked="true"][disabled]) .control:hover,.control:active{background:${Xe.Field};border-color:${Xe.GrayText}}:host([disabled]) .checked-indicator,:host([aria-checked="true"][disabled]) .control:hover .checked-indicator{fill:${Xe.GrayText};background:${Xe.GrayText}}`)),od=Fs.compose({baseName:"radio",template:(t,e)=>X`<template role="radio" class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label></template>`,styles:id,checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '}),sd=To.create("clear-button-hover").withDefault(t=>{const e=Al.getValueFor(t),i=Cl.getValueFor(t);return e.evaluate(t,i.evaluate(t).hover).hover}),nd=To.create("clear-button-active").withDefault(t=>{const e=Al.getValueFor(t),i=Cl.getValueFor(t);return e.evaluate(t,i.evaluate(t).hover).active}),rd=(t,e)=>vt`
172
+ ${Sn("inline-block")} :host{font-family:${Lr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Jl};background:${El};border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ol};height:calc(${cc} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Mr} * 2px + 1px);font-size:${Ur};line-height:${_r}}.control::-webkit-search-cancel-button{-webkit-appearance:none}.control:hover,.control:${Dn},.control:disabled,.control:active{outline:none}.clear-button{height:calc(100% - 2px);opacity:0;margin:1px;background:transparent;color:${Jl};fill:currentcolor;border:none;border-radius:calc(${Hr} * 1px);min-width:calc(${cc} * 1px);font-size:${Ur};line-height:${_r};outline:none;font-family:${Lr};padding:0 calc((10 + (${Mr} * 2 * ${zr})) * 1px)}.clear-button:hover{background:${Vl}}.clear-button:active{background:${Hl}}:host([appearance="filled"]) .clear-button:hover{background:${sd}}:host([appearance="filled"]) .clear-button:active{background:${nd}}.input-wrapper{display:flex;position:relative;width:100%;height:100%}.label{display:block;color:${Jl};cursor:pointer;font-size:${Ur};line-height:${_r};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.input-wrapper,.start,.end{align-self:center}.start,.end{display:flex;margin:1px;fill:currentcolor}::slotted([slot="end"]){height:100%}.end{margin-inline-end:1px;height:calc(100% - 2px)}::slotted(svg){width:16px;height:16px;margin-inline-end:11px;margin-inline-start:11px;margin-top:auto;margin-bottom:auto}:host(:hover:not([disabled])) .root{background:${Ol};border-color:${sl}}:host(:active:not([disabled])) .root{background:${Ol};border-color:${nl}}:host(:focus-within:not([disabled])) .root{border-color:${Wl};box-shadow:0 0 0 1px ${Wl} inset}.clear-button__hidden{opacity:0}:host(:hover:not([disabled],[readOnly])) .clear-button,:host(:active:not([disabled],[readOnly])) .clear-button,:host(:focus-within:not([disabled],[readOnly])) .clear-button{opacity:1}:host(:hover:not([disabled],[readOnly])) .clear-button__hidden,:host(:active:not([disabled],[readOnly])) .clear-button__hidden,:host(:focus-within:not([disabled],[readOnly])) .clear-button__hidden{opacity:0}:host([appearance="filled"]) .root{background:${tl}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Tl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${ec}}`.withBehaviors(Tn(vt`
173
+ .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${Xe.Field};border-color:${Xe.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${Xe.Field};border-color:${Xe.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${Xe.GrayText};background:${Xe.Field}}:host(:focus-within:enabled) .root{border-color:${Xe.Highlight};box-shadow:0 0 0 1px ${Xe.Highlight} inset}input::placeholder{color:${Xe.GrayText}}`));class ad extends Rs{constructor(){super(...arguments),this.appearance="outline"}}pc([nt],ad.prototype,"appearance",void 0);const ld=ad.compose({baseName:"search",baseClass:Rs,template:(t,e)=>X`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt({property:"defaultSlottedNodes",filter:Ds})}></slot></label><div class="root" part="root" ${Et("root")}>${Gt(0,e)}<div class="input-wrapper" part="input-wrapper"><input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="search" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Et("control")} /><slot name="close-button"><button class="clear-button ${t=>t.value?"":"clear-button__hidden"}" part="clear-button" tabindex="-1" @click=${t=>t.handleClearInput()}><slot name="close-glyph"><svg width="9" height="9" viewBox="0 0 9 9" xmlns="http://www.w3.org/2000/svg"><path d="M0.146447 0.146447C0.338683 -0.0478972 0.645911 -0.0270359 0.853553 0.146447L4.5 3.793L8.14645 0.146447C8.34171 -0.0488155 8.65829 -0.0488155 8.85355 0.146447C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L5.207 4.5L8.85355 8.14645C9.05934 8.35223 9.03129 8.67582 8.85355 8.85355C8.67582 9.03129 8.35409 9.02703 8.14645 8.85355L4.5 5.207L0.853553 8.85355C0.658291 9.04882 0.341709 9.04882 0.146447 8.85355C-0.0488155 8.65829 -0.0488155 8.34171 0.146447 8.14645L3.793 4.5L0.146447 0.853553C-0.0268697 0.680237 -0.0457894 0.34079 0.146447 0.146447Z" /></svg></slot></button></slot></div>${_t(0,e)}</div></template>`,styles:rd,shadowOptions:{delegatesFocus:!0}}),cd=rd;class hd extends Vs{constructor(){super(...arguments),this.listboxScrollWidth=""}connectedCallback(){super.connectedCallback(),this.listbox&&tl.setValueFor(this.listbox,_a)}get listboxMaxHeight(){return Math.floor(this.maxHeight/ac.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var t;return""+(null!==(t=this.size)&&void 0!==t?t:this.multiple?4:0)}multipleChanged(t,e){super.multipleChanged(t,e),this.updateComputedStylesheet()}maxHeightChanged(t,e){this.collapsible&&this.updateComputedStylesheet()}setPositioning(){super.setPositioning(),this.updateComputedStylesheet()}sizeChanged(t,e){super.sizeChanged(t,e),this.updateComputedStylesheet(),this.collapsible?requestAnimationFrame(()=>{this.listbox.style.setProperty("display","flex"),this.listbox.style.setProperty("overflow","visible"),this.listbox.style.setProperty("visibility","hidden"),this.listbox.style.setProperty("width","auto"),this.listbox.hidden=!1,this.listboxScrollWidth=""+this.listbox.scrollWidth,this.listbox.hidden=!0,this.listbox.style.removeProperty("display"),this.listbox.style.removeProperty("overflow"),this.listbox.style.removeProperty("visibility"),this.listbox.style.removeProperty("width")}):this.listboxScrollWidth=""}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet),this.computedStylesheet=vt`
174
+ :host{--listbox-max-height:${this.listboxMaxHeight};--listbox-scroll-width:${this.listboxScrollWidth};--size:${this.selectSize}}`,this.$fastController.addStyles(this.computedStylesheet)}}pc([y],hd.prototype,"listboxScrollWidth",void 0);const dd=hd.compose({baseName:"select",baseClass:Vs,template:(t,e)=>X`<template class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(Boolean).join(" ")}" aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="${t=>t.collapsible?"listbox":null}" aria-multiselectable="${t=>t.ariaMultiSelectable}" ?open="${t=>t.open}" role="combobox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}">${Ot(t=>t.collapsible,X`<div class="control" part="control" ?disabled="${t=>t.disabled}" ${Et("control")}>${Gt(0,e)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${t=>t.displayValue}</slot></div><div aria-hidden="true" class="indicator" part="indicator"><slot name="indicator">${e.indicator||""}</slot></div></slot>${_t(0,e)}</div>`)}<div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!!t.collapsible&&!t.open}" ${Et("listbox")}><slot ${Nt({filter:Yi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:Yc,indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '}),ud=(t,e)=>vt`
175
+ ${Sn("block")} :host{--skeleton-fill-default:#e1dfdd;overflow:hidden;width:100%;position:relative;background-color:var(--skeleton-fill,var(--skeleton-fill-default));--skeleton-animation-gradient-default:linear-gradient(
176
+ 270deg,var(--skeleton-fill,var(--skeleton-fill-default)) 0%,#f3f2f1 51.13%,var(--skeleton-fill,var(--skeleton-fill-default)) 100%
177
+ );--skeleton-animation-timing-default:ease-in-out}:host([shape="rect"]){border-radius:calc(${Hr} * 1px)}:host([shape="circle"]){border-radius:100%;overflow:hidden}object{position:absolute;width:100%;height:auto;z-index:2}object img{width:100%;height:auto}${Sn("block")} span.shimmer{position:absolute;width:100%;height:100%;background-image:var(
178
+ --skeleton-animation-gradient,var(--skeleton-animation-gradient-default)
179
+ );background-size:0px 0px / 90% 100%;background-repeat:no-repeat;background-color:var(--skeleton-animation-fill,${Il});animation:shimmer 2s infinite;animation-timing-function:var(
180
+ --skeleton-animation-timing,var(--skeleton-timing-default)
181
+ );animation-direction:normal;z-index:1}::slotted(svg){z-index:2}::slotted(.pattern){width:100%;height:100%}@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`.withBehaviors(Tn(vt`
182
+ :host{forced-color-adjust:none;background-color:${Xe.ButtonFace};box-shadow:0 0 0 1px ${Xe.ButtonText}}${Sn("block")} span.shimmer{display:none}`)),pd=zs.compose({baseName:"skeleton",template:(t,e)=>X`<template class="${t=>"circle"===t.shape?"circle":"rect"}" pattern="${t=>t.pattern}" ?shimmer="${t=>t.shimmer}">${Ot(t=>!0===t.shimmer,X`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${t=>t.pattern}" role="presentation"><img class="pattern" src="${t=>t.pattern}" /></object><slot></slot></template>`,styles:ud}),gd=vt`
183
+ :host{align-self:start;grid-row:2;margin-top:-2px;height:calc((${cc} / 2 + ${Mr}) * 1px);width:auto}.container{grid-template-rows:auto auto;grid-template-columns:0}.label{margin:2px 0}`,md=vt`
184
+ :host{justify-self:start;grid-column:2;margin-left:2px;height:auto;width:calc((${cc} / 2 + ${Mr}) * 1px)}.container{grid-template-columns:auto auto;grid-template-rows:0;min-width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px)}.mark{transform:rotate(90deg);align-self:center}.label{margin-left:calc((${Mr} / 2) * 3px);align-self:center}`,fd=(t,e)=>vt`
185
+ ${Sn("block")} :host{font-family:${Lr};color:${Jl};fill:currentcolor}.root{position:absolute;display:grid}.container{display:grid;justify-self:center}.label{justify-self:center;align-self:center;white-space:nowrap;max-width:30px}.mark{width:calc((${Mr} / 4) * 1px);height:calc(${cc} * 0.25 * 1px);background:${ec};justify-self:center}:host(.disabled){opacity:${Nr}}`.withBehaviors(Tn(vt`
186
+ .mark{forced-color-adjust:none;background:${Xe.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${Xe.GrayText}}:host(.disabled) .mark{background:${Xe.GrayText}}`));class bd extends Ns{sliderOrientationChanged(){this.sliderOrientation===He?(this.$fastController.addStyles(gd),this.$fastController.removeStyles(md)):(this.$fastController.addStyles(md),this.$fastController.removeStyles(gd))}}const vd=bd.compose({baseName:"slider-label",baseClass:Ns,template:(t,e)=>X`<template aria-disabled="${t=>t.disabled}" class="${t=>t.sliderOrientation||He} ${t=>t.disabled?"disabled":""}"><div ${Et("root")} part="root" class="root" style="${t=>t.positionStyle}"><div class="container">${Ot(t=>!t.hideMark,X`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`,styles:fd}),yd=vt`
187
+ .track-start{left:0}`,xd=vt`
188
+ .track-start{right:0}`,$d=(t,e)=>vt`
189
+ :host([hidden]){display:none}${Sn("inline-grid")} :host{--thumb-size:calc(${cc} * 0.5 - ${Mr});--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${Mr} / 2) * -1);--track-width:${Mr};--fast-slider-height:calc(var(--thumb-size) * 10);align-items:center;width:100%;margin:calc(${Mr} * 1px) 0;user-select:none;box-sizing:border-box;border-radius:calc(${Hr} * 1px);outline:none;cursor:pointer}:host([orientation="horizontal"]) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host([orientation="vertical"]) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${Dn}) .thumb-cursor{box-shadow:0 0 0 2px ${tl},0 0 0 4px ${Wl}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease;color:${Jl};fill:currentcolor}.thumb-cursor{border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:${Jl};border-radius:calc(${Hr} * 1px)}.thumb-cursor:hover{background:${Jl};border-color:${ic}}.thumb-cursor:active{background:${Jl}}.track-start{background:${xl};position:absolute;height:100%;left:0;border-radius:calc(${Hr} * 1px)}:host([orientation="horizontal"]) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host([orientation="vertical"]) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host([orientation="horizontal"]){min-width:calc(var(--thumb-size) * 1px)}:host([orientation="horizontal"]) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host([orientation="vertical"]) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${ec};position:absolute;border-radius:calc(${Hr} * 1px)}:host([orientation="vertical"]){height:calc(var(--fast-slider-height) * 1px);min-height:calc(var(--thumb-size) * 1px);min-width:calc(${Mr} * 20px)}:host([orientation="vertical"]) .track-start{height:auto;width:100%;top:0}:host([disabled]),:host([readonly]){cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}`.withBehaviors(new $c(yd,xd),Tn(vt`
190
+ .thumb-cursor{forced-color-adjust:none;border-color:${Xe.FieldText};background:${Xe.FieldText}}.thumb-cursor:hover,.thumb-cursor:active{background:${Xe.Highlight}}.track{forced-color-adjust:none;background:${Xe.FieldText}}:host(:${Dn}) .thumb-cursor{border-color:${Xe.Highlight}}:host([disabled]){opacity:1}:host([disabled]) .track,:host([disabled]) .thumb-cursor{forced-color-adjust:none;background:${Xe.GrayText}}:host(:${Dn}) .thumb-cursor{background:${Xe.Highlight};border-color:${Xe.Highlight};box-shadow:0 0 0 2px ${Xe.Field},0 0 0 4px ${Xe.FieldText}}`)),wd=_s.compose({baseName:"slider",template:(t,e)=>X`<template role="slider" class="${t=>t.readOnly?"readonly":""} ${t=>t.orientation||He}" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>!!t.disabled||void 0}" aria-readonly="${t=>!!t.readOnly||void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${Et("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${t=>t.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${Et("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}"><slot name="thumb">${e.thumb||""}</slot></div></div></template>`,styles:$d,thumb:'\n <div class="thumb-cursor"></div>\n '}),kd=(t,e)=>vt`
191
+ :host([hidden]){display:none}${Sn("inline-flex")} :host{align-items:center;outline:none;font-family:${Lr};margin:calc(${Mr} * 1px) 0;${""} user-select:none}:host([disabled]){opacity:${Nr}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .switch,:host([disabled]) .switch{cursor:${"not-allowed"}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(${cc} * 1px);height:calc((${cc} / 2 + ${Mr}) * 1px);background:${El};border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ec}}.switch:hover{background:${Ol};border-color:${ic};cursor:pointer}host([disabled]) .switch:hover,host([readonly]) .switch:hover{background:${Ol};border-color:${ic};cursor:${"not-allowed"}}:host(:not([disabled])) .switch:active{background:${Rl};border-color:${oc}}:host(:${Dn}) .switch{box-shadow:0 0 0 2px ${tl},0 0 0 4px ${Wl}}.checked-indicator{position:absolute;top:5px;bottom:5px;background:${Jl};border-radius:calc(${Hr} * 1px);transition:all 0.2s ease-in-out}.status-message{color:${Jl};cursor:pointer;font-size:${Ur};line-height:${_r}}:host([disabled]) .status-message,:host([readonly]) .status-message{cursor:${"not-allowed"}}.label{color:${Jl};margin-inline-end:calc(${Mr} * 2px + 2px);font-size:${Ur};line-height:${_r};cursor:pointer}.label__hidden{display:none;visibility:hidden}::slotted([slot="checked-message"]),::slotted([slot="unchecked-message"]){margin-inline-start:calc(${Mr} * 2px + 2px)}:host([aria-checked="true"]) .checked-indicator{background:${cl}}:host([aria-checked="true"]) .switch{background:${ol};border-color:${ol}}:host([aria-checked="true"]:not([disabled])) .switch:hover{background:${sl};border-color:${sl}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background:${hl}}:host([aria-checked="true"]:not([disabled])) .switch:active{background:${nl};border-color:${nl}}:host([aria-checked="true"]:not([disabled])) .switch:active .checked-indicator{background:${dl}}:host([aria-checked="true"]:${Dn}:not([disabled])) .switch{box-shadow:0 0 0 2px ${tl},0 0 0 4px ${Wl}}.unchecked-message{display:block}.checked-message{display:none}:host([aria-checked="true"]) .unchecked-message{display:none}:host([aria-checked="true"]) .checked-message{display:block}`.withBehaviors(Tn(vt`
192
+ .checked-indicator,:host(:not([disabled])) .switch:active .checked-indicator{forced-color-adjust:none;background:${Xe.FieldText}}.switch{forced-color-adjust:none;background:${Xe.Field};border-color:${Xe.FieldText}}:host(:not([disabled])) .switch:hover{background:${Xe.HighlightText};border-color:${Xe.Highlight}}:host([aria-checked="true"]) .switch{background:${Xe.Highlight};border-color:${Xe.Highlight}}:host([aria-checked="true"]:not([disabled])) .switch:hover,:host(:not([disabled])) .switch:active{background:${Xe.HighlightText};border-color:${Xe.Highlight}}:host([aria-checked="true"]) .checked-indicator{background:${Xe.HighlightText}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background:${Xe.Highlight}}:host([disabled]){opacity:1}:host(:${Dn}) .switch{border-color:${Xe.Highlight};box-shadow:0 0 0 2px ${Xe.Field},0 0 0 4px ${Xe.FieldText}}:host([aria-checked="true"]:${Dn}:not([disabled])) .switch{box-shadow:0 0 0 2px ${Xe.Field},0 0 0 4px ${Xe.FieldText}}:host([disabled]) .checked-indicator{background:${Xe.GrayText}}:host([disabled]) .switch{background:${Xe.Field};border-color:${Xe.GrayText}}`),new $c(vt`
193
+ .checked-indicator{left:5px;right:calc(((${cc} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{left:calc(((${cc} / 2) + 1) * 1px);right:5px}`,vt`
194
+ .checked-indicator{right:5px;left:calc(((${cc} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{right:calc(((${cc} / 2) + 1) * 1px);left:5px}`)),Cd=Ks.compose({baseName:"switch",template:(t,e)=>X`<template role="switch" aria-checked="${t=>t.checked}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.checked?"checked":""}"><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${e.switch||""}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`,styles:kd,switch:'\n <span class="checked-indicator" part="checked-indicator"></span>\n '}),Id=(t,e)=>vt`
195
+ ${Sn("grid")} :host{box-sizing:border-box;font-family:${Lr};font-size:${Ur};line-height:${_r};color:${Jl};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;padding:calc(${Mr} * 4px) calc(${Mr} * 4px) 0;box-sizing:border-box}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:100%;height:5px;justify-self:center;background:${ol};margin-top:10px;border-radius:calc(${Hr} * 1px)
196
+ calc(${Hr} * 1px) 0 0}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation="vertical"]){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation="vertical"]) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%;padding:0 calc(${Mr} * 4px)
197
+ calc((${cc} - ${Mr}) * 1px) 0}:host([orientation="vertical"]) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation="vertical"]) .end{grid-row:3}:host([orientation="vertical"]) .activeIndicator{grid-column:1;grid-row:1;width:5px;height:100%;margin-inline-end:10px;align-self:center;background:${ol};margin-top:0;border-radius:0 calc(${Hr} * 1px)
198
+ calc(${Hr} * 1px) 0}:host([orientation="vertical"]) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(Tn(vt`
199
+ .activeIndicator,:host([orientation="vertical"]) .activeIndicator{forced-color-adjust:none;background:${Xe.Highlight}}`)),Td=(t,e)=>vt`
200
+ ${Sn("inline-flex")} :host{box-sizing:border-box;font-family:${Lr};font-size:${Ur};line-height:${_r};height:calc(${cc} * 1px);padding:calc(${Mr} * 5px) calc(${Mr} * 4px);color:${Ql};fill:currentcolor;border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid transparent;align-items:center;justify-content:center;grid-row:1;cursor:pointer}:host(:hover){color:${Jl};fill:currentcolor}:host(:active){color:${Jl};fill:currentcolor}:host([disabled]){cursor:${"not-allowed"};opacity:${Nr}}:host([disabled]:hover){color:${Ql};background:${Pl}}:host([aria-selected="true"]){background:${Il};color:${xl};fill:currentcolor}:host([aria-selected="true"]:hover){background:${Tl};color:${$l};fill:currentcolor}:host([aria-selected="true"]:active){background:${Fl};color:${wl};fill:currentcolor}:host(:${Dn}){outline:none;border:calc(${jr} * 1px) solid ${Wl};box-shadow:0 0 0 calc((${qr} - ${jr}) * 1px)
201
+ ${Wl}}:host(:focus){outline:none}:host(.vertical){justify-content:end;grid-column:2}:host(.vertical[aria-selected="true"]){z-index:2}:host(.vertical:hover){color:${Jl}}:host(.vertical:active){color:${Jl}}:host(.vertical:hover[aria-selected="true"]){}`.withBehaviors(Tn(vt`
202
+ :host{forced-color-adjust:none;border-color:transparent;color:${Xe.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected="true"]:hover){background:${Xe.Highlight};color:${Xe.HighlightText};fill:currentcolor}:host([aria-selected="true"]){background:${Xe.HighlightText};color:${Xe.Highlight};fill:currentcolor}:host(:${Dn}){border-color:${Xe.ButtonText};box-shadow:none}:host([disabled]),:host([disabled]:hover){opacity:1;color:${Xe.GrayText};background:${Xe.ButtonFace}}`)),Fd=Ys.compose({baseName:"tab",template:(t,e)=>X`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"><slot></slot></template>`,styles:Td}),Sd=(t,e)=>vt`
203
+ ${Sn("block")} :host{box-sizing:border-box;font-size:${Ur};line-height:${_r};padding:0 calc((6 + (${Mr} * 2 * ${zr})) * 1px)}`,Dd=Xs.compose({baseName:"tab-panel",template:(t,e)=>X`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`,styles:Sd}),Ed=Zs.compose({baseName:"tabs",template:(t,e)=>X`<template class="${t=>t.orientation}">${Gt(0,e)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${Nt("tabs")}></slot>${Ot(t=>t.showActiveIndicator,X`<div ${Et("activeIndicatorRef")} class="activeIndicator" part="activeIndicator"></div>`)}</div>${_t(0,e)}<div class="tabpanel"><slot name="tabpanel" part="tabpanel" ${Nt("tabpanels")}></slot></div></template>`,styles:Id}),Od=(t,e)=>vt`
204
+ ${Sn("inline-block")} :host{font-family:${Lr};outline:none;user-select:none}.control{box-sizing:border-box;position:relative;color:${Jl};background:${El};border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ol};height:calc(${cc} * 2px);font:inherit;font-size:${Ur};line-height:${_r};padding:calc(${Mr} * 2px + 1px);width:100%;resize:none}.control:hover:enabled{background:${Ol};border-color:${sl}}.control:active:enabled{background:${Rl};border-color:${nl}}.control:hover,.control:${Dn},.control:disabled,.control:active{outline:none}:host(:focus-within) .control{border-color:${Wl};box-shadow:0 0 0 1px ${Wl} inset}:host([appearance="filled"]) .control{background:${Il}}:host([appearance="filled"]:hover:not([disabled])) .control{background:${Tl}}:host([resize="both"]) .control{resize:both}:host([resize="horizontal"]) .control{resize:horizontal}:host([resize="vertical"]) .control{resize:vertical}.label{display:block;color:${Jl};cursor:pointer;font-size:${Ur};line-height:${_r};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${ec}}:host([cols]){width:initial}:host([rows]) .control{height:initial}`.withBehaviors(Tn(vt`
205
+ :host([disabled]){opacity:1}`));class Rd extends on{constructor(){super(...arguments),this.appearance="outline"}}pc([nt],Rd.prototype,"appearance",void 0);const Ld=Rd.compose({baseName:"text-area",baseClass:on,template:(t,e)=>X`<template class=" ${t=>t.readOnly?"readonly":""} ${t=>t.resize!==en?"resize-"+t.resize:""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt("defaultSlottedNodes")}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${t=>t.autofocus}" cols="${t=>t.cols}" ?disabled="${t=>t.disabled}" form="${t=>t.form}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" name="${t=>t.name}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" rows="${t=>t.rows}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" @input="${(t,e)=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ${Et("control")}></textarea></template>`,styles:Od,shadowOptions:{delegatesFocus:!0}}),Ad=(t,e)=>vt`
206
+ ${Sn("inline-block")} :host{font-family:${Lr};outline:none;user-select:none}.root{box-sizing:border-box;position:relative;display:flex;flex-direction:row;color:${Jl};background:${El};border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${ol};height:calc(${cc} * 1px);align-items:baseline}.control{-webkit-appearance:none;font:inherit;background:transparent;border:0;color:inherit;height:calc(100% - 4px);width:100%;margin-top:auto;margin-bottom:auto;border:none;padding:0 calc(${Mr} * 2px + 1px);font-size:${Ur};line-height:${_r}}.control:hover,.control:${Dn},.control:disabled,.control:active{outline:none}.label{display:block;color:${Jl};cursor:pointer;font-size:${Ur};line-height:${_r};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}.start,.control,.end{align-self:center}.start,.end{display:flex;margin:auto;fill:currentcolor}::slotted(svg){width:16px;height:16px}.start{margin-inline-start:11px}.end{margin-inline-end:11px}:host(:hover:not([disabled])) .root{background:${Ol};border-color:${sl}}:host(:active:not([disabled])) .root{background:${Ol};border-color:${nl}}:host(:focus-within:not([disabled])) .root{border-color:${Wl};box-shadow:0 0 0 calc(${qr} * 1px) ${Wl} inset}:host([appearance="filled"]) .root{background:${Il}}:host([appearance="filled"]:hover:not([disabled])) .root{background:${Tl}}:host([disabled]) .label,:host([readonly]) .label,:host([readonly]) .control,:host([disabled]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nr}}:host([disabled]) .control{border-color:${ec}}`.withBehaviors(Tn(vt`
207
+ .root,:host([appearance="filled"]) .root{forced-color-adjust:none;background:${Xe.Field};border-color:${Xe.FieldText}}:host(:hover:not([disabled])) .root,:host([appearance="filled"]:hover:not([disabled])) .root,:host([appearance="filled"]:hover) .root{background:${Xe.Field};border-color:${Xe.Highlight}}.start,.end{fill:currentcolor}:host([disabled]){opacity:1}:host([disabled]) .root,:host([appearance="filled"]:hover[disabled]) .root{border-color:${Xe.GrayText};background:${Xe.Field}}:host(:focus-within:enabled) .root{border-color:${Xe.Highlight};box-shadow:0 0 0 1px ${Xe.Highlight} inset}input::placeholder{color:${Xe.GrayText}}`));class Pd extends vs{constructor(){super(...arguments),this.appearance="outline"}}pc([nt],Pd.prototype,"appearance",void 0);const Vd=Pd.compose({baseName:"text-field",baseClass:vs,template:(t,e)=>X`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Nt({property:"defaultSlottedNodes",filter:Ds})}></slot></label><div class="root" part="root">${Gt(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Et("control")} />${_t(0,e)}</div></template>`,styles:Ad,shadowOptions:{delegatesFocus:!0}}),Hd=(t,e)=>vt`
208
+ ${Sn("inline-flex")} :host{--toolbar-item-gap:calc(
209
+ (var(--design-unit) + calc(var(--density) + 2)) * 1px
210
+ );background-color:${tl};border-radius:calc(${Hr} * 1px);fill:currentcolor;padding:var(--toolbar-item-gap)}:host(${Dn}){outline:calc(${jr} * 1px) solid ${sc}}.positioning-region{align-items:flex-start;display:inline-flex;flex-flow:row wrap;justify-content:flex-start}:host([orientation="vertical"]) .positioning-region{flex-direction:column}::slotted(:not([slot])){flex:0 0 auto;margin:0 var(--toolbar-item-gap)}:host([orientation="vertical"]) ::slotted(:not([slot])){margin:var(--toolbar-item-gap) 0}.start,.end{display:flex;margin:auto;margin-inline:0}::slotted(svg){width:16px;height:16px}`.withBehaviors(Tn(vt`
211
+ :host(:${Dn}){box-shadow:0 0 0 calc(${qr} * 1px) ${Xe.Highlight};color:${Xe.ButtonText};forced-color-adjust:none}`));class zd extends nn{connectedCallback(){super.connectedCallback();const t=lo(this);t&&tl.setValueFor(this,e=>Ul.getValueFor(e).evaluate(e,tl.getValueFor(t)))}}const Md=zd.compose({baseName:"toolbar",baseClass:nn,template:(t,e)=>X`<template aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-orientation="${t=>t.orientation}" orientation="${t=>t.orientation}" role="toolbar" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><slot name="label"></slot><div class="positioning-region" part="positioning-region">${Gt(0,e)}<slot ${Nt({filter:zt(),property:"slottedItems"})}></slot>${_t(0,e)}</div></template>`,styles:Hd,shadowOptions:{delegatesFocus:!0}}),Bd=(t,e)=>{const i=t.tagFor(si);return vt`
212
+ :host{contain:size;overflow:visible;height:0;width:0}.tooltip{box-sizing:border-box;border-radius:calc(${Hr} * 1px);border:calc(${jr} * 1px) solid ${Wl};box-shadow:0 0 0 1px ${Wl} inset;background:${Il};color:${Jl};padding:4px;height:fit-content;width:fit-content;font-family:${Lr};font-size:${Ur};line-height:${_r};white-space:nowrap;z-index:10000}${i}{display:flex;justify-content:center;align-items:center;overflow:visible;flex-direction:row}${i}.right,${i}.left{flex-direction:column}${i}.top .tooltip{margin-bottom:4px}${i}.bottom .tooltip{margin-top:4px}${i}.left .tooltip{margin-right:4px}${i}.right .tooltip{margin-left:4px}${i}.top.left .tooltip,${i}.top.right .tooltip{margin-bottom:0px}${i}.bottom.left .tooltip,${i}.bottom.right .tooltip{margin-top:0px}${i}.top.left .tooltip,${i}.bottom.left .tooltip{margin-right:0px}${i}.top.right .tooltip,${i}.bottom.right .tooltip{margin-left:0px}`.withBehaviors(Tn(vt`
213
+ :host([disabled]){opacity:1}`))},Nd=$n.compose({baseName:"tooltip",template:(t,e)=>X` ${Ot(t=>t.tooltipVisible,X`<${t.tagFor(si)} fixed-placement="true" auto-update-mode="${t=>t.autoUpdateMode}" vertical-positioning-mode="${t=>t.verticalPositioningMode}" vertical-default-position="${t=>t.verticalDefaultPosition}" vertical-inset="${t=>t.verticalInset}" vertical-scaling="${t=>t.verticalScaling}" horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" horizontal-default-position="${t=>t.horizontalDefaultPosition}" horizontal-scaling="${t=>t.horizontalScaling}" horizontal-inset="${t=>t.horizontalInset}" vertical-viewport-lock="${t=>t.horizontalViewportLock}" horizontal-viewport-lock="${t=>t.verticalViewportLock}" dir="${t=>t.currentDirection}" ${Et("region")}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${t.tagFor(si)}>`)} `,styles:Bd}),jd=vt`
214
+ .expand-collapse-glyph{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${cc} * -1px))}:host([selected])::after{left:calc(${qr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(45deg)}`,qd=vt`
215
+ .expand-collapse-glyph{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${cc} * -1px))}:host([selected])::after{right:calc(${qr} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform:rotate(135deg)}`,Ud=xt`((${Ar} / 2) * ${Mr}) + ((${Mr} * ${zr}) / 2)`,_d=To.create("tree-item-expand-collapse-hover").withDefault(t=>{const e=Al.getValueFor(t);return e.evaluate(t,e.evaluate(t).hover).hover}),Gd=To.create("tree-item-expand-collapse-selected-hover").withDefault(t=>{const e=Cl.getValueFor(t);return Al.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),Wd=(t,e)=>vt`@keyframes treeItemLoading{0%{opacity:0}100%{opacity:1}}${Sn("block")} :host{contain:content;position:relative;outline:none;color:${Jl};background:${Pl};cursor:pointer;font-family:${Lr};--expand-collapse-button-size:calc(${cc} * 1px);--tree-item-nested-width:0}:host(:focus) > .positioning-region{outline:none}:host(:focus) .content-region{outline:none}:host(:${Dn}) .positioning-region{border:${Wl} calc(${jr} * 1px) solid;border-radius:calc(${Hr} * 1px);color:${Jl}}.positioning-region{display:flex;position:relative;box-sizing:border-box;background:${Pl};border:transparent calc(${jr} * 1px) solid;height:calc((${cc} + 1) * 1px)}.positioning-region::before{content:"";display:block;width:var(--tree-item-nested-width);flex-shrink:0}:host(:not([disabled])) .positioning-region:hover{background:${Vl}}:host(:not([disabled])) .positioning-region:active{background:${Hl}}.content-region{display:inline-flex;align-items:center;white-space:nowrap;width:100%;height:calc(${cc} * 1px);margin-inline-start:calc(${Mr} * 2px + 8px);font-size:${Ur};line-height:${_r};font-weight:400}.items{font-size:calc(1em + (${Mr} + 16) * 1px)}.expand-collapse-button{background:none;border:none;outline:none;width:calc((${Ud} + (${Mr} * 2)) * 1px);height:calc((${Ud} + (${Mr} * 2)) * 1px);padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-left:6px;margin-right:6px}.expand-collapse-glyph{width:16px;height:16px;transition:transform 0.1s linear;pointer-events:none;fill:currentcolor}.start,.end{display:flex;fill:currentcolor}::slotted(svg){width:16px;height:16px}.start{margin-inline-end:calc(${Mr} * 2px + 2px)}.end{margin-inline-start:calc(${Mr} * 2px + 2px)}:host([expanded]) > .items{animation:treeItemLoading ease-in 10ms;animation-iteration-count:1;animation-fill-mode:forwards}:host([disabled]) .content-region{opacity:${Nr};cursor:${"not-allowed"}}:host(.nested) .content-region{position:relative;margin-inline-start:var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position:absolute}:host(.nested:not([disabled])) .expand-collapse-button:hover{background:${_d}}:host([selected]) .positioning-region{background:${Il}}:host([selected]:not([disabled])) .positioning-region:hover{background:${Tl}}:host([selected]:not([disabled])) .positioning-region:active{background:${Fl}}:host([selected]:not([disabled])) .expand-collapse-button:hover{background:${Gd}}:host([selected])::after{background:${xl};border-radius:calc(${Hr} * 1px);content:"";display:block;position:absolute;top:calc((${cc} / 4) * 1px);width:3px;height:calc((${cc} / 2) * 1px)}::slotted(${t.tagFor(kn)}){--tree-item-nested-width:1em;--expand-collapse-button-nested-width:calc(${cc} * -1px)}`.withBehaviors(new $c(jd,qd),Tn(vt`
216
+ :host{forced-color-adjust:none;border-color:transparent;background:${Xe.Field};color:${Xe.FieldText}}:host .content-region .expand-collapse-glyph{fill:${Xe.FieldText}}:host .positioning-region:hover,:host([selected]) .positioning-region{background:${Xe.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{color:${Xe.HighlightText}}:host .positioning-region:hover .content-region .expand-collapse-glyph,:host .positioning-region:hover .content-region .start,:host .positioning-region:hover .content-region .end,:host([selected]) .content-region .expand-collapse-glyph,:host([selected]) .content-region .start,:host([selected]) .content-region .end{fill:${Xe.HighlightText}}:host([selected])::after{background:${Xe.Field}}:host(:${Dn}) .positioning-region{border-color:${Xe.FieldText};box-shadow:0 0 0 2px inset ${Xe.Field};color:${Xe.FieldText}}:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${Xe.GrayText}}:host([disabled]) .content-region .expand-collapse-glyph,:host([disabled]) .content-region .start,:host([disabled]) .content-region .end,:host([disabled]) .positioning-region:hover .content-region .expand-collapse-glyph,:host([disabled]) .positioning-region:hover .content-region .start,:host([disabled]) .positioning-region:hover .content-region .end{fill:${Xe.GrayText}}:host([disabled]) .positioning-region:hover{background:${Xe.Field}}.expand-collapse-glyph,.start,.end{fill:${Xe.FieldText}}:host(.nested) .expand-collapse-button:hover{background:${Xe.Field}}:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph{fill:${Xe.FieldText}}`)),Kd=kn.compose({baseName:"tree-item",template:(t,e)=>X`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="-1" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" ${qt({property:"childItems",filter:zt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${Ot(t=>t.childItems&&t.childItemLength()>0,X`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${Et("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${Gt(0,e)}<slot></slot>${_t(0,e)}</div></div>${Ot(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),X`<div role="group" class="items" part="items"><slot name="item" ${Nt("items")}></slot></div>`)}</template>`,styles:Wd,expandCollapseGlyph:'\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n '}),Xd=(t,e)=>vt`
217
+ ${Sn("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}:host:focus-visible{outline:none}`,Yd=Cn.compose({baseName:"tree-view",template:(t,e)=>X`<template role="tree" ${Et("treeView")} @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" @click="${(t,e)=>t.handleClick(e.event)}" @selected-change="${(t,e)=>t.handleSelectedChange(e.event)}"><slot ${Nt("slottedTreeItems")}></slot></template>`,styles:Xd}),Qd={fastAccordion:uc,fastAccordionItem:dc,fastAnchor:Tc,fastAnchoredRegion:Sc,fastAvatar:Rc,fastBadge:Ac,fastBreadcrumb:zc,fastBreadcrumbItem:Vc,fastButton:Nc,fastCalendar:qc,fastCard:Gc,fastCheckbox:Kc,fastCombobox:Jc,fastDataGrid:nh,fastDataGridCell:oh,fastDataGridRow:sh,fastDesignSystemProvider:uh,fastDialog:gh,fastDisclosure:bh,fastDivider:yh,fastFlipper:$h,fastHorizontalScroll:Fh,fastListbox:Oh,fastOption:Dh,fastMenu:Vh,fastMenuItem:Lh,fastNumberField:Mh,fastPicker:Uh,fastPickerList:Kh,fastPickerListItem:Xh,fastPickerMenu:Gh,fastPickerMenuOption:Wh,fastProgress:Jh,fastProgressRing:Qh,fastRadio:od,fastRadioGroup:ed,fastSearch:ld,fastSelect:dd,fastSkeleton:pd,fastSlider:wd,fastSliderLabel:vd,fastSwitch:Cd,fastTabs:Ed,fastTab:Fd,fastTabPanel:Dd,fastTextArea:Ld,fastTextField:Vd,fastTooltip:Nd,fastToolbar:Md,fastTreeView:Yd,fastTreeItem:Kd,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function Zd(t){return Ro.getOrCreate(t).withPrefix("fast")}const Jd=Zd().register(Qd);t.Accordion=Ze,t.AccordionItem=Ve,t.ActionsStyles=Ch,t.Anchor=Ic,t.AnchoredRegion=si,t.Avatar=Ec,t.Badge=pi,t.Breadcrumb=mi,t.BreadcrumbItem=gi,t.Button=Bc,t.Calendar=Ii,t.CalendarStyles=jc,t.Card=_c,t.Checkbox=Gi,t.Combobox=Zc,t.DataGrid=Vi,t.DataGridCell=Mi,t.DataGridRow=Pi,t.DesignSystemProvider=ch,t.Dialog=_o,t.DirectionalStyleSheetBehavior=$c,t.Disclosure=fh,t.Divider=Ko,t.FASTDesignSystem=Jd,t.Flipper=Qo,t.HorizontalScroll=Th,t.Listbox=Eh,t.ListboxOption=Ki,t.Menu=Ph,t.MenuItem=ps,t.NumberField=zh,t.PaletteRGB=wr,t.Picker=ls,t.PickerMenu=_h,t.Progress=ks,t.ProgressRing=ks,t.Radio=Fs,t.RadioGroup=Cs,t.Search=ad,t.Select=hd,t.Skeleton=zs,t.Slider=_s,t.SliderLabel=bd,t.StandardLuminance=Dr,t.SwatchRGB=br,t.Switch=Ks,t.Tab=Ys,t.TabPanel=Xs,t.Tabs=Zs,t.TextArea=Rd,t.TextField=Pd,t.Toolbar=zd,t.Tooltip=$n,t.TreeItem=kn,t.TreeView=Cn,t.accentColor=Ba,t.accentFillActive=nl,t.accentFillActiveDelta=ha,t.accentFillFocus=rl,t.accentFillFocusDelta=da,t.accentFillHover=sl,t.accentFillHoverDelta=ca,t.accentFillRecipe=il,t.accentFillRest=ol,t.accentFillRestDelta=la,t.accentForegroundActive=wl,t.accentForegroundActiveDelta=ga,t.accentForegroundFocus=kl,t.accentForegroundFocusDelta=ma,t.accentForegroundHover=$l,t.accentForegroundHoverDelta=pa,t.accentForegroundRecipe=yl,t.accentForegroundRest=xl,t.accentForegroundRestDelta=ua,t.accentPalette=Na,t.accordionItemStyles=hc,t.accordionStyles=lc,t.allComponents=Qd,t.anchorStyles=Cc,t.anchoredRegionStyles=Fc,t.avatarStyles=Dc,t.badgeStyles=Lc,t.baseHeightMultiplier=Ar,t.baseHorizontalSpacingMultiplier=Pr,t.baseLayerLuminance=Vr,t.bodyFont=Lr,t.breadcrumbItemStyles=Pc,t.breadcrumbStyles=Hc,t.buttonStyles=Mc,t.cardStyles=Uc,t.checkboxStyles=Wc,t.comboboxStyles=Qc,t.controlCornerRadius=Hr,t.dataGridCellStyles=ih,t.dataGridRowStyles=eh,t.dataGridStyles=th,t.density=zr,t.designSystemProviderStyles=dh,t.designSystemProviderTemplate=hh,t.designUnit=Mr,t.dialogStyles=ph,t.direction=Br,t.disabledOpacity=Nr,t.disclosureStyles=mh,t.dividerStyles=vh,t.fastAccordion=uc,t.fastAccordionItem=dc,t.fastAnchor=Tc,t.fastAnchoredRegion=Sc,t.fastAvatar=Rc,t.fastBadge=Ac,t.fastBreadcrumb=zc,t.fastBreadcrumbItem=Vc,t.fastButton=Nc,t.fastCalendar=qc,t.fastCard=Gc,t.fastCheckbox=Kc,t.fastCombobox=Jc,t.fastDataGrid=nh,t.fastDataGridCell=oh,t.fastDataGridRow=sh,t.fastDesignSystemProvider=uh,t.fastDialog=gh,t.fastDisclosure=bh,t.fastDivider=yh,t.fastFlipper=$h,t.fastHorizontalScroll=Fh,t.fastListbox=Oh,t.fastMenu=Vh,t.fastMenuItem=Lh,t.fastNumberField=Mh,t.fastOption=Dh,t.fastPicker=Uh,t.fastPickerList=Kh,t.fastPickerListItem=Xh,t.fastPickerMenu=Gh,t.fastPickerMenuOption=Wh,t.fastProgress=Jh,t.fastProgressRing=Qh,t.fastRadio=od,t.fastRadioGroup=ed,t.fastSearch=ld,t.fastSelect=dd,t.fastSkeleton=pd,t.fastSlider=wd,t.fastSliderLabel=vd,t.fastSwitch=Cd,t.fastTab=Fd,t.fastTabPanel=Dd,t.fastTabs=Ed,t.fastTextArea=Ld,t.fastTextField=Vd,t.fastToolbar=Md,t.fastTooltip=Nd,t.fastTreeItem=Kd,t.fastTreeView=Yd,t.fillColor=tl,t.flipperStyles=xh,t.focusStrokeInner=Xl,t.focusStrokeInnerRecipe=Kl,t.focusStrokeOuter=Wl,t.focusStrokeOuterRecipe=Gl,t.focusStrokeWidth=qr,t.foregroundOnAccentActive=dl,t.foregroundOnAccentActiveLarge=fl,t.foregroundOnAccentFocus=ul,t.foregroundOnAccentFocusLarge=bl,t.foregroundOnAccentHover=hl,t.foregroundOnAccentHoverLarge=ml,t.foregroundOnAccentLargeRecipe=pl,t.foregroundOnAccentRecipe=ll,t.foregroundOnAccentRest=cl,t.foregroundOnAccentRestLarge=gl,t.heightNumberAsToken=ac,t.horizontalScrollStyles=Ih,t.horizontalSliderLabelStyles=gd,t.imgTemplate=Oc,t.isDark=xr,t.listboxStyles=Xc,t.menuItemStyles=Rh,t.menuStyles=Ah,t.neutralColor=za,t.neutralFillActive=Fl,t.neutralFillActiveDelta=va,t.neutralFillFocus=Sl,t.neutralFillFocusDelta=ya,t.neutralFillHover=Tl,t.neutralFillHoverDelta=ba,t.neutralFillInputActive=Rl,t.neutralFillInputActiveDelta=wa,t.neutralFillInputFocus=Ll,t.neutralFillInputFocusDelta=ka,t.neutralFillInputHover=Ol,t.neutralFillInputHoverDelta=$a,t.neutralFillInputRecipe=Dl,t.neutralFillInputRest=El,t.neutralFillInputRestDelta=xa,t.neutralFillLayerRecipe=Ul,t.neutralFillLayerRest=_l,t.neutralFillLayerRestDelta=Ra,t.neutralFillRecipe=Cl,t.neutralFillRest=Il,t.neutralFillRestDelta=fa,t.neutralFillStealthActive=Hl,t.neutralFillStealthActiveDelta=Ta,t.neutralFillStealthFocus=zl,t.neutralFillStealthFocusDelta=Fa,t.neutralFillStealthHover=Vl,t.neutralFillStealthHoverDelta=Ia,t.neutralFillStealthRecipe=Al,t.neutralFillStealthRest=Pl,t.neutralFillStealthRestDelta=Ca,t.neutralFillStrongActive=jl,t.neutralFillStrongActiveDelta=Ea,t.neutralFillStrongFocus=ql,t.neutralFillStrongFocusDelta=Oa,t.neutralFillStrongHover=Nl,t.neutralFillStrongHoverDelta=Da,t.neutralFillStrongRecipe=Ml,t.neutralFillStrongRest=Bl,t.neutralFillStrongRestDelta=Sa,t.neutralForegroundHint=Ql,t.neutralForegroundHintRecipe=Yl,t.neutralForegroundRecipe=Zl,t.neutralForegroundRest=Jl,t.neutralLayer1=Wa,t.neutralLayer1Recipe=Ga,t.neutralLayer2=Xa,t.neutralLayer2Recipe=Ka,t.neutralLayer3=Qa,t.neutralLayer3Recipe=Ya,t.neutralLayer4=Ja,t.neutralLayer4Recipe=Za,t.neutralLayerCardContainer=qa,t.neutralLayerCardContainerRecipe=ja,t.neutralLayerFloating=_a,t.neutralLayerFloatingRecipe=Ua,t.neutralPalette=Ma,t.neutralStrokeActive=oc,t.neutralStrokeActiveDelta=Pa,t.neutralStrokeDividerRecipe=nc,t.neutralStrokeDividerRest=rc,t.neutralStrokeDividerRestDelta=Ha,t.neutralStrokeFocus=sc,t.neutralStrokeFocusDelta=Va,t.neutralStrokeHover=ic,t.neutralStrokeHoverDelta=Aa,t.neutralStrokeRecipe=tc,t.neutralStrokeRest=ec,t.neutralStrokeRestDelta=La,t.numberFieldStyles=Hh,t.optionStyles=Sh,t.pickerListItemStyles=qh,t.pickerMenuOptionStyles=jh,t.pickerMenuStyles=Nh,t.pickerStyles=Bh,t.progressRingStyles=Yh,t.progressStyles=Zh,t.provideFASTDesignSystem=Zd,t.radioGroupStyles=td,t.radioStyles=id,t.searchStyles=cd,t.selectStyles=Yc,t.skeletonStyles=ud,t.sliderLabelStyles=fd,t.sliderStyles=$d,t.strokeWidth=jr,t.switchStyles=kd,t.tabPanelStyles=Sd,t.tabStyles=Td,t.tabsStyles=Id,t.textAreaStyles=Od,t.textFieldStyles=Ad,t.toolbarStyles=Hd,t.tooltipStyles=Bd,t.treeItemStyles=Wd,t.treeViewStyles=Xd,t.typeRampBaseFontSize=Ur,t.typeRampBaseLineHeight=_r,t.typeRampMinus1FontSize=Gr,t.typeRampMinus1LineHeight=Wr,t.typeRampMinus2FontSize=Kr,t.typeRampMinus2LineHeight=Xr,t.typeRampPlus1FontSize=Yr,t.typeRampPlus1LineHeight=Qr,t.typeRampPlus2FontSize=Zr,t.typeRampPlus2LineHeight=Jr,t.typeRampPlus3FontSize=ta,t.typeRampPlus3LineHeight=ea,t.typeRampPlus4FontSize=ia,t.typeRampPlus4LineHeight=oa,t.typeRampPlus5FontSize=sa,t.typeRampPlus5LineHeight=na,t.typeRampPlus6FontSize=ra,t.typeRampPlus6LineHeight=aa,t.verticalSliderLabelStyles=md,Object.defineProperty(t,"__esModule",{value:!0})}({});