@elmethis/solid 0.6.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/lib/index.solid.cjs +5 -5
  2. package/lib/index.solid.mjs +929 -888
  3. package/lib/style.css +1 -1
  4. package/lib-solid/components/a2ui/catalog/basic-catalog.jsx +2 -1
  5. package/lib-solid/components/a2ui/catalog/basic-catalog.jsx.map +1 -1
  6. package/lib-solid/components/a2ui/catalog/catalog.js +4 -2
  7. package/lib-solid/components/a2ui/catalog/catalog.js.map +1 -1
  8. package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx +9 -7
  9. package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx.map +1 -1
  10. package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx +3 -1
  11. package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx.map +1 -1
  12. package/lib-solid/components/a2ui/component-host.jsx +26 -18
  13. package/lib-solid/components/a2ui/component-host.jsx.map +1 -1
  14. package/lib-solid/components/a2ui/elm-a2ui.jsx +10 -5
  15. package/lib-solid/components/a2ui/elm-a2ui.jsx.map +1 -1
  16. package/lib-solid/components/a2ui/elm-a2ui.module.css +1 -1
  17. package/lib-solid/components/a2ui/stream-json-lines.js +10 -5
  18. package/lib-solid/components/a2ui/stream-json-lines.js.map +1 -1
  19. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-agent.jsx +6 -3
  20. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-agent.jsx.map +1 -1
  21. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-agent.module.css +2 -2
  22. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-input.jsx +6 -3
  23. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-input.jsx.map +1 -1
  24. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-input.module.css +1 -1
  25. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-message-renderer.jsx +14 -7
  26. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-message-renderer.jsx.map +1 -1
  27. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-prompt-picker.jsx +14 -7
  28. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-prompt-picker.jsx.map +1 -1
  29. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-prompt-picker.module.css +1 -1
  30. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-status.jsx +16 -9
  31. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-status.jsx.map +1 -1
  32. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-tool-execution.jsx +4 -1
  33. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-tool-execution.jsx.map +1 -1
  34. package/lib-solid/components/ag-ui-client/components/input-content/elm-ag-ui-input-content.jsx +2 -1
  35. package/lib-solid/components/ag-ui-client/components/input-content/elm-ag-ui-input-content.jsx.map +1 -1
  36. package/lib-solid/components/ag-ui-client/hooks/use-agent.js +24 -12
  37. package/lib-solid/components/ag-ui-client/hooks/use-agent.js.map +1 -1
  38. package/lib-solid/components/ag-ui-client/internal/create-agent-subscriber.js +2 -1
  39. package/lib-solid/components/ag-ui-client/internal/create-agent-subscriber.js.map +1 -1
  40. package/lib-solid/components/ag-ui-client/internal/reconcile-messages.js +16 -8
  41. package/lib-solid/components/ag-ui-client/internal/reconcile-messages.js.map +1 -1
  42. package/lib-solid/components/ag-ui-client/mcp/create-mcp-client.js +2 -2
  43. package/lib-solid/components/ag-ui-client/mcp/create-mcp-client.js.map +1 -1
  44. package/lib-solid/components/ag-ui-client/mcp/use-mcp-connections.js +4 -2
  45. package/lib-solid/components/ag-ui-client/mcp/use-mcp-connections.js.map +1 -1
  46. package/lib-solid/components/ag-ui-client/mcp/use-mcp-prompts.js +2 -1
  47. package/lib-solid/components/ag-ui-client/mcp/use-mcp-prompts.js.map +1 -1
  48. package/lib-solid/components/ag-ui-client/mcp/use-mcp-tools.js +2 -1
  49. package/lib-solid/components/ag-ui-client/mcp/use-mcp-tools.js.map +1 -1
  50. package/lib-solid/components/code/elm-code-block.module.css +1 -1
  51. package/lib-solid/components/code/elm-html-viewer.jsx +12 -6
  52. package/lib-solid/components/code/elm-html-viewer.jsx.map +1 -1
  53. package/lib-solid/components/code/elm-html-viewer.module.css +1 -1
  54. package/lib-solid/components/code/elm-html.jsx +18 -9
  55. package/lib-solid/components/code/elm-html.jsx.map +1 -1
  56. package/lib-solid/components/code/elm-shiki-highlighter.jsx +4 -2
  57. package/lib-solid/components/code/elm-shiki-highlighter.jsx.map +1 -1
  58. package/lib-solid/components/containments/elm-collapse.jsx +2 -1
  59. package/lib-solid/components/containments/elm-collapse.jsx.map +1 -1
  60. package/lib-solid/components/containments/elm-modal.jsx +18 -9
  61. package/lib-solid/components/containments/elm-modal.jsx.map +1 -1
  62. package/lib-solid/components/containments/elm-parallax.jsx +2 -1
  63. package/lib-solid/components/containments/elm-parallax.jsx.map +1 -1
  64. package/lib-solid/components/containments/elm-tabs.module.css +1 -1
  65. package/lib-solid/components/containments/elm-tooltip.jsx +4 -2
  66. package/lib-solid/components/containments/elm-tooltip.jsx.map +1 -1
  67. package/lib-solid/components/form/elm-button-dropdown.jsx +10 -5
  68. package/lib-solid/components/form/elm-button-dropdown.jsx.map +1 -1
  69. package/lib-solid/components/form/elm-button-dropdown.module.css +1 -1
  70. package/lib-solid/components/form/elm-button.jsx +2 -1
  71. package/lib-solid/components/form/elm-button.jsx.map +1 -1
  72. package/lib-solid/components/form/elm-button.module.css +3 -3
  73. package/lib-solid/components/form/elm-select.jsx +2 -1
  74. package/lib-solid/components/form/elm-select.jsx.map +1 -1
  75. package/lib-solid/components/form/elm-select.module.css +2 -2
  76. package/lib-solid/components/form/elm-slider.jsx +34 -17
  77. package/lib-solid/components/form/elm-slider.jsx.map +1 -1
  78. package/lib-solid/components/form/elm-slider.module.css +1 -1
  79. package/lib-solid/components/form/elm-switch.module.css +1 -1
  80. package/lib-solid/components/form/elm-text-area.jsx +18 -9
  81. package/lib-solid/components/form/elm-text-area.jsx.map +1 -1
  82. package/lib-solid/components/form/elm-text-area.module.css +1 -1
  83. package/lib-solid/components/form/elm-text-field.jsx +22 -11
  84. package/lib-solid/components/form/elm-text-field.jsx.map +1 -1
  85. package/lib-solid/components/form/elm-text-field.module.css +1 -1
  86. package/lib-solid/components/icon/elm-copy-icon.jsx +4 -2
  87. package/lib-solid/components/icon/elm-copy-icon.jsx.map +1 -1
  88. package/lib-solid/components/icon/elm-toggle-theme.jsx +8 -4
  89. package/lib-solid/components/icon/elm-toggle-theme.jsx.map +1 -1
  90. package/lib-solid/components/icon/elm-toggle-theme.module.css +1 -1
  91. package/lib-solid/components/media/elm-audio-player.jsx +26 -13
  92. package/lib-solid/components/media/elm-audio-player.jsx.map +1 -1
  93. package/lib-solid/components/media/elm-audio-player.module.css +7 -13
  94. package/lib-solid/components/media/elm-block-image.jsx +2 -1
  95. package/lib-solid/components/media/elm-block-image.jsx.map +1 -1
  96. package/lib-solid/components/media/elm-block-image.module.css +1 -1
  97. package/lib-solid/components/media/elm-file.jsx +8 -4
  98. package/lib-solid/components/media/elm-file.jsx.map +1 -1
  99. package/lib-solid/components/media/elm-file.module.css +1 -1
  100. package/lib-solid/components/navigation/elm-bookmark.module.css +1 -1
  101. package/lib-solid/components/navigation/elm-page-top.jsx +8 -4
  102. package/lib-solid/components/navigation/elm-page-top.jsx.map +1 -1
  103. package/lib-solid/components/others/color-sample-copy.js +12 -6
  104. package/lib-solid/components/others/color-sample-copy.js.map +1 -1
  105. package/lib-solid/components/others/use-wordle.jsx +13 -6
  106. package/lib-solid/components/others/use-wordle.jsx.map +1 -1
  107. package/lib-solid/components/table/elm-table.jsx +2 -1
  108. package/lib-solid/components/table/elm-table.jsx.map +1 -1
  109. package/lib-solid/components/table/elm-table.module.css +2 -2
  110. package/lib-solid/components/typography/elm-inline-text.jsx +12 -6
  111. package/lib-solid/components/typography/elm-inline-text.jsx.map +1 -1
  112. package/lib-solid/components/typography/elm-inline-text.module.css +1 -1
  113. package/lib-solid/primitives/create-async-state.js +20 -11
  114. package/lib-solid/primitives/create-async-state.js.map +1 -1
  115. package/lib-solid/primitives/create-clipboard.js +8 -4
  116. package/lib-solid/primitives/create-clipboard.js.map +1 -1
  117. package/lib-solid/primitives/create-controllable-signal.js +2 -1
  118. package/lib-solid/primitives/create-controllable-signal.js.map +1 -1
  119. package/lib-solid/primitives/create-debounced.js +4 -2
  120. package/lib-solid/primitives/create-debounced.js.map +1 -1
  121. package/lib-solid/primitives/create-delayed-signal.js +2 -1
  122. package/lib-solid/primitives/create-delayed-signal.js.map +1 -1
  123. package/lib-solid/primitives/create-elmethis-theme.js +10 -5
  124. package/lib-solid/primitives/create-elmethis-theme.js.map +1 -1
  125. package/lib-solid/primitives/create-storage.js +12 -6
  126. package/lib-solid/primitives/create-storage.js.map +1 -1
  127. package/lib-solid/primitives/create-throttled-queue.js +21 -14
  128. package/lib-solid/primitives/create-throttled-queue.js.map +1 -1
  129. package/lib-solid/primitives/create-throttled.js +6 -3
  130. package/lib-solid/primitives/create-throttled.js.map +1 -1
  131. package/lib-types/components/a2ui/catalog/basic-catalog.d.ts.map +1 -1
  132. package/lib-types/components/a2ui/catalog/catalog.d.ts +4 -1
  133. package/lib-types/components/a2ui/catalog/catalog.d.ts.map +1 -1
  134. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts.map +1 -1
  135. package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts +2 -1
  136. package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts.map +1 -1
  137. package/lib-types/components/a2ui/component-host.d.ts +1 -0
  138. package/lib-types/components/a2ui/component-host.d.ts.map +1 -1
  139. package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -1
  140. package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -1
  141. package/lib-types/components/ag-ui-client/components/elm-ag-ui-agent.d.ts.map +1 -1
  142. package/lib-types/components/ag-ui-client/components/elm-ag-ui-input.d.ts.map +1 -1
  143. package/lib-types/components/ag-ui-client/components/elm-ag-ui-message-renderer.d.ts.map +1 -1
  144. package/lib-types/components/ag-ui-client/components/elm-ag-ui-prompt-picker.d.ts.map +1 -1
  145. package/lib-types/components/ag-ui-client/components/elm-ag-ui-status.d.ts.map +1 -1
  146. package/lib-types/components/ag-ui-client/components/elm-ag-ui-tool-execution.d.ts.map +1 -1
  147. package/lib-types/components/ag-ui-client/components/input-content/elm-ag-ui-input-content.d.ts.map +1 -1
  148. package/lib-types/components/ag-ui-client/hooks/use-agent.d.ts.map +1 -1
  149. package/lib-types/components/ag-ui-client/internal/create-agent-subscriber.d.ts +2 -2
  150. package/lib-types/components/ag-ui-client/internal/create-agent-subscriber.d.ts.map +1 -1
  151. package/lib-types/components/ag-ui-client/internal/reconcile-messages.d.ts.map +1 -1
  152. package/lib-types/components/ag-ui-client/mcp/create-mcp-client.d.ts.map +1 -1
  153. package/lib-types/components/ag-ui-client/mcp/use-mcp-connections.d.ts.map +1 -1
  154. package/lib-types/components/ag-ui-client/mcp/use-mcp-prompts.d.ts.map +1 -1
  155. package/lib-types/components/ag-ui-client/mcp/use-mcp-tools.d.ts.map +1 -1
  156. package/lib-types/components/code/elm-html-viewer.d.ts.map +1 -1
  157. package/lib-types/components/code/elm-html.d.ts.map +1 -1
  158. package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -1
  159. package/lib-types/components/containments/elm-collapse.d.ts.map +1 -1
  160. package/lib-types/components/containments/elm-modal.d.ts.map +1 -1
  161. package/lib-types/components/containments/elm-parallax.d.ts.map +1 -1
  162. package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -1
  163. package/lib-types/components/form/elm-button-dropdown.d.ts.map +1 -1
  164. package/lib-types/components/form/elm-button.d.ts.map +1 -1
  165. package/lib-types/components/form/elm-select.d.ts.map +1 -1
  166. package/lib-types/components/form/elm-slider.d.ts.map +1 -1
  167. package/lib-types/components/form/elm-text-area.d.ts.map +1 -1
  168. package/lib-types/components/form/elm-text-field.d.ts.map +1 -1
  169. package/lib-types/components/icon/elm-copy-icon.d.ts.map +1 -1
  170. package/lib-types/components/icon/elm-language-icon.d.ts +1 -1
  171. package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -1
  172. package/lib-types/components/icon/elm-toggle-theme.d.ts.map +1 -1
  173. package/lib-types/components/media/elm-audio-player.d.ts.map +1 -1
  174. package/lib-types/components/media/elm-block-image.d.ts.map +1 -1
  175. package/lib-types/components/media/elm-file.d.ts.map +1 -1
  176. package/lib-types/components/navigation/elm-page-top.d.ts.map +1 -1
  177. package/lib-types/components/others/color-sample-copy.d.ts.map +1 -1
  178. package/lib-types/components/others/use-wordle.d.ts.map +1 -1
  179. package/lib-types/components/table/elm-table.d.ts.map +1 -1
  180. package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -1
  181. package/lib-types/primitives/create-async-state.d.ts.map +1 -1
  182. package/lib-types/primitives/create-clipboard.d.ts.map +1 -1
  183. package/lib-types/primitives/create-controllable-signal.d.ts.map +1 -1
  184. package/lib-types/primitives/create-debounced.d.ts.map +1 -1
  185. package/lib-types/primitives/create-delayed-signal.d.ts.map +1 -1
  186. package/lib-types/primitives/create-elmethis-theme.d.ts.map +1 -1
  187. package/lib-types/primitives/create-storage.d.ts.map +1 -1
  188. package/lib-types/primitives/create-throttled-queue.d.ts.map +1 -1
  189. package/lib-types/primitives/create-throttled.d.ts.map +1 -1
  190. package/package.json +11 -12
@@ -1,20 +1,20 @@
1
1
  import { Dynamic as e, addEventListener as t, classList as n, className as r, createComponent as i, delegateEvents as a, effect as o, insert as s, memo as c, mergeProps as l, setAttribute as u, setStyleProperty as d, spread as f, style as p, template as m, use as h } from "solid-js/web";
2
2
  import { For as g, Match as _, Show as v, Suspense as y, Switch as b, children as x, createContext as S, createEffect as C, createMemo as w, createRenderEffect as T, createResource as E, createSignal as D, createUniqueId as O, getOwner as k, mergeProps as A, on as j, onCleanup as M, onMount as N, splitProps as P, untrack as F, useContext as ee } from "solid-js";
3
3
  import { clsx as I } from "clsx";
4
- import { mdiAccount as te, mdiAccountQuestionOutline as ne, mdiAlert as re, mdiAlertCircleOutline as ie, mdiApplicationOutline as ae, mdiArrowDownDropCircleOutline as oe, mdiBrain as se, mdiCheckCircleOutline as ce, mdiChevronRight as le, mdiClipboardCheckOutline as ue, mdiClipboardOutline as de, mdiClockOutline as fe, mdiClose as pe, mdiCodeJson as L, mdiCreation as me, mdiDotsHorizontalCircleOutline as he, mdiDownload as ge, mdiEyeOffOutline as _e, mdiEyeOutline as ve, mdiFastForward10 as ye, mdiFile as be, mdiFolderOpen as xe, mdiForumOutline as Se, mdiFunctionVariant as Ce, mdiHammerScrewdriver as we, mdiHome as Te, mdiImage as Ee, mdiLightbulbOn as De, mdiLinkVariant as Oe, mdiMenuDown as ke, mdiMessageImageOutline as Ae, mdiMusicNote as je, mdiOpenInNew as Me, mdiPause as Ne, mdiPencil as Pe, mdiPlay as Fe, mdiPlus as Ie, mdiRefresh as Le, mdiRewind10 as Re, mdiSend as ze, mdiStop as Be, mdiStopCircleOutline as Ve, mdiSync as He, mdiText as Ue, mdiTextBox as We, mdiTextLong as Ge, mdiTrashCanOutline as Ke, mdiVolumeHigh as qe, mdiVolumeLow as Je, mdiVolumeMedium as Ye, mdiVolumeOff as Xe, mdiWrenchClock as Ze } from "@mdi/js";
5
- import { AudioApi as Qe, BlockImageApi as $e, BlockQuoteApi as et, BookmarkApi as tt, CalloutApi as nt, CodeBlockApi as rt, ColumnApi as it, ColumnListApi as at, ContentTabApi as ot, ContentTabsApi as st, DividerApi as ct, FileApi as lt, HeadingApi as ut, HtmlApi as dt, IconApi as ft, KatexApi as pt, LinkTextApi as mt, ListApi as ht, ListItemApi as gt, MermaidApi as _t, NOTION_BLOCK_CATALOG_ID as vt, NotionCalloutApi as yt, ParagraphApi as bt, RichTextApi as xt, TableApi as St, TableCellApi as Ct, TableRowApi as wt, ToggleApi as Tt, UnsupportedApi as Et, VideoApi as Dt, languageIcons as Ot, normalizeLanguage as kt } from "@elmethis/core";
6
- import { renderToString as At } from "katex";
7
- import { marked as jt } from "marked";
8
- import { Catalog as Mt, ComponentContext as Nt, GenericBinder as Pt, MessageProcessor as Ft } from "@a2ui/web_core/v0_9";
9
- import { AudioPlayerApi as It, BASIC_FUNCTIONS as Lt, ButtonApi as Rt, CardApi as zt, CheckBoxApi as Bt, ChoicePickerApi as Vt, ColumnApi as Ht, DateTimeInputApi as Ut, DividerApi as Wt, IconApi as Gt, ImageApi as Kt, ListApi as qt, ModalApi as Jt, RowApi as Yt, SliderApi as Xt, TabsApi as Zt, TextApi as Qt, TextFieldApi as $t, VideoApi as en } from "@a2ui/web_core/v0_9/basic_catalog";
10
- import { createMutable as tn, createStore as nn, reconcile as rn } from "solid-js/store";
11
- import { EventType as R } from "@ag-ui/core";
12
- import { HttpAgent as an } from "@ag-ui/client";
13
- import { v7 as on } from "uuid";
4
+ import { mdiAccount as te, mdiAccountQuestionOutline as ne, mdiAlert as re, mdiAlertCircleOutline as ie, mdiApplicationOutline as ae, mdiArrowDownDropCircleOutline as oe, mdiBrain as se, mdiCheckCircleOutline as ce, mdiChevronRight as le, mdiClipboardCheckOutline as ue, mdiClipboardOutline as L, mdiClockOutline as de, mdiClose as fe, mdiCodeJson as R, mdiCreation as pe, mdiDotsHorizontalCircleOutline as me, mdiDownload as he, mdiEyeOffOutline as ge, mdiEyeOutline as _e, mdiFastForward10 as ve, mdiFile as ye, mdiFolderOpen as be, mdiForumOutline as xe, mdiFunctionVariant as Se, mdiHammerScrewdriver as Ce, mdiHome as we, mdiImage as Te, mdiLightbulbOn as Ee, mdiLinkVariant as De, mdiMenuDown as Oe, mdiMessageImageOutline as ke, mdiMusicNote as Ae, mdiOpenInNew as je, mdiPause as Me, mdiPencil as Ne, mdiPlay as Pe, mdiPlus as Fe, mdiRefresh as Ie, mdiRewind10 as Le, mdiSend as Re, mdiStop as ze, mdiStopCircleOutline as Be, mdiSync as Ve, mdiText as He, mdiTextBox as Ue, mdiTextLong as We, mdiTrashCanOutline as Ge, mdiVolumeHigh as Ke, mdiVolumeLow as qe, mdiVolumeMedium as Je, mdiVolumeOff as Ye, mdiWrenchClock as Xe } from "@mdi/js";
5
+ import { AudioApi as Ze, BlockImageApi as Qe, BlockQuoteApi as $e, BookmarkApi as et, CalloutApi as tt, CodeBlockApi as nt, ColumnApi as rt, ColumnListApi as it, ContentTabApi as at, ContentTabsApi as ot, DividerApi as st, FileApi as ct, HeadingApi as lt, HtmlApi as ut, IconApi as dt, KatexApi as ft, LinkTextApi as pt, ListApi as mt, ListItemApi as ht, MermaidApi as gt, NOTION_BLOCK_CATALOG_ID as _t, NotionCalloutApi as vt, ParagraphApi as yt, RichTextApi as bt, TableApi as xt, TableCellApi as St, TableRowApi as Ct, ToggleApi as wt, UnsupportedApi as Tt, VideoApi as Et, languageIcons as Dt, normalizeLanguage as Ot } from "@elmethis/core";
6
+ import { renderToString as kt } from "katex";
7
+ import { marked as At } from "marked";
8
+ import { Catalog as jt, ComponentContext as Mt, GenericBinder as Nt, MessageProcessor as Pt } from "@a2ui/web_core/v0_9";
9
+ import { AudioPlayerApi as Ft, BASIC_FUNCTIONS as It, ButtonApi as Lt, CardApi as Rt, CheckBoxApi as zt, ChoicePickerApi as Bt, ColumnApi as Vt, DateTimeInputApi as Ht, DividerApi as Ut, IconApi as Wt, ImageApi as Gt, ListApi as Kt, ModalApi as qt, RowApi as Jt, SliderApi as Yt, TabsApi as Xt, TextApi as Zt, TextFieldApi as Qt, VideoApi as $t } from "@a2ui/web_core/v0_9/basic_catalog";
10
+ import { createMutable as en, createStore as tn, reconcile as nn } from "solid-js/store";
11
+ import { EventType as z } from "@ag-ui/core";
12
+ import { HttpAgent as rn } from "@ag-ui/client";
13
+ import { v7 as an } from "uuid";
14
14
  import "zod";
15
- import { zodToJsonSchema as sn } from "zod-to-json-schema";
15
+ import { zodToJsonSchema as on } from "zod-to-json-schema";
16
16
  //#region src/components/fallback/elm-block-fallback.module.css
17
- var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";"), e.trim()].filter(Boolean).join(";") : {
17
+ var sn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, cn = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";"), e.trim()].filter(Boolean).join(";") : {
18
18
  ...t,
19
19
  ...e ?? {}
20
20
  }, ln = {
@@ -22,24 +22,24 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
22
22
  dot: "_dot_qjgj2_25",
23
23
  bounce: "_bounce_qjgj2_1"
24
24
  }, un = /*#__PURE__*/ m("<span><span aria-hidden=true></span><span aria-hidden=true></span><span aria-hidden=true>"), dn = (e) => {
25
- let [t, n] = P(A({ size: "4em" }, e), [
25
+ let t = A({ size: "4em" }, e), [n, i] = P(t, [
26
26
  "class",
27
27
  "style",
28
28
  "children",
29
29
  "size"
30
30
  ]);
31
31
  return (() => {
32
- var e = un(), i = e.firstChild, a = i.nextSibling, s = a.nextSibling;
32
+ var e = un(), t = e.firstChild, a = t.nextSibling, s = a.nextSibling;
33
33
  return f(e, l({
34
34
  get class() {
35
- return I(ln["elm-dot-loading-icon"], t.class);
35
+ return I(ln["elm-dot-loading-icon"], n.class);
36
36
  },
37
37
  get style() {
38
- return z(t.style, { "--elmethis-scoped-size": t.size });
38
+ return cn(n.style, { "--elmethis-scoped-size": n.size });
39
39
  }
40
- }, n), !1, !0), o((e) => {
41
- var t = ln.dot, n = ln.dot, o = ln.dot;
42
- return t !== e.e && r(i, e.e = t), n !== e.t && r(a, e.t = n), o !== e.a && r(s, e.a = o), e;
40
+ }, i), !1, !0), o((e) => {
41
+ var n = ln.dot, i = ln.dot, o = ln.dot;
42
+ return n !== e.e && r(t, e.e = n), i !== e.t && r(a, e.t = i), o !== e.a && r(s, e.a = o), e;
43
43
  }, {
44
44
  e: void 0,
45
45
  t: void 0,
@@ -58,7 +58,7 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
58
58
  } }, n), !1, !1), e;
59
59
  })();
60
60
  }, hn = /*#__PURE__*/ m("<div>"), gn = (e) => {
61
- let [t, n] = P(A({ height: "16rem" }, e), [
61
+ let t = A({ height: "16rem" }, e), [n, r] = P(t, [
62
62
  "class",
63
63
  "style",
64
64
  "children",
@@ -68,12 +68,12 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
68
68
  var e = hn();
69
69
  return f(e, l({
70
70
  get class() {
71
- return I(cn["elm-block-fallback"], t.class);
71
+ return I(sn["elm-block-fallback"], n.class);
72
72
  },
73
73
  get style() {
74
- return z(t.style, { "--elmethis-scoped-height": t.height });
74
+ return cn(n.style, { "--elmethis-scoped-height": n.height });
75
75
  }
76
- }, n), !1, !0), s(e, i(dn, {}), null), s(e, i(mn, {}), null), e;
76
+ }, r), !1, !0), s(e, i(dn, {}), null), s(e, i(mn, {}), null), e;
77
77
  })();
