@threadlabs/looma 0.52.11 → 0.53.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 (341) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/components.css +19 -19
  7. package/editor/index.js +1125 -853
  8. package/package.json +3 -3
  9. package/styles/ui-action-bar.css +1 -1
  10. package/styles/ui-affordance-scope.css +1 -1
  11. package/styles/ui-avatar-group.css +1 -1
  12. package/styles/ui-avatar.css +1 -1
  13. package/styles/ui-badge.css +1 -1
  14. package/styles/ui-breadcrumb-item.css +1 -1
  15. package/styles/ui-breadcrumbs.css +1 -1
  16. package/styles/ui-button.css +1 -1
  17. package/styles/ui-calendar.css +1 -1
  18. package/styles/ui-callout.css +1 -1
  19. package/styles/ui-card-group.css +1 -1
  20. package/styles/ui-card.css +1 -1
  21. package/styles/ui-checkbox.css +1 -1
  22. package/styles/ui-cluster.css +1 -1
  23. package/styles/ui-color-picker.css +1 -1
  24. package/styles/ui-column.css +1 -1
  25. package/styles/ui-combobox.css +1 -1
  26. package/styles/ui-compact-content.css +1 -1
  27. package/styles/ui-compact-editor.css +1 -1
  28. package/styles/ui-compact-mark.css +1 -1
  29. package/styles/ui-compact-node.css +1 -1
  30. package/styles/ui-container.css +1 -1
  31. package/styles/ui-context-menu.css +1 -1
  32. package/styles/ui-cover.css +1 -1
  33. package/styles/ui-curve-editor.css +1 -1
  34. package/styles/ui-cycle-button.css +1 -1
  35. package/styles/ui-data-table.css +1 -1
  36. package/styles/ui-date-field.css +1 -1
  37. package/styles/ui-date-picker.css +1 -1
  38. package/styles/ui-date-range-picker.css +1 -1
  39. package/styles/ui-description-item.css +1 -1
  40. package/styles/ui-description-list.css +1 -1
  41. package/styles/ui-dialog.css +1 -1
  42. package/styles/ui-disclosure.css +1 -1
  43. package/styles/ui-editable.css +1 -1
  44. package/styles/ui-editor-block-actions.css +1 -1
  45. package/styles/ui-editor-chip-editor.css +1 -1
  46. package/styles/ui-editor-code-language.css +1 -1
  47. package/styles/ui-editor-footnote-editor.css +1 -1
  48. package/styles/ui-editor-formatting-tools.css +1 -1
  49. package/styles/ui-editor-image-toolbar.css +1 -1
  50. package/styles/ui-editor-insert-table-grid.css +1 -1
  51. package/styles/ui-editor-link-card.css +1 -1
  52. package/styles/ui-editor-link-form.css +1 -1
  53. package/styles/ui-editor-mention-menu-item.css +1 -1
  54. package/styles/ui-editor-mention-menu.css +1 -1
  55. package/styles/ui-editor-slash-menu-group.css +1 -1
  56. package/styles/ui-editor-slash-menu-item.css +1 -1
  57. package/styles/ui-editor-slash-menu.css +1 -1
  58. package/styles/ui-editor-surface.css +1 -1
  59. package/styles/ui-editor-table-context-menu.css +1 -1
  60. package/styles/ui-editor-table-overlay.css +1 -1
  61. package/styles/ui-editor-table-toolbar.css +1 -1
  62. package/styles/ui-editor-toolbar.css +1 -1
  63. package/styles/ui-editor.css +1 -1
  64. package/styles/ui-file-input.css +1 -1
  65. package/styles/ui-floating-action-button.css +1 -1
  66. package/styles/ui-form-field.css +1 -1
  67. package/styles/ui-grid.css +1 -1
  68. package/styles/ui-icon-button.css +1 -1
  69. package/styles/ui-icon.css +1 -1
  70. package/styles/ui-image.css +1 -1
  71. package/styles/ui-input-group.css +1 -1
  72. package/styles/ui-input.css +1 -1
  73. package/styles/ui-light-editor.css +1 -1
  74. package/styles/ui-list-item.css +1 -1
  75. package/styles/ui-list.css +1 -1
  76. package/styles/ui-listbox.css +1 -1
  77. package/styles/ui-menu-group.css +1 -1
  78. package/styles/ui-menu-item.css +1 -1
  79. package/styles/ui-menu.css +1 -1
  80. package/styles/ui-meter.css +1 -1
  81. package/styles/ui-nav-item.css +1 -1
  82. package/styles/ui-notice-stripe.css +1 -1
  83. package/styles/ui-number-input.css +1 -1
  84. package/styles/ui-page-header.css +1 -1
  85. package/styles/ui-pagination.css +1 -1
  86. package/styles/ui-popover.css +1 -1
  87. package/styles/ui-radio-group.css +1 -1
  88. package/styles/ui-radio.css +1 -1
  89. package/styles/ui-reel.css +1 -1
  90. package/styles/ui-scroll-area.css +1 -1
  91. package/styles/ui-search-result-row.css +1 -1
  92. package/styles/ui-search-shell.css +1 -1
  93. package/styles/ui-section.css +1 -1
  94. package/styles/ui-segmented-control.css +1 -1
  95. package/styles/ui-select.css +1 -1
  96. package/styles/ui-separator.css +1 -1
  97. package/styles/ui-sidebar.css +1 -1
  98. package/styles/ui-site-header.css +1 -1
  99. package/styles/ui-skeleton.css +1 -1
  100. package/styles/ui-slider.css +1 -1
  101. package/styles/ui-spinner.css +1 -1
  102. package/styles/ui-stack.css +1 -1
  103. package/styles/ui-status-message.css +1 -1
  104. package/styles/ui-swatch.css +1 -1
  105. package/styles/ui-switch.css +1 -1
  106. package/styles/ui-switcher.css +1 -1
  107. package/styles/ui-table.css +1 -1
  108. package/styles/ui-tabs.css +1 -1
  109. package/styles/ui-text.css +1 -1
  110. package/styles/ui-textarea.css +1 -1
  111. package/styles/ui-time-field.css +1 -1
  112. package/styles/ui-time-picker.css +1 -1
  113. package/styles/ui-toast-region.css +1 -1
  114. package/styles/ui-toast.css +1 -1
  115. package/styles/ui-tooltip.css +1 -1
  116. package/styles/ui-top-bar.css +1 -1
  117. package/styles/ui-tree-item.css +1 -1
  118. package/styles/ui-tree.css +1 -1
  119. package/styles/ui-wizard.css +1 -1
  120. package/vanilla/UiActionBar.d.ts +1 -1
  121. package/vanilla/UiActionBar.js +14 -12
  122. package/vanilla/UiAffordanceScope.d.ts +1 -1
  123. package/vanilla/UiAffordanceScope.js +13 -11
  124. package/vanilla/UiAvatar.d.ts +1 -1
  125. package/vanilla/UiAvatar.js +27 -25
  126. package/vanilla/UiAvatarGroup.d.ts +1 -1
  127. package/vanilla/UiAvatarGroup.js +26 -23
  128. package/vanilla/UiBadge.d.ts +1 -1
  129. package/vanilla/UiBadge.js +14 -12
  130. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  131. package/vanilla/UiBreadcrumbItem.js +14 -13
  132. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  133. package/vanilla/UiBreadcrumbs.js +10 -10
  134. package/vanilla/UiButton.d.ts +1 -1
  135. package/vanilla/UiButton.js +187 -244
  136. package/vanilla/UiCalendar.d.ts +1 -1
  137. package/vanilla/UiCalendar.js +272 -193
  138. package/vanilla/UiCallout.d.ts +1 -1
  139. package/vanilla/UiCallout.js +32 -27
  140. package/vanilla/UiCard.d.ts +1 -1
  141. package/vanilla/UiCard.js +72 -69
  142. package/vanilla/UiCardGroup.d.ts +1 -1
  143. package/vanilla/UiCardGroup.js +17 -15
  144. package/vanilla/UiCheckbox.d.ts +1 -1
  145. package/vanilla/UiCheckbox.js +32 -30
  146. package/vanilla/UiCluster.d.ts +1 -1
  147. package/vanilla/UiCluster.js +20 -18
  148. package/vanilla/UiColorPicker.d.ts +1 -1
  149. package/vanilla/UiColorPicker.js +22 -20
  150. package/vanilla/UiColumn.d.ts +2 -2
  151. package/vanilla/UiColumn.js +18 -15
  152. package/vanilla/UiCombobox.d.ts +3 -3
  153. package/vanilla/UiCombobox.js +237 -174
  154. package/vanilla/UiCompactContent.d.ts +1 -1
  155. package/vanilla/UiCompactContent.js +13 -8
  156. package/vanilla/UiCompactEditor.d.ts +1 -1
  157. package/vanilla/UiCompactEditor.js +17 -12
  158. package/vanilla/UiCompactMark.d.ts +1 -1
  159. package/vanilla/UiCompactMark.js +47 -45
  160. package/vanilla/UiCompactNode.d.ts +2 -2
  161. package/vanilla/UiCompactNode.js +37 -33
  162. package/vanilla/UiContainer.d.ts +1 -1
  163. package/vanilla/UiContainer.js +13 -11
  164. package/vanilla/UiContextMenu.d.ts +1 -1
  165. package/vanilla/UiContextMenu.js +11 -9
  166. package/vanilla/UiCover.d.ts +1 -1
  167. package/vanilla/UiCover.js +13 -11
  168. package/vanilla/UiCurveEditor.d.ts +1 -1
  169. package/vanilla/UiCurveEditor.js +40 -38
  170. package/vanilla/UiCycleButton.d.ts +2 -2
  171. package/vanilla/UiCycleButton.js +31 -26
  172. package/vanilla/UiDataTable.d.ts +1 -1
  173. package/vanilla/UiDataTable.js +26 -20
  174. package/vanilla/UiDateField.d.ts +1 -1
  175. package/vanilla/UiDateField.js +78 -75
  176. package/vanilla/UiDatePicker.d.ts +1 -1
  177. package/vanilla/UiDatePicker.js +155 -149
  178. package/vanilla/UiDateRangePicker.d.ts +1 -1
  179. package/vanilla/UiDateRangePicker.js +136 -128
  180. package/vanilla/UiDescriptionItem.d.ts +1 -1
  181. package/vanilla/UiDescriptionItem.js +13 -11
  182. package/vanilla/UiDescriptionList.d.ts +1 -1
  183. package/vanilla/UiDescriptionList.js +13 -11
  184. package/vanilla/UiDialog.d.ts +1 -1
  185. package/vanilla/UiDialog.js +14 -14
  186. package/vanilla/UiDisclosure.d.ts +1 -1
  187. package/vanilla/UiDisclosure.js +28 -26
  188. package/vanilla/UiEditable.d.ts +1 -1
  189. package/vanilla/UiEditable.js +29 -27
  190. package/vanilla/UiEditor.d.ts +1 -1
  191. package/vanilla/UiEditor.js +62 -58
  192. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  193. package/vanilla/UiEditorBlockActions.js +14 -12
  194. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  195. package/vanilla/UiEditorChipEditor.js +22 -14
  196. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  197. package/vanilla/UiEditorCodeLanguage.js +23 -16
  198. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  199. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  200. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  201. package/vanilla/UiEditorFormattingTools.js +108 -71
  202. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  203. package/vanilla/UiEditorImageToolbar.js +68 -66
  204. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  205. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  206. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  207. package/vanilla/UiEditorLinkCard.js +27 -25
  208. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  209. package/vanilla/UiEditorLinkForm.js +79 -57
  210. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  211. package/vanilla/UiEditorMentionMenu.js +63 -44
  212. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  213. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  214. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  215. package/vanilla/UiEditorSlashMenu.js +52 -33
  216. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  217. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  218. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  219. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  220. package/vanilla/UiEditorSurface.d.ts +1 -1
  221. package/vanilla/UiEditorSurface.js +13 -11
  222. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  223. package/vanilla/UiEditorTableContextMenu.js +81 -52
  224. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  225. package/vanilla/UiEditorTableOverlay.js +107 -68
  226. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  227. package/vanilla/UiEditorTableToolbar.js +121 -70
  228. package/vanilla/UiEditorToolbar.d.ts +1 -1
  229. package/vanilla/UiEditorToolbar.js +20 -12
  230. package/vanilla/UiFileInput.d.ts +1 -1
  231. package/vanilla/UiFileInput.js +94 -80
  232. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  233. package/vanilla/UiFloatingActionButton.js +21 -20
  234. package/vanilla/UiFormField.d.ts +1 -1
  235. package/vanilla/UiFormField.js +21 -19
  236. package/vanilla/UiGrid.d.ts +1 -1
  237. package/vanilla/UiGrid.js +26 -23
  238. package/vanilla/UiIcon.d.ts +1 -1
  239. package/vanilla/UiIcon.js +20 -15
  240. package/vanilla/UiIconButton.d.ts +1 -1
  241. package/vanilla/UiIconButton.js +35 -43
  242. package/vanilla/UiImage.d.ts +1 -1
  243. package/vanilla/UiImage.js +16 -14
  244. package/vanilla/UiInput.d.ts +1 -1
  245. package/vanilla/UiInput.js +29 -35
  246. package/vanilla/UiInputGroup.d.ts +1 -1
  247. package/vanilla/UiInputGroup.js +16 -14
  248. package/vanilla/UiLightEditor.d.ts +1 -1
  249. package/vanilla/UiLightEditor.js +29 -27
  250. package/vanilla/UiList.d.ts +1 -1
  251. package/vanilla/UiList.js +33 -27
  252. package/vanilla/UiListItem.d.ts +1 -1
  253. package/vanilla/UiListItem.js +12 -12
  254. package/vanilla/UiListbox.d.ts +1 -1
  255. package/vanilla/UiListbox.js +90 -80
  256. package/vanilla/UiMenu.d.ts +1 -1
  257. package/vanilla/UiMenu.js +20 -12
  258. package/vanilla/UiMenuGroup.d.ts +1 -1
  259. package/vanilla/UiMenuGroup.js +14 -11
  260. package/vanilla/UiMenuItem.d.ts +1 -1
  261. package/vanilla/UiMenuItem.js +74 -75
  262. package/vanilla/UiMeter.d.ts +1 -1
  263. package/vanilla/UiMeter.js +67 -62
  264. package/vanilla/UiNavItem.d.ts +1 -1
  265. package/vanilla/UiNavItem.js +63 -65
  266. package/vanilla/UiNoticeStripe.d.ts +1 -1
  267. package/vanilla/UiNoticeStripe.js +16 -16
  268. package/vanilla/UiNumberInput.d.ts +1 -1
  269. package/vanilla/UiNumberInput.js +41 -38
  270. package/vanilla/UiPageHeader.d.ts +1 -1
  271. package/vanilla/UiPageHeader.js +17 -15
  272. package/vanilla/UiPagination.d.ts +1 -1
  273. package/vanilla/UiPagination.js +53 -44
  274. package/vanilla/UiPopover.d.ts +1 -1
  275. package/vanilla/UiPopover.js +13 -11
  276. package/vanilla/UiRadio.d.ts +1 -1
  277. package/vanilla/UiRadio.js +25 -23
  278. package/vanilla/UiRadioGroup.d.ts +1 -1
  279. package/vanilla/UiRadioGroup.js +33 -36
  280. package/vanilla/UiReel.d.ts +1 -1
  281. package/vanilla/UiReel.js +20 -12
  282. package/vanilla/UiScrollArea.d.ts +1 -1
  283. package/vanilla/UiScrollArea.js +13 -11
  284. package/vanilla/UiSearchResultRow.d.ts +1 -1
  285. package/vanilla/UiSearchResultRow.js +21 -20
  286. package/vanilla/UiSearchShell.d.ts +1 -1
  287. package/vanilla/UiSearchShell.js +16 -14
  288. package/vanilla/UiSection.d.ts +1 -1
  289. package/vanilla/UiSection.js +48 -45
  290. package/vanilla/UiSegmentedControl.d.ts +2 -2
  291. package/vanilla/UiSegmentedControl.js +52 -47
  292. package/vanilla/UiSelect.d.ts +1 -1
  293. package/vanilla/UiSelect.js +17 -21
  294. package/vanilla/UiSeparator.d.ts +1 -1
  295. package/vanilla/UiSeparator.js +12 -12
  296. package/vanilla/UiSidebar.d.ts +1 -1
  297. package/vanilla/UiSidebar.js +17 -15
  298. package/vanilla/UiSiteHeader.d.ts +1 -1
  299. package/vanilla/UiSiteHeader.js +25 -23
  300. package/vanilla/UiSkeleton.d.ts +1 -1
  301. package/vanilla/UiSkeleton.js +21 -20
  302. package/vanilla/UiSlider.d.ts +1 -1
  303. package/vanilla/UiSlider.js +50 -47
  304. package/vanilla/UiSpinner.d.ts +1 -1
  305. package/vanilla/UiSpinner.js +34 -27
  306. package/vanilla/UiStack.d.ts +1 -1
  307. package/vanilla/UiStack.js +12 -12
  308. package/vanilla/UiStatusMessage.d.ts +1 -1
  309. package/vanilla/UiStatusMessage.js +22 -21
  310. package/vanilla/UiSwatch.d.ts +1 -1
  311. package/vanilla/UiSwatch.js +20 -17
  312. package/vanilla/UiSwitch.d.ts +1 -1
  313. package/vanilla/UiSwitch.js +25 -23
  314. package/vanilla/UiSwitcher.d.ts +1 -1
  315. package/vanilla/UiSwitcher.js +13 -11
  316. package/vanilla/UiTable.d.ts +1 -1
  317. package/vanilla/UiTable.js +13 -11
  318. package/vanilla/UiTabs.d.ts +1 -1
  319. package/vanilla/UiTabs.js +39 -28
  320. package/vanilla/UiText.d.ts +1 -1
  321. package/vanilla/UiText.js +128 -125
  322. package/vanilla/UiTextarea.d.ts +1 -1
  323. package/vanilla/UiTextarea.js +27 -39
  324. package/vanilla/UiTimeField.d.ts +1 -1
  325. package/vanilla/UiTimeField.js +42 -40
  326. package/vanilla/UiTimePicker.d.ts +1 -1
  327. package/vanilla/UiTimePicker.js +105 -102
  328. package/vanilla/UiToast.d.ts +1 -1
  329. package/vanilla/UiToast.js +14 -14
  330. package/vanilla/UiToastRegion.d.ts +1 -1
  331. package/vanilla/UiToastRegion.js +61 -31
  332. package/vanilla/UiTooltip.d.ts +1 -1
  333. package/vanilla/UiTooltip.js +17 -14
  334. package/vanilla/UiTopBar.d.ts +1 -1
  335. package/vanilla/UiTopBar.js +24 -22
  336. package/vanilla/UiTree.d.ts +1 -1
  337. package/vanilla/UiTree.js +17 -12
  338. package/vanilla/UiTreeItem.d.ts +1 -1
  339. package/vanilla/UiTreeItem.js +73 -79
  340. package/vanilla/UiWizard.d.ts +1 -1
  341. package/vanilla/UiWizard.js +61 -40
package/editor/index.js CHANGED
@@ -12,7 +12,7 @@ import { closeHistory } from "@tiptap/pm/history";
12
12
  import { createLowlight } from "lowlight";
13
13
  import { AlignCenter, AlignLeft, AlignRight, ArrowLeft, Bell, Bold, BookUser, Braces, Calculator, CalendarDays, Check, ChevronDown, ChevronLeft, ChevronRight, CircleCheck, CircleDot, CircleQuestionMark, CircleX, Clock, CodeXml, Columns3, Compass, CreditCard, Ellipsis, Eraser, ExternalLink, FileText, Folder, GripHorizontal, GripVertical, Heading1, Heading2, Heading3, Highlighter, History, Image, Info, Italic, LayoutDashboard, Lightbulb, Link, List, ListOrdered, ListTodo, LoaderCircle, Menu, Merge, MessageSquareWarning, Minus, Monitor, Moon, NotebookPen, PaintBucket, PanelBottom, PanelLeft, PanelRight, PanelTop, Paperclip, Pencil, Pilcrow, Plus, Quote, Receipt, Redo2, Rows3, Search, Settings, Slash, Split, Strikethrough, Sun, Superscript, Table2, Tag, Trash2, TriangleAlert, Truck, Underline, Undo2, Unlink, UserRound, Users, X } from "lucide";
14
14
  import { componentRegistry } from "@nextwebwg/html-next/runtime";
15
- import { IndexedList, NONCONFORMING, READY_INPUT, UNRESOLVED_INPUT, acceptProps, activateModule, armElement, attachGeneratedController, awaitInput, buildTemplate, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkNumber, checkObject, checkSelected, checkString, clearRegion, computedCycle, defineComponent, detailCheck, dispatchDeclared, dispose, evaluateInput, fillSlot, formatOf, generatedInputs, hostState, inputRead, keywordFormat, manageProps, notifyPropertySet, project, readIndex, readMember, readonlyView, readsChanged, rec, recordValue, replaceRoot, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute } from "@nextwebwg/html-next/generated-runtime";
15
+ import { IndexedList, NONCONFORMING, READY_INPUT, UNRESOLVED_INPUT, acceptProps, activateModule, armElement, attachGeneratedController, awaitInput, buildTemplate, checkBoolean, checkConstrained, checkFormat, checkInteger, checkList, checkNumber, checkObject, checkString, checkedReferenceValue, clearRegion, computedCycle, defineComponent, detailCheck, dispatchDeclared, dispose, equalValue, evaluateInput, fillSlot, formatOf, forwardAttributes, generatedInputs, hostState, initializeSlot, inputRead, keywordFormat, manageProps, notifyPropertySet, project, readIndex, readMember, readonlyView, readsChanged, rec, recordValue, replaceRoot, resetForwardedAttributes, sharePlainSlots, textCall, toAttribute, toText, trackContainer, truthy, writeAttribute, writeUrlAttribute } from "@nextwebwg/html-next/generated-runtime";
16
16
  //#region \0rolldown/runtime.js
17
17
  var __defProp = Object.defineProperty;
18
18
  var __exportAll = (all, no_symbols) => {
@@ -629,6 +629,7 @@ function createViewportSurface$1(surface, options = {}) {
629
629
  let destroyed = false;
630
630
  let stop = null;
631
631
  let sizeObserver = null;
632
+ let contentObserver = null;
632
633
  let frame = null;
633
634
  const position = () => {
634
635
  if (frame !== null) owner.cancelAnimationFrame(frame);
@@ -671,6 +672,8 @@ function createViewportSurface$1(surface, options = {}) {
671
672
  stop = null;
672
673
  sizeObserver?.disconnect();
673
674
  sizeObserver = null;
675
+ contentObserver?.disconnect();
676
+ contentObserver = null;
674
677
  if (frame !== null) owner.cancelAnimationFrame(frame);
675
678
  frame = null;
676
679
  hide$1(surface);
@@ -686,6 +689,14 @@ function createViewportSurface$1(surface, options = {}) {
686
689
  sizeObserver = new owner.ResizeObserver(position);
687
690
  sizeObserver.observe(surface);
688
691
  }
692
+ if (!contentObserver && owner.MutationObserver) {
693
+ contentObserver = new owner.MutationObserver(position);
694
+ contentObserver.observe(surface, {
695
+ childList: true,
696
+ subtree: true,
697
+ characterData: true
698
+ });
699
+ }
689
700
  },
690
701
  hide: hideSurface,
691
702
  refresh,
@@ -2929,7 +2940,27 @@ var D$18 = {
2929
2940
  };
2930
2941
  var C$12 = (host) => activateModule(ui_button_exports, host);
2931
2942
  function createUiButton(options = {}, html) {
2932
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
2943
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
2944
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
2945
+ "align",
2946
+ "disabled",
2947
+ "href",
2948
+ "interaction-tone",
2949
+ "interaction-variant",
2950
+ "loading",
2951
+ "pending",
2952
+ "preset",
2953
+ "rel",
2954
+ "selected",
2955
+ "shape",
2956
+ "size",
2957
+ "square",
2958
+ "stretch",
2959
+ "target",
2960
+ "tone",
2961
+ "type",
2962
+ "variant"
2963
+ ].includes(name)));
2933
2964
  const v = [
2934
2965
  void 0,
2935
2966
  void 0,
@@ -3006,7 +3037,7 @@ function createUiButton(options = {}, html) {
3006
3037
  readIndex({
3007
3038
  "true": "danger",
3008
3039
  "false": inputRead(v[18], inputStatus(18))
3009
- }, textCall("concat", [inputRead(v[20], inputStatus(20)) === "danger"])),
3040
+ }, textCall("concat", [equalValue(inputRead(v[20], inputStatus(20)), "danger")])),
3010
3041
  "accent",
3011
3042
  "neutral",
3012
3043
  "neutral",
@@ -3020,7 +3051,7 @@ function createUiButton(options = {}, html) {
3020
3051
  "solid": "solid",
3021
3052
  "ghost": "ghost"
3022
3053
  }, inputRead(v[7], inputStatus(7)))
3023
- }, textCall("concat", [inputRead(v[6], inputStatus(6)) === "inherit" && inputRead(v[7], inputStatus(7)) === "inherit"]))
3054
+ }, textCall("concat", [truthy(equalValue(inputRead(v[6], inputStatus(6)), "inherit")) && truthy(equalValue(inputRead(v[7], inputStatus(7)), "inherit"))]))
3024
3055
  ];
3025
3056
  const g = (j) => {
3026
3057
  const i = j - 0;
@@ -3045,35 +3076,19 @@ function createUiButton(options = {}, html) {
3045
3076
  }
3046
3077
  return next;
3047
3078
  };
3048
- let a = g(0) === "card" && v[5] !== null ? 0 : g(0) === "card" ? 1 : v[5] !== null ? 2 : 3;
3079
+ let a = truthy(equalValue(g(0), "card")) && truthy(equalValue(v[5], null, true)) ? 0 : truthy(equalValue(g(0), "card")) ? 1 : truthy(equalValue(v[5], null, true)) ? 2 : 3;
3049
3080
  let element;
