@vonage/vivid 5.15.1 → 5.17.0

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 (732) hide show
  1. package/accordion/definition.cjs +7 -207
  2. package/accordion/definition.js +2 -199
  3. package/accordion/index.cjs +4 -4
  4. package/accordion/index.js +93 -127
  5. package/accordion-item/definition.cjs +6 -146
  6. package/accordion-item/definition.js +2 -139
  7. package/accordion-item/index.cjs +1 -1
  8. package/accordion-item/index.js +6 -2
  9. package/action-group/definition.cjs +5 -69
  10. package/action-group/definition.js +1 -62
  11. package/action-group/index.cjs +4 -4
  12. package/action-group/index.js +16 -46
  13. package/alert/definition.cjs +6 -201
  14. package/alert/definition.js +2 -194
  15. package/alert/index.cjs +15 -15
  16. package/alert/index.js +90 -136
  17. package/audio-player/definition.cjs +6 -459
  18. package/audio-player/definition.js +2 -452
  19. package/audio-player/index.cjs +49 -49
  20. package/audio-player/index.js +234 -302
  21. package/avatar/definition.cjs +6 -117
  22. package/avatar/definition.js +2 -110
  23. package/avatar/index.cjs +14 -14
  24. package/avatar/index.js +44 -84
  25. package/badge/definition.cjs +6 -85
  26. package/badge/definition.js +2 -78
  27. package/badge/index.cjs +4 -4
  28. package/badge/index.js +21 -65
  29. package/banner/definition.cjs +6 -160
  30. package/banner/definition.js +2 -153
  31. package/banner/index.cjs +13 -13
  32. package/banner/index.js +76 -109
  33. package/breadcrumb/definition.cjs +5 -97
  34. package/breadcrumb/definition.js +1 -90
  35. package/breadcrumb/index.cjs +4 -4
  36. package/breadcrumb/index.js +33 -59
  37. package/breadcrumb-item/definition.cjs +7 -47
  38. package/breadcrumb-item/definition.js +3 -40
  39. package/breadcrumb-item/index.cjs +5 -5
  40. package/breadcrumb-item/index.js +20 -32
  41. package/bundled/affix.cjs +10 -10
  42. package/bundled/affix.js +44 -57
  43. package/bundled/anchored.cjs +3 -3
  44. package/bundled/anchored.js +47 -65
  45. package/bundled/aria.cjs +1 -1
  46. package/bundled/aria.js +6 -6
  47. package/bundled/attribute-binding-behaviour.cjs +1 -1
  48. package/bundled/attribute-binding-behaviour.js +17 -28
  49. package/bundled/base-color-picker.cjs +10 -10
  50. package/bundled/base-color-picker.js +115 -197
  51. package/bundled/base-progress.cjs +1 -1
  52. package/bundled/base-progress.js +29 -56
  53. package/bundled/breadcrumb-item.cjs +1 -1
  54. package/bundled/breadcrumb-item.js +11 -20
  55. package/bundled/button.cjs +1 -1
  56. package/bundled/button.js +65 -100
  57. package/bundled/calendar-event.cjs +1 -1
  58. package/bundled/calendar-event.js +11 -34
  59. package/bundled/calendar-picker.template.cjs +77 -77
  60. package/bundled/calendar-picker.template.js +2883 -3347
  61. package/bundled/char-count.cjs +7 -7
  62. package/bundled/char-count.js +31 -46
  63. package/bundled/children.cjs +1 -1
  64. package/bundled/children.js +27 -45
  65. package/bundled/class-names.cjs +1 -1
  66. package/bundled/class-names.js +8 -8
  67. package/bundled/data-grid.options.cjs +1 -1
  68. package/bundled/data-grid.options.js +22 -26
  69. package/bundled/decorate.cjs +1 -0
  70. package/bundled/decorate.js +9 -0
  71. package/bundled/definition.cjs +1 -39
  72. package/bundled/definition.js +5 -122
  73. package/bundled/definition10.cjs +18 -72
  74. package/bundled/definition10.js +74 -355
  75. package/bundled/definition11.cjs +10 -12
  76. package/bundled/definition11.js +28 -92
  77. package/bundled/definition12.cjs +72 -18
  78. package/bundled/definition12.js +192 -222
  79. package/bundled/definition13.cjs +20 -10
  80. package/bundled/definition13.js +55 -41
  81. package/bundled/definition14.cjs +5 -1
  82. package/bundled/definition14.js +11 -20
  83. package/bundled/definition15.cjs +19 -5
  84. package/bundled/definition15.js +77 -28
  85. package/bundled/definition16.cjs +12 -29
  86. package/bundled/definition16.js +80 -78
  87. package/bundled/definition17.cjs +17 -17
  88. package/bundled/definition17.js +126 -98
  89. package/bundled/definition18.cjs +87 -13
  90. package/bundled/definition18.js +423 -134
  91. package/bundled/definition19.cjs +5 -87
  92. package/bundled/definition19.js +16 -742
  93. package/bundled/definition2.cjs +8 -8
  94. package/bundled/definition2.js +79 -122
  95. package/bundled/definition20.cjs +26 -16
  96. package/bundled/definition20.js +153 -98
  97. package/bundled/definition21.cjs +29 -5
  98. package/bundled/definition21.js +174 -18
  99. package/bundled/definition22.cjs +38 -23
  100. package/bundled/definition22.js +70 -149
  101. package/bundled/definition3.cjs +1 -29
  102. package/bundled/definition3.js +183 -194
  103. package/bundled/definition4.cjs +24 -6
  104. package/bundled/definition4.js +88 -40
  105. package/bundled/definition5.cjs +30 -1
  106. package/bundled/definition5.js +48 -346
  107. package/bundled/definition6.cjs +28 -30
  108. package/bundled/definition6.js +110 -264
  109. package/bundled/definition7.cjs +6 -30
  110. package/bundled/definition7.js +22 -288
  111. package/bundled/definition8.cjs +13 -18
  112. package/bundled/definition8.js +150 -132
  113. package/bundled/definition9.cjs +12 -14
  114. package/bundled/definition9.js +67 -235
  115. package/bundled/delegates-aria.cjs +1 -1
  116. package/bundled/delegates-aria.js +56 -88
  117. package/bundled/dialog.cjs +1 -0
  118. package/bundled/dialog.js +6 -0
  119. package/bundled/divider.cjs +1 -1
  120. package/bundled/divider.js +16 -33
  121. package/bundled/dom.cjs +1 -1
  122. package/bundled/dom.js +5 -5
  123. package/bundled/enums.cjs +1 -1
  124. package/bundled/enums.js +16 -9
  125. package/bundled/floating-ui.dom.cjs +1 -1
  126. package/bundled/floating-ui.dom.js +953 -1238
  127. package/bundled/form-associated.cjs +1 -1
  128. package/bundled/form-associated.js +165 -318
  129. package/bundled/form-element.cjs +1 -1
  130. package/bundled/form-element.js +33 -55
  131. package/bundled/host-semantics.cjs +1 -1
  132. package/bundled/host-semantics.js +46 -69
  133. package/bundled/key-codes.cjs +1 -1
  134. package/bundled/key-codes.js +4 -16
  135. package/bundled/linkable.cjs +6 -6
  136. package/bundled/linkable.js +25 -45
  137. package/bundled/listbox.cjs +1 -1
  138. package/bundled/listbox.js +176 -351
  139. package/bundled/localized.cjs +1 -1
  140. package/bundled/localized.js +451 -564
  141. package/bundled/mixins.cjs +20 -20
  142. package/bundled/mixins.js +162 -210
  143. package/bundled/normalize.cjs +1 -1
  144. package/bundled/normalize.js +6 -6
  145. package/bundled/numbers.cjs +1 -1
  146. package/bundled/numbers.js +9 -11
  147. package/bundled/picker-field.template.cjs +23 -23
  148. package/bundled/picker-field.template.js +108 -171
  149. package/bundled/playbackRates.cjs +1 -1
  150. package/bundled/playbackRates.js +10 -10
  151. package/bundled/ref.cjs +1 -1
  152. package/bundled/ref.js +10 -14
  153. package/bundled/repeat.cjs +1 -1
  154. package/bundled/repeat.js +421 -552
  155. package/bundled/scrollIntoView.cjs +1 -1
  156. package/bundled/scrollIntoView.js +26 -29
  157. package/bundled/single-date-picker.cjs +1 -1
  158. package/bundled/single-date-picker.js +23 -38
  159. package/bundled/single-value-picker.cjs +1 -1
  160. package/bundled/single-value-picker.js +58 -86
  161. package/bundled/slider.template.cjs +14 -14
  162. package/bundled/slider.template.js +67 -78
  163. package/bundled/slottable-request.cjs +4 -4
  164. package/bundled/slottable-request.js +1907 -2904
  165. package/bundled/slotted.cjs +1 -1
  166. package/bundled/slotted.js +47 -97
  167. package/bundled/strings.cjs +1 -1
  168. package/bundled/strings.js +6 -6
  169. package/bundled/text-field.cjs +1 -1
  170. package/bundled/text-field.js +4 -4
  171. package/bundled/time-selection-picker.template.cjs +26 -26
  172. package/bundled/time-selection-picker.template.js +355 -552
  173. package/bundled/trapped-focus.cjs +1 -1
  174. package/bundled/trapped-focus.js +18 -25
  175. package/bundled/vivid-element.cjs +4 -5
  176. package/bundled/vivid-element.js +1781 -2806
  177. package/bundled/when.cjs +1 -1
  178. package/bundled/when.js +10 -10
  179. package/bundled/with-contextual-help.cjs +1 -1
  180. package/bundled/with-contextual-help.js +15 -31
  181. package/bundled/with-error-text.cjs +1 -1
  182. package/bundled/with-error-text.js +25 -38
  183. package/bundled/with-success-text.cjs +1 -1
  184. package/bundled/with-success-text.js +8 -15
  185. package/button/definition.cjs +6 -14
  186. package/button/definition.js +3 -4
  187. package/button/index.cjs +1 -1
  188. package/button/index.js +6 -2
  189. package/calendar/definition.cjs +5 -358
  190. package/calendar/definition.js +1 -351
  191. package/calendar/index.cjs +20 -20
  192. package/calendar/index.js +165 -427
  193. package/calendar-event/definition.cjs +6 -58
  194. package/calendar-event/definition.js +2 -51
  195. package/calendar-event/index.cjs +7 -7
  196. package/calendar-event/index.js +25 -41
  197. package/card/definition.cjs +6 -194
  198. package/card/definition.js +2 -187
  199. package/card/index.cjs +37 -34
  200. package/card/index.js +83 -133
  201. package/checkbox/definition.cjs +6 -209
  202. package/checkbox/definition.js +2 -202
  203. package/checkbox/index.cjs +1 -1
  204. package/checkbox/index.js +6 -2
  205. package/color-picker/definition.cjs +6 -1175
  206. package/color-picker/definition.js +2 -1168
  207. package/color-picker/index.cjs +94 -94
  208. package/color-picker/index.js +605 -737
  209. package/combobox/definition.cjs +6 -647
  210. package/combobox/definition.js +2 -640
  211. package/combobox/index.cjs +38 -37
  212. package/combobox/index.js +258 -458
  213. package/contextual-help/definition.cjs +6 -63
  214. package/contextual-help/definition.js +2 -56
  215. package/contextual-help/index.cjs +1 -1
  216. package/contextual-help/index.js +6 -2
  217. package/country/definition.cjs +6 -340
  218. package/country/definition.js +2 -333
  219. package/country/index.cjs +6 -6
  220. package/country/index.js +1209 -308
  221. package/custom-elements.json +1247 -1173
  222. package/data-grid/definition.cjs +10 -2350
  223. package/data-grid/definition.js +2 -2339
  224. package/data-grid/index.cjs +65 -65
  225. package/data-grid/index.js +644 -997
  226. package/date-picker/definition.cjs +6 -152
  227. package/date-picker/definition.js +2 -145
  228. package/date-picker/index.cjs +1 -1
  229. package/date-picker/index.js +66 -114
  230. package/date-range-picker/definition.cjs +6 -467
  231. package/date-range-picker/definition.js +2 -460
  232. package/date-range-picker/index.cjs +1 -1
  233. package/date-range-picker/index.js +218 -334
  234. package/date-time-picker/definition.cjs +6 -285
  235. package/date-time-picker/definition.js +2 -278
  236. package/date-time-picker/index.cjs +4 -4
  237. package/date-time-picker/index.js +116 -211
  238. package/dial-pad/definition.cjs +6 -460
  239. package/dial-pad/definition.js +2 -453
  240. package/dial-pad/index.cjs +44 -43
  241. package/dial-pad/index.js +197 -288
  242. package/dialog/definition.cjs +6 -349
  243. package/dialog/definition.js +2 -342
  244. package/dialog/index.cjs +28 -28
  245. package/dialog/index.js +148 -229
  246. package/divider/definition.cjs +6 -42
  247. package/divider/definition.js +2 -35
  248. package/divider/index.cjs +1 -1
  249. package/divider/index.js +5 -2
  250. package/elevation/definition.cjs +4 -11
  251. package/elevation/definition.js +2 -2
  252. package/elevation/index.cjs +1 -1
  253. package/elevation/index.js +5 -2
  254. package/empty-state/definition.cjs +6 -86
  255. package/empty-state/definition.js +2 -79
  256. package/empty-state/index.cjs +9 -9
  257. package/empty-state/index.js +28 -60
  258. package/fab/definition.cjs +6 -105
  259. package/fab/definition.js +2 -98
  260. package/fab/index.cjs +17 -17
  261. package/fab/index.js +46 -81
  262. package/file-picker/definition.cjs +6 -523
  263. package/file-picker/definition.js +2 -516
  264. package/file-picker/index.cjs +32 -29
  265. package/file-picker/index.js +254 -356
  266. package/header/definition.cjs +5 -78
  267. package/header/definition.js +1 -71
  268. package/header/index.cjs +6 -6
  269. package/header/index.js +28 -42
  270. package/icon/definition.cjs +5 -202
  271. package/icon/definition.js +1 -195
  272. package/icon/index.cjs +1 -1
  273. package/icon/index.js +5 -2
  274. package/index.cjs +353 -356
  275. package/index.js +79 -78
  276. package/layout/definition.cjs +5 -72
  277. package/layout/definition.js +1 -65
  278. package/layout/index.cjs +2 -2
  279. package/layout/index.js +10 -51
  280. package/lib/alert/alert.d.ts +0 -1
  281. package/lib/audio-player/audio-player.d.ts +0 -1
  282. package/lib/banner/banner.d.ts +0 -2
  283. package/lib/button/button.d.ts +0 -1
  284. package/lib/calendar/calendar.d.ts +0 -1
  285. package/lib/combobox/combobox.d.ts +0 -3
  286. package/lib/data-grid/data-grid-cell.d.ts +0 -3
  287. package/lib/data-grid/data-grid-row.d.ts +0 -3
  288. package/lib/data-grid/data-grid.d.ts +0 -1
  289. package/lib/date-time-picker/date-time-picker.d.ts +0 -4
  290. package/lib/dial-pad/dial-pad.d.ts +6 -2
  291. package/lib/dialog/dialog.d.ts +0 -1
  292. package/lib/fab/fab.d.ts +0 -1
  293. package/lib/file-picker/file-picker.d.ts +1 -1
  294. package/lib/icon/icon.d.ts +0 -1
  295. package/lib/menu/menu.d.ts +0 -1
  296. package/lib/option/option.d.ts +4 -1
  297. package/lib/pagination/pagination.d.ts +0 -4
  298. package/lib/popover/popover.d.ts +0 -5
  299. package/lib/rich-text-editor/rte/exports.d.ts +1 -0
  300. package/lib/rich-text-editor/rte/features/alignment.d.ts +1 -1
  301. package/lib/rich-text-editor/rte/features/character-count.d.ts +21 -0
  302. package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +1 -1
  303. package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +1 -1
  304. package/lib/rich-text-editor/rte/features/keyboard-shortcuts.d.ts +1 -1
  305. package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +1 -1
  306. package/lib/rich-text-editor/rte/public-interface.d.ts +6 -0
  307. package/lib/searchable-select/option-tag.d.ts +0 -1
  308. package/lib/split-button/split-button.d.ts +0 -2
  309. package/lib/tab/tab.d.ts +0 -2
  310. package/lib/table/definition.d.ts +2 -1
  311. package/lib/table/table-header-cell.d.ts +3 -0
  312. package/lib/table/table-sorting-button.d.ts +415 -0
  313. package/lib/table/table-sorting-button.template.d.ts +3 -0
  314. package/lib/tag/tag.d.ts +0 -2
  315. package/lib/toggletip/toggletip.d.ts +0 -1
  316. package/lib/tree-item/tree-item.d.ts +0 -2
  317. package/lib/tree-view/tree-view.d.ts +0 -1
  318. package/locales/de-DE.cjs +266 -550
  319. package/locales/de-DE.js +264 -548
  320. package/locales/en-GB.cjs +266 -382
  321. package/locales/en-GB.js +264 -380
  322. package/locales/en-US.cjs +266 -550
  323. package/locales/en-US.js +264 -548
  324. package/locales/ja-JP.cjs +266 -549
  325. package/locales/ja-JP.js +264 -547
  326. package/locales/zh-CN.cjs +266 -551
  327. package/locales/zh-CN.js +264 -549
  328. package/menu/definition.cjs +6 -393
  329. package/menu/definition.js +2 -386
  330. package/menu/index.cjs +1 -1
  331. package/menu/index.js +6 -2
  332. package/menu-item/definition.cjs +7 -14
  333. package/menu-item/definition.js +3 -3
  334. package/menu-item/index.cjs +1 -1
  335. package/menu-item/index.js +6 -2
  336. package/nav/definition.cjs +5 -27
  337. package/nav/definition.js +1 -20
  338. package/nav/index.cjs +3 -3
  339. package/nav/index.js +7 -10
  340. package/nav-disclosure/definition.cjs +6 -122
  341. package/nav-disclosure/definition.js +2 -115
  342. package/nav-disclosure/index.cjs +8 -8
  343. package/nav-disclosure/index.js +49 -86
  344. package/nav-item/definition.cjs +6 -79
  345. package/nav-item/definition.js +2 -72
  346. package/nav-item/index.cjs +2 -2
  347. package/nav-item/index.js +33 -58
  348. package/note/definition.cjs +6 -61
  349. package/note/definition.js +2 -54
  350. package/note/index.cjs +5 -5
  351. package/note/index.js +24 -38
  352. package/number-field/definition.cjs +6 -440
  353. package/number-field/definition.js +2 -433
  354. package/number-field/index.cjs +31 -31
  355. package/number-field/index.js +160 -328
  356. package/option/definition.cjs +6 -13
  357. package/option/definition.js +3 -3
  358. package/option/index.cjs +1 -1
  359. package/option/index.js +6 -2
  360. package/package.json +15 -17
  361. package/pagination/definition.cjs +6 -254
  362. package/pagination/definition.js +2 -247
  363. package/pagination/index.cjs +37 -37
  364. package/pagination/index.js +148 -186
  365. package/popover/definition.cjs +6 -356
  366. package/popover/definition.js +2 -349
  367. package/popover/index.cjs +16 -16
  368. package/popover/index.js +161 -239
  369. package/popup/definition.cjs +5 -13
  370. package/popup/definition.js +3 -4
  371. package/popup/index.cjs +1 -1
  372. package/popup/index.js +6 -2
  373. package/progress/definition.cjs +5 -87
  374. package/progress/definition.js +1 -80
  375. package/progress/index.cjs +9 -9
  376. package/progress/index.js +33 -55
  377. package/progress-ring/definition.cjs +5 -95
  378. package/progress-ring/definition.js +1 -88
  379. package/progress-ring/index.cjs +1 -1
  380. package/progress-ring/index.js +5 -2
  381. package/radio/definition.cjs +5 -227
  382. package/radio/definition.js +1 -220
  383. package/radio/index.cjs +1 -1
  384. package/radio/index.js +5 -2
  385. package/radio-group/definition.cjs +6 -361
  386. package/radio-group/definition.js +2 -354
  387. package/radio-group/index.cjs +10 -10
  388. package/radio-group/index.js +160 -242
  389. package/range-slider/definition.cjs +6 -632
  390. package/range-slider/definition.js +2 -625
  391. package/range-slider/index.cjs +41 -41
  392. package/range-slider/index.js +259 -429
  393. package/rich-text-editor/definition.cjs +33 -15694
  394. package/rich-text-editor/definition.js +3 -15662
  395. package/rich-text-editor/index.cjs +18 -18
  396. package/rich-text-editor/index.js +9129 -11475
  397. package/rich-text-view/definition.cjs +5 -171
  398. package/rich-text-view/definition.js +1 -164
  399. package/rich-text-view/index.cjs +1 -1
  400. package/rich-text-view/index.js +68 -102
  401. package/searchable-select/definition.cjs +5 -1401
  402. package/searchable-select/definition.js +2 -1395
  403. package/searchable-select/index.cjs +94 -94
  404. package/searchable-select/index.js +600 -1015
  405. package/select/definition.cjs +6 -1002
  406. package/select/definition.js +2 -995
  407. package/select/index.cjs +1 -1
  408. package/select/index.js +6 -2
  409. package/selectable-box/definition.cjs +6 -174
  410. package/selectable-box/definition.js +2 -167
  411. package/selectable-box/index.cjs +18 -18
  412. package/selectable-box/index.js +66 -127
  413. package/shared/foundation/test-utilities/fixture.d.ts +1 -1
  414. package/shared/patterns/linkable.d.ts +1 -1
  415. package/side-drawer/definition.cjs +5 -130
  416. package/side-drawer/definition.js +1 -123
  417. package/side-drawer/index.cjs +7 -7
  418. package/side-drawer/index.js +47 -89
  419. package/simple-color-picker/definition.cjs +6 -225
  420. package/simple-color-picker/definition.js +2 -218
  421. package/simple-color-picker/index.cjs +15 -15
  422. package/simple-color-picker/index.js +98 -135
  423. package/slider/definition.cjs +6 -499
  424. package/slider/definition.js +2 -492
  425. package/slider/index.cjs +1 -1
  426. package/slider/index.js +6 -2
  427. package/split-button/definition.cjs +6 -176
  428. package/split-button/definition.js +2 -169
  429. package/split-button/index.cjs +15 -15
  430. package/split-button/index.js +74 -135
  431. package/status/definition.cjs +6 -82
  432. package/status/definition.js +2 -75
  433. package/status/index.cjs +7 -7
  434. package/status/index.js +35 -52
  435. package/switch/definition.cjs +6 -148
  436. package/switch/definition.js +2 -141
  437. package/switch/index.cjs +8 -8
  438. package/switch/index.js +48 -92
  439. package/tab/definition.cjs +6 -127
  440. package/tab/definition.js +2 -120
  441. package/tab/index.cjs +1 -1
  442. package/tab/index.js +6 -2
  443. package/tab-panel/definition.cjs +5 -29
  444. package/tab-panel/definition.js +1 -22
  445. package/tab-panel/index.cjs +1 -1
  446. package/tab-panel/index.js +5 -2
  447. package/table/definition.cjs +18 -174
  448. package/table/definition.js +3 -158
  449. package/table/index.cjs +19 -10
  450. package/table/index.js +74 -82
  451. package/tabs/definition.cjs +7 -467
  452. package/tabs/definition.js +2 -459
  453. package/tabs/index.cjs +11 -11
  454. package/tabs/index.js +169 -296
  455. package/tag/definition.cjs +6 -176
  456. package/tag/definition.js +2 -169
  457. package/tag/index.cjs +26 -26
  458. package/tag/index.js +64 -125
  459. package/tag-group/definition.cjs +5 -40
  460. package/tag-group/definition.js +1 -33
  461. package/tag-group/index.cjs +4 -4
  462. package/tag-group/index.js +10 -21
  463. package/text-area/definition.cjs +6 -355
  464. package/text-area/definition.js +2 -348
  465. package/text-area/index.cjs +11 -11
  466. package/text-area/index.js +153 -260
  467. package/text-field/definition.cjs +6 -423
  468. package/text-field/definition.js +2 -416
  469. package/text-field/index.cjs +1 -1
  470. package/text-field/index.js +6 -2
  471. package/time-picker/definition.cjs +7 -43
  472. package/time-picker/definition.js +3 -36
  473. package/time-picker/index.cjs +1 -1
  474. package/time-picker/index.js +24 -29
  475. package/toggletip/definition.cjs +6 -159
  476. package/toggletip/definition.js +2 -152
  477. package/toggletip/index.cjs +1 -1
  478. package/toggletip/index.js +6 -2
  479. package/tooltip/definition.cjs +6 -139
  480. package/tooltip/definition.js +2 -132
  481. package/tooltip/index.cjs +1 -1
  482. package/tooltip/index.js +6 -2
  483. package/tree-item/definition.cjs +6 -13
  484. package/tree-item/definition.js +3 -3
  485. package/tree-item/index.cjs +1 -1
  486. package/tree-item/index.js +6 -2
  487. package/tree-view/definition.cjs +6 -302
  488. package/tree-view/definition.js +2 -295
  489. package/tree-view/index.cjs +11 -11
  490. package/tree-view/index.js +145 -174
  491. package/unbundled/affix.cjs +89 -62
  492. package/unbundled/affix.js +58 -55
  493. package/unbundled/anchored.cjs +87 -94
  494. package/unbundled/anchored.js +74 -90
  495. package/unbundled/attribute-binding-behaviour.cjs +37 -42
  496. package/unbundled/attribute-binding-behaviour.js +31 -40
  497. package/unbundled/base-color-picker.cjs +226 -275
  498. package/unbundled/base-color-picker.js +214 -272
  499. package/unbundled/base-progress.cjs +63 -78
  500. package/unbundled/base-progress.js +57 -76
  501. package/unbundled/breadcrumb-item.cjs +24 -28
  502. package/unbundled/breadcrumb-item.js +18 -26
  503. package/unbundled/button.cjs +115 -166
  504. package/unbundled/button.js +109 -164
  505. package/unbundled/calendar-event.cjs +28 -41
  506. package/unbundled/calendar-event.js +22 -39
  507. package/unbundled/calendar-picker.template.cjs +4967 -792
  508. package/unbundled/calendar-picker.template.js +4907 -781
  509. package/unbundled/char-count.cjs +50 -80
  510. package/unbundled/char-count.js +44 -78
  511. package/unbundled/chunk.cjs +28 -0
  512. package/unbundled/data-grid.options.cjs +80 -29
  513. package/unbundled/data-grid.options.js +51 -23
  514. package/unbundled/decorate.cjs +14 -0
  515. package/unbundled/decorate.js +9 -0
  516. package/unbundled/definition.cjs +42 -405
  517. package/unbundled/definition.js +24 -399
  518. package/unbundled/definition10.cjs +253 -0
  519. package/unbundled/definition10.js +229 -0
  520. package/unbundled/definition11.cjs +397 -0
  521. package/unbundled/definition11.js +379 -0
  522. package/unbundled/definition12.cjs +317 -0
  523. package/unbundled/definition12.js +287 -0
  524. package/unbundled/definition13.cjs +321 -0
  525. package/unbundled/definition13.js +303 -0
  526. package/unbundled/definition14.cjs +406 -0
  527. package/unbundled/definition14.js +388 -0
  528. package/unbundled/definition15.cjs +107 -0
  529. package/unbundled/definition15.js +89 -0
  530. package/unbundled/definition16.cjs +63 -0
  531. package/unbundled/definition16.js +45 -0
  532. package/unbundled/definition17.cjs +151 -0
  533. package/unbundled/definition17.js +133 -0
  534. package/unbundled/definition18.cjs +47 -0
  535. package/unbundled/definition18.js +35 -0
  536. package/unbundled/definition19.cjs +98 -0
  537. package/unbundled/definition19.js +80 -0
  538. package/unbundled/definition2.cjs +180 -220
  539. package/unbundled/definition2.js +162 -215
  540. package/unbundled/definition20.cjs +56 -0
  541. package/unbundled/definition20.js +43 -0
  542. package/unbundled/definition21.cjs +304 -0
  543. package/unbundled/definition21.js +285 -0
  544. package/unbundled/definition22.cjs +179 -0
  545. package/unbundled/definition22.js +161 -0
  546. package/unbundled/definition23.cjs +161 -0
  547. package/unbundled/definition23.js +143 -0
  548. package/unbundled/definition24.cjs +157 -0
  549. package/unbundled/definition24.js +139 -0
  550. package/unbundled/definition25.cjs +75 -0
  551. package/unbundled/definition25.js +57 -0
  552. package/unbundled/definition26.cjs +363 -0
  553. package/unbundled/definition26.js +345 -0
  554. package/unbundled/definition27.cjs +137 -0
  555. package/unbundled/definition27.js +119 -0
  556. package/unbundled/definition28.cjs +538 -0
  557. package/unbundled/definition28.js +520 -0
  558. package/unbundled/definition29.cjs +236 -0
  559. package/unbundled/definition29.js +212 -0
  560. package/unbundled/definition3.cjs +131 -284
  561. package/unbundled/definition3.js +113 -279
  562. package/unbundled/definition30.cjs +559 -0
  563. package/unbundled/definition30.js +541 -0
  564. package/unbundled/definition31.cjs +1265 -0
  565. package/unbundled/definition31.js +1247 -0
  566. package/unbundled/definition32.cjs +1908 -0
  567. package/unbundled/definition32.js +1866 -0
  568. package/unbundled/definition33.cjs +346 -0
  569. package/unbundled/definition33.js +256 -0
  570. package/unbundled/definition34.cjs +46 -0
  571. package/unbundled/definition34.js +33 -0
  572. package/unbundled/definition35.cjs +152 -0
  573. package/unbundled/definition35.js +134 -0
  574. package/unbundled/definition36.cjs +426 -0
  575. package/unbundled/definition36.js +408 -0
  576. package/unbundled/definition37.cjs +247 -0
  577. package/unbundled/definition37.js +229 -0
  578. package/unbundled/definition38.cjs +411 -0
  579. package/unbundled/definition38.js +393 -0
  580. package/unbundled/definition39.cjs +299 -0
  581. package/unbundled/definition39.js +281 -0
  582. package/unbundled/definition4.cjs +186 -205
  583. package/unbundled/definition4.js +162 -200
  584. package/unbundled/definition40.cjs +81 -0
  585. package/unbundled/definition40.js +63 -0
  586. package/unbundled/definition41.cjs +100 -0
  587. package/unbundled/definition41.js +82 -0
  588. package/unbundled/definition42.cjs +468 -0
  589. package/unbundled/definition42.js +450 -0
  590. package/unbundled/definition43.cjs +86 -0
  591. package/unbundled/definition43.js +68 -0
  592. package/unbundled/definition44.cjs +60 -0
  593. package/unbundled/definition44.js +41 -0
  594. package/unbundled/definition45.cjs +124 -0
  595. package/unbundled/definition45.js +106 -0
  596. package/unbundled/definition46.cjs +85 -0
  597. package/unbundled/definition46.js +67 -0
  598. package/unbundled/definition47.cjs +52 -0
  599. package/unbundled/definition47.js +31 -0
  600. package/unbundled/definition48.cjs +69 -0
  601. package/unbundled/definition48.js +51 -0
  602. package/unbundled/definition49.cjs +377 -0
  603. package/unbundled/definition49.js +359 -0
  604. package/unbundled/definition5.cjs +69 -298
  605. package/unbundled/definition5.js +44 -293
  606. package/unbundled/definition50.cjs +246 -0
  607. package/unbundled/definition50.js +228 -0
  608. package/unbundled/definition51.cjs +337 -0
  609. package/unbundled/definition51.js +319 -0
  610. package/unbundled/definition52.cjs +86 -0
  611. package/unbundled/definition52.js +67 -0
  612. package/unbundled/definition53.cjs +193 -0
  613. package/unbundled/definition53.js +174 -0
  614. package/unbundled/definition54.cjs +297 -0
  615. package/unbundled/definition54.js +279 -0
  616. package/unbundled/definition55.cjs +510 -0
  617. package/unbundled/definition55.js +492 -0
  618. package/unbundled/definition56.cjs +3659 -0
  619. package/unbundled/definition56.js +3478 -0
  620. package/unbundled/definition57.cjs +837 -0
  621. package/unbundled/definition57.js +819 -0
  622. package/unbundled/definition58.cjs +147 -0
  623. package/unbundled/definition58.js +129 -0
  624. package/unbundled/definition59.cjs +1081 -0
  625. package/unbundled/definition59.js +1063 -0
  626. package/unbundled/definition6.cjs +88 -56
  627. package/unbundled/definition6.js +69 -52
  628. package/unbundled/definition60.cjs +149 -0
  629. package/unbundled/definition60.js +131 -0
  630. package/unbundled/definition61.cjs +116 -0
  631. package/unbundled/definition61.js +97 -0
  632. package/unbundled/definition62.cjs +213 -0
  633. package/unbundled/definition62.js +195 -0
  634. package/unbundled/definition63.cjs +159 -0
  635. package/unbundled/definition63.js +141 -0
  636. package/unbundled/definition64.cjs +86 -0
  637. package/unbundled/definition64.js +68 -0
  638. package/unbundled/definition65.cjs +126 -0
  639. package/unbundled/definition65.js +107 -0
  640. package/unbundled/definition66.cjs +49 -0
  641. package/unbundled/definition66.js +28 -0
  642. package/unbundled/definition67.cjs +119 -0
  643. package/unbundled/definition67.js +101 -0
  644. package/unbundled/definition68.cjs +374 -0
  645. package/unbundled/definition68.js +349 -0
  646. package/unbundled/definition69.cjs +57 -0
  647. package/unbundled/definition69.js +38 -0
  648. package/unbundled/definition7.cjs +190 -0
  649. package/unbundled/definition7.js +166 -0
  650. package/unbundled/definition70.cjs +155 -0
  651. package/unbundled/definition70.js +137 -0
  652. package/unbundled/definition71.cjs +302 -0
  653. package/unbundled/definition71.js +284 -0
  654. package/unbundled/definition72.cjs +48 -0
  655. package/unbundled/definition72.js +37 -0
  656. package/unbundled/definition73.cjs +171 -0
  657. package/unbundled/definition73.js +147 -0
  658. package/unbundled/definition74.cjs +232 -0
  659. package/unbundled/definition74.js +213 -0
  660. package/unbundled/definition75.cjs +533 -0
  661. package/unbundled/definition75.js +513 -0
  662. package/unbundled/definition8.cjs +63 -0
  663. package/unbundled/definition8.js +44 -0
  664. package/unbundled/definition9.cjs +183 -0
  665. package/unbundled/definition9.js +165 -0
  666. package/unbundled/delegates-aria.cjs +90 -131
  667. package/unbundled/delegates-aria.js +77 -127
  668. package/unbundled/dialog.cjs +15 -0
  669. package/unbundled/dialog.js +10 -0
  670. package/unbundled/divider.cjs +42 -50
  671. package/unbundled/divider.js +30 -47
  672. package/unbundled/enums.cjs +166 -107
  673. package/unbundled/enums.js +95 -94
  674. package/unbundled/form-associated.cjs +408 -463
  675. package/unbundled/form-associated.js +396 -460
  676. package/unbundled/form-element.cjs +74 -83
  677. package/unbundled/form-element.js +68 -81
  678. package/unbundled/host-semantics.cjs +70 -89
  679. package/unbundled/host-semantics.js +57 -85
  680. package/unbundled/key-codes.cjs +16 -10
  681. package/unbundled/key-codes.js +5 -7
  682. package/unbundled/linkable.cjs +35 -56
  683. package/unbundled/linkable.js +27 -52
  684. package/unbundled/listbox.cjs +363 -465
  685. package/unbundled/listbox.js +357 -463
  686. package/unbundled/localized.cjs +79 -74
  687. package/unbundled/localized.js +61 -70
  688. package/unbundled/mixins.cjs +222 -223
  689. package/unbundled/mixins.js +186 -211
  690. package/unbundled/picker-field.template.cjs +188 -217
  691. package/unbundled/picker-field.template.js +165 -208
  692. package/unbundled/playbackRates.cjs +18 -11
  693. package/unbundled/playbackRates.js +13 -9
  694. package/unbundled/scrollIntoView.cjs +38 -43
  695. package/unbundled/scrollIntoView.js +33 -41
  696. package/unbundled/single-date-picker.cjs +48 -45
  697. package/unbundled/single-date-picker.js +43 -43
  698. package/unbundled/single-value-picker.cjs +106 -114
  699. package/unbundled/single-value-picker.js +101 -112
  700. package/unbundled/slider.template.cjs +107 -73
  701. package/unbundled/slider.template.js +67 -62
  702. package/unbundled/slottable-request.cjs +145 -3700
  703. package/unbundled/slottable-request.js +98 -3681
  704. package/unbundled/text-field.cjs +9 -5
  705. package/unbundled/text-field.js +4 -3
  706. package/unbundled/time-selection-picker.template.cjs +611 -755
  707. package/unbundled/time-selection-picker.template.js +554 -742
  708. package/unbundled/trapped-focus.cjs +45 -35
  709. package/unbundled/trapped-focus.js +34 -32
  710. package/unbundled/vivid-element.cjs +281 -274
  711. package/unbundled/vivid-element.js +239 -266
  712. package/unbundled/with-contextual-help.cjs +35 -39
  713. package/unbundled/with-contextual-help.js +29 -37
  714. package/unbundled/with-error-text.cjs +45 -55
  715. package/unbundled/with-error-text.js +39 -53
  716. package/unbundled/with-success-text.cjs +18 -22
  717. package/unbundled/with-success-text.js +12 -20
  718. package/video-player/definition.cjs +5 -69835
  719. package/video-player/definition.js +1 -69828
  720. package/video-player/index.cjs +44 -39
  721. package/video-player/index.js +23517 -35507
  722. package/visually-hidden/definition.cjs +5 -30
  723. package/visually-hidden/definition.js +1 -23
  724. package/visually-hidden/index.cjs +1 -1
  725. package/visually-hidden/index.js +5 -2
  726. package/vivid.api.json +331 -1874
  727. package/bundled/index.cjs +0 -1
  728. package/bundled/index.js +0 -6
  729. package/unbundled/_commonjsHelpers.cjs +0 -40
  730. package/unbundled/_commonjsHelpers.js +0 -36
  731. package/unbundled/index.cjs +0 -11
  732. package/unbundled/index.js +0 -9
