@fluentui/web-components 3.0.0-rc.3 → 3.0.0-rc.31

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 (1295) hide show
  1. package/CHANGELOG.md +274 -2
  2. package/README.md +26 -0
  3. package/custom-elements.json +9510 -7860
  4. package/dist/esm/accordion/accordion.bench.d.ts +2 -0
  5. package/dist/esm/accordion/accordion.bench.js +2 -5
  6. package/dist/esm/accordion/accordion.bench.js.map +1 -1
  7. package/dist/esm/accordion/accordion.d.ts +12 -9
  8. package/dist/esm/accordion/accordion.definition-async.d.ts +10 -0
  9. package/dist/esm/accordion/accordion.definition-async.js +17 -0
  10. package/dist/esm/accordion/accordion.definition-async.js.map +1 -0
  11. package/dist/esm/accordion/accordion.definition.d.ts +4 -4
  12. package/dist/esm/accordion/accordion.definition.js +8 -7
  13. package/dist/esm/accordion/accordion.definition.js.map +1 -1
  14. package/dist/esm/accordion/accordion.js +48 -47
  15. package/dist/esm/accordion/accordion.js.map +1 -1
  16. package/dist/esm/accordion/accordion.options.d.ts +7 -1
  17. package/dist/esm/accordion/accordion.options.js +7 -0
  18. package/dist/esm/accordion/accordion.options.js.map +1 -1
  19. package/dist/esm/accordion/accordion.styles.css +12 -0
  20. package/dist/esm/accordion/accordion.styles.js +1 -1
  21. package/dist/esm/accordion/accordion.styles.js.map +1 -1
  22. package/dist/esm/accordion/accordion.template.html +6 -0
  23. package/dist/esm/accordion/define-async.js +4 -0
  24. package/dist/esm/accordion/define-async.js.map +1 -0
  25. package/dist/esm/accordion/define.js +2 -2
  26. package/dist/esm/accordion/define.js.map +1 -1
  27. package/dist/esm/accordion/index.d.ts +1 -0
  28. package/dist/esm/accordion/index.js +1 -0
  29. package/dist/esm/accordion/index.js.map +1 -1
  30. package/dist/esm/accordion-item/accordion-item.base.d.ts +0 -8
  31. package/dist/esm/accordion-item/accordion-item.base.js +3 -12
  32. package/dist/esm/accordion-item/accordion-item.base.js.map +1 -1
  33. package/dist/esm/accordion-item/accordion-item.bench.d.ts +1 -0
  34. package/dist/esm/accordion-item/accordion-item.bench.js +1 -3
  35. package/dist/esm/accordion-item/accordion-item.bench.js.map +1 -1
  36. package/dist/esm/accordion-item/accordion-item.d.ts +4 -6
  37. package/dist/esm/accordion-item/accordion-item.definition-async.d.ts +10 -0
  38. package/dist/esm/accordion-item/accordion-item.definition-async.js +17 -0
  39. package/dist/esm/accordion-item/accordion-item.definition-async.js.map +1 -0
  40. package/dist/esm/accordion-item/accordion-item.definition.d.ts +3 -4
  41. package/dist/esm/accordion-item/accordion-item.definition.js +7 -7
  42. package/dist/esm/accordion-item/accordion-item.definition.js.map +1 -1
  43. package/dist/esm/accordion-item/accordion-item.js +3 -1
  44. package/dist/esm/accordion-item/accordion-item.js.map +1 -1
  45. package/dist/esm/accordion-item/accordion-item.options.d.ts +17 -1
  46. package/dist/esm/accordion-item/accordion-item.options.js +19 -0
  47. package/dist/esm/accordion-item/accordion-item.options.js.map +1 -1
  48. package/dist/esm/accordion-item/accordion-item.styles.css +174 -0
  49. package/dist/esm/accordion-item/accordion-item.styles.js +4 -2
  50. package/dist/esm/accordion-item/accordion-item.styles.js.map +1 -1
  51. package/dist/esm/accordion-item/accordion-item.template.html +54 -0
  52. package/dist/esm/accordion-item/accordion-item.template.js +7 -7
  53. package/dist/esm/accordion-item/accordion-item.template.js.map +1 -1
  54. package/dist/esm/accordion-item/define-async.js +4 -0
  55. package/dist/esm/accordion-item/define-async.js.map +1 -0
  56. package/dist/esm/accordion-item/define.js +2 -2
  57. package/dist/esm/accordion-item/define.js.map +1 -1
  58. package/dist/esm/accordion-item/index.d.ts +1 -0
  59. package/dist/esm/accordion-item/index.js +1 -0
  60. package/dist/esm/accordion-item/index.js.map +1 -1
  61. package/dist/esm/anchor-button/anchor-button.base.d.ts +1 -1
  62. package/dist/esm/anchor-button/anchor-button.base.js +9 -6
  63. package/dist/esm/anchor-button/anchor-button.base.js.map +1 -1
  64. package/dist/esm/anchor-button/anchor-button.bench.d.ts +1 -0
  65. package/dist/esm/anchor-button/anchor-button.bench.js +1 -3
  66. package/dist/esm/anchor-button/anchor-button.bench.js.map +1 -1
  67. package/dist/esm/anchor-button/anchor-button.d.ts +3 -4
  68. package/dist/esm/anchor-button/anchor-button.definition-async.d.ts +10 -0
  69. package/dist/esm/anchor-button/anchor-button.definition-async.js +17 -0
  70. package/dist/esm/anchor-button/anchor-button.definition-async.js.map +1 -0
  71. package/dist/esm/anchor-button/anchor-button.definition.d.ts +4 -4
  72. package/dist/esm/anchor-button/anchor-button.definition.js +8 -7
  73. package/dist/esm/anchor-button/anchor-button.definition.js.map +1 -1
  74. package/dist/esm/anchor-button/anchor-button.js +3 -1
  75. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  76. package/dist/esm/anchor-button/anchor-button.options.d.ts +7 -1
  77. package/dist/esm/anchor-button/anchor-button.options.js +7 -0
  78. package/dist/esm/anchor-button/anchor-button.options.js.map +1 -1
  79. package/dist/esm/anchor-button/anchor-button.styles.css +226 -0
  80. package/dist/esm/anchor-button/anchor-button.styles.js +4 -3
  81. package/dist/esm/anchor-button/anchor-button.styles.js.map +1 -1
  82. package/dist/esm/anchor-button/anchor-button.template.html +10 -0
  83. package/dist/esm/anchor-button/anchor-button.template.js +1 -1
  84. package/dist/esm/anchor-button/anchor-button.template.js.map +1 -1
  85. package/dist/esm/anchor-button/define-async.d.ts +1 -0
  86. package/dist/esm/anchor-button/define-async.js +4 -0
  87. package/dist/esm/anchor-button/define-async.js.map +1 -0
  88. package/dist/esm/anchor-button/define.js +2 -2
  89. package/dist/esm/anchor-button/define.js.map +1 -1
  90. package/dist/esm/anchor-button/index.d.ts +1 -0
  91. package/dist/esm/anchor-button/index.js +1 -0
  92. package/dist/esm/anchor-button/index.js.map +1 -1
  93. package/dist/esm/avatar/avatar.base.d.ts +64 -10
  94. package/dist/esm/avatar/avatar.base.js +100 -27
  95. package/dist/esm/avatar/avatar.base.js.map +1 -1
  96. package/dist/esm/avatar/avatar.bench.d.ts +1 -0
  97. package/dist/esm/avatar/avatar.bench.js +1 -3
  98. package/dist/esm/avatar/avatar.bench.js.map +1 -1
  99. package/dist/esm/avatar/avatar.d.ts +2 -0
  100. package/dist/esm/avatar/avatar.definition-async.d.ts +10 -0
  101. package/dist/esm/avatar/avatar.definition-async.js +17 -0
  102. package/dist/esm/avatar/avatar.definition-async.js.map +1 -0
  103. package/dist/esm/avatar/avatar.definition.d.ts +3 -5
  104. package/dist/esm/avatar/avatar.definition.js +7 -8
  105. package/dist/esm/avatar/avatar.definition.js.map +1 -1
  106. package/dist/esm/avatar/avatar.js +3 -1
  107. package/dist/esm/avatar/avatar.js.map +1 -1
  108. package/dist/esm/avatar/avatar.options.d.ts +7 -1
  109. package/dist/esm/avatar/avatar.options.js +7 -0
  110. package/dist/esm/avatar/avatar.options.js.map +1 -1
  111. package/dist/esm/avatar/avatar.styles.css +480 -0
  112. package/dist/esm/avatar/avatar.styles.js +25 -8
  113. package/dist/esm/avatar/avatar.styles.js.map +1 -1
  114. package/dist/esm/avatar/avatar.template.html +13 -0
  115. package/dist/esm/avatar/avatar.template.js +4 -3
  116. package/dist/esm/avatar/avatar.template.js.map +1 -1
  117. package/dist/esm/avatar/define-async.d.ts +1 -0
  118. package/dist/esm/avatar/define-async.js +4 -0
  119. package/dist/esm/avatar/define-async.js.map +1 -0
  120. package/dist/esm/avatar/define.js +2 -2
  121. package/dist/esm/avatar/define.js.map +1 -1
  122. package/dist/esm/avatar/index.d.ts +1 -0
  123. package/dist/esm/avatar/index.js +1 -0
  124. package/dist/esm/avatar/index.js.map +1 -1
  125. package/dist/esm/badge/badge.bench.d.ts +1 -0
  126. package/dist/esm/badge/badge.bench.js +1 -3
  127. package/dist/esm/badge/badge.bench.js.map +1 -1
  128. package/dist/esm/badge/badge.d.ts +7 -2
  129. package/dist/esm/badge/badge.definition-async.d.ts +10 -0
  130. package/dist/esm/badge/badge.definition-async.js +17 -0
  131. package/dist/esm/badge/badge.definition-async.js.map +1 -0
  132. package/dist/esm/badge/badge.definition.d.ts +3 -4
  133. package/dist/esm/badge/badge.definition.js +7 -7
  134. package/dist/esm/badge/badge.definition.js.map +1 -1
  135. package/dist/esm/badge/badge.js +7 -2
  136. package/dist/esm/badge/badge.js.map +1 -1
  137. package/dist/esm/badge/badge.options.d.ts +12 -3
  138. package/dist/esm/badge/badge.options.js +7 -0
  139. package/dist/esm/badge/badge.options.js.map +1 -1
  140. package/dist/esm/badge/badge.styles.css +266 -0
  141. package/dist/esm/badge/badge.styles.js +5 -4
  142. package/dist/esm/badge/badge.styles.js.map +1 -1
  143. package/dist/esm/badge/badge.template.html +8 -0
  144. package/dist/esm/badge/badge.template.js +1 -1
  145. package/dist/esm/badge/badge.template.js.map +1 -1
  146. package/dist/esm/badge/define-async.d.ts +1 -0
  147. package/dist/esm/badge/define-async.js +4 -0
  148. package/dist/esm/badge/define-async.js.map +1 -0
  149. package/dist/esm/badge/define.js +2 -2
  150. package/dist/esm/badge/define.js.map +1 -1
  151. package/dist/esm/badge/index.d.ts +3 -3
  152. package/dist/esm/badge/index.js +3 -3
  153. package/dist/esm/badge/index.js.map +1 -1
  154. package/dist/esm/button/button.base.d.ts +15 -10
  155. package/dist/esm/button/button.base.js +30 -29
  156. package/dist/esm/button/button.base.js.map +1 -1
  157. package/dist/esm/button/button.bench.d.ts +1 -0
  158. package/dist/esm/button/button.bench.js +1 -3
  159. package/dist/esm/button/button.bench.js.map +1 -1
  160. package/dist/esm/button/button.d.ts +1 -1
  161. package/dist/esm/button/button.definition-async.d.ts +10 -0
  162. package/dist/esm/button/button.definition-async.js +17 -0
  163. package/dist/esm/button/button.definition-async.js.map +1 -0
  164. package/dist/esm/button/button.definition.d.ts +3 -5
  165. package/dist/esm/button/button.definition.js +7 -8
  166. package/dist/esm/button/button.definition.js.map +1 -1
  167. package/dist/esm/button/button.js +1 -1
  168. package/dist/esm/button/button.js.map +1 -1
  169. package/dist/esm/button/button.options.d.ts +8 -2
  170. package/dist/esm/button/button.options.js +7 -0
  171. package/dist/esm/button/button.options.js.map +1 -1
  172. package/dist/esm/button/button.styles.css +268 -0
  173. package/dist/esm/button/button.styles.js +5 -3
  174. package/dist/esm/button/button.styles.js.map +1 -1
  175. package/dist/esm/button/button.template.d.ts +3 -3
  176. package/dist/esm/button/button.template.html +10 -0
  177. package/dist/esm/button/button.template.js +1 -1
  178. package/dist/esm/button/button.template.js.map +1 -1
  179. package/dist/esm/button/define-async.d.ts +1 -0
  180. package/dist/esm/button/define-async.js +4 -0
  181. package/dist/esm/button/define-async.js.map +1 -0
  182. package/dist/esm/button/define.js +2 -2
  183. package/dist/esm/button/define.js.map +1 -1
  184. package/dist/esm/button/index.d.ts +1 -0
  185. package/dist/esm/button/index.js +1 -0
  186. package/dist/esm/button/index.js.map +1 -1
  187. package/dist/esm/checkbox/checkbox.base.d.ts +3 -9
  188. package/dist/esm/checkbox/checkbox.base.js +14 -10
  189. package/dist/esm/checkbox/checkbox.base.js.map +1 -1
  190. package/dist/esm/checkbox/checkbox.bench.d.ts +1 -0
  191. package/dist/esm/checkbox/checkbox.bench.js +1 -3
  192. package/dist/esm/checkbox/checkbox.bench.js.map +1 -1
  193. package/dist/esm/checkbox/checkbox.d.ts +2 -2
  194. package/dist/esm/checkbox/checkbox.definition-async.d.ts +10 -0
  195. package/dist/esm/checkbox/checkbox.definition-async.js +17 -0
  196. package/dist/esm/checkbox/checkbox.definition-async.js.map +1 -0
  197. package/dist/esm/checkbox/checkbox.definition.d.ts +3 -5
  198. package/dist/esm/checkbox/checkbox.definition.js +7 -8
  199. package/dist/esm/checkbox/checkbox.definition.js.map +1 -1
  200. package/dist/esm/checkbox/checkbox.js +2 -2
  201. package/dist/esm/checkbox/checkbox.options.d.ts +6 -0
  202. package/dist/esm/checkbox/checkbox.options.js +7 -0
  203. package/dist/esm/checkbox/checkbox.options.js.map +1 -1
  204. package/dist/esm/checkbox/checkbox.styles.css +172 -0
  205. package/dist/esm/checkbox/checkbox.styles.js +4 -3
  206. package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
  207. package/dist/esm/checkbox/checkbox.template.html +29 -0
  208. package/dist/esm/checkbox/define-async.d.ts +1 -0
  209. package/dist/esm/checkbox/define-async.js +4 -0
  210. package/dist/esm/checkbox/define-async.js.map +1 -0
  211. package/dist/esm/checkbox/define.js +2 -2
  212. package/dist/esm/checkbox/define.js.map +1 -1
  213. package/dist/esm/checkbox/index.d.ts +1 -0
  214. package/dist/esm/checkbox/index.js +1 -0
  215. package/dist/esm/checkbox/index.js.map +1 -1
  216. package/dist/esm/compound-button/compound-button.bench.d.ts +1 -0
  217. package/dist/esm/compound-button/compound-button.bench.js +1 -3
  218. package/dist/esm/compound-button/compound-button.bench.js.map +1 -1
  219. package/dist/esm/compound-button/compound-button.d.ts +3 -0
  220. package/dist/esm/compound-button/compound-button.definition-async.d.ts +10 -0
  221. package/dist/esm/compound-button/compound-button.definition-async.js +17 -0
  222. package/dist/esm/compound-button/compound-button.definition-async.js.map +1 -0
  223. package/dist/esm/compound-button/compound-button.definition.d.ts +4 -4
  224. package/dist/esm/compound-button/compound-button.definition.js +8 -7
  225. package/dist/esm/compound-button/compound-button.definition.js.map +1 -1
  226. package/dist/esm/compound-button/compound-button.js +3 -0
  227. package/dist/esm/compound-button/compound-button.js.map +1 -1
  228. package/dist/esm/compound-button/compound-button.options.d.ts +7 -1
  229. package/dist/esm/compound-button/compound-button.options.js +7 -0
  230. package/dist/esm/compound-button/compound-button.options.js.map +1 -1
  231. package/dist/esm/compound-button/compound-button.styles.css +370 -0
  232. package/dist/esm/compound-button/compound-button.styles.js +4 -3
  233. package/dist/esm/compound-button/compound-button.styles.js.map +1 -1
  234. package/dist/esm/compound-button/compound-button.template.d.ts +3 -1
  235. package/dist/esm/compound-button/compound-button.template.html +11 -0
  236. package/dist/esm/compound-button/compound-button.template.js +8 -3
  237. package/dist/esm/compound-button/compound-button.template.js.map +1 -1
  238. package/dist/esm/compound-button/define-async.d.ts +1 -0
  239. package/dist/esm/compound-button/define-async.js +4 -0
  240. package/dist/esm/compound-button/define-async.js.map +1 -0
  241. package/dist/esm/compound-button/define.js +2 -2
  242. package/dist/esm/compound-button/define.js.map +1 -1
  243. package/dist/esm/compound-button/index.d.ts +1 -0
  244. package/dist/esm/compound-button/index.js +1 -0
  245. package/dist/esm/compound-button/index.js.map +1 -1
  246. package/dist/esm/counter-badge/counter-badge.base.d.ts +55 -0
  247. package/dist/esm/counter-badge/counter-badge.base.js +84 -0
  248. package/dist/esm/counter-badge/counter-badge.base.js.map +1 -0
  249. package/dist/esm/counter-badge/counter-badge.bench.d.ts +1 -0
  250. package/dist/esm/counter-badge/counter-badge.bench.js +1 -3
  251. package/dist/esm/counter-badge/counter-badge.bench.js.map +1 -1
  252. package/dist/esm/counter-badge/counter-badge.d.ts +8 -57
  253. package/dist/esm/counter-badge/counter-badge.definition-async.d.ts +10 -0
  254. package/dist/esm/counter-badge/counter-badge.definition-async.js +17 -0
  255. package/dist/esm/counter-badge/counter-badge.definition-async.js.map +1 -0
  256. package/dist/esm/counter-badge/counter-badge.definition.d.ts +4 -4
  257. package/dist/esm/counter-badge/counter-badge.definition.js +8 -7
  258. package/dist/esm/counter-badge/counter-badge.definition.js.map +1 -1
  259. package/dist/esm/counter-badge/counter-badge.js +9 -76
  260. package/dist/esm/counter-badge/counter-badge.js.map +1 -1
  261. package/dist/esm/counter-badge/counter-badge.options.d.ts +26 -12
  262. package/dist/esm/counter-badge/counter-badge.options.js +15 -4
  263. package/dist/esm/counter-badge/counter-badge.options.js.map +1 -1
  264. package/dist/esm/counter-badge/counter-badge.styles.css +177 -0
  265. package/dist/esm/counter-badge/counter-badge.styles.js +1 -1
  266. package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
  267. package/dist/esm/counter-badge/counter-badge.template.d.ts +9 -1
  268. package/dist/esm/counter-badge/counter-badge.template.html +8 -0
  269. package/dist/esm/counter-badge/counter-badge.template.js +15 -7
  270. package/dist/esm/counter-badge/counter-badge.template.js.map +1 -1
  271. package/dist/esm/counter-badge/define-async.d.ts +1 -0
  272. package/dist/esm/counter-badge/define-async.js +4 -0
  273. package/dist/esm/counter-badge/define-async.js.map +1 -0
  274. package/dist/esm/counter-badge/define.js +2 -2
  275. package/dist/esm/counter-badge/define.js.map +1 -1
  276. package/dist/esm/counter-badge/index.d.ts +4 -3
  277. package/dist/esm/counter-badge/index.js +4 -3
  278. package/dist/esm/counter-badge/index.js.map +1 -1
  279. package/dist/esm/define-all.d.ts +42 -0
  280. package/dist/esm/define-all.js +43 -0
  281. package/dist/esm/define-all.js.map +1 -0
  282. package/dist/esm/dialog/define-async.d.ts +1 -0
  283. package/dist/esm/dialog/define-async.js +4 -0
  284. package/dist/esm/dialog/define-async.js.map +1 -0
  285. package/dist/esm/dialog/define.js +2 -2
  286. package/dist/esm/dialog/define.js.map +1 -1
  287. package/dist/esm/dialog/dialog.bench.d.ts +1 -0
  288. package/dist/esm/dialog/dialog.bench.js +1 -3
  289. package/dist/esm/dialog/dialog.bench.js.map +1 -1
  290. package/dist/esm/dialog/dialog.d.ts +63 -11
  291. package/dist/esm/dialog/dialog.definition-async.d.ts +10 -0
  292. package/dist/esm/dialog/dialog.definition-async.js +17 -0
  293. package/dist/esm/dialog/dialog.definition-async.js.map +1 -0
  294. package/dist/esm/dialog/dialog.definition.d.ts +3 -5
  295. package/dist/esm/dialog/dialog.definition.js +8 -9
  296. package/dist/esm/dialog/dialog.definition.js.map +1 -1
  297. package/dist/esm/dialog/dialog.js +98 -33
  298. package/dist/esm/dialog/dialog.js.map +1 -1
  299. package/dist/esm/dialog/dialog.options.d.ts +7 -1
  300. package/dist/esm/dialog/dialog.options.js +7 -0
  301. package/dist/esm/dialog/dialog.options.js.map +1 -1
  302. package/dist/esm/dialog/dialog.styles.css +84 -0
  303. package/dist/esm/dialog/dialog.styles.js +4 -4
  304. package/dist/esm/dialog/dialog.styles.js.map +1 -1
  305. package/dist/esm/dialog/dialog.template.d.ts +5 -0
  306. package/dist/esm/dialog/dialog.template.html +20 -0
  307. package/dist/esm/dialog/dialog.template.js +11 -3
  308. package/dist/esm/dialog/dialog.template.js.map +1 -1
  309. package/dist/esm/dialog/index.d.ts +1 -0
  310. package/dist/esm/dialog/index.js +1 -0
  311. package/dist/esm/dialog/index.js.map +1 -1
  312. package/dist/esm/dialog-body/define-async.d.ts +1 -0
  313. package/dist/esm/dialog-body/define-async.js +4 -0
  314. package/dist/esm/dialog-body/define-async.js.map +1 -0
  315. package/dist/esm/dialog-body/define.js +2 -2
  316. package/dist/esm/dialog-body/define.js.map +1 -1
  317. package/dist/esm/dialog-body/dialog-body.bench.d.ts +1 -0
  318. package/dist/esm/dialog-body/dialog-body.bench.js +1 -3
  319. package/dist/esm/dialog-body/dialog-body.bench.js.map +1 -1
  320. package/dist/esm/dialog-body/dialog-body.d.ts +9 -0
  321. package/dist/esm/dialog-body/dialog-body.definition-async.d.ts +10 -0
  322. package/dist/esm/dialog-body/dialog-body.definition-async.js +17 -0
  323. package/dist/esm/dialog-body/dialog-body.definition-async.js.map +1 -0
  324. package/dist/esm/dialog-body/dialog-body.definition.d.ts +3 -5
  325. package/dist/esm/dialog-body/dialog-body.definition.js +8 -9
  326. package/dist/esm/dialog-body/dialog-body.definition.js.map +1 -1
  327. package/dist/esm/dialog-body/dialog-body.js +9 -0
  328. package/dist/esm/dialog-body/dialog-body.js.map +1 -1
  329. package/dist/esm/dialog-body/dialog-body.options.d.ts +6 -0
  330. package/dist/esm/dialog-body/dialog-body.options.js +8 -0
  331. package/dist/esm/dialog-body/dialog-body.options.js.map +1 -0
  332. package/dist/esm/dialog-body/dialog-body.styles.css +92 -0
  333. package/dist/esm/dialog-body/dialog-body.styles.js +2 -1
  334. package/dist/esm/dialog-body/dialog-body.styles.js.map +1 -1
  335. package/dist/esm/dialog-body/dialog-body.template.html +12 -0
  336. package/dist/esm/dialog-body/index.d.ts +1 -0
  337. package/dist/esm/dialog-body/index.js +1 -0
  338. package/dist/esm/dialog-body/index.js.map +1 -1
  339. package/dist/esm/divider/define-async.d.ts +1 -0
  340. package/dist/esm/divider/define-async.js +4 -0
  341. package/dist/esm/divider/define-async.js.map +1 -0
  342. package/dist/esm/divider/define.js +2 -2
  343. package/dist/esm/divider/define.js.map +1 -1
  344. package/dist/esm/divider/divider.bench.d.ts +1 -0
  345. package/dist/esm/divider/divider.bench.js +1 -3
  346. package/dist/esm/divider/divider.bench.js.map +1 -1
  347. package/dist/esm/divider/divider.definition-async.d.ts +10 -0
  348. package/dist/esm/divider/divider.definition-async.js +17 -0
  349. package/dist/esm/divider/divider.definition-async.js.map +1 -0
  350. package/dist/esm/divider/divider.definition.d.ts +3 -5
  351. package/dist/esm/divider/divider.definition.js +8 -9
  352. package/dist/esm/divider/divider.definition.js.map +1 -1
  353. package/dist/esm/divider/divider.options.d.ts +7 -1
  354. package/dist/esm/divider/divider.options.js +8 -1
  355. package/dist/esm/divider/divider.options.js.map +1 -1
  356. package/dist/esm/divider/divider.styles.css +123 -0
  357. package/dist/esm/divider/divider.styles.js +5 -3
  358. package/dist/esm/divider/divider.styles.js.map +1 -1
  359. package/dist/esm/divider/divider.template.html +6 -0
  360. package/dist/esm/divider/index.d.ts +1 -0
  361. package/dist/esm/divider/index.js +1 -0
  362. package/dist/esm/divider/index.js.map +1 -1
  363. package/dist/esm/drawer/define-async.d.ts +1 -0
  364. package/dist/esm/drawer/define-async.js +4 -0
  365. package/dist/esm/drawer/define-async.js.map +1 -0
  366. package/dist/esm/drawer/define.js +2 -2
  367. package/dist/esm/drawer/define.js.map +1 -1
  368. package/dist/esm/drawer/drawer.d.ts +65 -27
  369. package/dist/esm/drawer/drawer.definition-async.d.ts +10 -0
  370. package/dist/esm/drawer/drawer.definition-async.js +17 -0
  371. package/dist/esm/drawer/drawer.definition-async.js.map +1 -0
  372. package/dist/esm/drawer/drawer.definition.d.ts +3 -4
  373. package/dist/esm/drawer/drawer.definition.js +7 -7
  374. package/dist/esm/drawer/drawer.definition.js.map +1 -1
  375. package/dist/esm/drawer/drawer.js +98 -58
  376. package/dist/esm/drawer/drawer.js.map +1 -1
  377. package/dist/esm/drawer/drawer.options.d.ts +7 -1
  378. package/dist/esm/drawer/drawer.options.js +7 -0
  379. package/dist/esm/drawer/drawer.options.js.map +1 -1
  380. package/dist/esm/drawer/drawer.styles.css +133 -0
  381. package/dist/esm/drawer/drawer.styles.js +17 -18
  382. package/dist/esm/drawer/drawer.styles.js.map +1 -1
  383. package/dist/esm/drawer/drawer.template.html +21 -0
  384. package/dist/esm/drawer/drawer.template.js +5 -3
  385. package/dist/esm/drawer/drawer.template.js.map +1 -1
  386. package/dist/esm/drawer/index.d.ts +1 -0
  387. package/dist/esm/drawer/index.js +1 -0
  388. package/dist/esm/drawer/index.js.map +1 -1
  389. package/dist/esm/drawer-body/define-async.d.ts +1 -0
  390. package/dist/esm/drawer-body/define-async.js +4 -0
  391. package/dist/esm/drawer-body/define-async.js.map +1 -0
  392. package/dist/esm/drawer-body/define.js +2 -2
  393. package/dist/esm/drawer-body/define.js.map +1 -1
  394. package/dist/esm/drawer-body/drawer-body.definition-async.d.ts +10 -0
  395. package/dist/esm/drawer-body/drawer-body.definition-async.js +17 -0
  396. package/dist/esm/drawer-body/drawer-body.definition-async.js.map +1 -0
  397. package/dist/esm/drawer-body/drawer-body.definition.d.ts +3 -4
  398. package/dist/esm/drawer-body/drawer-body.definition.js +7 -7
  399. package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -1
  400. package/dist/esm/drawer-body/drawer-body.options.d.ts +6 -0
  401. package/dist/esm/drawer-body/drawer-body.options.js +8 -0
  402. package/dist/esm/drawer-body/drawer-body.options.js.map +1 -0
  403. package/dist/esm/drawer-body/drawer-body.styles.css +36 -0
  404. package/dist/esm/drawer-body/drawer-body.styles.js +1 -1
  405. package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -1
  406. package/dist/esm/drawer-body/drawer-body.template.html +15 -0
  407. package/dist/esm/drawer-body/index.d.ts +1 -0
  408. package/dist/esm/drawer-body/index.js +1 -0
  409. package/dist/esm/drawer-body/index.js.map +1 -1
  410. package/dist/esm/dropdown/define-async.d.ts +1 -0
  411. package/dist/esm/dropdown/define-async.js +4 -0
  412. package/dist/esm/dropdown/define-async.js.map +1 -0
  413. package/dist/esm/dropdown/define.js +2 -2
  414. package/dist/esm/dropdown/define.js.map +1 -1
  415. package/dist/esm/dropdown/dropdown.base.d.ts +33 -0
  416. package/dist/esm/dropdown/dropdown.base.js +113 -31
  417. package/dist/esm/dropdown/dropdown.base.js.map +1 -1
  418. package/dist/esm/dropdown/dropdown.definition-async.d.ts +10 -0
  419. package/dist/esm/dropdown/dropdown.definition-async.js +17 -0
  420. package/dist/esm/dropdown/dropdown.definition-async.js.map +1 -0
  421. package/dist/esm/dropdown/dropdown.definition.d.ts +3 -5
  422. package/dist/esm/dropdown/dropdown.definition.js +7 -8
  423. package/dist/esm/dropdown/dropdown.definition.js.map +1 -1
  424. package/dist/esm/dropdown/dropdown.options.d.ts +6 -0
  425. package/dist/esm/dropdown/dropdown.options.js +7 -0
  426. package/dist/esm/dropdown/dropdown.options.js.map +1 -1
  427. package/dist/esm/dropdown/dropdown.styles.css +222 -0
  428. package/dist/esm/dropdown/dropdown.styles.js +3 -1
  429. package/dist/esm/dropdown/dropdown.styles.js.map +1 -1
  430. package/dist/esm/dropdown/dropdown.template.html +28 -0
  431. package/dist/esm/dropdown/index.d.ts +1 -0
  432. package/dist/esm/dropdown/index.js +1 -0
  433. package/dist/esm/dropdown/index.js.map +1 -1
  434. package/dist/esm/field/define-async.d.ts +1 -0
  435. package/dist/esm/field/define-async.js +4 -0
  436. package/dist/esm/field/define-async.js.map +1 -0
  437. package/dist/esm/field/define.js +2 -2
  438. package/dist/esm/field/define.js.map +1 -1
  439. package/dist/esm/field/field.base.d.ts +12 -1
  440. package/dist/esm/field/field.base.js +13 -5
  441. package/dist/esm/field/field.base.js.map +1 -1
  442. package/dist/esm/field/field.bench.d.ts +1 -0
  443. package/dist/esm/field/field.bench.js +1 -3
  444. package/dist/esm/field/field.bench.js.map +1 -1
  445. package/dist/esm/field/field.d.ts +7 -0
  446. package/dist/esm/field/field.definition-async.d.ts +10 -0
  447. package/dist/esm/field/field.definition-async.js +20 -0
  448. package/dist/esm/field/field.definition-async.js.map +1 -0
  449. package/dist/esm/field/field.definition.d.ts +3 -5
  450. package/dist/esm/field/field.definition.js +8 -9
  451. package/dist/esm/field/field.definition.js.map +1 -1
  452. package/dist/esm/field/field.js +7 -0
  453. package/dist/esm/field/field.js.map +1 -1
  454. package/dist/esm/field/field.options.d.ts +6 -0
  455. package/dist/esm/field/field.options.js +7 -0
  456. package/dist/esm/field/field.options.js.map +1 -1
  457. package/dist/esm/field/field.styles.css +125 -0
  458. package/dist/esm/field/field.template.html +13 -0
  459. package/dist/esm/field/index.d.ts +1 -0
  460. package/dist/esm/field/index.js +1 -0
  461. package/dist/esm/field/index.js.map +1 -1
  462. package/dist/esm/fluent-design-system.js +1 -1
  463. package/dist/esm/fluent-design-system.js.map +1 -1
  464. package/dist/esm/image/define-async.d.ts +1 -0
  465. package/dist/esm/image/define-async.js +4 -0
  466. package/dist/esm/image/define-async.js.map +1 -0
  467. package/dist/esm/image/define.js +2 -2
  468. package/dist/esm/image/define.js.map +1 -1
  469. package/dist/esm/image/image.bench.d.ts +1 -0
  470. package/dist/esm/image/image.bench.js +1 -3
  471. package/dist/esm/image/image.bench.js.map +1 -1
  472. package/dist/esm/image/image.d.ts +2 -0
  473. package/dist/esm/image/image.definition-async.d.ts +10 -0
  474. package/dist/esm/image/image.definition-async.js +17 -0
  475. package/dist/esm/image/image.definition-async.js.map +1 -0
  476. package/dist/esm/image/image.definition.d.ts +3 -5
  477. package/dist/esm/image/image.definition.js +8 -9
  478. package/dist/esm/image/image.definition.js.map +1 -1
  479. package/dist/esm/image/image.js +2 -0
  480. package/dist/esm/image/image.js.map +1 -1
  481. package/dist/esm/image/image.options.d.ts +7 -1
  482. package/dist/esm/image/image.options.js +7 -0
  483. package/dist/esm/image/image.options.js.map +1 -1
  484. package/dist/esm/image/image.styles.css +50 -0
  485. package/dist/esm/image/image.template.html +6 -0
  486. package/dist/esm/image/index.d.ts +1 -0
  487. package/dist/esm/image/index.js +1 -0
  488. package/dist/esm/image/index.js.map +1 -1
  489. package/dist/esm/index-all-rollup.d.ts +2 -0
  490. package/dist/esm/index-all-rollup.js +9 -0
  491. package/dist/esm/index-all-rollup.js.map +1 -0
  492. package/dist/esm/index-rollup.d.ts +1 -44
  493. package/dist/esm/index-rollup.js +6 -44
  494. package/dist/esm/index-rollup.js.map +1 -1
  495. package/dist/esm/index.d.ts +6 -9
  496. package/dist/esm/index.js +6 -8
  497. package/dist/esm/index.js.map +1 -1
  498. package/dist/esm/label/define-async.d.ts +1 -0
  499. package/dist/esm/label/define-async.js +4 -0
  500. package/dist/esm/label/define-async.js.map +1 -0
  501. package/dist/esm/label/define.js +2 -2
  502. package/dist/esm/label/define.js.map +1 -1
  503. package/dist/esm/label/index.d.ts +1 -0
  504. package/dist/esm/label/index.js +1 -0
  505. package/dist/esm/label/index.js.map +1 -1
  506. package/dist/esm/label/label.bench.d.ts +1 -0
  507. package/dist/esm/label/label.bench.js +1 -3
  508. package/dist/esm/label/label.bench.js.map +1 -1
  509. package/dist/esm/label/label.d.ts +3 -0
  510. package/dist/esm/label/label.definition-async.d.ts +10 -0
  511. package/dist/esm/label/label.definition-async.js +17 -0
  512. package/dist/esm/label/label.definition-async.js.map +1 -0
  513. package/dist/esm/label/label.definition.d.ts +3 -6
  514. package/dist/esm/label/label.definition.js +7 -9
  515. package/dist/esm/label/label.definition.js.map +1 -1
  516. package/dist/esm/label/label.js +3 -0
  517. package/dist/esm/label/label.js.map +1 -1
  518. package/dist/esm/label/label.options.d.ts +7 -1
  519. package/dist/esm/label/label.options.js +7 -0
  520. package/dist/esm/label/label.options.js.map +1 -1
  521. package/dist/esm/label/label.styles.css +40 -0
  522. package/dist/esm/label/label.styles.js +1 -1
  523. package/dist/esm/label/label.styles.js.map +1 -1
  524. package/dist/esm/label/label.template.html +7 -0
  525. package/dist/esm/link/define-async.d.ts +1 -0
  526. package/dist/esm/link/define-async.js +4 -0
  527. package/dist/esm/link/define-async.js.map +1 -0
  528. package/dist/esm/link/define.js +2 -2
  529. package/dist/esm/link/define.js.map +1 -1
  530. package/dist/esm/link/index.d.ts +1 -0
  531. package/dist/esm/link/index.js +1 -0
  532. package/dist/esm/link/index.js.map +1 -1
  533. package/dist/esm/link/link.bench.d.ts +1 -0
  534. package/dist/esm/link/link.bench.js +1 -3
  535. package/dist/esm/link/link.bench.js.map +1 -1
  536. package/dist/esm/link/link.definition-async.d.ts +10 -0
  537. package/dist/esm/link/link.definition-async.js +17 -0
  538. package/dist/esm/link/link.definition-async.js.map +1 -0
  539. package/dist/esm/link/link.definition.d.ts +4 -4
  540. package/dist/esm/link/link.definition.js +8 -7
  541. package/dist/esm/link/link.definition.js.map +1 -1
  542. package/dist/esm/link/link.options.d.ts +7 -1
  543. package/dist/esm/link/link.options.js +7 -0
  544. package/dist/esm/link/link.options.js.map +1 -1
  545. package/dist/esm/link/link.styles.css +72 -0
  546. package/dist/esm/link/link.styles.js +16 -5
  547. package/dist/esm/link/link.styles.js.map +1 -1
  548. package/dist/esm/link/link.template.html +6 -0
  549. package/dist/esm/listbox/define-async.d.ts +1 -0
  550. package/dist/esm/listbox/define-async.js +4 -0
  551. package/dist/esm/listbox/define-async.js.map +1 -0
  552. package/dist/esm/listbox/define.js +2 -2
  553. package/dist/esm/listbox/define.js.map +1 -1
  554. package/dist/esm/listbox/index.d.ts +1 -0
  555. package/dist/esm/listbox/index.js +1 -0
  556. package/dist/esm/listbox/index.js.map +1 -1
  557. package/dist/esm/listbox/listbox.d.ts +12 -7
  558. package/dist/esm/listbox/listbox.definition-async.d.ts +10 -0
  559. package/dist/esm/listbox/listbox.definition-async.js +17 -0
  560. package/dist/esm/listbox/listbox.definition-async.js.map +1 -0
  561. package/dist/esm/listbox/listbox.definition.d.ts +3 -5
  562. package/dist/esm/listbox/listbox.definition.js +7 -8
  563. package/dist/esm/listbox/listbox.definition.js.map +1 -1
  564. package/dist/esm/listbox/listbox.js +30 -18
  565. package/dist/esm/listbox/listbox.js.map +1 -1
  566. package/dist/esm/listbox/listbox.options.d.ts +6 -0
  567. package/dist/esm/listbox/listbox.options.js +7 -0
  568. package/dist/esm/listbox/listbox.options.js.map +1 -1
  569. package/dist/esm/listbox/listbox.styles.css +49 -0
  570. package/dist/esm/listbox/listbox.styles.js +9 -15
  571. package/dist/esm/listbox/listbox.styles.js.map +1 -1
  572. package/dist/esm/listbox/listbox.template.html +6 -0
  573. package/dist/esm/listbox/listbox.template.js +2 -3
  574. package/dist/esm/listbox/listbox.template.js.map +1 -1
  575. package/dist/esm/menu/define-async.d.ts +1 -0
  576. package/dist/esm/menu/define-async.js +4 -0
  577. package/dist/esm/menu/define-async.js.map +1 -0
  578. package/dist/esm/menu/define.js +2 -2
  579. package/dist/esm/menu/define.js.map +1 -1
  580. package/dist/esm/menu/index.d.ts +1 -0
  581. package/dist/esm/menu/index.js +1 -0
  582. package/dist/esm/menu/index.js.map +1 -1
  583. package/dist/esm/menu/menu.bench.d.ts +4 -0
  584. package/dist/esm/menu/menu.bench.js +4 -9
  585. package/dist/esm/menu/menu.bench.js.map +1 -1
  586. package/dist/esm/menu/menu.d.ts +35 -19
  587. package/dist/esm/menu/menu.definition-async.d.ts +10 -0
  588. package/dist/esm/menu/menu.definition-async.js +17 -0
  589. package/dist/esm/menu/menu.definition-async.js.map +1 -0
  590. package/dist/esm/menu/menu.definition.d.ts +3 -5
  591. package/dist/esm/menu/menu.definition.js +7 -8
  592. package/dist/esm/menu/menu.definition.js.map +1 -1
  593. package/dist/esm/menu/menu.js +78 -79
  594. package/dist/esm/menu/menu.js.map +1 -1
  595. package/dist/esm/menu/menu.options.d.ts +6 -0
  596. package/dist/esm/menu/menu.options.js +8 -0
  597. package/dist/esm/menu/menu.options.js.map +1 -0
  598. package/dist/esm/menu/menu.styles.css +56 -0
  599. package/dist/esm/menu/menu.styles.js +8 -9
  600. package/dist/esm/menu/menu.styles.js.map +1 -1
  601. package/dist/esm/menu/menu.template.html +8 -0
  602. package/dist/esm/menu/menu.template.js +1 -7
  603. package/dist/esm/menu/menu.template.js.map +1 -1
  604. package/dist/esm/menu-button/define-async.d.ts +1 -0
  605. package/dist/esm/menu-button/define-async.js +4 -0
  606. package/dist/esm/menu-button/define-async.js.map +1 -0
  607. package/dist/esm/menu-button/define.js +2 -2
  608. package/dist/esm/menu-button/define.js.map +1 -1
  609. package/dist/esm/menu-button/index.d.ts +1 -0
  610. package/dist/esm/menu-button/index.js +1 -0
  611. package/dist/esm/menu-button/index.js.map +1 -1
  612. package/dist/esm/menu-button/menu-button.bench.d.ts +1 -0
  613. package/dist/esm/menu-button/menu-button.bench.js +1 -3
  614. package/dist/esm/menu-button/menu-button.bench.js.map +1 -1
  615. package/dist/esm/menu-button/menu-button.definition-async.d.ts +10 -0
  616. package/dist/esm/menu-button/menu-button.definition-async.js +17 -0
  617. package/dist/esm/menu-button/menu-button.definition-async.js.map +1 -0
  618. package/dist/esm/menu-button/menu-button.definition.d.ts +4 -4
  619. package/dist/esm/menu-button/menu-button.definition.js +9 -8
  620. package/dist/esm/menu-button/menu-button.definition.js.map +1 -1
  621. package/dist/esm/menu-button/menu-button.options.d.ts +7 -1
  622. package/dist/esm/menu-button/menu-button.options.js +7 -0
  623. package/dist/esm/menu-button/menu-button.options.js.map +1 -1
  624. package/dist/esm/menu-button/menu-button.styles.css +268 -0
  625. package/dist/esm/{tab-panel/tab-panel.styles.d.ts → menu-button/menu-button.styles.d.ts} +5 -0
  626. package/dist/esm/menu-button/menu-button.styles.js +8 -0
  627. package/dist/esm/menu-button/menu-button.styles.js.map +1 -0
  628. package/dist/esm/menu-button/menu-button.template.html +25 -0
  629. package/dist/esm/menu-item/define-async.d.ts +1 -0
  630. package/dist/esm/menu-item/define-async.js +4 -0
  631. package/dist/esm/menu-item/define-async.js.map +1 -0
  632. package/dist/esm/menu-item/define.js +2 -2
  633. package/dist/esm/menu-item/define.js.map +1 -1
  634. package/dist/esm/menu-item/index.d.ts +1 -0
  635. package/dist/esm/menu-item/index.js +1 -0
  636. package/dist/esm/menu-item/index.js.map +1 -1
  637. package/dist/esm/menu-item/menu-item.bench.d.ts +1 -0
  638. package/dist/esm/menu-item/menu-item.bench.js +1 -3
  639. package/dist/esm/menu-item/menu-item.bench.js.map +1 -1
  640. package/dist/esm/menu-item/menu-item.d.ts +4 -2
  641. package/dist/esm/menu-item/menu-item.definition-async.d.ts +10 -0
  642. package/dist/esm/menu-item/menu-item.definition-async.js +17 -0
  643. package/dist/esm/menu-item/menu-item.definition-async.js.map +1 -0
  644. package/dist/esm/menu-item/menu-item.definition.d.ts +4 -4
  645. package/dist/esm/menu-item/menu-item.definition.js +8 -7
  646. package/dist/esm/menu-item/menu-item.definition.js.map +1 -1
  647. package/dist/esm/menu-item/menu-item.js +26 -13
  648. package/dist/esm/menu-item/menu-item.js.map +1 -1
  649. package/dist/esm/menu-item/menu-item.options.d.ts +7 -1
  650. package/dist/esm/menu-item/menu-item.options.js +7 -0
  651. package/dist/esm/menu-item/menu-item.options.js.map +1 -1
  652. package/dist/esm/menu-item/menu-item.styles.css +159 -0
  653. package/dist/esm/menu-item/menu-item.styles.js +15 -10
  654. package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
  655. package/dist/esm/menu-item/menu-item.template.html +50 -0
  656. package/dist/esm/menu-item/menu-item.template.js +3 -2
  657. package/dist/esm/menu-item/menu-item.template.js.map +1 -1
  658. package/dist/esm/menu-list/define-async.d.ts +1 -0
  659. package/dist/esm/menu-list/define-async.js +4 -0
  660. package/dist/esm/menu-list/define-async.js.map +1 -0
  661. package/dist/esm/menu-list/define.js +2 -2
  662. package/dist/esm/menu-list/define.js.map +1 -1
  663. package/dist/esm/menu-list/index.d.ts +2 -0
  664. package/dist/esm/menu-list/index.js +2 -0
  665. package/dist/esm/menu-list/index.js.map +1 -1
  666. package/dist/esm/menu-list/menu-list.base.d.ts +57 -0
  667. package/dist/esm/menu-list/menu-list.base.js +155 -0
  668. package/dist/esm/menu-list/menu-list.base.js.map +1 -0
  669. package/dist/esm/menu-list/menu-list.bench.d.ts +2 -0
  670. package/dist/esm/menu-list/menu-list.bench.js +2 -5
  671. package/dist/esm/menu-list/menu-list.bench.js.map +1 -1
  672. package/dist/esm/menu-list/menu-list.d.ts +6 -69
  673. package/dist/esm/menu-list/menu-list.definition-async.d.ts +10 -0
  674. package/dist/esm/menu-list/menu-list.definition-async.js +17 -0
  675. package/dist/esm/menu-list/menu-list.definition-async.js.map +1 -0
  676. package/dist/esm/menu-list/menu-list.definition.d.ts +4 -4
  677. package/dist/esm/menu-list/menu-list.definition.js +8 -7
  678. package/dist/esm/menu-list/menu-list.definition.js.map +1 -1
  679. package/dist/esm/menu-list/menu-list.js +18 -237
  680. package/dist/esm/menu-list/menu-list.js.map +1 -1
  681. package/dist/esm/menu-list/menu-list.options.d.ts +6 -0
  682. package/dist/esm/menu-list/menu-list.options.js +8 -0
  683. package/dist/esm/menu-list/menu-list.options.js.map +1 -0
  684. package/dist/esm/menu-list/menu-list.styles.css +20 -0
  685. package/dist/esm/menu-list/menu-list.styles.js +1 -1
  686. package/dist/esm/menu-list/menu-list.styles.js.map +1 -1
  687. package/dist/esm/menu-list/menu-list.template.html +6 -0
  688. package/dist/esm/menu-list/menu-list.template.js +1 -5
  689. package/dist/esm/menu-list/menu-list.template.js.map +1 -1
  690. package/dist/esm/message-bar/define-async.d.ts +1 -0
  691. package/dist/esm/message-bar/define-async.js +4 -0
  692. package/dist/esm/message-bar/define-async.js.map +1 -0
  693. package/dist/esm/message-bar/define.js +2 -2
  694. package/dist/esm/message-bar/define.js.map +1 -1
  695. package/dist/esm/message-bar/index.d.ts +1 -0
  696. package/dist/esm/message-bar/index.js +1 -0
  697. package/dist/esm/message-bar/index.js.map +1 -1
  698. package/dist/esm/message-bar/message-bar.bench.d.ts +2 -0
  699. package/dist/esm/message-bar/message-bar.bench.js +2 -5
  700. package/dist/esm/message-bar/message-bar.bench.js.map +1 -1
  701. package/dist/esm/message-bar/message-bar.d.ts +4 -1
  702. package/dist/esm/message-bar/message-bar.definition-async.d.ts +10 -0
  703. package/dist/esm/message-bar/message-bar.definition-async.js +17 -0
  704. package/dist/esm/message-bar/message-bar.definition-async.js.map +1 -0
  705. package/dist/esm/message-bar/message-bar.definition.d.ts +3 -5
  706. package/dist/esm/message-bar/message-bar.definition.js +7 -11
  707. package/dist/esm/message-bar/message-bar.definition.js.map +1 -1
  708. package/dist/esm/message-bar/message-bar.js +4 -1
  709. package/dist/esm/message-bar/message-bar.js.map +1 -1
  710. package/dist/esm/message-bar/message-bar.options.d.ts +12 -3
  711. package/dist/esm/message-bar/message-bar.options.js +13 -3
  712. package/dist/esm/message-bar/message-bar.options.js.map +1 -1
  713. package/dist/esm/message-bar/message-bar.styles.css +97 -0
  714. package/dist/esm/message-bar/message-bar.styles.js +1 -0
  715. package/dist/esm/message-bar/message-bar.styles.js.map +1 -1
  716. package/dist/esm/message-bar/message-bar.template.d.ts +3 -3
  717. package/dist/esm/message-bar/message-bar.template.html +13 -0
  718. package/dist/esm/message-bar/message-bar.template.js +3 -3
  719. package/dist/esm/option/define-async.d.ts +1 -0
  720. package/dist/esm/option/define-async.js +4 -0
  721. package/dist/esm/option/define-async.js.map +1 -0
  722. package/dist/esm/option/define.js +2 -2
  723. package/dist/esm/option/define.js.map +1 -1
  724. package/dist/esm/option/index.d.ts +1 -0
  725. package/dist/esm/option/index.js +1 -0
  726. package/dist/esm/option/index.js.map +1 -1
  727. package/dist/esm/option/option.d.ts +3 -0
  728. package/dist/esm/option/option.definition-async.d.ts +10 -0
  729. package/dist/esm/option/option.definition-async.js +17 -0
  730. package/dist/esm/option/option.definition-async.js.map +1 -0
  731. package/dist/esm/option/option.definition.d.ts +3 -5
  732. package/dist/esm/option/option.definition.js +7 -8
  733. package/dist/esm/option/option.definition.js.map +1 -1
  734. package/dist/esm/option/option.js +4 -1
  735. package/dist/esm/option/option.js.map +1 -1
  736. package/dist/esm/option/option.options.d.ts +6 -0
  737. package/dist/esm/option/option.options.js +7 -0
  738. package/dist/esm/option/option.options.js.map +1 -1
  739. package/dist/esm/option/option.styles.css +134 -0
  740. package/dist/esm/option/option.template.html +24 -0
  741. package/dist/esm/patterns/start-end.d.ts +1 -1
  742. package/dist/esm/patterns/start-end.js +1 -1
  743. package/dist/esm/patterns/start-end.js.map +1 -1
  744. package/dist/esm/progress-bar/define-async.d.ts +1 -0
  745. package/dist/esm/progress-bar/define-async.js +4 -0
  746. package/dist/esm/progress-bar/define-async.js.map +1 -0
  747. package/dist/esm/progress-bar/define.js +2 -2
  748. package/dist/esm/progress-bar/define.js.map +1 -1
  749. package/dist/esm/progress-bar/index.d.ts +1 -0
  750. package/dist/esm/progress-bar/index.js +1 -0
  751. package/dist/esm/progress-bar/index.js.map +1 -1
  752. package/dist/esm/progress-bar/progress-bar.base.d.ts +35 -8
  753. package/dist/esm/progress-bar/progress-bar.base.js +41 -20
  754. package/dist/esm/progress-bar/progress-bar.base.js.map +1 -1
  755. package/dist/esm/progress-bar/progress-bar.bench.d.ts +1 -0
  756. package/dist/esm/progress-bar/progress-bar.bench.js +1 -3
  757. package/dist/esm/progress-bar/progress-bar.bench.js.map +1 -1
  758. package/dist/esm/progress-bar/progress-bar.d.ts +9 -2
  759. package/dist/esm/progress-bar/progress-bar.definition-async.d.ts +10 -0
  760. package/dist/esm/progress-bar/progress-bar.definition-async.js +17 -0
  761. package/dist/esm/progress-bar/progress-bar.definition-async.js.map +1 -0
  762. package/dist/esm/progress-bar/progress-bar.definition.d.ts +3 -6
  763. package/dist/esm/progress-bar/progress-bar.definition.js +7 -9
  764. package/dist/esm/progress-bar/progress-bar.definition.js.map +1 -1
  765. package/dist/esm/progress-bar/progress-bar.js +1 -0
  766. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  767. package/dist/esm/progress-bar/progress-bar.options.d.ts +7 -1
  768. package/dist/esm/progress-bar/progress-bar.options.js +7 -0
  769. package/dist/esm/progress-bar/progress-bar.options.js.map +1 -1
  770. package/dist/esm/progress-bar/progress-bar.styles.css +103 -0
  771. package/dist/esm/progress-bar/progress-bar.styles.js +5 -3
  772. package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
  773. package/dist/esm/progress-bar/progress-bar.template.html +6 -0
  774. package/dist/esm/radio/define-async.d.ts +1 -0
  775. package/dist/esm/radio/define-async.js +4 -0
  776. package/dist/esm/radio/define-async.js.map +1 -0
  777. package/dist/esm/radio/define.js +2 -2
  778. package/dist/esm/radio/define.js.map +1 -1
  779. package/dist/esm/radio/index.d.ts +1 -0
  780. package/dist/esm/radio/index.js +1 -0
  781. package/dist/esm/radio/index.js.map +1 -1
  782. package/dist/esm/radio/radio.bench.d.ts +1 -0
  783. package/dist/esm/radio/radio.bench.js +1 -3
  784. package/dist/esm/radio/radio.bench.js.map +1 -1
  785. package/dist/esm/radio/radio.d.ts +4 -3
  786. package/dist/esm/radio/radio.definition-async.d.ts +10 -0
  787. package/dist/esm/radio/radio.definition-async.js +17 -0
  788. package/dist/esm/radio/radio.definition-async.js.map +1 -0
  789. package/dist/esm/radio/radio.definition.d.ts +3 -6
  790. package/dist/esm/radio/radio.definition.js +7 -9
  791. package/dist/esm/radio/radio.definition.js.map +1 -1
  792. package/dist/esm/radio/radio.js +4 -3
  793. package/dist/esm/radio/radio.js.map +1 -1
  794. package/dist/esm/radio/radio.options.d.ts +15 -0
  795. package/dist/esm/radio/radio.options.js +19 -1
  796. package/dist/esm/radio/radio.options.js.map +1 -1
  797. package/dist/esm/radio/radio.styles.css +119 -0
  798. package/dist/esm/radio/radio.styles.js +4 -3
  799. package/dist/esm/radio/radio.styles.js.map +1 -1
  800. package/dist/esm/radio/radio.template.html +8 -0
  801. package/dist/esm/radio/radio.template.js +1 -1
  802. package/dist/esm/radio/radio.template.js.map +1 -1
  803. package/dist/esm/radio-group/define-async.d.ts +1 -0
  804. package/dist/esm/radio-group/define-async.js +4 -0
  805. package/dist/esm/radio-group/define-async.js.map +1 -0
  806. package/dist/esm/radio-group/define.js +2 -2
  807. package/dist/esm/radio-group/define.js.map +1 -1
  808. package/dist/esm/radio-group/index.d.ts +2 -0
  809. package/dist/esm/radio-group/index.js +2 -0
  810. package/dist/esm/radio-group/index.js.map +1 -1
  811. package/dist/esm/radio-group/radio-group.base.d.ts +274 -0
  812. package/dist/esm/radio-group/radio-group.base.js +442 -0
  813. package/dist/esm/radio-group/radio-group.base.js.map +1 -0
  814. package/dist/esm/radio-group/radio-group.bench.d.ts +2 -0
  815. package/dist/esm/radio-group/radio-group.bench.js +2 -5
  816. package/dist/esm/radio-group/radio-group.bench.js.map +1 -1
  817. package/dist/esm/radio-group/radio-group.d.ts +9 -273
  818. package/dist/esm/radio-group/radio-group.definition-async.d.ts +10 -0
  819. package/dist/esm/radio-group/radio-group.definition-async.js +17 -0
  820. package/dist/esm/radio-group/radio-group.definition-async.js.map +1 -0
  821. package/dist/esm/radio-group/radio-group.definition.d.ts +3 -6
  822. package/dist/esm/radio-group/radio-group.definition.js +7 -9
  823. package/dist/esm/radio-group/radio-group.definition.js.map +1 -1
  824. package/dist/esm/radio-group/radio-group.js +21 -492
  825. package/dist/esm/radio-group/radio-group.js.map +1 -1
  826. package/dist/esm/radio-group/radio-group.options.d.ts +7 -1
  827. package/dist/esm/radio-group/radio-group.options.js +8 -1
  828. package/dist/esm/radio-group/radio-group.options.js.map +1 -1
  829. package/dist/esm/radio-group/radio-group.styles.css +45 -0
  830. package/dist/esm/radio-group/radio-group.styles.js +1 -1
  831. package/dist/esm/radio-group/radio-group.styles.js.map +1 -1
  832. package/dist/esm/radio-group/radio-group.template.html +13 -0
  833. package/dist/esm/radio-group/radio-group.template.js +3 -3
  834. package/dist/esm/radio-group/radio-group.template.js.map +1 -1
  835. package/dist/esm/rating-display/define-async.d.ts +1 -0
  836. package/dist/esm/rating-display/define-async.js +4 -0
  837. package/dist/esm/rating-display/define-async.js.map +1 -0
  838. package/dist/esm/rating-display/define.js +2 -2
  839. package/dist/esm/rating-display/define.js.map +1 -1
  840. package/dist/esm/rating-display/index.d.ts +1 -0
  841. package/dist/esm/rating-display/index.js +1 -0
  842. package/dist/esm/rating-display/index.js.map +1 -1
  843. package/dist/esm/rating-display/rating-display.base.d.ts +11 -1
  844. package/dist/esm/rating-display/rating-display.base.js +24 -11
  845. package/dist/esm/rating-display/rating-display.base.js.map +1 -1
  846. package/dist/esm/rating-display/rating-display.definition-async.d.ts +10 -0
  847. package/dist/esm/rating-display/rating-display.definition-async.js +17 -0
  848. package/dist/esm/rating-display/rating-display.definition-async.js.map +1 -0
  849. package/dist/esm/rating-display/rating-display.definition.d.ts +3 -5
  850. package/dist/esm/rating-display/rating-display.definition.js +7 -8
  851. package/dist/esm/rating-display/rating-display.definition.js.map +1 -1
  852. package/dist/esm/rating-display/rating-display.options.d.ts +7 -1
  853. package/dist/esm/rating-display/rating-display.options.js +7 -0
  854. package/dist/esm/rating-display/rating-display.options.js.map +1 -1
  855. package/dist/esm/rating-display/rating-display.styles.css +142 -0
  856. package/dist/esm/rating-display/rating-display.styles.js +5 -3
  857. package/dist/esm/rating-display/rating-display.styles.js.map +1 -1
  858. package/dist/esm/rating-display/rating-display.template.html +9 -0
  859. package/dist/esm/slider/define-async.d.ts +1 -0
  860. package/dist/esm/slider/define-async.js +4 -0
  861. package/dist/esm/slider/define-async.js.map +1 -0
  862. package/dist/esm/slider/define.js +2 -2
  863. package/dist/esm/slider/define.js.map +1 -1
  864. package/dist/esm/slider/index.d.ts +1 -0
  865. package/dist/esm/slider/index.js +1 -0
  866. package/dist/esm/slider/index.js.map +1 -1
  867. package/dist/esm/slider/slider-utilities.d.ts +1 -1
  868. package/dist/esm/slider/slider-utilities.js +2 -1
  869. package/dist/esm/slider/slider-utilities.js.map +1 -1
  870. package/dist/esm/slider/slider.bench.d.ts +1 -0
  871. package/dist/esm/slider/slider.bench.js +1 -3
  872. package/dist/esm/slider/slider.bench.js.map +1 -1
  873. package/dist/esm/slider/slider.d.ts +10 -5
  874. package/dist/esm/slider/slider.definition-async.d.ts +10 -0
  875. package/dist/esm/slider/slider.definition-async.js +17 -0
  876. package/dist/esm/slider/slider.definition-async.js.map +1 -0
  877. package/dist/esm/slider/slider.definition.d.ts +3 -6
  878. package/dist/esm/slider/slider.definition.js +7 -9
  879. package/dist/esm/slider/slider.definition.js.map +1 -1
  880. package/dist/esm/slider/slider.js +58 -36
  881. package/dist/esm/slider/slider.js.map +1 -1
  882. package/dist/esm/slider/slider.options.d.ts +9 -2
  883. package/dist/esm/slider/slider.options.js +8 -1
  884. package/dist/esm/slider/slider.options.js.map +1 -1
  885. package/dist/esm/slider/slider.styles.css +193 -0
  886. package/dist/esm/slider/slider.styles.js +5 -3
  887. package/dist/esm/slider/slider.styles.js.map +1 -1
  888. package/dist/esm/slider/slider.template.html +15 -0
  889. package/dist/esm/spinner/define-async.d.ts +1 -0
  890. package/dist/esm/spinner/define-async.js +4 -0
  891. package/dist/esm/spinner/define-async.js.map +1 -0
  892. package/dist/esm/spinner/define.js +2 -2
  893. package/dist/esm/spinner/define.js.map +1 -1
  894. package/dist/esm/spinner/index.d.ts +1 -0
  895. package/dist/esm/spinner/index.js +1 -0
  896. package/dist/esm/spinner/index.js.map +1 -1
  897. package/dist/esm/spinner/spinner.bench.d.ts +1 -0
  898. package/dist/esm/spinner/spinner.bench.js +1 -3
  899. package/dist/esm/spinner/spinner.bench.js.map +1 -1
  900. package/dist/esm/spinner/spinner.definition-async.d.ts +10 -0
  901. package/dist/esm/spinner/spinner.definition-async.js +17 -0
  902. package/dist/esm/spinner/spinner.definition-async.js.map +1 -0
  903. package/dist/esm/spinner/spinner.definition.d.ts +4 -4
  904. package/dist/esm/spinner/spinner.definition.js +8 -7
  905. package/dist/esm/spinner/spinner.definition.js.map +1 -1
  906. package/dist/esm/spinner/spinner.options.d.ts +7 -1
  907. package/dist/esm/spinner/spinner.options.js +7 -0
  908. package/dist/esm/spinner/spinner.options.js.map +1 -1
  909. package/dist/esm/spinner/spinner.styles.css +159 -0
  910. package/dist/esm/spinner/spinner.styles.js +5 -3
  911. package/dist/esm/spinner/spinner.styles.js.map +1 -1
  912. package/dist/esm/spinner/spinner.template.html +18 -0
  913. package/dist/esm/styles/index.d.ts +2 -1
  914. package/dist/esm/styles/index.js +2 -1
  915. package/dist/esm/styles/index.js.map +1 -1
  916. package/dist/esm/styles/partials/badge.partials.d.ts +2 -1
  917. package/dist/esm/styles/partials/badge.partials.js +3 -2
  918. package/dist/esm/styles/partials/badge.partials.js.map +1 -1
  919. package/dist/esm/switch/define-async.d.ts +1 -0
  920. package/dist/esm/switch/define-async.js +4 -0
  921. package/dist/esm/switch/define-async.js.map +1 -0
  922. package/dist/esm/switch/define.js +2 -2
  923. package/dist/esm/switch/define.js.map +1 -1
  924. package/dist/esm/switch/index.d.ts +1 -0
  925. package/dist/esm/switch/index.js +1 -0
  926. package/dist/esm/switch/index.js.map +1 -1
  927. package/dist/esm/switch/switch.bench.d.ts +1 -0
  928. package/dist/esm/switch/switch.bench.js +1 -3
  929. package/dist/esm/switch/switch.bench.js.map +1 -1
  930. package/dist/esm/switch/switch.d.ts +2 -1
  931. package/dist/esm/switch/switch.definition-async.d.ts +10 -0
  932. package/dist/esm/switch/switch.definition-async.js +17 -0
  933. package/dist/esm/switch/switch.definition-async.js.map +1 -0
  934. package/dist/esm/switch/switch.definition.d.ts +3 -5
  935. package/dist/esm/switch/switch.definition.js +8 -9
  936. package/dist/esm/switch/switch.definition.js.map +1 -1
  937. package/dist/esm/switch/switch.js +1 -0
  938. package/dist/esm/switch/switch.js.map +1 -1
  939. package/dist/esm/switch/switch.options.d.ts +7 -1
  940. package/dist/esm/switch/switch.options.js +7 -0
  941. package/dist/esm/switch/switch.options.js.map +1 -1
  942. package/dist/esm/switch/switch.styles.css +125 -0
  943. package/dist/esm/switch/switch.styles.js +4 -3
  944. package/dist/esm/switch/switch.styles.js.map +1 -1
  945. package/dist/esm/switch/switch.template.html +11 -0
  946. package/dist/esm/switch/switch.template.js +1 -1
  947. package/dist/esm/switch/switch.template.js.map +1 -1
  948. package/dist/esm/tab/define-async.d.ts +1 -0
  949. package/dist/esm/tab/define-async.js +4 -0
  950. package/dist/esm/tab/define-async.js.map +1 -0
  951. package/dist/esm/tab/define.js +2 -2
  952. package/dist/esm/tab/define.js.map +1 -1
  953. package/dist/esm/tab/index.d.ts +1 -0
  954. package/dist/esm/tab/index.js +1 -0
  955. package/dist/esm/tab/index.js.map +1 -1
  956. package/dist/esm/tab/tab.bench.d.ts +1 -0
  957. package/dist/esm/tab/tab.bench.js +1 -3
  958. package/dist/esm/tab/tab.bench.js.map +1 -1
  959. package/dist/esm/tab/tab.d.ts +15 -1
  960. package/dist/esm/tab/tab.definition-async.d.ts +10 -0
  961. package/dist/esm/tab/tab.definition-async.js +17 -0
  962. package/dist/esm/tab/tab.definition-async.js.map +1 -0
  963. package/dist/esm/tab/tab.definition.d.ts +7 -2
  964. package/dist/esm/tab/tab.definition.js +12 -6
  965. package/dist/esm/tab/tab.definition.js.map +1 -1
  966. package/dist/esm/tab/tab.js +28 -2
  967. package/dist/esm/tab/tab.js.map +1 -1
  968. package/dist/esm/tab/tab.options.d.ts +6 -0
  969. package/dist/esm/tab/tab.options.js +7 -0
  970. package/dist/esm/tab/tab.options.js.map +1 -1
  971. package/dist/esm/tab/tab.styles.css +122 -0
  972. package/dist/esm/tab/tab.styles.js +23 -3
  973. package/dist/esm/tab/tab.styles.js.map +1 -1
  974. package/dist/esm/tab/tab.template.html +8 -0
  975. package/dist/esm/tab/tab.template.js +2 -2
  976. package/dist/esm/tab/tab.template.js.map +1 -1
  977. package/dist/esm/tablist/define-async.d.ts +1 -0
  978. package/dist/esm/tablist/define-async.js +4 -0
  979. package/dist/esm/tablist/define-async.js.map +1 -0
  980. package/dist/esm/tablist/define.js +2 -2
  981. package/dist/esm/tablist/define.js.map +1 -1
  982. package/dist/esm/tablist/index.d.ts +1 -0
  983. package/dist/esm/tablist/index.js +1 -0
  984. package/dist/esm/tablist/index.js.map +1 -1
  985. package/dist/esm/tablist/tablist.base.d.ts +15 -46
  986. package/dist/esm/tablist/tablist.base.js +114 -209
  987. package/dist/esm/tablist/tablist.base.js.map +1 -1
  988. package/dist/esm/tablist/tablist.bench.d.ts +2 -0
  989. package/dist/esm/tablist/tablist.bench.js +2 -5
  990. package/dist/esm/tablist/tablist.bench.js.map +1 -1
  991. package/dist/esm/tablist/tablist.d.ts +8 -74
  992. package/dist/esm/tablist/tablist.definition-async.d.ts +10 -0
  993. package/dist/esm/tablist/tablist.definition-async.js +20 -0
  994. package/dist/esm/tablist/tablist.definition-async.js.map +1 -0
  995. package/dist/esm/tablist/tablist.definition.d.ts +4 -4
  996. package/dist/esm/tablist/tablist.definition.js +9 -8
  997. package/dist/esm/tablist/tablist.definition.js.map +1 -1
  998. package/dist/esm/tablist/tablist.js +23 -132
  999. package/dist/esm/tablist/tablist.js.map +1 -1
  1000. package/dist/esm/tablist/tablist.options.d.ts +7 -1
  1001. package/dist/esm/tablist/tablist.options.js +8 -1
  1002. package/dist/esm/tablist/tablist.options.js.map +1 -1
  1003. package/dist/esm/tablist/tablist.styles.css +207 -0
  1004. package/dist/esm/tablist/tablist.styles.js +83 -65
  1005. package/dist/esm/tablist/tablist.styles.js.map +1 -1
  1006. package/dist/esm/tablist/tablist.template.html +6 -0
  1007. package/dist/esm/tablist/tablist.template.js +5 -1
  1008. package/dist/esm/tablist/tablist.template.js.map +1 -1
  1009. package/dist/esm/text/define-async.d.ts +1 -0
  1010. package/dist/esm/text/define-async.js +4 -0
  1011. package/dist/esm/text/define-async.js.map +1 -0
  1012. package/dist/esm/text/define.js +2 -2
  1013. package/dist/esm/text/define.js.map +1 -1
  1014. package/dist/esm/text/index.d.ts +1 -0
  1015. package/dist/esm/text/index.js +1 -0
  1016. package/dist/esm/text/index.js.map +1 -1
  1017. package/dist/esm/text/text.bench.d.ts +1 -0
  1018. package/dist/esm/text/text.bench.js +1 -3
  1019. package/dist/esm/text/text.bench.js.map +1 -1
  1020. package/dist/esm/text/text.d.ts +2 -0
  1021. package/dist/esm/text/text.definition-async.d.ts +10 -0
  1022. package/dist/esm/text/text.definition-async.js +17 -0
  1023. package/dist/esm/text/text.definition-async.js.map +1 -0
  1024. package/dist/esm/text/text.definition.d.ts +3 -6
  1025. package/dist/esm/text/text.definition.js +7 -9
  1026. package/dist/esm/text/text.definition.js.map +1 -1
  1027. package/dist/esm/text/text.js +2 -0
  1028. package/dist/esm/text/text.js.map +1 -1
  1029. package/dist/esm/text/text.options.d.ts +7 -1
  1030. package/dist/esm/text/text.options.js +7 -0
  1031. package/dist/esm/text/text.options.js.map +1 -1
  1032. package/dist/esm/text/text.styles.css +108 -0
  1033. package/dist/esm/text/text.styles.js +1 -1
  1034. package/dist/esm/text/text.styles.js.map +1 -1
  1035. package/dist/esm/text/text.template.html +6 -0
  1036. package/dist/esm/text-input/define-async.d.ts +1 -0
  1037. package/dist/esm/text-input/define-async.js +4 -0
  1038. package/dist/esm/text-input/define-async.js.map +1 -0
  1039. package/dist/esm/text-input/define.js +2 -2
  1040. package/dist/esm/text-input/define.js.map +1 -1
  1041. package/dist/esm/text-input/index.d.ts +1 -0
  1042. package/dist/esm/text-input/index.js +1 -0
  1043. package/dist/esm/text-input/index.js.map +1 -1
  1044. package/dist/esm/text-input/text-input.base.d.ts +4 -22
  1045. package/dist/esm/text-input/text-input.base.js +20 -34
  1046. package/dist/esm/text-input/text-input.base.js.map +1 -1
  1047. package/dist/esm/text-input/text-input.bench.d.ts +1 -0
  1048. package/dist/esm/text-input/text-input.bench.js +1 -3
  1049. package/dist/esm/text-input/text-input.bench.js.map +1 -1
  1050. package/dist/esm/text-input/text-input.d.ts +2 -0
  1051. package/dist/esm/text-input/text-input.definition-async.d.ts +10 -0
  1052. package/dist/esm/text-input/text-input.definition-async.js +20 -0
  1053. package/dist/esm/text-input/text-input.definition-async.js.map +1 -0
  1054. package/dist/esm/text-input/text-input.definition.d.ts +3 -5
  1055. package/dist/esm/text-input/text-input.definition.js +8 -9
  1056. package/dist/esm/text-input/text-input.definition.js.map +1 -1
  1057. package/dist/esm/text-input/text-input.js +2 -0
  1058. package/dist/esm/text-input/text-input.js.map +1 -1
  1059. package/dist/esm/text-input/text-input.options.d.ts +6 -0
  1060. package/dist/esm/text-input/text-input.options.js +7 -0
  1061. package/dist/esm/text-input/text-input.options.js.map +1 -1
  1062. package/dist/esm/text-input/text-input.styles.css +204 -0
  1063. package/dist/esm/text-input/text-input.template.d.ts +1 -1
  1064. package/dist/esm/text-input/text-input.template.html +35 -0
  1065. package/dist/esm/text-input/text-input.template.js +4 -15
  1066. package/dist/esm/text-input/text-input.template.js.map +1 -1
  1067. package/dist/esm/textarea/define-async.d.ts +1 -0
  1068. package/dist/esm/textarea/define-async.js +4 -0
  1069. package/dist/esm/textarea/define-async.js.map +1 -0
  1070. package/dist/esm/textarea/define.js +2 -2
  1071. package/dist/esm/textarea/define.js.map +1 -1
  1072. package/dist/esm/textarea/index.d.ts +1 -0
  1073. package/dist/esm/textarea/index.js +1 -0
  1074. package/dist/esm/textarea/index.js.map +1 -1
  1075. package/dist/esm/textarea/textarea.base.d.ts +14 -5
  1076. package/dist/esm/textarea/textarea.base.js +58 -36
  1077. package/dist/esm/textarea/textarea.base.js.map +1 -1
  1078. package/dist/esm/textarea/textarea.bench.d.ts +1 -0
  1079. package/dist/esm/textarea/textarea.bench.js +1 -3
  1080. package/dist/esm/textarea/textarea.bench.js.map +1 -1
  1081. package/dist/esm/textarea/textarea.definition-async.d.ts +10 -0
  1082. package/dist/esm/textarea/textarea.definition-async.js +20 -0
  1083. package/dist/esm/textarea/textarea.definition-async.js.map +1 -0
  1084. package/dist/esm/textarea/textarea.definition.d.ts +3 -5
  1085. package/dist/esm/textarea/textarea.definition.js +8 -9
  1086. package/dist/esm/textarea/textarea.definition.js.map +1 -1
  1087. package/dist/esm/textarea/textarea.options.d.ts +6 -0
  1088. package/dist/esm/textarea/textarea.options.js +7 -0
  1089. package/dist/esm/textarea/textarea.options.js.map +1 -1
  1090. package/dist/esm/textarea/textarea.styles.css +262 -0
  1091. package/dist/esm/textarea/textarea.styles.js +4 -3
  1092. package/dist/esm/textarea/textarea.styles.js.map +1 -1
  1093. package/dist/esm/textarea/textarea.template.html +30 -0
  1094. package/dist/esm/textarea/textarea.template.js +1 -1
  1095. package/dist/esm/textarea/textarea.template.js.map +1 -1
  1096. package/dist/esm/theme/design-tokens.d.ts +115 -0
  1097. package/dist/esm/theme/design-tokens.js +115 -0
  1098. package/dist/esm/theme/design-tokens.js.map +1 -1
  1099. package/dist/esm/theme/index.d.ts +1 -1
  1100. package/dist/esm/theme/index.js +1 -1
  1101. package/dist/esm/theme/index.js.map +1 -1
  1102. package/dist/esm/theme/set-theme.d.ts +2 -7
  1103. package/dist/esm/theme/set-theme.js +2 -9
  1104. package/dist/esm/theme/set-theme.js.map +1 -1
  1105. package/dist/esm/toggle-button/define-async.d.ts +1 -0
  1106. package/dist/esm/toggle-button/define-async.js +4 -0
  1107. package/dist/esm/toggle-button/define-async.js.map +1 -0
  1108. package/dist/esm/toggle-button/define.js +2 -2
  1109. package/dist/esm/toggle-button/define.js.map +1 -1
  1110. package/dist/esm/toggle-button/index.d.ts +1 -0
  1111. package/dist/esm/toggle-button/index.js +1 -0
  1112. package/dist/esm/toggle-button/index.js.map +1 -1
  1113. package/dist/esm/toggle-button/toggle-button.bench.d.ts +1 -0
  1114. package/dist/esm/toggle-button/toggle-button.bench.js +1 -3
  1115. package/dist/esm/toggle-button/toggle-button.bench.js.map +1 -1
  1116. package/dist/esm/toggle-button/toggle-button.definition-async.d.ts +10 -0
  1117. package/dist/esm/toggle-button/toggle-button.definition-async.js +17 -0
  1118. package/dist/esm/toggle-button/toggle-button.definition-async.js.map +1 -0
  1119. package/dist/esm/toggle-button/toggle-button.definition.d.ts +3 -4
  1120. package/dist/esm/toggle-button/toggle-button.definition.js +7 -7
  1121. package/dist/esm/toggle-button/toggle-button.definition.js.map +1 -1
  1122. package/dist/esm/toggle-button/toggle-button.js +2 -3
  1123. package/dist/esm/toggle-button/toggle-button.js.map +1 -1
  1124. package/dist/esm/toggle-button/toggle-button.options.d.ts +8 -2
  1125. package/dist/esm/toggle-button/toggle-button.options.js +7 -0
  1126. package/dist/esm/toggle-button/toggle-button.options.js.map +1 -1
  1127. package/dist/esm/toggle-button/toggle-button.styles.css +364 -0
  1128. package/dist/esm/toggle-button/toggle-button.styles.js +7 -3
  1129. package/dist/esm/toggle-button/toggle-button.styles.js.map +1 -1
  1130. package/dist/esm/toggle-button/toggle-button.template.html +10 -0
  1131. package/dist/esm/tooltip/define-async.d.ts +1 -0
  1132. package/dist/esm/tooltip/define-async.js +4 -0
  1133. package/dist/esm/tooltip/define-async.js.map +1 -0
  1134. package/dist/esm/tooltip/define.js +2 -2
  1135. package/dist/esm/tooltip/define.js.map +1 -1
  1136. package/dist/esm/tooltip/index.d.ts +1 -0
  1137. package/dist/esm/tooltip/index.js +1 -0
  1138. package/dist/esm/tooltip/index.js.map +1 -1
  1139. package/dist/esm/tooltip/tooltip.d.ts +13 -11
  1140. package/dist/esm/tooltip/tooltip.definition-async.d.ts +10 -0
  1141. package/dist/esm/tooltip/tooltip.definition-async.js +17 -0
  1142. package/dist/esm/tooltip/tooltip.definition-async.js.map +1 -0
  1143. package/dist/esm/tooltip/tooltip.definition.d.ts +3 -5
  1144. package/dist/esm/tooltip/tooltip.definition.js +7 -8
  1145. package/dist/esm/tooltip/tooltip.definition.js.map +1 -1
  1146. package/dist/esm/tooltip/tooltip.js +44 -10
  1147. package/dist/esm/tooltip/tooltip.js.map +1 -1
  1148. package/dist/esm/tooltip/tooltip.options.d.ts +6 -0
  1149. package/dist/esm/tooltip/tooltip.options.js +7 -0
  1150. package/dist/esm/tooltip/tooltip.options.js.map +1 -1
  1151. package/dist/esm/tooltip/tooltip.styles.css +90 -0
  1152. package/dist/esm/tooltip/tooltip.styles.js +1 -1
  1153. package/dist/esm/tooltip/tooltip.template.html +6 -0
  1154. package/dist/esm/tree/define-async.d.ts +1 -0
  1155. package/dist/esm/tree/define-async.js +4 -0
  1156. package/dist/esm/tree/define-async.js.map +1 -0
  1157. package/dist/esm/tree/define.js +2 -2
  1158. package/dist/esm/tree/define.js.map +1 -1
  1159. package/dist/esm/tree/index.d.ts +1 -0
  1160. package/dist/esm/tree/index.js +1 -0
  1161. package/dist/esm/tree/index.js.map +1 -1
  1162. package/dist/esm/tree/tree.base.d.ts +12 -27
  1163. package/dist/esm/tree/tree.base.js +36 -105
  1164. package/dist/esm/tree/tree.base.js.map +1 -1
  1165. package/dist/esm/tree/tree.bench.d.ts +1 -0
  1166. package/dist/esm/tree/tree.bench.js +1 -3
  1167. package/dist/esm/tree/tree.bench.js.map +1 -1
  1168. package/dist/esm/tree/tree.d.ts +13 -2
  1169. package/dist/esm/tree/tree.definition-async.d.ts +10 -0
  1170. package/dist/esm/tree/tree.definition-async.js +17 -0
  1171. package/dist/esm/tree/tree.definition-async.js.map +1 -0
  1172. package/dist/esm/tree/tree.definition.d.ts +3 -4
  1173. package/dist/esm/tree/tree.definition.js +10 -10
  1174. package/dist/esm/tree/tree.definition.js.map +1 -1
  1175. package/dist/esm/tree/tree.js +31 -2
  1176. package/dist/esm/tree/tree.js.map +1 -1
  1177. package/dist/esm/tree/tree.options.d.ts +6 -0
  1178. package/dist/esm/tree/tree.options.js +8 -0
  1179. package/dist/esm/tree/tree.options.js.map +1 -0
  1180. package/dist/esm/tree/tree.styles.css +10 -0
  1181. package/dist/esm/tree/tree.template.html +13 -0
  1182. package/dist/esm/tree/tree.template.js +2 -2
  1183. package/dist/esm/tree/tree.template.js.map +1 -1
  1184. package/dist/esm/tree-item/define-async.d.ts +1 -0
  1185. package/dist/esm/tree-item/define-async.js +4 -0
  1186. package/dist/esm/tree-item/define-async.js.map +1 -0
  1187. package/dist/esm/tree-item/define.js +2 -2
  1188. package/dist/esm/tree-item/define.js.map +1 -1
  1189. package/dist/esm/tree-item/index.d.ts +1 -0
  1190. package/dist/esm/tree-item/index.js +1 -0
  1191. package/dist/esm/tree-item/index.js.map +1 -1
  1192. package/dist/esm/tree-item/tree-item.base.d.ts +31 -5
  1193. package/dist/esm/tree-item/tree-item.base.js +69 -21
  1194. package/dist/esm/tree-item/tree-item.base.js.map +1 -1
  1195. package/dist/esm/tree-item/tree-item.bench.d.ts +1 -0
  1196. package/dist/esm/tree-item/tree-item.bench.js +1 -3
  1197. package/dist/esm/tree-item/tree-item.bench.js.map +1 -1
  1198. package/dist/esm/tree-item/tree-item.d.ts +15 -0
  1199. package/dist/esm/tree-item/tree-item.definition-async.d.ts +10 -0
  1200. package/dist/esm/tree-item/tree-item.definition-async.js +17 -0
  1201. package/dist/esm/tree-item/tree-item.definition-async.js.map +1 -0
  1202. package/dist/esm/tree-item/tree-item.definition.d.ts +3 -4
  1203. package/dist/esm/tree-item/tree-item.definition.js +10 -10
  1204. package/dist/esm/tree-item/tree-item.definition.js.map +1 -1
  1205. package/dist/esm/tree-item/tree-item.js +15 -0
  1206. package/dist/esm/tree-item/tree-item.js.map +1 -1
  1207. package/dist/esm/tree-item/tree-item.options.d.ts +6 -0
  1208. package/dist/esm/tree-item/tree-item.options.js +7 -0
  1209. package/dist/esm/tree-item/tree-item.options.js.map +1 -1
  1210. package/dist/esm/tree-item/tree-item.styles.css +161 -0
  1211. package/dist/esm/tree-item/tree-item.template.html +27 -0
  1212. package/dist/esm/tree-item/tree-item.template.js +1 -1
  1213. package/dist/esm/tree-item/tree-item.template.js.map +1 -1
  1214. package/dist/esm/utils/autofocus.d.ts +12 -0
  1215. package/dist/esm/utils/autofocus.js +25 -0
  1216. package/dist/esm/utils/autofocus.js.map +1 -0
  1217. package/dist/esm/utils/direction.d.ts +13 -1
  1218. package/dist/esm/utils/direction.js +8 -1
  1219. package/dist/esm/utils/direction.js.map +1 -1
  1220. package/dist/esm/utils/focusable-element.js +2 -1
  1221. package/dist/esm/utils/focusable-element.js.map +1 -1
  1222. package/dist/esm/utils/focusgroup.d.ts +22 -0
  1223. package/dist/esm/utils/focusgroup.js +42 -0
  1224. package/dist/esm/utils/focusgroup.js.map +1 -0
  1225. package/dist/esm/utils/index.d.ts +2 -1
  1226. package/dist/esm/utils/index.js +2 -1
  1227. package/dist/esm/utils/index.js.map +1 -1
  1228. package/dist/esm/utils/numbers.d.ts +5 -0
  1229. package/dist/esm/utils/numbers.js +9 -0
  1230. package/dist/esm/utils/numbers.js.map +1 -0
  1231. package/dist/esm/utils/orientation.d.ts +13 -0
  1232. package/dist/esm/utils/orientation.js +10 -0
  1233. package/dist/esm/utils/orientation.js.map +1 -0
  1234. package/dist/esm/utils/request-idle-callback.d.ts +15 -0
  1235. package/dist/esm/utils/request-idle-callback.js +11 -10
  1236. package/dist/esm/utils/request-idle-callback.js.map +1 -1
  1237. package/dist/esm/utils/typings.d.ts +12 -0
  1238. package/dist/esm/utils/typings.js +21 -1
  1239. package/dist/esm/utils/typings.js.map +1 -1
  1240. package/dist/web-components-all.js +15035 -0
  1241. package/dist/web-components-all.min.js +43 -0
  1242. package/dist/web-components.d.ts +1370 -1362
  1243. package/dist/web-components.js +8334 -7800
  1244. package/dist/web-components.min.js +27 -567
  1245. package/package.json +35 -13
  1246. package/dist/esm/tab-panel/define.js +0 -7
  1247. package/dist/esm/tab-panel/define.js.map +0 -1
  1248. package/dist/esm/tab-panel/index.d.ts +0 -4
  1249. package/dist/esm/tab-panel/index.js +0 -5
  1250. package/dist/esm/tab-panel/index.js.map +0 -1
  1251. package/dist/esm/tab-panel/tab-panel.bench.d.ts +0 -3
  1252. package/dist/esm/tab-panel/tab-panel.bench.js +0 -13
  1253. package/dist/esm/tab-panel/tab-panel.bench.js.map +0 -1
  1254. package/dist/esm/tab-panel/tab-panel.d.ts +0 -8
  1255. package/dist/esm/tab-panel/tab-panel.definition.d.ts +0 -5
  1256. package/dist/esm/tab-panel/tab-panel.definition.js +0 -13
  1257. package/dist/esm/tab-panel/tab-panel.definition.js.map +0 -1
  1258. package/dist/esm/tab-panel/tab-panel.js +0 -9
  1259. package/dist/esm/tab-panel/tab-panel.js.map +0 -1
  1260. package/dist/esm/tab-panel/tab-panel.styles.js +0 -12
  1261. package/dist/esm/tab-panel/tab-panel.styles.js.map +0 -1
  1262. package/dist/esm/tab-panel/tab-panel.template.d.ts +0 -7
  1263. package/dist/esm/tab-panel/tab-panel.template.js +0 -13
  1264. package/dist/esm/tab-panel/tab-panel.template.js.map +0 -1
  1265. package/dist/esm/tabs/define.js +0 -7
  1266. package/dist/esm/tabs/define.js.map +0 -1
  1267. package/dist/esm/tabs/index.d.ts +0 -6
  1268. package/dist/esm/tabs/index.js +0 -6
  1269. package/dist/esm/tabs/index.js.map +0 -1
  1270. package/dist/esm/tabs/tabs.base.d.ts +0 -90
  1271. package/dist/esm/tabs/tabs.base.js +0 -279
  1272. package/dist/esm/tabs/tabs.base.js.map +0 -1
  1273. package/dist/esm/tabs/tabs.bench.d.ts +0 -3
  1274. package/dist/esm/tabs/tabs.bench.js +0 -32
  1275. package/dist/esm/tabs/tabs.bench.js.map +0 -1
  1276. package/dist/esm/tabs/tabs.d.ts +0 -100
  1277. package/dist/esm/tabs/tabs.definition.d.ts +0 -5
  1278. package/dist/esm/tabs/tabs.definition.js +0 -13
  1279. package/dist/esm/tabs/tabs.definition.js.map +0 -1
  1280. package/dist/esm/tabs/tabs.js +0 -180
  1281. package/dist/esm/tabs/tabs.js.map +0 -1
  1282. package/dist/esm/tabs/tabs.options.d.ts +0 -32
  1283. package/dist/esm/tabs/tabs.options.js +0 -16
  1284. package/dist/esm/tabs/tabs.options.js.map +0 -1
  1285. package/dist/esm/tabs/tabs.styles.d.ts +0 -1
  1286. package/dist/esm/tabs/tabs.styles.js +0 -230
  1287. package/dist/esm/tabs/tabs.styles.js.map +0 -1
  1288. package/dist/esm/tabs/tabs.template.d.ts +0 -8
  1289. package/dist/esm/tabs/tabs.template.js +0 -19
  1290. package/dist/esm/tabs/tabs.template.js.map +0 -1
  1291. package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.d.ts +0 -124
  1292. package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js +0 -142
  1293. package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +0 -1
  1294. /package/dist/esm/{tabs/define.d.ts → accordion/define-async.d.ts} +0 -0
  1295. /package/dist/esm/{tab-panel/define.d.ts → accordion-item/define-async.d.ts} +0 -0
@@ -1,583 +1,43 @@
1
- const p=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let Ho;const is="fast-kernel";try{if(document.currentScript)Ho=document.currentScript.getAttribute(is);else{const o=document.getElementsByTagName("script");Ho=o[o.length-1].getAttribute(is)}}catch{Ho="isolate"}let dt;switch(Ho){case"share":dt=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":dt=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;dt=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const Ot=o=>typeof o=="function",Ge=o=>typeof o=="string",Ba=()=>{};var Ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof Ui<"u")Ui.globalThis=Ui;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const e=new Function("return this")();e.globalThis=e}})();const rs={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},rs));const ie=globalThis.FAST;if(ie.getById===void 0){const o=Object.create(null);Reflect.defineProperty(ie,"getById",Object.assign({value(e,t){let i=o[e];return i===void 0&&(i=t?o[e]=t():null),i}},rs))}ie.error===void 0&&Object.assign(ie,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const Oa=Object.freeze([]);function Ki(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function ss(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let i=Reflect.getPrototypeOf(e);for(;t===void 0&&i!==null;)t=o.get(i),i=Reflect.getPrototypeOf(i);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function ht(o){o.prototype.toJSON=Ba}const Q=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),ns=o=>o,_a=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:ns}):{createHTML:ns};let Vo=Object.freeze({createHTML(o){return _a.createHTML(o)},protect(o,e,t,i){return i}});const Aa=Vo,ut=Object.freeze({get policy(){return Vo},setPolicy(o){if(Vo!==Aa)throw ie.error(1201);Vo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),Z=ie.getById(dt.updateQueue,()=>{const o=[],e=[],t=globalThis.requestAnimationFrame;let i=!0;function r(){if(e.length)throw e.shift()}function s(h){try{h.call()}catch(d){if(i)e.push(d),setTimeout(r,0);else throw o.length=0,d}}function n(){let d=0;for(;d<o.length;)if(s(o[d]),d++,d>1024){for(let l=0,f=o.length-d;l<f;l++)o[l]=o[l+d];o.length-=d,d=0}o.length=0}function c(h){o.push(h),o.length<2&&(i?t(n):n())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:n,setMode:h=>i=h})});class Yi{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const i=t.indexOf(e);i!==-1&&t.splice(i,1)}}notify(e){const t=this.spillover,i=this.subject;if(t===void 0){const r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(i,e),s!==void 0&&s.handleChange(i,e)}else for(let r=0,s=t.length;r<s;++r)t[r].handleChange(i,e)}}class as{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,i;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(i=this.subjectSubscribers)===null||i===void 0||i.notify(e)}subscribe(e,t){var i,r;let s;t?s=(i=this.subscribers[t])!==null&&i!==void 0?i:this.subscribers[t]=new Yi(this.subject):s=(r=this.subjectSubscribers)!==null&&r!==void 0?r:this.subjectSubscribers=new Yi(this.subject),s.subscribe(e)}unsubscribe(e,t){var i,r;t?(i=this.subscribers[t])===null||i===void 0||i.unsubscribe(e):(r=this.subjectSubscribers)===null||r===void 0||r.unsubscribe(e)}}const Lo=Object.freeze({unknown:void 0,coupled:1}),m=ie.getById(dt.observable,()=>{const o=Z.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let i,r=d=>{throw ie.error(1101)};function s(d){var l;let f=(l=d.$fastController)!==null&&l!==void 0?l:t.get(d);return f===void 0&&(Array.isArray(d)?f=r(d):t.set(d,f=new as(d))),f}const n=ss();class c{constructor(l){this.name=l,this.field=`_${l}`,this.callback=`${l}Changed`}getValue(l){return i!==void 0&&i.watch(l,this.name),l[this.field]}setValue(l,f){const w=this.field,pe=l[w];if(pe!==f){l[w]=f;const et=l[this.callback];Ot(et)&&et.call(l,pe,f),s(l).notify(this.name)}}}class h extends Yi{constructor(l,f,w=!1){super(l,f),this.expression=l,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(l){this.isAsync=this.needsQueue=l}bind(l){this.controller=l;const f=this.observe(l.source,l.context);return!l.isBound&&this.requiresUnbind(l)&&l.onUnbind(this),f}requiresUnbind(l){return l.sourceLifetime!==Lo.coupled||this.first!==this.last||this.first.propertySource!==l.source}unbind(l){this.dispose()}observe(l,f){this.needsRefresh&&this.last!==null&&this.dispose();const w=i;i=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let pe;try{pe=this.expression(l,f)}finally{i=w}return pe}disconnect(){this.dispose()}dispose(){if(this.last!==null){let l=this.first;for(;l!==void 0;)l.notifier.unsubscribe(this,l.propertyName),l=l.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(l,f){const w=this.last,pe=s(l),et=w===null?this.first:{};if(et.propertySource=l,et.propertyName=f,et.notifier=pe,pe.subscribe(this,f),w!==null){if(!this.needsRefresh){let os;i=void 0,os=w.propertySource[w.propertyName],i=this,l===os&&(this.needsRefresh=!0)}w.next=et}this.last=et}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let l=this.first;for(;l!==void 0;)yield l,l=l.next}}return ht(h),Object.freeze({setArrayObserverFactory(d){r=d},getNotifier:s,track(d,l){i&&i.watch(d,l)},trackVolatile(){i&&(i.needsRefresh=!0)},notify(d,l){s(d).notify(l)},defineProperty(d,l){Ge(l)&&(l=new c(l)),n(d).push(l),Reflect.defineProperty(d,l.name,{enumerable:!0,get(){return l.getValue(this)},set(f){l.setValue(this,f)}})},getAccessors:n,binding(d,l,f=this.isVolatileBinding(d)){return new h(d,l,f)},isVolatileBinding(d){return e.test(d.toString())}})});function g(o,e){m.defineProperty(o,e)}function ls(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const cs=ie.getById(dt.contextEvent,()=>{let o=null;return{get(){return o},set(e){o=e}}}),_t=Object.freeze({default:{index:0,length:0,get event(){return _t.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return cs.get()},setEvent(o){cs.set(o)}});class jo{constructor(e,t,i=!1){this.evaluate=e,this.policy=t,this.isVolatile=i}}class Ea extends jo{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function Qi(o,e,t=m.isVolatileBinding(o)){return new Ea(o,e,t)}class ds extends jo{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}ht(ds);function hs(o,e){return new ds(o,e)}let us;function ps(o){return o.map(e=>e instanceof we?ps(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}class we{constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null,this.behaviors=e.map(t=>t instanceof we?t.behaviors:null).reduce((t,i)=>i===null?t:t===null?i:t.concat(i),null)}get strategy(){return this._strategy===null&&this.withStrategy(us),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(ps(this.styles)),this}static setDefaultStrategy(e){us=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new we(e):e instanceof we?e:new we([e])}}we.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const Zi=Ki(),Ji=Object.freeze({getForInstance:Zi.getForInstance,getByType:Zi.getByType,define(o){return Zi.register({type:o}),o}});function er(o,e,t){e.source.style.setProperty(o.targetAspect,t.bind(e))}class tr{constructor(e,t){this.dataBinding=e,this.targetAspect=t}createCSS(e){return e(this),`var(${this.targetAspect})`}addedCallback(e){var t;const i=e.source;if(!i.$cssBindings){i.$cssBindings=new Map;const s=i.setAttribute;i.setAttribute=(n,c)=>{s.call(i,n,c),n==="style"&&i.$cssBindings.forEach((h,d)=>er(d,h.controller,h.observer))}}const r=(t=e[this.targetAspect])!==null&&t!==void 0?t:e[this.targetAspect]=this.dataBinding.createObserver(this,this);r.controller=e,e.source.$cssBindings.set(this,{controller:e,observer:r})}connectedCallback(e){er(this,e,e[this.targetAspect])}removedCallback(e){e.source.$cssBindings&&e.source.$cssBindings.delete(this)}handleChange(e,t){er(this,t.controller,t)}}Ji.define(tr);const Na=`${Math.random().toString(36).substring(2,8)}`;let Fa=0;const bs=()=>`--v${Na}${++Fa}`;function gs(o,e){const t=[];let i="";const r=[],s=n=>{r.push(n)};for(let n=0,c=o.length-1;n<c;++n){i+=o[n];let h=e[n];Ot(h)?h=new tr(Qi(h),bs()).createCSS(s):h instanceof jo?h=new tr(h,bs()).createCSS(s):Ji.getForInstance(h)!==void 0&&(h=h.createCSS(s)),h instanceof we||h instanceof CSSStyleSheet?(i.trim()!==""&&(t.push(i),i=""),t.push(h)):i+=h}return i+=o[o.length-1],i.trim()!==""&&t.push(i),{styles:t,behaviors:r}}const u=(o,...e)=>{const{styles:t,behaviors:i}=gs(o,e),r=new we(t);return i.length?r.withBehaviors(...i):r};class fs{constructor(e,t){this.behaviors=t,this.css="";const i=e.reduce((r,s)=>(Ge(s)?this.css+=s:r.push(s),r),[]);i.length&&(this.styles=new we(i))}createCSS(e){return this.behaviors.forEach(e),this.styles&&e(this),this.css}addedCallback(e){e.addStyles(this.styles)}removedCallback(e){e.removeStyles(this.styles)}}Ji.define(fs),u.partial=(o,...e)=>{const{styles:t,behaviors:i}=gs(o,e);return new fs(t,i)};const ms=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,vs=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,$s=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,ys=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,xs=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,ks=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ws(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ne=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(o,e){return`fe-b$$start$$${o}$$${e}$$fe-b`},contentBindingEndMarker(o,e){return`fe-b$$end$$${o}$$${e}$$fe-b`},repeatStartMarker(o){return`fe-repeat$$start$$${o}$$fe-repeat`},repeatEndMarker(o){return`fe-repeat$$end$$${o}$$fe-repeat`},isContentBindingStartMarker(o){return ms.test(o)},isContentBindingEndMarker(o){return vs.test(o)},isRepeatViewStartMarker(o){return $s.test(o)},isRepeatViewEndMarker(o){return ys.test(o)},isElementBoundaryStartMarker(o){return ws(o)&&xs.test(o.data.trim())},isElementBoundaryEndMarker(o){return ws(o)&&ks.test(o.data)},parseAttributeBinding(o){const e=o.getAttribute(this.attributeMarkerName);return e===null?e:e.split(this.attributeBindingSeparator).map(t=>parseInt(t))},parseContentBindingStartMarker(o){return Is(ms,o)},parseContentBindingEndMarker(o){return Is(vs,o)},parseRepeatStartMarker(o){return Cs($s,o)},parseRepeatEndMarker(o){return Cs(ys,o)},parseElementBoundaryStartMarker(o){return Ss(xs,o.trim())},parseElementBoundaryEndMarker(o){return Ss(ks,o)}});function Cs(o,e){const t=o.exec(e);return t===null?t:parseInt(t[1])}function Ss(o,e){const t=o.exec(e);return t===null?t:t[1]}function Is(o,e){const t=o.exec(e);return t===null?t:[parseInt(t[1]),t[2]]}const Ro=Symbol.for("fe-hydration");function qo(o){return o[Ro]===Ro}const or=`fast-${Math.random().toString(36).substring(2,8)}`,Wo=`${or}{`,no=`}${or}`,Ma=no.length;let Da=0;const ao=()=>`${or}-${++Da}`,Ps=Object.freeze({interpolation:o=>`${Wo}${o}${no}`,attribute:o=>`${ao()}="${Wo}${o}${no}"`,comment:o=>`<!--${Wo}${o}${no}-->`}),Go=Object.freeze({parse(o,e){const t=o.split(Wo);if(t.length===1)return null;const i=[];for(let r=0,s=t.length;r<s;++r){const n=t[r],c=n.indexOf(no);let h;if(c===-1)h=n;else{const d=n.substring(0,c);i.push(e[d]),h=n.substring(c+Ma)}h!==""&&i.push(h)}return i}}),ir=Ki(),Fe=Object.freeze({getForInstance:ir.getForInstance,getByType:ir.getByType,define(o,e){return e=e||{},e.type=o,ir.register(e),o},assignAspect(o,e){if(!e){o.aspectType=Q.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?Q.tokenList:Q.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=Q.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=Q.event;break;default:o.targetAspect=e,o.aspectType=Q.attribute;break}}});class rr{constructor(e){this.options=e}createHTML(e){return Ps.attribute(e(this))}createBehavior(){return this}}ht(rr);class zs extends Error{constructor(e,t,i){super(e),this.factories=t,this.node=i}}function sr(o){return o.nodeType===Node.COMMENT_NODE}function Ts(o){return o.nodeType===Node.TEXT_NODE}function Bs(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,sr(e)||Ts(e)?e.data.length:e.childNodes.length),t}function Ha(o){return o instanceof DocumentFragment&&"mode"in o}function Va(o,e,t){const i=Bs(o,e),r=i.commonAncestorContainer,s=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(d){return i.comparePoint(d,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),n={},c={};let h=s.currentNode=o;for(;h!==null;){switch(h.nodeType){case Node.ELEMENT_NODE:{La(h,t,n);break}case Node.COMMENT_NODE:{ja(h,s,t,n,c);break}}h=s.nextNode()}return i.detach(),{targets:n,boundaries:c}}function La(o,e,t){const i=Ne.parseAttributeBinding(o);if(i!==null){for(const r of i){if(!e[r])throw new zs(`HydrationView was unable to successfully target factory on ${o.nodeName} inside ${o.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,e,o);Xo(e[r],o,t)}o.removeAttribute(Ne.attributeMarkerName)}}function ja(o,e,t,i,r){if(Ne.isElementBoundaryStartMarker(o)){Ra(o,e);return}if(Ne.isContentBindingStartMarker(o.data)){const s=Ne.parseContentBindingStartMarker(o.data);if(s===null)return;const[n,c]=s,h=t[n],d=[];let l=e.nextSibling();o.data="";const f=l;for(;l!==null;){if(sr(l)){const w=Ne.parseContentBindingEndMarker(l.data);if(w&&w[1]===c)break}d.push(l),l=e.nextSibling()}if(l===null){const w=o.getRootNode();throw new Error(`Error hydrating Comment node inside "${Ha(w)?w.host.nodeName:w.nodeName}".`)}if(l.data="",d.length===1&&Ts(d[0]))Xo(h,d[0],i);else{l!==f&&l.previousSibling!==null&&(r[h.targetNodeId]={first:f,last:l.previousSibling});const w=l.parentNode.insertBefore(document.createTextNode(""),l);Xo(h,w,i)}}}function Ra(o,e){const t=Ne.parseElementBoundaryStartMarker(o.data);let i=e.nextSibling();for(;i!==null;){if(sr(i)){const r=Ne.parseElementBoundaryEndMarker(i.data);if(r&&r===t)break}i=e.nextSibling()}}function Xo(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}var Os;function nr(o,e){const t=o.parentNode;let i=o,r;for(;i!==e;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(i),i=r}t.removeChild(e)}class _s{constructor(){this.index=0,this.length=0}get event(){return _t.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Uo extends _s{constructor(e,t,i){super(),this.fragment=e,this.factories=t,this.targets=i,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Lo.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let i=this.firstChild,r;for(;i!==t;)r=i.nextSibling,e.appendChild(i),i=r;e.appendChild(t)}dispose(){nr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let i=this.behaviors;if(i===null){this.source=e,this.context=t,this.behaviors=i=new Array(this.factories.length);const r=this.factories;for(let s=0,n=r.length;s<n;++s){const c=r[s].createBehavior();c.bind(this),i[s]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let r=0,s=i.length;r<s;++r)i[r].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){nr(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,i=e.length;t<i;++t)e[t].unbind()}}}ht(Uo),m.defineProperty(Uo.prototype,"index"),m.defineProperty(Uo.prototype,"length");const At={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class qa extends Error{constructor(e,t,i,r){super(e),this.factory=t,this.fragment=i,this.templateString=r}}class Wa extends _s{constructor(e,t,i,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=i,this.hostBindingTarget=r,this[Os]=Ro,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Lo.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=At.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=i.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const i=e.parentNode;let r=this.firstChild,s;for(;r!==t;)s=r.nextSibling,i.insertBefore(r,e),r=s;i.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let i=this.firstChild,r;for(;i!==t;){if(r=i.nextSibling,!r)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(i),i=r}e.appendChild(t)}bind(e,t=this){var i,r;if(this.hydrationStage!==At.hydrated&&(this._hydrationStage=At.hydrating),this.source===e)return;let s=this.behaviors;if(s===null){this.source=e,this.context=t;try{const{targets:c,boundaries:h}=Va(this.firstChild,this.lastChild,this.factories);this._targets=c,this._bindingViewBoundaries=h}catch(c){if(c instanceof zs){let h=this.sourceTemplate.html;typeof h!="string"&&(h=h.innerHTML),c.templateString=h}throw c}this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let c=0,h=n.length;c<h;++c){const d=n[c];if(d.targetNodeId==="h"&&this.hostBindingTarget&&Xo(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),s[c]=l}else{let l=this.sourceTemplate.html;throw typeof l!="string"&&(l=l.innerHTML),new qa(`HydrationView was unable to successfully target bindings inside "${(r=((i=this.firstChild)===null||i===void 0?void 0:i.getRootNode()).host)===null||r===void 0?void 0:r.nodeName}".`,d,Bs(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let n=0,c=s.length;n<c;++n)s[n].bind(this)}this.isBound=!0,this._hydrationStage=At.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){nr(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,i=e.length;t<i;++t)e[t].unbind(this);e.length=0}}Os=Ro,ht(Wa);function Ga(o){return o.create!==void 0}function Xa(o,e,t,i){if(t==null&&(t=""),Ga(t)){o.textContent="";let r=o.$fastView;if(r===void 0)if(qo(i)&&qo(t)&&i.bindingViewBoundaries[this.targetNodeId]!==void 0&&i.hydrationStage!==At.hydrated){const s=i.bindingViewBoundaries[this.targetNodeId];r=t.hydrate(s.first,s.last)}else r=t.create();else o.$fastTemplate!==t&&(r.isComposed&&(r.remove(),r.unbind()),r=t.create());r.isComposed?r.needsBindOnly&&(r.needsBindOnly=!1,r.bind(i.source,i.context)):(r.isComposed=!0,r.bind(i.source,i.context),r.insertBefore(o),o.$fastView=r,o.$fastTemplate=t)}else{const r=o.$fastView;r!==void 0&&r.isComposed&&(r.isComposed=!1,r.remove(),r.needsBindOnly?r.needsBindOnly=!1:r.unbind()),o.textContent=t}}function Ua(o,e,t){var i;const r=`${this.id}-t`,s=(i=o[r])!==null&&i!==void 0?i:o[r]={v:0,cv:Object.create(null)},n=s.cv;let c=s.v;const h=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let l=0,f=d.length;l<f;++l){const w=d[l];w!==""&&(n[w]=c,h.add(w))}}if(s.v=c+1,c!==0){c-=1;for(const d in n)n[d]===c&&h.remove(d)}}const Ka={[Q.attribute]:ut.setAttribute,[Q.booleanAttribute]:ut.setBooleanAttribute,[Q.property]:(o,e,t)=>o[e]=t,[Q.content]:Xa,[Q.tokenList]:Ua,[Q.event]:()=>{}};class Et{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=Q.content}createHTML(e){return Ps.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=Ka[this.aspectType],i=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw ie.error(1205);this.data=`${this.id}-d`,this.updateTarget=i.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const i=e.targets[this.targetNodeId],r=qo(e)&&e.hydrationStage&&e.hydrationStage!==At.hydrated;switch(this.aspectType){case Q.event:i[this.data]=e,i.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Q.content:e.onUnbind(this);default:const s=(t=i[this.data])!==null&&t!==void 0?t:i[this.data]=this.dataBinding.createObserver(this,this);if(s.target=i,s.controller=e,r&&(this.aspectType===Q.attribute||this.aspectType===Q.booleanAttribute)){s.bind(e);break}this.updateTarget(i,this.targetAspect,s.bind(e),e);break}}unbind(e){const i=e.targets[this.targetNodeId].$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){_t.setEvent(e);const i=this.dataBinding.evaluate(t.source,t.context);_t.setEvent(null),i!==!0&&e.preventDefault()}}handleChange(e,t){const i=t.target,r=t.controller;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Fe.define(Et,{aspected:!0});const As=(o,e)=>`${o}.${e}`,Es={},Me={index:0,node:null};function Ns(o){o.startsWith("fast-")||ie.warn(1204,{name:o})}const Ya=new Proxy(document.createElement("div"),{get(o,e){Ns(e);const t=Reflect.get(o,e);return Ot(t)?t.bind(o):t},set(o,e,t){return Ns(e),Reflect.set(o,e,t)}});class Qa{constructor(e,t,i){this.fragment=e,this.directives=t,this.policy=i,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,i,r,s){var n,c;this.nodeIds.has(i)||(this.nodeIds.add(i),this.addTargetDescriptor(t,i,r)),e.id=(n=e.id)!==null&&n!==void 0?n:ao(),e.targetNodeId=i,e.targetTagName=s,e.policy=(c=e.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,i){const r=this.descriptors;if(t==="r"||t==="h"||r[t])return;if(!r[e]){const n=e.lastIndexOf("."),c=e.substring(0,n),h=parseInt(e.substring(n+1));this.addTargetDescriptor(c,e,h)}let s=Es[t];if(!s){const n=`_${t}`;Es[t]=s={get(){var c;return(c=this[n])!==null&&c!==void 0?c:this[n]=this[e].childNodes[i]}}}r[t]=s}createView(e){const t=this.fragment.cloneNode(!0),i=Object.create(this.proto);i.r=t,i.h=e??Ya;for(const r of this.nodeIds)i[r];return new Uo(t,this.factories,i)}}function Fs(o,e,t,i,r,s=!1){const n=t.attributes,c=o.directives;for(let h=0,d=n.length;h<d;++h){const l=n[h],f=l.value,w=Go.parse(f,c);let pe=null;w===null?s&&(pe=new Et(hs(()=>f,o.policy)),Fe.assignAspect(pe,l.name)):pe=ar.aggregate(w,o.policy),pe!==null&&(t.removeAttributeNode(l),h--,d--,o.addFactory(pe,e,i,r,t.tagName))}}function Za(o,e,t,i,r){const s=Go.parse(e.textContent,o.directives);if(s===null)return Me.node=e.nextSibling,Me.index=r+1,Me;let n,c=n=e;for(let h=0,d=s.length;h<d;++h){const l=s[h];h!==0&&(r++,i=As(t,r),n=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),Ge(l)?n.textContent=l:(n.textContent=" ",Fe.assignAspect(l),o.addFactory(l,t,i,r,null)),c=n}return Me.index=r+1,Me.node=c.nextSibling,Me}function Ms(o,e,t){let i=0,r=e.firstChild;for(;r;){const s=Ja(o,t,r,i);r=s.node,i=s.index}}function Ja(o,e,t,i){const r=As(e,i);switch(t.nodeType){case 1:Fs(o,e,t,r,i),Ms(o,t,r);break;case 3:return Za(o,t,e,r,i);case 8:const s=Go.parse(t.data,o.directives);s!==null&&o.addFactory(ar.aggregate(s),e,r,i,null);break}return Me.index=i+1,Me.node=t.nextSibling,Me}function el(o,e){return o&&o.nodeType==8&&Go.parse(o.data,e)!==null}const Ds="TEMPLATE",ar={compile(o,e,t=ut.policy){let i;if(Ge(o)){i=document.createElement(Ds),i.innerHTML=t.createHTML(o);const n=i.content.firstElementChild;n!==null&&n.tagName===Ds&&(i=n)}else i=o;!i.content.firstChild&&!i.content.lastChild&&i.content.appendChild(document.createComment(""));const r=document.adoptNode(i.content),s=new Qa(r,e,t);return Fs(s,"",i,"h",0,!0),(el(r.firstChild,e)||r.childNodes.length===1&&Object.keys(e).length>0)&&r.insertBefore(document.createComment(""),r.firstChild),Ms(s,r,"r"),Me.node=null,s.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=ut.policy){if(o.length===1)return o[0];let t,i=!1,r;const s=o.length,n=o.map(d=>Ge(d)?()=>d:(t=d.sourceAspect||t,i=i||d.dataBinding.isVolatile,r=r||d.dataBinding.policy,d.dataBinding.evaluate)),c=(d,l)=>{let f="";for(let w=0;w<s;++w)f+=n[w](d,l);return f},h=new Et(Qi(c,r??e,i));return Fe.assignAspect(h,t),h}},tl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,ol=Object.create(null);class pt{constructor(e,t=ol){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const i in t)e(t[i]);return this.html}}pt.empty=new pt(""),Fe.define(pt);function il(o,e,t,i=Fe.getForInstance(o)){if(i.aspected){const r=tl.exec(e);r!==null&&Fe.assignAspect(o,r[2])}return o.createHTML(t)}class Wi{constructor(e,t={},i){this.policy=i,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=ar.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new pt(Ge(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw ie.error(1208);if(this.policy)throw ie.error(1207);return this.policy=e,this}render(e,t,i){const r=this.create(i);return r.bind(e),r.appendTo(t),r}static create(e,t,i){let r="";const s=Object.create(null),n=c=>{var h;const d=(h=c.id)!==null&&h!==void 0?h:c.id=ao();return s[d]=c,d};for(let c=0,h=e.length-1;c<h;++c){const d=e[c];let l=t[c],f;if(r+=d,Ot(l))l=new Et(Qi(l));else if(l instanceof jo)l=new Et(l);else if(!(f=Fe.getForInstance(l))){const w=l;l=new Et(hs(()=>w))}r+=il(l,d,n,f)}return new Wi(r+e[e.length-1],s,i)}}ht(Wi);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Wi.create(o,e);throw ie.error(1206)};b.partial=o=>new pt(o);class Hs extends rr{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Fe.define(Hs);const _=o=>new Hs(o),rl=o=>o.nodeType===1,lo=o=>o?e=>e.nodeType===1&&e.matches(o):rl;class sl extends rr{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Oa),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Vs="slotchange";class Ls extends sl{observe(e){e.addEventListener(Vs,this)}disconnect(e){e.removeEventListener(Vs,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Fe.define(Ls);function G(o){return Ge(o)&&(o={property:o}),new Ls(o)}const js="boolean",Rs="reflect",Ko=Object.freeze({locate:ss()}),nl={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function qs(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const re={toView(o){const e=qs(o);return e&&e.toString()},fromView:qs};class Gi{constructor(e,t,i=t.toLowerCase(),r=Rs,s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=r,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===js&&s===void 0&&(this.converter=nl)}setValue(e,t){const i=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||t==="fromView"||Z.enqueue(()=>{i.add(e);const r=e[this.fieldName];switch(t){case Rs:const s=this.converter;ut.setAttribute(e,this.attribute,s!==void 0?s.toView(r):r);break;case js:ut.setBooleanAttribute(e,this.attribute,r);break}i.delete(e)})}static collect(e,...t){const i=[];t.push(Ko.locate(e));for(let r=0,s=t.length;r<s;++r){const n=t[r];if(n!==void 0)for(let c=0,h=n.length;c<h;++c){const d=n[c];Ge(d)?i.push(new Gi(e,d)):i.push(new Gi(e,d.property,d.attribute,d.mode,d.converter))}}return i}}function a(o,e){let t;function i(r,s){arguments.length>1&&(t.property=s),Ko.locate(r.constructor).push(t)}if(arguments.length>1){t={},i(o,e);return}return t=o===void 0?{}:o,i}const Ws={mode:"open"},Gs={},Xs=new Set,Yo=ie.getById(dt.elementRegistry,()=>Ki());class Ee{constructor(e,t=e.definition){var i;this.platformDefined=!1,Ge(t)&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template,this.registry=(i=t.registry)!==null&&i!==void 0?i:customElements;const r=e.prototype,s=Gi.collect(e,t.attributes),n=new Array(s.length),c={},h={};for(let d=0,l=s.length;d<l;++d){const f=s[d];n[d]=f.attribute,c[f.name]=f,h[f.attribute]=f,m.defineProperty(r,f)}Reflect.defineProperty(e,"observedAttributes",{value:n,enumerable:!0}),this.attributes=s,this.propertyLookup=c,this.attributeLookup=h,this.shadowOptions=t.shadowOptions===void 0?Ws:t.shadowOptions===null?void 0:Object.assign(Object.assign({},Ws),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Gs:Object.assign(Object.assign({},Gs),t.elementOptions),this.styles=we.normalize(t.styles),Yo.register(this)}get isDefined(){return this.platformDefined}define(e=this.registry){const t=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,t,this.elementOptions)),this}static compose(e,t){return Xs.has(e)||Yo.getByType(e)?new Ee(class extends e{},t):new Ee(e,t)}static registerBaseType(e){Xs.add(e)}}Ee.getByType=Yo.getByType,Ee.getForInstance=Yo.getForInstance;class al extends MutationObserver{constructor(e){function t(i){this.callback.call(null,i.filter(r=>this.observedNodes.has(r.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}}Object.freeze({create(o){const e=[],t={};let i=null,r=!1;return{source:o,context:_t.default,targets:t,get isBound(){return r},addBehaviorFactory(s,n){var c,h,d,l;const f=s;f.id=(c=f.id)!==null&&c!==void 0?c:ao(),f.targetNodeId=(h=f.targetNodeId)!==null&&h!==void 0?h:ao(),f.targetTagName=(d=n.tagName)!==null&&d!==void 0?d:null,f.policy=(l=f.policy)!==null&&l!==void 0?l:ut.policy,this.addTarget(f.targetNodeId,n),this.addBehavior(f.createBehavior())},addTarget(s,n){t[s]=n},addBehavior(s){e.push(s),r&&s.bind(this)},onUnbind(s){i===null&&(i=[]),i.push(s)},connectedCallback(s){r||(r=!0,e.forEach(n=>n.bind(this)))},disconnectedCallback(s){r&&(r=!1,i!==null&&i.forEach(n=>n.unbind(this)))}}}});const ll={bubbles:!0,composed:!0,cancelable:!0},Qo="isConnected",Us=new WeakMap;function co(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Us.get(o))!==null&&t!==void 0?t:null}let Ks;class Nt extends as{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t;const i=t.shadowOptions;if(i!==void 0){let s=e.shadowRoot;s?this.hasExistingShadowRoot=!0:(s=e.attachShadow(i),i.mode==="closed"&&Us.set(e,s))}const r=m.getAccessors(e);if(r.length>0){const s=this.boundObservables=Object.create(null);for(let n=0,c=r.length;n<c;++n){const h=r[n].name,d=e[h];d!==void 0&&(delete e[h],s[h]=d)}}}get isConnected(){return m.track(this,Qo),this.stage===1}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:_t.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,i;const r=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,s=(i=r.get(e))!==null&&i!==void 0?i:0;s===0?(r.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):r.set(e,s+1)}removeBehavior(e,t=!1){const i=this.behaviors;if(i===null)return;const r=i.get(e);r!==void 0&&(r===1||t?(i.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):i.set(e,r-1))}addStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:this.source).append(e);else if(!e.isAttachedTo(i)){const r=e.behaviors;if(e.addStylesTo(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.addBehavior(r[s])}}removeStyles(e){var t;if(!e)return;const i=this.source;if(e instanceof HTMLElement)((t=co(i))!==null&&t!==void 0?t:i).removeChild(e);else if(e.isAttachedTo(i)){const r=e.behaviors;if(e.removeStylesFrom(i),r!==null)for(let s=0,n=r.length;s<n;++s)this.removeBehavior(r[s])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,Qo))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,i=Object.keys(t);for(let r=0,s=i.length;r<s;++r){const n=i[r];e[n]=t[n]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,m.notify(this,Qo),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,i){const r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,i)}emit(e,t,i){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},ll),i))):!1}renderTemplate(e){var t;const i=this.source,r=(t=co(i))!==null&&t!==void 0?t:i;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let s=r.firstChild;s!==null;s=r.firstChild)r.removeChild(s)}e&&(this.view=e.render(i,r,i),this.view.sourceLifetime=Lo.coupled)}static forCustomElement(e){const t=e.$fastController;if(t!==void 0)return t;const i=Ee.getForInstance(e);if(i===void 0)throw ie.error(1401);return e.$fastController=new Ks(e,i)}static setStrategy(e){Ks=e}}ht(Nt),Nt.setStrategy(Nt);function Zo(o){var e;return"adoptedStyleSheets"in o?o:(e=co(o))!==null&&e!==void 0?e:o.getRootNode()}class Xi{constructor(e){const t=Xi.styleSheetCache;this.sheets=e.map(i=>{if(i instanceof CSSStyleSheet)return i;let r=t.get(i);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(i),t.set(i,r)),r})}addStylesTo(e){Qs(Zo(e),this.sheets)}removeStylesFrom(e){Zs(Zo(e),this.sheets)}}Xi.styleSheetCache=new Map;let cl=0;const dl=()=>`fast-${++cl}`;function Ys(o){return o===document?document.body:o}class hl{constructor(e){this.styles=e,this.styleClass=dl()}addStylesTo(e){e=Ys(Zo(e));const t=this.styles,i=this.styleClass;for(let r=0;r<t.length;r++){const s=document.createElement("style");s.innerHTML=t[r],s.className=i,e.append(s)}}removeStylesFrom(e){e=Ys(Zo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let i=0,r=t.length;i<r;++i)e.removeChild(t[i])}}let Qs=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Zs=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(we.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Qs=(o,e)=>{o.adoptedStyleSheets.push(...e)},Zs=(o,e)=>{for(const t of e){const i=o.adoptedStyleSheets.indexOf(t);i!==-1&&o.adoptedStyleSheets.splice(i,1)}}}catch{}we.setDefaultStrategy(Xi)}else we.setDefaultStrategy(hl);const Js="defer-hydration",en="needs-hydration";class Bt extends Nt{static hydrationObserverHandler(e){for(const t of e)Bt.hydrationObserver.unobserve(t.target),t.target.$fastController.connect()}connect(){var e,t;if(this.needsHydration===void 0&&(this.needsHydration=this.source.getAttribute(en)!==null),this.source.hasAttribute(Js)){Bt.hydrationObserver.observe(this.source,{attributeFilter:[Js]});return}if(!this.needsHydration){super.connect();return}if(this.stage!==3)return;this.stage=0,this.bindObservables(),this.connectBehaviors();const i=this.source,r=(e=co(i))!==null&&e!==void 0?e:i;if(this.template)if(qo(this.template)){let s=r.firstChild,n=r.lastChild;i.shadowRoot===null&&(Ne.isElementBoundaryStartMarker(s)&&(s.data="",s=s.nextSibling),Ne.isElementBoundaryEndMarker(n)&&(n.data="",n=n.previousSibling)),this.view=this.template.hydrate(s,n,i),(t=this.view)===null||t===void 0||t.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(en),this.needsInitialization=this.needsHydration=!1,m.notify(this,Qo)}disconnect(){super.disconnect(),Bt.hydrationObserver.unobserve(this.source)}static install(){Nt.setStrategy(Bt)}}Bt.hydrationObserver=new al(Bt.hydrationObserverHandler);function tn(o){const e=class extends o{constructor(){super(),Nt.forCustomElement(this)}$emit(t,i,r){return this.$fastController.emit(t,i,r)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,i,r){this.$fastController.onAttributeChangedCallback(t,i,r)}};return Ee.registerBaseType(e),e}function ul(o,e){return Ot(o)?Ee.compose(o,e):Ee.compose(this,o)}function pl(o,e){return Ot(o)?Ee.compose(o,e).define().type:Ee.compose(this,o).define().type}function bl(o){return tn(o)}const $=Object.assign(tn(HTMLElement),{from:bl,define:pl,compose:ul});var gl=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?fl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gl(e,t,r),r};class R{}j([a({attribute:"aria-atomic"})],R.prototype,"ariaAtomic",2),j([a({attribute:"aria-busy"})],R.prototype,"ariaBusy",2),j([a({attribute:"aria-controls"})],R.prototype,"ariaControls",2),j([a({attribute:"aria-current"})],R.prototype,"ariaCurrent",2),j([a({attribute:"aria-describedby"})],R.prototype,"ariaDescribedby",2),j([a({attribute:"aria-details"})],R.prototype,"ariaDetails",2),j([a({attribute:"aria-disabled"})],R.prototype,"ariaDisabled",2),j([a({attribute:"aria-errormessage"})],R.prototype,"ariaErrormessage",2),j([a({attribute:"aria-flowto"})],R.prototype,"ariaFlowto",2),j([a({attribute:"aria-haspopup"})],R.prototype,"ariaHaspopup",2),j([a({attribute:"aria-hidden"})],R.prototype,"ariaHidden",2),j([a({attribute:"aria-invalid"})],R.prototype,"ariaInvalid",2),j([a({attribute:"aria-keyshortcuts"})],R.prototype,"ariaKeyshortcuts",2),j([a({attribute:"aria-label"})],R.prototype,"ariaLabel",2),j([a({attribute:"aria-labelledby"})],R.prototype,"ariaLabelledby",2),j([a({attribute:"aria-live"})],R.prototype,"ariaLive",2),j([a({attribute:"aria-owns"})],R.prototype,"ariaOwns",2),j([a({attribute:"aria-relevant"})],R.prototype,"ariaRelevant",2),j([a({attribute:"aria-roledescription"})],R.prototype,"ariaRoledescription",2);const lr={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}},be={horizontal:"horizontal",vertical:"vertical"};function ml(o,e){let t=o.length;for(;t--;)if(e(o[t],t,o))return t;return-1}function cr(...o){return o.every(e=>e instanceof HTMLElement)}const ho="ArrowDown",uo="ArrowLeft",po="ArrowRight",bo="ArrowUp",go="End",fo="Enter",vl="Escape",mo="Home",Jo=" ",$l="Tab";var De;(function(o){o.ltr="ltr",o.rtl="rtl"})(De||(De={}));function yl(o,e,t){return t<o?e:t>e?o:t}function dr(o,e,t){return Math.min(Math.max(t,o),e)}let xl=0;function Ft(o=""){return`${o}${xl++}`}const ei=o=>o.closest("[dir]")?.dir==="rtl"?De.rtl:De.ltr;function ge(o){return o?typeof o=="string"?new pt(o):"inline"in o?o.inline():o:pt.empty}const on=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,kl=":host([hidden]){display:none}";function k(o){return`${kl}:host{display:${o}}`}class wl{constructor(e){this.listenerCache=new WeakMap,this.query=e}connectedCallback(e){const{query:t}=this;let i=this.listenerCache.get(e);i||(i=this.constructListener(e),this.listenerCache.set(e,i)),i.bind(t)(),t.addEventListener("change",i)}disconnectedCallback(e){const t=this.listenerCache.get(e);t&&this.query.removeEventListener("change",t)}}class Do extends wl{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Do(e,t)}constructListener(e){let t=!1;const i=this.styles;return function(){const{matches:s}=this;s&&!t?(e.addStyles(i),t=s):!s&&t&&(e.removeStyles(i),t=s)}}removedCallback(e){e.removeStyles(this.styles)}}const X=Do.with(window.matchMedia("(forced-colors)"));Do.with(window.matchMedia("(prefers-color-scheme: dark)")),Do.with(window.matchMedia("(prefers-color-scheme: light)"));const ti=CSS.supports("anchor-name: --a"),Cl="anchor"in HTMLElement.prototype,rn=CSS.supports("selector(:state(g))");class Xe{}function tt(o){return b`<slot name="end" ${_("end")}>${ge(o.end)}</slot>`.inline()}function He(o){return b`<slot name="start" ${_("start")}>${ge(o.start)}</slot>`.inline()}function Ue(o,...e){const t=Ko.locate(o);e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(o.prototype,s,Object.getOwnPropertyDescriptor(i.prototype,s))}),Ko.locate(i).forEach(s=>t.push(s))})}var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,oi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Il(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sl(e,t,r),r};class ot extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=Ft("accordion-")}}oi([a({attribute:"heading-level",mode:"fromView",converter:re})],ot.prototype,"headinglevel",2),oi([a({mode:"boolean"})],ot.prototype,"expanded",2),oi([a({mode:"boolean"})],ot.prototype,"disabled",2),oi([a],ot.prototype,"id",2);var Pl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,hr=(o,e,t,i)=>{for(var r=i>1?void 0:i?zl(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pl(e,t,r),r};class vo extends ot{constructor(){super(...arguments),this.block=!1}}hr([a],vo.prototype,"size",2),hr([a({attribute:"marker-position"})],vo.prototype,"markerPosition",2),hr([a({mode:"boolean"})],vo.prototype,"block",2),Ue(vo,Xe);const T="var(--colorNeutralForeground1)",ur="var(--colorNeutralForeground1Hover)",Tl="var(--colorNeutralForeground1Pressed)",Ie="var(--colorNeutralForeground2)",Mt="var(--colorNeutralForeground2Hover)",Dt="var(--colorNeutralForeground2Pressed)",ii="var(--colorNeutralForeground2Selected)",ri="var(--colorNeutralForeground2BrandHover)",si="var(--colorNeutralForeground2BrandPressed)",Bl="var(--colorNeutralForeground2BrandSelected)",J="var(--colorNeutralForeground3)",Ol="var(--colorNeutralForeground3Hover)",_l="var(--colorNeutralForeground3Pressed)",Al="var(--colorNeutralForeground3Selected)",pr="var(--colorNeutralForeground4)",S="var(--colorNeutralForegroundDisabled)",El="var(--colorBrandForegroundLink)",Nl="var(--colorBrandForegroundLinkHover)",Fl="var(--colorBrandForegroundLinkPressed)",Ml="var(--colorNeutralForeground2Link)",Dl="var(--colorNeutralForeground2LinkHover)",Hl="var(--colorNeutralForeground2LinkPressed)",sn="var(--colorCompoundBrandForeground1Hover)",Vl="var(--colorCompoundBrandForeground1Pressed)",Ke="var(--colorNeutralForegroundOnBrand)",bt="var(--colorNeutralForegroundInverted)",Ll="var(--colorNeutralForegroundInvertedHover)",jl="var(--colorNeutralForegroundInvertedPressed)",nn="var(--colorNeutralForegroundStaticInverted)",ni="var(--colorBrandForeground1)",Rl="var(--colorBrandForeground2)",ql="var(--colorNeutralForeground1Static)",I="var(--colorNeutralBackground1)",ai="var(--colorNeutralBackground1Hover)",br="var(--colorNeutralBackground1Pressed)",an="var(--colorNeutralBackground1Selected)",$o="var(--colorNeutralBackground3)",Wl="var(--colorNeutralBackground4)",Gl="var(--colorNeutralBackground5)",yo="var(--colorNeutralBackground6)",ln="var(--colorNeutralBackgroundInverted)",cn="var(--colorSubtleBackground)",xo="var(--colorSubtleBackgroundHover)",gt="var(--colorSubtleBackgroundPressed)",dn="var(--colorSubtleBackgroundSelected)",Xl="var(--colorSubtleBackgroundLightAlphaHover)",Ul="var(--colorSubtleBackgroundLightAlphaPressed)",Kl="var(--colorSubtleBackgroundLightAlphaSelected)",fe="var(--colorTransparentBackground)",li="var(--colorTransparentBackgroundHover)",ci="var(--colorTransparentBackgroundPressed)",hn="var(--colorTransparentBackgroundSelected)",it="var(--colorNeutralBackgroundDisabled)",gr="var(--colorBackgroundOverlay)",un="var(--colorBrandBackground)",pn="var(--colorBrandBackgroundHover)",bn="var(--colorBrandBackgroundPressed)",Yl="var(--colorBrandBackgroundSelected)",ft="var(--colorCompoundBrandBackground)",Ht="var(--colorCompoundBrandBackgroundHover)",Vt="var(--colorCompoundBrandBackgroundPressed)",gn="var(--colorBrandBackgroundStatic)",fn="var(--colorBrandBackground2)",Ve="var(--colorNeutralStrokeAccessible)",mt="var(--colorNeutralStrokeAccessibleHover)",vt="var(--colorNeutralStrokeAccessiblePressed)",Le="var(--colorNeutralStroke1)",Lt="var(--colorNeutralStroke1Hover)",ko="var(--colorNeutralStroke1Pressed)",wo="var(--colorNeutralStroke2)",Ql="var(--colorNeutralStroke3)",Zl="var(--colorNeutralStrokeOnBrand2)",mn="var(--colorBrandStroke1)",vn="var(--colorBrandStroke2)",$t="var(--colorCompoundBrandStroke)",Jl="var(--colorCompoundBrandStrokeHover)",$n="var(--colorCompoundBrandStrokePressed)",Ce="var(--colorNeutralStrokeDisabled)",U="var(--colorTransparentStroke)",fr="var(--colorTransparentStrokeInteractive)",di="var(--colorStrokeFocus1)",me="var(--colorStrokeFocus2)",ec="var(--colorNeutralShadowAmbient)",tc="var(--colorNeutralShadowKey)",yn="var(--colorPaletteRedBackground1)",oc="var(--colorPaletteRedBackground2)",xn="var(--colorPaletteRedBackground3)",kn="var(--colorPaletteRedBorder1)",mr="var(--colorPaletteRedBorder2)",vr="var(--colorPaletteRedForeground1)",ic="var(--colorPaletteRedForeground2)",wn="var(--colorPaletteRedForeground3)",Cn="var(--colorPaletteGreenBackground1)",Sn="var(--colorPaletteGreenBackground3)",rc="var(--colorPaletteGreenBorder1)",sc="var(--colorPaletteGreenBorder2)",nc="var(--colorPaletteGreenForeground1)",ac="var(--colorPaletteGreenForeground2)",lc="var(--colorPaletteGreenForeground3)",In="var(--colorPaletteDarkOrangeBackground1)",Pn="var(--colorPaletteDarkOrangeBackground3)",zn="var(--colorPaletteDarkOrangeBorder1)",cc="var(--colorPaletteDarkOrangeForeground1)",Tn="var(--colorPaletteDarkOrangeForeground3)",dc="var(--colorPaletteYellowBackground1)",hc="var(--colorPaletteYellowBackground3)",uc="var(--colorPaletteYellowBorder1)",$r="var(--colorPaletteYellowForeground2)",Bn="var(--colorPaletteMarigoldBackground2)",pc="var(--colorPaletteMarigoldBorderActive)",bc="var(--colorPaletteMarigoldForeground2)",gc="var(--colorPaletteAnchorBackground2)",fc="var(--colorPaletteAnchorForeground2)",mc="var(--colorPaletteBeigeBackground2)",vc="var(--colorPaletteBeigeForeground2)",$c="var(--colorPaletteBlueBackground2)",yc="var(--colorPaletteBlueForeground2)",xc="var(--colorPaletteBrassBackground2)",kc="var(--colorPaletteBrassForeground2)",wc="var(--colorPaletteBrownBackground2)",Cc="var(--colorPaletteBrownForeground2)",Sc="var(--colorPaletteCornflowerBackground2)",Ic="var(--colorPaletteCornflowerForeground2)",Pc="var(--colorPaletteCranberryBackground2)",zc="var(--colorPaletteCranberryForeground2)",Tc="var(--colorPaletteDarkGreenBackground2)",Bc="var(--colorPaletteDarkGreenForeground2)",Oc="var(--colorPaletteDarkRedBackground2)",_c="var(--colorPaletteDarkRedForeground2)",Ac="var(--colorPaletteForestBackground2)",Ec="var(--colorPaletteForestForeground2)",Nc="var(--colorPaletteGoldBackground2)",Fc="var(--colorPaletteGoldForeground2)",Mc="var(--colorPaletteGrapeBackground2)",Dc="var(--colorPaletteGrapeForeground2)",Hc="var(--colorPaletteLavenderBackground2)",Vc="var(--colorPaletteLavenderForeground2)",Lc="var(--colorPaletteLightTealBackground2)",jc="var(--colorPaletteLightTealForeground2)",Rc="var(--colorPaletteLilacBackground2)",qc="var(--colorPaletteLilacForeground2)",Wc="var(--colorPaletteMagentaBackground2)",Gc="var(--colorPaletteMagentaForeground2)",Xc="var(--colorPaletteMinkBackground2)",Uc="var(--colorPaletteMinkForeground2)",Kc="var(--colorPaletteNavyBackground2)",Yc="var(--colorPaletteNavyForeground2)",Qc="var(--colorPalettePeachBackground2)",Zc="var(--colorPalettePeachForeground2)",Jc="var(--colorPalettePinkBackground2)",ed="var(--colorPalettePinkForeground2)",td="var(--colorPalettePlatinumBackground2)",od="var(--colorPalettePlatinumForeground2)",id="var(--colorPalettePlumBackground2)",rd="var(--colorPalettePlumForeground2)",sd="var(--colorPalettePumpkinBackground2)",nd="var(--colorPalettePumpkinForeground2)",ad="var(--colorPalettePurpleBackground2)",ld="var(--colorPalettePurpleForeground2)",cd="var(--colorPaletteRoyalBlueBackground2)",dd="var(--colorPaletteRoyalBlueForeground2)",hd="var(--colorPaletteSeafoamBackground2)",ud="var(--colorPaletteSeafoamForeground2)",pd="var(--colorPaletteSteelBackground2)",bd="var(--colorPaletteSteelForeground2)",gd="var(--colorPaletteTealBackground2)",fd="var(--colorPaletteTealForeground2)",hi="var(--borderRadiusNone)",Be="var(--borderRadiusSmall)",C="var(--borderRadiusMedium)",On="var(--borderRadiusLarge)",_n="var(--borderRadiusXLarge)",ve="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",md="var(--fontFamilyMonospace)",vd="var(--fontFamilyNumeric)",Co="var(--fontSizeBase100)",F="var(--fontSizeBase200)",B="var(--fontSizeBase300)",he="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",ui="var(--fontSizeBase600)",An="var(--fontSizeHero700)",En="var(--fontSizeHero800)",Nn="var(--fontSizeHero900)",Fn="var(--fontSizeHero1000)",A="var(--fontWeightRegular)",$d="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",pi="var(--fontWeightBold)",bi="var(--lineHeightBase100)",q="var(--lineHeightBase200)",E="var(--lineHeightBase300)",$e="var(--lineHeightBase400)",gi="var(--lineHeightBase500)",Mn="var(--lineHeightBase600)",Dn="var(--lineHeightHero700)",Hn="var(--lineHeightHero800)",Vn="var(--lineHeightHero900)",Ln="var(--lineHeightHero1000)",yr="var(--shadow2)",fi="var(--shadow4)",yd="var(--shadow8)",xr="var(--shadow16)",xd="var(--shadow28)",jn="var(--shadow64)",P="var(--strokeWidthThin)",ye="var(--strokeWidthThick)",se="var(--strokeWidthThicker)",kr="var(--strokeWidthThickest)",H="var(--spacingHorizontalXXS)",ne="var(--spacingHorizontalXS)",ee="var(--spacingHorizontalSNudge)",Oe="var(--spacingHorizontalS)",ae="var(--spacingHorizontalMNudge)",le="var(--spacingHorizontalM)",kd="var(--spacingHorizontalL)",wd="var(--spacingHorizontalXL)",wr="var(--spacingHorizontalXXL)",Cr="var(--spacingVerticalNone)",Rt="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",je="var(--spacingVerticalSNudge)",V="var(--spacingVerticalS)",Wt="var(--spacingVerticalMNudge)",Cd="var(--spacingVerticalM)",mi="var(--spacingVerticalL)",yt="var(--spacingVerticalXXL)",Sd="var(--spacingVerticalXXXL)",Sr="var(--durationUltraFast)",vi="var(--durationFaster)",$i="var(--durationNormal)",Ir="var(--durationGentle)",Rn="var(--durationSlow)",qn="var(--durationSlower)",yi="var(--durationUltraSlow)",Id="var(--curveAccelerateMax)",xt="var(--curveAccelerateMid)",Pd="var(--curveAccelerateMin)",Pr="var(--curveDecelerateMax)",kt="var(--curveDecelerateMid)",zd="var(--curveDecelerateMin)",Wn="var(--curveEasyEaseMax)",xi="var(--curveEasyEase)",zr="var(--curveLinear)",Td=u`
2
- ${k("block")}
3
-
4
- :host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;padding-inline:${le} ${ae};border-radius:${C};font-family:${v};font-size:${B};font-weight:${A};line-height:${E};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${fe};border:none;box-sizing:border-box;color:${T};cursor:pointer;font:inherit;grid-column:auto / span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Be}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Oe};grid-column:1 / span 1;grid-row:1}.content{margin:0 ${le}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Oe};grid-column:2 / span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Be};outline:none;border:2px solid ${di};box-shadow:inset 0 0 0 1px ${me}}:host([disabled]) .button{color:${S}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${E}}:host([size='small']) .heading{font-size:${F};line-height:${q}}:host([size='large']) .heading{font-size:${he};line-height:${$e}}:host([size='extra-large']) .heading{font-size:${jt};line-height:${gi}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1 / span 1}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4 / span 1;padding-inline-start:${Oe};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2 / span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${le}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${ae} ${le}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5 / span 1}`,Bd=b.partial(`<svg
5
- width="20"
6
- height="20"
7
- viewBox="0 0 20 20"
8
- fill="none"
9
- xmlns="http://www.w3.org/2000/svg"
10
- class="default-marker-collapsed"
11
- aria-hidden="true"
12
- >
13
- <path
14
- d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
15
- fill="currentColor"
16
- />
17
- </svg>`),Od=b.partial(`<svg
18
- width="20"
19
- height="20"
20
- viewBox="0 0 20 20"
21
- fill="none"
22
- xmlns="http://www.w3.org/2000/svg"
23
- class="default-marker-expanded"
24
- aria-hidden="true"
25
- >
26
- <path
27
- d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
28
- fill="currentColor"
29
- />
30
- </svg>`);function _d(o={}){return b`<div class="heading" part="heading" role="heading" aria-level="${e=>e.headinglevel}"><button class="button" part="button" ${_("expandbutton")} ?disabled="${e=>e.disabled?"true":void 0}" aria-expanded="${e=>e.expanded}" aria-controls="${e=>e.id}-panel" id="${e=>e.id}"><slot name="heading"></slot></button>${He(o)}<slot name="marker-expanded">${ge(o.expandedIcon)}</slot><slot name="marker-collapsed">${ge(o.collapsedIcon)}</slot></div><div class="content" part="content" id="${e=>e.id}-panel" role="region" aria-labelledby="${e=>e.id}"><slot></slot></div>`}const Ad=_d({collapsedIcon:Bd,expandedIcon:Od}),Ed=vo.compose({name:`${p.prefix}-accordion-item`,template:Ad,styles:Td});Ed.define(p.registry);const Tr={single:"single",multi:"multi"};var Nd=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,Gn=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Nd(e,t,r),r};class Br extends ${constructor(){super(...arguments),this.expandmode=Tr.multi,this.activeItemIndex=0,this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,i)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}},this.removeItemListeners=e=>{e.forEach((t,i)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;t instanceof ot&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const i=this.findExpandedItem();if(i){if(t===Tr.single){this.setSingleExpandMode(i);return}i?.expandbutton.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.$fastController.isConnected&&this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(e)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(e=>e instanceof ot&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Tr.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((i,r)=>{i instanceof ot&&(this.activeItemIndex===r?(i.expanded=!0,i.expandbutton.setAttribute("aria-disabled","true")):(i.expanded=!1,i.hasAttribute("disabled")||i.expandbutton.removeAttribute("aria-disabled")))})}}Gn([a({attribute:"expand-mode"})],Br.prototype,"expandmode",2),Gn([g],Br.prototype,"slottedAccordionItems",2);const Md=u`
31
- ${k("flex")}
32
-
33
- :host{flex-direction:column;width:100%;contain:content}`;function Dd(){return b`<template><slot ${G({property:"slottedAccordionItems",filter:lo()})}></slot></template>`}const Hd=Dd(),Vd=Br.compose({name:`${p.prefix}-accordion`,template:Hd,styles:Md});Vd.define(p.registry);const Xn=new Map;function z(o){return Xn.get(o)??Xn.set(o,rn?`:state(${o})`:`[state--${o}]`).get(o)}function y(o,e,t){if(!(!e||!o)){if(!rn){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Or=new WeakMap;function Un(o,e){if(!o||!e)return!1;if(Or.has(o))return Or.get(o).has(e);const t=new Set(Object.values(o));return Or.set(o,t),t.has(e)}function wt(o,e="",t="",i,r=""){y(o,`${r}${e}`,!1),(!i||Un(i,t))&&y(o,`${r}${t}`,!0)}const Ld={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},jd={circular:"circular",rounded:"rounded",square:"square"},Rd={small:"small",medium:"medium",large:"large"},ki={submit:"submit",reset:"reset",button:"button"},qd=Ld,Wd=jd,Gd=Rd,Xd={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var Ud=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,rt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Kd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ud(e,t,r),r};class Re extends ${constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in Xd){const i=this.$fastController.definition.attributeLookup[t]?.attribute;i&&this.handleProxyAttributeChange(i,this[t])}}clickHandler(e){if(this.href){const t=this.isMac?e.metaKey:e.ctrlKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key===fo){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.ariaHidden="true",e.tabIndex=-1,e}}rt([a],Re.prototype,"download",2),rt([a],Re.prototype,"href",2),rt([a],Re.prototype,"hreflang",2),rt([a],Re.prototype,"ping",2),rt([a],Re.prototype,"referrerpolicy",2),rt([a],Re.prototype,"rel",2),rt([a],Re.prototype,"target",2),rt([a],Re.prototype,"type",2);var Yd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,wi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Yd(e,t,r),r};class Gt extends Re{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){wt(this.elementInternals,e,t,qd)}shapeChanged(e,t){wt(this.elementInternals,e,t,Wd)}sizeChanged(e,t){wt(this.elementInternals,e,t,Gd)}iconOnlyChanged(e,t){y(this.elementInternals,"icon",!!t)}}wi([a],Gt.prototype,"appearance",2),wi([a],Gt.prototype,"shape",2),wi([a],Gt.prototype,"size",2),wi([a({attribute:"icon-only",mode:"boolean"})],Gt.prototype,"iconOnly",2),Ue(Gt,Xe);const Kn=u`
34
- ${k("inline-flex")}
35
-
36
- :host{--icon-spacing:${ee};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${I};color:${T};border:${P} solid ${Le};padding:0 ${le};min-width:96px;border-radius:${C};font-size:${B};font-family:${v};font-weight:${D};line-height:${E};transition-duration:${vi};transition-property:background,border,color;transition-timing-function:${xi};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${ai};color:${ur};border-color:${Lt}}:host(:hover:active){background-color:${br};border-color:${ko};color:${Tl};outline-style:none}:host(:focus-visible){border-color:${U};outline:${ye} solid ${U};box-shadow:${fi},0 0 0 2px ${me}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${ne};min-height:24px;min-width:64px;padding:0 ${Oe};border-radius:${Be};font-size:${F};line-height:${q};font-weight:${A}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${On};padding:0 ${kd};font-size:${he};line-height:${$e}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${ve}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${hi}}:host([appearance='primary']){background-color:${un};color:${Ke};border-color:transparent}:host([appearance='primary']:hover){background-color:${pn}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ke}}:host([appearance='primary']:hover:active){background-color:${bn}}:host([appearance='primary']:focus-visible){border-color:${Ke};box-shadow:${yr},0 0 0 2px ${me}}:host([appearance='outline']){background-color:${fe}}:host([appearance='outline']:hover){background-color:${li}}:host([appearance='outline']:hover:active){background-color:${ci}}:host([appearance='subtle']){background-color:${cn};color:${Ie};border-color:transparent}:host([appearance='subtle']:hover){background-color:${xo};color:${Mt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${gt};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${ri}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${si}}:host([appearance='transparent']){background-color:${fe};color:${Ie}}:host([appearance='transparent']:hover){background-color:${li};color:${ri}}:host([appearance='transparent']:hover:active){background-color:${ci};color:${si}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,Ci=u`
37
- ${Kn}
38
-
39
- :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${it};border-color:${Ce};color:${S};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${fe}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${fe};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${fe}}`.withBehaviors(X(u`
40
- :host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}`)),Zd=u`
41
- ${Kn}
42
-
43
- ::slotted(a){position:absolute;inset:0}`.withBehaviors(X(u`
44
- :host{border-color:LinkText;color:LinkText}`));function Jd(o={}){return b`<template tabindex="0" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}">${He(o)}<span class="content" part="content"><slot></slot></span>${tt(o)}</template>`}const eh=Jd(),th=Gt.compose({name:`${p.prefix}-anchor-button`,template:eh,styles:Zd});th.define(p.registry);const oh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,ih=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,rh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,sh=/\s+/g,nh=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function ah(o,e,t){let i="";const r=o.split(" ");return r.length!==0&&(i+=r[0].charAt(0).toUpperCase()),t||(r.length===2?i+=r[1].charAt(0).toUpperCase():r.length===3&&(i+=r[2].charAt(0).toUpperCase())),e&&i.length>1?i.charAt(1)+i.charAt(0):i}function lh(o){return o=o.replace(oh,""),o=o.replace(ih,""),o=o.replace(sh," "),o=o.trim(),o}function ch(o,e,t){return!o||(o=lh(o),nh.test(o)||!t?.allowPhoneInitials&&rh.test(o))?"":ah(o,e,t?.firstInitialOnly)}var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Yn=(o,e,t,i)=>{for(var r=i>1?void 0:i?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&dh(e,t,r),r};class _r extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),this.slotchangeHandler()}disconnectedCallback(){this.abortSignal?.abort(),this.abortSignal=void 0,super.disconnectedCallback()}slotchangeHandler(){this.normalize(),!this.defaultSlot.assignedElements().length&&!this.innerText.trim()&&this.defaultSlot.assignedNodes().filter(i=>i.nodeType===Node.TEXT_NODE).forEach(i=>{this.removeChild(i)}),Z.enqueue(()=>{(!this.abortSignal||this.abortSignal.signal.aborted)&&(this.abortSignal=new AbortController),this.defaultSlot.addEventListener("slotchange",()=>this.slotchangeHandler(),{once:!0,signal:this.abortSignal.signal})})}}Yn([a],_r.prototype,"name",2),Yn([a],_r.prototype,"initials",2);const Qn={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Zn={neutral:"neutral",brand:"brand",colorful:"colorful",...Qn};var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,Xt=(o,e,t,i)=>{for(var r=i>1?void 0:i?ph(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&uh(e,t,r),r};const st=class es extends _r{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||ch(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===Zn.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?es.colors[gh(this.name??"")%es.colors.length]:this.color??Zn.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};st.colors=Object.values(Qn),Xt([a],st.prototype,"active",2),Xt([a],st.prototype,"shape",2),Xt([a],st.prototype,"appearance",2),Xt([a({converter:re})],st.prototype,"size",2),Xt([a],st.prototype,"color",2),Xt([a({attribute:"color-id"})],st.prototype,"colorId",2);let bh=st;const gh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const i=o.charCodeAt(t),r=t%8;e^=(i<<r)+(i>>8-r)}return e},nt={fastOutSlowInMax:Pr,fastOutSlowInMid:kt,fastOutSlowInMin:zd,slowOutFastInMax:Id,slowOutFastInMid:xt,slowOutFastInMin:Pd,fastEase:Wn,normalEase:xi,nullEasing:zr},fh=u`
45
- ${k("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${D};font-size:${B};border-radius:${ve};color:${J};background-color:${yo};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ve}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${P}) ${I}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ye}) ${I}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Co};font-weight:${A}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${F}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${he}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${jt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${ui}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${C}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Be}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${On}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${_n}}:host([data-color='brand']){color:${nn};background-color:${gn}}:host([data-color='dark-red']){color:${_c};background-color:${Oc}}:host([data-color='cranberry']){color:${zc};background-color:${Pc}}:host([data-color='red']){color:${ic};background-color:${oc}}:host([data-color='pumpkin']){color:${nd};background-color:${sd}}:host([data-color='peach']){color:${Zc};background-color:${Qc}}:host([data-color='marigold']){color:${bc};background-color:${Bn}}:host([data-color='gold']){color:${Fc};background-color:${Nc}}:host([data-color='brass']){color:${kc};background-color:${xc}}:host([data-color='brown']){color:${Cc};background-color:${wc}}:host([data-color='forest']){color:${Ec};background-color:${Ac}}:host([data-color='seafoam']){color:${ud};background-color:${hd}}:host([data-color='dark-green']){color:${Bc};background-color:${Tc}}:host([data-color='light-teal']){color:${jc};background-color:${Lc}}:host([data-color='teal']){color:${fd};background-color:${gd}}:host([data-color='steel']){color:${bd};background-color:${pd}}:host([data-color='blue']){color:${yc};background-color:${$c}}:host([data-color='royal-blue']){color:${dd};background-color:${cd}}:host([data-color='cornflower']){color:${Ic};background-color:${Sc}}:host([data-color='navy']){color:${Yc};background-color:${Kc}}:host([data-color='lavender']){color:${Vc};background-color:${Hc}}:host([data-color='purple']){color:${ld};background-color:${ad}}:host([data-color='grape']){color:${Dc};background-color:${Mc}}:host([data-color='lilac']){color:${qc};background-color:${Rc}}:host([data-color='pink']){color:${ed};background-color:${Jc}}:host([data-color='magenta']){color:${Gc};background-color:${Wc}}:host([data-color='plum']){color:${rd};background-color:${id}}:host([data-color='beige']){color:${vc};background-color:${mc}}:host([data-color='mink']){color:${Uc};background-color:${Xc}}:host([data-color='platinum']){color:${od};background-color:${td}}:host([data-color='anchor']){color:${fc};background-color:${gc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${nt.fastEase},${nt.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${yi}),${qn};transition-delay:${nt.fastEase}),${nt.nullEasing})}:host([active])::before{box-shadow:${yd};border-style:solid;border-color:${gn}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ye});border-width:${ye}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${se});border-width:${se}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${kr});border-width:${kr}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${fi}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${xr}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${xd}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${yi},${vi};transition-delay:${nt.fastOutSlowInMin},${nt.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${yi},${qn};transition-delay:${nt.fastOutSlowInMin},${nt.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,mh=b`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function vh(){return b`<slot ${_("defaultSlot")}>${o=>o.name||o.initials?o.generateInitials():mh}</slot><slot name="badge"></slot>`}const $h=vh(),yh=bh.compose({name:`${p.prefix}-avatar`,template:$h,styles:fh});yh.define(p.registry);const xh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},kh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var wh=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,Si=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&wh(e,t,r),r};class Ut extends ${constructor(){super(...arguments),this.appearance=xh.filled,this.color=kh.brand}}Si([a],Ut.prototype,"appearance",2),Si([a],Ut.prototype,"color",2),Si([a],Ut.prototype,"shape",2),Si([a],Ut.prototype,"size",2),Ue(Ut,Xe);const Jn=u.partial`
46
- ${k("inline-flex")} :host {
47
- position: relative;
48
- box-sizing: border-box;
49
- align-items: center;
50
- justify-content: center;
51
- font-family: ${v};
52
- font-weight: ${D};
53
- font-size: ${F};
54
- line-height: ${q};
55
- min-width: 20px;
56
- height: 20px;
57
- padding-inline: calc(${ne} + ${H});
58
- border-radius: ${ve};
59
- border-color: ${U};
60
- background-color: ${un};
61
- color: ${Ke};
62
- contain: content;
63
- }
64
-
65
- ::slotted(svg) {
66
- font-size: 12px;
67
- }
68
-
69
- :host(:not([appearance='ghost']))::after {
70
- position: absolute;
71
- content: '';
72
- top: 0;
73
- left: 0;
74
- bottom: 0;
75
- right: 0;
76
- border-style: solid;
77
- border-width: ${P};
78
- border-color: inherit;
79
- border-radius: inherit;
80
- }
81
- `,ea=u.partial`
82
- :host([size='tiny']) {
83
- width: 6px;
84
- height: 6px;
85
- font-size: 4px;
86
- line-height: 4px;
87
- padding-inline: 0;
88
- min-width: unset;
89
- }
90
- :host([size='tiny']) ::slotted(svg) {
91
- font-size: 6px;
92
- }
93
- :host([size='extra-small']) {
94
- width: 10px;
95
- height: 10px;
96
- font-size: 6px;
97
- line-height: 6px;
98
- padding-inline: 0;
99
- min-width: unset;
100
- }
101
- :host([size='extra-small']) ::slotted(svg) {
102
- font-size: 10px;
103
- }
104
- :host([size='small']) {
105
- min-width: 16px;
106
- height: 16px;
107
- font-size: ${Co};
108
- line-height: ${bi};
109
- padding-inline: calc(${H} + ${H});
110
- }
111
- :host([size='small']) ::slotted(svg) {
112
- font-size: 12px;
113
- }
114
- :host([size='large']) {
115
- min-width: 24px;
116
- height: 24px;
117
- font-size: ${F};
118
- line-height: ${q};
119
- padding-inline: calc(${ne} + ${H});
120
- }
121
- :host([size='large']) ::slotted(svg) {
122
- font-size: 16px;
123
- }
124
- :host([size='extra-large']) {
125
- min-width: 32px;
126
- height: 32px;
127
- font-size: ${F};
128
- line-height: ${q};
129
- padding-inline: calc(${ee} + ${H});
130
- }
131
- :host([size='extra-large']) ::slotted(svg) {
132
- font-size: 20px;
133
- }
134
- `,ta=u.partial`
135
- :host([color='danger']) {
136
- background-color: ${xn};
137
- color: ${Ke};
138
- }
139
-
140
- :host([color='important']) {
141
- background-color: ${T};
142
- color: ${I};
143
- }
144
-
145
- :host([color='informative']) {
146
- background-color: ${Gl};
147
- color: ${J};
148
- }
149
-
150
- :host([color='severe']) {
151
- background-color: ${Pn};
152
- color: ${Ke};
153
- }
154
-
155
- :host([color='subtle']) {
156
- background-color: ${I};
157
- color: ${T};
158
- }
159
-
160
- :host([color='success']) {
161
- background-color: ${Sn};
162
- color: ${Ke};
163
- }
164
-
165
- :host([color='warning']) {
166
- background-color: ${hc};
167
- color: ${ql};
168
- }
169
- `,oa=u.partial`
170
- :host([appearance='ghost']) {
171
- color: ${ni};
172
- background-color: initial;
173
- }
174
-
175
- :host([appearance='ghost'][color='danger']) {
176
- color: ${wn};
177
- }
178
-
179
- :host([appearance='ghost'][color='important']) {
180
- color: ${T};
181
- }
182
-
183
- :host([appearance='ghost'][color='informative']) {
184
- color: ${J};
185
- }
186
-
187
- :host([appearance='ghost'][color='severe']) {
188
- color: ${Tn};
189
- }
190
-
191
- :host([appearance='ghost'][color='subtle']) {
192
- color: ${bt};
193
- }
194
-
195
- :host([appearance='ghost'][color='success']) {
196
- color: ${lc};
197
- }
198
-
199
- :host([appearance='ghost'][color='warning']) {
200
- color: ${$r};
201
- }
202
- `,Sh=u.partial`
203
- :host([appearance='outline']) {
204
- border-color: currentColor;
205
- color: ${ni};
206
- background-color: initial;
207
- }
208
-
209
- :host([appearance='outline'][color='danger']) {
210
- color: ${wn};
211
- }
212
-
213
- :host([appearance='outline'][color='important']) {
214
- color: ${J};
215
- border-color: ${Ve};
216
- }
217
-
218
- :host([appearance='outline'][color='informative']) {
219
- color: ${J};
220
- border-color: ${wo};
221
- }
222
-
223
- :host([appearance='outline'][color='severe']) {
224
- color: ${Tn};
225
- }
226
-
227
- :host([appearance='outline'][color='subtle']) {
228
- color: ${nn};
229
- }
230
-
231
- :host([appearance='outline'][color='success']) {
232
- color: ${ac};
233
- }
234
-
235
- :host([appearance='outline'][color='warning']) {
236
- color: ${$r};
237
- }
238
- `,Ih=u.partial`
239
- :host([appearance='tint']) {
240
- background-color: ${fn};
241
- color: ${Rl};
242
- border-color: ${vn};
243
- }
244
-
245
- :host([appearance='tint'][color='danger']) {
246
- background-color: ${yn};
247
- color: ${vr};
248
- border-color: ${kn};
249
- }
250
-
251
- :host([appearance='tint'][color='important']) {
252
- background-color: ${J};
253
- color: ${I};
254
- border-color: ${U};
255
- }
256
-
257
- :host([appearance='tint'][color='informative']) {
258
- background-color: ${Wl};
259
- color: ${J};
260
- border-color: ${wo};
261
- }
262
-
263
- :host([appearance='tint'][color='severe']) {
264
- background-color: ${In};
265
- color: ${cc};
266
- border-color: ${zn};
267
- }
268
-
269
- :host([appearance='tint'][color='subtle']) {
270
- background-color: ${I};
271
- color: ${J};
272
- border-color: ${wo};
273
- }
274
-
275
- :host([appearance='tint'][color='success']) {
276
- background-color: ${Cn};
277
- color: ${nc};
278
- border-color: ${sc};
279
- }
280
-
281
- :host([appearance='tint'][color='warning']) {
282
- background-color: ${dc};
283
- color: ${$r};
284
- border-color: ${uc};
285
- }
286
- `,ia=u.partial`
287
- font-family: ${v};
288
- font-size: ${B};
289
- line-height: ${E};
290
- font-weight: ${A};
291
- `;u.partial`
292
- font-family: ${v};
293
- font-size: ${B};
294
- line-height: ${E};
295
- font-weight: ${D};
296
- `,u.partial`
297
- font-family: ${v};
298
- font-size: ${B};
299
- line-height: ${E};
300
- font-weight: ${pi};
301
- `;const Ph=u.partial`
302
- font-family: ${v};
303
- font-size: ${he};
304
- line-height: ${$e};
305
- font-weight: ${A};
306
- `,ra=u.partial`
307
- font-family: ${v};
308
- font-size: ${F};
309
- line-height: ${q};
310
- font-weight: ${A};
311
- `;u.partial`
312
- font-family: ${v};
313
- font-size: ${F};
314
- line-height: ${q};
315
- font-weight: ${D};
316
- `,u.partial`
317
- font-family: ${v};
318
- font-size: ${F};
319
- line-height: ${q};
320
- font-weight: ${pi};
321
- `,u.partial`
322
- font-family: ${v};
323
- font-size: ${Co};
324
- line-height: ${bi};
325
- font-weight: ${A};
326
- `,u.partial`
327
- font-family: ${v};
328
- font-size: ${Co};
329
- line-height: ${bi};
330
- font-weight: ${D};
331
- `;const zh=u.partial`
332
- font-family: ${v};
333
- font-size: ${jt};
334
- line-height: ${gi};
335
- font-weight: ${D};
336
- `;u.partial`
337
- font-family: ${v};
338
- font-size: ${he};
339
- line-height: ${$e};
340
- font-weight: ${D};
341
- `,u.partial`
342
- font-family: ${v};
343
- font-size: ${he};
344
- line-height: ${$e};
345
- font-weight: ${pi};
346
- `,u.partial`
347
- font-family: ${v};
348
- font-size: ${En};
349
- line-height: ${Hn};
350
- font-weight: ${D};
351
- `,u.partial`
352
- font-family: ${v};
353
- font-size: ${An};
354
- line-height: ${Dn};
355
- font-weight: ${D};
356
- `,u.partial`
357
- font-family: ${v};
358
- font-size: ${ui};
359
- line-height: ${Mn};
360
- font-weight: ${D};
361
- `,u.partial`
362
- font-family: ${v};
363
- font-size: ${Nn};
364
- line-height: ${Vn};
365
- font-weight: ${D};
366
- `,u.partial`
367
- font-family: ${v};
368
- font-size: ${Fn};
369
- line-height: ${Ln};
370
- font-weight: ${D};
371
- `;const Th=u`
372
- :host([shape='square']){border-radius:${hi}}:host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Be}}${Ih}
373
- ${Sh}
374
- ${oa}
375
- ${ta}
376
- ${ea}
377
- ${Jn}
378
- `.withBehaviors(X(u`
379
- :host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function sa(o={}){return b` ${He(o)}<slot>${ge(o.defaultContent)}</slot>${tt(o)} `}const Bh=sa(),Oh=Ut.compose({name:`${p.prefix}-badge`,template:Bh,styles:Th});Oh.define(p.registry);var _h=Object.defineProperty,Ah=Object.getOwnPropertyDescriptor,Se=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ah(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_h(e,t,r),r};class ue extends ${constructor(){super(),this.disabled=!1,this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.$fastController.isConnected&&(this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0)}disabledFocusableChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==ki.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.disabledChanged()}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key===fo||e.key===Jo){this.click();return}return!0}press(){switch(this.type){case ki.reset:{this.resetForm();break}case ki.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==ki.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}ue.formAssociated=!0,Se([a({mode:"boolean"})],ue.prototype,"autofocus",2),Se([g],ue.prototype,"defaultSlottedContent",2),Se([a({mode:"boolean"})],ue.prototype,"disabled",2),Se([a({attribute:"disabled-focusable",mode:"boolean"})],ue.prototype,"disabledFocusable",2),Se([a({attribute:"formaction"})],ue.prototype,"formAction",2),Se([a({attribute:"form"})],ue.prototype,"formAttribute",2),Se([a({attribute:"formenctype"})],ue.prototype,"formEnctype",2),Se([a({attribute:"formmethod"})],ue.prototype,"formMethod",2),Se([a({attribute:"formnovalidate",mode:"boolean"})],ue.prototype,"formNoValidate",2),Se([a({attribute:"formtarget"})],ue.prototype,"formTarget",2),Se([a],ue.prototype,"name",2),Se([a],ue.prototype,"type",2),Se([a],ue.prototype,"value",2);var Eh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,Ii=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Eh(e,t,r),r};class Ye extends ue{constructor(){super(...arguments),this.iconOnly=!1}}Ii([a],Ye.prototype,"appearance",2),Ii([a],Ye.prototype,"shape",2),Ii([a],Ye.prototype,"size",2),Ii([a({attribute:"icon-only",mode:"boolean"})],Ye.prototype,"iconOnly",2),Ue(Ye,Xe);function Ar(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keypress="${(e,t)=>e.keypressHandler(t.event)}">${He(o)}<span class="content" part="content"><slot ${G("defaultSlottedContent")}></slot></span>${tt(o)}</template>`}const Fh=Ar(),Mh=Ye.compose({name:`${p.prefix}-button`,template:Fh,styles:Ci});Mh.define(p.registry);var Dh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,at=(o,e,t,i)=>{for(var r=i>1?void 0:i?Hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Dh(e,t,r),r};class Pe extends ${constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),y(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity()}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals.ariaChecked=e?"true":"false"}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,i)}}toggleChecked(e=!this.checked){this.checked=e}}Pe.formAssociated=!0,at([a({mode:"boolean"})],Pe.prototype,"autofocus",2),at([g],Pe.prototype,"disabled",2),at([a({attribute:"disabled",mode:"boolean"})],Pe.prototype,"disabledAttribute",2),at([a({attribute:"form"})],Pe.prototype,"formAttribute",2),at([a({attribute:"checked",mode:"boolean"})],Pe.prototype,"initialChecked",2),at([a({attribute:"value",mode:"fromView"})],Pe.prototype,"initialValue",2),at([a],Pe.prototype,"name",2),at([a({mode:"boolean"})],Pe.prototype,"required",2);var Vh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,Er=(o,e,t,i)=>{for(var r=i>1?void 0:i?Lh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Vh(e,t,r),r};class Pi extends Pe{indeterminateChanged(e,t){this.setAriaChecked(),y(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Er([g],Pi.prototype,"indeterminate",2),Er([a],Pi.prototype,"shape",2),Er([a],Pi.prototype,"size",2);const jh=z("active"),Rh=z("bad-input"),x=z("checked"),qh=z("custom-error"),Wh=z("description"),xe=z("disabled");z("error");const Gh=z("flip-block"),Xh=z("focus-visible");z("has-message");const Ct=z("indeterminate"),Kt=z("multiple"),Uh=z("open"),Kh=z("pattern-mismatch"),Yh=z("placeholder-shown"),M=z("pressed"),Qh=z("range-overflow"),Zh=z("range-underflow"),Jh=z("required"),Nr=z("selected"),eu=z("step-mismatch"),zi=z("submenu"),tu=z("too-long"),ou=z("too-short"),iu=z("type-mismatch"),ru=z("user-invalid"),su=z("valid"),nu=z("value-missing"),au=u`
380
- ${k("inline-flex")}
381
-
382
- :host{--size:16px;background-color:${I};border-radius:${Be};border:${P} solid ${Ve};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${mt}}:host(:active){border-color:${vt}}:host(${x}:hover){background-color:${Ht};border-color:${Jl}}:host(${x}:active){background-color:${Vt};border-color:${$n}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ye} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${me}}.indeterminate-indicator,.checked-indicator{color:${bt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${x})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${x}),:host(${Ct}){border-color:${$t}}:host(${x}),:host(${Ct}) .indeterminate-indicator{background-color:${ft}}:host(${Ct}) .indeterminate-indicator{border-radius:${Be};position:absolute;width:calc(var(--size) / 2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ve}}:host([disabled]),:host([disabled]${x}){background-color:${it};border-color:${Ce}}:host([disabled]){cursor:unset}:host([disabled]${Ct}) .indeterminate-indicator{background-color:${Ce}}:host([disabled]${x}) .checked-indicator{color:${Ce}}`.withBehaviors(X(u`
383
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${x}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${x}),:host(${Ct}) .indeterminate-indicator{background-color:FieldText}:host(${x}:not([disabled]):hover),:host(${Ct}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${Ct}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${x}) .checked-indicator{color:GrayText}`)),lu=b.partial(`
384
- <svg
385
- fill="currentColor"
386
- aria-hidden="true"
387
- class="checked-indicator"
388
- width="1em"
389
- height="1em"
390
- viewBox="0 0 12 12"
391
- xmlns="http://www.w3.org/2000/svg">
392
- <path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
393
- </svg>
394
- `),cu=b.partial(`
395
- <span class="indeterminate-indicator"></span>
396
- `);function du(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ge(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ge(o.indeterminateIndicator)}</slot></template>`}const hu=du({checkedIndicator:lu,indeterminateIndicator:cu}),uu=Pi.compose({name:`${p.prefix}-checkbox`,template:hu,styles:au});uu.define(p.registry);class pu extends Ye{}const bu=u`
397
- ${Ci}
398
-
399
- :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${E}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Ie};line-height:100%;font-size:${F};font-weight:${A}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Mt}}:host(:active) ::slotted([slot='description']){color:${Dt}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ke}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active)))
400
- ::slotted([slot='description']){color:${Ie}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${ri}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${si}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
401
- ::slotted([slot='description']){color:${S}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${ee}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${ne}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Oe}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${he};line-height:${$e}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}`.withBehaviors(X(u`
402
- :host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable]))
403
- ::slotted([slot='description']){color:HighlightText}`));function gu(o={}){return b`<template ?disabled="${e=>e.disabled}" tabindex="${e=>e.disabled?null:e.tabIndex??0}">${He(o)}<span class="content" part="content"><slot ${G("defaultSlottedContent")}></slot><slot name="description"></slot></span>${tt(o)}</template>`}const fu=gu(),mu=pu.compose({name:`${p.prefix}-compound-button`,template:fu,styles:bu});mu.define(p.registry);var vu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,lt=(o,e,t,i)=>{for(var r=i>1?void 0:i?$u(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&vu(e,t,r),r};class qe extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}setCount(){const e=this.count??0;if((e!==0||this.showZero)&&!this.dot)return e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}lt([a],qe.prototype,"appearance",2),lt([a],qe.prototype,"color",2),lt([a],qe.prototype,"shape",2),lt([a],qe.prototype,"size",2),lt([a({converter:re})],qe.prototype,"count",2),lt([a({attribute:"overflow-count",converter:re})],qe.prototype,"overflowCount",2),lt([a({attribute:"show-zero",mode:"boolean"})],qe.prototype,"showZero",2),lt([a({mode:"boolean"})],qe.prototype,"dot",2),Ue(qe,Xe);const yu=u`
404
- :host([shape='rounded']){border-radius:${C}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Be}}${ea}
405
- ${ta}
406
- ${oa}
407
- ${Jn}
408
-
409
- :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function xu(o={}){return sa({defaultContent:b`${e=>e.setCount()}`})}const ku=xu(),wu=qe.compose({name:`${p.prefix}-counter-badge`,template:ku,styles:yu});wu.define(p.registry);const St={modal:"modal",nonModal:"non-modal",alert:"alert"};function na(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Cu=Object.defineProperty,Su=Object.getOwnPropertyDescriptor,Ti=(o,e,t,i)=>{for(var r=i>1?void 0:i?Su(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Cu(e,t,r),r};class So extends ${constructor(){super(...arguments),this.type=St.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}typeChanged(e,t){this.dialog&&(t===St.alert?this.dialog.setAttribute("role","alertdialog"):this.dialog.removeAttribute("role"),t!==St.nonModal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(void 0,this.type)}show(){Z.enqueue(()=>{this.emitBeforeToggle(),this.type===St.alert||this.type===St.modal?this.dialog.showModal():this.type===St.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==St.alert&&e.target===this.dialog&&this.hide(),!0}}Ti([g],So.prototype,"dialog",2),Ti([a({attribute:"aria-describedby"})],So.prototype,"ariaDescribedby",2),Ti([a({attribute:"aria-labelledby"})],So.prototype,"ariaLabelledby",2),Ti([a],So.prototype,"type",2);const Iu=b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.hide()}" ${_("dialog")}><slot></slot></dialog>`,Pu=u`
410
- @layer base{:host{--dialog-backdrop:${gr};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${I};border-radius:${_n};border:none;box-shadow:${jn};color:${T};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ir};transition-timing-function:${kt};opacity:0}::backdrop{transition-timing-function:${zr}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${xt}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(X(u`
411
- @layer base{dialog{border:${P} solid ${U}}}`)),zu=So.compose({name:`${p.prefix}-dialog`,template:Iu,styles:Pu});zu.define(p.registry);class Tu extends ${clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;na(t)&&t.hide()}return!0}}const Bu=b`<template><div class="title" part="title"><slot name="title"></slot><slot name="title-action"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div></template>`,Ou=u`
412
- ${k("grid")}
413
-
414
- :host{background:${I};box-sizing:border-box;gap:${V};padding:${yt} ${wr};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${I};color:${T};column-gap:8px;display:flex;font-family:${v};font-size:${jt};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${gi};margin-block-end:calc(${V} * -1);margin-block-start:calc(${yt} * -1);padding-block-end:${V};padding-block-start:${yt}}.content{box-sizing:border-box;color:${T};font-family:${v};font-size:${B};font-weight:${A};line-height:${E};min-height:32px}.actions{box-sizing:border-box;background:${I};display:flex;flex-direction:column;gap:${V};inset-block-end:0;margin-block-end:calc(${yt} * -1);padding-block-end:${yt};padding-block-start:${mi}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${V} * -1);padding-block-start:${V}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}`,_u=Tu.compose({name:`${p.prefix}-dialog-body`,template:Bu,styles:Ou});_u.define(p.registry);const Io={separator:"separator",presentation:"presentation"},aa=be;var Au=Object.defineProperty,Eu=Object.getOwnPropertyDescriptor,la=(o,e,t,i)=>{for(var r=i>1?void 0:i?Eu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Au(e,t,r),r};class Fr extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Io.separator,this.role!==Io.presentation&&(this.elementInternals.ariaOrientation=this.orientation??aa.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??Io.separator}`),t===Io.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==Io.presentation?t??null:null,wt(this.elementInternals,e,t,aa)}}la([a],Fr.prototype,"role",2),la([a],Fr.prototype,"orientation",2);var Nu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Mr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Fu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Nu(e,t,r),r};class Bi extends Fr{}Mr([a({attribute:"align-content"})],Bi.prototype,"alignContent",2),Mr([a],Bi.prototype,"appearance",2),Mr([a({mode:"boolean"})],Bi.prototype,"inset",2);function Mu(){return b`<slot></slot>`}const Du=Mu(),Hu=u`
415
- ${k("flex")}
416
-
417
- :host{contain:content}:host::after,:host::before{align-self:center;background:${wo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${P}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Ie};font-family:${v};font-size:${F};font-weight:${A};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${P};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${Le}}:host([appearance='strong']) ::slotted(*){color:${T}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${mn}}:host([appearance='brand']) ::slotted(*){color:${ni}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${Ql}}:host([appearance='subtle']) ::slotted(*){color:${J}}`.withBehaviors(X(u`
418
- :host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Vu=Bi.compose({name:`${p.prefix}-divider`,template:Du,styles:Hu});Vu.define(p.registry);const Lu={start:"start",end:"end"},ju={small:"small",medium:"medium",large:"large",full:"full"},Po={nonModal:"non-modal",modal:"modal",inline:"inline"};var Ru=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Yt=(o,e,t,i)=>{for(var r=i>1?void 0:i?qu(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ru(e,t,r),r};class It extends ${constructor(){super(...arguments),this.type=Po.modal,this.position=Lu.start,this.size=ju.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}typeChanged(){this.dialog&&(this.updateDialogRole(),this.type===Po.modal?this.dialog.setAttribute("aria-modal","true"):this.dialog.removeAttribute("aria-modal"))}connectedCallback(){super.connectedCallback(),this.typeChanged(),this.observeRoleAttr()}disconnectedCallback(){super.disconnectedCallback(),this.roleAttrObserver.disconnect()}show(){Z.enqueue(()=>{this.emitBeforeToggle(),this.type===Po.inline||this.type===Po.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return e.preventDefault(),this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}observeRoleAttr(){this.roleAttrObserver||(this.roleAttrObserver=new MutationObserver(()=>{this.updateDialogRole()}),this.roleAttrObserver.observe(this,{attributes:!0,attributeFilter:["role"]}))}updateDialogRole(){console.log(this.role),this.dialog&&(this.dialog.role=this.type===Po.modal?"dialog":this.role)}}Yt([a],It.prototype,"type",2),Yt([a({attribute:"aria-labelledby"})],It.prototype,"ariaLabelledby",2),Yt([a({attribute:"aria-describedby"})],It.prototype,"ariaDescribedby",2),Yt([a],It.prototype,"position",2),Yt([a({attribute:"size"})],It.prototype,"size",2),Yt([g],It.prototype,"dialog",2);const Wu=u`
419
- ${k("block")}
420
-
421
- :host{--dialog-backdrop:${gr}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${B};line-height:${E};font-family:${v};font-weight:${A};color:${T};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${U};border-inline-start-color:var(--drawer-separator,${U});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${jn};border:${P} solid ${U};background:${I}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Ir};transition-timing-function:${kt}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${xt}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${xt}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Ir};transition-timing-function:${kt};background:var(--dialog-backdrop,${gr});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${zr}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Gu(){return b`<dialog class="dialog" part="dialog" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" @click="${(o,e)=>o.clickHandler(e.event)}" @cancel="${o=>o.cancelHandler()}" ${_("dialog")}><slot></slot></dialog>`}const Xu=Gu(),Uu=It.compose({name:`${p.prefix}-drawer`,template:Xu,styles:Wu});Uu.define(p.registry);class Ku extends ${clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;na(t,"-drawer")&&t.hide()}return!0}}const Yu=u`
422
- ${k("grid")}
423
- :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${wd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${zh}}.footer{display:flex;justify-content:flex-start;gap:${le}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Qu(){return b`<div class="header" part="header"><slot name="title"></slot><slot name="close" @click="${(o,e)=>o.clickHandler(e.event)}"></slot></div><div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div>`}const Zu=Qu(),Ju=Ku.compose({name:`${p.prefix}-drawer-body`,template:Zu,styles:Yu});Ju.define(p.registry);function ca(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function Oi(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}function da(o){return o.closest("[lang]")?.lang??"en"}let ep=0;function Qt(o="id-"){const e=`${o}${ep++}`;return document.getElementById(e)?Qt(o):e}function tp(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},1)}function op(o){"cancelIdleCallback"in globalThis?globalThis.cancelIdleCallback(o):clearTimeout(o)}function ha(o,e,t){let i;const s=`${t?.shallow??!1?":scope > ":""}:not(:defined)`,n=t?.timeout??50,c=h=>{if(i&&(op(i),i=void 0),!o.querySelector(s)||h&&h.timeRemaining()<=0){e();return}i=tp(c,{timeout:n})};c()}const ip={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Dr={combobox:"combobox",dropdown:"dropdown",select:"select"},rp=b`<svg class="chevron-down-20-regular" aria-hidden="true" slot="indicator" viewBox="0 0 20 20" ${_("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill="currentColor" /></svg>`,sp=b`<input @input="${(o,e)=>o.inputHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-labelledby="${o=>o.ariaLabelledBy}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" placeholder="${o=>o.placeholder}" role="combobox" ?disabled="${o=>o.disabled}" type="${o=>o.type}" value="${o=>o.valueAttribute}" slot="control" ${_("control")} />`,np=b`<button aria-activedescendant="${o=>o.activeDescendant}" aria-controls="${o=>o.listbox?.id??null}" aria-expanded="${o=>o.open}" aria-haspopup="listbox" role="combobox" ?disabled="${o=>o.disabled}" type="button" slot="control" ${_("control")}>${o=>o.displayValue}</button>`;function ap(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><div class="control"><slot name="control" ${_("controlSlot")}></slot><slot name="indicator" ${_("indicatorSlot")}>${ge(o.indicator)}</slot></div><slot @slotchange="${(e,t)=>e.slotchangeHandler(t.event)}"></slot></template>`}const lp=ap({indicator:rp});var cp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,K=(o,e,t,i)=>{for(var r=i>1?void 0:i?dp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cp(e,t,r),r};const L=class so extends ${constructor(){super(),this.activeIndex=0,this.id=Qt("dropdown-"),this.required=!1,this.type=Dr.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,i=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,i+e.width>window.innerWidth||ei(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${i}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation",Z.enqueue(()=>{this.insertControl()})}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const i=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((r,s)=>{r.active=s===i}),this.open&&this.enabledOptions[i]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Qt("input-"))}disabledChanged(e,t){Z.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return y(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(da(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return y(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const i=m.getNotifier(this);i.subscribe(t);for(const r of["disabled","multiple"])i.notify(r);if(Z.enqueue(()=>{this.enabledOptions.filter(r=>r.defaultSelected).forEach((r,s)=>{r.selected=this.multiple||s===0}),this.setValidity()}),ti){const r=Qt("--dropdown-anchor-");this.style.setProperty("anchor-name",r),this.listbox.style.setProperty("position-anchor",r)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){Z.enqueue(()=>{this.options.forEach(i=>{i.name=t})})}openChanged(e,t){y(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,ti||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??[]}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Dr.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??[]}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(i=>i.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Oi(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(da(this),{usage:"search",sensitivity:"base"})),t.filter(i=>this.listCollator.compare(i.text.substring(0,Math.min(i.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,i=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=i,!0}insertControl(){if(this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Dr.combobox){sp.render(this,this);return}np.render(this,this)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":{if(this.isCombobox)break;e.preventDefault()}case"Enter":case"Tab":{if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!0;if(!this.open){this.listbox.showPopover();return}let i=this.activeIndex;i+=t;let r=this.getEnabledIndexInBounds(i);return r===0&&this.freeformOption?.hidden&&(r=this.getEnabledIndexInBounds(i+t)),this.activeIndex=r,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Oi(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control.value=this.displayValue,this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const r=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:r,...e},t??this.validationMessage,i??this.control)}}slotchangeHandler(e){const t=e.target;ha(this,()=>{const i=t.assignedElements().find(r=>ca(r));i&&(this.listbox=i)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:i,isIntersecting:r,target:s})=>{if(ca(s)){if(i.bottom>window.innerHeight){y(s.elementInternals,"flip-block",!0);return}i.top<0&&y(s.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};L.formAssociated=!0,K([ls],L.prototype,"activeDescendant",1),K([g],L.prototype,"activeIndex",2),K([a({attribute:"aria-labelledby",mode:"fromView"})],L.prototype,"ariaLabelledBy",2),K([g],L.prototype,"control",2),K([a({mode:"boolean"})],L.prototype,"disabled",2),K([ls],L.prototype,"displayValue",1),K([a({attribute:"id"})],L.prototype,"id",2),K([g],L.prototype,"indicator",2),K([g],L.prototype,"indicatorSlot",2),K([a({attribute:"value",mode:"fromView"})],L.prototype,"initialValue",2),K([g],L.prototype,"listbox",2),K([a({mode:"boolean"})],L.prototype,"multiple",2),K([a],L.prototype,"name",2),K([g],L.prototype,"open",2),K([a],L.prototype,"placeholder",2),K([a({mode:"boolean"})],L.prototype,"required",2),K([a],L.prototype,"type",2),K([a({attribute:"value"})],L.prototype,"valueAttribute",2);let hp=L;var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,ua=(o,e,t,i)=>{for(var r=i>1?void 0:i?pp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&up(e,t,r),r};class Hr extends hp{constructor(){super(...arguments),this.appearance=ip.outline}}ua([a],Hr.prototype,"appearance",2),ua([a],Hr.prototype,"size",2);const bp=u`
424
- ${k("inline-flex")}
425
-
426
- :host{anchor-name:--dropdown-trigger;box-sizing:border-box;color:${T};cursor:pointer}:host(${Yh}){color:${pr}}.control{appearance:none;background-color:${I};border-radius:${C};border:${P} solid ${U};box-shadow:inset 0 0 0 ${P} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${H};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${je} ${ae};position:relative;text-align:start;width:100%;z-index:1;${ia}}:host([size='small']) .control{column-gap:${H};padding:${qt} ${ee};${ra}}:host([size='large']) .control{column-gap:${Oe};padding:${V} ${le};${Ph}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator'] > *,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${J};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:'' / '';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${P}}.control::after{background-color:${$t};height:${ye};scale:0 1;transition:scale ${Sr} ${kt}}:host(:where(:focus-within)) .control{border-radius:${C};box-shadow:inset 0 0 0 1px ${di};outline:${ye} solid ${me}}:host(:where(${Uh},:focus-within)) .control::after{scale:1 1;transition-duration:${$i};transition-timing-function:${xt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${Ve}}:host([appearance='transparent']) .control{--control-border-color:${fr};background-color:${fe};border-radius:${hi}}:host([appearance='outline']) .control{--control-border-color:${Le}}:host([appearance='outline']) .control:hover{--control-border-color:${Lt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${mt}}:host([appearance='outline']) .control:hover::after{background-color:${Ht}}:host([appearance='outline']) .control:active{--control-border-color:${ko}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${vt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Vt}}:host([appearance='filled-darker']) .control{background-color:${$o}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${U}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){--control-border-color:${Ce};background-color:${it};color:${S}}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${E} + (${je} * 2) + ${P})}:host([size='small']){--margin-offset:calc(${q} + (${qt} * 2) + ${P})}:host([size='large']){--margin-offset:calc(${$e} + (${V} * 2) + ${P})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator'] > *,::slotted([slot='indicator'])){color:GrayText}`,gp=Hr.compose({name:`${p.prefix}-dropdown`,template:lp,styles:bp});gp.define(p.registry);const fp={above:"above",after:"after",before:"before"},ze={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var mp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,_i=(o,e,t,i)=>{for(var r=i>1?void 0:i?vp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mp(e,t,r),r};class zo extends ${constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){y(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const i=t?.filter(r=>r.nodeType===Node.ELEMENT_NODE)??[];i?.length&&(this.input=i?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(this.input,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0}),this.slottedInputObserver=new MutationObserver(()=>{this.setStates()})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&y(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return y(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Ft("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&(y(this.elementInternals,"disabled",!!this.input.disabled),y(this.elementInternals,"readonly",!!this.input.readOnly),y(this.elementInternals,"required",!!this.input.required),y(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(ze))y(this.elementInternals,t,this.input.validity[e])}}_i([g],zo.prototype,"labelSlot",2),_i([g],zo.prototype,"messageSlot",2),_i([g],zo.prototype,"slottedInputs",2),_i([g],zo.prototype,"input",2);var $p=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,xp=(o,e,t,i)=>{for(var r=i>1?void 0:i?yp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$p(e,t,r),r};class pa extends zo{constructor(){super(...arguments),this.labelPosition=fp.above}}xp([a({attribute:"label-position"})],pa.prototype,"labelPosition",2);const kp=u`
427
- ${k("inline-grid")}
428
-
429
- :host{color:${T};align-items:center;gap:0 ${le};justify-items:start}:has([slot='message']){color:${T};row-gap:${V}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${le}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Rt}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Cd}}:host(${Jh}) ::slotted([slot='label'])::after{content:'*' / '';color:${vr};margin-inline-start:${ne}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${J};font-family:${v};font-size:${F};font-weight:${A};grid-area:message;line-height:${q};margin-block-start:${Rt}}:host(${Xh}:focus-within){border-radius:${C};outline:${ye} solid ${me}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${A};grid-area:label;line-height:${E};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${F};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${he};line-height:${$e}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${xe}){cursor:default}::slotted([flag]){display:none}:host(${Rh}) ::slotted([flag='${ze.badInput}']),:host(${qh}) ::slotted([flag='${ze.customError}']),:host(${Kh}) ::slotted([flag='${ze.patternMismatch}']),:host(${Qh}) ::slotted([flag='${ze.rangeOverflow}']),:host(${Zh}) ::slotted([flag='${ze.rangeUnderflow}']),:host(${eu}) ::slotted([flag='${ze.stepMismatch}']),:host(${tu}) ::slotted([flag='${ze.tooLong}']),:host(${ou}) ::slotted([flag='${ze.tooShort}']),:host(${iu}) ::slotted([flag='${ze.typeMismatch}']),:host(${nu}) ::slotted([flag='${ze.valueMissing}']),:host(${su}) ::slotted([flag='${ze.valid}']){display:block}`,wp=b`<template @click="${(o,e)=>o.clickHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}"><slot name="label" part="label" ${G("labelSlot")}></slot><slot name="input" part="input" ${G("slottedInputs")}></slot><slot name="message" part="message" ${G({property:"messageSlot",filter:lo("[flag]")})}></slot></template>`,Cp=pa.compose({name:`${p.prefix}-field`,template:wp,styles:kp,shadowOptions:{delegatesFocus:!0}});Cp.define(p.registry);var Sp=Object.defineProperty,Ip=Object.getOwnPropertyDescriptor,To=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ip(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Sp(e,t,r),r};class Zt extends ${}To([a({mode:"boolean"})],Zt.prototype,"block",2),To([a({mode:"boolean"})],Zt.prototype,"bordered",2),To([a({mode:"boolean"})],Zt.prototype,"shadow",2),To([a],Zt.prototype,"fit",2),To([a],Zt.prototype,"shape",2);const Pp=b`<slot></slot>`,zp=u`
430
- :host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${P} solid ${wo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${fi}}:host([shape='circular']) ::slotted(img){border-radius:${ve}}:host([shape='rounded']) ::slotted(img){border-radius:${C}}`,Tp=Zt.compose({name:`${p.prefix}-image`,template:Pp,styles:zp});Tp.define(p.registry);var Bp=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,Ai=(o,e,t,i)=>{for(var r=i>1?void 0:i?Op(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bp(e,t,r),r};class Bo extends ${constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Ai([a],Bo.prototype,"size",2),Ai([a],Bo.prototype,"weight",2),Ai([a({mode:"boolean"})],Bo.prototype,"disabled",2),Ai([a({mode:"boolean"})],Bo.prototype,"required",2);const _p=u`
431
- ${k("inline-flex")}
432
-
433
- :host{color:${T};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};line-height:${E};user-select:none}.asterisk{color:${vr};margin-inline-start:${ne}}:host([size='small']){font-size:${F};line-height:${q}}:host([size='large']){font-size:${he};line-height:${$e}}:host(:is([size='large'],[weight='semibold'])){font-weight:${D}}:host([disabled]),:host([disabled]) .asterisk{color:${S}}`;function Ap(){return b`<slot></slot><span part="asterisk" class="asterisk" aria-hidden="true" ?hidden="${o=>!o.required}">*</span>`}const Ep=Ap(),Np=Bo.compose({name:`${p.prefix}-label`,template:Ep,styles:_p});Np.define(p.registry);var Fp=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,ba=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fp(e,t,r),r};class Vr extends Re{constructor(){super(...arguments),this.inline=!1}}ba([a],Vr.prototype,"appearance",2),ba([a({mode:"boolean"})],Vr.prototype,"inline",2);const Dp=u`
434
- ${k("inline")}
435
-
436
- :host{position:relative;box-sizing:border-box;background-color:transparent;color:${El};cursor:pointer;font-family:${v};font-size:${B};font-weight:${A};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${P};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Nl}}:host(:active){color:${Fl}}:host([appearance='subtle']:hover){color:${Dl}}:host([appearance='subtle']:active){color:${Hl}}}:host([appearance='subtle']){color:${Ml}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(X(u`
437
- :host{color:LinkText}`));function Hp(){return b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot></slot></template>`}const Vp=Hp(),Lp=Vr.compose({name:`${p.prefix}-link`,template:Vp,styles:Dp});Lp.define(p.registry);var jp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,Oo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jp(e,t,r),r};class Jt extends ${constructor(){super(),this.id=Qt("listbox-"),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",y(this.elementInternals,"multiple",t),Z.enqueue(()=>{this.options.forEach(i=>{i.multiple=!!t})})}optionsChanged(e,t){t?.forEach((i,r)=>{i.elementInternals.ariaPosInSet=`${r+1}`,i.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Oi(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((i,r)=>{const s=r===e;i.selected=s,s&&(t=r)});else{const i=this.enabledOptions[e];i&&(i.selected=!i.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){const t=e.target;ha(this,()=>{const i=t.assignedElements().filter(r=>Oi(r));this.options=i})}}Oo([a({attribute:"id",mode:"fromView"})],Jt.prototype,"id",2),Oo([g],Jt.prototype,"multiple",2),Oo([g],Jt.prototype,"options",2),Oo([g],Jt.prototype,"selectedIndex",2),Oo([g],Jt.prototype,"dropdown",2);const qp=u`
438
- ${k("inline-flex")}
439
-
440
- :host{background-color:${I};border-radius:${C};border:${P} solid ${U};box-shadow:${xr};box-sizing:border-box;flex-direction:column;margin:0;min-width:160px;padding:${ne};row-gap:${H};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:absolute;margin-block-start:0;max-height:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-width:anchor-size(width);position-anchor:--dropdown;position-area:block-end span-inline-end;position-try-fallbacks:flip-inline,flip-block,--flip-block,block-start}@position-try --flip-block{bottom:anchor(top);top:unset}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-height:var(--listbox-max-height,50vh);position:fixed}:host([popover]${Gh}){margin-block-start:revert;translate:0 -100%}}`;function Wp(){return b`<template id="${o=>o.id}" @beforetoggle="${(o,e)=>o.beforetoggleHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Gp=Wp(),Xp=Jt.compose({name:`${p.prefix}-listbox`,template:Gp,styles:qp});Xp.define(p.registry);class Up extends Ye{}const Kp=Ar({end:b.partial(`
441
- <svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
442
- <path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
443
- </svg>
444
- `)}),Yp=Up.compose({name:`${p.prefix}-menu-button`,template:Kp,styles:Ci});Yp.define(p.registry);const te={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};te.menuitem+"",te.menuitemcheckbox+"",te.menuitemradio+"";function Qp(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var Zp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,eo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Jp(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Zp(e,t,r),r};class Qe extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=te.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case fo:case Jo:return this.invoke(),!1;case po:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case uo:return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=e=>{e instanceof ToggleEvent&&e.newState==="open"&&(this.setAttribute("tabindex","-1"),this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e instanceof ToggleEvent&&e.newState==="closed"&&(this.elementInternals.ariaExpanded="false",this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case te.menuitemcheckbox:this.checked=!this.checked;break;case te.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case te.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),i=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[i]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,y(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??te.menuitem}checkedChanged(e,t){const i=this.role!==te.menuitem;this.elementInternals.ariaChecked=i?`${!!t}`:null,y(this.elementInternals,"checked",i?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.toggleHandler),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler),this.elementInternals.ariaHasPopup="menu",y(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,y(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??te.menuitem,this.elementInternals.ariaChecked=this.role!==te.menuitem?`${!!this.checked}`:null}}eo([a({mode:"boolean"})],Qe.prototype,"disabled",2),eo([a],Qe.prototype,"role",2),eo([a({mode:"boolean"})],Qe.prototype,"checked",2),eo([a({mode:"boolean"})],Qe.prototype,"hidden",2),eo([g],Qe.prototype,"slottedSubmenu",2),eo([g],Qe.prototype,"submenu",2),Ue(Qe,Xe);const eb=u`
445
- ${k("grid")}
446
-
447
- :host{--indent:0;align-items:center;background:${I};border-radius:${C};color:${Ie};contain:layout;cursor:pointer;flex-shrink:0;font:${A} ${B} / ${E} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${ai};color:${Mt}}:host(:active){background-color:${an};color:${Dt}}:host(:active) ::slotted([slot='start']){color:${Vl}}:host(${xe}){background-color:${it};color:${S}}:host(${xe}) ::slotted([slot='start']),:host(${xe}) ::slotted([slot='end']){color:${S}}:host(:focus-visible){border-radius:${C};outline:2px solid ${me}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not(${x})) .indicator,:host(:not(${x})) ::slotted([slot='indicator']),:host(:not(${zi})) .submenu-glyph,:host(:not(${zi})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${J};font:${A} ${F} / ${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${zi}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${zi}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-area:inline-end span-block-end;position-try-fallbacks:flip-inline,block-start,block-end;z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}`.withBehaviors(X(u`
448
- :host(${xe}),:host(${xe}) ::slotted([slot='start']),:host(${xe}) ::slotted([slot='end']){color:GrayText}`)),tb=b.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),ob=b.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function ib(o={}){return b`<template @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" @toggle="${(e,t)=>e.toggleHandler(t.event)}"><slot name="indicator">${ge(o.indicator)}</slot>${He(o)}<div part="content" class="content"><slot></slot></div>${tt(o)}<slot name="submenu-glyph">${ge(o.submenuGlyph)}</slot><slot name="submenu" ${G({property:"slottedSubmenu"})}></slot></template>`}const rb=ib({indicator:tb,submenuGlyph:ob}),sb=Qe.compose({name:`${p.prefix}-menu-item`,template:rb,styles:eb});sb.define(p.registry);var nb=Object.defineProperty,ab=Object.getOwnPropertyDescriptor,lb=(o,e,t,i)=>{for(var r=i>1?void 0:i?ab(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&nb(e,t,r),r};const Lr=class ts extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&cr(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{const t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.changedMenuItemHandler=e=>{if(this.menuItems===void 0)return;const t=e.target,i=this.menuItems.indexOf(t);if(i!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=i-1;s>=0;--s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}const r=this.menuItems.length-1;for(let s=i+1;s<=r;++s){const n=this.menuItems[s],c=n.getAttribute("role");if(c===te.menuitemradio&&(n.checked=!1),c==="separator")break}}},this.isMenuItemElement=e=>Qp(e)||cr(e)&&e.getAttribute("role")in ts.focusableElementRoles,this.isFocusableElement=e=>this.isMenuItemElement(e),this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),Z.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case ho:this.setFocus(this.focusIndex+1,1);return;case bo:this.setFocus(this.focusIndex-1,-1);return;case go:this.setFocus(this.menuItems.length-1,-1);return;case mo:this.setFocus(0,1);return;default:return!0}}removeItemListeners(e=this.items){e.forEach(t=>{t.removeEventListener("focus",this.handleItemFocus),m.getNotifier(t).unsubscribe(this,"hidden")})}static elementIndent(e){const t=e.getAttribute("role"),i=e.querySelector("[slot=start]");return t&&t!==te.menuitem?i?2:1:i?1:0}setItems(){const e=Array.from(this.children);this.removeItemListeners(e),e.forEach(n=>m.getNotifier(n).subscribe(this,"hidden"));const t=e.filter(n=>!n.hasAttribute("hidden"));this.menuItems=t;const i=this.menuItems.filter(this.isMenuItemElement);i.length&&(this.focusIndex=0),i.forEach((n,c)=>{n.setAttribute("tabindex",c===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const r=this.menuItems?.filter(this.isMenuItemElement),s=r?.reduce((n,c)=>{const h=ts.elementIndent(c);return Math.max(n,h)},0);r?.forEach(n=>{n.dataset.indent=`${s}`})}handleChange(e,t){t==="hidden"&&this.setItems()}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){const i=this.menuItems[e];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,i.setAttribute("tabindex","0"),i.focus();break}e+=t}}};Lr.focusableElementRoles=te,lb([g],Lr.prototype,"items",2);let cb=Lr;const db=u`
449
- ${k("flex")}
450
-
451
- :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${I};border:1px solid ${U};border-radius:${C};box-shadow:${xr};padding:4px;row-gap:2px}`;function hb(){return b`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" @keydown="${(o,e)=>o.handleMenuKeyDown(e.event)}" @focusout="${(o,e)=>o.handleFocusOut(e.event)}"><slot ${G("items")}></slot></template>`}const ub=hb(),pb=cb.compose({name:`${p.prefix}-menu-list`,template:ub,styles:db});pb.define(p.registry);var bb=Object.defineProperty,gb=Object.getOwnPropertyDescriptor,ct=(o,e,t,i)=>{for(var r=i>1?void 0:i?gb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bb(e,t,r),r};class Ze extends ${constructor(){super(...arguments),this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof Qe&&(e.target.getAttribute("role")===te.menuitemcheckbox||e.target.getAttribute("role")===te.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case Jo:case fo:e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>{this.setComponent()})}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){Z.enqueue(()=>{this._menuList.focus()})}focusTrigger(){Z.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){t?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(e,t){t?this._menuList?.removeEventListener("change",this.closeMenu):this._menuList?.addEventListener("change",this.closeMenu)}openOnContextChanged(e,t){t?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("change",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case vl:e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case $l:if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}ct([a({attribute:"open-on-hover",mode:"boolean"})],Ze.prototype,"openOnHover",2),ct([a({attribute:"open-on-context",mode:"boolean"})],Ze.prototype,"openOnContext",2),ct([a({attribute:"close-on-scroll",mode:"boolean"})],Ze.prototype,"closeOnScroll",2),ct([a({attribute:"persist-on-item-click",mode:"boolean"})],Ze.prototype,"persistOnItemClick",2),ct([a({mode:"boolean"})],Ze.prototype,"split",2),ct([g],Ze.prototype,"slottedMenuList",2),ct([g],Ze.prototype,"slottedTriggers",2),ct([g],Ze.prototype,"primaryAction",2);const fb=u`
452
- ${k("inline-block")}
453
-
454
- ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block;position:absolute;z-index:1}:host([split]) ::slotted([popover]){position-area:block-end span-inline-start}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${P} solid ${Le};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${P} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function mb(){return b`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,e)=>o.menuKeydownHandler(e.event)}"><slot name="primary-action" ${_("primaryAction")}></slot><slot name="trigger" ${G({property:"slottedTriggers",filter:lo()})}></slot><slot ${G({property:"slottedMenuList",filter:lo()})}></slot></template>`}const vb=mb(),$b=Ze.compose({name:`${p.prefix}-menu`,template:vb,styles:fb});$b.define(p.registry);var yb=Object.defineProperty,xb=Object.getOwnPropertyDescriptor,jr=(o,e,t,i)=>{for(var r=i>1?void 0:i?xb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yb(e,t,r),r};class Ei extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}jr([a],Ei.prototype,"shape",2),jr([a],Ei.prototype,"layout",2),jr([a],Ei.prototype,"intent",2);const kb=u`
455
- :host{display:grid;box-sizing:border-box;font-family:${v};font-size:${F};line-height:${q};width:100%;background:${$o};border:1px solid ${Le};padding-inline:${le};border-radius:${C};min-height:36px;align-items:center;grid-template:'icon body actions dismiss' / auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${Cn};border-color:${rc}}:host([intent='warning']){background-color:${In};border-color:${zn}}:host([intent='error']){background-color:${yn};border-color:${kn}}:host([layout='multiline']){grid-template-areas:'icon body dismiss'
456
- 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${Wt};padding-inline:${le}}.content{grid-area:body;max-width:520px;padding-block:${Wt};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${J};margin-inline-end:${Oe}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Oe};gap:${Oe}}:host([layout='multiline']) .actions{margin-block-start:${Wt};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${V}}::slotted(*){font-size:inherit}`;function wb(){return b`<slot name="icon"></slot><div class="content"><slot></slot></div><div class="actions"><slot name="actions"></slot></div><slot name="dismiss"></slot>`}const Cb=wb(),Sb=Ei.compose({name:`${p.prefix}-message-bar`,template:Cb,styles:kb,shadowOptions:{mode:p.shadowRootMode}});Sb.define(p.registry);var Ib=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,ke=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ib(e,t,r),r};class ce extends ${constructor(){super(),this.active=!1,this.id=Qt("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){y(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){y(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",y(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){y(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,Z.enqueue(()=>{this.$fastController.isConnected&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",y(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ce.formAssociated=!0,ke([g],ce.prototype,"active",2),ke([a({attribute:"current-selected",mode:"boolean"})],ce.prototype,"currentSelected",2),ke([a({attribute:"selected",mode:"boolean"})],ce.prototype,"defaultSelected",2),ke([g],ce.prototype,"descriptionSlot",2),ke([g],ce.prototype,"disabled",2),ke([a({attribute:"disabled",mode:"boolean"})],ce.prototype,"disabledAttribute",2),ke([a({attribute:"form"})],ce.prototype,"formAttribute",2),ke([a({mode:"boolean"})],ce.prototype,"freeform",2),ke([a({attribute:"id"})],ce.prototype,"id",2),ke([a({attribute:"value",mode:"fromView"})],ce.prototype,"initialValue",2),ke([g],ce.prototype,"multiple",2),ke([a],ce.prototype,"name",2),ke([g],ce.prototype,"start",2),ke([a({attribute:"text",mode:"fromView"})],ce.prototype,"textAttribute",2);const zb=u`
457
- ${k("inline-grid")}
458
-
459
- :host{-webkit-tap-highlight-color:transparent;${ia}
460
- align-items:center;background-color:${I};border-radius:${C};box-sizing:border-box;color:${Ie};column-gap:${ne};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${ee};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${ai};color:${Mt}}:host(:active){background-color:${br};color:${Dt}}:host(:disabled){background-color:${I};color:${S};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Nr}) :is(slot[name='checked-indicator'] > *,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Kt}) .checkmark-16-filled,:host(:not(${Kt})) .checkmark-12-regular{display:none}:host(${Kt}) .checkmark-12-regular{background-color:${I};border-radius:${Be};border:${P} solid ${Ve};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Kt}${Nr}) .checkmark-12-regular{background-color:${ft};border-color:${$t};fill:${bt}}:host(:disabled${Kt}) .checkmark-12-regular{border-color:${Ce}}:host(:disabled${Kt}${Nr}) .checkmark-12-regular{background-color:${it}}:host(${jh}){border:${ye} solid ${me}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${ee}}}:host(${Wh}){column-gap:${ee};grid-template-areas:'indicator start content'
461
- 'indicator start description'}::slotted([slot='description']){color:${J};grid-area:description;${ra}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,Tb=b.partial(`
462
- <svg aria-hidden="true" class="checkmark-16-filled" viewBox="0 0 16 16">
463
- <path
464
- d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"
465
- />
466
- </svg>
467
- <svg aria-hidden="true" class="checkmark-12-regular" viewBox="0 0 12 12">
468
- <path
469
- d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"
470
- />
471
- </svg>
472
- `);function Bb(o={}){return b`<slot name="checked-indicator">${ge(o.checkedIndicator)}</slot>${He(o)}<div class="content" part="content"><slot ${G({property:"freeformOutputs",filter:lo("output")})}></slot></div><div class="description" part="description"><slot name="description" ${G("descriptionSlot")}></slot></div>`}const Ob=Bb({checkedIndicator:Tb}),_b=ce.compose({name:`${p.prefix}-option`,template:Ob,styles:zb});_b.define(p.registry);const Ab={success:"success",warning:"warning",error:"error"};var Eb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,_o=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Eb(e,t,r),r};class to extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}validationStateChanged(e,t){wt(this.elementInternals,e,t,Ab)}valueChanged(e,t){this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}minChanged(e,t){this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null,this.setIndicatorWidth()}connectedCallback(){super.connectedCallback(),this.setIndicatorWidth()}setIndicatorWidth(){if(!this.$fastController.isConnected||CSS.supports("width: attr(value type(<number>))"))return;if(typeof this.value!="number"){this.indicator.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,i=this.value??0,r=t-e,s=r===0?0:Math.fround((i-e)/r*100);this.indicator.style.setProperty("width",`${s}%`)}}_o([g],to.prototype,"indicator",2),_o([a({attribute:"validation-state"})],to.prototype,"validationState",2),_o([a({converter:re})],to.prototype,"value",2),_o([a({converter:re})],to.prototype,"min",2),_o([a({converter:re})],to.prototype,"max",2);var Fb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,ga=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Fb(e,t,r),r};class Rr extends to{}ga([a],Rr.prototype,"thickness",2),ga([a],Rr.prototype,"shape",2);const Db=u`
473
- ${k("block")}
474
-
475
- :host{width:100%;height:2px;overflow-x:hidden;background-color:${yo};border-radius:${C};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${hi}}.indicator{background-color:${ft};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
476
- to right,${yo} 0%,${fe} 50%,${yo} 100%
477
- );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${xn}}:host([validation-state='warning']) .indicator{background-color:${Pn}}:host([validation-state='success']) .indicator{background-color:${Sn}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(X(u`
478
- :host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}`));function Hb(){return b`<div class="indicator" part="indicator" ${_("indicator")}></div>`}const Vb=Hb(),Lb=Rr.compose({name:`${p.prefix}-progress-bar`,template:Vb,styles:Db});Lb.define(p.registry);class fa extends Pe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}function ma(o){const e=o.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}const va=be;var jb=Object.defineProperty,Rb=Object.getOwnPropertyDescriptor,Pt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rb(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jb(e,t,r),r};class Je extends ${constructor(){super(),this.dirtyState=!1,this.disabled=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??va.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.$fastController.isConnected&&(this.checkedIndex=-1,this.radios?.forEach(i=>{i.disabled=!!i.disabledAttribute||!!this.disabled}),this.restrictFocus())}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(i=>{i.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??va.horizontal}radiosChanged(e,t){const i=t?.length;if(!i)return;!this.name&&t.every(n=>n.name===t[0].name)&&(this.name=t[0].name);const r=ml(this.enabledRadios,n=>n.initialChecked);t.forEach((n,c)=>{n.ariaPosInSet=`${c+1}`,n.ariaSetSize=`${i}`,this.initialValue&&!this.dirtyState?n.checked=n.value===this.initialValue:n.checked=c===r,n.name=this.name??n.name,n.disabled=!!this.disabled||!!n.disabledAttribute}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&r>=0)&&(this.checkedIndex=r);const s=t.map(n=>n.id).join(" ").trim();s&&this.setAttribute("aria-owns",s),Z.enqueue(()=>{this.restrictFocus()})}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(i=>i.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(i=>i.disabled)?.forEach(i=>{i.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let i=this.checkedIndex;this.enabledRadios.forEach((r,s)=>{const n=s===e;r.checked=n,n&&(i=s,t&&r.$emit("change"))}),this.checkedIndex=i,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}focusinHandler(e){return this.disabled||this.enabledRadios.forEach(t=>{t.tabIndex=0}),!0}focusoutHandler(e){return this.radios?.includes(e.relatedTarget)&&this.radios?.some(t=>t.checked)&&this.restrictFocus(),!0}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledRadios.length){return t===0?-1:(e+t)%t}keydownHandler(e){const t=ei(this)==="rtl",i=this.enabledRadios.findIndex(n=>n===ma(this))??this.checkedIndex;let r=0;switch(e.key){case"ArrowLeft":{r=t?1:-1;break}case"ArrowUp":{r=-1;break}case"ArrowRight":{r=t?-1:1;break}case"ArrowDown":{r=1;break}case"Tab":{this.restrictFocus();break}case" ":{this.checkRadio();break}}if(!r)return!0;const s=i+r;this.checkRadio(this.getEnabledIndexInBounds(s),!0),this.enabledRadios[this.checkedIndex]?.focus()}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}restrictFocus(){let e=Math.max(this.checkedIndex,0);const t=this.enabledRadios.indexOf(ma(this));t!==-1&&(e=t),e=this.getEnabledIndexInBounds(e),this.enabledRadios.forEach((i,r)=>{i.tabIndex=r===e?0:-1})}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(c=>{c.elementInternals.setValidity({})});return}const s={valueMissing:!0,...e},n=t??this.validationMessage;this.enabledRadios?.forEach((c,h)=>{h===0?c.elementInternals.setValidity(s,n,c):c.elementInternals.setValidity({})})}}slotchangeHandler(e){Z.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(t=>t instanceof fa)})}}Je.formAssociated=!0,Pt([g],Je.prototype,"checkedIndex",2),Pt([a({attribute:"disabled",mode:"boolean"})],Je.prototype,"disabled",2),Pt([a({attribute:"value",mode:"fromView"})],Je.prototype,"initialValue",2),Pt([a],Je.prototype,"name",2),Pt([a],Je.prototype,"orientation",2),Pt([g],Je.prototype,"radios",2),Pt([a({mode:"boolean"})],Je.prototype,"required",2);const qb=u`
479
- ${k("flex")}
480
-
481
- :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${mi}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${J}}::slotted(:hover){color:${Ie}}::slotted(:active){color:${T}}::slotted(${xe}){color:${S}}::slotted(${x}){color:${T}}:host([slot='input']){margin:${V} ${Oe}}`;function Wb(){return b`<template @disabled="${(o,e)=>o.disabledRadioHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusinHandler(e.event)}" @focusout="${(o,e)=>o.focusoutHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}"><slot @slotchange="${(o,e)=>o.slotchangeHandler(e.event)}"></slot></template>`}const Gb=Wb(),Xb=Je.compose({name:`${p.prefix}-radio-group`,template:Gb,styles:qb});Xb.define(p.registry);const Ub=u`
482
- ${k("inline-flex")}
483
-
484
- :host{--size:16px;aspect-ratio:1;background-color:${I};border:${P} solid ${Ve};border-radius:${ve};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ve};color:${bt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:'' / '';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ye} solid ${U};border-radius:${C}}:host(:not([slot='input']):focus-visible)::after{border-color:${me}}:host(:hover){border-color:${mt}}:host(${x}){border-color:${$t}}:host(${x}) .checked-indicator{background-color:${ft}}:host(${x}:hover) .checked-indicator{background-color:${Ht}}:host(:active){border-color:${vt}}:host(${x}:active) .checked-indicator{background-color:${Vt}}:host(:focus-visible){outline:none}:host(${xe}){background-color:${it};border-color:${Ce}}:host(${x}${xe}) .checked-indicator{background-color:${Ce}}`.withBehaviors(X(u`
485
- :host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${xe}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${x}) .checked-indicator{background-color:FieldText}:host(${x}:not(${xe}):hover) .checked-indicator{background-color:Highlight}:host(${xe}){border-color:GrayText;color:GrayText}:host(${xe}${x}) .checked-indicator{background-color:GrayText}`)),Kb=b.partial(`
486
- <span part="checked-indicator" class="checked-indicator" role="presentation"></span>
487
- `);function Yb(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="checked-indicator">${ge(o.checkedIndicator)}</slot></template>`}const Qb=Yb({checkedIndicator:Kb}),Zb=fa.compose({name:`${p.prefix}-radio`,template:Qb,styles:Ub});Zb.define(p.registry);var Jb=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,Ni=(o,e,t,i)=>{for(var r=i>1?void 0:i?eg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Jb(e,t,r),r};const tg=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Fi(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class Ao extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,i=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,r=`
1
+ const h=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:globalThis.customElements});function un(o){return e=>e?.nodeType!==Node.ELEMENT_NODE?!1:e.tagName.toLowerCase().endsWith(o)}function pn(...o){return o.every(e=>e instanceof HTMLElement)}function Xr(o,e="-accordion-item"){return un(e)(o)}const Ea=`${h.prefix}-accordion-item`;class Kr{constructor(e,t,r=!1){this.evaluate=e,this.policy=t,this.isVolatile=r}}var ae;(function(o){o[o.needsArrayObservation=1101]="needsArrayObservation",o[o.onlySetDOMPolicyOnce=1201]="onlySetDOMPolicyOnce",o[o.bindingInnerHTMLRequiresTrustedTypes=1202]="bindingInnerHTMLRequiresTrustedTypes",o[o.twoWayBindingRequiresObservables=1203]="twoWayBindingRequiresObservables",o[o.hostBindingWithoutHost=1204]="hostBindingWithoutHost",o[o.unsupportedBindingBehavior=1205]="unsupportedBindingBehavior",o[o.directCallToHTMLTagNotAllowed=1206]="directCallToHTMLTagNotAllowed",o[o.onlySetTemplatePolicyOnce=1207]="onlySetTemplatePolicyOnce",o[o.cannotSetTemplatePolicyAfterCompilation=1208]="cannotSetTemplatePolicyAfterCompilation",o[o.blockedByDOMPolicy=1209]="blockedByDOMPolicy",o[o.invalidHydrationAttributeMarker=1210]="invalidHydrationAttributeMarker",o[o.duplicateRenderInstruction=1211]="duplicateRenderInstruction",o[o.missingElementDefinition=1401]="missingElementDefinition",o[o.noRegistrationForContext=1501]="noRegistrationForContext",o[o.noFactoryForResolver=1502]="noFactoryForResolver",o[o.invalidResolverStrategy=1503]="invalidResolverStrategy",o[o.cannotAutoregisterDependency=1504]="cannotAutoregisterDependency",o[o.cannotResolveKey=1505]="cannotResolveKey",o[o.cannotConstructNativeFunction=1506]="cannotConstructNativeFunction",o[o.cannotJITRegisterNonConstructor=1507]="cannotJITRegisterNonConstructor",o[o.cannotJITRegisterIntrinsic=1508]="cannotJITRegisterIntrinsic",o[o.cannotJITRegisterInterface=1509]="cannotJITRegisterInterface",o[o.invalidResolver=1510]="invalidResolver",o[o.invalidKey=1511]="invalidKey",o[o.noDefaultResolver=1512]="noDefaultResolver",o[o.cyclicDependency=1513]="cyclicDependency",o[o.connectUpdateRequiresController=1514]="connectUpdateRequiresController"})(ae||(ae={}));const lo=o=>typeof o=="function",nt=o=>typeof o=="string",Na=()=>{},Fa=Object.create(null),$e={warn(o,e){},error(o,e){return new Error(`Error ${o}`)},addMessages(o){Object.assign(Fa,o)}},Ma=Object.freeze([]);function Yr(){const o=new Map;return Object.freeze({register(e){return o.has(e.type)?!1:(o.set(e.type,e),!0)},getByType(e){return o.get(e)},getForInstance(e){if(e!=null)return o.get(e.constructor)}})}function gn(){const o=new WeakMap;return function(e){let t=o.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=o.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),o.set(e,t)}return t}}function mt(o){o.prototype.toJSON=Na}class fn extends Kr{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}}mt(fn);function bn(o,e){return new fn(o,e)}class Jr{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){const t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){const t=this.spillover,r=this.subject;if(t===void 0){const i=this.sub1,n=this.sub2;i!==void 0&&i.handleChange(r,e),n!==void 0&&n.handleChange(r,e)}else for(let i=0,n=t.length;i<n;++i)t[i].handleChange(r,e)}}class mn{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,r;(t=this.subscribers[e])===null||t===void 0||t.notify(e),(r=this.subjectSubscribers)===null||r===void 0||r.notify(e)}subscribe(e,t){var r,i;let n;t?n=(r=this.subscribers[t])!==null&&r!==void 0?r:this.subscribers[t]=new Jr(this.subject):n=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new Jr(this.subject),n.subscribe(e)}unsubscribe(e,t){var r,i;t?(r=this.subscribers[t])===null||r===void 0||r.unsubscribe(e):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(e)}}const He=[],Zr=[],La=globalThis.requestAnimationFrame;let Qr=!0;function Da(){if(Zr.length)throw Zr.shift()}function Ha(o){try{o.call()}catch(e){if(Qr)Zr.push(e),setTimeout(Da,0);else throw He.length=0,e}}function ei(){let e=0;for(;e<He.length;)if(Ha(He[e]),e++,e>1024){for(let t=0,r=He.length-e;t<r;t++)He[t]=He[t+e];He.length-=e,e=0}He.length=0}function vn(o){He.push(o),He.length<2&&(Qr?La(ei):ei())}const O=Object.freeze({enqueue:vn,next:()=>new Promise(vn),process:ei,setMode:o=>Qr=o}),Ro=Object.freeze({unknown:void 0,coupled:1}),m=(()=>{const o=O.enqueue,e=/(:|&&|\|\||if|\?\.)/,t=new WeakMap;let r,i=d=>{throw $e.error(ae.needsArrayObservation)};function n(d){var c;let f=(c=d.$fastController)!==null&&c!==void 0?c:t.get(d);return f===void 0&&(Array.isArray(d)?f=i(d):t.set(d,f=new mn(d))),f}const s=gn();class l{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return r!==void 0&&r.watch(c,this.name),c[this.field]}setValue(c,f){const k=this.field,A=c[k];if(A!==f){c[k]=f;const j=c[this.callback];lo(j)&&j.call(c,A,f),n(c).notify(this.name)}}}class u extends Jr{constructor(c,f,k=!1){super(c,f),this.expression=c,this.isVolatileBinding=k,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(c){this.isAsync=this.needsQueue=c}bind(c){const f=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),f}requiresUnbind(c){return c.sourceLifetime!==Ro.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,f){this.needsRefresh&&this.last!==null&&this.dispose();const k=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let A;try{A=this.expression(c,f)}finally{r=k}return A}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,f){const k=this.last,A=n(c),j=k===null?this.first:{};if(j.propertySource=c,j.propertyName=f,j.notifier=A,A.subscribe(this,f),k!==null){if(!this.needsRefresh){let se;r=void 0,se=k.propertySource[k.propertyName],r=this,c===se&&(this.needsRefresh=!0)}k.next=j}this.last=j}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let c=this.first;for(;c!==void 0;)yield c,c=c.next}}return mt(u),Object.freeze({setArrayObserverFactory(d){i=d},getNotifier:n,track(d,c){r&&r.watch(d,c)},trackVolatile(){r&&(r.needsRefresh=!0)},notify(d,c){n(d).notify(c)},defineProperty(d,c){nt(c)&&(c=new l(c)),s(d).push(c),Reflect.defineProperty(d,c.name,{enumerable:!0,get(){return c.getValue(this)},set(f){c.setValue(this,f)}})},getAccessors:s,binding(d,c,f=this.isVolatileBinding(d)){return new u(d,c,f)},isVolatileBinding(d){return e.test(d.toString())}})})();function g(o,e){m.defineProperty(o,e)}const $n=(()=>{let o=null;return{get(){return o},set(e){o=e}}})(),co=Object.freeze({default:{index:0,length:0,get event(){return co.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return $n.get()},setEvent(o){$n.set(o)}});class Va extends Kr{createObserver(e){return m.binding(this.evaluate,e,this.isVolatile)}}function yn(o,e,t=m.isVolatileBinding(o)){return new Va(o,e,t)}const J=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),xn=o=>o,Ra=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-element",{createHTML:xn}):{createHTML:xn};let jo=Object.freeze({createHTML(o){return Ra.createHTML(o)},protect(o,e,t,r){return r}});const ja=jo,Mt=Object.freeze({get policy(){return jo},setPolicy(o){if(jo!==ja)throw $e.error(ae.onlySetDOMPolicyOnce);jo=o},setAttribute(o,e,t){t==null?o.removeAttribute(e):o.setAttribute(e,t)},setBooleanAttribute(o,e,t){t?o.setAttribute(e,""):o.removeAttribute(e)}}),ti="boolean",kn="reflect",qo=Object.freeze({locate:gn()}),qa={toView(o){return o?"":null},fromView(o){return!!o}};function wn(o){if(o==null)return null;const e=o*1;return isNaN(e)?null:e}const te={toView(o){const e=wn(o);return e&&e.toString()},fromView:wn};class qr{constructor(e,t,r=t.toLowerCase(),i=kn,n){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=i,this.converter=n,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,i===ti&&n===void 0&&(this.converter=qa)}setValue(e,t){const r=e[this.fieldName],i=this.converter;i!==void 0&&(t=i.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return m.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.mode===ti?this.setValue(e,t!==null):this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,r=this.guards;r.has(e)||t==="fromView"||O.enqueue(()=>{r.add(e);const i=e[this.fieldName];switch(t){case kn:{const n=this.converter;Mt.setAttribute(e,this.attribute,n!==void 0?n.toView(i):i);break}case ti:Mt.setBooleanAttribute(e,this.attribute,i);break}r.delete(e)})}static collect(e,...t){const r=[];t.push(qo.locate(e));for(let i=0,n=t.length;i<n;++i){const s=t[i];if(s!==void 0)for(let l=0,u=s.length;l<u;++l){const d=s[l];nt(d)?r.push(new qr(e,d)):r.push(new qr(e,d.property,d.attribute,d.mode,d.converter))}}return r}}function a(o,e){let t;function r(i,n){arguments.length>1&&(t.property=n),qo.locate(i.constructor).push(t)}if(arguments.length>1){t={},r(o,e);return}return t=o===void 0?{}:o,r}let oi;function Sn(o){return o.reduce((e,t)=>(t instanceof ce?e.push(...Sn(t.styles)):e.push(t),e),[])}class ce{get strategy(){return this._strategy===null&&(oi||ce.setDefaultStrategy(ce.supportsAdoptedStyleSheets?Wa():Ga()),this.withStrategy(oi)),this._strategy}constructor(e){this.styles=e,this.targets=new WeakSet,this._strategy=null}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withStrategy(e){return this._strategy=new e(Sn(this.styles)),this}static setDefaultStrategy(e){oi=e}static normalize(e){return e===void 0?void 0:Array.isArray(e)?new ce(e):e instanceof ce?e:new ce([e])}}ce.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;function Wa(){const o=new Map;return class{constructor(t){this.sheets=t.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=o.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),o.set(r,i)),i})}addStylesTo(t){const r=t;r.adoptedStyleSheets=[...r.adoptedStyleSheets,...this.sheets]}removeStylesFrom(t){const r=t;r.adoptedStyleSheets=r.adoptedStyleSheets.filter(i=>this.sheets.indexOf(i)===-1)}}}let Ua=0;function Ga(){return class{constructor(e){this.styles=e,this.styleClass=`fast-${++Ua}`}addStylesTo(e){const t=e===document?document.body:e;for(let r=0;r<this.styles.length;r++){const i=document.createElement("style");i.innerHTML=this.styles[r],i.className=this.styleClass,t.append(i)}}removeStylesFrom(e){const t=e===document?document.body:e,r=t.querySelectorAll(`.${this.styleClass}`);for(let i=0,n=r.length;i<n;++i)t.removeChild(r[i])}}}const Xa={},Cn=new WeakMap,ri=Yr(),ho=Object.freeze({register(o){if(!ri.register(o))return!1;const e=In(o.registry);return Object.prototype.hasOwnProperty.call(e,o.name)||m.defineProperty(e,o.name),e[o.name]=o.type,!0},getByType:ri.getByType,getForInstance:ri.getForInstance,whenRegistered:Ka});function In(o=customElements){if(o===customElements)return Xa;let e=Cn.get(o);return e||(e={},Cn.set(o,e)),e}function Pn(o){return o===void 0?void 0:ho.getByType(o)}function Ka(o,e=customElements){const t=In(e);Object.prototype.hasOwnProperty.call(t,o)||m.defineProperty(t,o);const r=Pn(t[o]);return r!==void 0?Promise.resolve(r):new Promise(i=>{const n=m.getNotifier(t),s={handleChange:()=>{const l=Pn(t[o]);l!==void 0&&(n.unsubscribe(s,o),i(l))}};n.subscribe(s,o)})}const zn={mode:"open"},_n={},On=new Set,Wo=new WeakMap,Uo=new WeakMap,vt=new WeakMap,Tn=new WeakMap,Ya=new WeakMap;function Ja(o){return lo(o)}function Za(o){return typeof o?.then=="function"}function An(o,e){if(Uo.delete(o),o.template===void 0&&e!==void 0&&(o.template=e),o.template!==void 0)return vt.delete(o),Wo.delete(o),o.template}function Bn(o,e=o.registry,t){if(!t?.length)return;const r=o;let i=Tn.get(r);if(!i?.has(e)){i===void 0&&(i=new WeakSet,Tn.set(r,i)),i.add(e);for(const n of t)n(o)}}function ii(o){var e;return(e=Ya.get(o))!==null&&e!==void 0?e:null}function En(o){if(o.template!==void 0)return vt.delete(o),o.template;const e=Uo.get(o);if(e)return e;const t=Wo.get(o);if(!t)return;vt.delete(o);let r;try{r=t(o)}catch(i){throw vt.set(o,i),i}if(Za(r)){const i=Promise.resolve(r).then(n=>An(o,n)).catch(n=>{throw Uo.delete(o),vt.set(o,n),n});return Uo.set(o,i),i}return An(o,r)}function Qa(o,e){const t=o;if(e===void 0){vt.delete(t);return}vt.set(t,e)}class Je{get isDefined(){return this.platformDefined}constructor(e,t=e.definition){var r;this.platformDefined=!1,nt(t)&&(t={name:t}),this.type=e,this.name=t.name,this.registry=(r=t.registry)!==null&&r!==void 0?r:customElements,Ja(t.template)?Wo.set(this,t.template):this.template=t.template;const i=e.prototype,n=qr.collect(e,t.attributes),s=new Array(n.length),l={},u={};for(let d=0,c=n.length;d<c;++d){const f=n[d];s[d]=f.attribute,l[f.name]=f,u[f.attribute]=f,m.defineProperty(i,f)}Reflect.defineProperty(e,"observedAttributes",{value:s,enumerable:!0}),this.attributes=n,this.propertyLookup=l,this.attributeLookup=u,this.shadowOptions=t.shadowOptions===void 0?zn:t.shadowOptions===null?void 0:Object.assign(Object.assign({},zn),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?_n:Object.assign(Object.assign({},_n),t.elementOptions),this.styles=ce.normalize(t.styles),this.schema=t.schema,ho.register(this)}define(e=this.registry,t){const r=this.type;if(!e.get(this.name)){if(Bn(this,e,t),this.template===void 0&&Wo.has(this))return Promise.resolve().then(()=>En(this)).then(i=>{i!==void 0&&!e.get(this.name)&&(this.platformDefined=!0,e.define(this.name,r,this.elementOptions))}).catch(i=>{Qa(this,i),m.notify(this,"template")}),this;this.platformDefined=!0,e.define(this.name,r,this.elementOptions)}return this}static compose(e,t){const r=On.has(e)||ho.getByType(e)?new Je(class extends e{},t):new Je(e,t);return Promise.resolve(r)}static registerBaseType(e){On.add(e)}}Je.getByType=ho.getByType,Je.getForInstance=ho.getForInstance,m.defineProperty(Je.prototype,"template");const el={bubbles:!0,composed:!0,cancelable:!0},ni="isConnected",Nn=new WeakMap,si=Symbol("fast-late-attribute-observer");function Go(o){var e,t;return(t=(e=o.shadowRoot)!==null&&e!==void 0?e:Nn.get(o))!==null&&t!==void 0?t:null}let Fn;var de;(function(o){o[o.connecting=0]="connecting",o[o.connected=1]="connected",o[o.disconnecting=2]="disconnecting",o[o.disconnected=3]="disconnected"})(de||(de={}));class De{get isConnected(){return m.track(this,ni),this.stage===de.connected}get context(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.context)!==null&&t!==void 0?t:co.default}get isBound(){var e,t;return(t=(e=this.view)===null||e===void 0?void 0:e.isBound)!==null&&t!==void 0?t:!1}get sourceLifetime(){var e;return(e=this.view)===null||e===void 0?void 0:e.sourceLifetime}get template(){var e;if(this._template===null){const t=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():t.template&&(this._template=(e=t.template)!==null&&e!==void 0?e:null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode==="closed"&&Nn.set(this.source,t))}}get mainStyles(){var e;if(this._mainStyles===null){const t=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():t.styles&&(this._mainStyles=(e=t.styles)!==null&&e!==void 0?e:null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}constructor(e,t){this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this.isPrerendered=new Promise(n=>{this._resolvePrerendered=n}),this.isHydrated=new Promise(n=>{this._resolveHydrated=n}),this._template=null,this.stage=de.disconnected,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this._notifier=new mn(e),this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;const r=Reflect.getPrototypeOf(e),i=r===null?[]:m.getAccessors(r);if(i.length>0){const n=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s<l;++s){const u=i[s].name,d=e[u];d!==void 0&&(delete e[u],n[u]=d)}Object.keys(n).length===0&&(this.boundObservables=null)}this.captureBoundObservables()}get subject(){return this._notifier.subject}notify(e){this._notifier.notify(e)}subscribe(e,t){this._notifier.subscribe(e,t)}unsubscribe(e,t){this._notifier.unsubscribe(e,t)}onUnbind(e){var t;(t=this.view)===null||t===void 0||t.onUnbind(e)}addBehavior(e){var t,r;const i=(t=this.behaviors)!==null&&t!==void 0?t:this.behaviors=new Map,n=(r=i.get(e))!==null&&r!==void 0?r:0;n===0?(i.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===de.connected||this.stage===de.connecting)&&e.connectedCallback(this)):i.set(e,n+1)}removeBehavior(e,t=!1){const r=this.behaviors;if(r===null)return;const i=r.get(e);i!==void 0&&(i===1||t?(r.delete(e),e.disconnectedCallback&&this.stage!==de.disconnected&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):r.set(e,i-1))}addStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=Go(r))!==null&&t!==void 0?t:this.source).append(e):e.isAttachedTo(r)||e.addStylesTo(r)}removeStyles(e){var t;if(!e)return;const r=this.source;e instanceof HTMLElement?((t=Go(r))!==null&&t!==void 0?t:r).removeChild(e):e.isAttachedTo(r)&&e.removeStylesFrom(r)}connect(){this.stage===de.disconnected&&(this.stage=de.connecting,this.captureBoundObservables(),this.syncLateAttributes(),this.observeLateAttributes(),this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=de.connected,m.notify(this,ni))}bindObservables(){if(this.boundObservables!==null){const e=this.source,t=this.boundObservables,r=Object.keys(t);for(let i=0,n=r.length;i<n;++i){const s=r[i];e[s]=t[s]}this.boundObservables=null}}captureBoundObservables(){const e=this.source,t=Object.getOwnPropertyNames(e),r=n=>{let s=Reflect.getPrototypeOf(e);for(;s!==null;){const l=Reflect.getOwnPropertyDescriptor(s,n);if(l?.get||l?.set)return!0;s=Reflect.getPrototypeOf(s)}return!1};let i=this.boundObservables;for(let n=0,s=t.length;n<s;++n){const l=t[n],u=l[0]==="_"?l.slice(1):l;if(!r(u))continue;const d=e[u],c=l!==u,f=d!==null&&typeof d=="object"&&!d?.$isProxy&&!(Array.isArray(d)&&d?.$fastController);if(d===void 0){c||delete e[l];continue}c&&!f||(delete e[l],(i??(i=this.boundObservables=Object.create(null)))[u]=d)}}syncLateAttributes(){const e=ii(this.definition);if(e!==null)for(const t of Object.keys(e))this.source.hasAttribute(t)&&this.onAttributeChangedCallback(t,null,this.source.getAttribute(t))}observeLateAttributes(){const e=ii(this.definition);if(e===null)return;const t=this.source;t[si]===void 0&&(t[si]=new MutationObserver(r=>{const i=t.$fastController,n=ii(i.definition);if(n!==null)for(let s=0,l=r.length;s<l;++s){const u=r[s].attributeName;u===null||n[u]===void 0||i.onAttributeChangedCallback(u,null,t.getAttribute(u))}}),t[si].observe(t,{attributes:!0,attributeFilter:Object.keys(e)}))}connectBehaviors(){if(this.behaviorsConnected===!1){const e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(const t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const e=this.behaviors;if(e!==null)for(const t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===de.connected&&(this.stage=de.disconnecting,m.notify(this,ni),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=de.disconnected)}onAttributeChangedCallback(e,t,r){const i=this.definition.attributeLookup[e];i!==void 0&&i.onAttributeChangedCallback(this.source,r)}emit(e,t,r){return this.stage===de.connected?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},el),r))):!1}renderTemplate(e){var t;const r=this.source,i=(t=Go(r))!==null&&t!==void 0?t:r;if(this.view!==null)this.view.dispose(),this.view=null;else if((!this.needsInitialization||this.hasExistingShadowRoot)&&(!this.hasExistingShadowRoot||!this.needsInitialization))for(let n=i.firstChild;n!==null;n=i.firstChild)i.removeChild(n);if(e){const n=this.hasExistingShadowRoot&&this.needsInitialization;let s=!1;n&&De.hydrationHook&&(s=De.hydrationHook(this,e,r,i)),s||this.renderClientSide(e,r,i),this._resolvePrerendered(n),this._resolveHydrated(s)}else this.needsInitialization&&(this._resolvePrerendered(!1),this._resolveHydrated(!1))}renderClientSide(e,t,r){if(this.hasExistingShadowRoot){for(let i=r.firstChild;i!==null;i=r.firstChild)r.removeChild(i);this.hasExistingShadowRoot=!1}this.view=e.render(t,r,t),this.view.sourceLifetime=Ro.coupled}static forCustomElement(e,t=!1){const r=e.$fastController;if(r!==void 0&&!t)return r;const i=Je.getForInstance(e);if(i===void 0)throw $e.error(ae.missingElementDefinition);return m.getNotifier(i).subscribe({handleChange:()=>{De.forCustomElement(e,!0),e.$fastController.connect()}},"template"),m.getNotifier(i).subscribe({handleChange:()=>{De.forCustomElement(e,!0),e.$fastController.connect()}},"shadowOptions"),e.$fastController=new Fn(e,i)}static setStrategy(e){Fn=e}static installHydrationHook(e){De.hydrationHook=e}}De.hydrationHook=null,mt(De),De.setStrategy(De);function Xo(o){var e;return"adoptedStyleSheets"in o?o:(e=Go(o))!==null&&e!==void 0?e:o.getRootNode()}class Wr{constructor(e){const t=Wr.styleSheetCache;this.sheets=e.map(r=>{if(r instanceof CSSStyleSheet)return r;let i=t.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),t.set(r,i)),i})}addStylesTo(e){Ln(Xo(e),this.sheets)}removeStylesFrom(e){Dn(Xo(e),this.sheets)}}Wr.styleSheetCache=new Map;let tl=0;const ol=()=>`fast-${++tl}`;function Mn(o){return o===document?document.body:o}class rl{constructor(e){this.styles=e,this.styleClass=ol()}addStylesTo(e){e=Mn(Xo(e));const t=this.styles,r=this.styleClass;for(let i=0;i<t.length;i++){const n=document.createElement("style");n.innerHTML=t[i],n.className=r,e.append(n)}}removeStylesFrom(e){e=Mn(Xo(e));const t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,i=t.length;r<i;++r)e.removeChild(t[r])}}let Ln=(o,e)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...e]},Dn=(o,e)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ce.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ln=(o,e)=>{o.adoptedStyleSheets.push(...e)},Dn=(o,e)=>{for(const t of e){const r=o.adoptedStyleSheets.indexOf(t);r!==-1&&o.adoptedStyleSheets.splice(r,1)}}}catch{}ce.setDefaultStrategy(Wr)}else ce.setDefaultStrategy(rl);function Hn(o){const e=class extends o{constructor(){super(),De.forCustomElement(this)}$emit(t,r,i){return this.$fastController.emit(t,r,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(t,r,i){this.$fastController.onAttributeChangedCallback(t,r,i)}};return Je.registerBaseType(e),e}function il(o){return typeof o?.then=="function"}function nl(o,e,t){return Array.isArray(e)&&(t=e,e=void 0),(lo(o)?Je.compose(o,e):Je.compose(this,o)).then(i=>{Bn(i,i.registry,t);const n=En(i);return il(n)?n.then(()=>i.define().type):i.define().type})}function sl(o){return Hn(o)}const x=Object.assign(Hn(HTMLElement),{from:sl,define:nl});function ye(o,e,t){return Object.assign({},t,{get(){return m.trackVolatile(),t.get.apply(this)}})}const ai=Yr(),Vn=Object.freeze({getForInstance:ai.getForInstance,getByType:ai.getByType,define(o){return ai.register({type:o}),o}});function Rn(o,e){const t=[];let r="";for(let i=0,n=o.length-1;i<n;++i){r+=o[i];let s=e[i];Vn.getForInstance(s)!==void 0&&(s=s.createCSS()),s instanceof ce||s instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.push(s)):r+=s}return r+=o[o.length-1],r.trim()!==""&&t.push(r),t}const p=(o,...e)=>new ce(Rn(o,e));class jn{constructor(e){this.value=e.length===0?"":e.length===1?e[0]:new ce(e)}createCSS(){return this.value}}Vn.define(jn),p.partial=(o,...e)=>new jn(Rn(o,e));const li=`fast-${Math.random().toString(36).substring(2,8)}`,Ko=`${li}{`,uo=`}${li}`,al=uo.length;let ll=0;const ci=()=>`${li}-${++ll}`,qn=Object.freeze({interpolation:o=>`${Ko}${o}${uo}`,attribute:o=>`${ci()}="${Ko}${o}${uo}"`,comment:o=>`<!--${Ko}${o}${uo}-->`}),Yo=Object.freeze({parse(o,e){const t=o.split(Ko);if(t.length===1)return null;const r=[];for(let i=0,n=t.length;i<n;++i){const s=t[i],l=s.indexOf(uo);let u;if(l===-1)u=s;else{const d=s.substring(0,l);r.push(e[d]),u=s.substring(l+al)}u!==""&&r.push(u)}return r}}),di=Yr(),Ve=Object.freeze({getForInstance:di.getForInstance,getByType:di.getByType,define(o,e){return e=e||{},e.type=o,di.register(e),o},assignAspect(o,e){if(!e){o.aspectType=J.content;return}switch(o.sourceAspect=e,e[0]){case":":o.targetAspect=e.substring(1),o.aspectType=o.targetAspect==="classList"?J.tokenList:J.property;break;case"?":o.targetAspect=e.substring(1),o.aspectType=J.booleanAttribute;break;case"@":o.targetAspect=e.substring(1),o.aspectType=J.event;break;default:o.targetAspect=e,o.aspectType=J.attribute;break}}});class hi{constructor(e){this.options=e}createHTML(e){return qn.attribute(e(this))}createBehavior(){return this}}mt(hi);const cl=o=>o.nodeType===1,po=o=>o?e=>e.nodeType===1&&e.matches(o):cl;class dl extends hi{get id(){return this._id}set id(e){this._id=e,this._controllerProperty=`${e}-c`}bind(e){const t=e.targets[this.targetNodeId];t[this._controllerProperty]=e,this.updateTarget(e.source,this.computeNodes(t)),this.observe(t),e.onUnbind(this)}unbind(e){const t=e.targets[this.targetNodeId];this.updateTarget(e.source,Ma),this.disconnect(t),t[this._controllerProperty]=null}getSource(e){return e[this._controllerProperty].source}updateTarget(e,t){e[this.options.property]=t}computeNodes(e){let t=this.getNodes(e);return"filter"in this.options&&(t=t.filter(this.options.filter)),t}}const Wn=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,hl=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,ul=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,pl=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,gl=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,fl=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Un(o){return o&&o.nodeType===Node.COMMENT_NODE}const Ae=Object.freeze({attributeMarkerName:"data-fe",legacyAttributeMarkerName:"data-fe-b",legacyCompactAttributeMarkerName:"data-fe-c",contentBindingStartMarker(){return"fe:b"},contentBindingEndMarker(){return"fe:/b"},repeatStartMarker(){return"fe:r"},repeatEndMarker(){return"fe:/r"},elementBoundaryStartMarker(){return"fe:e"},elementBoundaryEndMarker(){return"fe:/e"},isContentBindingStartMarker(o){return o==="fe:b"||Wn.test(o)},isContentBindingEndMarker(o){return o==="fe:/b"||hl.test(o)},isRepeatViewStartMarker(o){return o==="fe:r"||ul.test(o)},isRepeatViewEndMarker(o){return o==="fe:/r"||pl.test(o)},isElementBoundaryStartMarker(o){return Un(o)&&(o.data==="fe:e"||gl.test(o.data))},isElementBoundaryEndMarker(o){return Un(o)&&(o.data==="fe:/e"||fl.test(o.data))},parseAttributeBindingCount(o){const e=o.getAttribute(this.attributeMarkerName);if(e===null)return null;const t=e.trim();if(!/^\d+$/.test(t))throw $e.error(ae.invalidHydrationAttributeMarker,{value:e});const r=parseInt(t,10);if(r<1)throw $e.error(ae.invalidHydrationAttributeMarker,{value:e});return r},parseLegacyAttributeBindingIndices(o){const e=[],t=o.getAttribute(this.legacyAttributeMarkerName);if(t!==null)for(const n of t.trim().split(/\s+/)){if(n==="")continue;const s=Number(n);if(!Number.isInteger(s)||s<0)throw $e.error(ae.invalidHydrationAttributeMarker,{value:t});e.push(s)}const r=`${this.legacyAttributeMarkerName}-`,i=`${this.legacyCompactAttributeMarkerName}-`;for(const n of o.getAttributeNames())if(n.startsWith(r)){const s=Number(n.slice(r.length));if(!Number.isInteger(s)||s<0)throw $e.error(ae.invalidHydrationAttributeMarker,{value:n});e.push(s)}else if(n.startsWith(i)){const[s,l]=n.slice(i.length).split("-").map(u=>Number(u));if(!Number.isInteger(s)||!Number.isInteger(l)||s<0||l<1)throw $e.error(ae.invalidHydrationAttributeMarker,{value:n});for(let u=0;u<l;u++)e.push(s+u)}return e.length===0?null:e},removeLegacyAttributeBindingMarkers(o){o.removeAttribute(this.legacyAttributeMarkerName);for(const e of o.getAttributeNames())(e.startsWith(`${this.legacyAttributeMarkerName}-`)||e.startsWith(`${this.legacyCompactAttributeMarkerName}-`))&&o.removeAttribute(e)},parseLegacyContentBindingStartIndex(o){return bl(Wn,o)}});function bl(o,e){const t=o.exec(e);return t===null?null:Number(t[1])}const Jo=Symbol.for("fe-hydration");function Gn(o){return o[Jo]===Jo}const ml="unknown";function vl(o,e){const t=e?`: ${e}`:"";return`Hydration mismatch in <${o}>${t}. Install hydrationDebugger() from "@microsoft/fast-element/hydration.js" and pass it as enableHydration({ debugger: hydrationDebugger() }) for an "Expected / Received" report including the SSR HTML snippet.`}const $l="content following `<!--fe:b-->` content binding marker",yl="matching `<!--fe:/b-->` content binding close marker",xl="matching `<!--fe:/e-->` element boundary close marker";function Xn(o){return`no more attribute bindings (template defines ${o})`}function kl(o){return`no more content bindings (template defines ${o})`}function Kn(o,e){const t=(o??ml).toLowerCase();return vl(t,e)}const wl={formatBindingMismatch(o,e,t,r){return{message:Kn(r,void 0)}},formatStructuralError(o,e,t){return{message:Kn(e,t)}}};let Sl=wl;function $t(){return Sl}function yt(o){var e;return o?(e=o.getRootNode().host)===null||e===void 0?void 0:e.nodeName:void 0}class xt extends Error{constructor(e,t,r,i,n){super(e),this.factories=t,this.node=r,this.expected=i,this.received=n}}function ui(o){return o.nodeType===Node.COMMENT_NODE}function Yn(o){return o.nodeType===Node.TEXT_NODE}function Jn(o,e){const t=document.createRange();return t.setStart(o,0),t.setEnd(e,ui(e)||Yn(e)?e.data.length:e.childNodes.length),t}function Cl(o,e,t){const r=Jn(o,e),i=r.commonAncestorContainer,n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(f){return r.comparePoint(f,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),s={},l={},u=zl(t);let d=u,c=n.currentNode=o;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:{const f=c,k=Ae.parseLegacyAttributeBindingIndices(f);if(k!==null){for(const j of k){const se=j+u,it=t[se];if(!it){const ao=Xn(t.length),Gr=$t().formatStructuralError(c,yt(c),ao);throw new xt(Gr.message,t,f,Gr.expected,Gr.received)}go(it,c,s),d=Math.max(d,se+1)}Ae.removeLegacyAttributeBindingMarkers(f);break}const A=Ae.parseAttributeBindingCount(f);if(A!==null){for(let j=0;j<A;j++){const se=t[d++];if(!se){const it=Xn(t.length),ao=$t().formatStructuralError(c,yt(c),it);throw new xt(ao.message,t,c,ao.expected,ao.received)}go(se,c,s)}f.removeAttribute(Ae.attributeMarkerName)}break}case Node.COMMENT_NODE:{const f=c.data;if(Ae.isElementBoundaryStartMarker(c))c.data="",Pl(n,t,c);else if(Ae.isContentBindingStartMarker(f)){const k=Ae.parseLegacyContentBindingStartIndex(f),A=k===null?d++:k+u,j=t[A];if(d=Math.max(d,A+1),!j){const se=kl(t.length),it=$t().formatStructuralError(c,yt(c),se);throw new xt(it.message,t,c,it.expected,it.received)}Il(c,n,j,t,s,l)}break}}c=n.nextNode()}return r.detach(),{targets:s,boundaries:l}}function Il(o,e,t,r,i,n){const s=[];let l=e.nextSibling();if(o.data="",l===null){const c=$l,f=$t().formatStructuralError(o,yt(o),c);throw new xt(f.message,r,o,f.expected,f.received)}const u=l;let d=0;for(;l!==null;){if(ui(l)){if(Ae.isContentBindingStartMarker(l.data))d++;else if(Ae.isContentBindingEndMarker(l.data)){if(d===0)break;d--}}s.push(l),l=e.nextSibling()}if(l===null){const c=yl,f=$t().formatStructuralError(o,yt(o),c);throw new xt(f.message,r,o,f.expected,f.received)}if(l.data="",s.length===1&&Yn(s[0]))go(t,s[0],i);else{l!==u&&l.previousSibling!==null&&(n[t.targetNodeId]={first:u,last:l.previousSibling});const c=l.parentNode.insertBefore(document.createTextNode(""),l);go(t,c,i)}}function Pl(o,e,t){let r=0,i=o.nextSibling();for(;i!==null;){if(ui(i)){if(Ae.isElementBoundaryStartMarker(i))i.data="",r++;else if(Ae.isElementBoundaryEndMarker(i)){if(r===0){i.data="";return}i.data="",r--}}i=o.nextSibling()}const n=xl,s=$t().formatStructuralError(t,yt(t),n);throw new xt(s.message,e,t,s.expected,s.received)}function zl(o){let e=0;for(let t=0,r=o.length;t<r&&o[t].targetNodeId==="h";++t)e++;return e}function go(o,e,t){if(o.targetNodeId===void 0)throw new Error("Factory could not be target to the node");t[o.targetNodeId]=e}function pi(o,e){const t=o.parentNode;let r=o,i;for(;r!==e;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.removeChild(r),r=i}t.removeChild(e)}class Zn{constructor(){this.index=0,this.length=0}get event(){return co.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class Zo extends Zn{constructor(e,t,r){super(),this.fragment=e,this.factories=t,this.targets=r,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Ro.unknown,this._skipAttrUpdates=!1,this.isPrerendered=Promise.resolve(!1),this.isHydrated=Promise.resolve(!1),this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}remove(){const e=this.fragment,t=this.lastChild;let r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,e.appendChild(r),r=i;e.appendChild(t)}dispose(){pi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e&&this.context===t)return;let r=this.behaviors;if(r===null){this.source=e,this.context=t,this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n].createBehavior();l.bind(this),r[n]=l}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){pi(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,r=e.length;t<r;++t)e[t].unbind()}}}mt(Zo),m.defineProperty(Zo.prototype,"index"),m.defineProperty(Zo.prototype,"length");var Qn;const fo={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class _l extends Error{constructor(e,t,r,i,n,s){super(e),this.factory=t,this.fragment=r,this.templateString=i,this.expected=n,this.received=s}}class Ol extends Zn{get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}constructor(e,t,r,i){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=r,this.hostBindingTarget=i,this[Qn]=Jo,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Ro.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=fo.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=r.compile().factories}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{const t=this.lastChild;if(e.previousSibling===t)return;const r=e.parentNode;let i=this.firstChild,n;for(;i!==t;)n=i.nextSibling,r.insertBefore(i,e),i=n;r.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){const e=this.fragment||(this.fragment=document.createDocumentFragment()),t=this.lastChild;let r=this.firstChild,i;for(;r!==t;){if(i=r.nextSibling,!i)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(r),r=i}e.appendChild(t)}bind(e,t=this){if(this.source===e&&this.context===t)return;this.hydrationStage!==fo.hydrated&&(this._hydrationStage=fo.hydrating);let r=this.behaviors;if(r===null){this.source=e,this.context=t;try{const{targets:n,boundaries:s}=Cl(this.firstChild,this.lastChild,this.factories);this._targets=n,this._bindingViewBoundaries=s}catch(n){if(n instanceof xt){let s=this.sourceTemplate.html;typeof s!="string"&&(s=s.innerHTML),n.templateString=s}throw n}this.behaviors=r=new Array(this.factories.length);const i=this.factories;for(let n=0,s=i.length;n<s;++n){const l=i[n];if(l.targetNodeId==="h"&&this.hostBindingTarget&&go(l,this.hostBindingTarget,this._targets),l.targetNodeId in this.targets){const u=l.createBehavior();u.bind(this),r[n]=u}else{let u=this.sourceTemplate.html;typeof u!="string"&&(u=u.innerHTML);const d=Jn(this.firstChild,this.lastChild).cloneContents(),c=$t().formatBindingMismatch(l,this.firstChild,this.lastChild,yt(this.firstChild));throw new _l(c.message,l,d,u,c.expected,c.received)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let i=0,n=r.length;i<n;++i)r[i].bind(this)}this.isBound=!0,this._hydrationStage=fo.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){pi(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){const e=this.unbindables;for(let t=0,r=e.length;t<r;++t)e[t].unbind(this);e.length=0}}Qn=Jo,mt(Ol);function Tl(o){return o.create!==void 0}function Al(o,e,t,r){if(t==null&&(t=""),Tl(t)){o.textContent="";let i=o.$fastView;if(i===void 0)if(Gn(r)&&Gn(t)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==fo.hydrated){const n=r.bindingViewBoundaries[this.targetNodeId];i=t.hydrate(n.first,n.last)}else i=t.create();else o.$fastTemplate!==t&&(i.isComposed&&(i.remove(),i.unbind()),i=t.create());i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(r.source,r.context)):(i.isComposed=!0,i.bind(r.source,r.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=t)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=t}}function Bl(o,e,t){var r;const i=`${this.id}-t`,n=(r=o[i])!==null&&r!==void 0?r:o[i]={v:0,cv:Object.create(null)},s=n.cv;let l=n.v;const u=o[e];if(t!=null&&t.length){const d=t.split(/\s+/);for(let c=0,f=d.length;c<f;++c){const k=d[c];k!==""&&(s[k]=l,u.add(k))}}if(n.v=l+1,l!==0){l-=1;for(const d in s)s[d]===l&&u.remove(d)}}const El={[J.attribute]:Mt.setAttribute,[J.booleanAttribute]:Mt.setBooleanAttribute,[J.property]:(o,e,t)=>o[e]=t,[J.content]:Al,[J.tokenList]:Bl,[J.event]:()=>{}};class Lt{constructor(e){this.updateTarget=null,this.aspectType=J.content,this.dataBinding=e}createHTML(e){return qn.interpolation(e(this))}createBehavior(){var e;if(this.updateTarget===null){const t=El[this.aspectType],r=(e=this.dataBinding.policy)!==null&&e!==void 0?e:this.policy;if(!t)throw $e.error(ae.unsupportedBindingBehavior);this.data=`${this.id}-d`,this.updateTarget=r.protect(this.targetTagName,this.aspectType,this.targetAspect,t)}return this}bind(e){var t;const r=e.targets[this.targetNodeId];switch(this.aspectType){case J.event:r[this.data]=e,r.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case J.content:e.onUnbind(this);default:{const i=(t=r[this.data])!==null&&t!==void 0?t:r[this.data]=this.dataBinding.createObserver(this,this);i.target=r,i.controller=e;const n=i.bind(e);if(e._skipAttrUpdates&&(this.aspectType===J.attribute||this.aspectType===J.booleanAttribute))break;this.updateTarget(r,this.targetAspect,n,e);break}}}unbind(e){const r=e.targets[this.targetNodeId].$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}handleEvent(e){const t=e.currentTarget[this.data];if(t.isBound){co.setEvent(e);const r=this.dataBinding.evaluate(t.source,t.context);co.setEvent(null),r!==!0&&e.preventDefault()}}handleChange(e,t){const r=t.controller;if(!r.isBound)return;const i=t.target;this.updateTarget(i,this.targetAspect,t.bind(r),r)}}Ve.define(Lt,{aspected:!0});const es=(o,e)=>`${o}.${e}`,ts={},Re={index:0,node:null};function os(o){o.startsWith("fast-")||$e.warn(ae.hostBindingWithoutHost,{name:o})}const Nl=new Proxy(document.createElement("div"),{get(o,e){os(e);const t=Reflect.get(o,e);return lo(t)?t.bind(o):t},set(o,e,t){return os(e),Reflect.set(o,e,t)}});class Fl{constructor(e,t,r){this.fragment=e,this.directives=t,this.policy=r,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,r,i,n){var s,l;this.nodeIds.has(r)||(this.nodeIds.add(r),this.addTargetDescriptor(t,r,i)),e.id=(s=e.id)!==null&&s!==void 0?s:ci(),e.targetNodeId=r,e.targetTagName=n,e.policy=(l=e.policy)!==null&&l!==void 0?l:this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,r){const i=this.descriptors;if(t==="r"||t==="h"||i[t])return;if(!i[e]){const s=e.lastIndexOf("."),l=e.substring(0,s),u=parseInt(e.substring(s+1),10);this.addTargetDescriptor(l,e,u)}let n=ts[t];if(!n){const s=`_${t}`;ts[t]=n={get(){var l;return(l=this[s])!==null&&l!==void 0?l:this[s]=this[e].childNodes[r]}}}i[t]=n}createView(e){const t=this.fragment.cloneNode(!0),r=Object.create(this.proto);r.r=t,r.h=e??Nl;for(const i of this.nodeIds)Reflect.get(r,i);return new Zo(t,this.factories,r)}}function rs(o,e,t,r,i,n=!1){const s=t.attributes,l=o.directives;for(let u=0,d=s.length;u<d;++u){const c=s[u],f=c.value,k=Yo.parse(f,l);let A=null;k===null?n&&(A=new Lt(bn(()=>f,o.policy)),Ve.assignAspect(A,c.name)):A=gi.aggregate(k,o.policy),A!==null&&(t.removeAttributeNode(c),u--,d--,o.addFactory(A,e,r,i,t.tagName))}}function Ml(o,e,t,r,i){const n=Yo.parse(e.textContent,o.directives);if(n===null)return Re.node=e.nextSibling,Re.index=i+1,Re;let s,l=s=e;for(let u=0,d=n.length;u<d;++u){const c=n[u];u!==0&&(i++,r=es(t,i),s=l.parentNode.insertBefore(document.createTextNode(""),l.nextSibling)),nt(c)?s.textContent=c:(s.textContent=" ",Ve.assignAspect(c),o.addFactory(c,t,r,i,null)),l=s}return Re.index=i+1,Re.node=l.nextSibling,Re}function is(o,e,t){let r=0,i=e.firstChild;for(;i;){const n=Ll(o,t,i,r);i=n.node,r=n.index}}function Ll(o,e,t,r){const i=es(e,r);switch(t.nodeType){case 1:rs(o,e,t,i,r),is(o,t,i);break;case 3:return Ml(o,t,e,i,r);case 8:{const n=Yo.parse(t.data,o.directives);n!==null&&o.addFactory(gi.aggregate(n),e,i,r,null);break}}return Re.index=r+1,Re.node=t.nextSibling,Re}function Dl(o,e){return o&&o.nodeType===8&&Yo.parse(o.data,e)!==null}const ns="TEMPLATE",gi={compile(o,e,t=Mt.policy){let r;if(nt(o)){r=document.createElement(ns),r.innerHTML=t.createHTML(o);const s=r.content.firstElementChild;s!==null&&s.tagName===ns&&(r=s)}else r=o;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(""));const i=document.adoptNode(r.content),n=new Fl(i,e,t);return rs(n,"",r,"h",0,!0),(Dl(i.firstChild,e)||i.childNodes.length===1&&Object.keys(e).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),is(n,i,"r"),Re.node=null,n.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,e=Mt.policy){if(o.length===1)return o[0];let t,r=!1,i;const n=o.length,s=o.map(d=>nt(d)?()=>d:(t=d.sourceAspect||t,r=r||d.dataBinding.isVolatile,i=i||d.dataBinding.policy,d.dataBinding.evaluate)),l=(d,c)=>{let f="";for(let k=0;k<n;++k)f+=s[k](d,c);return f},u=new Lt(yn(l,i??e,r));return Ve.assignAspect(u,t),u}};class ss extends hi{bind(e){e.source[this.options]=e.targets[this.targetNodeId]}}Ve.define(ss);const z=o=>new ss(o),Hl=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Vl=Object.create(null);class kt{constructor(e,t=Vl){this.html=e,this.factories=t}createHTML(e){const t=this.factories;for(const r in t)e(t[r]);return this.html}}kt.empty=new kt(""),Ve.define(kt);function Rl(o,e,t,r=Ve.getForInstance(o)){if(r.aspected){const i=Hl.exec(e);i!==null&&Ve.assignAspect(o,i[2])}return o.createHTML(t)}class Ur{constructor(e,t={},r){this.policy=r,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=gi.compile(this.html,this.factories,this.policy)),this.result}inline(){return new kt(nt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw $e.error(ae.cannotSetTemplatePolicyAfterCompilation);if(this.policy)throw $e.error(ae.onlySetTemplatePolicyOnce);return this.policy=e,this}render(e,t,r){const i=this.create(r);return i.bind(e),i.appendTo(t),i}create(e){return this.compile().createView(e)}static create(e,t,r){let i="";const n=Object.create(null),s=l=>{var u;const d=(u=l.id)!==null&&u!==void 0?u:l.id=ci();return n[d]=l,d};for(let l=0,u=e.length-1;l<u;++l){const d=e[l];let c=t[l],f;if(i+=d,lo(c))c=new Lt(yn(c));else if(c instanceof Kr)c=new Lt(c);else if(!(f=Ve.getForInstance(c))){const k=c;c=new Lt(bn(()=>k))}i+=Rl(c,d,s,f)}return new Ur(i+e[e.length-1],n,r)}}mt(Ur);const b=(o,...e)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return Ur.create(o,e);throw $e.error(ae.directCallToHTMLTagNotAllowed)};b.partial=o=>new kt(o);const as="slotchange";class ls extends dl{observe(e){e.addEventListener(as,this)}disconnect(e){e.removeEventListener(as,this)}getNodes(e){return e.assignedNodes(this.options)}handleEvent(e){const t=e.currentTarget;this.updateTarget(this.getSource(t),this.computeNodes(t))}}Ve.define(ls);function G(o){return nt(o)&&(o={property:o}),new ls(o)}const jl=":host([hidden]){display:none}";function w(o){return`${jl}:host{display:${o}}`}const _="var(--colorNeutralForeground1)",cs="var(--colorNeutralForeground1Hover)",ql="var(--colorNeutralForeground1Pressed)",Be="var(--colorNeutralForeground2)",Dt="var(--colorNeutralForeground2Hover)",Ht="var(--colorNeutralForeground2Pressed)",Qo="var(--colorNeutralForeground2Selected)",er="var(--colorNeutralForeground2BrandHover)",tr="var(--colorNeutralForeground2BrandPressed)",Wl="var(--colorNeutralForeground2BrandSelected)",X="var(--colorNeutralForeground3)",Ul="var(--colorNeutralForeground3Hover)",Gl="var(--colorNeutralForeground3Pressed)",Xl="var(--colorNeutralForeground3Selected)",fi="var(--colorNeutralForeground4)",T="var(--colorNeutralForegroundDisabled)",Kl="var(--colorBrandForegroundLink)",Yl="var(--colorBrandForegroundLinkHover)",Jl="var(--colorBrandForegroundLinkPressed)",Zl="var(--colorNeutralForeground2Link)",Ql="var(--colorNeutralForeground2LinkHover)",ec="var(--colorNeutralForeground2LinkPressed)",tc="var(--colorCompoundBrandForeground1Hover)",oc="var(--colorCompoundBrandForeground1Pressed)",Ze="var(--colorNeutralForegroundOnBrand)",wt="var(--colorNeutralForegroundInverted)",rc="var(--colorNeutralForegroundInvertedHover)",ic="var(--colorNeutralForegroundInvertedPressed)",ds="var(--colorNeutralForegroundStaticInverted)",or="var(--colorBrandForeground1)",nc="var(--colorBrandForeground2)",sc="var(--colorNeutralForeground1Static)",C="var(--colorNeutralBackground1)",rr="var(--colorNeutralBackground1Hover)",bi="var(--colorNeutralBackground1Pressed)",hs="var(--colorNeutralBackground1Selected)",bo="var(--colorNeutralBackground3)",ac="var(--colorNeutralBackground4)",lc="var(--colorNeutralBackground5)",mo="var(--colorNeutralBackground6)",us="var(--colorNeutralBackgroundInverted)",ps="var(--colorSubtleBackground)",ir="var(--colorSubtleBackgroundHover)",vo="var(--colorSubtleBackgroundPressed)",gs="var(--colorSubtleBackgroundSelected)",cc="var(--colorSubtleBackgroundLightAlphaHover)",dc="var(--colorSubtleBackgroundLightAlphaPressed)",hc="var(--colorSubtleBackgroundLightAlphaSelected)",he="var(--colorTransparentBackground)",nr="var(--colorTransparentBackgroundHover)",sr="var(--colorTransparentBackgroundPressed)",fs="var(--colorTransparentBackgroundSelected)",st="var(--colorNeutralBackgroundDisabled)",mi="var(--colorBackgroundOverlay)",bs="var(--colorBrandBackground)",ms="var(--colorBrandBackgroundHover)",vs="var(--colorBrandBackgroundPressed)",uc="var(--colorBrandBackgroundSelected)",St="var(--colorCompoundBrandBackground)",Vt="var(--colorCompoundBrandBackgroundHover)",Rt="var(--colorCompoundBrandBackgroundPressed)",$s="var(--colorBrandBackgroundStatic)",ys="var(--colorBrandBackground2)",je="var(--colorNeutralStrokeAccessible)",Ct="var(--colorNeutralStrokeAccessibleHover)",It="var(--colorNeutralStrokeAccessiblePressed)",qe="var(--colorNeutralStroke1)",Pt="var(--colorNeutralStroke1Hover)",$o="var(--colorNeutralStroke1Pressed)",yo="var(--colorNeutralStroke2)",pc="var(--colorNeutralStroke3)",gc="var(--colorNeutralStrokeOnBrand2)",xs="var(--colorBrandStroke1)",ks="var(--colorBrandStroke2)",at="var(--colorCompoundBrandStroke)",fc="var(--colorCompoundBrandStrokeHover)",ws="var(--colorCompoundBrandStrokePressed)",xe="var(--colorNeutralStrokeDisabled)",K="var(--colorTransparentStroke)",vi="var(--colorTransparentStrokeInteractive)",ar="var(--colorStrokeFocus1)",le="var(--colorStrokeFocus2)",bc="var(--colorNeutralShadowAmbient)",mc="var(--colorNeutralShadowKey)",Ss="var(--colorPaletteRedBackground1)",vc="var(--colorPaletteRedBackground2)",Cs="var(--colorPaletteRedBackground3)",Is="var(--colorPaletteRedBorder1)",$i="var(--colorPaletteRedBorder2)",yi="var(--colorPaletteRedForeground1)",$c="var(--colorPaletteRedForeground2)",Ps="var(--colorPaletteRedForeground3)",zs="var(--colorPaletteGreenBackground1)",_s="var(--colorPaletteGreenBackground3)",yc="var(--colorPaletteGreenBorder1)",xc="var(--colorPaletteGreenBorder2)",kc="var(--colorPaletteGreenForeground1)",wc="var(--colorPaletteGreenForeground2)",Sc="var(--colorPaletteGreenForeground3)",Os="var(--colorPaletteDarkOrangeBackground1)",Ts="var(--colorPaletteDarkOrangeBackground3)",As="var(--colorPaletteDarkOrangeBorder1)",Cc="var(--colorPaletteDarkOrangeForeground1)",Bs="var(--colorPaletteDarkOrangeForeground3)",Ic="var(--colorPaletteYellowBackground1)",Pc="var(--colorPaletteYellowBackground3)",zc="var(--colorPaletteYellowBorder1)",xi="var(--colorPaletteYellowForeground2)",Es="var(--colorPaletteMarigoldBackground2)",_c="var(--colorPaletteMarigoldBorderActive)",Oc="var(--colorPaletteMarigoldForeground2)",Tc="var(--colorPaletteAnchorBackground2)",Ac="var(--colorPaletteAnchorForeground2)",Bc="var(--colorPaletteBeigeBackground2)",Ec="var(--colorPaletteBeigeForeground2)",Nc="var(--colorPaletteBlueBackground2)",Fc="var(--colorPaletteBlueForeground2)",Mc="var(--colorPaletteBrassBackground2)",Lc="var(--colorPaletteBrassForeground2)",Dc="var(--colorPaletteBrownBackground2)",Hc="var(--colorPaletteBrownForeground2)",Vc="var(--colorPaletteCornflowerBackground2)",Rc="var(--colorPaletteCornflowerForeground2)",jc="var(--colorPaletteCranberryBackground2)",qc="var(--colorPaletteCranberryForeground2)",Wc="var(--colorPaletteDarkGreenBackground2)",Uc="var(--colorPaletteDarkGreenForeground2)",Gc="var(--colorPaletteDarkRedBackground2)",Xc="var(--colorPaletteDarkRedForeground2)",Kc="var(--colorPaletteForestBackground2)",Yc="var(--colorPaletteForestForeground2)",Jc="var(--colorPaletteGoldBackground2)",Zc="var(--colorPaletteGoldForeground2)",Qc="var(--colorPaletteGrapeBackground2)",ed="var(--colorPaletteGrapeForeground2)",td="var(--colorPaletteLavenderBackground2)",od="var(--colorPaletteLavenderForeground2)",rd="var(--colorPaletteLightTealBackground2)",id="var(--colorPaletteLightTealForeground2)",nd="var(--colorPaletteLilacBackground2)",sd="var(--colorPaletteLilacForeground2)",ad="var(--colorPaletteMagentaBackground2)",ld="var(--colorPaletteMagentaForeground2)",cd="var(--colorPaletteMinkBackground2)",dd="var(--colorPaletteMinkForeground2)",hd="var(--colorPaletteNavyBackground2)",ud="var(--colorPaletteNavyForeground2)",pd="var(--colorPalettePeachBackground2)",gd="var(--colorPalettePeachForeground2)",fd="var(--colorPalettePinkBackground2)",bd="var(--colorPalettePinkForeground2)",md="var(--colorPalettePlatinumBackground2)",vd="var(--colorPalettePlatinumForeground2)",$d="var(--colorPalettePlumBackground2)",yd="var(--colorPalettePlumForeground2)",xd="var(--colorPalettePumpkinBackground2)",kd="var(--colorPalettePumpkinForeground2)",wd="var(--colorPalettePurpleBackground2)",Sd="var(--colorPalettePurpleForeground2)",Cd="var(--colorPaletteRoyalBlueBackground2)",Id="var(--colorPaletteRoyalBlueForeground2)",Pd="var(--colorPaletteSeafoamBackground2)",zd="var(--colorPaletteSeafoamForeground2)",_d="var(--colorPaletteSteelBackground2)",Od="var(--colorPaletteSteelForeground2)",Td="var(--colorPaletteTealBackground2)",Ad="var(--colorPaletteTealForeground2)",lr="var(--borderRadiusNone)",Ee="var(--borderRadiusSmall)",S="var(--borderRadiusMedium)",Ns="var(--borderRadiusLarge)",Fs="var(--borderRadiusXLarge)",ue="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Bd="var(--fontFamilyMonospace)",Ed="var(--fontFamilyNumeric)",xo="var(--fontSizeBase100)",M="var(--fontSizeBase200)",B="var(--fontSizeBase300)",pe="var(--fontSizeBase400)",jt="var(--fontSizeBase500)",cr="var(--fontSizeBase600)",Ms="var(--fontSizeHero700)",Ls="var(--fontSizeHero800)",Ds="var(--fontSizeHero900)",Hs="var(--fontSizeHero1000)",E="var(--fontWeightRegular)",Nd="var(--fontWeightMedium)",H="var(--fontWeightSemibold)",dr="var(--fontWeightBold)",hr="var(--lineHeightBase100)",q="var(--lineHeightBase200)",L="var(--lineHeightBase300)",ke="var(--lineHeightBase400)",ur="var(--lineHeightBase500)",Vs="var(--lineHeightBase600)",Rs="var(--lineHeightHero700)",js="var(--lineHeightHero800)",qs="var(--lineHeightHero900)",Ws="var(--lineHeightHero1000)",ki="var(--shadow2)",pr="var(--shadow4)",Fd="var(--shadow8)",wi="var(--shadow16)",Md="var(--shadow28)",Us="var(--shadow64)",I="var(--strokeWidthThin)",ge="var(--strokeWidthThick)",Ie="var(--strokeWidthThicker)",Si="var(--strokeWidthThickest)",V="var(--spacingHorizontalXXS)",oe="var(--spacingHorizontalXS)",we="var(--spacingHorizontalSNudge)",Ne="var(--spacingHorizontalS)",Qe="var(--spacingHorizontalMNudge)",re="var(--spacingHorizontalM)",Ld="var(--spacingHorizontalL)",Dd="var(--spacingHorizontalXL)",gr="var(--spacingHorizontalXXL)",Ci="var(--spacingVerticalNone)",fr="var(--spacingVerticalXXS)",qt="var(--spacingVerticalXS)",ko="var(--spacingVerticalSNudge)",ie="var(--spacingVerticalS)",br="var(--spacingVerticalMNudge)",Hd="var(--spacingVerticalM)",Ii="var(--spacingVerticalL)",zt="var(--spacingVerticalXXL)",Vd="var(--spacingVerticalXXXL)",Pi="var(--durationUltraFast)",mr="var(--durationFaster)",vr="var(--durationNormal)",zi="var(--durationGentle)",Rd="var(--durationSlow)",Gs="var(--durationSlower)",$r="var(--durationUltraSlow)",jd="var(--curveAccelerateMax)",_t="var(--curveAccelerateMid)",qd="var(--curveAccelerateMin)",Xs="var(--curveDecelerateMax)",Ot="var(--curveDecelerateMid)",Wd="var(--curveDecelerateMin)",Ks="var(--curveEasyEaseMax)",yr="var(--curveEasyEase)",_i="var(--curveLinear)",Ud=p`${w("block")} :host{max-width:fit-content;contain:content;color:${_}}.heading{height:44px;display:grid;position:relative;padding-inline:${re} ${Qe};border-radius:${S};font-family:${v};font-size:${B};font-weight:${E};line-height:${L};grid-template-columns:auto auto 1fr auto}.button{appearance:none;background:${he};border:none;box-sizing:border-box;color:inherit;cursor:pointer;font:inherit;grid-column:auto/span 2;grid-row:1;height:44px;outline:none;padding:0;text-align:start}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee}}:where(.default-marker-collapsed,.default-marker-expanded),::slotted(:is([slot='marker-collapsed'],[slot='marker-expanded'])){display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-inline-end:${Ne};grid-column:1/span 1;grid-row:1}.content{margin:0 ${re}}::slotted([slot='start']){display:flex;justify-content:center;align-items:center;padding-right:${Ne};grid-column:2/span 1;grid-row:1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${Ee};outline:none;border:2px solid ${ar};box-shadow:inset 0 0 0 1px ${le}}:host([disabled]) .button{color:${T}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .content{display:block}:host([expanded]) .default-marker-collapsed,:host([expanded]) ::slotted([slot='marker-collapsed']),:host(:not([expanded])) :is(.default-marker-expanded,.content),:host(:not([expanded])) ::slotted([slot='marker-expanded']){display:none}:host([expanded]) ::slotted([slot='marker-expanded']),:host(:not([expanded])) ::slotted([slot='marker-collapsed']){display:flex}.heading{font-size:${B};line-height:${L}}:host([size='small']) .heading{font-size:${M};line-height:${q}}:host([size='large']) .heading{font-size:${pe};line-height:${ke}}:host([size='extra-large']) .heading{font-size:${jt};line-height:${ur}}:host([marker-position='end']) ::slotted([slot='start']){grid-column:1/span 1;color:currentColor}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:4/span 1;padding-inline-start:${Ne};padding-inline-end:0}:host([marker-position='end']) .button{grid-column:2/span 3}:host([block]){max-width:100%}:host([marker-position='end']) .heading{grid-template-columns:auto auto 28px;padding-inline:${re}}:host([marker-position='end']:has([slot='start'])) .heading{padding-inline:${Qe} ${re}}:host([block][marker-position='end']) .heading{grid-template-columns:auto 1fr}:host([marker-position='end']) :is(.default-marker-collapsed,.default-marker-expanded){grid-column:5/span 1}`;function fe(o){return o?typeof o=="string"?new kt(o):"inline"in o?o.inline():o:kt.empty}class lt{}function ct(o){return b`<slot name=end ${z("end")}>${fe(o.end)}</slot>`.inline()}function We(o){return b`<slot name=start ${z("start")}>${fe(o.start)}</slot>`.inline()}const Gd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-collapsed aria-hidden=true><path d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z" fill=currentColor /></svg>'),Xd=b.partial('<svg width=20 height=20 viewBox="0 0 20 20" fill=none xmlns=http://www.w3.org/2000/svg class=default-marker-expanded aria-hidden=true><path d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z" fill=currentColor /></svg>');function Kd(o={}){return b`<div class=heading part=heading role=heading aria-level=${e=>e.headinglevel}><button class=button part=button id=control aria-controls=panel aria-expanded=${e=>e.expanded} ?disabled=${e=>e.disabled} ${z("expandbutton")}><slot name=heading></slot></button> ${We(o)}<slot name=marker-expanded>${fe(o.expandedIcon)}</slot><slot name=marker-collapsed>${fe(o.collapsedIcon)}</slot></div><div class=content part=content id=panel role=region aria-labelledby=control><slot></slot></div>`}const Yd=Kd({collapsedIcon:Gd,expandedIcon:Xd}),Jd={name:Ea,registry:h.registry,styles:Ud,template:Yd};function dt(o,...e){const t=qo.locate(o);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{n!=="constructor"&&Object.defineProperty(o.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n))}),qo.locate(r).forEach(n=>t.push(n))})}var Zd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,xr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qd(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zd(e,t,i),i};class wo extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.headinglevel=2,this.expanded=!1,this.disabled=!1}}xr([a({attribute:"heading-level",mode:"fromView",converter:te})],wo.prototype,"headinglevel",2),xr([a({mode:"boolean"})],wo.prototype,"expanded",2),xr([a({mode:"boolean"})],wo.prototype,"disabled",2),xr([g],wo.prototype,"expandbutton",2);var eh=Object.defineProperty,th=Object.getOwnPropertyDescriptor,Oi=(o,e,t,r)=>{for(var i=r>1?void 0:r?th(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&eh(e,t,i),i};class So extends wo{constructor(){super(...arguments),this.block=!1}}Oi([a],So.prototype,"size",2),Oi([a({attribute:"marker-position"})],So.prototype,"markerPosition",2),Oi([a({mode:"boolean"})],So.prototype,"block",2),dt(So,lt),So.define(Jd);const Ti={single:"single",multi:"multi"},oh=`${h.prefix}-accordion`,rh=p`${w("flex")} :host{flex-direction:column;width:100%;contain:content}`;function ih(){return b`<template><slot ${G({property:"slottedAccordionItems",filter:po()})}></slot></template>`}const nh=ih(),sh={name:oh,registry:h.registry,styles:rh,template:nh};function Ys(o,e){if("requestIdleCallback"in globalThis)return globalThis.requestIdleCallback(o,e);const t=Date.now();return setTimeout(()=>{o({didTimeout:e?.timeout?Date.now()-t>=e.timeout:!1,timeRemaining:()=>0})},e?.timeout??1)}function Co(o,e,t){const r=t?.shallow??!1,i=t?.timeout??50,n=t?.idleCallback??!1,s=`${r?":scope > ":""}:not(:defined)`,l=u=>{if(o.querySelector(s)===null||u&&u.timeRemaining()<=0){n?Ys(e,{timeout:i}):e();return}Ys(l,{timeout:i})};l()}var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,Js=(o,e,t,r)=>{for(var i=r>1?void 0:r?lh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ah(e,t,i),i};class Ai extends x{constructor(){super(...arguments),this._isAdjusting=!1,this.activeItemIndex=0,this.setItems=()=>{Co(this,()=>{if(!this.slottedAccordionItems?.length)return;const e=Array.from(this.children);if(this.removeItemListeners(e),e.forEach(t=>m.getNotifier(t).subscribe(this,"disabled")),this.accordionItems=e.filter(t=>!t.hasAttribute("disabled")),this.accordionItems.forEach((t,r)=>{t.addEventListener("click",this.expandedChangedHandler),m.getNotifier(t).subscribe(this,"expanded")}),this.isSingleExpandMode()){const t=this.findExpandedItem();this.setSingleExpandMode(t)}})},this.removeItemListeners=e=>{e.forEach((t,r)=>{m.getNotifier(t).unsubscribe(this,"disabled"),m.getNotifier(t).unsubscribe(this,"expanded"),t.removeEventListener("click",this.expandedChangedHandler)})},this.expandedChangedHandler=e=>{const t=e.target;Xr(t)&&(this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.$emit("change"))}}expandmodeChanged(e,t){if(!this.$fastController.isConnected)return;const r=this.findExpandedItem();if(r){if(t===Ti.single){this.setSingleExpandMode(r);return}r?.expandbutton?.removeAttribute("aria-disabled")}}slottedAccordionItemsChanged(e,t){this.setItems()}handleChange(e,t){t==="disabled"?this.setItems():t==="expanded"&&e.expanded&&this.isSingleExpandMode()&&!this._isAdjusting&&(this._isAdjusting=!0,this.setSingleExpandMode(e),this._isAdjusting=!1)}findExpandedItem(){return!this.accordionItems||this.accordionItems?.length===0?null:this.accordionItems.find(e=>Xr(e)&&e.expanded)??this.accordionItems[0]}isSingleExpandMode(){return this.expandmode===Ti.single}setSingleExpandMode(e){if(this.accordionItems.length===0)return;const t=Array.from(this.accordionItems);this.activeItemIndex=t.indexOf(e),t.forEach((r,i)=>{Xr(r)&&(this.activeItemIndex===i?(r.expanded=!0,r.expandbutton?.setAttribute("aria-disabled","true")):(r.expanded=!1,r.hasAttribute("disabled")||r.expandbutton?.removeAttribute("aria-disabled")))})}connectedCallback(){super.connectedCallback(),this.expandmode=this.expandmode||Ti.multi,this.setItems()}}Js([a({attribute:"expand-mode"})],Ai.prototype,"expandmode",2),Js([g],Ai.prototype,"slottedAccordionItems",2),Ai.define(sh);const ch={primary:"primary",outline:"outline",subtle:"subtle",transparent:"transparent"},dh={circular:"circular",rounded:"rounded",square:"square"},hh={small:"small",medium:"medium",large:"large"},kr={submit:"submit",reset:"reset",button:"button"},uh=`${h.prefix}-button`,ph=ch,gh=dh,fh=hh,bh={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"},mh=`${h.prefix}-anchor-button`,Zs=p`${w("inline-flex")} :host{--icon-spacing:${we};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${C};color:${_};border:${I} solid ${qe};padding:0 ${re};min-width:96px;border-radius:${S};font-size:${B};font-family:${v};font-weight:${H};line-height:${L};transition-duration:${mr};transition-property:background,border,color;transition-timing-function:${yr};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${rr};color:${cs};border-color:${Pt}}:host(:hover:active){background-color:${bi};border-color:${$o};color:${ql};outline-style:none}:host(:focus-visible){border-color:${K};outline:${ge} solid ${K};box-shadow:${pr},0 0 0 2px ${le}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']),[slot='end']{flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host([icon-only]){min-width:32px;max-width:32px}:host([size='small']){--icon-spacing:${oe};min-height:24px;min-width:64px;padding:0 ${Ne};border-radius:${Ee};font-size:${M};line-height:${q};font-weight:${E}}:host([size='small'][icon-only]){min-width:24px;max-width:24px}:host([size='large']){min-height:40px;border-radius:${Ns};padding:0 ${Ld};font-size:${pe};line-height:${ke}}:host([size='large'][icon-only]){min-width:40px;max-width:40px}:host([size='large']) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is([shape='circular'],[shape='circular']:focus-visible)){border-radius:${ue}}:host(:is([shape='square'],[shape='square']:focus-visible)){border-radius:${lr}}:host([appearance='primary']){background-color:${bs};color:${Ze};border-color:transparent}:host([appearance='primary']:hover){background-color:${ms}}:host([appearance='primary']:is(:hover,:hover:active):not(:focus-visible)){border-color:transparent}:host([appearance='primary']:is(:hover,:hover:active)){color:${Ze}}:host([appearance='primary']:hover:active){background-color:${vs}}:host([appearance='primary']:focus-visible){border-color:${Ze};box-shadow:${ki},0 0 0 2px ${le}}:host([appearance='outline']){background-color:${he}}:host([appearance='outline']:hover){background-color:${nr}}:host([appearance='outline']:hover:active){background-color:${sr}}:host([appearance='subtle']){background-color:${ps};color:${Be};border-color:transparent}:host([appearance='subtle']:hover){background-color:${ir};color:${Dt};border-color:transparent}:host([appearance='subtle']:hover:active){background-color:${vo};color:${Ht};border-color:transparent}:host([appearance='subtle']:hover) ::slotted(svg){fill:${er}}:host([appearance='subtle']:hover:active) ::slotted(svg){fill:${tr}}:host([appearance='transparent']){background-color:${he};color:${Be}}:host([appearance='transparent']:hover){background-color:${nr};color:${er}}:host([appearance='transparent']:hover:active){background-color:${sr};color:${tr}}:host(:is([appearance='transparent'],[appearance='transparent']:is(:hover,:active))){border-color:transparent}`,wr=p`${Zs} :host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${st};border-color:${xe};color:${T};cursor:not-allowed}:host([appearance='primary']:is(:disabled,[disabled-focusable])),:host([appearance='primary']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host([appearance='outline']:is(:disabled,[disabled-focusable])),:host([appearance='outline']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he}}:host([appearance='subtle']:is(:disabled,[disabled-focusable])),:host([appearance='subtle']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${he};border-color:transparent}:host([appearance='transparent']:is(:disabled,[disabled-focusable])),:host([appearance='transparent']:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${he}}@media (forced-colors:active){:host{background-color:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight !important}:host([appearance='primary']:not(:is(:hover,:focus-visible))){background-color:Highlight;color:HighlightText;forced-color-adjust:none}:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])){background-color:ButtonFace;color:GrayText;border-color:ButtonText}}`,vh=p`${Zs} ::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{border-color:LinkText;color:LinkText}}`;function $h(o={}){return b`<template tabindex=0 @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)}>${We(o)} <span class=content part=content><slot></slot></span>${ct(o)}</template>`}const yh=$h(),xh={name:mh,registry:h.registry,styles:vh,template:yh},Sr=CSS.supports("anchor-name: --a"),kh="anchor"in HTMLElement.prototype,Qs=CSS.supports("selector(:state(g))"),ea=new Map;function P(o){return ea.get(o)??ea.set(o,Qs?`:state(${o})`:`[state--${o}]`).get(o)}function $(o,e,t){if(!(!e||!o)){if(!Qs){o.shadowRoot.host.toggleAttribute(`state--${e}`,t);return}if(t??!o.states.has(e)){o.states.add(e);return}o.states.delete(e)}}const Bi=new WeakMap;function ta(o,e){if(!o||!e)return!1;if(Bi.has(o))return Bi.get(o).has(e);const t=new Set(Object.values(o));return Bi.set(o,t),t.has(e)}function Tt(o,e="",t="",r,i=""){$(o,`${i}${e}`,!1),(!r||ta(r,t))&&$(o,`${i}${t}`,!0)}var wh=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,ht=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&wh(e,t,i),i};class Ue extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,m.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(e=>{this.handleChange(this,e)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}handleChange(e,t){if(t in bh){const r=this.$fastController.definition.attributeLookup[t]?.attribute;r&&this.handleProxyAttributeChange(r,this[t])}}clickHandler(e){if(e.composedPath()[0]===this.internalProxyAnchor)return e.stopImmediatePropagation(),!0;if(this.href){const t=e.ctrlKey||e.metaKey;this.handleNavigation(t)}return!0}keydownHandler(e){if(this.href&&e.key==="Enter"){const t=this.isMac&&e.metaKey||e.ctrlKey;this.handleNavigation(t);return}return!0}handleNavigation(e){e?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(e,t){t?this.internalProxyAnchor.setAttribute(e,t):this.internalProxyAnchor.removeAttribute(e)}createProxyElement(){const e=this.internalProxyAnchor??document.createElement("a");return e.inert=!0,e}}ht([a],Ue.prototype,"download",2),ht([a],Ue.prototype,"href",2),ht([a],Ue.prototype,"hreflang",2),ht([a],Ue.prototype,"ping",2),ht([a],Ue.prototype,"referrerpolicy",2),ht([a],Ue.prototype,"rel",2),ht([a],Ue.prototype,"target",2),ht([a],Ue.prototype,"type",2);var Ch=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Cr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ih(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ch(e,t,i),i};class Wt extends Ue{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(e,t){Tt(this.elementInternals,e,t,ph)}shapeChanged(e,t){Tt(this.elementInternals,e,t,gh)}sizeChanged(e,t){Tt(this.elementInternals,e,t,fh)}iconOnlyChanged(e,t){$(this.elementInternals,"icon",!!t)}}Cr([a],Wt.prototype,"appearance",2),Cr([a],Wt.prototype,"shape",2),Cr([a],Wt.prototype,"size",2),Cr([a({attribute:"icon-only",mode:"boolean"})],Wt.prototype,"iconOnly",2),dt(Wt,lt),Wt.define(xh);const oa={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},ra={neutral:"neutral",brand:"brand",colorful:"colorful",...oa},Ph=`${h.prefix}-avatar`,ut={fastOutSlowInMax:Xs,fastOutSlowInMid:Ot,fastOutSlowInMin:Wd,slowOutFastInMax:jd,slowOutFastInMid:_t,slowOutFastInMin:qd,fastEase:Ks,normalEase:yr,nullEasing:_i},zh=p`${w("inline-grid")} :host{position:relative;place-items:center;place-content:center;grid-template:1fr/1fr;flex-shrink:0;width:32px;height:32px;font-family:${v};font-weight:${H};font-size:${B};border-radius:${ue};color:${X};background-color:${mo};contain:layout style}.monogram,.default-icon{grid-area:1/1/-1/-1}.monogram:empty{display:none}.default-slot:is(.has-slotted,:has-slotted)~.default-icon,.default-slot:is(.has-slotted,:has-slotted)~.monogram,:host(:is([name]):not([name=''])) .default-icon,:host(:is([initials]):not([initials=''])) .default-icon{display:none}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${ue}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${I} ${C}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${ge} ${C}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${xo};font-weight:${E}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${M}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${pe}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${jt}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${cr}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${S}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${Ee}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${Ns}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${Fs}}:host([data-color='brand']){color:${ds};background-color:${$s}}:host([data-color='dark-red']){color:${Xc};background-color:${Gc}}:host([data-color='cranberry']){color:${qc};background-color:${jc}}:host([data-color='red']){color:${$c};background-color:${vc}}:host([data-color='pumpkin']){color:${kd};background-color:${xd}}:host([data-color='peach']){color:${gd};background-color:${pd}}:host([data-color='marigold']){color:${Oc};background-color:${Es}}:host([data-color='gold']){color:${Zc};background-color:${Jc}}:host([data-color='brass']){color:${Lc};background-color:${Mc}}:host([data-color='brown']){color:${Hc};background-color:${Dc}}:host([data-color='forest']){color:${Yc};background-color:${Kc}}:host([data-color='seafoam']){color:${zd};background-color:${Pd}}:host([data-color='dark-green']){color:${Uc};background-color:${Wc}}:host([data-color='light-teal']){color:${id};background-color:${rd}}:host([data-color='teal']){color:${Ad};background-color:${Td}}:host([data-color='steel']){color:${Od};background-color:${_d}}:host([data-color='blue']){color:${Fc};background-color:${Nc}}:host([data-color='royal-blue']){color:${Id};background-color:${Cd}}:host([data-color='cornflower']){color:${Rc};background-color:${Vc}}:host([data-color='navy']){color:${ud};background-color:${hd}}:host([data-color='lavender']){color:${od};background-color:${td}}:host([data-color='purple']){color:${Sd};background-color:${wd}}:host([data-color='grape']){color:${ed};background-color:${Qc}}:host([data-color='lilac']){color:${sd};background-color:${nd}}:host([data-color='pink']){color:${bd};background-color:${fd}}:host([data-color='magenta']){color:${ld};background-color:${ad}}:host([data-color='plum']){color:${yd};background-color:${$d}}:host([data-color='beige']){color:${Ec};background-color:${Bc}}:host([data-color='mink']){color:${dd};background-color:${cd}}:host([data-color='platinum']){color:${vd};background-color:${md}}:host([data-color='anchor']){color:${Ac};background-color:${Tc}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${$r},${mr};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${$r},${Gs};transition-delay:${ut.fastEase},${ut.nullEasing}}:host([active])::before{box-shadow:${Fd};border-style:solid;border-color:${$s}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${ge});border-width:${ge}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Ie});border-width:${Ie}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Si});border-width:${Si}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${pr}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${wi}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${Md}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${$r},${mr};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${$r},${Gs};transition-delay:${ut.fastOutSlowInMin},${ut.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,_h=b`<svg width=1em height=1em viewBox="0 0 20 20" class=default-icon fill=currentcolor aria-hidden=true><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function Oh(){return b`<slot class=default-slot ${G("slottedDefaults")} ${z("defaultSlot")}></slot><span class=monogram ${z("monogram")}>${o=>o.initials}</span> ${_h}<slot name=badge></slot>`}const Th=Oh(),Ah={name:Ph,registry:h.registry,styles:zh,template:Th},Bh=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Eh=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Nh=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Fh=/\s+/g,Mh=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Lh(o,e,t){let r="";const i=o.split(" ");return i.length!==0&&(r+=i[0].charAt(0).toUpperCase()),t||(i.length===2?r+=i[1].charAt(0).toUpperCase():i.length===3&&(r+=i[2].charAt(0).toUpperCase())),e&&r.length>1?r.charAt(1)+r.charAt(0):r}function Dh(o){return o=o.replace(Bh,""),o=o.replace(Eh,""),o=o.replace(Fh," "),o=o.trim(),o}function ia(o,e,t){return!o||(o=Dh(o),Mh.test(o)||!t?.allowPhoneInitials&&Nh.test(o))?"":Lh(o,e,t?.firstInitialOnly)}var Hh=Object.defineProperty,Vh=Object.getOwnPropertyDescriptor,Io=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Hh(e,t,i),i};class Ut extends x{constructor(){super(),this.slottedDefaults=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}defaultSlotChanged(){if(!CSS.supports("selector(:has-slotted)")){const e=this.defaultSlot.assignedElements();this.defaultSlot.classList.toggle("has-slotted",e.length>0)}O.enqueue(()=>{this.cleanupSlottedContent()})}monogramChanged(){this.updateMonogram()}slottedDefaultsChanged(){this.defaultSlot&&this.cleanupSlottedContent()}nameChanged(){this.updateMonogram()}initialsChanged(){this.updateMonogram()}generateInitials(){return this.initials||ia(this.name,window.getComputedStyle(this).direction==="rtl")}updateMonogram(){this.monogram&&(this.monogram.textContent=this.generateInitials()??"")}cleanupSlottedContent(){this.normalize(),CSS.supports("selector(:has-slotted)")||this.defaultSlot.classList.toggle("has-slotted",!!this.slottedDefaults.length),this.innerText.trim()||this.slottedDefaults.forEach(e=>{e.nodeType===Node.TEXT_NODE&&e.remove()})}}Io([g],Ut.prototype,"defaultSlot",2),Io([g],Ut.prototype,"monogram",2),Io([g],Ut.prototype,"slottedDefaults",2),Io([a],Ut.prototype,"name",2),Io([a],Ut.prototype,"initials",2);var Rh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,Gt=(o,e,t,r)=>{for(var i=r>1?void 0:r?jh(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Rh(e,t,i),i};const pt=class dn extends Ut{handleChange(e,t){switch(t){case"color":case"colorId":this.generateColor();break}}generateInitials(){if(!this.name&&!this.initials)return;const e=this.size??32;return this.initials||ia(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:e<=16})}generateColor(){const e=this.color===ra.colorful;this.currentColor,this.currentColor=e&&this.colorId?this.colorId:e?dn.colors[Wh(this.name??"")%dn.colors.length]:this.color??ra.neutral,this.setAttribute("data-color",this.currentColor)}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this)}};pt.colors=Object.values(oa),Gt([a],pt.prototype,"active",2),Gt([a],pt.prototype,"shape",2),Gt([a],pt.prototype,"appearance",2),Gt([a({converter:te})],pt.prototype,"size",2),Gt([a],pt.prototype,"color",2),Gt([a({attribute:"color-id"})],pt.prototype,"colorId",2);let qh=pt;const Wh=o=>{let e=0;for(let t=o.length-1;t>=0;t--){const r=o.charCodeAt(t),i=t%8;e^=(r<<i)+(r>>8-i)}return e};qh.define(Ah);const Uh={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Gh={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"},Xh=`${h.prefix}-badge`,na=p.partial`${w("inline-flex")} :host{position:relative;box-sizing:border-box;align-items:center;justify-content:center;font-family:${v};font-weight:${H};font-size:${M};line-height:${q};min-width:20px;height:20px;padding-inline:calc(${oe} + ${V});border-radius:${ue};border-color:${K};background-color:${bs};color:${Ze};contain:content}::slotted(svg){font-size:12px}:host(:not([appearance='ghost']))::after{position:absolute;content:'';top:0;left:0;bottom:0;right:0;border-style:solid;border-width:${I};border-color:inherit;border-radius:inherit}`,sa=p.partial`:host([size='tiny']){width:6px;height:6px;font-size:4px;line-height:4px;padding-inline:0;min-width:unset}:host([size='tiny']) ::slotted(svg){font-size:6px}:host([size='extra-small']){width:10px;height:10px;font-size:6px;line-height:6px;padding-inline:0;min-width:unset}:host([size='extra-small']) ::slotted(svg){font-size:10px}:host([size='small']){min-width:16px;height:16px;font-size:${xo};line-height:${hr};padding-inline:calc(${V} + ${V})}:host([size='small']) ::slotted(svg){font-size:12px}:host([size='large']){min-width:24px;height:24px;font-size:${M};line-height:${q};padding-inline:calc(${oe} + ${V})}:host([size='large']) ::slotted(svg){font-size:16px}:host([size='extra-large']){min-width:32px;height:32px;font-size:${M};line-height:${q};padding-inline:calc(${we} + ${V})}:host([size='extra-large']) ::slotted(svg){font-size:20px}`,aa=p.partial`:host([color='danger']){background-color:${Cs};color:${Ze}}:host([color='important']){background-color:${_};color:${C}}:host([color='informative']){background-color:${lc};color:${X}}:host([color='severe']){background-color:${Ts};color:${Ze}}:host([color='subtle']){background-color:${C};color:${_}}:host([color='success']){background-color:${_s};color:${Ze}}:host([color='warning']){background-color:${Pc};color:${sc}}`,la=p.partial`:host([appearance='ghost']){color:${or};background-color:initial}:host([appearance='ghost'][color='danger']){color:${Ps}}:host([appearance='ghost'][color='important']){color:${_}}:host([appearance='ghost'][color='informative']){color:${X}}:host([appearance='ghost'][color='severe']){color:${Bs}}:host([appearance='ghost'][color='subtle']){color:${wt}}:host([appearance='ghost'][color='success']){color:${Sc}}:host([appearance='ghost'][color='warning']){color:${xi}}`,Kh=p.partial`:host([appearance='outline']){border-color:currentColor;color:${or};background-color:initial}:host([appearance='outline'][color='danger']){color:${Ps}}:host([appearance='outline'][color='important']){color:${X};border-color:${je}}:host([appearance='outline'][color='informative']){color:${X};border-color:${yo}}:host([appearance='outline'][color='severe']){color:${Bs}}:host([appearance='outline'][color='subtle']){color:${ds}}:host([appearance='outline'][color='success']){color:${wc}}:host([appearance='outline'][color='warning']){color:${xi}}`,Yh=p.partial`:host([appearance='tint']){background-color:${ys};color:${nc};border-color:${ks}}:host([appearance='tint'][color='danger']){background-color:${Ss};color:${yi};border-color:${Is}}:host([appearance='tint'][color='important']){background-color:${X};color:${C};border-color:${K}}:host([appearance='tint'][color='informative']){background-color:${ac};color:${X};border-color:${yo}}:host([appearance='tint'][color='severe']){background-color:${Os};color:${Cc};border-color:${As}}:host([appearance='tint'][color='subtle']){background-color:${C};color:${X};border-color:${yo}}:host([appearance='tint'][color='success']){background-color:${zs};color:${kc};border-color:${xc}}:host([appearance='tint'][color='warning']){background-color:${Ic};color:${xi};border-color:${zc}}`,Jh=p`:host([shape='square']){border-radius:${lr}}:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${Yh} ${Kh} ${la} ${aa} ${sa} ${na} @media (forced-colors:active){:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}}`;function Zh(o={}){return b`${We(o)}<slot>${fe(o.defaultContent)}</slot>${ct(o)}`}const Qh=Zh(),eu={name:Xh,registry:h.registry,styles:Jh,template:Qh};var tu=Object.defineProperty,ou=Object.getOwnPropertyDescriptor,Ir=(o,e,t,r)=>{for(var i=r>1?void 0:r?ou(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&tu(e,t,i),i};class Xt extends x{constructor(){super(...arguments),this.appearance=Uh.filled,this.color=Gh.brand}}Ir([a],Xt.prototype,"appearance",2),Ir([a],Xt.prototype,"color",2),Ir([a],Xt.prototype,"shape",2),Ir([a],Xt.prototype,"size",2),dt(Xt,lt),Xt.define(eu);function Ei(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${We(o)} <span class=content part=content><slot ${G("defaultSlottedContent")}></slot></span>${ct(o)}</template>`}const ru=Ei(),iu={name:uh,registry:h.registry,styles:wr,template:ru};function et(o){const e=o.ownerDocument;o?.isConnected&&o?.hasAttribute("autofocus")&&o?.checkVisibility?.({contentVisibilityAuto:!0,visibilityProperty:!0})&&[null,o,e.body,e.documentElement].includes(e.activeElement)&&O.enqueue(()=>{o.focus()})}var nu=Object.defineProperty,su=Object.getOwnPropertyDescriptor,Pe=(o,e,t,r)=>{for(var i=r>1?void 0:r?su(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&nu(e,t,i),i};class be extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="button"}disabledChanged(){this.setTabIndex()}disabledFocusableChanged(e,t){this.elementInternals&&(this.elementInternals.ariaDisabled=`${!!t}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}typeChanged(e,t){t!==kr.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`,this.setTabIndex(),et(this)}createAndInsertFormSubmissionFallbackControl(){const e=this.formSubmissionFallbackControlSlot??document.createElement("slot");e.setAttribute("name","internal"),this.shadowRoot?.appendChild(e),this.formSubmissionFallbackControlSlot=e;const t=this.formSubmissionFallbackControl??document.createElement("button");t.style.display="none",t.setAttribute("type","submit"),t.setAttribute("slot","internal"),this.formNoValidate&&t.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&t.setAttribute("form",this.elementInternals.form.id),this.name&&t.setAttribute("name",this.name),this.value&&t.setAttribute("value",this.value),this.formAction&&t.setAttribute("formaction",this.formAction??""),this.formEnctype&&t.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&t.setAttribute("formmethod",this.formMethod??""),this.formTarget&&t.setAttribute("formtarget",this.formTarget??""),this.append(t),this.formSubmissionFallbackControl=t}formDisabledCallback(e){this.disabled=e}keypressHandler(e){if(e&&this.disabledFocusable){e.stopImmediatePropagation();return}if(e.key==="Enter"||e.key===" "){this.click();return}return!0}press(){switch(this.type){case kr.reset:{this.resetForm();break}case kr.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}setTabIndex(){if(this.disabled){this.removeAttribute("tabindex");return}this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==kr.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.formAttribute&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}be.formAssociated=!0,Pe([g],be.prototype,"defaultSlottedContent",2),Pe([a({mode:"boolean"})],be.prototype,"disabled",2),Pe([a({attribute:"disabled-focusable",mode:"boolean"})],be.prototype,"disabledFocusable",2),Pe([a({attribute:"formaction"})],be.prototype,"formAction",2),Pe([a({attribute:"form"})],be.prototype,"formAttribute",2),Pe([a({attribute:"formenctype"})],be.prototype,"formEnctype",2),Pe([a({attribute:"formmethod"})],be.prototype,"formMethod",2),Pe([a({attribute:"formnovalidate",mode:"boolean"})],be.prototype,"formNoValidate",2),Pe([a({attribute:"formtarget"})],be.prototype,"formTarget",2),Pe([a],be.prototype,"name",2),Pe([a],be.prototype,"type",2),Pe([a],be.prototype,"value",2);var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,Pr=(o,e,t,r)=>{for(var i=r>1?void 0:r?lu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&au(e,t,i),i};class tt extends be{constructor(){super(...arguments),this.iconOnly=!1}}Pr([a],tt.prototype,"appearance",2),Pr([a],tt.prototype,"shape",2),Pr([a],tt.prototype,"size",2),Pr([a({attribute:"icon-only",mode:"boolean"})],tt.prototype,"iconOnly",2),dt(tt,lt),tt.define(iu);const cu=`${h.prefix}-checkbox`,du=P("active"),hu=P("bad-input"),y=P("checked"),uu=P("custom-error"),pu=P("description"),me=P("disabled");P("error");const gu=P("flip-block"),fu=P("focus-visible");P("has-message");const At=P("indeterminate"),Kt=P("multiple"),bu=P("open"),mu=P("pattern-mismatch"),vu=P("placeholder-shown"),F=P("pressed"),$u=P("range-overflow"),yu=P("range-underflow"),xu=P("required"),Ni=P("selected"),ku=P("step-mismatch"),zr=P("submenu"),wu=P("too-long"),Su=P("too-short"),Cu=P("type-mismatch"),Iu=P("user-invalid"),Pu=P("valid"),zu=P("value-missing"),_u=p`${w("inline-flex")} :host{--size:16px;background-color:${C};border-radius:${Ee};border:${I} solid ${je};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ct}}:host(:active){border-color:${It}}:host(${y}:hover){background-color:${Vt};border-color:${fc}}:host(${y}:active){background-color:${Rt};border-color:${ws}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}.indeterminate-indicator,.checked-indicator{color:${wt};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${y})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${y}),:host(${At}){border-color:${at}}:host(${y}),:host(${At}) .indeterminate-indicator{background-color:${St}}:host(${At}) .indeterminate-indicator{border-radius:${Ee};position:absolute;width:calc(var(--size)/2);inset:0}:host([size='large']){--size:20px}:host([size='large']) ::slotted([slot='checked-indicator']),:host([size='large']) .checked-indicator{width:16px}:host([shape='circular']),:host([shape='circular']) .indeterminate-indicator{border-radius:${ue}}:host([disabled]),:host([disabled]${y}){background-color:${st};border-color:${xe}}:host([disabled]){cursor:unset}:host([disabled]${At}) .indeterminate-indicator{background-color:${xe}}:host([disabled]${y}) .checked-indicator{color:${xe}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${y}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${y}),:host(${At}) .indeterminate-indicator{background-color:FieldText}:host(${y}:not([disabled]):hover),:host(${At}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${At}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${y}) .checked-indicator{color:GrayText}}`,Ou=b.partial('<svg fill=currentColor aria-hidden=true class=checked-indicator width=1em height=1em viewBox="0 0 12 12" xmlns=http://www.w3.org/2000/svg><path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill=currentColor></path></svg>'),Tu=b.partial("<span class=indeterminate-indicator></span>");function Au(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${fe(o.checkedIndicator)}</slot><slot name=indeterminate-indicator>${fe(o.indeterminateIndicator)}</slot></template>`}const Bu=Au({checkedIndicator:Ou,indeterminateIndicator:Tu}),Eu={name:cu,registry:h.registry,styles:_u,template:Bu};var Nu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Bt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nu(e,t,i),i};class Fe extends x{constructor(){super(...arguments),this.initialValue="on",this._keydownPressed=!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue}get checked(){return m.track(this,"checked"),!!this._checked}set checked(e){this._checked=e,this.setFormValue(e?this.value:null),this.setValidity(),this.setAriaChecked(),$(this.elementInternals,"checked",e),m.notify(this,"checked")}disabledChanged(e,t){this.disabled?this.removeAttribute("tabindex"):this.tabIndex=Number(this.getAttribute("tabindex")??0)<0?-1:0,this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled)}disabledAttributeChanged(e,t){this.disabled=!!t}initialCheckedChanged(e,t){this.dirtyChecked||(this.checked=!!t)}initialValueChanged(e,t){this._value=t}requiredChanged(e,t){this.elementInternals&&(this.setValidity(),this.elementInternals.ariaRequired=this.required?"true":"false")}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals?.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="checkbox",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.track(this,"value"),this._value}set value(e){this._value=e,this.elementInternals&&(this.setFormValue(e),this.setValidity()),m.notify(this,"value")}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;this.dirtyChecked=!0;const t=this.checked;return this.toggleChecked(),t!==this.checked&&(this.$emit("change"),this.$emit("input")),!0}connectedCallback(){super.connectedCallback(),this.disabled=!!this.disabledAttribute,this.setAriaChecked(),this.setValidity(),et(this)}inputHandler(e){return this.setFormValue(this.value),this.setValidity(),!0}keydownHandler(e){if(e.key!==" ")return!0;this._keydownPressed=!0}keyupHandler(e){if(!this._keydownPressed||e.key!==" ")return!0;this._keydownPressed=!1,this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setAriaChecked(e=this.checked){this.elementInternals&&(this.elementInternals.ariaChecked=e?"true":"false")}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.setValidity()}setValidity(e,t,r){if(this.elementInternals){if(this.disabled||!this.required){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({valueMissing:!!this.required&&!this.checked,...e},t??this.validationMessage,r)}}toggleChecked(e=!this.checked){this.checked=e}}Fe.formAssociated=!0,Bt([g],Fe.prototype,"disabled",2),Bt([a({attribute:"disabled",mode:"boolean"})],Fe.prototype,"disabledAttribute",2),Bt([a({attribute:"form"})],Fe.prototype,"formAttribute",2),Bt([a({attribute:"checked",mode:"boolean"})],Fe.prototype,"initialChecked",2),Bt([a({attribute:"value",mode:"fromView"})],Fe.prototype,"initialValue",2),Bt([a],Fe.prototype,"name",2),Bt([a({mode:"boolean"})],Fe.prototype,"required",2);var Mu=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,Fi=(o,e,t,r)=>{for(var i=r>1?void 0:r?Lu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Mu(e,t,i),i};class _r extends Fe{indeterminateChanged(e,t){this.setAriaChecked(),$(this.elementInternals,"indeterminate",t)}constructor(){super(),this.elementInternals.role="checkbox"}setAriaChecked(e=this.checked){if(this.indeterminate){this.elementInternals.ariaChecked="mixed";return}super.setAriaChecked(e)}toggleChecked(e=!this.checked){this.indeterminate=!1,super.toggleChecked(e)}}Fi([g],_r.prototype,"indeterminate",2),Fi([a],_r.prototype,"shape",2),Fi([a],_r.prototype,"size",2),_r.define(Eu);const Du=`${h.prefix}-compound-button`,Hu=p`${wr} :host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${B};line-height:${L}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Be};line-height:100%;font-size:${M};font-weight:${E}}::slotted(svg),:host([size='large']) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Dt}}:host(:active) ::slotted([slot='description']){color:${Ht}}:host(:is([appearance='primary'],[appearance='primary']:is(:hover,:active))) ::slotted([slot='description']){color:${Ze}}:host(:is([appearance='transparent'],[appearance='subtle'],[appearance='subtle']:is(:hover,:active))) ::slotted([slot='description']){color:${Be}}:host([appearance='transparent']:hover) ::slotted([slot='description']){color:${er}}:host([appearance='transparent']:active) ::slotted([slot='description']){color:${tr}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance])) ::slotted([slot='description']){color:${T}}:host([size='small']){padding:8px;padding-bottom:10px}:host([icon-only]){min-width:52px;max-width:52px;padding:${we}}:host([icon-only][size='small']){min-width:48px;max-width:48px;padding:${oe}}:host([icon-only][size='large']){min-width:56px;max-width:56px;padding:${Ne}}:host([size='large']){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted([slot='description']){font-size:${B}}@media (forced-colors:active){:host([appearance='primary']:not(:hover,:focus-visible,:disabled,[disabled-focusable])) ::slotted([slot='description']){color:HighlightText}}`;function Vu(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keypress=${(e,t)=>e.keypressHandler(t.event)}>${We(o)} <span class=content part=content><slot ${G("defaultSlottedContent")}></slot><slot name=description></slot></span>${ct(o)}</template>`}const Ru=Vu(),ju={name:Du,registry:h.registry,styles:Hu,template:Ru};class qu extends tt{}qu.define(ju);const Wu=`${h.prefix}-counter-badge`,Uu=p`:host([shape='rounded']){border-radius:${S}}:host([shape='rounded']:is([size='tiny'],[size='extra-small'],[size='small'])){border-radius:${Ee}}${sa} ${aa} ${la} ${na} :host(:is([dot],[dot][appearance][size])){min-width:auto;width:6px;height:6px;padding:0}`;function Gu(o={}){return b`${We(o)} <span>${e=>e.displayValue}</span> ${ct(o)}`}const Xu=Gu(),Ku={name:Wu,registry:h.registry,styles:Uu,template:Xu};var Yu=Object.defineProperty,Ju=Object.getOwnPropertyDescriptor,Po=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ju(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Yu(e,t,i),i};class Yt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}get displayValue(){const e=this.count??0;return!this.showZero&&e===0||this.dot?"":this.overflowCount>0&&e>this.overflowCount?`${this.overflowCount}+`:`${e}`}}Po([a({converter:te})],Yt.prototype,"count",2),Po([a({attribute:"overflow-count",converter:te})],Yt.prototype,"overflowCount",2),Po([a({attribute:"show-zero",mode:"boolean"})],Yt.prototype,"showZero",2),Po([a({mode:"boolean"})],Yt.prototype,"dot",2),Po([ye],Yt.prototype,"displayValue",1);var Zu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,Or=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qu(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zu(e,t,i),i};class Jt extends Yt{}Or([a],Jt.prototype,"appearance",2),Or([a],Jt.prototype,"color",2),Or([a],Jt.prototype,"shape",2),Or([a],Jt.prototype,"size",2),dt(Jt,lt),Jt.define(Ku);const Et={modal:"modal",nonModal:"non-modal",alert:"alert"};function ca(o,e="-dialog"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const ep=`${h.prefix}-dialog`,tp=p`@layer base{:host{--dialog-backdrop:${mi};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${C};border-radius:${Fs};border:none;box-shadow:${Us};color:${_};max-height:100vh;padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;z-index:2;overflow:auto}@supports (max-height:1dvh){dialog{max-height:100dvh}}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${zi};transition-timing-function:${Ot};opacity:0}::backdrop{transition-timing-function:${_i}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${_t}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}@media (forced-colors:active){@layer base{dialog{border:${I} solid ${K}}}}`,op=b`<dialog class=dialog part=dialog aria-modal=${o=>o.dialogModal} aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} role=${o=>o.dialogRole} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.hide()} ${z("dialog")}><div tabindex=-1></div><slot></slot></dialog>`,rp={name:ep,registry:h.registry,styles:tp,template:op};var ip=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Ge=(o,e,t,r)=>{for(var i=r>1?void 0:r?np(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ip(e,t,i),i};class Me extends x{constructor(){super(...arguments),this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type!==Et.nonModal)return!0}get dialogRole(){if(this.dialog&&this.type===Et.alert)return"alertdialog"}connectedCallback(){super.connectedCallback(),O.enqueue(()=>{this.type=this.type??Et.modal})}emitBeforeToggle(){this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}show(){O.enqueue(()=>{this.emitBeforeToggle(),this.type===Et.alert||this.type===Et.modal?this.dialog.showModal():this.type===Et.nonModal&&this.dialog.show(),this.querySelector("[autofocus]")?.focus?.(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&this.type!==Et.alert&&e.target===this.dialog&&this.hide(),!0}}Ge([g],Me.prototype,"dialog",2),Ge([a({attribute:"aria-describedby"})],Me.prototype,"ariaDescribedby",2),Ge([a({attribute:"aria-labelledby"})],Me.prototype,"ariaLabelledby",2),Ge([a({attribute:"aria-label"})],Me.prototype,"ariaLabel",2),Ge([a],Me.prototype,"type",2),Ge([ye],Me.prototype,"dialogDescribedby",1),Ge([ye],Me.prototype,"dialogLabel",1),Ge([ye],Me.prototype,"dialogLabelledby",1),Ge([ye],Me.prototype,"dialogModal",1),Ge([ye],Me.prototype,"dialogRole",1),Me.define(rp);const sp=`${h.prefix}-dialog-body`,ap=p`${w("grid")} :host{background:${C};box-sizing:border-box;gap:${ie};padding:${zt} ${gr};container:dialog-body/inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${C};color:${_};column-gap:8px;display:flex;font-family:${v};font-size:${jt};font-weight:${H};inset-block-start:0;justify-content:space-between;line-height:${ur};margin-block-end:calc(${ie} * -1);margin-block-start:calc(${zt} * -1);padding-block-end:${ie};padding-block-start:${zt}}.content{box-sizing:border-box;color:${_};font-family:${v};font-size:${B};font-weight:${E};line-height:${L};min-height:32px}.actions{box-sizing:border-box;background:${C};display:flex;flex-direction:column;gap:${ie};inset-block-end:0;margin-block-end:calc(${zt} * -1);padding-block-end:${zt};padding-block-start:${Ii}}::slotted([slot='title-action']){margin-inline-start:auto}::slotted([slot='title']){font:inherit;padding:0;margin:0}:not(:has(:is([slot='title'],[slot='title-action']))) .title{justify-content:end}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${ie} * -1);padding-block-start:${ie}}}@media (min-height:480px){.title{position:sticky;z-index:1}.actions{position:sticky;z-index:2}}`,lp=b`<template><div class=title part=title><slot name=title></slot><slot name=title-action></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=actions part=actions><slot name=action></slot></div></template>`,cp={name:sp,registry:h.registry,styles:ap,template:lp};class dp extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ca(t)&&t.hide()}return!0}}dp.define(cp);const Se={horizontal:"horizontal",vertical:"vertical"},zo={separator:"separator",presentation:"presentation"},da=Se,hp=`${h.prefix}-divider`,up=p`${w("flex")} :host{contain:content}:host::after,:host::before{align-self:center;background:${yo};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${I}}:host([inset]){padding:0 12px}:host ::slotted(*){color:${Be};font-family:${v};font-size:${M};font-weight:${E};margin:0;padding:0 12px}:host([align-content='start'])::before,:host([align-content='end'])::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host([orientation='vertical']){align-items:center;flex-direction:column;height:100%;min-height:84px}:host([orientation='vertical']):empty{min-height:20px}:host([orientation='vertical'][inset])::before{margin-top:12px}:host([orientation='vertical'][inset])::after{margin-bottom:12px}:host([orientation='vertical']):empty::before,:host([orientation='vertical']):empty::after{height:10px;min-height:10px;flex-grow:0}:host([orientation='vertical'])::before,:host([orientation='vertical'])::after{width:${I};min-height:20px;height:100%}:host([orientation='vertical']) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host([orientation='vertical'][align-content='start'])::before{min-height:8px}:host([orientation='vertical'][align-content='end'])::after{min-height:8px}:host([appearance='strong'])::before,:host([appearance='strong'])::after{background:${qe}}:host([appearance='strong']) ::slotted(*){color:${_}}:host([appearance='brand'])::before,:host([appearance='brand'])::after{background:${xs}}:host([appearance='brand']) ::slotted(*){color:${or}}:host([appearance='subtle'])::before,:host([appearance='subtle'])::after{background:${pc}}:host([appearance='subtle']) ::slotted(*){color:${X}}@media (forced-colors:active){:host([appearance='strong'])::before,:host([appearance='strong'])::after,:host([appearance='brand'])::before,:host([appearance='brand'])::after,:host([appearance='subtle'])::before,:host([appearance='subtle'])::after,:host::after,:host::before{background:WindowText;color:WindowText}}`;function pp(){return b`<slot></slot>`}const gp=pp(),fp={name:hp,registry:h.registry,styles:up,template:gp};var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,ha=(o,e,t,r)=>{for(var i=r>1?void 0:r?mp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bp(e,t,i),i};class Mi extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??zo.separator,this.role!==zo.presentation&&(this.elementInternals.ariaOrientation=this.orientation??da.horizontal)}roleChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.role=`${t??zo.separator}`),t===zo.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.role!==zo.presentation?t??null:null,Tt(this.elementInternals,e,t,da)}}ha([a],Mi.prototype,"role",2),ha([a],Mi.prototype,"orientation",2);var vp=Object.defineProperty,$p=Object.getOwnPropertyDescriptor,Li=(o,e,t,r)=>{for(var i=r>1?void 0:r?$p(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&vp(e,t,i),i};class Tr extends Mi{}Li([a({attribute:"align-content"})],Tr.prototype,"alignContent",2),Li([a],Tr.prototype,"appearance",2),Li([a({mode:"boolean"})],Tr.prototype,"inset",2),Tr.define(fp);const yp={start:"start",end:"end"},xp={small:"small",medium:"medium",large:"large",full:"full"},_o={nonModal:"non-modal",modal:"modal",inline:"inline"},kp=`${h.prefix}-drawer`,wp=p`${w("block")} :host{--dialog-backdrop:${mi}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{background:${C};border-radius:0;border:${I} solid ${K};border-inline-end-color:${K};border-inline-start-color:var(--drawer-separator,${K});box-shadow:${Us};box-sizing:border-box;color:${_};font-family:${v};font-size:${B};font-weight:${E};height:100%;line-height:${L};margin-inline-end:auto;margin-inline-start:0;max-height:100vh;max-width:calc(100vw - ${gr});outline:none;padding:0;bottom:0;top:0;width:var(--drawer-width,592px);z-index:var(--drawer-elevation,1000)}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${zi};transition-timing-function:${Ot}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${_t}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${_t}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${zi};transition-timing-function:${Ot};background:var(--dialog-backdrop,${mi});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${_i}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Sp(){return b`<dialog class=dialog part=dialog aria-describedby=${o=>o.dialogDescribedby} aria-labelledby=${o=>o.dialogLabelledby} aria-label=${o=>o.dialogLabel} aria-modal=${o=>o.dialogModal} role=${o=>o.dialogRole} size=${o=>o.size} position=${o=>o.position} @click=${(o,e)=>o.clickHandler(e.event)} @cancel=${o=>o.cancelHandler()} ${z("dialog")}><slot></slot></dialog>`}const Cp=Sp(),Ip={name:kp,registry:h.registry,styles:wp,template:Cp};var Pp=Object.defineProperty,zp=Object.getOwnPropertyDescriptor,ze=(o,e,t,r)=>{for(var i=r>1?void 0:r?zp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Pp(e,t,i),i};class Ce extends x{constructor(){super(...arguments),this.position=yp.start,this.size=xp.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}get dialogDescribedby(){if(this.dialog)return this.ariaDescribedby}get dialogLabel(){if(this.dialog)return this.ariaLabel}get dialogLabelledby(){if(this.dialog)return this.ariaLabelledby}get dialogModal(){if(this.dialog&&this.type===_o.modal)return!0}get dialogRole(){return this.dialog&&this.type===_o.modal?"dialog":this.role}connectedCallback(){super.connectedCallback(),O.enqueue(()=>{this.type=this.type??_o.modal})}show(){O.enqueue(()=>{this.emitBeforeToggle(),this.type===_o.inline||this.type===_o.nonModal?this.dialog.show():this.dialog.showModal(),this.querySelector("[autofocus]")?.focus?.(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(e){return this.dialog.open&&e.target===this.dialog&&this.hide(),!0}cancelHandler(){this.hide()}}ze([a],Ce.prototype,"type",2),ze([a({attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledby",2),ze([a({attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedby",2),ze([a],Ce.prototype,"position",2),ze([g],Ce.prototype,"role",2),ze([a({attribute:"size"})],Ce.prototype,"size",2),ze([g],Ce.prototype,"dialog",2),ze([ye],Ce.prototype,"dialogDescribedby",1),ze([ye],Ce.prototype,"dialogLabel",1),ze([ye],Ce.prototype,"dialogLabelledby",1),ze([ye],Ce.prototype,"dialogModal",1),ze([ye],Ce.prototype,"dialogRole",1),Ce.define(Ip);const _p=`${h.prefix}-drawer-body`,ua=p.partial`font-family:${v};font-size:${B};line-height:${L};font-weight:${E};`;p.partial`font-family:${v};font-size:${B};line-height:${L};font-weight:${H};`,p.partial`font-family:${v};font-size:${B};line-height:${L};font-weight:${dr};`;const Op=p.partial`font-family:${v};font-size:${pe};line-height:${ke};font-weight:${E};`,pa=p.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${E};`;p.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${H};`,p.partial`font-family:${v};font-size:${M};line-height:${q};font-weight:${dr};`,p.partial`font-family:${v};font-size:${xo};line-height:${hr};font-weight:${E};`,p.partial`font-family:${v};font-size:${xo};line-height:${hr};font-weight:${H};`;const Tp=p.partial`font-family:${v};font-size:${jt};line-height:${ur};font-weight:${H};`;p.partial`font-family:${v};font-size:${pe};line-height:${ke};font-weight:${H};`,p.partial`font-family:${v};font-size:${pe};line-height:${ke};font-weight:${dr};`,p.partial`font-family:${v};font-size:${Ls};line-height:${js};font-weight:${H};`,p.partial`font-family:${v};font-size:${Ms};line-height:${Rs};font-weight:${H};`,p.partial`font-family:${v};font-size:${cr};line-height:${Vs};font-weight:${H};`,p.partial`font-family:${v};font-size:${Ds};line-height:${qs};font-weight:${H};`,p.partial`font-family:${v};font-size:${Hs};line-height:${Ws};font-weight:${H};`;const Ap=p`${w("grid")} :host{box-sizing:border-box;grid-template-rows:min-content auto min-content;position:relative;height:100%;padding:${Dd};max-height:100svh}.header{display:flex;justify-content:space-between;align-items:center;${Tp}}.footer{display:flex;justify-content:flex-start;gap:${re}}::slotted([slot='title']){font:inherit;padding:0;margin:0}`;function Bp(){return b`<div class=header part=header><slot name=title></slot><slot name=close @click=${(o,e)=>o.clickHandler(e.event)}></slot></div><div class=content part=content><slot></slot></div><div class=footer part=footer><slot name=footer></slot></div>`}const Ep=Bp(),Np={name:_p,registry:h.registry,styles:Ap,template:Ep};class Fp extends x{clickHandler(e){if(!e.defaultPrevented){const t=this.parentElement;ca(t,"-drawer")&&t.hide()}return!0}}Fp.define(Np);const Mp={filledDarker:"filled-darker",filledLighter:"filled-lighter",outline:"outline",transparent:"transparent"},Di={combobox:"combobox",dropdown:"dropdown",select:"select"},Lp=`${h.prefix}-dropdown`,Dp=p`${w("inline-flex")} :host{box-sizing:border-box;color:${_};cursor:pointer}:host(${vu}){color:${fi}}.control{appearance:none;background-color:${C};border-radius:${S};border:${I} solid ${K};box-shadow:inset 0 0 0 ${I} var(--control-border-color);box-sizing:border-box;color:inherit;column-gap:${V};display:inline-flex;justify-content:space-between;min-width:160px;overflow:hidden;padding:${ko} ${Qe};white-space:normal;position:relative;text-align:start;width:100%;z-index:1;${ua}}:host([size='small']) .control{column-gap:${V};padding:${qt} ${we};${pa}}:host([size='large']) .control{column-gap:${Ne};padding:${ie} ${re};${Op}}::slotted(:is(input,button)){all:unset;flex:1 1 auto}::slotted(button){cursor:pointer}::slotted(input){cursor:text}:where(slot[name='indicator']>*,::slotted([slot='indicator'])){all:unset;align-items:center;appearance:none;aspect-ratio:1;color:${X};display:inline-flex;justify-content:center;width:20px}:host([size='small']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:16px}:host([size='large']) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){width:24px}.control::after,.control::before{content:''/'';inset:auto 0 0;pointer-events:none;position:absolute}.control::before{height:${I}}.control::after{background-color:${at};height:${ge};scale:0 1;transition:scale ${Pi} ${Ot}}:host(:where(:focus-within)) .control{border-radius:${S};box-shadow:inset 0 0 0 1px ${ar};outline:${ge} solid ${le}}:host(:where(${bu},:focus-within)) .control::after{scale:1 1;transition-duration:${vr};transition-timing-function:${_t}}:host(:where([appearance='outline'],[appearance='transparent'])) .control::before{background-color:${je}}:host([appearance='transparent']) .control{--control-border-color:${vi};background-color:${he};border-radius:${lr}}:host([appearance='outline']) .control{--control-border-color:${qe}}:host([appearance='outline']) .control:hover{--control-border-color:${Pt}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:hover::before{background-color:${Ct}}:host([appearance='outline']) .control:hover::after{background-color:${Vt}}:host([appearance='outline']) .control:active{--control-border-color:${$o}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::before{background-color:${It}}:host(:where([appearance='outline'],[appearance='transparent'])) .control:active::after{background-color:${Rt}}:host([appearance='filled-darker']) .control{background-color:${bo}}:host(:where([appearance='filled-lighter'],[appearance='filled-darker'])) .control{--control-border-color:${K}}:host(:disabled),:host(:disabled) ::slotted(:where(button,input)){cursor:not-allowed}:host(:disabled) .control::before,:host(:disabled) .control::after{content:none}:host(:disabled) .control:is(*,:active,:hover),:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){--control-border-color:${xe};background-color:${st};color:${T}}::slotted(:not([slot]):not([popover])),::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--anchor){:host{--listbox-max-height:50vh;--margin-offset:calc(${L} + (${ko} * 2) + ${I})}:host([size='small']){--margin-offset:calc(${q} + (${qt} * 2) + ${I})}:host([size='large']){--margin-offset:calc(${ke} + (${ie} * 2) + ${I})}}@media (forced-colors:active){:host(:disabled) .control{border-color:GrayText}:host(:disabled) :where(slot[name='indicator']>*,::slotted([slot='indicator'])){color:GrayText}}`,Hp=b`<svg class=chevron-down-20-regular aria-hidden=true slot=indicator viewBox="0 0 20 20" ${z("indicator")}><path d="M15.85 7.65a.5.5 0 0 1 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16a.5.5 0 0 1 .7 0" fill=currentColor /></svg>`,Vp=b`<input @input=${(o,e)=>o.inputHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-labelledby=${o=>o.ariaLabelledBy} aria-expanded=${o=>o.open} aria-haspopup=listbox placeholder=${o=>o.placeholder} role=combobox ?disabled=${o=>o.disabled} type=${o=>o.type} value=${o=>o.valueAttribute} slot=control ${z("control")}>`,Rp=b`<button aria-activedescendant=${o=>o.activeDescendant} aria-controls=${o=>o.listbox?.id??null} aria-expanded=${o=>o.open} aria-haspopup=listbox role=combobox ?disabled=${o=>o.disabled} type=button slot=control ${z("control")}>${o=>o.displayValue}</button>`;function jp(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @focusout=${(e,t)=>e.focusoutHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @mousedown=${(e,t)=>e.mousedownHandler(t.event)}><div class=control><slot name=control ${z("controlSlot")}></slot><slot name=indicator ${z("indicatorSlot")}>${fe(o.indicator)}</slot></div><slot @slotchange=${(e,t)=>e.slotchangeHandler(t.event)}></slot></template>`}const qp=jp({indicator:Hp}),Wp={name:Lp,registry:h.registry,styles:Dp,template:qp};function ga(o,e="-listbox"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Up=`${h.prefix}-listbox`;function Nt(o,e="-option"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gp=`${h.prefix}-option`,gt={ltr:"ltr",rtl:"rtl"},fa=o=>o.closest("[dir]")?.dir==="rtl"?gt.rtl:gt.ltr;function ba(o){return o.closest("[lang]")?.lang??"en"}let Xp=0;function Xe(o="id-"){const e=`${o}${Xp++}`;return document.getElementById(e)?Xe(o):e}var Kp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Y=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Kp(e,t,i),i};const R=class so extends x{constructor(){super(),this.activeIndex=0,this.id=Xe("dropdown-"),this.required=!1,this.type=Di.dropdown,this.valueAttribute="",this.repositionListbox=()=>{this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=requestAnimationFrame(()=>{const e=this.getBoundingClientRect(),t=window.innerWidth-e.right,r=e.left;this.listbox.style.minWidth=`${e.width}px`,this.listbox.style.top=`${e.top}px`,r+e.width>window.innerWidth||fa(this)==="rtl"&&t-e.width>0?(this.listbox.style.right=`${t}px`,this.listbox.style.left="unset"):(this.listbox.style.left=`${r}px`,this.listbox.style.right="unset")})},this.elementInternals=this.attachInternals(),this._insertingControl=!1,this.searchTimeoutMs=500,this.searchString="",this.elementInternals.role="presentation"}get activeDescendant(){if(this.open)return this.enabledOptions[this.activeIndex]?.id}activeIndexChanged(e,t){if(typeof t=="number"){const r=this.matches(":has(:focus-visible)")?t:-1;this.enabledOptions.forEach((i,n)=>{i.active=n===r}),this.open&&this.enabledOptions[r]?.scrollIntoView({block:"nearest"})}}controlChanged(e,t){t&&(t.id=t.id||Xe("input-"))}disabledChanged(e,t){this.listbox&&O.enqueue(()=>{this.options.forEach(r=>{r.disabled=r.disabledAttribute||this.disabled})})}get displayValue(){if(!this.$fastController.isConnected||!this.control||this.isCombobox&&this.multiple)return $(this.elementInternals,"placeholder-shown",!1),"";this.listFormatter=this.listFormatter??new Intl.ListFormat(ba(this),{type:"conjunction",style:"narrow"});const e=this.listFormatter.format(this.selectedOptions.map(t=>t.text));return $(this.elementInternals,"placeholder-shown",!e),this.isCombobox?e:e||this.placeholder}listboxChanged(e,t){if(e&&m.getNotifier(this).unsubscribe(e),t){t.dropdown=this,t.popover="manual",t.tabIndex=-1;const r=m.getNotifier(this);if(r.subscribe(t),r.notify("multiple"),O.enqueue(()=>{this.options.forEach(i=>{i.disabled=i.disabledAttribute||this.disabled,i.name=this.name}),this.enabledOptions.filter(i=>i.defaultSelected).forEach((i,n)=>{i.selected=this.multiple||n===0}),this.setValidity()}),Sr){const i=Xe("--dropdown-anchor-");this.style.setProperty("anchor-name",i),this.listbox.style.setProperty("position-anchor",i)}}}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),this.value=null}nameChanged(e,t){this.listbox&&O.enqueue(()=>{this.options.forEach(r=>{r.name=t})})}openChanged(e,t){$(this.elementInternals,"open",t),this.elementInternals.ariaExpanded=t?"true":"false",this.activeIndex=this.selectedIndex??-1,Sr||this.anchorPositionFallback(t)}typeChanged(e,t){this.$fastController.isConnected&&this.insertControl()}get enabledOptions(){return this.listbox?.enabledOptions??Array.from(this.querySelectorAll("*")).filter(e=>Nt(e)&&!e.disabled)}get freeformOption(){return this.enabledOptions.find(e=>e.freeform)}get isCombobox(){return this.type===Di.combobox}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get options(){return this.listbox?.options??Array.from(this.querySelectorAll("*")).filter(e=>Nt(e))}get selectedIndex(){return this.enabledOptions.findIndex(e=>e.selected)??-1}get selectedOptions(){return this.listbox?.selectedOptions??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.name="validation-message-fallback",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return!this.disabled&&this.required&&this.listbox.selectedOptions.length===0?this._validationFallbackMessage:""}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledOptions.find(e=>e.selected)?.value??null}set value(e){this.multiple||(this.selectOption(this.enabledOptions.findIndex(t=>t.value===e)),m.track(this,"value"))}get willValidate(){return this.elementInternals.willValidate}changeHandler(e){if(this===e.target)return!0;const t=this.isCombobox?this.enabledOptions.findIndex(r=>r.text===this.control.value):this.enabledOptions.indexOf(e.target);return this.selectOption(t,!0),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){if(this.disabled)return;const t=e.target;if(this.focus(),(t===this.control||e.composedPath().includes(this.indicator))&&!this.isCombobox)return this.listbox.togglePopover(),!0;if(!this.open)return this.listbox.showPopover(),!0;if(Nt(t)){if(t.disabled)return;this.selectOption(this.enabledOptions.indexOf(t),!0),this.multiple||(this.isCombobox&&(this.control.value=t.text,this.updateFreeformOption()),this.listbox.hidePopover())}return!0}filterOptions(e,t=this.enabledOptions){return this.listCollator||(this.listCollator=new Intl.Collator(ba(this),{usage:"search",sensitivity:"base"})),t.filter(r=>this.listCollator.compare(r.text.substring(0,Math.min(r.text.length,e.length)),e)===0)}focus(e){this.disabled||this.control.focus(e)}focusoutHandler(e){const t=e.relatedTarget;return this.open&&!this.contains(t)&&this.listbox.togglePopover(),!0}formResetCallback(){this.enabledOptions.forEach((e,t)=>{if(this.multiple){e.selected=!!e.defaultSelected;return}if(!e.defaultSelected){e.selected=!1;return}this.selectOption(t)}),this.setValidity()}getEnabledIndexInBounds(e,t=this.enabledOptions.length||0){return t===0?-1:(e+t)%t}inputHandler(e){this.open||this.listbox.showPopover(),this.updateFreeformOption();const t=this.control.value,r=this.enabledOptions.indexOf(this.filterOptions(t)[0]??null);return this.activeIndex=r,!0}insertControl(){if(!this._insertingControl){if(this._insertingControl=!0,this.controlSlot?.assignedNodes().forEach(e=>this.removeChild(e)),this.type===Di.combobox){Vp.render(this,this);return}Rp.render(this,this),this._insertingControl=!1}}handleSearchCharacter(e){const t=this.searchString===e.repeat(this.searchString.length);this.searchString+=e;let r=this.searchString.length>1?this.filterOptions(this.searchString):[],i=!1;if(!r.length&&t&&(r=this.filterOptions(e),i=!0),r.length){const n=this.enabledOptions[this.activeIndex],s=r.indexOf(n),l=i?r[this.getEnabledIndexInBounds(s+1,r.length)]:s>=0?n:r[0];this.activeIndex=this.enabledOptions.indexOf(l)}clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchString="",this.searchTimeout=void 0},this.searchTimeoutMs)}keydownHandler(e){let t=0;switch(e.key){case"ArrowUp":{e.preventDefault(),t=-1;break}case"ArrowDown":{e.preventDefault(),t=1;break}case" ":case"Enter":case"Tab":{if(e.key===" "){if(this.isCombobox)break;e.preventDefault()}if(this.open){if(this.selectOption(this.activeIndex,!0),this.multiple)break;return this.listbox.hidePopover(),e.key==="Tab"}this.listbox.showPopover();break}case"Escape":{this.activeIndex=this.multiple?0:this.selectedIndex,this.listbox.hidePopover();break}}if(!t)return!this.isCombobox&&e.key.length===1&&e.key!==" "&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(this.open||this.listbox.showPopover(),this.handleSearchCharacter(e.key)),!0;if(!this.open){this.listbox.showPopover();return}let r=this.activeIndex;r+=t;let i=this.getEnabledIndexInBounds(r);return i===0&&this.freeformOption?.hidden&&(i=this.getEnabledIndexInBounds(r+t)),this.activeIndex=i,!0}mousedownHandler(e){if(!(this.disabled||e.target===this.control&&!this.isCombobox))return!Nt(e.target)}reportValidity(){return this.elementInternals.reportValidity()}selectOption(e=this.selectedIndex,t=!1){this.listbox.selectOption(e),this.control&&(this.control.value=this.displayValue),this.setValidity(),this.updateFreeformOption(),t&&this.$emit("change")}setValidity(e,t,r){if(!this.elementInternals)return;if(this.disabled||!this.required){this.elementInternals.setValidity({});return}const i=this.required&&this.listbox.selectedOptions.length===0;this.elementInternals.setValidity({valueMissing:i,...e},t??this.validationMessage,r??this.control)}slotchangeHandler(e){const t=e.target;Co(this,()=>{const r=t.assignedElements().find(i=>ga(i));r&&(this.listbox=r)})}updateFreeformOption(e=this.control.value){if(this.freeformOption){if(e===""||this.filterOptions(e,this.enabledOptions.filter(t=>!t.freeform)).length){this.freeformOption.value="",this.freeformOption.selected=!1,this.freeformOption.hidden=!0;return}this.freeformOption.value=e,this.freeformOption.hidden=!1}}connectedCallback(){super.connectedCallback(),O.enqueue(()=>{this.insertControl()}),et(this)}disconnectedCallback(){so.AnchorPositionFallbackObserver?.disconnect(),this.debounceController?.abort(),this.searchTimeout&&(clearTimeout(this.searchTimeout),this.searchTimeout=void 0,this.searchString=""),super.disconnectedCallback()}anchorPositionFallback(e){if(so.AnchorPositionFallbackObserver||(so.AnchorPositionFallbackObserver=new IntersectionObserver(t=>{t.forEach(({boundingClientRect:r,isIntersecting:i,target:n})=>{if(ga(n)){if(r.bottom>window.innerHeight){$(n.elementInternals,"flip-block",!0);return}r.top<0&&$(n.elementInternals,"flip-block",!1)}})},{threshold:1})),e){this.debounceController=new AbortController,so.AnchorPositionFallbackObserver.observe(this.listbox),window.addEventListener("scroll",this.repositionListbox,{passive:!0,capture:!0,signal:this.debounceController.signal}),window.addEventListener("resize",this.repositionListbox,{passive:!0,signal:this.debounceController.signal}),this.repositionListbox();return}so.AnchorPositionFallbackObserver.unobserve(this.listbox),this.debounceController?.abort(),this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=void 0)}};R.formAssociated=!0,Y([ye],R.prototype,"activeDescendant",1),Y([g],R.prototype,"activeIndex",2),Y([a({attribute:"aria-labelledby",mode:"fromView"})],R.prototype,"ariaLabelledBy",2),Y([g],R.prototype,"control",2),Y([a({mode:"boolean"})],R.prototype,"disabled",2),Y([ye],R.prototype,"displayValue",1),Y([a({attribute:"id"})],R.prototype,"id",2),Y([g],R.prototype,"indicator",2),Y([g],R.prototype,"indicatorSlot",2),Y([a({attribute:"value",mode:"fromView"})],R.prototype,"initialValue",2),Y([g],R.prototype,"listbox",2),Y([a({mode:"boolean"})],R.prototype,"multiple",2),Y([a],R.prototype,"name",2),Y([g],R.prototype,"open",2),Y([a],R.prototype,"placeholder",2),Y([a({mode:"boolean"})],R.prototype,"required",2),Y([a],R.prototype,"type",2),Y([a({attribute:"value"})],R.prototype,"valueAttribute",2);let Jp=R;var Zp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,ma=(o,e,t,r)=>{for(var i=r>1?void 0:r?Qp(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Zp(e,t,i),i};class Hi extends Jp{constructor(){super(...arguments),this.appearance=Mp.outline}}ma([a],Hi.prototype,"appearance",2),ma([a],Hi.prototype,"size",2),Hi.define(Wp);const eg={above:"above",after:"after",before:"before"},_e={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"},tg=`${h.prefix}-field`,og=p`${w("inline-grid")} :host{color:${_};align-items:center;gap:0 ${re};justify-items:start}:has([slot='message']){color:${_};row-gap:${ie}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${re}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${fr}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message';justify-items:center}:host([label-position='below']) ::slotted([slot='label']){margin-block-start:${Hd}}:host(${xu}) ::slotted([slot='label'])::after{content:'*'/'';color:${yi};margin-inline-start:${oe}}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){color:${X};font-family:${v};font-size:${M};font-weight:${E};grid-area:message;line-height:${q};margin-block-start:${fr}}:host(${fu}:focus-within){border-radius:${S};outline:${ge} solid ${le}}::slotted(label),::slotted([slot='label']){cursor:inherit;display:inline-flex;font-family:${v};font-size:${B};font-weight:${E};grid-area:label;line-height:${L};justify-self:stretch;user-select:none}:host([size='small']) ::slotted(label){font-size:${M};line-height:${q}}:host([size='large']) ::slotted(label){font-size:${pe};line-height:${ke}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${H}}:host(${me}){cursor:default}::slotted([flag]){display:none}:host(${hu}) ::slotted([flag='${_e.badInput}']),:host(${uu}) ::slotted([flag='${_e.customError}']),:host(${mu}) ::slotted([flag='${_e.patternMismatch}']),:host(${$u}) ::slotted([flag='${_e.rangeOverflow}']),:host(${yu}) ::slotted([flag='${_e.rangeUnderflow}']),:host(${ku}) ::slotted([flag='${_e.stepMismatch}']),:host(${wu}) ::slotted([flag='${_e.tooLong}']),:host(${Su}) ::slotted([flag='${_e.tooShort}']),:host(${Cu}) ::slotted([flag='${_e.typeMismatch}']),:host(${zu}) ::slotted([flag='${_e.valueMissing}']),:host(${Pu}) ::slotted([flag='${_e.valid}']){display:block}`,rg=b`<template @click=${(o,e)=>o.clickHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @focusout=${(o,e)=>o.focusoutHandler(e.event)}><slot name=label part=label ${G("labelSlot")}></slot><slot name=input part=input ${G("slottedInputs")}></slot><slot name=message part=message ${G({property:"messageSlot",filter:po("[flag]")})}></slot></template>`,ig={name:tg,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:og,template:rg};var ng=Object.defineProperty,sg=Object.getOwnPropertyDescriptor,Ar=(o,e,t,r)=>{for(var i=r>1?void 0:r?sg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ng(e,t,i),i};class Oo extends x{constructor(){super(),this.labelSlot=[],this.elementInternals=this.attachInternals(),this.elementInternals.role="presentation"}get slottedInputObserver(){return this._slottedInputObserver??(this._slottedInputObserver=new MutationObserver(()=>{this.setStates()})),this._slottedInputObserver}labelSlotChanged(e,t){t&&this.input&&(this.setLabelProperties(),this.setStates())}messageSlotChanged(e,t){$(this.elementInternals,"has-message",!!t.length)}slottedInputsChanged(e,t){const r=t?.filter(i=>i.nodeType===Node.ELEMENT_NODE)??[];r?.length&&(this.input=r?.[0])}inputChanged(e,t){t&&(this.setStates(),this.setLabelProperties(),this.slottedInputObserver.observe(t,{attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0}))}changeHandler(e){return this.setStates(),this.setValidationStates(),!0}clickHandler(e){return this===e.target&&this.input.click(),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("invalid",this.invalidHandler,{capture:!0})}disconnectedCallback(){this.slottedInputObserver.disconnect(),this.removeEventListener("invalid",this.invalidHandler,{capture:!0}),super.disconnectedCallback()}focusinHandler(e){return this.matches(":focus-within:has(> :focus-visible)")&&$(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(e){return $(this.elementInternals,"focus-visible",!1),!0}invalidHandler(e){this.messageSlot.length&&e.preventDefault(),this.setValidationStates()}setLabelProperties(){this.$fastController.isConnected&&(this.input.id=this.input.id||Xe("input"),this.labelSlot?.forEach(e=>{e instanceof HTMLLabelElement&&(e.htmlFor=e.htmlFor||this.input.id,e.id=e.id||`${this.input.id}--label`,this.input.setAttribute("aria-labelledby",e.id))}))}setStates(){this.elementInternals&&this.input&&($(this.elementInternals,"disabled",!!this.input.disabled),$(this.elementInternals,"readonly",!!this.input.readOnly),$(this.elementInternals,"required",!!this.input.required),$(this.elementInternals,"checked",!!this.input.checked))}setValidationStates(){if(this.input?.validity)for(const[e,t]of Object.entries(_e))$(this.elementInternals,t,this.input.validity[e])}}Ar([g],Oo.prototype,"labelSlot",2),Ar([g],Oo.prototype,"messageSlot",2),Ar([g],Oo.prototype,"slottedInputs",2),Ar([g],Oo.prototype,"input",2);var ag=Object.defineProperty,lg=Object.getOwnPropertyDescriptor,cg=(o,e,t,r)=>{for(var i=r>1?void 0:r?lg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ag(e,t,i),i};class va extends Oo{constructor(){super(...arguments),this.labelPosition=eg.above}}cg([a({attribute:"label-position"})],va.prototype,"labelPosition",2),va.define(ig);const dg=`${h.prefix}-image`,hg=p`:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host([block]) ::slotted(img){width:100%;height:auto}:host([bordered]) ::slotted(img){border:${I} solid ${yo}}:host([fit='none']) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host([fit='center']) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host([fit='contain']) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host([fit='cover']) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host([shadow]) ::slotted(img){box-shadow:${pr}}:host([shape='circular']) ::slotted(img){border-radius:${ue}}:host([shape='rounded']) ::slotted(img){border-radius:${S}}`,ug=b`<slot></slot>`,pg={name:dg,registry:h.registry,styles:hg,template:ug};var gg=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,To=(o,e,t,r)=>{for(var i=r>1?void 0:r?fg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&gg(e,t,i),i};class Zt extends x{}To([a({mode:"boolean"})],Zt.prototype,"block",2),To([a({mode:"boolean"})],Zt.prototype,"bordered",2),To([a({mode:"boolean"})],Zt.prototype,"shadow",2),To([a],Zt.prototype,"fit",2),To([a],Zt.prototype,"shape",2),Zt.define(pg);const bg=`${h.prefix}-label`,mg=p`${w("inline-flex")} :host{color:${_};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};line-height:${L};user-select:none}.asterisk{color:${yi};margin-inline-start:${oe}}:host([size='small']){font-size:${M};line-height:${q}}:host([size='large']){font-size:${pe};line-height:${ke}}:host(:is([size='large'],[weight='semibold'])){font-weight:${H}}:host([disabled]),:host([disabled]) .asterisk{color:${T}}`;function vg(){return b`<slot></slot><span part=asterisk class=asterisk aria-hidden=true ?hidden=${o=>!o.required}>*</span>`}const $g=vg(),yg={name:bg,registry:h.registry,styles:mg,template:$g};var xg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Br=(o,e,t,r)=>{for(var i=r>1?void 0:r?kg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&xg(e,t,i),i};class Ao extends x{constructor(){super(...arguments),this.disabled=!1,this.required=!1}}Br([a],Ao.prototype,"size",2),Br([a],Ao.prototype,"weight",2),Br([a({mode:"boolean"})],Ao.prototype,"disabled",2),Br([a({mode:"boolean"})],Ao.prototype,"required",2),Ao.define(yg);const wg=`${h.prefix}-link`,Sg=p`${w("inline")} :host{position:relative;box-sizing:border-box;background-color:transparent;color:${Kl};cursor:pointer;font-family:${v};font-size:${B};font-weight:${E};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${I};text-overflow:inherit;user-select:text}:host(:hover){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${Yl}}:host(:active){color:${Jl}}:host([appearance='subtle']:hover){color:${Ql}}:host([appearance='subtle']:active){color:${ec}}}:host([appearance='subtle']){color:${Zl}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host([inline]){font:inherit;text-decoration:underline}:host(:focus-visible),:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)):focus-visible,:host([inline]:focus-visible){outline-style:none;text-decoration-line:underline;text-decoration-style:double;text-decoration-color:${le}}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}@media (forced-colors:active){:host{color:LinkText}}`;function Cg(){return b`<template tabindex=0 @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot></slot></template>`}const Ig=Cg(),Pg={name:wg,registry:h.registry,styles:Sg,template:Ig};var zg=Object.defineProperty,_g=Object.getOwnPropertyDescriptor,$a=(o,e,t,r)=>{for(var i=r>1?void 0:r?_g(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&zg(e,t,i),i};class Vi extends Ue{constructor(){super(...arguments),this.inline=!1}}$a([a],Vi.prototype,"appearance",2),$a([a({mode:"boolean"})],Vi.prototype,"inline",2),Vi.define(Pg);const Og=p`${w("inline-flex")} :host{background-color:${C};border-radius:${S};border:${I} solid ${K};box-shadow:${wi};box-sizing:border-box;flex-direction:column;margin:0;min-inline-size:160px;padding:${oe};row-gap:${V};width:auto}:host([popover]){inset:unset;overflow:auto}@supports (anchor-name:--anchor){:host([popover]){position:fixed;max-block-size:var(--listbox-max-height,calc(50vh - anchor-size(self-block)));min-inline-size:anchor-size(inline);inset-block-start:anchor(outside);inset-inline-start:anchor(inside);position-try-fallbacks:flip-block,flip-inline,flip-inline flip-block}}@supports not (anchor-name:--anchor){:host([popover]){margin-block-start:var(--margin-offset,0);max-block-size:var(--listbox-max-height,50vh);position:absolute}:host([popover]${gu}){margin-block-start:revert;translate:0 -100%}}`;function Tg(){return b`<template @beforetoggle=${(o,e)=>o.beforetoggleHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)}><slot ${z("defaultSlot")} @slotchange=${(o,e)=>o.slotchangeHandler(e.event)}></slot></template>`}const Ag=Tg(),Bg={name:Up,registry:h.registry,styles:Og,template:Ag};var Eg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,Bo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ng(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Eg(e,t,i),i};class Qt extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="listbox"}defaultSlotChanged(){this.slotchangeHandler()}multipleChanged(e,t){this.elementInternals.ariaMultiSelectable=t?"true":"false",$(this.elementInternals,"multiple",t),O.enqueue(()=>{this.options.forEach(r=>{r.multiple=!!t})})}optionsChanged(e,t){t?.forEach((r,i)=>{r.elementInternals.ariaPosInSet=`${i+1}`,r.elementInternals.ariaSetSize=`${t.length}`})}beforetoggleHandler(e){if(!this.dropdown)return!0;if(this.dropdown.disabled){this.dropdown.open=!1;return}return this.dropdown.open=e.newState==="open",!0}get enabledOptions(){return this.options?.filter(e=>!e.disabled)??Array.from(this.querySelectorAll("*")).filter(e=>Nt(e)&&!e.disabled)??[]}get selectedOptions(){return this.options?.filter(e=>e.selected)??[]}clickHandler(e){if(this.dropdown)return!0;const t=e.target;return Nt(t)&&this.selectOption(this.enabledOptions.indexOf(t)),!0}connectedCallback(){super.connectedCallback(),Co(this,()=>{this.id=this.id||Xe("listbox-")},{shallow:!0})}handleChange(e,t){if(t==="multiple"){this.multiple=e.multiple;return}}selectOption(e=this.selectedIndex){let t=this.selectedIndex;if(!this.multiple)this.enabledOptions.forEach((r,i)=>{const n=i===e;r.selected=n,n&&(t=i)});else{const r=this.enabledOptions[e];r&&(r.selected=!r.selected),t=e}this.selectedIndex=t}slotchangeHandler(e){Co(this,()=>{if(this.defaultSlot){const t=this.defaultSlot.assignedElements().filter(r=>Nt(r));this.options=t}})}}Bo([g],Qt.prototype,"defaultSlot",2),Bo([g],Qt.prototype,"multiple",2),Bo([g],Qt.prototype,"options",2),Bo([g],Qt.prototype,"selectedIndex",2),Bo([g],Qt.prototype,"dropdown",2),Qt.define(Bg);const Fg=`${h.prefix}-menu-button`,Mg=wr,Lg=Ei({end:b.partial('<svg slot=end fill=currentColor aria-hidden=true width=1em height=1em viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg><path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill=currentColor></path></svg>')}),Dg={name:Fg,registry:h.registry,styles:Mg,template:Lg};class Hg extends tt{}Hg.define(Dg);const Z={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};Z.menuitem+"",Z.menuitemcheckbox+"",Z.menuitemradio+"";function Vg(o,e="-menu-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Rg=`${h.prefix}-menu-item`,jg=p`${w("grid")} :host{--indent:0;align-items:center;background:${C};border-radius:${S};color:${Be};contain:layout;cursor:pointer;flex-shrink:0;font:${E} ${B}/${L} ${v};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${rr};color:${Dt}}:host(:active){background-color:${hs};color:${Ht}}:host(:active) ::slotted([slot='start']){color:${oc}}:host(${me}){background-color:${st};color:${T}}:host(${me}) ::slotted([slot='start']),:host(${me}) ::slotted([slot='end']){color:${T}}:host(:focus-visible){border-radius:${S};outline:2px solid ${le}}.content{white-space:nowrap;flex-grow:1;grid-column:auto/span 2;padding:0 2px}:host(:not(${y})) .indicator,:host(:not(${y})) ::slotted([slot='indicator']),:host(:not(${zr})) .submenu-glyph,:host(:not(${zr})) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${X};font:${E} ${M}/${q} ${v};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host(${zr}){grid-template-columns:20px auto auto 20px}:host([data-indent='2']${zr}){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1/span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent))/span 1}.content{grid-column:calc(var(--indent) + 1)/span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2)/span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2/span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}@position-try --inline-inside{inset-inline-start:unset;inset-inline-end:anchor(inside)}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position:fixed;position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(inside);inset-inline-start:anchor(outside);position-try-fallbacks:--inline-inside,flip-block,flip-block --inline-inside;z-index:1}::slotted([popover]:not(:popover-open)){display:none}@supports not (anchor-name:--menu-trigger){::slotted([popover]){align-self:start}}}@media (forced-colors:active){:host(${me}),:host(${me}) ::slotted([slot='start']),:host(${me}) ::slotted([slot='end']){color:GrayText}}`,qg=b.partial('<svg class=indicator fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill=currentColor></path></svg>'),Wg=b.partial('<svg class=submenu-glyph fill=currentColor aria-hidden=true width=16 height=16 viewBox="0 0 16 16" xmlns=http://www.w3.org/2000/svg><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill=currentColor></path></svg>');function Ug(o={}){return b`<template tabindex=0 @keydown=${(e,t)=>e.handleMenuItemKeyDown(t.event)} @click=${(e,t)=>e.handleMenuItemClick(t.event)} @mouseover=${(e,t)=>e.handleMouseOver(t.event)} @mouseout=${(e,t)=>e.handleMouseOut(t.event)} @toggle=${(e,t)=>e.handleToggle(t.event)}><slot name=indicator>${fe(o.indicator)}</slot>${We(o)}<div part=content class=content><slot></slot></div>${ct(o)}<slot name=submenu-glyph>${fe(o.submenuGlyph)}</slot><slot name=submenu ${G({property:"slottedSubmenu"})}></slot></template>`}const Gg=Ug({indicator:qg,submenuGlyph:Wg}),Xg={name:Rg,registry:h.registry,styles:jg,template:Gg};var Kg=Object.defineProperty,Yg=Object.getOwnPropertyDescriptor,eo=(o,e,t,r)=>{for(var i=r>1?void 0:r?Yg(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Kg(e,t,i),i};class ot extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.role=Z.menuitem,this.checked=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case"ArrowLeft":return this.parentElement?.hasAttribute("popover")&&(this.parentElement.togglePopover(!1),this.parentElement.parentElement?.focus()),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=e=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=e=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.handleToggle=e=>{e instanceof ToggleEvent&&(e.newState==="open"&&(this.elementInternals.ariaExpanded="true",this.setSubmenuPosition()),e.newState==="closed"&&(this.elementInternals.ariaExpanded="false"),this.submenu?.setAttribute("focusgroup",e.newState==="open"?"menu":"none"))},this.handleSubmenuFocusOut=e=>{e.relatedTarget&&this.submenu?.contains(e.relatedTarget)||this.submenu?.togglePopover(!1)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Z.menuitemcheckbox:this.checked=!this.checked;break;case Z.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case Z.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const e=this.getBoundingClientRect(),t=this.submenu.getBoundingClientRect(),r=getComputedStyle(this).direction==="ltr"?"right":"left";if(e.width+t.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(e[r]+t.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${e.width-8}px 0`}}}disabledChanged(e,t){this.elementInternals.ariaDisabled=t?`${t}`:null,$(this.elementInternals,"disabled",t)}roleChanged(e,t){this.elementInternals.role=t??Z.menuitem}checkedChanged(e,t){const r=this.role!==Z.menuitem;this.elementInternals.ariaChecked=r?`${!!t}`:null,$(this.elementInternals,"checked",r?t:!1),this.$fastController.isConnected&&this.$emit("change",t,{bubbles:!0})}slottedSubmenuChanged(e,t){this.submenu?.removeEventListener("toggle",this.handleToggle),this.submenu?.removeEventListener("focusout",this.handleSubmenuFocusOut),t.length?(this.submenu=t[0],this.submenu.toggleAttribute("popover",!0),this.submenu.setAttribute("focusgroup","none"),this.submenu.addEventListener("toggle",this.handleToggle),this.submenu.addEventListener("focusout",this.handleSubmenuFocusOut),this.elementInternals.ariaHasPopup="menu",$(this.elementInternals,"submenu",!0)):(this.elementInternals.ariaHasPopup=null,$(this.elementInternals,"submenu",!1))}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??Z.menuitem,this.elementInternals.ariaChecked=this.role!==Z.menuitem?`${!!this.checked}`:null,et(this)}}eo([a({mode:"boolean"})],ot.prototype,"disabled",2),eo([a],ot.prototype,"role",2),eo([a({mode:"boolean"})],ot.prototype,"checked",2),eo([a({mode:"boolean"})],ot.prototype,"hidden",2),eo([g],ot.prototype,"slottedSubmenu",2),eo([g],ot.prototype,"submenu",2),dt(ot,lt),ot.define(Xg);const Jg=`${h.prefix}-menu-list`,Zg=p`${w("flex")} :host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${C};border:1px solid ${K};border-radius:${S};box-shadow:${wi};padding:4px;row-gap:2px}`;function Qg(){return b`<template focusgroup=menu><slot ${G("items")}></slot></template>`}const ef=Qg(),tf={name:Jg,registry:h.registry,styles:Zg,template:ef};var Eo={INFERRED_ROLE:"data-fg-ir",ITEM:"data-fg-item",AUTHOR_TABINDEX:"data-fg-ati",SEGMENT:"data-fg-seg",SEGMENT_START:"data-fg-segs"},Ri={TOOLBAR:"toolbar",TABLIST:"tablist",RADIOGROUP:"radiogroup",LISTBOX:"listbox",MENU:"menu",MENUBAR:"menubar",NONE:"none"};function ji(o,e){return o.contains(e)}function of(){return"focusgroup"in(globalThis?.HTMLElement?.prototype??{})||"focusGroup"in(globalThis?.HTMLElement?.prototype??{})}function rf(o,e,t){const r="forward",i="backward",n="block",s="inline";if(nf(o.composedPath()[0]))return o.key==="Tab"?o.shiftKey?i:r:null;if(o.shiftKey||o.ctrlKey||o.metaKey)return null;const{writingMode:l,direction:u}=window.getComputedStyle(e),d=!l.startsWith("horizontal-"),c=u==="rtl",f=d?n:s,k=d?s:n,A=d?l.endsWith("-rl")!==c:c,j=d&&c,se={ArrowUp:{axis:k,dir:j?r:i},ArrowDown:{axis:k,dir:j?i:r},ArrowLeft:{axis:f,dir:A?r:i},ArrowRight:{axis:f,dir:A?i:r},Home:{dir:"start"},End:{dir:"end"}}[o.key];return!se||t&&se.axis&&se.axis!==t?null:se.dir}function nf(o){return o?.nodeType===Node.ELEMENT_NODE&&(["INPUT","TEXTAREA","SELECT"].includes(o.nodeName)&&!["checkbox","radio"].includes(o.getAttribute("type"))||o.isContentEditable||["AUDIO","VIDEO"].includes(o.nodeName)&&o.hasAttribute("controls")||["IFRAME","OBJECT"].includes(o.nodeName))}globalThis.__FOCUSGROUP_POLYFILL__??={o:new Set,b:!1};var sf=globalThis.__FOCUSGROUP_POLYFILL__,af=sf.o;function qi(){for(const o of af)o.takeRecords()}var Er=class{#t;#e;#s=Ri.NONE;#u=void 0;#c=!1;#a=!0;#r;#o=null;#i=!1;#l=null;#p=new AbortController;#d;#h;constructor(o,e,t={}){if(of()||!o)return;this.#t=o,this.#e=e,this.#d=t.decorateOwner,this.#h=t.decorateItem,this.#g(t.definition),this.#d?.(this.#t,this.#s),this.#f();const r={signal:this.#p.signal};this.#t.addEventListener("keydown",this.#$.bind(this),r),this.#t.addEventListener("focusin",this.#y.bind(this),r),this.#t.addEventListener("focusout",this.#x.bind(this),r)}disconnect(){this.#n(),this.#p.abort(),this.#e?.disconnect?.(),this.#t=null}update(o={}){if(this.#t){if(o.definition!==void 0&&(this.#g(o.definition),this.#d?.(this.#t,this.#s)),o.authorTabindexChanges)for(const e of o.authorTabindexChanges)e.setAttribute(Eo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none");this.#b(),this.#f()}}#g(o){this.#s=o?.behavior??Ri.NONE,this.#c=o?.wrap??!1,this.#u=o?.axis,this.#a=o?.memory??!0,this.#a||(this.#o=null)}#f(){if(this.#s===Ri.NONE){this.#b();return}this.#e.decorate?.();for(const{element:e,segmentBoundary:t}of this.#e.items())this.#h?.(e,this.#s),e.setAttribute(Eo.AUTHOR_TABINDEX,e.getAttribute("tabindex")??"none"),e.tabIndex=t?0:-1;(!this.#o?.isConnected||!(this.#e.isItem?.(this.#o)??this.#e.contains(this.#o)))&&(this.#o=null);const o=this.#o??this.#e.start??this.#e.first?.()??null;o&&(o.tabIndex=0,this.#r=o,this.#n(),this.#m(o)),this.#e.flush?.()}#b(){this.#n();let o=!1;for(const{element:e}of this.#e.items()){o=!0,this.#h?.(e,null);const t=e.getAttribute(Eo.AUTHOR_TABINDEX);t&&(t==="none"?e.removeAttribute("tabindex"):e.setAttribute("tabindex",t),e.removeAttribute(Eo.AUTHOR_TABINDEX))}this.#e.undecorate?.(),o&&this.#e.flush?.()}#$(o){const e=o.composedPath()[0];if(o.defaultPrevented||e===this.#t||!this.#e.contains(e))return;let t;switch(rf(o,e,this.#u)){case"start":t=this.#e.first();break;case"end":t=this.#e.last();break;case"forward":t=this.#e.next(e),!t&&this.#c&&(t=this.#e.first());break;case"backward":t=this.#e.previous(e),!t&&this.#c&&(t=this.#e.last());break}t&&t!==e&&(this.#v(e,t,!0),this.#o=t,o.preventDefault())}#y(o){const e=o.composedPath()[0];if(e===this.#t&&this.#i&&(!o.relatedTarget||!ji(this.#t,o.relatedTarget))){const r=this.#o||this.#r;this.#n(),r&&r.focus(),o.stopPropagation();return}if(!this.#e.contains(e))return;this.#i&&this.#n();const t=this.#o;if(this.#o=e,t!==e&&e.tabIndex<0){const r=t??this.#r;r&&this.#v(r,e)}}#x(o){if(!o.relatedTarget||!ji(this.#t,o.relatedTarget)){const r=this.#a?this.#o||this.#r:this.#r;r&&this.#m(r)}if(o.relatedTarget&&ji(this.#t,o.relatedTarget)||this.#a||!this.#r)return;const e=this.#o;this.#o=null;const t=this.#e.start??this.#e.first?.()??null;if(e!==this.#r||t!==this.#r){for(const{element:r,segmentBoundary:i}of this.#e.items())r.tabIndex=i?0:-1;t&&(t.tabIndex=0,this.#r=t),this.#e.flush?.()}}#m(o){const e=(o.assignedSlot??o).getRootNode(),t=e instanceof ShadowRoot&&e.host.hasAttribute(Eo.AUTHOR_TABINDEX);this.#i||!t||(this.#l=this.#t.getAttribute("tabindex"),this.#t.tabIndex=0,this.#i=!0,qi())}#n(){this.#i&&(this.#l!==null?this.#t.setAttribute("tabindex",this.#l):this.#t.removeAttribute("tabindex"),this.#i=!1,this.#l=null,this.#e.flush?.(),qi())}#v(o,e,t=!1){e.tabIndex=0,t&&e.focus(),o.tabIndex=this.#e.sameSegment?.(o,e)??!0?-1:0,this.#n(),qi()}};class Nr{constructor(e,t){this.getItems=e,this.getStart=t}get start(){return this.getStart?.()??null}first(){return this.getItems()[0]??null}last(){const e=this.getItems();return e[e.length-1]??null}next(e){const t=this.getItems(),r=t.indexOf(e);return r===-1?null:t[r+1]??null}previous(e){const t=this.getItems(),r=t.indexOf(e);return r<=0?null:t[r-1]??null}*items(){for(const e of this.getItems())yield{element:e}}contains(e){return this.getItems().includes(e)}}var lf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,df=(o,e,t,r)=>{for(var i=r>1?void 0:r?cf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&lf(e,t,i),i};const Wi=class hn extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.isNestedMenu=()=>this.parentElement!==null&&pn(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.changedMenuItemHandler=e=>{if(this.menuChildren===void 0)return;const t=e.target,r=this.menuChildren.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let n=r-1;n>=0;--n){const s=this.menuChildren[n],l=s.role;if(l===Z.menuitemradio&&(s.checked=!1),l==="separator")break}const i=this.menuChildren.length-1;for(let n=r+1;n<=i;++n){const s=this.menuChildren[n],l=s.role;if(l===Z.menuitemradio&&(s.checked=!1),l==="separator")break}}},this.elementInternals.role="menu"}itemsChanged(e,t){this.$fastController.isConnected&&this.menuChildren!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),!this.slot&&this.isNestedMenu()&&(this.slot="submenu"),O.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),Array.from(this.children).forEach(e=>{m.getNotifier(e).unsubscribe(this,"hidden")}),this.menuChildren=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.menuItems?.find(e=>!e.disabled)?.focus()}static elementIndent(e){const t=e.role,r=e.querySelector("[slot=start]");return t&&t!==Z.menuitem?r?2:1:r?1:0}setItems(){const e=Array.from(this.children);e.forEach(r=>{m.getNotifier(r).subscribe(this,"hidden")}),this.menuChildren=e.filter(r=>!r.hasAttribute("hidden")),this.menuItems=this.menuChildren?.filter(this.isMenuItemElement);const t=this.menuItems?.reduce((r,i)=>{const n=hn.elementIndent(i);return Math.max(r,n)},0);this.menuItems?.forEach(r=>{r.dataset.indent=`${t}`})}handleChange(e,t){t==="hidden"&&this.setItems()}isMenuItemElement(e){return Vg(e)||pn(e)&&!!e.role&&e.role in hn.focusableElementRoles}};Wi.focusableElementRoles=Z,df([g],Wi.prototype,"items",2);let hf=Wi;class uf extends hf{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}setItems(){super.setItems(),this.fgItems??(this.fgItems=new Nr(()=>this.menuItems?.filter(e=>!e.hidden)??[])),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"menu",axis:"block",wrap:!0}})}}uf.define(tf);const pf=`${h.prefix}-menu`,gf=p`${w("inline-block")} ::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;inset:unset;inset-block-start:anchor(outside);inset-inline-start:anchor(self-start);position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position:fixed;z-index:1}:host([split]) ::slotted([popover]){inset-inline-start:unset;inset-inline-end:anchor(self-end)}::slotted([popover]:not(:popover-open)){display:none}:host([split]){display:inline-flex}:host([split]) ::slotted([slot='primary-action']){border-inline-end:${I} solid ${qe};border-start-end-radius:0;border-end-end-radius:0}:host([split]) ::slotted([slot='primary-action']:focus-visible){z-index:1}:host([split]) ::slotted([slot='primary-action'][appearance='primary']){border-inline-end:${I} solid white}:host([split]) ::slotted([slot='trigger']){border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}`;function ff(){return b`<template @keydown=${(o,e)=>o.menuKeydownHandler(e.event)}><slot name=primary-action ${z("primaryAction")}></slot><slot name=trigger ${G({property:"slottedTriggers",filter:po()})}></slot><slot ${G({property:"slottedMenuList",filter:po()})}></slot></template>`}const bf=ff(),mf={name:pf,registry:h.registry,styles:gf,template:bf};var vf=Object.defineProperty,$f=Object.getOwnPropertyDescriptor,ft=(o,e,t,r)=>{for(var i=r>1?void 0:r?$f(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&vf(e,t,i),i};class rt extends x{constructor(){super(...arguments),this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=e=>{e?.target instanceof ot&&(e.target.getAttribute("role")===Z.menuitemcheckbox||e.target.getAttribute("role")===Z.menuitemradio)||(this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu))},this.openMenu=e=>{this._menuList?.togglePopover(!0),e&&this.openOnContext&&e.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=e=>{if(e.type==="toggle"&&e.newState){const t=e.newState==="open";this._trigger?.setAttribute("aria-expanded",`${t}`),this._menuList?.setAttribute("focusgroup",t?"menu":"none"),this._open=t,this._open&&this.focusMenuList()}},this.triggerKeydownHandler=e=>{if(e.defaultPrevented)return;switch(e.key){case" ":case"Enter":e.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=e=>{e.composedPath().some(t=>t===this._trigger||t===this._menuList)||this.closeMenu()}}slottedMenuListChanged(e,t){this._menuListAbortController?.abort(),t?.length&&(this._menuList=t[0],this._menuList.popover=this.openOnContext?"manual":"",this.addMenuListListeners())}slottedTriggersChanged(e,t){if(this._triggerAbortController?.abort(),t?.length){const r=t[0];this._trigger=r,this._trigger?.isConnected&&(this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this.addTriggerListeners())}}connectedCallback(){super.connectedCallback(),this.setComponent()}disconnectedCallback(){super.disconnectedCallback(),this._triggerAbortController?.abort(),this._menuListAbortController?.abort()}setComponent(){}focusMenuList(){O.enqueue(()=>{this._menuList.focus()})}focusTrigger(){O.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(e,t){this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}persistOnItemClickChanged(e,t){this._menuList&&(this._menuListAbortController?.abort(),this.addMenuListListeners())}openOnContextChanged(e,t){t?this._menuList?.setAttribute("popover","manual"):this._menuList?.setAttribute("popover",""),this._trigger&&(this._triggerAbortController?.abort(),this.addTriggerListeners())}closeOnScrollChanged(e,t){t?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addTriggerListeners(){this._triggerAbortController=new AbortController;const{signal:e}=this._triggerAbortController;this._trigger?.addEventListener("keydown",this.triggerKeydownHandler,{signal:e}),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu,{signal:e}):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu,{signal:e}),document.addEventListener("click",this.documentClickHandler,{signal:e})):this._trigger?.addEventListener("click",this.toggleMenu,{signal:e})}addMenuListListeners(){this._menuListAbortController=new AbortController;const{signal:e}=this._menuListAbortController;this._menuList?.addEventListener("toggle",this.toggleHandler,{signal:e}),this.persistOnItemClick||this._menuList?.addEventListener("change",this.closeMenu,{signal:e})}menuKeydownHandler(e){if(e.defaultPrevented)return;switch(e.key){case"Escape":e.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case"Tab":if(this._open&&this.closeMenu(),e.shiftKey&&e.composedPath()[0]!==this._trigger&&e.composedPath()[0].assignedSlot!==this.primaryAction)this.focusTrigger();else if(e.shiftKey)return!0;default:return!0}}}ft([a({attribute:"open-on-hover",mode:"boolean"})],rt.prototype,"openOnHover",2),ft([a({attribute:"open-on-context",mode:"boolean"})],rt.prototype,"openOnContext",2),ft([a({attribute:"close-on-scroll",mode:"boolean"})],rt.prototype,"closeOnScroll",2),ft([a({attribute:"persist-on-item-click",mode:"boolean"})],rt.prototype,"persistOnItemClick",2),ft([a({mode:"boolean"})],rt.prototype,"split",2),ft([g],rt.prototype,"slottedMenuList",2),ft([g],rt.prototype,"slottedTriggers",2),ft([g],rt.prototype,"primaryAction",2),rt.define(mf);const yf=`${h.prefix}-message-bar`,xf=p`:host{display:grid;box-sizing:border-box;font-family:${v};font-size:${M};line-height:${q};width:100%;background:${bo};color:${X};border:1px solid ${qe};padding-inline:${re};border-radius:${S};min-height:36px;align-items:center;grid-template:'icon body actions dismiss'/auto 1fr auto auto;contain:layout style paint}:host([shape='square']){border-radius:0}:host([intent='success']){background-color:${zs};border-color:${yc}}:host([intent='warning']){background-color:${Os};border-color:${As}}:host([intent='error']){background-color:${Ss};border-color:${Is}}:host([layout='multiline']){grid-template-areas:'icon body dismiss' 'actions actions actions';grid-template-columns:auto 1fr auto;grid-template-rows:auto auto 1fr;padding-block:${br};padding-inline:${re}}.content{grid-area:body;max-width:520px;padding-block:${br};padding-inline:0}:host([layout='multiline']) .content{padding:0}::slotted([slot='icon']){display:flex;grid-area:icon;flex-direction:column;align-items:center;color:${X};margin-inline-end:${Ne}}:host([layout='multiline']) ::slotted([slot='icon']){align-items:start;height:100%}::slotted([slot='dismiss']){grid-area:dismiss}.actions{grid-area:actions;display:flex;justify-self:end;margin-inline-end:${Ne};gap:${Ne}}:host([layout='multiline']) .actions{margin-block-start:${br};margin-inline-end:0}:host([layout='multiline']) ::slotted([slot='dismiss']){align-items:start;height:100%;padding-block-start:${ie}}::slotted(*){font-size:inherit}`;function kf(){return b`<slot name=icon></slot><div class=content><slot></slot></div><div class=actions><slot name=actions></slot></div><slot name=dismiss></slot>`}const wf=kf(),Sf={name:yf,registry:h.registry,styles:xf,template:wf};var Cf=Object.defineProperty,If=Object.getOwnPropertyDescriptor,Ui=(o,e,t,r)=>{for(var i=r>1?void 0:r?If(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cf(e,t,i),i};class Fr extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.dismissMessageBar=()=>{this.$emit("dismiss",{})},this.elementInternals.role="status"}}Ui([a],Fr.prototype,"shape",2),Ui([a],Fr.prototype,"layout",2),Ui([a],Fr.prototype,"intent",2),Fr.define(Sf);const Pf=p`${w("inline-grid")} :host{-webkit-tap-highlight-color:transparent;${ua} align-items:center;background-color:${C};border-radius:${S};box-sizing:border-box;color:${Be};column-gap:${oe};cursor:pointer;grid-template-areas:'indicator start content';grid-template-columns:auto auto 1fr;min-height:32px;padding:${we};text-align:start}.content{grid-area:content;line-height:1}::slotted([slot='start']){grid-area:start}:host(:hover){background-color:${rr};color:${Dt}}:host(:active){background-color:${bi};color:${Ht}}:host(:disabled){background-color:${C};color:${T};cursor:default}.checkmark-16-filled{fill:currentColor;width:16px}slot[name='checked-indicator']>*,::slotted([slot='checked-indicator']){aspect-ratio:1;flex:0 0 auto;grid-area:indicator;visibility:hidden}:host(${Ni}) :is(slot[name='checked-indicator']>*,::slotted([slot='checked-indicator'])){visibility:visible}:host(${Kt}) .checkmark-16-filled,:host(:not(${Kt})) .checkmark-12-regular{display:none}:host(${Kt}) .checkmark-12-regular{background-color:${C};border-radius:${Ee};border:${I} solid ${je};box-sizing:border-box;cursor:pointer;fill:transparent;position:relative;visibility:visible;width:16px}:host(${Kt}${Ni}) .checkmark-12-regular{background-color:${St};border-color:${at};fill:${wt}}:host(:disabled${Kt}) .checkmark-12-regular{border-color:${xe}}:host(:disabled${Kt}${Ni}) .checkmark-12-regular{background-color:${st}}:host(${du}){border:${ge} solid ${le}}@supports (selector(:host(:has(*)))){:host(:has([slot='start']:not([size='16']))){column-gap:${we}}}:host(${pu}){column-gap:${we};grid-template-areas:'indicator start content' 'indicator start description'}::slotted([slot='description']){color:${X};grid-area:description;${pa}}@media (forced-colors:active){:host(:disabled){color:GrayText}}`,zf=b.partial('<svg aria-hidden=true class=checkmark-16-filled viewBox="0 0 16 16"><path d="M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032"/></svg> <svg aria-hidden=true class=checkmark-12-regular viewBox="0 0 12 12"><path d="M9.854 3.146a.5.5 0 0 1 0 .708l-4.5 4.5a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L5 7.293l4.146-4.147a.5.5 0 0 1 .708 0"/></svg>');function _f(o={}){return b`<slot name=checked-indicator>${fe(o.checkedIndicator)}</slot>${We(o)}<div class=content part=content><slot ${G({property:"freeformOutputs",filter:po("output")})}></slot></div><div class=description part=description><slot name=description ${G("descriptionSlot")}></slot></div>`}const Of=_f({checkedIndicator:zf}),Tf={name:Gp,registry:h.registry,styles:Pf,template:Of};var Af=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,ve=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Af(e,t,i),i};class ne extends x{constructor(){super(),this.active=!1,this.id=Xe("option-"),this.initialValue="",this.multiple=!1,this.elementInternals=this.attachInternals(),this._value=this.initialValue,this.elementInternals.role="option"}activeChanged(e,t){$(this.elementInternals,"active",t)}currentSelectedChanged(e,t){this.selected=!!t}defaultSelectedChanged(e,t){this.selected=!!t}descriptionSlotChanged(e,t){$(this.elementInternals,"description",!!t?.length)}disabledChanged(e,t){this.elementInternals.ariaDisabled=this.disabled?"true":"false",$(this.elementInternals,"disabled",this.disabled),this.setFormValue(!this.disabled&&this.selected?this.value:null)}disabledAttributeChanged(e,t){this.disabled=!!t}initialValueChanged(e,t){this._value=t}multipleChanged(e,t){$(this.elementInternals,"multiple",t),this.selected=!1}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get selected(){return m.track(this,"selected"),!!this.currentSelected}set selected(e){this.currentSelected=e,O.enqueue(()=>{this.elementInternals&&(this.setFormValue(e?this.value:null),this.elementInternals.ariaSelected=e?"true":"false",$(this.elementInternals,"selected",e))}),m.notify(this,"selected")}get text(){return this.freeform?this.value.replace(/\s+/g," ").trim():(this.textAttribute??this.textContent)?.replace(/\s+/g," ").trim()??""}get value(){return m.track(this,"value"),this._value??this.text}set value(e){this._value=e,this.$fastController.isConnected&&(this.setFormValue(this.selected?e:null),this.freeformOutputs?.forEach(t=>{t.value=e}),m.notify(this,"value"))}connectedCallback(){super.connectedCallback(),this.freeform&&(this.value="",this.hidden=!0,this.selected=!1)}setFormValue(e,t){if(this.disabled){this.elementInternals.setFormValue(null);return}this.elementInternals.setFormValue(e,e??t)}toggleSelected(e=!this.selected){this.selected=e}}ne.formAssociated=!0,ve([g],ne.prototype,"active",2),ve([a({attribute:"current-selected",mode:"boolean"})],ne.prototype,"currentSelected",2),ve([a({attribute:"selected",mode:"boolean"})],ne.prototype,"defaultSelected",2),ve([g],ne.prototype,"descriptionSlot",2),ve([g],ne.prototype,"disabled",2),ve([a({attribute:"disabled",mode:"boolean"})],ne.prototype,"disabledAttribute",2),ve([a({attribute:"form"})],ne.prototype,"formAttribute",2),ve([a({mode:"boolean"})],ne.prototype,"freeform",2),ve([a({attribute:"id"})],ne.prototype,"id",2),ve([a({attribute:"value",mode:"fromView"})],ne.prototype,"initialValue",2),ve([g],ne.prototype,"multiple",2),ve([a],ne.prototype,"name",2),ve([g],ne.prototype,"start",2),ve([a({attribute:"text",mode:"fromView"})],ne.prototype,"textAttribute",2),ne.define(Tf);const Ef={success:"success",warning:"warning",error:"error"},Nf=`${h.prefix}-progress-bar`,Ff=p`${w("block")} :host{width:100%;height:2px;overflow-x:hidden;background-color:${mo};border-radius:${S};contain:content;@supports (width:attr(value type(<number>))){--max:attr(max type(<number>),100);--min:attr(min type(<number>),0);--value:attr(value type(<number>),0);--indicator-width:clamp(0%,calc((var(--value) - var(--min))/(var(--max) - var(--min)) * 100%),100%)}}:host([thickness='large']){height:4px}:host([shape='square']){border-radius:${lr}}.indicator{background-color:${St};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out;@supports (width:attr(value type(<number>))){width:var(--indicator-width)}}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient( to right,${mo} 0%,${he} 50%,${mo} 100% );animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host([validation-state='error']) .indicator{background-color:${Cs}}:host([validation-state='warning']) .indicator{background-color:${Ts}}:host([validation-state='success']) .indicator{background-color:${_s}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}@media (forced-colors:active){:host{background-color:CanvasText}.indicator,:host(:is([validation-state='success'],[validation-state='warning'],[validation-state='error'])) .indicator{background-color:Highlight}}`;function Mf(){return b`<div class=indicator part=indicator ${z("indicator")}></div>`}const Lf=Mf(),Df={name:Nf,registry:h.registry,styles:Ff,template:Lf};var Hf=Object.defineProperty,Vf=Object.getOwnPropertyDescriptor,No=(o,e,t,r)=>{for(var i=r>1?void 0:r?Vf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Hf(e,t,i),i};class to extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}indicatorChanged(){this.setIndicatorWidth()}validationStateChanged(e,t){Tt(this.elementInternals,e,t,Ef)}valueChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueNow=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}minChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMin=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}maxChanged(e,t){this.elementInternals&&(this.elementInternals.ariaValueMax=typeof t=="number"?`${t}`:null),this.setIndicatorWidth()}setIndicatorWidth(){CSS.supports("width: attr(value type(<number>))")||O.enqueue(()=>{if(typeof this.value!="number"){this.indicator?.style.removeProperty("width");return}const e=this.min??0,t=this.max??100,r=this.value??0,i=t-e,n=i===0?0:Math.fround((r-e)/i*100);this.indicator?.style.setProperty("width",`${n}%`)})}}No([g],to.prototype,"indicator",2),No([a({attribute:"validation-state"})],to.prototype,"validationState",2),No([a({converter:te})],to.prototype,"value",2),No([a({converter:te})],to.prototype,"min",2),No([a({converter:te})],to.prototype,"max",2);var Rf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,ya=(o,e,t,r)=>{for(var i=r>1?void 0:r?jf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Rf(e,t,i),i};class Gi extends to{}ya([a],Gi.prototype,"thickness",2),ya([a],Gi.prototype,"shape",2),Gi.define(Df);const xa=Se,qf=`${h.prefix}-radio-group`,Wf=p`${w("flex")} :host{-webkit-tap-highlight-color:transparent;cursor:pointer;gap:${Ii}}:host([orientation='vertical']){flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']){flex-direction:row}::slotted(*){color:${X}}::slotted(:hover){color:${Be}}::slotted(:active){color:${_}}::slotted(${me}){color:${T}}::slotted(${y}){color:${_}}:host([slot='input']){margin:${ie} ${Ne}}`;function Uf(){return b`<template focusgroup="radiogroup wrap" @disabled=${(o,e)=>o.disabledRadioHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @click=${(o,e)=>o.clickHandler(e.event)} @focusin=${(o,e)=>o.focusinHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)}><slot ${G("slottedRadios")}></slot></template>`}const Gf=Uf(),Xf={name:qf,registry:h.registry,styles:Wf,template:Gf};function Kf(o,e="-radio"){return un(e)(o)}const Yf=`${h.prefix}-radio`;var Jf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,bt=(o,e,t,r)=>{for(var i=r>1?void 0:r?Zf(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Jf(e,t,i),i};class Ke extends x{constructor(){super(),this.isNavigating=!1,this.dirtyState=!1,this.elementInternals=this.attachInternals(),this.elementInternals.role="radiogroup",this.elementInternals.ariaOrientation=this.orientation??xa.horizontal}checkedIndexChanged(e,t){this.enabledRadios&&this.checkRadio(t)}disabledChanged(e,t){this.radios&&(this.checkedIndex=-1,this.radios?.forEach(r=>{r.disabled=!!r.disabledAttribute||!!this.disabled}))}initialValueChanged(e,t){this.value=t??""}nameChanged(e,t){this.isConnected&&t&&this.radios?.forEach(r=>{r.name=this.name})}orientationChanged(e,t){this.elementInternals.ariaOrientation=this.orientation??xa.horizontal}radiosChanged(e,t){const r=t?.length;if(!r)return;!this.name&&t.every(s=>s.name===t[0].name)&&(this.name=t[0].name);const i=this.enabledRadios.findLastIndex(s=>s.initialChecked);t.forEach((s,l)=>{s.ariaPosInSet=`${l+1}`,s.ariaSetSize=`${r}`,this.initialValue&&!this.dirtyState?s.checked=s.value===this.initialValue:s.checked=l===i,s.name=this.name??s.name,s.disabled=!!this.disabled||!!s.disabledAttribute,s.toggleAttribute("focusgroupstart",s.checked&&!s.disabled)}),!this.dirtyState&&this.initialValue&&(this.value=this.initialValue),(!this.value||this.value&&typeof this.checkedIndex!="number"&&i>=0)&&(this.checkedIndex=i);const n=t.map(s=>s.id).join(" ").trim();n&&this.setAttribute("aria-owns",n)}requiredChanged(e,t){this.elementInternals.ariaRequired=t?"true":null,this.setValidity()}slottedRadiosChanged(e,t){O.enqueue(()=>{this.radios=[...this.querySelectorAll("*")].filter(r=>Kf(r))})}get enabledRadios(){return this.disabled?[]:this.radios?.filter(e=>!e.disabled)??[]}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(this.enabledRadios?.[0]?.validationMessage)return this.enabledRadios[0].validationMessage;if(!this._validationFallbackMessage){const e=document.createElement("input");e.type="radio",e.required=!0,e.checked=!1,this._validationFallbackMessage=e.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return m.notify(this,"value"),this.enabledRadios.find(e=>e.checked)?.value??null}set value(e){const t=this.enabledRadios.findIndex(r=>r.value===e);this.checkedIndex=t,this.$fastController.isConnected&&(this.setFormValue(e),this.setValidity()),m.track(this,"value")}changeHandler(e){if(this===e.target)return!0;this.dirtyState=!0;const t=this.enabledRadios.indexOf(e.target);return this.checkRadio(t),this.radios?.filter(r=>r.disabled)?.forEach(r=>{r.checked=!1}),!0}checkRadio(e=this.checkedIndex,t=!1){let r=this.checkedIndex;this.enabledRadios.forEach((i,n)=>{const s=n===e;i.checked=s,s&&(r=n,t&&i.$emit("change"))}),this.checkedIndex=r,this.setFormValue(this.value),this.setValidity()}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return this===e.target&&this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus(),!0}focus(){this.enabledRadios[Math.max(0,this.checkedIndex)]?.focus()}formResetCallback(){this.dirtyState=!1,this.checkedIndex=-1,this.setFormValue(this.value),this.setValidity()}focusinHandler(e){if(!this.disabled&&(this.isNavigating||this.value)){this.radios?.forEach(r=>{r.disabled&&r.checked&&(r.checked=!1)});const t=this.enabledRadios.indexOf(e.target);t>-1&&this.checkRadio(t,!0),this.isNavigating=!1}return!0}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.isNavigating=!0;break;case" ":this.checkRadio();break}return!0}disabledRadioHandler(e){e.detail===!0&&e.target.checked&&(this.checkedIndex=-1)}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,r){if(this.$fastController.isConnected){if(!(this.required&&!this.value&&!this.disabled)){this.enabledRadios?.forEach(l=>{l.elementInternals.setValidity({})});return}const n={valueMissing:!0,...e},s=t??this.validationMessage;this.enabledRadios?.forEach((l,u)=>{u===0?l.elementInternals.setValidity(n,s,l):l.elementInternals.setValidity({})})}}}Ke.formAssociated=!0,bt([g],Ke.prototype,"checkedIndex",2),bt([a({attribute:"disabled",mode:"boolean"})],Ke.prototype,"disabled",2),bt([a({attribute:"value",mode:"fromView"})],Ke.prototype,"initialValue",2),bt([a],Ke.prototype,"name",2),bt([a],Ke.prototype,"orientation",2),bt([g],Ke.prototype,"radios",2),bt([a({mode:"boolean"})],Ke.prototype,"required",2),bt([g],Ke.prototype,"slottedRadios",2);class Qf extends Ke{disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}radiosChanged(e,t){super.radiosChanged(e,t),this.fgItems??(this.fgItems=new Nr(()=>this.enabledRadios?.filter(r=>!r.hidden)??[],()=>this.enabledRadios?.find(r=>r.checked)??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"radiogroup",axis:void 0,wrap:!0}})}}Qf.define(Xf);const eb=p`${w("inline-flex")} :host{--size:16px;aspect-ratio:1;background-color:${C};border:${I} solid ${je};border-radius:${ue};box-sizing:border-box;position:relative;width:var(--size)}:host([size='large']){--size:20px}.checked-indicator{aspect-ratio:1;border-radius:${ue};color:${wt};inset:0;margin:auto;position:absolute;width:calc(var(--size) * 0.625)}:host(:not([slot='input']))::after{content:''/'';position:absolute;display:block;inset:-8px;box-sizing:border-box;outline:none;border:${ge} solid ${K};border-radius:${S}}:host(:not([slot='input']):focus-visible)::after{border-color:${le}}:host(:hover){border-color:${Ct}}:host(${y}){border-color:${at}}:host(${y}) .checked-indicator{background-color:${St}}:host(${y}:hover) .checked-indicator{background-color:${Vt}}:host(:active){border-color:${It}}:host(${y}:active) .checked-indicator{background-color:${Rt}}:host(:focus-visible){outline:none}:host(${me}){background-color:${st};border-color:${xe}}:host(${y}${me}) .checked-indicator{background-color:${xe}}@media (forced-colors:active){:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not(${me}):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.checked-indicator{color:HighlightText}:host(${y}) .checked-indicator{background-color:FieldText}:host(${y}:not(${me}):hover) .checked-indicator{background-color:Highlight}:host(${me}){border-color:GrayText;color:GrayText}:host(${me}${y}) .checked-indicator{background-color:GrayText}}`,tb=b.partial("<span part=checked-indicator class=checked-indicator role=presentation></span>");function ob(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=checked-indicator>${fe(o.checkedIndicator)}</slot></template>`}const rb=ob({checkedIndicator:tb}),ib={name:Yf,registry:h.registry,styles:eb,template:rb};class nb extends Fe{constructor(){super(),this.elementInternals.role="radio"}disabledChanged(e,t){super.disabledChanged(e,t),this.$emit("disabled",t,{bubbles:!0})}requiredChanged(){}setFormValue(){}setValidity(){this.elementInternals.setValidity({})}toggleChecked(e=!0){super.toggleChecked(e)}}nb.define(ib);const sb=`${h.prefix}-rating-display`;var ab=Object.defineProperty,lb=Object.getOwnPropertyDescriptor,Fo=(o,e,t,r)=>{for(var i=r>1?void 0:r?lb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ab(e,t,i),i};const cb=CSS.supports("width: attr(value type(<number>))"),oo={max:"--_attr-max",value:"--_attr-value",maskImageFilled:"--_mask-image-filled",maskImageOutlined:"--_mask-image-outlined"};function Mr(o){return o?["data:image/svg+xml",encodeURIComponent(o.replace(/\n/g,"").replace(/\s+/g," "))].join(","):""}class ro extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.defaultCustomIconViewBox="0 0 20 20",this.elementInternals.role="img",this.numberFormatter=new Intl.NumberFormat}iconSlotChanged(){this.handleSlotChange()}maxChanged(){this.setCustomPropertyValue("max")}valueChanged(){this.setCustomPropertyValue("value")}connectedCallback(){super.connectedCallback(),this.setCustomPropertyValue("value"),this.setCustomPropertyValue("max")}get formattedCount(){return this.count?this.numberFormatter.format(this.count):""}handleSlotChange(){const e=this.iconSlot.assignedElements()?.find(t=>t.nodeName.toLowerCase()==="svg");this.renderSlottedIcon(e??null)}renderSlottedIcon(e){if(!e){this.display.style.removeProperty(oo.maskImageFilled),this.display.style.removeProperty(oo.maskImageOutlined);return}const t=e.innerHTML,r=e.getAttribute("viewBox")??this.iconViewBox??this.defaultCustomIconViewBox,i=`
488
2
  <svg
489
- viewBox="${i}"
3
+ viewBox="${r}"
490
4
  xmlns="http://www.w3.org/2000/svg"
491
- >${t}</svg>`,s=`
5
+ >${t}</svg>`,n=`
492
6
  <svg
493
- viewBox="${i}"
7
+ viewBox="${r}"
494
8
  xmlns="http://www.w3.org/2000/svg"
495
9
  fill="none"
496
10
  stroke="black"
497
11
  stroke-width="2"
498
- >${t}</svg>`;this.display.style.setProperty(oo.maskImageFilled,`url(${Fi(r)})`),this.display.style.setProperty(oo.maskImageOutlined,`url(${Fi(s)})`)}setCustomPropertyValue(e){if(!this.display||tg)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(oo[e]):this.display.style.setProperty(oo[e],`${t}`)}}Ni([a({converter:re})],Ao.prototype,"count",2),Ni([a({attribute:"icon-view-box"})],Ao.prototype,"iconViewBox",2),Ni([a({converter:re})],Ao.prototype,"max",2),Ni([a({converter:re})],Ao.prototype,"value",2);var og=Object.defineProperty,ig=Object.getOwnPropertyDescriptor,qr=(o,e,t,i)=>{for(var r=i>1?void 0:i?ig(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&og(e,t,r),r};class Mi extends Ao{constructor(){super(...arguments),this.compact=!1}}qr([a],Mi.prototype,"color",2),qr([a],Mi.prototype,"size",2),qr([a({mode:"boolean"})],Mi.prototype,"compact",2);const $a='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',rg=`
499
- <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${$a}</svg>
500
- `,sg=`
12
+ >${t}</svg>`;this.display.style.setProperty(oo.maskImageFilled,`url(${Mr(i)})`),this.display.style.setProperty(oo.maskImageOutlined,`url(${Mr(n)})`)}setCustomPropertyValue(e){requestAnimationFrame(()=>{if(!this.display||cb)return;const t=this[e];typeof t!="number"||Number.isNaN(t)?this.display.style.removeProperty(oo[e]):this.display.style.setProperty(oo[e],`${t}`)})}}Fo([g],ro.prototype,"iconSlot",2),Fo([a({converter:te})],ro.prototype,"count",2),Fo([a({attribute:"icon-view-box"})],ro.prototype,"iconViewBox",2),Fo([a({converter:te})],ro.prototype,"max",2),Fo([a({converter:te})],ro.prototype,"value",2);const ka='<path d="M5.28347 1.54605C5.57692 0.951448 6.42479 0.951449 6.71825 1.54605L7.82997 3.79866L10.3159 4.15988C10.9721 4.25523 11.2341 5.0616 10.7592 5.52443L8.96043 7.27785L9.38507 9.7537C9.49716 10.4072 8.81122 10.9056 8.22431 10.597L6.00086 9.4281L3.7774 10.597C3.19049 10.9056 2.50455 10.4072 2.61664 9.7537L3.04128 7.27784L1.24246 5.52443C0.767651 5.0616 1.02966 4.25523 1.68584 4.15988L4.17174 3.79865L5.28347 1.54605Z" />',db=`
13
+ <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">${ka}</svg>
14
+ `,hb=`
501
15
  <svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
502
16
  fill="none" stroke="black" stroke-width="2"
503
- >${$a}</svg>
504
- `;function ng(){return b`<div ${_("display")} class="display" aria-hidden="true"></div><slot name="icon" ${_("iconSlot")} @slotchange="${o=>o.handleSlotChange()}"></slot><slot name="value"><span class="value-label" aria-hidden="true">${o=>o.value}</span></slot><slot name="count"><span class="count-label" aria-hidden="true">${o=>o.formattedCount}</span></slot>`}const ag=ng(),lg=u`
505
- ${k("inline-flex")}
506
-
507
- :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${pc};--_icon-color-empty:${Bn};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Fi(rg)});--_mask-image-outlined:url(${Fi(sg)});--_mask-position-x:left;align-items:center;color:${T};font-family:${v};font-size:${F};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${E}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${T};--_icon-color-empty:${yo}}:host([color='brand']){--_icon-color-value:${ni};--_icon-color-empty:${fn}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2) / 2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${H});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc(
508
- var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment)
509
- );background-image:linear-gradient(
510
- var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px)
511
- );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${H} / 2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${ne};font-weight:${D}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${H}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${ee}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${ne}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${H}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${ee}}`.withBehaviors(X(u`
512
- .display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1 / 1 / -1 / -1;mask:inherit;mask-image:var(--_mask-image-outlined)}`)),cg=Mi.compose({name:`${p.prefix}-rating-display`,template:ag,styles:lg});cg.define(p.registry);const dg=be,hg={singleValue:"single-value"};function ya(o,e,t,i){let r=dr(0,1,(o-e)/(t-e));return i===De.rtl&&(r=1-r),r}var ug=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?pg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ug(e,t,r),r};class W extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=De.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=hg.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.disabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,i=this.thumb.getBoundingClientRect().width,r=this.orientation===be.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(r)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.disabled){const t=e!==null?window.addEventListener:window.removeEventListener,i=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),i("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const r=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const s=this.orientation===be.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(s)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??dg.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=u`
513
- :host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,i){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,i)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),i=dr(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(i!==e){this.value=i;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??be.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),this.direction=ei(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),m.getNotifier(this).subscribe(this,"max"),m.getNotifier(this).subscribe(this,"min"),m.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"max"),m.getNotifier(this).unsubscribe(this,"min"),m.getNotifier(this).unsubscribe(this,"step")}increment(){const e=this.direction!==De.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),i=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=i}decrement(){const e=this.direction!==De.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),i=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=i}handleKeydown(e){if(this.disabled)return!0;switch(e.key){case mo:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==be.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case go:e.preventDefault(),this.value=this.direction!==De.rtl&&this.orientation!==be.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case po:case bo:e.shiftKey||(e.preventDefault(),this.increment());break;case uo:case ho:e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=ya(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===be.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=ya(e,this.orientation===be.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===be.vertical?this.trackHeight:this.trackWidth,this.orientation===be.vertical?void 0:this.direction),i=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(i)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const i=Math.round(t/this.stepAsNumber),r=t-i*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=r>=Number(this.stepAsNumber)/2?t-r+Number(this.stepAsNumber):t-r,t+this.minAsNumber}setDisabledSideEffect(e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0)}}W.formAssociated=!0,oe([a],W.prototype,"size",2),oe([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),oe([g],W.prototype,"direction",2),oe([g],W.prototype,"isDragging",2),oe([g],W.prototype,"position",2),oe([g],W.prototype,"trackWidth",2),oe([g],W.prototype,"trackMinWidth",2),oe([g],W.prototype,"trackHeight",2),oe([g],W.prototype,"trackLeft",2),oe([g],W.prototype,"trackMinHeight",2),oe([g],W.prototype,"valueTextFormatter",2),oe([a({mode:"boolean"})],W.prototype,"disabled",2),oe([a({converter:lr})],W.prototype,"min",2),oe([a({converter:lr})],W.prototype,"max",2),oe([a({converter:lr})],W.prototype,"step",2),oe([a],W.prototype,"orientation",2),oe([a],W.prototype,"mode",2);const bg=u`
514
- ${k("inline-grid")}
515
-
516
- :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${ft};--track-color:${Ve};--slider-direction:90deg;--border-radius:${C};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Ht}}:host(:active){--rail-color:${Vt}}:host(:disabled){--rail-color:${S};--track-color:${it}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Be}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${me};outline:1px solid ${di}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
517
- var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
518
- );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
519
- var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${I} calc(var(--step-rate) - 1px),${I} var(--step-rate)
520
- )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${ve};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${I} inset;border:calc(var(--thumb-size) * 0.05) solid ${Le};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(X(u`
521
- .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));function gg(o={}){return b`<template @pointerdown="${(e,t)=>e.handlePointerDown(t.event)}" @keydown="${(e,t)=>e.handleKeydown(t.event)}"><div ${_("track")} part="track-container" class="track" style="${e=>e.position}"></div><div ${_("thumb")} part="thumb-container" class="thumb-container" style="${e=>e.position}" @pointerdown="${(e,t)=>e.handleThumbPointerDown(t.event)}"><slot name="thumb">${ge(o.thumb)}</slot></div></template>`}const fg=gg({thumb:'<div class="thumb"></div>'}),mg=W.compose({name:`${p.prefix}-slider`,template:fg,styles:bg});mg.define(p.registry);class vg extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var $g=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,xa=(o,e,t,i)=>{for(var r=i>1?void 0:i?yg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$g(e,t,r),r};class Wr extends vg{}xa([a],Wr.prototype,"size",2),xa([a],Wr.prototype,"appearance",2);const xg=u`
522
- ${k("inline-flex")}
523
-
524
- :host{--duration:1.5s;--indicatorSize:${se};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ye};--size:20px}:host([size='extra-small']){--indicatorSize:${ye};--size:24px}:host([size='small']){--indicatorSize:${ye};--size:28px}:host([size='large']){--indicatorSize:${se};--size:36px}:host([size='extra-large']){--indicatorSize:${se};--size:40px}:host([size='huge']){--indicatorSize:${kr};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${xi}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${vn};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${mn};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${Zl}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}`.withBehaviors(X(u`
525
- .background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}`)),kg=b`<slot name="indicator"><div class="background"></div><div class="progress"><div class="spinner"><div class="start"><div class="indicator"></div></div><div class="end"><div class="indicator"></div></div></div></div></slot>`,wg=Wr.compose({name:`${p.prefix}-spinner`,template:kg,styles:xg});wg.define(p.registry);class Cg extends Pe{constructor(){super(),this.elementInternals.role="switch"}}function Sg(o={}){return b`<template @click="${(e,t)=>e.clickHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}"><slot name="switch">${ge(o.switch)}</slot></template>`}const Ig=Sg({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Pg=u`
526
- ${k("inline-flex")}
527
-
528
- :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${H};width:40px;height:20px;background-color:${fe};border:1px solid ${Ve};border-radius:${ve}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${mt}}:host(:active){border-color:${vt}}:host(:disabled),:host([readonly]){border:1px solid ${Ce};background-color:none;pointer:default}:host(${x}){background:${ft};border-color:${ft}}:host(${x}:hover){background:${Ht};border-color:${Ht}}:host(${x}:active){background:${Vt};border-color:${Vt}}:host(${x}:disabled){background:${it};border-color:${Ce}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${J};transition-duration:${$i};transition-timing-function:${xi};transition-property:margin-inline-start}:host(${x}) .checked-indicator{background-color:${bt};margin-inline-start:calc(100% - 14px)}:host(${x}:hover) .checked-indicator{background:${Ll}}:host(${x}:active) .checked-indicator{background:${jl}}:host(:hover) .checked-indicator{background-color:${Ol}}:host(:active) .checked-indicator{background-color:${_l}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${S}}:host(${x}:disabled) .checked-indicator{background:${S}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${U};outline:${ye} solid ${U};outline-offset:1px;box-shadow:${fi},0 0 0 2px ${me}}`.withBehaviors(X(u`
529
- :host{border-color:InactiveBorder}:host(${x}),:host(${x}:active),:host(${x}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${x}) .checked-indicator,:host(${x}:hover) .checked-indicator,:host(${x}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${x}:disabled) .checked-indicator{background-color:GrayText}`)),zg=Cg.compose({name:`${p.prefix}-switch`,template:Ig,styles:Pg});zg.define(p.registry);class Tg extends ${}function Bg(){return b`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Og=Bg(),_g=u`
530
- ${k("block")}
531
-
532
- :host{box-sizing:border-box;padding:${le} ${ae}}`,Ag=Tg.compose({name:`${p.prefix}-tab-panel`,template:Og,styles:_g});Ag.define(p.registry);var Eg=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,Fg=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ng(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Eg(e,t,r),r};class Gr extends ${connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
533
- :host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Fg([a({mode:"boolean"})],Gr.prototype,"disabled",2),Ue(Gr,Xe);function Mg(o={}){return b`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">${He(o)}<span class="tab-content"><slot></slot></span>${tt(o)}</template>`}const Dg=Mg({}),Hg=u`
534
- ${k("inline-flex")}
535
-
536
- :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${E};font-family:${v};font-size:${B};color:${Ie};fill:currentcolor;grid-row:1;padding:${le} ${ae};border-radius:${C};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${T};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${E};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${$t};border-radius:${ve};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Lt};border-radius:${ve};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${S}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${S};color:${S}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Be};box-shadow:0 0 0 3px ${me};outline:1px solid ${di}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}`.withBehaviors(X(u`
537
- :host([aria-selected='true'])::after{background-color:Highlight}`)),Vg=Gr.compose({name:`${p.prefix}-tab`,template:Dg,styles:Hg});Vg.define(p.registry);const Lg={subtle:"subtle",transparent:"transparent"},Di=be;var jg=Object.defineProperty,Rg=Object.getOwnPropertyDescriptor,Hi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jg(e,t,r),r};class Eo extends ${constructor(){super(...arguments),this.orientation=Di.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case uo:e.preventDefault(),this.adjustBackward(e);break;case po:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case bo:e.preventDefault(),this.adjustBackward(e);break;case ho:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((r,s)=>{if(r.slot==="tab"){const n=this.activeTabIndex===s&&this.isFocusableElement(r),c=this.tabIds[s],h=this.tabpanelIds[s];r.setAttribute("id",c),r.setAttribute("aria-selected",n?"true":"false"),r.setAttribute("aria-controls",h),r.addEventListener("click",this.handleTabClick),r.addEventListener("keydown",this.handleTabKeyDown),r.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=r,this.activeid=c)}r.style[e]="",r.style[t]="",r.style[i]=`${s+1}`,this.isHorizontal()?r.classList.remove("vertical"):r.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute("id",r),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute("id")??`panel-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Di.horizontal}adjust(e){const t=this.tabs.filter(n=>this.isFocusableElement(n)),i=t.indexOf(this.activetab),r=dr(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.moveToTabByIndex(this.tabs,s)}adjustForward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i<t.length&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else{if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}}adjustBackward(e){const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;)if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else i-1<0?i=t.length-1:i-=1}moveToTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Hi([a],Eo.prototype,"orientation",2),Hi([a],Eo.prototype,"activeid",2),Hi([g],Eo.prototype,"tabs",2),Hi([g],Eo.prototype,"tabpanels",2);var qg=Object.defineProperty,Wg=Object.getOwnPropertyDescriptor,Xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wg(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&qg(e,t,r),r};class No extends Eo{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Lg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===Di.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===Di.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}getTabPositionData(e){const t=e.getBoundingClientRect(),i=this.getBoundingClientRect();return{x:t.x-i.x,y:t.y-i.y,height:t.height,width:t.width}}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,t=this.activetab||e[0];this.activeTabData=this.getTabPositionData(t),this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=u`
538
- :host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=u`
539
- :host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(e,t){if(e&&this.tabs){const i=this.tabs.find(r=>r.id===e);i&&(this.previousActiveTabData=this.getTabPositionData(i))}super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}Xr([a],No.prototype,"appearance",2),Xr([a({mode:"boolean"})],No.prototype,"disabled",2),Xr([a],No.prototype,"size",2),Ue(No,Xe);function Gg(o={}){return b` ${He(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${G("tabs")}></slot></div>${tt(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${G("tabpanels")}></slot></div>`}const Xg=Gg({}),Ug=u`
540
- ${k("grid")}
541
-
542
- :host{box-sizing:border-box;font-family:${v};font-size:${B};line-height:${E};color:${Ie};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${S}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${C}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${S}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='vertical']) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${xo};color:${ur};fill:${sn}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${gt};fill:${gt};color:${T}}:host([size='small']) ::slotted(fluent-tab){font-size:${B};line-height:${E};padding:${je} ${ee}}:host([size='large']) ::slotted(fluent-tab){font-size:${he};line-height:${$e};padding:${mi} ${ae}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Rn};transition-timing-function:${Pr}}:host ::slotted(fluent-tab)::after{height:${se};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${se};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${se};border-radius:${ve};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${se};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${se}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${je};padding-bottom:${je}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Rt};padding-bottom:${Rt}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${V};padding-bottom:${V}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ee};left:${ee}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${ae};left:${ae}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${je};bottom:${je}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${V};bottom:${V}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Wt};bottom:${Wt}}`,Kg=No.compose({name:`${p.prefix}-tabs`,template:Xg,styles:Ug});Kg.define(p.registry);const Yg=o=>o.getAttribute("aria-disabled")==="true",Qg=o=>o.hasAttribute("hidden"),Vi=o=>!Yg(o)&&!Qg(o);function Zg(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Jg={subtle:"subtle",transparent:"transparent"},zt=be;var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Fo=(o,e,t,i)=>{for(var r=i>1?void 0:i?tf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ef(e,t,r),r};class io extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=zt.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.handleTabClick=e=>{const t=e.currentTarget;t.nodeType===Node.ELEMENT_NODE&&Vi(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=ei(this);switch(e.key){case uo:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?-1:1);break;case po:if(!this.isHorizontal())return;e.preventDefault(),this.adjust(t==="ltr"?1:-1);break;case bo:if(this.isHorizontal())return;e.preventDefault(),this.adjust(-1);break;case ho:if(this.isHorizontal())return;e.preventDefault(),this.adjust(1);break;case mo:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case go:e.preventDefault(),this.adjust(this.tabs.filter(i=>Vi(i)).length-this.activeTabIndex-1);break}}}disabledChanged(e,t){y(this.elementInternals,"disabled",t),this.$fastController.isConnected&&this.setTabs()}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??zt.horizontal,wt(this.elementInternals,e,t,zt),this.$fastController.isConnected&&this.setTabs()}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length>0){if(this.prevActiveTabIndex=this.tabs.findIndex(i=>i.id===e),this.setTabs(),e){const i=this.tabs[this.prevActiveTabIndex],r=this.tabPanelMap.get(i);r&&(r.hidden=!0)}if(t&&this.activetab){const i=this.tabPanelMap.get(this.activetab);i&&(i.hidden=!1)}e!==t&&this.change()}}slottedTabsChanged(e,t){this.tabs=t?.filter(i=>Zg(i))??[]}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length>0){this.tabIds=this.getTabIds(),this.setTabs();for(const e of this.tabs){const t=e.getAttribute("aria-controls")??"",r=this.getRootNode().getElementById(t);t&&r&&(r.role??(r.role="tabpanel"),r.hidden=this.activeid!==e.id,this.tabPanelMap.set(e,r))}}}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){this.activeTabIndex=this.getActiveIndex();const e=this.tabs.some(t=>!!t.querySelector("[slot='start']"));this.tabs.forEach((t,i)=>{if(t.slot==="tab"){const r=this.activeTabIndex===i&&Vi(t),s=this.tabIds[i];console.log("disabled",this.disabled),t.disabled||(this.disabled?t.setAttribute("aria-disabled","true"):t.removeAttribute("aria-disabled")),t.setAttribute("id",s),t.setAttribute("aria-selected",r?"true":"false"),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",r&&!this.disabled?"0":"-1"),r&&(this.activetab=t,this.activeid=s),e&&this.orientation===zt.vertical&&t.setAttribute("data-hasIndent","")}})}getTabIds(){return this.tabs.map(e=>e.getAttribute("id")??`tab-${Ft()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab())}isHorizontal(){return this.orientation===zt.horizontal}adjust(e){const t=this.tabs.filter(n=>Vi(n)),i=t.indexOf(this.activetab),r=yl(0,t.length-1,i+e),s=this.tabs.indexOf(t[r]);s>-1&&this.activateTabByIndex(this.tabs,s)}activateTabByIndex(e,t){const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.activeTabIndex=this.getActiveIndex()}}Fo([a({mode:"boolean"})],io.prototype,"disabled",2),Fo([a],io.prototype,"orientation",2),Fo([a],io.prototype,"activeid",2),Fo([g],io.prototype,"slottedTabs",2),Fo([g],io.prototype,"tabs",2);var of=Object.defineProperty,rf=Object.getOwnPropertyDescriptor,ka=(o,e,t,i)=>{for(var r=i>1?void 0:i?rf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&of(e,t,r),r};class Ur extends io{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Jg.transparent}calculateAnimationProperties(e){this.activeTabOffset=this.getTabPosition(e),this.activeTabScale=this.getTabScale(e)}getTabPosition(e){return this.orientation===zt.horizontal?this.previousActiveTabData.x-(e.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(e.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(e){return this.orientation===zt.horizontal?this.previousActiveTabData.width/e.getBoundingClientRect().width:this.previousActiveTabData.height/e.getBoundingClientRect().height}applyUpdatedCSSValues(e){this.calculateAnimationProperties(e),this.setAnimationVars()}animationLoop(e){e.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(e),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(e),e.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const e=this.tabs,i=(this.activetab||e[0])?.getBoundingClientRect(),r=this.getBoundingClientRect();this.activeTabData={x:i.x-r.x,y:i.y-r.y,height:i.height,width:i.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setAnimationVars(){this.style.setProperty("--tabIndicatorOffset",`${this.activeTabOffset}px`),this.style.setProperty("--tabIndicatorScale",`${this.activeTabScale}`)}activeidChanged(e,t){super.activeidChanged(e,t),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}}ka([a],Ur.prototype,"appearance",2),ka([a],Ur.prototype,"size",2);const sf=b`<template role="tablist"><slot name="tab" ${G("slottedTabs")}></slot></template>`,nf=u`
543
- ${k("flex")}
544
-
545
- :host{--tabPaddingInline:inherit;--tabPaddingBlock:inherit;--tabIndicatorInsetInline:0;--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Ie};flex-direction:row}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'][data-animate='true'])::after{transition-property:transform;transition-duration:${Rn};transition-timing-function:${Pr}}:host ::slotted([slot='tab'])::after{height:${se};margin-block-start:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${se};height:unset;margin-block-start:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted([slot='tab'])::before{height:${se};border-radius:${ve};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${S}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${se};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${se};margin-inline-end:auto;transform-origin:top}:host(:where([size='small'],[size='large'])) ::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${je};--tabPaddingInline:${ee};font-size:${B};line-height:${E}}:host([size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${mi};--tabPaddingInline:${ae};font-size:${he};line-height:${$e}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host ::slotted([slot='tab']){--tabIndicatorInsetInline:${ae}}:host([size='small']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ee}}:host([size='large']) ::slotted([slot='tab']){--tabIndicatorInsetInline:${ae}}:host([orientation='vertical']) ::slotted([slot='tab']){padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([slot='tab']){--tabPaddingBlock:${V}}:host([orientation='vertical'][size='small']) ::slotted([slot='tab']){--tabPaddingBlock:${Rt}}:host([orientation='vertical'][size='large']) ::slotted([slot='tab']){--tabPaddingBlock:${V}}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([orientation='vertical']){--tabIndicatorInsetBlock:${V}}:host([orientation='vertical'][size='small']){--tabIndicatorInsetBlock:${je}}:host([orientation='vertical'][size='large']){--tabIndicatorInsetBlock:${Wt}}:host([disabled]){cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${S}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${S}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${S}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${xo};color:${ur};fill:${sn}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${gt};fill:${gt};color:${T}}`,af=Ur.compose({name:`${p.prefix}-tablist`,template:sf,styles:nf});af.define(p.registry);const lf={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Li={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};var cf=Object.defineProperty,df=Object.getOwnPropertyDescriptor,de=(o,e,t,i)=>{for(var r=i>1?void 0:i?df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&cf(e,t,r),r};class Y extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Li.none,this.spellcheck=!1}defaultSlottedNodesChanged(){const e=this.getContent();this.defaultValue=e,this.value=e}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(on),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),y(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals.ariaReadOnly=`${!!this.readOnly}`}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){wt(this.elementInternals,e,t,Li,"resize-"),y(this.elementInternals,"resize",Un(Li,t)&&t!==Li.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),this.setDefaultValue(),this.maybeCreateAutoSizerEl(),this.bindEvents(),this.observeControlElAttrs()}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,i){this.$fastController.isConnected&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl.validity,t??this.controlEl.validationMessage,i??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}setDefaultValue(){this.defaultValue=this.innerHTML.trim()||this.preConnectControlEl.defaultValue||"",this.value=this.preConnectControlEl.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null}bindEvents(){this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}getContent(){return this.defaultSlottedNodes.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}observeControlElAttrs(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]})}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){y(this.elementInternals,"user-invalid",!this.validity.valid),y(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.shadowRoot.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const i=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(i)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}Y.formAssociated=!0,de([g],Y.prototype,"defaultSlottedNodes",2),de([g],Y.prototype,"labelSlottedNodes",2),de([a],Y.prototype,"autocomplete",2),de([a({attribute:"auto-resize",mode:"boolean"})],Y.prototype,"autoResize",2),de([a({attribute:"dirname"})],Y.prototype,"dirName",2),de([a({mode:"boolean"})],Y.prototype,"disabled",2),de([a({attribute:"display-shadow",mode:"boolean"})],Y.prototype,"displayShadow",2),de([a({attribute:"form"})],Y.prototype,"initialForm",2),de([a({attribute:"maxlength",converter:re})],Y.prototype,"maxLength",2),de([a({attribute:"minlength",converter:re})],Y.prototype,"minLength",2),de([a],Y.prototype,"name",2),de([a],Y.prototype,"placeholder",2),de([a({attribute:"readonly",mode:"boolean"})],Y.prototype,"readOnly",2),de([a({mode:"boolean"})],Y.prototype,"required",2),de([a({mode:"fromView"})],Y.prototype,"resize",2),de([a({mode:"boolean"})],Y.prototype,"spellcheck",2);var hf=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,Kr=(o,e,t,i)=>{for(var r=i>1?void 0:i?uf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&hf(e,t,r),r};class ji extends Y{constructor(){super(...arguments),this.appearance=lf.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(i=>{i.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}Kr([a({mode:"fromView"})],ji.prototype,"appearance",2),Kr([a({mode:"boolean"})],ji.prototype,"block",2),Kr([a],ji.prototype,"size",2);const pf=u`
546
- ${k("inline-block")}
547
-
548
- :host{--font-size:${B};--line-height:${E};--padding-inline:${ae};--padding-block:${je};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${P};--control-padding-inline:${H};--color:${T};--background-color:${I};--border-color:${Le};--border-block-end-color:${Ve};--placeholder-color:${pr};--focus-indicator-color:${$t};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${A};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Lt};--border-block-end-color:${mt}}:host(:active){--border-color:${ko};--border-block-end-color:${vt}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${F};--line-height:${q};--min-block-size:40px;--padding-block:${qt};--padding-inline:${ee};--control-padding-inline:${H}}:host([size='large']){--font-size:${he};--line-height:${$e};--min-block-size:64px;--padding-block:${V};--padding-inline:${le};--control-padding-inline:${ee}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${$o};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${yr}}:host(${ru}){--border-color:${mr};--border-block-end-color:${mr}}:host(:disabled){--color:${S};--background-color:${fe};--border-color:${Ce};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${S};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${C};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr / 1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${C} ${C};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${C});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${xt};transition-duration:${Sr};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${kt}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${ne}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1 / -1;grid-row:1 / -1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${bt};background-color:${ln}}`.withBehaviors(X(u`
549
- :host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}`));function bf(){return b`<template><label ${_("labelEl")} for="control" part="label"><slot name="label" ${G("labelSlottedNodes")}></slot></label><div class="root" part="root"><textarea ${_("controlEl")} id="control" class="control" part="control" ?required="${o=>o.required}" ?disabled="${o=>o.disabled}" ?readonly="${o=>o.readOnly}" ?spellcheck="${o=>o.spellcheck}" autocomplete="${o=>o.autocomplete}" maxlength="${o=>o.maxLength}" minlength="${o=>o.minLength}" placeholder="${o=>o.placeholder}" @change="${o=>o.handleControlChange()}" @select="${o=>o.handleControlSelect()}" @input="${o=>o.handleControlInput()}"></textarea></div><div hidden><slot ${G("defaultSlottedNodes")}></slot></div></template>`}const gf=bf(),ff=ji.compose({name:`${p.prefix}-textarea`,template:gf,styles:pf,shadowOptions:{delegatesFocus:!0}});ff.define(p.registry);const mf={email:"email",password:"password",tel:"tel",text:"text",url:"url"},vf=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var $f=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,N=(o,e,t,i)=>{for(var r=i>1?void 0:i?yf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&$f(e,t,r),r};class O extends ${constructor(){super(...arguments),this.type=mf.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){this.$fastController.isConnected&&(this.controlLabel.hidden=!t?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){this.setValidity()}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.$fastController.isConnected&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(e){return e.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(e){return e.target===this&&this.control?.focus(),!0}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(r=>r.getAttribute("type")==="submit");if(t){t.click();return}e.filter(r=>vf.includes(r.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}setValidity(e,t,i){if(this.$fastController.isConnected&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,i??this.control)}}}O.formAssociated=!0,N([a],O.prototype,"autocomplete",2),N([a({mode:"boolean"})],O.prototype,"autofocus",2),N([a({attribute:"current-value"})],O.prototype,"currentValue",2),N([g],O.prototype,"defaultSlottedNodes",2),N([a],O.prototype,"dirname",2),N([a({mode:"boolean"})],O.prototype,"disabled",2),N([a({attribute:"form"})],O.prototype,"formAttribute",2),N([a({attribute:"value",mode:"fromView"})],O.prototype,"initialValue",2),N([a],O.prototype,"list",2),N([a({converter:re})],O.prototype,"maxlength",2),N([a({converter:re})],O.prototype,"minlength",2),N([a({mode:"boolean"})],O.prototype,"multiple",2),N([a],O.prototype,"name",2),N([a],O.prototype,"pattern",2),N([a],O.prototype,"placeholder",2),N([a({attribute:"readonly",mode:"boolean"})],O.prototype,"readOnly",2),N([a({mode:"boolean"})],O.prototype,"required",2),N([a({converter:re})],O.prototype,"size",2),N([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],O.prototype,"spellcheck",2),N([a],O.prototype,"type",2),N([g],O.prototype,"control",2),N([g],O.prototype,"controlLabel",2);var xf=Object.defineProperty,kf=Object.getOwnPropertyDescriptor,wa=(o,e,t,i)=>{for(var r=i>1?void 0:i?kf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xf(e,t,r),r};class Ri extends O{}wa([a],Ri.prototype,"appearance",2),wa([a({attribute:"control-size"})],Ri.prototype,"controlSize",2),Ue(Ri,Xe);const wf=u`
550
- ${k("block")}
551
-
552
- :host{font-family:${v};font-size:${B};font-weight:${A};line-height:${E};max-width:400px}.label{display:flex;color:${T};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${ne}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${I};border:${P} solid ${Le};border-bottom-color:${Ve};border-radius:${C};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${H};padding:0 ${ae};position:relative;width:100%}:has(.control:user-invalid){border-color:${mr}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${C});border-radius:0 0 ${C} ${C};border-bottom:2px solid ${$t};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Sr};transition-delay:${xt}}.control{width:100%;height:100%;box-sizing:border-box;color:${T};border-radius:${C};background:${fe};font-family:${v};font-weight:${A};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${pr}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${J};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${H}}:host ::slotted([slot='end']){padding-left:${H};gap:${ne}}:host(:hover) .root{border-color:${Lt};border-bottom-color:${mt}}:host(:active) .root{border-color:${ko}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${$i};transition-delay:${kt}}:host(:focus-within:active) .root:after{border-bottom-color:${$n}}:host([appearance='outline']:focus-within) .root{border:${P} solid ${Le}}:host(:focus-within) .control{color:${T}}:host([disabled]) .root{background:${fe};border:${P} solid ${Ce}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${S}}::selection{color:${bt};background-color:${ln}}:host([control-size='small']) .control{font-size:${F};font-weight:${A};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${H};padding:0 ${ee}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${he}}:host([control-size='large']) .control{font-size:${he};font-weight:${A};line-height:${$e}}:host([control-size='large']) .root{height:40px;gap:${Oe};padding:0 ${le}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${ui}}:host([appearance='underline']) .root{background:${fe};border:0;border-radius:0;border-bottom:${P} solid ${Ve}}:host([appearance='underline']:hover) .root{border-bottom-color:${mt}}:host([appearance='underline']:active) .root{border-bottom-color:${vt}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${vt}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${Ce}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${P} solid ${U};box-shadow:${yr}}:host([appearance='filled-lighter']) .root{background:${I}}:host([appearance='filled-darker']) .root{background:${$o}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${fr}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${fr};background:${$o}}`;function Cf(o={}){return b`<template @beforeinput="${(e,t)=>e.beforeinputHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}"><label part="label" for="control" class="label" ${_("controlLabel")}><slot ${G({property:"defaultSlottedNodes",filter:on})}></slot></label><div class="root" part="root">${He(o)}<input class="control" part="control" id="control" @change="${(e,t)=>e.changeHandler(t.event)}" @input="${(e,t)=>e.inputHandler(t.event)}" ?autofocus="${e=>e.autofocus}" autocomplete="${e=>e.autocomplete}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" ?multiple="${e=>e.multiple}" name="${e=>e.name}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" spellcheck="${e=>e.spellcheck}" type="${e=>e.type}" value="${e=>e.initialValue}" ${_("control")} />${tt(o)}</div></template>`}const Sf=Cf(),If=Ri.compose({name:`${p.prefix}-text-input`,template:Sf,styles:wf,shadowOptions:{delegatesFocus:!0}});If.define(p.registry);var Pf=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,We=(o,e,t,i)=>{for(var r=i>1?void 0:i?zf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pf(e,t,r),r};class _e extends ${constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}We([a({mode:"boolean"})],_e.prototype,"nowrap",2),We([a({mode:"boolean"})],_e.prototype,"truncate",2),We([a({mode:"boolean"})],_e.prototype,"italic",2),We([a({mode:"boolean"})],_e.prototype,"underline",2),We([a({mode:"boolean"})],_e.prototype,"strikethrough",2),We([a({mode:"boolean"})],_e.prototype,"block",2),We([a],_e.prototype,"size",2),We([a],_e.prototype,"font",2),We([a],_e.prototype,"weight",2),We([a],_e.prototype,"align",2);const Tf=u`
553
- ${k("inline")}
554
-
555
- :host{font-family:${v};font-size:${B};line-height:${E};font-weight:${A};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${Co};line-height:${bi}}:host([size='200']){font-size:${F};line-height:${q}}:host([size='400']){font-size:${he};line-height:${$e}}:host([size='500']){font-size:${jt};line-height:${gi}}:host([size='600']){font-size:${ui};line-height:${Mn}}:host([size='700']){font-size:${An};line-height:${Dn}}:host([size='800']){font-size:${En};line-height:${Hn}}:host([size='900']){font-size:${Nn};line-height:${Vn}}:host([size='1000']){font-size:${Fn};line-height:${Ln}}:host([font='monospace']){font-family:${md}}:host([font='numeric']){font-family:${vd}}:host([weight='medium']){font-weight:${$d}}:host([weight='semibold']){font-weight:${D}}:host([weight='bold']){font-weight:${pi}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Bf=b`<slot></slot>`,Of=_e.compose({name:`${p.prefix}-text`,template:Bf,styles:Tf});Of.define(p.registry);var _f=Object.defineProperty,Af=Object.getOwnPropertyDescriptor,Ca=(o,e,t,i)=>{for(var r=i>1?void 0:i?Af(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_f(e,t,r),r};class Yr extends Ye{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const e=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=e,y(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}Ca([a({mode:"boolean"})],Yr.prototype,"pressed",2),Ca([a({mode:"boolean"})],Yr.prototype,"mixed",2);const Ef=u`
556
- ${Ci}
557
-
558
- :host(${M}){border-color:${Le};background-color:${an};color:${T};border-width:${P}}:host(${M}:hover){border-color:${Lt};background-color:${ai}}:host(${M}:active){border-color:${ko};background-color:${br}}:host(${M}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${M}[appearance='primary']){background-color:${Yl};color:${Ke}}:host(${M}[appearance='primary']:hover){background-color:${pn}}:host(${M}[appearance='primary']:active){background-color:${bn}}:host(${M}[appearance='subtle']){border-color:transparent;background-color:${dn};color:${ii}}:host(${M}[appearance='subtle']:hover){background-color:${xo};color:${Mt}}:host(${M}[appearance='subtle']:active){background-color:${gt};color:${Dt}}:host(${M}[appearance='outline']),:host(${M}[appearance='transparent']){background-color:${hn}}:host(${M}[appearance='outline']:hover),:host(${M}[appearance='transparent']:hover){background-color:${li}}:host(${M}[appearance='outline']:active),:host(${M}[appearance='transparent']:active){background-color:${ci}}:host(${M}[appearance='transparent']){border-color:transparent;color:${Bl}}:host(${M}[appearance='transparent']:hover){color:${ri}}:host(${M}[appearance='transparent']:active){color:${si}}`.withBehaviors(X(u`
559
- :host(${M}),:host(
560
- ${M}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent'])
561
- ){background:SelectedItem;color:SelectedItemText}`)),Nf=Ar(),Ff=Yr.compose({name:`${p.prefix}-toggle-button`,template:Nf,styles:Ef});Ff.define(p.registry);var Mf=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,qi=(o,e,t,i)=>{for(var r=i>1?void 0:i?Df(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Mf(e,t,r),r};class Mo extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Ft("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.elementInternals.role="tooltip"}positioningChanged(){ti||this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),ti){Cl||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}Z.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){super.disconnectedCallback(),this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler)}showTooltip(e=this.defaultDelay){setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}setFallbackStyles(){if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,i]=this.positioning?.split("-")??[];i||((t==="above"||t==="below")&&(i="centerX"),(t==="before"||t==="after")&&(i="centerY"));const r={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},s=r[t]??r.above,n={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},c=n[i]??n.centerX;this.anchorPositioningStyleElement.textContent=`
17
+ >${ka}</svg>
18
+ `;function ub(){return b`<div ${z("display")} class=display aria-hidden=true></div><slot name=icon ${z("iconSlot")} @slotchange=${o=>o.handleSlotChange()}></slot><slot name=value><span class=value-label aria-hidden=true>${o=>o.value}</span></slot><slot name=count><span class=count-label aria-hidden=true>${o=>o.formattedCount}</span></slot>`}const pb=ub(),gb=p`${w("inline-flex")} :host{--_icon-size:16px;--_icon-gradient-degree:90deg;--_icon-color-value:${_c};--_icon-color-empty:${Es};--_default-value:0;--_default-max:5;--_mask-image-filled:url(${Mr(db)});--_mask-image-outlined:url(${Mr(hb)});--_mask-position-x:left;align-items:center;color:${_};font-family:${v};font-size:${M};line-height:${q};contain:layout style;user-select:none}:host(:dir(rtl)){--_icon-gradient-degree:-90deg;--_mask-position-x:right}:host([size='small']){--_icon-size:12px}:host([size='large']){--_icon-size:20px;font-size:${B};line-height:${L}}::slotted([slot='icon']){display:none}:host([color='neutral']){--_icon-color-value:${_};--_icon-color-empty:${mo}}:host([color='brand']){--_icon-color-value:${or};--_icon-color-empty:${ys}}@supports (width:attr(value type(<number>))){:host{--_attr-value:attr(value type(<number>));--_attr-max:attr(max type(<number>))}}:host([compact]) .display{--_max:1}.display{--_value:max(0,round(var(--_attr-value,var(--_default-value)) * 2)/2);--_max:max(1,var(--_attr-max,var(--_default-max)));--_mask-inline-size:calc(var(--_icon-size) + ${V});--_icon-gradient-stop-visual-adjustment:0px;--_icon-gradient-stop:calc( var(--_mask-inline-size) * var(--_value) - var(--_icon-gradient-stop-visual-adjustment) );background-image:linear-gradient( var(--_icon-gradient-degree),var(--_icon-color-value) var(--_icon-gradient-stop),var(--_icon-color-empty) calc(var(--_icon-gradient-stop) + 0.5px) );block-size:var(--_icon-size);display:grid;inline-size:calc(var(--_max) * var(--_mask-inline-size) - ${V}/2);mask-image:var(--_mask-image-filled);mask-repeat:repeat no-repeat;mask-size:var(--_mask-inline-size) var(--_icon-size);mask-position:var(--_mask-position-x) center}.value-label,::slotted([slot='value']){display:block;margin-inline-start:${oe};font-weight:${H}}:host([size='small']) .value-label,:host([size='small']) ::slotted([slot='value']){margin-inline-start:${V}}:host([size='large']) .value-label,:host([size='large']) ::slotted([slot='value']){margin-inline-start:${we}}:host(:not([count])) .count-label{display:none}.count-label::before,::slotted([slot='count'])::before{content:'·';margin-inline:${oe}}:host([size='small']) .count-label::before,:host([size='small']) ::slotted([slot='count'])::before{margin-inline:${V}}:host([size='large']) .count-label::before,:host([size='large']) ::slotted([slot='count'])::before{margin-inline:${we}}@media (forced-colors:active){.display{--_icon-color-value:CanvasText;--_icon-color-empty:Canvas;--_icon-gradient-stop-visual-adjustment:0.5px;forced-color-adjust:none}.display::before{background-color:var(--_icon-color-value);content:'';grid-area:1/1/-1/-1;mask:inherit;mask-image:var(--_mask-image-outlined)}}`,fb={name:sb,registry:h.registry,styles:gb,template:pb};var bb=Object.defineProperty,mb=Object.getOwnPropertyDescriptor,Xi=(o,e,t,r)=>{for(var i=r>1?void 0:r?mb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&bb(e,t,i),i};class Lr extends ro{constructor(){super(...arguments),this.compact=!1}}Xi([a],Lr.prototype,"color",2),Xi([a],Lr.prototype,"size",2),Xi([a({mode:"boolean"})],Lr.prototype,"compact",2),Lr.define(fb);const vb=Se,$b={singleValue:"single-value"},yb=`${h.prefix}-slider`,xb=p`${w("inline-grid")} :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size)/2);--track-size:4px;--track-overhang:calc(var(--track-size)/-2);--rail-color:${St};--track-color:${je};--slider-direction:90deg;--border-radius:${S};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${Vt}}:host(:active){--rail-color:${Rt}}:host(:disabled){--rail-color:${T};--track-color:${st}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host([size='small']){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${Ee}}:host([orientation='vertical']){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${le};outline:1px solid ${ar}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient( var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100% );border-radius:var(--border-radius);content:'';grid-row:1/-1;grid-column:1/-1}.track{position:relative;background-color:var(--track-color);grid-row:2/2;grid-column:2/2;forced-color-adjust:none;overflow:hidden}:host([orientation='vertical'])::after,:host([orientation='vertical']) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host([orientation='vertical']) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient( var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${C} calc(var(--step-rate) - 1px),${C} var(--step-rate) )}.thumb-container{position:absolute;grid-row:2/2;grid-column:2/2;transform:translateX(-50%);left:var(--slider-thumb)}:host([orientation='vertical']) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${ue};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${C} inset;border:calc(var(--thumb-size) * 0.05) solid ${qe};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}@media (forced-colors:active){.track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}}`;function kb(o={}){return b`<template @pointerdown=${(e,t)=>e.handlePointerDown(t.event)} @keydown=${(e,t)=>e.handleKeydown(t.event)}><div ${z("track")} part=track-container class=track style=${e=>e.position}></div><div ${z("thumb")} part=thumb-container class=thumb-container style=${e=>e.position} @pointerdown=${(e,t)=>e.handleThumbPointerDown(t.event)}><slot name=thumb>${fe(o.thumb)}</slot></div></template>`}const wb=kb({thumb:'<div class="thumb"></div>'}),Sb={name:yb,registry:h.registry,styles:xb,template:wb};function wa(o,e,t){return Math.min(Math.max(t,o),e)}const Ki={fromView(o){const e=parseFloat(o);return Number.isNaN(e)?"":e.toString()},toView(o){const e=parseFloat(o);return Number.isNaN(e)?void 0:e.toString()}};function Sa(o,e,t,r){let i=wa(0,1,(o-e)/(t-e));return r===gt.rtl&&(i=1-i),i}var Cb=Object.defineProperty,Ib=Object.getOwnPropertyDescriptor,Q=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ib(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Cb(e,t,i),i};class W extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.direction=gt.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>"",this.disabled=!1,this.min="",this.max="",this.step="",this.mode=$b.singleValue,this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.top,this.trackMinHeight=e.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.handleThumbPointerDown=e=>{if(this.isDisabled)return!0;const t=e!==null?window.addEventListener:window.removeEventListener;return t("pointerup",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove,{passive:!0}),t("touchmove",this.handlePointerMove,{passive:!0}),t("touchend",this.handleWindowPointerUp),this.isDragging=e!==null,!0},this.handlePointerMove=e=>{if(this.isDisabled||e.defaultPrevented)return;const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.thumb.getBoundingClientRect().width,i=this.orientation===Se.vertical?t.pageY-document.documentElement.scrollTop:t.pageX-document.documentElement.scrollLeft-this.trackLeft-r/2;this.value=`${this.calculateNewValue(i)}`},this.handleWindowPointerUp=()=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handlePointerDown(null),this.handleThumbPointerDown(null)},this.handlePointerDown=e=>{if(e===null||!this.isDisabled){const t=e!==null?window.addEventListener:window.removeEventListener,r=e!==null?document.addEventListener:document.removeEventListener;t("pointerup",this.handleWindowPointerUp),r("mouseleave",this.handleWindowPointerUp),t("pointermove",this.handlePointerMove);const i=this.thumb.getBoundingClientRect().width;if(e){this.setupTrackConstraints();const n=this.orientation===Se.vertical?e.pageY-document.documentElement.scrollTop:e.pageX-document.documentElement.scrollLeft-this.trackLeft-i/2;this.value=`${this.calculateNewValue(n)}`}}return!0},this.elementInternals.role="slider",this.elementInternals.ariaOrientation=this.orientation??vb.horizontal}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}handleChange(e,t){switch(t){case"min":case"max":this.setSliderPosition();case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const e=100/Math.floor((this.maxAsNumber-this.minAsNumber)/this.stepAsNumber);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=p`:host{--step-rate:${e}%}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}initialValueChanged(e,t){this.$fastController.isConnected?this.value=t:this._value=t}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage}get willValidate(){return this.elementInternals.willValidate}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.setValidity({customError:!!e},e)}setValidity(e,t,r){if(this.$fastController.isConnected){if(this.isDisabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity({customError:!!t,...e},t??this.validationMessage,r)}}get value(){return m.track(this,"value"),this._value?.toString()??""}set value(e){if(!this.$fastController.isConnected){this._value=e.toString();return}const t=parseFloat(e),r=wa(this.minAsNumber,this.maxAsNumber,this.convertToConstrainedValue(t)).toString();if(r!==e){this.value=r;return}this._value=e.toString(),this.elementInternals.ariaValueNow=this._value,this.elementInternals.ariaValueText=this.valueTextFormatter(this._value),this.setSliderPosition(),this.$emit("change"),this.setFormValue(e),m.notify(this,"value")}formResetCallback(){this.value=this.initialValue??this.midpoint}formDisabledCallback(e){this.setDisabledSideEffect(e)}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}directionChanged(){this.setSliderPosition()}get valueAsNumber(){return parseFloat(this.value)}set valueAsNumber(e){this.value=e.toString()}valueTextFormatterChanged(){typeof this.valueTextFormatter=="function"?this.elementInternals.ariaValueText=this.valueTextFormatter(this._value):this.elementInternals.ariaValueText=""}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get isDisabled(){return this.disabled||this.elementInternals?.ariaDisabled==="true"||this.isConnected&&this.matches(":disabled")}minChanged(){this.elementInternals.ariaValueMin=`${this.minAsNumber}`,this.$fastController.isConnected&&this.minAsNumber>this.valueAsNumber&&(this.value=this.min)}get minAsNumber(){if(this.min!==void 0){const e=parseFloat(this.min);if(!Number.isNaN(e))return e}return 0}maxChanged(){this.elementInternals.ariaValueMax=`${this.maxAsNumber}`,this.$fastController.isConnected&&this.maxAsNumber<this.valueAsNumber&&(this.value=this.max)}get maxAsNumber(){if(this.max!==void 0){const e=parseFloat(this.max);if(!Number.isNaN(e))return e}return 100}stepChanged(){this.updateStepMultiplier(),this.$fastController.isConnected&&(this.value=this._value)}get stepAsNumber(){if(this.step!==void 0){const e=parseFloat(this.step);if(!Number.isNaN(e)&&e>0)return e}return 1}orientationChanged(e,t){this.elementInternals.ariaOrientation=t??Se.horizontal,this.$fastController.isConnected&&this.setSliderPosition()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;this.direction=fa(this),this.setDisabledSideEffect(this.disabled),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupDefaultValue(),this.setSliderPosition(),this.handleStepStyles();const e=m.getNotifier(this);e.subscribe(this,"max"),e.subscribe(this,"min"),e.subscribe(this,"step")}),et(this)}disconnectedCallback(){super.disconnectedCallback();const e=m.getNotifier(this);e.unsubscribe(this,"max"),e.unsubscribe(this,"min"),e.unsubscribe(this,"step")}increment(){const e=this.direction!==gt.rtl?Number(this.value)+this.stepAsNumber:Number(this.value)-this.stepAsNumber,t=this.convertToConstrainedValue(e),r=t<this.maxAsNumber?`${t}`:`${this.maxAsNumber}`;this.value=r}decrement(){const e=this.direction!==gt.rtl?Number(this.value)-Number(this.stepAsNumber):Number(this.value)+Number(this.stepAsNumber),t=this.convertToConstrainedValue(e),r=t>this.minAsNumber?`${t}`:`${this.minAsNumber}`;this.value=r}handleKeydown(e){if(this.isDisabled)return!0;switch(e.key){case"Home":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.minAsNumber}`:`${this.maxAsNumber}`;break;case"End":e.preventDefault(),this.value=this.direction!==gt.rtl&&this.orientation!==Se.vertical?`${this.maxAsNumber}`:`${this.minAsNumber}`;break;case"ArrowRight":case"ArrowUp":e.shiftKey||(e.preventDefault(),this.increment());break;case"ArrowLeft":case"ArrowDown":e.shiftKey||(e.preventDefault(),this.decrement());break}return!0}setSliderPosition(){const t=Sa(parseFloat(this.value),this.minAsNumber,this.maxAsNumber,this.orientation===Se.vertical?void 0:this.direction)*100;this.position=`--slider-thumb: ${t}%; --slider-progress: ${t}%`}updateStepMultiplier(){const e=this.stepAsNumber+"",t=this.stepAsNumber%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.maxAsNumber+this.minAsNumber)/2)}`}setupDefaultValue(){this._value||(this.value=this.initialValue??this.midpoint),!Number.isNaN(this.valueAsNumber)&&(this.valueAsNumber<this.minAsNumber||this.valueAsNumber>this.maxAsNumber)&&(this.value=this.midpoint),this.elementInternals.ariaValueNow=this.value}calculateNewValue(e){this.setupTrackConstraints();const t=Sa(e,this.orientation===Se.vertical?this.trackMinHeight:this.trackMinWidth,this.orientation===Se.vertical?this.trackHeight:this.trackWidth,this.orientation===Se.vertical?void 0:this.direction),r=(this.maxAsNumber-this.minAsNumber)*t+this.minAsNumber;return this.convertToConstrainedValue(r)}convertToConstrainedValue(e){isNaN(e)&&(e=this.minAsNumber);let t=e-this.minAsNumber;const r=Math.round(t/this.stepAsNumber),i=t-r*(this.stepMultiplier*this.stepAsNumber)/this.stepMultiplier;return t=i>=Number(this.stepAsNumber)/2?t-i+Number(this.stepAsNumber):t-i,t+this.minAsNumber}setDisabledSideEffect(e=this.isDisabled){O.enqueue(()=>{this.elementInternals.ariaDisabled=e.toString(),this.tabIndex=e?-1:0})}}W.formAssociated=!0,Q([a],W.prototype,"size",2),Q([a({attribute:"value",mode:"fromView"})],W.prototype,"initialValue",2),Q([g],W.prototype,"direction",2),Q([g],W.prototype,"isDragging",2),Q([g],W.prototype,"position",2),Q([g],W.prototype,"trackWidth",2),Q([g],W.prototype,"trackMinWidth",2),Q([g],W.prototype,"trackHeight",2),Q([g],W.prototype,"trackLeft",2),Q([g],W.prototype,"trackMinHeight",2),Q([g],W.prototype,"valueTextFormatter",2),Q([a({mode:"boolean"})],W.prototype,"disabled",2),Q([a({converter:Ki})],W.prototype,"min",2),Q([a({converter:Ki})],W.prototype,"max",2),Q([a({converter:Ki})],W.prototype,"step",2),Q([a],W.prototype,"orientation",2),Q([a],W.prototype,"mode",2),W.define(Sb);const Pb=`${h.prefix}-spinner`,zb=p`${w("inline-flex")} :host{--duration:1.5s;--indicatorSize:${Ie};--size:32px;height:var(--size);width:var(--size);contain:strict;content-visibility:auto}:host([size='tiny']){--indicatorSize:${ge};--size:20px}:host([size='extra-small']){--indicatorSize:${ge};--size:24px}:host([size='small']){--indicatorSize:${ge};--size:28px}:host([size='large']){--indicatorSize:${Ie};--size:36px}:host([size='extra-large']){--indicatorSize:${Ie};--size:40px}:host([size='huge']){--indicatorSize:${Si};--size:44px}.progress,.background,.spinner,.start,.end,.indicator{position:absolute;inset:0}.progress,.spinner,.indicator{animation:none var(--duration) infinite ${yr}}.progress{animation-timing-function:linear;animation-name:spin-linear}.background{border:var(--indicatorSize) solid ${ks};border-radius:50%}:host([appearance='inverted']) .background{border-color:rgba(255,255,255,0.2)}.spinner{animation-name:spin-swing}.start{overflow:hidden;right:50%}.end{overflow:hidden;left:50%}.indicator{color:${xs};box-sizing:border-box;border-radius:50%;border:var(--indicatorSize) solid transparent;border-block-start-color:currentcolor;border-right-color:currentcolor}:host([appearance='inverted']) .indicator{color:${gc}}.start .indicator{rotate:135deg;inset:0 -100% 0 0;animation-name:spin-start}.end .indicator{rotate:135deg;inset:0 0 0 -100%;animation-name:spin-end}@keyframes spin-linear{100%{transform:rotate(360deg)}}@keyframes spin-swing{0%{transform:rotate(-135deg)}50%{transform:rotate(0deg)}100%{transform:rotate(225deg)}}@keyframes spin-start{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-80deg)}}@keyframes spin-end{0%,100%{transform:rotate(0deg)}50%{transform:rotate(70deg)}}@media (forced-colors:active){.background{display:none}.indicator{border-color:Canvas;border-block-start-color:Highlight;border-right-color:Highlight}}`,_b=b`<slot name=indicator><div class=background></div><div class=progress><div class=spinner><div class=start><div class=indicator></div></div><div class=end><div class=indicator></div></div></div></div></slot>`,Ob={name:Pb,registry:h.registry,styles:zb,template:_b};class Tb extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}}var Ab=Object.defineProperty,Bb=Object.getOwnPropertyDescriptor,Ca=(o,e,t,r)=>{for(var i=r>1?void 0:r?Bb(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ab(e,t,i),i};class Yi extends Tb{}Ca([a],Yi.prototype,"size",2),Ca([a],Yi.prototype,"appearance",2),Yi.define(Ob);const Eb=`${h.prefix}-switch`,Nb=p`${w("inline-flex")} :host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${V};width:40px;height:20px;background-color:${he};border:1px solid ${je};border-radius:${ue}}:host(:enabled){cursor:pointer}:host(:hover){background:none;border-color:${Ct}}:host(:active){border-color:${It}}:host(:disabled),:host([readonly]){border:1px solid ${xe};background-color:none;pointer:default}:host(${y}){background:${St};border-color:${St}}:host(${y}:hover){background:${Vt};border-color:${Vt}}:host(${y}:active){background:${Rt};border-color:${Rt}}:host(${y}:disabled){background:${st};border-color:${xe}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${X};transition-duration:${vr};transition-timing-function:${yr};transition-property:margin-inline-start}:host(${y}) .checked-indicator{background-color:${wt};margin-inline-start:calc(100% - 14px)}:host(${y}:hover) .checked-indicator{background:${rc}}:host(${y}:active) .checked-indicator{background:${ic}}:host(:hover) .checked-indicator{background-color:${Ul}}:host(:active) .checked-indicator{background-color:${Gl}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${T}}:host(${y}:disabled) .checked-indicator{background:${T}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${K};outline:${ge} solid ${K};outline-offset:1px;box-shadow:${pr},0 0 0 2px ${le}}@media (forced-colors:active){:host{border-color:InactiveBorder}:host(${y}),:host(${y}:active),:host(${y}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${y}) .checked-indicator,:host(${y}:hover) .checked-indicator,:host(${y}:active) .checked-indicator{background-color:ButtonFace}:host(:disabled) .checked-indicator,:host(${y}:disabled) .checked-indicator{background-color:GrayText}}`;function Fb(o={}){return b`<template @click=${(e,t)=>e.clickHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} @keydown=${(e,t)=>e.keydownHandler(t.event)} @keyup=${(e,t)=>e.keyupHandler(t.event)}><slot name=switch>${fe(o.switch)}</slot></template>`}const Mb=Fb({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),Lb={name:Eb,registry:h.registry,styles:Nb,template:Mb};class Db extends Fe{constructor(){super(),this.elementInternals.role="switch"}}Db.define(Lb);function Ji(o,e="-tab"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Hb=`${h.prefix}-tab`,Vb=p`${w("inline-flex")} :host{position:relative;flex-direction:row;align-items:center;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${L};font-family:${v};font-size:${B};color:${Be};fill:currentcolor;grid-row:1;padding:${re} ${Qe};border-radius:${S};gap:4px}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${_};font-weight:${H}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${L};font-weight:${H}}:host([aria-selected='true'])::after{background-color:${at};border-radius:${ue};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Pt};border-radius:${ue};content:'';inset:0;position:absolute;z-index:1}@supports (anchor-name:--a) and (text-size-adjust:auto){:host([aria-selected='true'])::after{background-color:transparent}:host([aria-selected='true']:hover)::after{background-color:${Pt}}}:host([aria-selected='true'][disabled])::after{background-color:${T}}::slotted([slot='start']),::slotted([slot='end']){display:flex}:host([disabled]){cursor:not-allowed;fill:${T};color:${T};pointer-events:none}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${Ee};box-shadow:0 0 0 3px ${le};outline:1px solid ${ar}}:host([data-hasIndent]){display:grid;grid-template-columns:20px 1fr auto}:host([data-hasIndent]) .tab-content{grid-column:2}@media (forced-colors:active){:host([aria-selected='true'])::after{background-color:Highlight}}`;function Rb(o={}){return b`<template slot=tab role=tab>${We(o)} <span class=tab-content><slot></slot></span>${ct(o)}</template>`}const jb=Rb({}),qb={name:Hb,registry:h.registry,styles:Vb,template:jb};var Wb=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,Gb=(o,e,t,r)=>{for(var i=r>1?void 0:r?Ub(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Wb(e,t,i),i};class Zi extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="tab"}disabledChanged(e,t){this.setDisabledSideEffect(t)}connectedCallback(){super.connectedCallback(),this.slot||(this.slot="tab"),this.setDisabledSideEffect(this.disabled),this.styles&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles),et(this)}setDisabledSideEffect(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"),this.tabIndex=e&&this.getAttribute("aria-selected")!=="true"?-1:0}}Gb([a({mode:"boolean"})],Zi.prototype,"disabled",2),dt(Zi,lt),Zi.define(qb);const Xb={subtle:"subtle",transparent:"transparent"},Mo=Se,Kb=`${h.prefix}-tablist`,Yb=p`${w("flex")} :host{--tabPaddingInline:${Qe};--tabPaddingBlock:${re};--tabIndicatorInsetInline:var(--tabPaddingInline);--tabIndicatorInsetBlock:0;box-sizing:border-box;color:${Be};flex-direction:row;position:relative}:host([size='small']){--tabPaddingBlock:${ko};--tabPaddingInline:${we}}:host([size='large']){--tabPaddingBlock:${Ii};--tabPaddingInline:${Qe}}:host([orientation='vertical']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${ie};flex-direction:column}:host([orientation='vertical'][size='small']){--tabPaddingBlock:${fr};--tabIndicatorInsetBlock:${ko}}:host([orientation='vertical'][size='large']){--tabPaddingBlock:${ie};--tabIndicatorInsetBlock:${br}}::slotted([slot='tab']){padding-inline:var(--tabPaddingInline);padding-block:var(--tabPaddingBlock)}:host([orientation='vertical']) ::slotted([role='tab']){justify-content:flex-start}:host ::slotted([slot='tab'])::after{height:${Ie};margin-block-start:auto}:host([orientation='vertical']) ::slotted([slot='tab'])::after{width:${Ie};height:unset;margin-block-start:unset}:host ::slotted([slot='tab'])::before{height:${Ie};border-radius:${ue};content:'';inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock);position:absolute;margin-top:auto}:host ::slotted([slot='tab'])::before{inset-inline:var(--tabIndicatorInsetInline);inset-block:var(--tabIndicatorInsetBlock)}:host ::slotted([slot='tab'][aria-selected='true'])::before{background-color:${T}}:host ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:${Ie};margin-block-start:auto;transform-origin:left}:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab'][aria-selected='false']:hover)::after{height:unset;width:${Ie};margin-inline-end:auto;transform-origin:top}:host([size='small']) ::slotted([slot='tab']){font-size:${B};line-height:${L}}:host([size='large']) ::slotted([slot='tab']){font-size:${pe};line-height:${ke}}:host ::slotted([slot='tab'])::after,:host ::slotted([slot='tab'])::before,:host ::slotted([slot='tab']:hover)::after{inset-inline:var(--tabIndicatorInsetInline)}:host([orientation='vertical']) ::slotted([slot='tab'])::after,:host([orientation='vertical']) ::slotted([slot='tab'])::before,:host([orientation='vertical']) ::slotted([slot='tab']:hover)::after{inset-inline:0;inset-block:var(--tabIndicatorInsetBlock)}:host([disabled]){cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']){pointer-events:none;cursor:not-allowed;color:${T}}:host([disabled]) ::slotted([slot='tab']:after){background-color:${T}}:host([disabled]) ::slotted([slot='tab'][aria-selected='true'])::after{background-color:${T}}:host([disabled]) ::slotted([slot='tab']:hover):before{content:unset}:host([appearance='subtle']) ::slotted([slot='tab']:hover){background-color:${ir};color:${cs};fill:${tc}}:host([appearance='subtle']) ::slotted([slot='tab']:active){background-color:${vo};fill:${vo};color:${_}}@supports (anchor-name:--a) and (text-size-adjust:auto){::slotted([slot='tab'][aria-selected='true']){anchor-name:--tab}:host::after{background-color:${at};content:'';inline-size:100%;inset:auto auto anchor(end) anchor(center);position:fixed;position-anchor:--tab;transform:translateX(-50%);transition-property:inset-inline,width;transition-duration:${Rd};transition-timing-function:${Xs};z-index:3;border-radius:${ue};width:calc(anchor-size() - var(--tabIndicatorInsetInline) * 2);height:${Ie}}:host([orientation='vertical'])::after{inset:anchor(center) anchor(end) auto 0;transform:translateY(-50%);transition-property:inset-block,height;width:${Ie};height:calc(anchor-size() - var(--tabIndicatorInsetBlock) * 2)}:host(:dir(rtl)[orientation='vertical'])::after{inset:anchor(center) anchor(start) auto 0}:host([disabled])::after{background-color:${T}}}`,Jb=b`<template role=tablist focusgroup="tablist inline block" @focusin=${(o,e)=>o.handleFocusIn(e.event)}><slot name=tab ${G("slottedTabs")}></slot></template>`,Zb={name:Kb,registry:h.registry,styles:Yb,template:Jb};var Qb=Object.defineProperty,em=Object.getOwnPropertyDescriptor,Lo=(o,e,t,r)=>{for(var i=r>1?void 0:r?em(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Qb(e,t,i),i};class io extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.disabled=!1,this.orientation=Mo.horizontal,this.tabs=[],this.tabPanelMap=new WeakMap,this.change=()=>{this.$emit("change",this.activetab)},this.elementInternals.role="tablist",this.elementInternals.ariaOrientation=this.orientation??Mo.horizontal}disabledChanged(e,t){this.elementInternals&&$(this.elementInternals,"disabled",t),this.setTabs({forceDisabled:!0})}orientationChanged(e,t){this.elementInternals&&(this.elementInternals.ariaOrientation=t??Mo.horizontal,Tt(this.elementInternals,e,t,Mo)),this.setTabs()}activeidChanged(e,t){this.tabs?.length>0&&this.changeTab(e,t)}slottedTabsChanged(e,t){this.tabs=t?.filter(r=>Ji(r))??[]}tabsChanged(e,t){this.tabs?.length>0&&this.setTabs({connectToPanel:!0})}setTabs({connectToPanel:e=!1,forceDisabled:t=!1}={}){if(!this.tabs)return;const r=this.tabs.some(s=>!!s.querySelector("[slot='start']")),i=this.getRootNode();let n="";for(const s of this.tabs){if(s.slot!=="tab")continue;s.id||(s.id=Xe("tab-")),t?s.disabled=this.disabled:s.disabled=s.disabled||this.disabled,!n&&!s.disabled&&(n=s.id);const l=this.activeid===s.id;if(s.toggleAttribute("focusgroupstart",l),s.setAttribute("aria-selected",l.toString()),s.toggleAttribute("data-hasIndent",r&&this.orientation===Mo.vertical),e){const u=s.getAttribute("aria-controls")??"",d=i.getElementById(u);u&&d&&(d.role??(d.role="tabpanel"),d.hidden=this.activeid!==s.id,this.tabPanelMap.set(s,d))}}this.disabled||(this.activeid?this.changeTab(void 0,this.activeid):n&&(this.activeid=n))}handleFocusIn(e){const t=e.target;!Ji(t)||t.disabled||(this.activeid=t.id)}changeTab(e,t){const r=this.getRootNode(),i=e?r.getElementById(e):null,n=r.getElementById(t);if(!Ji(n)||!this.contains(n))return;if(i){i.setAttribute("aria-selected","false");const l=this.tabPanelMap.get(i);l&&(l.hidden=!0)}n.setAttribute("aria-selected","true");const s=this.tabPanelMap.get(n);s&&(s.hidden=!1),this.activetab=n,this.change()}connectedCallback(){super.connectedCallback(),Co(this,()=>{this.setTabs()},{shallow:!0})}}Lo([a({mode:"boolean"})],io.prototype,"disabled",2),Lo([a],io.prototype,"orientation",2),Lo([a],io.prototype,"activeid",2),Lo([g],io.prototype,"slottedTabs",2),Lo([g],io.prototype,"tabs",2);var tm=Object.defineProperty,om=Object.getOwnPropertyDescriptor,Ia=(o,e,t,r)=>{for(var i=r>1?void 0:r?om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&tm(e,t,i),i};class Qi extends io{constructor(){super(...arguments),this.appearance=Xb.transparent}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}tabsChanged(e,t){super.tabsChanged(e,t),this.fgItems??(this.fgItems=new Nr(()=>this.tabs?.filter(r=>(r.getAttribute("aria-selected")==="true"||!r.disabled)&&!r.hidden)??[],()=>this.activetab??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"tablist",axis:void 0,memory:!1,wrap:!0}})}}Ia([a],Qi.prototype,"appearance",2),Ia([a],Qi.prototype,"size",2),Qi.define(Zb);const rm={outline:"outline",filledLighter:"filled-lighter",filledDarker:"filled-darker"},Dr={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"},im=`${h.prefix}-textarea`,nm=p`${w("inline-block")} :host{--font-size:${B};--line-height:${L};--padding-inline:${Qe};--padding-block:${ko};--min-block-size:52px;--block-size:var(--min-block-size);--inline-size:18rem;--border-width:${I};--control-padding-inline:${V};--color:${_};--background-color:${C};--border-color:${qe};--border-block-end-color:${je};--placeholder-color:${fi};--focus-indicator-color:${at};--box-shadow:none;--contain-size:size;--resize:none;color:var(--color);font-family:${v};font-size:var(--font-size);font-weight:${E};line-height:var(--line-height);position:relative}:host(:hover){--border-color:${Pt};--border-block-end-color:${Ct}}:host(:active){--border-color:${$o};--border-block-end-color:${It}}:host(:focus-within){outline:none}:host([block]:not([hidden])){display:block}:host([size='small']){--font-size:${M};--line-height:${q};--min-block-size:40px;--padding-block:${qt};--padding-inline:${we};--control-padding-inline:${V}}:host([size='large']){--font-size:${pe};--line-height:${ke};--min-block-size:64px;--padding-block:${ie};--padding-inline:${re};--control-padding-inline:${we}}:host([resize='both']:not(:disabled)){--resize:both}:host([resize='horizontal']:not(:disabled)){--resize:horizontal}:host([resize='vertical']:not(:disabled)){--resize:vertical}:host([auto-resize]){--block-size:auto;--contain-size:inline-size}:host([appearance='filled-darker']){--background-color:${bo};--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-lighter']){--border-color:var(--background-color);--border-block-end-color:var(--border-color)}:host([appearance='filled-darker'][display-shadow]),:host([appearance='filled-lighter'][display-shadow]){--box-shadow:${ki}}:host(${Iu}){--border-color:${$i};--border-block-end-color:${$i}}:host(:disabled){--color:${T};--background-color:${he};--border-color:${xe};--border-block-end-color:var(--border-color);--box-shadow:none;--placeholder-color:${T};cursor:no-drop;user-select:none}.root{background-color:var(--background-color);border:var(--border-width) solid var(--border-color);border-block-end-color:var(--border-block-end-color);border-radius:${S};box-sizing:border-box;box-shadow:var(--box-shadow);contain:paint layout style var(--contain-size);display:grid;grid-template:1fr/1fr;inline-size:var(--inline-size);min-block-size:var(--min-block-size);block-size:var(--block-size);overflow:hidden;padding:var(--padding-block) var(--padding-inline);position:relative;resize:var(--resize)}:host([block]) .root{inline-size:auto}.root::after{border-bottom:2px solid var(--focus-indicator-color);border-radius:0 0 ${S} ${S};box-sizing:border-box;clip-path:inset(calc(100% - 2px) 1px 0px);content:'';height:max(2px,${S});inset:auto -1px 0;position:absolute;transform:scaleX(0);transition-delay:${_t};transition-duration:${Pi};transition-property:transform}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host([readonly]) .root::after,:host(:disabled) .root::after{content:none}label{color:var(--color);display:flex;inline-size:fit-content;padding-block-end:${qt};padding-inline-end:${oe}}:host(:empty) label,label[hidden]{display:none}.auto-sizer,.control{box-sizing:border-box;font:inherit;grid-column:1/-1;grid-row:1/-1;letter-space:inherit;padding:0 var(--control-padding-inline)}.auto-sizer{display:none;padding-block-end:2px;pointer-events:none;visibility:hidden;white-space:pre-wrap}:host([auto-resize]) .auto-sizer{display:block}.control{appearance:none;background-color:transparent;border:0;color:inherit;field-sizing:content;max-block-size:100%;outline:0;resize:none;text-align:inherit}.control:disabled{cursor:inherit}.control::placeholder{color:var(--placeholder-color)}::selection{color:${wt};background-color:${us}}@media (forced-colors:active){:host{--border-color:FieldText;--border-block-end-color:FieldText;--focus-indicator-color:Highlight;--placeholder-color:FieldText}:host(:hover),:host(:active),:host(:focus-within){--border-color:Highlight;--border-block-end-color:Highlight}:host(:disabled){--color:GrayText;--border-color:GrayText;--border-block-end-color:GrayText;--placeholder-color:GrayText}}`;function sm(){return b`<template><label ${z("labelEl")} for=control part=label><slot name=label ${G("labelSlottedNodes")}></slot></label><div class=root part=root ${z("rootEl")}><textarea ${z("controlEl")} id=control class=control part=control ?required=${o=>o.required} ?disabled=${o=>o.disabled} ?readonly=${o=>o.readOnly} ?spellcheck=${o=>o.spellcheck} autocomplete=${o=>o.autocomplete} maxlength=${o=>o.maxLength} minlength=${o=>o.minLength} placeholder=${o=>o.placeholder} @change=${o=>o.handleControlChange()} @select=${o=>o.handleControlSelect()} @input=${o=>o.handleControlInput()}></textarea></div><div hidden><slot ${G("defaultSlottedNodes")}></slot></div></template>`}const am=sm(),lm={name:im,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:nm,template:am},cm=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length;var dm=Object.defineProperty,hm=Object.getOwnPropertyDescriptor,ee=(o,e,t,r)=>{for(var i=r>1?void 0:r?hm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&dm(e,t,i),i};class U extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.filteredLabelSlottedNodes=[],this.labelSlottedNodes=[],this.userInteracted=!1,this.preConnectControlEl=document.createElement("textarea"),this.autoResize=!1,this.disabled=!1,this.displayShadow=!1,this.readOnly=!1,this.required=!1,this.resize=Dr.none,this.spellcheck=!1}controlElChanged(){this.controlElAttrObserver=new MutationObserver(()=>{this.setValidity()}),this.controlElAttrObserver.observe(this.controlEl,{attributes:!0,attributeFilter:["disabled","required","readonly","maxlength","minlength"]}),this.controlEl.addEventListener("input",()=>this.userInteracted=!0,{once:!0})}defaultSlottedNodesChanged(){O.enqueue(()=>{const e=this.getContent();this.defaultValue=e,this.value=e})}labelSlottedNodesChanged(){this.filteredLabelSlottedNodes=this.labelSlottedNodes.filter(cm),this.labelEl&&(this.labelEl.hidden=!this.filteredLabelSlottedNodes.length),this.filteredLabelSlottedNodes.forEach(e=>{e.disabled=this.disabled,e.required=this.required})}autoResizeChanged(){this.maybeCreateAutoSizerEl(),$(this.elementInternals,"auto-resize",this.autoResize)}disabledChanged(){this.setDisabledSideEffect(this.disabled)}get form(){return this.elementInternals.form}get labels(){return this.elementInternals.labels}readOnlyChanged(){this.elementInternals&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`,this.setValidity())}requiredChanged(){this.elementInternals.ariaRequired=`${!!this.required}`,this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(e=>e.required=this.required)}resizeChanged(e,t){Tt(this.elementInternals,e,t,Dr,"resize-"),$(this.elementInternals,"resize",ta(Dr,t)&&t!==Dr.none)}get textLength(){return this.controlEl.textLength}get type(){return"textarea"}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.controlEl.validationMessage}get willValidate(){return this.elementInternals.willValidate}get defaultValue(){return this.controlEl?.defaultValue??this.preConnectControlEl.defaultValue}set defaultValue(e){const t=this.controlEl??this.preConnectControlEl;t.defaultValue=e,this.controlEl&&!this.userInteracted&&(this.controlEl.value=e)}get value(){return this.controlEl?.value??this.preConnectControlEl.value}set value(e){const t=this.controlEl??this.preConnectControlEl;t.value=e,this.setFormValue(e),this.setValidity()}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.$fastController.isConnected)return;const e=this.preConnectControlEl,t=this.getContent();this.defaultValue=t||e?.defaultValue||"",this.value=e?.value||this.defaultValue,this.setFormValue(this.value),this.setValidity(),this.preConnectControlEl=null,this.maybeCreateAutoSizerEl(),et(this)})}disconnectedCallback(){super.disconnectedCallback(),this.autoSizerObserver?.disconnect(),this.controlElAttrObserver?.disconnect()}formResetCallback(){this.value=this.defaultValue}formDisabledCallback(e){this.setDisabledSideEffect(e),this.setValidity()}setFormValue(e,t){this.elementInternals.setFormValue(e,e??t)}checkValidity(){return this.elementInternals.checkValidity()}reportValidity(){return this.elementInternals.reportValidity()}setCustomValidity(e){this.elementInternals?.setValidity({customError:!!e},e?e.toString():void 0),this.reportValidity()}setValidity(e,t,r){this.elementInternals&&(this.disabled||this.readOnly?this.elementInternals.setValidity({}):this.elementInternals.setValidity(e??this.controlEl?.validity,t??this.controlEl?.validationMessage,r??this.controlEl),this.userInteracted&&this.toggleUserValidityState())}select(){this.controlEl.select()}getContent(){return this.defaultSlottedNodes?.map(e=>{switch(e.nodeType){case Node.ELEMENT_NODE:return e.outerHTML;case Node.TEXT_NODE:return e.textContent.trim();default:return""}}).join("")||""}setDisabledSideEffect(e){this.elementInternals.ariaDisabled=`${e}`,this.controlEl&&(this.controlEl.disabled=e),this.filteredLabelSlottedNodes?.length&&this.filteredLabelSlottedNodes.forEach(t=>t.disabled=this.disabled)}toggleUserValidityState(){$(this.elementInternals,"user-invalid",!this.validity.valid),$(this.elementInternals,"user-valid",this.validity.valid)}maybeCreateAutoSizerEl(){if(!CSS.supports("field-sizing: content")){if(!this.autoResize){this.autoSizerEl?.remove(),this.autoSizerObserver?.disconnect();return}this.autoSizerEl||(this.autoSizerEl=document.createElement("div"),this.autoSizerEl.classList.add("auto-sizer"),this.autoSizerEl.ariaHidden="true"),this.rootEl?.prepend(this.autoSizerEl),this.autoSizerObserver||(this.autoSizerObserver=new ResizeObserver((e,t)=>{const r=window.getComputedStyle(this).writingMode.startsWith("horizontal")?"height":"width";this.style.getPropertyValue(r)!==""&&(this.autoSizerEl?.remove(),t.disconnect())})),this.autoSizerObserver.observe(this)}}handleControlInput(){this.autoResize&&this.autoSizerEl&&(this.autoSizerEl.textContent=this.value+" "),this.setFormValue(this.value),this.setValidity()}handleControlChange(){this.toggleUserValidityState(),this.$emit("change")}handleControlSelect(){this.$emit("select")}}U.formAssociated=!0,ee([g],U.prototype,"controlEl",2),ee([g],U.prototype,"defaultSlottedNodes",2),ee([g],U.prototype,"labelSlottedNodes",2),ee([a],U.prototype,"autocomplete",2),ee([a({attribute:"auto-resize",mode:"boolean"})],U.prototype,"autoResize",2),ee([a({attribute:"dirname"})],U.prototype,"dirName",2),ee([a({mode:"boolean"})],U.prototype,"disabled",2),ee([a({attribute:"display-shadow",mode:"boolean"})],U.prototype,"displayShadow",2),ee([a({attribute:"form"})],U.prototype,"initialForm",2),ee([a({attribute:"maxlength",converter:te})],U.prototype,"maxLength",2),ee([a({attribute:"minlength",converter:te})],U.prototype,"minLength",2),ee([a],U.prototype,"name",2),ee([a],U.prototype,"placeholder",2),ee([a({attribute:"readonly",mode:"boolean"})],U.prototype,"readOnly",2),ee([a({mode:"boolean"})],U.prototype,"required",2),ee([a({mode:"fromView"})],U.prototype,"resize",2),ee([a({mode:"boolean"})],U.prototype,"spellcheck",2);var um=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,en=(o,e,t,r)=>{for(var i=r>1?void 0:r?pm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&um(e,t,i),i};class Hr extends U{constructor(){super(...arguments),this.appearance=rm.outline,this.block=!1}labelSlottedNodesChanged(){super.labelSlottedNodesChanged(),this.labelSlottedNodes.forEach(e=>{e.size=this.size})}handleChange(e,t){switch(t){case"size":this.labelSlottedNodes.forEach(r=>{r.size=this.size});break}}connectedCallback(){super.connectedCallback(),m.getNotifier(this).subscribe(this,"size")}disconnectedCallback(){super.disconnectedCallback(),m.getNotifier(this).unsubscribe(this,"size")}}en([a({mode:"fromView"})],Hr.prototype,"appearance",2),en([a({mode:"boolean"})],Hr.prototype,"block",2),en([a],Hr.prototype,"size",2),Hr.define(lm);const gm={email:"email",password:"password",tel:"tel",text:"text",url:"url"},fm=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],bm=`${h.prefix}-text-input`,mm=p`${w("block")} :host{font-family:${v};font-size:${B};font-weight:${E};line-height:${L};max-width:400px}.label{display:flex;color:${_};padding-bottom:${qt};flex-shrink:0;padding-inline-end:${oe}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${C};border:${I} solid ${qe};border-bottom-color:${je};border-radius:${S};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${V};padding:0 ${Qe};position:relative;width:100%}:has(.control:user-invalid){border-color:${$i}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${S});border-radius:0 0 ${S} ${S};border-bottom:2px solid ${at};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Pi};transition-delay:${_t}}.control{width:100%;height:100%;box-sizing:border-box;color:${_};border-radius:${S};background:${he};font-family:${v};font-weight:${E};font-size:${B};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${fi}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${X};font-size:${jt}}:host ::slotted([slot='start']){padding-right:${V}}:host ::slotted([slot='end']){padding-left:${V};gap:${oe}}:host(:hover) .root{border-color:${Pt};border-bottom-color:${Ct}}:host(:active) .root{border-color:${$o}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${vr};transition-delay:${Ot}}:host(:focus-within:active) .root:after{border-bottom-color:${ws}}:host([appearance='outline']:focus-within) .root{border:${I} solid ${qe}}:host(:focus-within) .control{color:${_}}:host([disabled]) .root{background:${he};border:${I} solid ${xe}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${T}}::selection{color:${wt};background-color:${us}}:host([control-size='small']) .control{font-size:${M};font-weight:${E};line-height:${q}}:host([control-size='small']) .root{height:24px;gap:${V};padding:0 ${we}}:host([control-size='small']) ::slotted([slot='start']),:host([control-size='small']) ::slotted([slot='end']){font-size:${pe}}:host([control-size='large']) .control{font-size:${pe};font-weight:${E};line-height:${ke}}:host([control-size='large']) .root{height:40px;gap:${Ne};padding:0 ${re}}:host([control-size='large']) ::slotted([slot='start']),:host([control-size='large']) ::slotted([slot='end']){font-size:${cr}}:host([appearance='underline']) .root{background:${he};border:0;border-radius:0;border-bottom:${I} solid ${je}}:host([appearance='underline']:hover) .root{border-bottom-color:${Ct}}:host([appearance='underline']:active) .root{border-bottom-color:${It}}:host([appearance='underline']:focus-within) .root{border:0;border-bottom-color:${It}}:host([appearance='underline'][disabled]) .root{border-bottom-color:${xe}}:host([appearance='filled-lighter']) .root,:host([appearance='filled-darker']) .root{border:${I} solid ${K};box-shadow:${ki}}:host([appearance='filled-lighter']) .root{background:${C}}:host([appearance='filled-darker']) .root{background:${bo}}:host([appearance='filled-lighter']:hover) .root,:host([appearance='filled-darker']:hover) .root{border-color:${vi}}:host([appearance='filled-lighter']:active) .root,:host([appearance='filled-darker']:active) .root{border-color:${vi};background:${bo}}`;function vm(o={}){return b`<template @keydown=${(e,t)=>e.keydownHandler(t.event)}><label part=label for=control class=label ${z("controlLabel")}><slot ${G("defaultSlottedNodes")}></slot></label><div class=root part=root>${We(o)} <input class=control part=control id=control @change=${(e,t)=>e.changeHandler(t.event)} @input=${(e,t)=>e.inputHandler(t.event)} autocomplete=${e=>e.autocomplete} ?disabled=${e=>e.disabled} list=${e=>e.list} maxlength=${e=>e.maxlength} minlength=${e=>e.minlength} ?multiple=${e=>e.multiple} name=${e=>e.name} pattern=${e=>e.pattern} placeholder=${e=>e.placeholder} ?readonly=${e=>e.readOnly} ?required=${e=>e.required} size=${e=>e.size} spellcheck=${e=>e.spellcheck} type=${e=>e.type} value=${e=>e.value} ${z("control")}> ${ct(o)}</div></template>`}const $m=vm(),ym={name:bm,registry:h.registry,shadowOptions:{delegatesFocus:!0},styles:mm,template:$m};var xm=Object.defineProperty,km=Object.getOwnPropertyDescriptor,D=(o,e,t,r)=>{for(var i=r>1?void 0:r?km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&xm(e,t,i),i};class N extends x{constructor(){super(...arguments),this.type=gm.text,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}currentValueChanged(e,t){this.value=t}defaultSlottedNodesChanged(e,t){O.enqueue(()=>{this.controlLabel&&(this.controlLabel.hidden=!t?.some(r=>r.nodeType===Node.ELEMENT_NODE||r.nodeType===Node.TEXT_NODE&&!!r.textContent?.trim()))})}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(e,t){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!t}`)}controlChanged(e,t){O.enqueue(()=>{this.$fastController.isConnected&&this.setValidity()})}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return m.track(this,"value"),this.currentValue}set value(e){this.currentValue=e,this.elementInternals&&this.control&&(this.control.value=e??"",this.setFormValue(e),this.setValidity(),m.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}changeHandler(e){return this.setValidity(),this.$emit("change",e,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(e){return e.target===this&&this.control?.click(),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity(),et(this)}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const e=[...this.elementInternals.form.elements],t=e.find(i=>i.getAttribute("type")==="submit");if(t){t.click();return}e.filter(i=>fm.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(e){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(e){return e.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(e){this.elementInternals.setValidity({customError:!0},e),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(e,t){this.elementInternals?.setFormValue(e,e??t)}setValidity(e,t,r){if(this.elementInternals&&this.control){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(e??this.control.validity,t??this.validationMessage,r??this.control)}}}N.formAssociated=!0,D([a],N.prototype,"autocomplete",2),D([a({attribute:"current-value"})],N.prototype,"currentValue",2),D([g],N.prototype,"defaultSlottedNodes",2),D([a],N.prototype,"dirname",2),D([a({mode:"boolean"})],N.prototype,"disabled",2),D([a({attribute:"form"})],N.prototype,"formAttribute",2),D([a({attribute:"value",mode:"fromView"})],N.prototype,"initialValue",2),D([a],N.prototype,"list",2),D([a({converter:te})],N.prototype,"maxlength",2),D([a({converter:te})],N.prototype,"minlength",2),D([a({mode:"boolean"})],N.prototype,"multiple",2),D([a],N.prototype,"name",2),D([a],N.prototype,"pattern",2),D([a],N.prototype,"placeholder",2),D([a({attribute:"readonly",mode:"boolean"})],N.prototype,"readOnly",2),D([a({mode:"boolean"})],N.prototype,"required",2),D([a({converter:te})],N.prototype,"size",2),D([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],N.prototype,"spellcheck",2),D([a],N.prototype,"type",2),D([g],N.prototype,"control",2),D([g],N.prototype,"controlLabel",2);var wm=Object.defineProperty,Sm=Object.getOwnPropertyDescriptor,Pa=(o,e,t,r)=>{for(var i=r>1?void 0:r?Sm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&wm(e,t,i),i};class Vr extends N{}Pa([a],Vr.prototype,"appearance",2),Pa([a({attribute:"control-size"})],Vr.prototype,"controlSize",2),dt(Vr,lt),Vr.define(ym);const Cm=`${h.prefix}-text`,Im=p`${w("inline")} :host{font-family:${v};font-size:${B};line-height:${L};font-weight:${E};text-align:start}:host([nowrap]),:host([nowrap]) ::slotted(*){white-space:nowrap;overflow:hidden}:host([truncate]),:host([truncate]) ::slotted(*){text-overflow:ellipsis}:host([block]){display:block}:host([italic]){font-style:italic}:host([underline]){text-decoration-line:underline}:host([strikethrough]){text-decoration-line:line-through}:host([underline][strikethrough]){text-decoration-line:line-through underline}:host([size='100']){font-size:${xo};line-height:${hr}}:host([size='200']){font-size:${M};line-height:${q}}:host([size='400']){font-size:${pe};line-height:${ke}}:host([size='500']){font-size:${jt};line-height:${ur}}:host([size='600']){font-size:${cr};line-height:${Vs}}:host([size='700']){font-size:${Ms};line-height:${Rs}}:host([size='800']){font-size:${Ls};line-height:${js}}:host([size='900']){font-size:${Ds};line-height:${qs}}:host([size='1000']){font-size:${Hs};line-height:${Ws}}:host([font='monospace']){font-family:${Bd}}:host([font='numeric']){font-family:${Ed}}:host([weight='medium']){font-weight:${Nd}}:host([weight='semibold']){font-weight:${H}}:host([weight='bold']){font-weight:${dr}}:host([align='center']){text-align:center}:host([align='end']){text-align:end}:host([align='justify']){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,Pm=b`<slot></slot>`,zm={name:Cm,registry:h.registry,styles:Im,template:Pm};var _m=Object.defineProperty,Om=Object.getOwnPropertyDescriptor,Ye=(o,e,t,r)=>{for(var i=r>1?void 0:r?Om(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&_m(e,t,i),i};class Le extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}}Ye([a({mode:"boolean"})],Le.prototype,"nowrap",2),Ye([a({mode:"boolean"})],Le.prototype,"truncate",2),Ye([a({mode:"boolean"})],Le.prototype,"italic",2),Ye([a({mode:"boolean"})],Le.prototype,"underline",2),Ye([a({mode:"boolean"})],Le.prototype,"strikethrough",2),Ye([a({mode:"boolean"})],Le.prototype,"block",2),Ye([a],Le.prototype,"size",2),Ye([a],Le.prototype,"font",2),Ye([a],Le.prototype,"weight",2),Ye([a],Le.prototype,"align",2),Le.define(zm);const Tm=`${h.prefix}-toggle-button`,Am=p`${wr} :host(${F}){border-color:${qe};background-color:${hs};color:${_};border-width:${I}}:host(${F}:hover){border-color:${Pt};background-color:${rr}}:host(${F}:active){border-color:${$o};background-color:${bi}}:host(${F}[appearance='primary']:not(:focus-visible)){border-color:transparent}:host(${F}[appearance='primary']){background-color:${uc};color:${Ze}}:host(${F}[appearance='primary']:hover){background-color:${ms}}:host(${F}[appearance='primary']:active){background-color:${vs}}:host(${F}[appearance='subtle']){border-color:transparent;background-color:${gs};color:${Qo}}:host(${F}[appearance='subtle']:hover){background-color:${ir};color:${Dt}}:host(${F}[appearance='subtle']:active){background-color:${vo};color:${Ht}}:host(${F}[appearance='outline']),:host(${F}[appearance='transparent']){background-color:${fs}}:host(${F}[appearance='outline']:hover),:host(${F}[appearance='transparent']:hover){background-color:${nr}}:host(${F}[appearance='outline']:active),:host(${F}[appearance='transparent']:active){background-color:${sr}}:host(${F}[appearance='transparent']){border-color:transparent;color:${Wl}}:host(${F}[appearance='transparent']:hover){color:${er}}:host(${F}[appearance='transparent']:active){color:${tr}}@media (forced-colors:active){:host(${F}),:host( ${F}:is([appearance='primary'],[appearance='subtle'],[appearance='outline'],[appearance='transparent']) ){background:SelectedItem}:host(${F}[appearance='primary']){color:SelectedItemText}}`,Bm=Ei(),Em={name:Tm,registry:h.registry,styles:Am,template:Bm};var Nm=Object.defineProperty,Fm=Object.getOwnPropertyDescriptor,za=(o,e,t,r)=>{for(var i=r>1?void 0:r?Fm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Nm(e,t,i),i};class tn extends tt{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){this.elementInternals&&(this.elementInternals.ariaPressed=`${this.mixed?"mixed":!!this.pressed}`,$(this.elementInternals,"pressed",!!this.pressed||!!this.mixed))}}za([a({mode:"boolean"})],tn.prototype,"pressed",2),za([a({mode:"boolean"})],tn.prototype,"mixed",2),tn.define(Em);const Oe={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Mm=`${h.prefix}-tooltip`,Lm=p`${w("inline-flex")} :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${oe};background:${C};border-radius:${S};border:1px solid ${K};box-sizing:border-box;color:${_};display:inline-flex;filter:drop-shadow(0 0 2px ${bc}) drop-shadow(0 4px 8px ${mc});font-family:${v};font-size:${M};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${Qe} 6px;position:absolute;position-area:var(--position-area);position-try-fallbacks:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Oe["above-start"]}}:host([positioning='above']){--position-area:${Oe.above}}:host([positioning='above-end']){--position-area:${Oe["above-end"]}}:host([positioning='below-start']){--position-area:${Oe["below-start"]}}:host([positioning='below']){--position-area:${Oe.below}}:host([positioning='below-end']){--position-area:${Oe["below-end"]}}:host([positioning='before-top']){--position-area:${Oe["before-top"]}}:host([positioning='before']){--position-area:${Oe.before}}:host([positioning='before-bottom']){--position-area:${Oe["before-bottom"]}}:host([positioning='after-top']){--position-area:${Oe["after-top"]}}:host([positioning='after']){--position-area:${Oe.after}}:host([positioning='after-bottom']){--position-area:${Oe["after-bottom"]}}`,Dm=b`<template popover aria-hidden=true><slot></slot></template>`,Hm={name:Mm,registry:h.registry,styles:Lm,template:Dm};var Vm=Object.defineProperty,Rm=Object.getOwnPropertyDescriptor,Rr=(o,e,t,r)=>{for(var i=r>1?void 0:r?Rm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Vm(e,t,i),i};class Do extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.id=Xe("tooltip-"),this.defaultDelay=250,this.anchor="",this.anchorPositioningStyleElement=null,this.mouseenterAnchorHandler=()=>this.showTooltip(this.delay),this.mouseleaveAnchorHandler=()=>this.hideTooltip(this.delay),this.focusAnchorHandler=()=>this.showTooltip(0),this.blurAnchorHandler=()=>this.hideTooltip(0),this.anchorPositioningReady=!1,this.elementInternals.role="tooltip"}positioningChanged(){this.setFallbackStyles()}get anchorElement(){const e=this.getRootNode();return(e instanceof ShadowRoot?e:document).getElementById(this.anchor??"")}connectedCallback(){if(super.connectedCallback(),this.popover??(this.popover="auto"),!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`,t=this.anchorElement.getAttribute("aria-describedby");if(this.anchorElement.setAttribute("aria-describedby",t?`${t} ${this.id}`:this.id),this.anchorElement.addEventListener("focus",this.focusAnchorHandler),this.anchorElement.addEventListener("blur",this.blurAnchorHandler),this.anchorElement.addEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement.addEventListener("mouseleave",this.mouseleaveAnchorHandler),Sr){kh||(this.anchorElement.style.anchorName=e,this.style.positionAnchor=e);return}O.enqueue(()=>this.setFallbackStyles())}disconnectedCallback(){if(this.anchorElement?.removeEventListener("focus",this.focusAnchorHandler),this.anchorElement?.removeEventListener("blur",this.blurAnchorHandler),this.anchorElement?.removeEventListener("mouseenter",this.mouseenterAnchorHandler),this.anchorElement?.removeEventListener("mouseleave",this.mouseleaveAnchorHandler),this.anchorElement){const t=(this.anchorElement.getAttribute("aria-describedby")??"").trim().split(/\s+/).filter(r=>r!==this.id);t.length?this.anchorElement.setAttribute("aria-describedby",t.join(" ")):this.anchorElement.removeAttribute("aria-describedby")}super.disconnectedCallback()}showTooltip(e=this.defaultDelay){if(!this.anchorPositioningReady){this.setFallbackStyles().then(()=>{this.showTooltip(e)});return}setTimeout(()=>{this.setAttribute("aria-hidden","false"),this.showPopover()},e)}hideTooltip(e=this.defaultDelay){setTimeout(()=>{if(this.matches(":hover")||this.anchorElement?.matches(":hover")){this.hideTooltip(e);return}this.setAttribute("aria-hidden","true"),this.hidePopover()},e)}async setFallbackStyles(){if(Sr){this.anchorPositioningReady=!0;return}if(!this.anchorElement)return;const e=this.anchorElement.style.anchorName||`--${this.anchor}`;this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),document.head.append(this.anchorPositioningStyleElement));let[t,r]=this.positioning?.split("-")??[];r||((t==="above"||t==="below")&&(r="centerX"),(t==="before"||t==="after")&&(r="centerY"));const i={above:"bottom: anchor(top);",below:"top: anchor(bottom);",before:"right: anchor(left);",after:"left: anchor(right);"},n=i[t]??i.above,s={start:"left: anchor(left);",end:"right: anchor(right);",top:"top: anchor(top);",bottom:"bottom: anchor(bottom);",centerX:"left: anchor(center); translate: -50% 0;",centerY:"top: anchor(center); translate: 0 -50%;"},l=s[r]??s.centerX;this.anchorPositioningStyleElement.textContent=`
562
19
  #${this.anchor} {
563
20
  anchor-name: ${e};
564
21
  }
565
22
  #${this.id} {
566
23
  inset: unset;
567
24
  position-anchor: ${e};
568
- position: absolute;
569
- ${s}
570
- ${c}
25
+ position: fixed;
26
+ ${n}
27
+ ${l}
571
28
  }
572
- `,window.CSS_ANCHOR_POLYFILL&&window.CSS_ANCHOR_POLYFILL.call({element:this.anchorPositioningStyleElement})}}qi([a],Mo.prototype,"id",2),qi([a({converter:re})],Mo.prototype,"delay",2),qi([a],Mo.prototype,"positioning",2),qi([a],Mo.prototype,"anchor",2);const Te={"above-start":"block-start span-inline-end",above:"block-start","above-end":"block-start span-inline-start","below-start":"block-end span-inline-end",below:"block-end","below-end":"block-end span-inline-start","before-top":"inline-start span-block-end",before:"inline-start","before-bottom":"inline-start span-block-start","after-top":"inline-end span-block-end",after:"inline-end","after-bottom":"inline-end span-block-start"},Hf=u`
573
- ${k("inline-flex")}
574
-
575
- :host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${qt};--inline-offset:${ne};background:${I};border-radius:${C};border:1px solid ${U};box-sizing:border-box;color:${T};display:inline-flex;filter:drop-shadow(0 0 2px ${ec}) drop-shadow(0 4px 8px ${tc});font-family:${v};font-size:${F};inset:unset;line-height:${q};margin:unset;max-width:240px;overflow:visible;padding:4px ${ae} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${Te["above-start"]}}:host([positioning='above']){--position-area:${Te.above}}:host([positioning='above-end']){--position-area:${Te["above-end"]}}:host([positioning='below-start']){--position-area:${Te["below-start"]}}:host([positioning='below']){--position-area:${Te.below}}:host([positioning='below-end']){--position-area:${Te["below-end"]}}:host([positioning='before-top']){--position-area:${Te["before-top"]}}:host([positioning='before']){--position-area:${Te.before}}:host([positioning='before-bottom']){--position-area:${Te["before-bottom"]}}:host([positioning='after-top']){--position-area:${Te["after-top"]}}:host([positioning='after']){--position-area:${Te.after}}:host([positioning='after-bottom']){--position-area:${Te["after-bottom"]}}`,Vf=b`<template popover aria-hidden="true"><slot></slot></template>`,Lf=Mo.compose({name:`${p.prefix}-tooltip`,template:Vf,styles:Hf});Lf.define(p.registry);const Sa={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Ia={small:"small",medium:"medium"};function Ae(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}var jf=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Pa=(o,e,t,i)=>{for(var r=i>1?void 0:i?Rf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jf(e,t,r),r};class Qr extends ${constructor(){super(),this.currentSelected=null,this.currentFocused=null,this.elementInternals=this.attachInternals(),this.childTreeItems=[],this.elementInternals.role="tree"}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem())}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Ae(t)||this.childTreeItems.length<1)return!0;const i=this.getVisibleNodes();switch(e.key){case mo:{i.length&&i[0].focus();return}case go:{i.length&&i[i.length-1].focus();return}case uo:{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Ae(t.parentElement)&&t.parentElement.focus();return}case po:{t?.childTreeItems?.length&&(t.expanded?this.focusNextNode(1,t):t.expanded=!0);return}case ho:{this.focusNextNode(1,t);return}case bo:{this.focusNextNode(-1,t);return}case fo:{this.clickHandler(e);return}case Jo:{t.selected=!0;return}}return!0}focusHandler(e){if(!(this.childTreeItems.length<1)){if(e.target===this){this.currentFocused=this.getValidFocusableItem(),this.currentFocused&&this.currentFocused.tabIndex<0&&(this.currentFocused.tabIndex=0),this.currentFocused?.focus();return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}}blurHandler(e){e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")}clickHandler(e){if(e.defaultPrevented)return;if(!Ae(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Ae(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Ae(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(i=>i.selected);return t===-1&&(t=e.findIndex(i=>Ae(i))),t!==-1?e[t]:null}getVisibleNodes(){return Array.from(this.querySelectorAll("*")).filter(e=>Ae(e)&&e.offsetParent!==null)}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i.length)return;const r=i[i.indexOf(t)+e];cr(r)&&r.focus()}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Ae(e))}}Pa([g],Qr.prototype,"currentSelected",2),Pa([g],Qr.prototype,"childTreeItems",2);var qf=Object.defineProperty,Wf=Object.getOwnPropertyDescriptor,za=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&qf(e,t,r),r};class Zr extends Qr{constructor(){super(...arguments),this.size=Ia.small,this.appearance=Sa.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}za([a],Zr.prototype,"size",2),za([a],Zr.prototype,"appearance",2);const Gf=u`
576
- ${k("block")}
577
-
578
- :host{outline:none}`,Xf=b`<template tabindex="0" @click="${(o,e)=>o.clickHandler(e.event)}" @focusin="${(o,e)=>o.focusHandler(e.event)}" @focusout="${(o,e)=>o.blurHandler(e.event)}" @keydown="${(o,e)=>o.keydownHandler(e.event)}" @change="${(o,e)=>o.changeHandler(e.event)}"><slot ${_("defaultSlot")} @slotchange="${o=>o.handleDefaultSlotChange()}"></slot></template>`,Uf=Zr.compose({name:`${p.prefix}-tree`,template:Xf,styles:Gf});Uf.define(p.registry);var Kf=Object.defineProperty,Yf=Object.getOwnPropertyDescriptor,ro=(o,e,t,i)=>{for(var r=i>1?void 0:i?Yf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kf(e,t,r),r};class Tt extends ${constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.selected=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),y(this.elementInternals,"expanded",t),this.childTreeItems&&this.childTreeItems.length>0&&(this.elementInternals.ariaExpanded=t?"true":"false")}selectedChanged(e,t){this.updateTabindexBySelected(),this.$emit("change"),y(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false"}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=u`
579
- :host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}connectedCallback(){super.connectedCallback(),this.updateTabindexBySelected()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Ae(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Ae(this.parentElement)}updateTabindexBySelected(){this.$fastController.isConnected&&(this.tabIndex=this.selected?0:-1)}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Ae(e))}}ro([g],Tt.prototype,"itemSlot",2),ro([a({mode:"boolean"})],Tt.prototype,"expanded",2),ro([a({mode:"boolean"})],Tt.prototype,"selected",2),ro([a({mode:"boolean"})],Tt.prototype,"empty",2),ro([a({attribute:"data-indent"})],Tt.prototype,"dataIndent",2),ro([g],Tt.prototype,"childTreeItems",2);var Qf=Object.defineProperty,Zf=Object.getOwnPropertyDescriptor,Ta=(o,e,t,i)=>{for(var r=i>1?void 0:i?Zf(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Qf(e,t,r),r};class Jr extends Tt{constructor(){super(...arguments),this.size=Ia.small,this.appearance=Sa.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Ta([a],Jr.prototype,"size",2),Ta([a],Jr.prototype,"appearance",2);const Jf=u`
580
- ${k("block")}
581
-
582
- :host{outline:none;font-size:${B};line-height:${E}}:host(:focus-visible) .positioning-region{box-shadow:${Cr} ${Cr} ${Cr} ${Rt}
583
- ${me} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Sd};padding-inline-start:calc(var(--indent) * ${wr});padding-inline-end:${V};border-radius:${C};background-color:${cn};color:${Ie};gap:${ne}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${me}}}.content{display:flex;align-items:center;gap:${ne}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${wr};height:${yt};transition:transform ${vi} ${Wn};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${xo};color:${Mt}}.positioning-region:active{background-color:${gt};color:${Dt}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${H}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${dn};color:${ii}}:host([selected]) .content,:host([selected]) .chevron{color:${Al}}:host([size='small']) .positioning-region{height:${yt};padding-inline-start:calc(var(--indent) * ${le})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${Xl}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${Ul}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${Kl};color:${ii}}:host([appearance='transparent']) .positioning-region{background-color:${fe}}:host([appearance='transparent']) .positioning-region:hover{background-color:${li}}:host([appearance='transparent']) .positioning-region:active{background-color:${ci}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${hn};color:${ii}}:host([expanded]) .chevron{transform:rotate(90deg)}`,em=b`<svg viewBox="0 0 12 12" fill="currentColor"><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,tm=b`<template slot="${o=>o.isNestedItem?"item":void 0}"><div class="positioning-region" part="positioning-region"><div class="content" part="content"><span class="chevron" part="chevron" aria-hidden="true"><slot name="chevron">${em}</slot></span><slot name="start"></slot><slot></slot><slot name="end"></slot></div><div class="aside" part="aside"><slot name="aside"></slot></div></div><div role="group" class="items" part="items"><slot name="item" ${_("itemSlot")} @slotchange="${o=>o.handleItemSlotChange()}"></slot></div></template>`,om=Jr.compose({name:`${p.prefix}-tree-item`,template:tm,styles:Jf});om.define(p.registry);
29
+ `,window.CSS_ANCHOR_POLYFILL&&(await window.CSS_ANCHOR_POLYFILL({elements:[this.anchorPositioningStyleElement]}),this.anchorPositioningReady=!0)}}Rr([a],Do.prototype,"id",2),Rr([a({converter:te})],Do.prototype,"delay",2),Rr([a],Do.prototype,"positioning",2),Rr([a],Do.prototype,"anchor",2),Do.define(Hm);const jm=`${h.prefix}-tree`,qm=p`${w("block")} :host{outline:none}`,Wm=b`<template tabindex=0 focusgroup="menu inline block nowrap nomemory" @click=${(o,e)=>o.clickHandler(e.event)} @keydown=${(o,e)=>o.keydownHandler(e.event)} @change=${(o,e)=>o.changeHandler(e.event)} @toggle=${(o,e)=>o.itemToggleHandler()}><slot ${z("defaultSlot")} @slotchange=${o=>o.handleDefaultSlotChange()}></slot></template>`,Um={name:jm,registry:h.registry,styles:qm,template:Wm},_a={subtle:"subtle",subtleAlpha:"subtle-alpha",transparent:"transparent"},Oa={small:"small",medium:"medium"};function Te(o,e="-tree-item"){return o?.nodeType!==Node.ELEMENT_NODE?!1:o.tagName.toLowerCase().endsWith(e)}const Gm=`${h.prefix}-tree-item`;var Xm=Object.defineProperty,Km=Object.getOwnPropertyDescriptor,on=(o,e,t,r)=>{for(var i=r>1?void 0:r?Km(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Xm(e,t,i),i};class jr extends x{constructor(){super(),this.currentSelected=null,this.elementInternals=this.attachInternals(),this.elementInternals.role="tree"}defaultSlotChanged(){this.handleDefaultSlotChange()}childTreeItemsChanged(){this.updateCurrentSelected()}updateCurrentSelected(){const e=this.querySelector("[selected]");this.currentSelected=e}keydownHandler(e){if(e.defaultPrevented)return;const t=e.target;if(!Te(t)||this.childTreeItems.length<1)return!0;switch(e.key){case"ArrowLeft":{t?.childTreeItems?.length&&t.expanded?t.expanded=!1:Te(t.parentElement)&&t.parentElement.focus();return}case"ArrowRight":{if(t?.childTreeItems?.length)if(!t.expanded)t.expanded=!0;else return!0;return}case"Enter":{this.clickHandler(e);return}case" ":{t.selected=!0;return}}return!0}clickHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.toggleExpansion(),t.selected=!0}changeHandler(e){if(e.defaultPrevented)return;if(!Te(e.target))return!0;const t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&Te(this.currentSelected)&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)}handleDefaultSlotChange(){this.childTreeItems=this.defaultSlot.assignedElements().filter(e=>Te(e))}get descendantTreeItems(){const e=[],t=r=>{if(r)for(const i of r)e.push(i),t(i.childTreeItems)};return t(this.childTreeItems),e}}on([g],jr.prototype,"currentSelected",2),on([g],jr.prototype,"defaultSlot",2),on([g],jr.prototype,"childTreeItems",2);var Ym=Object.defineProperty,Jm=Object.getOwnPropertyDescriptor,Ta=(o,e,t,r)=>{for(var i=r>1?void 0:r?Jm(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&Ym(e,t,i),i};class rn extends jr{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance(),this.fgItems??(this.fgItems=new Nr(()=>this.descendantTreeItems.filter(e=>!e.isHidden),()=>this.currentSelected??null)),this.fg?this.fg.update():this.fg=new Er(this,this.fgItems,{definition:{behavior:"menu",axis:void 0,memory:!1}})}disconnectedCallback(){this.fg?.disconnect(),super.disconnectedCallback()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}itemToggleHandler(){this.fg?.update()}}Ta([a],rn.prototype,"size",2),Ta([a],rn.prototype,"appearance",2),rn.define(Um);const Zm=p`${w("block")} :host{outline:none;font-size:${B};line-height:${L}}:host(:focus-visible) .positioning-region{box-shadow:${Ci} ${Ci} ${Ci} ${fr} ${le} inset}.positioning-region{display:flex;align-items:center;justify-content:space-between;cursor:pointer;height:${Vd};padding-inline-start:calc(var(--indent) * ${gr});padding-inline-end:${ie};border-radius:${S};background-color:${ps};color:${Be};gap:${oe}}@media (prefers-contrast:more){:host(:focus-visible) .positioning-region{outline:1px solid ${le}}}.content{display:flex;align-items:center;gap:${oe}}.chevron{display:flex;align-items:center;flex-shrink:0;justify-content:center;width:${gr};height:${zt};transition:transform ${mr} ${Ks};transform:rotate(0deg)}.chevron:dir(rtl){transform:rotate(180deg)}.chevron svg{inline-size:12px;block-size:12px}.aside{display:flex;align-items:center}.positioning-region:hover{background-color:${ir};color:${Dt}}.positioning-region:active{background-color:${vo};color:${Ht}}::slotted([slot='start']),::slotted([slot='end']),::slotted(:not([slot])){display:flex;align-items:center;min-width:0}::slotted([slot='start']){flex-shrink:0}::slotted(:not([slot])){padding-inline:${V}}.items{display:none}:host([expanded]) .items{display:block}:host([empty]) .chevron,:host([empty]) .items{visibility:hidden}:host([selected]) .positioning-region{background-color:${gs};color:${Qo}}:host([selected]) .content,:host([selected]) .chevron{color:${Xl}}:host([size='small']) .positioning-region{height:${zt};padding-inline-start:calc(var(--indent) * ${re})}:host([appearance='subtle-alpha']) .positioning-region:hover{background-color:${cc}}:host([appearance='subtle-alpha']) .positioning-region:active{background-color:${dc}}:host([appearance='subtle-alpha'][selected]) .positioning-region{background-color:${hc};color:${Qo}}:host([appearance='transparent']) .positioning-region{background-color:${he}}:host([appearance='transparent']) .positioning-region:hover{background-color:${nr}}:host([appearance='transparent']) .positioning-region:active{background-color:${sr}}:host([appearance='transparent'][selected]) .positioning-region{background-color:${fs};color:${Qo}}:host([expanded]) .chevron{transform:rotate(90deg)}`,Qm=b`<svg viewBox="0 0 12 12" fill=currentColor><path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"></path></svg>`,ev=b`<template tabindex=0 ?focusgroupstart=${o=>o.selected}><div class=positioning-region part=positioning-region><div class=content part=content><span class=chevron part=chevron aria-hidden=true><slot name=chevron>${Qm}</slot></span><slot name=start></slot><slot></slot><slot name=end></slot></div><div class=aside part=aside><slot name=aside></slot></div></div><div role=group class=items part=items><slot name=item ${z("itemSlot")} @slotchange=${o=>o.handleItemSlotChange()}></slot></div></template>`,tv={name:Gm,registry:h.registry,styles:Zm,template:ev};var ov=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,no=(o,e,t,r)=>{for(var i=r>1?void 0:r?rv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&ov(e,t,i),i};class Ft extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.expanded=!1,this.empty=!1,this.childTreeItems=[],this.elementInternals.role="treeitem"}itemSlotChanged(){this.handleItemSlotChange()}connectedCallback(){super.connectedCallback(),this.tabIndex=Number(this.getAttribute("tabindex")||"0"),Te(this.parentElement)&&(this.slot||(this.slot="item")),et(this)}expandedChanged(e,t){this.$emit("toggle",{oldState:e?"open":"closed",newState:t?"open":"closed"}),$(this.elementInternals,"expanded",t),this.childTreeItems?.length&&(this.elementInternals.ariaExpanded=t?"true":"false",requestAnimationFrame(()=>{const r=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT,i=>Te(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP);for(;r.nextNode();){const i=r.currentNode;t?i.removeAttribute("focusgroup"):(i.selected&&(i.selected=!1),i.setAttribute("focusgroup","none"))}}))}selectedChanged(e,t){this.$emit("change"),this.elementInternals&&($(this.elementInternals,"selected",t),this.elementInternals.ariaSelected=t?"true":"false")}dataIndentChanged(e,t){this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=p`:host{--indent:${t}}`,this.$fastController.addStyles(this.styles)}childTreeItemsChanged(){this.empty=this.childTreeItems?.length===0,this.updateChildTreeItems()}updateChildTreeItems(){this.childTreeItems?.length&&(this.expanded||(this.expanded=Array.from(this.querySelectorAll("[selected]")).some(e=>Te(e))),this.childTreeItems.forEach(e=>{this.setIndent(e)}))}setIndent(e){const t=this.dataIndent??0;e.dataIndent=t+1}toggleExpansion(){this.childTreeItems?.length&&(this.expanded=!this.expanded)}get isNestedItem(){return Te(this.parentElement)}get isHidden(){let e=this.parentElement;for(;Te(e);){if(!e.expanded)return!0;e=e.parentElement}return!1}handleItemSlotChange(){this.childTreeItems=this.itemSlot.assignedElements().filter(e=>Te(e))}}no([g],Ft.prototype,"itemSlot",2),no([a({mode:"boolean"})],Ft.prototype,"expanded",2),no([a({mode:"boolean"})],Ft.prototype,"selected",2),no([a({mode:"boolean"})],Ft.prototype,"empty",2),no([a({attribute:"data-indent"})],Ft.prototype,"dataIndent",2),no([g],Ft.prototype,"childTreeItems",2);var iv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,Aa=(o,e,t,r)=>{for(var i=r>1?void 0:r?nv(e,t):e,n=o.length-1,s;n>=0;n--)(s=o[n])&&(i=(r?s(e,t,i):s(i))||i);return r&&i&&iv(e,t,i),i};class nn extends Ft{constructor(){super(...arguments),this.size=Oa.small,this.appearance=_a.subtle}sizeChanged(){this.updateSizeAndAppearance()}appearanceChanged(){this.updateSizeAndAppearance()}childTreeItemsChanged(){super.childTreeItemsChanged(),this.updateSizeAndAppearance()}updateSizeAndAppearance(){this.childTreeItems?.length&&this.childTreeItems.forEach(e=>{e.size=this.size,e.appearance=this.appearance})}}Aa([a],nn.prototype,"size",2),Aa([a],nn.prototype,"appearance",2),nn.define(tv);const sv="adoptedStyleSheets"in document,av="CSSScopeRule"in window,sn=new Map,an=new Map,Ho=new Map,ln=new Map,Vo=new CSSStyleSheet;function lv(o,e=document){if(!(!e||!cv(e))){if(!sv||e instanceof HTMLElement&&!e.shadowRoot&&!av){const t=e===document?document.documentElement:e;gv(o,t);return}[document,document.documentElement,document.body].includes(e)?dv(o):hv(o,e)}}function cn(o){if(!sn.has(o)){const e=[];for(const[t,r]of Object.entries(o))e.push(`--${t}:${r.toString()};`);sn.set(o,e.join(""))}return sn.get(o)}function cv(o){return[document,document.documentElement].includes(o)||o instanceof HTMLElement&&!!o.closest("body")}function dv(o){if(o===null){document.adoptedStyleSheets.includes(Vo)&&Vo.replaceSync("");return}Vo.replaceSync(`
30
+ html {
31
+ ${cn(o)}
32
+ }
33
+ `),document.adoptedStyleSheets.includes(Vo)||document.adoptedStyleSheets.push(Vo)}function hv(o,e){if(o===null){e.shadowRoot&&Ho.has(e)?Ho.get(e).replaceSync(""):(delete e.dataset.fluentTheme,Ba(e));return}e.shadowRoot?uv(e).replaceSync(`
34
+ :host {
35
+ ${cn(o)}
36
+ }
37
+ `):(e.dataset.fluentTheme=pv(o),Ba(e))}function uv(o){if(!Ho.has(o)){const e=new CSSStyleSheet;Ho.set(o,e),o.shadowRoot?.adoptedStyleSheets.push(e)}return Ho.get(o)}function pv(o){if(!an.has(o)){const e=Xe("fluent-theme-"),t=new CSSStyleSheet;an.set(o,e),t.replaceSync(`
38
+ @scope ([data-fluent-theme="${e}"]) {
39
+ :scope {
40
+ ${cn(o)}
41
+ }
42
+ }
43
+ `),document.adoptedStyleSheets.push(t)}return an.get(o)}function gv(o,e){let t;if(o===null){if(!ln.has(e))return;t=ln.get(e)}else ln.set(e,o),t=o;for(const[r,i]of Object.entries(t))o===null?e.style.removeProperty(`--${r}`):e.style.setProperty(`--${r}`,i.toString())}const{userAgent:fv}=navigator,bv=/\bAppleWebKit\/[\d+\.]+\b/.test(fv);function Ba(o){if(!bv)return;const e="visibility",t="hidden",r=o.style.getPropertyValue(e);o.style.setProperty(e,t),O.process(),o.style.setProperty(e,r)}globalThis.Fluent={...globalThis.Fluent,setTheme:lv};