3050
3081
  if (a === 0) {
3051
3082
  element = document.createElement("a");
3052
- for (const [name, value] of Object.entries(attributes)) {
3053
- if (value === null || value === void 0 || value === false) continue;
3054
- element.setAttribute(name, value === true ? "" : String(value));
3055
- }
3056
3083
  element.setAttribute("component", "ui-button");
3057
3084
  } else if (a === 1) {
3058
3085
  element = document.createElement("button");
3059
- for (const [name, value] of Object.entries(attributes)) {
3060
- if (value === null || value === void 0 || value === false) continue;
3061
- element.setAttribute(name, value === true ? "" : String(value));
3062
- }
3063
3086
  element.setAttribute("component", "ui-button");
3064
3087
  } else if (a === 2) {
3065
3088
  element = document.createElement("a");
3066
- for (const [name, value] of Object.entries(attributes)) {
3067
- if (value === null || value === void 0 || value === false) continue;
3068
- element.setAttribute(name, value === true ? "" : String(value));
3069
- }
3070
3089
  element.setAttribute("component", "ui-button");
3071
3090
  } else {
3072
3091
  element = document.createElement("button");
3073
- for (const [name, value] of Object.entries(attributes)) {
3074
- if (value === null || value === void 0 || value === false) continue;
3075
- element.setAttribute(name, value === true ? "" : String(value));
3076
- }
3077
3092
  element.setAttribute("component", "ui-button");
3078
3093
  }
3079
3094
  B = acceptProps(element, D$18, S$18.n, v, componentProps, Q$3[a], html);
@@ -3096,8 +3111,9 @@ function createUiButton(options = {}, html) {
3096
3111
  const p2 = (r, c, d) => {
3097
3112
  if (r.f0 === void 0) {
3098
3113
  r.f0 = 1;
3099
- const at = fillSlot(r.a0, r.e0, "icon", J, false, void 0, d);
3100
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3114
+ const at = initializeSlot(r.a0, r.e0, "icon", J, false, void 0, d);
3115
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m3(d, void 0, r), p3);
3116
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3101
3117
  at[0].l.delete(at[1]);
3102
3118
  dispose(at[1]);
3103
3119
  });
@@ -3105,17 +3121,21 @@ function createUiButton(options = {}, html) {
3105
3121
  r.b0 = m3(d);
3106
3122
  at.before(r.b0.n);
3107
3123
  }
3108
- } else if (r.b0 !== void 0) r.b0;
3124
+ } else if (typeof r.f0 === "function") r.f0(c, d);
3125
+ else if (r.b0 !== void 0) r.b0;
3109
3126
  };
3110
3127
  const m3 = (d) => {
3111
3128
  return { n: (P3$8 ??= buildTemplate(T3$8)).cloneNode(true) };
3112
3129
  };
3130
+ const p3 = (r, c, d) => {};
3113
3131
  const m4 = (d) => {
3114
3132
  return { n: (P4$6 ??= buildTemplate(T4$6)).cloneNode(true) };
3115
3133
  };
3134
+ const p4 = (r, c, d) => {};
3116
3135
  const m5 = (d) => {
3117
3136
  return { n: (P5$5 ??= buildTemplate(T5$5)).cloneNode(true) };
3118
3137
  };
3138
+ const p5 = (r, c, d) => {};
3119
3139
  const m7 = (d) => {
3120
3140
  return { n: (P7$3 ??= buildTemplate(T7$3)).cloneNode(true) };
3121
3141
  };
@@ -3135,8 +3155,9 @@ function createUiButton(options = {}, html) {
3135
3155
  const p8 = (r, c, d) => {
3136
3156
  if (r.f0 === void 0) {
3137
3157
  r.f0 = 1;
3138
- const at = fillSlot(r.a0, r.e0, "icon", J, false, void 0, d);
3139
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3158
+ const at = initializeSlot(r.a0, r.e0, "icon", J, false, void 0, d);
3159
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m9(d, void 0, r), p9);
3160
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3140
3161
  at[0].l.delete(at[1]);
3141
3162
  dispose(at[1]);
3142
3163
  });
@@ -3144,35 +3165,43 @@ function createUiButton(options = {}, html) {
3144
3165
  r.b0 = m9(d);
3145
3166
  at.before(r.b0.n);
3146
3167
  }
3147
- } else if (r.b0 !== void 0) r.b0;
3168
+ } else if (typeof r.f0 === "function") r.f0(c, d);
3169
+ else if (r.b0 !== void 0) r.b0;
3148
3170
  };
3149
3171
  const m9 = (d) => {
3150
3172
  return { n: (P9$2 ??= buildTemplate(T9$2)).cloneNode(true) };
3151
3173
  };
3174
+ const p9 = (r, c, d) => {};
3152
3175
  const m10 = (d) => {
3153
3176
  return { n: (P10$1 ??= buildTemplate(T10$1)).cloneNode(true) };
3154
3177
  };
3178
+ const p10 = (r, c, d) => {};
3155
3179
  const m11 = (d) => {
3156
3180
  return { n: (P11$1 ??= buildTemplate(T11$1)).cloneNode(true) };
3157
3181
  };
3182
+ const p11 = (r, c, d) => {};
3158
3183
  const m13 = (d) => {
3159
3184
  return { n: (P13$1 ??= buildTemplate(T13$1)).cloneNode(true) };
3160
3185
  };
3161
3186
  const m14 = (d) => {
3162
3187
  return { n: (P14$1 ??= buildTemplate(T14$1)).cloneNode(true) };
3163
3188
  };
3189
+ const p14 = (r, c, d) => {};
3164
3190
  const m15 = (d) => {
3165
3191
  return { n: (P15$1 ??= buildTemplate(T15$1)).cloneNode(true) };
3166
3192
  };
3193
+ const p15 = (r, c, d) => {};
3167
3194
  const m17 = (d) => {
3168
3195
  return { n: (P17$1 ??= buildTemplate(T17$1)).cloneNode(true) };
3169
3196
  };
3170
3197
  const m18 = (d) => {
3171
3198
  return { n: (P18$1 ??= buildTemplate(T18$1)).cloneNode(true) };
3172
3199
  };
3200
+ const p18 = (r, c, d) => {};
3173
3201
  const m19 = (d) => {
3174
3202
  return { n: (P19$1 ??= buildTemplate(T19$1)).cloneNode(true) };
3175
3203
  };