@@ -1,2824 +1,1799 @@
1
- let F;
2
- const ft = "fast-kernel";
1
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/interfaces.js
2
+ var e, t = "fast-kernel";
3
3
  try {
4
- if (document.currentScript)
5
- F = document.currentScript.getAttribute(ft);
6
- else {
7
- const i = document.getElementsByTagName("script");
8
- F = i[i.length - 1].getAttribute(ft);
9
- }
4
+ if (document.currentScript) e = document.currentScript.getAttribute(t);
5
+ else {
6
+ let n = document.getElementsByTagName("script");
7
+ e = n[n.length - 1].getAttribute(t);
8
+ }
10
9
  } catch {
11
- F = "isolate";
12
- }
13
- let N;
14
- switch (F) {
15
- case "share":
16
- N = Object.freeze({
17
- updateQueue: 1,
18
- observable: 2,
19
- contextEvent: 3,
20
- elementRegistry: 4
21
- });
22
- break;
23
- case "share-v2":
24
- N = Object.freeze({
25
- updateQueue: 1.2,
26
- observable: 2.2,
27
- contextEvent: 3.2,
28
- elementRegistry: 4.2
29
- });
30
- break;
31
- default:
32
- const i = `-${Math.random().toString(36).substring(2, 8)}`;
33
- N = Object.freeze({
34
- updateQueue: `1.2${i}`,
35
- observable: `2.2${i}`,
36
- contextEvent: `3.2${i}`,
37
- elementRegistry: `4.2${i}`
38
- });
39
- break;
40
- }
41
- const E = (i) => typeof i == "function", B = (i) => typeof i == "string", ge = () => {
42
- };
43
- var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
44
- function ui(i) {
45
- return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
46
- }
47
- function fi(i) {
48
- if (Object.prototype.hasOwnProperty.call(i, "__esModule")) return i;
49
- var t = i.default;
50
- if (typeof t == "function") {
51
- var e = function s() {
52
- var n = !1;
53
- try {
54
- n = this instanceof s;
55
- } catch {
56
- }
57
- return n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
58
- };
59
- e.prototype = t.prototype;
60
- } else e = {};
61
- return Object.defineProperty(e, "__esModule", { value: !0 }), Object.keys(i).forEach(function(s) {
62
- var n = Object.getOwnPropertyDescriptor(i, s);
63
- Object.defineProperty(e, s, n.get ? n : {
64
- enumerable: !0,
65
- get: function() {
66
- return i[s];
67
- }
68
- });
69
- }), e;
70
- }
71
- var pt = {}, bt;
72
- function ye() {
73
- return bt || (bt = 1, (function() {
74
- if (!(typeof globalThis < "u"))
75
- if (typeof tt < "u")
76
- tt.globalThis = tt;
77
- else if (typeof self < "u")
78
- self.globalThis = self;
79
- else if (typeof window < "u")
80
- window.globalThis = window;
81
- else {
82
- const t = new Function("return this")();
83
- t.globalThis = t;
84
- }
85
- })(), (function() {
86
- "requestIdleCallback" in globalThis || (globalThis.requestIdleCallback = function(e, s) {
87
- const n = Date.now();
88
- return setTimeout(() => {
89
- e({
90
- didTimeout: s?.timeout ? Date.now() - n >= s.timeout : !1,
91
- timeRemaining: () => 0
92
- });
93
- }, 1);
94
- }, globalThis.cancelIdleCallback = function(e) {
95
- clearTimeout(e);
96
- });
97
- })()), pt;
98
- }
99
- ye();
100
- const zt = {
101
- configurable: !1,
102
- enumerable: !1,
103
- writable: !1
10
+ e = "isolate";
11
+ }
12
+ var n;
13
+ switch (e) {
14
+ case "share":
15
+ n = Object.freeze({
16
+ updateQueue: 1,
17
+ observable: 2,
18
+ contextEvent: 3,
19
+ elementRegistry: 4
20
+ });
21
+ break;
22
+ case "share-v2":
23
+ n = Object.freeze({
24
+ updateQueue: 1.2,
25
+ observable: 2.2,
26
+ contextEvent: 3.2,
27
+ elementRegistry: 4.2
28
+ });
29
+ break;
30
+ default:
31
+ let e = `-${Math.random().toString(36).substring(2, 8)}`;
32
+ n = Object.freeze({
33
+ updateQueue: `1.2${e}`,
34
+ observable: `2.2${e}`,
35
+ contextEvent: `3.2${e}`,
36
+ elementRegistry: `4.2${e}`
37
+ });
38
+ break;
39
+ }
40
+ var r = (e) => typeof e == "function", i = (e) => typeof e == "string", a = () => void 0;
41
+ (function() {
42
+ if (!(typeof globalThis < "u")) if (typeof global < "u") global.globalThis = global;
43
+ else if (typeof self < "u") self.globalThis = self;
44
+ else if (typeof window < "u") window.globalThis = window;
45
+ else {
46
+ let e = Function("return this")();
47
+ e.globalThis = e;
48
+ }
49
+ })(), (function() {
50
+ "requestIdleCallback" in globalThis || (globalThis.requestIdleCallback = function(e, t) {
51
+ let n = Date.now();
52
+ return setTimeout(() => {
53
+ e({
54
+ didTimeout: t?.timeout ? Date.now() - n >= t.timeout : !1,
55
+ timeRemaining: () => 0
56
+ });
57
+ }, 1);
58
+ }, globalThis.cancelIdleCallback = function(e) {
59
+ clearTimeout(e);
60
+ });
61
+ })();
62
+ //#endregion
63
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/platform.js
64
+ var o = {
65
+ configurable: !1,
66
+ enumerable: !1,
67
+ writable: !1
104
68
  };
105
- globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value: /* @__PURE__ */ Object.create(null) }, zt));
106
- const v = globalThis.FAST;
107
- if (v.getById === void 0) {
108
- const i = /* @__PURE__ */ Object.create(null);
109
- Reflect.defineProperty(v, "getById", Object.assign({ value(t, e) {
110
- let s = i[t];
111
- return s === void 0 && (s = e ? i[t] = e() : null), s;
112
- } }, zt));
113
- }
114
- v.error === void 0 && Object.assign(v, {
115
- warn() {
116
- },
117
- error(i) {
118
- return new Error(`Error ${i}`);
119
- },
120
- addMessages() {
121
- }
122
- });
123
- const pi = Object.freeze([]);
124
- function Ut() {
125
- const i = /* @__PURE__ */ new Map();
126
- return Object.freeze({
127
- register(t) {
128
- return i.has(t.type) ? !1 : (i.set(t.type, t), !0);
129
- },
130
- getByType(t) {
131
- return i.get(t);
132
- },
133
- getForInstance(t) {
134
- if (t != null)
135
- return i.get(t.constructor);
136
- }
137
- });
138
- }
139
- function qt() {
140
- const i = /* @__PURE__ */ new WeakMap();
141
- return function(t) {
142
- let e = i.get(t);
143
- if (e === void 0) {
144
- let s = Reflect.getPrototypeOf(t);
145
- for (; e === void 0 && s !== null; )
146
- e = i.get(s), s = Reflect.getPrototypeOf(s);
147
- e = e === void 0 ? [] : e.slice(0), i.set(t, e);
148
- }
149
- return e;
150
- };
151
- }
152
- function x(i) {
153
- i.prototype.toJSON = ge;
154
- }
155
- const y = Object.freeze({
156
- /**
157
- * Not aspected.
158
- */
159
- none: 0,
160
- /**
161
- * An attribute.
162
- */
163
- attribute: 1,
164
- /**
165
- * A boolean attribute.
166
- */
167
- booleanAttribute: 2,
168
- /**
169
- * A property.
170
- */
171
- property: 3,
172
- /**
173
- * Content
174
- */
175
- content: 4,
176
- /**
177
- * A token list.
178
- */
179
- tokenList: 5,
180
- /**
181
- * An event.
182
- */
183
- event: 6
184
- }), gt = (i) => i, ve = globalThis.trustedTypes ? globalThis.trustedTypes.createPolicy("fast-html", { createHTML: gt }) : { createHTML: gt };
185
- let P = Object.freeze({
186
- createHTML(i) {
187
- return ve.createHTML(i);
188
- },
189
- protect(i, t, e, s) {
190
- return s;
191
- }
192
- });
193
- const me = P, T = Object.freeze({
194
- /**
195
- * Gets the dom policy used by the templating system.
196
- */
197
- get policy() {
198
- return P;
199
- },
200
- /**
201
- * Sets the dom policy used by the templating system.
202
- * @param policy - The policy to set.
203
- * @remarks
204
- * This API can only be called once, for security reasons. It should be
205
- * called by the application developer at the start of their program.
206
- */
207
- setPolicy(i) {
208
- if (P !== me)
209
- throw v.error(
210
- 1201
211
- /* Message.onlySetDOMPolicyOnce */
212
- );
213
- P = i;
214
- },
215
- /**
216
- * Sets an attribute value on an element.
217
- * @param element - The element to set the attribute value on.
218
- * @param attributeName - The attribute name to set.
219
- * @param value - The value of the attribute to set.
220
- * @remarks
221
- * If the value is `null` or `undefined`, the attribute is removed, otherwise
222
- * it is set to the provided value using the standard `setAttribute` API.
223
- */
224
- setAttribute(i, t, e) {
225
- e == null ? i.removeAttribute(t) : i.setAttribute(t, e);
226
- },
227
- /**
228
- * Sets a boolean attribute value.
229
- * @param element - The element to set the boolean attribute value on.
230
- * @param attributeName - The attribute name to set.
231
- * @param value - The value of the attribute to set.
232
- * @remarks
233
- * If the value is true, the attribute is added; otherwise it is removed.
234
- */
235
- setBooleanAttribute(i, t, e) {
236
- e ? i.setAttribute(t, "") : i.removeAttribute(t);
237
- }
238
- }), Wt = v.getById(N.updateQueue, () => {
239
- const i = [], t = [], e = globalThis.requestAnimationFrame;
240
- let s = !0;
241
- function n() {
242
- if (t.length)
243
- throw t.shift();
244
- }
245
- function r(d) {
246
- try {
247
- d.call();
248
- } catch (l) {
249
- if (s)
250
- t.push(l), setTimeout(n, 0);
251
- else
252
- throw i.length = 0, l;
253
- }
254
- }
255
- function o() {
256
- let l = 0;
257
- for (; l < i.length; )
258
- if (r(i[l]), l++, l > 1024) {
259
- for (let a = 0, h = i.length - l; a < h; a++)
260
- i[a] = i[a + l];
261
- i.length -= l, l = 0;
262
- }
263
- i.length = 0;
264
- }
265
- function c(d) {
266
- i.push(d), i.length < 2 && (s ? e(o) : o());
267
- }
268
- return Object.freeze({
269
- enqueue: c,
270
- next: () => new Promise(c),
271
- process: o,
272
- setMode: (d) => s = d
273
- });
69
+ globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value: Object.create(null) }, o));
70
+ var s = globalThis.FAST;
71
+ if (s.getById === void 0) {
72
+ let e = Object.create(null);
73
+ Reflect.defineProperty(s, "getById", Object.assign({ value(t, n) {
74
+ let r = e[t];
75
+ return r === void 0 && (r = n ? e[t] = n() : null), r;
76
+ } }, o));
77
+ }
78
+ s.error === void 0 && Object.assign(s, {
79
+ warn() {},
80
+ error(e) {
81
+ return /* @__PURE__ */ Error(`Error ${e}`);
82
+ },
83
+ addMessages() {}
274
84
  });