78
78
  }, _n = {
79
79
  "elm-unsupported-block": "_elm-unsupported-block_8bkk1_1",
@@ -81,16 +81,16 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
81
81
  icon: "_icon_8bkk1_20",
82
82
  details: "_details_8bkk1_24"
83
83
  }, vn = {
84
- "elm-inline-text": "_elm-inline-text_me4hb_1",
85
- code: "_code_me4hb_13",
86
- kbd: "_kbd_me4hb_25",
87
- link: "_link_me4hb_58",
88
- ogp: "_ogp_me4hb_94",
89
- "ogp-text": "_ogp-text_me4hb_104",
90
- "ogp-title": "_ogp-title_me4hb_109",
91
- "ogp-description": "_ogp-description_me4hb_115"
84
+ "elm-inline-text": "_elm-inline-text_1r4f6_1",
85
+ code: "_code_1r4f6_13",
86
+ kbd: "_kbd_1r4f6_25",
87
+ link: "_link_1r4f6_58",
88
+ ogp: "_ogp_1r4f6_94",
89
+ "ogp-text": "_ogp-text_1r4f6_104",
90
+ "ogp-title": "_ogp-title_1r4f6_109",
91
+ "ogp-description": "_ogp-description_1r4f6_115"
92
92
  }, yn = { text: "_text_zme4t_1" }, bn = { "elm-inline-icon": "_elm-inline-icon_1r7uc_1" }, xn = /*#__PURE__*/ m("<span><img>"), Sn = (e) => {
93
- let [t, n] = P(A({ size: 16 }, e), [
93
+ let t = A({ size: 16 }, e), [n, i] = P(t, [
94
94
  "class",
95
95
  "children",
96
96
  "src",
@@ -100,12 +100,12 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
100
100
  "size"
101
101
  ]);
102
102
  return (() => {
103
- var e = xn(), i = e.firstChild;
104
- return f(e, l(n, { get class() {
105
- return I(bn["elm-inline-icon"], t.class);
103
+ var e = xn(), t = e.firstChild;
104
+ return f(e, l(i, { get class() {
105
+ return I(bn["elm-inline-icon"], n.class);
106
106
  } }), !1, !0), o((e) => {
107
- var n = t.src, a = t.alt, o = bn["elm-inline-icon"], s = t.width ?? t.size, c = t.height ?? t.size;
108
- return n !== e.e && u(i, "src", e.e = n), a !== e.t && u(i, "alt", e.t = a), o !== e.a && r(i, e.a = o), s !== e.o && u(i, "width", e.o = s), c !== e.i && u(i, "height", e.i = c), e;
107
+ var i = n.src, a = n.alt, o = bn["elm-inline-icon"], s = n.width ?? n.size, c = n.height ?? n.size;
108
+ return i !== e.e && u(t, "src", e.e = i), a !== e.t && u(t, "alt", e.t = a), o !== e.a && r(t, e.a = o), s !== e.o && u(t, "width", e.o = s), c !== e.i && u(t, "height", e.i = c), e;
109
109
  }, {
110
110
  e: void 0,
111
111
  t: void 0,
@@ -122,7 +122,7 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
122
122
  let n = Object.entries(t).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";");
123
123
  return [e.trim().replace(/;$/, ""), n].filter(Boolean).join(";");
124
124
  }, B = (e) => {
125
- let [t, n] = P(A({ size: "1em" }, e), [
125
+ let t = A({ size: "1em" }, e), [n, a] = P(t, [
126
126
  "class",
127
127
  "style",
128
128
  "children",
@@ -138,62 +138,62 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
138
138
  "ruby",
139
139
  "href",
140
140
  "favicon"
141
- ]), a = x(() => t.children), d = w(() => {
142
- let e = a();
143
- return t.href && (e = (() => {
144
- var n = Cn();
145
- return s(n, (() => {
146
- var e = c(() => !!t.favicon);
141
+ ]), d = x(() => n.children), p = w(() => {
142
+ let e = d();
143
+ return n.href && (e = (() => {
144
+ var t = Cn();
145
+ return s(t, (() => {
146
+ var e = c(() => !!n.favicon);
147
147
  return () => e() && i(Sn, {
148
148
  get src() {
149
- return t.favicon;
149
+ return n.favicon;
150
150
  },
151
151
  alt: "favicon"
152
152
  });
153
- })(), null), s(n, e, null), o((e) => {
154
- var i = vn.link, a = t.href;
155
- return i !== e.e && r(n, e.e = i), a !== e.t && u(n, "href", e.t = a), e;
153
+ })(), null), s(t, e, null), o((e) => {
154
+ var i = vn.link, a = n.href;
155
+ return i !== e.e && r(t, e.e = i), a !== e.t && u(t, "href", e.t = a), e;
156
156
  }, {
157
157
  e: void 0,
158
158
  t: void 0
159
- }), n;
160
- })()), t.kbd && (e = (() => {
159
+ }), t;
160
+ })()), n.kbd && (e = (() => {
161
161
  var t = wn();
162
162
  return s(t, e), o(() => r(t, vn.kbd)), t;
163
- })()), t.strikethrough && (e = (() => {
163
+ })()), n.strikethrough && (e = (() => {
164
164
  var t = Tn();
165
165
  return s(t, e), t;
166
- })()), t.italic && (e = (() => {
166
+ })()), n.italic && (e = (() => {
167
167
  var t = En();
168
168
  return s(t, e), t;
169
- })()), t.underline && (e = (() => {
169
+ })()), n.underline && (e = (() => {
170
170
  var t = Dn();
171
171
  return s(t, e), t;
172
- })()), t.bold && (e = (() => {
172
+ })()), n.bold && (e = (() => {
173
173
  var t = On();
174
174
  return s(t, e), t;
175
- })()), t.code && (e = (() => {
175
+ })()), n.code && (e = (() => {
176
176
  var t = kn();
177
177
  return s(t, e), o(() => r(t, vn.code)), t;
178
- })()), t.ruby && (e = (() => {
179
- var n = An(), i = n.firstChild, a = i.nextSibling;
180
- return s(i, e), s(a, () => t.ruby), o(() => r(n, vn["elm-inline-text"])), n;
178
+ })()), n.ruby && (e = (() => {
179
+ var t = An(), i = t.firstChild, a = i.nextSibling;
180
+ return s(i, e), s(a, () => n.ruby), o(() => r(t, vn["elm-inline-text"])), t;
181
181
  })()), e;
182
- }), p = w(() => Mn(t.style, {
183
- "--elmethis-scoped-color": t.color,
184
- "--elmethis-scoped-font-size": t.size,
185
- "--elmethis-scoped-background-color": t.backgroundColor
182
+ }), m = w(() => Mn(n.style, {
183
+ "--elmethis-scoped-color": n.color,
184
+ "--elmethis-scoped-font-size": n.size,
185
+ "--elmethis-scoped-background-color": n.backgroundColor
186
186
  }));
187
187
  return (() => {
188
188
  var e = jn();
189
- return f(e, l(n, {
189
+ return f(e, l(a, {
190
190
  get class() {
191
- return I(vn["elm-inline-text"], yn.text, t.class);
191
+ return I(vn["elm-inline-text"], yn.text, n.class);
192
192
  },
193
193
  get style() {
194
- return p();
194
+ return m();
195
195
  }
196
- }), !1, !0), s(e, d), e;
196
+ }), !1, !0), s(e, p), e;
197
197
  })();
198
198
  }, Nn = /*#__PURE__*/ m("<div><div><svg viewBox=\"0 0 24 24\"width=1.25rem height=1.25rem><path d=\"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\">"), Pn = /*#__PURE__*/ m("<div>"), Fn = (e) => {
199
199
  let [t, n] = P(e, [
@@ -224,13 +224,13 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
224
224
  }, V = (e, t) => {
225
225
  typeof e == "function" ? e(t) : e && e[0](e[1], t);
226
226
  }, In = {
227
- "elm-button": "_elm-button_g0akd_1",
228
- normal: "_normal_g0akd_22",
229
- primary: "_primary_g0akd_29",
230
- colored: "_colored_g0akd_36",
231
- enable: "_enable_g0akd_40",
232
- flex: "_flex_g0akd_59",
233
- "button-ripple": "_button-ripple_g0akd_1"
227
+ "elm-button": "_elm-button_p2wea_1",
228
+ normal: "_normal_p2wea_22",
229
+ primary: "_primary_p2wea_29",
230
+ colored: "_colored_p2wea_36",
231
+ enable: "_enable_p2wea_40",
232
+ flex: "_flex_p2wea_59",
233
+ "button-ripple": "_button-ripple_p2wea_1"
234
234
  }, Ln = /*#__PURE__*/ m("<span>"), Rn = /*#__PURE__*/ m("<button>"), zn = (e) => {
235
235
  let [t, n] = P(e, [
236
236
  "class",
@@ -256,7 +256,7 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
256
256
  return I(In["elm-button"], !t.isLoading && !t.disabled && In.enable, t.color && In.colored, !t.color && !t.primary && In.normal, !t.color && t.primary && In.primary, t.class);
257
257
  },
258
258
  get style() {
259
- return z(t.style, {
259
+ return cn(t.style, {
260
260
  display: t.block ? "flex" : "inline-flex",
261
261
  width: t.block ? "100%" : "auto",
262
262
  cursor: t.disabled ? "not-allowed" : t.isLoading ? "progress" : "pointer",
@@ -348,16 +348,16 @@ var Vn = {
348
348
  }), e;
349
349
  })();
350
350
  }, Gn = {
351
- switch: "_switch_9xlij_1",
352
- bar: "_bar_9xlij_5",
353
- checked: "_checked_9xlij_21",
354
- disabled: "_disabled_9xlij_26",
355
- circle: "_circle_9xlij_31"
351
+ switch: "_switch_1ipa7_1",
352
+ bar: "_bar_1ipa7_5",
353
+ checked: "_checked_1ipa7_21",
354
+ disabled: "_disabled_1ipa7_26",
355
+ circle: "_circle_1ipa7_31"
356
356
  }, Kn = /*#__PURE__*/ m("<div><input type=checkbox readonly><div><div>"), qn = (e) => {
357
- let [t, n] = P(A({
357
+ let t = A({
358
358
  color: "var(--elmethis-color-primary)",
359
359
  size: "18px"
360
- }, e), [
360
+ }, e), [n, i] = P(t, [
361
361
  "class",
362
362
  "style",
363
363
  "onClick",
@@ -367,79 +367,79 @@ var Vn = {
367
367
  "checked",
368
368
  "onCheckedChange",
369
369
  "children"
370
- ]), i = (e) => {
371
- V(t.onClick, e), !e.defaultPrevented && !t.disabled && t.onCheckedChange?.(!t.checked);
370
+ ]), a = (e) => {
371
+ V(n.onClick, e), !e.defaultPrevented && !n.disabled && n.onCheckedChange?.(!n.checked);
372
372
  };
373
373
  return (() => {
374
- var e = Kn(), a = e.firstChild, s = a.nextSibling, c = s.firstChild;
375
- return f(e, l(n, {
376
- onClick: i,
374
+ var e = Kn(), t = e.firstChild, s = t.nextSibling, c = s.firstChild;
375
+ return f(e, l(i, {
376
+ onClick: a,
377
377
  get class() {
378
- return t.class;
378
+ return n.class;
379
379
  },
380
380
  get style() {
381
- return z(t.style, {
382
- "--elmethis-scoped-color": t.color,
381
+ return cn(n.style, {
382
+ "--elmethis-scoped-color": n.color,
383
383
  "--elmethis-scoped-padding": "2px",
384
- "--elmethis-scoped-size": t.size,
384
+ "--elmethis-scoped-size": n.size,
385
385
  "--elmethis-scoped-width": "calc(var(--elmethis-scoped-size) * 2 + var(--elmethis-scoped-padding) * 2)"
386
386
  });
387
387
  }
388
388
  }), !1, !0), o((e) => {
389
- var n = Gn.switch, i = t.disabled, o = I(Gn.bar, t.checked && Gn.checked, t.disabled && Gn.disabled), l = I(Gn.circle, t.checked && Gn.checked, t.disabled && Gn.disabled);
390
- return n !== e.e && r(a, e.e = n), i !== e.t && (a.disabled = e.t = i), o !== e.a && r(s, e.a = o), l !== e.o && r(c, e.o = l), e;
389
+ var i = Gn.switch, a = n.disabled, o = I(Gn.bar, n.checked && Gn.checked, n.disabled && Gn.disabled), l = I(Gn.circle, n.checked && Gn.checked, n.disabled && Gn.disabled);
390
+ return i !== e.e && r(t, e.e = i), a !== e.t && (t.disabled = e.t = a), o !== e.a && r(s, e.a = o), l !== e.o && r(c, e.o = l), e;
391
391
  }, {
392
392
  e: void 0,
393
393
  t: void 0,
394
394
  a: void 0,
395
395
  o: void 0
396
- }), o(() => a.checked = t.checked), e;
396
+ }), o(() => t.checked = n.checked), e;
397
397
  })();
398
398
  }, Jn = { "elm-mdi-icon": "_elm-mdi-icon_1k12x_1" }, Yn = /*#__PURE__*/ m("<svg viewBox=\"0 0 24 24\"fill=currentColor xmlns=http://www.w3.org/2000/svg><path>"), Xn = /*#__PURE__*/ m("<title>"), Zn = { focusable: "false" }, H = (e) => {
399
- let [t, n] = P(A({ size: "1em" }, e), [
399
+ let t = A({ size: "1em" }, e), [n, r] = P(t, [
400
400
  "class",
401
401
  "style",
402
402
  "path",
403
403
  "size",
404
404
  "color",
405
405
  "label"
406
- ]), r = () => !!(t.label || n["aria-label"] || n["aria-labelledby"]);
406
+ ]), a = () => !!(n.label || r["aria-label"] || r["aria-labelledby"]);
407
407
  return (() => {
408
- var e = Yn(), a = e.firstChild;
408
+ var e = Yn(), t = e.firstChild;
409
409
  return f(e, l({
410
410
  get class() {
411
- return I(Jn["elm-mdi-icon"], t.class);
411
+ return I(Jn["elm-mdi-icon"], n.class);
412
412
  },
413
413
  get style() {
414
- return t.style;
414
+ return n.style;
415
415
  },
416
416
  get width() {
417
- return t.size;
417
+ return n.size;
418
418
  },
419
419
  get height() {
420
- return t.size;
420
+ return n.size;
421
421
  },
422
422
  get color() {
423
- return t.color;
423
+ return n.color;
424
424
  },
425
425
  get "aria-hidden"() {
426
- return r() ? void 0 : "true";
426
+ return a() ? void 0 : "true";
427
427
  },
428
428
  get role() {
429
- return r() ? "img" : void 0;
429
+ return a() ? "img" : void 0;
430
430
  }
431
- }, Zn, n), !0, !0), s(e, i(v, {
431
+ }, Zn, r), !0, !0), s(e, i(v, {
432
432
  get when() {
433
- return t.label;
433
+ return n.label;
434
434
  },
435
435
  children: (e) => (() => {
436
436
  var t = Xn();
437
437
  return s(t, e), t;
438
438
  })()
439
- }), a), o(() => u(a, "d", t.path)), e;
439
+ }), t), o(() => u(t, "d", n.path)), e;
440
440
  })();
441
441
  }, Qn = { "elm-validation": "_elm-validation_1cigg_1" }, $n = /*#__PURE__*/ m("<div>"), er = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", tr = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z", nr = (e) => {
442
- let [t, n] = P(A({ validColor: "var(--elmethis-color-accent-success)" }, e), [
442
+ let t = A({ validColor: "var(--elmethis-color-accent-success)" }, e), [n, r] = P(t, [
443
443
  "class",
444
444
  "style",
445
445
  "text",
@@ -448,26 +448,26 @@ var Vn = {
448
448
  ]);
449
449
  return (() => {
450
450
  var e = $n();
451
- return f(e, l(n, {
451
+ return f(e, l(r, {
452
452
  get class() {
453
- return I(Qn["elm-validation"], t.class);
453
+ return I(Qn["elm-validation"], n.class);
454
454
  },
455
455
  get style() {
456
- return z(t.style, { "--elmethis-scoped-opacity": t.isValid ? 1 : .5 });
456
+ return cn(n.style, { "--elmethis-scoped-opacity": n.isValid ? 1 : .5 });
457
457
  }
458
458
  }), !1, !0), s(e, i(H, {
459
459
  get path() {
460
- return t.isValid ? er : tr;
460
+ return n.isValid ? er : tr;
461
461
  },
462
462
  get color() {
463
- return c(() => !!t.isValid)() ? t.validColor : void 0;
463
+ return c(() => !!n.isValid)() ? n.validColor : void 0;
464
464
  }
465
465
  }), null), s(e, i(B, {
466
466
  get color() {
467
- return c(() => !!t.isValid)() ? t.validColor : void 0;
467
+ return c(() => !!n.isValid)() ? n.validColor : void 0;
468
468
  },
469
469
  get children() {
470
- return t.text;
470
+ return n.text;
471
471
  }
472
472
  }), null), e;
473
473
  })();
@@ -539,7 +539,7 @@ var ir = {
539
539
  return I(r.copied() && ir["elm-copy-icon-copied"]);
540
540
  },
541
541
  get path() {
542
- return r.copied() ? ue : de;
542
+ return r.copied() ? ue : L;
543
543
  },
544
544
  size: "1.25rem"
545
545
  })), e;
@@ -567,41 +567,41 @@ var sr = /*#__PURE__*/ m("<svg xmlns=http://www.w3.org/2000/svg>"), cr = (e, t,
567
567
  }
568
568
  }));
569
569
  }, ur = (e) => {
570
- let [t] = P(A({ size: 24 }, e), [
570
+ let t = A({ size: 24 }, e), [n] = P(t, [
571
571
  "icon",
572
572
  "size",
573
573
  "class",
574
574
  "style"
575
- ]), n = O(), r = w(() => t.icon.attrs ?? {});
575
+ ]), r = O(), a = w(() => n.icon.attrs ?? {});
576
576
  return (() => {
577
577
  var e = sr();
578
578
  return f(e, l({
579
579
  get viewBox() {
580
- return t.icon.viewBox;
580
+ return n.icon.viewBox;
581
581
  },
582
582
  get width() {
583
- return t.size;
583
+ return n.size;
584
584
  },
585
585
  get height() {
586
- return t.size;
586
+ return n.size;
587
587
  },
588
588
  get class() {
589
- return t.class;
589
+ return n.class;
590
590
  },
591
591
  get style() {
592
- return t.style;
592
+ return n.style;
593
593
  }
594
- }, r), !0, !0), s(e, i(g, {
594
+ }, a), !0, !0), s(e, i(g, {
595
595
  get each() {
596
- return t.icon.children;
596
+ return n.icon.children;
597
597
  },
598
- children: (e) => lr(e, n)
598
+ children: (e) => lr(e, r)
599
599
  })), e;
600
600
  })();
601
601
  }, dr = "M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z", fr = (e) => {
602
602
  let t = A({ size: 24 }, e), n = w(() => {
603
- let e = kt(t.language);
604
- return e === "file" ? void 0 : Ot[e];
603
+ let e = Ot(t.language);
604
+ return e === "file" ? void 0 : Dt[e];
605
605
  });
606
606
  return i(v, {
607
607
  get when() {
@@ -640,41 +640,41 @@ var sr = /*#__PURE__*/ m("<svg xmlns=http://www.w3.org/2000/svg>"), cr = (e, t,
640
640
  square: "_square_m72nq_28",
641
641
  appear: "_appear_m72nq_1"
642
642
  }, mr = /*#__PURE__*/ m("<span>"), hr = 1200, gr = (e) => {
643
- let [t, n] = P(A({
643
+ let t = A({
644
644
  size: "3rem",
645
645
  dimensions: 4
646
- }, e), [
646
+ }, e), [n, a] = P(t, [
647
647
  "class",
648
648
  "style",
649
649
  "children",
650
650
  "size",
651
651
  "dimensions"
652
- ]), a = w(() => Array(t.dimensions).fill(null).map((e, t) => t));
652
+ ]), c = w(() => Array(n.dimensions).fill(null).map((e, t) => t));
653
653
  return (() => {
654
654
  var e = mr();
655
655
  return f(e, l({
656
656
  get class() {
657
- return I(pr["elm-square-loading-icon"], t.class);
657
+ return I(pr["elm-square-loading-icon"], n.class);
658
658
  },
659
659
  get style() {
660
- return z(t.style, {
661
- "--elmethis-scoped-size": t.size,
662
- "--elmethis-scoped-dimensions": t.dimensions,
660
+ return cn(n.style, {
661
+ "--elmethis-scoped-size": n.size,
662
+ "--elmethis-scoped-dimensions": n.dimensions,
663
663
  "--elmethis-scoped-duration": `${hr}ms`
664
664
  });
665
665
  }
666
- }, n), !1, !0), s(e, i(g, {
666
+ }, a), !1, !0), s(e, i(g, {
667
667
  get each() {
668
- return a();
668
+ return c();
669
669
  },
670
670
  children: (e) => i(g, {
671
671
  get each() {
672
- return a();
672
+ return c();
673
673
  },
674
- children: (n) => (() => {
674
+ children: (t) => (() => {
675
675
  var i = mr();
676
676
  return o((a) => {
677
- var o = pr.square, s = `${hr / (t.dimensions * 3) * (e + n)}ms`;
677
+ var o = pr.square, s = `${hr / (n.dimensions * 3) * (e + t)}ms`;
678
678
  return o !== a.e && r(i, a.e = o), s !== a.t && d(i, "--elmethis-scoped-delay", a.t = s), a;
679
679
  }, {
680
680
  e: void 0,
@@ -726,11 +726,11 @@ function Cr() {
726
726
  }
727
727
  //#endregion
728
728
  //#region src/components/icon/elm-toggle-theme.module.css
729
- var wr = { "elm-toggle-theme": "_elm-toggle-theme_r8jdx_1" }, Tr = /*#__PURE__*/ m("<svg><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M12 19v1M19 12h1M12 5v-1M5 12h-1\"><animate fill=freeze attributeName=d begin=1.2s dur=0.2s values=\"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.2s dur=0.2s values=2;0></animate></path><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5\"><animate fill=freeze attributeName=d begin=1.4s dur=0.2s values=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.4s dur=0.2s values=2;0></animate></path><animateTransform attributeName=transform dur=30s repeatCount=indefinite type=rotate values=\"0 12 12;360 12 12\"></animateTransform></g><g fill=currentColor><path d=\"M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z\"><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path d=\"M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z\"><animate fill=freeze attributeName=fill-opacity begin=0.2s dur=0.4s values=1;0></animate></path></g><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"><set></set></path><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=8><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=8;4></animate></circle><circle cx=18 cy=6 r=12 fill=#fff><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=12;3></animate></circle><circle cx=18 cy=6 r=10><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;1></animate></circle></mask><circle cx=12 cy=12 r=10 opacity=0 fill=currentColor><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;6></animate><set>"), Er = /*#__PURE__*/ m("<svg><path fill-opacity=0 d=\"M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><g><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M12 21v1M21 12h1M12 3v-1M3 12h-1\"><animate fill=freeze attributeName=stroke-dashoffset dur=0.2s values=4;2></animate></path><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"><animate fill=freeze attributeName=stroke-dashoffset begin=0.2s dur=0.2s values=4;2></animate></path><set></set></g><path d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"opacity=0><set></set></path></g><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=4><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=4;8></animate></circle><circle cx=22 cy=2 r=3 fill=#fff><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=3;12></animate></circle><circle cx=22 cy=2 r=1><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=1;10></animate></circle></mask><circle cx=12 cy=12 r=6 fill=currentColor><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=6;10></animate><set>"), Dr = (e) => ({
729
+ var wr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Tr = /*#__PURE__*/ m("<svg><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M12 19v1M19 12h1M12 5v-1M5 12h-1\"><animate fill=freeze attributeName=d begin=1.2s dur=0.2s values=\"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.2s dur=0.2s values=2;0></animate></path><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5\"><animate fill=freeze attributeName=d begin=1.4s dur=0.2s values=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.4s dur=0.2s values=2;0></animate></path><animateTransform attributeName=transform dur=30s repeatCount=indefinite type=rotate values=\"0 12 12;360 12 12\"></animateTransform></g><g fill=currentColor><path d=\"M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z\"><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path d=\"M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z\"><animate fill=freeze attributeName=fill-opacity begin=0.2s dur=0.4s values=1;0></animate></path></g><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"><set></set></path><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=8><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=8;4></animate></circle><circle cx=18 cy=6 r=12 fill=#fff><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=12;3></animate></circle><circle cx=18 cy=6 r=10><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;1></animate></circle></mask><circle cx=12 cy=12 r=10 opacity=0 fill=currentColor><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;6></animate><set>"), Er = /*#__PURE__*/ m("<svg><path fill-opacity=0 d=\"M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><g><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M12 21v1M21 12h1M12 3v-1M3 12h-1\"><animate fill=freeze attributeName=stroke-dashoffset dur=0.2s values=4;2></animate></path><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"><animate fill=freeze attributeName=stroke-dashoffset begin=0.2s dur=0.2s values=4;2></animate></path><set></set></g><path d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"opacity=0><set></set></path></g><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=4><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=4;8></animate></circle><circle cx=22 cy=2 r=3 fill=#fff><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=3;12></animate></circle><circle cx=22 cy=2 r=1><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=1;10></animate></circle></mask><circle cx=12 cy=12 r=6 fill=currentColor><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=6;10></animate><set>"), Dr = (e) => ({
730
730
  attributeName: "opacity",
731
731
  to: e
732
732
  }), Or = (e) => {
733
- let [t, n] = P(A({ size: "2rem" }, e), [
733
+ let t = A({ size: "2rem" }, e), [n, r] = P(t, [
734
734
  "class",
735
735
  "style",
736
736
  "size",
@@ -741,92 +741,92 @@ var wr = { "elm-toggle-theme": "_elm-toggle-theme_r8jdx_1" }, Tr = /*#__PURE__*/
741
741
  "tabIndex",
742
742
  "aria-label",
743
743
  "children"
744
- ]), r = Cr(), i = O(), a = `elm-toggle-theme-moon-mask-${i}`, o = `elm-toggle-theme-sun-animation-${i}`, s = `elm-toggle-theme-sun-mask-${i}`, d = (e) => {
745
- r.toggleTheme();
746
- let n = t.onClick;
747
- typeof n == "function" ? n(e) : n?.[0](n[1], e);
748
- }, p = (e) => {
749
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r.toggleTheme());
750
- let n = t.onKeyDown;
751
- typeof n == "function" ? n(e) : n?.[0](n[1], e);
752
- }, m = {
744
+ ]), i = Cr(), a = O(), o = `elm-toggle-theme-moon-mask-${a}`, s = `elm-toggle-theme-sun-animation-${a}`, d = `elm-toggle-theme-sun-mask-${a}`, p = (e) => {
745
+ i.toggleTheme();
746
+ let t = n.onClick;
747
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
748
+ }, m = (e) => {
749
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i.toggleTheme());
750
+ let t = n.onKeyDown;
751
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
752
+ }, h = {
753
753
  xmlns: "http://www.w3.org/2000/svg",
754
754
  viewBox: "0 0 24 24"
755
755
  };
756
- return c(() => c(() => !r.isDarkTheme())() ? (() => {
757
- var e = Tr(), r = e.firstChild.nextSibling.nextSibling, i = r.firstChild, o = r.nextSibling, s = o.nextSibling, c = s.firstChild.nextSibling;
758
- return f(e, l(m, {
756
+ return c(() => c(() => !i.isDarkTheme())() ? (() => {
757
+ var e = Tr(), t = e.firstChild.nextSibling.nextSibling, i = t.firstChild, a = t.nextSibling, s = a.nextSibling, c = s.firstChild.nextSibling;
758
+ return f(e, l(h, {
759
759
  get width() {
760
- return t.size;
760
+ return n.size;
761
761
  },
762
762
  get height() {
763
- return t.size;
763
+ return n.size;
764
764
  },
765
765
  get class() {
766
- return I(wr["elm-toggle-theme"], t.class);
766
+ return I(wr["elm-toggle-theme"], n.class);
767
767
  },
768
768
  get style() {
769
- return t.style;
769
+ return n.style;
770
770
  },
771
771
  get role() {
772
- return t.role ?? "button";
772
+ return n.role ?? "button";
773
773
  },
774
774
  get tabindex() {
775
- return t.tabindex ?? t.tabIndex ?? 0;
775
+ return n.tabindex ?? n.tabIndex ?? 0;
776
776
  },
777
777
  get "aria-label"() {
778
- return t["aria-label"] ?? "Switch to dark theme";
778
+ return n["aria-label"] ?? "Switch to dark theme";
779
779
  },
780
- onClick: d,
781
- onKeyDown: p
782
- }, n), !0, !0), f(i, l(() => Dr("0"), {
780
+ onClick: p,
781
+ onKeyDown: m
782
+ }, r), !0, !0), f(i, l(() => Dr("0"), {
783
783
  fill: "freeze",
784
784
  begin: "0.6s"
785
- }), !0, !1), u(o, "id", a), u(s, "mask", `url(#${a})`), f(c, l(() => Dr("1"), {
785
+ }), !0, !1), u(a, "id", o), u(s, "mask", `url(#${o})`), f(c, l(() => Dr("1"), {
786
786
  fill: "freeze",
787
787
  begin: "0.6s"
788
788
  }), !0, !1), e;
789
789
  })() : (() => {
790
- var e = Er(), r = e.firstChild, i = r.firstChild, a = i.nextSibling, c = r.nextSibling, h = c.firstChild, g = h.nextSibling, _ = c.nextSibling, v = _.firstChild, y = v.nextSibling, b = _.nextSibling, x = b.firstChild, S = x.nextSibling, C = b.nextSibling, w = C.firstChild, T = w.firstChild.nextSibling.nextSibling, E = w.nextSibling.firstChild, D = C.nextSibling, O = D.nextSibling, k = O.firstChild.nextSibling;
791
- return f(e, l(m, {
790
+ var e = Er(), t = e.firstChild, i = t.firstChild, a = i.nextSibling, o = t.nextSibling, c = o.firstChild, g = c.nextSibling, _ = o.nextSibling, v = _.firstChild, y = v.nextSibling, b = _.nextSibling, x = b.firstChild, S = x.nextSibling, C = b.nextSibling, w = C.firstChild, T = w.firstChild.nextSibling.nextSibling, E = w.nextSibling.firstChild, D = C.nextSibling, O = D.nextSibling, k = O.firstChild.nextSibling;
791
+ return f(e, l(h, {
792
792
  get width() {
793
- return t.size;
793
+ return n.size;
794
794
  },
795
795
  get height() {
796
- return t.size;
796
+ return n.size;
797
797
  },
798
798
  get class() {
799
- return I(wr["elm-toggle-theme"], t.class);
799
+ return I(wr["elm-toggle-theme"], n.class);
800
800
  },
801
801
  get style() {
802
- return t.style;
802
+ return n.style;
803
803
  },
804
804
  get role() {
805
- return t.role ?? "button";
805
+ return n.role ?? "button";
806
806
  },
807
807
  get tabindex() {
808
- return t.tabindex ?? t.tabIndex ?? 0;
808
+ return n.tabindex ?? n.tabIndex ?? 0;
809
809
  },
810
810
  get "aria-label"() {
811
- return t["aria-label"] ?? "Switch to light theme";
811
+ return n["aria-label"] ?? "Switch to light theme";
812
812
  },
813
- onClick: d,
814
- onKeyDown: p
815
- }, n), !0, !0), u(i, "id", o), u(i, "begin", `0.6s;${o}.begin+6s`), u(a, "begin", `${o}.begin+2.2s`), u(h, "begin", `${o}.begin+3s`), u(g, "begin", `${o}.begin+5.2s`), u(v, "begin", `${o}.begin+0.4s`), u(y, "begin", `${o}.begin+2.8s`), u(x, "begin", `${o}.begin+3.4s`), u(S, "begin", `${o}.begin+5.6s`), f(T, l(() => Dr("0"), {
813
+ onClick: p,
814
+ onKeyDown: m
815
+ }, r), !0, !0), u(i, "id", s), u(i, "begin", `0.6s;${s}.begin+6s`), u(a, "begin", `${s}.begin+2.2s`), u(c, "begin", `${s}.begin+3s`), u(g, "begin", `${s}.begin+5.2s`), u(v, "begin", `${s}.begin+0.4s`), u(y, "begin", `${s}.begin+2.8s`), u(x, "begin", `${s}.begin+3.4s`), u(S, "begin", `${s}.begin+5.6s`), f(T, l(() => Dr("0"), {
816
816
  fill: "freeze",
817
817
  begin: "0.5s"
818
818
  }), !0, !1), f(E, l(() => Dr("1"), {
819
819
  fill: "freeze",
820
820
  begin: "0.5s"
821
- }), !0, !1), u(D, "id", s), u(O, "mask", `url(#${s})`), f(k, l(() => Dr("0"), {
821
+ }), !0, !1), u(D, "id", d), u(O, "mask", `url(#${d})`), f(k, l(() => Dr("0"), {
822
822
  fill: "freeze",
823
823
  begin: "0.5s"
824
824
  }), !0, !1), e;
825
825
  })());
826
826
  }, kr = {
827
- "elm-file": "_elm-file_1aidu_1",
828
- "file-size": "_file-size_1aidu_12",
829
- "download-icon": "_download-icon_1aidu_17"
827
+ "elm-file": "_elm-file_1we6j_1",
828
+ "file-size": "_file-size_1we6j_12",
829
+ "download-icon": "_download-icon_1we6j_17"
830
830
  }, Ar = /*#__PURE__*/ m("<div><div></div><div></div><div></div><div>");
831
831
  function jr(e) {
832
832
  let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
@@ -862,14 +862,14 @@ var Mr = (e) => {
862
862
  return f(e, l({ get class() {
863
863
  return I(kr["elm-file"], t.class);
864
864
  } }, n), !1, !0), s(a, i(H, {
865
- path: be,
865
+ path: ye,
866
866
  size: "1.25rem"
867
867
  })), s(c, i(B, { get children() {
868
868
  return t.name ?? jr(t.src);
869
869
  } })), s(d, i(B, { get children() {
870
870
  return t.filesize;
871
871
  } })), p.$$click = () => void u(), s(p, i(H, {
872
- path: ge,
872
+ path: he,
873
873
  size: "1.25rem"
874
874
  })), o((e) => {
875
875
  var t = kr["file-size"], n = kr["download-icon"];
@@ -882,13 +882,13 @@ var Mr = (e) => {
882
882
  };
883
883
  a(["click"]);
884
884
  var Nr = {
885
- "elm-bookmark": "_elm-bookmark_1eupd_1",
886
- container: "_container_1eupd_23",
887
- image: "_image_1eupd_35",
888
- content: "_content_1eupd_55",
889
- title: "_title_1eupd_69",
890
- description: "_description_1eupd_73",
891
- link: "_link_1eupd_78"
885
+ "elm-bookmark": "_elm-bookmark_zkn8n_1",
886
+ container: "_container_zkn8n_23",
887
+ image: "_image_zkn8n_35",
888
+ content: "_content_zkn8n_55",
889
+ title: "_title_zkn8n_69",
890
+ description: "_description_zkn8n_73",
891
+ link: "_link_zkn8n_78"
892
892
  }, Pr = /*#__PURE__*/ m("<div><a target=_blank rel=\"noopener noreferrer\"><img alt=\"OGP Image\"><div><div></div><div></div><div>"), Fr = {
893
893
  visibility: "hidden",
894
894
  width: "0"
@@ -920,7 +920,7 @@ var Nr = {
920
920
  return () => e() ? i(Sn, { get src() {
921
921
  return t.favicon;
922
922
  } }) : i(H, {
923
- path: Oe,
923
+ path: De,
924
924
  color: "var(--elmethis-color-accent-info)"
925
925
  });
926
926
  })(), null), s(y, i(B, {
@@ -966,7 +966,7 @@ var Nr = {
966
966
  return Lr.icon;
967
967
  },
968
968
  get path() {
969
- return c(() => a() === 0)() ? Te : a() === n.links.length - 1 ? ae : xe;
969
+ return c(() => a() === 0)() ? we : a() === n.links.length - 1 ? ae : be;
970
970
  },
971
971
  size: "1rem"
972
972
  }), d), s(d, () => e.text), s(l, (() => {
@@ -997,7 +997,7 @@ var Vr = {
997
997
  partial: "_partial_2u2d9_42",
998
998
  text: "_text_2u2d9_79"
999
999
  }, Hr = /*#__PURE__*/ m("<nav><div aria-hidden=true></div><div aria-hidden=true></div><div aria-hidden=true></div><span>Back to Top"), Ur = (e) => {
1000
- let [t, n] = P(A({ position: "right" }, e), [
1000
+ let t = A({ position: "right" }, e), [n, i] = P(t, [
1001
1001
  "class",
1002
1002
  "style",
1003
1003
  "position",
@@ -1007,48 +1007,48 @@ var Vr = {
1007
1007
  "aria-hidden",
1008
1008
  "tabindex",
1009
1009
  "tabIndex"
1010
- ]), [i, a] = D(!1);
1010
+ ]), [a, s] = D(!1);
1011
1011
  N(() => {
1012
- let e = () => a(window.scrollY > 100);
1012
+ let e = () => s(window.scrollY > 100);
1013
1013
  window.addEventListener("scroll", e, { passive: !0 }), e(), M(() => window.removeEventListener("scroll", e));
1014
1014
  });
1015
- let s = () => window.scrollTo({
1015
+ let u = () => window.scrollTo({
1016
1016
  top: 0,
1017
1017
  behavior: "smooth"
1018
- }), u = (e) => {
1019
- s();
1020
- let n = t.onClick;
1021
- typeof n == "function" ? n(e) : n?.[0](n[1], e);
1022
- }, d = (e) => {
1023
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
1024
- let n = t.onKeyDown;
1025
- typeof n == "function" ? n(e) : n?.[0](n[1], e);
1018
+ }), d = (e) => {
1019
+ u();
1020
+ let t = n.onClick;
1021
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
1022
+ }, p = (e) => {
1023
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
1024
+ let t = n.onKeyDown;
1025
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
1026
1026
  };
1027
1027
  return (() => {
1028
- var e = Hr(), a = e.firstChild, s = a.nextSibling, p = s.nextSibling, m = p.nextSibling;
1029
- return e.$$keydown = d, e.$$click = u, f(e, l({
1028
+ var e = Hr(), t = e.firstChild, s = t.nextSibling, u = s.nextSibling, m = u.nextSibling;
1029
+ return e.$$keydown = p, e.$$click = d, f(e, l({
1030
1030
  get class() {
1031
- return I(Vr["elm-page-top"], i() && Vr.visible, t.class);
1031
+ return I(Vr["elm-page-top"], a() && Vr.visible, n.class);
1032
1032
  },
1033
1033
  get style() {
1034
- return z(t.style, {
1034
+ return cn(n.style, {
1035
1035
  "--elmethis-scoped-size": "64px",
1036
- left: t.position === "left" ? "0" : "auto",
1037
- right: t.position === "right" ? "0" : "auto"
1036
+ left: n.position === "left" ? "0" : "auto",
1037
+ right: n.position === "right" ? "0" : "auto"
1038
1038
  });
1039
1039
  },
1040
1040
  get role() {
1041
- return t.role ?? "button";
1041
+ return n.role ?? "button";
1042
1042
  },
1043
1043
  get "aria-hidden"() {
1044
- return t["aria-hidden"] ?? !i();
1044
+ return n["aria-hidden"] ?? !a();
1045
1045
  },
1046
1046
  get tabindex() {
1047
- return c(() => !!i())() ? t.tabindex ?? t.tabIndex ?? 0 : -1;
1047
+ return c(() => !!a())() ? n.tabindex ?? n.tabIndex ?? 0 : -1;
1048
1048
  }
1049
- }, n), !1, !0), o((e) => {
1050
- var t = Vr.partial, n = Vr.partial, i = Vr.partial, o = Vr.text;
1051
- return t !== e.e && r(a, e.e = t), n !== e.t && r(s, e.t = n), i !== e.a && r(p, e.a = i), o !== e.o && r(m, e.o = o), e;
1049
+ }, i), !1, !0), o((e) => {
1050
+ var n = Vr.partial, i = Vr.partial, a = Vr.partial, o = Vr.text;
1051
+ return n !== e.e && r(t, e.e = n), i !== e.t && r(s, e.t = i), a !== e.a && r(u, e.a = a), o !== e.o && r(m, e.o = o), e;
1052
1052
  }, {
1053
1053
  e: void 0,
1054
1054
  t: void 0,
@@ -1075,10 +1075,10 @@ var Wr = {
1075
1075
  purple: "_purple_15idh_79",
1076
1076
  magenta: "_magenta_15idh_86"
1077
1077
  }, Gr = /*#__PURE__*/ m("<div><div>"), Kr = /*#__PURE__*/ m("<span role=img>"), qr = (e) => {
1078
- let [t, n] = P(A({
1078
+ let t = A({
1079
1079
  color: "gray",
1080
1080
  variant: "filled"
1081
- }, e), [
1081
+ }, e), [n, a] = P(t, [
1082
1082
  "class",
1083
1083
  "children",
1084
1084
  "icon",
@@ -1086,27 +1086,27 @@ var Wr = {
1086
1086
  "variant"
1087
1087
  ]);
1088
1088
  return (() => {
1089
- var e = Gr(), a = e.firstChild;
1090
- return f(e, l(n, { get class() {
1091
- return I(Wr["elm-notion-callout"], Wr[t.color], Wr[t.variant], t.class);
1089
+ var e = Gr(), t = e.firstChild;
1090
+ return f(e, l(a, { get class() {
1091
+ return I(Wr["elm-notion-callout"], Wr[n.color], Wr[n.variant], n.class);
1092
1092
  } }), !1, !0), s(e, (() => {
1093
- var e = c(() => t.icon?.kind === "emoji");
1093
+ var e = c(() => n.icon?.kind === "emoji");
1094
1094
  return () => e() ? (() => {
1095
1095
  var e = Kr();
1096
- return s(e, () => t.icon.emoji), o(() => r(e, Wr.icon)), e;
1097
- })() : c(() => t.icon?.kind === "image")() ? i(Sn, {
1096
+ return s(e, () => n.icon.emoji), o(() => r(e, Wr.icon)), e;
1097
+ })() : c(() => n.icon?.kind === "image")() ? i(Sn, {
1098
1098
  get class() {
1099
1099
  return Wr.icon;
1100
1100
  },
1101
1101
  get src() {
1102
- return t.icon.src;
1102
+ return n.icon.src;
1103
1103
  },
1104
1104
  get alt() {
1105
- return t.icon.alt;
1105
+ return n.icon.alt;
1106
1106
  },
1107
1107
  size: 20
1108
1108
  }) : null;
1109
- })(), a), s(a, () => t.children), o(() => r(a, Wr.content)), e;
1109
+ })(), t), s(t, () => n.children), o(() => r(t, Wr.content)), e;
1110
1110
  })();
1111
1111
  }, Jr = {
1112
1112
  "elm-color-primitive-sample": "_elm-color-primitive-sample_vuro0_1",
@@ -1490,26 +1490,26 @@ var xi = {
1490
1490
  warning: "M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",
1491
1491
  caution: "M2.2,16.06L3.88,12L2.2,7.94L6.26,6.26L7.94,2.2L12,3.88L16.06,2.2L17.74,6.26L21.8,7.94L20.12,12L21.8,16.06L17.74,17.74L16.06,21.8L12,20.12L7.94,21.8L6.26,17.74L2.2,16.06M13,17V15H11V17H13M13,13V7H11V13H13Z"
1492
1492
  }), ki = (e) => {
1493
- let [t, n] = P(A({ type: "note" }, e), [
1493
+ let t = A({ type: "note" }, e), [n, a] = P(t, [
1494
1494
  "class",
1495
1495
  "children",
1496
1496
  "type"
1497
1497
  ]);
1498
1498
  return (() => {
1499
- var e = Di(), a = e.firstChild, c = a.firstChild, u = a.nextSibling;
1500
- return f(e, l(n, { get class() {
1501
- return I(Ei["elm-callout"], Ei[t.type], t.class);
1502
- } }), !1, !0), s(a, i(H, {
1499
+ var e = Di(), t = e.firstChild, c = t.firstChild, u = t.nextSibling;
1500
+ return f(e, l(a, { get class() {
1501
+ return I(Ei["elm-callout"], Ei[n.type], n.class);
1502
+ } }), !1, !0), s(t, i(H, {
1503
1503
  get class() {
1504
1504
  return Ei.icon;
1505
1505
  },
1506
1506
  get path() {
1507
- return Oi[t.type];
1507
+ return Oi[n.type];
1508
1508
  },
1509
1509
  size: "1.25rem"
1510
- }), c), s(c, () => t.type), s(u, () => t.children), o((e) => {
1511
- var t = Ei.header, n = Ei.content;
1512
- return t !== e.e && r(a, e.e = t), n !== e.t && r(u, e.t = n), e;
1510
+ }), c), s(c, () => n.type), s(u, () => n.children), o((e) => {
1511
+ var n = Ei.header, i = Ei.content;
1512
+ return n !== e.e && r(t, e.e = n), i !== e.t && r(u, e.t = i), e;
1513
1513
  }, {
1514
1514
  e: void 0,
1515
1515
  t: void 0
@@ -1568,7 +1568,7 @@ var Ii = {
1568
1568
  return I(Ii["elm-heading"], yn.text, Ii[`h${n.level}`], n.class);
1569
1569
  },
1570
1570
  get style() {
1571
- return z(n.style, { "--elmethis-scoped-font-size": `${Bi[n.level]}em` });
1571
+ return cn(n.style, { "--elmethis-scoped-font-size": `${Bi[n.level]}em` });
1572
1572
  },
1573
1573
  get id() {
1574
1574
  return n.id;
@@ -1598,19 +1598,19 @@ var Ii = {
1598
1598
  bulleted: "_bulleted_brpi5_8",
1599
1599
  numbered: "_numbered_brpi5_57"
1600
1600
  }, Ui = (t) => {
1601
- let [n, r] = P(A({ listStyle: "unordered" }, t), [
1601
+ let n = A({ listStyle: "unordered" }, t), [r, a] = P(n, [
1602
1602
  "class",
1603
1603
  "children",
1604
1604
  "listStyle"
1605
1605
  ]);
1606
1606
  return i(e, l({ get component() {
1607
- return n.listStyle === "ordered" ? "ol" : "ul";
1608
- } }, r, {
1607
+ return r.listStyle === "ordered" ? "ol" : "ul";
1608
+ } }, a, {
1609
1609
  get class() {
1610
- return I(yn.text, Hi["elm-list"], n.listStyle === "ordered" ? Hi.numbered : Hi.bulleted, n.class);
1610
+ return I(yn.text, Hi["elm-list"], r.listStyle === "ordered" ? Hi.numbered : Hi.bulleted, r.class);
1611
1611
  },
1612
1612
  get children() {
1613
- return n.children;
1613
+ return r.children;
1614
1614
  }
1615
1615
  }));
1616
1616
  }, Wi = { "elm-paragraph": "_elm-paragraph_y4o6n_1" }, Gi = /*#__PURE__*/ m("<p>"), Ki = (e) => {
@@ -1628,7 +1628,7 @@ var Ii = {
1628
1628
  return I(Wi["elm-paragraph"], yn.text, t.class);
1629
1629
  },
1630
1630
  get style() {
1631
- return z(t.style, {
1631
+ return cn(t.style, {
1632
1632
  "--elmethis-scoped-color": t.color,
1633
1633
  "--elmethis-scoped-background-color": t.backgroundColor
1634
1634
  });
@@ -1653,6 +1653,7 @@ function qi(e, t, n = {}) {
1653
1653
  } catch (e) {
1654
1654
  if (p || a !== f) return;
1655
1655
  if (u(e), n.onError?.(e), n.throwError ?? !1) throw e;
1656
+ return;
1656
1657
  } finally {
1657
1658
  !p && a === f && c(!1);
1658
1659
  }
@@ -1840,7 +1841,7 @@ function aa(e, t) {
1840
1841
  };
1841
1842
  }
1842
1843
  //#endregion
1843
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
1844
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
1844
1845
  function oa(e) {
1845
1846
  "@babel/helpers - typeof";
1846
1847
  return oa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -1850,7 +1851,7 @@ function oa(e) {
1850
1851
  }, oa(e);
1851
1852
  }
1852
1853
  //#endregion
1853
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
1854
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
1854
1855
  function sa(e, t) {
1855
1856
  if (oa(e) != "object" || !e) return e;
1856
1857
  var n = e[Symbol.toPrimitive];
@@ -1862,13 +1863,13 @@ function sa(e, t) {
1862
1863
  return (t === "string" ? String : Number)(e);
1863
1864
  }
1864
1865
  //#endregion
1865
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
1866
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
1866
1867
  function ca(e) {
1867
1868
  var t = sa(e, "string");
1868
1869
  return oa(t) == "symbol" ? t : t + "";
1869
1870
  }
1870
1871
  //#endregion
1871
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
1872
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
1872
1873
  function la(e, t, n) {
1873
1874
  return (t = ca(t)) in e ? Object.defineProperty(e, t, {
1874
1875
  value: n,
@@ -1890,7 +1891,7 @@ var ua = class {
1890
1891
  try {
1891
1892
  t(await e());
1892
1893
  } catch (e) {
1893
- n(e);
1894
+ n(e instanceof Error ? e : Error(String(e)));
1894
1895
  }
1895
1896
  },
1896
1897
  reject: n
@@ -1913,10 +1914,12 @@ var ua = class {
1913
1914
  return;
1914
1915
  }
1915
1916
  let e = Date.now() - this.lastFinishedAt, t = Math.max(0, this.minInterval - e);
1916
- this.timer = setTimeout(async () => {
1917
- if (this.timer = void 0, this.destroyed) return;
1918
- let e = this.queue.shift();
1919
- e && (await e.run(), this.lastFinishedAt = Date.now(), this.scheduleNext());
1917
+ this.timer = setTimeout(() => {
1918
+ (async () => {
1919
+ if (this.timer = void 0, this.destroyed) return;
1920
+ let e = this.queue.shift();
1921
+ e && (await e.run(), this.lastFinishedAt = Date.now(), this.scheduleNext());
1922
+ })();
1920
1923
  }, t);
1921
1924
  }
1922
1925
  };
@@ -1932,7 +1935,7 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
1932
1935
  "class",
1933
1936
  "expression",
1934
1937
  "block"
1935
- ]), r = w(() => At(t.expression, {
1938
+ ]), r = w(() => kt(t.expression, {
1936
1939
  displayMode: t.block ?? !1,
1937
1940
  output: "mathml"
1938
1941
  }));
@@ -1961,10 +1964,10 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
1961
1964
  ...n
1962
1965
  };
1963
1966
  }, va = (e) => {
1964
- let [t, n] = P(A({
1967
+ let t = A({
1965
1968
  direction: "row",
1966
1969
  transitionTimingFunction: "ease-in-out"
1967
- }, e), [
1970
+ }, e), [n, i] = P(t, [
1968
1971
  "class",
1969
1972
  "style",
1970
1973
  "children",
@@ -1973,15 +1976,15 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
1973
1976
  "transitionTimingFunction"
1974
1977
  ]);
1975
1978
  return (() => {
1976
- var e = ga(), i = e.firstChild;
1977
- return f(e, l(n, {
1979
+ var e = ga(), t = e.firstChild;
1980
+ return f(e, l(i, {
1978
1981
  get class() {
1979
- return I(ha["elm-collapse"], t.isOpen && ha.open, t.direction === "row" && ha.row, t.direction === "column" && ha.column, t.direction === "both" && ha.both, t.class);
1982
+ return I(ha["elm-collapse"], n.isOpen && ha.open, n.direction === "row" && ha.row, n.direction === "column" && ha.column, n.direction === "both" && ha.both, n.class);
1980
1983
  },
1981
1984
  get style() {
1982
- return _a(t.style, t.transitionTimingFunction);
1985
+ return _a(n.style, n.transitionTimingFunction);
1983
1986
  }
1984
- }), !1, !0), s(i, () => t.children), o(() => r(i, ha.inner)), e;
1987
+ }), !1, !0), s(t, () => n.children), o(() => r(t, ha.inner)), e;
1985
1988
  })();
1986
1989
  }, ya = {
1987
1990
  "elm-parallax": "_elm-parallax_1uz2b_1",
@@ -2028,10 +2031,10 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
2028
2031
  "elm-modal": "_elm-modal_13wpm_1",
2029
2032
  shown: "_shown_13wpm_14"
2030
2033
  }, Ta = /*#__PURE__*/ m("<dialog><div>"), Ea = (e) => {
2031
- let [t, n] = P(A({
2034
+ let t = A({
2032
2035
  delay: 200,
2033
2036
  closedby: "none"
2034
- }, e), [
2037
+ }, e), [n, r] = P(t, [
2035
2038
  "class",
2036
2039
  "style",
2037
2040
  "ref",
@@ -2041,90 +2044,90 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
2041
2044
  "onClick",
2042
2045
  "onCancel",
2043
2046
  "onClose"
2044
- ]), [r, i] = D(!1), a, o, c = () => {
2045
- o !== void 0 && (clearTimeout(o), o = void 0);
2047
+ ]), [i, a] = D(!1), o, c, u = () => {
2048
+ c !== void 0 && (clearTimeout(c), c = void 0);
2046
2049
  };
2047
2050
  C(() => {
2048
- let e = !!t.isOpen, n = t.delay, s = a;
2049
- if (c(), s) {
2051
+ let e = !!n.isOpen, t = n.delay, r = o;
2052
+ if (u(), r) {
2050
2053
  if (e) {
2051
- if (s.open) {
2052
- i(!0);
2054
+ if (r.open) {
2055
+ a(!0);
2053
2056
  return;
2054
2057
  }
2055
- if (!s.isConnected || typeof s.showModal != "function") return;
2058
+ if (!r.isConnected || typeof r.showModal != "function") return;
2056
2059
  try {
2057
- s.showModal(), i(s.open);
2060
+ r.showModal(), a(r.open);
2058
2061
  } catch {}
2059
2062
  return;
2060
2063
  }
2061
- !r() && !s.open || (i(!1), s.open && (o = setTimeout(() => {
2062
- o = void 0, !t.isOpen && s.open && s.close();
2063
- }, Math.max(0, n))));
2064
+ !i() && !r.open || (a(!1), r.open && (c = setTimeout(() => {
2065
+ c = void 0, !n.isOpen && r.open && r.close();
2066
+ }, Math.max(0, t))));
2064
2067
  }
2065
- }), M(c);
2066
- let u = (e) => {
2067
- V(t.onClick, e), !(e.defaultPrevented || e.target !== e.currentTarget) && t.onClose?.(e, e.currentTarget);
2068
- }, d = (e) => {
2069
- V(t.onCancel, e), !e.defaultPrevented && (e.preventDefault(), t.onClose?.(e, e.currentTarget));
2068
+ }), M(u);
2069
+ let d = (e) => {
2070
+ V(n.onClick, e), !(e.defaultPrevented || e.target !== e.currentTarget) && n.onClose?.(e, e.currentTarget);
2070
2071
  }, p = (e) => {
2071
- c(), i(!1), t.isOpen && t.onClose?.(e, e.currentTarget);
2072
+ V(n.onCancel, e), !e.defaultPrevented && (e.preventDefault(), n.onClose?.(e, e.currentTarget));
2073
+ }, m = (e) => {
2074
+ u(), a(!1), n.isOpen && n.onClose?.(e, e.currentTarget);
2072
2075
  };
2073
2076
  return (() => {
2074
- var e = Ta(), i = e.firstChild;
2077
+ var e = Ta(), t = e.firstChild;
2075
2078
  return h((e) => {
2076
- a = e, typeof t.ref == "function" && t.ref(e);
2077
- }, e), f(e, l(n, {
2079
+ o = e, typeof n.ref == "function" && n.ref(e);
2080
+ }, e), f(e, l(r, {
2078
2081
  get class() {
2079
- return I(wa["elm-modal"], r() && wa.shown, t.class);
2082
+ return I(wa["elm-modal"], i() && wa.shown, n.class);
2080
2083
  },
2081
2084
  get style() {
2082
- return z(t.style, { "--elmethis-scoped-modal-delay": `${t.delay}ms` });
2085
+ return cn(n.style, { "--elmethis-scoped-modal-delay": `${n.delay}ms` });
2083
2086
  },
2084
- onClick: u,
2085
- onCancel: d,
2086
- onClose: p
2087
- }), !1, !0), i.$$click = (e) => e.stopPropagation(), s(i, () => t.children), e;
2087
+ onClick: d,
2088
+ onCancel: p,
2089
+ onClose: m
2090
+ }), !1, !0), t.$$click = (e) => e.stopPropagation(), s(t, () => n.children), e;
2088
2091
  })();
2089
2092
  };
2090
2093
  a(["click"]);
2091
2094
  var Da = {
2092
- "elm-tabs": "_elm-tabs_k2mbe_1",
2093
- "tab-container": "_tab-container_k2mbe_13",
2094
- tab: "_tab_k2mbe_13",
2095
- active: "_active_k2mbe_41",
2096
- "tab-content": "_tab-content_k2mbe_52",
2097
- "tab-content-inner": "_tab-content-inner_k2mbe_57"
2095
+ "elm-tabs": "_elm-tabs_4f8z7_1",
2096
+ "tab-container": "_tab-container_4f8z7_13",
2097
+ tab: "_tab_4f8z7_13",
2098
+ active: "_active_4f8z7_41",
2099
+ "tab-content": "_tab-content_4f8z7_52",
2100
+ "tab-content-inner": "_tab-content-inner_4f8z7_57"
2098
2101
  }, Oa = /*#__PURE__*/ m("<div>"), ka = S(), Aa = () => {
2099
2102
  let e = ee(ka);
2100
2103
  if (e === void 0) throw Error("ElmTabs subcomponents must be used within <ElmTabs>");
2101
2104
  return e;
2102
2105
  }, ja = (e) => {
2103
- let [t, n] = P(A({ transitionTimingFunction: "linear" }, e), [
2106
+ let t = A({ transitionTimingFunction: "linear" }, e), [n, r] = P(t, [
2104
2107
  "class",
2105
2108
  "children",
2106
2109
  "value",
2107
2110
  "defaultValue",
2108
2111
  "onValueChange",
2109
2112
  "transitionTimingFunction"
2110
- ]), [r, a] = Bn({
2111
- value: () => t.value,
2112
- defaultValue: () => t.defaultValue ?? "",
2113
- onChange: (e) => t.onValueChange?.(e)
2114
- }), o = {
2115
- selectedValue: r,
2113
+ ]), [a, o] = Bn({
2114
+ value: () => n.value,
2115
+ defaultValue: () => n.defaultValue ?? "",
2116
+ onChange: (e) => n.onValueChange?.(e)
2117
+ }), c = {
2118
+ selectedValue: a,
2116
2119
  setSelectedValue: (e) => {
2117
- a(e);
2120
+ o(e);
2118
2121
  },
2119
- transitionTimingFunction: () => t.transitionTimingFunction
2122
+ transitionTimingFunction: () => n.transitionTimingFunction
2120
2123
  };
2121
2124
  return i(ka.Provider, {
2122
- value: o,
2125
+ value: c,
2123
2126
  get children() {
2124
2127
  var e = Oa();
2125
- return f(e, l(n, { get class() {
2126
- return I(Da["elm-tabs"], t.class);
2127
- } }), !1, !0), s(e, () => t.children), e;
2128
+ return f(e, l(r, { get class() {
2129
+ return I(Da["elm-tabs"], n.class);
2130
+ } }), !1, !0), s(e, () => n.children), e;
2128
2131
  }
2129
2132
  });
2130
2133
  }, Ma = (e) => {
@@ -2219,7 +2222,7 @@ var Da = {
2219
2222
  return t.summary;
2220
2223
  } }) : t.summary;
2221
2224
  })()), s(_, i(H, {
2222
- path: Ie,
2225
+ path: Fe,
2223
2226
  size: "1rem",
2224
2227
  get color() {
2225
2228
  return c(() => !!t.monochrome)() ? "var(--elmethis-color-neutral-weak)" : a() ? "var(--elmethis-color-accent-error)" : "var(--elmethis-color-primary)";
@@ -2292,22 +2295,22 @@ var Ra = {
2292
2295
  }), e;
2293
2296
  })();
2294
2297
  }, Va = {
2295
- "elm-button-dropdown": "_elm-button-dropdown_ac8le_1",
2296
- block: "_block_ac8le_7",
2297
- main: "_main_ac8le_11",
2298
- caret: "_caret_ac8le_22",
2299
- segment: "_segment_ac8le_31",
2300
- menu: "_menu_ac8le_36",
2301
- item: "_item_ac8le_48",
2302
- selected: "_selected_ac8le_65",
2303
- "item-disabled": "_item-disabled_ac8le_74"
2298
+ "elm-button-dropdown": "_elm-button-dropdown_1qeel_1",
2299
+ block: "_block_1qeel_7",
2300
+ main: "_main_1qeel_11",
2301
+ caret: "_caret_1qeel_22",
2302
+ segment: "_segment_1qeel_31",
2303
+ menu: "_menu_1qeel_36",
2304
+ item: "_item_1qeel_48",
2305
+ selected: "_selected_1qeel_65",
2306
+ "item-disabled": "_item-disabled_1qeel_74"
2304
2307
  }, Ha = /*#__PURE__*/ m("<div>"), Ua = (e) => {
2305
- let [t, n] = P(A({
2308
+ let t = A({
2306
2309
  defaultSelectedOptionId: null,
2307
2310
  primary: !0,
2308
2311
  autoClose: !0,
2309
- dropdownIcon: ke
2310
- }, e), [
2312
+ dropdownIcon: Oe
2313
+ }, e), [n, a] = P(t, [
2311
2314
  "ref",
2312
2315
  "class",
2313
2316
  "style",
@@ -2330,32 +2333,32 @@ var Ra = {
2330
2333
  "onClick",
2331
2334
  "onItemClick",
2332
2335
  "onOpenChange"
2333
- ]), [a, d] = Bn({
2334
- value: () => t.selectedOptionId,
2335
- defaultValue: () => t.defaultSelectedOptionId,
2336
- onChange: (e) => t.onSelectedOptionIdChange?.(e)
2337
- }), p = w(() => t.items.find((e) => e.id === a()) ?? null), [m, _] = D(!1), y, b = (e) => {
2338
- m() !== e && (_(e), t.onOpenChange?.(e));
2336
+ ]), [d, p] = Bn({
2337
+ value: () => n.selectedOptionId,
2338
+ defaultValue: () => n.defaultSelectedOptionId,
2339
+ onChange: (e) => n.onSelectedOptionIdChange?.(e)
2340
+ }), m = w(() => n.items.find((e) => e.id === d()) ?? null), [_, y] = D(!1), b, x = (e) => {
2341
+ _() !== e && (y(e), n.onOpenChange?.(e));
2339
2342
  };
2340
2343
  N(() => {
2341
2344
  let e = (e) => {
2342
- m() && e.target instanceof Node && !y.contains(e.target) && b(!1);
2345
+ _() && e.target instanceof Node && !b.contains(e.target) && x(!1);
2343
2346
  };
2344
2347
  document.addEventListener("click", e), M(() => document.removeEventListener("click", e));
2345
2348
  });
2346
- let x = () => t.disabled || t.disableDropdown || t.isLoading, S = () => t.disabled || t.disableMainButton, C = (e) => {
2347
- e.disabled || (d(e.id), e.onClick?.(), t.onItemClick?.(e), t.autoClose && b(!1));
2349
+ let S = () => n.disabled || n.disableDropdown || n.isLoading, C = () => n.disabled || n.disableMainButton, T = (e) => {
2350
+ e.disabled || (p(e.id), e.onClick?.(), n.onItemClick?.(e), n.autoClose && x(!1));
2348
2351
  };
2349
2352
  return (() => {
2350
2353
  var e = Ha();
2351
2354
  return h((e) => {
2352
- y = e, typeof t.ref == "function" && t.ref(e);
2353
- }, e), f(e, l(n, {
2355
+ b = e, typeof n.ref == "function" && n.ref(e);
2356
+ }, e), f(e, l(a, {
2354
2357
  get class() {
2355
- return I(Va["elm-button-dropdown"], t.block && Va.block, t.class);
2358
+ return I(Va["elm-button-dropdown"], n.block && Va.block, n.class);
2356
2359
  },
2357
2360
  get style() {
2358
- return t.style;
2361
+ return n.style;
2359
2362
  }
2360
2363
  }), !1, !0), s(e, i(zn, {
2361
2364
  get class() {
@@ -2363,26 +2366,26 @@ var Ra = {
2363
2366
  },
2364
2367
  type: "button",
2365
2368
  get primary() {
2366
- return t.primary;
2369
+ return n.primary;
2367
2370
  },
2368
2371
  get color() {
2369
- return t.color;
2372
+ return n.color;
2370
2373
  },
2371
2374
  get isLoading() {
2372
- return t.isLoading;
2375
+ return n.isLoading;
2373
2376
  },
2374
2377
  get disabled() {
2375
- return S();
2378
+ return C();
2376
2379
  },
2377
- onClick: () => t.onClick?.(p()),
2380
+ onClick: () => n.onClick?.(m()),
2378
2381
  get children() {
2379
2382
  return i(v, {
2380
2383
  get when() {
2381
- return p();
2384
+ return m();
2382
2385
  },
2383
2386
  keyed: !0,
2384
2387
  get fallback() {
2385
- return [c(() => t.icon), c(() => t.label)];
2388
+ return [c(() => n.icon), c(() => n.label)];
2386
2389
  },
2387
2390
  children: (e) => [i(v, {
2388
2391
  get when() {
@@ -2399,32 +2402,32 @@ var Ra = {
2399
2402
  },
2400
2403
  type: "button",
2401
2404
  get primary() {
2402
- return t.primary;
2405
+ return n.primary;
2403
2406
  },
2404
2407
  get color() {
2405
- return t.color;
2408
+ return n.color;
2406
2409
  },
2407
2410
  get disabled() {
2408
- return x();
2411
+ return S();
2409
2412
  },
2410
2413
  onClick: () => {
2411
- x() || b(!m());
2414
+ S() || x(!_());
2412
2415
  },
2413
2416
  "aria-label": "Toggle dropdown",
2414
2417
  get "aria-expanded"() {
2415
- return m();
2418
+ return _();
2416
2419
  },
2417
2420
  get children() {
2418
2421
  return i(H, {
2419
2422
  get path() {
2420
- return t.dropdownIcon;
2423
+ return n.dropdownIcon;
2421
2424
  },
2422
2425
  size: "1.25rem"
2423
2426
  });
2424
2427
  }
2425
2428
  }), null), s(e, i(va, {
2426
2429
  get isOpen() {
2427
- return m();
2430
+ return _();
2428
2431
  },
2429
2432
  get class() {
2430
2433
  return Va.menu;
@@ -2432,12 +2435,12 @@ var Ra = {
2432
2435
  get children() {
2433
2436
  return i(g, {
2434
2437
  get each() {
2435
- return t.items;
2438
+ return n.items;
2436
2439
  },
2437
2440
  children: (e) => (() => {
2438
2441
  var t = Ha();
2439
2442
  return t.$$click = (t) => {
2440
- t.stopPropagation(), C(e);
2443
+ t.stopPropagation(), T(e);
2441
2444
  }, s(t, i(H, {
2442
2445
  path: le,
2443
2446
  color: "var(--elmethis-color-primary-weak)",
@@ -2451,8 +2454,8 @@ var Ra = {
2451
2454
  }), null), s(t, i(B, { get children() {
2452
2455
  return e.label;
2453
2456
  } }), null), o((n) => {
2454
- var i = I(Va.item, yn.text, e.id === a() && Va.selected, e.disabled && Va["item-disabled"]), o = e.id === a();
2455
- return i !== n.e && r(t, n.e = i), o !== n.t && u(t, "aria-selected", n.t = o), n;
2457
+ var i = I(Va.item, yn.text, e.id === d() && Va.selected, e.disabled && Va["item-disabled"]), a = e.id === d();
2458
+ return i !== n.e && r(t, n.e = i), a !== n.t && u(t, "aria-selected", n.t = a), n;
2456
2459
  }, {
2457
2460
  e: void 0,
2458
2461
  t: void 0
@@ -2465,17 +2468,17 @@ var Ra = {
2465
2468
  };
2466
2469
  a(["click"]);
2467
2470
  var Wa = {
2468
- "elm-select": "_elm-select_1962w_1",
2469
- disabled: "_disabled_1962w_23",
2470
- active: "_active_1962w_27",
2471
- label: "_label_1962w_31",
2472
- "label-active": "_label-active_1962w_44",
2473
- body: "_body_1962w_49",
2474
- "selected-option": "_selected-option_1962w_56",
2475
- "option-content": "_option-content_1962w_59",
2476
- fallback: "_fallback_1962w_66",
2477
- pulldown: "_pulldown_1962w_74",
2478
- option: "_option_1962w_59"
2471
+ "elm-select": "_elm-select_1y6m3_1",
2472
+ disabled: "_disabled_1y6m3_23",
2473
+ active: "_active_1y6m3_27",
2474
+ label: "_label_1y6m3_31",
2475
+ "label-active": "_label-active_1y6m3_44",
2476
+ body: "_body_1y6m3_49",
2477
+ "selected-option": "_selected-option_1y6m3_56",
2478
+ "option-content": "_option-content_1y6m3_59",
2479
+ fallback: "_fallback_1y6m3_66",
2480
+ pulldown: "_pulldown_1y6m3_74",
2481
+ option: "_option_1y6m3_59"
2479
2482
  }, Ga = /*#__PURE__*/ m("<div><span></span><div><div>"), Ka = /*#__PURE__*/ m("<div><span>"), qa = /*#__PURE__*/ m("<div>"), Ja = (e) => {
2480
2483
  let [t, n] = P(e, [
2481
2484
  "ref",
@@ -2545,7 +2548,7 @@ var Wa = {
2545
2548
  } }), null), o(() => r(t, Wa["option-content"])), t;
2546
2549
  })()
2547
2550
  })), s(y, i(H, {
2548
- path: ke,
2551
+ path: Oe,
2549
2552
  size: "1.5rem"
2550
2553
  }), null), s(y, i(va, {
2551
2554
  get isOpen() {
@@ -2613,13 +2616,13 @@ var Ya = (e = {}) => {
2613
2616
  toggle: () => n((e) => !e)
2614
2617
  };
2615
2618
  }, Xa = {
2616
- "elm-block-image": "_elm-block-image_1l7h5_1",
2617
- "image-container": "_image-container_1l7h5_11",
2618
- image: "_image_1l7h5_11",
2619
- "caption-box": "_caption-box_1l7h5_33",
2620
- "caption-icon": "_caption-icon_1l7h5_41"
2619
+ "elm-block-image": "_elm-block-image_pjk5z_1",
2620
+ "image-container": "_image-container_pjk5z_11",
2621
+ image: "_image_pjk5z_11",
2622
+ "caption-box": "_caption-box_pjk5z_33",
2623
+ "caption-icon": "_caption-icon_pjk5z_41"
2621
2624
  }, Za = /*#__PURE__*/ m("<img>", !0, !1, !1), Qa = /*#__PURE__*/ m("<figure><div>"), $a = /*#__PURE__*/ m("<figcaption><span>"), eo = (e) => {
2622
- let [n, a] = P(A({ enableModal: !0 }, e), [
2625
+ let n = A({ enableModal: !0 }, e), [a, p] = P(n, [
2623
2626
  "class",
2624
2627
  "children",
2625
2628
  "src",
@@ -2630,13 +2633,13 @@ var Ya = (e = {}) => {
2630
2633
  "caption",
2631
2634
  "width",
2632
2635
  "height"
2633
- ]), { Modal: p, isOpen: m, show: h, hide: g } = Ya(), _ = () => {
2634
- n.enableModal && h();
2635
- }, y = (e) => (() => {
2636
- var i = Za();
2637
- return t(i, "click", e ? g : void 0, !0), u(i, "loading", e ? "lazy" : void 0), u(i, "fetchpriority", e ? "low" : "auto"), o((t) => {
2638
- var a = Xa.image, o = n.src, s = n.alt ?? n.caption ?? "Image", c = e ? void 0 : n.srcSet, l = e ? void 0 : n.sizes, f = n.width, p = n.height, h = n.enableModal ? m() ? "zoom-out" : "zoom-in" : "default", g = n.width && n.height ? `${n.width} / ${n.height}` : "auto";
2639
- return a !== t.e && r(i, t.e = a), o !== t.t && u(i, "src", t.t = o), s !== t.a && u(i, "alt", t.a = s), c !== t.o && u(i, "srcset", t.o = c), l !== t.i && u(i, "sizes", t.i = l), f !== t.n && u(i, "width", t.n = f), p !== t.s && u(i, "height", t.s = p), h !== t.h && d(i, "--elmethis-scoped-cursor", t.h = h), g !== t.r && d(i, "--elmethis-scoped-aspect-ratio", t.r = g), t;
2636
+ ]), { Modal: m, isOpen: h, show: g, hide: _ } = Ya(), y = () => {
2637
+ a.enableModal && g();
2638
+ }, b = (e) => (() => {
2639
+ var n = Za();
2640
+ return t(n, "click", e ? _ : void 0, !0), u(n, "loading", e ? "lazy" : void 0), u(n, "fetchpriority", e ? "low" : "auto"), o((t) => {
2641
+ var i = Xa.image, o = a.src, s = a.alt ?? a.caption ?? "Image", c = e ? void 0 : a.srcSet, l = e ? void 0 : a.sizes, f = a.width, p = a.height, m = a.enableModal ? h() ? "zoom-out" : "zoom-in" : "default", g = a.width && a.height ? `${a.width} / ${a.height}` : "auto";
2642
+ return i !== t.e && r(n, t.e = i), o !== t.t && u(n, "src", t.t = o), s !== t.a && u(n, "alt", t.a = s), c !== t.o && u(n, "srcset", t.o = c), l !== t.i && u(n, "sizes", t.i = l), f !== t.n && u(n, "width", t.n = f), p !== t.s && u(n, "height", t.s = p), m !== t.h && d(n, "--elmethis-scoped-cursor", t.h = m), g !== t.r && d(n, "--elmethis-scoped-aspect-ratio", t.r = g), t;
2640
2643
  }, {
2641
2644
  e: void 0,
2642
2645
  t: void 0,
@@ -2647,20 +2650,20 @@ var Ya = (e = {}) => {
2647
2650
  s: void 0,
2648
2651
  h: void 0,
2649
2652
  r: void 0
2650
- }), i;
2653
+ }), n;
2651
2654
  })();
2652
2655
  return (() => {
2653
2656
  var e = Qa(), t = e.firstChild;
2654
- return f(e, l(a, { get class() {
2655
- return I(Xa["elm-block-image"], n.class);
2656
- } }), !1, !0), t.$$click = _, s(t, () => y(!1)), s(e, i(v, {
2657
+ return f(e, l(p, { get class() {
2658
+ return I(Xa["elm-block-image"], a.class);
2659
+ } }), !1, !0), t.$$click = y, s(t, () => b(!1)), s(e, i(v, {
2657
2660
  get when() {
2658
- return n.caption;
2661
+ return a.caption;
2659
2662
  },
2660
2663
  children: (e) => (() => {
2661
2664
  var t = $a(), n = t.firstChild;
2662
2665
  return s(n, i(H, {
2663
- path: Ae,
2666
+ path: ke,
2664
2667
  size: "1.25rem"
2665
2668
  })), s(t, i(B, {
2666
2669
  size: "1rem",
@@ -2675,20 +2678,20 @@ var Ya = (e = {}) => {
2675
2678
  t: void 0
2676
2679
  }), t;
2677
2680
  })()
2678
- }), null), s(e, i(p, { get children() {
2679
- return c(() => !!m())() && y(!0);
2681
+ }), null), s(e, i(m, { get children() {
2682
+ return c(() => !!h())() && b(!0);
2680
2683
  } }), null), o(() => r(t, Xa["image-container"])), e;
2681
2684
  })();
2682
2685
  };
2683
2686
  a(["click"]);
2684
2687
  var to = {
2685
- "elm-table-frame": "_elm-table-frame_5062u_2",
2686
- "elm-table-scroll": "_elm-table-scroll_5062u_45",
2687
- "elm-table": "_elm-table_5062u_2",
2688
- caption: "_caption_5062u_63",
2689
- "caption-inner": "_caption-inner_5062u_73",
2690
- spacing: "_spacing_5062u_80",
2691
- "sticky-row-header": "_sticky-row-header_5062u_86"
2688
+ "elm-table-frame": "_elm-table-frame_mbsj5_2",
2689
+ "elm-table-scroll": "_elm-table-scroll_mbsj5_45",
2690
+ "elm-table": "_elm-table_mbsj5_2",
2691
+ caption: "_caption_mbsj5_63",
2692
+ "caption-inner": "_caption-inner_mbsj5_73",
2693
+ spacing: "_spacing_mbsj5_80",
2694
+ "sticky-row-header": "_sticky-row-header_mbsj5_86"
2692
2695
  }, no = S(() => !1), ro = S(() => "body"), io = /*#__PURE__*/ m("<div><div><table>"), ao = /*#__PURE__*/ m("<caption><span><span></span><span></span><span>"), oo = (e) => {
2693
2696
  let [t, n] = P(e, [
2694
2697
  "class",
@@ -2836,55 +2839,55 @@ var to = {
2836
2839
  return Co(e);
2837
2840
  }
2838
2841
  }, To = (e) => {
2839
- let [t, n] = P(A({ language: "txt" }, e), [
2842
+ let t = A({ language: "txt" }, e), [n, r] = P(t, [
2840
2843
  "class",
2841
2844
  "code",
2842
2845
  "language"
2843
- ]), r = 0, [a] = E(() => {
2844
- let e = t.code, n = t.language, i = ++r;
2846
+ ]), a = 0, [o] = E(() => {
2847
+ let e = n.code, t = n.language, r = ++a;
2845
2848
  return e ? {
2846
2849
  code: e,
2847
- language: n,
2848
- generation: i
2850
+ language: t,
2851
+ generation: r
2849
2852
  } : !1;
2850
- }, ({ code: e, language: t, generation: n }) => wo(e, t, () => n !== r), { ssrLoadFrom: "server" });
2853
+ }, ({ code: e, language: t, generation: n }) => wo(e, t, () => n !== a), { ssrLoadFrom: "server" });
2851
2854
  return M(() => {
2852
- r += 1;
2855
+ a += 1;
2853
2856
  }), i(y, {
2854
2857
  get fallback() {
2855
2858
  return (() => {
2856
2859
  var e = yo();
2857
- return f(e, l(n, {
2860
+ return f(e, l(r, {
2858
2861
  get class() {
2859
- return I(vo["elm-shiki-highlighter"], t.class);
2862
+ return I(vo["elm-shiki-highlighter"], n.class);
2860
2863
  },
2861
2864
  get innerHTML() {
2862
- return Co(t.code);
2865
+ return Co(n.code);
2863
2866
  }
2864
2867
  }), !1, !1), e;
2865
2868
  })();
2866
2869
  },
2867
2870
  get children() {
2868
2871
  var e = yo();
2869
- return f(e, l(n, {
2872
+ return f(e, l(r, {
2870
2873
  get class() {
2871
- return I(vo["elm-shiki-highlighter"], t.class);
2874
+ return I(vo["elm-shiki-highlighter"], n.class);
2872
2875
  },
2873
2876
  get innerHTML() {
2874
- return a() ?? "";
2877
+ return o() ?? "";
2875
2878
  }
2876
2879
  }), !1, !1), e;
2877
2880
  }
2878
2881
  });
2879
2882
  }, Eo = {
2880
- "elm-code-block": "_elm-code-block_rca55_1",
2881
- "language-icon": "_language-icon_rca55_16",
2882
- caption: "_caption_rca55_21",
2883
- "copy-icon": "_copy-icon_rca55_28",
2884
- divider: "_divider_rca55_32",
2885
- code: "_code_rca55_39"
2883
+ "elm-code-block": "_elm-code-block_vp5qr_1",
2884
+ "language-icon": "_language-icon_vp5qr_16",
2885
+ caption: "_caption_vp5qr_21",
2886
+ "copy-icon": "_copy-icon_vp5qr_28",
2887
+ divider: "_divider_vp5qr_32",
2888
+ code: "_code_vp5qr_39"
2886
2889
  }, Do = /*#__PURE__*/ m("<figure><span></span><span></span><div></div><hr><div>"), Oo = (e) => {
2887
- let [t, n] = P(A({ language: "txt" }, e), [
2890
+ let t = A({ language: "txt" }, e), [n, a] = P(t, [
2888
2891
  "class",
2889
2892
  "children",
2890
2893
  "code",
@@ -2892,25 +2895,25 @@ var to = {
2892
2895
  "caption"
2893
2896
  ]);
2894
2897
  return (() => {
2895
- var e = Do(), a = e.firstChild, u = a.nextSibling, d = u.nextSibling, p = d.nextSibling, m = p.nextSibling;
2896
- return f(e, l(n, { get class() {
2897
- return I(Eo["elm-code-block"], t.class);
2898
- } }), !1, !0), s(a, i(fr, { get language() {
2899
- return t.language;
2898
+ var e = Do(), t = e.firstChild, u = t.nextSibling, d = u.nextSibling, p = d.nextSibling, m = p.nextSibling;
2899
+ return f(e, l(a, { get class() {
2900
+ return I(Eo["elm-code-block"], n.class);
2901
+ } }), !1, !0), s(t, i(fr, { get language() {
2902
+ return n.language;
2900
2903
  } })), s(u, i(B, { get children() {
2901
- return [c(() => t.caption || t.language), c(() => t.children)];
2904
+ return [c(() => n.caption || n.language), c(() => n.children)];
2902
2905
  } })), s(d, i(or, { get content() {
2903
- return t.code;
2906
+ return n.code;
2904
2907
  } })), s(m, i(To, {
2905
2908
  get code() {
2906
- return t.code;
2909
+ return n.code;
2907
2910
  },
2908
2911
  get language() {
2909
- return t.language;
2912
+ return n.language;
2910
2913
  }
2911
2914
  })), o((e) => {
2912
- var t = Eo["language-icon"], n = Eo.caption, i = Eo["copy-icon"], o = Eo.divider, s = Eo.code;
2913
- return t !== e.e && r(a, e.e = t), n !== e.t && r(u, e.t = n), i !== e.a && r(d, e.a = i), o !== e.o && r(p, e.o = o), s !== e.i && r(m, e.i = s), e;
2915
+ var n = Eo["language-icon"], i = Eo.caption, a = Eo["copy-icon"], o = Eo.divider, s = Eo.code;
2916
+ return n !== e.e && r(t, e.e = n), i !== e.t && r(u, e.t = i), a !== e.a && r(d, e.a = a), o !== e.o && r(p, e.o = o), s !== e.i && r(m, e.i = s), e;
2914
2917
  }, {
2915
2918
  e: void 0,
2916
2919
  t: void 0,
@@ -3060,7 +3063,7 @@ var to = {
3060
3063
  "markdown",
3061
3064
  "isStreaming"
3062
3065
  ]), r = [], a = w(() => {
3063
- let e = t.markdown, n = jt.lexer(e, { gfm: !0 });
3066
+ let e = t.markdown, n = At.lexer(e, { gfm: !0 });
3064
3067
  if (!(t.isStreaming && n.length > 0)) return r = n, {
3065
3068
  stable: n,
3066
3069
  tail: []
@@ -3205,10 +3208,10 @@ var qo = (e) => {
3205
3208
  }), !1, !1), r;
3206
3209
  })();
3207
3210
  }, Jo = (e) => {
3208
- let [t, n] = P(A({
3211
+ let t = A({
3209
3212
  autoHeight: !0,
3210
3213
  allowScripts: !1
3211
- }, e), [
3214
+ }, e), [n, r] = P(t, [
3212
3215
  "allowScripts",
3213
3216
  "autoHeight",
3214
3217
  "class",
@@ -3220,55 +3223,55 @@ var qo = (e) => {
3220
3223
  "src",
3221
3224
  "style",
3222
3225
  "title"
3223
- ]), r = Go(n), a = (e) => i(qo, {
3226
+ ]), a = Go(r), o = (e) => i(qo, {
3224
3227
  get html() {
3225
- return t.html;
3228
+ return n.html;
3226
3229
  },
3227
3230
  get src() {
3228
- return t.src;
3231
+ return n.src;
3229
3232
  },
3230
3233
  autoHeight: e,
3231
3234
  get allowScripts() {
3232
- return t.allowScripts;
3235
+ return n.allowScripts;
3233
3236
  },
3234
3237
  get sandbox() {
3235
- return t.sandbox;
3238
+ return n.sandbox;
3236
3239
  },
3237
3240
  get title() {
3238
- return t.title;
3241
+ return n.title;
3239
3242
  },
3240
3243
  get class() {
3241
- return t.class;
3244
+ return n.class;
3242
3245
  },
3243
3246
  get style() {
3244
- return t.style;
3247
+ return n.style;
3245
3248
  },
3246
3249
  get height() {
3247
- return t.height;
3250
+ return n.height;
3248
3251
  },
3249
3252
  get forwardedRef() {
3250
- return t.ref;
3253
+ return n.ref;
3251
3254
  },
3252
- nativeProps: r
3255
+ nativeProps: a
3253
3256
  });
3254
3257
  return i(v, {
3255
3258
  get when() {
3256
- return t.autoHeight;
3259
+ return n.autoHeight;
3257
3260
  },
3258
3261
  keyed: !0,
3259
3262
  get fallback() {
3260
- return a(!1);
3263
+ return o(!1);
3261
3264
  },
3262
3265
  get children() {
3263
- return a(!0);
3266
+ return o(!0);
3264
3267
  }
3265
3268
  });
3266
3269
  }, Yo = {
3267
- "elm-html-viewer": "_elm-html-viewer_1fg2g_1",
3268
- header: "_header_1fg2g_15",
3269
- "icon-button": "_icon-button_1fg2g_23",
3270
- divider: "_divider_1fg2g_49",
3271
- content: "_content_1fg2g_57"
3270
+ "elm-html-viewer": "_elm-html-viewer_17ksq_1",
3271
+ header: "_header_17ksq_15",
3272
+ "icon-button": "_icon-button_17ksq_23",
3273
+ divider: "_divider_17ksq_49",
3274
+ content: "_content_17ksq_57"
3272
3275
  }, Xo = /*#__PURE__*/ m("<figure><div><button type=button aria-label=Download></button><button type=button aria-label=\"Open in new tab\"></button></div><hr><div>"), Zo = (e) => {
3273
3276
  let [t, n] = P(e, [
3274
3277
  "allowScripts",
@@ -3326,10 +3329,10 @@ var qo = (e) => {
3326
3329
  return f(e, l(n, { get class() {
3327
3330
  return I(Yo["elm-html-viewer"], t.class);
3328
3331
  } }), !1, !0), c.$$click = d, s(c, i(H, {
3329
- path: ge,
3332
+ path: he,
3330
3333
  size: "1.25rem"
3331
3334
  })), p.$$click = u, s(p, i(H, {
3332
- path: Me,
3335
+ path: je,
3333
3336
  size: "1.25rem"
3334
3337
  })), s(h, i(Jo, {
3335
3338
  get html() {
@@ -3364,24 +3367,24 @@ var qo = (e) => {
3364
3367
  };
3365
3368
  a(["click"]);
3366
3369
  var W = {
3367
- "elm-slider": "_elm-slider_1btqa_1",
3368
- vertical: "_vertical_1btqa_7",
3369
- disabled: "_disabled_1btqa_12",
3370
- track: "_track_1btqa_17",
3371
- rail: "_rail_1btqa_44",
3372
- "restricted-start": "_restricted-start_1btqa_58",
3373
- "restricted-end": "_restricted-end_1btqa_59",
3374
- fill: "_fill_1btqa_96",
3375
- thumb: "_thumb_1btqa_112",
3376
- "has-markers": "_has-markers_1btqa_143",
3377
- "has-marker-labels": "_has-marker-labels_1btqa_147",
3378
- marks: "_marks_1btqa_169",
3379
- mark: "_mark_1btqa_169",
3380
- "mark-start": "_mark-start_1btqa_194",
3381
- "mark-end": "_mark-end_1btqa_198",
3382
- tick: "_tick_1btqa_210",
3383
- "mark-restricted": "_mark-restricted_1btqa_223",
3384
- "mark-label": "_mark-label_1btqa_227"
3370
+ "elm-slider": "_elm-slider_1pdn4_1",
3371
+ vertical: "_vertical_1pdn4_7",
3372
+ disabled: "_disabled_1pdn4_12",
3373
+ track: "_track_1pdn4_17",
3374
+ rail: "_rail_1pdn4_44",
3375
+ "restricted-start": "_restricted-start_1pdn4_58",
3376
+ "restricted-end": "_restricted-end_1pdn4_59",
3377
+ fill: "_fill_1pdn4_96",
3378
+ thumb: "_thumb_1pdn4_112",
3379
+ "has-markers": "_has-markers_1pdn4_143",
3380
+ "has-marker-labels": "_has-marker-labels_1pdn4_147",
3381
+ marks: "_marks_1pdn4_169",
3382
+ mark: "_mark_1pdn4_169",
3383
+ "mark-start": "_mark-start_1pdn4_194",
3384
+ "mark-end": "_mark-end_1pdn4_198",
3385
+ tick: "_tick_1pdn4_210",
3386
+ "mark-restricted": "_mark-restricted_1pdn4_223",
3387
+ "mark-label": "_mark-label_1pdn4_227"
3385
3388
  }, Qo = /*#__PURE__*/ m("<div aria-hidden=true>"), $o = /*#__PURE__*/ m("<div><div><div aria-hidden=true><div></div><div></div><div></div></div><span aria-hidden=true>"), es = /*#__PURE__*/ m("<i>"), ts = /*#__PURE__*/ m("<span>"), ns = 500, rs = (e, t, n) => Math.min(n, Math.max(t, e)), is = (e) => Math.round(e * 1e9) / 1e9, as = (e) => typeof e == "string" || typeof e == "number" ? String(e).length : Array.isArray(e) ? e.reduce((e, t) => e + as(t), 0) : 0, os = (e, t, n, r) => {
3386
3389
  if (!e || n === t) return [];
3387
3390
  let i = Math.abs(r);
@@ -3450,47 +3453,47 @@ var W = {
3450
3453
  ...e,
3451
3454
  label: n
3452
3455
  };
3453
- })), ce = w(() => se().reduce((e, t) => Math.max(e, as(t.label())), 0)), [le, ue] = D(0), de = /* @__PURE__ */ new Set(), fe, pe, L, me = () => {
3456
+ })), ce = w(() => se().reduce((e, t) => Math.max(e, as(t.label())), 0)), [le, ue] = D(0), L = /* @__PURE__ */ new Set(), de, fe, R, pe = () => {
3454
3457
  let e = 0;
3455
- for (let t of de) e = Math.max(e, t.getBoundingClientRect().width);
3458
+ for (let t of L) e = Math.max(e, t.getBoundingClientRect().width);
3456
3459
  ue(Math.ceil(e));
3457
- }, he = (e) => {
3458
- de.add(e), fe?.observe(e), M(() => {
3459
- de.delete(e), fe?.unobserve(e), me();
3460
+ }, me = (e) => {
3461
+ L.add(e), de?.observe(e), M(() => {
3462
+ L.delete(e), de?.unobserve(e), pe();
3460
3463
  });
3461
- }, ge = (e = L) => {
3462
- e === void 0 || e !== L || (pe?.hasPointerCapture(e) && pe.releasePointerCapture(e), L === e && (L = void 0));
3464
+ }, he = (e = R) => {
3465
+ e !== void 0 && e === R && (fe?.hasPointerCapture(e) && fe.releasePointerCapture(e), R === e && (R = void 0));
3463
3466
  };
3464
3467
  N(() => {
3465
- fe = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(me);
3466
- for (let e of de) fe?.observe(e);
3467
- me(), M(() => {
3468
- ge(), fe?.disconnect(), fe = void 0, de.clear();
3468
+ de = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(pe);
3469
+ for (let e of L) de?.observe(e);
3470
+ pe(), M(() => {
3471
+ he(), de?.disconnect(), de = void 0, L.clear();
3469
3472
  });
3470
3473
  }), C(() => {
3471
- t.disabled && ge();
3474
+ t.disabled && he();
3472
3475
  });
3473
- let _e = (e, t) => {
3474
- if (pe == null) return A();
3475
- let n = pe.getBoundingClientRect(), r = m() === "vertical" ? n.height === 0 ? 0 : rs((n.bottom - t) / n.height, 0, 1) : n.width === 0 ? 0 : rs((e - n.left) / n.width, 0, 1);
3476
+ let ge = (e, t) => {
3477
+ if (fe == null) return A();
3478
+ let n = fe.getBoundingClientRect(), r = m() === "vertical" ? n.height === 0 ? 0 : rs((n.bottom - t) / n.height, 0, 1) : n.width === 0 ? 0 : rs((e - n.left) / n.width, 0, 1);
3476
3479
  return T(a() + r * (c() - a()));
3480
+ }, _e = (e) => {
3481
+ t.disabled || (R !== void 0 && R !== e.pointerId && he(), e.currentTarget.setPointerCapture(e.pointerId), R = e.pointerId, k(ge(e.clientX, e.clientY)), V(t.onPointerDown, e));
3477
3482
  }, ve = (e) => {
3478
- t.disabled || (L !== void 0 && L !== e.pointerId && ge(), e.currentTarget.setPointerCapture(e.pointerId), L = e.pointerId, k(_e(e.clientX, e.clientY)), V(t.onPointerDown, e));
3479
- }, ye = (e) => {
3480
3483
  if (!t.disabled) {
3481
- if (L !== e.pointerId || !e.currentTarget.hasPointerCapture(e.pointerId)) {
3484
+ if (R !== e.pointerId || !e.currentTarget.hasPointerCapture(e.pointerId)) {
3482
3485
  V(t.onPointerMove, e);
3483
3486
  return;
3484
3487
  }
3485
- k(_e(e.clientX, e.clientY)), V(t.onPointerMove, e);
3488
+ k(ge(e.clientX, e.clientY)), V(t.onPointerMove, e);
3486
3489
  }
3490
+ }, ye = (e) => {
3491
+ t.disabled || (he(e.pointerId), V(t.onPointerUp, e));
3487
3492
  }, be = (e) => {
3488
- t.disabled || (ge(e.pointerId), V(t.onPointerUp, e));
3493
+ t.disabled || (he(e.pointerId), V(t.onPointerCancel, e));
3489
3494
  }, xe = (e) => {
3490
- t.disabled || (ge(e.pointerId), V(t.onPointerCancel, e));
3495
+ R === e.pointerId && (R = void 0), t.disabled || V(t.onLostPointerCapture, e);
3491
3496
  }, Se = (e) => {
3492
- L === e.pointerId && (L = void 0), t.disabled || V(t.onLostPointerCapture, e);
3493
- }, Ce = (e) => {
3494
3497
  if (t.disabled) return;
3495
3498
  let n = Math.abs(u());
3496
3499
  switch (e.key) {
@@ -3511,16 +3514,14 @@ var W = {
3511
3514
  case "Home":
3512
3515
  e.preventDefault(), k(b());
3513
3516
  break;
3514
- case "End":
3515
- e.preventDefault(), k(x());
3516
- break;
3517
+ case "End": e.preventDefault(), k(x());
3517
3518
  }
3518
3519
  V(t.onKeyDown, e);
3519
3520
  };
3520
3521
  return (() => {
3521
3522
  var e = $o(), a = e.firstChild, c = a.firstChild, u = c.firstChild, _ = u.nextSibling, y = _.nextSibling, S = c.nextSibling;
3522
3523
  return h((e) => {
3523
- pe = e, typeof t.ref == "function" && t.ref(e);
3524
+ fe = e, typeof t.ref == "function" && t.ref(e);
3524
3525
  }, a), f(a, l({ get tabIndex() {
3525
3526
  return t.disabled ? -1 : 0;
3526
3527
  } }, n, {
@@ -3543,12 +3544,12 @@ var W = {
3543
3544
  get "aria-disabled"() {
3544
3545
  return t.disabled || void 0;
3545
3546
  },
3546
- onPointerDown: ve,
3547
- onPointerMove: ye,
3548
- onPointerUp: be,
3549
- onPointerCancel: xe,
3550
- onLostPointerCapture: Se,
3551
- onKeyDown: Ce
3547
+ onPointerDown: _e,
3548
+ onPointerMove: ve,
3549
+ onPointerUp: ye,
3550
+ onPointerCancel: be,
3551
+ onLostPointerCapture: xe,
3552
+ onKeyDown: Se
3552
3553
  }), !1, !0), s(a, i(v, {
3553
3554
  get when() {
3554
3555
  return se().length > 0;
@@ -3575,7 +3576,7 @@ var W = {
3575
3576
  },
3576
3577
  get children() {
3577
3578
  var t = ts();
3578
- return h(he, t), s(t, () => e.label()), o(() => r(t, W["mark-label"])), t;
3579
+ return h(me, t), s(t, () => e.label()), o(() => r(t, W["mark-label"])), t;
3579
3580
  }
3580
3581
  }), null), o((t) => {
3581
3582
  var i = I(W.mark, n() === 0 && W["mark-start"], n() === se().length - 1 && W["mark-end"], (e.value < b() || e.value > x()) && W["mark-restricted"]), o = e.ratio;
@@ -3588,7 +3589,7 @@ var W = {
3588
3589
  })), o(() => r(e, W.marks)), e;
3589
3590
  }
3590
3591
  }), S), o((n) => {
3591
- var i = I(W["elm-slider"], m() === "vertical" && W.vertical, t.disabled && W.disabled, t.markers && W["has-markers"], t.markerLabels && W["has-marker-labels"], t.class), a = z(t.style, {
3592
+ var i = I(W["elm-slider"], m() === "vertical" && W.vertical, t.disabled && W.disabled, t.markers && W["has-markers"], t.markerLabels && W["has-marker-labels"], t.class), a = cn(t.style, {
3592
3593
  "--elmethis-scoped-value-ratio": j(),
3593
3594
  "--elmethis-scoped-inner-min-ratio": te(),
3594
3595
  "--elmethis-scoped-inner-max-ratio": ne(),
@@ -3609,15 +3610,15 @@ var W = {
3609
3610
  }), e;
3610
3611
  })();
3611
3612
  }, cs = {
3612
- loading: "_loading_35514_23",
3613
- "elm-text-area": "_elm-text-area_35514_37",
3614
- disabled: "_disabled_35514_59",
3615
- active: "_active_35514_63",
3616
- header: "_header_35514_68",
3617
- "label-active": "_label-active_35514_81",
3618
- requierd: "_requierd_35514_86",
3619
- body: "_body_35514_92",
3620
- textarea: "_textarea_35514_97"
3613
+ loading: "_loading_mhzhq_23",
3614
+ "elm-text-area": "_elm-text-area_mhzhq_37",
3615
+ disabled: "_disabled_mhzhq_59",
3616
+ active: "_active_mhzhq_63",
3617
+ header: "_header_mhzhq_68",
3618
+ "label-active": "_label-active_mhzhq_81",
3619
+ requierd: "_requierd_mhzhq_86",
3620
+ body: "_body_mhzhq_92",
3621
+ textarea: "_textarea_mhzhq_97"
3621
3622
  }, ls = /*#__PURE__*/ m("<span>*"), us = /*#__PURE__*/ m("<label><span><span></span></span><div><textarea></textarea></div><div>"), ds = (e) => {
3622
3623
  let [t, n] = P(e, [
3623
3624
  "ref",
@@ -3650,7 +3651,7 @@ var W = {
3650
3651
  return (() => {
3651
3652
  var e = us(), u = e.firstChild, m = u.firstChild, g = u.nextSibling, w = g.firstChild, T = g.nextSibling;
3652
3653
  return s(u, () => t.icon ?? i(H, {
3653
- path: Ge,
3654
+ path: We,
3654
3655
  size: "0.75rem"
3655
3656
  }), m), s(m, () => t.label, null), s(m, i(v, {
3656
3657
  get when() {
@@ -3722,18 +3723,18 @@ var W = {
3722
3723
  }), e;
3723
3724
  })();
3724
3725
  }, G = {
3725
- loading: "_loading_b0nif_23",
3726
- "elm-text-field": "_elm-text-field_b0nif_37",
3727
- disabled: "_disabled_b0nif_59",
3728
- active: "_active_b0nif_63",
3729
- header: "_header_b0nif_68",
3730
- "label-active": "_label-active_b0nif_81",
3731
- requierd: "_requierd_b0nif_86",
3732
- body: "_body_b0nif_92",
3733
- input: "_input_b0nif_100",
3734
- "right-icon-box": "_right-icon-box_b0nif_121",
3735
- "clickable-icon": "_clickable-icon_b0nif_126",
3736
- "prefix-suffix": "_prefix-suffix_b0nif_151"
3726
+ loading: "_loading_1w7sf_23",
3727
+ "elm-text-field": "_elm-text-field_1w7sf_37",
3728
+ disabled: "_disabled_1w7sf_59",
3729
+ active: "_active_1w7sf_63",
3730
+ header: "_header_1w7sf_68",
3731
+ "label-active": "_label-active_1w7sf_81",
3732
+ requierd: "_requierd_1w7sf_86",
3733
+ body: "_body_1w7sf_92",
3734
+ input: "_input_1w7sf_100",
3735
+ "right-icon-box": "_right-icon-box_1w7sf_121",
3736
+ "clickable-icon": "_clickable-icon_1w7sf_126",
3737
+ "prefix-suffix": "_prefix-suffix_1w7sf_151"
3737
3738
  }, fs = /*#__PURE__*/ m("<span>*"), ps = /*#__PURE__*/ m("<label><span><span></span></span><div><input><div><span></span><button type=button></button><button type=button aria-label=\"Clear text\"></button></div></div><div>"), ms = /*#__PURE__*/ m("<span>"), hs = (e) => {
3738
3739
  let [t, n] = P(e, [
3739
3740
  "ref",
@@ -3773,7 +3774,7 @@ var W = {
3773
3774
  return (() => {
3774
3775
  var e = ps(), m = e.firstChild, T = m.firstChild, E = m.nextSibling, D = E.firstChild, O = D.nextSibling, k = O.firstChild, A = k.nextSibling, j = A.nextSibling, M = E.nextSibling;
3775
3776
  return s(m, () => t.icon ?? i(H, {
3776
- path: Ue,
3777
+ path: He,
3777
3778
  size: "0.75rem"
3778
3779
  }), T), s(T, () => t.label, null), s(T, i(v, {
3779
3780
  get when() {
@@ -3852,12 +3853,12 @@ var W = {
3852
3853
  }
3853
3854
  })), A.$$click = () => _((e) => e === "text" ? "password" : "text"), s(A, i(H, {
3854
3855
  get path() {
3855
- return g() === "text" ? ve : _e;
3856
+ return g() === "text" ? _e : ge;
3856
3857
  },
3857
3858
  size: "1.25rem",
3858
3859
  color: "gray"
3859
3860
  })), j.$$click = () => b(""), s(j, i(H, {
3860
- path: Ke,
3861
+ path: Ge,
3861
3862
  size: "1.25rem",
3862
3863
  color: "gray"
3863
3864
  })), o((n) => {
@@ -3882,36 +3883,36 @@ var W = {
3882
3883
  };
3883
3884
  a(["click"]);
3884
3885
  var K = {
3885
- "elm-audio-player": "_elm-audio-player_awii4_1",
3886
- "native-audio": "_native-audio_awii4_16",
3887
- loading: "_loading_awii4_36",
3888
- header: "_header_awii4_40",
3889
- artwork: "_artwork_awii4_46",
3890
- "artwork-error": "_artwork-error_awii4_62",
3891
- meta: "_meta_awii4_68",
3892
- title: "_title_awii4_76",
3893
- artist: "_artist_awii4_86",
3894
- equalizer: "_equalizer_awii4_97",
3895
- playing: "_playing_awii4_114",
3896
- "elm-eq": "_elm-eq_awii4_1",
3897
- seekbar: "_seekbar_awii4_146",
3898
- track: "_track_awii4_162",
3899
- fill: "_fill_awii4_171",
3900
- thumb: "_thumb_awii4_183",
3901
- "hover-thumb": "_hover-thumb_awii4_202",
3902
- "elm-pulse": "_elm-pulse_awii4_1",
3903
- controls: "_controls_awii4_239",
3904
- time: "_time_awii4_245",
3905
- "time-current": "_time-current_awii4_255",
3906
- "time-total": "_time-total_awii4_260",
3907
- transport: "_transport_awii4_264",
3908
- "icon-button": "_icon-button_awii4_272",
3909
- "play-button": "_play-button_awii4_303",
3910
- volume: "_volume_awii4_348",
3911
- "volume-slider": "_volume-slider_awii4_355",
3912
- errored: "_errored_awii4_399",
3913
- "error-notice": "_error-notice_awii4_407",
3914
- "error-message": "_error-message_awii4_417"
3886
+ "elm-audio-player": "_elm-audio-player_1nzy3_1",
3887
+ "native-audio": "_native-audio_1nzy3_16",
3888
+ loading: "_loading_1nzy3_36",
3889
+ header: "_header_1nzy3_40",
3890
+ artwork: "_artwork_1nzy3_46",
3891
+ "artwork-error": "_artwork-error_1nzy3_62",
3892
+ meta: "_meta_1nzy3_68",
3893
+ title: "_title_1nzy3_76",
3894
+ artist: "_artist_1nzy3_86",
3895
+ equalizer: "_equalizer_1nzy3_97",
3896
+ playing: "_playing_1nzy3_114",
3897
+ "elm-eq": "_elm-eq_1nzy3_1",
3898
+ seekbar: "_seekbar_1nzy3_146",
3899
+ track: "_track_1nzy3_162",
3900
+ fill: "_fill_1nzy3_171",
3901
+ thumb: "_thumb_1nzy3_183",
3902
+ "hover-thumb": "_hover-thumb_1nzy3_202",
3903
+ "elm-pulse": "_elm-pulse_1nzy3_1",
3904
+ controls: "_controls_1nzy3_239",
3905
+ time: "_time_1nzy3_245",
3906
+ "time-current": "_time-current_1nzy3_255",
3907
+ "time-total": "_time-total_1nzy3_260",
3908
+ transport: "_transport_1nzy3_264",
3909
+ "icon-button": "_icon-button_1nzy3_272",
3910
+ "play-button": "_play-button_1nzy3_303",
3911
+ volume: "_volume_1nzy3_342",
3912
+ "volume-slider": "_volume-slider_1nzy3_349",
3913
+ errored: "_errored_1nzy3_393",
3914
+ "error-notice": "_error-notice_1nzy3_401",
3915
+ "error-message": "_error-message_1nzy3_411"
3915
3916
  }, gs = /*#__PURE__*/ m("<div><audio preload=metadata></audio><div><span aria-hidden=true></span><div><span></span></div><span aria-hidden=true><i></i><i></i><i></i><i>"), _s = /*#__PURE__*/ m("<span>"), vs = /*#__PURE__*/ m("<div role=alert><span>"), ys = /*#__PURE__*/ m("<div role=slider tabindex=0 aria-label=Seek aria-valuemin=0><div aria-hidden=true><div></div></div><span aria-hidden=true></span><span aria-hidden=true>"), bs = /*#__PURE__*/ m("<div><span></span><div><button type=button></button><button type=button></button><button type=button></button></div><div><button type=button></button><input type=range min=0 max=1 step=0.01 aria-label=Volume></div><span>"), xs = (e) => {
3916
3917
  (!Number.isFinite(e) || e < 0) && (e = 0);
3917
3918
  let t = Math.floor(e), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, a = `${n > 0 ? String(r).padStart(2, "0") : String(r)}:${String(i).padStart(2, "0")}`;
@@ -3924,10 +3925,10 @@ var K = {
3924
3925
  return t;
3925
3926
  }
3926
3927
  }, Cs = (e) => {
3927
- let [t, n] = P(A({
3928
+ let t = A({
3928
3929
  errorMessage: "This audio couldn't be loaded.",
3929
3930
  seekStep: 10
3930
- }, e), [
3931
+ }, e), [n, a] = P(t, [
3931
3932
  "class",
3932
3933
  "style",
3933
3934
  "src",
@@ -3937,110 +3938,110 @@ var K = {
3937
3938
  "seekStep",
3938
3939
  "loop",
3939
3940
  "autoPlay"
3940
- ]), a, p, m = null, [g, _] = D(!1), [v, y] = D(!0), [b, x] = D(!1), [S, T] = D(0), [E, O] = D(0), [k, j] = D(1), [N, F] = D(!1), [ee, te] = D(null), ne = w(() => S() > 0 ? Math.min(1, E() / S()) : 0), re = w(() => t.title ?? Ss(t.src)), ae = w(() => N() || k() === 0 ? Xe : k() < .34 ? Je : k() < .67 ? Ye : qe), oe = () => {
3941
- m != null && (cancelAnimationFrame(m), m = null);
3942
- }, se = () => {
3943
- if (m != null) return;
3941
+ ]), p, m, g = null, [_, v] = D(!1), [y, b] = D(!0), [x, S] = D(!1), [T, E] = D(0), [O, k] = D(0), [j, N] = D(1), [F, ee] = D(!1), [te, ne] = D(null), re = w(() => T() > 0 ? Math.min(1, O() / T()) : 0), ae = w(() => n.title ?? Ss(n.src)), oe = w(() => F() || j() === 0 ? Ye : j() < .34 ? qe : j() < .67 ? Je : Ke), se = () => {
3942
+ g != null && (cancelAnimationFrame(g), g = null);
3943
+ }, ce = () => {
3944
+ if (g != null) return;
3944
3945
  let e = () => {
3945
- a && O(a.currentTime), m = requestAnimationFrame(e);
3946
+ p && k(p.currentTime), g = requestAnimationFrame(e);
3946
3947
  };
3947
- m = requestAnimationFrame(e);
3948
+ g = requestAnimationFrame(e);
3948
3949
  };
3949
- M(oe);
3950
- let ce;
3950
+ M(se);
3951
+ let le;
3951
3952
  C(() => {
3952
- let e = t.src;
3953
- if (ce === void 0) {
3954
- ce = e;
3953
+ let e = n.src;
3954
+ if (le === void 0) {
3955
+ le = e;
3955
3956
  return;
3956
3957
  }
3957
- e !== ce && (ce = e, oe(), _(!1), y(!0), x(!1), T(0), O(0), te(null));
3958
+ e !== le && (le = e, se(), v(!1), b(!0), S(!1), E(0), k(0), ne(null));
3958
3959
  });
3959
- let le = () => {
3960
- a && (a.paused ? a.play().catch(() => _(!1)) : a.pause());
3961
- }, ue = (e) => {
3962
- let t = S();
3963
- if (!a || !Number.isFinite(t) || t <= 0) return;
3960
+ let ue = () => {
3961
+ p && (p.paused ? p.play().catch(() => v(!1)) : p.pause());
3962
+ }, L = (e) => {
3963
+ let t = T();
3964
+ if (!p || !Number.isFinite(t) || t <= 0) return;
3964
3965
  let n = Math.max(0, Math.min(t, e));
3965
- a.currentTime = n, O(n);
3966
+ p.currentTime = n, k(n);
3966
3967
  }, de = (e) => {
3967
- if (!p) return 0;
3968
- let t = p.getBoundingClientRect();
3968
+ if (!m) return 0;
3969
+ let t = m.getBoundingClientRect();
3969
3970
  return t.width === 0 ? 0 : Math.max(0, Math.min(1, (e - t.left) / t.width));
3970
3971
  }, fe = (e) => {
3971
- e.currentTarget.setPointerCapture(e.pointerId), ue(de(e.clientX) * S());
3972
- }, pe = (e) => {
3972
+ e.currentTarget.setPointerCapture(e.pointerId), L(de(e.clientX) * T());
3973
+ }, R = (e) => {
3973
3974
  let t = de(e.clientX);
3974
- te(t), e.currentTarget.hasPointerCapture(e.pointerId) && ue(t * S());
3975
- }, L = (e) => {
3976
- e.key === "ArrowRight" ? (e.preventDefault(), ue(E() + t.seekStep)) : e.key === "ArrowLeft" ? (e.preventDefault(), ue(E() - t.seekStep)) : e.key === "Home" ? (e.preventDefault(), ue(0)) : e.key === "End" && (e.preventDefault(), ue(S()));
3975
+ ne(t), e.currentTarget.hasPointerCapture(e.pointerId) && L(t * T());
3976
+ }, pe = (e) => {
3977
+ e.key === "ArrowRight" ? (e.preventDefault(), L(O() + n.seekStep)) : e.key === "ArrowLeft" ? (e.preventDefault(), L(O() - n.seekStep)) : e.key === "Home" ? (e.preventDefault(), L(0)) : e.key === "End" && (e.preventDefault(), L(T()));
3977
3978
  }, me = (e) => {
3978
3979
  let t = Math.max(0, Math.min(1, e));
3979
- a && (a.volume = t, a.muted = t === 0), j(t), F(t === 0);
3980
+ p && (p.volume = t, p.muted = t === 0), N(t), ee(t === 0);
3980
3981
  }, he = () => {
3981
- if (!a) return;
3982
- let e = !a.muted;
3983
- a.muted = e, F(e);
3982
+ if (!p) return;
3983
+ let e = !p.muted;
3984
+ p.muted = e, ee(e);
3984
3985
  };
3985
3986
  return (() => {
3986
- var e = gs(), C = e.firstChild, w = C.nextSibling, D = w.firstChild, A = D.nextSibling, M = A.firstChild, P = A.nextSibling;
3987
- return f(e, l(n, {
3987
+ var e = gs(), t = e.firstChild, C = t.nextSibling, w = C.firstChild, D = w.nextSibling, A = D.firstChild, M = D.nextSibling;
3988
+ return f(e, l(a, {
3988
3989
  get class() {
3989
- return I(K["elm-audio-player"], g() && K.playing, v() && K.loading, b() && K.errored, t.class);
3990
+ return I(K["elm-audio-player"], _() && K.playing, y() && K.loading, x() && K.errored, n.class);
3990
3991
  },
3991
3992
  get style() {
3992
- return z(t.style, {
3993
- "--elmethis-scoped-progress": ne(),
3994
- "--elmethis-scoped-hover": ee() ?? 0
3993
+ return cn(n.style, {
3994
+ "--elmethis-scoped-progress": re(),
3995
+ "--elmethis-scoped-hover": te() ?? 0
3995
3996
  });
3996
3997
  }
3997
- }), !1, !0), C.addEventListener("error", () => {
3998
- oe(), _(!1), x(!0), y(!1);
3999
- }), C.addEventListener("volumechange", (e) => {
4000
- j(e.currentTarget.volume), F(e.currentTarget.muted);
4001
- }), C.addEventListener("ended", () => {
4002
- _(!1), oe();
4003
- }), C.addEventListener("pause", () => {
4004
- _(!1), oe();
4005
- }), C.addEventListener("play", () => {
4006
- _(!0), se();
4007
- }), C.addEventListener("timeupdate", (e) => {
4008
- m ?? O(e.currentTarget.currentTime);
4009
- }), C.addEventListener("playing", () => y(!1)), C.addEventListener("waiting", () => y(!0)), C.addEventListener("canplay", () => y(!1)), C.addEventListener("durationchange", (e) => T(e.currentTarget.duration)), C.addEventListener("loadedmetadata", (e) => {
4010
- T(e.currentTarget.duration), j(e.currentTarget.volume), F(e.currentTarget.muted), y(!1);
3998
+ }), !1, !0), t.addEventListener("error", () => {
3999
+ se(), v(!1), S(!0), b(!1);
4000
+ }), t.addEventListener("volumechange", (e) => {
4001
+ N(e.currentTarget.volume), ee(e.currentTarget.muted);
4002
+ }), t.addEventListener("ended", () => {
4003
+ v(!1), se();
4004
+ }), t.addEventListener("pause", () => {
4005
+ v(!1), se();
4006
+ }), t.addEventListener("play", () => {
4007
+ v(!0), ce();
4008
+ }), t.addEventListener("timeupdate", (e) => {
4009
+ g ?? k(e.currentTarget.currentTime);
4010
+ }), t.addEventListener("playing", () => b(!1)), t.addEventListener("waiting", () => b(!0)), t.addEventListener("canplay", () => b(!1)), t.addEventListener("durationchange", (e) => E(e.currentTarget.duration)), t.addEventListener("loadedmetadata", (e) => {
4011
+ E(e.currentTarget.duration), N(e.currentTarget.volume), ee(e.currentTarget.muted), b(!1);
4011
4012
  }), h((e) => {
4012
- a = e;
4013
- }, C), s(D, i(H, {
4013
+ p = e;
4014
+ }, t), s(w, i(H, {
4014
4015
  get path() {
4015
- return b() ? ie : je;
4016
+ return x() ? ie : Ae;
4016
4017
  },
4017
4018
  size: "1.25rem"
4018
- })), s(M, re), s(A, (() => {
4019
- var e = c(() => !!t.artist);
4019
+ })), s(A, ae), s(D, (() => {
4020
+ var e = c(() => !!n.artist);
4020
4021
  return () => e() && (() => {
4021
4022
  var e = _s();
4022
- return s(e, () => t.artist), o(() => r(e, K.artist)), e;
4023
+ return s(e, () => n.artist), o(() => r(e, K.artist)), e;
4023
4024
  })();
4024
4025
  })(), null), s(e, (() => {
4025
- var e = c(() => !!b());
4026
+ var e = c(() => !!x());
4026
4027
  return () => e() ? (() => {
4027
- var e = vs(), n = e.firstChild;
4028
+ var e = vs(), t = e.firstChild;
4028
4029
  return s(e, i(H, {
4029
4030
  path: ie,
4030
4031
  size: "1.25rem"
4031
- }), n), s(n, () => t.errorMessage), o((t) => {
4032
+ }), t), s(t, () => n.errorMessage), o((n) => {
4032
4033
  var i = K["error-notice"], a = K["error-message"];
4033
- return i !== t.e && r(e, t.e = i), a !== t.t && r(n, t.t = a), t;
4034
+ return i !== n.e && r(e, n.e = i), a !== n.t && r(t, n.t = a), n;
4034
4035
  }, {
4035
4036
  e: void 0,
4036
4037
  t: void 0
4037
4038
  }), e;
4038
4039
  })() : [(() => {
4039
4040
  var e = ys(), t = e.firstChild, n = t.firstChild, i = t.nextSibling, a = i.nextSibling;
4040
- return e.$$keydown = L, e.addEventListener("pointerleave", () => te(null)), e.$$pointermove = pe, e.$$pointerdown = fe, h((e) => {
4041
- p = e;
4041
+ return e.$$keydown = pe, e.addEventListener("pointerleave", () => ne(null)), e.$$pointermove = R, e.$$pointerdown = fe, h((e) => {
4042
+ m = e;
4042
4043
  }, e), o((o) => {
4043
- var s = K.seekbar, c = Math.round(S()) || 0, l = Math.round(E()), d = `${xs(E())} of ${xs(S())}`, f = K.track, p = K.fill, m = K["hover-thumb"], h = K.thumb;
4044
+ var s = K.seekbar, c = Math.round(T()) || 0, l = Math.round(O()), d = `${xs(O())} of ${xs(T())}`, f = K.track, p = K.fill, m = K["hover-thumb"], h = K.thumb;
4044
4045
  return s !== o.e && r(e, o.e = s), c !== o.t && u(e, "aria-valuemax", o.t = c), l !== o.a && u(e, "aria-valuenow", o.a = l), d !== o.o && u(e, "aria-valuetext", o.o = d), f !== o.i && r(t, o.i = f), p !== o.n && r(n, o.n = p), m !== o.s && r(i, o.s = m), h !== o.h && r(a, o.h = h), o;
4045
4046
  }, {
4046
4047
  e: void 0,
@@ -4053,26 +4054,26 @@ var K = {
4053
4054
  h: void 0
4054
4055
  }), e;
4055
4056
  })(), (() => {
4056
- var e = bs(), n = e.firstChild, a = n.nextSibling, c = a.firstChild, l = c.nextSibling, f = l.nextSibling, p = a.nextSibling, m = p.firstChild, h = m.nextSibling, _ = p.nextSibling;
4057
- return s(n, () => xs(E())), c.$$click = () => ue(E() - t.seekStep), s(c, i(H, {
4058
- path: Re,
4057
+ var e = bs(), t = e.firstChild, a = t.nextSibling, c = a.firstChild, l = c.nextSibling, f = l.nextSibling, p = a.nextSibling, m = p.firstChild, h = m.nextSibling, g = p.nextSibling;
4058
+ return s(t, () => xs(O())), c.$$click = () => L(O() - n.seekStep), s(c, i(H, {
4059
+ path: Le,
4059
4060
  size: "1.25rem"
4060
- })), l.$$click = le, s(l, i(H, {
4061
+ })), l.$$click = ue, s(l, i(H, {
4061
4062
  get path() {
4062
- return g() ? Ne : Fe;
4063
+ return _() ? Me : Pe;
4063
4064
  },
4064
4065
  size: "1.5rem"
4065
- })), f.$$click = () => ue(E() + t.seekStep), s(f, i(H, {
4066
- path: ye,
4066
+ })), f.$$click = () => L(O() + n.seekStep), s(f, i(H, {
4067
+ path: ve,
4067
4068
  size: "1.25rem"
4068
4069
  })), m.$$click = he, s(m, i(H, {
4069
4070
  get path() {
4070
- return ae();
4071
+ return oe();
4071
4072
  },
4072
4073
  size: "1.25rem"
4073
- })), h.$$input = (e) => me(e.currentTarget.valueAsNumber), s(_, () => xs(S())), o((i) => {
4074
- var o = K.controls, s = I(K.time, K["time-current"]), v = K.transport, y = K["icon-button"], b = `Back ${t.seekStep} seconds`, x = K["play-button"], S = g() ? "Pause" : "Play", C = g(), w = K["icon-button"], T = `Forward ${t.seekStep} seconds`, E = K.volume, D = K["icon-button"], O = N() ? "Unmute" : "Mute", A = N(), j = K["volume-slider"], M = N() ? 0 : k(), P = I(K.time, K["time-total"]);
4075
- return o !== i.e && r(e, i.e = o), s !== i.t && r(n, i.t = s), v !== i.a && r(a, i.a = v), y !== i.o && r(c, i.o = y), b !== i.i && u(c, "aria-label", i.i = b), x !== i.n && r(l, i.n = x), S !== i.s && u(l, "aria-label", i.s = S), C !== i.h && u(l, "aria-pressed", i.h = C), w !== i.r && r(f, i.r = w), T !== i.d && u(f, "aria-label", i.d = T), E !== i.l && r(p, i.l = E), D !== i.u && r(m, i.u = D), O !== i.c && u(m, "aria-label", i.c = O), A !== i.w && u(m, "aria-pressed", i.w = A), j !== i.m && r(h, i.m = j), M !== i.f && d(h, "--elmethis-scoped-volume", i.f = M), P !== i.y && r(_, i.y = P), i;
4074
+ })), h.$$input = (e) => me(e.currentTarget.valueAsNumber), s(g, () => xs(T())), o((i) => {
4075
+ var o = K.controls, s = I(K.time, K["time-current"]), v = K.transport, y = K["icon-button"], b = `Back ${n.seekStep} seconds`, x = K["play-button"], S = _() ? "Pause" : "Play", C = _(), w = K["icon-button"], T = `Forward ${n.seekStep} seconds`, E = K.volume, D = K["icon-button"], O = F() ? "Unmute" : "Mute", k = F(), A = K["volume-slider"], M = F() ? 0 : j(), N = I(K.time, K["time-total"]);
4076
+ return o !== i.e && r(e, i.e = o), s !== i.t && r(t, i.t = s), v !== i.a && r(a, i.a = v), y !== i.o && r(c, i.o = y), b !== i.i && u(c, "aria-label", i.i = b), x !== i.n && r(l, i.n = x), S !== i.s && u(l, "aria-label", i.s = S), C !== i.h && u(l, "aria-pressed", i.h = C), w !== i.r && r(f, i.r = w), T !== i.d && u(f, "aria-label", i.d = T), E !== i.l && r(p, i.l = E), D !== i.u && r(m, i.u = D), O !== i.c && u(m, "aria-label", i.c = O), k !== i.w && u(m, "aria-pressed", i.w = k), A !== i.m && r(h, i.m = A), M !== i.f && d(h, "--elmethis-scoped-volume", i.f = M), N !== i.y && r(g, i.y = N), i;
4076
4077
  }, {
4077
4078
  e: void 0,
4078
4079
  t: void 0,
@@ -4091,11 +4092,11 @@ var K = {
4091
4092
  m: void 0,
4092
4093
  f: void 0,
4093
4094
  y: void 0
4094
- }), o(() => h.value = N() ? 0 : k()), e;
4095
+ }), o(() => h.value = F() ? 0 : j()), e;
4095
4096
  })()];
4096
4097
  })(), null), o((e) => {
4097
- var n = K["native-audio"], i = t.src, a = t.loop, o = t.autoPlay, s = K.header, c = I(K.artwork, b() && K["artwork-error"]), l = K.meta, d = K.title, f = re(), p = K.equalizer;
4098
- return n !== e.e && r(C, e.e = n), i !== e.t && u(C, "src", e.t = i), a !== e.a && (C.loop = e.a = a), o !== e.o && (C.autoplay = e.o = o), s !== e.i && r(w, e.i = s), c !== e.n && r(D, e.n = c), l !== e.s && r(A, e.s = l), d !== e.h && r(M, e.h = d), f !== e.r && u(M, "title", e.r = f), p !== e.d && r(P, e.d = p), e;
4098
+ var i = K["native-audio"], a = n.src, o = n.loop, s = n.autoPlay, c = K.header, l = I(K.artwork, x() && K["artwork-error"]), d = K.meta, f = K.title, p = ae(), m = K.equalizer;
4099
+ return i !== e.e && r(t, e.e = i), a !== e.t && u(t, "src", e.t = a), o !== e.a && (t.loop = e.a = o), s !== e.o && (t.autoplay = e.o = s), c !== e.i && r(C, e.i = c), l !== e.n && r(w, e.n = l), d !== e.s && r(D, e.s = d), f !== e.h && r(A, e.h = f), p !== e.r && u(A, "title", e.r = p), m !== e.d && r(M, e.d = m), e;
4099
4100
  }, {
4100
4101
  e: void 0,
4101
4102
  t: void 0,
@@ -4245,6 +4246,7 @@ function Ls(e, t) {
4245
4246
  errorMessage: ""
4246
4247
  };
4247
4248
  }
4249
+ return e;
4248
4250
  }
4249
4251
  function Rs(e, t, n) {
4250
4252
  let r = e.board[t];
@@ -4363,38 +4365,38 @@ var zs = (e) => {
4363
4365
  };
4364
4366
  a(["click"]);
4365
4367
  var J = {
4366
- "elm-a2ui": "_elm-a2ui_12dgb_1",
4367
- surface: "_surface_12dgb_5",
4368
- row: "_row_12dgb_22",
4369
- column: "_column_12dgb_28",
4370
- list: "_list_12dgb_34",
4371
- "list-horizontal": "_list-horizontal_12dgb_41",
4372
- "list-item": "_list-item_12dgb_45",
4373
- card: "_card_12dgb_49",
4374
- button: "_button_12dgb_57",
4375
- "button-primary": "_button-primary_12dgb_76",
4376
- "button-disabled": "_button-disabled_12dgb_89",
4377
- image: "_image_12dgb_98",
4378
- icon: "_icon_12dgb_104",
4379
- divider: "_divider_12dgb_111",
4380
- "divider-vertical": "_divider-vertical_12dgb_117",
4381
- "text-field": "_text-field_12dgb_125",
4382
- "choice-picker": "_choice-picker_12dgb_126",
4383
- "datetime-input": "_datetime-input_12dgb_127",
4384
- "action-control": "_action-control_12dgb_128",
4385
- "checkable-control": "_checkable-control_12dgb_129",
4386
- label: "_label_12dgb_135",
4387
- "choice-picker-label": "_choice-picker-label_12dgb_136",
4388
- input: "_input_12dgb_142",
4389
- checkbox: "_checkbox_12dgb_155",
4390
- "choice-picker-option": "_choice-picker-option_12dgb_156",
4391
- "checkbox-label": "_checkbox-label_12dgb_164",
4392
- slider: "_slider_12dgb_169",
4393
- "modal-trigger": "_modal-trigger_12dgb_174",
4394
- video: "_video_12dgb_179",
4395
- audio: "_audio_12dgb_180",
4396
- "choice-picker-options": "_choice-picker-options_12dgb_185",
4397
- "validation-errors": "_validation-errors_12dgb_191"
4368
+ "elm-a2ui": "_elm-a2ui_ffile_1",
4369
+ surface: "_surface_ffile_5",
4370
+ row: "_row_ffile_22",
4371
+ column: "_column_ffile_28",
4372
+ list: "_list_ffile_34",
4373
+ "list-horizontal": "_list-horizontal_ffile_41",
4374
+ "list-item": "_list-item_ffile_45",
4375
+ card: "_card_ffile_49",
4376
+ button: "_button_ffile_57",
4377
+ "button-primary": "_button-primary_ffile_76",
4378
+ "button-disabled": "_button-disabled_ffile_89",
4379
+ image: "_image_ffile_98",
4380
+ icon: "_icon_ffile_104",
4381
+ divider: "_divider_ffile_111",
4382
+ "divider-vertical": "_divider-vertical_ffile_117",
4383
+ "text-field": "_text-field_ffile_125",
4384
+ "choice-picker": "_choice-picker_ffile_126",
4385
+ "datetime-input": "_datetime-input_ffile_127",
4386
+ "action-control": "_action-control_ffile_128",
4387
+ "checkable-control": "_checkable-control_ffile_129",
4388
+ label: "_label_ffile_135",
4389
+ "choice-picker-label": "_choice-picker-label_ffile_136",
4390
+ input: "_input_ffile_142",
4391
+ checkbox: "_checkbox_ffile_155",
4392
+ "choice-picker-option": "_choice-picker-option_ffile_156",
4393
+ "checkbox-label": "_checkbox-label_ffile_164",
4394
+ slider: "_slider_ffile_169",
4395
+ "modal-trigger": "_modal-trigger_ffile_174",
4396
+ video: "_video_ffile_179",
4397
+ audio: "_audio_ffile_180",
4398
+ "choice-picker-options": "_choice-picker-options_ffile_185",
4399
+ "validation-errors": "_validation-errors_ffile_191"
4398
4400
  }, Bs = (e) => {
4399
4401
  let t = /* @__PURE__ */ new Map(), n = (e, n) => {
4400
4402
  let r = t.get(e);
@@ -4435,7 +4437,7 @@ var Vs = class e {
4435
4437
  return new e(n.values(), [...r.values()]);
4436
4438
  }
4437
4439
  toCatalog(e) {
4438
- return new Mt(e, [...this.components.values()], [...this.functions]);
4440
+ return new jt(e, [...this.components.values()], [...this.functions]);
4439
4441
  }
4440
4442
  }, Hs = {
4441
4443
  start: "flex-start",
@@ -4456,7 +4458,7 @@ var Vs = class e {
4456
4458
  fill: "fill",
4457
4459
  none: "none",
4458
4460
  scaleDown: "scale-down"
4459
- }, X = (e) => c(() => e.renderChild(e.child.id, e.child.basePath, e.index)), Gs = /*#__PURE__*/ m("<ul aria-live=polite>"), Ks = /*#__PURE__*/ m("<li>"), qs = /*#__PURE__*/ m("<div>"), Js = /*#__PURE__*/ m("<div><div role=button>"), Ys = /*#__PURE__*/ m("<img>"), Xs = /*#__PURE__*/ m("<span>"), Zs = /*#__PURE__*/ m("<svg viewBox=\"0 0 24 24\"><path>"), Qs = /*#__PURE__*/ m("<div role=separator>"), $s = /*#__PURE__*/ m("<textarea>"), ec = /*#__PURE__*/ m("<div><label>"), tc = /*#__PURE__*/ m("<input>"), nc = /*#__PURE__*/ m("<div><label><input type=checkbox><span>"), rc = /*#__PURE__*/ m("<div><input type=range>"), ic = /*#__PURE__*/ m("<div role=button tabindex=0>"), ac = /*#__PURE__*/ m("<video controls>"), oc = /*#__PURE__*/ m("<audio controls>"), sc = /*#__PURE__*/ m("<div><div>"), cc = /*#__PURE__*/ m("<label><input><span>"), lc = /*#__PURE__*/ m("<label>"), uc = /*#__PURE__*/ m("<div><input>"), dc = {
4461
+ }, X = (e) => c(() => e.renderChild(e.child.id, e.child.basePath, e.index, e.wrap)), Gs = /*#__PURE__*/ m("<ul aria-live=polite>"), Ks = /*#__PURE__*/ m("<li>"), qs = /*#__PURE__*/ m("<div>"), Js = /*#__PURE__*/ m("<div><div role=button>"), Ys = /*#__PURE__*/ m("<img>"), Xs = /*#__PURE__*/ m("<span>"), Zs = /*#__PURE__*/ m("<svg viewBox=\"0 0 24 24\"><path>"), Qs = /*#__PURE__*/ m("<div role=separator>"), $s = /*#__PURE__*/ m("<textarea>"), ec = /*#__PURE__*/ m("<div><label>"), tc = /*#__PURE__*/ m("<input>"), nc = /*#__PURE__*/ m("<div><label><input type=checkbox><span>"), rc = /*#__PURE__*/ m("<div><input type=range>"), ic = /*#__PURE__*/ m("<div role=button tabindex=0>"), ac = /*#__PURE__*/ m("<video controls>"), oc = /*#__PURE__*/ m("<audio controls>"), sc = /*#__PURE__*/ m("<div><div>"), cc = /*#__PURE__*/ m("<label><input><span>"), lc = /*#__PURE__*/ m("<label>"), uc = /*#__PURE__*/ m("<div><input>"), dc = {
4460
4462
  shortText: "text",
4461
4463
  number: "number",
4462
4464
  obscured: "password"
@@ -4486,7 +4488,7 @@ var Vs = class e {
4486
4488
  }), t;
4487
4489
  }
4488
4490
  }), mc = new Vs([
4489
- Y(Qt, (e) => i(b, {
4491
+ Y(Zt, (e) => i(b, {
4490
4492
  get fallback() {
4491
4493
  return i(Vi, {
4492
4494
  get level() {
@@ -4519,7 +4521,7 @@ var Vs = class e {
4519
4521
  })];
4520
4522
  }
4521
4523
  })),
4522
- Y(Yt, (e) => (() => {
4524
+ Y(Jt, (e) => (() => {
4523
4525
  var t = qs();
4524
4526
  return s(t, i(g, {
4525
4527
  get each() {
@@ -4541,7 +4543,7 @@ var Vs = class e {
4541
4543
  a: void 0
4542
4544
  }), t;
4543
4545
  })()),
4544
- Y(Ht, (e) => (() => {
4546
+ Y(Vt, (e) => (() => {
4545
4547
  var t = qs();
4546
4548
  return s(t, i(g, {
4547
4549
  get each() {
@@ -4556,7 +4558,7 @@ var Vs = class e {
4556
4558
  })
4557
4559
  })), o(() => r(t, J.column)), t;
4558
4560
  })()),
4559
- Y(qt, (e) => (() => {
4561
+ Y(Kt, (e) => (() => {
4560
4562
  var t = qs();
4561
4563
  return s(t, i(g, {
4562
4564
  get each() {
@@ -4580,11 +4582,11 @@ var Vs = class e {
4580
4582
  t: void 0
4581
4583
  }), t;
4582
4584
  })()),
4583
- Y(zt, (e) => (() => {
4585
+ Y(Rt, (e) => (() => {
4584
4586
  var t = qs();
4585
4587
  return s(t, () => e.renderChild(e.props.child)), o(() => r(t, J.card)), t;
4586
4588
  })()),
4587
- Y(Rt, (e) => {
4589
+ Y(Lt, (e) => {
4588
4590
  let t = () => `${e.instanceId}-errors`, a = () => e.props.isValid === !1;
4589
4591
  return (() => {
4590
4592
  var c = Js(), l = c.firstChild;
@@ -4615,7 +4617,7 @@ var Vs = class e {
4615
4617
  }), c;
4616
4618
  })();
4617
4619
  }),
4618
- Y(Kt, (e) => (() => {
4620
+ Y(Gt, (e) => (() => {
4619
4621
  var t = Ys();
4620
4622
  return o((n) => {
4621
4623
  var i = J.image, a = e.props.url, o = e.props.description ?? "", s = Ws[e.props.fit ?? "cover"];
@@ -4627,7 +4629,7 @@ var Vs = class e {
4627
4629
  o: void 0
4628
4630
  }), t;
4629
4631
  })()),
4630
- Y(Gt, (e) => {
4632
+ Y(Wt, (e) => {
4631
4633
  let t = w(() => typeof e.props.name == "string" ? e.props.name : "custom"), n = w(() => typeof e.props.name == "object" && e.props.name != null && "svgPath" in e.props.name ? e.props.name.svgPath : void 0);
4632
4634
  return i(v, {
4633
4635
  get when() {
@@ -4659,7 +4661,7 @@ var Vs = class e {
4659
4661
  })()
4660
4662
  });
4661
4663
  }),
4662
- Y(Wt, (e) => (() => {
4664
+ Y(Ut, (e) => (() => {
4663
4665
  var t = Qs();
4664
4666
  return o((i) => {
4665
4667
  var a = J.divider, o = { [J["divider-vertical"]]: e.props.axis === "vertical" };
@@ -4669,7 +4671,7 @@ var Vs = class e {
4669
4671
  t: void 0
4670
4672
  }), t;
4671
4673
  })()),
4672
- Y($t, (e) => (() => {
4674
+ Y(Qt, (e) => (() => {
4673
4675
  var t = ec(), n = t.firstChild;
4674
4676
  return s(n, () => e.props.label), s(t, i(v, {
4675
4677
  get when() {
@@ -4718,7 +4720,7 @@ var Vs = class e {
4718
4720
  a: void 0
4719
4721
  }), t;
4720
4722
  })()),
4721
- Y(Bt, (e) => (() => {
4723
+ Y(zt, (e) => (() => {
4722
4724
  var t = nc(), n = t.firstChild, a = n.firstChild, c = a.nextSibling;
4723
4725
  return a.addEventListener("change", (t) => e.props.setValue(t.currentTarget.checked)), s(c, () => e.props.label), s(t, i(pc, {
4724
4726
  get id() {
@@ -4738,7 +4740,7 @@ var Vs = class e {
4738
4740
  i: void 0
4739
4741
  }), o(() => a.checked = !!e.props.value), t;
4740
4742
  })()),
4741
- Y(Xt, (e) => (() => {
4743
+ Y(Yt, (e) => (() => {
4742
4744
  var t = rc(), n = t.firstChild;
4743
4745
  return n.$$input = (t) => e.props.setValue(Number(t.currentTarget.value)), s(t, i(pc, {
4744
4746
  get id() {
@@ -4760,7 +4762,7 @@ var Vs = class e {
4760
4762
  s: void 0
4761
4763
  }), o(() => n.value = Number(e.props.value ?? 0)), t;
4762
4764
  })()),
4763
- Y(Zt, (e) => i(ja, {
4765
+ Y(Xt, (e) => i(ja, {
4764
4766
  defaultValue: "0",
4765
4767
  get children() {
4766
4768
  return [i(Ma, { get children() {
@@ -4792,7 +4794,7 @@ var Vs = class e {
4792
4794
  })];
4793
4795
  }
4794
4796
  })),
4795
- Y(Jt, (e) => {
4797
+ Y(qt, (e) => {
4796
4798
  let [t, n] = D(!1), a = () => n(!0);
4797
4799
  return [(() => {
4798
4800
  var t = ic();
@@ -4815,7 +4817,7 @@ var Vs = class e {
4815
4817
  }
4816
4818
  })];
4817
4819
  }),
4818
- Y(en, (e) => (() => {
4820
+ Y($t, (e) => (() => {
4819
4821
  var t = ac();
4820
4822
  return o((n) => {
4821
4823
  var i = J.video, a = e.props.url;
@@ -4825,7 +4827,7 @@ var Vs = class e {
4825
4827
  t: void 0
4826
4828
  }), t;
4827
4829
  })()),
4828
- Y(It, (e) => (() => {
4830
+ Y(Ft, (e) => (() => {
4829
4831
  var t = oc();
4830
4832
  return o((n) => {
4831
4833
  var i = J.audio, a = e.props.url;
@@ -4835,7 +4837,7 @@ var Vs = class e {
4835
4837
  t: void 0
4836
4838
  }), t;
4837
4839
  })()),
4838
- Y(Vt, (e) => {
4840
+ Y(Bt, (e) => {
4839
4841
  let t = w(() => Array.isArray(e.props.value) ? e.props.value : []), n = w(() => e.props.variant === "multipleSelection");
4840
4842
  return (() => {
4841
4843
  var a = sc(), c = a.firstChild;
@@ -4883,7 +4885,7 @@ var Vs = class e {
4883
4885
  }), a;
4884
4886
  })();
4885
4887
  }),
4886
- Y(Ut, (e) => {
4888
+ Y(Ht, (e) => {
4887
4889
  let t = w(() => e.props.enableDate && e.props.enableTime ? "datetime-local" : e.props.enableDate ? "date" : e.props.enableTime ? "time" : "text");
4888
4890
  return (() => {
4889
4891
  var n = uc(), a = n.firstChild;
@@ -4916,7 +4918,7 @@ var Vs = class e {
4916
4918
  }), o(() => a.value = e.props.value ?? ""), n;
4917
4919
  })();
4918
4920
  })
4919
- ], [...Lt]);
4921
+ ], [...It]);
4920
4922
  a([
4921
4923
  "click",
4922
4924
  "keydown",
@@ -4951,11 +4953,11 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
4951
4953
  a({});
4952
4954
  return;
4953
4955
  }
4954
- let n = new Pt(new Nt(e.surface, e.id, e.basePath), ot.schema);
4955
- a({ ...n.snapshot });
4956
- let r = n.subscribe((e) => a({ ...e }));
4956
+ let n = new Mt(e.surface, e.id, e.basePath), r = new Nt(n, at.schema);
4957
+ a({ ...r.snapshot });
4958
+ let i = r.subscribe((e) => a({ ...e }));
4957
4959
  M(() => {
4958
- r.unsubscribe(), n.dispose();
4960
+ i.unsubscribe(), r.dispose();
4959
4961
  });
4960
4962
  }), i(g, {
4961
4963
  get each() {
@@ -4970,7 +4972,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
4970
4972
  })
4971
4973
  });
4972
4974
  }, Sc = [
4973
- Y(xt, (e) => i(v, {
4975
+ Y(bt, (e) => i(v, {
4974
4976
  get when() {
4975
4977
  return !e.props.decoration?.includes("katex");
4976
4978
  },
@@ -5011,7 +5013,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5011
5013
  });
5012
5014
  }
5013
5015
  })),
5014
- Y(mt, (e) => i(B, {
5016
+ Y(pt, (e) => i(B, {
5015
5017
  get href() {
5016
5018
  return e.props.href;
5017
5019
  },
@@ -5022,7 +5024,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5022
5024
  return e.props.text;
5023
5025
  }
5024
5026
  })),
5025
- Y(ft, (e) => i(Sn, {
5027
+ Y(dt, (e) => i(Sn, {
5026
5028
  get src() {
5027
5029
  return e.props.src;
5028
5030
  },
@@ -5030,7 +5032,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5030
5032
  return e.props.alt;
5031
5033
  }
5032
5034
  })),
5033
- Y(it, (e) => (() => {
5035
+ Y(rt, (e) => (() => {
5034
5036
  var t = hc();
5035
5037
  return s(t, i(g, {
5036
5038
  get each() {
@@ -5052,7 +5054,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5052
5054
  a: void 0
5053
5055
  }), t;
5054
5056
  })()),
5055
- Y(at, (e) => (() => {
5057
+ Y(it, (e) => (() => {
5056
5058
  var t = gc();
5057
5059
  return p(t, bc), s(t, i(g, {
5058
5060
  get each() {
@@ -5067,7 +5069,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5067
5069
  })
5068
5070
  })), t;
5069
5071
  })()),
5070
- Y(ut, (e) => i(Vi, {
5072
+ Y(lt, (e) => i(Vi, {
5071
5073
  get level() {
5072
5074
  return e.props.level;
5073
5075
  },
@@ -5086,7 +5088,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5086
5088
  });
5087
5089
  }
5088
5090
  })),
5089
- Y(bt, (e) => i(Ki, {
5091
+ Y(yt, (e) => i(Ki, {
5090
5092
  get color() {
5091
5093
  return e.props.color;
5092
5094
  },
@@ -5108,7 +5110,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5108
5110
  });
5109
5111
  }
5110
5112
  })),
5111
- Y(ht, (e) => i(Ui, {
5113
+ Y(mt, (e) => i(Ui, {
5112
5114
  get listStyle() {
5113
5115
  return e.props.style ?? "unordered";
5114
5116
  },
@@ -5130,7 +5132,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5130
5132
  });
5131
5133
  }
5132
5134
  })),
5133
- Y(gt, (e) => i(g, {
5135
+ Y(ht, (e) => i(g, {
5134
5136
  get each() {
5135
5137
  return e.childRefs(e.props.children);
5136
5138
  },
@@ -5142,7 +5144,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5142
5144
  }
5143
5145
  })
5144
5146
  })),
5145
- Y(et, (e) => i(Ti, {
5147
+ Y($e, (e) => i(Ti, {
5146
5148
  get cite() {
5147
5149
  return e.props.cite;
5148
5150
  },
@@ -5161,7 +5163,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5161
5163
  });
5162
5164
  }
5163
5165
  })),
5164
- Y(nt, (e) => i(ki, {
5166
+ Y(tt, (e) => i(ki, {
5165
5167
  get type() {
5166
5168
  return e.props.type;
5167
5169
  },
@@ -5180,7 +5182,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5180
5182
  });
5181
5183
  }
5182
5184
  })),
5183
- Y(yt, (e) => i(qr, {
5185
+ Y(vt, (e) => i(qr, {
5184
5186
  get icon() {
5185
5187
  return e.props.icon;
5186
5188
  },
@@ -5205,8 +5207,8 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5205
5207
  });
5206
5208
  }
5207
5209
  })),
5208
- Y(ct, () => i(Mi, {})),
5209
- Y(Tt, (e) => i(La, {
5210
+ Y(st, () => i(Mi, {})),
5211
+ Y(wt, (e) => i(La, {
5210
5212
  get summary() {
5211
5213
  return i(g, {
5212
5214
  get each() {
@@ -5236,7 +5238,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5236
5238
  });
5237
5239
  }
5238
5240
  })),
5239
- Y(tt, (e) => i(Ir, {
5241
+ Y(et, (e) => i(Ir, {
5240
5242
  get url() {
5241
5243
  return e.props.url;
5242
5244
  },
@@ -5250,7 +5252,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5250
5252
  return e.props.image;
5251
5253
  }
5252
5254
  })),
5253
- Y(lt, (e) => i(Mr, {
5255
+ Y(ct, (e) => i(Mr, {
5254
5256
  get src() {
5255
5257
  return e.props.src;
5256
5258
  },
@@ -5258,7 +5260,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5258
5260
  return e.props.name;
5259
5261
  }
5260
5262
  })),
5261
- Y(Qe, (e) => i(Cs, {
5263
+ Y(Ze, (e) => i(Cs, {
5262
5264
  get src() {
5263
5265
  return e.props.src;
5264
5266
  },
@@ -5278,7 +5280,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5278
5280
  return e.props.autoPlay;
5279
5281
  }
5280
5282
  })),
5281
- Y(Dt, (e) => (() => {
5283
+ Y(Et, (e) => (() => {
5282
5284
  var t = vc(), n = t.firstChild;
5283
5285
  return s(t, i(v, {
5284
5286
  get when() {
@@ -5302,7 +5304,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5302
5304
  h: void 0
5303
5305
  }), t;
5304
5306
  })()),
5305
- Y($e, (e) => i(eo, {
5307
+ Y(Qe, (e) => i(eo, {
5306
5308
  get src() {
5307
5309
  return e.props.src;
5308
5310
  },
@@ -5326,7 +5328,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5326
5328
  },
5327
5329
  enableModal: !0
5328
5330
  })),
5329
- Y(dt, (e) => i(Zo, {
5331
+ Y(ut, (e) => i(Zo, {
5330
5332
  get html() {
5331
5333
  return e.props.html;
5332
5334
  },
@@ -5343,7 +5345,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5343
5345
  return e.props.height ?? 400;
5344
5346
  }
5345
5347
  })),
5346
- Y(rt, (e) => i(Oo, {
5348
+ Y(nt, (e) => i(Oo, {
5347
5349
  get code() {
5348
5350
  return e.props.code;
5349
5351
  },
@@ -5354,20 +5356,20 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5354
5356
  return e.props.caption;
5355
5357
  }
5356
5358
  })),
5357
- Y(pt, (e) => i(ma, {
5359
+ Y(ft, (e) => i(ma, {
5358
5360
  get expression() {
5359
5361
  return e.props.expression;
5360
5362
  },
5361
5363
  block: !0
5362
5364
  })),
5363
- Y(_t, (e) => i(Oo, {
5365
+ Y(gt, (e) => i(Oo, {
5364
5366
  get code() {
5365
5367
  return e.props.code;
5366
5368
  },
5367
5369
  language: "mermaid"
5368
5370
  })),
5369
- Y(ot, () => null),
5370
- Y(st, (e) => {
5371
+ Y(at, () => null),
5372
+ Y(ot, (e) => {
5371
5373
  let t = () => e.childRefs(e.props.children);
5372
5374
  return i(ja, {
5373
5375
  defaultValue: "0",
@@ -5430,7 +5432,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5430
5432
  }
5431
5433
  });
5432
5434
  }),
5433
- Y(St, (e) => i(oo, {
5435
+ Y(xt, (e) => i(oo, {
5434
5436
  get caption() {
5435
5437
  return c(() => e.props.caption == null)() ? void 0 : String(e.props.caption);
5436
5438
  },
@@ -5453,7 +5455,8 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5453
5455
  index: n,
5454
5456
  get renderChild() {
5455
5457
  return e.renderChild;
5456
- }
5458
+ },
5459
+ wrap: !1
5457
5460
  })
5458
5461
  });
5459
5462
  } });
@@ -5468,27 +5471,43 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5468
5471
  index: n,
5469
5472
  get renderChild() {
5470
5473
  return e.renderChild;
5471
- }
5474
+ },
5475
+ wrap: !1
5472
5476
  })
5473
5477
  });
5474
5478
  } })];
5475
5479
  }
5476
5480
  })),
5477
- Y(wt, (e) => i(_o, { get children() {
5478
- return i(g, {
5479
- get each() {
5480
- return e.childRefs(e.props.children);
5481
- },
5482
- children: (t, n) => i(X, {
5483
- child: t,
5484
- index: n,
5485
- get renderChild() {
5486
- return e.renderChild;
5487
- }
5488
- })
5489
- });
5490
- } })),
5491
- Y(Ct, (e) => i(uo, {
5481
+ Y(Ct, (e) => i(_o, {
5482
+ get "data-a2ui-component-id"() {
5483
+ return e.componentId;
5484
+ },
5485
+ get "data-a2ui-component-key"() {
5486
+ return e.componentKey;
5487
+ },
5488
+ get children() {
5489
+ return i(g, {
5490
+ get each() {
5491
+ return e.childRefs(e.props.children);
5492
+ },
5493
+ children: (t, n) => i(X, {
5494
+ child: t,
5495
+ index: n,
5496
+ get renderChild() {
5497
+ return e.renderChild;
5498
+ },
5499
+ wrap: !1
5500
+ })
5501
+ });
5502
+ }
5503
+ })),
5504
+ Y(St, (e) => i(uo, {
5505
+ get "data-a2ui-component-id"() {
5506
+ return e.componentId;
5507
+ },
5508
+ get "data-a2ui-component-key"() {
5509
+ return e.componentKey;
5510
+ },
5492
5511
  get isHeader() {
5493
5512
  return e.props.isHeader;
5494
5513
  },
@@ -5510,11 +5529,11 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5510
5529
  });
5511
5530
  }
5512
5531
  })),
5513
- Y(Et, (e) => i(Fn, { get details() {
5532
+ Y(Tt, (e) => i(Fn, { get details() {
5514
5533
  return c(() => !!e.props.details)() ? `Unsupported component type: ${String(e.props.details)}` : "Unsupported component type";
5515
5534
  } }))
5516
5535
  ], Cc = mc.extend(...Sc), wc = [...Cc.components.values()], Tc = [...Cc.functions], Ec = /*#__PURE__*/ m("<span data-a2ui-state=loading class=a2ui-loading>[Loading <!>…]"), Dc = /*#__PURE__*/ m("<span data-a2ui-state=unknown class=a2ui-unknown>Unknown component: "), Oc = /*#__PURE__*/ m("<span style=display:contents>"), kc = "root", Ac = S(), jc = S(), Mc = (...e) => `a2ui-${encodeURIComponent(JSON.stringify(e))}`, Nc = (e) => {
5517
- let t = ee(Ac), n = ee(jc), r = () => e.ancestors ?? [], a = () => r().includes(e.id), [l, d] = D(), [f, p] = D(!1), [m, h] = D(), [g, _] = nn({});
5536
+ let t = ee(Ac), n = ee(jc), r = () => e.ancestors ?? [], a = () => r().includes(e.id), [l, d] = D(), [f, p] = D(!1), [m, h] = D(), [g, _] = tn({});
5518
5537
  T(() => {
5519
5538
  let n = e.id, r = t?.();
5520
5539
  if (a() || r == null) {
@@ -5534,32 +5553,64 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5534
5553
  }), T(() => {
5535
5554
  let r = l(), i = t?.(), o = r == null ? void 0 : n?.().get(r.type);
5536
5555
  if (r == null || o == null || i == null || a()) {
5537
- h(void 0), _(rn({}));
5556
+ h(void 0), _(nn({}));
5538
5557
  return;
5539
5558
  }
5540
- let s = new Nt(i, e.id, e.basePath), c = new Pt(s, o.schema);
5541
- _(rn({ ...c.snapshot })), h({
5559
+ let s = new Mt(i, e.id, e.basePath), c = new Nt(s, o.schema);
5560
+ _(nn({ ...c.snapshot })), h({
5542
5561
  entry: o,
5543
5562
  context: s
5544
5563
  });
5545
5564
  let u = c.subscribe((e) => {
5546
- _(rn({ ...e }));
5565
+ _(nn({ ...e }));
5547
5566
  });
5548
5567
  M(() => {
5549
5568
  u.unsubscribe(), c.dispose();
5550
5569
  });
5551
5570
  });
5552
- let y = Bs(() => e.basePath), b = (t, n = e.basePath, a = 0) => i(Nc, {
5571
+ let y = Bs(() => e.basePath), b = (t, n = e.basePath, a = 0, o = !0) => i(Nc, {
5553
5572
  id: t,
5554
5573
  basePath: n,
5555
5574
  index: a,
5556
5575
  get ancestors() {
5557
5576
  return [...r(), e.id];
5558
- }
5577
+ },
5578
+ wrap: o
5559
5579
  }), x = () => {
5560
5580
  let n = t?.();
5561
5581
  return n == null ? "a2ui-unresolved" : Mc(n.id, e.id, e.basePath);
5562
- };
5582
+ }, S = () => i(v, {
5583
+ get when() {
5584
+ return m();
5585
+ },
5586
+ keyed: !0,
5587
+ children: (n) => {
5588
+ let r = n.entry.render;
5589
+ return i(r, {
5590
+ get componentId() {
5591
+ return e.id;
5592
+ },
5593
+ get componentKey() {
5594
+ return `${e.id}@${e.basePath}`;
5595
+ },
5596
+ get instanceId() {
5597
+ return x();
5598
+ },
5599
+ get index() {
5600
+ return c(() => typeof e.index == "function")() ? e.index() : e.index ?? 0;
5601
+ },
5602
+ props: g,
5603
+ get surface() {
5604
+ return t();
5605
+ },
5606
+ get context() {
5607
+ return n.context;
5608
+ },
5609
+ childRefs: y,
5610
+ renderChild: b
5611
+ });
5612
+ }
5613
+ });
5563
5614
  return i(v, {
5564
5615
  get when() {
5565
5616
  return c(() => t?.() != null && n?.() != null)() && !a();
@@ -5573,7 +5624,7 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5573
5624
  get fallback() {
5574
5625
  return i(v, {
5575
5626
  get when() {
5576
- return !f();
5627
+ return c(() => !f())() && e.wrap !== !1;
5577
5628
  },
5578
5629
  get children() {
5579
5630
  var t = Ec(), n = t.firstChild.nextSibling;
@@ -5587,62 +5638,47 @@ var hc = /*#__PURE__*/ m("<div style=display:flex;flex-direction:column;box-sizi
5587
5638
  }
5588
5639
  });
5589
5640
  },
5590
- children: (r) => i(v, {
5641
+ children: (t) => i(v, {
5591
5642
  get when() {
5592
- return n?.().get(r.type);
5643
+ return n?.().get(t.type);
5593
5644
  },
5594
5645
  keyed: !0,
5595
5646
  get fallback() {
5596
- return (() => {
5597
- var t = Dc();
5598
- return t.firstChild, s(t, () => r.type, null), o((n) => {
5599
- var i = e.id, a = `${e.id}@${e.basePath}`, o = r.type;
5600
- return i !== n.e && u(t, "data-a2ui-component-id", n.e = i), a !== n.t && u(t, "data-a2ui-component-key", n.t = a), o !== n.a && u(t, "data-a2ui-component-type", n.a = o), n;
5601
- }, {
5602
- e: void 0,
5603
- t: void 0,
5604
- a: void 0
5605
- }), t;
5606
- })();
5607
- },
5608
- children: (n) => (() => {
5609
- var n = Oc();
5610
- return s(n, i(v, {
5647
+ return i(v, {
5611
5648
  get when() {
5612
- return m();
5649
+ return e.wrap !== !1;
5613
5650
  },
5614
- keyed: !0,
5615
- children: (n) => {
5616
- let r = n.entry.render;
5617
- return i(r, {
5618
- get componentId() {
5619
- return e.id;
5620
- },
5621
- get instanceId() {
5622
- return x();
5623
- },
5624
- get index() {
5625
- return c(() => typeof e.index == "function")() ? e.index() : e.index ?? 0;
5626
- },
5627
- props: g,
5628
- get surface() {
5629
- return t();
5630
- },
5631
- get context() {
5632
- return n.context;
5633
- },
5634
- childRefs: y,
5635
- renderChild: b
5636
- });
5651
+ get children() {
5652
+ var n = Dc();
5653
+ return n.firstChild, s(n, () => t.type, null), o((r) => {
5654
+ var i = e.id, a = `${e.id}@${e.basePath}`, o = t.type;
5655
+ return i !== r.e && u(n, "data-a2ui-component-id", r.e = i), a !== r.t && u(n, "data-a2ui-component-key", r.t = a), o !== r.a && u(n, "data-a2ui-component-type", r.a = o), r;
5656
+ }, {
5657
+ e: void 0,
5658
+ t: void 0,
5659
+ a: void 0
5660
+ }), n;
5637
5661
  }
5638
- })), o((t) => {
5639
- var r = e.id, i = `${e.id}@${e.basePath}`;
5640
- return r !== t.e && u(n, "data-a2ui-component-id", t.e = r), i !== t.t && u(n, "data-a2ui-component-key", t.t = i), t;
5641
- }, {
5642
- e: void 0,
5643
- t: void 0
5644
- }), n;
5645
- })()
5662
+ });
5663
+ },
5664
+ children: (t) => i(v, {
5665
+ get when() {
5666
+ return e.wrap !== !1;
5667
+ },
5668
+ get fallback() {
5669
+ return i(S, {});
5670
+ },
5671
+ get children() {
5672
+ var t = Oc();
5673
+ return s(t, i(S, {})), o((n) => {
5674
+ var r = e.id, i = `${e.id}@${e.basePath}`;
5675
+ return r !== n.e && u(t, "data-a2ui-component-id", n.e = r), i !== n.t && u(t, "data-a2ui-component-key", n.t = i), n;
5676
+ }, {
5677
+ e: void 0,
5678
+ t: void 0
5679
+ }), t;
5680
+ }
5681
+ })
5646
5682
  })
5647
5683
  });
5648
5684
  }
@@ -5751,13 +5787,13 @@ var Fc = /*#__PURE__*/ m("<div>"), Ic = "https://a2ui.org/specification/v0_9/bas
5751
5787
  return;
5752
5788
  }
5753
5789
  d();
5754
- let a = /* @__PURE__ */ new Set([Ic, vt]);
5790
+ let a = /* @__PURE__ */ new Set([Ic, _t]);
5755
5791
  n && a.add(n);
5756
5792
  for (let t of e) if (typeof t == "object" && t && "createSurface" in t) {
5757
5793
  let e = t.createSurface?.catalogId;
5758
5794
  e && a.add(e);
5759
5795
  }
5760
- let o = new Ft([...a].map((e) => i.toCatalog(e))), s = /* @__PURE__ */ new Map(), l = () => c([...s.values()]);
5796
+ let o = new Pt([...a].map((e) => i.toCatalog(e))), s = /* @__PURE__ */ new Map(), l = () => c([...s.values()]);
5761
5797
  u = {
5762
5798
  processor: o,
5763
5799
  subscriptions: [o.model.onSurfaceCreated.subscribe((e) => {
@@ -5798,27 +5834,27 @@ var Fc = /*#__PURE__*/ m("<div>"), Ic = "https://a2ui.org/specification/v0_9/bas
5798
5834
  })), e;
5799
5835
  })();
5800
5836
  }, Z = {
5801
- panel: "_panel_1uuzp_1",
5802
- empty: "_empty_1uuzp_18",
5803
- "prompt-row": "_prompt-row_1uuzp_25",
5804
- "prompt-row-active": "_prompt-row-active_1uuzp_44",
5805
- "prompt-head": "_prompt-head_1uuzp_48",
5806
- "prompt-name": "_prompt-name_1uuzp_54",
5807
- "prompt-description": "_prompt-description_1uuzp_59",
5808
- "modal-card": "_modal-card_1uuzp_65",
5809
- "modal-header": "_modal-header_1uuzp_80",
5810
- form: "_form_1uuzp_81",
5811
- "field-label": "_field-label_1uuzp_82",
5812
- "modal-title": "_modal-title_1uuzp_91",
5813
- "modal-description": "_modal-description_1uuzp_96",
5814
- "form-actions": "_form-actions_1uuzp_106",
5815
- "use-button": "_use-button_1uuzp_112",
5816
- "cancel-button": "_cancel-button_1uuzp_113",
5817
- error: "_error_1uuzp_151",
5818
- "field-required": "_field-required_1uuzp_152",
5819
- "field-name": "_field-name_1uuzp_165",
5820
- "field-input": "_field-input_1uuzp_174",
5821
- "field-hint": "_field-hint_1uuzp_191"
5837
+ panel: "_panel_156hu_1",
5838
+ empty: "_empty_156hu_18",
5839
+ "prompt-row": "_prompt-row_156hu_25",
5840
+ "prompt-row-active": "_prompt-row-active_156hu_44",
5841
+ "prompt-head": "_prompt-head_156hu_48",
5842
+ "prompt-name": "_prompt-name_156hu_54",
5843
+ "prompt-description": "_prompt-description_156hu_59",
5844
+ "modal-card": "_modal-card_156hu_65",
5845
+ "modal-header": "_modal-header_156hu_80",
5846
+ form: "_form_156hu_81",
5847
+ "field-label": "_field-label_156hu_82",
5848
+ "modal-title": "_modal-title_156hu_91",
5849
+ "modal-description": "_modal-description_156hu_96",
5850
+ "form-actions": "_form-actions_156hu_106",
5851
+ "use-button": "_use-button_156hu_112",
5852
+ "cancel-button": "_cancel-button_156hu_113",
5853
+ error: "_error_156hu_151",
5854
+ "field-required": "_field-required_156hu_152",
5855
+ "field-name": "_field-name_156hu_165",
5856
+ "field-input": "_field-input_156hu_174",
5857
+ "field-hint": "_field-hint_156hu_191"
5822
5858
  }, zc = /*#__PURE__*/ m("<div>"), Bc = /*#__PURE__*/ m("<div>No prompts available."), Vc = /*#__PURE__*/ m("<button type=button><span><span>"), Hc = /*#__PURE__*/ m("<span>"), Uc = /*#__PURE__*/ m("<div><span>"), Wc = /*#__PURE__*/ m("<div><button type=button>Cancel</button><button type=button>"), Gc = /*#__PURE__*/ m("<span>*"), Kc = /*#__PURE__*/ m("<option value>(none)"), qc = /*#__PURE__*/ m("<select>"), Jc = /*#__PURE__*/ m("<label><span>"), Yc = /*#__PURE__*/ m("<input type=text>"), Xc = /*#__PURE__*/ m("<option>"), Zc = (e) => {
5823
5859
  let [t, n] = P(e, [
5824
5860
  "class",
@@ -5828,7 +5864,7 @@ var Fc = /*#__PURE__*/ m("<div>"), Ic = "https://a2ui.org/specification/v0_9/bas
5828
5864
  "activeIndex",
5829
5865
  "triggerDescriptor",
5830
5866
  "clearTriggerDescriptor"
5831
- ]), { Modal: a, show: d, hide: p } = Ya(), m = tn({
5867
+ ]), { Modal: a, show: d, hide: p } = Ya(), m = en({
5832
5868
  descriptor: null,
5833
5869
  values: {},
5834
5870
  submitting: !1,
@@ -6078,6 +6114,12 @@ var Qc = {
6078
6114
  "elm-ag-ui-status-pulse": "_elm-ag-ui-status-pulse_1kh96_1"
6079
6115
  }, $c = /*#__PURE__*/ m("<div><div>"), el = "var(--elmethis-color-accent-info)", tl = "var(--elmethis-color-accent-success)", nl = "var(--elmethis-color-accent-error)", rl = (e) => {
6080
6116
  switch (e) {
6117
+ case "idle": return {
6118
+ d: me,
6119
+ label: "Working...",
6120
+ color: el,
6121
+ pulse: !0
6122
+ };
6081
6123
  case "thinking": return {
6082
6124
  d: se,
6083
6125
  label: "Thinking...",
@@ -6085,32 +6127,33 @@ var Qc = {
6085
6127
  pulse: !0
6086
6128
  };
6087
6129
  case "writing": return {
6088
- d: Pe,
6130
+ d: Ne,
6089
6131
  label: "Writing...",
6090
6132
  color: el,
6091
6133
  pulse: !0
6092
6134
  };
6093
6135
  case "calling_tool": return {
6094
- d: we,
6136
+ d: Ce,
6095
6137
  label: "Calling a tool...",
6096
6138
  color: el,
6097
6139
  pulse: !0
6098
6140
  };
6099
6141
  case "updating_state": return {
6100
- d: He,
6142
+ d: Ve,
6101
6143
  label: "Updating...",
6102
6144
  color: el,
6103
6145
  pulse: !0
6104
6146
  };
6105
- default: return {
6106
- d: he,
6107
- label: "Working...",
6108
- color: el,
6109
- pulse: !0
6110
- };
6111
6147
  }
6148
+ return {
6149
+ d: me,
6150
+ label: "Working...",
6151
+ color: el,
6152
+ pulse: !0
6153
+ };
6112
6154
  }, il = (e, t) => {
6113
6155
  switch (e) {
6156
+ case "idle": return;
6114
6157
  case "running": return rl(t);
6115
6158
  case "awaiting_input": return {
6116
6159
  d: ne,
@@ -6128,10 +6171,9 @@ var Qc = {
6128
6171
  color: nl
6129
6172
  };
6130
6173
  case "aborted": return {
6131
- d: Ve,
6174
+ d: Be,
6132
6175
  label: "Stopped"
6133
6176
  };
6134
- default: return;
6135
6177
  }
6136
6178
  }, al = (e) => {
6137
6179
  let [t, n] = P(e, [
@@ -6182,15 +6224,15 @@ var Qc = {
6182
6224
  })()
6183
6225
  });
6184
6226
  }, ol = {
6185
- "elm-ag-ui-input": "_elm-ag-ui-input_jurm3_1",
6186
- "picker-container": "_picker-container_jurm3_9",
6187
- card: "_card_jurm3_14",
6188
- input: "_input_jurm3_25",
6189
- "button-row": "_button-row_jurm3_42",
6190
- status: "_status_jurm3_50",
6191
- "plus-button": "_plus-button_jurm3_57",
6192
- "submit-button": "_submit-button_jurm3_58",
6193
- "stop-button": "_stop-button_jurm3_59"
6227
+ "elm-ag-ui-input": "_elm-ag-ui-input_1t703_1",
6228
+ "picker-container": "_picker-container_1t703_9",
6229
+ card: "_card_1t703_14",
6230
+ input: "_input_1t703_25",
6231
+ "button-row": "_button-row_1t703_42",
6232
+ status: "_status_1t703_50",
6233
+ "plus-button": "_plus-button_1t703_57",
6234
+ "submit-button": "_submit-button_1t703_58",
6235
+ "stop-button": "_stop-button_1t703_59"
6194
6236
  }, sl = /*#__PURE__*/ m("<button type=button>"), cl = /*#__PURE__*/ m("<button type=button aria-label=Stop>"), ll = /*#__PURE__*/ m("<div><div><textarea name=prompt aria-label=Prompt></textarea><div><button type=button aria-label=Send>"), ul = (e) => {
6195
6237
  let [t, n] = P(e, [
6196
6238
  "class",
@@ -6275,7 +6317,7 @@ var Qc = {
6275
6317
  p(e), e && a?.focus();
6276
6318
  }, e.$$mousedown = (e) => e.preventDefault(), s(e, i(H, {
6277
6319
  get path() {
6278
- return d() ? pe : Ie;
6320
+ return d() ? fe : Fe;
6279
6321
  },
6280
6322
  size: "1rem",
6281
6323
  color: "white"
@@ -6311,13 +6353,13 @@ var Qc = {
6311
6353
  get children() {
6312
6354
  var e = cl();
6313
6355
  return e.$$click = () => t.onAbort(), s(e, i(H, {
6314
- path: Be,
6356
+ path: ze,
6315
6357
  size: "1rem",
6316
6358
  color: "white"
6317
6359
  })), o(() => r(e, ol["stop-button"])), e;
6318
6360
  }
6319
6361
  }), x), x.$$click = N, s(x, i(H, {
6320
- path: ze,
6362
+ path: Re,
6321
6363
  size: "1rem",
6322
6364
  color: "white"
6323
6365
  })), o((e) => {
@@ -6364,7 +6406,7 @@ var dl = {
6364
6406
  get class() {
6365
6407
  return dl["type-icon"];
6366
6408
  },
6367
- path: We
6409
+ path: Ue
6368
6410
  }), n), s(n, () => t.source.value), s(a, () => t.source.mimeType), o((t) => {
6369
6411
  var i = dl["media-component"], o = dl.text, s = dl["mime-type-label"];
6370
6412
  return i !== t.e && r(e, t.e = i), o !== t.t && r(n, t.t = o), s !== t.a && r(a, t.a = s), t;
@@ -6382,7 +6424,7 @@ var dl = {
6382
6424
  get class() {
6383
6425
  return dl["type-icon"];
6384
6426
  },
6385
- path: Ee
6427
+ path: Te
6386
6428
  }), n), u(n, "src", a), s(c, () => e.mimeType), o((e) => {
6387
6429
  var i = dl["media-component"], a = dl.image, o = dl["mime-type-label"];
6388
6430
  return i !== e.e && r(t, e.e = i), a !== e.t && r(n, e.t = a), o !== e.a && r(c, e.a = o), e;
@@ -6425,31 +6467,30 @@ var dl = {
6425
6467
  x.push(async () => e()).catch(() => void 0);
6426
6468
  };
6427
6469
  C(() => {
6428
- let e = t.toolEventType, n = e === R.TOOL_CALL_START ? 0 : e === R.TOOL_CALL_ARGS ? 1 : e === R.TOOL_CALL_END || e === R.TOOL_CALL_CHUNK ? 2 : e === R.TOOL_CALL_RESULT ? 3 : -1;
6470
+ let e = t.toolEventType, n = e === z.TOOL_CALL_START ? 0 : e === z.TOOL_CALL_ARGS ? 1 : e === z.TOOL_CALL_END || e === z.TOOL_CALL_CHUNK ? 2 : e === z.TOOL_CALL_RESULT ? 3 : -1;
6429
6471
  if (!(n <= S)) switch (S = n, e) {
6430
- case R.TOOL_CALL_START:
6472
+ case void 0: break;
6473
+ case z.TOOL_CALL_START:
6431
6474
  w(() => {
6432
6475
  u(!0), p(!0), h(!1), _(!1), b(!1);
6433
6476
  });
6434
6477
  break;
6435
- case R.TOOL_CALL_ARGS:
6478
+ case z.TOOL_CALL_ARGS:
6436
6479
  w(() => {
6437
6480
  u(!0), p(!0), h(!0), _(!1), b(!1);
6438
6481
  }), w(() => h(!1));
6439
6482
  break;
6440
- case R.TOOL_CALL_END:
6441
- case R.TOOL_CALL_CHUNK:
6483
+ case z.TOOL_CALL_END:
6484
+ case z.TOOL_CALL_CHUNK:
6442
6485
  w(() => {
6443
6486
  u(!0), p(!0), h(!1), _(!0), b(!1);
6444
6487
  });
6445
6488
  break;
6446
- case R.TOOL_CALL_RESULT:
6447
- w(() => {
6448
- p(!0), h(!1), _(!0), b(!0);
6449
- }), w(() => {
6450
- u(!1), b(!1);
6451
- });
6452
- break;
6489
+ case z.TOOL_CALL_RESULT: w(() => {
6490
+ p(!0), h(!1), _(!0), b(!0);
6491
+ }), w(() => {
6492
+ u(!1), b(!1);
6493
+ });
6453
6494
  }
6454
6495
  });
6455
6496
  let T = (e, t, n) => (() => {
@@ -6471,11 +6512,11 @@ var dl = {
6471
6512
  onOpenChange: u,
6472
6513
  monochrome: !0,
6473
6514
  get summary() {
6474
- return T(we, t.toolName);
6515
+ return T(Ce, t.toolName);
6475
6516
  },
6476
6517
  get children() {
6477
6518
  return [
6478
- c(() => T(Ce, "Preparing arguments...", t.toolEventType === R.TOOL_CALL_START ? "var(--elmethis-color-accent-info)" : "var(--elmethis-color-accent-success)")),
6519
+ c(() => T(Se, "Preparing arguments...", t.toolEventType === z.TOOL_CALL_START ? "var(--elmethis-color-accent-info)" : "var(--elmethis-color-accent-success)")),
6479
6520
  i(v, {
6480
6521
  get when() {
6481
6522
  return d();
@@ -6488,7 +6529,7 @@ var dl = {
6488
6529
  onOpenChange: h,
6489
6530
  monochrome: !0,
6490
6531
  get summary() {
6491
- return T(L, "Args");
6532
+ return T(R, "Args");
6492
6533
  },
6493
6534
  get children() {
6494
6535
  return i(v, {
@@ -6510,10 +6551,10 @@ var dl = {
6510
6551
  }),
6511
6552
  i(v, {
6512
6553
  get when() {
6513
- return t.toolEventType !== R.TOOL_CALL_START;
6554
+ return t.toolEventType !== z.TOOL_CALL_START;
6514
6555
  },
6515
6556
  get children() {
6516
- return T(Ze, t.toolEventType === R.TOOL_CALL_ARGS || t.toolEventType === R.TOOL_CALL_END ? "Executing..." : "Execution completed", t.toolEventType === R.TOOL_CALL_ARGS || t.toolEventType === R.TOOL_CALL_END ? "var(--elmethis-color-accent-info)" : "var(--elmethis-color-accent-success)");
6557
+ return T(Xe, t.toolEventType === z.TOOL_CALL_ARGS || t.toolEventType === z.TOOL_CALL_END ? "Executing..." : "Execution completed", t.toolEventType === z.TOOL_CALL_ARGS || t.toolEventType === z.TOOL_CALL_END ? "var(--elmethis-color-accent-info)" : "var(--elmethis-color-accent-success)");
6517
6558
  }
6518
6559
  }),
6519
6560
  i(v, {
@@ -6528,7 +6569,7 @@ var dl = {
6528
6569
  onOpenChange: b,
6529
6570
  monochrome: !0,
6530
6571
  get summary() {
6531
- return T(L, "Result");
6572
+ return T(R, "Result");
6532
6573
  },
6533
6574
  get children() {
6534
6575
  return i(v, {
@@ -6586,7 +6627,7 @@ var dl = {
6586
6627
  get class() {
6587
6628
  return Q["message-content-icon"];
6588
6629
  },
6589
- path: De
6630
+ path: Ee
6590
6631
  }), t), s(e, i(B, { children: "Reasoning" }), t), o((n) => {
6591
6632
  var i = Q["message-content-type"], a = Q["message-content-spacer"];
6592
6633
  return i !== n.e && r(e, n.e = i), a !== n.t && r(t, n.t = a), n;
@@ -6619,7 +6660,7 @@ var dl = {
6619
6660
  "enableToolCalls",
6620
6661
  "enableReasoning"
6621
6662
  ]), c = (e) => {
6622
- let t = () => n.messages.find((t) => t.role === "tool" && t.toolCallId === e.id && t.content != null), r = () => t()?.content == null ? e.function.arguments == null ? R.TOOL_CALL_START : R.TOOL_CALL_ARGS : R.TOOL_CALL_RESULT, a = () => {
6663
+ let t = () => n.messages.find((t) => t.role === "tool" && t.toolCallId === e.id && t.content != null), r = () => t()?.content == null ? e.function.arguments == null ? z.TOOL_CALL_START : z.TOOL_CALL_ARGS : z.TOOL_CALL_RESULT, a = () => {
6623
6664
  let e = t()?.content;
6624
6665
  return typeof e == "string" ? e : void 0;
6625
6666
  };
@@ -6668,7 +6709,7 @@ var dl = {
6668
6709
  get class() {
6669
6710
  return Q["message-content-icon"];
6670
6711
  },
6671
- path: me
6712
+ path: pe
6672
6713
  }), l), s(c, i(B, { children: "Assistant" }), l), s(a, i(Lo, {
6673
6714
  markdown: e,
6674
6715
  isStreaming: !0
@@ -6679,7 +6720,7 @@ var dl = {
6679
6720
  get children() {
6680
6721
  var a = xl(), c = a.firstChild;
6681
6722
  return s(a, i(or, { content: e }), c), t(c, "click", n.handleRetry, !0), s(c, i(H, {
6682
- path: Le,
6723
+ path: Ie,
6683
6724
  size: "1.25rem"
6684
6725
  })), o((e) => {
6685
6726
  var t = Q["message-content-assistant-actions"], n = Q["clickable-icon"];
@@ -6757,21 +6798,21 @@ var dl = {
6757
6798
  };
6758
6799
  a(["click"]);
6759
6800
  var $ = {
6760
- "elm-ag-ui-agent": "_elm-ag-ui-agent_1x0j7_1",
6761
- "agent-container": "_agent-container_1x0j7_15",
6762
- messages: "_messages_1x0j7_21",
6763
- error: "_error_1x0j7_28",
6764
- "agent-input-container": "_agent-input-container_1x0j7_40",
6765
- "agent-input": "_agent-input_1x0j7_40",
6766
- "queue-container": "_queue-container_1x0j7_52",
6767
- "queue-item": "_queue-item_1x0j7_59",
6768
- "queue-item-icon": "_queue-item-icon_1x0j7_71",
6769
- "queue-item-text": "_queue-item-text_1x0j7_76",
6770
- "queue-item-remove": "_queue-item-remove_1x0j7_85",
6771
- "prompt-template-container": "_prompt-template-container_1x0j7_105",
6772
- "prompt-template-tip": "_prompt-template-tip_1x0j7_114",
6773
- "prompt-template-tip-icon": "_prompt-template-tip-icon_1x0j7_126",
6774
- "clickable-icon": "_clickable-icon_1x0j7_139"
6801
+ "elm-ag-ui-agent": "_elm-ag-ui-agent_1nztk_1",
6802
+ "agent-container": "_agent-container_1nztk_15",
6803
+ messages: "_messages_1nztk_21",
6804
+ error: "_error_1nztk_28",
6805
+ "agent-input-container": "_agent-input-container_1nztk_40",
6806
+ "agent-input": "_agent-input_1nztk_40",
6807
+ "queue-container": "_queue-container_1nztk_52",
6808
+ "queue-item": "_queue-item_1nztk_59",
6809
+ "queue-item-icon": "_queue-item-icon_1nztk_71",
6810
+ "queue-item-text": "_queue-item-text_1nztk_76",
6811
+ "queue-item-remove": "_queue-item-remove_1nztk_85",
6812
+ "prompt-template-container": "_prompt-template-container_1nztk_105",
6813
+ "prompt-template-tip": "_prompt-template-tip_1nztk_114",
6814
+ "prompt-template-tip-icon": "_prompt-template-tip-icon_1nztk_126",
6815
+ "clickable-icon": "_clickable-icon_1nztk_139"
6775
6816
  }, Dl = /*#__PURE__*/ m("<div>"), Ol = /*#__PURE__*/ m("<div><div><div></div></div><div><div>"), kl = /*#__PURE__*/ m("<button type=button aria-label=Retry>"), Al = /*#__PURE__*/ m("<div><span></span><button type=button aria-label=\"Remove from queue\">"), jl = /*#__PURE__*/ m("<button type=button>"), Ml = (e) => e.find((e) => e.type === "text")?.text ?? "Attachment", Nl = (e) => {
6776
6817
  let [t, n] = P(e, [
6777
6818
  "class",
@@ -6812,7 +6853,7 @@ var $ = {
6812
6853
  return I($["elm-ag-ui-agent"], t.class);
6813
6854
  },
6814
6855
  get style() {
6815
- return z(t.style, { "--elmethis-scoped-agent-ui-width": t.width ?? "clamp(300px, 100%, 600px)" });
6856
+ return cn(t.style, { "--elmethis-scoped-agent-ui-width": t.width ?? "clamp(300px, 100%, 600px)" });
6816
6857
  }
6817
6858
  }), !1, !0), s(d, i(El, {
6818
6859
  get isRunning() {
@@ -6846,7 +6887,7 @@ var $ = {
6846
6887
  })(), (() => {
6847
6888
  var e = kl();
6848
6889
  return e.$$click = () => void t.retry(), s(e, i(H, {
6849
- path: Le,
6890
+ path: Ie,
6850
6891
  size: "1.25rem"
6851
6892
  })), o(() => r(e, $["clickable-icon"])), e;
6852
6893
  })()]
@@ -6866,12 +6907,12 @@ var $ = {
6866
6907
  get class() {
6867
6908
  return $["queue-item-icon"];
6868
6909
  },
6869
- path: fe,
6910
+ path: de,
6870
6911
  size: "1rem"
6871
6912
  }), a), s(a, i(B, { get children() {
6872
6913
  return Ml(e.content);
6873
6914
  } })), c.$$click = () => t.dequeue(e.id), s(c, i(H, {
6874
- path: pe,
6915
+ path: fe,
6875
6916
  size: "0.875rem"
6876
6917
  })), o((e) => {
6877
6918
  var t = $["queue-item"], i = $["queue-item-text"], o = $["queue-item-remove"];
@@ -6900,7 +6941,7 @@ var $ = {
6900
6941
  get class() {
6901
6942
  return $["prompt-template-tip-icon"];
6902
6943
  },
6903
- path: Se
6944
+ path: xe
6904
6945
  }), null), s(n, i(B, { get children() {
6905
6946
  return e.description;
6906
6947
  } }), null), o(() => r(n, $["prompt-template-tip"])), n;
@@ -6982,7 +7023,7 @@ function Rl({ state: e, getTools: t, onNeedsReRun: n, onIdle: r }) {
6982
7023
  let a = t()[n];
6983
7024
  if (!a) return;
6984
7025
  let o = {
6985
- id: on(),
7026
+ id: an(),
6986
7027
  role: "tool",
6987
7028
  content: JSON.stringify(await a.execute(r)),
6988
7029
  toolCallId: e.toolCallId
@@ -7053,13 +7094,13 @@ function Hl(e) {
7053
7094
  return Object.entries(e).map(([e, t]) => ({
7054
7095
  name: e,
7055
7096
  description: t.description,
7056
- parameters: "jsonSchema" in t ? t.jsonSchema : sn(t.schema)
7097
+ parameters: "jsonSchema" in t ? t.jsonSchema : on(t.schema)
7057
7098
  }));
7058
7099
  }
7059
7100
  //#endregion
7060
7101
  //#region src/components/ag-ui-client/hooks/use-agent.ts
7061
7102
  function Ul(e) {
7062
- let t = typeof e.tools == "function" ? e.tools : void 0, n = typeof e.tools == "function" ? void 0 : e.tools, r, i = tn({
7103
+ let t = typeof e.tools == "function" ? e.tools : void 0, n = typeof e.tools == "function" ? void 0 : e.tools, r, i = en({
7063
7104
  error: null,
7064
7105
  messages: [...e.initialMessages ?? []],
7065
7106
  context: e.context,
@@ -7086,7 +7127,7 @@ function Ul(e) {
7086
7127
  }
7087
7128
  };
7088
7129
  return N(() => {
7089
- r = e.url === void 0 ? e.agentFactory() : (e.agentFactory ?? ((e) => new an(e)))({
7130
+ r = e.url === void 0 ? e.agentFactory() : (e.agentFactory ?? ((e) => new rn(e)))({
7090
7131
  url: e.url,
7091
7132
  headers: e.headers
7092
7133
  }), r.messages = [...e.initialMessages ?? []];
@@ -7117,13 +7158,13 @@ function Ul(e) {
7117
7158
  if (!r) return;
7118
7159
  if (i.isRunning) {
7119
7160
  i.queue.push({
7120
- id: on(),
7161
+ id: an(),
7121
7162
  content: e
7122
7163
  });
7123
7164
  return;
7124
7165
  }
7125
7166
  let t = {
7126
- id: on(),
7167
+ id: an(),
7127
7168
  role: "user",
7128
7169
  content: e
7129
7170
  };
@@ -7194,7 +7235,7 @@ async function Gl(e) {
7194
7235
  //#endregion
7195
7236
  //#region src/components/ag-ui-client/mcp/use-mcp-connections.ts
7196
7237
  function Kl(e) {
7197
- let t = [...e.servers], n = tn(Object.fromEntries(t.map((e) => [e.id, { state: "connecting" }]))), r = /* @__PURE__ */ new Map(), i = !1, a = async (e) => {
7238
+ let t = [...e.servers], n = en(Object.fromEntries(t.map((e) => [e.id, { state: "connecting" }]))), r = /* @__PURE__ */ new Map(), i = !1, a = async (e) => {
7198
7239
  let t = r.get(e);
7199
7240
  if (t) {
7200
7241
  r.delete(e);