3204
+ const p19 = (r, c, d) => {};
3176
3205
  const m0 = (n, d) => {
3177
3206
  n.append((P0$16 ??= buildTemplate(T0$16)).cloneNode(true));
3178
3207
  const t0 = n.firstChild.nextSibling;
@@ -3186,15 +3215,22 @@ function createUiButton(options = {}, html) {
3186
3215
  v0: void 0,
3187
3216
  v1: void 0,
3188
3217
  v2: void 0,
3218
+ g2: NONCONFORMING,
3189
3219
  v3: void 0,
3220
+ g3: NONCONFORMING,
3190
3221
  v4: void 0,
3222
+ g4: NONCONFORMING,
3191
3223
  v5: void 0,
3192
3224
  v6: void 0,
3225
+ g6: NONCONFORMING,
3193
3226
  v7: void 0,
3194
3227
  v8: void 0,
3195
3228
  v9: void 0,
3229
+ g9: NONCONFORMING,
3196
3230
  v10: void 0,
3197
3231
  v11: void 0,
3232
+ g11: NONCONFORMING,
3233
+ v12: void 0,
3198
3234
  a1: t1,
3199
3235
  e0: t1.nextSibling,
3200
3236
  b0: void 0,
@@ -3215,87 +3251,75 @@ function createUiButton(options = {}, html) {
3215
3251
  return r;
3216
3252
  };
3217
3253
  const p0 = (r, c, d) => {
3218
- if (c & 1074791424) {
3254
+ if (c & 1075191792) {
3255
+ resetForwardedAttributes(r.n, attributes, r.v0);
3256
+ r.v0 = forwardAttributes(r.n, attributes);
3219
3257
  const x0 = g(0);
3220
- const s0 = toAttribute(x0, "data-appearance");
3221
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3222
- }
3223
- if (c & 1075053568) {
3258
+ const s1 = toAttribute(x0, "data-appearance");
3259
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
3224
3260
  const x1 = g(1);
3225
- if (x1 !== NONCONFORMING) {
3226
- const s1 = toAttribute(x1, "data-tone");
3227
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3261
+ if (x1 !== NONCONFORMING) r.g2 = x1;
3262
+ if (r.g2 !== NONCONFORMING) {
3263
+ const s2 = toAttribute(r.g2, "data-tone");
3264
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
3228
3265
  }
3229
- }
3230
- if (c & 1073741888) {
3231
3266
  const x2 = readIndex({
3232
3267
  "true": null,
3233
3268
  "false": v[6]
3234
- }, textCall("concat", [v[6] === "inherit"]));
3235
- if (x2 !== NONCONFORMING) {
3236
- const s2 = toAttribute(x2, "data-interaction-tone");
3237
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3269
+ }, textCall("concat", [equalValue(v[6], "inherit")]));
3270
+ if (x2 !== NONCONFORMING) r.g3 = x2;
3271
+ if (r.g3 !== NONCONFORMING) {
3272
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
3273
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
3238
3274
  }
3239
- }
3240
- if (c & 1074791616) {
3241
3275
  const x3 = g(2);
3242
- if (x3 !== NONCONFORMING) {
3243
- const s3 = toAttribute(x3, "data-interaction-appearance");
3244
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3276
+ if (x3 !== NONCONFORMING) r.g4 = x3;
3277
+ if (r.g4 !== NONCONFORMING) {
3278
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
3279
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
3245
3280
  }
3246
- }
3247
- if (c & 4096) {
3248
3281
  const x4 = v[12];
3249
- const s4 = toAttribute(x4, "data-selected");
3250
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3251
- }
3252
- if (c & 1073742640) {
3282
+ const s5 = toAttribute(x4, "data-selected");
3283
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
3253
3284
  const x5 = readIndex({
3254
3285
  "true": null,
3255
3286
  "false": v[5]
3256
3287
  }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3257
- if (x5 !== NONCONFORMING) {
3258
- const s5 = toAttribute(x5, "href");
3259
- if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
3288
+ if (x5 !== NONCONFORMING) r.g6 = x5;
3289
+ if (r.g6 !== NONCONFORMING) {
3290
+ const s6 = toAttribute(r.g6, "href");
3291
+ writeUrlAttribute(r.n, "href", r.v6 = s6);
3260
3292
  }
3261
- }
3262
- if (c & 131072) {
3263
3293
  const x6 = v[17];
3264
- const s6 = toAttribute(x6, "target");
3265
- if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
3266
- }
3267
- if (c & 2048) {
3294
+ const s7 = toAttribute(x6, "target");
3295
+ writeAttribute(r.n, "target", r.v7 = s7);
3268
3296
  const x7 = v[11];
3269
- const s7 = toAttribute(x7, "rel");
3270
- if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
3271
- }
3272
- if (c & 1073742608) {
3297
+ const s8 = toAttribute(x7, "rel");
3298
+ writeAttribute(r.n, "rel", r.v8 = s8);
3273
3299
  const x8 = readIndex({
3274
3300
  "true": "true",
3275
3301
  "false": null
3276
3302
  }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3277
- if (x8 !== NONCONFORMING) {
3278
- const s8 = toAttribute(x8, "aria-disabled");
3279
- if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
3303
+ if (x8 !== NONCONFORMING) r.g9 = x8;
3304
+ if (r.g9 !== NONCONFORMING) {
3305
+ const s9 = toAttribute(r.g9, "aria-disabled");
3306
+ writeAttribute(r.n, "aria-disabled", r.v9 = s9);
3280
3307
  }
3281
- }
3282
- if (c & 768) {
3283
3308
  const x9 = truthy(v[8]) || truthy(v[9]);
3284
- const s9 = toAttribute(x9, "aria-busy");
3285
- if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
3286
- }
3287
- if (c & 1073742608) {
3309
+ const s10 = toAttribute(x9, "aria-busy");
3310
+ writeAttribute(r.n, "aria-busy", r.v10 = s10);
3288
3311
  const x10 = readIndex({
3289
3312
  "true": "0",
3290
3313
  "false": null
3291
3314
  }, textCall("concat", [(truthy(v[8]) || truthy(v[9])) && !truthy(v[4])]));
3292
- if (x10 !== NONCONFORMING) {
3293
- const s10 = toAttribute(x10, "tabindex");
3294
- if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
3315
+ if (x10 !== NONCONFORMING) r.g11 = x10;
3316
+ if (r.g11 !== NONCONFORMING) {
3317
+ const s11 = toAttribute(r.g11, "tabindex");
3318
+ writeAttribute(r.n, "tabindex", r.v11 = s11);
3295
3319
  }
3296
3320
  }
3297
3321
  if (c & 123656) {
3298
- const s11 = hostState([
3322
+ const s12 = hostState([
3299
3323
  "align",
3300
3324
  "stretch",
3301
3325
  "size",
@@ -3312,7 +3336,7 @@ function createUiButton(options = {}, html) {
3312
3336
  v[8],
3313
3337
  v[9]
3314
3338
  ]);
3315
- if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
3339
+ if (s12 !== r.v12) writeAttribute(r.n, "data-ui-button-state", (r.v12 = s12) === "" ? null : s12);
3316
3340
  }
3317
3341
  if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3318
3342
  if (r.b0) {
@@ -3335,8 +3359,9 @@ function createUiButton(options = {}, html) {
3335
3359
  } else if (r.b1 !== void 0) p2(r.b1, c, d);
3336
3360
  if (r.f2 === void 0) {
3337
3361
  r.f2 = 1;
3338
- const at = fillSlot(r.a3, r.e2, "", J, false, void 0, d);
3339
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3362
+ const at = initializeSlot(r.a3, r.e2, "", J, false, void 0, d);
3363
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m4(d, void 0, r), p4);
3364
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3340
3365
  at[0].l.delete(at[1]);
3341
3366
  dispose(at[1]);
3342
3367
  });
@@ -3344,11 +3369,13 @@ function createUiButton(options = {}, html) {
3344
3369
  r.b2 = m4(d);
3345
3370
  at.before(r.b2.n);
3346
3371
  }
3347
- } else if (r.b2 !== void 0) r.b2;
3372
+ } else if (typeof r.f2 === "function") r.f2(c, d);
3373
+ else if (r.b2 !== void 0) r.b2;
3348
3374
  if (r.f3 === void 0) {
3349
3375
  r.f3 = 1;
3350
- const at = fillSlot(r.a4, r.e3, "action", J, true, void 0, d);
3351
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3376
+ const at = initializeSlot(r.a4, r.e3, "action", J, true, void 0, d, r.z ??= []);
3377
+ if (typeof at === "function") r.f3 = at(r, (d, at) => m5(d, void 0, r), p5);
3378
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3352
3379
  at[0].l.delete(at[1]);
3353
3380
  dispose(at[1]);
3354
3381
  });
@@ -3356,7 +3383,8 @@ function createUiButton(options = {}, html) {
3356
3383
  r.b3 = m5(d);
3357
3384
  at.before(r.b3.n);
3358
3385
  }
3359
- } else if (r.b3 !== void 0) r.b3;
3386
+ } else if (typeof r.f3 === "function") r.f3(c, d);
3387
+ else if (r.b3 !== void 0) r.b3;
3360
3388
  };
3361
3389
  const m6 = (n, d) => {
3362
3390
  n.append((P6$3 ??= buildTemplate(T6$3)).cloneNode(true));
@@ -3371,13 +3399,18 @@ function createUiButton(options = {}, html) {
3371
3399
  v0: void 0,
3372
3400
  v1: void 0,
3373
3401
  v2: void 0,
3402
+ g2: NONCONFORMING,
3374
3403
  v3: void 0,
3404
+ g3: NONCONFORMING,
3375
3405
  v4: void 0,
3406
+ g4: NONCONFORMING,
3376
3407
  v5: void 0,
3377
3408
  v6: void 0,
3378
3409
  v7: void 0,
3379
3410
  v8: void 0,
3411
+ g8: NONCONFORMING,
3380
3412
  v9: void 0,
3413
+ v10: void 0,
3381
3414
  a1: t1,
3382
3415
  e0: t1.nextSibling,
3383
3416
  b0: void 0,
@@ -3398,67 +3431,57 @@ function createUiButton(options = {}, html) {
3398
3431
  return r;
3399
3432
  };
3400
3433
  const p6 = (r, c, d) => {
3401
- if (c & 1074791424) {
3434
+ if (c & 1075582928) {
3435
+ resetForwardedAttributes(r.n, attributes, r.v0);
3436
+ r.v0 = forwardAttributes(r.n, attributes);
3402
3437
  const x0 = g(0);
3403
- const s0 = toAttribute(x0, "data-appearance");
3404
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3405
- }
3406
- if (c & 1075053568) {
3438
+ const s1 = toAttribute(x0, "data-appearance");
3439
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
3407
3440
  const x1 = g(1);
3408
- if (x1 !== NONCONFORMING) {
3409
- const s1 = toAttribute(x1, "data-tone");
3410
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3441
+ if (x1 !== NONCONFORMING) r.g2 = x1;
3442
+ if (r.g2 !== NONCONFORMING) {
3443
+ const s2 = toAttribute(r.g2, "data-tone");
3444
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
3411
3445
  }
3412
- }
3413
- if (c & 1073741888) {
3414
3446
  const x2 = readIndex({
3415
3447
  "true": null,
3416
3448
  "false": v[6]
3417
- }, textCall("concat", [v[6] === "inherit"]));
3418
- if (x2 !== NONCONFORMING) {
3419
- const s2 = toAttribute(x2, "data-interaction-tone");
3420
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3449
+ }, textCall("concat", [equalValue(v[6], "inherit")]));
3450
+ if (x2 !== NONCONFORMING) r.g3 = x2;
3451
+ if (r.g3 !== NONCONFORMING) {
3452
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
3453
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
3421
3454
  }
3422
- }
3423
- if (c & 1074791616) {
3424
3455
  const x3 = g(2);
3425
- if (x3 !== NONCONFORMING) {
3426
- const s3 = toAttribute(x3, "data-interaction-appearance");
3427
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3456
+ if (x3 !== NONCONFORMING) r.g4 = x3;
3457
+ if (r.g4 !== NONCONFORMING) {
3458
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
3459
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
3428
3460
  }
3429
- }
3430
- if (c & 4096) {
3431
3461
  const x4 = v[12];
3432
- const s4 = toAttribute(x4, "data-selected");
3433
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3434
- }
3435
- if (c & 1074266112) {
3462
+ const s5 = toAttribute(x4, "data-selected");
3463
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
3436
3464
  const x5 = v[19];
3437
- const s5 = toAttribute(x5, "type");
3438
- if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
3439
- }
3440
- if (c & 16) {
3465
+ const s6 = toAttribute(x5, "type");
3466
+ writeAttribute(r.n, "type", r.v6 = s6);
3441
3467
  const x6 = v[4];
3442
- const s6 = toAttribute(x6, "disabled");
3443
- if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
3444
- }
3445
- if (c & 1073742592) {
3468
+ const s7 = toAttribute(x6, "disabled");
3469
+ writeAttribute(r.n, "disabled", r.v7 = s7);
3446
3470
  const x7 = readIndex({
3447
3471
  "true": "true",
3448
3472
  "false": null
3449
3473
  }, textCall("concat", [truthy(v[8]) || truthy(v[9])]));
3450
- if (x7 !== NONCONFORMING) {
3451
- const s7 = toAttribute(x7, "aria-disabled");
3452
- if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
3474
+ if (x7 !== NONCONFORMING) r.g8 = x7;
3475
+ if (r.g8 !== NONCONFORMING) {
3476
+ const s8 = toAttribute(r.g8, "aria-disabled");
3477
+ writeAttribute(r.n, "aria-disabled", r.v8 = s8);
3453
3478
  }
3454
- }
3455
- if (c & 768) {
3456
3479
  const x8 = truthy(v[8]) || truthy(v[9]);
3457
- const s8 = toAttribute(x8, "aria-busy");
3458
- if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
3480
+ const s9 = toAttribute(x8, "aria-busy");
3481
+ writeAttribute(r.n, "aria-busy", r.v9 = s9);
3459
3482
  }
3460
3483
  if (c & 123656) {
3461
- const s9 = hostState([
3484
+ const s10 = hostState([
3462
3485
  "align",
3463
3486
  "stretch",
3464
3487
  "size",
@@ -3475,7 +3498,7 @@ function createUiButton(options = {}, html) {
3475
3498
  v[8],
3476
3499
  v[9]
3477
3500
  ]);
3478
- if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
3501
+ if (s10 !== r.v10) writeAttribute(r.n, "data-ui-button-state", (r.v10 = s10) === "" ? null : s10);
3479
3502
  }
3480
3503
  if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3481
3504
  if (r.b0) {
@@ -3498,8 +3521,9 @@ function createUiButton(options = {}, html) {
3498
3521
  } else if (r.b1 !== void 0) p8(r.b1, c, d);
3499
3522
  if (r.f2 === void 0) {
3500
3523
  r.f2 = 1;
3501
- const at = fillSlot(r.a3, r.e2, "", J, false, void 0, d);
3502
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3524
+ const at = initializeSlot(r.a3, r.e2, "", J, false, void 0, d);
3525
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m10(d, void 0, r), p10);
3526
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3503
3527
  at[0].l.delete(at[1]);
3504
3528
  dispose(at[1]);
3505
3529
  });
@@ -3507,11 +3531,13 @@ function createUiButton(options = {}, html) {
3507
3531
  r.b2 = m10(d);
3508
3532
  at.before(r.b2.n);
3509
3533
  }
3510
- } else if (r.b2 !== void 0) r.b2;
3534
+ } else if (typeof r.f2 === "function") r.f2(c, d);
3535
+ else if (r.b2 !== void 0) r.b2;
3511
3536
  if (r.f3 === void 0) {
3512
3537
  r.f3 = 1;
3513
- const at = fillSlot(r.a4, r.e3, "action", J, true, void 0, d);
3514
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3538
+ const at = initializeSlot(r.a4, r.e3, "action", J, true, void 0, d, r.z ??= []);
3539
+ if (typeof at === "function") r.f3 = at(r, (d, at) => m11(d, void 0, r), p11);
3540
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3515
3541
  at[0].l.delete(at[1]);
3516
3542
  dispose(at[1]);
3517
3543
  });
@@ -3519,7 +3545,8 @@ function createUiButton(options = {}, html) {
3519
3545
  r.b3 = m11(d);
3520
3546
  at.before(r.b3.n);
3521
3547
  }
3522
- } else if (r.b3 !== void 0) r.b3;
3548
+ } else if (typeof r.f3 === "function") r.f3(c, d);
3549
+ else if (r.b3 !== void 0) r.b3;
3523
3550
  };
3524
3551
  const m12 = (n, d) => {
3525
3552
  n.append((P12$1 ??= buildTemplate(T12$1)).cloneNode(true));
@@ -3532,15 +3559,22 @@ function createUiButton(options = {}, html) {
3532
3559
  v0: void 0,
3533
3560
  v1: void 0,
3534
3561
  v2: void 0,
3562
+ g2: NONCONFORMING,
3535
3563
  v3: void 0,
3564
+ g3: NONCONFORMING,
3536
3565
  v4: void 0,
3566
+ g4: NONCONFORMING,
3537
3567
  v5: void 0,
3538
3568
  v6: void 0,
3569
+ g6: NONCONFORMING,
3539
3570
  v7: void 0,
3540
3571
  v8: void 0,
3541
3572
  v9: void 0,
3573
+ g9: NONCONFORMING,
3542
3574
  v10: void 0,
3543
3575
  v11: void 0,
3576
+ g11: NONCONFORMING,
3577
+ v12: void 0,
3544
3578
  a1: t0,
3545
3579
  e0: t0.nextSibling,
3546
3580
  b0: void 0,
@@ -3557,87 +3591,75 @@ function createUiButton(options = {}, html) {
3557
3591
  return r;
3558
3592
  };
3559
3593
  const p12 = (r, c, d) => {
3560
- if (c & 1074791424) {
3594
+ if (c & 1075191792) {
3595
+ resetForwardedAttributes(r.n, attributes, r.v0);
3596
+ r.v0 = forwardAttributes(r.n, attributes);
3561
3597
  const x0 = g(0);
3562
- const s0 = toAttribute(x0, "data-appearance");
3563
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3564
- }
3565
- if (c & 1075053568) {
3598
+ const s1 = toAttribute(x0, "data-appearance");
3599
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
3566
3600
  const x1 = g(1);
3567
- if (x1 !== NONCONFORMING) {
3568
- const s1 = toAttribute(x1, "data-tone");
3569
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3601
+ if (x1 !== NONCONFORMING) r.g2 = x1;
3602
+ if (r.g2 !== NONCONFORMING) {
3603
+ const s2 = toAttribute(r.g2, "data-tone");
3604
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
3570
3605
  }
3571
- }
3572
- if (c & 1073741888) {
3573
3606
  const x2 = readIndex({
3574
3607
  "true": null,
3575
3608
  "false": v[6]
3576
- }, textCall("concat", [v[6] === "inherit"]));
3577
- if (x2 !== NONCONFORMING) {
3578
- const s2 = toAttribute(x2, "data-interaction-tone");
3579
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3609
+ }, textCall("concat", [equalValue(v[6], "inherit")]));
3610
+ if (x2 !== NONCONFORMING) r.g3 = x2;
3611
+ if (r.g3 !== NONCONFORMING) {
3612
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
3613
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
3580
3614
  }
3581
- }
3582
- if (c & 1074791616) {
3583
3615
  const x3 = g(2);
3584
- if (x3 !== NONCONFORMING) {
3585
- const s3 = toAttribute(x3, "data-interaction-appearance");
3586
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3616
+ if (x3 !== NONCONFORMING) r.g4 = x3;
3617
+ if (r.g4 !== NONCONFORMING) {
3618
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
3619
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
3587
3620
  }
3588
- }
3589
- if (c & 4096) {
3590
3621
  const x4 = v[12];
3591
- const s4 = toAttribute(x4, "data-selected");
3592
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3593
- }
3594
- if (c & 1073742640) {
3622
+ const s5 = toAttribute(x4, "data-selected");
3623
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
3595
3624
  const x5 = readIndex({
3596
3625
  "true": null,
3597
3626
  "false": v[5]
3598
3627
  }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3599
- if (x5 !== NONCONFORMING) {
3600
- const s5 = toAttribute(x5, "href");
3601
- if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
3628
+ if (x5 !== NONCONFORMING) r.g6 = x5;
3629
+ if (r.g6 !== NONCONFORMING) {
3630
+ const s6 = toAttribute(r.g6, "href");
3631
+ writeUrlAttribute(r.n, "href", r.v6 = s6);
3602
3632
  }
3603
- }
3604
- if (c & 131072) {
3605
3633
  const x6 = v[17];
3606
- const s6 = toAttribute(x6, "target");
3607
- if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
3608
- }
3609
- if (c & 2048) {
3634
+ const s7 = toAttribute(x6, "target");
3635
+ writeAttribute(r.n, "target", r.v7 = s7);
3610
3636
  const x7 = v[11];
3611
- const s7 = toAttribute(x7, "rel");
3612
- if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
3613
- }
3614
- if (c & 1073742608) {
3637
+ const s8 = toAttribute(x7, "rel");
3638
+ writeAttribute(r.n, "rel", r.v8 = s8);
3615
3639
  const x8 = readIndex({
3616
3640
  "true": "true",
3617
3641
  "false": null
3618
3642
  }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3619
- if (x8 !== NONCONFORMING) {
3620
- const s8 = toAttribute(x8, "aria-disabled");
3621
- if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
3643
+ if (x8 !== NONCONFORMING) r.g9 = x8;
3644
+ if (r.g9 !== NONCONFORMING) {
3645
+ const s9 = toAttribute(r.g9, "aria-disabled");
3646
+ writeAttribute(r.n, "aria-disabled", r.v9 = s9);
3622
3647
  }
3623
- }
3624
- if (c & 768) {
3625
3648
  const x9 = truthy(v[8]) || truthy(v[9]);
3626
- const s9 = toAttribute(x9, "aria-busy");
3627
- if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
3628
- }
3629
- if (c & 1073742608) {
3649
+ const s10 = toAttribute(x9, "aria-busy");
3650
+ writeAttribute(r.n, "aria-busy", r.v10 = s10);
3630
3651
  const x10 = readIndex({
3631
3652
  "true": "0",
3632
3653
  "false": null
3633
3654
  }, textCall("concat", [(truthy(v[8]) || truthy(v[9])) && !truthy(v[4])]));
3634
- if (x10 !== NONCONFORMING) {
3635
- const s10 = toAttribute(x10, "tabindex");
3636
- if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
3655
+ if (x10 !== NONCONFORMING) r.g11 = x10;
3656
+ if (r.g11 !== NONCONFORMING) {
3657
+ const s11 = toAttribute(r.g11, "tabindex");
3658
+ writeAttribute(r.n, "tabindex", r.v11 = s11);
3637
3659
  }
3638
3660
  }
3639
3661
  if (c & 123656) {
3640
- const s11 = hostState([
3662
+ const s12 = hostState([
3641
3663
  "align",
3642
3664
  "stretch",
3643
3665
  "size",
@@ -3654,7 +3676,7 @@ function createUiButton(options = {}, html) {
3654
3676
  v[8],
3655
3677
  v[9]
3656
3678
  ]);
3657
- if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
3679
+ if (s12 !== r.v12) writeAttribute(r.n, "data-ui-button-state", (r.v12 = s12) === "" ? null : s12);
3658
3680
  }
3659
3681
  if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3660
3682
  if (r.b0) {
@@ -3667,8 +3689,9 @@ function createUiButton(options = {}, html) {
3667
3689
  } else if (r.b0 !== void 0) r.b0;
3668
3690
  if (r.f1 === void 0) {
3669
3691
  r.f1 = 1;
3670
- const at = fillSlot(r.a2, r.e1, "", J, false, void 0, d);
3671
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3692
+ const at = initializeSlot(r.a2, r.e1, "", J, false, void 0, d);
3693
+ if (typeof at === "function") r.f1 = at(r, (d, at) => m14(d, void 0, r), p14);
3694
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3672
3695
  at[0].l.delete(at[1]);
3673
3696
  dispose(at[1]);
3674
3697
  });
@@ -3676,11 +3699,13 @@ function createUiButton(options = {}, html) {
3676
3699
  r.b1 = m14(d);
3677
3700
  at.before(r.b1.n);
3678
3701
  }
3679
- } else if (r.b1 !== void 0) r.b1;
3702
+ } else if (typeof r.f1 === "function") r.f1(c, d);
3703
+ else if (r.b1 !== void 0) r.b1;
3680
3704
  if (r.f2 === void 0) {
3681
3705
  r.f2 = 1;
3682
- const at = fillSlot(r.a3, r.e2, "badge", J, false, void 0, d);
3683
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3706
+ const at = initializeSlot(r.a3, r.e2, "badge", J, false, void 0, d);
3707
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m15(d, void 0, r), p15);
3708
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3684
3709
  at[0].l.delete(at[1]);
3685
3710
  dispose(at[1]);
3686
3711
  });
@@ -3688,7 +3713,8 @@ function createUiButton(options = {}, html) {
3688
3713
  r.b2 = m15(d);
3689
3714
  at.before(r.b2.n);
3690
3715
  }
3691
- } else if (r.b2 !== void 0) r.b2;
3716
+ } else if (typeof r.f2 === "function") r.f2(c, d);
3717
+ else if (r.b2 !== void 0) r.b2;
3692
3718
  };
3693
3719
  const m16 = (n, d) => {
3694
3720
  n.append((P16$1 ??= buildTemplate(T16$1)).cloneNode(true));
@@ -3701,13 +3727,18 @@ function createUiButton(options = {}, html) {
3701
3727
  v0: void 0,
3702
3728
  v1: void 0,
3703
3729
  v2: void 0,
3730
+ g2: NONCONFORMING,
3704
3731
  v3: void 0,
3732
+ g3: NONCONFORMING,
3705
3733
  v4: void 0,
3734
+ g4: NONCONFORMING,
3706
3735
  v5: void 0,
3707
3736
  v6: void 0,
3708
3737
  v7: void 0,
3709
3738
  v8: void 0,
3739
+ g8: NONCONFORMING,
3710
3740
  v9: void 0,
3741
+ v10: void 0,
3711
3742
  a1: t0,
3712
3743
  e0: t0.nextSibling,
3713
3744
  b0: void 0,
@@ -3724,67 +3755,57 @@ function createUiButton(options = {}, html) {
3724
3755
  return r;
3725
3756
  };
3726
3757
  const p16 = (r, c, d) => {
3727
- if (c & 1074791424) {
3758
+ if (c & 1075582928) {
3759
+ resetForwardedAttributes(r.n, attributes, r.v0);
3760
+ r.v0 = forwardAttributes(r.n, attributes);
3728
3761
  const x0 = g(0);
3729
- const s0 = toAttribute(x0, "data-appearance");
3730
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3731
- }
3732
- if (c & 1075053568) {
3762
+ const s1 = toAttribute(x0, "data-appearance");
3763
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
3733
3764
  const x1 = g(1);
3734
- if (x1 !== NONCONFORMING) {
3735
- const s1 = toAttribute(x1, "data-tone");
3736
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3765
+ if (x1 !== NONCONFORMING) r.g2 = x1;
3766
+ if (r.g2 !== NONCONFORMING) {
3767
+ const s2 = toAttribute(r.g2, "data-tone");
3768
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
3737
3769
  }
3738
- }
3739
- if (c & 1073741888) {
3740
3770
  const x2 = readIndex({
3741
3771
  "true": null,
3742
3772
  "false": v[6]
3743
- }, textCall("concat", [v[6] === "inherit"]));
3744
- if (x2 !== NONCONFORMING) {
3745
- const s2 = toAttribute(x2, "data-interaction-tone");
3746
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3773
+ }, textCall("concat", [equalValue(v[6], "inherit")]));
3774
+ if (x2 !== NONCONFORMING) r.g3 = x2;
3775
+ if (r.g3 !== NONCONFORMING) {
3776
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
3777
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
3747
3778
  }
3748
- }
3749
- if (c & 1074791616) {
3750
3779
  const x3 = g(2);
3751
- if (x3 !== NONCONFORMING) {
3752
- const s3 = toAttribute(x3, "data-interaction-appearance");
3753
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3780
+ if (x3 !== NONCONFORMING) r.g4 = x3;
3781
+ if (r.g4 !== NONCONFORMING) {
3782
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
3783
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
3754
3784
  }
3755
- }
3756
- if (c & 4096) {
3757
3785
  const x4 = v[12];
3758
- const s4 = toAttribute(x4, "data-selected");
3759
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3760
- }
3761
- if (c & 1074266112) {
3786
+ const s5 = toAttribute(x4, "data-selected");
3787
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
3762
3788
  const x5 = v[19];
3763
- const s5 = toAttribute(x5, "type");
3764
- if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
3765
- }
3766
- if (c & 16) {
3789
+ const s6 = toAttribute(x5, "type");
3790
+ writeAttribute(r.n, "type", r.v6 = s6);
3767
3791
  const x6 = v[4];
3768
- const s6 = toAttribute(x6, "disabled");
3769
- if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
3770
- }
3771
- if (c & 1073742592) {
3792
+ const s7 = toAttribute(x6, "disabled");
3793
+ writeAttribute(r.n, "disabled", r.v7 = s7);
3772
3794
  const x7 = readIndex({
3773
3795
  "true": "true",
3774
3796
  "false": null
3775
3797
  }, textCall("concat", [truthy(v[8]) || truthy(v[9])]));
3776
- if (x7 !== NONCONFORMING) {
3777
- const s7 = toAttribute(x7, "aria-disabled");
3778
- if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
3798
+ if (x7 !== NONCONFORMING) r.g8 = x7;
3799
+ if (r.g8 !== NONCONFORMING) {
3800
+ const s8 = toAttribute(r.g8, "aria-disabled");
3801
+ writeAttribute(r.n, "aria-disabled", r.v8 = s8);
3779
3802
  }
3780
- }
3781
- if (c & 768) {
3782
3803
  const x8 = truthy(v[8]) || truthy(v[9]);
3783
- const s8 = toAttribute(x8, "aria-busy");
3784
- if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
3804
+ const s9 = toAttribute(x8, "aria-busy");
3805
+ writeAttribute(r.n, "aria-busy", r.v9 = s9);
3785
3806
  }
3786
3807
  if (c & 123656) {
3787
- const s9 = hostState([
3808
+ const s10 = hostState([
3788
3809
  "align",
3789
3810
  "stretch",
3790
3811
  "size",
@@ -3801,7 +3822,7 @@ function createUiButton(options = {}, html) {
3801
3822
  v[8],
3802
3823
  v[9]
3803
3824
  ]);
3804
- if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
3825
+ if (s10 !== r.v10) writeAttribute(r.n, "data-ui-button-state", (r.v10 = s10) === "" ? null : s10);
3805
3826
  }
3806
3827
  if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3807
3828
  if (r.b0) {
@@ -3814,8 +3835,9 @@ function createUiButton(options = {}, html) {
3814
3835
  } else if (r.b0 !== void 0) r.b0;
3815
3836
  if (r.f1 === void 0) {
3816
3837
  r.f1 = 1;
3817
- const at = fillSlot(r.a2, r.e1, "", J, false, void 0, d);
3818
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3838
+ const at = initializeSlot(r.a2, r.e1, "", J, false, void 0, d);
3839
+ if (typeof at === "function") r.f1 = at(r, (d, at) => m18(d, void 0, r), p18);
3840
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3819
3841
  at[0].l.delete(at[1]);
3820
3842
  dispose(at[1]);
3821
3843
  });
@@ -3823,11 +3845,13 @@ function createUiButton(options = {}, html) {
3823
3845
  r.b1 = m18(d);
3824
3846
  at.before(r.b1.n);
3825
3847
  }
3826
- } else if (r.b1 !== void 0) r.b1;
3848
+ } else if (typeof r.f1 === "function") r.f1(c, d);
3849
+ else if (r.b1 !== void 0) r.b1;
3827
3850
  if (r.f2 === void 0) {
3828
3851
  r.f2 = 1;
3829
- const at = fillSlot(r.a3, r.e2, "badge", J, false, void 0, d);
3830
- if (Array.isArray(at)) (r.z ??= []).push(() => {
3852
+ const at = initializeSlot(r.a3, r.e2, "badge", J, false, void 0, d);
3853
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m19(d, void 0, r), p19);
3854
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
3831
3855
  at[0].l.delete(at[1]);
3832
3856
  dispose(at[1]);
3833
3857
  });
@@ -3835,7 +3859,8 @@ function createUiButton(options = {}, html) {
3835
3859
  r.b2 = m19(d);
3836
3860
  at.before(r.b2.n);
3837
3861
  }
3838
- } else if (r.b2 !== void 0) r.b2;
3862
+ } else if (typeof r.f2 === "function") r.f2(c, d);
3863
+ else if (r.b2 !== void 0) r.b2;
3839
3864
  };
3840
3865
  const M = [
3841
3866
  m0,
@@ -3856,7 +3881,7 @@ function createUiButton(options = {}, html) {
3856
3881
  return;
3857
3882
  }
3858
3883
  if (c & 1074791456) {
3859
- const t = g(0) === "card" && v[5] !== null ? 0 : g(0) === "card" ? 1 : v[5] !== null ? 2 : 3;
3884
+ const t = truthy(equalValue(g(0), "card")) && truthy(equalValue(v[5], null, true)) ? 0 : truthy(equalValue(g(0), "card")) ? 1 : truthy(equalValue(v[5], null, true)) ? 2 : 3;
3860
3885
  if (t !== a) {
3861
3886
  dispose(R);
3862
3887
  for (const key in I.r) delete I.r[key];
@@ -3873,6 +3898,16 @@ function createUiButton(options = {}, html) {
3873
3898
  };
3874
3899
  const I = { B };
3875
3900
  const J = project(I, children, slots);
3901
+ sharePlainSlots(I, J, [
3902
+ "icon",
3903
+ "",
3904
+ "action",
3905
+ "badge"
3906
+ ]);
3907
+ I.F = {
3908
+ values: attributes,
3909
+ draw: () => p(-1)
3910
+ };
3876
3911
  attachGeneratedController(element, S$18, v, p, void 0, X, I);
3877
3912
  manageProps(I);
3878
3913
  return element;
@@ -4279,6 +4314,7 @@ function createViewportSurface(surface, options = {}) {
4279
4314
  let destroyed = false;
4280
4315
  let stop = null;
4281
4316
  let sizeObserver = null;
4317
+ let contentObserver = null;
4282
4318
  let frame = null;
4283
4319
  const position = () => {
4284
4320
  if (frame !== null) owner.cancelAnimationFrame(frame);
@@ -4321,6 +4357,8 @@ function createViewportSurface(surface, options = {}) {
4321
4357
  stop = null;
4322
4358
  sizeObserver?.disconnect();
4323
4359
  sizeObserver = null;
4360
+ contentObserver?.disconnect();
4361
+ contentObserver = null;
4324
4362
  if (frame !== null) owner.cancelAnimationFrame(frame);
4325
4363
  frame = null;
4326
4364
  hide(surface);
@@ -4336,6 +4374,14 @@ function createViewportSurface(surface, options = {}) {
4336
4374
  sizeObserver = new owner.ResizeObserver(position);
4337
4375
  sizeObserver.observe(surface);
4338
4376
  }
4377
+ if (!contentObserver && owner.MutationObserver) {
4378
+ contentObserver = new owner.MutationObserver(position);
4379
+ contentObserver.observe(surface, {
4380
+ childList: true,
4381
+ subtree: true,
4382
+ characterData: true
4383
+ });
4384
+ }
4339
4385
  },
4340
4386
  hide: hideSurface,
4341
4387
  refresh,
@@ -4663,12 +4709,9 @@ var D$17 = {
4663
4709
  };
4664
4710
  var C$11 = (host) => activateModule(ui_affordance_scope_exports, host);
4665
4711
  function createUiAffordanceScope(options = {}, html) {
4666
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
4712
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
4713
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["guide", "near-radius"].includes(name)));
4667
4714
  const element = document.createElement("span");
4668
- for (const [name, value] of Object.entries(attributes)) {
4669
- if (value === null || value === void 0 || value === false) continue;
4670
- element.setAttribute(name, value === true ? "" : String(value));
4671
- }
4672
4715
  element.setAttribute("component", "ui-affordance-scope");
4673
4716
  element.append((P0$15 ??= buildTemplate(T0$15)).cloneNode(true));
4674
4717
  const v = [
@@ -4681,13 +4724,17 @@ function createUiAffordanceScope(options = {}, html) {
4681
4724
  return { n: (P1$15 ??= buildTemplate(T1$15)).cloneNode(true) };
4682
4725
  };
4683
4726
  const p0 = (r, c, d) => {
4727
+ if (c === -1) {
4728
+ resetForwardedAttributes(r.n, attributes, r.v0);
4729
+ r.v0 = forwardAttributes(r.n, attributes);
4730
+ }
4684
4731
  if (c & 3) {
4685
- const s0 = hostState(["engaged", "guide"], [v[0], v[1]]);
4686
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-affordance-scope-state", (r.v0 = s0) === "" ? null : s0);
4732
+ const s1 = hostState(["engaged", "guide"], [v[0], v[1]]);
4733
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-affordance-scope-state", (r.v1 = s1) === "" ? null : s1);
4687
4734
  }
4688
4735
  if (r.f0 === void 0) {
4689
4736
  r.f0 = 1;
4690
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
4737
+ const at = fillSlot(r.a1, r.e0, "", J, false, void 0, d);
4691
4738
  if (Array.isArray(at)) (r.z ??= []).push(() => {
4692
4739
  at[0].l.delete(at[1]);
4693
4740
  dispose(at[1]);
@@ -4702,7 +4749,8 @@ function createUiAffordanceScope(options = {}, html) {
4702
4749
  const R = {
4703
4750
  n: element,
4704
4751
  v0: void 0,
4705
- a0: t0,
4752
+ v1: void 0,
4753
+ a1: t0,
4706
4754
  e0: t0.nextSibling,
4707
4755
  b0: void 0,
4708
4756
  f0: void 0
@@ -4710,6 +4758,10 @@ function createUiAffordanceScope(options = {}, html) {
4710
4758
  const I = { B };
4711
4759
  const J = project(I, children, slots);
4712
4760
  I.R = /* @__PURE__ */ new Set();
4761
+ I.F = {
4762
+ values: attributes,
4763
+ draw: () => ((c, d) => p0(R, c, d))(-1)
4764
+ };
4713
4765
  attachGeneratedController(element, S$17, v, (c, d) => {
4714
4766
  ((c, d) => p0(R, c, d))(c, d);
4715
4767
  for (const f of I.R) f(c, d);
@@ -4988,12 +5040,18 @@ var D$16 = {
4988
5040
  };
4989
5041
  var C$10 = (host) => activateModule(ui_cluster_exports, host);
4990
5042
  function createUiCluster(options = {}, html) {
4991
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
5043
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
5044
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
5045
+ "align",
5046
+ "fixed",
5047
+ "gap",
5048
+ "justify",
5049
+ "max-rows",
5050
+ "padding",
5051
+ "padding-end",
5052
+ "wrap"
5053
+ ].includes(name)));
4992
5054
  const element = document.createElement("div");
4993
- for (const [name, value] of Object.entries(attributes)) {
4994
- if (value === null || value === void 0 || value === false) continue;
4995
- element.setAttribute(name, value === true ? "" : String(value));
4996
- }
4997
5055
  element.setAttribute("component", "ui-cluster");
4998
5056
  element.append((P0$14 ??= buildTemplate(T0$14)).cloneNode(true));
4999
5057
  const v = [
@@ -5018,13 +5076,17 @@ function createUiCluster(options = {}, html) {
5018
5076
  return { n: (P3$7 ??= buildTemplate(T3$7)).cloneNode(true) };
5019
5077
  };
5020
5078
  const p0 = (r, c, d) => {
5079
+ if (c === -1) {
5080
+ resetForwardedAttributes(r.n, attributes, r.v0);
5081
+ r.v0 = forwardAttributes(r.n, attributes);
5082
+ }
5021
5083
  if (c & 1) {
5022
- const x0 = v[0] === 0;
5023
- const s0 = toAttribute(x0, "hidden");
5024
- if (s0 !== r.v0) writeAttribute(r.a1, "hidden", r.v0 = s0);
5084
+ const x0 = equalValue(v[0], 0);
5085
+ const s1 = toAttribute(x0, "hidden");
5086
+ if (s1 !== r.v1) writeAttribute(r.a2, "hidden", r.v1 = s1);
5025
5087
  }
5026
5088
  if (c & 478) {
5027
- const s1 = hostState([
5089
+ const s2 = hostState([
5028
5090
  "fixed",
5029
5091
  "padding",
5030
5092
  "paddingEnd",
@@ -5041,11 +5103,23 @@ function createUiCluster(options = {}, html) {
5041
5103
  v[4],
5042
5104
  v[8]
5043
5105
  ]);
5044
- if (s1 !== r.v1) writeAttribute(r.n, "data-ui-cluster-state", (r.v1 = s1) === "" ? null : s1);
5106
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-cluster-state", (r.v2 = s2) === "" ? null : s2);
5045
5107
  }
5108
+ if (r.f0 === void 0) {
5109
+ r.f0 = 1;
5110
+ const at = fillSlot(r.a1, r.e0, "", J, false, void 0, d);
5111
+ if (Array.isArray(at)) (r.z ??= []).push(() => {
5112
+ at[0].l.delete(at[1]);
5113
+ dispose(at[1]);
5114
+ });
5115
+ else if (at !== void 0) {
5116
+ r.b0 = m1(d);
5117
+ at.before(r.b0.n);
5118
+ }
5119
+ } else if (r.b0 !== void 0) r.b0;
5046
5120
  if (r.f1 === void 0) {
5047
5121
  r.f1 = 1;
5048
- const at = fillSlot(r.a2, r.e1, "overflow", J, false, void 0, d);
5122
+ const at = fillSlot(r.a3, r.e1, "overflow", J, false, void 0, d);
5049
5123
  if (Array.isArray(at)) (r.z ??= []).push(() => {
5050
5124
  at[0].l.delete(at[1]);
5051
5125
  dispose(at[1]);
@@ -5057,7 +5131,7 @@ function createUiCluster(options = {}, html) {
5057
5131
  } else if (r.b1 !== void 0) r.b1;
5058
5132
  if (r.f2 === void 0) {
5059
5133
  r.f2 = 1;
5060
- const at = fillSlot(r.a4, r.e2, "trailing", J, false, void 0, d);
5134
+ const at = fillSlot(r.a5, r.e2, "trailing", J, false, void 0, d);
5061
5135
  if (Array.isArray(at)) (r.z ??= []).push(() => {
5062
5136
  at[0].l.delete(at[1]);
5063
5137
  dispose(at[1]);
@@ -5067,18 +5141,6 @@ function createUiCluster(options = {}, html) {
5067
5141
  at.before(r.b2.n);
5068
5142
  }
5069
5143
  } else if (r.b2 !== void 0) r.b2;
5070
- if (r.f0 === void 0) {
5071
- r.f0 = 1;
5072
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
5073
- if (Array.isArray(at)) (r.z ??= []).push(() => {
5074
- at[0].l.delete(at[1]);
5075
- dispose(at[1]);
5076
- });
5077
- else if (at !== void 0) {
5078
- r.b0 = m1(d);
5079
- at.before(r.b0.n);
5080
- }
5081
- } else if (r.b0 !== void 0) r.b0;
5082
5144
  };
5083
5145
  const t0 = element.firstChild.nextSibling;
5084
5146
  const t1 = t0.nextSibling.nextSibling.nextSibling;
@@ -5087,18 +5149,19 @@ function createUiCluster(options = {}, html) {
5087
5149
  const t4 = t3.firstChild;
5088
5150
  const R = {
5089
5151
  n: element,
5090
- a1: t1,
5091
- v0: null,
5092
- v1: void 0,
5093
- a0: t0,
5152
+ a2: t1,
5153
+ v0: void 0,
5154
+ v1: null,
5155
+ v2: void 0,
5156
+ a1: t0,
5094
5157
  e0: t0.nextSibling,
5095
5158
  b0: void 0,
5096
5159
  f0: void 0,
5097
- a2: t2,
5160
+ a3: t2,
5098
5161
  e1: t2.nextSibling,
5099
5162
  b1: void 0,
5100
5163
  f1: void 0,
5101
- a4: t4,
5164
+ a5: t4,
5102
5165
  e2: t4.nextSibling,
5103
5166
  b2: void 0,
5104
5167
  f2: void 0
@@ -5106,6 +5169,10 @@ function createUiCluster(options = {}, html) {
5106
5169
  const I = { B };
5107
5170
  const J = project(I, children, slots);
5108
5171
  I.R = /* @__PURE__ */ new Set();
5172
+ I.F = {
5173
+ values: attributes,
5174
+ draw: () => ((c, d) => p0(R, c, d))(-1)
5175
+ };
5109
5176
  attachGeneratedController(element, S$16, v, (c, d) => {
5110
5177
  ((c, d) => p0(R, c, d))(c, d);
5111
5178
  for (const f of I.R) f(c, d);
@@ -5331,12 +5398,13 @@ var D$15 = {
5331
5398
  };
5332
5399
  var C$9 = (host) => activateModule(ui_form_field_exports, host);
5333
5400
  function createUiFormField(options = {}, html) {
5334
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
5401
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
5402
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
5403
+ "disabled",
5404
+ "invalid",
5405
+ "required"
5406
+ ].includes(name)));
5335
5407
  const element = document.createElement("div");
5336
- for (const [name, value] of Object.entries(attributes)) {
5337
- if (value === null || value === void 0 || value === false) continue;
5338
- element.setAttribute(name, value === true ? "" : String(value));
5339
- }
5340
5408
  element.setAttribute("component", "ui-form-field");
5341
5409
  element.append((P0$13 ??= buildTemplate(T0$13)).cloneNode(true));
5342
5410
  const v = [
@@ -5361,13 +5429,29 @@ function createUiFormField(options = {}, html) {
5361
5429
  return { n: (P5$4 ??= buildTemplate(T5$4)).cloneNode(true) };
5362
5430
  };
5363
5431
  const p0 = (r, c, d) => {
5432
+ if (c === -1) {
5433
+ resetForwardedAttributes(r.n, attributes, r.v0);
5434
+ r.v0 = forwardAttributes(r.n, attributes);
5435
+ }
5364
5436
  if (c & 2) {
5365
- const s0 = hostState(["invalid"], [v[1]]);
5366
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-form-field-state", (r.v0 = s0) === "" ? null : s0);
5437
+ const s1 = hostState(["invalid"], [v[1]]);
5438
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-form-field-state", (r.v1 = s1) === "" ? null : s1);
5367
5439
  }
5440
+ if (r.f0 === void 0) {
5441
+ r.f0 = 1;
5442
+ const at = fillSlot(r.a1, r.e0, "label", J, false, void 0, d);
5443
+ if (Array.isArray(at)) (r.z ??= []).push(() => {
5444
+ at[0].l.delete(at[1]);
5445
+ dispose(at[1]);
5446
+ });
5447
+ else if (at !== void 0) {
5448
+ r.b0 = m1(d);
5449
+ at.before(r.b0.n);
5450
+ }
5451
+ } else if (r.b0 !== void 0) r.b0;
5368
5452
  if (r.f1 === void 0) {
5369
5453
  r.f1 = 1;
5370
- const at = fillSlot(r.a1, r.e1, "labelAction", J, false, void 0, d);
5454
+ const at = fillSlot(r.a2, r.e1, "labelAction", J, false, void 0, d);
5371
5455
  if (Array.isArray(at)) (r.z ??= []).push(() => {
5372
5456
  at[0].l.delete(at[1]);
5373
5457
  dispose(at[1]);
@@ -5377,21 +5461,21 @@ function createUiFormField(options = {}, html) {
5377
5461
  at.before(r.b1.n);
5378
5462
  }
5379
5463
  } else if (r.b1 !== void 0) r.b1;
5380
- if (r.f0 === void 0) {
5381
- r.f0 = 1;
5382
- const at = fillSlot(r.a0, r.e0, "label", J, false, void 0, d);
5464
+ if (r.f2 === void 0) {
5465
+ r.f2 = 1;
5466
+ const at = fillSlot(r.a3, r.e2, "", J, false, void 0, d);
5383
5467
  if (Array.isArray(at)) (r.z ??= []).push(() => {
5384
5468
  at[0].l.delete(at[1]);
5385
5469
  dispose(at[1]);
5386
5470
  });
5387
5471
  else if (at !== void 0) {
5388
- r.b0 = m1(d);
5389
- at.before(r.b0.n);
5472
+ r.b2 = m3(d);
5473
+ at.before(r.b2.n);
5390
5474
  }
5391
- } else if (r.b0 !== void 0) r.b0;
5475
+ } else if (r.b2 !== void 0) r.b2;
5392
5476
  if (r.f3 === void 0) {
5393
5477
  r.f3 = 1;
5394
- const at = fillSlot(r.a3, r.e3, "help", J, false, void 0, d);
5478
+ const at = fillSlot(r.a4, r.e3, "help", J, false, void 0, d);
5395
5479
  if (Array.isArray(at)) (r.z ??= []).push(() => {
5396
5480
  at[0].l.delete(at[1]);
5397
5481
  dispose(at[1]);
@@ -5403,7 +5487,7 @@ function createUiFormField(options = {}, html) {
5403
5487
  } else if (r.b3 !== void 0) r.b3;
5404
5488
  if (r.f4 === void 0) {
5405
5489
  r.f4 = 1;
5406
- const at = fillSlot(r.a4, r.e4, "error", J, false, void 0, d);
5490
+ const at = fillSlot(r.a5, r.e4, "error", J, false, void 0, d);
5407
5491
  if (Array.isArray(at)) (r.z ??= []).push(() => {
5408
5492
  at[0].l.delete(at[1]);
5409
5493
  dispose(at[1]);
@@ -5413,18 +5497,6 @@ function createUiFormField(options = {}, html) {
5413
5497
  at.before(r.b4.n);
5414
5498
  }
5415
5499
  } else if (r.b4 !== void 0) r.b4;
5416
- if (r.f2 === void 0) {
5417
- r.f2 = 1;
5418
- const at = fillSlot(r.a2, r.e2, "", J, false, void 0, d);
5419
- if (Array.isArray(at)) (r.z ??= []).push(() => {
5420
- at[0].l.delete(at[1]);
5421
- dispose(at[1]);
5422
- });
5423
- else if (at !== void 0) {
5424
- r.b2 = m3(d);
5425
- at.before(r.b2.n);
5426
- }
5427
- } else if (r.b2 !== void 0) r.b2;
5428
5500
  };
5429
5501
  const t0 = element.firstChild.nextSibling;
5430
5502
  const t1 = t0.firstChild.nextSibling;
@@ -5436,29 +5508,34 @@ function createUiFormField(options = {}, html) {
5436
5508
  const R = {
5437
5509
  n: element,
5438
5510
  v0: void 0,
5439
- a0: t1,
5511
+ v1: void 0,
5512
+ a1: t1,
5440
5513
  e0: t1.nextSibling,
5441
5514
  b0: void 0,
5442
5515
  f0: void 0,
5443
- a1: t2,
5516
+ a2: t2,
5444
5517
  e1: t2.nextSibling,
5445
5518
  b1: void 0,
5446
5519
  f1: void 0,
5447
- a2: t3,
5520
+ a3: t3,
5448
5521
  e2: t3.nextSibling,
5449
5522
  b2: void 0,
5450
5523
  f2: void 0,
5451
- a3: t5,
5524
+ a4: t5,
5452
5525
  e3: t5.nextSibling,
5453
5526
  b3: void 0,
5454
5527
  f3: void 0,
5455
- a4: t6,
5528
+ a5: t6,
5456
5529
  e4: t6.nextSibling,
5457
5530
  b4: void 0,
5458
5531
  f4: void 0
5459
5532
  };
5460
5533
  const I = { B };
5461
5534
  const J = project(I, children, slots);
5535
+ I.F = {
5536
+ values: attributes,
5537
+ draw: () => ((c, d) => p0(R, c, d))(-1)
5538
+ };
5462
5539
  attachGeneratedController(element, S$15, v, ((c, d) => p0(R, c, d)), void 0, void 0, I);
5463
5540
  manageProps(I);
5464
5541
  return element;
@@ -5563,12 +5640,13 @@ var D$14 = {
5563
5640
  }
5564
5641
  };
5565
5642
  function createUiIcon(options = {}, html) {
5566
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
5643
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
5644
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
5645
+ "directional",
5646
+ "name",
5647
+ "tone"
5648
+ ].includes(name)));
5567
5649
  const element = document.createElement("span");
5568
- for (const [name, value] of Object.entries(attributes)) {
5569
- if (value === null || value === void 0 || value === false) continue;
5570
- element.setAttribute(name, value === true ? "" : String(value));
5571
- }
5572
5650
  if (!element.hasAttribute("aria-hidden")) element.setAttribute("aria-hidden", "true");
5573
5651
  element.setAttribute("component", "ui-icon");
5574
5652
  element.append((P0$12 ??= buildTemplate(T0$12)).cloneNode(true));
@@ -6903,7 +6981,7 @@ function createUiIcon(options = {}, html) {
6903
6981
  };
6904
6982
  const p1 = (r, c, d) => {
6905
6983
  const o = r.i;
6906
- if (c & 1073741824 && !(readMember(o, "tag") === "path") !== !r.b0) {
6984
+ if (c & 1073741824 && !truthy(equalValue(readMember(o, "tag"), "path")) !== !r.b0) {
6907
6985
  if (r.b0) {
6908
6986
  r.b0 = void 0;
6909
6987
  clearRegion(r.a0, r.e0);
@@ -6912,7 +6990,7 @@ function createUiIcon(options = {}, html) {
6912
6990
  r.e0.before(r.b0.n);
6913
6991
  }
6914
6992
  } else if (r.b0 !== void 0) p2(r.b0, c, d);
6915
- if (c & 1073741824 && !(readMember(o, "tag") === "circle") !== !r.b1) {
6993
+ if (c & 1073741824 && !truthy(equalValue(readMember(o, "tag"), "circle")) !== !r.b1) {
6916
6994
  if (r.b1) {
6917
6995
  r.b1 = void 0;
6918
6996
  clearRegion(r.a1, r.e1);
@@ -6921,7 +6999,7 @@ function createUiIcon(options = {}, html) {
6921
6999
  r.e1.before(r.b1.n);
6922
7000
  }
6923
7001
  } else if (r.b1 !== void 0) p3(r.b1, c, d);
6924
- if (c & 1073741824 && !(readMember(o, "tag") === "rect") !== !r.b2) {
7002
+ if (c & 1073741824 && !truthy(equalValue(readMember(o, "tag"), "rect")) !== !r.b2) {
6925
7003
  if (r.b2) {
6926
7004
  r.b2 = void 0;
6927
7005
  clearRegion(r.a2, r.e2);
@@ -6930,7 +7008,7 @@ function createUiIcon(options = {}, html) {
6930
7008
  r.e2.before(r.b2.n);
6931
7009
  }
6932
7010
  } else if (r.b2 !== void 0) p4(r.b2, c, d);
6933
- if (c & 1073741824 && !(readMember(o, "tag") === "line") !== !r.b3) {
7011
+ if (c & 1073741824 && !truthy(equalValue(readMember(o, "tag"), "line")) !== !r.b3) {
6934
7012
  if (r.b3) {
6935
7013
  r.b3 = void 0;
6936
7014
  clearRegion(r.a3, r.e3);
@@ -7053,9 +7131,15 @@ function createUiIcon(options = {}, html) {
7053
7131
  }
7054
7132
  };
7055
7133
  const p0 = (r, c, d) => {
7134
+ if (c === -1) {
7135
+ resetForwardedAttributes(r.n, attributes, r.v0);
7136
+ r.v0 = forwardAttributes(r.n, attributes);
7137
+ const s1 = toAttribute("true", "aria-hidden");
7138
+ writeAttribute(r.n, "aria-hidden", r.v1 = s1);
7139
+ }
7056
7140
  if (c & 10) {
7057
- const s0 = hostState(["tone", "directional"], [v[3], v[1]]);
7058
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-icon-state", (r.v0 = s0) === "" ? null : s0);
7141
+ const s2 = hostState(["tone", "directional"], [v[3], v[1]]);
7142
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-icon-state", (r.v2 = s2) === "" ? null : s2);
7059
7143
  }
7060
7144
  if (c & 1073741828) r.L0.update(g(0), d, c);
7061
7145
  };
@@ -7063,9 +7147,15 @@ function createUiIcon(options = {}, html) {
7063
7147
  const R = {
7064
7148
  n: element,
7065
7149
  v0: void 0,
7150
+ v1: void 0,
7151
+ v2: void 0,
7066
7152
  L0: new IndexedList(t0, t0.nextSibling, m1, p1, void 0, "shape")
7067
7153
  };
7068
7154
  const I = { B };
7155
+ I.F = {
7156
+ values: attributes,
7157
+ draw: () => ((c, d) => p0(R, c, d))(-1)
7158
+ };
7069
7159
  attachGeneratedController(element, S$14, v, ((c, d) => p0(R, c, d)), void 0, X, I);
7070
7160
  manageProps(I);
7071
7161
  return element;
@@ -7263,12 +7353,23 @@ var D$13 = {
7263
7353
  };
7264
7354
  var C$8 = (host) => activateModule(ui_icon_button_exports, host);
7265
7355
  function createUiIconButton(options = {}, html) {
7266
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7356
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
7357
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
7358
+ "anticipatory",
7359
+ "disabled",
7360
+ "guide",
7361
+ "label",
7362
+ "loading",
7363
+ "match-button",
7364
+ "pending",
7365
+ "preset",
7366
+ "revealed",
7367
+ "round",
7368
+ "size",
7369
+ "tone",
7370
+ "variant"
7371
+ ].includes(name)));
7267
7372
  const element = document.createElement("button");
7268
- for (const [name, value] of Object.entries(attributes)) {
7269
- if (value === null || value === void 0 || value === false) continue;
7270
- element.setAttribute(name, value === true ? "" : String(value));
7271
- }
7272
7373
  if (!element.hasAttribute("type")) element.setAttribute("type", "button");
7273
7374
  element.setAttribute("component", "ui-icon-button");
7274
7375
  element.append((P0$11 ??= buildTemplate(T0$11)).cloneNode(true));
@@ -7362,48 +7463,41 @@ function createUiIconButton(options = {}, html) {
7362
7463
  return { n: (P2$8 ??= buildTemplate(T2$8)).cloneNode(true) };
7363
7464
  };
7364
7465
  const p0 = (r, c, d) => {
7365
- if (c & 1073758720) {
7466
+ if (c & 1073767400) {
7467
+ resetForwardedAttributes(r.n, attributes, r.v0);
7468
+ r.v0 = forwardAttributes(r.n, attributes);
7366
7469
  const x0 = g(0);
7367
- const s0 = toAttribute(x0, "data-appearance");
7368
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
7369
- }
7370
- if (c & 1073750528) {
7470
+ const s1 = toAttribute(x0, "data-appearance");
7471
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
7371
7472
  const x1 = g(1);
7372
- const s1 = toAttribute(x1, "data-tone");
7373
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
7374
- }
7375
- if (c & 8) {
7473
+ const s2 = toAttribute(x1, "data-tone");
7474
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
7376
7475
  const x2 = v[3];
7377
- const s2 = toAttribute(x2, "disabled");
7378
- if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
7379
- }
7380
- if (c & 32) {
7381
- const x3 = v[5];
7382
- const s3 = toAttribute(x3, "aria-label");
7383
- if (s3 !== r.v3) writeAttribute(r.n, "aria-label", r.v3 = s3);
7384
- }
7385
- if (c & 128) {
7386
- const x4 = v[7];
7387
- const s4 = toAttribute(x4, "data-match-button");
7388
- if (s4 !== r.v4) writeAttribute(r.n, "data-match-button", r.v4 = s4);
7389
- }
7390
- if (c & 1073742144) {
7391
- const x5 = readIndex({
7476
+ const s3 = toAttribute(x2, "disabled");
7477
+ writeAttribute(r.n, "disabled", r.v3 = s3);
7478
+ const s4 = toAttribute("button", "type");
7479
+ writeAttribute(r.n, "type", r.v4 = s4);
7480
+ const x4 = v[5];
7481
+ const s5 = toAttribute(x4, "aria-label");
7482
+ writeAttribute(r.n, "aria-label", r.v5 = s5);
7483
+ const x5 = v[7];
7484
+ const s6 = toAttribute(x5, "data-match-button");
7485
+ writeAttribute(r.n, "data-match-button", r.v6 = s6);
7486
+ const x6 = readIndex({
7392
7487
  "true": "true",
7393
7488
  "false": null
7394
7489
  }, textCall("concat", [truthy(v[6]) || truthy(v[8])]));
7395
- if (x5 !== NONCONFORMING) {
7396
- const s5 = toAttribute(x5, "aria-disabled");
7397
- if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
7490
+ if (x6 !== NONCONFORMING) r.g7 = x6;
7491
+ if (r.g7 !== NONCONFORMING) {
7492
+ const s7 = toAttribute(r.g7, "aria-disabled");
7493
+ writeAttribute(r.n, "aria-disabled", r.v7 = s7);
7398
7494
  }
7399
- }
7400
- if (c & 320) {
7401
- const x6 = truthy(v[6]) || truthy(v[8]);
7402
- const s6 = toAttribute(x6, "aria-busy");
7403
- if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
7495
+ const x7 = truthy(v[6]) || truthy(v[8]);
7496
+ const s8 = toAttribute(x7, "aria-busy");
7497
+ writeAttribute(r.n, "aria-busy", r.v8 = s8);
7404
7498
  }
7405
7499
  if (c & 7636) {
7406
- const s7 = hostState([
7500
+ const s9 = hostState([
7407
7501
  "anticipatory",
7408
7502
  "guide",
7409
7503
  "revealed",
@@ -7422,7 +7516,7 @@ function createUiIconButton(options = {}, html) {
7422
7516
  v[7],
7423
7517
  v[11]
7424
7518
  ]);
7425
- if (s7 !== r.v7) writeAttribute(r.n, "data-ui-icon-button-state", (r.v7 = s7) === "" ? null : s7);
7519
+ if (s9 !== r.v9) writeAttribute(r.n, "data-ui-icon-button-state", (r.v9 = s9) === "" ? null : s9);
7426
7520
  }
7427
7521
  if (c & 320 && !(truthy(v[6]) || truthy(v[8])) !== !r.b0) {
7428
7522
  if (r.b0) {
@@ -7458,6 +7552,9 @@ function createUiIconButton(options = {}, html) {
7458
7552
  v5: void 0,
7459
7553
  v6: void 0,
7460
7554
  v7: void 0,
7555
+ g7: NONCONFORMING,
7556
+ v8: void 0,
7557
+ v9: void 0,
7461
7558
  a1: t0,
7462
7559
  e0: t0.nextSibling,
7463
7560
  b0: void 0,
@@ -7468,6 +7565,10 @@ function createUiIconButton(options = {}, html) {
7468
7565
  };
7469
7566
  const I = { B };
7470
7567
  const J = project(I, children, slots);
7568
+ I.F = {
7569
+ values: attributes,
7570
+ draw: () => ((c, d) => p0(R, c, d))(-1)
7571
+ };
7471
7572
  attachGeneratedController(element, S$13, v, ((c, d) => p0(R, c, d)), void 0, X, I);
7472
7573
  manageProps(I);
7473
7574
  return element;
@@ -7582,7 +7683,13 @@ var D$12 = {
7582
7683
  }
7583
7684
  };
7584
7685
  function createUiList(options = {}, html) {
7585
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7686
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
7687
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
7688
+ "as",
7689
+ "density",
7690
+ "layout",
7691
+ "markers"
7692
+ ].includes(name)));
7586
7693
  const v = [
7587
7694
  null,
7588
7695
  null,
@@ -7590,38 +7697,33 @@ function createUiList(options = {}, html) {
7590
7697
  null
7591
7698
  ];
7592
7699
  let B = acceptProps(void 0, D$12, S$12.n, v, componentProps, [], html);
7593
- let a = v[0] === "ol" ? 0 : 1;
7700
+ let a = truthy(equalValue(v[0], "ol")) ? 0 : 1;
7594
7701
  let element;
7595
7702
  if (a === 0) {
7596
7703
  element = document.createElement("ol");
7597
- for (const [name, value] of Object.entries(attributes)) {
7598
- if (value === null || value === void 0 || value === false) continue;
7599
- element.setAttribute(name, value === true ? "" : String(value));
7600
- }
7601
7704
  element.setAttribute("component", "ui-list");
7602
7705
  } else {
7603
7706
  element = document.createElement("ul");
7604
- for (const [name, value] of Object.entries(attributes)) {
7605
- if (value === null || value === void 0 || value === false) continue;
7606
- element.setAttribute(name, value === true ? "" : String(value));
7607
- }
7608
- if (!element.hasAttribute("role")) element.setAttribute("role", "list");
7707
+ element.setAttribute("role", "list");
7609
7708
  element.setAttribute("component", "ui-list");
7610
7709
  }
7611
7710
  B = acceptProps(element, D$12, S$12.n, v, componentProps, Q$2[a], html);
7612
7711
  const m1 = (d) => {
7613
7712
  return { n: (P1$10 ??= buildTemplate(T1$10)).cloneNode(true) };
7614
7713
  };
7714
+ const p1 = (r, c, d) => {};
7615
7715
  const m3 = (d) => {
7616
7716
  return { n: (P3$4 ??= buildTemplate(T3$4)).cloneNode(true) };
7617
7717
  };
7718
+ const p3 = (r, c, d) => {};
7618
7719
  const m0 = (n, d) => {
7619
7720
  n.append((P0$10 ??= buildTemplate(T0$10)).cloneNode(true));
7620
7721
  const t0 = n.firstChild;
7621
7722
  const r = {
7622
7723
  n,
7623
7724
  v0: void 0,
7624
- a0: t0,
7725
+ v1: void 0,
7726
+ a1: t0,
7625
7727
  e0: t0.nextSibling,
7626
7728
  b0: void 0,
7627
7729
  f0: void 0
@@ -7630,8 +7732,12 @@ function createUiList(options = {}, html) {
7630
7732
  return r;
7631
7733
  };
7632
7734
  const p0 = (r, c, d) => {
7735
+ if (c === -1) {
7736
+ resetForwardedAttributes(r.n, attributes, r.v0);
7737
+ r.v0 = forwardAttributes(r.n, attributes);
7738
+ }
7633
7739
  if (c & 15) {
7634
- const s0 = hostState([
7740
+ const s1 = hostState([
7635
7741
  "as",
7636
7742
  "markers",
7637
7743
  "density",
@@ -7642,12 +7748,13 @@ function createUiList(options = {}, html) {
7642
7748
  v[1],
7643
7749
  v[2]
7644
7750
  ]);
7645
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-list-state", (r.v0 = s0) === "" ? null : s0);
7751
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-list-state", (r.v1 = s1) === "" ? null : s1);
7646
7752
  }
7647
7753
  if (r.f0 === void 0) {
7648
7754
  r.f0 = 1;
7649
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
7650
- if (Array.isArray(at)) (r.z ??= []).push(() => {
7755
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
7756
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m1(d, void 0, r), p1);
7757
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
7651
7758
  at[0].l.delete(at[1]);
7652
7759
  dispose(at[1]);
7653
7760
  });
@@ -7655,7 +7762,8 @@ function createUiList(options = {}, html) {
7655
7762
  r.b0 = m1(d);
7656
7763
  at.before(r.b0.n);
7657
7764
  }
7658
- } else if (r.b0 !== void 0) r.b0;
7765
+ } else if (typeof r.f0 === "function") r.f0(c, d);
7766
+ else if (r.b0 !== void 0) r.b0;
7659
7767
  };
7660
7768
  const m2 = (n, d) => {
7661
7769
  n.append((P2$7 ??= buildTemplate(T2$7)).cloneNode(true));
@@ -7663,7 +7771,9 @@ function createUiList(options = {}, html) {
7663
7771
  const r = {
7664
7772
  n,
7665
7773
  v0: void 0,
7666
- a0: t0,
7774
+ v1: void 0,
7775
+ v2: void 0,
7776
+ a1: t0,
7667
7777
  e0: t0.nextSibling,
7668
7778
  b0: void 0,
7669
7779
  f0: void 0
@@ -7672,8 +7782,14 @@ function createUiList(options = {}, html) {
7672
7782
  return r;
7673
7783
  };
7674
7784
  const p2 = (r, c, d) => {
7785
+ if (c === -1) {
7786
+ resetForwardedAttributes(r.n, attributes, r.v0);
7787
+ r.v0 = forwardAttributes(r.n, attributes);
7788
+ const s1 = toAttribute("list", "role");
7789
+ writeAttribute(r.n, "role", r.v1 = s1);
7790
+ }
7675
7791
  if (c & 15) {
7676
- const s0 = hostState([
7792
+ const s2 = hostState([
7677
7793
  "as",
7678
7794
  "markers",
7679
7795
  "density",
@@ -7684,12 +7800,13 @@ function createUiList(options = {}, html) {
7684
7800
  v[1],
7685
7801
  v[2]
7686
7802
  ]);
7687
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-list-state", (r.v0 = s0) === "" ? null : s0);
7803
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-list-state", (r.v2 = s2) === "" ? null : s2);
7688
7804
  }
7689
7805
  if (r.f0 === void 0) {
7690
7806
  r.f0 = 1;
7691
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
7692
- if (Array.isArray(at)) (r.z ??= []).push(() => {
7807
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
7808
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m3(d, void 0, r), p3);
7809
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
7693
7810
  at[0].l.delete(at[1]);
7694
7811
  dispose(at[1]);
7695
7812
  });
@@ -7697,7 +7814,8 @@ function createUiList(options = {}, html) {
7697
7814
  r.b0 = m3(d);
7698
7815
  at.before(r.b0.n);
7699
7816
  }
7700
- } else if (r.b0 !== void 0) r.b0;
7817
+ } else if (typeof r.f0 === "function") r.f0(c, d);
7818
+ else if (r.b0 !== void 0) r.b0;
7701
7819
  };
7702
7820
  const M = [m0, m2], N = [p0, p2];
7703
7821
  let R;
@@ -7708,7 +7826,7 @@ function createUiList(options = {}, html) {
7708
7826
  return;
7709
7827
  }
7710
7828
  if (c & 1) {
7711
- const t = v[0] === "ol" ? 0 : 1;
7829
+ const t = truthy(equalValue(v[0], "ol")) ? 0 : 1;
7712
7830
  if (t !== a) {
7713
7831
  dispose(R);
7714
7832
  for (const key in I.r) delete I.r[key];
@@ -7725,6 +7843,11 @@ function createUiList(options = {}, html) {
7725
7843
  };
7726
7844
  const I = { B };
7727
7845
  const J = project(I, children, slots);
7846
+ sharePlainSlots(I, J, [""]);
7847
+ I.F = {
7848
+ values: attributes,
7849
+ draw: () => p(-1)
7850
+ };
7728
7851
  attachGeneratedController(element, S$12, v, p, void 0, void 0, I);
7729
7852
  manageProps(I);
7730
7853
  return element;
@@ -8218,12 +8341,17 @@ var D$11 = {
8218
8341
  };
8219
8342
  var C$7 = (host) => activateModule(ui_menu_exports, host);
8220
8343
  function createUiMenu(options = {}, html) {
8221
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
8344
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
8345
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
8346
+ "density",
8347
+ "for",
8348
+ "icons",
8349
+ "inline",
8350
+ "open",
8351
+ "placement",
8352
+ "size"
8353
+ ].includes(name)));
8222
8354
  const element = document.createElement("div");
8223
- for (const [name, value] of Object.entries(attributes)) {
8224
- if (value === null || value === void 0 || value === false) continue;
8225
- element.setAttribute(name, value === true ? "" : String(value));
8226
- }
8227
8355
  if (!element.hasAttribute("role")) element.setAttribute("role", "menu");
8228
8356
  if (!element.hasAttribute("aria-orientation")) element.setAttribute("aria-orientation", "vertical");
8229
8357
  element.setAttribute("component", "ui-menu");
@@ -8243,8 +8371,16 @@ function createUiMenu(options = {}, html) {
8243
8371
  return { n: (P1$9 ??= buildTemplate(T1$9)).cloneNode(true) };
8244
8372
  };
8245
8373
  const p0 = (r, c, d) => {
8374
+ if (c === -1) {
8375
+ resetForwardedAttributes(r.n, attributes, r.v0);
8376
+ r.v0 = forwardAttributes(r.n, attributes);
8377
+ const s1 = toAttribute("menu", "role");
8378
+ writeAttribute(r.n, "role", r.v1 = s1);
8379
+ const s2 = toAttribute("vertical", "aria-orientation");
8380
+ writeAttribute(r.n, "aria-orientation", r.v2 = s2);
8381
+ }
8246
8382
  if (c & 155) {
8247
- const s0 = hostState([
8383
+ const s3 = hostState([
8248
8384
  "density",
8249
8385
  "size",
8250
8386
  "icons",
@@ -8257,11 +8393,11 @@ function createUiMenu(options = {}, html) {
8257
8393
  v[0],
8258
8394
  v[4]
8259
8395
  ]);
8260
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-menu-state", (r.v0 = s0) === "" ? null : s0);
8396
+ if (s3 !== r.v3) writeAttribute(r.n, "data-ui-menu-state", (r.v3 = s3) === "" ? null : s3);
8261
8397
  }
8262
8398
  if (r.f0 === void 0) {
8263
8399
  r.f0 = 1;
8264
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
8400
+ const at = fillSlot(r.a1, r.e0, "", J, false, void 0, d);
8265
8401
  if (Array.isArray(at)) (r.z ??= []).push(() => {
8266
8402
  at[0].l.delete(at[1]);
8267
8403
  dispose(at[1]);
@@ -8276,7 +8412,10 @@ function createUiMenu(options = {}, html) {
8276
8412
  const R = {
8277
8413
  n: element,
8278
8414
  v0: void 0,
8279
- a0: t0,
8415
+ v1: void 0,
8416
+ v2: void 0,
8417
+ v3: void 0,
8418
+ a1: t0,
8280
8419
  e0: t0.nextSibling,
8281
8420
  b0: void 0,
8282
8421
  f0: void 0
@@ -8284,6 +8423,10 @@ function createUiMenu(options = {}, html) {
8284
8423
  const I = { B };
8285
8424
  const J = project(I, children, slots);
8286
8425
  I.R = /* @__PURE__ */ new Set();
8426
+ I.F = {
8427
+ values: attributes,
8428
+ draw: () => ((c, d) => p0(R, c, d))(-1)
8429
+ };
8287
8430
  attachGeneratedController(element, S$11, v, (c, d) => {
8288
8431
  ((c, d) => p0(R, c, d))(c, d);
8289
8432
  for (const f of I.R) f(c, d);
@@ -8597,7 +8740,15 @@ var D$10 = {
8597
8740
  };
8598
8741
  var C$6 = (host) => activateModule(ui_menu_item_exports, host);
8599
8742
  function createUiMenuItem(options = {}, html) {
8600
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
8743
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
8744
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
8745
+ "checked",
8746
+ "disabled",
8747
+ "href",
8748
+ "tone",
8749
+ "type",
8750
+ "value"
8751
+ ].includes(name)));
8601
8752
  const v = [
8602
8753
  false,
8603
8754
  null,
@@ -8608,48 +8759,46 @@ function createUiMenuItem(options = {}, html) {
8608
8759
  null
8609
8760
  ];
8610
8761
  let B = acceptProps(void 0, D$10, S$10.n, v, componentProps, [], html);
8611
- let a = truthy(v[3]) && v[5] === "action" ? 0 : 1;
8762
+ let a = truthy(v[3]) && truthy(equalValue(v[5], "action")) ? 0 : 1;
8612
8763
  let element;
8613
8764
  if (a === 0) {
8614
8765
  element = document.createElement("a");
8615
- for (const [name, value] of Object.entries(attributes)) {
8616
- if (value === null || value === void 0 || value === false) continue;
8617
- element.setAttribute(name, value === true ? "" : String(value));
8618
- }
8619
- if (!element.hasAttribute("role")) element.setAttribute("role", "menuitem");
8620
- if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
8766
+ element.setAttribute("role", "menuitem");
8767
+ element.setAttribute("tabindex", "-1");
8621
8768
  element.setAttribute("component", "ui-menu-item");
8622
8769
  } else {
8623
8770
  element = document.createElement("div");
8624
- for (const [name, value] of Object.entries(attributes)) {
8625
- if (value === null || value === void 0 || value === false) continue;
8626
- element.setAttribute(name, value === true ? "" : String(value));
8627
- }
8628
- if (!element.hasAttribute("tabindex")) element.setAttribute("tabindex", "-1");
8771
+ element.setAttribute("tabindex", "-1");
8629
8772
  element.setAttribute("component", "ui-menu-item");
8630
8773
  }
8631
8774
  B = acceptProps(element, D$10, S$10.n, v, componentProps, Q$1[a], html);
8632
8775
  const m1 = (d) => {
8633
8776
  return { n: (P1$8 ??= buildTemplate(T1$8)).cloneNode(true) };
8634
8777
  };
8778
+ const p1 = (r, c, d) => {};
8635
8779
  const m2 = (d) => {
8636
8780
  return { n: (P2$6 ??= buildTemplate(T2$6)).cloneNode(true) };
8637
8781
  };
8782
+ const p2 = (r, c, d) => {};
8638
8783
  const m3 = (d) => {
8639
8784
  return { n: (P3$3 ??= buildTemplate(T3$3)).cloneNode(true) };
8640
8785
  };
8786
+ const p3 = (r, c, d) => {};
8641
8787
  const m5 = (d) => {
8642
8788
  return { n: (P5$2 ??= buildTemplate(T5$2)).cloneNode(true) };
8643
8789
  };
8644
8790
  const m6 = (d) => {
8645
8791
  return { n: (P6$2 ??= buildTemplate(T6$2)).cloneNode(true) };
8646
8792
  };
8793
+ const p6 = (r, c, d) => {};
8647
8794
  const m7 = (d) => {
8648
8795
  return { n: (P7$2 ??= buildTemplate(T7$2)).cloneNode(true) };
8649
8796
  };
8797
+ const p7 = (r, c, d) => {};
8650
8798
  const m8 = (d) => {
8651
8799
  return { n: (P8$2 ??= buildTemplate(T8$2)).cloneNode(true) };
8652
8800
  };
8801
+ const p8 = (r, c, d) => {};
8653
8802
  const m0 = (n, d) => {
8654
8803
  n.append((P0$8 ??= buildTemplate(T0$8)).cloneNode(true));
8655
8804
  const t0 = n.firstChild.nextSibling;
@@ -8663,6 +8812,10 @@ function createUiMenuItem(options = {}, html) {
8663
8812
  v1: void 0,
8664
8813
  v2: void 0,
8665
8814
  v3: void 0,
8815
+ v4: void 0,
8816
+ v5: void 0,
8817
+ g5: NONCONFORMING,
8818
+ v6: void 0,
8666
8819
  a1: t1,
8667
8820
  e0: t1.nextSibling,
8668
8821
  b0: void 0,
@@ -8680,34 +8833,38 @@ function createUiMenuItem(options = {}, html) {
8680
8833
  return r;
8681
8834
  };
8682
8835
  const p0 = (r, c, d) => {
8683
- if (c & 4) {
8684
- const x0 = v[2];
8685
- const s0 = toAttribute(x0, "aria-disabled");
8686
- if (s0 !== r.v0) writeAttribute(r.n, "aria-disabled", r.v0 = s0);
8687
- }
8688
- if (c & 64) {
8689
- const x1 = v[6];
8690
- const s1 = toAttribute(x1, "data-value");
8691
- if (s1 !== r.v1) writeAttribute(r.n, "data-value", r.v1 = s1);
8692
- }
8693
- if (c & 1073741836) {
8694
- const x2 = readIndex({
8836
+ if (c & 1073741900) {
8837
+ resetForwardedAttributes(r.n, attributes, r.v0);
8838
+ r.v0 = forwardAttributes(r.n, attributes);
8839
+ const s1 = toAttribute("menuitem", "role");
8840
+ writeAttribute(r.n, "role", r.v1 = s1);
8841
+ const s2 = toAttribute("-1", "tabindex");
8842
+ writeAttribute(r.n, "tabindex", r.v2 = s2);
8843
+ const x2 = v[2];
8844
+ const s3 = toAttribute(x2, "aria-disabled");
8845
+ writeAttribute(r.n, "aria-disabled", r.v3 = s3);
8846
+ const x3 = v[6];
8847
+ const s4 = toAttribute(x3, "data-value");
8848
+ writeAttribute(r.n, "data-value", r.v4 = s4);
8849
+ const x4 = readIndex({
8695
8850
  "true": null,
8696
8851
  "false": v[3]
8697
8852
  }, textCall("concat", [v[2]]));
8698
- if (x2 !== NONCONFORMING) {
8699
- const s2 = toAttribute(x2, "href");
8700
- if (s2 !== r.v2) writeUrlAttribute(r.n, "href", r.v2 = s2);
8853
+ if (x4 !== NONCONFORMING) r.g5 = x4;
8854
+ if (r.g5 !== NONCONFORMING) {
8855
+ const s5 = toAttribute(r.g5, "href");
8856
+ writeUrlAttribute(r.n, "href", r.v5 = s5);
8701
8857
  }
8702
8858
  }
8703
8859
  if (c & 48) {
8704
- const s3 = hostState(["tone", "type"], [v[4], v[5]]);
8705
- if (s3 !== r.v3) writeAttribute(r.n, "data-ui-menu-item-state", (r.v3 = s3) === "" ? null : s3);
8860
+ const s6 = hostState(["tone", "type"], [v[4], v[5]]);
8861
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-menu-item-state", (r.v6 = s6) === "" ? null : s6);
8706
8862
  }
8707
8863
  if (r.f0 === void 0) {
8708
8864
  r.f0 = 1;
8709
- const at = fillSlot(r.a1, r.e0, "icon", J, false, void 0, d);
8710
- if (Array.isArray(at)) (r.z ??= []).push(() => {
8865
+ const at = initializeSlot(r.a1, r.e0, "icon", J, false, void 0, d);
8866
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m1(d, void 0, r), p1);
8867
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
8711
8868
  at[0].l.delete(at[1]);
8712
8869
  dispose(at[1]);
8713
8870
  });
@@ -8715,11 +8872,13 @@ function createUiMenuItem(options = {}, html) {
8715
8872
  r.b0 = m1(d);
8716
8873
  at.before(r.b0.n);
8717
8874
  }
8718
- } else if (r.b0 !== void 0) r.b0;
8875
+ } else if (typeof r.f0 === "function") r.f0(c, d);
8876
+ else if (r.b0 !== void 0) r.b0;
8719
8877
  if (r.f1 === void 0) {
8720
8878
  r.f1 = 1;
8721
- const at = fillSlot(r.a2, r.e1, "", J, false, void 0, d);
8722
- if (Array.isArray(at)) (r.z ??= []).push(() => {
8879
+ const at = initializeSlot(r.a2, r.e1, "", J, false, void 0, d);
8880
+ if (typeof at === "function") r.f1 = at(r, (d, at) => m2(d, void 0, r), p2);
8881
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
8723
8882
  at[0].l.delete(at[1]);
8724
8883
  dispose(at[1]);
8725
8884
  });
@@ -8727,11 +8886,13 @@ function createUiMenuItem(options = {}, html) {
8727
8886
  r.b1 = m2(d);
8728
8887
  at.before(r.b1.n);
8729
8888
  }
8730
- } else if (r.b1 !== void 0) r.b1;
8889
+ } else if (typeof r.f1 === "function") r.f1(c, d);
8890
+ else if (r.b1 !== void 0) r.b1;
8731
8891
  if (r.f2 === void 0) {
8732
8892
  r.f2 = 1;
8733
- const at = fillSlot(r.a3, r.e2, "shortcut", J, false, void 0, d);
8734
- if (Array.isArray(at)) (r.z ??= []).push(() => {
8893
+ const at = initializeSlot(r.a3, r.e2, "shortcut", J, false, void 0, d);
8894
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m3(d, void 0, r), p3);
8895
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
8735
8896
  at[0].l.delete(at[1]);
8736
8897
  dispose(at[1]);
8737
8898
  });
@@ -8739,7 +8900,8 @@ function createUiMenuItem(options = {}, html) {
8739
8900
  r.b2 = m3(d);
8740
8901
  at.before(r.b2.n);
8741
8902
  }
8742
- } else if (r.b2 !== void 0) r.b2;
8903
+ } else if (typeof r.f2 === "function") r.f2(c, d);
8904
+ else if (r.b2 !== void 0) r.b2;
8743
8905
  };
8744
8906
  const m4 = (n, d) => {
8745
8907
  n.append((P4$3 ??= buildTemplate(T4$3)).cloneNode(true));
@@ -8757,6 +8919,8 @@ function createUiMenuItem(options = {}, html) {
8757
8919
  v2: void 0,
8758
8920
  v3: void 0,
8759
8921
  v4: void 0,
8922
+ v5: void 0,
8923
+ v6: void 0,
8760
8924
  a1: t1,
8761
8925
  e0: t1.nextSibling,
8762
8926
  b0: void 0,
@@ -8777,39 +8941,37 @@ function createUiMenuItem(options = {}, html) {
8777
8941
  return r;
8778
8942
  };
8779
8943
  const p4 = (r, c, d) => {
8780
- if (c & 1073741856) {
8944
+ if (c & 1073741925) {
8945
+ resetForwardedAttributes(r.n, attributes, r.v0);
8946
+ r.v0 = forwardAttributes(r.n, attributes);
8781
8947
  const x0 = readIndex({
8782
8948
  "action": "menuitem",
8783
8949
  "checkbox": "menuitemcheckbox",
8784
8950
  "radio": "menuitemradio"
8785
8951
  }, v[5]);
8786
- const s0 = toAttribute(x0, "role");
8787
- if (s0 !== r.v0) writeAttribute(r.n, "role", r.v0 = s0);
8788
- }
8789
- if (c & 1073741857) {
8952
+ const s1 = toAttribute(x0, "role");
8953
+ writeAttribute(r.n, "role", r.v1 = s1);
8790
8954
  const x1 = readIndex({
8791
8955
  "action": null,
8792
8956
  "checkbox": v[0],
8793
8957
  "radio": v[0]
8794
8958
  }, v[5]);
8795
- const s1 = toAttribute(x1, "aria-checked");
8796
- if (s1 !== r.v1) writeAttribute(r.n, "aria-checked", r.v1 = s1);
8797
- }
8798
- if (c & 4) {
8799
- const x2 = v[2];
8800
- const s2 = toAttribute(x2, "aria-disabled");
8801
- if (s2 !== r.v2) writeAttribute(r.n, "aria-disabled", r.v2 = s2);
8802
- }
8803
- if (c & 64) {
8804
- const x3 = v[6];
8805
- const s3 = toAttribute(x3, "data-value");
8806
- if (s3 !== r.v3) writeAttribute(r.n, "data-value", r.v3 = s3);
8959
+ const s2 = toAttribute(x1, "aria-checked");
8960
+ writeAttribute(r.n, "aria-checked", r.v2 = s2);
8961
+ const s3 = toAttribute("-1", "tabindex");
8962
+ writeAttribute(r.n, "tabindex", r.v3 = s3);
8963
+ const x3 = v[2];
8964
+ const s4 = toAttribute(x3, "aria-disabled");
8965
+ writeAttribute(r.n, "aria-disabled", r.v4 = s4);
8966
+ const x4 = v[6];
8967
+ const s5 = toAttribute(x4, "data-value");
8968
+ writeAttribute(r.n, "data-value", r.v5 = s5);
8807
8969
  }
8808
8970
  if (c & 48) {
8809
- const s4 = hostState(["tone", "type"], [v[4], v[5]]);
8810
- if (s4 !== r.v4) writeAttribute(r.n, "data-ui-menu-item-state", (r.v4 = s4) === "" ? null : s4);
8971
+ const s6 = hostState(["tone", "type"], [v[4], v[5]]);
8972
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-menu-item-state", (r.v6 = s6) === "" ? null : s6);
8811
8973
  }
8812
- if (c & 33 && !((v[5] === "checkbox" || v[5] === "radio") && v[0]) !== !r.b0) {
8974
+ if (c & 33 && !((truthy(equalValue(v[5], "checkbox")) || truthy(equalValue(v[5], "radio"))) && v[0]) !== !r.b0) {
8813
8975
  if (r.b0) {
8814
8976
  r.b0 = void 0;
8815
8977
  clearRegion(r.a1, r.e0);
@@ -8820,8 +8982,9 @@ function createUiMenuItem(options = {}, html) {
8820
8982
  } else if (r.b0 !== void 0) r.b0;
8821
8983
  if (r.f1 === void 0) {
8822
8984
  r.f1 = 1;
8823
- const at = fillSlot(r.a2, r.e1, "icon", J, false, void 0, d);
8824
- if (Array.isArray(at)) (r.z ??= []).push(() => {
8985
+ const at = initializeSlot(r.a2, r.e1, "icon", J, false, void 0, d);
8986
+ if (typeof at === "function") r.f1 = at(r, (d, at) => m6(d, void 0, r), p6);
8987
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
8825
8988
  at[0].l.delete(at[1]);
8826
8989
  dispose(at[1]);
8827
8990
  });
@@ -8829,11 +8992,13 @@ function createUiMenuItem(options = {}, html) {
8829
8992
  r.b1 = m6(d);
8830
8993
  at.before(r.b1.n);
8831
8994
  }
8832
- } else if (r.b1 !== void 0) r.b1;
8995
+ } else if (typeof r.f1 === "function") r.f1(c, d);
8996
+ else if (r.b1 !== void 0) r.b1;
8833
8997
  if (r.f2 === void 0) {
8834
8998
  r.f2 = 1;
8835
- const at = fillSlot(r.a3, r.e2, "", J, false, void 0, d);
8836
- if (Array.isArray(at)) (r.z ??= []).push(() => {
8999
+ const at = initializeSlot(r.a3, r.e2, "", J, false, void 0, d);
9000
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m7(d, void 0, r), p7);
9001
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
8837
9002
  at[0].l.delete(at[1]);
8838
9003
  dispose(at[1]);
8839
9004
  });
@@ -8841,11 +9006,13 @@ function createUiMenuItem(options = {}, html) {
8841
9006
  r.b2 = m7(d);
8842
9007
  at.before(r.b2.n);
8843
9008
  }
8844
- } else if (r.b2 !== void 0) r.b2;
9009
+ } else if (typeof r.f2 === "function") r.f2(c, d);
9010
+ else if (r.b2 !== void 0) r.b2;
8845
9011
  if (r.f3 === void 0) {
8846
9012
  r.f3 = 1;
8847
- const at = fillSlot(r.a4, r.e3, "shortcut", J, false, void 0, d);
8848
- if (Array.isArray(at)) (r.z ??= []).push(() => {
9013
+ const at = initializeSlot(r.a4, r.e3, "shortcut", J, false, void 0, d);
9014
+ if (typeof at === "function") r.f3 = at(r, (d, at) => m8(d, void 0, r), p8);
9015
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
8849
9016
  at[0].l.delete(at[1]);
8850
9017
  dispose(at[1]);
8851
9018
  });
@@ -8853,7 +9020,8 @@ function createUiMenuItem(options = {}, html) {
8853
9020
  r.b3 = m8(d);
8854
9021
  at.before(r.b3.n);
8855
9022
  }
8856
- } else if (r.b3 !== void 0) r.b3;
9023
+ } else if (typeof r.f3 === "function") r.f3(c, d);
9024
+ else if (r.b3 !== void 0) r.b3;
8857
9025
  };
8858
9026
  const M = [m0, m4], N = [p0, p4];
8859
9027
  let R;
@@ -8864,7 +9032,7 @@ function createUiMenuItem(options = {}, html) {
8864
9032
  return;
8865
9033
  }
8866
9034
  if (c & 40) {
8867
- const t = truthy(v[3]) && v[5] === "action" ? 0 : 1;
9035
+ const t = truthy(v[3]) && truthy(equalValue(v[5], "action")) ? 0 : 1;
8868
9036
  if (t !== a) {
8869
9037
  dispose(R);
8870
9038
  for (const key in I.r) delete I.r[key];
@@ -8881,7 +9049,16 @@ function createUiMenuItem(options = {}, html) {
8881
9049
  };
8882
9050
  const I = { B };
8883
9051
  const J = project(I, children, slots);
9052
+ sharePlainSlots(I, J, [
9053
+ "icon",
9054
+ "",
9055
+ "shortcut"
9056
+ ]);
8884
9057
  I.R = /* @__PURE__ */ new Set();
9058
+ I.F = {
9059
+ values: attributes,
9060
+ draw: () => p(-1)
9061
+ };
8885
9062
  attachGeneratedController(element, S$10, v, (c, d) => {
8886
9063
  p(c, d);
8887
9064
  for (const f of I.R) f(c, d);
@@ -9185,12 +9362,16 @@ var D$9 = {
9185
9362
  };
9186
9363
  var C$5 = (host) => activateModule(ui_popover_exports, host);
9187
9364
  function createUiPopover(options = {}, html) {
9188
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9365
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
9366
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
9367
+ "bare",
9368
+ "for",
9369
+ "open",
9370
+ "placement",
9371
+ "size",
9372
+ "trigger"
9373
+ ].includes(name)));
9189
9374
  const element = document.createElement("span");
9190
- for (const [name, value] of Object.entries(attributes)) {
9191
- if (value === null || value === void 0 || value === false) continue;
9192
- element.setAttribute(name, value === true ? "" : String(value));
9193
- }
9194
9375
  element.setAttribute("component", "ui-popover");
9195
9376
  element.append((P0$7 ??= buildTemplate(T0$7)).cloneNode(true));
9196
9377
  const v = [
@@ -9207,8 +9388,12 @@ function createUiPopover(options = {}, html) {
9207
9388
  return { n: (P1$7 ??= buildTemplate(T1$7)).cloneNode(true) };
9208
9389
  };
9209
9390
  const p0 = (r, c, d) => {
9391
+ if (c === -1) {
9392
+ resetForwardedAttributes(r.n, attributes, r.v0);
9393
+ r.v0 = forwardAttributes(r.n, attributes);
9394
+ }
9210
9395
  if (c & 35) {
9211
- const s0 = hostState([
9396
+ const s1 = hostState([
9212
9397
  "bare",
9213
9398
  "internalOpen",
9214
9399
  "size"
@@ -9217,11 +9402,11 @@ function createUiPopover(options = {}, html) {
9217
9402
  v[0],
9218
9403
  v[5]
9219
9404
  ]);
9220
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-popover-state", (r.v0 = s0) === "" ? null : s0);
9405
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-popover-state", (r.v1 = s1) === "" ? null : s1);
9221
9406
  }
9222
9407
  if (r.f0 === void 0) {
9223
9408
  r.f0 = 1;
9224
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
9409
+ const at = fillSlot(r.a1, r.e0, "", J, false, void 0, d);
9225
9410
  if (Array.isArray(at)) (r.z ??= []).push(() => {
9226
9411
  at[0].l.delete(at[1]);
9227
9412
  dispose(at[1]);
@@ -9236,7 +9421,8 @@ function createUiPopover(options = {}, html) {
9236
9421
  const R = {
9237
9422
  n: element,
9238
9423
  v0: void 0,
9239
- a0: t0,
9424
+ v1: void 0,
9425
+ a1: t0,
9240
9426
  e0: t0.nextSibling,
9241
9427
  b0: void 0,
9242
9428
  f0: void 0
@@ -9244,6 +9430,10 @@ function createUiPopover(options = {}, html) {
9244
9430
  const I = { B };
9245
9431
  const J = project(I, children, slots);
9246
9432
  I.R = /* @__PURE__ */ new Set();
9433
+ I.F = {
9434
+ values: attributes,
9435
+ draw: () => ((c, d) => p0(R, c, d))(-1)
9436
+ };
9247
9437
  attachGeneratedController(element, S$9, v, (c, d) => {
9248
9438
  ((c, d) => p0(R, c, d))(c, d);
9249
9439
  for (const f of I.R) f(c, d);
@@ -9338,12 +9528,15 @@ var D$8 = {
9338
9528
  }
9339
9529
  };
9340
9530
  function createUiStack(options = {}, html) {
9341
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9531
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
9532
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
9533
+ "align",
9534
+ "fill",
9535
+ "gap",
9536
+ "height",
9537
+ "justify"
9538
+ ].includes(name)));
9342
9539
  const element = document.createElement("div");
9343
- for (const [name, value] of Object.entries(attributes)) {
9344
- if (value === null || value === void 0 || value === false) continue;
9345
- element.setAttribute(name, value === true ? "" : String(value));
9346
- }
9347
9540
  element.setAttribute("component", "ui-stack");
9348
9541
  element.append((P0$6 ??= buildTemplate(T0$6)).cloneNode(true));
9349
9542
  const v = [
@@ -9359,12 +9552,14 @@ function createUiStack(options = {}, html) {
9359
9552
  };
9360
9553
  const p0 = (r, c, d) => {
9361
9554
  if (c & 8) {
9555
+ resetForwardedAttributes(r.n, attributes, r.v0);
9556
+ r.v0 = forwardAttributes(r.n, attributes);
9362
9557
  const x0 = v[3];
9363
- const s0 = toText(x0);
9364
- if (s0 !== r.v0) r.n.style.setProperty("--_ui-stack-height", r.v0 = s0);
9558
+ const s1 = toText(x0);
9559
+ r.n.style.setProperty("--_ui-stack-height", r.v1 = s1);
9365
9560
  }
9366
9561
  if (c & 31) {
9367
- const s1 = hostState([
9562
+ const s2 = hostState([
9368
9563
  "fill",
9369
9564
  "height",
9370
9565
  "gap",
@@ -9377,7 +9572,7 @@ function createUiStack(options = {}, html) {
9377
9572
  v[0],
9378
9573
  v[4]
9379
9574
  ]);
9380
- if (s1 !== r.v1) writeAttribute(r.n, "data-ui-stack-state", (r.v1 = s1) === "" ? null : s1);
9575
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-stack-state", (r.v2 = s2) === "" ? null : s2);
9381
9576
  }
9382
9577
  if (r.f0 === void 0) {
9383
9578
  r.f0 = 1;
@@ -9397,6 +9592,7 @@ function createUiStack(options = {}, html) {
9397
9592
  n: element,
9398
9593
  v0: void 0,
9399
9594
  v1: void 0,
9595
+ v2: void 0,
9400
9596
  a1: t0,
9401
9597
  e0: t0.nextSibling,
9402
9598
  b0: void 0,
@@ -9404,6 +9600,10 @@ function createUiStack(options = {}, html) {
9404
9600
  };
9405
9601
  const I = { B };
9406
9602
  const J = project(I, children, slots);
9603
+ I.F = {
9604
+ values: attributes,
9605
+ draw: () => ((c, d) => p0(R, c, d))(-1)
9606
+ };
9407
9607
  attachGeneratedController(element, S$8, v, ((c, d) => p0(R, c, d)), void 0, void 0, I);
9408
9608
  manageProps(I);
9409
9609
  return element;
@@ -9933,7 +10133,20 @@ var D$7 = {
9933
10133
  }
9934
10134
  };
9935
10135
  function createUiText(options = {}, html) {
9936
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10136
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
10137
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
10138
+ "align",
10139
+ "as",
10140
+ "font",
10141
+ "grow",
10142
+ "size",
10143
+ "tone",
10144
+ "trim",
10145
+ "truncate",
10146
+ "variant",
10147
+ "weight",
10148
+ "wrap"
10149
+ ].includes(name)));
9937
10150
  const v = [
9938
10151
  null,
9939
10152
  null,
@@ -9948,137 +10161,102 @@ function createUiText(options = {}, html) {
9948
10161
  null
9949
10162
  ];
9950
10163
  let B = acceptProps(void 0, D$7, S$7.n, v, componentProps, [], html);
9951
- let a = v[1] === "span" ? 0 : v[1] === "div" ? 1 : v[1] === "small" ? 2 : v[1] === "strong" ? 3 : v[1] === "label" ? 4 : v[1] === "h1" ? 5 : v[1] === "h2" ? 6 : v[1] === "h3" ? 7 : v[1] === "h4" ? 8 : v[1] === "h5" ? 9 : v[1] === "h6" ? 10 : 11;
10164
+ let a = truthy(equalValue(v[1], "span")) ? 0 : truthy(equalValue(v[1], "div")) ? 1 : truthy(equalValue(v[1], "small")) ? 2 : truthy(equalValue(v[1], "strong")) ? 3 : truthy(equalValue(v[1], "label")) ? 4 : truthy(equalValue(v[1], "h1")) ? 5 : truthy(equalValue(v[1], "h2")) ? 6 : truthy(equalValue(v[1], "h3")) ? 7 : truthy(equalValue(v[1], "h4")) ? 8 : truthy(equalValue(v[1], "h5")) ? 9 : truthy(equalValue(v[1], "h6")) ? 10 : 11;
9952
10165
  let element;
9953
10166
  if (a === 0) {
9954
10167
  element = document.createElement("span");
9955
- for (const [name, value] of Object.entries(attributes)) {
9956
- if (value === null || value === void 0 || value === false) continue;
9957
- element.setAttribute(name, value === true ? "" : String(value));
9958
- }
9959
10168
  element.setAttribute("component", "ui-text");
9960
10169
  } else if (a === 1) {
9961
10170
  element = document.createElement("div");
9962
- for (const [name, value] of Object.entries(attributes)) {
9963
- if (value === null || value === void 0 || value === false) continue;
9964
- element.setAttribute(name, value === true ? "" : String(value));
9965
- }
9966
10171
  element.setAttribute("component", "ui-text");
9967
10172
  } else if (a === 2) {
9968
10173
  element = document.createElement("small");
9969
- for (const [name, value] of Object.entries(attributes)) {
9970
- if (value === null || value === void 0 || value === false) continue;
9971
- element.setAttribute(name, value === true ? "" : String(value));
9972
- }
9973
10174
  element.setAttribute("component", "ui-text");
9974
10175
  } else if (a === 3) {
9975
10176
  element = document.createElement("strong");
9976
- for (const [name, value] of Object.entries(attributes)) {
9977
- if (value === null || value === void 0 || value === false) continue;
9978
- element.setAttribute(name, value === true ? "" : String(value));
9979
- }
9980
10177
  element.setAttribute("component", "ui-text");
9981
10178
  } else if (a === 4) {
9982
10179
  element = document.createElement("label");
9983
- for (const [name, value] of Object.entries(attributes)) {
9984
- if (value === null || value === void 0 || value === false) continue;
9985
- element.setAttribute(name, value === true ? "" : String(value));
9986
- }
9987
10180
  element.setAttribute("component", "ui-text");
9988
10181
  } else if (a === 5) {
9989
10182
  element = document.createElement("h1");
9990
- for (const [name, value] of Object.entries(attributes)) {
9991
- if (value === null || value === void 0 || value === false) continue;
9992
- element.setAttribute(name, value === true ? "" : String(value));
9993
- }
9994
10183
  element.setAttribute("component", "ui-text");
9995
10184
  } else if (a === 6) {
9996
10185
  element = document.createElement("h2");
9997
- for (const [name, value] of Object.entries(attributes)) {
9998
- if (value === null || value === void 0 || value === false) continue;
9999
- element.setAttribute(name, value === true ? "" : String(value));
10000
- }
10001
10186
  element.setAttribute("component", "ui-text");
10002
10187
  } else if (a === 7) {
10003
10188
  element = document.createElement("h3");
10004
- for (const [name, value] of Object.entries(attributes)) {
10005
- if (value === null || value === void 0 || value === false) continue;
10006
- element.setAttribute(name, value === true ? "" : String(value));
10007
- }
10008
10189
  element.setAttribute("component", "ui-text");
10009
10190
  } else if (a === 8) {
10010
10191
  element = document.createElement("h4");
10011
- for (const [name, value] of Object.entries(attributes)) {
10012
- if (value === null || value === void 0 || value === false) continue;
10013
- element.setAttribute(name, value === true ? "" : String(value));
10014
- }
10015
10192
  element.setAttribute("component", "ui-text");
10016
10193
  } else if (a === 9) {
10017
10194
  element = document.createElement("h5");
10018
- for (const [name, value] of Object.entries(attributes)) {
10019
- if (value === null || value === void 0 || value === false) continue;
10020
- element.setAttribute(name, value === true ? "" : String(value));
10021
- }
10022
10195
  element.setAttribute("component", "ui-text");
10023
10196
  } else if (a === 10) {
10024
10197
  element = document.createElement("h6");
10025
- for (const [name, value] of Object.entries(attributes)) {
10026
- if (value === null || value === void 0 || value === false) continue;
10027
- element.setAttribute(name, value === true ? "" : String(value));
10028
- }
10029
10198
  element.setAttribute("component", "ui-text");
10030
10199
  } else {
10031
10200
  element = document.createElement("p");
10032
- for (const [name, value] of Object.entries(attributes)) {
10033
- if (value === null || value === void 0 || value === false) continue;
10034
- element.setAttribute(name, value === true ? "" : String(value));
10035
- }
10036
10201
  element.setAttribute("component", "ui-text");
10037
10202
  }
10038
10203
  B = acceptProps(element, D$7, S$7.n, v, componentProps, Q[a], html);
10039
10204
  const m1 = (d) => {
10040
10205
  return { n: (P1$5 ??= buildTemplate(T1$5)).cloneNode(true) };
10041
10206
  };
10207
+ const p1 = (r, c, d) => {};
10042
10208
  const m3 = (d) => {
10043
10209
  return { n: (P3$2 ??= buildTemplate(T3$2)).cloneNode(true) };
10044
10210
  };
10211
+ const p3 = (r, c, d) => {};
10045
10212
  const m5 = (d) => {
10046
10213
  return { n: (P5$1 ??= buildTemplate(T5$1)).cloneNode(true) };
10047
10214
  };
10215
+ const p5 = (r, c, d) => {};
10048
10216
  const m7 = (d) => {
10049
10217
  return { n: (P7$1 ??= buildTemplate(T7$1)).cloneNode(true) };
10050
10218
  };
10219
+ const p7 = (r, c, d) => {};
10051
10220
  const m9 = (d) => {
10052
10221
  return { n: (P9$1 ??= buildTemplate(T9$1)).cloneNode(true) };
10053
10222
  };
10223
+ const p9 = (r, c, d) => {};
10054
10224
  const m11 = (d) => {
10055
10225
  return { n: (P11 ??= buildTemplate(T11)).cloneNode(true) };
10056
10226
  };
10227
+ const p11 = (r, c, d) => {};
10057
10228
  const m13 = (d) => {
10058
10229
  return { n: (P13 ??= buildTemplate(T13)).cloneNode(true) };
10059
10230
  };
10231
+ const p13 = (r, c, d) => {};
10060
10232
  const m15 = (d) => {
10061
10233
  return { n: (P15 ??= buildTemplate(T15)).cloneNode(true) };
10062
10234
  };
10235
+ const p15 = (r, c, d) => {};
10063
10236
  const m17 = (d) => {
10064
10237
  return { n: (P17 ??= buildTemplate(T17)).cloneNode(true) };
10065
10238
  };
10239
+ const p17 = (r, c, d) => {};
10066
10240
  const m19 = (d) => {
10067
10241
  return { n: (P19 ??= buildTemplate(T19)).cloneNode(true) };
10068
10242
  };
10243
+ const p19 = (r, c, d) => {};
10069
10244
  const m21 = (d) => {
10070
10245
  return { n: (P21 ??= buildTemplate(T21)).cloneNode(true) };
10071
10246
  };
10247
+ const p21 = (r, c, d) => {};
10072
10248
  const m23 = (d) => {
10073
10249
  return { n: (P23 ??= buildTemplate(T23)).cloneNode(true) };
10074
10250
  };
10251
+ const p23 = (r, c, d) => {};
10075
10252
  const m0 = (n, d) => {
10076
10253
  n.append((P0$5 ??= buildTemplate(T0$5)).cloneNode(true));
10077
10254
  const t0 = n.firstChild;
10078
10255
  const r = {
10079
10256
  n,
10080
10257
  v0: void 0,
10081
- a0: t0,
10258
+ v1: void 0,
10259
+ a1: t0,
10082
10260
  e0: t0.nextSibling,
10083
10261
  b0: void 0,
10084
10262
  f0: void 0
@@ -10087,8 +10265,12 @@ function createUiText(options = {}, html) {
10087
10265
  return r;
10088
10266
  };
10089
10267
  const p0 = (r, c, d) => {
10268
+ if (c === -1) {
10269
+ resetForwardedAttributes(r.n, attributes, r.v0);
10270
+ r.v0 = forwardAttributes(r.n, attributes);
10271
+ }
10090
10272
  if (c & 2045) {
10091
- const s0 = hostState([
10273
+ const s1 = hostState([
10092
10274
  "grow",
10093
10275
  "size",
10094
10276
  "trim",
@@ -10111,12 +10293,13 @@ function createUiText(options = {}, html) {
10111
10293
  v[2],
10112
10294
  v[10]
10113
10295
  ]);
10114
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10296
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10115
10297
  }
10116
10298
  if (r.f0 === void 0) {
10117
10299
  r.f0 = 1;
10118
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10119
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10300
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10301
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m1(d, void 0, r), p1);
10302
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10120
10303
  at[0].l.delete(at[1]);
10121
10304
  dispose(at[1]);
10122
10305
  });
@@ -10124,7 +10307,8 @@ function createUiText(options = {}, html) {
10124
10307
  r.b0 = m1(d);
10125
10308
  at.before(r.b0.n);
10126
10309
  }
10127
- } else if (r.b0 !== void 0) r.b0;
10310
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10311
+ else if (r.b0 !== void 0) r.b0;
10128
10312
  };
10129
10313
  const m2 = (n, d) => {
10130
10314
  n.append((P2$5 ??= buildTemplate(T2$5)).cloneNode(true));
@@ -10132,7 +10316,8 @@ function createUiText(options = {}, html) {
10132
10316
  const r = {
10133
10317
  n,
10134
10318
  v0: void 0,
10135
- a0: t0,
10319
+ v1: void 0,
10320
+ a1: t0,
10136
10321
  e0: t0.nextSibling,
10137
10322
  b0: void 0,
10138
10323
  f0: void 0
@@ -10141,8 +10326,12 @@ function createUiText(options = {}, html) {
10141
10326
  return r;
10142
10327
  };
10143
10328
  const p2 = (r, c, d) => {
10329
+ if (c === -1) {
10330
+ resetForwardedAttributes(r.n, attributes, r.v0);
10331
+ r.v0 = forwardAttributes(r.n, attributes);
10332
+ }
10144
10333
  if (c & 2045) {
10145
- const s0 = hostState([
10334
+ const s1 = hostState([
10146
10335
  "grow",
10147
10336
  "size",
10148
10337
  "trim",
@@ -10165,12 +10354,13 @@ function createUiText(options = {}, html) {
10165
10354
  v[2],
10166
10355
  v[10]
10167
10356
  ]);
10168
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10357
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10169
10358
  }
10170
10359
  if (r.f0 === void 0) {
10171
10360
  r.f0 = 1;
10172
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10173
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10361
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10362
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m3(d, void 0, r), p3);
10363
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10174
10364
  at[0].l.delete(at[1]);
10175
10365
  dispose(at[1]);
10176
10366
  });
@@ -10178,7 +10368,8 @@ function createUiText(options = {}, html) {
10178
10368
  r.b0 = m3(d);
10179
10369
  at.before(r.b0.n);
10180
10370
  }
10181
- } else if (r.b0 !== void 0) r.b0;
10371
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10372
+ else if (r.b0 !== void 0) r.b0;
10182
10373
  };
10183
10374
  const m4 = (n, d) => {
10184
10375
  n.append((P4$2 ??= buildTemplate(T4$2)).cloneNode(true));
@@ -10186,7 +10377,8 @@ function createUiText(options = {}, html) {
10186
10377
  const r = {
10187
10378
  n,
10188
10379
  v0: void 0,
10189
- a0: t0,
10380
+ v1: void 0,
10381
+ a1: t0,
10190
10382
  e0: t0.nextSibling,
10191
10383
  b0: void 0,
10192
10384
  f0: void 0
@@ -10195,8 +10387,12 @@ function createUiText(options = {}, html) {
10195
10387
  return r;
10196
10388
  };
10197
10389
  const p4 = (r, c, d) => {
10390
+ if (c === -1) {
10391
+ resetForwardedAttributes(r.n, attributes, r.v0);
10392
+ r.v0 = forwardAttributes(r.n, attributes);
10393
+ }
10198
10394
  if (c & 2045) {
10199
- const s0 = hostState([
10395
+ const s1 = hostState([
10200
10396
  "grow",
10201
10397
  "size",
10202
10398
  "trim",
@@ -10219,12 +10415,13 @@ function createUiText(options = {}, html) {
10219
10415
  v[2],
10220
10416
  v[10]
10221
10417
  ]);
10222
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10418
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10223
10419
  }
10224
10420
  if (r.f0 === void 0) {
10225
10421
  r.f0 = 1;
10226
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10227
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10422
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10423
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m5(d, void 0, r), p5);
10424
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10228
10425
  at[0].l.delete(at[1]);
10229
10426
  dispose(at[1]);
10230
10427
  });
@@ -10232,7 +10429,8 @@ function createUiText(options = {}, html) {
10232
10429
  r.b0 = m5(d);
10233
10430
  at.before(r.b0.n);
10234
10431
  }
10235
- } else if (r.b0 !== void 0) r.b0;
10432
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10433
+ else if (r.b0 !== void 0) r.b0;
10236
10434
  };
10237
10435
  const m6 = (n, d) => {
10238
10436
  n.append((P6$1 ??= buildTemplate(T6$1)).cloneNode(true));
@@ -10240,7 +10438,8 @@ function createUiText(options = {}, html) {
10240
10438
  const r = {
10241
10439
  n,
10242
10440
  v0: void 0,
10243
- a0: t0,
10441
+ v1: void 0,
10442
+ a1: t0,
10244
10443
  e0: t0.nextSibling,
10245
10444
  b0: void 0,
10246
10445
  f0: void 0
@@ -10249,8 +10448,12 @@ function createUiText(options = {}, html) {
10249
10448
  return r;
10250
10449
  };
10251
10450
  const p6 = (r, c, d) => {
10451
+ if (c === -1) {
10452
+ resetForwardedAttributes(r.n, attributes, r.v0);
10453
+ r.v0 = forwardAttributes(r.n, attributes);
10454
+ }
10252
10455
  if (c & 2045) {
10253
- const s0 = hostState([
10456
+ const s1 = hostState([
10254
10457
  "grow",
10255
10458
  "size",
10256
10459
  "trim",
@@ -10273,12 +10476,13 @@ function createUiText(options = {}, html) {
10273
10476
  v[2],
10274
10477
  v[10]
10275
10478
  ]);
10276
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10479
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10277
10480
  }
10278
10481
  if (r.f0 === void 0) {
10279
10482
  r.f0 = 1;
10280
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10281
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10483
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10484
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m7(d, void 0, r), p7);
10485
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10282
10486
  at[0].l.delete(at[1]);
10283
10487
  dispose(at[1]);
10284
10488
  });
@@ -10286,7 +10490,8 @@ function createUiText(options = {}, html) {
10286
10490
  r.b0 = m7(d);
10287
10491
  at.before(r.b0.n);
10288
10492
  }
10289
- } else if (r.b0 !== void 0) r.b0;
10493
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10494
+ else if (r.b0 !== void 0) r.b0;
10290
10495
  };
10291
10496
  const m8 = (n, d) => {
10292
10497
  n.append((P8$1 ??= buildTemplate(T8$1)).cloneNode(true));
@@ -10294,7 +10499,8 @@ function createUiText(options = {}, html) {
10294
10499
  const r = {
10295
10500
  n,
10296
10501
  v0: void 0,
10297
- a0: t0,
10502
+ v1: void 0,
10503
+ a1: t0,
10298
10504
  e0: t0.nextSibling,
10299
10505
  b0: void 0,
10300
10506
  f0: void 0
@@ -10303,8 +10509,12 @@ function createUiText(options = {}, html) {
10303
10509
  return r;
10304
10510
  };
10305
10511
  const p8 = (r, c, d) => {
10512
+ if (c === -1) {
10513
+ resetForwardedAttributes(r.n, attributes, r.v0);
10514
+ r.v0 = forwardAttributes(r.n, attributes);
10515
+ }
10306
10516
  if (c & 2045) {
10307
- const s0 = hostState([
10517
+ const s1 = hostState([
10308
10518
  "grow",
10309
10519
  "size",
10310
10520
  "trim",
@@ -10327,12 +10537,13 @@ function createUiText(options = {}, html) {
10327
10537
  v[2],
10328
10538
  v[10]
10329
10539
  ]);
10330
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10540
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10331
10541
  }
10332
10542
  if (r.f0 === void 0) {
10333
10543
  r.f0 = 1;
10334
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10335
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10544
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10545
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m9(d, void 0, r), p9);
10546
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10336
10547
  at[0].l.delete(at[1]);
10337
10548
  dispose(at[1]);
10338
10549
  });
@@ -10340,7 +10551,8 @@ function createUiText(options = {}, html) {
10340
10551
  r.b0 = m9(d);
10341
10552
  at.before(r.b0.n);
10342
10553
  }
10343
- } else if (r.b0 !== void 0) r.b0;
10554
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10555
+ else if (r.b0 !== void 0) r.b0;
10344
10556
  };
10345
10557
  const m10 = (n, d) => {
10346
10558
  n.append((P10 ??= buildTemplate(T10)).cloneNode(true));
@@ -10348,7 +10560,8 @@ function createUiText(options = {}, html) {
10348
10560
  const r = {
10349
10561
  n,
10350
10562
  v0: void 0,
10351
- a0: t0,
10563
+ v1: void 0,
10564
+ a1: t0,
10352
10565
  e0: t0.nextSibling,
10353
10566
  b0: void 0,
10354
10567
  f0: void 0
@@ -10357,8 +10570,12 @@ function createUiText(options = {}, html) {
10357
10570
  return r;
10358
10571
  };
10359
10572
  const p10 = (r, c, d) => {
10573
+ if (c === -1) {
10574
+ resetForwardedAttributes(r.n, attributes, r.v0);
10575
+ r.v0 = forwardAttributes(r.n, attributes);
10576
+ }
10360
10577
  if (c & 2045) {
10361
- const s0 = hostState([
10578
+ const s1 = hostState([
10362
10579
  "grow",
10363
10580
  "size",
10364
10581
  "trim",
@@ -10381,12 +10598,13 @@ function createUiText(options = {}, html) {
10381
10598
  v[2],
10382
10599
  v[10]
10383
10600
  ]);
10384
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10601
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10385
10602
  }
10386
10603
  if (r.f0 === void 0) {
10387
10604
  r.f0 = 1;
10388
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10389
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10605
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10606
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m11(d, void 0, r), p11);
10607
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10390
10608
  at[0].l.delete(at[1]);
10391
10609
  dispose(at[1]);
10392
10610
  });
@@ -10394,7 +10612,8 @@ function createUiText(options = {}, html) {
10394
10612
  r.b0 = m11(d);
10395
10613
  at.before(r.b0.n);
10396
10614
  }
10397
- } else if (r.b0 !== void 0) r.b0;
10615
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10616
+ else if (r.b0 !== void 0) r.b0;
10398
10617
  };
10399
10618
  const m12 = (n, d) => {
10400
10619
  n.append((P12 ??= buildTemplate(T12)).cloneNode(true));
@@ -10402,7 +10621,8 @@ function createUiText(options = {}, html) {
10402
10621
  const r = {
10403
10622
  n,
10404
10623
  v0: void 0,
10405
- a0: t0,
10624
+ v1: void 0,
10625
+ a1: t0,
10406
10626
  e0: t0.nextSibling,
10407
10627
  b0: void 0,
10408
10628
  f0: void 0
@@ -10411,8 +10631,12 @@ function createUiText(options = {}, html) {
10411
10631
  return r;
10412
10632
  };
10413
10633
  const p12 = (r, c, d) => {
10634
+ if (c === -1) {
10635
+ resetForwardedAttributes(r.n, attributes, r.v0);
10636
+ r.v0 = forwardAttributes(r.n, attributes);
10637
+ }
10414
10638
  if (c & 2045) {
10415
- const s0 = hostState([
10639
+ const s1 = hostState([
10416
10640
  "grow",
10417
10641
  "size",
10418
10642
  "trim",
@@ -10435,12 +10659,13 @@ function createUiText(options = {}, html) {
10435
10659
  v[2],
10436
10660
  v[10]
10437
10661
  ]);
10438
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10662
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10439
10663
  }
10440
10664
  if (r.f0 === void 0) {
10441
10665
  r.f0 = 1;
10442
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10443
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10666
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10667
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m13(d, void 0, r), p13);
10668
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10444
10669
  at[0].l.delete(at[1]);
10445
10670
  dispose(at[1]);
10446
10671
  });
@@ -10448,7 +10673,8 @@ function createUiText(options = {}, html) {
10448
10673
  r.b0 = m13(d);
10449
10674
  at.before(r.b0.n);
10450
10675
  }
10451
- } else if (r.b0 !== void 0) r.b0;
10676
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10677
+ else if (r.b0 !== void 0) r.b0;
10452
10678
  };
10453
10679
  const m14 = (n, d) => {
10454
10680
  n.append((P14 ??= buildTemplate(T14)).cloneNode(true));
@@ -10456,7 +10682,8 @@ function createUiText(options = {}, html) {
10456
10682
  const r = {
10457
10683
  n,
10458
10684
  v0: void 0,
10459
- a0: t0,
10685
+ v1: void 0,
10686
+ a1: t0,
10460
10687
  e0: t0.nextSibling,
10461
10688
  b0: void 0,
10462
10689
  f0: void 0
@@ -10465,8 +10692,12 @@ function createUiText(options = {}, html) {
10465
10692
  return r;
10466
10693
  };
10467
10694
  const p14 = (r, c, d) => {
10695
+ if (c === -1) {
10696
+ resetForwardedAttributes(r.n, attributes, r.v0);
10697
+ r.v0 = forwardAttributes(r.n, attributes);
10698
+ }
10468
10699
  if (c & 2045) {
10469
- const s0 = hostState([
10700
+ const s1 = hostState([
10470
10701
  "grow",
10471
10702
  "size",
10472
10703
  "trim",
@@ -10489,12 +10720,13 @@ function createUiText(options = {}, html) {
10489
10720
  v[2],
10490
10721
  v[10]
10491
10722
  ]);
10492
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10723
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10493
10724
  }
10494
10725
  if (r.f0 === void 0) {
10495
10726
  r.f0 = 1;
10496
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10497
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10727
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10728
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m15(d, void 0, r), p15);
10729
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10498
10730
  at[0].l.delete(at[1]);
10499
10731
  dispose(at[1]);
10500
10732
  });
@@ -10502,7 +10734,8 @@ function createUiText(options = {}, html) {
10502
10734
  r.b0 = m15(d);
10503
10735
  at.before(r.b0.n);
10504
10736
  }
10505
- } else if (r.b0 !== void 0) r.b0;
10737
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10738
+ else if (r.b0 !== void 0) r.b0;
10506
10739
  };
10507
10740
  const m16 = (n, d) => {
10508
10741
  n.append((P16 ??= buildTemplate(T16)).cloneNode(true));
@@ -10510,7 +10743,8 @@ function createUiText(options = {}, html) {
10510
10743
  const r = {
10511
10744
  n,
10512
10745
  v0: void 0,
10513
- a0: t0,
10746
+ v1: void 0,
10747
+ a1: t0,
10514
10748
  e0: t0.nextSibling,
10515
10749
  b0: void 0,
10516
10750
  f0: void 0
@@ -10519,8 +10753,12 @@ function createUiText(options = {}, html) {
10519
10753
  return r;
10520
10754
  };
10521
10755
  const p16 = (r, c, d) => {
10756
+ if (c === -1) {
10757
+ resetForwardedAttributes(r.n, attributes, r.v0);
10758
+ r.v0 = forwardAttributes(r.n, attributes);
10759
+ }
10522
10760
  if (c & 2045) {
10523
- const s0 = hostState([
10761
+ const s1 = hostState([
10524
10762
  "grow",
10525
10763
  "size",
10526
10764
  "trim",
@@ -10543,12 +10781,13 @@ function createUiText(options = {}, html) {
10543
10781
  v[2],
10544
10782
  v[10]
10545
10783
  ]);
10546
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10784
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10547
10785
  }
10548
10786
  if (r.f0 === void 0) {
10549
10787
  r.f0 = 1;
10550
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10551
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10788
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10789
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m17(d, void 0, r), p17);
10790
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10552
10791
  at[0].l.delete(at[1]);
10553
10792
  dispose(at[1]);
10554
10793
  });
@@ -10556,7 +10795,8 @@ function createUiText(options = {}, html) {
10556
10795
  r.b0 = m17(d);
10557
10796
  at.before(r.b0.n);
10558
10797
  }
10559
- } else if (r.b0 !== void 0) r.b0;
10798
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10799
+ else if (r.b0 !== void 0) r.b0;
10560
10800
  };
10561
10801
  const m18 = (n, d) => {
10562
10802
  n.append((P18 ??= buildTemplate(T18)).cloneNode(true));
@@ -10564,7 +10804,8 @@ function createUiText(options = {}, html) {
10564
10804
  const r = {
10565
10805
  n,
10566
10806
  v0: void 0,
10567
- a0: t0,
10807
+ v1: void 0,
10808
+ a1: t0,
10568
10809
  e0: t0.nextSibling,
10569
10810
  b0: void 0,
10570
10811
  f0: void 0
@@ -10573,8 +10814,12 @@ function createUiText(options = {}, html) {
10573
10814
  return r;
10574
10815
  };
10575
10816
  const p18 = (r, c, d) => {
10817
+ if (c === -1) {
10818
+ resetForwardedAttributes(r.n, attributes, r.v0);
10819
+ r.v0 = forwardAttributes(r.n, attributes);
10820
+ }
10576
10821
  if (c & 2045) {
10577
- const s0 = hostState([
10822
+ const s1 = hostState([
10578
10823
  "grow",
10579
10824
  "size",
10580
10825
  "trim",
@@ -10597,12 +10842,13 @@ function createUiText(options = {}, html) {
10597
10842
  v[2],
10598
10843
  v[10]
10599
10844
  ]);
10600
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10845
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10601
10846
  }
10602
10847
  if (r.f0 === void 0) {
10603
10848
  r.f0 = 1;
10604
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10605
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10849
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10850
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m19(d, void 0, r), p19);
10851
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10606
10852
  at[0].l.delete(at[1]);
10607
10853
  dispose(at[1]);
10608
10854
  });
@@ -10610,7 +10856,8 @@ function createUiText(options = {}, html) {
10610
10856
  r.b0 = m19(d);
10611
10857
  at.before(r.b0.n);
10612
10858
  }
10613
- } else if (r.b0 !== void 0) r.b0;
10859
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10860
+ else if (r.b0 !== void 0) r.b0;
10614
10861
  };
10615
10862
  const m20 = (n, d) => {
10616
10863
  n.append((P20 ??= buildTemplate(T20)).cloneNode(true));
@@ -10618,7 +10865,8 @@ function createUiText(options = {}, html) {
10618
10865
  const r = {
10619
10866
  n,
10620
10867
  v0: void 0,
10621
- a0: t0,
10868
+ v1: void 0,
10869
+ a1: t0,
10622
10870
  e0: t0.nextSibling,
10623
10871
  b0: void 0,
10624
10872
  f0: void 0
@@ -10627,8 +10875,12 @@ function createUiText(options = {}, html) {
10627
10875
  return r;
10628
10876
  };
10629
10877
  const p20 = (r, c, d) => {
10878
+ if (c === -1) {
10879
+ resetForwardedAttributes(r.n, attributes, r.v0);
10880
+ r.v0 = forwardAttributes(r.n, attributes);
10881
+ }
10630
10882
  if (c & 2045) {
10631
- const s0 = hostState([
10883
+ const s1 = hostState([
10632
10884
  "grow",
10633
10885
  "size",
10634
10886
  "trim",
@@ -10651,12 +10903,13 @@ function createUiText(options = {}, html) {
10651
10903
  v[2],
10652
10904
  v[10]
10653
10905
  ]);
10654
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10906
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10655
10907
  }
10656
10908
  if (r.f0 === void 0) {
10657
10909
  r.f0 = 1;
10658
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10659
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10910
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10911
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m21(d, void 0, r), p21);
10912
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10660
10913
  at[0].l.delete(at[1]);
10661
10914
  dispose(at[1]);
10662
10915
  });
@@ -10664,7 +10917,8 @@ function createUiText(options = {}, html) {
10664
10917
  r.b0 = m21(d);
10665
10918
  at.before(r.b0.n);
10666
10919
  }
10667
- } else if (r.b0 !== void 0) r.b0;
10920
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10921
+ else if (r.b0 !== void 0) r.b0;
10668
10922
  };
10669
10923
  const m22 = (n, d) => {
10670
10924
  n.append((P22 ??= buildTemplate(T22)).cloneNode(true));
@@ -10672,7 +10926,8 @@ function createUiText(options = {}, html) {
10672
10926
  const r = {
10673
10927
  n,
10674
10928
  v0: void 0,
10675
- a0: t0,
10929
+ v1: void 0,
10930
+ a1: t0,
10676
10931
  e0: t0.nextSibling,
10677
10932
  b0: void 0,
10678
10933
  f0: void 0
@@ -10681,8 +10936,12 @@ function createUiText(options = {}, html) {
10681
10936
  return r;
10682
10937
  };
10683
10938
  const p22 = (r, c, d) => {
10939
+ if (c === -1) {
10940
+ resetForwardedAttributes(r.n, attributes, r.v0);
10941
+ r.v0 = forwardAttributes(r.n, attributes);
10942
+ }
10684
10943
  if (c & 2045) {
10685
- const s0 = hostState([
10944
+ const s1 = hostState([
10686
10945
  "grow",
10687
10946
  "size",
10688
10947
  "trim",
@@ -10705,12 +10964,13 @@ function createUiText(options = {}, html) {
10705
10964
  v[2],
10706
10965
  v[10]
10707
10966
  ]);
10708
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-text-state", (r.v0 = s0) === "" ? null : s0);
10967
+ if (s1 !== r.v1) writeAttribute(r.n, "data-ui-text-state", (r.v1 = s1) === "" ? null : s1);
10709
10968
  }
10710
10969
  if (r.f0 === void 0) {
10711
10970
  r.f0 = 1;
10712
- const at = fillSlot(r.a0, r.e0, "", J, false, void 0, d);
10713
- if (Array.isArray(at)) (r.z ??= []).push(() => {
10971
+ const at = initializeSlot(r.a1, r.e0, "", J, false, void 0, d);
10972
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m23(d, void 0, r), p23);
10973
+ else if (Array.isArray(at)) (r.z ??= []).push(() => {
10714
10974
  at[0].l.delete(at[1]);
10715
10975
  dispose(at[1]);
10716
10976
  });
@@ -10718,7 +10978,8 @@ function createUiText(options = {}, html) {
10718
10978
  r.b0 = m23(d);
10719
10979
  at.before(r.b0.n);
10720
10980
  }
10721
- } else if (r.b0 !== void 0) r.b0;
10981
+ } else if (typeof r.f0 === "function") r.f0(c, d);
10982
+ else if (r.b0 !== void 0) r.b0;
10722
10983
  };
10723
10984
  const M = [
10724
10985
  m0,
@@ -10755,7 +11016,7 @@ function createUiText(options = {}, html) {
10755
11016
  return;
10756
11017
  }
10757
11018
  if (c & 2) {
10758
- const t = v[1] === "span" ? 0 : v[1] === "div" ? 1 : v[1] === "small" ? 2 : v[1] === "strong" ? 3 : v[1] === "label" ? 4 : v[1] === "h1" ? 5 : v[1] === "h2" ? 6 : v[1] === "h3" ? 7 : v[1] === "h4" ? 8 : v[1] === "h5" ? 9 : v[1] === "h6" ? 10 : 11;
11019
+ const t = truthy(equalValue(v[1], "span")) ? 0 : truthy(equalValue(v[1], "div")) ? 1 : truthy(equalValue(v[1], "small")) ? 2 : truthy(equalValue(v[1], "strong")) ? 3 : truthy(equalValue(v[1], "label")) ? 4 : truthy(equalValue(v[1], "h1")) ? 5 : truthy(equalValue(v[1], "h2")) ? 6 : truthy(equalValue(v[1], "h3")) ? 7 : truthy(equalValue(v[1], "h4")) ? 8 : truthy(equalValue(v[1], "h5")) ? 9 : truthy(equalValue(v[1], "h6")) ? 10 : 11;
10759
11020
  if (t !== a) {
10760
11021
  dispose(R);
10761
11022
  for (const key in I.r) delete I.r[key];
@@ -10772,6 +11033,11 @@ function createUiText(options = {}, html) {
10772
11033
  };
10773
11034
  const I = { B };
10774
11035
  const J = project(I, children, slots);
11036
+ sharePlainSlots(I, J, [""]);
11037
+ I.F = {
11038
+ values: attributes,
11039
+ draw: () => p(-1)
11040
+ };
10775
11041
  attachGeneratedController(element, S$7, v, p, void 0, void 0, I);
10776
11042
  manageProps(I);
10777
11043
  return element;
@@ -11223,12 +11489,17 @@ var D$6 = {
11223
11489
  };
11224
11490
  var C$4 = (host) => activateModule(ui_tooltip_exports, host);
11225
11491
  function createUiTooltip(options = {}, html) {
11226
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
11492
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
11493
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
11494
+ "for",
11495
+ "hide-delay",
11496
+ "inverse",
11497
+ "open",
11498
+ "placement",
11499
+ "show-delay",
11500
+ "trigger"
11501
+ ].includes(name)));
11227
11502
  const element = document.createElement("span");
11228
- for (const [name, value] of Object.entries(attributes)) {
11229
- if (value === null || value === void 0 || value === false) continue;
11230
- element.setAttribute(name, value === true ? "" : String(value));
11231
- }
11232
11503
  if (!element.hasAttribute("role")) element.setAttribute("role", "tooltip");
11233
11504
  element.setAttribute("component", "ui-tooltip");
11234
11505
  element.append((P0$4 ??= buildTemplate(T0$4)).cloneNode(true));
@@ -11251,13 +11522,17 @@ function createUiTooltip(options = {}, html) {
11251
11522
  };
11252
11523
  const p0 = (r, c, d) => {
11253
11524
  if (c & 1) {
11254
- const x0 = !v[0];
11255
- const s0 = toAttribute(x0, "hidden");
11256
- if (s0 !== r.v0) writeAttribute(r.n, "hidden", r.v0 = s0);
11525
+ resetForwardedAttributes(r.n, attributes, r.v0);
11526
+ r.v0 = forwardAttributes(r.n, attributes);
11527
+ const s1 = toAttribute("tooltip", "role");
11528
+ writeAttribute(r.n, "role", r.v1 = s1);
11529
+ const x1 = !v[0];
11530
+ const s2 = toAttribute(x1, "hidden");
11531
+ writeAttribute(r.n, "hidden", r.v2 = s2);
11257
11532
  }
11258
11533
  if (c & 8) {
11259
- const s1 = hostState(["inverse"], [v[3]]);
11260
- if (s1 !== r.v1) writeAttribute(r.n, "data-ui-tooltip-state", (r.v1 = s1) === "" ? null : s1);
11534
+ const s3 = hostState(["inverse"], [v[3]]);
11535
+ if (s3 !== r.v3) writeAttribute(r.n, "data-ui-tooltip-state", (r.v3 = s3) === "" ? null : s3);
11261
11536
  }
11262
11537
  if (r.f0 === void 0) {
11263
11538
  r.f0 = 1;
@@ -11291,6 +11566,8 @@ function createUiTooltip(options = {}, html) {
11291
11566
  n: element,
11292
11567
  v0: void 0,
11293
11568
  v1: void 0,
11569
+ v2: void 0,
11570
+ v3: void 0,
11294
11571
  a1: t2,
11295
11572
  e0: t2.nextSibling,
11296
11573
  b0: void 0,
@@ -11303,6 +11580,10 @@ function createUiTooltip(options = {}, html) {
11303
11580
  const I = { B };
11304
11581
  const J = project(I, children, slots);
11305
11582
  I.R = /* @__PURE__ */ new Set();
11583
+ I.F = {
11584
+ values: attributes,
11585
+ draw: () => ((c, d) => p0(R, c, d))(-1)
11586
+ };
11306
11587
  attachGeneratedController(element, S$6, v, (c, d) => {
11307
11588
  ((c, d) => p0(R, c, d))(c, d);
11308
11589
  for (const f of I.R) f(c, d);
@@ -11881,12 +12162,19 @@ var D$5 = {
11881
12162
  };
11882
12163
  var C$3 = (host) => activateModule(ui_checkbox_exports, host);
11883
12164
  function createUiCheckbox(options = {}, html) {
11884
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
12165
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
12166
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
12167
+ "checked",
12168
+ "disabled",
12169
+ "indeterminate",
12170
+ "invalid",
12171
+ "label",
12172
+ "name",
12173
+ "required",
12174
+ "size",
12175
+ "value"
12176
+ ].includes(name)));
11885
12177
  const element = document.createElement("label");
11886
- for (const [name, value] of Object.entries(attributes)) {
11887
- if (value === null || value === void 0 || value === false) continue;
11888
- element.setAttribute(name, value === true ? "" : String(value));
11889
- }
11890
12178
  element.setAttribute("component", "ui-checkbox");
11891
12179
  element.append((P0$3 ??= buildTemplate(T0$3)).cloneNode(true));
11892
12180
  const v = [
@@ -11909,54 +12197,58 @@ function createUiCheckbox(options = {}, html) {
11909
12197
  return { n: (P2$3 ??= buildTemplate(T2$3)).cloneNode(true) };
11910
12198
  };
11911
12199
  const p0 = (r, c, d) => {
12200
+ if (c === -1) {
12201
+ resetForwardedAttributes(r.n, attributes, r.v0);
12202
+ r.v0 = forwardAttributes(r.n, attributes);
12203
+ }
11912
12204
  if (c & 32) {
11913
12205
  const x0 = v[5];
11914
- const s0 = toAttribute(x0, "aria-label");
11915
- if (s0 !== r.v0) writeAttribute(r.a0, "aria-label", r.v0 = s0);
12206
+ const s1 = toAttribute(x0, "aria-label");
12207
+ if (s1 !== r.v1) writeAttribute(r.a1, "aria-label", r.v1 = s1);
11916
12208
  }
11917
12209
  if (c & 1) {
11918
12210
  const f0 = [];
11919
12211
  const x1 = rec(f0, v[0]);
11920
- if (c === -1 || c & 1 || readsChanged(r.v1, f0)) {
11921
- r.v1 = f0;
11922
- r.a0["checked"] = x1;
12212
+ if (c === -1 || c & 1 || readsChanged(r.v2, f0)) {
12213
+ r.v2 = f0;
12214
+ r.a1["checked"] = x1;
11923
12215
  }
11924
12216
  }
11925
12217
  if (c & 8) {
11926
12218
  const f1 = [];
11927
12219
  const x2 = rec(f1, v[3]);
11928
- if (c === -1 || c & 8 || readsChanged(r.v2, f1)) {
11929
- r.v2 = f1;
11930
- r.a0["indeterminate"] = x2;
12220
+ if (c === -1 || c & 8 || readsChanged(r.v3, f1)) {
12221
+ r.v3 = f1;
12222
+ r.a1["indeterminate"] = x2;
11931
12223
  }
11932
12224
  }
11933
12225
  if (c & 4) {
11934
12226
  const x3 = v[2];
11935
- const s3 = toAttribute(x3, "disabled");
11936
- if (s3 !== r.v3) writeAttribute(r.a0, "disabled", r.v3 = s3);
12227
+ const s4 = toAttribute(x3, "disabled");
12228
+ if (s4 !== r.v4) writeAttribute(r.a1, "disabled", r.v4 = s4);
11937
12229
  }
11938
12230
  if (c & 16) {
11939
12231
  const x4 = v[4];
11940
- const s4 = toAttribute(x4, "aria-invalid");
11941
- if (s4 !== r.v4) writeAttribute(r.a0, "aria-invalid", r.v4 = s4);
12232
+ const s5 = toAttribute(x4, "aria-invalid");
12233
+ if (s5 !== r.v5) writeAttribute(r.a1, "aria-invalid", r.v5 = s5);
11942
12234
  }
11943
12235
  if (c & 128) {
11944
12236
  const x5 = v[7];
11945
- const s5 = toAttribute(x5, "required");
11946
- if (s5 !== r.v5) writeAttribute(r.a0, "required", r.v5 = s5);
12237
+ const s6 = toAttribute(x5, "required");
12238
+ if (s6 !== r.v6) writeAttribute(r.a1, "required", r.v6 = s6);
11947
12239
  }
11948
12240
  if (c & 64) {
11949
12241
  const x6 = v[6];
11950
- const s6 = toAttribute(x6, "name");
11951
- if (s6 !== r.v6) writeAttribute(r.a0, "name", r.v6 = s6);
12242
+ const s7 = toAttribute(x6, "name");
12243
+ if (s7 !== r.v7) writeAttribute(r.a1, "name", r.v7 = s7);
11952
12244
  }
11953
12245
  if (c & 512) {
11954
12246
  const x7 = v[9];
11955
- const s7 = toAttribute(x7, "value");
11956
- if (s7 !== r.v7) writeAttribute(r.a0, "value", r.v7 = s7);
12247
+ const s8 = toAttribute(x7, "value");
12248
+ if (s8 !== r.v8) writeAttribute(r.a1, "value", r.v8 = s8);
11957
12249
  }
11958
12250
  if (c & 276) {
11959
- const s8 = hostState([
12251
+ const s9 = hostState([
11960
12252
  "invalid",
11961
12253
  "disabled",
11962
12254
  "size"
@@ -11965,11 +12257,11 @@ function createUiCheckbox(options = {}, html) {
11965
12257
  v[2],
11966
12258
  v[8]
11967
12259
  ]);
11968
- if (s8 !== r.v8) writeAttribute(r.n, "data-ui-checkbox-state", (r.v8 = s8) === "" ? null : s8);
12260
+ if (s9 !== r.v9) writeAttribute(r.n, "data-ui-checkbox-state", (r.v9 = s9) === "" ? null : s9);
11969
12261
  }
11970
12262
  if (r.f0 === void 0) {
11971
12263
  r.f0 = 1;
11972
- const at = fillSlot(r.a1, r.e0, "", J, false, void 0, d);
12264
+ const at = fillSlot(r.a2, r.e0, "", J, false, void 0, d);
11973
12265
  if (Array.isArray(at)) (r.z ??= []).push(() => {
11974
12266
  at[0].l.delete(at[1]);
11975
12267
  dispose(at[1]);
@@ -11981,7 +12273,7 @@ function createUiCheckbox(options = {}, html) {
11981
12273
  } else if (r.b0 !== void 0) r.b0;
11982
12274
  if (r.f1 === void 0) {
11983
12275
  r.f1 = 1;
11984
- const at = fillSlot(r.a3, r.e1, "description", J, false, void 0, d);
12276
+ const at = fillSlot(r.a4, r.e1, "description", J, false, void 0, d);
11985
12277
  if (Array.isArray(at)) (r.z ??= []).push(() => {
11986
12278
  at[0].l.delete(at[1]);
11987
12279
  dispose(at[1]);
@@ -11999,21 +12291,22 @@ function createUiCheckbox(options = {}, html) {
11999
12291
  const t5 = t4.firstChild;
12000
12292
  const R = {
12001
12293
  n: element,
12002
- a0: t0,
12003
- v0: null,
12004
- v1: void 0,
12294
+ a1: t0,
12295
+ v0: void 0,
12296
+ v1: null,
12005
12297
  v2: void 0,
12006
- v3: null,
12298
+ v3: void 0,
12007
12299
  v4: null,
12008
12300
  v5: null,
12009
12301
  v6: null,
12010
12302
  v7: null,
12011
- v8: void 0,
12012
- a1: t3,
12303
+ v8: null,
12304
+ v9: void 0,
12305
+ a2: t3,
12013
12306
  e0: t3.nextSibling,
12014
12307
  b0: void 0,
12015
12308
  f0: void 0,
12016
- a3: t5,
12309
+ a4: t5,
12017
12310
  e1: t5.nextSibling,
12018
12311
  b1: void 0,
12019
12312
  f1: void 0
@@ -12021,6 +12314,10 @@ function createUiCheckbox(options = {}, html) {
12021
12314
  const I = { B };
12022
12315
  const J = project(I, children, slots);
12023
12316
  I.R = /* @__PURE__ */ new Set();
12317
+ I.F = {
12318
+ values: attributes,
12319
+ draw: () => ((c, d) => p0(R, c, d))(-1)
12320
+ };
12024
12321
  attachGeneratedController(element, S$5, v, (c, d) => {
12025
12322
  ((c, d) => p0(R, c, d))(c, d);
12026
12323
  for (const f of I.R) f(c, d);
@@ -12480,12 +12777,19 @@ var D$4 = {
12480
12777
  };
12481
12778
  var C$2 = (host) => activateModule(ui_disclosure_exports, host);
12482
12779
  function createUiDisclosure(options = {}, html) {
12483
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
12780
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
12781
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
12782
+ "density",
12783
+ "disabled",
12784
+ "fill",
12785
+ "heading-level",
12786
+ "name",
12787
+ "open",
12788
+ "required-open",
12789
+ "summary",
12790
+ "variant"
12791
+ ].includes(name)));
12484
12792
  const element = document.createElement("div");
12485
- for (const [name, value] of Object.entries(attributes)) {
12486
- if (value === null || value === void 0 || value === false) continue;
12487
- element.setAttribute(name, value === true ? "" : String(value));
12488
- }
12489
12793
  element.setAttribute("component", "ui-disclosure");
12490
12794
  element.append((P0$2 ??= buildTemplate(T0$2)).cloneNode(true));
12491
12795
  const v = [
@@ -12531,35 +12835,39 @@ function createUiDisclosure(options = {}, html) {
12531
12835
  return { n: (P4$1 ??= buildTemplate(T4$1)).cloneNode(true) };
12532
12836
  };
12533
12837
  const p0 = (r, c, d) => {
12838
+ if (c === -1) {
12839
+ resetForwardedAttributes(r.n, attributes, r.v0);
12840
+ r.v0 = forwardAttributes(r.n, attributes);
12841
+ }
12534
12842
  if (c & 1073741828) {
12535
12843
  const x0 = v[2];
12536
- const s0 = toAttribute(x0, "role");
12537
- if (s0 !== r.v0) writeAttribute(r.a0, "role", r.v0 = s0);
12844
+ const s1 = toAttribute(x0, "role");
12845
+ if (s1 !== r.v1) writeAttribute(r.a1, "role", r.v1 = s1);
12538
12846
  }
12539
12847
  if (c & 8) {
12540
12848
  const x1 = v[3];
12541
- const s1 = toAttribute(x1, "aria-level");
12542
- if (s1 !== r.v1) writeAttribute(r.a0, "aria-level", r.v1 = s1);
12849
+ const s2 = toAttribute(x1, "aria-level");
12850
+ if (s2 !== r.v2) writeAttribute(r.a1, "aria-level", r.v2 = s2);
12543
12851
  }
12544
12852
  if (c & 2) {
12545
12853
  const x2 = v[1];
12546
- const s2 = toAttribute(x2, "aria-controls");
12547
- if (s2 !== r.v2) writeAttribute(r.a1, "aria-controls", r.v2 = s2);
12548
- const s5 = toAttribute(x2, "id");
12549
- if (s5 !== r.v5) writeAttribute(r.a5, "id", r.v5 = s5);
12854
+ const s3 = toAttribute(x2, "aria-controls");
12855
+ if (s3 !== r.v3) writeAttribute(r.a2, "aria-controls", r.v3 = s3);
12856
+ const s6 = toAttribute(x2, "id");
12857
+ if (s6 !== r.v6) writeAttribute(r.a6, "id", r.v6 = s6);
12550
12858
  }
12551
12859
  if (c & 1) {
12552
12860
  const x3 = v[0];
12553
- const s3 = toAttribute(x3, "aria-expanded");
12554
- if (s3 !== r.v3) writeAttribute(r.a1, "aria-expanded", r.v3 = s3);
12861
+ const s4 = toAttribute(x3, "aria-expanded");
12862
+ if (s4 !== r.v4) writeAttribute(r.a2, "aria-expanded", r.v4 = s4);
12555
12863
  }
12556
12864
  if (c & 32) {
12557
12865
  const x4 = v[5];
12558
- const s4 = toAttribute(x4, "disabled");
12559
- if (s4 !== r.v4) writeAttribute(r.a1, "disabled", r.v4 = s4);
12866
+ const s5 = toAttribute(x4, "disabled");
12867
+ if (s5 !== r.v5) writeAttribute(r.a2, "disabled", r.v5 = s5);
12560
12868
  }
12561
12869
  if (c & 4177) {
12562
- const s6 = hostState([
12870
+ const s7 = hostState([
12563
12871
  "density",
12564
12872
  "internalOpen",
12565
12873
  "fill",
@@ -12570,11 +12878,11 @@ function createUiDisclosure(options = {}, html) {
12570
12878
  v[6],
12571
12879
  v[12]
12572
12880
  ]);
12573
- if (s6 !== r.v6) writeAttribute(r.n, "data-ui-disclosure-state", (r.v6 = s6) === "" ? null : s6);
12881
+ if (s7 !== r.v7) writeAttribute(r.n, "data-ui-disclosure-state", (r.v7 = s7) === "" ? null : s7);
12574
12882
  }
12575
12883
  if (r.f0 === void 0) {
12576
12884
  r.f0 = 1;
12577
- const at = fillSlot(r.a2, r.e0, "leading", J, false, void 0, d);
12885
+ const at = fillSlot(r.a3, r.e0, "leading", J, false, void 0, d);
12578
12886
  if (Array.isArray(at)) (r.z ??= []).push(() => {
12579
12887
  at[0].l.delete(at[1]);
12580
12888
  dispose(at[1]);
@@ -12586,7 +12894,7 @@ function createUiDisclosure(options = {}, html) {
12586
12894
  } else if (r.b0 !== void 0) r.b0;
12587
12895
  if (r.f1 === void 0) {
12588
12896
  r.f1 = 1;
12589
- const at = fillSlot(r.a3, r.e1, "summary", J, true, void 0, d);
12897
+ const at = fillSlot(r.a4, r.e1, "summary", J, true, void 0, d, r.z ??= []);
12590
12898
  if (Array.isArray(at)) (r.z ??= []).push(() => {
12591
12899
  at[0].l.delete(at[1]);
12592
12900
  dispose(at[1]);
@@ -12598,7 +12906,7 @@ function createUiDisclosure(options = {}, html) {
12598
12906
  } else if (r.b1 !== void 0) p2(r.b1, c, d);
12599
12907
  if (r.f2 === void 0) {
12600
12908
  r.f2 = 1;
12601
- const at = fillSlot(r.a4, r.e2, "indicator", J, true, void 0, d);
12909
+ const at = fillSlot(r.a5, r.e2, "indicator", J, true, void 0, d, r.z ??= []);
12602
12910
  if (Array.isArray(at)) (r.z ??= []).push(() => {
12603
12911
  at[0].l.delete(at[1]);
12604
12912
  dispose(at[1]);
@@ -12610,7 +12918,7 @@ function createUiDisclosure(options = {}, html) {
12610
12918
  } else if (r.b2 !== void 0) r.b2;
12611
12919
  if (r.f3 === void 0) {
12612
12920
  r.f3 = 1;
12613
- const at = fillSlot(r.a6, r.e3, "", J, false, void 0, d);
12921
+ const at = fillSlot(r.a7, r.e3, "", J, false, void 0, d);
12614
12922
  if (Array.isArray(at)) (r.z ??= []).push(() => {
12615
12923
  at[0].l.delete(at[1]);
12616
12924
  dispose(at[1]);
@@ -12632,29 +12940,30 @@ function createUiDisclosure(options = {}, html) {
12632
12940
  const t8 = t7.firstChild.firstChild;
12633
12941
  const R = {
12634
12942
  n: element,
12635
- a0: t0,
12636
- a1: t1,
12637
- a5: t7,
12638
- v0: null,
12943
+ a1: t0,
12944
+ a2: t1,
12945
+ a6: t7,
12946
+ v0: void 0,
12639
12947
  v1: null,
12640
12948
  v2: null,
12641
12949
  v3: null,
12642
12950
  v4: null,
12643
12951
  v5: null,
12644
- v6: void 0,
12645
- a2: t3,
12952
+ v6: null,
12953
+ v7: void 0,
12954
+ a3: t3,
12646
12955
  e0: t3.nextSibling,
12647
12956
  b0: void 0,
12648
12957
  f0: void 0,
12649
- a3: t5,
12958
+ a4: t5,
12650
12959
  e1: t5.nextSibling,
12651
12960
  b1: void 0,
12652
12961
  f1: void 0,
12653
- a4: t6,
12962
+ a5: t6,
12654
12963
  e2: t6.nextSibling,
12655
12964
  b2: void 0,
12656
12965
  f2: void 0,
12657
- a6: t8,
12966
+ a7: t8,
12658
12967
  e3: t8.nextSibling,
12659
12968
  b3: void 0,
12660
12969
  f3: void 0
@@ -12662,6 +12971,10 @@ function createUiDisclosure(options = {}, html) {
12662
12971
  const I = { B };
12663
12972
  const J = project(I, children, slots);
12664
12973
  I.R = /* @__PURE__ */ new Set();
12974
+ I.F = {
12975
+ values: attributes,
12976
+ draw: () => ((c, d) => p0(R, c, d))(-1)
12977
+ };
12665
12978
  attachGeneratedController(element, S$4, v, (c, d) => {
12666
12979
  ((c, d) => p0(R, c, d))(c, d);
12667
12980
  for (const f of I.R) f(c, d);
@@ -12997,6 +13310,9 @@ function connect$1(host) {
12997
13310
  }
12998
13311
  //#endregion
12999
13312
  //#region vanilla/UiInput.js
13313
+ var RC0 = ["s", "string"];
13314
+ var RC1 = ["n", "number"];
13315
+ var RC2 = ["z", "null"];
13000
13316
  var S$3 = {
13001
13317
  n: [],
13002
13318
  t: [],
@@ -13224,12 +13540,18 @@ var D$3 = {
13224
13540
  };
13225
13541
  var C$1 = (host) => activateModule(ui_input_exports, host);
13226
13542
  function createUiInput(options = {}, html) {
13227
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
13543
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
13544
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
13545
+ "disabled",
13546
+ "invalid",
13547
+ "readonly",
13548
+ "required",
13549
+ "segments",
13550
+ "size",
13551
+ "type",
13552
+ "value"
13553
+ ].includes(name)));
13228
13554
  const element = document.createElement("input");
13229
- for (const [name, value] of Object.entries(attributes)) {
13230
- if (value === null || value === void 0 || value === false) continue;
13231
- element.setAttribute(name, value === true ? "" : String(value));
13232
- }
13233
13555
  element.setAttribute("component", "ui-input");
13234
13556
  const v = [
13235
13557
  null,
@@ -13243,122 +13565,34 @@ function createUiInput(options = {}, html) {
13243
13565
  ];
13244
13566
  const B = acceptProps(element, D$3, S$3.n, v, componentProps, [], html);
13245
13567
  const p0 = (r, c, d) => {
13246
- if (c & 1073741888) {
13568
+ if (c & 1073742031) {
13569
+ resetForwardedAttributes(r.n, attributes, r.v0);
13570
+ r.v0 = forwardAttributes(r.n, attributes);
13247
13571
  const x0 = v[6];
13248
- const s0 = toAttribute(x0, "type");
13249
- if (s0 !== r.v0) writeAttribute(r.n, "type", r.v0 = s0);
13250
- }
13251
- if (c & 1073742016) {
13252
- const x1 = checkSelected(S$3, v[7], v[6], [
13253
- [
13254
- "text",
13255
- "s",
13256
- "Reference `value` must satisfy string."
13257
- ],
13258
- [
13259
- "search",
13260
- "s",
13261
- "Reference `value` must satisfy string."
13262
- ],
13263
- [
13264
- "tel",
13265
- "s",
13266
- "Reference `value` must satisfy string."
13267
- ],
13268
- [
13269
- "url",
13270
- "s",
13271
- "Reference `value` must satisfy string."
13272
- ],
13273
- [
13274
- "email",
13275
- "s",
13276
- "Reference `value` must satisfy string."
13277
- ],
13278
- [
13279
- "password",
13280
- "s",
13281
- "Reference `value` must satisfy string."
13282
- ],
13283
- [
13284
- "date",
13285
- "s",
13286
- "Reference `value` must satisfy string."
13287
- ],
13288
- [
13289
- "month",
13290
- "s",
13291
- "Reference `value` must satisfy string."
13292
- ],
13293
- [
13294
- "week",
13295
- "s",
13296
- "Reference `value` must satisfy string."
13297
- ],
13298
- [
13299
- "time",
13300
- "s",
13301
- "Reference `value` must satisfy string."
13302
- ],
13303
- [
13304
- "datetime-local",
13305
- "s",
13306
- "Reference `value` must satisfy string."
13307
- ],
13308
- [
13309
- "number",
13310
- "n",
13311
- "Reference `value` must satisfy number."
13312
- ],
13313
- [
13314
- "range",
13315
- "n",
13316
- "Reference `value` must satisfy number."
13317
- ],
13318
- [
13319
- "color",
13320
- "s",
13321
- "Reference `value` must satisfy string."
13322
- ],
13323
- [
13324
- "file",
13325
- "s",
13326
- "Reference `value` must satisfy string."
13327
- ],
13328
- [
13329
- null,
13330
- "z",
13331
- "Reference `value` must satisfy null."
13332
- ]
13333
- ], "expression:$value:value") ? v[7] : NONCONFORMING;
13334
- if (x1 !== NONCONFORMING) {
13335
- const s1 = toAttribute(x1, "value");
13336
- if (s1 !== r.v1) writeAttribute(r.n, "value", r.v1 = s1);
13572
+ const s1 = toAttribute(x0, "type");
13573
+ writeAttribute(r.n, "type", r.v1 = s1);
13574
+ const x1 = checkedReferenceValue(S$3, v[7], v[6] === "text" ? RC0 : v[6] === "search" ? RC0 : v[6] === "tel" ? RC0 : v[6] === "url" ? RC0 : v[6] === "email" ? RC0 : v[6] === "password" ? RC0 : v[6] === "date" ? RC0 : v[6] === "month" ? RC0 : v[6] === "week" ? RC0 : v[6] === "time" ? RC0 : v[6] === "datetime-local" ? RC0 : v[6] === "number" ? RC1 : v[6] === "range" ? RC1 : v[6] === "color" ? RC0 : v[6] === "file" ? RC0 : RC2, "expression:$value:value", "value");
13575
+ if (x1 !== NONCONFORMING) r.g2 = x1;
13576
+ if (r.g2 !== NONCONFORMING) {
13577
+ const s2 = toAttribute(r.g2, "value");
13578
+ writeAttribute(r.n, "value", r.v2 = s2);
13337
13579
  }
13338
- }
13339
- if (c & 1) {
13340
13580
  const x2 = v[0];
13341
- const s2 = toAttribute(x2, "disabled");
13342
- if (s2 !== r.v2) writeAttribute(r.n, "disabled", r.v2 = s2);
13343
- }
13344
- if (c & 4) {
13581
+ const s3 = toAttribute(x2, "disabled");
13582
+ writeAttribute(r.n, "disabled", r.v3 = s3);
13345
13583
  const x3 = v[2];
13346
- const s3 = toAttribute(x3, "readonly");
13347
- if (s3 !== r.v3) writeAttribute(r.n, "readonly", r.v3 = s3);
13348
- }
13349
- if (c & 8) {
13584
+ const s4 = toAttribute(x3, "readonly");
13585
+ writeAttribute(r.n, "readonly", r.v4 = s4);
13350
13586
  const x4 = v[3];
13351
- const s4 = toAttribute(x4, "required");
13352
- if (s4 !== r.v4) writeAttribute(r.n, "required", r.v4 = s4);
13353
- }
13354
- if (c & 2) {
13587
+ const s5 = toAttribute(x4, "required");
13588
+ writeAttribute(r.n, "required", r.v5 = s5);
13355
13589
  const x5 = v[1];
13356
- const s5 = toAttribute(x5, "aria-invalid");
13357
- if (s5 !== r.v5) writeAttribute(r.n, "aria-invalid", r.v5 = s5);
13590
+ const s6 = toAttribute(x5, "aria-invalid");
13591
+ writeAttribute(r.n, "aria-invalid", r.v6 = s6);
13358
13592
  }
13359
13593
  if (c & 32) {
13360
- const s6 = hostState(["size"], [v[5]]);
13361
- if (s6 !== r.v6) writeAttribute(r.n, "data-ui-input-state", (r.v6 = s6) === "" ? null : s6);
13594
+ const s7 = hostState(["size"], [v[5]]);
13595
+ if (s7 !== r.v7) writeAttribute(r.n, "data-ui-input-state", (r.v7 = s7) === "" ? null : s7);
13362
13596
  }
13363
13597
  };
13364
13598
  const R = {
@@ -13366,12 +13600,18 @@ function createUiInput(options = {}, html) {
13366
13600
  v0: void 0,
13367
13601
  v1: void 0,
13368
13602
  v2: void 0,
13603
+ g2: NONCONFORMING,
13369
13604
  v3: void 0,
13370
13605
  v4: void 0,
13371
13606
  v5: void 0,
13372
- v6: void 0
13607
+ v6: void 0,
13608
+ v7: void 0
13373
13609
  };
13374
13610
  const I = { B };
13611
+ I.F = {
13612
+ values: attributes,
13613
+ draw: () => ((c, d) => p0(R, c, d))(-1)
13614
+ };
13375
13615
  attachGeneratedController(element, S$3, v, ((c, d) => p0(R, c, d)), void 0, void 0, I);
13376
13616
  manageProps(I);
13377
13617
  return element;
@@ -13619,12 +13859,14 @@ var D$2 = {
13619
13859
  }
13620
13860
  };
13621
13861
  function createUiSeparator(options = {}, html) {
13622
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
13862
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
13863
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
13864
+ "emphasis",
13865
+ "orientation",
13866
+ "selectable",
13867
+ "selected"
13868
+ ].includes(name)));
13623
13869
  const element = document.createElement("hr");
13624
- for (const [name, value] of Object.entries(attributes)) {
13625
- if (value === null || value === void 0 || value === false) continue;
13626
- element.setAttribute(name, value === true ? "" : String(value));
13627
- }
13628
13870
  element.setAttribute("component", "ui-separator");
13629
13871
  const v = [
13630
13872
  null,
@@ -13635,12 +13877,14 @@ function createUiSeparator(options = {}, html) {
13635
13877
  const B = acceptProps(element, D$2, S$2.n, v, componentProps, [], html);
13636
13878
  const p0 = (r, c, d) => {
13637
13879
  if (c & 1073741826) {
13880
+ resetForwardedAttributes(r.n, attributes, r.v0);
13881
+ r.v0 = forwardAttributes(r.n, attributes);
13638
13882
  const x0 = v[1];
13639
- const s0 = toAttribute(x0, "aria-orientation");
13640
- if (s0 !== r.v0) writeAttribute(r.n, "aria-orientation", r.v0 = s0);
13883
+ const s1 = toAttribute(x0, "aria-orientation");
13884
+ writeAttribute(r.n, "aria-orientation", r.v1 = s1);
13641
13885
  }
13642
13886
  if (c & 13) {
13643
- const s1 = hostState([
13887
+ const s2 = hostState([
13644
13888
  "emphasis",
13645
13889
  "selectable",
13646
13890
  "selected"
@@ -13649,15 +13893,20 @@ function createUiSeparator(options = {}, html) {
13649
13893
  v[2],
13650
13894
  v[3]
13651
13895
  ]);
13652
- if (s1 !== r.v1) writeAttribute(r.n, "data-ui-separator-state", (r.v1 = s1) === "" ? null : s1);
13896
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-separator-state", (r.v2 = s2) === "" ? null : s2);
13653
13897
  }
13654
13898
  };
13655
13899
  const R = {
13656
13900
  n: element,
13657
13901
  v0: void 0,
13658
- v1: void 0
13902
+ v1: void 0,
13903
+ v2: void 0
13659
13904
  };
13660
13905
  const I = { B };
13906
+ I.F = {
13907
+ values: attributes,
13908
+ draw: () => ((c, d) => p0(R, c, d))(-1)
13909
+ };
13661
13910
  attachGeneratedController(element, S$2, v, ((c, d) => p0(R, c, d)), void 0, void 0, I);
13662
13911
  manageProps(I);
13663
13912
  return element;
@@ -13968,12 +14217,9 @@ var D$1 = {
13968
14217
  }
13969
14218
  };
13970
14219
  function createUiCallout(options = {}, html) {
13971
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
14220
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
14221
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["heading", "tone"].includes(name)));
13972
14222
  const element = document.createElement("div");
13973
- for (const [name, value] of Object.entries(attributes)) {
13974
- if (value === null || value === void 0 || value === false) continue;
13975
- element.setAttribute(name, value === true ? "" : String(value));
13976
- }
13977
14223
  if (!element.hasAttribute("role")) element.setAttribute("role", "note");
13978
14224
  element.setAttribute("component", "ui-callout");
13979
14225
  element.append((P0$1 ??= buildTemplate(T0$1)).cloneNode(true));
@@ -14021,68 +14267,74 @@ function createUiCallout(options = {}, html) {
14021
14267
  return { n: (P9 ??= buildTemplate(T9)).cloneNode(true) };
14022
14268
  };
14023
14269
  const p0 = (r, c, d) => {
14270
+ if (c === -1) {
14271
+ resetForwardedAttributes(r.n, attributes, r.v0);
14272
+ r.v0 = forwardAttributes(r.n, attributes);
14273
+ const s1 = toAttribute("note", "role");
14274
+ writeAttribute(r.n, "role", r.v1 = s1);
14275
+ }
14024
14276
  if (c & 2) {
14025
- const s0 = hostState(["tone"], [v[1]]);
14026
- if (s0 !== r.v0) writeAttribute(r.n, "data-ui-callout-state", (r.v0 = s0) === "" ? null : s0);
14277
+ const s2 = hostState(["tone"], [v[1]]);
14278
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-callout-state", (r.v2 = s2) === "" ? null : s2);
14027
14279
  }
14028
- if (c & 2 && !(v[1] === "info") !== !r.b0) {
14280
+ if (c & 2 && !truthy(equalValue(v[1], "info")) !== !r.b0) {
14029
14281
  if (r.b0) {
14030
14282
  r.b0 = void 0;
14031
- clearRegion(r.a0, r.e0);
14283
+ clearRegion(r.a1, r.e0);
14032
14284
  } else {
14033
14285
  r.b0 = m1(d);
14034
14286
  r.e0.before(r.b0.n);
14035
14287
  }
14036
14288
  } else if (r.b0 !== void 0) r.b0;
14037
- if (c & 2 && !(v[1] === "neutral" || v[1] === "note") !== !r.b1) {
14289
+ if (c & 2 && !(truthy(equalValue(v[1], "neutral")) || truthy(equalValue(v[1], "note"))) !== !r.b1) {
14038
14290
  if (r.b1) {
14039
14291
  r.b1 = void 0;
14040
- clearRegion(r.a1, r.e1);
14292
+ clearRegion(r.a2, r.e1);
14041
14293
  } else {
14042
14294
  r.b1 = m2(d);
14043
14295
  r.e1.before(r.b1.n);
14044
14296
  }
14045
14297
  } else if (r.b1 !== void 0) r.b1;
14046
- if (c & 2 && !(v[1] === "tip") !== !r.b2) {
14298
+ if (c & 2 && !truthy(equalValue(v[1], "tip")) !== !r.b2) {
14047
14299
  if (r.b2) {
14048
14300
  r.b2 = void 0;
14049
- clearRegion(r.a2, r.e2);
14301
+ clearRegion(r.a3, r.e2);
14050
14302
  } else {
14051
14303
  r.b2 = m3(d);
14052
14304
  r.e2.before(r.b2.n);
14053
14305
  }
14054
14306
  } else if (r.b2 !== void 0) r.b2;
14055
- if (c & 2 && !(v[1] === "important") !== !r.b3) {
14307
+ if (c & 2 && !truthy(equalValue(v[1], "important")) !== !r.b3) {
14056
14308
  if (r.b3) {
14057
14309
  r.b3 = void 0;
14058
- clearRegion(r.a3, r.e3);
14310
+ clearRegion(r.a4, r.e3);
14059
14311
  } else {
14060
14312
  r.b3 = m4(d);
14061
14313
  r.e3.before(r.b3.n);
14062
14314
  }
14063
14315
  } else if (r.b3 !== void 0) r.b3;
14064
- if (c & 2 && !(v[1] === "warning") !== !r.b4) {
14316
+ if (c & 2 && !truthy(equalValue(v[1], "warning")) !== !r.b4) {
14065
14317
  if (r.b4) {
14066
14318
  r.b4 = void 0;
14067
- clearRegion(r.a4, r.e4);
14319
+ clearRegion(r.a5, r.e4);
14068
14320
  } else {
14069
14321
  r.b4 = m5(d);
14070
14322
  r.e4.before(r.b4.n);
14071
14323
  }
14072
14324
  } else if (r.b4 !== void 0) r.b4;
14073
- if (c & 2 && !(v[1] === "success") !== !r.b5) {
14325
+ if (c & 2 && !truthy(equalValue(v[1], "success")) !== !r.b5) {
14074
14326
  if (r.b5) {
14075
14327
  r.b5 = void 0;
14076
- clearRegion(r.a5, r.e5);
14328
+ clearRegion(r.a6, r.e5);
14077
14329
  } else {
14078
14330
  r.b5 = m6(d);
14079
14331
  r.e5.before(r.b5.n);
14080
14332
  }
14081
14333
  } else if (r.b5 !== void 0) r.b5;
14082
- if (c & 2 && !(v[1] === "danger" || v[1] === "caution") !== !r.b6) {
14334
+ if (c & 2 && !(truthy(equalValue(v[1], "danger")) || truthy(equalValue(v[1], "caution"))) !== !r.b6) {
14083
14335
  if (r.b6) {
14084
14336
  r.b6 = void 0;
14085
- clearRegion(r.a6, r.e6);
14337
+ clearRegion(r.a7, r.e6);
14086
14338
  } else {
14087
14339
  r.b6 = m7(d);
14088
14340
  r.e6.before(r.b6.n);
@@ -14091,7 +14343,7 @@ function createUiCallout(options = {}, html) {
14091
14343
  if (c & 1 && !truthy(v[0]) !== !r.b7) {
14092
14344
  if (r.b7) {
14093
14345
  r.b7 = void 0;
14094
- clearRegion(r.a7, r.e7);
14346
+ clearRegion(r.a8, r.e7);
14095
14347
  } else {
14096
14348
  r.b7 = m8(d);
14097
14349
  r.e7.before(r.b7.n);
@@ -14099,7 +14351,7 @@ function createUiCallout(options = {}, html) {
14099
14351
  } else if (r.b7 !== void 0) p8(r.b7, c, d);
14100
14352
  if (r.f8 === void 0) {
14101
14353
  r.f8 = 1;
14102
- const at = fillSlot(r.a8, r.e8, "", J, false, void 0, d);
14354
+ const at = fillSlot(r.a9, r.e8, "", J, false, void 0, d);
14103
14355
  if (Array.isArray(at)) (r.z ??= []).push(() => {
14104
14356
  at[0].l.delete(at[1]);
14105
14357
  dispose(at[1]);
@@ -14123,37 +14375,43 @@ function createUiCallout(options = {}, html) {
14123
14375
  const R = {
14124
14376
  n: element,
14125
14377
  v0: void 0,
14126
- a0: t1,
14378
+ v1: void 0,
14379
+ v2: void 0,
14380
+ a1: t1,
14127
14381
  e0: t1.nextSibling,
14128
14382
  b0: void 0,
14129
- a1: t2,
14383
+ a2: t2,
14130
14384
  e1: t2.nextSibling,
14131
14385
  b1: void 0,
14132
- a2: t3,
14386
+ a3: t3,
14133
14387
  e2: t3.nextSibling,
14134
14388
  b2: void 0,
14135
- a3: t4,
14389
+ a4: t4,
14136
14390
  e3: t4.nextSibling,
14137
14391
  b3: void 0,
14138
- a4: t5,
14392
+ a5: t5,
14139
14393
  e4: t5.nextSibling,
14140
14394
  b4: void 0,
14141
- a5: t6,
14395
+ a6: t6,
14142
14396
  e5: t6.nextSibling,
14143
14397
  b5: void 0,
14144
- a6: t7,
14398
+ a7: t7,
14145
14399
  e6: t7.nextSibling,
14146
14400
  b6: void 0,
14147
- a7: t9,
14401
+ a8: t9,
14148
14402
  e7: t9.nextSibling,
14149
14403
  b7: void 0,
14150
- a8: t10,
14404
+ a9: t10,
14151
14405
  e8: t10.nextSibling,
14152
14406
  b8: void 0,
14153
14407
  f8: void 0
14154
14408
  };
14155
14409
  const I = { B };
14156
14410
  const J = project(I, children, slots);
14411
+ I.F = {
14412
+ values: attributes,
14413
+ draw: () => ((c, d) => p0(R, c, d))(-1)
14414
+ };
14157
14415
  attachGeneratedController(element, S$1, v, ((c, d) => p0(R, c, d)), void 0, void 0, I);
14158
14416
  manageProps(I);
14159
14417
  return element;
@@ -14520,12 +14778,17 @@ var D = {
14520
14778
  };
14521
14779
  var C = (host) => activateModule(ui_image_exports, host);
14522
14780
  function createUiImage(options = {}, html) {
14523
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
14781
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
14782
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => ![
14783
+ "alt",
14784
+ "height",
14785
+ "placement",
14786
+ "resizable",
14787
+ "selected",
14788
+ "src",
14789
+ "width"
14790
+ ].includes(name)));
14524
14791
  const element = document.createElement("figure");
14525
- for (const [name, value] of Object.entries(attributes)) {
14526
- if (value === null || value === void 0 || value === false) continue;
14527
- element.setAttribute(name, value === true ? "" : String(value));
14528
- }
14529
14792
  element.setAttribute("component", "ui-image");
14530
14793
  element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
14531
14794
  const v = [
@@ -14577,18 +14840,22 @@ function createUiImage(options = {}, html) {
14577
14840
  return { n: (P2 ??= buildTemplate(T2)).cloneNode(true) };
14578
14841
  };
14579
14842
  const p0 = (r, c, d) => {
14843
+ if (c === -1) {
14844
+ resetForwardedAttributes(r.n, attributes, r.v0);
14845
+ r.v0 = forwardAttributes(r.n, attributes);
14846
+ }
14580
14847
  if (c & 24) {
14581
14848
  const x0 = !(truthy(v[4]) && truthy(v[3]));
14582
- const s0 = toAttribute(x0, "hidden");
14583
- if (s0 !== r.v0) writeAttribute(r.a2, "hidden", r.v0 = s0);
14849
+ const s1 = toAttribute(x0, "hidden");
14850
+ if (s1 !== r.v1) writeAttribute(r.a3, "hidden", r.v1 = s1);
14584
14851
  }
14585
14852
  if (c & 20) {
14586
- const s1 = hostState(["placement", "selected"], [v[2], v[4]]);
14587
- if (s1 !== r.v1) writeAttribute(r.n, "data-ui-image-state", (r.v1 = s1) === "" ? null : s1);
14853
+ const s2 = hostState(["placement", "selected"], [v[2], v[4]]);
14854
+ if (s2 !== r.v2) writeAttribute(r.n, "data-ui-image-state", (r.v2 = s2) === "" ? null : s2);
14588
14855
  }
14589
14856
  if (r.f0 === void 0) {
14590
14857
  r.f0 = 1;
14591
- const at = fillSlot(r.a1, r.e0, "media", J, true, void 0, d);
14858
+ const at = fillSlot(r.a2, r.e0, "media", J, true, void 0, d, r.z ??= []);
14592
14859
  if (Array.isArray(at)) (r.z ??= []).push(() => {
14593
14860
  at[0].l.delete(at[1]);
14594
14861
  dispose(at[1]);
@@ -14600,7 +14867,7 @@ function createUiImage(options = {}, html) {
14600
14867
  } else if (r.b0 !== void 0) p1(r.b0, c, d);
14601
14868
  if (r.f1 === void 0) {
14602
14869
  r.f1 = 1;
14603
- const at = fillSlot(r.a3, r.e1, "controls", J, false, void 0, d);
14870
+ const at = fillSlot(r.a4, r.e1, "controls", J, false, void 0, d);
14604
14871
  if (Array.isArray(at)) (r.z ??= []).push(() => {
14605
14872
  at[0].l.delete(at[1]);
14606
14873
  dispose(at[1]);
@@ -14617,20 +14884,25 @@ function createUiImage(options = {}, html) {
14617
14884
  const t3 = t2.nextSibling.nextSibling;
14618
14885
  const R = {
14619
14886
  n: element,
14620
- a2: t2,
14621
- v0: null,
14622
- v1: void 0,
14623
- a1: t1,
14887
+ a3: t2,
14888
+ v0: void 0,
14889
+ v1: null,
14890
+ v2: void 0,
14891
+ a2: t1,
14624
14892
  e0: t1.nextSibling,
14625
14893
  b0: void 0,
14626
14894
  f0: void 0,
14627
- a3: t3,
14895
+ a4: t3,
14628
14896
  e1: t3.nextSibling,
14629
14897
  b1: void 0,
14630
14898
  f1: void 0
14631
14899
  };
14632
14900
  const I = { B };
14633
14901
  const J = project(I, children, slots);
14902
+ I.F = {
14903
+ values: attributes,
14904
+ draw: () => ((c, d) => p0(R, c, d))(-1)
14905
+ };
14634
14906
  attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), void 0, void 0, I);
14635
14907
  manageProps(I);
14636
14908
  I.r["frame"] = t0;