@elmethis/solid 0.7.0 → 0.7.2

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 (179) hide show
  1. package/lib/index.solid.cjs +5 -5
  2. package/lib/index.solid.mjs +749 -708
  3. package/lib-solid/components/a2ui/catalog/basic-catalog.jsx +11 -4
  4. package/lib-solid/components/a2ui/catalog/basic-catalog.jsx.map +1 -1
  5. package/lib-solid/components/a2ui/catalog/catalog.js +6 -3
  6. package/lib-solid/components/a2ui/catalog/catalog.js.map +1 -1
  7. package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx +9 -7
  8. package/lib-solid/components/a2ui/catalog/notion-block-catalog.jsx.map +1 -1
  9. package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx +3 -1
  10. package/lib-solid/components/a2ui/catalog/render-indexed-child.jsx.map +1 -1
  11. package/lib-solid/components/a2ui/component-host.jsx +26 -18
  12. package/lib-solid/components/a2ui/component-host.jsx.map +1 -1
  13. package/lib-solid/components/a2ui/elm-a2ui.jsx +10 -5
  14. package/lib-solid/components/a2ui/elm-a2ui.jsx.map +1 -1
  15. package/lib-solid/components/a2ui/stream-json-lines.js +10 -5
  16. package/lib-solid/components/a2ui/stream-json-lines.js.map +1 -1
  17. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-agent.jsx +6 -3
  18. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-agent.jsx.map +1 -1
  19. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-input.jsx +6 -3
  20. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-input.jsx.map +1 -1
  21. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-message-renderer.jsx +14 -7
  22. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-message-renderer.jsx.map +1 -1
  23. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-prompt-picker.jsx +14 -7
  24. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-prompt-picker.jsx.map +1 -1
  25. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-status.jsx +16 -9
  26. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-status.jsx.map +1 -1
  27. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-tool-execution.jsx +5 -2
  28. package/lib-solid/components/ag-ui-client/components/elm-ag-ui-tool-execution.jsx.map +1 -1
  29. package/lib-solid/components/ag-ui-client/components/input-content/elm-ag-ui-input-content.jsx +2 -1
  30. package/lib-solid/components/ag-ui-client/components/input-content/elm-ag-ui-input-content.jsx.map +1 -1
  31. package/lib-solid/components/ag-ui-client/hooks/use-agent.js +24 -12
  32. package/lib-solid/components/ag-ui-client/hooks/use-agent.js.map +1 -1
  33. package/lib-solid/components/ag-ui-client/internal/create-agent-subscriber.js +2 -1
  34. package/lib-solid/components/ag-ui-client/internal/create-agent-subscriber.js.map +1 -1
  35. package/lib-solid/components/ag-ui-client/internal/reconcile-messages.js +16 -8
  36. package/lib-solid/components/ag-ui-client/internal/reconcile-messages.js.map +1 -1
  37. package/lib-solid/components/ag-ui-client/mcp/create-mcp-client.js +2 -2
  38. package/lib-solid/components/ag-ui-client/mcp/create-mcp-client.js.map +1 -1
  39. package/lib-solid/components/ag-ui-client/mcp/use-mcp-connections.js +4 -2
  40. package/lib-solid/components/ag-ui-client/mcp/use-mcp-connections.js.map +1 -1
  41. package/lib-solid/components/ag-ui-client/mcp/use-mcp-prompts.js +2 -1
  42. package/lib-solid/components/ag-ui-client/mcp/use-mcp-prompts.js.map +1 -1
  43. package/lib-solid/components/ag-ui-client/mcp/use-mcp-tools.js +2 -1
  44. package/lib-solid/components/ag-ui-client/mcp/use-mcp-tools.js.map +1 -1
  45. package/lib-solid/components/code/elm-html-viewer.jsx +12 -6
  46. package/lib-solid/components/code/elm-html-viewer.jsx.map +1 -1
  47. package/lib-solid/components/code/elm-html.jsx +18 -9
  48. package/lib-solid/components/code/elm-html.jsx.map +1 -1
  49. package/lib-solid/components/code/elm-shiki-highlighter.jsx +4 -2
  50. package/lib-solid/components/code/elm-shiki-highlighter.jsx.map +1 -1
  51. package/lib-solid/components/containments/elm-collapse.jsx +2 -1
  52. package/lib-solid/components/containments/elm-collapse.jsx.map +1 -1
  53. package/lib-solid/components/containments/elm-modal.jsx +18 -9
  54. package/lib-solid/components/containments/elm-modal.jsx.map +1 -1
  55. package/lib-solid/components/containments/elm-parallax.jsx +2 -1
  56. package/lib-solid/components/containments/elm-parallax.jsx.map +1 -1
  57. package/lib-solid/components/containments/elm-tooltip.jsx +4 -2
  58. package/lib-solid/components/containments/elm-tooltip.jsx.map +1 -1
  59. package/lib-solid/components/form/elm-button-dropdown.jsx +10 -5
  60. package/lib-solid/components/form/elm-button-dropdown.jsx.map +1 -1
  61. package/lib-solid/components/form/elm-button.jsx +2 -1
  62. package/lib-solid/components/form/elm-button.jsx.map +1 -1
  63. package/lib-solid/components/form/elm-select.jsx +2 -1
  64. package/lib-solid/components/form/elm-select.jsx.map +1 -1
  65. package/lib-solid/components/form/elm-slider.jsx +34 -17
  66. package/lib-solid/components/form/elm-slider.jsx.map +1 -1
  67. package/lib-solid/components/form/elm-text-area.jsx +18 -9
  68. package/lib-solid/components/form/elm-text-area.jsx.map +1 -1
  69. package/lib-solid/components/form/elm-text-field.jsx +25 -14
  70. package/lib-solid/components/form/elm-text-field.jsx.map +1 -1
  71. package/lib-solid/components/icon/elm-copy-icon.jsx +4 -2
  72. package/lib-solid/components/icon/elm-copy-icon.jsx.map +1 -1
  73. package/lib-solid/components/icon/elm-toggle-theme.jsx +8 -4
  74. package/lib-solid/components/icon/elm-toggle-theme.jsx.map +1 -1
  75. package/lib-solid/components/media/elm-audio-player.jsx +26 -13
  76. package/lib-solid/components/media/elm-audio-player.jsx.map +1 -1
  77. package/lib-solid/components/media/elm-block-image.jsx +2 -1
  78. package/lib-solid/components/media/elm-block-image.jsx.map +1 -1
  79. package/lib-solid/components/media/elm-file.jsx +8 -4
  80. package/lib-solid/components/media/elm-file.jsx.map +1 -1
  81. package/lib-solid/components/navigation/elm-page-top.jsx +8 -4
  82. package/lib-solid/components/navigation/elm-page-top.jsx.map +1 -1
  83. package/lib-solid/components/others/color-sample-copy.js +12 -6
  84. package/lib-solid/components/others/color-sample-copy.js.map +1 -1
  85. package/lib-solid/components/others/elm-markdown.jsx +4 -1
  86. package/lib-solid/components/others/elm-markdown.jsx.map +1 -1
  87. package/lib-solid/components/others/use-wordle.jsx +13 -6
  88. package/lib-solid/components/others/use-wordle.jsx.map +1 -1
  89. package/lib-solid/components/table/elm-table.jsx +2 -1
  90. package/lib-solid/components/table/elm-table.jsx.map +1 -1
  91. package/lib-solid/components/typography/elm-inline-text.jsx +12 -6
  92. package/lib-solid/components/typography/elm-inline-text.jsx.map +1 -1
  93. package/lib-solid/primitives/create-async-state.js +20 -11
  94. package/lib-solid/primitives/create-async-state.js.map +1 -1
  95. package/lib-solid/primitives/create-clipboard.js +8 -4
  96. package/lib-solid/primitives/create-clipboard.js.map +1 -1
  97. package/lib-solid/primitives/create-controllable-signal.js +2 -1
  98. package/lib-solid/primitives/create-controllable-signal.js.map +1 -1
  99. package/lib-solid/primitives/create-debounced.js +4 -2
  100. package/lib-solid/primitives/create-debounced.js.map +1 -1
  101. package/lib-solid/primitives/create-delayed-signal.js +2 -1
  102. package/lib-solid/primitives/create-delayed-signal.js.map +1 -1
  103. package/lib-solid/primitives/create-elmethis-theme.js +26 -13
  104. package/lib-solid/primitives/create-elmethis-theme.js.map +1 -1
  105. package/lib-solid/primitives/create-storage.js +12 -6
  106. package/lib-solid/primitives/create-storage.js.map +1 -1
  107. package/lib-solid/primitives/create-throttled-queue.js +21 -14
  108. package/lib-solid/primitives/create-throttled-queue.js.map +1 -1
  109. package/lib-solid/primitives/create-throttled.js +6 -3
  110. package/lib-solid/primitives/create-throttled.js.map +1 -1
  111. package/lib-types/components/a2ui/catalog/basic-catalog.d.ts.map +1 -1
  112. package/lib-types/components/a2ui/catalog/catalog.d.ts +4 -1
  113. package/lib-types/components/a2ui/catalog/catalog.d.ts.map +1 -1
  114. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts.map +1 -1
  115. package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts +2 -1
  116. package/lib-types/components/a2ui/catalog/render-indexed-child.d.ts.map +1 -1
  117. package/lib-types/components/a2ui/component-host.d.ts +2 -1
  118. package/lib-types/components/a2ui/component-host.d.ts.map +1 -1
  119. package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -1
  120. package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -1
  121. package/lib-types/components/ag-ui-client/components/elm-ag-ui-agent.d.ts.map +1 -1
  122. package/lib-types/components/ag-ui-client/components/elm-ag-ui-input.d.ts.map +1 -1
  123. package/lib-types/components/ag-ui-client/components/elm-ag-ui-message-renderer.d.ts.map +1 -1
  124. package/lib-types/components/ag-ui-client/components/elm-ag-ui-prompt-picker.d.ts.map +1 -1
  125. package/lib-types/components/ag-ui-client/components/elm-ag-ui-status.d.ts.map +1 -1
  126. package/lib-types/components/ag-ui-client/components/elm-ag-ui-tool-execution.d.ts.map +1 -1
  127. package/lib-types/components/ag-ui-client/components/input-content/elm-ag-ui-input-content.d.ts.map +1 -1
  128. package/lib-types/components/ag-ui-client/hooks/use-agent.d.ts.map +1 -1
  129. package/lib-types/components/ag-ui-client/internal/create-agent-subscriber.d.ts +2 -2
  130. package/lib-types/components/ag-ui-client/internal/create-agent-subscriber.d.ts.map +1 -1
  131. package/lib-types/components/ag-ui-client/internal/reconcile-messages.d.ts.map +1 -1
  132. package/lib-types/components/ag-ui-client/mcp/create-mcp-client.d.ts.map +1 -1
  133. package/lib-types/components/ag-ui-client/mcp/use-mcp-connections.d.ts.map +1 -1
  134. package/lib-types/components/ag-ui-client/mcp/use-mcp-prompts.d.ts.map +1 -1
  135. package/lib-types/components/ag-ui-client/mcp/use-mcp-tools.d.ts.map +1 -1
  136. package/lib-types/components/code/elm-html-viewer.d.ts.map +1 -1
  137. package/lib-types/components/code/elm-html.d.ts.map +1 -1
  138. package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -1
  139. package/lib-types/components/containments/elm-collapse.d.ts.map +1 -1
  140. package/lib-types/components/containments/elm-modal.d.ts.map +1 -1
  141. package/lib-types/components/containments/elm-parallax.d.ts.map +1 -1
  142. package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -1
  143. package/lib-types/components/form/elm-button-dropdown.d.ts.map +1 -1
  144. package/lib-types/components/form/elm-button.d.ts.map +1 -1
  145. package/lib-types/components/form/elm-select.d.ts.map +1 -1
  146. package/lib-types/components/form/elm-slider.d.ts.map +1 -1
  147. package/lib-types/components/form/elm-text-area.d.ts.map +1 -1
  148. package/lib-types/components/form/elm-text-field.d.ts.map +1 -1
  149. package/lib-types/components/icon/elm-copy-icon.d.ts.map +1 -1
  150. package/lib-types/components/icon/elm-language-icon.d.ts +1 -1
  151. package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -1
  152. package/lib-types/components/icon/elm-toggle-theme.d.ts.map +1 -1
  153. package/lib-types/components/media/elm-audio-player.d.ts.map +1 -1
  154. package/lib-types/components/media/elm-block-image.d.ts.map +1 -1
  155. package/lib-types/components/media/elm-file.d.ts.map +1 -1
  156. package/lib-types/components/navigation/elm-page-top.d.ts.map +1 -1
  157. package/lib-types/components/others/color-sample-copy.d.ts.map +1 -1
  158. package/lib-types/components/others/elm-markdown.d.ts.map +1 -1
  159. package/lib-types/components/others/use-wordle.d.ts.map +1 -1
  160. package/lib-types/components/table/elm-table.d.ts.map +1 -1
  161. package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -1
  162. package/lib-types/primitives/create-async-state.d.ts.map +1 -1
  163. package/lib-types/primitives/create-clipboard.d.ts.map +1 -1
  164. package/lib-types/primitives/create-controllable-signal.d.ts.map +1 -1
  165. package/lib-types/primitives/create-debounced.d.ts.map +1 -1
  166. package/lib-types/primitives/create-delayed-signal.d.ts.map +1 -1
  167. package/lib-types/primitives/create-elmethis-theme.d.ts.map +1 -1
  168. package/lib-types/primitives/create-storage.d.ts.map +1 -1
  169. package/lib-types/primitives/create-throttled-queue.d.ts.map +1 -1
  170. package/lib-types/primitives/create-throttled.d.ts.map +1 -1
  171. package/package.json +32 -33
  172. package/lib-solid/hooks/create-auto-animate.js +0 -61
  173. package/lib-solid/hooks/create-auto-animate.js.map +0 -1
  174. package/lib-solid/primitives/create-auto-animate.js +0 -79
  175. package/lib-solid/primitives/create-auto-animate.js.map +0 -1
  176. package/lib-types/hooks/create-auto-animate.d.ts +0 -26
  177. package/lib-types/hooks/create-auto-animate.d.ts.map +0 -1
  178. package/lib-types/primitives/create-auto-animate.d.ts +0 -32
  179. package/lib-types/primitives/create-auto-animate.d.ts.map +0 -1