275
- class rt {
276
- /**
277
- * Creates an instance of SubscriberSet for the specified subject.
278
- * @param subject - The subject that subscribers will receive notifications from.
279
- * @param initialSubscriber - An initial subscriber to changes.
280
- */
281
- constructor(t, e) {
282
- this.sub1 = void 0, this.sub2 = void 0, this.spillover = void 0, this.subject = t, this.sub1 = e;
283
- }
284
- /**
285
- * Checks whether the provided subscriber has been added to this set.
286
- * @param subscriber - The subscriber to test for inclusion in this set.
287
- */
288
- has(t) {
289
- return this.spillover === void 0 ? this.sub1 === t || this.sub2 === t : this.spillover.indexOf(t) !== -1;
290
- }
291
- /**
292
- * Subscribes to notification of changes in an object's state.
293
- * @param subscriber - The object that is subscribing for change notification.
294
- */
295
- subscribe(t) {
296
- const e = this.spillover;
297
- if (e === void 0) {
298
- if (this.has(t))
299
- return;
300
- if (this.sub1 === void 0) {
301
- this.sub1 = t;
302
- return;
303
- }
304
- if (this.sub2 === void 0) {
305
- this.sub2 = t;
306
- return;
307
- }
308
- this.spillover = [this.sub1, this.sub2, t], this.sub1 = void 0, this.sub2 = void 0;
309
- } else
310
- e.indexOf(t) === -1 && e.push(t);
311
- }
312
- /**
313
- * Unsubscribes from notification of changes in an object's state.
314
- * @param subscriber - The object that is unsubscribing from change notification.
315
- */
316
- unsubscribe(t) {
317
- const e = this.spillover;
318
- if (e === void 0)
319
- this.sub1 === t ? this.sub1 = void 0 : this.sub2 === t && (this.sub2 = void 0);
320
- else {
321
- const s = e.indexOf(t);
322
- s !== -1 && e.splice(s, 1);
323
- }
324
- }
325
- /**
326
- * Notifies all subscribers.
327
- * @param args - Data passed along to subscribers during notification.
328
- */
329
- notify(t) {
330
- const e = this.spillover, s = this.subject;
331
- if (e === void 0) {
332
- const n = this.sub1, r = this.sub2;
333
- n !== void 0 && n.handleChange(s, t), r !== void 0 && r.handleChange(s, t);
334
- } else
335
- for (let n = 0, r = e.length; n < r; ++n)
336
- e[n].handleChange(s, t);
337
- }
338
- }
339
- class Qt {
340
- /**
341
- * Creates an instance of PropertyChangeNotifier for the specified subject.
342
- * @param subject - The object that subscribers will receive notifications for.
343
- */
344
- constructor(t) {
345
- this.subscribers = {}, this.subjectSubscribers = null, this.subject = t;
346
- }
347
- /**
348
- * Notifies all subscribers, based on the specified property.
349
- * @param propertyName - The property name, passed along to subscribers during notification.
350
- */
351
- notify(t) {
352
- var e, s;
353
- (e = this.subscribers[t]) === null || e === void 0 || e.notify(t), (s = this.subjectSubscribers) === null || s === void 0 || s.notify(t);
354
- }
355
- /**
356
- * Subscribes to notification of changes in an object's state.
357
- * @param subscriber - The object that is subscribing for change notification.
358
- * @param propertyToWatch - The name of the property that the subscriber is interested in watching for changes.
359
- */
360
- subscribe(t, e) {
361
- var s, n;
362
- let r;
363
- e ? r = (s = this.subscribers[e]) !== null && s !== void 0 ? s : this.subscribers[e] = new rt(this.subject) : r = (n = this.subjectSubscribers) !== null && n !== void 0 ? n : this.subjectSubscribers = new rt(this.subject), r.subscribe(t);
364
- }
365
- /**
366
- * Unsubscribes from notification of changes in an object's state.
367
- * @param subscriber - The object that is unsubscribing from change notification.
368
- * @param propertyToUnwatch - The name of the property that the subscriber is no longer interested in watching.
369
- */
370
- unsubscribe(t, e) {
371
- var s, n;
372
- e ? (s = this.subscribers[e]) === null || s === void 0 || s.unsubscribe(t) : (n = this.subjectSubscribers) === null || n === void 0 || n.unsubscribe(t);
373
- }
374
- }
375
- const J = Object.freeze({
376
- /**
377
- * The source to controller lifetime relationship is unknown.
378
- */
379
- unknown: void 0,
380
- /**
381
- * The source and controller lifetimes are coupled to one another.
382
- * They can/will be GC'd together.
383
- */
384
- coupled: 1
385
- }), g = v.getById(N.observable, () => {
386
- const i = Wt.enqueue, t = /(:|&&|\|\||if|\?\.)/, e = /* @__PURE__ */ new WeakMap();
387
- let s, n = (l) => {
388
- throw v.error(
389
- 1101
390
- /* Message.needsArrayObservation */
391
- );
392
- };
393
- function r(l) {
394
- var a;
395
- let h = (a = l.$fastController) !== null && a !== void 0 ? a : e.get(l);
396
- return h === void 0 && (Array.isArray(l) ? h = n(l) : e.set(l, h = new Qt(l))), h;
397
- }
398
- const o = qt();
399
- class c {
400
- constructor(a) {
401
- this.name = a, this.field = `_${a}`, this.callback = `${a}Changed`;
402
- }
403
- getValue(a) {
404
- return s !== void 0 && s.watch(a, this.name), a[this.field];
405
- }
406
- setValue(a, h) {
407
- const u = this.field, b = a[u];
408
- if (b !== h) {
409
- a[u] = h;
410
- const k = a[this.callback];
411
- E(k) && k.call(a, b, h), r(a).notify(this.name);
412
- }
413
- }
414
- }
415
- class d extends rt {
416
- constructor(a, h, u = !1) {
417
- super(a, h), this.expression = a, this.isVolatileBinding = u, 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;
418
- }
419
- setMode(a) {
420
- this.isAsync = this.needsQueue = a;
421
- }
422
- bind(a) {
423
- this.controller = a;
424
- const h = this.observe(a.source, a.context);
425
- return !a.isBound && this.requiresUnbind(a) && a.onUnbind(this), h;
426
- }
427
- requiresUnbind(a) {
428
- return a.sourceLifetime !== J.coupled || this.first !== this.last || this.first.propertySource !== a.source;
429
- }
430
- unbind(a) {
431
- this.dispose();
432
- }
433
- observe(a, h) {
434
- this.needsRefresh && this.last !== null && this.dispose();
435
- const u = s;
436
- s = this.needsRefresh ? this : void 0, this.needsRefresh = this.isVolatileBinding;
437
- let b;
438
- try {
439
- b = this.expression(a, h);
440
- } finally {
441
- s = u;
442
- }
443
- return b;
444
- }
445
- // backwards compat with v1 kernel
446
- disconnect() {
447
- this.dispose();
448
- }
449
- dispose() {
450
- if (this.last !== null) {
451
- let a = this.first;
452
- for (; a !== void 0; )
453
- a.notifier.unsubscribe(this, a.propertyName), a = a.next;
454
- this.last = null, this.needsRefresh = this.needsQueue = this.isAsync;
455
- }
456
- }
457
- watch(a, h) {
458
- const u = this.last, b = r(a), k = u === null ? this.first : {};
459
- if (k.propertySource = a, k.propertyName = h, k.notifier = b, b.subscribe(this, h), u !== null) {
460
- if (!this.needsRefresh) {
461
- let ut;
462
- s = void 0, ut = u.propertySource[u.propertyName], s = this, a === ut && (this.needsRefresh = !0);
463
- }
464
- u.next = k;
465
- }
466
- this.last = k;
467
- }
468
- handleChange() {
469
- this.needsQueue ? (this.needsQueue = !1, i(this)) : this.isAsync || this.call();
470
- }
471
- call() {
472
- this.last !== null && (this.needsQueue = this.isAsync, this.notify(this));
473
- }
474
- *records() {
475
- let a = this.first;
476
- for (; a !== void 0; )
477
- yield a, a = a.next;
478
- }
479
- }
480
- return x(d), Object.freeze({
481
- /**
482
- * @internal
483
- * @param factory - The factory used to create array observers.
484
- */
485
- setArrayObserverFactory(l) {
486
- n = l;
487
- },
488
- /**
489
- * Gets a notifier for an object or Array.
490
- * @param source - The object or Array to get the notifier for.
491
- */
492
- getNotifier: r,
493
- /**
494
- * Records a property change for a source object.
495
- * @param source - The object to record the change against.
496
- * @param propertyName - The property to track as changed.
497
- */
498
- track(l, a) {
499
- s && s.watch(l, a);
500
- },
501
- /**
502
- * Notifies watchers that the currently executing property getter or function is volatile
503
- * with respect to its observable dependencies.
504
- */
505
- trackVolatile() {
506
- s && (s.needsRefresh = !0);
507
- },
508
- /**
509
- * Notifies subscribers of a source object of changes.
510
- * @param source - the object to notify of changes.
511
- * @param args - The change args to pass to subscribers.
512
- */
513
- notify(l, a) {
514
- r(l).notify(a);
515
- },
516
- /**
517
- * Defines an observable property on an object or prototype.
518
- * @param target - The target object to define the observable on.
519
- * @param nameOrAccessor - The name of the property to define as observable;
520
- * or a custom accessor that specifies the property name and accessor implementation.
521
- */
522
- defineProperty(l, a) {
523
- B(a) && (a = new c(a)), o(l).push(a), Reflect.defineProperty(l, a.name, {
524
- enumerable: !0,
525
- get() {
526
- return a.getValue(this);
527
- },
528
- set(h) {
529
- a.setValue(this, h);
530
- }
531
- });
532
- },
533
- /**
534
- * Finds all the observable accessors defined on the target,
535
- * including its prototype chain.
536
- * @param target - The target object to search for accessor on.
537
- */
538
- getAccessors: o,
539
- /**
540
- * Creates a {@link ExpressionNotifier} that can watch the
541
- * provided {@link Expression} for changes.
542
- * @param expression - The binding to observe.
543
- * @param initialSubscriber - An initial subscriber to changes in the binding value.
544
- * @param isVolatileBinding - Indicates whether the binding's dependency list must be re-evaluated on every value evaluation.
545
- */
546
- binding(l, a, h = this.isVolatileBinding(l)) {
547
- return new d(l, a, h);
548
- },
549
- /**
550
- * Determines whether a binding expression is volatile and needs to have its dependency list re-evaluated
551
- * on every evaluation of the value.
552
- * @param expression - The binding to inspect.
553
- */
554
- isVolatileBinding(l) {
555
- return t.test(l.toString());
556
- }
557
- });
558
- });
559
- function bi(i, t) {
560
- g.defineProperty(i, t);
561
- }
562
- function gi(i, t, e) {
563
- return Object.assign({}, e, {
564
- get() {
565
- return g.trackVolatile(), e.get.apply(this);
566
- }
567
- });
568
- }
569
- const yt = v.getById(N.contextEvent, () => {
570
- let i = null;
571
- return {
572
- get() {
573
- return i;
574
- },
575
- set(t) {
576
- i = t;
577
- }
578
- };
579
- }), O = Object.freeze({
580
- /**
581
- * A default execution context.
582
- */
583
- default: {
584
- index: 0,
585
- length: 0,
586
- get event() {
587
- return O.getEvent();
588
- },
589
- eventDetail() {
590
- return this.event.detail;
591
- },
592
- eventTarget() {
593
- return this.event.target;
594
- }
595
- },
596
- /**
597
- * Gets the current event.
598
- * @returns An event object.
599
- */
600
- getEvent() {
601
- return yt.get();
602
- },
603
- /**
604
- * Sets the current event.
605
- * @param event - An event object.
606
- */
607
- setEvent(i) {
608
- yt.set(i);
609
- }
85
+ var c = Object.freeze([]);
86
+ function l() {
87
+ let e = /* @__PURE__ */ new Map();
88
+ return Object.freeze({
89
+ register(t) {
90
+ return e.has(t.type) ? !1 : (e.set(t.type, t), !0);
91
+ },
92
+ getByType(t) {
93
+ return e.get(t);
94
+ },
95
+ getForInstance(t) {
96
+ if (t != null) return e.get(t.constructor);
97
+ }
98
+ });
99
+ }
100
+ function u() {
101
+ let e = /* @__PURE__ */ new WeakMap();
102
+ return function(t) {
103
+ let n = e.get(t);
104
+ if (n === void 0) {
105
+ let r = Reflect.getPrototypeOf(t);
106
+ for (; n === void 0 && r !== null;) n = e.get(r), r = Reflect.getPrototypeOf(r);
107
+ n = n === void 0 ? [] : n.slice(0), e.set(t, n);
108
+ }
109
+ return n;
110
+ };
111
+ }
112
+ function d(e) {
113
+ e.prototype.toJSON = a;
114
+ }
115
+ //#endregion
116
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/dom.js
117
+ var f = Object.freeze({
118
+ none: 0,
119
+ attribute: 1,
120
+ booleanAttribute: 2,
121
+ property: 3,
122
+ content: 4,
123
+ tokenList: 5,
124
+ event: 6
125
+ }), p = (e) => e, ee = globalThis.trustedTypes ? globalThis.trustedTypes.createPolicy("fast-html", { createHTML: p }) : { createHTML: p }, m = Object.freeze({
126
+ createHTML(e) {
127
+ return ee.createHTML(e);
128
+ },
129
+ protect(e, t, n, r) {
130
+ return r;
131
+ }
132
+ }), te = m, h = Object.freeze({
133
+ get policy() {
134
+ return m;
135
+ },
136
+ setPolicy(e) {
137
+ if (m !== te) throw s.error(1201);
138
+ m = e;
139
+ },
140
+ setAttribute(e, t, n) {
141
+ n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
142
+ },
143
+ setBooleanAttribute(e, t, n) {
144
+ n ? e.setAttribute(t, "") : e.removeAttribute(t);
145
+ }
146
+ }), g = s.getById(n.updateQueue, () => {
147
+ let e = [], t = [], n = globalThis.requestAnimationFrame, r = !0;
148
+ function i() {
149
+ if (t.length) throw t.shift();
150
+ }
151
+ function a(n) {
152
+ try {
153
+ n.call();
154
+ } catch (n) {
155
+ if (r) t.push(n), setTimeout(i, 0);
156
+ else throw e.length = 0, n;
157
+ }
158
+ }
159
+ function o() {
160
+ let t = 0;
161
+ for (; t < e.length;) if (a(e[t]), t++, t > 1024) {
162
+ for (let n = 0, r = e.length - t; n < r; n++) e[n] = e[n + t];
163
+ e.length -= t, t = 0;
164
+ }
165
+ e.length = 0;
166
+ }
167
+ function s(t) {
168
+ e.push(t), e.length < 2 && (r ? n(o) : o());
169
+ }
170
+ return Object.freeze({
171
+ enqueue: s,
172
+ next: () => new Promise(s),
173
+ process: o,
174
+ setMode: (e) => r = e
175
+ });
176
+ }), _ = class {
177
+ constructor(e, t) {
178
+ this.sub1 = void 0, this.sub2 = void 0, this.spillover = void 0, this.subject = e, this.sub1 = t;
179
+ }
180
+ has(e) {
181
+ return this.spillover === void 0 ? this.sub1 === e || this.sub2 === e : this.spillover.indexOf(e) !== -1;
182
+ }
183
+ subscribe(e) {
184
+ let t = this.spillover;
185
+ if (t === void 0) {
186
+ if (this.has(e)) return;
187
+ if (this.sub1 === void 0) {
188
+ this.sub1 = e;
189
+ return;
190
+ }
191
+ if (this.sub2 === void 0) {
192
+ this.sub2 = e;
193
+ return;
194
+ }
195
+ this.spillover = [
196
+ this.sub1,
197
+ this.sub2,
198
+ e
199
+ ], this.sub1 = void 0, this.sub2 = void 0;
200
+ } else t.indexOf(e) === -1 && t.push(e);
201
+ }
202
+ unsubscribe(e) {
203
+ let t = this.spillover;
204
+ if (t === void 0) this.sub1 === e ? this.sub1 = void 0 : this.sub2 === e && (this.sub2 = void 0);
205
+ else {
206
+ let n = t.indexOf(e);
207
+ n !== -1 && t.splice(n, 1);
208
+ }
209
+ }
210
+ notify(e) {
211
+ let t = this.spillover, n = this.subject;
212
+ if (t === void 0) {
213
+ let t = this.sub1, r = this.sub2;
214
+ t !== void 0 && t.handleChange(n, e), r !== void 0 && r.handleChange(n, e);
215
+ } else for (let r = 0, i = t.length; r < i; ++r) t[r].handleChange(n, e);
216
+ }
217
+ }, ne = class {
218
+ constructor(e) {
219
+ this.subscribers = {}, this.subjectSubscribers = null, this.subject = e;
220
+ }
221
+ notify(e) {
222
+ var t, n;
223
+ (t = this.subscribers[e]) == null || t.notify(e), (n = this.subjectSubscribers) == null || n.notify(e);
224
+ }
225
+ subscribe(e, t) {
226
+ let n;
227
+ n = t ? this.subscribers[t] ?? (this.subscribers[t] = new _(this.subject)) : this.subjectSubscribers ??= new _(this.subject), n.subscribe(e);
228
+ }
229
+ unsubscribe(e, t) {
230
+ var n, r;
231
+ t ? (n = this.subscribers[t]) == null || n.unsubscribe(e) : (r = this.subjectSubscribers) == null || r.unsubscribe(e);
232
+ }
233
+ }, v = Object.freeze({
234
+ unknown: void 0,
235
+ coupled: 1
236
+ }), y = s.getById(n.observable, () => {
237
+ let e = g.enqueue, t = /(:|&&|\|\||if|\?\.)/, n = /* @__PURE__ */ new WeakMap(), a, o = (e) => {
238
+ throw s.error(1101);
239
+ };
240
+ function c(e) {
241
+ let t = e.$fastController ?? n.get(e);
242
+ return t === void 0 && (Array.isArray(e) ? t = o(e) : n.set(e, t = new ne(e))), t;
243
+ }
244
+ let l = u();
245
+ class f {
246
+ constructor(e) {
247
+ this.name = e, this.field = `_${e}`, this.callback = `${e}Changed`;
248
+ }
249
+ getValue(e) {
250
+ return a !== void 0 && a.watch(e, this.name), e[this.field];
251
+ }
252
+ setValue(e, t) {
253
+ let n = this.field, i = e[n];
254
+ if (i !== t) {
255
+ e[n] = t;
256
+ let a = e[this.callback];
257
+ r(a) && a.call(e, i, t), c(e).notify(this.name);
258
+ }
259
+ }
260
+ }
261
+ class p extends _ {
262
+ constructor(e, t, n = !1) {
263
+ super(e, t), this.expression = e, this.isVolatileBinding = n, 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;
264
+ }
265
+ setMode(e) {
266
+ this.isAsync = this.needsQueue = e;
267
+ }
268
+ bind(e) {
269
+ this.controller = e;
270
+ let t = this.observe(e.source, e.context);
271
+ return !e.isBound && this.requiresUnbind(e) && e.onUnbind(this), t;
272
+ }
273
+ requiresUnbind(e) {
274
+ return e.sourceLifetime !== v.coupled || this.first !== this.last || this.first.propertySource !== e.source;
275
+ }
276
+ unbind(e) {
277
+ this.dispose();
278
+ }
279
+ observe(e, t) {
280
+ this.needsRefresh && this.last !== null && this.dispose();
281
+ let n = a;
282
+ a = this.needsRefresh ? this : void 0, this.needsRefresh = this.isVolatileBinding;
283
+ let r;
284
+ try {
285
+ r = this.expression(e, t);
286
+ } finally {
287
+ a = n;
288
+ }
289
+ return r;
290
+ }
291
+ disconnect() {
292
+ this.dispose();
293
+ }
294
+ dispose() {
295
+ if (this.last !== null) {
296
+ let e = this.first;
297
+ for (; e !== void 0;) e.notifier.unsubscribe(this, e.propertyName), e = e.next;
298
+ this.last = null, this.needsRefresh = this.needsQueue = this.isAsync;
299
+ }
300
+ }
301
+ watch(e, t) {
302
+ let n = this.last, r = c(e), i = n === null ? this.first : {};
303
+ if (i.propertySource = e, i.propertyName = t, i.notifier = r, r.subscribe(this, t), n !== null) {
304
+ if (!this.needsRefresh) {
305
+ let t;
306
+ a = void 0, t = n.propertySource[n.propertyName], a = this, e === t && (this.needsRefresh = !0);
307
+ }
308
+ n.next = i;
309
+ }
310
+ this.last = i;
311
+ }
312
+ handleChange() {
313
+ this.needsQueue ? (this.needsQueue = !1, e(this)) : this.isAsync || this.call();
314
+ }
315
+ call() {
316
+ this.last !== null && (this.needsQueue = this.isAsync, this.notify(this));
317
+ }
318
+ *records() {
319
+ let e = this.first;
320
+ for (; e !== void 0;) yield e, e = e.next;
321
+ }
322
+ }
323
+ return d(p), Object.freeze({
324
+ setArrayObserverFactory(e) {
325
+ o = e;
326
+ },
327
+ getNotifier: c,
328
+ track(e, t) {
329
+ a && a.watch(e, t);
330
+ },
331
+ trackVolatile() {
332
+ a && (a.needsRefresh = !0);
333
+ },
334
+ notify(e, t) {
335
+ c(e).notify(t);
336
+ },
337
+ defineProperty(e, t) {
338
+ i(t) && (t = new f(t)), l(e).push(t), Reflect.defineProperty(e, t.name, {
339
+ enumerable: !0,
340
+ get() {
341
+ return t.getValue(this);
342
+ },
343
+ set(e) {
344
+ t.setValue(this, e);
345
+ }
346
+ });
347
+ },
348
+ getAccessors: l,
349
+ binding(e, t, n = this.isVolatileBinding(e)) {
350
+ return new p(e, t, n);
351
+ },
352
+ isVolatileBinding(e) {
353
+ return t.test(e.toString());
354
+ }
355
+ });
610
356
  });
611
- class lt {
612
- /**
613
- * Creates a binding.
614
- * @param evaluate - Evaluates the binding.
615
- * @param policy - The security policy to associate with this binding.
616
- * @param isVolatile - Indicates whether the binding is volatile.
617
- */
618
- constructor(t, e, s = !1) {
619
- this.evaluate = t, this.policy = e, this.isVolatile = s;
620
- }
621
- }
622
- class we extends lt {
623
- createObserver(t) {
624
- return g.binding(this.evaluate, t, this.isVolatile);
625
- }
626
- }
627
- function Gt(i, t, e = g.isVolatileBinding(i)) {
628
- return new we(i, t, e);
629
- }
630
- class Jt extends lt {
631
- createObserver() {
632
- return this;
633
- }
634
- bind(t) {
635
- return this.evaluate(t.source, t.context);
636
- }
637
- }
638
- x(Jt);
639
- function Kt(i, t) {
640
- return new Jt(i, t);
641
- }
642
- let vt;
643
- function Xt(i) {
644
- return i.map((t) => t instanceof m ? Xt(t.styles) : [t]).reduce((t, e) => t.concat(e), []);
645
- }
646
- class m {
647
- /**
648
- * Creates an instance of ElementStyles.
649
- * @param styles - The styles that will be associated with elements.
650
- */
651
- constructor(t) {
652
- this.styles = t, this.targets = /* @__PURE__ */ new WeakSet(), this._strategy = null, this.behaviors = t.map((e) => e instanceof m ? e.behaviors : null).reduce((e, s) => s === null ? e : e === null ? s : e.concat(s), null);
653
- }
654
- /**
655
- * Gets the StyleStrategy associated with these element styles.
656
- */
657
- get strategy() {
658
- return this._strategy === null && this.withStrategy(vt), this._strategy;
659
- }
660
- /** @internal */
661
- addStylesTo(t) {
662
- this.strategy.addStylesTo(t), this.targets.add(t);
663
- }
664
- /** @internal */
665
- removeStylesFrom(t) {
666
- this.strategy.removeStylesFrom(t), this.targets.delete(t);
667
- }
668
- /** @internal */
669
- isAttachedTo(t) {
670
- return this.targets.has(t);
671
- }
672
- /**
673
- * Associates behaviors with this set of styles.
674
- * @param behaviors - The behaviors to associate.
675
- */
676
- withBehaviors(...t) {
677
- return this.behaviors = this.behaviors === null ? t : this.behaviors.concat(t), this;
678
- }
679
- /**
680
- * Sets the strategy that handles adding/removing these styles for an element.
681
- * @param strategy - The strategy to use.
682
- */
683
- withStrategy(t) {
684
- return this._strategy = new t(Xt(this.styles)), this;
685
- }
686
- /**
687
- * Sets the default strategy type to use when creating style strategies.
688
- * @param Strategy - The strategy type to construct.
689
- */
690
- static setDefaultStrategy(t) {
691
- vt = t;
692
- }
693
- /**
694
- * Normalizes a set of composable style options.
695
- * @param styles - The style options to normalize.
696
- * @returns A singular ElementStyles instance or undefined.
697
- */
698
- static normalize(t) {
699
- return t === void 0 ? void 0 : Array.isArray(t) ? new m(t) : t instanceof m ? t : new m([t]);
700
- }
701
- }
702
- m.supportsAdoptedStyleSheets = Array.isArray(document.adoptedStyleSheets) && "replace" in CSSStyleSheet.prototype;
703
- const mt = /fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/, wt = /fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/, St = /fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/, Ct = /fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/, kt = /^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/, Tt = /fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;
704
- function $t(i) {
705
- return i && i.nodeType === Node.COMMENT_NODE;
706
- }
707
- const w = Object.freeze({
708
- attributeMarkerName: "data-fe-b",
709
- attributeBindingSeparator: " ",
710
- contentBindingStartMarker(i, t) {
711
- return `fe-b$$start$$${i}$$${t}$$fe-b`;
712
- },
713
- contentBindingEndMarker(i, t) {
714
- return `fe-b$$end$$${i}$$${t}$$fe-b`;
715
- },
716
- repeatStartMarker(i) {
717
- return `fe-repeat$$start$$${i}$$fe-repeat`;
718
- },
719
- repeatEndMarker(i) {
720
- return `fe-repeat$$end$$${i}$$fe-repeat`;
721
- },
722
- isContentBindingStartMarker(i) {
723
- return mt.test(i);
724
- },
725
- isContentBindingEndMarker(i) {
726
- return wt.test(i);
727
- },
728
- isRepeatViewStartMarker(i) {
729
- return St.test(i);
730
- },
731
- isRepeatViewEndMarker(i) {
732
- return Ct.test(i);
733
- },
734
- isElementBoundaryStartMarker(i) {
735
- return $t(i) && kt.test(i.data.trim());
736
- },
737
- isElementBoundaryEndMarker(i) {
738
- return $t(i) && Tt.test(i.data);
739
- },
740
- /**
741
- * Returns the indexes of the ViewBehaviorFactories affecting
742
- * attributes for the element, or null if no factories were found.
743
- */
744
- parseAttributeBinding(i) {
745
- const t = i.getAttribute(this.attributeMarkerName);
746
- return t === null ? t : t.split(this.attributeBindingSeparator).map((e) => parseInt(e));
747
- },
748
- /**
749
- * Returns the indexes of the ViewBehaviorFactories affecting
750
- * attributes for the element, or null if no factories were found.
751
- *
752
- * Uses the alternative syntax of data-fe-b-<number>
753
- */
754
- parseEnumeratedAttributeBinding(i) {
755
- const t = [], e = this.attributeMarkerName.length + 1, s = `${this.attributeMarkerName}-`;
756
- for (const n of i.getAttributeNames())
757
- if (n.startsWith(s)) {
758
- const r = Number(n.slice(e));
759
- if (!Number.isNaN(r))
760
- t.push(r);
761
- else
762
- throw new Error(`Invalid attribute marker name: ${n}. Expected format is ${s}<number>.`);
763
- }
764
- return t.length === 0 ? null : t;
765
- },
766
- /**
767
- * Parses the ViewBehaviorFactory index from string data. Returns
768
- * the binding index or null if the index cannot be retrieved.
769
- */
770
- parseContentBindingStartMarker(i) {
771
- return xt(mt, i);
772
- },
773
- parseContentBindingEndMarker(i) {
774
- return xt(wt, i);
775
- },
776
- /**
777
- * Parses the index of a repeat directive from a content string.
778
- */
779
- parseRepeatStartMarker(i) {
780
- return Nt(St, i);
781
- },
782
- parseRepeatEndMarker(i) {
783
- return Nt(Ct, i);
784
- },
785
- /**
786
- * Parses element Id from element boundary markers
787
- */
788
- parseElementBoundaryStartMarker(i) {
789
- return Bt(kt, i.trim());
790
- },
791
- parseElementBoundaryEndMarker(i) {
792
- return Bt(Tt, i);
793
- }
794
- });
795
- function Nt(i, t) {
796
- const e = i.exec(t);
797
- return e === null ? e : parseInt(e[1]);
798
- }
799
- function Bt(i, t) {
800
- const e = i.exec(t);
801
- return e === null ? e : e[1];
802
- }
803
- function xt(i, t) {
804
- const e = i.exec(t);
805
- return e === null ? e : [parseInt(e[1]), e[2]];
806
- }
807
- const z = /* @__PURE__ */ Symbol.for("fe-hydration");
808
- function U(i) {
809
- return i[z] === z;
810
- }
811
- const ct = `fast-${Math.random().toString(36).substring(2, 8)}`, D = `${ct}{`, R = `}${ct}`, Se = R.length;
812
- let Ce = 0;
813
- const j = () => `${ct}-${++Ce}`, Yt = Object.freeze({
814
- /**
815
- * Creates a placeholder string suitable for marking out a location *within*
816
- * an attribute value or HTML content.
817
- * @param index - The directive index to create the placeholder for.
818
- * @remarks
819
- * Used internally by binding directives.
820
- */
821
- interpolation: (i) => `${D}${i}${R}`,
822
- /**
823
- * Creates a placeholder that manifests itself as an attribute on an
824
- * element.
825
- * @param attributeName - The name of the custom attribute.
826
- * @param index - The directive index to create the placeholder for.
827
- * @remarks
828
- * Used internally by attribute directives such as `ref`, `slotted`, and `children`.
829
- */
830
- attribute: (i) => `${j()}="${D}${i}${R}"`,
831
- /**
832
- * Creates a placeholder that manifests itself as a marker within the DOM structure.
833
- * @param index - The directive index to create the placeholder for.
834
- * @remarks
835
- * Used internally by structural directives such as `repeat`.
836
- */
837
- comment: (i) => `<!--${D}${i}${R}-->`
838
- }), K = Object.freeze({
839
- /**
840
- * Parses text content or HTML attribute content, separating out the static strings
841
- * from the directives.
842
- * @param value - The content or attribute string to parse.
843
- * @param factories - A list of directives to search for in the string.
844
- * @returns A heterogeneous array of static strings interspersed with
845
- * directives or null if no directives are found in the string.
846
- */
847
- parse(i, t) {
848
- const e = i.split(D);
849
- if (e.length === 1)
850
- return null;
851
- const s = [];
852
- for (let n = 0, r = e.length; n < r; ++n) {
853
- const o = e[n], c = o.indexOf(R);
854
- let d;
855
- if (c === -1)
856
- d = o;
857
- else {
858
- const l = o.substring(0, c);
859
- s.push(t[l]), d = o.substring(c + Se);
860
- }
861
- d !== "" && s.push(d);
862
- }
863
- return s;
864
- }
865
- }), et = Ut(), $ = Object.freeze({
866
- /**
867
- * Gets the directive definition associated with the instance.
868
- * @param instance - The directive instance to retrieve the definition for.
869
- */
870
- getForInstance: et.getForInstance,
871
- /**
872
- * Gets the directive definition associated with the specified type.
873
- * @param type - The directive type to retrieve the definition for.
874
- */
875
- getByType: et.getByType,
876
- /**
877
- * Defines an HTMLDirective based on the options.
878
- * @param type - The type to define as a directive.
879
- * @param options - Options that specify the directive's application.
880
- */
881
- define(i, t) {
882
- return t = t || {}, t.type = i, et.register(t), i;
883
- },
884
- /**
885
- *
886
- * @param directive - The directive to assign the aspect to.
887
- * @param value - The value to base the aspect determination on.
888
- * @remarks
889
- * If a falsy value is provided, then the content aspect will be assigned.
890
- */
891
- assignAspect(i, t) {
892
- if (!t) {
893
- i.aspectType = y.content;
894
- return;
895
- }
896
- switch (i.sourceAspect = t, t[0]) {
897
- case ":":
898
- i.targetAspect = t.substring(1), i.aspectType = i.targetAspect === "classList" ? y.tokenList : y.property;
899
- break;
900
- case "?":
901
- i.targetAspect = t.substring(1), i.aspectType = y.booleanAttribute;
902
- break;
903
- case "@":
904
- i.targetAspect = t.substring(1), i.aspectType = y.event;
905
- break;
906
- default:
907
- i.targetAspect = t, i.aspectType = y.attribute;
908
- break;
909
- }
910
- }
911
- });
912
- class ke {
913
- /**
914
- * Creates an instance of RefDirective.
915
- * @param options - The options to use in configuring the directive.
916
- */
917
- constructor(t) {
918
- this.options = t;
919
- }
920
- /**
921
- * Creates a placeholder string based on the directive's index within the template.
922
- * @param index - The index of the directive within the template.
923
- * @remarks
924
- * Creates a custom attribute placeholder.
925
- */
926
- createHTML(t) {
927
- return Yt.attribute(t(this));
928
- }
929
- /**
930
- * Creates a behavior.
931
- * @param targets - The targets available for behaviors to be attached to.
932
- */
933
- createBehavior() {
934
- return this;
935
- }
936
- }
937
- x(ke);
938
- class Zt extends Error {
939
- constructor(t, e, s) {
940
- super(t), this.factories = e, this.node = s;
941
- }
942
- }
943
- function dt(i) {
944
- return i.nodeType === Node.COMMENT_NODE;
945
- }
946
- function te(i) {
947
- return i.nodeType === Node.TEXT_NODE;
948
- }
949
- function ee(i, t) {
950
- const e = document.createRange();
951
- return e.setStart(i, 0), e.setEnd(t, dt(t) || te(t) ? t.data.length : t.childNodes.length), e;
952
- }
953
- function Te(i) {
954
- return i instanceof DocumentFragment && "mode" in i;
955
- }
956
- function $e(i, t, e) {
957
- const s = ee(i, t), n = s.commonAncestorContainer, r = document.createTreeWalker(n, NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_COMMENT + NodeFilter.SHOW_TEXT, {
958
- acceptNode(l) {
959
- return s.comparePoint(l, 0) === 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
960
- }
961
- }), o = {}, c = {};
962
- let d = r.currentNode = i;
963
- for (; d !== null; ) {
964
- switch (d.nodeType) {
965
- case Node.ELEMENT_NODE: {
966
- Ne(d, e, o);
967
- break;
968
- }
969
- case Node.COMMENT_NODE: {
970
- Be(d, r, e, o, c);
971
- break;
972
- }
973
- }
974
- d = r.nextNode();
975
- }
976
- return s.detach(), { targets: o, boundaries: c };
977
- }
978
- function Ne(i, t, e) {
979
- var s;
980
- const n = (s = w.parseAttributeBinding(i)) !== null && s !== void 0 ? s : w.parseEnumeratedAttributeBinding(i);
981
- if (n !== null) {
982
- for (const r of n) {
983
- if (!t[r])
984
- throw new Zt(`HydrationView was unable to successfully target factory on ${i.nodeName} inside ${i.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`, t, i);
985
- q(t[r], i, e);
986
- }
987
- i.removeAttribute(w.attributeMarkerName);
988
- }
989
- }
990
- function Be(i, t, e, s, n) {
991
- if (w.isElementBoundaryStartMarker(i)) {
992
- xe(i, t);
993
- return;
994
- }
995
- if (w.isContentBindingStartMarker(i.data)) {
996
- const r = w.parseContentBindingStartMarker(i.data);
997
- if (r === null)
998
- return;
999
- const [o, c] = r, d = e[o], l = [];
1000
- let a = t.nextSibling();
1001
- i.data = "";
1002
- const h = a;
1003
- for (; a !== null; ) {
1004
- if (dt(a)) {
1005
- const u = w.parseContentBindingEndMarker(a.data);
1006
- if (u && u[1] === c)
1007
- break;
1008
- }
1009
- l.push(a), a = t.nextSibling();
1010
- }
1011
- if (a === null) {
1012
- const u = i.getRootNode();
1013
- throw new Error(`Error hydrating Comment node inside "${Te(u) ? u.host.nodeName : u.nodeName}".`);
1014
- }
1015
- if (a.data = "", l.length === 1 && te(l[0]))
1016
- q(d, l[0], s);
1017
- else {
1018
- a !== h && a.previousSibling !== null && (n[d.targetNodeId] = {
1019
- first: h,
1020
- last: a.previousSibling
1021
- });
1022
- const u = a.parentNode.insertBefore(document.createTextNode(""), a);
1023
- q(d, u, s);
1024
- }
1025
- }
1026
- }
1027
- function xe(i, t) {
1028
- const e = w.parseElementBoundaryStartMarker(i.data);
1029
- let s = t.nextSibling();
1030
- for (; s !== null; ) {
1031
- if (dt(s)) {
1032
- const n = w.parseElementBoundaryEndMarker(s.data);
1033
- if (n && n === e)
1034
- break;
1035
- }
1036
- s = t.nextSibling();
1037
- }
1038
- }
1039
- function q(i, t, e) {
1040
- if (i.targetNodeId === void 0)
1041
- throw new Error("Factory could not be target to the node");
1042
- e[i.targetNodeId] = t;
1043
- }
1044
- var ie;
1045
- function at(i, t) {
1046
- const e = i.parentNode;
1047
- let s = i, n;
1048
- for (; s !== t; ) {
1049
- if (n = s.nextSibling, !n)
1050
- throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
1051
- e.removeChild(s), s = n;
1052
- }
1053
- e.removeChild(t);
1054
- }
1055
- class se {
1056
- constructor() {
1057
- this.index = 0, this.length = 0;
1058
- }
1059
- /**
1060
- * The current event within an event handler.
1061
- */
1062
- get event() {
1063
- return O.getEvent();
1064
- }
1065
- /**
1066
- * Indicates whether the current item within a repeat context
1067
- * has an even index.
1068
- */
1069
- get isEven() {
1070
- return this.index % 2 === 0;
1071
- }
1072
- /**
1073
- * Indicates whether the current item within a repeat context
1074
- * has an odd index.
1075
- */
1076
- get isOdd() {
1077
- return this.index % 2 !== 0;
1078
- }
1079
- /**
1080
- * Indicates whether the current item within a repeat context
1081
- * is the first item in the collection.
1082
- */
1083
- get isFirst() {
1084
- return this.index === 0;
1085
- }
1086
- /**
1087
- * Indicates whether the current item within a repeat context
1088
- * is somewhere in the middle of the collection.
1089
- */
1090
- get isInMiddle() {
1091
- return !this.isFirst && !this.isLast;
1092
- }
1093
- /**
1094
- * Indicates whether the current item within a repeat context
1095
- * is the last item in the collection.
1096
- */
1097
- get isLast() {
1098
- return this.index === this.length - 1;
1099
- }
1100
- /**
1101
- * Returns the typed event detail of a custom event.
1102
- */
1103
- eventDetail() {
1104
- return this.event.detail;
1105
- }
1106
- /**
1107
- * Returns the typed event target of the event.
1108
- */
1109
- eventTarget() {
1110
- return this.event.target;
1111
- }
1112
- }
1113
- class X extends se {
1114
- /**
1115
- * Constructs an instance of HTMLView.
1116
- * @param fragment - The html fragment that contains the nodes for this view.
1117
- * @param behaviors - The behaviors to be applied to this view.
1118
- */
1119
- constructor(t, e, s) {
1120
- super(), this.fragment = t, this.factories = e, this.targets = s, this.behaviors = null, this.unbindables = [], this.source = null, this.isBound = !1, this.sourceLifetime = J.unknown, this.context = this, this.firstChild = t.firstChild, this.lastChild = t.lastChild;
1121
- }
1122
- /**
1123
- * Appends the view's DOM nodes to the referenced node.
1124
- * @param node - The parent node to append the view's DOM nodes to.
1125
- */
1126
- appendTo(t) {
1127
- t.appendChild(this.fragment);
1128
- }
1129
- /**
1130
- * Inserts the view's DOM nodes before the referenced node.
1131
- * @param node - The node to insert the view's DOM before.
1132
- */
1133
- insertBefore(t) {
1134
- if (this.fragment.hasChildNodes())
1135
- t.parentNode.insertBefore(this.fragment, t);
1136
- else {
1137
- const e = this.lastChild;
1138
- if (t.previousSibling === e)
1139
- return;
1140
- const s = t.parentNode;
1141
- let n = this.firstChild, r;
1142
- for (; n !== e; )
1143
- r = n.nextSibling, s.insertBefore(n, t), n = r;
1144
- s.insertBefore(e, t);
1145
- }
1146
- }
1147
- /**
1148
- * Removes the view's DOM nodes.
1149
- * The nodes are not disposed and the view can later be re-inserted.
1150
- */
1151
- remove() {
1152
- const t = this.fragment, e = this.lastChild;
1153
- let s = this.firstChild, n;
1154
- for (; s !== e; )
1155
- n = s.nextSibling, t.appendChild(s), s = n;
1156
- t.appendChild(e);
1157
- }
1158
- /**
1159
- * Removes the view and unbinds its behaviors, disposing of DOM nodes afterward.
1160
- * Once a view has been disposed, it cannot be inserted or bound again.
1161
- */
1162
- dispose() {
1163
- at(this.firstChild, this.lastChild), this.unbind();
1164
- }
1165
- onUnbind(t) {
1166
- this.unbindables.push(t);
1167
- }
1168
- /**
1169
- * Binds a view's behaviors to its binding source.
1170
- * @param source - The binding source for the view's binding behaviors.
1171
- * @param context - The execution context to run the behaviors within.
1172
- */
1173
- bind(t, e = this) {
1174
- if (this.source === t)
1175
- return;
1176
- let s = this.behaviors;
1177
- if (s === null) {
1178
- this.source = t, this.context = e, this.behaviors = s = new Array(this.factories.length);
1179
- const n = this.factories;
1180
- for (let r = 0, o = n.length; r < o; ++r) {
1181
- const c = n[r].createBehavior();
1182
- c.bind(this), s[r] = c;
1183
- }
1184
- } else {
1185
- this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = t, this.context = e;
1186
- for (let n = 0, r = s.length; n < r; ++n)
1187
- s[n].bind(this);
1188
- }
1189
- this.isBound = !0;
1190
- }
1191
- /**
1192
- * Unbinds a view's behaviors from its binding source.
1193
- */
1194
- unbind() {
1195
- !this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
1196
- }
1197
- evaluateUnbindables() {
1198
- const t = this.unbindables;
1199
- for (let e = 0, s = t.length; e < s; ++e)
1200
- t[e].unbind(this);
1201
- t.length = 0;
1202
- }
1203
- /**
1204
- * Efficiently disposes of a contiguous range of synthetic view instances.
1205
- * @param views - A contiguous range of views to be disposed.
1206
- */
1207
- static disposeContiguousBatch(t) {
1208
- if (t.length !== 0) {
1209
- at(t[0].firstChild, t[t.length - 1].lastChild);
1210
- for (let e = 0, s = t.length; e < s; ++e)
1211
- t[e].unbind();
1212
- }
1213
- }
1214
- }
1215
- x(X);
1216
- g.defineProperty(X.prototype, "index");
1217
- g.defineProperty(X.prototype, "length");
1218
- const A = {
1219
- unhydrated: "unhydrated",
1220
- hydrating: "hydrating",
1221
- hydrated: "hydrated"
357
+ function re(e, t) {
358
+ y.defineProperty(e, t);
359
+ }
360
+ function ie(e, t, n) {
361
+ return Object.assign({}, n, { get() {
362
+ return y.trackVolatile(), n.get.apply(this);
363
+ } });
364
+ }
365
+ var ae = s.getById(n.contextEvent, () => {
366
+ let e = null;
367
+ return {
368
+ get() {
369
+ return e;
370
+ },
371
+ set(t) {
372
+ e = t;
373
+ }
374
+ };
375
+ }), b = Object.freeze({
376
+ default: {
377
+ index: 0,
378
+ length: 0,
379
+ get event() {
380
+ return b.getEvent();
381
+ },
382
+ eventDetail() {
383
+ return this.event.detail;
384
+ },
385
+ eventTarget() {
386
+ return this.event.target;
387
+ }
388
+ },
389
+ getEvent() {
390
+ return ae.get();
391
+ },
392
+ setEvent(e) {
393
+ ae.set(e);
394
+ }
395
+ }), x = class {
396
+ constructor(e, t, n = !1) {
397
+ this.evaluate = e, this.policy = t, this.isVolatile = n;
398
+ }
399
+ }, oe = class extends x {
400
+ createObserver(e) {
401
+ return y.binding(this.evaluate, e, this.isVolatile);
402
+ }
1222
403
  };
1223
- class Ae extends Error {
1224
- constructor(t, e, s, n) {
1225
- super(t), this.factory = e, this.fragment = s, this.templateString = n;
1226
- }
1227
- }
1228
- class Me extends se {
1229
- constructor(t, e, s, n) {
1230
- super(), this.firstChild = t, this.lastChild = e, this.sourceTemplate = s, this.hostBindingTarget = n, this[ie] = z, this.context = this, this.source = null, this.isBound = !1, this.sourceLifetime = J.unknown, this.unbindables = [], this.fragment = null, this.behaviors = null, this._hydrationStage = A.unhydrated, this._bindingViewBoundaries = {}, this._targets = {}, this.factories = s.compile().factories;
1231
- }
1232
- get hydrationStage() {
1233
- return this._hydrationStage;
1234
- }
1235
- get targets() {
1236
- return this._targets;
1237
- }
1238
- get bindingViewBoundaries() {
1239
- return this._bindingViewBoundaries;
1240
- }
1241
- /**
1242
- * no-op. Hydrated views are don't need to be moved from a documentFragment
1243
- * to the target node.
1244
- */
1245
- insertBefore(t) {
1246
- if (this.fragment !== null)
1247
- if (this.fragment.hasChildNodes())
1248
- t.parentNode.insertBefore(this.fragment, t);
1249
- else {
1250
- const e = this.lastChild;
1251
- if (t.previousSibling === e)
1252
- return;
1253
- const s = t.parentNode;
1254
- let n = this.firstChild, r;
1255
- for (; n !== e; )
1256
- r = n.nextSibling, s.insertBefore(n, t), n = r;
1257
- s.insertBefore(e, t);
1258
- }
1259
- }
1260
- /**
1261
- * Appends the view to a node. In cases where this is called before the
1262
- * view has been removed, the method will no-op.
1263
- * @param node - the node to append the view to.
1264
- */
1265
- appendTo(t) {
1266
- this.fragment !== null && t.appendChild(this.fragment);
1267
- }
1268
- remove() {
1269
- const t = this.fragment || (this.fragment = document.createDocumentFragment()), e = this.lastChild;
1270
- let s = this.firstChild, n;
1271
- for (; s !== e; ) {
1272
- if (n = s.nextSibling, !n)
1273
- throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);
1274
- t.appendChild(s), s = n;
1275
- }
1276
- t.appendChild(e);
1277
- }
1278
- bind(t, e = this) {
1279
- var s;
1280
- if (this.hydrationStage !== A.hydrated && (this._hydrationStage = A.hydrating), this.source === t)
1281
- return;
1282
- let n = this.behaviors;
1283
- if (n === null) {
1284
- this.source = t, this.context = e;
1285
- try {
1286
- const { targets: o, boundaries: c } = $e(this.firstChild, this.lastChild, this.factories);
1287
- this._targets = o, this._bindingViewBoundaries = c;
1288
- } catch (o) {
1289
- if (o instanceof Zt) {
1290
- let c = this.sourceTemplate.html;
1291
- typeof c != "string" && (c = c.innerHTML), o.templateString = c;
1292
- }
1293
- throw o;
1294
- }
1295
- this.behaviors = n = new Array(this.factories.length);
1296
- const r = this.factories;
1297
- for (let o = 0, c = r.length; o < c; ++o) {
1298
- const d = r[o];
1299
- if (d.targetNodeId === "h" && this.hostBindingTarget && q(d, this.hostBindingTarget, this._targets), d.targetNodeId in this.targets) {
1300
- const l = d.createBehavior();
1301
- l.bind(this), n[o] = l;
1302
- } else {
1303
- let l = this.sourceTemplate.html;
1304
- typeof l != "string" && (l = l.innerHTML);
1305
- const a = ((s = this.firstChild) === null || s === void 0 ? void 0 : s.getRootNode()).host, h = a?.nodeName || "unknown", u = d, b = [
1306
- `HydrationView was unable to successfully target bindings inside "<${h.toLowerCase()}>".`,
1307
- `
1308
- Mismatch Details:`,
1309
- ` - Expected target node ID: "${d.targetNodeId}"`,
1310
- ` - Available target IDs: [${Object.keys(this.targets).join(", ") || "none"}]`
1311
- ];
1312
- throw d.targetTagName && b.push(` - Expected tag name: "${d.targetTagName}"`), u.sourceAspect && b.push(` - Source aspect: "${u.sourceAspect}"`), u.aspectType !== void 0 && b.push(` - Aspect type: ${u.aspectType}`), b.push(`
1313
- This usually means:`, " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `
1314
- Template: ${l.slice(0, 200)}${l.length > 200 ? "..." : ""}`), new Ae(b.join(`
1315
- `), d, ee(this.firstChild, this.lastChild).cloneContents(), l);
1316
- }
1317
- }
1318
- } else {
1319
- this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = t, this.context = e;
1320
- for (let r = 0, o = n.length; r < o; ++r)
1321
- n[r].bind(this);
1322
- }
1323
- this.isBound = !0, this._hydrationStage = A.hydrated;
1324
- }
1325
- unbind() {
1326
- !this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
1327
- }
1328
- /**
1329
- * Removes the view and unbinds its behaviors, disposing of DOM nodes afterward.
1330
- * Once a view has been disposed, it cannot be inserted or bound again.
1331
- */
1332
- dispose() {
1333
- at(this.firstChild, this.lastChild), this.unbind();
1334
- }
1335
- onUnbind(t) {
1336
- this.unbindables.push(t);
1337
- }
1338
- evaluateUnbindables() {
1339
- const t = this.unbindables;
1340
- for (let e = 0, s = t.length; e < s; ++e)
1341
- t[e].unbind(this);
1342
- t.length = 0;
1343
- }
1344
- }
1345
- ie = z;
1346
- x(Me);
1347
- function Oe(i) {
1348
- return i.create !== void 0;
1349
- }
1350
- function Ee(i, t, e, s) {
1351
- if (e == null && (e = ""), Oe(e)) {
1352
- i.textContent = "";
1353
- let n = i.$fastView;
1354
- if (n === void 0)
1355
- if (U(s) && U(e) && s.bindingViewBoundaries[this.targetNodeId] !== void 0 && s.hydrationStage !== A.hydrated) {
1356
- const r = s.bindingViewBoundaries[this.targetNodeId];
1357
- n = e.hydrate(r.first, r.last);
1358
- } else
1359
- n = e.create();
1360
- else
1361
- i.$fastTemplate !== e && (n.isComposed && (n.remove(), n.unbind()), n = e.create());
1362
- n.isComposed ? n.needsBindOnly && (n.needsBindOnly = !1, n.bind(s.source, s.context)) : (n.isComposed = !0, n.bind(s.source, s.context), n.insertBefore(i), i.$fastView = n, i.$fastTemplate = e);
1363
- } else {
1364
- const n = i.$fastView;
1365
- n !== void 0 && n.isComposed && (n.isComposed = !1, n.remove(), n.needsBindOnly ? n.needsBindOnly = !1 : n.unbind()), i.textContent = e;
1366
- }
1367
- }
1368
- function Re(i, t, e) {
1369
- var s;
1370
- const n = `${this.id}-t`, r = (s = i[n]) !== null && s !== void 0 ? s : i[n] = { v: 0, cv: /* @__PURE__ */ Object.create(null) }, o = r.cv;
1371
- let c = r.v;
1372
- const d = i[t];
1373
- if (e != null && e.length) {
1374
- const l = e.split(/\s+/);
1375
- for (let a = 0, h = l.length; a < h; ++a) {
1376
- const u = l[a];
1377
- u !== "" && (o[u] = c, d.add(u));
1378
- }
1379
- }
1380
- if (r.v = c + 1, c !== 0) {
1381
- c -= 1;
1382
- for (const l in o)
1383
- o[l] === c && d.remove(l);
1384
- }
1385
- }
1386
- const _e = {
1387
- [y.attribute]: T.setAttribute,
1388
- [y.booleanAttribute]: T.setBooleanAttribute,
1389
- [y.property]: (i, t, e) => i[t] = e,
1390
- [y.content]: Ee,
1391
- [y.tokenList]: Re,
1392
- [y.event]: () => {
1393
- }
404
+ function se(e, t, n = y.isVolatileBinding(e)) {
405
+ return new oe(e, t, n);
406
+ }
407
+ //#endregion
408
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/binding/one-time.js
409
+ var ce = class extends x {
410
+ createObserver() {
411
+ return this;
412
+ }
413
+ bind(e) {
414
+ return this.evaluate(e.source, e.context);
415
+ }
1394
416
  };
1395
- class M {
1396
- /**
1397
- * Creates an instance of HTMLBindingDirective.
1398
- * @param dataBinding - The binding configuration to apply.
1399
- */
1400
- constructor(t) {
1401
- this.dataBinding = t, this.updateTarget = null, this.aspectType = y.content;
1402
- }
1403
- /**
1404
- * Creates HTML to be used within a template.
1405
- * @param add - Can be used to add behavior factories to a template.
1406
- */
1407
- createHTML(t) {
1408
- return Yt.interpolation(t(this));
1409
- }
1410
- /**
1411
- * Creates a behavior.
1412
- */
1413
- createBehavior() {
1414
- var t;
1415
- if (this.updateTarget === null) {
1416
- const e = _e[this.aspectType], s = (t = this.dataBinding.policy) !== null && t !== void 0 ? t : this.policy;
1417
- if (!e)
1418
- throw v.error(
1419
- 1205
1420
- /* Message.unsupportedBindingBehavior */
1421
- );
1422
- this.data = `${this.id}-d`, this.updateTarget = s.protect(this.targetTagName, this.aspectType, this.targetAspect, e);
1423
- }
1424
- return this;
1425
- }
1426
- /** @internal */
1427
- bind(t) {
1428
- var e;
1429
- const s = t.targets[this.targetNodeId], n = U(t) && t.hydrationStage && t.hydrationStage !== A.hydrated;
1430
- switch (this.aspectType) {
1431
- case y.event:
1432
- s[this.data] = t, s.addEventListener(this.targetAspect, this, this.dataBinding.options);
1433
- break;
1434
- case y.content:
1435
- t.onUnbind(this);
1436
- // intentional fall through
1437
- default:
1438
- const r = (e = s[this.data]) !== null && e !== void 0 ? e : s[this.data] = this.dataBinding.createObserver(this, this);
1439
- if (r.target = s, r.controller = t, n && (this.aspectType === y.attribute || this.aspectType === y.booleanAttribute)) {
1440
- r.bind(t);
1441
- break;
1442
- }
1443
- this.updateTarget(s, this.targetAspect, r.bind(t), t);
1444
- break;
1445
- }
1446
- }
1447
- /** @internal */
1448
- unbind(t) {
1449
- const s = t.targets[this.targetNodeId].$fastView;
1450
- s !== void 0 && s.isComposed && (s.unbind(), s.needsBindOnly = !0);
1451
- }
1452
- /** @internal */
1453
- handleEvent(t) {
1454
- const e = t.currentTarget[this.data];
1455
- if (e.isBound) {
1456
- O.setEvent(t);
1457
- const s = this.dataBinding.evaluate(e.source, e.context);
1458
- O.setEvent(null), s !== !0 && t.preventDefault();
1459
- }
1460
- }
1461
- /** @internal */
1462
- handleChange(t, e) {
1463
- const s = e.target, n = e.controller;
1464
- this.updateTarget(s, this.targetAspect, e.bind(n), n);
1465
- }
1466
- }
1467
- $.define(M, { aspected: !0 });
1468
- const ne = (i, t) => `${i}.${t}`, At = {}, C = {
1469
- index: 0,
1470
- node: null
417
+ d(ce);
418
+ function le(e, t) {
419
+ return new ce(e, t);
420
+ }
421
+ //#endregion
422
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/styles/element-styles.js
423
+ var ue;
424
+ function de(e) {
425
+ return e.map((e) => e instanceof S ? de(e.styles) : [e]).reduce((e, t) => e.concat(t), []);
426
+ }
427
+ var S = class e {
428
+ constructor(t) {
429
+ this.styles = t, this.targets = /* @__PURE__ */ new WeakSet(), this._strategy = null, this.behaviors = t.map((t) => t instanceof e ? t.behaviors : null).reduce((e, t) => t === null ? e : e === null ? t : e.concat(t), null);
430
+ }
431
+ get strategy() {
432
+ return this._strategy === null && this.withStrategy(ue), this._strategy;
433
+ }
434
+ addStylesTo(e) {
435
+ this.strategy.addStylesTo(e), this.targets.add(e);
436
+ }
437
+ removeStylesFrom(e) {
438
+ this.strategy.removeStylesFrom(e), this.targets.delete(e);
439
+ }
440
+ isAttachedTo(e) {
441
+ return this.targets.has(e);
442
+ }
443
+ withBehaviors(...e) {
444
+ return this.behaviors = this.behaviors === null ? e : this.behaviors.concat(e), this;
445
+ }
446
+ withStrategy(e) {
447
+ return this._strategy = new e(de(this.styles)), this;
448
+ }
449
+ static setDefaultStrategy(e) {
450
+ ue = e;
451
+ }
452
+ static normalize(t) {
453
+ return t === void 0 ? void 0 : Array.isArray(t) ? new e(t) : t instanceof e ? t : new e([t]);
454
+ }
1471
455
  };
1472
- function Mt(i) {
1473
- i.startsWith("fast-") || v.warn(1204, { name: i });
1474
- }
1475
- const Ie = new Proxy(document.createElement("div"), {
1476
- get(i, t) {
1477
- Mt(t);
1478
- const e = Reflect.get(i, t);
1479
- return E(e) ? e.bind(i) : e;
1480
- },
1481
- set(i, t, e) {
1482
- return Mt(t), Reflect.set(i, t, e);
1483
- }
1484
- });
1485
- class je {
1486
- constructor(t, e, s) {
1487
- this.fragment = t, this.directives = e, this.policy = s, this.proto = null, this.nodeIds = /* @__PURE__ */ new Set(), this.descriptors = {}, this.factories = [];
1488
- }
1489
- addFactory(t, e, s, n, r) {
1490
- var o, c;
1491
- this.nodeIds.has(s) || (this.nodeIds.add(s), this.addTargetDescriptor(e, s, n)), t.id = (o = t.id) !== null && o !== void 0 ? o : j(), t.targetNodeId = s, t.targetTagName = r, t.policy = (c = t.policy) !== null && c !== void 0 ? c : this.policy, this.factories.push(t);
1492
- }
1493
- freeze() {
1494
- return this.proto = Object.create(null, this.descriptors), this;
1495
- }
1496
- addTargetDescriptor(t, e, s) {
1497
- const n = this.descriptors;
1498
- if (e === "r" || // root
1499
- e === "h" || // host
1500
- n[e])
1501
- return;
1502
- if (!n[t]) {
1503
- const o = t.lastIndexOf("."), c = t.substring(0, o), d = parseInt(t.substring(o + 1));
1504
- this.addTargetDescriptor(c, t, d);
1505
- }
1506
- let r = At[e];
1507
- if (!r) {
1508
- const o = `_${e}`;
1509
- At[e] = r = {
1510
- get() {
1511
- var c;
1512
- return (c = this[o]) !== null && c !== void 0 ? c : this[o] = this[t].childNodes[s];
1513
- }
1514
- };
1515
- }
1516
- n[e] = r;
1517
- }
1518
- createView(t) {
1519
- const e = this.fragment.cloneNode(!0), s = Object.create(this.proto);
1520
- s.r = e, s.h = t ?? Ie;
1521
- for (const n of this.nodeIds)
1522
- s[n];
1523
- return new X(e, this.factories, s);
1524
- }
1525
- }
1526
- function re(i, t, e, s, n, r = !1) {
1527
- const o = e.attributes, c = i.directives;
1528
- for (let d = 0, l = o.length; d < l; ++d) {
1529
- const a = o[d], h = a.value, u = K.parse(h, c);
1530
- let b = null;
1531
- u === null ? r && (b = new M(Kt(() => h, i.policy)), $.assignAspect(b, a.name)) : b = ht.aggregate(u, i.policy), b !== null && (e.removeAttributeNode(a), d--, l--, i.addFactory(b, t, s, n, e.tagName));
1532
- }
1533
- }
1534
- function Le(i, t, e, s, n) {
1535
- const r = K.parse(t.textContent, i.directives);
1536
- if (r === null)
1537
- return C.node = t.nextSibling, C.index = n + 1, C;
1538
- let o, c = o = t;
1539
- for (let d = 0, l = r.length; d < l; ++d) {
1540
- const a = r[d];
1541
- d !== 0 && (n++, s = ne(e, n), o = c.parentNode.insertBefore(document.createTextNode(""), c.nextSibling)), B(a) ? o.textContent = a : (o.textContent = " ", $.assignAspect(a), i.addFactory(a, e, s, n, null)), c = o;
1542
- }
1543
- return C.index = n + 1, C.node = c.nextSibling, C;
1544
- }
1545
- function ae(i, t, e) {
1546
- let s = 0, n = t.firstChild;
1547
- for (; n; ) {
1548
- const r = Ve(i, e, n, s);
1549
- n = r.node, s = r.index;
1550
- }
1551
- }
1552
- function Ve(i, t, e, s) {
1553
- const n = ne(t, s);
1554
- switch (e.nodeType) {
1555
- case 1:
1556
- re(i, t, e, n, s), ae(i, e, n);
1557
- break;
1558
- case 3:
1559
- return Le(i, e, t, n, s);
1560
- case 8:
1561
- const r = K.parse(e.data, i.directives);
1562
- r !== null && i.addFactory(
1563
- /* eslint-disable-next-line @typescript-eslint/no-use-before-define */
1564
- ht.aggregate(r),
1565
- t,
1566
- n,
1567
- s,
1568
- null
1569
- );
1570
- break;
1571
- }
1572
- return C.index = s + 1, C.node = e.nextSibling, C;
1573
- }
1574
- function Fe(i, t) {
1575
- return i && i.nodeType == 8 && K.parse(i.data, t) !== null;
1576
- }
1577
- const Ot = "TEMPLATE", ht = {
1578
- /**
1579
- * Compiles a template and associated directives into a compilation
1580
- * result which can be used to create views.
1581
- * @param html - The html string or template element to compile.
1582
- * @param factories - The behavior factories referenced by the template.
1583
- * @param policy - The security policy to compile the html with.
1584
- * @remarks
1585
- * The template that is provided for compilation is altered in-place
1586
- * and cannot be compiled again. If the original template must be preserved,
1587
- * it is recommended that you clone the original and pass the clone to this API.
1588
- * @public
1589
- */
1590
- compile(i, t, e = T.policy) {
1591
- let s;
1592
- if (B(i)) {
1593
- s = document.createElement(Ot), s.innerHTML = e.createHTML(i);
1594
- const o = s.content.firstElementChild;
1595
- o !== null && o.tagName === Ot && (s = o);
1596
- } else
1597
- s = i;
1598
- !s.content.firstChild && !s.content.lastChild && s.content.appendChild(document.createComment(""));
1599
- const n = document.adoptNode(s.content), r = new je(n, t, e);
1600
- return re(
1601
- r,
1602
- "",
1603
- s,
1604
- /* host */
1605
- "h",
1606
- 0,
1607
- !0
1608
- ), // If the first node in a fragment is a marker, that means it's an unstable first node,
1609
- // because something like a when, repeat, etc. could add nodes before the marker.
1610
- // To mitigate this, we insert a stable first node. However, if we insert a node,
1611
- // that will alter the result of the TreeWalker. So, we also need to offset the target index.
1612
- (Fe(n.firstChild, t) || // Or if there is only one node and a directive, it means the template's content
1613
- // is *only* the directive. In that case, HTMLView.dispose() misses any nodes inserted by
1614
- // the directive. Inserting a new node ensures proper disposal of nodes added by the directive.
1615
- n.childNodes.length === 1 && Object.keys(t).length > 0) && n.insertBefore(document.createComment(""), n.firstChild), ae(
1616
- r,
1617
- n,
1618
- /* root */
1619
- "r"
1620
- ), C.node = null, r.freeze();
1621
- },
1622
- /**
1623
- * Sets the default compilation strategy that will be used by the ViewTemplate whenever
1624
- * it needs to compile a view preprocessed with the html template function.
1625
- * @param strategy - The compilation strategy to use when compiling templates.
1626
- */
1627
- setDefaultStrategy(i) {
1628
- this.compile = i;
1629
- },
1630
- /**
1631
- * Aggregates an array of strings and directives into a single directive.
1632
- * @param parts - A heterogeneous array of static strings interspersed with
1633
- * directives.
1634
- * @param policy - The security policy to use with the aggregated bindings.
1635
- * @returns A single inline directive that aggregates the behavior of all the parts.
1636
- */
1637
- aggregate(i, t = T.policy) {
1638
- if (i.length === 1)
1639
- return i[0];
1640
- let e, s = !1, n;
1641
- const r = i.length, o = i.map((l) => B(l) ? () => l : (e = l.sourceAspect || e, s = s || l.dataBinding.isVolatile, n = n || l.dataBinding.policy, l.dataBinding.evaluate)), c = (l, a) => {
1642
- let h = "";
1643
- for (let u = 0; u < r; ++u)
1644
- h += o[u](l, a);
1645
- return h;
1646
- }, d = new M(Gt(c, n ?? t, s));
1647
- return $.assignAspect(d, e), d;
1648
- }
1649
- }, Pe = (
1650
- /* eslint-disable-next-line no-control-regex, max-len */
1651
- /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/
1652
- ), De = /* @__PURE__ */ Object.create(null);
1653
- class L {
1654
- /**
1655
- * Creates an instance of InlineTemplateDirective.
1656
- * @param template - The template to inline.
1657
- */
1658
- constructor(t, e = De) {
1659
- this.html = t, this.factories = e;
1660
- }
1661
- /**
1662
- * Creates HTML to be used within a template.
1663
- * @param add - Can be used to add behavior factories to a template.
1664
- */
1665
- createHTML(t) {
1666
- const e = this.factories;
1667
- for (const s in e)
1668
- t(e[s]);
1669
- return this.html;
1670
- }
1671
- }
1672
- L.empty = new L("");
1673
- $.define(L);
1674
- function He(i, t, e, s = $.getForInstance(i)) {
1675
- if (s.aspected) {
1676
- const n = Pe.exec(t);
1677
- n !== null && $.assignAspect(i, n[2]);
1678
- }
1679
- return i.createHTML(e);
1680
- }
1681
- class Y {
1682
- /**
1683
- * Creates an instance of ViewTemplate.
1684
- * @param html - The html representing what this template will instantiate, including placeholders for directives.
1685
- * @param factories - The directives that will be connected to placeholders in the html.
1686
- * @param policy - The security policy to use when compiling this template.
1687
- */
1688
- constructor(t, e = {}, s) {
1689
- this.policy = s, this.result = null, this.html = t, this.factories = e;
1690
- }
1691
- /**
1692
- * @internal
1693
- */
1694
- compile() {
1695
- return this.result === null && (this.result = ht.compile(this.html, this.factories, this.policy)), this.result;
1696
- }
1697
- /**
1698
- * Creates an HTMLView instance based on this template definition.
1699
- * @param hostBindingTarget - The element that host behaviors will be bound to.
1700
- */
1701
- create(t) {
1702
- return this.compile().createView(t);
1703
- }
1704
- /**
1705
- * Returns a directive that can inline the template.
1706
- */
1707
- inline() {
1708
- return new L(B(this.html) ? this.html : this.html.innerHTML, this.factories);
1709
- }
1710
- /**
1711
- * Sets the DOMPolicy for this template.
1712
- * @param policy - The policy to associated with this template.
1713
- * @returns The modified template instance.
1714
- * @remarks
1715
- * The DOMPolicy can only be set once for a template and cannot be
1716
- * set after the template is compiled.
1717
- */
1718
- withPolicy(t) {
1719
- if (this.result)
1720
- throw v.error(
1721
- 1208
1722
- /* Message.cannotSetTemplatePolicyAfterCompilation */
1723
- );
1724
- if (this.policy)
1725
- throw v.error(
1726
- 1207
1727
- /* Message.onlySetTemplatePolicyOnce */
1728
- );
1729
- return this.policy = t, this;
1730
- }
1731
- /**
1732
- * Creates an HTMLView from this template, binds it to the source, and then appends it to the host.
1733
- * @param source - The data source to bind the template to.
1734
- * @param host - The Element where the template will be rendered.
1735
- * @param hostBindingTarget - An HTML element to target the host bindings at if different from the
1736
- * host that the template is being attached to.
1737
- */
1738
- render(t, e, s) {
1739
- const n = this.create(s);
1740
- return n.bind(t), n.appendTo(e), n;
1741
- }
1742
- /**
1743
- * Creates a template based on a set of static strings and dynamic values.
1744
- * @param strings - The static strings to create the template with.
1745
- * @param values - The dynamic values to create the template with.
1746
- * @param policy - The DOMPolicy to associated with the template.
1747
- * @returns A ViewTemplate.
1748
- * @remarks
1749
- * This API should not be used directly under normal circumstances because constructing
1750
- * a template in this way, if not done properly, can open up the application to XSS
1751
- * attacks. When using this API, provide a strong DOMPolicy that can properly sanitize
1752
- * and also be sure to manually sanitize all static strings particularly if they can
1753
- * come from user input.
1754
- */
1755
- static create(t, e, s) {
1756
- let n = "";
1757
- const r = /* @__PURE__ */ Object.create(null), o = (c) => {
1758
- var d;
1759
- const l = (d = c.id) !== null && d !== void 0 ? d : c.id = j();
1760
- return r[l] = c, l;
1761
- };
1762
- for (let c = 0, d = t.length - 1; c < d; ++c) {
1763
- const l = t[c];
1764
- let a = e[c], h;
1765
- if (n += l, E(a))
1766
- a = new M(Gt(a));
1767
- else if (a instanceof lt)
1768
- a = new M(a);
1769
- else if (!(h = $.getForInstance(a))) {
1770
- const u = a;
1771
- a = new M(Kt(() => u));
1772
- }
1773
- n += He(a, l, o, h);
1774
- }
1775
- return new Y(n + t[t.length - 1], r, s);
1776
- }
1777
- }
1778
- x(Y);
1779
- const oe = ((i, ...t) => {
1780
- if (Array.isArray(i) && Array.isArray(i.raw))
1781
- return Y.create(i, t);
1782
- throw v.error(
1783
- 1206
1784
- /* Message.directCallToHTMLTagNotAllowed */
1785
- );
456
+ S.supportsAdoptedStyleSheets = Array.isArray(document.adoptedStyleSheets) && "replace" in CSSStyleSheet.prototype;
457
+ //#endregion
458
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/hydration.js
459
+ var fe = /fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/, pe = /fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/, me = /fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/, he = /fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/, ge = /^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/, _e = /fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;
460
+ function ve(e) {
461
+ return e && e.nodeType === Node.COMMENT_NODE;
462
+ }
463
+ var C = Object.freeze({
464
+ attributeMarkerName: "data-fe-b",
465
+ attributeBindingSeparator: " ",
466
+ contentBindingStartMarker(e, t) {
467
+ return `fe-b$$start$$${e}$$${t}$$fe-b`;
468
+ },
469
+ contentBindingEndMarker(e, t) {
470
+ return `fe-b$$end$$${e}$$${t}$$fe-b`;
471
+ },
472
+ repeatStartMarker(e) {
473
+ return `fe-repeat$$start$$${e}$$fe-repeat`;
474
+ },
475
+ repeatEndMarker(e) {
476
+ return `fe-repeat$$end$$${e}$$fe-repeat`;
477
+ },
478
+ isContentBindingStartMarker(e) {
479
+ return fe.test(e);
480
+ },
481
+ isContentBindingEndMarker(e) {
482
+ return pe.test(e);
483
+ },
484
+ isRepeatViewStartMarker(e) {
485
+ return me.test(e);
486
+ },
487
+ isRepeatViewEndMarker(e) {
488
+ return he.test(e);
489
+ },
490
+ isElementBoundaryStartMarker(e) {
491
+ return ve(e) && ge.test(e.data.trim());
492
+ },
493
+ isElementBoundaryEndMarker(e) {
494
+ return ve(e) && _e.test(e.data);
495
+ },
496
+ parseAttributeBinding(e) {
497
+ let t = e.getAttribute(this.attributeMarkerName);
498
+ return t === null ? t : t.split(this.attributeBindingSeparator).map((e) => parseInt(e));
499
+ },
500
+ parseEnumeratedAttributeBinding(e) {
501
+ let t = [], n = this.attributeMarkerName.length + 1, r = `${this.attributeMarkerName}-`;
502
+ for (let i of e.getAttributeNames()) if (i.startsWith(r)) {
503
+ let e = Number(i.slice(n));
504
+ if (!Number.isNaN(e)) t.push(e);
505
+ else throw Error(`Invalid attribute marker name: ${i}. Expected format is ${r}<number>.`);
506
+ }
507
+ return t.length === 0 ? null : t;
508
+ },
509
+ parseContentBindingStartMarker(e) {
510
+ return xe(fe, e);
511
+ },
512
+ parseContentBindingEndMarker(e) {
513
+ return xe(pe, e);
514
+ },
515
+ parseRepeatStartMarker(e) {
516
+ return ye(me, e);
517
+ },
518
+ parseRepeatEndMarker(e) {
519
+ return ye(he, e);
520
+ },
521
+ parseElementBoundaryStartMarker(e) {
522
+ return be(ge, e.trim());
523
+ },
524
+ parseElementBoundaryEndMarker(e) {
525
+ return be(_e, e);
526
+ }
1786
527
  });
1787
- oe.partial = (i) => new L(i);
1788
- const Et = "boolean", Rt = "reflect", le = Object.freeze({
1789
- /**
1790
- * Locates all attribute configurations associated with a type.
1791
- */
1792
- locate: qt()
1793
- }), ze = {
1794
- toView(i) {
1795
- return i ? "true" : "false";
1796
- },
1797
- fromView(i) {
1798
- return !(i == null || i === "false" || i === !1 || i === 0);
1799
- }
528
+ function ye(e, t) {
529
+ let n = e.exec(t);
530
+ return n === null ? n : parseInt(n[1]);
531
+ }
532
+ function be(e, t) {
533
+ let n = e.exec(t);
534
+ return n === null ? n : n[1];
535
+ }
536
+ function xe(e, t) {
537
+ let n = e.exec(t);
538
+ return n === null ? n : [parseInt(n[1]), n[2]];
539
+ }
540
+ var w = Symbol.for("fe-hydration");
541
+ function T(e) {
542
+ return e[w] === w;
543
+ }
544
+ //#endregion
545
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/markup.js
546
+ var Se = `fast-${Math.random().toString(36).substring(2, 8)}`, E = `${Se}{`, D = `}${Se}`, Ce = D.length, we = 0, O = () => `${Se}-${++we}`, Te = Object.freeze({
547
+ interpolation: (e) => `${E}${e}${D}`,
548
+ attribute: (e) => `${O()}="${E}${e}${D}"`,
549
+ comment: (e) => `<!--${E}${e}${D}-->`
550
+ }), k = Object.freeze({ parse(e, t) {
551
+ let n = e.split(E);
552
+ if (n.length === 1) return null;
553
+ let r = [];
554
+ for (let e = 0, i = n.length; e < i; ++e) {
555
+ let i = n[e], a = i.indexOf(D), o;
556
+ if (a === -1) o = i;
557
+ else {
558
+ let e = i.substring(0, a);
559
+ r.push(t[e]), o = i.substring(a + Ce);
560
+ }
561
+ o !== "" && r.push(o);
562
+ }
563
+ return r;
564
+ } }), A = l(), j = Object.freeze({
565
+ getForInstance: A.getForInstance,
566
+ getByType: A.getByType,
567
+ define(e, t) {
568
+ return t ||= {}, t.type = e, A.register(t), e;
569
+ },
570
+ assignAspect(e, t) {
571
+ if (!t) {
572
+ e.aspectType = f.content;
573
+ return;
574
+ }
575
+ switch (e.sourceAspect = t, t[0]) {
576
+ case ":":
577
+ e.targetAspect = t.substring(1), e.aspectType = e.targetAspect === "classList" ? f.tokenList : f.property;
578
+ break;
579
+ case "?":
580
+ e.targetAspect = t.substring(1), e.aspectType = f.booleanAttribute;
581
+ break;
582
+ case "@":
583
+ e.targetAspect = t.substring(1), e.aspectType = f.event;
584
+ break;
585
+ default:
586
+ e.targetAspect = t, e.aspectType = f.attribute;
587
+ break;
588
+ }
589
+ }
590
+ }), Ee = class {
591
+ constructor(e) {
592
+ this.options = e;
593
+ }
594
+ createHTML(e) {
595
+ return Te.attribute(e(this));
596
+ }
597
+ createBehavior() {
598
+ return this;
599
+ }
1800
600
  };
1801
- function _t(i) {
1802
- if (i == null)
1803
- return null;
1804
- const t = i * 1;
1805
- return isNaN(t) ? null : t;
1806
- }
1807
- const yi = {
1808
- toView(i) {
1809
- const t = _t(i);
1810
- return t && t.toString();
1811
- },
1812
- fromView: _t
601
+ d(Ee);
602
+ //#endregion
603
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/hydration/target-builder.js
604
+ var De = class extends Error {
605
+ constructor(e, t, n) {
606
+ super(e), this.factories = t, this.node = n;
607
+ }
1813
608
  };
1814
- class W {
1815
- /**
1816
- * Creates an instance of AttributeDefinition.
1817
- * @param Owner - The class constructor that owns this attribute.
1818
- * @param name - The name of the property associated with the attribute.
1819
- * @param attribute - The name of the attribute in HTML.
1820
- * @param mode - The {@link AttributeMode} that describes the behavior of this attribute.
1821
- * @param converter - A {@link ValueConverter} that integrates with the property getter/setter
1822
- * to convert values to and from a DOM string.
1823
- */
1824
- constructor(t, e, s = e.toLowerCase(), n = Rt, r) {
1825
- this.guards = /* @__PURE__ */ new Set(), this.Owner = t, this.name = e, this.attribute = s, this.mode = n, this.converter = r, this.fieldName = `_${e}`, this.callbackName = `${e}Changed`, this.hasCallback = this.callbackName in t.prototype, n === Et && r === void 0 && (this.converter = ze);
1826
- }
1827
- /**
1828
- * Sets the value of the attribute/property on the source element.
1829
- * @param source - The source element to access.
1830
- * @param newValue - The value to set the attribute/property to.
1831
- */
1832
- setValue(t, e) {
1833
- const s = t[this.fieldName], n = this.converter;
1834
- n !== void 0 && (e = n.fromView(e)), s !== e && (t[this.fieldName] = e, this.tryReflectToAttribute(t), this.hasCallback && t[this.callbackName](s, e), t.$fastController.notify(this.name));
1835
- }
1836
- /**
1837
- * Gets the value of the attribute/property on the source element.
1838
- * @param source - The source element to access.
1839
- */
1840
- getValue(t) {
1841
- return g.track(t, this.name), t[this.fieldName];
1842
- }
1843
- /** @internal */
1844
- onAttributeChangedCallback(t, e) {
1845
- this.guards.has(t) || (this.guards.add(t), this.setValue(t, e), this.guards.delete(t));
1846
- }
1847
- tryReflectToAttribute(t) {
1848
- const e = this.mode, s = this.guards;
1849
- s.has(t) || e === "fromView" || Wt.enqueue(() => {
1850
- s.add(t);
1851
- const n = t[this.fieldName];
1852
- switch (e) {
1853
- case Rt:
1854
- const r = this.converter;
1855
- T.setAttribute(t, this.attribute, r !== void 0 ? r.toView(n) : n);
1856
- break;
1857
- case Et:
1858
- T.setBooleanAttribute(t, this.attribute, n);
1859
- break;
1860
- }
1861
- s.delete(t);
1862
- });
1863
- }
1864
- /**
1865
- * Collects all attribute definitions associated with the owner.
1866
- * @param Owner - The class constructor to collect attribute for.
1867
- * @param attributeLists - Any existing attributes to collect and merge with those associated with the owner.
1868
- * @internal
1869
- */
1870
- static collect(t, ...e) {
1871
- const s = [];
1872
- e.push(le.locate(t));
1873
- for (let n = 0, r = e.length; n < r; ++n) {
1874
- const o = e[n];
1875
- if (o !== void 0)
1876
- for (let c = 0, d = o.length; c < d; ++c) {
1877
- const l = o[c];
1878
- B(l) ? s.push(new W(t, l)) : s.push(new W(t, l.property, l.attribute, l.mode, l.converter));
1879
- }
1880
- }
1881
- return s;
1882
- }
1883
- }
1884
- function Ue(i, t) {
1885
- let e;
1886
- function s(n, r) {
1887
- arguments.length > 1 && (e.property = r), le.locate(n.constructor).push(e);
1888
- }
1889
- if (arguments.length > 1) {
1890
- e = {}, s(i, t);
1891
- return;
1892
- }
1893
- return e = i === void 0 ? {} : i, s;
1894
- }
1895
- var qe = function(i, t, e, s) {
1896
- function n(r) {
1897
- return r instanceof e ? r : new e(function(o) {
1898
- o(r);
1899
- });
1900
- }
1901
- return new (e || (e = Promise))(function(r, o) {
1902
- function c(a) {
1903
- try {
1904
- l(s.next(a));
1905
- } catch (h) {
1906
- o(h);
1907
- }
1908
- }
1909
- function d(a) {
1910
- try {
1911
- l(s.throw(a));
1912
- } catch (h) {
1913
- o(h);
1914
- }
1915
- }
1916
- function l(a) {
1917
- a.done ? r(a.value) : n(a.value).then(c, d);
1918
- }
1919
- l((s = s.apply(i, t || [])).next());
1920
- });
609
+ function M(e) {
610
+ return e.nodeType === Node.COMMENT_NODE;
611
+ }
612
+ function Oe(e) {
613
+ return e.nodeType === Node.TEXT_NODE;
614
+ }
615
+ function ke(e, t) {
616
+ let n = document.createRange();
617
+ return n.setStart(e, 0), n.setEnd(t, M(t) || Oe(t) ? t.data.length : t.childNodes.length), n;
618
+ }
619
+ function Ae(e) {
620
+ return e instanceof DocumentFragment && "mode" in e;
621
+ }
622
+ function je(e, t, n) {
623
+ let r = ke(e, t), i = r.commonAncestorContainer, a = document.createTreeWalker(i, NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_COMMENT + NodeFilter.SHOW_TEXT, { acceptNode(e) {
624
+ return r.comparePoint(e, 0) === 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
625
+ } }), o = {}, s = {}, c = a.currentNode = e;
626
+ for (; c !== null;) {
627
+ switch (c.nodeType) {
628
+ case Node.ELEMENT_NODE:
629
+ Me(c, n, o);
630
+ break;
631
+ case Node.COMMENT_NODE:
632
+ Ne(c, a, n, o, s);
633
+ break;
634
+ }
635
+ c = a.nextNode();
636
+ }
637
+ return r.detach(), {
638
+ targets: o,
639
+ boundaries: s
640
+ };
641
+ }
642
+ function Me(e, t, n) {
643
+ let r = C.parseAttributeBinding(e) ?? C.parseEnumeratedAttributeBinding(e);
644
+ if (r !== null) {
645
+ for (let i of r) {
646
+ if (!t[i]) throw new De(`HydrationView was unable to successfully target factory on ${e.nodeName} inside ${e.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`, t, e);
647
+ N(t[i], e, n);
648
+ }
649
+ e.removeAttribute(C.attributeMarkerName);
650
+ }
651
+ }
652
+ function Ne(e, t, n, r, i) {
653
+ if (C.isElementBoundaryStartMarker(e)) {
654
+ Pe(e, t);
655
+ return;
656
+ }
657
+ if (C.isContentBindingStartMarker(e.data)) {
658
+ let a = C.parseContentBindingStartMarker(e.data);
659
+ if (a === null) return;
660
+ let [o, s] = a, c = n[o], l = [], u = t.nextSibling();
661
+ e.data = "";
662
+ let d = u;
663
+ for (; u !== null;) {
664
+ if (M(u)) {
665
+ let e = C.parseContentBindingEndMarker(u.data);
666
+ if (e && e[1] === s) break;
667
+ }
668
+ l.push(u), u = t.nextSibling();
669
+ }
670
+ if (u === null) {
671
+ let t = e.getRootNode();
672
+ throw Error(`Error hydrating Comment node inside "${Ae(t) ? t.host.nodeName : t.nodeName}".`);
673
+ }
674
+ u.data = "", l.length === 1 && Oe(l[0]) ? N(c, l[0], r) : (u !== d && u.previousSibling !== null && (i[c.targetNodeId] = {
675
+ first: d,
676
+ last: u.previousSibling
677
+ }), N(c, u.parentNode.insertBefore(document.createTextNode(""), u), r));
678
+ }
679
+ }
680
+ function Pe(e, t) {
681
+ let n = C.parseElementBoundaryStartMarker(e.data), r = t.nextSibling();
682
+ for (; r !== null;) {
683
+ if (M(r)) {
684
+ let e = C.parseElementBoundaryEndMarker(r.data);
685
+ if (e && e === n) break;
686
+ }
687
+ r = t.nextSibling();
688
+ }
689
+ }
690
+ function N(e, t, n) {
691
+ if (e.targetNodeId === void 0) throw Error("Factory could not be target to the node");
692
+ n[e.targetNodeId] = t;
693
+ }
694
+ //#endregion
695
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/view.js
696
+ var Fe;
697
+ function P(e, t) {
698
+ let n = e.parentNode, r = e, i;
699
+ for (; r !== t;) {
700
+ if (i = r.nextSibling, !i) throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
701
+ n.removeChild(r), r = i;
702
+ }
703
+ n.removeChild(t);
704
+ }
705
+ var Ie = class {
706
+ constructor() {
707
+ this.index = 0, this.length = 0;
708
+ }
709
+ get event() {
710
+ return b.getEvent();
711
+ }
712
+ get isEven() {
713
+ return this.index % 2 == 0;
714
+ }
715
+ get isOdd() {
716
+ return this.index % 2 != 0;
717
+ }
718
+ get isFirst() {
719
+ return this.index === 0;
720
+ }
721
+ get isInMiddle() {
722
+ return !this.isFirst && !this.isLast;
723
+ }
724
+ get isLast() {
725
+ return this.index === this.length - 1;
726
+ }
727
+ eventDetail() {
728
+ return this.event.detail;
729
+ }
730
+ eventTarget() {
731
+ return this.event.target;
732
+ }
733
+ }, F = class extends Ie {
734
+ constructor(e, t, n) {
735
+ super(), this.fragment = e, this.factories = t, this.targets = n, this.behaviors = null, this.unbindables = [], this.source = null, this.isBound = !1, this.sourceLifetime = v.unknown, this.context = this, this.firstChild = e.firstChild, this.lastChild = e.lastChild;
736
+ }
737
+ appendTo(e) {
738
+ e.appendChild(this.fragment);
739
+ }
740
+ insertBefore(e) {
741
+ if (this.fragment.hasChildNodes()) e.parentNode.insertBefore(this.fragment, e);
742
+ else {
743
+ let t = this.lastChild;
744
+ if (e.previousSibling === t) return;
745
+ let n = e.parentNode, r = this.firstChild, i;
746
+ for (; r !== t;) i = r.nextSibling, n.insertBefore(r, e), r = i;
747
+ n.insertBefore(t, e);
748
+ }
749
+ }
750
+ remove() {
751
+ let e = this.fragment, t = this.lastChild, n = this.firstChild, r;
752
+ for (; n !== t;) r = n.nextSibling, e.appendChild(n), n = r;
753
+ e.appendChild(t);
754
+ }
755
+ dispose() {
756
+ P(this.firstChild, this.lastChild), this.unbind();
757
+ }
758
+ onUnbind(e) {
759
+ this.unbindables.push(e);
760
+ }
761
+ bind(e, t = this) {
762
+ if (this.source === e) return;
763
+ let n = this.behaviors;
764
+ if (n === null) {
765
+ this.source = e, this.context = t, this.behaviors = n = Array(this.factories.length);
766
+ let r = this.factories;
767
+ for (let e = 0, t = r.length; e < t; ++e) {
768
+ let t = r[e].createBehavior();
769
+ t.bind(this), n[e] = t;
770
+ }
771
+ } else {
772
+ this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = e, this.context = t;
773
+ for (let e = 0, t = n.length; e < t; ++e) n[e].bind(this);
774
+ }
775
+ this.isBound = !0;
776
+ }
777
+ unbind() {
778
+ !this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
779
+ }
780
+ evaluateUnbindables() {
781
+ let e = this.unbindables;
782
+ for (let t = 0, n = e.length; t < n; ++t) e[t].unbind(this);
783
+ e.length = 0;
784
+ }
785
+ static disposeContiguousBatch(e) {
786
+ if (e.length !== 0) {
787
+ P(e[0].firstChild, e[e.length - 1].lastChild);
788
+ for (let t = 0, n = e.length; t < n; ++t) e[t].unbind();
789
+ }
790
+ }
1921
791
  };
1922
- const It = { mode: "open" }, jt = {}, it = /* @__PURE__ */ new Set(), _ = v.getById(N.elementRegistry, () => Ut()), We = {
1923
- deferAndHydrate: "defer-and-hydrate"
792
+ d(F), y.defineProperty(F.prototype, "index"), y.defineProperty(F.prototype, "length");
793
+ var I = {
794
+ unhydrated: "unhydrated",
795
+ hydrating: "hydrating",
796
+ hydrated: "hydrated"
797
+ }, Le = class extends Error {
798
+ constructor(e, t, n, r) {
799
+ super(e), this.factory = t, this.fragment = n, this.templateString = r;
800
+ }
801
+ }, Re = class extends Ie {
802
+ constructor(e, t, n, r) {
803
+ super(), this.firstChild = e, this.lastChild = t, this.sourceTemplate = n, this.hostBindingTarget = r, this[Fe] = w, this.context = this, this.source = null, this.isBound = !1, this.sourceLifetime = v.unknown, this.unbindables = [], this.fragment = null, this.behaviors = null, this._hydrationStage = I.unhydrated, this._bindingViewBoundaries = {}, this._targets = {}, this.factories = n.compile().factories;
804
+ }
805
+ get hydrationStage() {
806
+ return this._hydrationStage;
807
+ }
808
+ get targets() {
809
+ return this._targets;
810
+ }
811
+ get bindingViewBoundaries() {
812
+ return this._bindingViewBoundaries;
813
+ }
814
+ insertBefore(e) {
815
+ if (this.fragment !== null) if (this.fragment.hasChildNodes()) e.parentNode.insertBefore(this.fragment, e);
816
+ else {
817
+ let t = this.lastChild;
818
+ if (e.previousSibling === t) return;
819
+ let n = e.parentNode, r = this.firstChild, i;
820
+ for (; r !== t;) i = r.nextSibling, n.insertBefore(r, e), r = i;
821
+ n.insertBefore(t, e);
822
+ }
823
+ }
824
+ appendTo(e) {
825
+ this.fragment !== null && e.appendChild(this.fragment);
826
+ }
827
+ remove() {
828
+ let e = this.fragment ||= document.createDocumentFragment(), t = this.lastChild, n = this.firstChild, r;
829
+ for (; n !== t;) {
830
+ if (r = n.nextSibling, !r) throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
831
+ e.appendChild(n), n = r;
832
+ }
833
+ e.appendChild(t);
834
+ }
835
+ bind(e, t = this) {
836
+ if (this.hydrationStage !== I.hydrated && (this._hydrationStage = I.hydrating), this.source === e) return;
837
+ let n = this.behaviors;
838
+ if (n === null) {
839
+ this.source = e, this.context = t;
840
+ try {
841
+ let { targets: e, boundaries: t } = je(this.firstChild, this.lastChild, this.factories);
842
+ this._targets = e, this._bindingViewBoundaries = t;
843
+ } catch (e) {
844
+ if (e instanceof De) {
845
+ let t = this.sourceTemplate.html;
846
+ typeof t != "string" && (t = t.innerHTML), e.templateString = t;
847
+ }
848
+ throw e;
849
+ }
850
+ this.behaviors = n = Array(this.factories.length);
851
+ let r = this.factories;
852
+ for (let e = 0, t = r.length; e < t; ++e) {
853
+ let t = r[e];
854
+ if (t.targetNodeId === "h" && this.hostBindingTarget && N(t, this.hostBindingTarget, this._targets), t.targetNodeId in this.targets) {
855
+ let r = t.createBehavior();
856
+ r.bind(this), n[e] = r;
857
+ } else {
858
+ let e = this.sourceTemplate.html;
859
+ typeof e != "string" && (e = e.innerHTML);
860
+ let n = (this.firstChild?.getRootNode()).host?.nodeName || "unknown", r = t, i = [
861
+ `HydrationView was unable to successfully target bindings inside "<${n.toLowerCase()}>".`,
862
+ "\nMismatch Details:",
863
+ ` - Expected target node ID: "${t.targetNodeId}"`,
864
+ ` - Available target IDs: [${Object.keys(this.targets).join(", ") || "none"}]`
865
+ ];
866
+ throw t.targetTagName && i.push(` - Expected tag name: "${t.targetTagName}"`), r.sourceAspect && i.push(` - Source aspect: "${r.sourceAspect}"`), r.aspectType !== void 0 && i.push(` - Aspect type: ${r.aspectType}`), i.push("\nThis usually means:", " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `\nTemplate: ${e.slice(0, 200)}${e.length > 200 ? "..." : ""}`), new Le(i.join("\n"), t, ke(this.firstChild, this.lastChild).cloneContents(), e);
867
+ }
868
+ }
869
+ } else {
870
+ this.source !== null && this.evaluateUnbindables(), this.isBound = !1, this.source = e, this.context = t;
871
+ for (let e = 0, t = n.length; e < t; ++e) n[e].bind(this);
872
+ }
873
+ this.isBound = !0, this._hydrationStage = I.hydrated;
874
+ }
875
+ unbind() {
876
+ !this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
877
+ }
878
+ dispose() {
879
+ P(this.firstChild, this.lastChild), this.unbind();
880
+ }
881
+ onUnbind(e) {
882
+ this.unbindables.push(e);
883
+ }
884
+ evaluateUnbindables() {
885
+ let e = this.unbindables;
886
+ for (let t = 0, n = e.length; t < n; ++t) e[t].unbind(this);
887
+ e.length = 0;
888
+ }
1924
889
  };
1925
- class p {
1926
- constructor(t, e = t.definition) {
1927
- var s;
1928
- this.platformDefined = !1, B(e) && (e = { name: e }), this.type = t, this.name = e.name, this.template = e.template, this.templateOptions = e.templateOptions, this.registry = (s = e.registry) !== null && s !== void 0 ? s : customElements;
1929
- const n = t.prototype, r = W.collect(t, e.attributes), o = new Array(r.length), c = {}, d = {};
1930
- for (let l = 0, a = r.length; l < a; ++l) {
1931
- const h = r[l];
1932
- o[l] = h.attribute, c[h.name] = h, d[h.attribute] = h, g.defineProperty(n, h);
1933
- }
1934
- Reflect.defineProperty(t, "observedAttributes", {
1935
- value: o,
1936
- enumerable: !0
1937
- }), this.attributes = r, this.propertyLookup = c, this.attributeLookup = d, this.shadowOptions = e.shadowOptions === void 0 ? It : e.shadowOptions === null ? void 0 : Object.assign(Object.assign({}, It), e.shadowOptions), this.elementOptions = e.elementOptions === void 0 ? jt : Object.assign(Object.assign({}, jt), e.elementOptions), this.styles = m.normalize(e.styles), _.register(this), g.defineProperty(p.isRegistered, this.name), p.isRegistered[this.name] = this.type;
1938
- }
1939
- /**
1940
- * Indicates if this element has been defined in at least one registry.
1941
- */
1942
- get isDefined() {
1943
- return this.platformDefined;
1944
- }
1945
- /**
1946
- * Defines a custom element based on this definition.
1947
- * @param registry - The element registry to define the element in.
1948
- * @remarks
1949
- * This operation is idempotent per registry.
1950
- */
1951
- define(t = this.registry) {
1952
- var e, s;
1953
- const n = this.type;
1954
- return t.get(this.name) || (this.platformDefined = !0, t.define(this.name, n, this.elementOptions), (s = (e = this.lifecycleCallbacks) === null || e === void 0 ? void 0 : e.elementDidDefine) === null || s === void 0 || s.call(e, this.name)), this;
1955
- }
1956
- /**
1957
- * Creates an instance of FASTElementDefinition.
1958
- * @param type - The type this definition is being created for.
1959
- * @param nameOrDef - The name of the element to define or a config object
1960
- * that describes the element to define.
1961
- */
1962
- static compose(t, e) {
1963
- return it.has(t) || _.getByType(t) ? new p(class extends t {
1964
- }, e) : new p(t, e);
1965
- }
1966
- /**
1967
- * Registers a FASTElement base type.
1968
- * @param type - The type to register as a base type.
1969
- * @internal
1970
- */
1971
- static registerBaseType(t) {
1972
- it.add(t);
1973
- }
1974
- /**
1975
- * Creates an instance of FASTElementDefinition asynchronously. This option assumes
1976
- * that a template and shadowOptions will be provided and completes when those requirements
1977
- * are met.
1978
- * @param type - The type this definition is being created for.
1979
- * @param nameOrDef - The name of the element to define or a config object
1980
- * that describes the element to define.
1981
- * @alpha
1982
- */
1983
- static composeAsync(t, e) {
1984
- return new Promise((s) => {
1985
- (it.has(t) || _.getByType(t)) && s(new p(class extends t {
1986
- }, e));
1987
- const n = new p(t, e);
1988
- g.getNotifier(n).subscribe({
1989
- handleChange: () => {
1990
- var r, o;
1991
- (o = (r = n.lifecycleCallbacks) === null || r === void 0 ? void 0 : r.templateDidUpdate) === null || o === void 0 || o.call(r, n.name), s(n);
1992
- }
1993
- }, "template");
1994
- });
1995
- }
1996
- }
1997
- p.isRegistered = {};
1998
- p.getByType = _.getByType;
1999
- p.getForInstance = _.getForInstance;
2000
- p.registerAsync = (i) => qe(void 0, void 0, void 0, function* () {
2001
- return new Promise((t) => {
2002
- p.isRegistered[i] && t(p.isRegistered[i]), g.getNotifier(p.isRegistered).subscribe({ handleChange: () => t(p.isRegistered[i]) }, i);
2003
- });
2004
- });
2005
- g.defineProperty(p.prototype, "template");
2006
- class Qe extends MutationObserver {
2007
- /**
2008
- * Creates an instance of UnobservableMutationObserver.
2009
- * @param callback - The callback to invoke when observed nodes are changed.
2010
- */
2011
- constructor(t) {
2012
- function e(s) {
2013
- this.callback.call(null, s.filter((n) => this.observedNodes.has(n.target)));
2014
- }
2015
- super(e), this.callback = t, this.observedNodes = /* @__PURE__ */ new Set();
2016
- }
2017
- observe(t, e) {
2018
- this.observedNodes.add(t), super.observe(t, e);
2019
- }
2020
- unobserve(t) {
2021
- this.observedNodes.delete(t), this.observedNodes.size < 1 && this.disconnect();
2022
- }
2023
- }
2024
- const vi = Object.freeze({
2025
- /**
2026
- * Creates a ViewBehaviorOrchestrator.
2027
- * @param source - The source to to associate behaviors with.
2028
- * @returns A ViewBehaviorOrchestrator.
2029
- */
2030
- create(i) {
2031
- const t = [], e = {};
2032
- let s = null, n = !1;
2033
- return {
2034
- source: i,
2035
- context: O.default,
2036
- targets: e,
2037
- get isBound() {
2038
- return n;
2039
- },
2040
- addBehaviorFactory(r, o) {
2041
- var c, d, l, a;
2042
- const h = r;
2043
- h.id = (c = h.id) !== null && c !== void 0 ? c : j(), h.targetNodeId = (d = h.targetNodeId) !== null && d !== void 0 ? d : j(), h.targetTagName = (l = o.tagName) !== null && l !== void 0 ? l : null, h.policy = (a = h.policy) !== null && a !== void 0 ? a : T.policy, this.addTarget(h.targetNodeId, o), this.addBehavior(h.createBehavior());
2044
- },
2045
- addTarget(r, o) {
2046
- e[r] = o;
2047
- },
2048
- addBehavior(r) {
2049
- t.push(r), n && r.bind(this);
2050
- },
2051
- onUnbind(r) {
2052
- s === null && (s = []), s.push(r);
2053
- },
2054
- connectedCallback(r) {
2055
- n || (n = !0, t.forEach((o) => o.bind(this)));
2056
- },
2057
- disconnectedCallback(r) {
2058
- n && (n = !1, s !== null && s.forEach((o) => o.unbind(this)));
2059
- }
2060
- };
2061
- }
2062
- }), Ge = {
2063
- bubbles: !0,
2064
- composed: !0,
2065
- cancelable: !0
2066
- }, H = "isConnected", ce = /* @__PURE__ */ new WeakMap();
2067
- function I(i) {
2068
- var t, e;
2069
- return (e = (t = i.shadowRoot) !== null && t !== void 0 ? t : ce.get(i)) !== null && e !== void 0 ? e : null;
2070
- }
2071
- let Lt;
2072
- class S extends Qt {
2073
- /**
2074
- * Creates a Controller to control the specified element.
2075
- * @param element - The element to be controlled by this controller.
2076
- * @param definition - The element definition metadata that instructs this
2077
- * controller in how to handle rendering and other platform integrations.
2078
- * @internal
2079
- */
2080
- constructor(t, e) {
2081
- super(t), 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 = t, this.definition = e, this.shadowOptions = e.shadowOptions;
2082
- const s = g.getAccessors(t);
2083
- if (s.length > 0) {
2084
- const n = this.boundObservables = /* @__PURE__ */ Object.create(null);
2085
- for (let r = 0, o = s.length; r < o; ++r) {
2086
- const c = s[r].name, d = t[c];
2087
- d !== void 0 && (delete t[c], n[c] = d);
2088
- }
2089
- }
2090
- }
2091
- /**
2092
- * Indicates whether or not the custom element has been
2093
- * connected to the document.
2094
- */
2095
- get isConnected() {
2096
- return g.track(this, H), this.stage === 1;
2097
- }
2098
- /**
2099
- * The context the expression is evaluated against.
2100
- */
2101
- get context() {
2102
- var t, e;
2103
- return (e = (t = this.view) === null || t === void 0 ? void 0 : t.context) !== null && e !== void 0 ? e : O.default;
2104
- }
2105
- /**
2106
- * Indicates whether the controller is bound.
2107
- */
2108
- get isBound() {
2109
- var t, e;
2110
- return (e = (t = this.view) === null || t === void 0 ? void 0 : t.isBound) !== null && e !== void 0 ? e : !1;
2111
- }
2112
- /**
2113
- * Indicates how the source's lifetime relates to the controller's lifetime.
2114
- */
2115
- get sourceLifetime() {
2116
- var t;
2117
- return (t = this.view) === null || t === void 0 ? void 0 : t.sourceLifetime;
2118
- }
2119
- /**
2120
- * Gets/sets the template used to render the component.
2121
- * @remarks
2122
- * This value can only be accurately read after connect but can be set at any time.
2123
- */
2124
- get template() {
2125
- var t;
2126
- if (this._template === null) {
2127
- const e = this.definition;
2128
- this.source.resolveTemplate ? this._template = this.source.resolveTemplate() : e.template && (this._template = (t = e.template) !== null && t !== void 0 ? t : null);
2129
- }
2130
- return this._template;
2131
- }
2132
- set template(t) {
2133
- this._template !== t && (this._template = t, this.needsInitialization || this.renderTemplate(t));
2134
- }
2135
- /**
2136
- * The shadow root options for the component.
2137
- */
2138
- get shadowOptions() {
2139
- return this._shadowRootOptions;
2140
- }
2141
- set shadowOptions(t) {
2142
- if (this._shadowRootOptions === void 0 && t !== void 0) {
2143
- this._shadowRootOptions = t;
2144
- let e = this.source.shadowRoot;
2145
- e ? this.hasExistingShadowRoot = !0 : (e = this.source.attachShadow(t), t.mode === "closed" && ce.set(this.source, e));
2146
- }
2147
- }
2148
- /**
2149
- * The main set of styles used for the component, independent
2150
- * of any dynamically added styles.
2151
- */
2152
- get mainStyles() {
2153
- var t;
2154
- if (this._mainStyles === null) {
2155
- const e = this.definition;
2156
- this.source.resolveStyles ? this._mainStyles = this.source.resolveStyles() : e.styles && (this._mainStyles = (t = e.styles) !== null && t !== void 0 ? t : null);
2157
- }
2158
- return this._mainStyles;
2159
- }
2160
- set mainStyles(t) {
2161
- this._mainStyles !== t && (this._mainStyles !== null && this.removeStyles(this._mainStyles), this._mainStyles = t, this.needsInitialization || this.addStyles(t));
2162
- }
2163
- /**
2164
- * Registers an unbind handler with the controller.
2165
- * @param behavior - An object to call when the controller unbinds.
2166
- */
2167
- onUnbind(t) {
2168
- var e;
2169
- (e = this.view) === null || e === void 0 || e.onUnbind(t);
2170
- }
2171
- /**
2172
- * Adds the behavior to the component.
2173
- * @param behavior - The behavior to add.
2174
- */
2175
- addBehavior(t) {
2176
- var e, s;
2177
- const n = (e = this.behaviors) !== null && e !== void 0 ? e : this.behaviors = /* @__PURE__ */ new Map(), r = (s = n.get(t)) !== null && s !== void 0 ? s : 0;
2178
- r === 0 ? (n.set(t, 1), t.addedCallback && t.addedCallback(this), t.connectedCallback && !this.guardBehaviorConnection && (this.stage === 1 || this.stage === 0) && t.connectedCallback(this)) : n.set(t, r + 1);
2179
- }
2180
- /**
2181
- * Removes the behavior from the component.
2182
- * @param behavior - The behavior to remove.
2183
- * @param force - Forces removal even if this behavior was added more than once.
2184
- */
2185
- removeBehavior(t, e = !1) {
2186
- const s = this.behaviors;
2187
- if (s === null)
2188
- return;
2189
- const n = s.get(t);
2190
- n !== void 0 && (n === 1 || e ? (s.delete(t), t.disconnectedCallback && this.stage !== 3 && t.disconnectedCallback(this), t.removedCallback && t.removedCallback(this)) : s.set(t, n - 1));
2191
- }
2192
- /**
2193
- * Adds styles to this element. Providing an HTMLStyleElement will attach the element instance to the shadowRoot.
2194
- * @param styles - The styles to add.
2195
- */
2196
- addStyles(t) {
2197
- var e;
2198
- if (!t)
2199
- return;
2200
- const s = this.source;
2201
- if (t instanceof HTMLElement)
2202
- ((e = I(s)) !== null && e !== void 0 ? e : this.source).append(t);
2203
- else if (!t.isAttachedTo(s)) {
2204
- const n = t.behaviors;
2205
- if (t.addStylesTo(s), n !== null)
2206
- for (let r = 0, o = n.length; r < o; ++r)
2207
- this.addBehavior(n[r]);
2208
- }
2209
- }
2210
- /**
2211
- * Removes styles from this element. Providing an HTMLStyleElement will detach the element instance from the shadowRoot.
2212
- * @param styles - the styles to remove.
2213
- */
2214
- removeStyles(t) {
2215
- var e;
2216
- if (!t)
2217
- return;
2218
- const s = this.source;
2219
- if (t instanceof HTMLElement)
2220
- ((e = I(s)) !== null && e !== void 0 ? e : s).removeChild(t);
2221
- else if (t.isAttachedTo(s)) {
2222
- const n = t.behaviors;
2223
- if (t.removeStylesFrom(s), n !== null)
2224
- for (let r = 0, o = n.length; r < o; ++r)
2225
- this.removeBehavior(n[r]);
2226
- }
2227
- }
2228
- /**
2229
- * Runs connected lifecycle behavior on the associated element.
2230
- */
2231
- connect() {
2232
- 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, g.notify(this, H));
2233
- }
2234
- /**
2235
- * Binds any observables that were set before upgrade.
2236
- */
2237
- bindObservables() {
2238
- if (this.boundObservables !== null) {
2239
- const t = this.source, e = this.boundObservables, s = Object.keys(e);
2240
- for (let n = 0, r = s.length; n < r; ++n) {
2241
- const o = s[n];
2242
- t[o] = e[o];
2243
- }
2244
- this.boundObservables = null;
2245
- }
2246
- }
2247
- /**
2248
- * Connects any existing behaviors on the associated element.
2249
- */
2250
- connectBehaviors() {
2251
- if (this.behaviorsConnected === !1) {
2252
- const t = this.behaviors;
2253
- if (t !== null) {
2254
- this.guardBehaviorConnection = !0;
2255
- for (const e of t.keys())
2256
- e.connectedCallback && e.connectedCallback(this);
2257
- this.guardBehaviorConnection = !1;
2258
- }
2259
- this.behaviorsConnected = !0;
2260
- }
2261
- }
2262
- /**
2263
- * Disconnects any behaviors on the associated element.
2264
- */
2265
- disconnectBehaviors() {
2266
- if (this.behaviorsConnected === !0) {
2267
- const t = this.behaviors;
2268
- if (t !== null)
2269
- for (const e of t.keys())
2270
- e.disconnectedCallback && e.disconnectedCallback(this);
2271
- this.behaviorsConnected = !1;
2272
- }
2273
- }
2274
- /**
2275
- * Runs disconnected lifecycle behavior on the associated element.
2276
- */
2277
- disconnect() {
2278
- this.stage === 1 && (this.stage = 2, g.notify(this, H), this.view !== null && this.view.unbind(), this.disconnectBehaviors(), this.stage = 3);
2279
- }
2280
- /**
2281
- * Runs the attribute changed callback for the associated element.
2282
- * @param name - The name of the attribute that changed.
2283
- * @param oldValue - The previous value of the attribute.
2284
- * @param newValue - The new value of the attribute.
2285
- */
2286
- onAttributeChangedCallback(t, e, s) {
2287
- const n = this.definition.attributeLookup[t];
2288
- n !== void 0 && n.onAttributeChangedCallback(this.source, s);
2289
- }
2290
- /**
2291
- * Emits a custom HTML event.
2292
- * @param type - The type name of the event.
2293
- * @param detail - The event detail object to send with the event.
2294
- * @param options - The event options. By default bubbles and composed.
2295
- * @remarks
2296
- * Only emits events if connected.
2297
- */
2298
- emit(t, e, s) {
2299
- return this.stage === 1 ? this.source.dispatchEvent(new CustomEvent(t, Object.assign(Object.assign({ detail: e }, Ge), s))) : !1;
2300
- }
2301
- /**
2302
- * Renders the provided template to the element.
2303
- *
2304
- * @param template - The template to render.
2305
- * @remarks
2306
- * If `null` is provided, any existing view will be removed.
2307
- */
2308
- renderTemplate(t) {
2309
- var e;
2310
- const s = this.source, n = (e = I(s)) !== null && e !== void 0 ? e : s;
2311
- if (this.view !== null)
2312
- this.view.dispose(), this.view = null;
2313
- else if (!this.needsInitialization || this.hasExistingShadowRoot) {
2314
- this.hasExistingShadowRoot = !1;
2315
- for (let r = n.firstChild; r !== null; r = n.firstChild)
2316
- n.removeChild(r);
2317
- }
2318
- t && (this.view = t.render(s, n, s), this.view.sourceLifetime = J.coupled);
2319
- }
2320
- /**
2321
- * Locates or creates a controller for the specified element.
2322
- * @param element - The element to return the controller for.
2323
- * @param override - Reset the controller even if one has been defined.
2324
- * @remarks
2325
- * The specified element must have a {@link FASTElementDefinition}
2326
- * registered either through the use of the {@link customElement}
2327
- * decorator or a call to `FASTElement.define`.
2328
- */
2329
- static forCustomElement(t, e = !1) {
2330
- const s = t.$fastController;
2331
- if (s !== void 0 && !e)
2332
- return s;
2333
- const n = p.getForInstance(t);
2334
- if (n === void 0)
2335
- throw v.error(
2336
- 1401
2337
- /* Message.missingElementDefinition */
2338
- );
2339
- return g.getNotifier(n).subscribe({
2340
- handleChange: () => {
2341
- S.forCustomElement(t, !0), t.$fastController.connect();
2342
- }
2343
- }, "template"), g.getNotifier(n).subscribe({
2344
- handleChange: () => {
2345
- S.forCustomElement(t, !0), t.$fastController.connect();
2346
- }
2347
- }, "shadowOptions"), t.$fastController = new Lt(t, n);
2348
- }
2349
- /**
2350
- * Sets the strategy that ElementController.forCustomElement uses to construct
2351
- * ElementController instances for an element.
2352
- * @param strategy - The strategy to use.
2353
- */
2354
- static setStrategy(t) {
2355
- Lt = t;
2356
- }
2357
- }
2358
- x(S);
2359
- S.setStrategy(S);
2360
- function Q(i) {
2361
- var t;
2362
- return "adoptedStyleSheets" in i ? i : (t = I(i)) !== null && t !== void 0 ? t : i.getRootNode();
2363
- }
2364
- class Z {
2365
- constructor(t) {
2366
- const e = Z.styleSheetCache;
2367
- this.sheets = t.map((s) => {
2368
- if (s instanceof CSSStyleSheet)
2369
- return s;
2370
- let n = e.get(s);
2371
- return n === void 0 && (n = new CSSStyleSheet(), n.replaceSync(s), e.set(s, n)), n;
2372
- });
2373
- }
2374
- addStylesTo(t) {
2375
- de(Q(t), this.sheets);
2376
- }
2377
- removeStylesFrom(t) {
2378
- he(Q(t), this.sheets);
2379
- }
2380
- }
2381
- Z.styleSheetCache = /* @__PURE__ */ new Map();
2382
- let Je = 0;
2383
- const Ke = () => `fast-${++Je}`;
2384
- function Vt(i) {
2385
- return i === document ? document.body : i;
2386
- }
2387
- class Xe {
2388
- constructor(t) {
2389
- this.styles = t, this.styleClass = Ke();
2390
- }
2391
- addStylesTo(t) {
2392
- t = Vt(Q(t));
2393
- const e = this.styles, s = this.styleClass;
2394
- for (let n = 0; n < e.length; n++) {
2395
- const r = document.createElement("style");
2396
- r.innerHTML = e[n], r.className = s, t.append(r);
2397
- }
2398
- }
2399
- removeStylesFrom(t) {
2400
- t = Vt(Q(t));
2401
- const e = t.querySelectorAll(`.${this.styleClass}`);
2402
- for (let s = 0, n = e.length; s < n; ++s)
2403
- t.removeChild(e[s]);
2404
- }
2405
- }
2406
- let de = (i, t) => {
2407
- i.adoptedStyleSheets = [...i.adoptedStyleSheets, ...t];
2408
- }, he = (i, t) => {
2409
- i.adoptedStyleSheets = i.adoptedStyleSheets.filter((e) => t.indexOf(e) === -1);
890
+ Fe = w, d(Re);
891
+ //#endregion
892
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/html-binding-directive.js
893
+ function ze(e) {
894
+ return e.create !== void 0;
895
+ }
896
+ function Be(e, t, n, r) {
897
+ if (n ??= "", ze(n)) {
898
+ e.textContent = "";
899
+ let t = e.$fastView;
900
+ if (t === void 0) if (T(r) && T(n) && r.bindingViewBoundaries[this.targetNodeId] !== void 0 && r.hydrationStage !== I.hydrated) {
901
+ let e = r.bindingViewBoundaries[this.targetNodeId];
902
+ t = n.hydrate(e.first, e.last);
903
+ } else t = n.create();
904
+ else e.$fastTemplate !== n && (t.isComposed && (t.remove(), t.unbind()), t = n.create());
905
+ t.isComposed ? t.needsBindOnly && (t.needsBindOnly = !1, t.bind(r.source, r.context)) : (t.isComposed = !0, t.bind(r.source, r.context), t.insertBefore(e), e.$fastView = t, e.$fastTemplate = n);
906
+ } else {
907
+ let t = e.$fastView;
908
+ t !== void 0 && t.isComposed && (t.isComposed = !1, t.remove(), t.needsBindOnly ? t.needsBindOnly = !1 : t.unbind()), e.textContent = n;
909
+ }
910
+ }
911
+ function Ve(e, t, n) {
912
+ let r = `${this.id}-t`, i = e[r] ?? (e[r] = {
913
+ v: 0,
914
+ cv: Object.create(null)
915
+ }), a = i.cv, o = i.v, s = e[t];
916
+ if (n != null && n.length) {
917
+ let e = n.split(/\s+/);
918
+ for (let t = 0, n = e.length; t < n; ++t) {
919
+ let n = e[t];
920
+ n !== "" && (a[n] = o, s.add(n));
921
+ }
922
+ }
923
+ if (i.v = o + 1, o !== 0) {
924
+ --o;
925
+ for (let e in a) a[e] === o && s.remove(e);
926
+ }
927
+ }
928
+ var He = {
929
+ [f.attribute]: h.setAttribute,
930
+ [f.booleanAttribute]: h.setBooleanAttribute,
931
+ [f.property]: (e, t, n) => e[t] = n,
932
+ [f.content]: Be,
933
+ [f.tokenList]: Ve,
934
+ [f.event]: () => void 0
935
+ }, L = class {
936
+ constructor(e) {
937
+ this.dataBinding = e, this.updateTarget = null, this.aspectType = f.content;
938
+ }
939
+ createHTML(e) {
940
+ return Te.interpolation(e(this));
941
+ }
942
+ createBehavior() {
943
+ if (this.updateTarget === null) {
944
+ let e = He[this.aspectType], t = this.dataBinding.policy ?? this.policy;
945
+ if (!e) throw s.error(1205);
946
+ this.data = `${this.id}-d`, this.updateTarget = t.protect(this.targetTagName, this.aspectType, this.targetAspect, e);
947
+ }
948
+ return this;
949
+ }
950
+ bind(e) {
951
+ let t = e.targets[this.targetNodeId], n = T(e) && e.hydrationStage && e.hydrationStage !== I.hydrated;
952
+ switch (this.aspectType) {
953
+ case f.event:
954
+ t[this.data] = e, t.addEventListener(this.targetAspect, this, this.dataBinding.options);
955
+ break;
956
+ case f.content: e.onUnbind(this);
957
+ default:
958
+ let r = t[this.data] ?? (t[this.data] = this.dataBinding.createObserver(this, this));
959
+ if (r.target = t, r.controller = e, n && (this.aspectType === f.attribute || this.aspectType === f.booleanAttribute)) {
960
+ r.bind(e);
961
+ break;
962
+ }
963
+ this.updateTarget(t, this.targetAspect, r.bind(e), e);
964
+ break;
965
+ }
966
+ }
967
+ unbind(e) {
968
+ let t = e.targets[this.targetNodeId].$fastView;
969
+ t !== void 0 && t.isComposed && (t.unbind(), t.needsBindOnly = !0);
970
+ }
971
+ handleEvent(e) {
972
+ let t = e.currentTarget[this.data];
973
+ if (t.isBound) {
974
+ b.setEvent(e);
975
+ let n = this.dataBinding.evaluate(t.source, t.context);
976
+ b.setEvent(null), n !== !0 && e.preventDefault();
977
+ }
978
+ }
979
+ handleChange(e, t) {
980
+ let n = t.target, r = t.controller;
981
+ this.updateTarget(n, this.targetAspect, t.bind(r), r);
982
+ }
2410
983
  };
2411
- if (m.supportsAdoptedStyleSheets) {
2412
- try {
2413
- document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(), de = (i, t) => {
2414
- i.adoptedStyleSheets.push(...t);
2415
- }, he = (i, t) => {
2416
- for (const e of t) {
2417
- const s = i.adoptedStyleSheets.indexOf(e);
2418
- s !== -1 && i.adoptedStyleSheets.splice(s, 1);
2419
- }
2420
- };
2421
- } catch {
2422
- }
2423
- m.setDefaultStrategy(Z);
2424
- } else
2425
- m.setDefaultStrategy(Xe);
2426
- const V = "defer-hydration", st = "needs-hydration";
2427
- class f extends S {
2428
- /**
2429
- * {@inheritdoc ElementController.shadowOptions}
2430
- */
2431
- get shadowOptions() {
2432
- return super.shadowOptions;
2433
- }
2434
- set shadowOptions(t) {
2435
- super.shadowOptions = t, (this.hasExistingShadowRoot || t !== void 0 && !this.template) && this.definition.templateOptions === We.deferAndHydrate && (this.source.toggleAttribute(V, !0), this.source.toggleAttribute(st, !0));
2436
- }
2437
- /**
2438
- * Adds the current element instance to the hydrating instances map
2439
- */
2440
- addHydratingInstance() {
2441
- if (!f.hydratingInstances)
2442
- return;
2443
- const t = this.definition.name;
2444
- let e = f.hydratingInstances.get(t);
2445
- e || (e = /* @__PURE__ */ new Set(), f.hydratingInstances.set(t, e)), e.add(this.source);
2446
- }
2447
- /**
2448
- * Configure lifecycle callbacks for hydration events
2449
- */
2450
- static config(t) {
2451
- return f.lifecycleCallbacks = t, this;
2452
- }
2453
- static hydrationObserverHandler(t) {
2454
- for (const e of t)
2455
- e.target.hasAttribute(V) || (f.hydrationObserver.unobserve(e.target), e.target.$fastController.connect());
2456
- }
2457
- /**
2458
- * Checks to see if hydration is complete and if so, invokes the hydrationComplete callback.
2459
- * Then resets the ElementController strategy to the default so that future elements
2460
- * don't use the HydratableElementController.
2461
- *
2462
- * @param deadline - the idle deadline object
2463
- */
2464
- static checkHydrationComplete(t) {
2465
- var e, s, n;
2466
- if (t.didTimeout) {
2467
- f.idleCallbackId = requestIdleCallback(f.checkHydrationComplete, { timeout: 50 });
2468
- return;
2469
- }
2470
- ((e = f.hydratingInstances) === null || e === void 0 ? void 0 : e.size) === 0 && ((n = (s = f.lifecycleCallbacks) === null || s === void 0 ? void 0 : s.hydrationComplete) === null || n === void 0 || n.call(s), S.setStrategy(S));
2471
- }
2472
- /**
2473
- * Runs connected lifecycle behavior on the associated element.
2474
- */
2475
- connect() {
2476
- var t, e, s, n, r;
2477
- if (this.needsHydration = (t = this.needsHydration) !== null && t !== void 0 ? t : this.source.hasAttribute(st), this.needsHydration && ((s = (e = f.lifecycleCallbacks) === null || e === void 0 ? void 0 : e.elementWillHydrate) === null || s === void 0 || s.call(e, this.definition.name)), this.source.hasAttribute(V)) {
2478
- this.addHydratingInstance(), f.hydrationObserver.observe(this.source, {
2479
- attributeFilter: [V]
2480
- });
2481
- return;
2482
- }
2483
- if (!this.needsHydration) {
2484
- super.connect(), this.removeHydratingInstance();
2485
- return;
2486
- }
2487
- if (this.stage === 3) {
2488
- if (this.stage = 0, this.bindObservables(), this.connectBehaviors(), this.template)
2489
- if (U(this.template)) {
2490
- const o = this.source, c = (n = I(o)) !== null && n !== void 0 ? n : o;
2491
- let d = c.firstChild, l = c.lastChild;
2492
- o.shadowRoot === null && (w.isElementBoundaryStartMarker(d) && (d.data = "", d = d.nextSibling), w.isElementBoundaryEndMarker(l) && (l.data = "", l = l.previousSibling)), this.view = this.template.hydrate(d, l, o), (r = this.view) === null || r === void 0 || r.bind(this.source);
2493
- } else
2494
- this.renderTemplate(this.template);
2495
- this.addStyles(this.mainStyles), this.stage = 1, this.source.removeAttribute(st), this.needsInitialization = this.needsHydration = !1, this.removeHydratingInstance(), g.notify(this, H);
2496
- }
2497
- }
2498
- /**
2499
- * Removes the current element instance from the hydrating instances map
2500
- */
2501
- removeHydratingInstance() {
2502
- var t, e;
2503
- if (!f.hydratingInstances)
2504
- return;
2505
- const s = this.definition.name, n = f.hydratingInstances.get(s);
2506
- (e = (t = f.lifecycleCallbacks) === null || t === void 0 ? void 0 : t.elementDidHydrate) === null || e === void 0 || e.call(t, this.definition.name), n && (n.delete(this.source), n.size || f.hydratingInstances.delete(s), f.idleCallbackId && cancelIdleCallback(f.idleCallbackId), f.idleCallbackId = requestIdleCallback(f.checkHydrationComplete, { timeout: 50 }));
2507
- }
2508
- /**
2509
- * Unregisters the hydration observer when the element is disconnected.
2510
- */
2511
- disconnect() {
2512
- super.disconnect(), f.hydrationObserver.unobserve(this.source);
2513
- }
2514
- /**
2515
- * Sets the ElementController strategy to HydratableElementController.
2516
- * @remarks
2517
- * This method is typically called during application startup to enable
2518
- * hydration support for FAST elements.
2519
- */
2520
- static install() {
2521
- S.setStrategy(f);
2522
- }
2523
- }
2524
- f.hydrationObserver = new Qe(f.hydrationObserverHandler);
2525
- f.idleCallbackId = null;
2526
- f.hydratingInstances = /* @__PURE__ */ new Map();
2527
- function ue(i) {
2528
- const t = class extends i {
2529
- constructor() {
2530
- super(), S.forCustomElement(this);
2531
- }
2532
- $emit(e, s, n) {
2533
- return this.$fastController.emit(e, s, n);
2534
- }
2535
- connectedCallback() {
2536
- this.$fastController.connect();
2537
- }
2538
- disconnectedCallback() {
2539
- this.$fastController.disconnect();
2540
- }
2541
- attributeChangedCallback(e, s, n) {
2542
- this.$fastController.onAttributeChangedCallback(e, s, n);
2543
- }
2544
- };
2545
- return p.registerBaseType(t), t;
2546
- }
2547
- function Ye(i, t) {
2548
- return E(i) ? p.compose(i, t) : p.compose(this, i);
2549
- }
2550
- function Ze(i, t) {
2551
- return E(i) ? new Promise((e) => {
2552
- p.composeAsync(i, t).then((s) => {
2553
- e(s);
2554
- });
2555
- }).then((e) => e.define().type) : new Promise((e) => {
2556
- p.composeAsync(this, i).then((s) => {
2557
- e(s);
2558
- });
2559
- }).then((e) => e.define().type);
2560
- }
2561
- function ti(i, t) {
2562
- return E(i) ? p.compose(i, t).define().type : p.compose(this, i).define().type;
2563
- }
2564
- function ei(i) {
2565
- return ue(i);
2566
- }
2567
- const ii = Object.assign(ue(HTMLElement), {
2568
- /**
2569
- * Creates a new FASTElement base class inherited from the
2570
- * provided base type.
2571
- * @param BaseType - The base element type to inherit from.
2572
- */
2573
- from: ei,
2574
- /**
2575
- * Defines a platform custom element based on the provided type and definition.
2576
- * @param type - The custom element type to define.
2577
- * @param nameOrDef - The name of the element to define or a definition object
2578
- * that describes the element to define.
2579
- */
2580
- define: ti,
2581
- /**
2582
- * Defines metadata for a FASTElement which can be used to later define the element.
2583
- * @public
2584
- */
2585
- compose: Ye,
2586
- /**
2587
- * Defines metadata for a FASTElement which can be used after it has been resolved to define the element.
2588
- * @alpha
2589
- */
2590
- defineAsync: Ze
984
+ j.define(L, { aspected: !0 });
985
+ //#endregion
986
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/compiler.js
987
+ var Ue = (e, t) => `${e}.${t}`, We = {}, R = {
988
+ index: 0,
989
+ node: null
990
+ };
991
+ function Ge(e) {
992
+ e.startsWith("fast-") || s.warn(1204, { name: e });
993
+ }
994
+ var Ke = new Proxy(document.createElement("div"), {
995
+ get(e, t) {
996
+ Ge(t);
997
+ let n = Reflect.get(e, t);
998
+ return r(n) ? n.bind(e) : n;
999
+ },
1000
+ set(e, t, n) {
1001
+ return Ge(t), Reflect.set(e, t, n);
1002
+ }
1003
+ }), qe = class {
1004
+ constructor(e, t, n) {
1005
+ this.fragment = e, this.directives = t, this.policy = n, this.proto = null, this.nodeIds = /* @__PURE__ */ new Set(), this.descriptors = {}, this.factories = [];
1006
+ }
1007
+ addFactory(e, t, n, r, i) {
1008
+ this.nodeIds.has(n) || (this.nodeIds.add(n), this.addTargetDescriptor(t, n, r)), e.id = e.id ?? O(), e.targetNodeId = n, e.targetTagName = i, e.policy = e.policy ?? this.policy, this.factories.push(e);
1009
+ }
1010
+ freeze() {
1011
+ return this.proto = Object.create(null, this.descriptors), this;
1012
+ }
1013
+ addTargetDescriptor(e, t, n) {
1014
+ let r = this.descriptors;
1015
+ if (t === "r" || t === "h" || r[t]) return;
1016
+ if (!r[e]) {
1017
+ let t = e.lastIndexOf("."), n = e.substring(0, t), r = parseInt(e.substring(t + 1));
1018
+ this.addTargetDescriptor(n, e, r);
1019
+ }
1020
+ let i = We[t];
1021
+ if (!i) {
1022
+ let r = `_${t}`;
1023
+ We[t] = i = { get() {
1024
+ return this[r] ?? (this[r] = this[e].childNodes[n]);
1025
+ } };
1026
+ }
1027
+ r[t] = i;
1028
+ }
1029
+ createView(e) {
1030
+ let t = this.fragment.cloneNode(!0), n = Object.create(this.proto);
1031
+ n.r = t, n.h = e ?? Ke;
1032
+ for (let e of this.nodeIds) n[e];
1033
+ return new F(t, this.factories, n);
1034
+ }
1035
+ };
1036
+ function Je(e, t, n, r, i, a = !1) {
1037
+ let o = n.attributes, s = e.directives;
1038
+ for (let c = 0, l = o.length; c < l; ++c) {
1039
+ let u = o[c], d = u.value, f = k.parse(d, s), p = null;
1040
+ f === null ? a && (p = new L(le(() => d, e.policy)), j.assignAspect(p, u.name)) : p = z.aggregate(f, e.policy), p !== null && (n.removeAttributeNode(u), c--, l--, e.addFactory(p, t, r, i, n.tagName));
1041
+ }
1042
+ }
1043
+ function Ye(e, t, n, r, a) {
1044
+ let o = k.parse(t.textContent, e.directives);
1045
+ if (o === null) return R.node = t.nextSibling, R.index = a + 1, R;
1046
+ let s, c = s = t;
1047
+ for (let t = 0, l = o.length; t < l; ++t) {
1048
+ let l = o[t];
1049
+ t !== 0 && (a++, r = Ue(n, a), s = c.parentNode.insertBefore(document.createTextNode(""), c.nextSibling)), i(l) ? s.textContent = l : (s.textContent = " ", j.assignAspect(l), e.addFactory(l, n, r, a, null)), c = s;
1050
+ }
1051
+ return R.index = a + 1, R.node = c.nextSibling, R;
1052
+ }
1053
+ function Xe(e, t, n) {
1054
+ let r = 0, i = t.firstChild;
1055
+ for (; i;) {
1056
+ let t = Ze(e, n, i, r);
1057
+ i = t.node, r = t.index;
1058
+ }
1059
+ }
1060
+ function Ze(e, t, n, r) {
1061
+ let i = Ue(t, r);
1062
+ switch (n.nodeType) {
1063
+ case 1:
1064
+ Je(e, t, n, i, r), Xe(e, n, i);
1065
+ break;
1066
+ case 3: return Ye(e, n, t, i, r);
1067
+ case 8:
1068
+ let a = k.parse(n.data, e.directives);
1069
+ a !== null && e.addFactory(z.aggregate(a), t, i, r, null);
1070
+ break;
1071
+ }
1072
+ return R.index = r + 1, R.node = n.nextSibling, R;
1073
+ }
1074
+ function Qe(e, t) {
1075
+ return e && e.nodeType == 8 && k.parse(e.data, t) !== null;
1076
+ }
1077
+ var $e = "TEMPLATE", z = {
1078
+ compile(e, t, n = h.policy) {
1079
+ let r;
1080
+ if (i(e)) {
1081
+ r = document.createElement($e), r.innerHTML = n.createHTML(e);
1082
+ let t = r.content.firstElementChild;
1083
+ t !== null && t.tagName === $e && (r = t);
1084
+ } else r = e;
1085
+ !r.content.firstChild && !r.content.lastChild && r.content.appendChild(document.createComment(""));
1086
+ let a = document.adoptNode(r.content), o = new qe(a, t, n);
1087
+ return Je(o, "", r, "h", 0, !0), (Qe(a.firstChild, t) || a.childNodes.length === 1 && Object.keys(t).length > 0) && a.insertBefore(document.createComment(""), a.firstChild), Xe(o, a, "r"), R.node = null, o.freeze();
1088
+ },
1089
+ setDefaultStrategy(e) {
1090
+ this.compile = e;
1091
+ },
1092
+ aggregate(e, t = h.policy) {
1093
+ if (e.length === 1) return e[0];
1094
+ let n, r = !1, a, o = e.length, s = e.map((e) => i(e) ? () => e : (n = e.sourceAspect || n, r ||= e.dataBinding.isVolatile, a ||= e.dataBinding.policy, e.dataBinding.evaluate)), c = new L(se((e, t) => {
1095
+ let n = "";
1096
+ for (let r = 0; r < o; ++r) n += s[r](e, t);
1097
+ return n;
1098
+ }, a ?? t, r));
1099
+ return j.assignAspect(c, n), c;
1100
+ }
1101
+ }, et = /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/, tt = Object.create(null), B = class {
1102
+ constructor(e, t = tt) {
1103
+ this.html = e, this.factories = t;
1104
+ }
1105
+ createHTML(e) {
1106
+ let t = this.factories;
1107
+ for (let n in t) e(t[n]);
1108
+ return this.html;
1109
+ }
1110
+ };
1111
+ B.empty = new B(""), j.define(B);
1112
+ function nt(e, t, n, r = j.getForInstance(e)) {
1113
+ if (r.aspected) {
1114
+ let n = et.exec(t);
1115
+ n !== null && j.assignAspect(e, n[2]);
1116
+ }
1117
+ return e.createHTML(n);
1118
+ }
1119
+ var rt = class e {
1120
+ constructor(e, t = {}, n) {
1121
+ this.policy = n, this.result = null, this.html = e, this.factories = t;
1122
+ }
1123
+ compile() {
1124
+ return this.result === null && (this.result = z.compile(this.html, this.factories, this.policy)), this.result;
1125
+ }
1126
+ create(e) {
1127
+ return this.compile().createView(e);
1128
+ }
1129
+ inline() {
1130
+ return new B(i(this.html) ? this.html : this.html.innerHTML, this.factories);
1131
+ }
1132
+ withPolicy(e) {
1133
+ if (this.result) throw s.error(1208);
1134
+ if (this.policy) throw s.error(1207);
1135
+ return this.policy = e, this;
1136
+ }
1137
+ render(e, t, n) {
1138
+ let r = this.create(n);
1139
+ return r.bind(e), r.appendTo(t), r;
1140
+ }
1141
+ static create(t, n, i) {
1142
+ let a = "", o = Object.create(null), s = (e) => {
1143
+ let t = e.id ??= O();
1144
+ return o[t] = e, t;
1145
+ };
1146
+ for (let e = 0, i = t.length - 1; e < i; ++e) {
1147
+ let i = t[e], o = n[e], c;
1148
+ if (a += i, r(o)) o = new L(se(o));
1149
+ else if (o instanceof x) o = new L(o);
1150
+ else if (!(c = j.getForInstance(o))) {
1151
+ let e = o;
1152
+ o = new L(le(() => e));
1153
+ }
1154
+ a += nt(o, i, s, c);
1155
+ }
1156
+ return new e(a + t[t.length - 1], o, i);
1157
+ }
1158
+ };
1159
+ d(rt);
1160
+ var V = ((e, ...t) => {
1161
+ if (Array.isArray(e) && Array.isArray(e.raw)) return rt.create(e, t);
1162
+ throw s.error(1206);
2591
1163
  });
2592
- function si(i, t) {
2593
- return i instanceof Function ? i(t) : i;
2594
- }
2595
- const Ft = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Map(), mi = (i) => (t = "vwc") => {
2596
- const e = (n) => `${t}-${n}`, s = (n) => {
2597
- const r = e(n.name);
2598
- let o = n.type;
2599
- if (o.componentName = n.name, Ft.has(r))
2600
- return;
2601
- nt.has(o) && nt.get(o) !== r && (o = class extends o {
2602
- }), Ft.add(r), nt.set(o, r);
2603
- for (const a of n.dependencies)
2604
- s(a);
2605
- const c = new Map([
2606
- [n.type, r],
2607
- ...n.dependencies.map(
2608
- (a) => [a.type, e(a.name)]
2609
- )
2610
- ]), l = {
2611
- tagFor: (a, h) => {
2612
- if (!c.has(a))
2613
- throw new Error(
2614
- `Could not get tag for ${a.name} as it is not a dependency of ${n.name}.`
2615
- );
2616
- const u = c.get(a);
2617
- return h ? u : oe.partial(u);
2618
- },
2619
- tagForNonDependency(a) {
2620
- return e(a);
2621
- }
2622
- };
2623
- p.compose(o, {
2624
- ...n.options,
2625
- template: si(
2626
- n.template,
2627
- l
2628
- ),
2629
- name: `${t}-${n.name}`
2630
- }).define();
2631
- };
2632
- s(i);
2633
- }, wi = (i, t, e, s, n) => ({
2634
- name: i,
2635
- type: t,
2636
- template: e,
2637
- dependencies: s,
2638
- options: n
2639
- }), Pt = /* @__PURE__ */ new WeakMap(), fe = (i) => {
2640
- let t = Pt.get(i);
2641
- return t || (t = [], Pt.set(i, t)), t;
2642
- }, Si = (i, t) => {
2643
- fe(i).push(t);
2644
- }, ni = (i, t) => {
2645
- fe(i).forEach((e) => e(i, t));
2646
- }, ri = (i) => i === "delegate", Dt = (i) => `vvd${i.charAt(0).toUpperCase()}${i.slice(1)}`, pe = (i, t) => {
2647
- if (ri(i._vividAriaBehaviour)) {
2648
- const e = i[t];
2649
- i[`_${t}`] = null, i.removeAttribute(ot(t)), i[`_${t}`] = e, i[t] !== null ? i.dataset[Dt(t)] = i[t] : delete i.dataset[Dt(t)];
2650
- } else
2651
- T.setAttribute(
2652
- i,
2653
- ot(t),
2654
- i[t]
2655
- );
2656
- }, G = /* @__PURE__ */ new WeakMap(), ai = (i, t) => {
2657
- const e = G.get(i);
2658
- e ? e.add(t) : G.set(i, /* @__PURE__ */ new Set([t]));
2659
- }, oi = (i, t) => {
2660
- i.isConnected ? pe(i, t) : ai(i, t);
2661
- }, li = (i) => {
2662
- const t = G.get(i);
2663
- if (t) {
2664
- for (const e of t)
2665
- pe(i, e);
2666
- G.delete(i);
2667
- }
2668
- }, Ht = [
2669
- "role",
2670
- "ariaAtomic",
2671
- "ariaAutoComplete",
2672
- "ariaBusy",
2673
- "ariaChecked",
2674
- "ariaColCount",
2675
- "ariaColIndex",
2676
- "ariaColIndexText",
2677
- "ariaColSpan",
2678
- "ariaCurrent",
2679
- "ariaDescription",
2680
- "ariaDisabled",
2681
- "ariaExpanded",
2682
- "ariaHasPopup",
2683
- "ariaHidden",
2684
- "ariaInvalid",
2685
- "ariaKeyShortcuts",
2686
- "ariaLabel",
2687
- "ariaLevel",
2688
- "ariaLive",
2689
- "ariaModal",
2690
- "ariaMultiLine",
2691
- "ariaMultiSelectable",
2692
- "ariaOrientation",
2693
- "ariaPlaceholder",
2694
- "ariaPosInSet",
2695
- "ariaPressed",
2696
- "ariaReadOnly",
2697
- "ariaRequired",
2698
- "ariaRoleDescription",
2699
- "ariaRowCount",
2700
- "ariaRowIndex",
2701
- "ariaRowIndexText",
2702
- "ariaRowSpan",
2703
- "ariaSelected",
2704
- "ariaSetSize",
2705
- "ariaSort",
2706
- "ariaValueMax",
2707
- "ariaValueMin",
2708
- "ariaValueNow",
2709
- "ariaValueText",
2710
- "ariaRelevant"
2711
- // Non-standard
2712
- ], ot = (i) => i.replace("aria", "aria-").toLowerCase(), ci = (i) => {
2713
- class t extends i {
2714
- constructor(...s) {
2715
- super(...s), this._vividAriaBehaviour = "default";
2716
- for (const n of Ht)
2717
- this[`_${n}`] = null;
2718
- }
2719
- connectedCallback() {
2720
- super.connectedCallback(), li(this);
2721
- }
2722
- }
2723
- for (const e of Ht)
2724
- Ue({
2725
- attribute: ot(e),
2726
- mode: "fromView"
2727
- })(t.prototype, e), t.prototype[`${e}Changed`] = function() {
2728
- oi(this, e), this._vividAriaBehaviour !== "default" && ni(this, e);
2729
- };
2730
- return t;
1164
+ V.partial = (e) => new B(e);
1165
+ //#endregion
1166
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/attributes.js
1167
+ var it = "boolean", at = "reflect", ot = Object.freeze({ locate: u() }), st = {
1168
+ toView(e) {
1169
+ return e ? "true" : "false";
1170
+ },
1171
+ fromView(e) {
1172
+ return !(e == null || e === "false" || e === !1 || e === 0);
1173
+ }
2731
1174
  };
2732
- function di() {
2733
- const i = /* @__PURE__ */ new WeakMap();
2734
- return (t) => (i.has(t) || i.set(t, []), i.get(t));
2735
- }
2736
- const be = di(), Ci = (i) => (t, e) => {
2737
- be(t.constructor).push({
2738
- newPropertyName: e,
2739
- ...i
2740
- });
2741
- }, hi = (i) => {
2742
- class t extends i {
2743
- #t(s) {
2744
- let n = !1, r = !1;
2745
- const o = (a) => r && s.fromDeprecated(
2746
- a[s.deprecatedPropertyName]
2747
- ) === a[s.newPropertyName], c = (a) => n && s.toDeprecated && s.toDeprecated(a[s.newPropertyName]) === a[s.deprecatedPropertyName], d = {
2748
- handleChange(a, h) {
2749
- if (h === s.newPropertyName) {
2750
- if (n = !0, !s.toDeprecated || o(a))
2751
- return;
2752
- a[s.deprecatedPropertyName] = s.toDeprecated(a[s.newPropertyName]);
2753
- }
2754
- if (h === s.deprecatedPropertyName) {
2755
- if (r = !0, c(a))
2756
- return;
2757
- a[s.newPropertyName] = s.fromDeprecated(
2758
- a[s.deprecatedPropertyName]
2759
- );
2760
- }
2761
- }
2762
- }, l = g.getNotifier(this);
2763
- l.subscribe(d, s.newPropertyName), l.subscribe(d, s.deprecatedPropertyName);
2764
- }
2765
- constructor(...s) {
2766
- super(...s);
2767
- for (const n of be(this.constructor))
2768
- this.#t(n);
2769
- }
2770
- }
2771
- return t;
1175
+ function ct(e) {
1176
+ if (e == null) return null;
1177
+ let t = e * 1;
1178
+ return isNaN(t) ? null : t;
1179
+ }
1180
+ var lt = {
1181
+ toView(e) {
1182
+ let t = ct(e);
1183
+ return t && t.toString();
1184
+ },
1185
+ fromView: ct
1186
+ }, ut = class e {
1187
+ constructor(e, t, n = t.toLowerCase(), r = at, i) {
1188
+ this.guards = /* @__PURE__ */ new Set(), this.Owner = e, this.name = t, this.attribute = n, this.mode = r, this.converter = i, this.fieldName = `_${t}`, this.callbackName = `${t}Changed`, this.hasCallback = this.callbackName in e.prototype, r === it && i === void 0 && (this.converter = st);
1189
+ }
1190
+ setValue(e, t) {
1191
+ let n = e[this.fieldName], r = this.converter;
1192
+ r !== void 0 && (t = r.fromView(t)), n !== t && (e[this.fieldName] = t, this.tryReflectToAttribute(e), this.hasCallback && e[this.callbackName](n, t), e.$fastController.notify(this.name));
1193
+ }
1194
+ getValue(e) {
1195
+ return y.track(e, this.name), e[this.fieldName];
1196
+ }
1197
+ onAttributeChangedCallback(e, t) {
1198
+ this.guards.has(e) || (this.guards.add(e), this.setValue(e, t), this.guards.delete(e));
1199
+ }
1200
+ tryReflectToAttribute(e) {
1201
+ let t = this.mode, n = this.guards;
1202
+ n.has(e) || t === "fromView" || g.enqueue(() => {
1203
+ n.add(e);
1204
+ let r = e[this.fieldName];
1205
+ switch (t) {
1206
+ case at:
1207
+ let t = this.converter;
1208
+ h.setAttribute(e, this.attribute, t === void 0 ? r : t.toView(r));
1209
+ break;
1210
+ case it:
1211
+ h.setBooleanAttribute(e, this.attribute, r);
1212
+ break;
1213
+ }
1214
+ n.delete(e);
1215
+ });
1216
+ }
1217
+ static collect(t, ...n) {
1218
+ let r = [];
1219
+ n.push(ot.locate(t));
1220
+ for (let a = 0, o = n.length; a < o; ++a) {
1221
+ let o = n[a];
1222
+ if (o !== void 0) for (let n = 0, a = o.length; n < a; ++n) {
1223
+ let a = o[n];
1224
+ i(a) ? r.push(new e(t, a)) : r.push(new e(t, a.property, a.attribute, a.mode, a.converter));
1225
+ }
1226
+ }
1227
+ return r;
1228
+ }
2772
1229
  };
2773
- class ki extends ci(hi(ii)) {
2774
- static {
2775
- this.VIVID_VERSION = "5.15.1";
2776
- }
2777
- /**
2778
- * Add data-vvd-component attribute with component name globally,
2779
- * for referring to the elements in CSS, testing or debugging
2780
- */
2781
- connectedCallback() {
2782
- super.connectedCallback();
2783
- const t = this.constructor.componentName;
2784
- this.setAttribute("data-vvd-component", t);
2785
- }
2786
- }
2787
- export {
2788
- fi as A,
2789
- lt as B,
2790
- T as D,
2791
- O as E,
2792
- $ as H,
2793
- Yt as M,
2794
- g as O,
2795
- ke as S,
2796
- Wt as U,
2797
- ki as V,
2798
- Ue as a,
2799
- vi as b,
2800
- mi as c,
2801
- wi as d,
2802
- pi as e,
2803
- E as f,
2804
- Gt as g,
2805
- oe as h,
2806
- B as i,
2807
- ot as j,
2808
- Ht as k,
2809
- rt as l,
2810
- U as m,
2811
- yi as n,
2812
- bi as o,
2813
- A as p,
2814
- X as q,
2815
- Ci as r,
2816
- Si as s,
2817
- w as t,
2818
- Kt as u,
2819
- gi as v,
2820
- m as w,
2821
- ge as x,
2822
- tt as y,
2823
- ui as z
1230
+ function dt(e, t) {
1231
+ let n;
1232
+ function r(e, t) {
1233
+ arguments.length > 1 && (n.property = t), ot.locate(e.constructor).push(n);
1234
+ }
1235
+ if (arguments.length > 1) {
1236
+ n = {}, r(e, t);
1237
+ return;
1238
+ }
1239
+ return n = e === void 0 ? {} : e, r;
1240
+ }
1241
+ //#endregion
1242
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/fast-definitions.js
1243
+ var ft = function(e, t, n, r) {
1244
+ function i(e) {
1245
+ return e instanceof n ? e : new n(function(t) {
1246
+ t(e);
1247
+ });
1248
+ }
1249
+ return new (n ||= Promise)(function(n, a) {
1250
+ function o(e) {
1251
+ try {
1252
+ c(r.next(e));
1253
+ } catch (e) {
1254
+ a(e);
1255
+ }
1256
+ }
1257
+ function s(e) {
1258
+ try {
1259
+ c(r.throw(e));
1260
+ } catch (e) {
1261
+ a(e);
1262
+ }
1263
+ }
1264
+ function c(e) {
1265
+ e.done ? n(e.value) : i(e.value).then(o, s);
1266
+ }
1267
+ c((r = r.apply(e, t || [])).next());
1268
+ });
1269
+ }, pt = { mode: "open" }, mt = {}, H = /* @__PURE__ */ new Set(), U = s.getById(n.elementRegistry, () => l()), ht = { deferAndHydrate: "defer-and-hydrate" }, W = class e {
1270
+ constructor(t, n = t.definition) {
1271
+ this.platformDefined = !1, i(n) && (n = { name: n }), this.type = t, this.name = n.name, this.template = n.template, this.templateOptions = n.templateOptions, this.registry = n.registry ?? customElements;
1272
+ let r = t.prototype, a = ut.collect(t, n.attributes), o = Array(a.length), s = {}, c = {};
1273
+ for (let e = 0, t = a.length; e < t; ++e) {
1274
+ let t = a[e];
1275
+ o[e] = t.attribute, s[t.name] = t, c[t.attribute] = t, y.defineProperty(r, t);
1276
+ }
1277
+ Reflect.defineProperty(t, "observedAttributes", {
1278
+ value: o,
1279
+ enumerable: !0
1280
+ }), this.attributes = a, this.propertyLookup = s, this.attributeLookup = c, this.shadowOptions = n.shadowOptions === void 0 ? pt : n.shadowOptions === null ? void 0 : Object.assign(Object.assign({}, pt), n.shadowOptions), this.elementOptions = n.elementOptions === void 0 ? mt : Object.assign(Object.assign({}, mt), n.elementOptions), this.styles = S.normalize(n.styles), U.register(this), y.defineProperty(e.isRegistered, this.name), e.isRegistered[this.name] = this.type;
1281
+ }
1282
+ get isDefined() {
1283
+ return this.platformDefined;
1284
+ }
1285
+ define(e = this.registry) {
1286
+ var t, n;
1287
+ let r = this.type;
1288
+ return e.get(this.name) || (this.platformDefined = !0, e.define(this.name, r, this.elementOptions), (n = (t = this.lifecycleCallbacks)?.elementDidDefine) == null || n.call(t, this.name)), this;
1289
+ }
1290
+ static compose(t, n) {
1291
+ return H.has(t) || U.getByType(t) ? new e(class extends t {}, n) : new e(t, n);
1292
+ }
1293
+ static registerBaseType(e) {
1294
+ H.add(e);
1295
+ }
1296
+ static composeAsync(t, n) {
1297
+ return new Promise((r) => {
1298
+ (H.has(t) || U.getByType(t)) && r(new e(class extends t {}, n));
1299
+ let i = new e(t, n);
1300
+ y.getNotifier(i).subscribe({ handleChange: () => {
1301
+ var e, t;
1302
+ (t = (e = i.lifecycleCallbacks)?.templateDidUpdate) == null || t.call(e, i.name), r(i);
1303
+ } }, "template");
1304
+ });
1305
+ }
1306
+ };
1307
+ W.isRegistered = {}, W.getByType = U.getByType, W.getForInstance = U.getForInstance, W.registerAsync = (e) => ft(void 0, void 0, void 0, function* () {
1308
+ return new Promise((t) => {
1309
+ W.isRegistered[e] && t(W.isRegistered[e]), y.getNotifier(W.isRegistered).subscribe({ handleChange: () => t(W.isRegistered[e]) }, e);
1310
+ });
1311
+ }), y.defineProperty(W.prototype, "template");
1312
+ //#endregion
1313
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/utilities.js
1314
+ var gt = class extends MutationObserver {
1315
+ constructor(e) {
1316
+ function t(e) {
1317
+ this.callback.call(null, e.filter((e) => this.observedNodes.has(e.target)));
1318
+ }
1319
+ super(t), this.callback = e, this.observedNodes = /* @__PURE__ */ new Set();
1320
+ }
1321
+ observe(e, t) {
1322
+ this.observedNodes.add(e), super.observe(e, t);
1323
+ }
1324
+ unobserve(e) {
1325
+ this.observedNodes.delete(e), this.observedNodes.size < 1 && this.disconnect();
1326
+ }
1327
+ }, _t = Object.freeze({ create(e) {
1328
+ let t = [], n = {}, r = null, i = !1;
1329
+ return {
1330
+ source: e,
1331
+ context: b.default,
1332
+ targets: n,
1333
+ get isBound() {
1334
+ return i;
1335
+ },
1336
+ addBehaviorFactory(e, t) {
1337
+ let n = e;
1338
+ n.id = n.id ?? O(), n.targetNodeId = n.targetNodeId ?? O(), n.targetTagName = t.tagName ?? null, n.policy = n.policy ?? h.policy, this.addTarget(n.targetNodeId, t), this.addBehavior(n.createBehavior());
1339
+ },
1340
+ addTarget(e, t) {
1341
+ n[e] = t;
1342
+ },
1343
+ addBehavior(e) {
1344
+ t.push(e), i && e.bind(this);
1345
+ },
1346
+ onUnbind(e) {
1347
+ r === null && (r = []), r.push(e);
1348
+ },
1349
+ connectedCallback(e) {
1350
+ i || (i = !0, t.forEach((e) => e.bind(this)));
1351
+ },
1352
+ disconnectedCallback(e) {
1353
+ i && (i = !1, r !== null && r.forEach((e) => e.unbind(this)));
1354
+ }
1355
+ };
1356
+ } }), vt = {
1357
+ bubbles: !0,
1358
+ composed: !0,
1359
+ cancelable: !0
1360
+ }, G = "isConnected", yt = /* @__PURE__ */ new WeakMap();
1361
+ function K(e) {
1362
+ return e.shadowRoot ?? yt.get(e) ?? null;
1363
+ }
1364
+ var bt, q = class e extends ne {
1365
+ constructor(e, t) {
1366
+ 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, this.shadowOptions = t.shadowOptions;
1367
+ let n = y.getAccessors(e);
1368
+ if (n.length > 0) {
1369
+ let t = this.boundObservables = Object.create(null);
1370
+ for (let r = 0, i = n.length; r < i; ++r) {
1371
+ let i = n[r].name, a = e[i];
1372
+ a !== void 0 && (delete e[i], t[i] = a);
1373
+ }
1374
+ }
1375
+ }
1376
+ get isConnected() {
1377
+ return y.track(this, G), this.stage === 1;
1378
+ }
1379
+ get context() {
1380
+ return this.view?.context ?? b.default;
1381
+ }
1382
+ get isBound() {
1383
+ return this.view?.isBound ?? !1;
1384
+ }
1385
+ get sourceLifetime() {
1386
+ return this.view?.sourceLifetime;
1387
+ }
1388
+ get template() {
1389
+ if (this._template === null) {
1390
+ let e = this.definition;
1391
+ this.source.resolveTemplate ? this._template = this.source.resolveTemplate() : e.template && (this._template = e.template ?? null);
1392
+ }
1393
+ return this._template;
1394
+ }
1395
+ set template(e) {
1396
+ this._template !== e && (this._template = e, this.needsInitialization || this.renderTemplate(e));
1397
+ }
1398
+ get shadowOptions() {
1399
+ return this._shadowRootOptions;
1400
+ }
1401
+ set shadowOptions(e) {
1402
+ if (this._shadowRootOptions === void 0 && e !== void 0) {
1403
+ this._shadowRootOptions = e;
1404
+ let t = this.source.shadowRoot;
1405
+ t ? this.hasExistingShadowRoot = !0 : (t = this.source.attachShadow(e), e.mode === "closed" && yt.set(this.source, t));
1406
+ }
1407
+ }
1408
+ get mainStyles() {
1409
+ if (this._mainStyles === null) {
1410
+ let e = this.definition;
1411
+ this.source.resolveStyles ? this._mainStyles = this.source.resolveStyles() : e.styles && (this._mainStyles = e.styles ?? null);
1412
+ }
1413
+ return this._mainStyles;
1414
+ }
1415
+ set mainStyles(e) {
1416
+ this._mainStyles !== e && (this._mainStyles !== null && this.removeStyles(this._mainStyles), this._mainStyles = e, this.needsInitialization || this.addStyles(e));
1417
+ }
1418
+ onUnbind(e) {
1419
+ var t;
1420
+ (t = this.view) == null || t.onUnbind(e);
1421
+ }
1422
+ addBehavior(e) {
1423
+ let t = this.behaviors ??= /* @__PURE__ */ new Map(), n = t.get(e) ?? 0;
1424
+ n === 0 ? (t.set(e, 1), e.addedCallback && e.addedCallback(this), e.connectedCallback && !this.guardBehaviorConnection && (this.stage === 1 || this.stage === 0) && e.connectedCallback(this)) : t.set(e, n + 1);
1425
+ }
1426
+ removeBehavior(e, t = !1) {
1427
+ let n = this.behaviors;
1428
+ if (n === null) return;
1429
+ let r = n.get(e);
1430
+ r !== void 0 && (r === 1 || t ? (n.delete(e), e.disconnectedCallback && this.stage !== 3 && e.disconnectedCallback(this), e.removedCallback && e.removedCallback(this)) : n.set(e, r - 1));
1431
+ }
1432
+ addStyles(e) {
1433
+ if (!e) return;
1434
+ let t = this.source;
1435
+ if (e instanceof HTMLElement) (K(t) ?? this.source).append(e);
1436
+ else if (!e.isAttachedTo(t)) {
1437
+ let n = e.behaviors;
1438
+ if (e.addStylesTo(t), n !== null) for (let e = 0, t = n.length; e < t; ++e) this.addBehavior(n[e]);
1439
+ }
1440
+ }
1441
+ removeStyles(e) {
1442
+ if (!e) return;
1443
+ let t = this.source;
1444
+ if (e instanceof HTMLElement) (K(t) ?? t).removeChild(e);
1445
+ else if (e.isAttachedTo(t)) {
1446
+ let n = e.behaviors;
1447
+ if (e.removeStylesFrom(t), n !== null) for (let e = 0, t = n.length; e < t; ++e) this.removeBehavior(n[e]);
1448
+ }
1449
+ }
1450
+ connect() {
1451
+ 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, y.notify(this, G));
1452
+ }
1453
+ bindObservables() {
1454
+ if (this.boundObservables !== null) {
1455
+ let e = this.source, t = this.boundObservables, n = Object.keys(t);
1456
+ for (let r = 0, i = n.length; r < i; ++r) {
1457
+ let i = n[r];
1458
+ e[i] = t[i];
1459
+ }
1460
+ this.boundObservables = null;
1461
+ }
1462
+ }
1463
+ connectBehaviors() {
1464
+ if (this.behaviorsConnected === !1) {
1465
+ let e = this.behaviors;
1466
+ if (e !== null) {
1467
+ this.guardBehaviorConnection = !0;
1468
+ for (let t of e.keys()) t.connectedCallback && t.connectedCallback(this);
1469
+ this.guardBehaviorConnection = !1;
1470
+ }
1471
+ this.behaviorsConnected = !0;
1472
+ }
1473
+ }
1474
+ disconnectBehaviors() {
1475
+ if (this.behaviorsConnected === !0) {
1476
+ let e = this.behaviors;
1477
+ if (e !== null) for (let t of e.keys()) t.disconnectedCallback && t.disconnectedCallback(this);
1478
+ this.behaviorsConnected = !1;
1479
+ }
1480
+ }
1481
+ disconnect() {
1482
+ this.stage === 1 && (this.stage = 2, y.notify(this, G), this.view !== null && this.view.unbind(), this.disconnectBehaviors(), this.stage = 3);
1483
+ }
1484
+ onAttributeChangedCallback(e, t, n) {
1485
+ let r = this.definition.attributeLookup[e];
1486
+ r !== void 0 && r.onAttributeChangedCallback(this.source, n);
1487
+ }
1488
+ emit(e, t, n) {
1489
+ return this.stage === 1 ? this.source.dispatchEvent(new CustomEvent(e, Object.assign(Object.assign({ detail: t }, vt), n))) : !1;
1490
+ }
1491
+ renderTemplate(e) {
1492
+ let t = this.source, n = K(t) ?? t;
1493
+ if (this.view !== null) this.view.dispose(), this.view = null;
1494
+ else if (!this.needsInitialization || this.hasExistingShadowRoot) {
1495
+ this.hasExistingShadowRoot = !1;
1496
+ for (let e = n.firstChild; e !== null; e = n.firstChild) n.removeChild(e);
1497
+ }
1498
+ e && (this.view = e.render(t, n, t), this.view.sourceLifetime = v.coupled);
1499
+ }
1500
+ static forCustomElement(t, n = !1) {
1501
+ let r = t.$fastController;
1502
+ if (r !== void 0 && !n) return r;
1503
+ let i = W.getForInstance(t);
1504
+ if (i === void 0) throw s.error(1401);
1505
+ return y.getNotifier(i).subscribe({ handleChange: () => {
1506
+ e.forCustomElement(t, !0), t.$fastController.connect();
1507
+ } }, "template"), y.getNotifier(i).subscribe({ handleChange: () => {
1508
+ e.forCustomElement(t, !0), t.$fastController.connect();
1509
+ } }, "shadowOptions"), t.$fastController = new bt(t, i);
1510
+ }
1511
+ static setStrategy(e) {
1512
+ bt = e;
1513
+ }
1514
+ };
1515
+ d(q), q.setStrategy(q);
1516
+ function J(e) {
1517
+ return "adoptedStyleSheets" in e ? e : K(e) ?? e.getRootNode();
1518
+ }
1519
+ var xt = class e {
1520
+ constructor(t) {
1521
+ let n = e.styleSheetCache;
1522
+ this.sheets = t.map((e) => {
1523
+ if (e instanceof CSSStyleSheet) return e;
1524
+ let t = n.get(e);
1525
+ return t === void 0 && (t = new CSSStyleSheet(), t.replaceSync(e), n.set(e, t)), t;
1526
+ });
1527
+ }
1528
+ addStylesTo(e) {
1529
+ Et(J(e), this.sheets);
1530
+ }
1531
+ removeStylesFrom(e) {
1532
+ Dt(J(e), this.sheets);
1533
+ }
1534
+ };
1535
+ xt.styleSheetCache = /* @__PURE__ */ new Map();
1536
+ var St = 0, Ct = () => `fast-${++St}`;
1537
+ function wt(e) {
1538
+ return e === document ? document.body : e;
1539
+ }
1540
+ var Tt = class {
1541
+ constructor(e) {
1542
+ this.styles = e, this.styleClass = Ct();
1543
+ }
1544
+ addStylesTo(e) {
1545
+ e = wt(J(e));
1546
+ let t = this.styles, n = this.styleClass;
1547
+ for (let r = 0; r < t.length; r++) {
1548
+ let i = document.createElement("style");
1549
+ i.innerHTML = t[r], i.className = n, e.append(i);
1550
+ }
1551
+ }
1552
+ removeStylesFrom(e) {
1553
+ e = wt(J(e));
1554
+ let t = e.querySelectorAll(`.${this.styleClass}`);
1555
+ for (let n = 0, r = t.length; n < r; ++n) e.removeChild(t[n]);
1556
+ }
1557
+ }, Et = (e, t) => {
1558
+ e.adoptedStyleSheets = [...e.adoptedStyleSheets, ...t];
1559
+ }, Dt = (e, t) => {
1560
+ e.adoptedStyleSheets = e.adoptedStyleSheets.filter((e) => t.indexOf(e) === -1);
1561
+ };
1562
+ if (S.supportsAdoptedStyleSheets) {
1563
+ try {
1564
+ document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(), Et = (e, t) => {
1565
+ e.adoptedStyleSheets.push(...t);
1566
+ }, Dt = (e, t) => {
1567
+ for (let n of t) {
1568
+ let t = e.adoptedStyleSheets.indexOf(n);
1569
+ t !== -1 && e.adoptedStyleSheets.splice(t, 1);
1570
+ }
1571
+ };
1572
+ } catch {}
1573
+ S.setDefaultStrategy(xt);
1574
+ } else S.setDefaultStrategy(Tt);
1575
+ var Ot = "defer-hydration", kt = "needs-hydration", Y = class e extends q {
1576
+ get shadowOptions() {
1577
+ return super.shadowOptions;
1578
+ }
1579
+ set shadowOptions(e) {
1580
+ super.shadowOptions = e, (this.hasExistingShadowRoot || e !== void 0 && !this.template) && this.definition.templateOptions === ht.deferAndHydrate && (this.source.toggleAttribute(Ot, !0), this.source.toggleAttribute(kt, !0));
1581
+ }
1582
+ addHydratingInstance() {
1583
+ if (!e.hydratingInstances) return;
1584
+ let t = this.definition.name, n = e.hydratingInstances.get(t);
1585
+ n || (n = /* @__PURE__ */ new Set(), e.hydratingInstances.set(t, n)), n.add(this.source);
1586
+ }
1587
+ static config(t) {
1588
+ return e.lifecycleCallbacks = t, this;
1589
+ }
1590
+ static hydrationObserverHandler(t) {
1591
+ for (let n of t) n.target.hasAttribute("defer-hydration") || (e.hydrationObserver.unobserve(n.target), n.target.$fastController.connect());
1592
+ }
1593
+ static checkHydrationComplete(t) {
1594
+ var n, r;
1595
+ if (t.didTimeout) {
1596
+ e.idleCallbackId = requestIdleCallback(e.checkHydrationComplete, { timeout: 50 });
1597
+ return;
1598
+ }
1599
+ e.hydratingInstances?.size === 0 && ((r = (n = e.lifecycleCallbacks)?.hydrationComplete) == null || r.call(n), q.setStrategy(q));
1600
+ }
1601
+ connect() {
1602
+ var t, n, r;
1603
+ if (this.needsHydration = this.needsHydration ?? this.source.hasAttribute(kt), this.needsHydration && ((n = (t = e.lifecycleCallbacks)?.elementWillHydrate) == null || n.call(t, this.definition.name)), this.source.hasAttribute("defer-hydration")) {
1604
+ this.addHydratingInstance(), e.hydrationObserver.observe(this.source, { attributeFilter: [Ot] });
1605
+ return;
1606
+ }
1607
+ if (!this.needsHydration) {
1608
+ super.connect(), this.removeHydratingInstance();
1609
+ return;
1610
+ }
1611
+ if (this.stage === 3) {
1612
+ if (this.stage = 0, this.bindObservables(), this.connectBehaviors(), this.template) if (T(this.template)) {
1613
+ let e = this.source, t = K(e) ?? e, n = t.firstChild, i = t.lastChild;
1614
+ e.shadowRoot === null && (C.isElementBoundaryStartMarker(n) && (n.data = "", n = n.nextSibling), C.isElementBoundaryEndMarker(i) && (i.data = "", i = i.previousSibling)), this.view = this.template.hydrate(n, i, e), (r = this.view) == null || r.bind(this.source);
1615
+ } else this.renderTemplate(this.template);
1616
+ this.addStyles(this.mainStyles), this.stage = 1, this.source.removeAttribute(kt), this.needsInitialization = this.needsHydration = !1, this.removeHydratingInstance(), y.notify(this, G);
1617
+ }
1618
+ }
1619
+ removeHydratingInstance() {
1620
+ var t, n;
1621
+ if (!e.hydratingInstances) return;
1622
+ let r = this.definition.name, i = e.hydratingInstances.get(r);
1623
+ (n = (t = e.lifecycleCallbacks)?.elementDidHydrate) == null || n.call(t, this.definition.name), i && (i.delete(this.source), i.size || e.hydratingInstances.delete(r), e.idleCallbackId && cancelIdleCallback(e.idleCallbackId), e.idleCallbackId = requestIdleCallback(e.checkHydrationComplete, { timeout: 50 }));
1624
+ }
1625
+ disconnect() {
1626
+ super.disconnect(), e.hydrationObserver.unobserve(this.source);
1627
+ }
1628
+ static install() {
1629
+ q.setStrategy(e);
1630
+ }
1631
+ };
1632
+ Y.hydrationObserver = new gt(Y.hydrationObserverHandler), Y.idleCallbackId = null, Y.hydratingInstances = /* @__PURE__ */ new Map();
1633
+ //#endregion
1634
+ //#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/fast-element.js
1635
+ function At(e) {
1636
+ let t = class extends e {
1637
+ constructor() {
1638
+ super(), q.forCustomElement(this);
1639
+ }
1640
+ $emit(e, t, n) {
1641
+ return this.$fastController.emit(e, t, n);
1642
+ }
1643
+ connectedCallback() {
1644
+ this.$fastController.connect();
1645
+ }
1646
+ disconnectedCallback() {
1647
+ this.$fastController.disconnect();
1648
+ }
1649
+ attributeChangedCallback(e, t, n) {
1650
+ this.$fastController.onAttributeChangedCallback(e, t, n);
1651
+ }
1652
+ };
1653
+ return W.registerBaseType(t), t;
1654
+ }
1655
+ function jt(e, t) {
1656
+ return r(e) ? W.compose(e, t) : W.compose(this, e);
1657
+ }
1658
+ function Mt(e, t) {
1659
+ return r(e) ? new Promise((n) => {
1660
+ W.composeAsync(e, t).then((e) => {
1661
+ n(e);
1662
+ });
1663
+ }).then((e) => e.define().type) : new Promise((t) => {
1664
+ W.composeAsync(this, e).then((e) => {
1665
+ t(e);
1666
+ });
1667
+ }).then((e) => e.define().type);
1668
+ }
1669
+ function Nt(e, t) {
1670
+ return r(e) ? W.compose(e, t).define().type : W.compose(this, e).define().type;
1671
+ }
1672
+ function Pt(e) {
1673
+ return At(e);
1674
+ }
1675
+ var Ft = Object.assign(At(HTMLElement), {
1676
+ from: Pt,
1677
+ define: Nt,
1678
+ compose: jt,
1679
+ defineAsync: Mt
1680
+ });
1681
+ //#endregion
1682
+ //#region src/shared/design-system/createRegisterFunction.ts
1683
+ function It(e, t) {
1684
+ return e instanceof Function ? e(t) : e;
1685
+ }
1686
+ var Lt = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Map(), Rt = (e) => (t = "vwc") => {
1687
+ let n = (e) => `${t}-${e}`, r = (e) => {
1688
+ let i = n(e.name), a = e.type;
1689
+ if (a.componentName = e.name, Lt.has(i)) return;
1690
+ X.has(a) && X.get(a) !== i && (a = class extends a {}), Lt.add(i), X.set(a, i);
1691
+ for (let t of e.dependencies) r(t);
1692
+ let o = new Map([[e.type, i], ...e.dependencies.map((e) => [e.type, n(e.name)])]), s = {
1693
+ tagFor: (t, n) => {
1694
+ if (!o.has(t)) throw Error(`Could not get tag for ${t.name} as it is not a dependency of ${e.name}.`);
1695
+ let r = o.get(t);
1696
+ return n ? r : V.partial(r);
1697
+ },
1698
+ tagForNonDependency(e) {
1699
+ return n(e);
1700
+ }
1701
+ };
1702
+ W.compose(a, {
1703
+ ...e.options,
1704
+ template: It(e.template, s),
1705
+ name: `${t}-${e.name}`
1706
+ }).define();
1707
+ };
1708
+ r(e);
1709
+ }, zt = (e, t, n, r, i) => ({
1710
+ name: e,
1711
+ type: t,
1712
+ template: n,
1713
+ dependencies: r,
1714
+ options: i
1715
+ }), Bt = /* @__PURE__ */ new WeakMap(), Vt = (e) => {
1716
+ let t = Bt.get(e);
1717
+ return t || (t = [], Bt.set(e, t)), t;
1718
+ }, Ht = (e, t) => {
1719
+ Vt(e).push(t);
1720
+ }, Ut = (e, t) => {
1721
+ Vt(e).forEach((n) => n(e, t));
1722
+ }, Wt = (e) => e === "delegate", Gt = (e) => `vvd${e.charAt(0).toUpperCase()}${e.slice(1)}`, Kt = (e, t) => {
1723
+ if (Wt(e._vividAriaBehaviour)) {
1724
+ let n = e[t];
1725
+ e[`_${t}`] = null, e.removeAttribute($(t)), e[`_${t}`] = n, e[t] === null ? delete e.dataset[Gt(t)] : e.dataset[Gt(t)] = e[t];
1726
+ } else h.setAttribute(e, $(t), e[t]);
1727
+ }, Z = /* @__PURE__ */ new WeakMap(), qt = (e, t) => {
1728
+ let n = Z.get(e);
1729
+ n ? n.add(t) : Z.set(e, new Set([t]));
1730
+ }, Jt = (e, t) => {
1731
+ e.isConnected ? Kt(e, t) : qt(e, t);
1732
+ }, Yt = (e) => {
1733
+ let t = Z.get(e);
1734
+ if (t) {
1735
+ for (let n of t) Kt(e, n);
1736
+ Z.delete(e);
1737
+ }
1738
+ }, Q = /* @__PURE__ */ "role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColIndexText.ariaColSpan.ariaCurrent.ariaDescription.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowIndexText.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText.ariaRelevant".split("."), $ = (e) => e.replace("aria", "aria-").toLowerCase(), Xt = (e) => {
1739
+ class t extends e {
1740
+ constructor(...e) {
1741
+ super(...e), this._vividAriaBehaviour = "default";
1742
+ for (let e of Q) this[`_${e}`] = null;
1743
+ }
1744
+ connectedCallback() {
1745
+ super.connectedCallback(), Yt(this);
1746
+ }
1747
+ }
1748
+ for (let e of Q) dt({
1749
+ attribute: $(e),
1750
+ mode: "fromView"
1751
+ })(t.prototype, e), t.prototype[`${e}Changed`] = function() {
1752
+ Jt(this, e), this._vividAriaBehaviour !== "default" && Ut(this, e);
1753
+ };
1754
+ return t;
1755
+ };
1756
+ //#endregion
1757
+ //#region src/shared/deprecation/replaced-props.ts
1758
+ function Zt() {
1759
+ let e = /* @__PURE__ */ new WeakMap();
1760
+ return (t) => (e.has(t) || e.set(t, []), e.get(t));
1761
+ }
1762
+ var Qt = Zt(), $t = (e) => (t, n) => {
1763
+ Qt(t.constructor).push({
1764
+ newPropertyName: n,
1765
+ ...e
1766
+ });
1767
+ }, en = (e) => {
1768
+ class t extends e {
1769
+ #e(e) {
1770
+ let t = !1, n = !1, r = (t) => n && e.fromDeprecated(t[e.deprecatedPropertyName]) === t[e.newPropertyName], i = (n) => t && e.toDeprecated && e.toDeprecated(n[e.newPropertyName]) === n[e.deprecatedPropertyName], a = { handleChange(a, o) {
1771
+ if (o === e.newPropertyName) {
1772
+ if (t = !0, !e.toDeprecated || r(a)) return;
1773
+ a[e.deprecatedPropertyName] = e.toDeprecated(a[e.newPropertyName]);
1774
+ }
1775
+ if (o === e.deprecatedPropertyName) {
1776
+ if (n = !0, i(a)) return;
1777
+ a[e.newPropertyName] = e.fromDeprecated(a[e.deprecatedPropertyName]);
1778
+ }
1779
+ } }, o = y.getNotifier(this);
1780
+ o.subscribe(a, e.newPropertyName), o.subscribe(a, e.deprecatedPropertyName);
1781
+ }
1782
+ constructor(...e) {
1783
+ super(...e);
1784
+ for (let e of Qt(this.constructor)) this.#e(e);
1785
+ }
1786
+ }
1787
+ return t;
1788
+ }, tn = class extends Xt(en(Ft)) {
1789
+ static {
1790
+ this.VIVID_VERSION = "5.17.0";
1791
+ }
1792
+ connectedCallback() {
1793
+ super.connectedCallback();
1794
+ let e = this.constructor.componentName;
1795
+ this.setAttribute("data-vvd-component", e);
1796
+ }
2824
1797
  };
1798
+ //#endregion
1799
+ export { c as A, b as C, _ as D, ie as E, i as M, a as N, g as O, x as S, re as T, C as _, Ht as a, le as b, _t as c, V as d, F as f, Te as g, Ee as h, Q as i, r as j, h as k, dt as l, j as m, $t as n, zt as o, I as p, $ as r, Rt as s, tn as t, lt as u, T as v, y as w, se as x, S as y };