@@ -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",
@@ -90,7 +90,7 @@ var cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, z = (e, t) =>
90
90
  "ogp-title": "_ogp-title_1r4f6_109",
91
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, [
@@ -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",
@@ -354,10 +354,10 @@ var Vn = {
354
354
  disabled: "_disabled_1ipa7_26",
355
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,
@@ -698,18 +698,19 @@ var sr = /*#__PURE__*/ m("<svg xmlns=http://www.w3.org/2000/svg>"), cr = (e, t,
698
698
  window.dispatchEvent(new CustomEvent(yr, { detail: e }));
699
699
  };
700
700
  function Cr() {
701
- let [e, t] = D(!1), n, r = () => n?.matches ?? !1;
701
+ let [e, t] = D(!1), n, r = (e = n?.matches ?? !1) => {
702
+ let t = window.getComputedStyle(document.documentElement).colorScheme.split(/\s+/), r = t.includes("dark");
703
+ return r === t.includes("light") ? e : r;
704
+ };
702
705
  return N(() => {
703
706
  typeof window.matchMedia == "function" && (n = window.matchMedia(vr));
704
707
  let e = (e) => {
705
708
  let n = e.detail;
706
709
  t(n === null ? r() : n === "dark");
707
710
  }, i = (e) => {
708
- if (e.key !== null && e.key !== _r) return;
709
- let n = br(e.newValue);
710
- t(n === null ? r() : n === "dark"), Sr(n, !1);
711
+ (e.key === null || e.key === _r) && Sr(br(e.newValue), !1);
711
712
  }, a = (e) => {
712
- xr() === null && t(e.matches);
713
+ xr() === null && t(r(e.matches));
713
714
  };
714
715
  window.addEventListener(yr, e), window.addEventListener("storage", i), n?.addEventListener("change", a);
715
716
  let o = xr();
@@ -719,8 +720,8 @@ function Cr() {
719
720
  }), {
720
721
  isDarkTheme: e,
721
722
  toggleTheme: () => {
722
- let n = e() ? "light" : "dark";
723
- t(n === "dark"), Sr(n, !0);
723
+ let e = r() ? "light" : "dark";
724
+ t(e === "dark"), Sr(e, !0);
724
725
  }
725
726
  };
726
727
  }
@@ -730,7 +731,7 @@ var wr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Tr = /*#__PURE__*/
730
731
  attributeName: "opacity",
731
732
  to: e
732
733
  }), Or = (e) => {
733
- let [t, n] = P(A({ size: "2rem" }, e), [
734
+ let t = A({ size: "2rem" }, e), [n, r] = P(t, [
734
735
  "class",
735
736
  "style",
736
737
  "size",
@@ -741,84 +742,84 @@ var wr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Tr = /*#__PURE__*/
741
742
  "tabIndex",
742
743
  "aria-label",
743
744
  "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 = {
745
+ ]), 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) => {
746
+ i.toggleTheme();
747
+ let t = n.onClick;
748
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
749
+ }, m = (e) => {
750
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i.toggleTheme());
751
+ let t = n.onKeyDown;
752
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
753
+ }, h = {
753
754
  xmlns: "http://www.w3.org/2000/svg",
754
755
  viewBox: "0 0 24 24"
755
756
  };
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, {
757
+ return c(() => c(() => !i.isDarkTheme())() ? (() => {
758
+ var e = Tr(), t = e.firstChild.nextSibling.nextSibling, i = t.firstChild, a = t.nextSibling, s = a.nextSibling, c = s.firstChild.nextSibling;
759
+ return f(e, l(h, {
759
760
  get width() {
760
- return t.size;
761
+ return n.size;
761
762
  },
762
763
  get height() {
763
- return t.size;
764
+ return n.size;
764
765
  },
765
766
  get class() {
766
- return I(wr["elm-toggle-theme"], t.class);
767
+ return I(wr["elm-toggle-theme"], n.class);
767
768
  },
768
769
  get style() {
769
- return t.style;
770
+ return n.style;
770
771
  },
771
772
  get role() {
772
- return t.role ?? "button";
773
+ return n.role ?? "button";
773
774
  },
774
775
  get tabindex() {
775
- return t.tabindex ?? t.tabIndex ?? 0;
776
+ return n.tabindex ?? n.tabIndex ?? 0;
776
777
  },
777
778
  get "aria-label"() {
778
- return t["aria-label"] ?? "Switch to dark theme";
779
+ return n["aria-label"] ?? "Switch to dark theme";
779
780
  },
780
- onClick: d,
781
- onKeyDown: p
782
- }, n), !0, !0), f(i, l(() => Dr("0"), {
781
+ onClick: p,
782
+ onKeyDown: m
783
+ }, r), !0, !0), f(i, l(() => Dr("0"), {
783
784
  fill: "freeze",
784
785
  begin: "0.6s"
785
- }), !0, !1), u(o, "id", a), u(s, "mask", `url(#${a})`), f(c, l(() => Dr("1"), {
786
+ }), !0, !1), u(a, "id", o), u(s, "mask", `url(#${o})`), f(c, l(() => Dr("1"), {
786
787
  fill: "freeze",
787
788
  begin: "0.6s"
788
789
  }), !0, !1), e;
789
790
  })() : (() => {
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, {
791
+ 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;
792
+ return f(e, l(h, {
792
793
  get width() {
793
- return t.size;
794
+ return n.size;
794
795
  },
795
796
  get height() {
796
- return t.size;
797
+ return n.size;
797
798
  },
798
799
  get class() {
799
- return I(wr["elm-toggle-theme"], t.class);
800
+ return I(wr["elm-toggle-theme"], n.class);
800
801
  },
801
802
  get style() {
802
- return t.style;
803
+ return n.style;
803
804
  },
804
805
  get role() {
805
- return t.role ?? "button";
806
+ return n.role ?? "button";
806
807
  },
807
808
  get tabindex() {
808
- return t.tabindex ?? t.tabIndex ?? 0;
809
+ return n.tabindex ?? n.tabIndex ?? 0;
809
810
  },
810
811
  get "aria-label"() {
811
- return t["aria-label"] ?? "Switch to light theme";
812
+ return n["aria-label"] ?? "Switch to light theme";
812
813
  },
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"), {
814
+ onClick: p,
815
+ onKeyDown: m
816
+ }, 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
817
  fill: "freeze",
817
818
  begin: "0.5s"
818
819
  }), !0, !1), f(E, l(() => Dr("1"), {
819
820
  fill: "freeze",
820
821
  begin: "0.5s"
821
- }), !0, !1), u(D, "id", s), u(O, "mask", `url(#${s})`), f(k, l(() => Dr("0"), {
822
+ }), !0, !1), u(D, "id", d), u(O, "mask", `url(#${d})`), f(k, l(() => Dr("0"), {
822
823
  fill: "freeze",
823
824
  begin: "0.5s"
824
825
  }), !0, !1), e;
@@ -862,14 +863,14 @@ var Mr = (e) => {
862
863
  return f(e, l({ get class() {
863
864
  return I(kr["elm-file"], t.class);
864
865
  } }, n), !1, !0), s(a, i(H, {
865
- path: be,
866
+ path: ye,
866
867
  size: "1.25rem"
867
868
  })), s(c, i(B, { get children() {
868
869
  return t.name ?? jr(t.src);
869
870
  } })), s(d, i(B, { get children() {
870
871
  return t.filesize;
871
872
  } })), p.$$click = () => void u(), s(p, i(H, {
872
- path: ge,
873
+ path: he,
873
874
  size: "1.25rem"
874
875
  })), o((e) => {
875
876
  var t = kr["file-size"], n = kr["download-icon"];
@@ -920,7 +921,7 @@ var Nr = {
920
921
  return () => e() ? i(Sn, { get src() {
921
922
  return t.favicon;
922
923
  } }) : i(H, {
923
- path: Oe,
924
+ path: De,
924
925
  color: "var(--elmethis-color-accent-info)"
925
926
  });
926
927
  })(), null), s(y, i(B, {
@@ -966,7 +967,7 @@ var Nr = {
966
967
  return Lr.icon;
967
968
  },
968
969
  get path() {
969
- return c(() => a() === 0)() ? Te : a() === n.links.length - 1 ? ae : xe;
970
+ return c(() => a() === 0)() ? we : a() === n.links.length - 1 ? ae : be;
970
971
  },
971
972
  size: "1rem"
972
973
  }), d), s(d, () => e.text), s(l, (() => {
@@ -997,7 +998,7 @@ var Vr = {
997
998
  partial: "_partial_2u2d9_42",
998
999
  text: "_text_2u2d9_79"
999
1000
  }, 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), [
1001
+ let t = A({ position: "right" }, e), [n, i] = P(t, [
1001
1002
  "class",
1002
1003
  "style",
1003
1004
  "position",
@@ -1007,48 +1008,48 @@ var Vr = {
1007
1008
  "aria-hidden",
1008
1009
  "tabindex",
1009
1010
  "tabIndex"
1010
- ]), [i, a] = D(!1);
1011
+ ]), [a, s] = D(!1);
1011
1012
  N(() => {
1012
- let e = () => a(window.scrollY > 100);
1013
+ let e = () => s(window.scrollY > 100);
1013
1014
  window.addEventListener("scroll", e, { passive: !0 }), e(), M(() => window.removeEventListener("scroll", e));
1014
1015
  });
1015
- let s = () => window.scrollTo({
1016
+ let u = () => window.scrollTo({
1016
1017
  top: 0,
1017
1018
  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);
1019
+ }), d = (e) => {
1020
+ u();
1021
+ let t = n.onClick;
1022
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
1023
+ }, p = (e) => {
1024
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
1025
+ let t = n.onKeyDown;
1026
+ typeof t == "function" ? t(e) : t?.[0](t[1], e);
1026
1027
  };
1027
1028
  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({
1029
+ var e = Hr(), t = e.firstChild, s = t.nextSibling, u = s.nextSibling, m = u.nextSibling;
1030
+ return e.$$keydown = p, e.$$click = d, f(e, l({
1030
1031
  get class() {
1031
- return I(Vr["elm-page-top"], i() && Vr.visible, t.class);
1032
+ return I(Vr["elm-page-top"], a() && Vr.visible, n.class);
1032
1033
  },
1033
1034
  get style() {
1034
- return z(t.style, {
1035
+ return cn(n.style, {
1035
1036
  "--elmethis-scoped-size": "64px",
1036
- left: t.position === "left" ? "0" : "auto",
1037
- right: t.position === "right" ? "0" : "auto"
1037
+ left: n.position === "left" ? "0" : "auto",
1038
+ right: n.position === "right" ? "0" : "auto"
1038
1039
  });
1039
1040
  },
1040
1041
  get role() {
1041
- return t.role ?? "button";
1042
+ return n.role ?? "button";
1042
1043
  },
1043
1044
  get "aria-hidden"() {
1044
- return t["aria-hidden"] ?? !i();
1045
+ return n["aria-hidden"] ?? !a();
1045
1046
  },
1046
1047
  get tabindex() {
1047
- return c(() => !!i())() ? t.tabindex ?? t.tabIndex ?? 0 : -1;
1048
+ return c(() => !!a())() ? n.tabindex ?? n.tabIndex ?? 0 : -1;
1048
1049
  }
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;
1050
+ }, i), !1, !0), o((e) => {
1051
+ var n = Vr.partial, i = Vr.partial, a = Vr.partial, o = Vr.text;
1052
+ 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
1053
  }, {
1053
1054
  e: void 0,
1054
1055
  t: void 0,
@@ -1075,10 +1076,10 @@ var Wr = {
1075
1076
  purple: "_purple_15idh_79",
1076
1077
  magenta: "_magenta_15idh_86"
1077
1078
  }, Gr = /*#__PURE__*/ m("<div><div>"), Kr = /*#__PURE__*/ m("<span role=img>"), qr = (e) => {
1078
- let [t, n] = P(A({
1079
+ let t = A({
1079
1080
  color: "gray",
1080
1081
  variant: "filled"
1081
- }, e), [
1082
+ }, e), [n, a] = P(t, [
1082
1083
  "class",
1083
1084
  "children",
1084
1085
  "icon",
@@ -1086,27 +1087,27 @@ var Wr = {
1086
1087
  "variant"
1087
1088
  ]);
1088
1089
  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);
1090
+ var e = Gr(), t = e.firstChild;
1091
+ return f(e, l(a, { get class() {
1092
+ return I(Wr["elm-notion-callout"], Wr[n.color], Wr[n.variant], n.class);
1092
1093
  } }), !1, !0), s(e, (() => {
1093
- var e = c(() => t.icon?.kind === "emoji");
1094
+ var e = c(() => n.icon?.kind === "emoji");
1094
1095
  return () => e() ? (() => {
1095
1096
  var e = Kr();
1096
- return s(e, () => t.icon.emoji), o(() => r(e, Wr.icon)), e;
1097
- })() : c(() => t.icon?.kind === "image")() ? i(Sn, {
1097
+ return s(e, () => n.icon.emoji), o(() => r(e, Wr.icon)), e;
1098
+ })() : c(() => n.icon?.kind === "image")() ? i(Sn, {
1098
1099
  get class() {
1099
1100
  return Wr.icon;
1100
1101
  },
1101
1102
  get src() {
1102
- return t.icon.src;
1103
+ return n.icon.src;
1103
1104
  },
1104
1105
  get alt() {
1105
- return t.icon.alt;
1106
+ return n.icon.alt;
1106
1107
  },
1107
1108
  size: 20
1108
1109
  }) : null;
1109
- })(), a), s(a, () => t.children), o(() => r(a, Wr.content)), e;
1110
+ })(), t), s(t, () => n.children), o(() => r(t, Wr.content)), e;
1110
1111
  })();
1111
1112
  }, Jr = {
1112
1113
  "elm-color-primitive-sample": "_elm-color-primitive-sample_vuro0_1",
@@ -1490,26 +1491,26 @@ var xi = {
1490
1491
  warning: "M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",
1491
1492
  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
1493
  }), ki = (e) => {
1493
- let [t, n] = P(A({ type: "note" }, e), [
1494
+ let t = A({ type: "note" }, e), [n, a] = P(t, [
1494
1495
  "class",
1495
1496
  "children",
1496
1497
  "type"
1497
1498
  ]);
1498
1499
  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, {
1500
+ var e = Di(), t = e.firstChild, c = t.firstChild, u = t.nextSibling;
1501
+ return f(e, l(a, { get class() {
1502
+ return I(Ei["elm-callout"], Ei[n.type], n.class);
1503
+ } }), !1, !0), s(t, i(H, {
1503
1504
  get class() {
1504
1505
  return Ei.icon;
1505
1506
  },
1506
1507
  get path() {
1507
- return Oi[t.type];
1508
+ return Oi[n.type];
1508
1509
  },
1509
1510
  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;
1511
+ }), c), s(c, () => n.type), s(u, () => n.children), o((e) => {
1512
+ var n = Ei.header, i = Ei.content;
1513
+ return n !== e.e && r(t, e.e = n), i !== e.t && r(u, e.t = i), e;
1513
1514
  }, {
1514
1515
  e: void 0,
1515
1516
  t: void 0
@@ -1568,7 +1569,7 @@ var Ii = {
1568
1569
  return I(Ii["elm-heading"], yn.text, Ii[`h${n.level}`], n.class);
1569
1570
  },
1570
1571
  get style() {
1571
- return z(n.style, { "--elmethis-scoped-font-size": `${Bi[n.level]}em` });
1572
+ return cn(n.style, { "--elmethis-scoped-font-size": `${Bi[n.level]}em` });
1572
1573
  },
1573
1574
  get id() {
1574
1575
  return n.id;
@@ -1598,19 +1599,19 @@ var Ii = {
1598
1599
  bulleted: "_bulleted_brpi5_8",
1599
1600
  numbered: "_numbered_brpi5_57"
1600
1601
  }, Ui = (t) => {
1601
- let [n, r] = P(A({ listStyle: "unordered" }, t), [
1602
+ let n = A({ listStyle: "unordered" }, t), [r, a] = P(n, [
1602
1603
  "class",
1603
1604
  "children",
1604
1605
  "listStyle"
1605
1606
  ]);
1606
1607
  return i(e, l({ get component() {
1607
- return n.listStyle === "ordered" ? "ol" : "ul";
1608
- } }, r, {
1608
+ return r.listStyle === "ordered" ? "ol" : "ul";
1609
+ } }, a, {
1609
1610
  get class() {
1610
- return I(yn.text, Hi["elm-list"], n.listStyle === "ordered" ? Hi.numbered : Hi.bulleted, n.class);
1611
+ return I(yn.text, Hi["elm-list"], r.listStyle === "ordered" ? Hi.numbered : Hi.bulleted, r.class);
1611
1612
  },
1612
1613
  get children() {
1613
- return n.children;
1614
+ return r.children;
1614
1615
  }
1615
1616
  }));
1616
1617
  }, Wi = { "elm-paragraph": "_elm-paragraph_y4o6n_1" }, Gi = /*#__PURE__*/ m("<p>"), Ki = (e) => {
@@ -1628,7 +1629,7 @@ var Ii = {
1628
1629
  return I(Wi["elm-paragraph"], yn.text, t.class);
1629
1630
  },
1630
1631
  get style() {
1631
- return z(t.style, {
1632
+ return cn(t.style, {
1632
1633
  "--elmethis-scoped-color": t.color,
1633
1634
  "--elmethis-scoped-background-color": t.backgroundColor
1634
1635
  });
@@ -1653,6 +1654,7 @@ function qi(e, t, n = {}) {
1653
1654
  } catch (e) {
1654
1655
  if (p || a !== f) return;
1655
1656
  if (u(e), n.onError?.(e), n.throwError ?? !1) throw e;
1657
+ return;
1656
1658
  } finally {
1657
1659
  !p && a === f && c(!1);
1658
1660
  }
@@ -1780,12 +1782,12 @@ function na(e, t) {
1780
1782
  });
1781
1783
  }, r = (e) => {
1782
1784
  let n = e.detail;
1783
- n?.source === i || !ea(n) || n.key !== t.key || l(n);
1785
+ n?.source !== i && ea(n) && n.key === t.key && l(n);
1784
1786
  };
1785
1787
  if (window.addEventListener("storage", n), e === "local") window.addEventListener(Xi, r);
1786
1788
  else if (typeof BroadcastChannel < "u") try {
1787
1789
  o = new BroadcastChannel(`${Zi}${t.key}`), o.addEventListener("message", (e) => {
1788
- if (!(!ea(e.data) || e.data.key !== t.key) && (l(e.data), a)) try {
1790
+ if (ea(e.data) && e.data.key === t.key && (l(e.data), a)) try {
1789
1791
  e.data.type === "remove" ? a.removeItem(t.key) : a.setItem(t.key, e.data.value);
1790
1792
  } catch (e) {
1791
1793
  ta("mirror", t.key, e);
@@ -1840,7 +1842,7 @@ function aa(e, t) {
1840
1842
  };
1841
1843
  }
1842
1844
  //#endregion
1843
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/typeof.js
1845
+ //#region \0@oxc-project+runtime@0.150.0/helpers/esm/typeof.js
1844
1846
  function oa(e) {
1845
1847
  "@babel/helpers - typeof";
1846
1848
  return oa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -1850,7 +1852,7 @@ function oa(e) {
1850
1852
  }, oa(e);
1851
1853
  }
1852
1854
  //#endregion
1853
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPrimitive.js
1855
+ //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPrimitive.js
1854
1856
  function sa(e, t) {
1855
1857
  if (oa(e) != "object" || !e) return e;
1856
1858
  var n = e[Symbol.toPrimitive];
@@ -1862,13 +1864,13 @@ function sa(e, t) {
1862
1864
  return (t === "string" ? String : Number)(e);
1863
1865
  }
1864
1866
  //#endregion
1865
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/toPropertyKey.js
1867
+ //#region \0@oxc-project+runtime@0.150.0/helpers/esm/toPropertyKey.js
1866
1868
  function ca(e) {
1867
1869
  var t = sa(e, "string");
1868
1870
  return oa(t) == "symbol" ? t : t + "";
1869
1871
  }
1870
1872
  //#endregion
1871
- //#region \0@oxc-project+runtime@0.139.0/helpers/esm/defineProperty.js
1873
+ //#region \0@oxc-project+runtime@0.150.0/helpers/esm/defineProperty.js
1872
1874
  function la(e, t, n) {
1873
1875
  return (t = ca(t)) in e ? Object.defineProperty(e, t, {
1874
1876
  value: n,
@@ -1890,7 +1892,7 @@ var ua = class {
1890
1892
  try {
1891
1893
  t(await e());
1892
1894
  } catch (e) {
1893
- n(e);
1895
+ n(e instanceof Error ? e : Error(String(e)));
1894
1896
  }
1895
1897
  },
1896
1898
  reject: n
@@ -1913,10 +1915,12 @@ var ua = class {
1913
1915
  return;
1914
1916
  }
1915
1917
  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());
1918
+ this.timer = setTimeout(() => {
1919
+ (async () => {
1920
+ if (this.timer = void 0, this.destroyed) return;
1921
+ let e = this.queue.shift();
1922
+ e && (await e.run(), this.lastFinishedAt = Date.now(), this.scheduleNext());
1923
+ })();
1920
1924
  }, t);
1921
1925
  }
1922
1926
  };
@@ -1932,7 +1936,7 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
1932
1936
  "class",
1933
1937
  "expression",
1934
1938
  "block"
1935
- ]), r = w(() => At(t.expression, {
1939
+ ]), r = w(() => kt(t.expression, {
1936
1940
  displayMode: t.block ?? !1,
1937
1941
  output: "mathml"
1938
1942
  }));
@@ -1961,10 +1965,10 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
1961
1965
  ...n
1962
1966
  };
1963
1967
  }, va = (e) => {
1964
- let [t, n] = P(A({
1968
+ let t = A({
1965
1969
  direction: "row",
1966
1970
  transitionTimingFunction: "ease-in-out"
1967
- }, e), [
1971
+ }, e), [n, i] = P(t, [
1968
1972
  "class",
1969
1973
  "style",
1970
1974
  "children",
@@ -1973,15 +1977,15 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
1973
1977
  "transitionTimingFunction"
1974
1978
  ]);
1975
1979
  return (() => {
1976
- var e = ga(), i = e.firstChild;
1977
- return f(e, l(n, {
1980
+ var e = ga(), t = e.firstChild;
1981
+ return f(e, l(i, {
1978
1982
  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);
1983
+ 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
1984
  },
1981
1985
  get style() {
1982
- return _a(t.style, t.transitionTimingFunction);
1986
+ return _a(n.style, n.transitionTimingFunction);
1983
1987
  }
1984
- }), !1, !0), s(i, () => t.children), o(() => r(i, ha.inner)), e;
1988
+ }), !1, !0), s(t, () => n.children), o(() => r(t, ha.inner)), e;
1985
1989
  })();
1986
1990
  }, ya = {
1987
1991
  "elm-parallax": "_elm-parallax_1uz2b_1",
@@ -2028,10 +2032,10 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
2028
2032
  "elm-modal": "_elm-modal_13wpm_1",
2029
2033
  shown: "_shown_13wpm_14"
2030
2034
  }, Ta = /*#__PURE__*/ m("<dialog><div>"), Ea = (e) => {
2031
- let [t, n] = P(A({
2035
+ let t = A({
2032
2036
  delay: 200,
2033
2037
  closedby: "none"
2034
- }, e), [
2038
+ }, e), [n, r] = P(t, [
2035
2039
  "class",
2036
2040
  "style",
2037
2041
  "ref",
@@ -2041,50 +2045,50 @@ var fa = { "elm-katex": "_elm-katex_11clp_3" }, pa = /*#__PURE__*/ m("<div>"), m
2041
2045
  "onClick",
2042
2046
  "onCancel",
2043
2047
  "onClose"
2044
- ]), [r, i] = D(!1), a, o, c = () => {
2045
- o !== void 0 && (clearTimeout(o), o = void 0);
2048
+ ]), [i, a] = D(!1), o, c, u = () => {
2049
+ c !== void 0 && (clearTimeout(c), c = void 0);
2046
2050
  };
2047
2051
  C(() => {
2048
- let e = !!t.isOpen, n = t.delay, s = a;
2049
- if (c(), s) {
2052
+ let e = !!n.isOpen, t = n.delay, r = o;
2053
+ if (u(), r) {
2050
2054
  if (e) {
2051
- if (s.open) {
2052
- i(!0);
2055
+ if (r.open) {
2056
+ a(!0);
2053
2057
  return;
2054
2058
  }
2055
- if (!s.isConnected || typeof s.showModal != "function") return;
2059
+ if (!r.isConnected || typeof r.showModal != "function") return;
2056
2060
  try {
2057
- s.showModal(), i(s.open);
2061
+ r.showModal(), a(r.open);
2058
2062
  } catch {}
2059
2063
  return;
2060
2064
  }
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))));
2065
+ (i() || r.open) && (a(!1), r.open && (c = setTimeout(() => {
2066
+ c = void 0, !n.isOpen && r.open && r.close();
2067
+ }, Math.max(0, t))));
2064
2068
  }
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));
2069
+ }), M(u);
2070
+ let d = (e) => {
2071
+ V(n.onClick, e), !(e.defaultPrevented || e.target !== e.currentTarget) && n.onClose?.(e, e.currentTarget);
2070
2072
  }, p = (e) => {
2071
- c(), i(!1), t.isOpen && t.onClose?.(e, e.currentTarget);
2073
+ V(n.onCancel, e), !e.defaultPrevented && (e.preventDefault(), n.onClose?.(e, e.currentTarget));
2074
+ }, m = (e) => {
2075
+ u(), a(!1), n.isOpen && n.onClose?.(e, e.currentTarget);
2072
2076
  };
2073
2077
  return (() => {
2074
- var e = Ta(), i = e.firstChild;
2078
+ var e = Ta(), t = e.firstChild;
2075
2079
  return h((e) => {
2076
- a = e, typeof t.ref == "function" && t.ref(e);
2077
- }, e), f(e, l(n, {
2080
+ o = e, typeof n.ref == "function" && n.ref(e);
2081
+ }, e), f(e, l(r, {
2078
2082
  get class() {
2079
- return I(wa["elm-modal"], r() && wa.shown, t.class);
2083
+ return I(wa["elm-modal"], i() && wa.shown, n.class);
2080
2084
  },
2081
2085
  get style() {
2082
- return z(t.style, { "--elmethis-scoped-modal-delay": `${t.delay}ms` });
2086
+ return cn(n.style, { "--elmethis-scoped-modal-delay": `${n.delay}ms` });
2083
2087
  },
2084
- onClick: u,
2085
- onCancel: d,
2086
- onClose: p
2087
- }), !1, !0), i.$$click = (e) => e.stopPropagation(), s(i, () => t.children), e;
2088
+ onClick: d,
2089
+ onCancel: p,
2090
+ onClose: m
2091
+ }), !1, !0), t.$$click = (e) => e.stopPropagation(), s(t, () => n.children), e;
2088
2092
  })();
2089
2093
  };
2090
2094
  a(["click"]);
@@ -2100,31 +2104,31 @@ var Da = {
2100
2104
  if (e === void 0) throw Error("ElmTabs subcomponents must be used within <ElmTabs>");
2101
2105
  return e;
2102
2106
  }, ja = (e) => {
2103
- let [t, n] = P(A({ transitionTimingFunction: "linear" }, e), [
2107
+ let t = A({ transitionTimingFunction: "linear" }, e), [n, r] = P(t, [
2104
2108
  "class",
2105
2109
  "children",
2106
2110
  "value",
2107
2111
  "defaultValue",
2108
2112
  "onValueChange",
2109
2113
  "transitionTimingFunction"
2110
- ]), [r, a] = Bn({
2111
- value: () => t.value,
2112
- defaultValue: () => t.defaultValue ?? "",
2113
- onChange: (e) => t.onValueChange?.(e)
2114
- }), o = {
2115
- selectedValue: r,
2114
+ ]), [a, o] = Bn({
2115
+ value: () => n.value,
2116
+ defaultValue: () => n.defaultValue ?? "",
2117
+ onChange: (e) => n.onValueChange?.(e)
2118
+ }), c = {
2119
+ selectedValue: a,
2116
2120
  setSelectedValue: (e) => {
2117
- a(e);
2121
+ o(e);
2118
2122
  },
2119
- transitionTimingFunction: () => t.transitionTimingFunction
2123
+ transitionTimingFunction: () => n.transitionTimingFunction
2120
2124
  };
2121
2125
  return i(ka.Provider, {
2122
- value: o,
2126
+ value: c,
2123
2127
  get children() {
2124
2128
  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;
2129
+ return f(e, l(r, { get class() {
2130
+ return I(Da["elm-tabs"], n.class);
2131
+ } }), !1, !0), s(e, () => n.children), e;
2128
2132
  }
2129
2133
  });
2130
2134
  }, Ma = (e) => {
@@ -2219,7 +2223,7 @@ var Da = {
2219
2223
  return t.summary;
2220
2224
  } }) : t.summary;
2221
2225
  })()), s(_, i(H, {
2222
- path: Ie,
2226
+ path: Fe,
2223
2227
  size: "1rem",
2224
2228
  get color() {
2225
2229
  return c(() => !!t.monochrome)() ? "var(--elmethis-color-neutral-weak)" : a() ? "var(--elmethis-color-accent-error)" : "var(--elmethis-color-primary)";
@@ -2302,12 +2306,12 @@ var Ra = {
2302
2306
  selected: "_selected_1qeel_65",
2303
2307
  "item-disabled": "_item-disabled_1qeel_74"
2304
2308
  }, Ha = /*#__PURE__*/ m("<div>"), Ua = (e) => {
2305
- let [t, n] = P(A({
2309
+ let t = A({
2306
2310
  defaultSelectedOptionId: null,
2307
2311
  primary: !0,
2308
2312
  autoClose: !0,
2309
- dropdownIcon: ke
2310
- }, e), [
2313
+ dropdownIcon: Oe
2314
+ }, e), [n, a] = P(t, [
2311
2315
  "ref",
2312
2316
  "class",
2313
2317
  "style",
@@ -2330,32 +2334,32 @@ var Ra = {
2330
2334
  "onClick",
2331
2335
  "onItemClick",
2332
2336
  "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));
2337
+ ]), [d, p] = Bn({
2338
+ value: () => n.selectedOptionId,
2339
+ defaultValue: () => n.defaultSelectedOptionId,
2340
+ onChange: (e) => n.onSelectedOptionIdChange?.(e)
2341
+ }), m = w(() => n.items.find((e) => e.id === d()) ?? null), [_, y] = D(!1), b, x = (e) => {
2342
+ _() !== e && (y(e), n.onOpenChange?.(e));
2339
2343
  };
2340
2344
  N(() => {
2341
2345
  let e = (e) => {
2342
- m() && e.target instanceof Node && !y.contains(e.target) && b(!1);
2346
+ _() && e.target instanceof Node && !b.contains(e.target) && x(!1);
2343
2347
  };
2344
2348
  document.addEventListener("click", e), M(() => document.removeEventListener("click", e));
2345
2349
  });
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));
2350
+ let S = () => n.disabled || n.disableDropdown || n.isLoading, C = () => n.disabled || n.disableMainButton, T = (e) => {
2351
+ e.disabled || (p(e.id), e.onClick?.(), n.onItemClick?.(e), n.autoClose && x(!1));
2348
2352
  };
2349
2353
  return (() => {
2350
2354
  var e = Ha();
2351
2355
  return h((e) => {
2352
- y = e, typeof t.ref == "function" && t.ref(e);
2353
- }, e), f(e, l(n, {
2356
+ b = e, typeof n.ref == "function" && n.ref(e);
2357
+ }, e), f(e, l(a, {
2354
2358
  get class() {
2355
- return I(Va["elm-button-dropdown"], t.block && Va.block, t.class);
2359
+ return I(Va["elm-button-dropdown"], n.block && Va.block, n.class);
2356
2360
  },
2357
2361
  get style() {
2358
- return t.style;
2362
+ return n.style;
2359
2363
  }
2360
2364
  }), !1, !0), s(e, i(zn, {
2361
2365
  get class() {
@@ -2363,26 +2367,26 @@ var Ra = {
2363
2367
  },
2364
2368
  type: "button",
2365
2369
  get primary() {
2366
- return t.primary;
2370
+ return n.primary;
2367
2371
  },
2368
2372
  get color() {
2369
- return t.color;
2373
+ return n.color;
2370
2374
  },
2371
2375
  get isLoading() {
2372
- return t.isLoading;
2376
+ return n.isLoading;
2373
2377
  },
2374
2378
  get disabled() {
2375
- return S();
2379
+ return C();
2376
2380
  },
2377
- onClick: () => t.onClick?.(p()),
2381
+ onClick: () => n.onClick?.(m()),
2378
2382
  get children() {
2379
2383
  return i(v, {
2380
2384
  get when() {
2381
- return p();
2385
+ return m();
2382
2386
  },
2383
2387
  keyed: !0,
2384
2388
  get fallback() {
2385
- return [c(() => t.icon), c(() => t.label)];
2389
+ return [c(() => n.icon), c(() => n.label)];
2386
2390
  },
2387
2391
  children: (e) => [i(v, {
2388
2392
  get when() {
@@ -2399,32 +2403,32 @@ var Ra = {
2399
2403
  },
2400
2404
  type: "button",
2401
2405
  get primary() {
2402
- return t.primary;
2406
+ return n.primary;
2403
2407
  },
2404
2408
  get color() {
2405
- return t.color;
2409
+ return n.color;
2406
2410
  },
2407
2411
  get disabled() {
2408
- return x();
2412
+ return S();
2409
2413
  },
2410
2414
  onClick: () => {
2411
- x() || b(!m());
2415
+ S() || x(!_());
2412
2416
  },
2413
2417
  "aria-label": "Toggle dropdown",
2414
2418
  get "aria-expanded"() {
2415
- return m();
2419
+ return _();
2416
2420
  },
2417
2421
  get children() {
2418
2422
  return i(H, {
2419
2423
  get path() {
2420
- return t.dropdownIcon;
2424
+ return n.dropdownIcon;
2421
2425
  },
2422
2426
  size: "1.25rem"
2423
2427
  });
2424
2428
  }
2425
2429
  }), null), s(e, i(va, {
2426
2430
  get isOpen() {
2427
- return m();
2431
+ return _();
2428
2432
  },
2429
2433
  get class() {
2430
2434
  return Va.menu;
@@ -2432,12 +2436,12 @@ var Ra = {
2432
2436
  get children() {
2433
2437
  return i(g, {
2434
2438
  get each() {
2435
- return t.items;
2439
+ return n.items;
2436
2440
  },
2437
2441
  children: (e) => (() => {
2438
2442
  var t = Ha();
2439
2443
  return t.$$click = (t) => {
2440
- t.stopPropagation(), C(e);
2444
+ t.stopPropagation(), T(e);
2441
2445
  }, s(t, i(H, {
2442
2446
  path: le,
2443
2447
  color: "var(--elmethis-color-primary-weak)",
@@ -2451,8 +2455,8 @@ var Ra = {
2451
2455
  }), null), s(t, i(B, { get children() {
2452
2456
  return e.label;
2453
2457
  } }), 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;
2458
+ var i = I(Va.item, yn.text, e.id === d() && Va.selected, e.disabled && Va["item-disabled"]), a = e.id === d();
2459
+ return i !== n.e && r(t, n.e = i), a !== n.t && u(t, "aria-selected", n.t = a), n;
2456
2460
  }, {
2457
2461
  e: void 0,
2458
2462
  t: void 0
@@ -2545,7 +2549,7 @@ var Wa = {
2545
2549
  } }), null), o(() => r(t, Wa["option-content"])), t;
2546
2550
  })()
2547
2551
  })), s(y, i(H, {
2548
- path: ke,
2552
+ path: Oe,
2549
2553
  size: "1.5rem"
2550
2554
  }), null), s(y, i(va, {
2551
2555
  get isOpen() {
@@ -2619,7 +2623,7 @@ var Ya = (e = {}) => {
2619
2623
  "caption-box": "_caption-box_pjk5z_33",
2620
2624
  "caption-icon": "_caption-icon_pjk5z_41"
2621
2625
  }, 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), [
2626
+ let n = A({ enableModal: !0 }, e), [a, p] = P(n, [
2623
2627
  "class",
2624
2628
  "children",
2625
2629
  "src",
@@ -2630,13 +2634,13 @@ var Ya = (e = {}) => {
2630
2634
  "caption",
2631
2635
  "width",
2632
2636
  "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;
2637
+ ]), { Modal: m, isOpen: h, show: g, hide: _ } = Ya(), y = () => {
2638
+ a.enableModal && g();
2639
+ }, b = (e) => (() => {
2640
+ var n = Za();
2641
+ return t(n, "click", e ? _ : void 0, !0), u(n, "loading", e ? "lazy" : void 0), u(n, "fetchpriority", e ? "low" : "auto"), o((t) => {
2642
+ 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";
2643
+ 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
2644
  }, {
2641
2645
  e: void 0,
2642
2646
  t: void 0,
@@ -2647,20 +2651,20 @@ var Ya = (e = {}) => {
2647
2651
  s: void 0,
2648
2652
  h: void 0,
2649
2653
  r: void 0
2650
- }), i;
2654
+ }), n;
2651
2655
  })();
2652
2656
  return (() => {
2653
2657
  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, {
2658
+ return f(e, l(p, { get class() {
2659
+ return I(Xa["elm-block-image"], a.class);
2660
+ } }), !1, !0), t.$$click = y, s(t, () => b(!1)), s(e, i(v, {
2657
2661
  get when() {
2658
- return n.caption;
2662
+ return a.caption;
2659
2663
  },
2660
2664
  children: (e) => (() => {
2661
2665
  var t = $a(), n = t.firstChild;
2662
2666
  return s(n, i(H, {
2663
- path: Ae,
2667
+ path: ke,
2664
2668
  size: "1.25rem"
2665
2669
  })), s(t, i(B, {
2666
2670
  size: "1rem",
@@ -2675,8 +2679,8 @@ var Ya = (e = {}) => {
2675
2679
  t: void 0
2676
2680
  }), t;
2677
2681
  })()
2678
- }), null), s(e, i(p, { get children() {
2679
- return c(() => !!m())() && y(!0);
2682
+ }), null), s(e, i(m, { get children() {
2683
+ return c(() => !!h())() && b(!0);
2680
2684
  } }), null), o(() => r(t, Xa["image-container"])), e;
2681
2685
  })();
2682
2686
  };
@@ -2836,42 +2840,42 @@ var to = {
2836
2840
  return Co(e);
2837
2841
  }
2838
2842
  }, To = (e) => {
2839
- let [t, n] = P(A({ language: "txt" }, e), [
2843
+ let t = A({ language: "txt" }, e), [n, r] = P(t, [
2840
2844
  "class",
2841
2845
  "code",
2842
2846
  "language"
2843
- ]), r = 0, [a] = E(() => {
2844
- let e = t.code, n = t.language, i = ++r;
2847
+ ]), a = 0, [o] = E(() => {
2848
+ let e = n.code, t = n.language, r = ++a;
2845
2849
  return e ? {
2846
2850
  code: e,
2847
- language: n,
2848
- generation: i
2851
+ language: t,
2852
+ generation: r
2849
2853
  } : !1;
2850
- }, ({ code: e, language: t, generation: n }) => wo(e, t, () => n !== r), { ssrLoadFrom: "server" });
2854
+ }, ({ code: e, language: t, generation: n }) => wo(e, t, () => n !== a), { ssrLoadFrom: "server" });
2851
2855
  return M(() => {
2852
- r += 1;
2856
+ a += 1;
2853
2857
  }), i(y, {
2854
2858
  get fallback() {
2855
2859
  return (() => {
2856
2860
  var e = yo();
2857
- return f(e, l(n, {
2861
+ return f(e, l(r, {
2858
2862
  get class() {
2859
- return I(vo["elm-shiki-highlighter"], t.class);
2863
+ return I(vo["elm-shiki-highlighter"], n.class);
2860
2864
  },
2861
2865
  get innerHTML() {
2862
- return Co(t.code);
2866
+ return Co(n.code);
2863
2867
  }
2864
2868
  }), !1, !1), e;
2865
2869
  })();
2866
2870
  },
2867
2871
  get children() {
2868
2872
  var e = yo();
2869
- return f(e, l(n, {
2873
+ return f(e, l(r, {
2870
2874
  get class() {
2871
- return I(vo["elm-shiki-highlighter"], t.class);
2875
+ return I(vo["elm-shiki-highlighter"], n.class);
2872
2876
  },
2873
2877
  get innerHTML() {
2874
- return a() ?? "";
2878
+ return o() ?? "";
2875
2879
  }
2876
2880
  }), !1, !1), e;
2877
2881
  }
@@ -2884,7 +2888,7 @@ var to = {
2884
2888
  divider: "_divider_vp5qr_32",
2885
2889
  code: "_code_vp5qr_39"
2886
2890
  }, Do = /*#__PURE__*/ m("<figure><span></span><span></span><div></div><hr><div>"), Oo = (e) => {
2887
- let [t, n] = P(A({ language: "txt" }, e), [
2891
+ let t = A({ language: "txt" }, e), [n, a] = P(t, [
2888
2892
  "class",
2889
2893
  "children",
2890
2894
  "code",
@@ -2892,25 +2896,25 @@ var to = {
2892
2896
  "caption"
2893
2897
  ]);
2894
2898
  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;
2899
+ var e = Do(), t = e.firstChild, u = t.nextSibling, d = u.nextSibling, p = d.nextSibling, m = p.nextSibling;
2900
+ return f(e, l(a, { get class() {
2901
+ return I(Eo["elm-code-block"], n.class);
2902
+ } }), !1, !0), s(t, i(fr, { get language() {
2903
+ return n.language;
2900
2904
  } })), s(u, i(B, { get children() {
2901
- return [c(() => t.caption || t.language), c(() => t.children)];
2905
+ return [c(() => n.caption || n.language), c(() => n.children)];
2902
2906
  } })), s(d, i(or, { get content() {
2903
- return t.code;
2907
+ return n.code;
2904
2908
  } })), s(m, i(To, {
2905
2909
  get code() {
2906
- return t.code;
2910
+ return n.code;
2907
2911
  },
2908
2912
  get language() {
2909
- return t.language;
2913
+ return n.language;
2910
2914
  }
2911
2915
  })), 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;
2916
+ var n = Eo["language-icon"], i = Eo.caption, a = Eo["copy-icon"], o = Eo.divider, s = Eo.code;
2917
+ 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
2918
  }, {
2915
2919
  e: void 0,
2916
2920
  t: void 0,
@@ -2925,45 +2929,45 @@ var to = {
2925
2929
  },
2926
2930
  children: (e) => Io(e)
2927
2931
  }), Po = (e) => "tokens" in e && Array.isArray(e.tokens) ? e.tokens : [], Fo = (e) => "text" in e && typeof e.text == "string" ? e.text : "", Io = (e) => {
2928
- let t = Po(e), n = () => t.length > 0 ? i(No, { tokens: t }) : Fo(e);
2929
- switch (e.type) {
2930
- case "blockquote": return t.length > 0 ? i(Ti, { get children() {
2931
- return i(No, { tokens: t });
2932
+ let t = e, n = Po(t), r = () => n.length > 0 ? i(No, { tokens: n }) : Fo(t);
2933
+ switch (t.type) {
2934
+ case "blockquote": return n.length > 0 ? i(Ti, { get children() {
2935
+ return i(No, { tokens: n });
2932
2936
  } }) : void 0;
2933
2937
  case "br": return Ao();
2934
2938
  case "code": return i(Oo, {
2935
2939
  get code() {
2936
- return e.text.trim();
2940
+ return t.text.trim();
2937
2941
  },
2938
2942
  get language() {
2939
- return e.lang ?? "txt";
2943
+ return t.lang ?? "txt";
2940
2944
  }
2941
2945
  });
2942
2946
  case "codespan": return i(B, {
2943
2947
  code: !0,
2944
2948
  get children() {
2945
- return e.text;
2949
+ return t.text;
2946
2950
  }
2947
2951
  });
2948
2952
  case "del": return i(B, {
2949
2953
  strikethrough: !0,
2950
2954
  get children() {
2951
- return n();
2955
+ return r();
2952
2956
  }
2953
2957
  });
2954
2958
  case "em": return i(B, {
2955
2959
  italic: !0,
2956
2960
  get children() {
2957
- return n();
2961
+ return r();
2958
2962
  }
2959
2963
  });
2960
- case "escape": return e.text;
2964
+ case "escape": return t.text;
2961
2965
  case "heading": return i(Vi, {
2962
2966
  get level() {
2963
- return e.depth;
2967
+ return t.depth;
2964
2968
  },
2965
2969
  get children() {
2966
- return n();
2970
+ return r();
2967
2971
  }
2968
2972
  });
2969
2973
  case "hr": return i(Mi, {});
@@ -2971,28 +2975,28 @@ var to = {
2971
2975
  case "image": return i(eo, {
2972
2976
  enableModal: !0,
2973
2977
  get src() {
2974
- return e.href;
2978
+ return t.href;
2975
2979
  },
2976
2980
  get alt() {
2977
- return e.text;
2981
+ return t.text;
2978
2982
  }
2979
2983
  });
2980
2984
  case "link": return i(B, {
2981
2985
  get href() {
2982
- return e.href;
2986
+ return t.href;
2983
2987
  },
2984
2988
  get children() {
2985
- return n();
2989
+ return r();
2986
2990
  }
2987
2991
  });
2988
2992
  case "list": return i(Ui, {
2989
2993
  get listStyle() {
2990
- return e.ordered ? "ordered" : "unordered";
2994
+ return t.ordered ? "ordered" : "unordered";
2991
2995
  },
2992
2996
  get children() {
2993
2997
  return i(g, {
2994
2998
  get each() {
2995
- return e.items;
2999
+ return t.items;
2996
3000
  },
2997
3001
  children: (e) => (() => {
2998
3002
  var t = jo();
@@ -3004,19 +3008,19 @@ var to = {
3004
3008
  }
3005
3009
  });
3006
3010
  case "list_item": return (() => {
3007
- var n = jo();
3008
- return s(n, (() => {
3009
- var n = c(() => t.length > 0);
3010
- return () => n() ? i(No, { tokens: t }) : e.text;
3011
- })()), n;
3011
+ var e = jo();
3012
+ return s(e, (() => {
3013
+ var e = c(() => n.length > 0);
3014
+ return () => e() ? i(No, { tokens: n }) : t.text;
3015
+ })()), e;
3012
3016
  })();
3013
3017
  case "paragraph": return i(Ki, { get children() {
3014
- return n();
3018
+ return r();
3015
3019
  } });
3016
3020
  case "strong": return i(B, {
3017
3021
  bold: !0,
3018
3022
  get children() {
3019
- return n();
3023
+ return r();
3020
3024
  }
3021
3025
  });
3022
3026
  case "table": return i(oo, { get children() {
@@ -3024,7 +3028,7 @@ var to = {
3024
3028
  return i(_o, { get children() {
3025
3029
  return i(g, {
3026
3030
  get each() {
3027
- return e.header;
3031
+ return t.header;
3028
3032
  },
3029
3033
  children: (e) => i(uo, { get children() {
3030
3034
  return i(No, { get tokens() {
@@ -3036,7 +3040,7 @@ var to = {
3036
3040
  } }), i(co, { get children() {
3037
3041
  return i(g, {
3038
3042
  get each() {
3039
- return e.rows;
3043
+ return t.rows;
3040
3044
  },
3041
3045
  children: (e) => i(_o, { get children() {
3042
3046
  return i(g, {
@@ -3051,7 +3055,7 @@ var to = {
3051
3055
  });
3052
3056
  } })];
3053
3057
  } });
3054
- case "text": return n();
3058
+ case "text": return r();
3055
3059
  default: return;
3056
3060
  }
3057
3061
  }, Lo = (e) => {
@@ -3060,7 +3064,7 @@ var to = {
3060
3064
  "markdown",
3061
3065
  "isStreaming"
3062
3066
  ]), r = [], a = w(() => {
3063
- let e = t.markdown, n = jt.lexer(e, { gfm: !0 });
3067
+ let e = t.markdown, n = At.lexer(e, { gfm: !0 });
3064
3068
  if (!(t.isStreaming && n.length > 0)) return r = n, {
3065
3069
  stable: n,
3066
3070
  tail: []
@@ -3148,7 +3152,7 @@ var qo = (e) => {
3148
3152
  let e = (e) => {
3149
3153
  if (e.source !== t?.contentWindow) return;
3150
3154
  let n = e.data;
3151
- !n || n.kind !== Bo || typeof n.height != "number" || r(n.height);
3155
+ n && n.kind === Bo && typeof n.height == "number" && r(n.height);
3152
3156
  };
3153
3157
  window.addEventListener("message", e), M(() => window.removeEventListener("message", e));
3154
3158
  return;
@@ -3188,7 +3192,7 @@ var qo = (e) => {
3188
3192
  return c(() => !!e.autoHeight)() ? Ko(e.style, n()) : e.style;
3189
3193
  },
3190
3194
  get height() {
3191
- return c(() => !!e.autoHeight)() ? c(() => n() === void 0 && !s())() ? e.height : void 0 : e.height;
3195
+ return c(() => !!e.autoHeight)() ? c(() => !(n() !== void 0 || s()))() ? e.height : void 0 : e.height;
3192
3196
  },
3193
3197
  get src() {
3194
3198
  return c(() => !!o())() ? e.src : void 0;
@@ -3205,10 +3209,10 @@ var qo = (e) => {
3205
3209
  }), !1, !1), r;
3206
3210
  })();
3207
3211
  }, Jo = (e) => {
3208
- let [t, n] = P(A({
3212
+ let t = A({
3209
3213
  autoHeight: !0,
3210
3214
  allowScripts: !1
3211
- }, e), [
3215
+ }, e), [n, r] = P(t, [
3212
3216
  "allowScripts",
3213
3217
  "autoHeight",
3214
3218
  "class",
@@ -3220,47 +3224,47 @@ var qo = (e) => {
3220
3224
  "src",
3221
3225
  "style",
3222
3226
  "title"
3223
- ]), r = Go(n), a = (e) => i(qo, {
3227
+ ]), a = Go(r), o = (e) => i(qo, {
3224
3228
  get html() {
3225
- return t.html;
3229
+ return n.html;
3226
3230
  },
3227
3231
  get src() {
3228
- return t.src;
3232
+ return n.src;
3229
3233
  },
3230
3234
  autoHeight: e,
3231
3235
  get allowScripts() {
3232
- return t.allowScripts;
3236
+ return n.allowScripts;
3233
3237
  },
3234
3238
  get sandbox() {
3235
- return t.sandbox;
3239
+ return n.sandbox;
3236
3240
  },
3237
3241
  get title() {
3238
- return t.title;
3242
+ return n.title;
3239
3243
  },
3240
3244
  get class() {
3241
- return t.class;
3245
+ return n.class;
3242
3246
  },
3243
3247
  get style() {
3244
- return t.style;
3248
+ return n.style;
3245
3249
  },
3246
3250
  get height() {
3247
- return t.height;
3251
+ return n.height;
3248
3252
  },
3249
3253
  get forwardedRef() {
3250
- return t.ref;
3254
+ return n.ref;
3251
3255
  },
3252
- nativeProps: r
3256
+ nativeProps: a
3253
3257
  });
3254
3258
  return i(v, {
3255
3259
  get when() {
3256
- return t.autoHeight;
3260
+ return n.autoHeight;
3257
3261
  },
3258
3262
  keyed: !0,
3259
3263
  get fallback() {
3260
- return a(!1);
3264
+ return o(!1);
3261
3265
  },
3262
3266
  get children() {
3263
- return a(!0);
3267
+ return o(!0);
3264
3268
  }
3265
3269
  });
3266
3270
  }, Yo = {
@@ -3326,10 +3330,10 @@ var qo = (e) => {
3326
3330
  return f(e, l(n, { get class() {
3327
3331
  return I(Yo["elm-html-viewer"], t.class);
3328
3332
  } }), !1, !0), c.$$click = d, s(c, i(H, {
3329
- path: ge,
3333
+ path: he,
3330
3334
  size: "1.25rem"
3331
3335
  })), p.$$click = u, s(p, i(H, {
3332
- path: Me,
3336
+ path: je,
3333
3337
  size: "1.25rem"
3334
3338
  })), s(h, i(Jo, {
3335
3339
  get html() {
@@ -3450,47 +3454,47 @@ var W = {
3450
3454
  ...e,
3451
3455
  label: n
3452
3456
  };
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 = () => {
3457
+ })), 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
3458
  let e = 0;
3455
- for (let t of de) e = Math.max(e, t.getBoundingClientRect().width);
3459
+ for (let t of L) e = Math.max(e, t.getBoundingClientRect().width);
3456
3460
  ue(Math.ceil(e));
3457
- }, he = (e) => {
3458
- de.add(e), fe?.observe(e), M(() => {
3459
- de.delete(e), fe?.unobserve(e), me();
3461
+ }, me = (e) => {
3462
+ L.add(e), de?.observe(e), M(() => {
3463
+ L.delete(e), de?.unobserve(e), pe();
3460
3464
  });
3461
- }, ge = (e = L) => {
3462
- e === void 0 || e !== L || (pe?.hasPointerCapture(e) && pe.releasePointerCapture(e), L === e && (L = void 0));
3465
+ }, he = (e = R) => {
3466
+ e !== void 0 && e === R && (fe?.hasPointerCapture(e) && fe.releasePointerCapture(e), R === e && (R = void 0));
3463
3467
  };
3464
3468
  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();
3469
+ de = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(pe);
3470
+ for (let e of L) de?.observe(e);
3471
+ pe(), M(() => {
3472
+ he(), de?.disconnect(), de = void 0, L.clear();
3469
3473
  });
3470
3474
  }), C(() => {
3471
- t.disabled && ge();
3475
+ t.disabled && he();
3472
3476
  });
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);
3477
+ let ge = (e, t) => {
3478
+ if (fe == null) return A();
3479
+ 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
3480
  return T(a() + r * (c() - a()));
3481
+ }, _e = (e) => {
3482
+ 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
3483
  }, 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
3484
  if (!t.disabled) {
3481
- if (L !== e.pointerId || !e.currentTarget.hasPointerCapture(e.pointerId)) {
3485
+ if (R !== e.pointerId || !e.currentTarget.hasPointerCapture(e.pointerId)) {
3482
3486
  V(t.onPointerMove, e);
3483
3487
  return;
3484
3488
  }
3485
- k(_e(e.clientX, e.clientY)), V(t.onPointerMove, e);
3489
+ k(ge(e.clientX, e.clientY)), V(t.onPointerMove, e);
3486
3490
  }
3491
+ }, ye = (e) => {
3492
+ t.disabled || (he(e.pointerId), V(t.onPointerUp, e));
3487
3493
  }, be = (e) => {
3488
- t.disabled || (ge(e.pointerId), V(t.onPointerUp, e));
3494
+ t.disabled || (he(e.pointerId), V(t.onPointerCancel, e));
3489
3495
  }, xe = (e) => {
3490
- t.disabled || (ge(e.pointerId), V(t.onPointerCancel, e));
3496
+ R === e.pointerId && (R = void 0), t.disabled || V(t.onLostPointerCapture, e);
3491
3497
  }, Se = (e) => {
3492
- L === e.pointerId && (L = void 0), t.disabled || V(t.onLostPointerCapture, e);
3493
- }, Ce = (e) => {
3494
3498
  if (t.disabled) return;
3495
3499
  let n = Math.abs(u());
3496
3500
  switch (e.key) {
@@ -3511,16 +3515,14 @@ var W = {
3511
3515
  case "Home":
3512
3516
  e.preventDefault(), k(b());
3513
3517
  break;
3514
- case "End":
3515
- e.preventDefault(), k(x());
3516
- break;
3518
+ case "End": e.preventDefault(), k(x());
3517
3519
  }
3518
3520
  V(t.onKeyDown, e);
3519
3521
  };
3520
3522
  return (() => {
3521
3523
  var e = $o(), a = e.firstChild, c = a.firstChild, u = c.firstChild, _ = u.nextSibling, y = _.nextSibling, S = c.nextSibling;
3522
3524
  return h((e) => {
3523
- pe = e, typeof t.ref == "function" && t.ref(e);
3525
+ fe = e, typeof t.ref == "function" && t.ref(e);
3524
3526
  }, a), f(a, l({ get tabIndex() {
3525
3527
  return t.disabled ? -1 : 0;
3526
3528
  } }, n, {
@@ -3543,12 +3545,12 @@ var W = {
3543
3545
  get "aria-disabled"() {
3544
3546
  return t.disabled || void 0;
3545
3547
  },
3546
- onPointerDown: ve,
3547
- onPointerMove: ye,
3548
- onPointerUp: be,
3549
- onPointerCancel: xe,
3550
- onLostPointerCapture: Se,
3551
- onKeyDown: Ce
3548
+ onPointerDown: _e,
3549
+ onPointerMove: ve,
3550
+ onPointerUp: ye,
3551
+ onPointerCancel: be,
3552
+ onLostPointerCapture: xe,
3553
+ onKeyDown: Se
3552
3554
  }), !1, !0), s(a, i(v, {
3553
3555
  get when() {
3554
3556
  return se().length > 0;
@@ -3575,7 +3577,7 @@ var W = {
3575
3577
  },
3576
3578
  get children() {
3577
3579
  var t = ts();
3578
- return h(he, t), s(t, () => e.label()), o(() => r(t, W["mark-label"])), t;
3580
+ return h(me, t), s(t, () => e.label()), o(() => r(t, W["mark-label"])), t;
3579
3581
  }
3580
3582
  }), null), o((t) => {
3581
3583
  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 +3590,7 @@ var W = {
3588
3590
  })), o(() => r(e, W.marks)), e;
3589
3591
  }
3590
3592
  }), 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, {
3593
+ 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
3594
  "--elmethis-scoped-value-ratio": j(),
3593
3595
  "--elmethis-scoped-inner-min-ratio": te(),
3594
3596
  "--elmethis-scoped-inner-max-ratio": ne(),
@@ -3650,7 +3652,7 @@ var W = {
3650
3652
  return (() => {
3651
3653
  var e = us(), u = e.firstChild, m = u.firstChild, g = u.nextSibling, w = g.firstChild, T = g.nextSibling;
3652
3654
  return s(u, () => t.icon ?? i(H, {
3653
- path: Ge,
3655
+ path: We,
3654
3656
  size: "0.75rem"
3655
3657
  }), m), s(m, () => t.label, null), s(m, i(v, {
3656
3658
  get when() {
@@ -3757,8 +3759,8 @@ var W = {
3757
3759
  "onFocus",
3758
3760
  "onBlur"
3759
3761
  ]), [a, m] = D(!1), [g, _] = D(F(() => t.isPassword ? "password" : "text")), y, b = (e) => {
3760
- let t = y.ownerDocument.defaultView, n = t?.HTMLInputElement.prototype, r = n ? Object.getOwnPropertyDescriptor(n, "value")?.set : void 0;
3761
- r ? r.call(y, e) : y.value = e;
3762
+ let t = y.ownerDocument.defaultView, n = t?.HTMLInputElement.prototype, r = n ? Object.getOwnPropertyDescriptor(n, "value") : void 0;
3763
+ r?.set ? r.set.call(y, e) : y.value = e;
3762
3764
  let i = t?.Event ?? Event;
3763
3765
  y.dispatchEvent(new i("input", { bubbles: !0 }));
3764
3766
  }, x = (e) => {
@@ -3773,7 +3775,7 @@ var W = {
3773
3775
  return (() => {
3774
3776
  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
3777
  return s(m, () => t.icon ?? i(H, {
3776
- path: Ue,
3778
+ path: He,
3777
3779
  size: "0.75rem"
3778
3780
  }), T), s(T, () => t.label, null), s(T, i(v, {
3779
3781
  get when() {
@@ -3852,12 +3854,12 @@ var W = {
3852
3854
  }
3853
3855
  })), A.$$click = () => _((e) => e === "text" ? "password" : "text"), s(A, i(H, {
3854
3856
  get path() {
3855
- return g() === "text" ? ve : _e;
3857
+ return g() === "text" ? _e : ge;
3856
3858
  },
3857
3859
  size: "1.25rem",
3858
3860
  color: "gray"
3859
3861
  })), j.$$click = () => b(""), s(j, i(H, {
3860
- path: Ke,
3862
+ path: Ge,
3861
3863
  size: "1.25rem",
3862
3864
  color: "gray"
3863
3865
  })), o((n) => {
@@ -3924,10 +3926,10 @@ var K = {
3924
3926
  return t;
3925
3927
  }
3926
3928
  }, Cs = (e) => {
3927
- let [t, n] = P(A({
3929
+ let t = A({
3928
3930
  errorMessage: "This audio couldn't be loaded.",
3929
3931
  seekStep: 10
3930
- }, e), [
3932
+ }, e), [n, a] = P(t, [
3931
3933
  "class",
3932
3934
  "style",
3933
3935
  "src",
@@ -3937,110 +3939,110 @@ var K = {
3937
3939
  "seekStep",
3938
3940
  "loop",
3939
3941
  "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;
3942
+ ]), 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 = () => {
3943
+ g != null && (cancelAnimationFrame(g), g = null);
3944
+ }, ce = () => {
3945
+ if (g != null) return;
3944
3946
  let e = () => {
3945
- a && O(a.currentTime), m = requestAnimationFrame(e);
3947
+ p && k(p.currentTime), g = requestAnimationFrame(e);
3946
3948
  };
3947
- m = requestAnimationFrame(e);
3949
+ g = requestAnimationFrame(e);
3948
3950
  };
3949
- M(oe);
3950
- let ce;
3951
+ M(se);
3952
+ let le;
3951
3953
  C(() => {
3952
- let e = t.src;
3953
- if (ce === void 0) {
3954
- ce = e;
3954
+ let e = n.src;
3955
+ if (le === void 0) {
3956
+ le = e;
3955
3957
  return;
3956
3958
  }
3957
- e !== ce && (ce = e, oe(), _(!1), y(!0), x(!1), T(0), O(0), te(null));
3959
+ e !== le && (le = e, se(), v(!1), b(!0), S(!1), E(0), k(0), ne(null));
3958
3960
  });
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;
3961
+ let ue = () => {
3962
+ p && (p.paused ? p.play().catch(() => v(!1)) : p.pause());
3963
+ }, L = (e) => {
3964
+ let t = T();
3965
+ if (!p || !Number.isFinite(t) || t <= 0) return;
3964
3966
  let n = Math.max(0, Math.min(t, e));
3965
- a.currentTime = n, O(n);
3967
+ p.currentTime = n, k(n);
3966
3968
  }, de = (e) => {
3967
- if (!p) return 0;
3968
- let t = p.getBoundingClientRect();
3969
+ if (!m) return 0;
3970
+ let t = m.getBoundingClientRect();
3969
3971
  return t.width === 0 ? 0 : Math.max(0, Math.min(1, (e - t.left) / t.width));
3970
3972
  }, fe = (e) => {
3971
- e.currentTarget.setPointerCapture(e.pointerId), ue(de(e.clientX) * S());
3972
- }, pe = (e) => {
3973
+ e.currentTarget.setPointerCapture(e.pointerId), L(de(e.clientX) * T());
3974
+ }, R = (e) => {
3973
3975
  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()));
3976
+ ne(t), e.currentTarget.hasPointerCapture(e.pointerId) && L(t * T());
3977
+ }, pe = (e) => {
3978
+ 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
3979
  }, me = (e) => {
3978
3980
  let t = Math.max(0, Math.min(1, e));
3979
- a && (a.volume = t, a.muted = t === 0), j(t), F(t === 0);
3981
+ p && (p.volume = t, p.muted = t === 0), N(t), ee(t === 0);
3980
3982
  }, he = () => {
3981
- if (!a) return;
3982
- let e = !a.muted;
3983
- a.muted = e, F(e);
3983
+ if (!p) return;
3984
+ let e = !p.muted;
3985
+ p.muted = e, ee(e);
3984
3986
  };
3985
3987
  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, {
3988
+ var e = gs(), t = e.firstChild, C = t.nextSibling, w = C.firstChild, D = w.nextSibling, A = D.firstChild, M = D.nextSibling;
3989
+ return f(e, l(a, {
3988
3990
  get class() {
3989
- return I(K["elm-audio-player"], g() && K.playing, v() && K.loading, b() && K.errored, t.class);
3991
+ return I(K["elm-audio-player"], _() && K.playing, y() && K.loading, x() && K.errored, n.class);
3990
3992
  },
3991
3993
  get style() {
3992
- return z(t.style, {
3993
- "--elmethis-scoped-progress": ne(),
3994
- "--elmethis-scoped-hover": ee() ?? 0
3994
+ return cn(n.style, {
3995
+ "--elmethis-scoped-progress": re(),
3996
+ "--elmethis-scoped-hover": te() ?? 0
3995
3997
  });
3996
3998
  }
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);
3999
+ }), !1, !0), t.addEventListener("error", () => {
4000
+ se(), v(!1), S(!0), b(!1);
4001
+ }), t.addEventListener("volumechange", (e) => {
4002
+ N(e.currentTarget.volume), ee(e.currentTarget.muted);
4003
+ }), t.addEventListener("ended", () => {
4004
+ v(!1), se();
4005
+ }), t.addEventListener("pause", () => {
4006
+ v(!1), se();
4007
+ }), t.addEventListener("play", () => {
4008
+ v(!0), ce();
4009
+ }), t.addEventListener("timeupdate", (e) => {
4010
+ g ?? k(e.currentTarget.currentTime);
4011
+ }), 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) => {
4012
+ E(e.currentTarget.duration), N(e.currentTarget.volume), ee(e.currentTarget.muted), b(!1);
4011
4013
  }), h((e) => {
4012
- a = e;
4013
- }, C), s(D, i(H, {
4014
+ p = e;
4015
+ }, t), s(w, i(H, {
4014
4016
  get path() {
4015
- return b() ? ie : je;
4017
+ return x() ? ie : Ae;
4016
4018
  },
4017
4019
  size: "1.25rem"
4018
- })), s(M, re), s(A, (() => {
4019
- var e = c(() => !!t.artist);
4020
+ })), s(A, ae), s(D, (() => {
4021
+ var e = c(() => !!n.artist);
4020
4022
  return () => e() && (() => {
4021
4023
  var e = _s();
4022
- return s(e, () => t.artist), o(() => r(e, K.artist)), e;
4024
+ return s(e, () => n.artist), o(() => r(e, K.artist)), e;
4023
4025
  })();
4024
4026
  })(), null), s(e, (() => {
4025
- var e = c(() => !!b());
4027
+ var e = c(() => !!x());
4026
4028
  return () => e() ? (() => {
4027
- var e = vs(), n = e.firstChild;
4029
+ var e = vs(), t = e.firstChild;
4028
4030
  return s(e, i(H, {
4029
4031
  path: ie,
4030
4032
  size: "1.25rem"
4031
- }), n), s(n, () => t.errorMessage), o((t) => {
4033
+ }), t), s(t, () => n.errorMessage), o((n) => {
4032
4034
  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;
4035
+ return i !== n.e && r(e, n.e = i), a !== n.t && r(t, n.t = a), n;
4034
4036
  }, {
4035
4037
  e: void 0,
4036
4038
  t: void 0
4037
4039
  }), e;
4038
4040
  })() : [(() => {
4039
4041
  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;
4042
+ return e.$$keydown = pe, e.addEventListener("pointerleave", () => ne(null)), e.$$pointermove = R, e.$$pointerdown = fe, h((e) => {
4043
+ m = e;
4042
4044
  }, 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;
4045
+ 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
4046
  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
4047
  }, {
4046
4048
  e: void 0,
@@ -4053,26 +4055,26 @@ var K = {
4053
4055
  h: void 0
4054
4056
  }), e;
4055
4057
  })(), (() => {
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,
4058
+ 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;
4059
+ return s(t, () => xs(O())), c.$$click = () => L(O() - n.seekStep), s(c, i(H, {
4060
+ path: Le,
4059
4061
  size: "1.25rem"
4060
- })), l.$$click = le, s(l, i(H, {
4062
+ })), l.$$click = ue, s(l, i(H, {
4061
4063
  get path() {
4062
- return g() ? Ne : Fe;
4064
+ return _() ? Me : Pe;
4063
4065
  },
4064
4066
  size: "1.5rem"
4065
- })), f.$$click = () => ue(E() + t.seekStep), s(f, i(H, {
4066
- path: ye,
4067
+ })), f.$$click = () => L(O() + n.seekStep), s(f, i(H, {
4068
+ path: ve,
4067
4069
  size: "1.25rem"
4068
4070
  })), m.$$click = he, s(m, i(H, {
4069
4071
  get path() {
4070
- return ae();
4072
+ return oe();
4071
4073
  },
4072
4074
  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;
4075
+ })), h.$$input = (e) => me(e.currentTarget.valueAsNumber), s(g, () => xs(T())), o((i) => {
4076
+ 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"]);
4077
+ 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
4078
  }, {
4077
4079
  e: void 0,
4078
4080
  t: void 0,
@@ -4091,11 +4093,11 @@ var K = {
4091
4093
  m: void 0,
4092
4094
  f: void 0,
4093
4095
  y: void 0
4094
- }), o(() => h.value = N() ? 0 : k()), e;
4096
+ }), o(() => h.value = F() ? 0 : j()), e;
4095
4097
  })()];
4096
4098
  })(), 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;
4099
+ 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;
4100
+ 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
4101
  }, {
4100
4102
  e: void 0,
4101
4103
  t: void 0,
@@ -4245,6 +4247,7 @@ function Ls(e, t) {
4245
4247
  errorMessage: ""
4246
4248
  };
4247
4249
  }
4250
+ return e;
4248
4251
  }
4249
4252
  function Rs(e, t, n) {
4250
4253
  let r = e.board[t];
@@ -4435,7 +4438,7 @@ var Vs = class e {
4435
4438
  return new e(n.values(), [...r.values()]);
4436
4439
  }
4437
4440
  toCatalog(e) {
4438
- return new Mt(e, [...this.components.values()], [...this.functions]);
4441
+ return new jt(e, [...this.components.values()], [...this.functions]);
4439
4442
  }
4440
4443
  }, Hs = {
4441
4444
  start: "flex-start",
@@ -4456,7 +4459,7 @@ var Vs = class e {
4456
4459
  fill: "fill",
4457
4460
  none: "none",
4458
4461
  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 = {
4462
+ }, 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
4463
  shortText: "text",
4461
4464
  number: "number",
4462
4465
  obscured: "password"
@@ -4486,7 +4489,7 @@ var Vs = class e {
4486
4489
  }), t;
4487
4490
  }
4488
4491
  }), mc = new Vs([
4489
- Y(Qt, (e) => i(b, {
4492
+ Y(Zt, (e) => i(b, {
4490
4493
  get fallback() {
4491
4494
  return i(Vi, {
4492
4495
  get level() {
@@ -4519,7 +4522,7 @@ var Vs = class e {
4519
4522
  })];
4520
4523
  }
4521
4524
  })),
4522
- Y(Yt, (e) => (() => {
4525
+ Y(Jt, (e) => (() => {
4523
4526
  var t = qs();
4524
4527
  return s(t, i(g, {
4525
4528
  get each() {
@@ -4541,7 +4544,7 @@ var Vs = class e {
4541
4544
  a: void 0
4542
4545
  }), t;
4543
4546
  })()),
4544
- Y(Ht, (e) => (() => {
4547
+ Y(Vt, (e) => (() => {
4545
4548
  var t = qs();
4546
4549
  return s(t, i(g, {
4547
4550
  get each() {
@@ -4556,7 +4559,7 @@ var Vs = class e {
4556
4559
  })
4557
4560
  })), o(() => r(t, J.column)), t;
4558
4561
  })()),
4559
- Y(qt, (e) => (() => {
4562
+ Y(Kt, (e) => (() => {
4560
4563
  var t = qs();
4561
4564
  return s(t, i(g, {
4562
4565
  get each() {
@@ -4580,11 +4583,11 @@ var Vs = class e {
4580
4583
  t: void 0
4581
4584
  }), t;
4582
4585
  })()),
4583
- Y(zt, (e) => (() => {
4586
+ Y(Rt, (e) => (() => {
4584
4587
  var t = qs();
4585
4588
  return s(t, () => e.renderChild(e.props.child)), o(() => r(t, J.card)), t;
4586
4589
  })()),
4587
- Y(Rt, (e) => {
4590
+ Y(Lt, (e) => {
4588
4591
  let t = () => `${e.instanceId}-errors`, a = () => e.props.isValid === !1;
4589
4592
  return (() => {
4590
4593
  var c = Js(), l = c.firstChild;
@@ -4615,7 +4618,7 @@ var Vs = class e {
4615
4618
  }), c;
4616
4619
  })();
4617
4620
  }),
4618
- Y(Kt, (e) => (() => {
4621
+ Y(Gt, (e) => (() => {
4619
4622
  var t = Ys();
4620
4623
  return o((n) => {
4621
4624
  var i = J.image, a = e.props.url, o = e.props.description ?? "", s = Ws[e.props.fit ?? "cover"];
@@ -4627,7 +4630,7 @@ var Vs = class e {
4627
4630
  o: void 0
4628
4631
  }), t;
4629
4632
  })()),
4630
- Y(Gt, (e) => {
4633
+ Y(Wt, (e) => {
4631
4634
  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
4635
  return i(v, {
4633
4636
  get when() {
@@ -4659,7 +4662,7 @@ var Vs = class e {
4659
4662
  })()
4660
4663
  });
4661
4664
  }),
4662
- Y(Wt, (e) => (() => {
4665
+ Y(Ut, (e) => (() => {
4663
4666
  var t = Qs();
4664
4667
  return o((i) => {
4665
4668
  var a = J.divider, o = { [J["divider-vertical"]]: e.props.axis === "vertical" };
@@ -4669,7 +4672,7 @@ var Vs = class e {
4669
4672
  t: void 0
4670
4673
  }), t;
4671
4674
  })()),
4672
- Y($t, (e) => (() => {
4675
+ Y(Qt, (e) => (() => {
4673
4676
  var t = ec(), n = t.firstChild;
4674
4677
  return s(n, () => e.props.label), s(t, i(v, {
4675
4678
  get when() {
@@ -4718,7 +4721,7 @@ var Vs = class e {
4718
4721
  a: void 0
4719
4722
  }), t;
4720
4723
  })()),
4721
- Y(Bt, (e) => (() => {
4724
+ Y(zt, (e) => (() => {
4722
4725
  var t = nc(), n = t.firstChild, a = n.firstChild, c = a.nextSibling;
4723
4726
  return a.addEventListener("change", (t) => e.props.setValue(t.currentTarget.checked)), s(c, () => e.props.label), s(t, i(pc, {
4724
4727
  get id() {
@@ -4738,7 +4741,7 @@ var Vs = class e {
4738
4741
  i: void 0
4739
4742
  }), o(() => a.checked = !!e.props.value), t;
4740
4743
  })()),
4741
- Y(Xt, (e) => (() => {
4744
+ Y(Yt, (e) => (() => {
4742
4745
  var t = rc(), n = t.firstChild;
4743
4746
  return n.$$input = (t) => e.props.setValue(Number(t.currentTarget.value)), s(t, i(pc, {
4744
4747
  get id() {
@@ -4748,19 +4751,18 @@ var Vs = class e {
4748
4751
  return e.props.validationErrors;
4749
4752
  }
4750
4753
  }), null), o((i) => {
4751
- var a = J["checkable-control"], o = J.slider, s = e.props.min ?? 0, c = e.props.max, l = e.props.step, d = e.props.isValid === !1, f = e.props.isValid === !1 ? `${e.instanceId}-errors` : void 0;
4752
- return a !== i.e && r(t, i.e = a), o !== i.t && r(n, i.t = o), s !== i.a && u(n, "min", i.a = s), c !== i.o && u(n, "max", i.o = c), l !== i.i && u(n, "step", i.i = l), d !== i.n && u(n, "aria-invalid", i.n = d), f !== i.s && u(n, "aria-describedby", i.s = f), i;
4754
+ var a = J["checkable-control"], o = J.slider, s = e.props.min ?? 0, c = e.props.max, l = e.props.isValid === !1, d = e.props.isValid === !1 ? `${e.instanceId}-errors` : void 0;
4755
+ return a !== i.e && r(t, i.e = a), o !== i.t && r(n, i.t = o), s !== i.a && u(n, "min", i.a = s), c !== i.o && u(n, "max", i.o = c), l !== i.i && u(n, "aria-invalid", i.i = l), d !== i.n && u(n, "aria-describedby", i.n = d), i;
4753
4756
  }, {
4754
4757
  e: void 0,
4755
4758
  t: void 0,
4756
4759
  a: void 0,
4757
4760
  o: void 0,
4758
4761
  i: void 0,
4759
- n: void 0,
4760
- s: void 0
4762
+ n: 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) => {
@@ -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, [
@@ -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;
@@ -6422,34 +6464,33 @@ var dl = {
6422
6464
  "toolCallArgs",
6423
6465
  "toolCallResult"
6424
6466
  ]), [a, u] = D(!1), [d, p] = D(!1), [m, h] = D(!1), [g, _] = D(!1), [y, b] = D(!1), x = da(200), S = -1, w = (e) => {
6425
- x.push(async () => e()).catch(() => void 0);
6467
+ x.push(() => Promise.resolve(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"];
@@ -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);