@elmethis/solid 0.11.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,25 +3,26 @@ import { For as b, Loading as x, Match as S, Show as C, Switch as w, children as
3
3
  import { clsx as z } from "clsx";
4
4
  import { mdiAccount as ne, mdiAccountQuestionOutline as re, mdiAlert as ie, mdiAlertCircleOutline as ae, mdiApplicationOutline as B, mdiArrowDownDropCircleOutline as V, mdiBrain as oe, mdiCheckCircleOutline as se, mdiChevronRight as ce, mdiClipboardCheckOutline as le, mdiClipboardOutline as ue, mdiClockOutline as de, mdiClose as H, mdiCodeJson as fe, 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
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";
6
+ import { primitive as kt } from "@elmethis/core/tokens";
7
+ import { renderToString as At } from "katex";
8
+ import { marked as jt } from "marked";
9
+ import { Catalog as Mt, ComponentContext as Nt, GenericBinder as Pt, MessageProcessor as Ft } from "@a2ui/web_core/v0_9";
10
+ 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
11
  import { EventType as U } from "@ag-ui/core";
11
- import { HttpAgent as en } from "@ag-ui/client";
12
- import { v7 as tn } from "uuid";
12
+ import { HttpAgent as tn } from "@ag-ui/client";
13
+ import { v7 as nn } from "uuid";
13
14
  import "zod";
14
- import { zodToJsonSchema as nn } from "zod-to-json-schema";
15
+ import { zodToJsonSchema as rn } from "zod-to-json-schema";
15
16
  //#region src/styles/merge-style.ts
16
17
  var W = (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
18
  ...t,
18
19
  ...e || {}
19
- }, rn = {
20
+ }, an = {
20
21
  "elm-progress": "_elm-progress_ftz3d_1",
21
22
  "transition-enabled": "_transition-enabled_ftz3d_26"
22
- }, an = /* @__PURE__ */ y("<progress>"), on = (e) => {
23
+ }, on = /* @__PURE__ */ y("<progress>"), sn = (e) => {
23
24
  let t = P(e, "class", "style", "max", "value", "weight", "color", "transition");
24
- var n = an();
25
+ var n = on();
25
26
  return _(n, [t, {
26
27
  get max() {
27
28
  return e.max;
@@ -30,7 +31,7 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
30
31
  return e.value;
31
32
  },
32
33
  get class() {
33
- return z(rn["elm-progress"], { [rn["transition-enabled"]]: e.transition }, e.class);
34
+ return z(an["elm-progress"], { [an["transition-enabled"]]: e.transition }, e.class);
34
35
  },
35
36
  get style() {
36
37
  return W(e.style, {
@@ -41,50 +42,50 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
41
42
  });
42
43
  }
43
44
  }], !1), n;
44
- }, sn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, cn = {
45
+ }, cn = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, ln = {
45
46
  "elm-dot-loading-icon": "_elm-dot-loading-icon_qjgj2_15",
46
47
  dot: "_dot_qjgj2_25",
47
48
  bounce: "_bounce_qjgj2_1"
48
- }, ln = /* @__PURE__ */ y("<span><span class=_dot_qjgj2_25 aria-hidden=true></span><span class=_dot_qjgj2_25 aria-hidden=true></span><span class=_dot_qjgj2_25 aria-hidden=true>"), un = (e) => {
49
+ }, un = /* @__PURE__ */ y("<span><span class=_dot_qjgj2_25 aria-hidden=true></span><span class=_dot_qjgj2_25 aria-hidden=true></span><span class=_dot_qjgj2_25 aria-hidden=true>"), dn = (e) => {
49
50
  let t = P(e, "class", "style", "children", "size");
50
- var n = ln();
51
+ var n = un();
51
52
  return _(n, [{
52
53
  get class() {
53
- return z(cn["elm-dot-loading-icon"], e.class);
54
+ return z(ln["elm-dot-loading-icon"], e.class);
54
55
  },
55
56
  get style() {
56
57
  return W(e.style, { "--elmethis-scoped-size": e.size ?? "4em" });
57
58
  }
58
59
  }, t], !0), n;
59
- }, dn = {
60
+ }, fn = {
60
61
  "elm-rectangle-wave": "_elm-rectangle-wave_70gad_21",
61
62
  wave: "_wave_70gad_1"
62
- }, fn = /* @__PURE__ */ y("<div>"), pn = (e) => {
63
+ }, pn = /* @__PURE__ */ y("<div>"), mn = (e) => {
63
64
  let t = P(e, "class", "children");
64
- var n = fn();
65
+ var n = pn();
65
66
  return _(n, [{
66
67
  "aria-hidden": "true",
67
68
  get class() {
68
- return z(dn["elm-rectangle-wave"], e.class);
69
+ return z(fn["elm-rectangle-wave"], e.class);
69
70
  }
70
71
  }, t], !1), n;
71
- }, mn = /* @__PURE__ */ y("<div><!><!>"), hn = (e) => {
72
+ }, hn = /* @__PURE__ */ y("<div><!><!>"), gn = (e) => {
72
73
  let t = P(e, "class", "style", "children", "height");
73
- var n = mn(), i = n.firstChild, a = i.nextSibling;
74
+ var n = hn(), i = n.firstChild, a = i.nextSibling;
74
75
  return _(n, [{
75
76
  get class() {
76
- return z(sn["elm-block-fallback"], e.class);
77
+ return z(cn["elm-block-fallback"], e.class);
77
78
  },
78
79
  get style() {
79
80
  return W(e.style, { "--elmethis-scoped-height": e.height ?? "16rem" });
80
81
  }
81
- }, t], !0), l(n, r(un, {}), i), l(n, r(pn, {}), a), n;
82
- }, gn = {
82
+ }, t], !0), l(n, r(dn, {}), i), l(n, r(mn, {}), a), n;
83
+ }, _n = {
83
84
  "elm-unsupported-block": "_elm-unsupported-block_8bkk1_1",
84
85
  message: "_message_8bkk1_13",
85
86
  icon: "_icon_8bkk1_20",
86
87
  details: "_details_8bkk1_24"
87
- }, _n = {
88
+ }, vn = {
88
89
  "elm-inline-text": "_elm-inline-text_1r4f6_1",
89
90
  code: "_code_1r4f6_13",
90
91
  kbd: "_kbd_1r4f6_25",
@@ -93,11 +94,11 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
93
94
  "ogp-text": "_ogp-text_1r4f6_104",
94
95
  "ogp-title": "_ogp-title_1r4f6_109",
95
96
  "ogp-description": "_ogp-description_1r4f6_115"
96
- }, G = { text: "_text_zme4t_1" }, vn = { "elm-inline-icon": "_elm-inline-icon_1r7uc_1" }, yn = /* @__PURE__ */ y("<span><img class=_elm-inline-icon_1r7uc_1>"), bn = (e) => {
97
+ }, G = { text: "_text_zme4t_1" }, yn = { "elm-inline-icon": "_elm-inline-icon_1r7uc_1" }, bn = /* @__PURE__ */ y("<span><img class=_elm-inline-icon_1r7uc_1>"), xn = (e) => {
97
98
  let t = P(e, "class", "children", "src", "alt", "width", "height", "size");
98
- var n = yn(), r = n.firstChild;
99
+ var n = bn(), r = n.firstChild;
99
100
  return _(n, [t, { get class() {
100
- return z(vn["elm-inline-icon"], e.class);
101
+ return z(yn["elm-inline-icon"], e.class);
101
102
  } }], !0), o(() => ({
102
103
  e: e.src,
103
104
  t: e.alt,
@@ -106,7 +107,7 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
106
107
  }), ({ e, t, a: n, o: i }, a) => {
107
108
  e !== a?.e && m(r, "src", e), t !== a?.t && m(r, "alt", t), n !== a?.a && m(r, "width", n), i !== a?.o && m(r, "height", i);
108
109
  }), n;
109
- }, xn = /* @__PURE__ */ y("<a class=_link_1r4f6_58 target=_blank rel=\"noopener noreferrer\"><!><!>"), Sn = /* @__PURE__ */ y("<kbd class=_kbd_1r4f6_25>"), Cn = /* @__PURE__ */ y("<del>"), wn = /* @__PURE__ */ y("<em>"), Tn = /* @__PURE__ */ y("<ins>"), En = /* @__PURE__ */ y("<strong>"), Dn = /* @__PURE__ */ y("<code class=_code_1r4f6_13>"), On = /* @__PURE__ */ y("<ruby class=_elm-inline-text_1r4f6_1><span></span><rt>"), kn = /* @__PURE__ */ y("<span>"), An = (e, t) => {
110
+ }, Sn = /* @__PURE__ */ y("<a class=_link_1r4f6_58 target=_blank rel=\"noopener noreferrer\"><!><!>"), Cn = /* @__PURE__ */ y("<kbd class=_kbd_1r4f6_25>"), wn = /* @__PURE__ */ y("<del>"), Tn = /* @__PURE__ */ y("<em>"), En = /* @__PURE__ */ y("<ins>"), Dn = /* @__PURE__ */ y("<strong>"), On = /* @__PURE__ */ y("<code class=_code_1r4f6_13>"), kn = /* @__PURE__ */ y("<ruby class=_elm-inline-text_1r4f6_1><span></span><rt>"), An = /* @__PURE__ */ y("<span>"), jn = (e, t) => {
110
111
  if (typeof e != "string") return {
111
112
  ...e ?? {},
112
113
  ...t
@@ -117,10 +118,10 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
117
118
  let n = P(e, "class", "style", "children", "color", "size", "backgroundColor", "bold", "italic", "underline", "strikethrough", "code", "kbd", "ruby", "href", "favicon"), i = T(() => e.children), a = k(() => {
118
119
  let n = i();
119
120
  return e.href && (n = (() => {
120
- var i = xn(), a = i.firstChild, c = a.nextSibling, d = s();
121
+ var i = Sn(), a = i.firstChild, c = a.nextSibling, d = s();
121
122
  return l(i, (() => {
122
123
  var t = u(() => !!e.favicon);
123
- return () => t() ? r(bn, {
124
+ return () => t() ? r(xn, {
124
125
  get src() {
125
126
  return e.favicon;
126
127
  },
@@ -130,50 +131,50 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
130
131
  m(i, "href", e), t(i, d);
131
132
  }), i;
132
133
  })()), e.kbd && (n = (() => {
133
- var e = Sn();
134
+ var e = Cn();
134
135
  return l(e, n), e;
135
136
  })()), e.strikethrough && (n = (() => {
136
- var e = Cn();
137
+ var e = wn();
137
138
  return l(e, n), e;
138
139
  })()), e.italic && (n = (() => {
139
- var e = wn();
140
+ var e = Tn();
140
141
  return l(e, n), e;
141
142
  })()), e.underline && (n = (() => {
142
- var e = Tn();
143
+ var e = En();
143
144
  return l(e, n), e;
144
145
  })()), e.bold && (n = (() => {
145
- var e = En();
146
+ var e = Dn();
146
147
  return l(e, n), e;
147
148
  })()), e.code && (n = (() => {
148
- var e = Dn();
149
+ var e = On();
149
150
  return l(e, n), e;
150
151
  })()), e.ruby && (n = (() => {
151
- var t = On(), r = t.firstChild, i = r.nextSibling;
152
+ var t = kn(), r = t.firstChild, i = r.nextSibling;
152
153
  return l(r, n), l(i, () => e.ruby), t;
153
154
  })()), n;
154
- }), c = k(() => An(e.style, {
155
+ }), c = k(() => jn(e.style, {
155
156
  "--elmethis-scoped-color": e.color,
156
157
  "--elmethis-scoped-font-size": e.size ?? "1em",
157
158
  "--elmethis-scoped-background-color": e.backgroundColor
158
159
  }));
159
- var d = kn();
160
+ var d = An();
160
161
  return _(d, [n, {
161
162
  get class() {
162
- return z(_n["elm-inline-text"], G.text, e.class);
163
+ return z(vn["elm-inline-text"], G.text, e.class);
163
164
  },
164
165
  get style() {
165
166
  return c();
166
167
  }
167
168
  }], !0), l(d, a), d;
168
- }, jn = /* @__PURE__ */ y("<div><div class=_message_8bkk1_13><svg viewBox=\"0 0 24 24\"width=1.25rem height=1.25rem class=_icon_8bkk1_20><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\">"), Mn = /* @__PURE__ */ y("<div class=_details_8bkk1_24>"), Nn = (e) => {
169
+ }, Mn = /* @__PURE__ */ y("<div><div class=_message_8bkk1_13><svg viewBox=\"0 0 24 24\"width=1.25rem height=1.25rem class=_icon_8bkk1_20><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\">"), Nn = /* @__PURE__ */ y("<div class=_details_8bkk1_24>"), Pn = (e) => {
169
170
  let t = P(e, "class", "children", "details");
170
- var n = jn(), i = n.firstChild;
171
+ var n = Mn(), i = n.firstChild;
171
172
  return _(n, [{ get class() {
172
- return z(gn["elm-unsupported-block"], e.class);
173
+ return z(_n["elm-unsupported-block"], e.class);
173
174
  } }, t], !0), l(i, r(K, { children: "UNSUPPORTED BLOCK" }), null), l(n, (() => {
174
175
  var t = u(() => !!e.details);
175
176
  return () => t() ? (() => {
176
- var t = Mn();
177
+ var t = Nn();
177
178
  return l(t, r(K, { get children() {
178
179
  return e.details;
179
180
  } })), t;
@@ -181,7 +182,7 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
181
182
  })(), null), n;
182
183
  }, q = (e, t) => {
183
184
  typeof e == "function" ? e(t) : e && e[0](e[1], t);
184
- }, Pn = {
185
+ }, Fn = {
185
186
  "elm-button": "_elm-button_p2wea_1",
186
187
  normal: "_normal_p2wea_22",
187
188
  primary: "_primary_p2wea_29",
@@ -189,18 +190,18 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
189
190
  enable: "_enable_p2wea_40",
190
191
  flex: "_flex_p2wea_59",
191
192
  "button-ripple": "_button-ripple_p2wea_1"
192
- }, Fn = /* @__PURE__ */ y("<button>"), In = /* @__PURE__ */ y("<span class=_flex_p2wea_59>"), Ln = (e) => {
193
+ }, In = /* @__PURE__ */ y("<button>"), Ln = /* @__PURE__ */ y("<span class=_flex_p2wea_59>"), Rn = (e) => {
193
194
  let t = P(e, "class", "style", "onClick", "isLoading", "block", "color", "primary", "disabled", "children"), n = (t) => {
194
195
  e.isLoading || e.disabled || !e.onClick || q(e.onClick, t);
195
196
  };
196
- var i = Fn();
197
+ var i = In();
197
198
  return _(i, [t, {
198
199
  onClick: n,
199
200
  get disabled() {
200
201
  return e.disabled;
201
202
  },
202
203
  get class() {
203
- return z(Pn["elm-button"], !e.isLoading && !e.disabled && Pn.enable, e.color && Pn.colored, !e.color && !e.primary && Pn.normal, !e.color && e.primary && Pn.primary, e.class);
204
+ return z(Fn["elm-button"], !e.isLoading && !e.disabled && Fn.enable, e.color && Fn.colored, !e.color && !e.primary && Fn.normal, !e.color && e.primary && Fn.primary, e.class);
204
205
  },
205
206
  get style() {
206
207
  return W(e.style, {
@@ -214,36 +215,36 @@ var W = (e, t) => typeof e == "string" ? [Object.entries(t).filter((e) => e[1] !
214
215
  }], !0), l(i, (() => {
215
216
  var t = u(() => !e.isLoading);
216
217
  return () => t() ? (() => {
217
- var t = In();
218
+ var t = Ln();
218
219
  return l(t, () => e.children), t;
219
- })() : r(un, { size: "1.5rem" });
220
+ })() : r(dn, { size: "1.5rem" });
220
221
  })()), i;
221
222
  };
222
223
  //#endregion
223
224
  //#region src/primitives/create-value-signal.ts
224
- function Rn(e, t = Object.is) {
225
+ function zn(e, t = Object.is) {
225
226
  let [n, r] = A({ value: e }, { equals: (e, n) => t(e.value, n.value) });
226
227
  return [() => n().value, (e) => r(({ value: t }) => ({ value: e(t) })).value];
227
228
  }
228
- function zn(e, t) {
229
+ function Bn(e, t) {
229
230
  return typeof e == "function" ? e(t) : e;
230
231
  }
231
232
  //#endregion
232
233
  //#region src/primitives/create-controllable-signal.ts
233
- function Bn(e) {
234
- let [t, n] = Rn(L(() => e.defaultValue()));
234
+ function Vn(e) {
235
+ let [t, n] = zn(L(() => e.defaultValue()));
235
236
  return [k(() => {
236
237
  let n = e.value?.();
237
238
  return n === void 0 ? t() : n;
238
239
  }, { equals: Object.is }), ((t) => L(() => {
239
240
  let r = e.value?.(), i = !1, a = (e) => {
240
- let n = zn(t, e);
241
+ let n = Bn(t, e);
241
242
  return i = !Object.is(n, e), n;
242
243
  }, o = r === void 0 ? n(a) : a(r);
243
244
  return i && e.onChange?.(o), o;
244
245
  }))];
245
246
  }
246
- var Vn = {
247
+ var Hn = {
247
248
  "elm-checkbox": "_elm-checkbox_4ogdx_1",
248
249
  disabled: "_disabled_4ogdx_12",
249
250
  checkbox: "_checkbox_4ogdx_22",
@@ -253,43 +254,43 @@ var Vn = {
253
254
  "loading-dot": "_loading-dot_4ogdx_39",
254
255
  "check-line": "_check-line_4ogdx_54",
255
256
  "elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_4ogdx_1"
256
- }, Hn = /* @__PURE__ */ y("<div><div style=display:flex;align-items:center;gap:0.5rem><svg width=24 height=24 class=_checkbox_4ogdx_22><circle cx=0 cy=0 r=2 class=_loading-dot_4ogdx_39><animate attributeName=cx values=\"4; 20; 20; 4; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"4; 4; 20; 20; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><circle cx=20 cy=20 r=2 class=_loading-dot_4ogdx_39><animate attributeName=cx values=\"20; 4; 4; 20; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"20; 20; 4; 4; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><rect x=4 y=4 width=16 height=16 stroke-width=0.8></rect><line x1=0 y1=1 x2=4 y2=1 stroke-width=2 fill=transparent></line><line x1=4 y1=0 x2=24 y2=0 stroke-width=1 fill=transparent></line><line x1=0 y1=4 x2=0 y2=16 stroke-width=1 fill=transparent></line><line x1=0 y1=18 x2=0 y2=20 stroke-width=1 fill=transparent></line><line x1=0 y1=24 x2=20 y2=24 stroke-width=1 fill=transparent></line><line x1=20 y1=23 x2=24 y2=23 stroke-width=1.5 fill=transparent></line><line x1=24 y1=4 x2=24 y2=20 fill=transparent style=stroke-width:1px>"), Un = /* @__PURE__ */ y("<svg><polyline class=_check-line_4ogdx_54 points=\"5,12 10,17 19,8\"stroke-width=1.5 fill=transparent></svg>", 2), Wn = (e) => {
257
- let t = P(e, "class", "onClick", "label", "isLoading", "disabled", "checked", "defaultChecked", "onCheckedChange", "children"), [i, a] = Bn({
257
+ }, Un = /* @__PURE__ */ y("<div><div style=display:flex;align-items:center;gap:0.5rem><svg width=24 height=24 class=_checkbox_4ogdx_22><circle cx=0 cy=0 r=2 class=_loading-dot_4ogdx_39><animate attributeName=cx values=\"4; 20; 20; 4; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"4; 4; 20; 20; 4\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><circle cx=20 cy=20 r=2 class=_loading-dot_4ogdx_39><animate attributeName=cx values=\"20; 4; 4; 20; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate><animate attributeName=cy values=\"20; 20; 4; 4; 20\"dur=1.2s repeatCount=indefinite keySplines=\"0.25 0.1 0.25 1; 0.42 0 0.58 1; 0.25 0.1 0.25 1; 0.42 0 0.58 1\"calcMode=spline></animate></circle><rect x=4 y=4 width=16 height=16 stroke-width=0.8></rect><line x1=0 y1=1 x2=4 y2=1 stroke-width=2 fill=transparent></line><line x1=4 y1=0 x2=24 y2=0 stroke-width=1 fill=transparent></line><line x1=0 y1=4 x2=0 y2=16 stroke-width=1 fill=transparent></line><line x1=0 y1=18 x2=0 y2=20 stroke-width=1 fill=transparent></line><line x1=0 y1=24 x2=20 y2=24 stroke-width=1 fill=transparent></line><line x1=20 y1=23 x2=24 y2=23 stroke-width=1.5 fill=transparent></line><line x1=24 y1=4 x2=24 y2=20 fill=transparent style=stroke-width:1px>"), Wn = /* @__PURE__ */ y("<svg><polyline class=_check-line_4ogdx_54 points=\"5,12 10,17 19,8\"stroke-width=1.5 fill=transparent></svg>", 2), Gn = (e) => {
258
+ let t = P(e, "class", "onClick", "label", "isLoading", "disabled", "checked", "defaultChecked", "onCheckedChange", "children"), [i, a] = Vn({
258
259
  value: () => e.checked,
259
260
  defaultValue: () => e.defaultChecked ?? !1,
260
261
  onChange: (t) => e.onCheckedChange?.(t)
261
262
  }), s = (t) => {
262
263
  q(e.onClick, t), !t.defaultPrevented && !e.isLoading && !e.disabled && a((e) => !e);
263
264
  };
264
- var c = Hn(), d = c.firstChild, p = d.firstChild, m = p.firstChild, h = m.nextSibling, v = h.nextSibling, y = v.nextSibling;
265
+ var c = Un(), d = c.firstChild, p = d.firstChild, m = p.firstChild, h = m.nextSibling, v = h.nextSibling, y = v.nextSibling;
265
266
  return _(c, [t, {
266
267
  get class() {
267
- return z(Vn["elm-checkbox"], e.disabled && Vn.disabled, e.class);
268
+ return z(Hn["elm-checkbox"], e.disabled && Hn.disabled, e.class);
268
269
  },
269
270
  onClick: s
270
271
  }], !0), l(p, (() => {
271
272
  var e = u(() => !!i());
272
- return () => e() ? Un() : void 0;
273
+ return () => e() ? Wn() : void 0;
273
274
  })(), y), l(d, r(K, { get children() {
274
275
  return e.label;
275
276
  } }), null), o(() => ({
276
277
  e: +!!e.isLoading,
277
278
  t: +!!e.isLoading,
278
- a: f(z(Vn.rect, i() && Vn.checked, e.isLoading && Vn.loading))
279
+ a: f(z(Hn.rect, i() && Hn.checked, e.isLoading && Hn.loading))
279
280
  }), ({ e, t, a: r }, i) => {
280
281
  e !== i?.e && g(m, "opacity", e), t !== i?.t && g(h, "opacity", t), n(v, r, i?.a);
281
282
  }), c;
282
- }, Gn = {
283
+ }, Kn = {
283
284
  switch: "_switch_1ipa7_1",
284
285
  bar: "_bar_1ipa7_5",
285
286
  checked: "_checked_1ipa7_21",
286
287
  disabled: "_disabled_1ipa7_26",
287
288
  circle: "_circle_1ipa7_31"
288
- }, Kn = /* @__PURE__ */ y("<div><input class=_switch_1ipa7_1 type=checkbox readonly><div><div>"), qn = (e) => {
289
+ }, qn = /* @__PURE__ */ y("<div><input class=_switch_1ipa7_1 type=checkbox readonly><div><div>"), Jn = (e) => {
289
290
  let t = P(e, "class", "style", "onClick", "color", "size", "disabled", "checked", "onCheckedChange", "children"), r = (t) => {
290
291
  q(e.onClick, t), !t.defaultPrevented && !e.disabled && e.onCheckedChange?.(!e.checked);
291
292
  };
292
- var i = Kn(), a = i.firstChild, s = a.nextSibling, l = s.firstChild;
293
+ var i = qn(), a = i.firstChild, s = a.nextSibling, l = s.firstChild;
293
294
  return _(i, [t, {
294
295
  onClick: r,
295
296
  get class() {
@@ -306,19 +307,19 @@ var Vn = {
306
307
  }], !0), o(() => ({
307
308
  e: e.checked,
308
309
  t: e.disabled,
309
- a: f(z(Gn.bar, e.checked && Gn.checked, e.disabled && Gn.disabled)),
310
- o: f(z(Gn.circle, e.checked && Gn.checked, e.disabled && Gn.disabled)),
310
+ a: f(z(Kn.bar, e.checked && Kn.checked, e.disabled && Kn.disabled)),
311
+ o: f(z(Kn.circle, e.checked && Kn.checked, e.disabled && Kn.disabled)),
311
312
  i: c()
312
313
  }), ({ e, t, a: r, o: i, i: o }, c) => {
313
314
  (e !== c?.e || !o) && (a.checked = e), t !== c?.t && m(a, "disabled", t), n(s, r, c?.a), n(l, i, c?.o);
314
315
  }), i;
315
- }, Jn = { "elm-mdi-icon": "_elm-mdi-icon_1k12x_1" }, Yn = /* @__PURE__ */ y("<svg><path>"), Xn = /* @__PURE__ */ y("<title>"), Zn = { focusable: "false" }, J = (e) => {
316
+ }, Yn = { "elm-mdi-icon": "_elm-mdi-icon_1k12x_1" }, Xn = /* @__PURE__ */ y("<svg><path>"), Zn = /* @__PURE__ */ y("<title>"), Qn = { focusable: "false" }, J = (e) => {
316
317
  let t = P(e, "class", "style", "path", "size", "color", "label"), n = () => !!(e.label || t["aria-label"] || t["aria-labelledby"]);
317
- var i = Yn(), a = i.firstChild;
318
+ var i = Xn(), a = i.firstChild;
318
319
  return _(i, [
319
320
  {
320
321
  get class() {
321
- return z(Jn["elm-mdi-icon"], e.class);
322
+ return z(Yn["elm-mdi-icon"], e.class);
322
323
  },
323
324
  get style() {
324
325
  return e.style;
@@ -342,32 +343,32 @@ var Vn = {
342
343
  return n() ? "img" : void 0;
343
344
  }
344
345
  },
345
- Zn,
346
+ Qn,
346
347
  t
347
348
  ], !0), l(i, r(C, {
348
349
  get when() {
349
350
  return e.label;
350
351
  },
351
352
  children: (e) => (() => {
352
- var t = Xn();
353
+ var t = Zn();
353
354
  return l(t, e), t;
354
355
  })()
355
356
  }), a), o(() => e.path, (e) => {
356
357
  m(a, "d", e);
357
358
  }), i;
358
- }, Qn = { "elm-validation": "_elm-validation_1cigg_1" }, $n = /* @__PURE__ */ y("<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) => {
359
+ }, $n = { "elm-validation": "_elm-validation_1cigg_1" }, er = /* @__PURE__ */ y("<div><!><!>"), tr = "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", nr = "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", rr = (e) => {
359
360
  let t = P(e, "class", "style", "text", "validColor", "isValid"), n = () => e.isValid ? e.validColor ?? "var(--elmethis-color-accent-success)" : void 0;
360
- var i = $n(), a = i.firstChild, o = a.nextSibling;
361
+ var i = er(), a = i.firstChild, o = a.nextSibling;
361
362
  return _(i, [t, {
362
363
  get class() {
363
- return z(Qn["elm-validation"], e.class);
364
+ return z($n["elm-validation"], e.class);
364
365
  },
365
366
  get style() {
366
367
  return W(e.style, { "--elmethis-scoped-opacity": e.isValid ? 1 : .5 });
367
368
  }
368
369
  }], !0), l(i, r(J, {
369
370
  get path() {
370
- return e.isValid ? er : tr;
371
+ return e.isValid ? tr : nr;
371
372
  },
372
373
  get color() {
373
374
  return n();
@@ -383,7 +384,7 @@ var Vn = {
383
384
  };
384
385
  //#endregion
385
386
  //#region src/primitives/create-clipboard.ts
386
- function rr(e) {
387
+ function ir(e) {
387
388
  let [t, n] = A(!1), r, i = !1;
388
389
  return F(() => {
389
390
  i = !0, r !== void 0 && clearTimeout(r);
@@ -408,24 +409,24 @@ function rr(e) {
408
409
  }
409
410
  //#endregion
410
411
  //#region src/components/icon/elm-copy-icon.module.css
411
- var ir = {
412
+ var ar = {
412
413
  "elm-copy-icon": "_elm-copy-icon_1mzoy_1",
413
414
  "elm-copy-icon-copied": "_elm-copy-icon-copied_1mzoy_29"
414
- }, ar = /* @__PURE__ */ y("<button>"), or = (e) => {
415
- let t = P(e, "class", "style", "content", "onClick", "type", "aria-label"), n = rr({ get content() {
415
+ }, or = /* @__PURE__ */ y("<button>"), sr = (e) => {
416
+ let t = P(e, "class", "style", "content", "onClick", "type", "aria-label"), n = ir({ get content() {
416
417
  return e.content;
417
418
  } }), i = (t) => {
418
419
  n.copy().catch(() => void 0);
419
420
  let r = e.onClick;
420
421
  typeof r == "function" ? r(t) : r?.[0](r[1], t);
421
422
  };
422
- var a = ar();
423
+ var a = or();
423
424
  return _(a, [{
424
425
  get type() {
425
426
  return e.type ?? "button";
426
427
  },
427
428
  get class() {
428
- return z(ir["elm-copy-icon"], e.class);
429
+ return z(ar["elm-copy-icon"], e.class);
429
430
  },
430
431
  get style() {
431
432
  return e.style;
@@ -438,16 +439,16 @@ var ir = {
438
439
  "aria-hidden": "true",
439
440
  role: "presentation",
440
441
  get class() {
441
- return z(n.copied() && ir["elm-copy-icon-copied"]);
442
+ return z(n.copied() && ar["elm-copy-icon-copied"]);
442
443
  },
443
444
  get path() {
444
445
  return n.copied() ? le : ue;
445
446
  },
446
447
  size: "1.25rem"
447
448
  })), a;
448
- }, sr = /* @__PURE__ */ y("<svg>"), cr = (e, t, n) => t === "id" ? `${e}-${n}` : e.replace(/url\(#([^)]+)\)/g, `url(#$1-${n})`), lr = (e, t) => {
449
+ }, cr = /* @__PURE__ */ y("<svg>"), lr = (e, t, n) => t === "id" ? `${e}-${n}` : e.replace(/url\(#([^)]+)\)/g, `url(#$1-${n})`), ur = (e, t) => {
449
450
  let n = {};
450
- for (let [r, i] of Object.entries(e.attrs ?? {})) n[r] = cr(i, r, t);
451
+ for (let [r, i] of Object.entries(e.attrs ?? {})) n[r] = lr(i, r, t);
451
452
  let i = a(() => e.tag);
452
453
  return r(i, d(n, {
453
454
  get style() {
@@ -458,13 +459,13 @@ var ir = {
458
459
  get each() {
459
460
  return e.children;
460
461
  },
461
- children: (e) => lr(e, t)
462
+ children: (e) => ur(e, t)
462
463
  });
463
464
  }
464
465
  }));
465
- }, ur = (e) => {
466
+ }, dr = (e) => {
466
467
  let t = M(), n = k(() => e.icon.attrs ?? {});
467
- var i = sr();
468
+ var i = cr();
468
469
  return _(i, [{
469
470
  xmlns: "http://www.w3.org/2000/svg",
470
471
  get viewBox() {
@@ -486,9 +487,9 @@ var ir = {
486
487
  get each() {
487
488
  return e.icon.children;
488
489
  },
489
- children: (e) => lr(e, t)
490
+ children: (e) => ur(e, t)
490
491
  })), i;
491
- }, 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) => {
492
+ }, fr = "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", pr = (e) => {
492
493
  let t = k(() => {
493
494
  let t = Ot(e.language);
494
495
  return t === "file" ? void 0 : Dt[t];
@@ -500,7 +501,7 @@ var ir = {
500
501
  keyed: !0,
501
502
  get fallback() {
502
503
  return r(J, {
503
- path: dr,
504
+ path: fr,
504
505
  get size() {
505
506
  return String(e.size ?? 24);
506
507
  },
@@ -512,7 +513,7 @@ var ir = {
512
513
  }
513
514
  });
514
515
  },
515
- children: (t) => r(ur, {
516
+ children: (t) => r(dr, {
516
517
  icon: t,
517
518
  get size() {
518
519
  return e.size ?? 24;
@@ -525,22 +526,22 @@ var ir = {
525
526
  }
526
527
  })
527
528
  });
528
- }, pr = {
529
+ }, mr = {
529
530
  "elm-square-loading-icon": "_elm-square-loading-icon_m72nq_19",
530
531
  square: "_square_m72nq_28",
531
532
  appear: "_appear_m72nq_1"
532
- }, mr = /* @__PURE__ */ y("<span>"), hr = /* @__PURE__ */ y("<span class=_square_m72nq_28>"), gr = 1200, _r = (e) => {
533
+ }, hr = /* @__PURE__ */ y("<span>"), gr = /* @__PURE__ */ y("<span class=_square_m72nq_28>"), _r = 1200, vr = (e) => {
533
534
  let t = P(e, "class", "style", "children", "size", "dimensions"), n = k(() => Array(e.dimensions ?? 4).fill(null).map((e, t) => t));
534
- var i = mr();
535
+ var i = hr();
535
536
  return _(i, [{
536
537
  get class() {
537
- return z(pr["elm-square-loading-icon"], e.class);
538
+ return z(mr["elm-square-loading-icon"], e.class);
538
539
  },
539
540
  get style() {
540
541
  return W(e.style, {
541
542
  "--elmethis-scoped-size": e.size ?? "3rem",
542
543
  "--elmethis-scoped-dimensions": e.dimensions ?? 4,
543
- "--elmethis-scoped-duration": `${gr}ms`
544
+ "--elmethis-scoped-duration": `${_r}ms`
544
545
  });
545
546
  }
546
547
  }, t], !0), l(i, r(b, {
@@ -552,61 +553,61 @@ var ir = {
552
553
  return n();
553
554
  },
554
555
  children: (n) => (() => {
555
- var r = hr();
556
- return o(() => `${gr / ((e.dimensions ?? 4) * 3) * (t + n)}ms`, (e) => {
556
+ var r = gr();
557
+ return o(() => `${_r / ((e.dimensions ?? 4) * 3) * (t + n)}ms`, (e) => {
557
558
  g(r, "--elmethis-scoped-delay", e);
558
559
  }), r;
559
560
  })()
560
561
  })
561
562
  })), i;
562
- }, vr = "elmethis-theme", yr = "(prefers-color-scheme: dark)", br = "elmethis-theme-change", xr = (e) => e === "dark" ? "dark" : e === "light" ? "light" : null, Sr = () => {
563
+ }, yr = "elmethis-theme", br = "(prefers-color-scheme: dark)", xr = "elmethis-theme-change", Sr = (e) => e === "dark" ? "dark" : e === "light" ? "light" : null, Cr = () => {
563
564
  try {
564
- return xr(window.localStorage.getItem(vr));
565
+ return Sr(window.localStorage.getItem(yr));
565
566
  } catch {
566
567
  return null;
567
568
  }
568
- }, Cr = (e, t) => {
569
+ }, wr = (e, t) => {
569
570
  let n = document.documentElement;
570
571
  if (e === null ? (n.style.removeProperty("color-scheme"), n.removeAttribute("data-theme")) : (n.style.colorScheme = e, n.setAttribute("data-theme", e)), t) try {
571
- e === null ? window.localStorage.removeItem(vr) : window.localStorage.setItem(vr, e);
572
+ e === null ? window.localStorage.removeItem(yr) : window.localStorage.setItem(yr, e);
572
573
  } catch {}
573
- window.dispatchEvent(new CustomEvent(br, { detail: e }));
574
+ window.dispatchEvent(new CustomEvent(xr, { detail: e }));
574
575
  };
575
- function wr() {
576
+ function Tr() {
576
577
  let [e, t] = A(!1), n, r = (e = n?.matches ?? !1) => {
577
578
  let t = window.getComputedStyle(document.documentElement).colorScheme.split(/\s+/), r = t.includes("dark");
578
579
  return r === t.includes("light") ? e : r;
579
580
  };
580
581
  return I(() => {
581
- typeof window.matchMedia == "function" && (n = window.matchMedia(yr));
582
+ typeof window.matchMedia == "function" && (n = window.matchMedia(br));
582
583
  let e = (e) => {
583
584
  let n = e.detail;
584
585
  t(n === null ? r() : n === "dark");
585
586
  }, i = (e) => {
586
- (e.key === null || e.key === vr) && Cr(xr(e.newValue), !1);
587
+ (e.key === null || e.key === yr) && wr(Sr(e.newValue), !1);
587
588
  }, a = (e) => {
588
- Sr() === null && t(r(e.matches));
589
+ Cr() === null && t(r(e.matches));
589
590
  };
590
- window.addEventListener(br, e), window.addEventListener("storage", i), n?.addEventListener("change", a);
591
- let o = Sr();
592
- return t(o === null ? r() : o === "dark"), o !== null && Cr(o, !1), () => {
593
- window.removeEventListener(br, e), window.removeEventListener("storage", i), n?.removeEventListener("change", a), n = void 0;
591
+ window.addEventListener(xr, e), window.addEventListener("storage", i), n?.addEventListener("change", a);
592
+ let o = Cr();
593
+ return t(o === null ? r() : o === "dark"), o !== null && wr(o, !1), () => {
594
+ window.removeEventListener(xr, e), window.removeEventListener("storage", i), n?.removeEventListener("change", a), n = void 0;
594
595
  };
595
596
  }), {
596
597
  isDarkTheme: e,
597
598
  toggleTheme: () => {
598
599
  let e = r() ? "light" : "dark";
599
- t(e === "dark"), Cr(e, !0);
600
+ t(e === "dark"), wr(e, !0);
600
601
  }
601
602
  };
602
603
  }
603
604
  //#endregion
604
605
  //#region src/components/icon/elm-toggle-theme.module.css
605
- var Tr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Er = /* @__PURE__ */ y("<svg><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M12 19v1M19 12h1M12 5v-1M5 12h-1\"><animate fill=freeze attributeName=d begin=1.2s dur=0.2s values=\"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.2s dur=0.2s values=2;0></animate></path><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5\"><animate fill=freeze attributeName=d begin=1.4s dur=0.2s values=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.4s dur=0.2s values=2;0></animate></path><animateTransform attributeName=transform dur=30s repeatCount=indefinite type=rotate values=\"0 12 12;360 12 12\"></animateTransform></g><g fill=currentColor><path d=\"M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z\"><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path d=\"M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z\"><animate fill=freeze attributeName=fill-opacity begin=0.2s dur=0.4s values=1;0></animate></path></g><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"><set></set></path><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=8><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=8;4></animate></circle><circle cx=18 cy=6 r=12 fill=#fff><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=12;3></animate></circle><circle cx=18 cy=6 r=10><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;1></animate></circle></mask><circle cx=12 cy=12 r=10 opacity=0 fill=currentColor><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;6></animate><set>"), Dr = /* @__PURE__ */ y("<svg><path fill-opacity=0 d=\"M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><g><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M12 21v1M21 12h1M12 3v-1M3 12h-1\"><animate fill=freeze attributeName=stroke-dashoffset dur=0.2s values=4;2></animate></path><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"><animate fill=freeze attributeName=stroke-dashoffset begin=0.2s dur=0.2s values=4;2></animate></path><set></set></g><path d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"opacity=0><set></set></path></g><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=4><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=4;8></animate></circle><circle cx=22 cy=2 r=3 fill=#fff><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=3;12></animate></circle><circle cx=22 cy=2 r=1><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=1;10></animate></circle></mask><circle cx=12 cy=12 r=6 fill=currentColor><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=6;10></animate><set>"), Or = (e) => ({
606
+ var Er = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Dr = /* @__PURE__ */ y("<svg><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M12 19v1M19 12h1M12 5v-1M5 12h-1\"><animate fill=freeze attributeName=d begin=1.2s dur=0.2s values=\"M12 19v1M19 12h1M12 5v-1M5 12h-1;M12 21v1M21 12h1M12 3v-1M3 12h-1\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.2s dur=0.2s values=2;0></animate></path><path stroke-dasharray=2 stroke-dashoffset=2 d=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5\"><animate fill=freeze attributeName=d begin=1.4s dur=0.2s values=\"M17 17l0.5 0.5M17 7l0.5 -0.5M7 7l-0.5 -0.5M7 17l-0.5 0.5;M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"></animate><animate fill=freeze attributeName=stroke-dashoffset begin=1.4s dur=0.2s values=2;0></animate></path><animateTransform attributeName=transform dur=30s repeatCount=indefinite type=rotate values=\"0 12 12;360 12 12\"></animateTransform></g><g fill=currentColor><path d=\"M15.22 6.03L17.75 4.09L14.56 4L13.5 1L12.44 4L9.25 4.09L11.78 6.03L10.87 9.09L13.5 7.28L16.13 9.09L15.22 6.03Z\"><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path d=\"M19.61 12.25L21.25 11L19.19 10.95L18.5 9L17.81 10.95L15.75 11L17.39 12.25L16.8 14.23L18.5 13.06L20.2 14.23L19.61 12.25Z\"><animate fill=freeze attributeName=fill-opacity begin=0.2s dur=0.4s values=1;0></animate></path></g><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"><set></set></path><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=8><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=8;4></animate></circle><circle cx=18 cy=6 r=12 fill=#fff><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=12;3></animate></circle><circle cx=18 cy=6 r=10><animate fill=freeze attributeName=cx begin=0.6s dur=0.4s values=18;22></animate><animate fill=freeze attributeName=cy begin=0.6s dur=0.4s values=6;2></animate><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;1></animate></circle></mask><circle cx=12 cy=12 r=10 opacity=0 fill=currentColor><animate fill=freeze attributeName=r begin=0.6s dur=0.4s values=10;6></animate><set>"), Or = /* @__PURE__ */ y("<svg><path fill-opacity=0 d=\"M15.22 6.03l2.53-1.94L14.56 4L13.5 1l-1.06 3l-3.19.09l2.53 1.94l-.91 3.06l2.63-1.81l2.63 1.81z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M13.61 5.25L15.25 4l-2.06-.05L12.5 2l-.69 1.95L9.75 4l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M19.61 12.25L21.25 11l-2.06-.05L18.5 9l-.69 1.95l-2.06.05l1.64 1.25l-.59 1.98l1.7-1.17l1.7 1.17z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><path fill-opacity=0 d=\"M20.828 9.731l1.876-1.439l-2.366-.067L19.552 6l-.786 2.225l-2.366.067l1.876 1.439L17.601 12l1.951-1.342L21.503 12z\"fill=currentColor><animate fill=freeze attributeName=fill-opacity dur=0.4s values=0;1></animate><animate fill=freeze attributeName=fill-opacity dur=0.4s values=1;0></animate></path><g fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2><g><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M12 21v1M21 12h1M12 3v-1M3 12h-1\"><animate fill=freeze attributeName=stroke-dashoffset dur=0.2s values=4;2></animate></path><path stroke-dasharray=2 stroke-dashoffset=4 d=\"M18.5 18.5l0.5 0.5M18.5 5.5l0.5 -0.5M5.5 5.5l-0.5 -0.5M5.5 18.5l-0.5 0.5\"><animate fill=freeze attributeName=stroke-dashoffset begin=0.2s dur=0.2s values=4;2></animate></path><set></set></g><path d=\"M7 6 C7 12.08 11.92 17 18 17 C18.53 17 19.05 16.96 19.56 16.89 C17.95 19.36 15.17 21 12 21 C7.03 21 3 16.97 3 12 C3 8.83 4.64 6.05 7.11 4.44 C7.04 4.95 7 5.47 7 6 Z\"opacity=0><set></set></path></g><mask><circle cx=12 cy=12 r=12 fill=#fff></circle><circle cx=12 cy=12 r=4><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=4;8></animate></circle><circle cx=22 cy=2 r=3 fill=#fff><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=3;12></animate></circle><circle cx=22 cy=2 r=1><animate fill=freeze attributeName=cx begin=0.1s dur=0.4s values=22;18></animate><animate fill=freeze attributeName=cy begin=0.1s dur=0.4s values=2;6></animate><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=1;10></animate></circle></mask><circle cx=12 cy=12 r=6 fill=currentColor><animate fill=freeze attributeName=r begin=0.1s dur=0.4s values=6;10></animate><set>"), kr = (e) => ({
606
607
  attributeName: "opacity",
607
608
  to: e
608
- }), kr = (e) => {
609
- let t = P(e, "class", "style", "size", "onClick", "onKeyDown", "role", "tabindex", "tabIndex", "aria-label", "children"), n = wr(), r = M(), i = `elm-toggle-theme-moon-mask-${r}`, a = `elm-toggle-theme-sun-animation-${r}`, o = `elm-toggle-theme-sun-mask-${r}`, s = (t) => {
609
+ }), Ar = (e) => {
610
+ let t = P(e, "class", "style", "size", "onClick", "onKeyDown", "role", "tabindex", "tabIndex", "aria-label", "children"), n = Tr(), r = M(), i = `elm-toggle-theme-moon-mask-${r}`, a = `elm-toggle-theme-sun-animation-${r}`, o = `elm-toggle-theme-sun-mask-${r}`, s = (t) => {
610
611
  n.toggleTheme();
611
612
  let r = e.onClick;
612
613
  typeof r == "function" ? r(t) : r?.[0](r[1], t);
@@ -619,7 +620,7 @@ var Tr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Er = /* @__PURE__
619
620
  viewBox: "0 0 24 24"
620
621
  };
621
622
  return u(() => u(() => !n.isDarkTheme())() ? (() => {
622
- var n = Er(), r = n.firstChild.nextSibling.nextSibling, a = r.firstChild, o = r.nextSibling, u = o.nextSibling, d = u.firstChild.nextSibling;
623
+ var n = Dr(), r = n.firstChild.nextSibling.nextSibling, a = r.firstChild, o = r.nextSibling, u = o.nextSibling, d = u.firstChild.nextSibling;
623
624
  return _(n, [
624
625
  l,
625
626
  {
@@ -630,7 +631,7 @@ var Tr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Er = /* @__PURE__
630
631
  return e.size ?? "2rem";
631
632
  },
632
633
  get class() {
633
- return z(Tr["elm-toggle-theme"], e.class);
634
+ return z(Er["elm-toggle-theme"], e.class);
634
635
  },
635
636
  get style() {
636
637
  return e.style;
@@ -648,15 +649,15 @@ var Tr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Er = /* @__PURE__
648
649
  onKeyDown: c
649
650
  },
650
651
  t
651
- ], !0), _(a, [() => Or("0"), {
652
+ ], !0), _(a, [() => kr("0"), {
652
653
  fill: "freeze",
653
654
  begin: "0.6s"
654
- }], !1), m(o, "id", i), m(u, "mask", `url(#${i})`), _(d, [() => Or("1"), {
655
+ }], !1), m(o, "id", i), m(u, "mask", `url(#${i})`), _(d, [() => kr("1"), {
655
656
  fill: "freeze",
656
657
  begin: "0.6s"
657
658
  }], !1), n;
658
659
  })() : (() => {
659
- var n = Dr(), r = n.firstChild, i = r.firstChild, u = i.nextSibling, d = r.nextSibling, f = d.firstChild, p = f.nextSibling, h = d.nextSibling, g = h.firstChild, v = g.nextSibling, y = h.nextSibling, b = y.firstChild, x = b.nextSibling, S = y.nextSibling, C = S.firstChild, w = C.firstChild.nextSibling.nextSibling, T = C.nextSibling.firstChild, E = S.nextSibling, D = E.nextSibling, O = D.firstChild.nextSibling;
660
+ var n = Or(), r = n.firstChild, i = r.firstChild, u = i.nextSibling, d = r.nextSibling, f = d.firstChild, p = f.nextSibling, h = d.nextSibling, g = h.firstChild, v = g.nextSibling, y = h.nextSibling, b = y.firstChild, x = b.nextSibling, S = y.nextSibling, C = S.firstChild, w = C.firstChild.nextSibling.nextSibling, T = C.nextSibling.firstChild, E = S.nextSibling, D = E.nextSibling, O = D.firstChild.nextSibling;
660
661
  return _(n, [
661
662
  l,
662
663
  {
@@ -667,7 +668,7 @@ var Tr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Er = /* @__PURE__
667
668
  return e.size ?? "2rem";
668
669
  },
669
670
  get class() {
670
- return z(Tr["elm-toggle-theme"], e.class);
671
+ return z(Er["elm-toggle-theme"], e.class);
671
672
  },
672
673
  get style() {
673
674
  return e.style;
@@ -685,27 +686,27 @@ var Tr = { "elm-toggle-theme": "_elm-toggle-theme_1lgp6_1" }, Er = /* @__PURE__
685
686
  onKeyDown: c
686
687
  },
687
688
  t
688
- ], !0), m(i, "id", a), m(i, "begin", `0.6s;${a}.begin+6s`), m(u, "begin", `${a}.begin+2.2s`), m(f, "begin", `${a}.begin+3s`), m(p, "begin", `${a}.begin+5.2s`), m(g, "begin", `${a}.begin+0.4s`), m(v, "begin", `${a}.begin+2.8s`), m(b, "begin", `${a}.begin+3.4s`), m(x, "begin", `${a}.begin+5.6s`), _(w, [() => Or("0"), {
689
+ ], !0), m(i, "id", a), m(i, "begin", `0.6s;${a}.begin+6s`), m(u, "begin", `${a}.begin+2.2s`), m(f, "begin", `${a}.begin+3s`), m(p, "begin", `${a}.begin+5.2s`), m(g, "begin", `${a}.begin+0.4s`), m(v, "begin", `${a}.begin+2.8s`), m(b, "begin", `${a}.begin+3.4s`), m(x, "begin", `${a}.begin+5.6s`), _(w, [() => kr("0"), {
689
690
  fill: "freeze",
690
691
  begin: "0.5s"
691
- }], !1), _(T, [() => Or("1"), {
692
+ }], !1), _(T, [() => kr("1"), {
692
693
  fill: "freeze",
693
694
  begin: "0.5s"
694
- }], !1), m(E, "id", o), m(D, "mask", `url(#${o})`), _(O, [() => Or("0"), {
695
+ }], !1), m(E, "id", o), m(D, "mask", `url(#${o})`), _(O, [() => kr("0"), {
695
696
  fill: "freeze",
696
697
  begin: "0.5s"
697
698
  }], !1), n;
698
699
  })());
699
- }, Ar = {
700
+ }, jr = {
700
701
  "elm-file": "_elm-file_1we6j_1",
701
702
  "file-size": "_file-size_1we6j_12",
702
703
  "download-icon": "_download-icon_1we6j_17"
703
- }, jr = /* @__PURE__ */ y("<div><div></div><div></div><div class=_file-size_1we6j_12></div><div class=_download-icon_1we6j_17>");
704
- function Mr(e) {
704
+ }, Mr = /* @__PURE__ */ y("<div><div></div><div></div><div class=_file-size_1we6j_12></div><div class=_download-icon_1we6j_17>");
705
+ function Nr(e) {
705
706
  let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
706
707
  return t.length > 0 ? t[t.length - 1] : null;
707
708
  }
708
- var Nr = (e) => {
709
+ var Pr = (e) => {
709
710
  let t = P(e, "class", "name", "src", "filesize"), n, i = !1;
710
711
  F(() => {
711
712
  i = !0, n && URL.revokeObjectURL(n);
@@ -720,19 +721,19 @@ var Nr = (e) => {
720
721
  let o = URL.createObjectURL(a);
721
722
  n && URL.revokeObjectURL(n), n = o;
722
723
  let s = document.createElement("a");
723
- s.href = n, s.download = r ?? Mr(t) ?? "file", s.click();
724
+ s.href = n, s.download = r ?? Nr(t) ?? "file", s.click();
724
725
  } catch (e) {
725
726
  console.error("ERROR:", e);
726
727
  }
727
728
  };
728
- var o = jr(), s = o.firstChild, c = s.nextSibling, u = c.nextSibling, d = u.nextSibling;
729
+ var o = Mr(), s = o.firstChild, c = s.nextSibling, u = c.nextSibling, d = u.nextSibling;
729
730
  return _(o, [{ get class() {
730
- return z(Ar["elm-file"], e.class);
731
+ return z(jr["elm-file"], e.class);
731
732
  } }, t], !0), l(s, r(J, {
732
733
  path: ye,
733
734
  size: "1.25rem"
734
735
  })), l(c, r(K, { get children() {
735
- return e.name ?? Mr(e.src);
736
+ return e.name ?? Nr(e.src);
736
737
  } })), l(u, r(K, { get children() {
737
738
  return e.filesize;
738
739
  } })), d._$$click = () => void a(), l(d, r(J, {
@@ -741,7 +742,7 @@ var Nr = (e) => {
741
742
  })), o;
742
743
  };
743
744
  i(["click"]);
744
- var Pr = {
745
+ var Fr = {
745
746
  "elm-bookmark": "_elm-bookmark_zkn8n_1",
746
747
  container: "_container_zkn8n_23",
747
748
  image: "_image_zkn8n_35",
@@ -749,17 +750,17 @@ var Pr = {
749
750
  title: "_title_zkn8n_69",
750
751
  description: "_description_zkn8n_73",
751
752
  link: "_link_zkn8n_78"
752
- }, Fr = /* @__PURE__ */ y("<div><a class=_container_zkn8n_23 target=_blank rel=\"noopener noreferrer\"><img class=_image_zkn8n_35 alt=\"OGP Image\"><div class=_content_zkn8n_55><div class=_title_zkn8n_69></div><div class=_description_zkn8n_73></div><div class=_link_zkn8n_78><!><!>"), Ir = {
753
+ }, Ir = /* @__PURE__ */ y("<div><a class=_container_zkn8n_23 target=_blank rel=\"noopener noreferrer\"><img class=_image_zkn8n_35 alt=\"OGP Image\"><div class=_content_zkn8n_55><div class=_title_zkn8n_69></div><div class=_description_zkn8n_73></div><div class=_link_zkn8n_78><!><!>"), Lr = {
753
754
  visibility: "hidden",
754
755
  width: "0"
755
- }, Lr = (e) => {
756
+ }, Rr = (e) => {
756
757
  let n = P(e, "class", "title", "url", "image", "description", "favicon"), [i, a] = A(!1);
757
758
  O(() => e.image, () => {
758
759
  a(!1);
759
760
  }, { defer: !0 });
760
- var c = Fr(), d = c.firstChild, p = d.firstChild, h = p.nextSibling.firstChild, g = h.nextSibling, y = g.nextSibling, b = y.firstChild, x = b.nextSibling, S = s();
761
+ var c = Ir(), d = c.firstChild, p = d.firstChild, h = p.nextSibling.firstChild, g = h.nextSibling, y = g.nextSibling, b = y.firstChild, x = b.nextSibling, S = s();
761
762
  return _(c, [{ get class() {
762
- return z(Pr["elm-bookmark"], e.class);
763
+ return z(Fr["elm-bookmark"], e.class);
763
764
  } }, n], !0), p.addEventListener("error", () => a(!0)), l(h, r(K, {
764
765
  bold: !0,
765
766
  get children() {
@@ -772,7 +773,7 @@ var Pr = {
772
773
  }
773
774
  })), l(y, (() => {
774
775
  var t = u(() => !!e.favicon);
775
- return () => t() ? r(bn, { get src() {
776
+ return () => t() ? r(xn, { get src() {
776
777
  return e.favicon;
777
778
  } }) : r(J, {
778
779
  path: De,
@@ -786,27 +787,27 @@ var Pr = {
786
787
  }), x), o(() => ({
787
788
  e: e.url,
788
789
  t: e.image,
789
- a: f(i() || e.image == null ? Ir : void 0)
790
+ a: f(i() || e.image == null ? Lr : void 0)
790
791
  }), ({ e, t: n, a: r }, i) => {
791
792
  e !== i?.e && m(d, "href", e), n !== i?.t && m(p, "src", n), v(p, r, i?.a), t(d, S);
792
793
  }), c;
793
- }, Rr = {
794
+ }, zr = {
794
795
  "elm-breadcrumb": "_elm-breadcrumb_13oke_1",
795
796
  "link-container": "_link-container_13oke_9",
796
797
  icon: "_icon_13oke_23",
797
798
  chunk: "_chunk_13oke_36",
798
799
  chevron: "_chevron_13oke_41"
799
- }, zr = /* @__PURE__ */ y("<nav>"), Br = /* @__PURE__ */ y("<span style=display:contents><span class=_link-container_13oke_9><span class=_chunk_13oke_36>"), Vr = (t) => {
800
+ }, Br = /* @__PURE__ */ y("<nav>"), Vr = /* @__PURE__ */ y("<span style=display:contents><span class=_link-container_13oke_9><span class=_chunk_13oke_36>"), Hr = (t) => {
800
801
  let n = P(t, "class", "links");
801
- var i = zr();
802
+ var i = Br();
802
803
  return _(i, [{ get class() {
803
- return z(Rr["elm-breadcrumb"], t.class);
804
+ return z(zr["elm-breadcrumb"], t.class);
804
805
  } }, n], !0), l(i, r(b, {
805
806
  get each() {
806
807
  return t.links;
807
808
  },
808
809
  children: (n, i) => (() => {
809
- var a = Br(), o = a.firstChild, s = o.firstChild;
810
+ var a = Vr(), o = a.firstChild, s = o.firstChild;
810
811
  return e(o, "click", n.onClick, !0), l(o, r(J, {
811
812
  class: "_icon_13oke_23",
812
813
  get path() {
@@ -825,13 +826,13 @@ var Pr = {
825
826
  })), i;
826
827
  };
827
828
  i(["click"]);
828
- var Hr = {
829
+ var Ur = {
829
830
  "elm-page-top": "_elm-page-top_2u2d9_1",
830
831
  move: "_move_2u2d9_1",
831
832
  visible: "_visible_2u2d9_35",
832
833
  partial: "_partial_2u2d9_42",
833
834
  text: "_text_2u2d9_79"
834
- }, Ur = /* @__PURE__ */ y("<nav><div aria-hidden=true class=_partial_2u2d9_42></div><div aria-hidden=true class=_partial_2u2d9_42></div><div aria-hidden=true class=_partial_2u2d9_42></div><span class=_text_2u2d9_79>Back to Top"), Wr = (e) => {
835
+ }, Wr = /* @__PURE__ */ y("<nav><div aria-hidden=true class=_partial_2u2d9_42></div><div aria-hidden=true class=_partial_2u2d9_42></div><div aria-hidden=true class=_partial_2u2d9_42></div><span class=_text_2u2d9_79>Back to Top"), Gr = (e) => {
835
836
  let t = P(e, "class", "style", "position", "onClick", "onKeyDown", "role", "aria-hidden", "tabindex", "tabIndex"), [n, r] = A(!1);
836
837
  I(() => {
837
838
  let e = () => r(window.scrollY > 100);
@@ -849,10 +850,10 @@ var Hr = {
849
850
  let n = e.onKeyDown;
850
851
  typeof n == "function" ? n(t) : n?.[0](n[1], t);
851
852
  };
852
- var s = Ur();
853
+ var s = Wr();
853
854
  return _(s, [{
854
855
  get class() {
855
- return z(Hr["elm-page-top"], n() && Hr.visible, e.class);
856
+ return z(Ur["elm-page-top"], n() && Ur.visible, e.class);
856
857
  },
857
858
  get style() {
858
859
  return W(e.style, {
@@ -873,7 +874,7 @@ var Hr = {
873
874
  onClick: a,
874
875
  onKeyDown: o
875
876
  }, t], !0), s;
876
- }, Gr = {
877
+ }, Kr = {
877
878
  "elm-notion-callout": "_elm-notion-callout_15idh_1",
878
879
  icon: "_icon_15idh_9",
879
880
  content: "_content_15idh_15",
@@ -889,17 +890,17 @@ var Hr = {
889
890
  blue: "_blue_15idh_74",
890
891
  purple: "_purple_15idh_79",
891
892
  magenta: "_magenta_15idh_86"
892
- }, Kr = /* @__PURE__ */ y("<div><div class=_content_15idh_15>"), qr = /* @__PURE__ */ y("<span class=_icon_15idh_9 role=img>"), Jr = (e) => {
893
+ }, qr = /* @__PURE__ */ y("<div><div class=_content_15idh_15>"), Jr = /* @__PURE__ */ y("<span class=_icon_15idh_9 role=img>"), Yr = (e) => {
893
894
  let t = P(e, "class", "children", "icon", "color", "variant");
894
- var n = Kr(), i = n.firstChild;
895
+ var n = qr(), i = n.firstChild;
895
896
  return _(n, [t, { get class() {
896
- return z(Gr["elm-notion-callout"], Gr[e.color ?? "gray"], Gr[e.variant ?? "filled"], e.class);
897
+ return z(Kr["elm-notion-callout"], Kr[e.color ?? "gray"], Kr[e.variant ?? "filled"], e.class);
897
898
  } }], !0), l(n, (() => {
898
899
  var t = u(() => e.icon?.kind === "emoji");
899
900
  return () => t() ? (() => {
900
- var t = qr();
901
+ var t = Jr();
901
902
  return l(t, () => e.icon.emoji), t;
902
- })() : u(() => e.icon?.kind === "image")() ? r(bn, {
903
+ })() : u(() => e.icon?.kind === "image")() ? r(xn, {
903
904
  class: "_icon_15idh_9",
904
905
  get src() {
905
906
  return e.icon.src;
@@ -910,7 +911,7 @@ var Hr = {
910
911
  size: 20
911
912
  }) : null;
912
913
  })(), i), l(i, () => e.children), n;
913
- }, Yr = {
914
+ }, Xr = {
914
915
  "elm-color-primitive-sample": "_elm-color-primitive-sample_vuro0_1",
915
916
  toolbar: "_toolbar_vuro0_6",
916
917
  "mode-toggle": "_mode-toggle_vuro0_11",
@@ -921,12 +922,12 @@ var Hr = {
921
922
  swatch: "_swatch_vuro0_52",
922
923
  "swatch-name": "_swatch-name_vuro0_55",
923
924
  "swatch-bg": "_swatch-bg_vuro0_60"
924
- }, Xr = (e) => {
925
+ }, Zr = (e) => {
925
926
  let t = e.match(/\d+(?:\.\d+)?/g);
926
927
  if (!t || t.length < 3) return null;
927
928
  let n = (e) => Math.max(0, Math.min(255, Math.round(Number(e)))).toString(16).padStart(2, "0");
928
929
  return `#${n(t[0])}${n(t[1])}${n(t[2])}`;
929
- }, Zr = () => {
930
+ }, Qr = () => {
930
931
  let [e, t] = A(null), [n, r] = A("variable"), i, a = !1;
931
932
  return F(() => {
932
933
  a = !0, i !== void 0 && clearTimeout(i);
@@ -944,7 +945,7 @@ var Hr = {
944
945
  let e = r.closest("[data-theme]") ?? r.ownerDocument.documentElement, t = r.ownerDocument.createElement("span");
945
946
  t.style.color = `var(${o})`, t.style.display = "none", e.append(t);
946
947
  try {
947
- l = Xr(s.getComputedStyle(t).color) ?? o;
948
+ l = Zr(s.getComputedStyle(t).color) ?? o;
948
949
  } finally {
949
950
  t.remove();
950
951
  }
@@ -954,63 +955,15 @@ var Hr = {
954
955
  }, 1500));
955
956
  }
956
957
  };
957
- }, Qr = /* @__PURE__ */ y("<div><div class=_toolbar_vuro0_6><button type=button class=_mode-toggle_vuro0_11>Copy: <!>"), $r = /* @__PURE__ */ y("<div class=_group_vuro0_40><span class=_section-title_vuro0_33></span><div class=_scale_vuro0_46>"), ei = /* @__PURE__ */ y("<div class=_swatch_vuro0_52><div class=_swatch-bg_vuro0_60></div><code class=_swatch-name_vuro0_55>"), ti = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", ni = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", Y = [
958
- 100,
959
- 200,
960
- 300,
961
- 400,
962
- 500,
963
- 600,
964
- 700,
965
- 800,
966
- 900
967
- ], ri = [
968
- {
969
- hue: "red",
970
- steps: Y
971
- },
972
- {
973
- hue: "orange",
974
- steps: Y
975
- },
976
- {
977
- hue: "yellow",
978
- steps: Y
979
- },
980
- {
981
- hue: "green",
982
- steps: Y
983
- },
984
- {
985
- hue: "cyan",
986
- steps: Y
987
- },
988
- {
989
- hue: "blue",
990
- steps: Y
991
- },
992
- {
993
- hue: "purple",
994
- steps: Y
995
- },
996
- {
997
- hue: "magenta",
998
- steps: Y
999
- },
1000
- {
1001
- hue: "slate",
1002
- steps: Y
1003
- },
1004
- {
1005
- hue: "gold",
1006
- steps: Y
1007
- }
1008
- ], ii = (t) => {
1009
- let n = P(t, "class", "style", "onClick"), i = Zr();
1010
- var a = Qr(), s = a.firstChild.firstChild, c = s.firstChild, u = c.nextSibling;
958
+ }, $r = /* @__PURE__ */ y("<div><div class=_toolbar_vuro0_6><button type=button class=_mode-toggle_vuro0_11>Copy: <!>"), ei = /* @__PURE__ */ y("<div class=_group_vuro0_40><span class=_section-title_vuro0_33></span><div class=_scale_vuro0_46>"), ti = /* @__PURE__ */ y("<div class=_swatch_vuro0_52><div class=_swatch-bg_vuro0_60></div><code class=_swatch-name_vuro0_55>"), ni = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", ri = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", ii = Object.entries(kt.color).map(([e, t]) => ({
959
+ label: e.replaceAll("-", " "),
960
+ steps: Object.entries(t)
961
+ })), ai = (t) => {
962
+ let n = P(t, "class", "style", "onClick"), i = Qr();
963
+ var a = $r(), s = a.firstChild.firstChild, c = s.firstChild, u = c.nextSibling;
1011
964
  return _(a, [n, {
1012
965
  get class() {
1013
- return z(Yr["elm-color-primitive-sample"], t.class);
966
+ return z(Xr["elm-color-primitive-sample"], t.class);
1014
967
  },
1015
968
  get style() {
1016
969
  return t.style;
@@ -1023,30 +976,34 @@ var Hr = {
1023
976
  }], !0), e(s, "click", i.toggleCopyMode, !0), l(s, r(J, {
1024
977
  class: "_mode-toggle-icon_vuro0_24",
1025
978
  get path() {
1026
- return i.copyMode() === "hex" ? ni : ti;
979
+ return i.copyMode() === "hex" ? ri : ni;
1027
980
  },
1028
981
  size: "1.25rem"
1029
982
  }), c), l(s, () => i.copyMode() === "hex" ? "hex value" : "variable name", u), l(a, r(b, {
1030
- each: ri,
983
+ each: ii,
1031
984
  children: (e) => (() => {
1032
- var t = $r(), n = t.firstChild, a = n.nextSibling;
1033
- return l(n, () => e.hue), l(a, r(b, {
985
+ var t = ei(), n = t.firstChild, a = n.nextSibling;
986
+ return l(n, () => e.label), l(a, r(b, {
1034
987
  get each() {
1035
988
  return e.steps;
1036
989
  },
1037
- children: (t) => {
1038
- let n = `--elmethis-primitive-color-${e.hue}-${t}`;
1039
- var r = ei(), a = r.firstChild, s = a.nextSibling;
1040
- return m(r, "data-copy-token", n), m(r, "title", n), g(a, "background-color", `var(${n})`), l(s, () => i.copiedToken() === n ? "copied!" : t), o(() => String(t / 100), (e) => {
1041
- g(r, "grid-column", e);
1042
- }), r;
1043
- }
990
+ children: ([e, t]) => (() => {
991
+ var n = ti(), r = n.firstChild, a = r.nextSibling;
992
+ return l(a, () => i.copiedToken() === t.property ? "copied!" : e), o(() => ({
993
+ e: String(Number(e) / 100),
994
+ t: t.property,
995
+ a: t.property,
996
+ o: t.ref
997
+ }), ({ e, t, a: i, o: a }, o) => {
998
+ e !== o?.e && g(n, "grid-column", e), t !== o?.t && m(n, "data-copy-token", t), i !== o?.a && m(n, "title", i), a !== o?.o && g(r, "background-color", a);
999
+ }), n;
1000
+ })()
1044
1001
  })), t;
1045
1002
  })()
1046
1003
  }), null), a;
1047
1004
  };
1048
1005
  i(["click"]);
1049
- var ai = {
1006
+ var oi = {
1050
1007
  "elm-color-semantic-sample": "_elm-color-semantic-sample_6i1j1_1",
1051
1008
  toolbar: "_toolbar_6i1j1_6",
1052
1009
  "mode-toggle": "_mode-toggle_6i1j1_11",
@@ -1065,11 +1022,11 @@ var ai = {
1065
1022
  "color-sample": "_color-sample_6i1j1_112",
1066
1023
  "color-sample-bg": "_color-sample-bg_6i1j1_121",
1067
1024
  "color-sample-name": "_color-sample-name_6i1j1_127"
1068
- }, oi = /* @__PURE__ */ y("<div class=_color-sample-container_6i1j1_112>"), si = /* @__PURE__ */ y("<div class=_color-sample_6i1j1_112><div class=_color-sample-bg_6i1j1_121></div><code class=_color-sample-name_6i1j1_127>"), ci = /* @__PURE__ */ y("<div class=_panel_6i1j1_33><div class=_panel-body_6i1j1_72 style=background-color:var(--elmethis-color-surface-base)><header class=_header_6i1j1_38 style=background-color:var(--elmethis-color-surface-sunken)><span data-copy-token=--elmethis-color-surface-sunken></span></header><div class=_body_6i1j1_49><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Surface</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Foreground</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Accent</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Neutral</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Primary</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Display"), li = /* @__PURE__ */ y("<div class=_surface_6i1j1_86>"), ui = /* @__PURE__ */ y("<span class=_foreground_6i1j1_97>"), di = /* @__PURE__ */ y("<div class=_accent-pair_6i1j1_102><span></span><span>"), fi = /* @__PURE__ */ y("<div><div class=_toolbar_6i1j1_6><button type=button class=_mode-toggle_6i1j1_11>Copy: <!></button></div><div class=_panels_6i1j1_33><!><!>"), pi = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", mi = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", hi = [
1025
+ }, si = /* @__PURE__ */ y("<div class=_color-sample-container_6i1j1_112>"), ci = /* @__PURE__ */ y("<div class=_color-sample_6i1j1_112><div class=_color-sample-bg_6i1j1_121></div><code class=_color-sample-name_6i1j1_127>"), li = /* @__PURE__ */ y("<div class=_panel_6i1j1_33><div class=_panel-body_6i1j1_72 style=background-color:var(--elmethis-color-surface-base)><header class=_header_6i1j1_38 style=background-color:var(--elmethis-color-surface-sunken)><span data-copy-token=--elmethis-color-surface-sunken></span></header><div class=_body_6i1j1_49><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Surface</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Foreground</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Accent</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Neutral</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Primary</span></div><div class=_group_6i1j1_63><span class=_section-title_6i1j1_56>Display"), ui = /* @__PURE__ */ y("<div class=_surface_6i1j1_86>"), di = /* @__PURE__ */ y("<span class=_foreground_6i1j1_97>"), fi = /* @__PURE__ */ y("<div class=_accent-pair_6i1j1_102><span></span><span>"), pi = /* @__PURE__ */ y("<div><div class=_toolbar_6i1j1_6><button type=button class=_mode-toggle_6i1j1_11>Copy: <!></button></div><div class=_panels_6i1j1_33><!><!>"), mi = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z", hi = "M7 7C5.9 7 5 7.9 5 9V15C5 16.11 5.9 17 7 17H9C10.11 17 11 16.11 11 15V9C11 7.9 10.11 7 9 7H7M7 9H9V15H7V9M17.6 17L15.5 14.9L13.4 17L12 15.6L14.1 13.5L12 11.4L13.4 10L15.5 12.1L17.6 10L19 11.4L16.9 13.5L19 15.6L17.6 17Z", gi = [
1069
1026
  "--elmethis-color-surface-sunken",
1070
1027
  "--elmethis-color-surface-base",
1071
1028
  "--elmethis-color-surface-raised"
1072
- ], gi = [
1029
+ ], _i = [
1073
1030
  "--elmethis-color-neutral-weak",
1074
1031
  "--elmethis-color-neutral",
1075
1032
  "--elmethis-color-neutral-strong",
@@ -1078,15 +1035,15 @@ var ai = {
1078
1035
  "--elmethis-color-primary-strong",
1079
1036
  "--elmethis-color-accent-link",
1080
1037
  "--elmethis-color-accent-link-visited"
1081
- ], _i = [
1038
+ ], vi = [
1082
1039
  "--elmethis-color-neutral-weak",
1083
1040
  "--elmethis-color-neutral",
1084
1041
  "--elmethis-color-neutral-strong"
1085
- ], vi = [
1042
+ ], yi = [
1086
1043
  "--elmethis-color-primary-weak",
1087
1044
  "--elmethis-color-primary",
1088
1045
  "--elmethis-color-primary-strong"
1089
- ], yi = [
1046
+ ], bi = [
1090
1047
  {
1091
1048
  foreground: "--elmethis-color-accent-info",
1092
1049
  surface: "--elmethis-color-accent-info-surface"
@@ -1107,7 +1064,7 @@ var ai = {
1107
1064
  foreground: "--elmethis-color-accent-error",
1108
1065
  surface: "--elmethis-color-accent-error-surface"
1109
1066
  }
1110
- ], bi = [
1067
+ ], xi = [
1111
1068
  "red",
1112
1069
  "orange",
1113
1070
  "yellow",
@@ -1118,34 +1075,34 @@ var ai = {
1118
1075
  ].map((e) => ({
1119
1076
  foreground: `--elmethis-color-display-${e}`,
1120
1077
  surface: `--elmethis-color-display-${e}-surface`
1121
- })), xi = (t) => {
1122
- let n = P(t, "class", "style"), i = Zr(), a = (e) => i.copiedToken() === e ? "copied!" : e, s = (e) => (() => {
1123
- var t = oi();
1078
+ })), Si = (t) => {
1079
+ let n = P(t, "class", "style"), i = Qr(), a = (e) => i.copiedToken() === e ? "copied!" : e, s = (e) => (() => {
1080
+ var t = si();
1124
1081
  return l(t, r(b, {
1125
1082
  each: e,
1126
1083
  children: (e) => (() => {
1127
- var t = si(), n = t.firstChild, r = n.nextSibling;
1084
+ var t = ci(), n = t.firstChild, r = n.nextSibling;
1128
1085
  return m(t, "data-copy-token", e), g(n, "background-color", `var(${e})`), l(r, () => a(e)), t;
1129
1086
  })()
1130
1087
  })), t;
1131
1088
  })(), c = (e) => (() => {
1132
- var t = ci(), n = t.firstChild.firstChild, i = n.firstChild, c = n.nextSibling.firstChild, u = c.nextSibling, d = u.nextSibling, f = d.nextSibling, p = f.nextSibling, h = p.nextSibling;
1089
+ var t = li(), n = t.firstChild.firstChild, i = n.firstChild, c = n.nextSibling.firstChild, u = c.nextSibling, d = u.nextSibling, f = d.nextSibling, p = f.nextSibling, h = p.nextSibling;
1133
1090
  return m(t, "data-theme", e), g(t, "color-scheme", e), l(i, () => a("--elmethis-color-surface-sunken")), l(c, r(b, {
1134
- each: hi,
1091
+ each: gi,
1135
1092
  children: (e) => (() => {
1136
- var t = li();
1093
+ var t = ui();
1137
1094
  return g(t, "background-color", `var(${e})`), m(t, "data-copy-token", e), l(t, () => a(e)), t;
1138
1095
  })()
1139
1096
  }), null), l(u, r(b, {
1140
- each: gi,
1097
+ each: _i,
1141
1098
  children: (e) => (() => {
1142
- var t = ui();
1099
+ var t = di();
1143
1100
  return g(t, "color", `var(${e})`), m(t, "data-copy-token", e), l(t, () => a(e)), t;
1144
1101
  })()
1145
1102
  }), null), l(d, r(b, {
1146
- each: yi,
1103
+ each: bi,
1147
1104
  children: (e) => (() => {
1148
- var t = di(), n = t.firstChild, r = n.nextSibling;
1105
+ var t = fi(), n = t.firstChild, r = n.nextSibling;
1149
1106
  return l(n, () => a(e.foreground)), l(r, () => a(e.surface)), o(() => ({
1150
1107
  e: `var(${e.foreground})`,
1151
1108
  t: `var(${e.surface})`,
@@ -1155,10 +1112,10 @@ var ai = {
1155
1112
  e !== s?.e && g(t, "color", e), i !== s?.t && g(t, "background-color", i), a !== s?.a && m(n, "data-copy-token", a), o !== s?.o && m(r, "data-copy-token", o);
1156
1113
  }), t;
1157
1114
  })()
1158
- }), null), l(f, () => s(_i), null), l(p, () => s(vi), null), l(h, r(b, {
1159
- each: bi,
1115
+ }), null), l(f, () => s(vi), null), l(p, () => s(yi), null), l(h, r(b, {
1116
+ each: xi,
1160
1117
  children: (e) => (() => {
1161
- var t = di(), n = t.firstChild, r = n.nextSibling;
1118
+ var t = fi(), n = t.firstChild, r = n.nextSibling;
1162
1119
  return l(n, () => a(e.foreground)), l(r, () => a(e.surface)), o(() => ({
1163
1120
  e: `var(${e.foreground})`,
1164
1121
  t: `var(${e.surface})`,
@@ -1170,10 +1127,10 @@ var ai = {
1170
1127
  })()
1171
1128
  }), null), t;
1172
1129
  })();
1173
- var u = fi(), d = u.firstChild, f = d.firstChild, p = f.firstChild, h = p.nextSibling, v = d.nextSibling, y = v.firstChild, x = y.nextSibling;
1130
+ var u = pi(), d = u.firstChild, f = d.firstChild, p = f.firstChild, h = p.nextSibling, v = d.nextSibling, y = v.firstChild, x = y.nextSibling;
1174
1131
  return _(u, [n, {
1175
1132
  get class() {
1176
- return z(ai["elm-color-semantic-sample"], t.class);
1133
+ return z(oi["elm-color-semantic-sample"], t.class);
1177
1134
  },
1178
1135
  get style() {
1179
1136
  return t.style;
@@ -1181,30 +1138,30 @@ var ai = {
1181
1138
  }], !0), e(f, "click", i.toggleCopyMode, !0), l(f, r(J, {
1182
1139
  class: "_mode-toggle-icon_6i1j1_24",
1183
1140
  get path() {
1184
- return i.copyMode() === "hex" ? mi : pi;
1141
+ return i.copyMode() === "hex" ? hi : mi;
1185
1142
  },
1186
1143
  size: "1.25rem"
1187
1144
  }), p), l(f, () => i.copyMode() === "hex" ? "hex value" : "variable name", h), v._$$click = (e) => void i.copyToken(e), l(v, () => c("light"), y), l(v, () => c("dark"), x), u;
1188
1145
  };
1189
1146
  i(["click"]);
1190
- var Si = {
1147
+ var Ci = {
1191
1148
  "elm-block-quote": "_elm-block-quote_1ez87_1",
1192
1149
  body: "_body_1ez87_19",
1193
1150
  icon: "_icon_1ez87_28",
1194
1151
  "icon-top-left": "_icon-top-left_1ez87_33",
1195
1152
  "icon-bottom-right": "_icon-bottom-right_1ez87_37"
1196
- }, Ci = /* @__PURE__ */ y("<blockquote><div></div><div class=_body_1ez87_19></div><div>"), wi = "M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z", Ti = "M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z", Ei = (e) => {
1153
+ }, wi = /* @__PURE__ */ y("<blockquote><div></div><div class=_body_1ez87_19></div><div>"), Ti = "M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z", Ei = "M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z", Di = (e) => {
1197
1154
  let t = P(e, "class", "children");
1198
- var i = Ci(), a = i.firstChild, s = a.nextSibling, c = s.nextSibling;
1155
+ var i = wi(), a = i.firstChild, s = a.nextSibling, c = s.nextSibling;
1199
1156
  return _(i, [t, { get class() {
1200
- return z(Si["elm-block-quote"], G.text, e.class);
1201
- } }], !0), l(a, r(J, { path: wi })), l(s, () => e.children), l(c, r(J, { path: Ti })), o(() => ({
1202
- e: f(z(Si.icon, Si["icon-top-left"])),
1203
- t: f(z(Si.icon, Si["icon-bottom-right"]))
1157
+ return z(Ci["elm-block-quote"], G.text, e.class);
1158
+ } }], !0), l(a, r(J, { path: Ti })), l(s, () => e.children), l(c, r(J, { path: Ei })), o(() => ({
1159
+ e: f(z(Ci.icon, Ci["icon-top-left"])),
1160
+ t: f(z(Ci.icon, Ci["icon-bottom-right"]))
1204
1161
  }), ({ e, t }, r) => {
1205
1162
  n(a, e, r?.e), n(c, t, r?.t);
1206
1163
  }), i;
1207
- }, Di = {
1164
+ }, Oi = {
1208
1165
  "elm-callout": "_elm-callout_1nsmp_1",
1209
1166
  header: "_header_1nsmp_26",
1210
1167
  content: "_content_1nsmp_35",
@@ -1214,43 +1171,43 @@ var Si = {
1214
1171
  important: "_important_1nsmp_55",
1215
1172
  warning: "_warning_1nsmp_59",
1216
1173
  caution: "_caution_1nsmp_63"
1217
- }, Oi = /* @__PURE__ */ y("<aside><div class=_header_1nsmp_26><span></span></div><div class=_content_1nsmp_35>"), ki = Object.freeze({
1174
+ }, ki = /* @__PURE__ */ y("<aside><div class=_header_1nsmp_26><span></span></div><div class=_content_1nsmp_35>"), Ai = Object.freeze({
1218
1175
  note: "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",
1219
1176
  tip: "M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z",
1220
1177
  important: "M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5M11,7H13V13H11M11,15H13V17H11",
1221
1178
  warning: "M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",
1222
1179
  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"
1223
- }), Ai = (e) => {
1180
+ }), ji = (e) => {
1224
1181
  let t = P(e, "class", "children", "type");
1225
- var n = Oi(), i = n.firstChild, a = i.firstChild, o = i.nextSibling;
1182
+ var n = ki(), i = n.firstChild, a = i.firstChild, o = i.nextSibling;
1226
1183
  return _(n, [t, { get class() {
1227
- return z(Di["elm-callout"], Di[e.type ?? "note"], e.class);
1184
+ return z(Oi["elm-callout"], Oi[e.type ?? "note"], e.class);
1228
1185
  } }], !0), l(i, r(J, {
1229
1186
  class: "_icon_1nsmp_42",
1230
1187
  get path() {
1231
- return ki[e.type ?? "note"];
1188
+ return Ai[e.type ?? "note"];
1232
1189
  },
1233
1190
  size: "1.25rem"
1234
1191
  }), a), l(a, () => e.type ?? "note"), l(o, () => e.children), n;
1235
- }, ji = { "elm-divider": "_elm-divider_9m6gb_1" }, Mi = /* @__PURE__ */ y("<hr>"), Ni = (e) => {
1192
+ }, Mi = { "elm-divider": "_elm-divider_9m6gb_1" }, Ni = /* @__PURE__ */ y("<hr>"), Pi = (e) => {
1236
1193
  let t = P(e, "class");
1237
- var n = Mi();
1194
+ var n = Ni();
1238
1195
  return _(n, [{ get class() {
1239
- return z(ji["elm-divider"], e.class);
1196
+ return z(Mi["elm-divider"], e.class);
1240
1197
  } }, t], !1), n;
1241
- }, Pi = { "elm-fragment-identifier": "_elm-fragment-identifier_xb2v4_1" }, Fi = /* @__PURE__ */ y("<span>#"), Ii = (e) => {
1198
+ }, Fi = { "elm-fragment-identifier": "_elm-fragment-identifier_xb2v4_1" }, Ii = /* @__PURE__ */ y("<span>#"), Li = (e) => {
1242
1199
  let t = P(e, "class", "id"), n = () => {
1243
1200
  let t = new URL(window.location.href);
1244
1201
  t.hash = e.id, window.history.replaceState(null, "", t.toString()), document.getElementById(e.id)?.scrollIntoView({ behavior: "smooth" });
1245
1202
  };
1246
- var r = Fi();
1203
+ var r = Ii();
1247
1204
  return _(r, [{
1248
1205
  get class() {
1249
- return z(Pi["elm-fragment-identifier"], e.class);
1206
+ return z(Fi["elm-fragment-identifier"], e.class);
1250
1207
  },
1251
1208
  onClick: n
1252
1209
  }, t], !0), r;
1253
- }, Li = {
1210
+ }, Ri = {
1254
1211
  "elm-heading": "_elm-heading_1fuld_1",
1255
1212
  h1: "_h1_1fuld_12",
1256
1213
  h2: "_h2_1fuld_34",
@@ -1259,21 +1216,21 @@ var Si = {
1259
1216
  h4: "_h4_1fuld_86",
1260
1217
  h5: "_h5_1fuld_90",
1261
1218
  h6: "_h6_1fuld_94"
1262
- }, Ri = /* @__PURE__ */ y("<span>"), zi = /* @__PURE__ */ y("<span style=padding:0.5rem>"), Bi = /* @__PURE__ */ y("<span class=_h2-underline_1fuld_60 aria-hidden=true>"), Vi = Object.freeze({
1219
+ }, zi = /* @__PURE__ */ y("<span>"), Bi = /* @__PURE__ */ y("<span style=padding:0.5rem>"), Vi = /* @__PURE__ */ y("<span class=_h2-underline_1fuld_60 aria-hidden=true>"), Hi = Object.freeze({
1263
1220
  1: 1.5,
1264
1221
  2: 1.4,
1265
1222
  3: 1.3,
1266
1223
  4: 1.2,
1267
1224
  5: 1.15,
1268
1225
  6: 1.1
1269
- }), Hi = (e) => {
1226
+ }), Ui = (e) => {
1270
1227
  let t = P(e, "class", "style", "children", "level", "text", "id"), n = a(() => `h${e.level}`);
1271
1228
  return r(n, d(t, {
1272
1229
  get class() {
1273
- return z(Li["elm-heading"], G.text, Li[`h${e.level}`], e.class);
1230
+ return z(Ri["elm-heading"], G.text, Ri[`h${e.level}`], e.class);
1274
1231
  },
1275
1232
  get style() {
1276
- return W(e.style, { "--elmethis-scoped-font-size": `${Vi[e.level]}em` });
1233
+ return W(e.style, { "--elmethis-scoped-font-size": `${Hi[e.level]}em` });
1277
1234
  },
1278
1235
  get id() {
1279
1236
  return e.id;
@@ -1281,40 +1238,40 @@ var Si = {
1281
1238
  get children() {
1282
1239
  return [
1283
1240
  (() => {
1284
- var t = Ri();
1241
+ var t = zi();
1285
1242
  return l(t, () => e.text), t;
1286
1243
  })(),
1287
1244
  u(() => e.children),
1288
1245
  u(() => u(() => !!e.id)() ? (() => {
1289
- var t = zi();
1290
- return l(t, r(Ii, { get id() {
1246
+ var t = Bi();
1247
+ return l(t, r(Li, { get id() {
1291
1248
  return e.id;
1292
1249
  } })), t;
1293
1250
  })() : e.id),
1294
- u(() => u(() => e.level === 2)() && Bi())
1251
+ u(() => u(() => e.level === 2)() && Vi())
1295
1252
  ];
1296
1253
  }
1297
1254
  }));
1298
- }, Ui = {
1255
+ }, Wi = {
1299
1256
  "elm-list": "_elm-list_brpi5_1",
1300
1257
  bulleted: "_bulleted_brpi5_8",
1301
1258
  numbered: "_numbered_brpi5_57"
1302
- }, Wi = (e) => {
1259
+ }, Gi = (e) => {
1303
1260
  let t = P(e, "class", "children", "listStyle"), n = () => e.listStyle === "ordered", i = a(() => n() ? "ol" : "ul");
1304
1261
  return r(i, d(t, {
1305
1262
  get class() {
1306
- return z(G.text, Ui["elm-list"], n() ? Ui.numbered : Ui.bulleted, e.class);
1263
+ return z(G.text, Wi["elm-list"], n() ? Wi.numbered : Wi.bulleted, e.class);
1307
1264
  },
1308
1265
  get children() {
1309
1266
  return e.children;
1310
1267
  }
1311
1268
  }));
1312
- }, Gi = { "elm-paragraph": "_elm-paragraph_y4o6n_1" }, Ki = /* @__PURE__ */ y("<p>"), qi = (e) => {
1269
+ }, Ki = { "elm-paragraph": "_elm-paragraph_y4o6n_1" }, qi = /* @__PURE__ */ y("<p>"), Ji = (e) => {
1313
1270
  let t = P(e, "class", "style", "children", "color", "backgroundColor");
1314
- var n = Ki();
1271
+ var n = qi();
1315
1272
  return _(n, [t, {
1316
1273
  get class() {
1317
- return z(Gi["elm-paragraph"], G.text, e.class);
1274
+ return z(Ki["elm-paragraph"], G.text, e.class);
1318
1275
  },
1319
1276
  get style() {
1320
1277
  return W(e.style, {
@@ -1326,8 +1283,8 @@ var Si = {
1326
1283
  };
1327
1284
  //#endregion
1328
1285
  //#region src/primitives/create-async-state.ts
1329
- function Ji(e, t, n = {}) {
1330
- let [r, i] = Rn(t), [a, o] = A(!1), [s, c] = A(!1), [l, u] = A(void 0, { equals: Object.is }), d = /* @__PURE__ */ new Map(), f = 0, p = !1, m = (e) => new Promise((t) => {
1286
+ function Yi(e, t, n = {}) {
1287
+ let [r, i] = zn(t), [a, o] = A(!1), [s, c] = A(!1), [l, u] = A(void 0, { equals: Object.is }), d = /* @__PURE__ */ new Map(), f = 0, p = !1, m = (e) => new Promise((t) => {
1331
1288
  let n = setTimeout(() => {
1332
1289
  d.delete(n), t();
1333
1290
  }, e);
@@ -1362,15 +1319,15 @@ function Ji(e, t, n = {}) {
1362
1319
  }
1363
1320
  //#endregion
1364
1321
  //#region src/primitives/create-debounced.ts
1365
- function Yi(e, t) {
1366
- let [n, r] = Rn(e), [i, a] = Rn(e), o, s = () => {
1322
+ function Xi(e, t) {
1323
+ let [n, r] = zn(e), [i, a] = zn(e), o, s = () => {
1367
1324
  o !== void 0 && (clearTimeout(o), o = void 0);
1368
1325
  };
1369
1326
  return F(s), {
1370
1327
  value: n,
1371
1328
  setValue: ((e) => {
1372
1329
  let n = !1, i = r((t) => {
1373
- let r = L(() => zn(e, t));
1330
+ let r = L(() => Bn(e, t));
1374
1331
  return n = !Object.is(r, t), r;
1375
1332
  });
1376
1333
  return n && (s(), t <= 0 ? a(() => i) : o = setTimeout(() => {
@@ -1383,8 +1340,8 @@ function Yi(e, t) {
1383
1340
  }
1384
1341
  //#endregion
1385
1342
  //#region src/primitives/create-delayed-signal.ts
1386
- function Xi(e) {
1387
- let [t, n] = Rn(e), [r, i] = Rn(e), [a, o] = A(!1), s, c = () => {
1343
+ function Zi(e) {
1344
+ let [t, n] = zn(e), [r, i] = zn(e), [a, o] = A(!1), s, c = () => {
1388
1345
  s !== void 0 && (clearTimeout(s), s = void 0);
1389
1346
  };
1390
1347
  return F(c), {
@@ -1400,45 +1357,45 @@ function Xi(e) {
1400
1357
  }
1401
1358
  //#endregion
1402
1359
  //#region src/primitives/create-storage.ts
1403
- var Zi = "elmethis-local-storage-change", Qi = "elmethis:sessionStorage:", $i = (e) => JSON.parse(e), ea = (e) => {
1360
+ var Qi = "elmethis-local-storage-change", $i = "elmethis:sessionStorage:", ea = (e) => JSON.parse(e), ta = (e) => {
1404
1361
  let t = JSON.stringify(e);
1405
1362
  if (t === void 0) throw TypeError("The storage value is not JSON-serializable");
1406
1363
  return t;
1407
- }, ta = (e) => {
1364
+ }, na = (e) => {
1408
1365
  if (typeof e != "object" || !e) return !1;
1409
1366
  let t = e;
1410
1367
  return t.protocol === "elmethis-storage-v1" && typeof t.key == "string" && (t.type === "remove" || t.type === "set" && typeof t.value == "string");
1411
- }, na = (e, t, n) => {
1368
+ }, ra = (e, t, n) => {
1412
1369
  console.warn(`createStorage: failed to ${e} "${t}"`, n);
1413
1370
  };
1414
- function ra(e, t) {
1415
- let [n, r] = Rn(L(() => t.initialValue), N), i = {}, a, o, s = !1, c = (e) => r(() => e), l = (e) => {
1371
+ function ia(e, t) {
1372
+ let [n, r] = zn(L(() => t.initialValue), N), i = {}, a, o, s = !1, c = (e) => r(() => e), l = (e) => {
1416
1373
  if (e.type === "remove") c(t.initialValue);
1417
1374
  else try {
1418
- c($i(e.value));
1375
+ c(ea(e.value));
1419
1376
  } catch (e) {
1420
- na("parse", t.key, e);
1377
+ ra("parse", t.key, e);
1421
1378
  }
1422
1379
  }, u = (n) => {
1423
1380
  if (!s) return;
1424
1381
  if (a) try {
1425
1382
  n.type === "remove" ? a.removeItem(t.key) : a.setItem(t.key, n.value);
1426
1383
  } catch (e) {
1427
- na(n.type === "remove" ? "remove" : "write", t.key, e);
1384
+ ra(n.type === "remove" ? "remove" : "write", t.key, e);
1428
1385
  }
1429
1386
  let r = {
1430
1387
  protocol: "elmethis-storage-v1",
1431
1388
  key: t.key,
1432
1389
  ...n
1433
1390
  };
1434
- if (e === "local") window.dispatchEvent(new CustomEvent(Zi, { detail: {
1391
+ if (e === "local") window.dispatchEvent(new CustomEvent(Qi, { detail: {
1435
1392
  ...r,
1436
1393
  source: i
1437
1394
  } }));
1438
1395
  else if (o) try {
1439
1396
  o.postMessage(r);
1440
1397
  } catch (e) {
1441
- na("broadcast", t.key, e);
1398
+ ra("broadcast", t.key, e);
1442
1399
  }
1443
1400
  };
1444
1401
  return I(() => {
@@ -1447,16 +1404,16 @@ function ra(e, t) {
1447
1404
  a = e === "local" ? window.localStorage : window.sessionStorage;
1448
1405
  let n = a.getItem(t.key);
1449
1406
  if (n === null) try {
1450
- a.setItem(t.key, ea(t.initialValue));
1407
+ a.setItem(t.key, ta(t.initialValue));
1451
1408
  } catch (e) {
1452
- na("write", t.key, e);
1409
+ ra("write", t.key, e);
1453
1410
  }
1454
1411
  else l({
1455
1412
  type: "set",
1456
1413
  value: n
1457
1414
  });
1458
1415
  } catch (e) {
1459
- a = void 0, na("read", t.key, e);
1416
+ a = void 0, ra("read", t.key, e);
1460
1417
  }
1461
1418
  let n = (e) => {
1462
1419
  e.key !== t.key || e.storageArea !== null && e.storageArea !== a || l(e.newValue === null ? { type: "remove" } : {
@@ -1465,34 +1422,34 @@ function ra(e, t) {
1465
1422
  });
1466
1423
  }, r = (e) => {
1467
1424
  let n = e.detail;
1468
- n?.source !== i && ta(n) && n.key === t.key && l(n);
1425
+ n?.source !== i && na(n) && n.key === t.key && l(n);
1469
1426
  };
1470
- if (window.addEventListener("storage", n), e === "local") window.addEventListener(Zi, r);
1427
+ if (window.addEventListener("storage", n), e === "local") window.addEventListener(Qi, r);
1471
1428
  else if (typeof BroadcastChannel < "u") try {
1472
- o = new BroadcastChannel(`${Qi}${t.key}`), o.addEventListener("message", (e) => {
1473
- if (ta(e.data) && e.data.key === t.key && (l(e.data), a)) try {
1429
+ o = new BroadcastChannel(`${$i}${t.key}`), o.addEventListener("message", (e) => {
1430
+ if (na(e.data) && e.data.key === t.key && (l(e.data), a)) try {
1474
1431
  e.data.type === "remove" ? a.removeItem(t.key) : a.setItem(t.key, e.data.value);
1475
1432
  } catch (e) {
1476
- na("mirror", t.key, e);
1433
+ ra("mirror", t.key, e);
1477
1434
  }
1478
1435
  });
1479
1436
  } catch (e) {
1480
- o = void 0, na("open broadcast channel for", t.key, e);
1437
+ o = void 0, ra("open broadcast channel for", t.key, e);
1481
1438
  }
1482
1439
  return () => {
1483
- s = !1, a = void 0, window.removeEventListener("storage", n), window.removeEventListener(Zi, r), o?.close(), o = void 0;
1440
+ s = !1, a = void 0, window.removeEventListener("storage", n), window.removeEventListener(Qi, r), o?.close(), o = void 0;
1484
1441
  };
1485
1442
  }), {
1486
1443
  state: n,
1487
1444
  setState: ((e) => {
1488
- let n = r((t) => zn(e, t));
1445
+ let n = r((t) => Bn(e, t));
1489
1446
  try {
1490
1447
  u({
1491
1448
  type: "set",
1492
- value: ea(n)
1449
+ value: ta(n)
1493
1450
  });
1494
1451
  } catch (e) {
1495
- na("serialize", t.key, e);
1452
+ ra("serialize", t.key, e);
1496
1453
  }
1497
1454
  return n;
1498
1455
  }),
@@ -1501,11 +1458,11 @@ function ra(e, t) {
1501
1458
  }
1502
1459
  };
1503
1460
  }
1504
- var ia = (e) => ra("local", e), aa = (e) => ra("session", e);
1461
+ var aa = (e) => ia("local", e), oa = (e) => ia("session", e);
1505
1462
  //#endregion
1506
1463
  //#region src/primitives/create-throttled.ts
1507
- function oa(e, t) {
1508
- let [n, r] = Rn(e), [i, a] = Rn(e), [o, s] = A(!1), c = e, l = e, u, d = !1, f = (e) => {
1464
+ function sa(e, t) {
1465
+ let [n, r] = zn(e), [i, a] = zn(e), [o, s] = A(!1), c = e, l = e, u, d = !1, f = (e) => {
1509
1466
  a(() => e), l = e;
1510
1467
  }, p = () => {
1511
1468
  s(!0), u = setTimeout(() => {
@@ -1517,7 +1474,7 @@ function oa(e, t) {
1517
1474
  }), {
1518
1475
  value: n,
1519
1476
  setValue: ((e) => {
1520
- let n = r((t) => L(() => zn(e, t)));
1477
+ let n = r((t) => L(() => Bn(e, t)));
1521
1478
  return Object.is(n, c) || (c = n, t <= 0 ? f(n) : u === void 0 && (f(n), p())), n;
1522
1479
  }),
1523
1480
  throttledValue: i,
@@ -1526,36 +1483,36 @@ function oa(e, t) {
1526
1483
  }
1527
1484
  //#endregion
1528
1485
  //#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
1529
- function sa(e) {
1486
+ function ca(e) {
1530
1487
  "@babel/helpers - typeof";
1531
- return sa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1488
+ return ca = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1532
1489
  return typeof e;
1533
1490
  } : function(e) {
1534
1491
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1535
- }, sa(e);
1492
+ }, ca(e);
1536
1493
  }
1537
1494
  //#endregion
1538
1495
  //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
1539
- function ca(e, t) {
1540
- if (sa(e) != "object" || !e) return e;
1496
+ function la(e, t) {
1497
+ if (ca(e) != "object" || !e) return e;
1541
1498
  var n = e[Symbol.toPrimitive];
1542
1499
  if (n !== void 0) {
1543
1500
  var r = n.call(e, t || "default");
1544
- if (sa(r) != "object") return r;
1501
+ if (ca(r) != "object") return r;
1545
1502
  throw TypeError("@@toPrimitive must return a primitive value.");
1546
1503
  }
1547
1504
  return (t === "string" ? String : Number)(e);
1548
1505
  }
1549
1506
  //#endregion
1550
1507
  //#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
1551
- function la(e) {
1552
- var t = ca(e, "string");
1553
- return sa(t) == "symbol" ? t : t + "";
1508
+ function ua(e) {
1509
+ var t = la(e, "string");
1510
+ return ca(t) == "symbol" ? t : t + "";
1554
1511
  }
1555
1512
  //#endregion
1556
1513
  //#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
1557
- function ua(e, t, n) {
1558
- return (t = la(t)) in e ? Object.defineProperty(e, t, {
1514
+ function da(e, t, n) {
1515
+ return (t = ua(t)) in e ? Object.defineProperty(e, t, {
1559
1516
  value: n,
1560
1517
  enumerable: !0,
1561
1518
  configurable: !0,
@@ -1564,9 +1521,9 @@ function ua(e, t, n) {
1564
1521
  }
1565
1522
  //#endregion
1566
1523
  //#region src/primitives/create-throttled-queue.ts
1567
- var da = class {
1524
+ var fa = class {
1568
1525
  constructor(e = 200) {
1569
- ua(this, "queue", []), ua(this, "minInterval", void 0), ua(this, "lastFinishedAt", 0), ua(this, "running", !1), ua(this, "destroyed", !1), ua(this, "timer", void 0), this.minInterval = Math.max(0, e);
1526
+ da(this, "queue", []), da(this, "minInterval", void 0), da(this, "lastFinishedAt", 0), da(this, "running", !1), da(this, "destroyed", !1), da(this, "timer", void 0), this.minInterval = Math.max(0, e);
1570
1527
  }
1571
1528
  push(e) {
1572
1529
  return this.destroyed ? Promise.reject(/* @__PURE__ */ Error("ThrottledQueue is destroyed")) : new Promise((t, n) => {
@@ -1607,55 +1564,55 @@ var da = class {
1607
1564
  }, t);
1608
1565
  }
1609
1566
  };
1610
- function fa(e = 200) {
1567
+ function pa(e = 200) {
1611
1568
  if (!ee()) throw Error("createThrottledQueue requires a reactive owner");
1612
- let t = new da(e);
1569
+ let t = new fa(e);
1613
1570
  return F(() => t.destroy("owner disposed")), t;
1614
1571
  }
1615
1572
  //#endregion
1616
1573
  //#region src/components/code/elm-katex.module.css
1617
- var pa = { "elm-katex": "_elm-katex_11clp_3" }, ma = /* @__PURE__ */ y("<div>"), ha = (e) => {
1618
- let t = P(e, "class", "expression", "block"), n = k(() => kt(e.expression, {
1574
+ var ma = { "elm-katex": "_elm-katex_11clp_3" }, ha = /* @__PURE__ */ y("<div>"), ga = (e) => {
1575
+ let t = P(e, "class", "expression", "block"), n = k(() => At(e.expression, {
1619
1576
  displayMode: e.block ?? !1,
1620
1577
  output: "mathml"
1621
1578
  }));
1622
- var r = ma();
1579
+ var r = ha();
1623
1580
  return _(r, [{
1624
1581
  get class() {
1625
- return z(G.text, e.block && pa["elm-katex"], e.class);
1582
+ return z(G.text, e.block && ma["elm-katex"], e.class);
1626
1583
  },
1627
1584
  get innerHTML() {
1628
1585
  return n();
1629
1586
  }
1630
1587
  }, t], !1), r;
1631
- }, ga = {
1588
+ }, _a = {
1632
1589
  "elm-collapse": "_elm-collapse_19v9o_1",
1633
1590
  row: "_row_19v9o_5",
1634
1591
  open: "_open_19v9o_11",
1635
1592
  column: "_column_19v9o_16",
1636
1593
  both: "_both_19v9o_27",
1637
1594
  inner: "_inner_19v9o_44"
1638
- }, _a = /* @__PURE__ */ y("<div><div class=_inner_19v9o_44>"), va = (e, t) => {
1595
+ }, va = /* @__PURE__ */ y("<div><div class=_inner_19v9o_44>"), ya = (e, t) => {
1639
1596
  let n = { "--elmethis-scoped-transition-timing-function": t };
1640
1597
  return typeof e == "string" ? [e.trim().replace(/;$/, ""), `--elmethis-scoped-transition-timing-function:${String(t)}`].filter(Boolean).join(";") : {
1641
1598
  ...e ?? {},
1642
1599
  ...n
1643
1600
  };
1644
- }, ya = (e) => {
1601
+ }, ba = (e) => {
1645
1602
  let t = P(e, "class", "style", "children", "isOpen", "direction", "transitionTimingFunction"), n = () => e.direction ?? "row";
1646
- var r = _a(), i = r.firstChild;
1603
+ var r = va(), i = r.firstChild;
1647
1604
  return _(r, [t, {
1648
1605
  get class() {
1649
- return z(ga["elm-collapse"], e.isOpen && ga.open, n() === "row" && ga.row, n() === "column" && ga.column, n() === "both" && ga.both, e.class);
1606
+ return z(_a["elm-collapse"], e.isOpen && _a.open, n() === "row" && _a.row, n() === "column" && _a.column, n() === "both" && _a.both, e.class);
1650
1607
  },
1651
1608
  get style() {
1652
- return va(e.style, e.transitionTimingFunction ?? "ease-in-out");
1609
+ return ya(e.style, e.transitionTimingFunction ?? "ease-in-out");
1653
1610
  }
1654
1611
  }], !0), l(i, () => e.children), r;
1655
- }, ba = {
1612
+ }, xa = {
1656
1613
  "elm-parallax": "_elm-parallax_1uz2b_1",
1657
1614
  parallax: "_parallax_1uz2b_6"
1658
- }, xa = /* @__PURE__ */ y("<div>"), Sa = /* @__PURE__ */ y("<div aria-hidden=true class=_parallax_1uz2b_6 style=transform-origin:bottom>"), Ca = (e, t) => `scale(1.2) translateY(${e / (1e3 * (t + 1))}%)`, wa = (e) => {
1615
+ }, Sa = /* @__PURE__ */ y("<div>"), Ca = /* @__PURE__ */ y("<div aria-hidden=true class=_parallax_1uz2b_6 style=transform-origin:bottom>"), wa = (e, t) => `scale(1.2) translateY(${e / (1e3 * (t + 1))}%)`, Ta = (e) => {
1659
1616
  let t = P(e, "class", "images"), [n, i] = A(0);
1660
1617
  I(() => {
1661
1618
  let e = window.matchMedia("(prefers-reduced-motion: reduce)"), t, n = window.scrollY, r = () => {
@@ -1667,27 +1624,27 @@ var pa = { "elm-katex": "_elm-katex_11clp_3" }, ma = /* @__PURE__ */ y("<div>"),
1667
1624
  window.removeEventListener("scroll", a), e.removeEventListener("change", a), t !== void 0 && window.cancelAnimationFrame(t);
1668
1625
  };
1669
1626
  });
1670
- var a = xa();
1627
+ var a = Sa();
1671
1628
  return _(a, [{ get class() {
1672
- return z(ba["elm-parallax"], e.class);
1629
+ return z(xa["elm-parallax"], e.class);
1673
1630
  } }, t], !0), l(a, r(b, {
1674
1631
  get each() {
1675
1632
  return e.images;
1676
1633
  },
1677
1634
  children: (e, t) => (() => {
1678
- var r = Sa();
1635
+ var r = Ca();
1679
1636
  return o(() => ({
1680
1637
  e: `url(${JSON.stringify(e)})`,
1681
- t: Ca(n(), t())
1638
+ t: wa(n(), t())
1682
1639
  }), ({ e, t }, n) => {
1683
1640
  e !== n?.e && g(r, "background-image", e), t !== n?.t && g(r, "transform", t);
1684
1641
  }), r;
1685
1642
  })()
1686
1643
  })), a;
1687
- }, Ta = {
1644
+ }, Ea = {
1688
1645
  "elm-modal": "_elm-modal_13wpm_1",
1689
1646
  shown: "_shown_13wpm_14"
1690
- }, Ea = /* @__PURE__ */ y("<dialog><div>"), Da = (e) => {
1647
+ }, Da = /* @__PURE__ */ y("<dialog><div>"), Oa = (e) => {
1691
1648
  let t = P(e, "class", "style", "ref", "children", "isOpen", "delay", "onClick", "onCancel", "onClose", "closedby"), n = () => e.delay ?? 200, [r, i] = A(!1), a, o, s = () => {
1692
1649
  o !== void 0 && (clearTimeout(o), o = void 0);
1693
1650
  };
@@ -1714,10 +1671,10 @@ var pa = { "elm-katex": "_elm-katex_11clp_3" }, ma = /* @__PURE__ */ y("<div>"),
1714
1671
  }, d = (t) => {
1715
1672
  s(), i(!1), e.isOpen && e.onClose?.(t, t.currentTarget);
1716
1673
  };
1717
- var f = Ea(), m = f.firstChild;
1674
+ var f = Da(), m = f.firstChild;
1718
1675
  return _(f, [t, {
1719
1676
  get class() {
1720
- return z(Ta["elm-modal"], r() && Ta.shown, e.class);
1677
+ return z(Ea["elm-modal"], r() && Ea.shown, e.class);
1721
1678
  },
1722
1679
  get style() {
1723
1680
  return W(e.style, { "--elmethis-scoped-modal-delay": `${n()}ms` });
@@ -1733,24 +1690,24 @@ var pa = { "elm-katex": "_elm-katex_11clp_3" }, ma = /* @__PURE__ */ y("<div>"),
1733
1690
  }, e.ref], f), m._$$click = (e) => e.stopPropagation(), l(m, () => e.children), f;
1734
1691
  };
1735
1692
  i(["click"]);
1736
- var Oa = {
1693
+ var ka = {
1737
1694
  "elm-tabs": "_elm-tabs_4f8z7_1",
1738
1695
  "tab-container": "_tab-container_4f8z7_13",
1739
1696
  tab: "_tab_4f8z7_13",
1740
1697
  active: "_active_4f8z7_41",
1741
1698
  "tab-content": "_tab-content_4f8z7_52",
1742
1699
  "tab-content-inner": "_tab-content-inner_4f8z7_57"
1743
- }, ka = /* @__PURE__ */ y("<div>"), Aa = /* @__PURE__ */ y("<div class=_tab-content-inner_4f8z7_57>"), ja = E(), Ma = () => {
1744
- let e = R(ja);
1700
+ }, Aa = /* @__PURE__ */ y("<div>"), ja = /* @__PURE__ */ y("<div class=_tab-content-inner_4f8z7_57>"), Ma = E(), Na = () => {
1701
+ let e = R(Ma);
1745
1702
  if (e === void 0) throw Error("ElmTabs subcomponents must be used within <ElmTabs>");
1746
1703
  return e;
1747
- }, Na = (e) => {
1748
- let t = P(e, "class", "children", "value", "defaultValue", "onValueChange", "transitionTimingFunction"), [n, i] = Bn({
1704
+ }, Pa = (e) => {
1705
+ let t = P(e, "class", "children", "value", "defaultValue", "onValueChange", "transitionTimingFunction"), [n, i] = Vn({
1749
1706
  value: () => e.value,
1750
1707
  defaultValue: () => e.defaultValue ?? "",
1751
1708
  onChange: (t) => e.onValueChange?.(t)
1752
1709
  });
1753
- return r(ja, {
1710
+ return r(Ma, {
1754
1711
  value: {
1755
1712
  selectedValue: n,
1756
1713
  setSelectedValue: (e) => {
@@ -1759,35 +1716,35 @@ var Oa = {
1759
1716
  transitionTimingFunction: () => e.transitionTimingFunction ?? "linear"
1760
1717
  },
1761
1718
  get children() {
1762
- var n = ka();
1719
+ var n = Aa();
1763
1720
  return _(n, [t, { get class() {
1764
- return z(Oa["elm-tabs"], e.class);
1721
+ return z(ka["elm-tabs"], e.class);
1765
1722
  } }], !0), l(n, () => e.children), n;
1766
1723
  }
1767
1724
  });
1768
- }, Pa = (e) => {
1725
+ }, Fa = (e) => {
1769
1726
  let t = P(e, "class", "children");
1770
- var n = ka();
1727
+ var n = Aa();
1771
1728
  return _(n, [t, { get class() {
1772
- return z(Oa["tab-container"], e.class);
1729
+ return z(ka["tab-container"], e.class);
1773
1730
  } }], !0), l(n, () => e.children), n;
1774
- }, Fa = (e) => {
1775
- let t = Ma(), n = P(e, "class", "children", "value", "onClick"), r = (n) => {
1731
+ }, Ia = (e) => {
1732
+ let t = Na(), n = P(e, "class", "children", "value", "onClick"), r = (n) => {
1776
1733
  t.setSelectedValue(e.value), q(e.onClick, n);
1777
1734
  };
1778
- var i = ka();
1735
+ var i = Aa();
1779
1736
  return _(i, [n, {
1780
1737
  get class() {
1781
- return z(Oa.tab, t.selectedValue() === e.value && Oa.active, e.class);
1738
+ return z(ka.tab, t.selectedValue() === e.value && ka.active, e.class);
1782
1739
  },
1783
1740
  onClick: r
1784
1741
  }], !0), l(i, () => e.children), i;
1785
- }, Ia = (e) => {
1786
- let t = Ma(), n = P(e, "class", "children", "value");
1787
- var i = ka();
1742
+ }, La = (e) => {
1743
+ let t = Na(), n = P(e, "class", "children", "value");
1744
+ var i = Aa();
1788
1745
  return _(i, [n, { get class() {
1789
- return z(Oa["tab-content"], e.class);
1790
- } }], !0), l(i, r(ya, {
1746
+ return z(ka["tab-content"], e.class);
1747
+ } }], !0), l(i, r(ba, {
1791
1748
  direction: "row",
1792
1749
  get isOpen() {
1793
1750
  return t.selectedValue() === e.value;
@@ -1796,11 +1753,11 @@ var Oa = {
1796
1753
  return t.transitionTimingFunction();
1797
1754
  },
1798
1755
  get children() {
1799
- var t = Aa();
1756
+ var t = ja();
1800
1757
  return l(t, () => e.children), t;
1801
1758
  }
1802
1759
  })), i;
1803
- }, La = {
1760
+ }, Ra = {
1804
1761
  "elm-toggle": "_elm-toggle_18cr5_1",
1805
1762
  open: "_open_18cr5_8",
1806
1763
  summary: "_summary_18cr5_13",
@@ -1810,17 +1767,17 @@ var Oa = {
1810
1767
  cross: "_cross_18cr5_62",
1811
1768
  border: "_border_18cr5_76",
1812
1769
  content: "_content_18cr5_84"
1813
- }, Ra = /* @__PURE__ */ y("<div><div class=_summary_18cr5_13><div class=_summary-left_18cr5_28><span></span><div></div></div><hr class=_divider_18cr5_35><span></span></div><div class=_border_18cr5_76></div><div>"), za = (e) => {
1814
- let t = P(e, "class", "children", "summary", "defaultIsOpen", "isOpen", "onOpenChange", "monochrome"), [i, a] = Bn({
1770
+ }, za = /* @__PURE__ */ y("<div><div class=_summary_18cr5_13><div class=_summary-left_18cr5_28><span></span><div></div></div><hr class=_divider_18cr5_35><span></span></div><div class=_border_18cr5_76></div><div>"), Ba = (e) => {
1771
+ let t = P(e, "class", "children", "summary", "defaultIsOpen", "isOpen", "onOpenChange", "monochrome"), [i, a] = Vn({
1815
1772
  value: () => e.isOpen,
1816
1773
  defaultValue: () => e.defaultIsOpen ?? !1,
1817
1774
  onChange: (t) => e.onOpenChange?.(t)
1818
1775
  }), s = (e) => {
1819
1776
  e.preventDefault(), a((e) => !e);
1820
1777
  };
1821
- var c = Ra(), d = c.firstChild, p = d.firstChild, m = p.firstChild, h = m.nextSibling, g = p.nextSibling.nextSibling, v = d.nextSibling.nextSibling;
1778
+ var c = za(), d = c.firstChild, p = d.firstChild, m = p.firstChild, h = m.nextSibling, g = p.nextSibling.nextSibling, v = d.nextSibling.nextSibling;
1822
1779
  return _(c, [t, { get class() {
1823
- return z(La["elm-toggle"], i() && La.open, e.class);
1780
+ return z(Ra["elm-toggle"], i() && Ra.open, e.class);
1824
1781
  } }], !0), d._$$click = s, l(m, r(J, {
1825
1782
  path: ce,
1826
1783
  get color() {
@@ -1839,19 +1796,19 @@ var Oa = {
1839
1796
  return u(() => !!e.monochrome)() ? "var(--elmethis-color-neutral-weak)" : i() ? "var(--elmethis-color-accent-error)" : "var(--elmethis-color-primary)";
1840
1797
  }
1841
1798
  })), l(v, () => e.children), o(() => ({
1842
- e: f(z(La.chevron, i() && La.open)),
1843
- t: f(z(La.cross, i() && La.open)),
1844
- a: f(z(La.content, i() && La.open))
1799
+ e: f(z(Ra.chevron, i() && Ra.open)),
1800
+ t: f(z(Ra.cross, i() && Ra.open)),
1801
+ a: f(z(Ra.content, i() && Ra.open))
1845
1802
  }), ({ e, t, a: r }, i) => {
1846
1803
  n(m, e, i?.e), n(g, t, i?.t), n(v, r, i?.a);
1847
1804
  }), c;
1848
1805
  };
1849
1806
  i(["click"]);
1850
- var Ba = {
1807
+ var Va = {
1851
1808
  "elm-tooltip": "_elm-tooltip_1b13f_1",
1852
1809
  tooltip: "_tooltip_1b13f_5",
1853
1810
  show: "_show_1b13f_18"
1854
- }, Va = /* @__PURE__ */ y("<span><div>"), Ha = (e) => {
1811
+ }, Ha = /* @__PURE__ */ y("<span><div>"), Ua = (e) => {
1855
1812
  let t = P(e, "class", "ref", "children", "original", "tooltip", "onMouseOver", "onMouseLeave"), [r, i] = A(!1), [a, s] = A({}), c, u, d = () => {
1856
1813
  u !== void 0 && (clearTimeout(u), u = void 0);
1857
1814
  };
@@ -1873,22 +1830,22 @@ var Ba = {
1873
1830
  u = void 0, i(!1);
1874
1831
  }, 250)), q(e.onMouseLeave, t);
1875
1832
  };
1876
- var g = Va(), y = g.firstChild;
1833
+ var g = Ha(), y = g.firstChild;
1877
1834
  return _(g, [t, {
1878
1835
  get class() {
1879
- return z(Ba["elm-tooltip"], e.class);
1836
+ return z(Va["elm-tooltip"], e.class);
1880
1837
  },
1881
1838
  onMouseOver: m,
1882
1839
  onMouseLeave: h
1883
1840
  }], !0), p(() => [(e) => {
1884
1841
  c = e;
1885
1842
  }, e.ref], g), l(g, () => e.original, y), l(y, () => e.tooltip), o(() => ({
1886
- e: f(z(Ba.tooltip, r() && Ba.show)),
1843
+ e: f(z(Va.tooltip, r() && Va.show)),
1887
1844
  t: f(a())
1888
1845
  }), ({ e, t }, r) => {
1889
1846
  n(y, e, r?.e), v(y, t, r?.t);
1890
1847
  }), g;
1891
- }, Ua = {
1848
+ }, Wa = {
1892
1849
  "elm-button-dropdown": "_elm-button-dropdown_1qeel_1",
1893
1850
  block: "_block_1qeel_7",
1894
1851
  main: "_main_1qeel_11",
@@ -1898,12 +1855,12 @@ var Ba = {
1898
1855
  item: "_item_1qeel_48",
1899
1856
  selected: "_selected_1qeel_65",
1900
1857
  "item-disabled": "_item-disabled_1qeel_74"
1901
- }, Wa = /* @__PURE__ */ y("<div><!><!><!>"), Ga = /* @__PURE__ */ y("<div><!><!>"), Ka = (e) => {
1902
- let t = P(e, "ref", "class", "style", "children", "label", "icon", "items", "selectedOptionId", "defaultSelectedOptionId", "onSelectedOptionIdChange", "primary", "color", "block", "disabled", "disableMainButton", "disableDropdown", "isLoading", "autoClose", "dropdownIcon", "onClick", "onItemClick", "onOpenChange"), [i, a] = Bn({
1858
+ }, Ga = /* @__PURE__ */ y("<div><!><!><!>"), Ka = /* @__PURE__ */ y("<div><!><!>"), qa = (e) => {
1859
+ let t = P(e, "ref", "class", "style", "children", "label", "icon", "items", "selectedOptionId", "defaultSelectedOptionId", "onSelectedOptionIdChange", "primary", "color", "block", "disabled", "disableMainButton", "disableDropdown", "isLoading", "autoClose", "dropdownIcon", "onClick", "onItemClick", "onOpenChange"), [i, a] = Vn({
1903
1860
  value: () => e.selectedOptionId,
1904
1861
  defaultValue: () => e.defaultSelectedOptionId ?? null,
1905
1862
  onChange: (t) => e.onSelectedOptionIdChange?.(t)
1906
- }), s = k(() => e.items.find((e) => e.id === i()) ?? null), [c, d] = Bn({
1863
+ }), s = k(() => e.items.find((e) => e.id === i()) ?? null), [c, d] = Vn({
1907
1864
  defaultValue: () => !1,
1908
1865
  onChange: (t) => e.onOpenChange?.(t)
1909
1866
  }), h;
@@ -1916,19 +1873,19 @@ var Ba = {
1916
1873
  let g = () => e.disabled || e.disableDropdown || e.isLoading, v = () => e.disabled || e.disableMainButton, y = (t) => {
1917
1874
  t.disabled || (a(t.id), t.onClick?.(), e.onItemClick?.(t), (e.autoClose ?? !0) && d(!1));
1918
1875
  };
1919
- var x = Wa(), S = x.firstChild, w = S.nextSibling, T = w.nextSibling;
1876
+ var x = Ga(), S = x.firstChild, w = S.nextSibling, T = w.nextSibling;
1920
1877
  return _(x, [t, {
1921
1878
  get class() {
1922
- return z(Ua["elm-button-dropdown"], e.block && Ua.block, e.class);
1879
+ return z(Wa["elm-button-dropdown"], e.block && Wa.block, e.class);
1923
1880
  },
1924
1881
  get style() {
1925
1882
  return e.style;
1926
1883
  }
1927
1884
  }], !0), p(() => [(e) => {
1928
1885
  h = e;
1929
- }, e.ref], x), l(x, r(Ln, {
1886
+ }, e.ref], x), l(x, r(Rn, {
1930
1887
  get class() {
1931
- return z(Ua.main, Ua.segment);
1888
+ return z(Wa.main, Wa.segment);
1932
1889
  },
1933
1890
  type: "button",
1934
1891
  get primary() {
@@ -1956,9 +1913,9 @@ var Ba = {
1956
1913
  children: (e) => r(e.Content, {})
1957
1914
  });
1958
1915
  }
1959
- }), S), l(x, r(Ln, {
1916
+ }), S), l(x, r(Rn, {
1960
1917
  get class() {
1961
- return z(Ua.caret, Ua.segment);
1918
+ return z(Wa.caret, Wa.segment);
1962
1919
  },
1963
1920
  type: "button",
1964
1921
  get primary() {
@@ -1985,7 +1942,7 @@ var Ba = {
1985
1942
  size: "1.25rem"
1986
1943
  });
1987
1944
  }
1988
- }), w), l(x, r(ya, {
1945
+ }), w), l(x, r(ba, {
1989
1946
  get isOpen() {
1990
1947
  return c();
1991
1948
  },
@@ -1996,7 +1953,7 @@ var Ba = {
1996
1953
  return e.items;
1997
1954
  },
1998
1955
  children: (e) => (() => {
1999
- var t = Ga(), a = t.firstChild, s = a.nextSibling;
1956
+ var t = Ka(), a = t.firstChild, s = a.nextSibling;
2000
1957
  return t._$$click = (t) => {
2001
1958
  t.stopPropagation(), y(e);
2002
1959
  }, l(t, r(J, {
@@ -2004,7 +1961,7 @@ var Ba = {
2004
1961
  color: "var(--elmethis-color-primary-weak)",
2005
1962
  size: "0.75em"
2006
1963
  }), a), l(t, r(e.Content, {}), s), o(() => ({
2007
- e: f(z(Ua.item, G.text, e.id === i() && Ua.selected, e.disabled && Ua["item-disabled"])),
1964
+ e: f(z(Wa.item, G.text, e.id === i() && Wa.selected, e.disabled && Wa["item-disabled"])),
2008
1965
  t: e.id === i() ? "true" : "false"
2009
1966
  }), ({ e, t: r }, i) => {
2010
1967
  n(t, e, i?.e), r !== i?.t && m(t, "aria-selected", r);
@@ -2015,7 +1972,7 @@ var Ba = {
2015
1972
  }), T), x;
2016
1973
  };
2017
1974
  i(["click"]);
2018
- var qa = {
1975
+ var Ja = {
2019
1976
  "elm-select": "_elm-select_15wp8_1",
2020
1977
  disabled: "_disabled_15wp8_23",
2021
1978
  active: "_active_15wp8_27",
@@ -2028,8 +1985,8 @@ var qa = {
2028
1985
  fallback: "_fallback_15wp8_72",
2029
1986
  pulldown: "_pulldown_15wp8_80",
2030
1987
  option: "_option_15wp8_65"
2031
- }, Ja = /* @__PURE__ */ y("<div><span><!><!></span><div class=_body_15wp8_55><div></div><!><!>"), Ya = /* @__PURE__ */ y("<div class=_fallback_15wp8_72><span>"), Xa = /* @__PURE__ */ y("<div class=_option-content_15wp8_65>"), Za = /* @__PURE__ */ y("<div><!><!>"), Qa = (e) => {
2032
- let t = P(e, "ref", "class", "style", "onClick", "children", "label", "placeholder", "disabled", "isLoading", "options", "selectedOptionId", "defaultSelectedOptionId", "onSelectedOptionIdChange", "icon", "frameless"), [i, a] = Bn({
1988
+ }, Ya = /* @__PURE__ */ y("<div><span><!><!></span><div class=_body_15wp8_55><div></div><!><!>"), Xa = /* @__PURE__ */ y("<div class=_fallback_15wp8_72><span>"), Za = /* @__PURE__ */ y("<div class=_option-content_15wp8_65>"), Qa = /* @__PURE__ */ y("<div><!><!>"), $a = (e) => {
1989
+ let t = P(e, "ref", "class", "style", "onClick", "children", "label", "placeholder", "disabled", "isLoading", "options", "selectedOptionId", "defaultSelectedOptionId", "onSelectedOptionIdChange", "icon", "frameless"), [i, a] = Vn({
2033
1990
  value: () => e.selectedOptionId,
2034
1991
  defaultValue: () => e.defaultSelectedOptionId ?? null,
2035
1992
  onChange: (t) => e.onSelectedOptionIdChange?.(t)
@@ -2043,10 +2000,10 @@ var qa = {
2043
2000
  let m = (t) => {
2044
2001
  q(e.onClick, t), !t.defaultPrevented && !e.disabled && !e.isLoading && u((e) => !e);
2045
2002
  };
2046
- var h = Ja(), g = h.firstChild, v = g.firstChild, y = v.nextSibling, x = g.nextSibling, S = x.firstChild, w = S.nextSibling, T = w.nextSibling;
2003
+ var h = Ya(), g = h.firstChild, v = g.firstChild, y = v.nextSibling, x = g.nextSibling, S = x.firstChild, w = S.nextSibling, T = w.nextSibling;
2047
2004
  return _(h, [t, {
2048
2005
  get class() {
2049
- return z(qa["elm-select"], e.frameless && qa.frameless, c() && qa.active, (e.disabled || e.isLoading) && qa.disabled, e.class);
2006
+ return z(Ja["elm-select"], e.frameless && Ja.frameless, c() && Ja.active, (e.disabled || e.isLoading) && Ja.disabled, e.class);
2050
2007
  },
2051
2008
  get style() {
2052
2009
  return e.style;
@@ -2063,17 +2020,17 @@ var qa = {
2063
2020
  },
2064
2021
  keyed: !0,
2065
2022
  get fallback() {
2066
- var t = Ya(), n = t.firstChild;
2023
+ var t = Xa(), n = t.firstChild;
2067
2024
  return l(n, () => e.placeholder ?? "Select an option"), t;
2068
2025
  },
2069
2026
  children: (e) => (() => {
2070
- var t = Xa();
2027
+ var t = Za();
2071
2028
  return l(t, r(e.Content, {})), t;
2072
2029
  })()
2073
2030
  })), l(x, r(J, {
2074
2031
  path: Oe,
2075
2032
  size: "1.5rem"
2076
- }), w), l(x, r(ya, {
2033
+ }), w), l(x, r(ba, {
2077
2034
  get isOpen() {
2078
2035
  return c();
2079
2036
  },
@@ -2084,22 +2041,22 @@ var qa = {
2084
2041
  return e.options;
2085
2042
  },
2086
2043
  children: (e) => (() => {
2087
- var t = Za(), i = t.firstChild, s = i.nextSibling;
2044
+ var t = Qa(), i = t.firstChild, s = i.nextSibling;
2088
2045
  return t._$$click = (t) => {
2089
2046
  t.stopPropagation(), a(e.id), u(!1);
2090
2047
  }, l(t, r(J, {
2091
2048
  path: ce,
2092
2049
  color: "var(--elmethis-color-primary-weak)",
2093
2050
  size: "0.75em"
2094
- }), i), l(t, r(e.Content, {}), s), o(() => f(z(qa.option, G.text)), (e, r) => {
2051
+ }), i), l(t, r(e.Content, {}), s), o(() => f(z(Ja.option, G.text)), (e, r) => {
2095
2052
  n(t, e, r);
2096
2053
  }), t;
2097
2054
  })()
2098
2055
  });
2099
2056
  }
2100
2057
  }), T), o(() => ({
2101
- e: f(z(qa.label, c() && qa["label-active"])),
2102
- t: f(z(qa["selected-option"], G.text))
2058
+ e: f(z(Ja.label, c() && Ja["label-active"])),
2059
+ t: f(z(Ja["selected-option"], G.text))
2103
2060
  }), ({ e, t }, r) => {
2104
2061
  n(g, e, r?.e), n(S, t, r?.t);
2105
2062
  }), h;
@@ -2107,10 +2064,10 @@ var qa = {
2107
2064
  i(["click"]);
2108
2065
  //#endregion
2109
2066
  //#region src/primitives/create-modal.tsx
2110
- var $a = (e = {}) => {
2067
+ var eo = (e = {}) => {
2111
2068
  let [t, n] = A(!1), i = () => n(!0), a = () => n(!1);
2112
2069
  return {
2113
- Modal: (n) => r(Da, {
2070
+ Modal: (n) => r(Oa, {
2114
2071
  get isOpen() {
2115
2072
  return t();
2116
2073
  },
@@ -2127,17 +2084,17 @@ var $a = (e = {}) => {
2127
2084
  hide: a,
2128
2085
  toggle: () => n((e) => !e)
2129
2086
  };
2130
- }, eo = {
2087
+ }, to = {
2131
2088
  "elm-block-image": "_elm-block-image_pjk5z_1",
2132
2089
  "image-container": "_image-container_pjk5z_11",
2133
2090
  image: "_image_pjk5z_11",
2134
2091
  "caption-box": "_caption-box_pjk5z_33",
2135
2092
  "caption-icon": "_caption-icon_pjk5z_41"
2136
- }, to = /* @__PURE__ */ y("<img class=_image_pjk5z_11>", 1), no = /* @__PURE__ */ y("<figure><div class=_image-container_pjk5z_11></div><!><!>"), ro = /* @__PURE__ */ y("<figcaption class=_caption-box_pjk5z_33><span class=_caption-icon_pjk5z_41>"), io = (t) => {
2137
- let n = P(t, "class", "children", "src", "srcSet", "sizes", "alt", "enableModal", "caption", "width", "height"), { Modal: i, isOpen: a, show: s, hide: c } = $a(), d = () => t.enableModal ?? !0, f = () => {
2093
+ }, no = /* @__PURE__ */ y("<img class=_image_pjk5z_11>", 1), ro = /* @__PURE__ */ y("<figure><div class=_image-container_pjk5z_11></div><!><!>"), io = /* @__PURE__ */ y("<figcaption class=_caption-box_pjk5z_33><span class=_caption-icon_pjk5z_41>"), ao = (t) => {
2094
+ let n = P(t, "class", "children", "src", "srcSet", "sizes", "alt", "enableModal", "caption", "width", "height"), { Modal: i, isOpen: a, show: s, hide: c } = eo(), d = () => t.enableModal ?? !0, f = () => {
2138
2095
  d() && s();
2139
2096
  }, p = (n) => (() => {
2140
- var r = to();
2097
+ var r = no();
2141
2098
  return e(r, "click", n ? c : void 0, !0), m(r, "loading", n ? "lazy" : void 0), m(r, "fetchpriority", n ? "low" : "auto"), o(() => ({
2142
2099
  e: t.src,
2143
2100
  t: t.alt ?? t.caption ?? "Image",
@@ -2151,15 +2108,15 @@ var $a = (e = {}) => {
2151
2108
  e !== l?.e && m(r, "src", e), t !== l?.t && m(r, "alt", t), n !== l?.a && m(r, "srcset", n), i !== l?.o && m(r, "sizes", i), a !== l?.i && m(r, "width", a), o !== l?.n && m(r, "height", o), s !== l?.s && g(r, "--elmethis-scoped-cursor", s), c !== l?.h && g(r, "--elmethis-scoped-aspect-ratio", c);
2152
2109
  }), r;
2153
2110
  })();
2154
- var h = no(), v = h.firstChild, y = v.nextSibling, b = y.nextSibling;
2111
+ var h = ro(), v = h.firstChild, y = v.nextSibling, b = y.nextSibling;
2155
2112
  return _(h, [n, { get class() {
2156
- return z(eo["elm-block-image"], t.class);
2113
+ return z(to["elm-block-image"], t.class);
2157
2114
  } }], !0), v._$$click = f, l(v, () => p(!1)), l(h, r(C, {
2158
2115
  get when() {
2159
2116
  return t.caption;
2160
2117
  },
2161
2118
  children: (e) => (() => {
2162
- var t = ro(), n = t.firstChild;
2119
+ var t = io(), n = t.firstChild;
2163
2120
  return l(n, r(J, {
2164
2121
  path: ke,
2165
2122
  size: "1.25rem"
@@ -2175,7 +2132,7 @@ var $a = (e = {}) => {
2175
2132
  } }), b), h;
2176
2133
  };
2177
2134
  i(["click"]);
2178
- var ao = {
2135
+ var oo = {
2179
2136
  "elm-table-frame": "_elm-table-frame_mbsj5_2",
2180
2137
  "elm-table-scroll": "_elm-table-scroll_mbsj5_45",
2181
2138
  "elm-table": "_elm-table_mbsj5_2",
@@ -2183,7 +2140,7 @@ var ao = {
2183
2140
  "caption-inner": "_caption-inner_mbsj5_73",
2184
2141
  spacing: "_spacing_mbsj5_80",
2185
2142
  "sticky-row-header": "_sticky-row-header_mbsj5_86"
2186
- }, oo = E(() => !1), so = E(() => "body"), co = /* @__PURE__ */ y("<div class=_elm-table-frame_mbsj5_2><div class=_elm-table-scroll_mbsj5_45><table><!><!>"), lo = /* @__PURE__ */ y("<caption><span class=_caption_mbsj5_63><span class=_spacing_mbsj5_80></span><span class=_caption-inner_mbsj5_73></span><span class=_spacing_mbsj5_80>"), uo = (e) => {
2143
+ }, so = E(() => !1), co = E(() => "body"), lo = /* @__PURE__ */ y("<div class=_elm-table-frame_mbsj5_2><div class=_elm-table-scroll_mbsj5_45><table><!><!>"), uo = /* @__PURE__ */ y("<caption><span class=_caption_mbsj5_63><span class=_spacing_mbsj5_80></span><span class=_caption-inner_mbsj5_73></span><span class=_spacing_mbsj5_80>"), fo = (e) => {
2187
2144
  let t = P(e, "class", "caption", "hasRowHeader", "children"), [n, i] = A(!1), [a, s] = A(!0), [c, u] = A(!0), d = k(() => e.hasRowHeader ?? !1), f;
2188
2145
  return I(() => {
2189
2146
  let e = f;
@@ -2197,20 +2154,20 @@ var ao = {
2197
2154
  return n?.observe(e), () => {
2198
2155
  e.removeEventListener("scroll", t), n?.disconnect();
2199
2156
  };
2200
- }), r(oo, {
2157
+ }), r(so, {
2201
2158
  value: d,
2202
2159
  get children() {
2203
- var i = co(), s = i.firstChild, u = s.firstChild, d = u.firstChild, h = d.nextSibling;
2160
+ var i = lo(), s = i.firstChild, u = s.firstChild, d = u.firstChild, h = d.nextSibling;
2204
2161
  return p(() => (e) => {
2205
2162
  f = e;
2206
2163
  }, s), _(u, [t, { get class() {
2207
- return z(ao["elm-table"], G.text, e.hasRowHeader && ao["sticky-row-header"], e.class);
2164
+ return z(oo["elm-table"], G.text, e.hasRowHeader && oo["sticky-row-header"], e.class);
2208
2165
  } }], !0), l(u, r(C, {
2209
2166
  get when() {
2210
2167
  return e.caption;
2211
2168
  },
2212
2169
  children: (e) => (() => {
2213
- var t = lo(), n = t.firstChild.firstChild.nextSibling;
2170
+ var t = uo(), n = t.firstChild.firstChild.nextSibling;
2214
2171
  return l(n, r(K, { get children() {
2215
2172
  return e();
2216
2173
  } })), t;
@@ -2226,24 +2183,24 @@ var ao = {
2226
2183
  }), i;
2227
2184
  }
2228
2185
  });
2229
- }, fo = /* @__PURE__ */ y("<tbody>"), po = (e) => {
2186
+ }, po = /* @__PURE__ */ y("<tbody>"), mo = (e) => {
2230
2187
  let t = P(e, "children");
2231
- return r(so, {
2188
+ return r(co, {
2232
2189
  value: () => "body",
2233
2190
  get children() {
2234
- var n = fo();
2191
+ var n = po();
2235
2192
  return _(n, t, !0), l(n, () => e.children), n;
2236
2193
  }
2237
2194
  });
2238
- }, mo = {
2195
+ }, ho = {
2239
2196
  "elm-table-cell": "_elm-table-cell_1a21f_1",
2240
2197
  td: "_td_1a21f_20",
2241
2198
  th: "_th_1a21f_25"
2242
- }, ho = (e) => {
2243
- let t = P(e, "class", "children", "isHeader", "columnIndex", "text", "scope"), n = R(so), i = R(oo), o = k(() => n() === "head"), s = k(() => !o() && !e.isHeader && e.columnIndex === 0 && i()), c = k(() => o() || !!e.isHeader || s()), l = k(() => c() ? e.scope ?? (o() ? "col" : s() ? "row" : void 0) : void 0), f = a(() => c() ? "th" : "td");
2199
+ }, go = (e) => {
2200
+ let t = P(e, "class", "children", "isHeader", "columnIndex", "text", "scope"), n = R(co), i = R(so), o = k(() => n() === "head"), s = k(() => !o() && !e.isHeader && e.columnIndex === 0 && i()), c = k(() => o() || !!e.isHeader || s()), l = k(() => c() ? e.scope ?? (o() ? "col" : s() ? "row" : void 0) : void 0), f = a(() => c() ? "th" : "td");
2244
2201
  return r(f, d(t, {
2245
2202
  get class() {
2246
- return z(mo["elm-table-cell"], c() ? mo.th : mo.td, e.class);
2203
+ return z(ho["elm-table-cell"], c() ? ho.th : ho.td, e.class);
2247
2204
  },
2248
2205
  get scope() {
2249
2206
  return l();
@@ -2252,24 +2209,24 @@ var ao = {
2252
2209
  return u(() => e.text != null)() ? e.text : e.children;
2253
2210
  }
2254
2211
  }));
2255
- }, go = { "elm-table-header": "_elm-table-header_jhft7_1" }, _o = /* @__PURE__ */ y("<thead>"), vo = (e) => {
2212
+ }, _o = { "elm-table-header": "_elm-table-header_jhft7_1" }, vo = /* @__PURE__ */ y("<thead>"), yo = (e) => {
2256
2213
  let t = P(e, "class", "children");
2257
- return r(so, {
2214
+ return r(co, {
2258
2215
  value: () => "head",
2259
2216
  get children() {
2260
- var n = _o();
2217
+ var n = vo();
2261
2218
  return _(n, [t, { get class() {
2262
- return z(go["elm-table-header"], e.class);
2219
+ return z(_o["elm-table-header"], e.class);
2263
2220
  } }], !0), l(n, () => e.children), n;
2264
2221
  }
2265
2222
  });
2266
- }, yo = { "elm-table-row": "_elm-table-row_mkm0q_1" }, bo = /* @__PURE__ */ y("<tr>"), xo = (e) => {
2223
+ }, bo = { "elm-table-row": "_elm-table-row_mkm0q_1" }, xo = /* @__PURE__ */ y("<tr>"), So = (e) => {
2267
2224
  let t = P(e, "class", "children");
2268
- var n = bo();
2225
+ var n = xo();
2269
2226
  return _(n, [t, { get class() {
2270
- return z(yo["elm-table-row"], e.class);
2227
+ return z(bo["elm-table-row"], e.class);
2271
2228
  } }], !0), l(n, () => e.children), n;
2272
- }, So = { "elm-shiki-highlighter": "_elm-shiki-highlighter_shhxr_1" }, Co = /* @__PURE__ */ y("<pre>"), wo, To = () => wo ?? (wo = Promise.all([
2229
+ }, Co = { "elm-shiki-highlighter": "_elm-shiki-highlighter_shhxr_1" }, wo = /* @__PURE__ */ y("<pre>"), To, Eo = () => To ?? (To = Promise.all([
2273
2230
  import("shiki"),
2274
2231
  import("@46ki75/ikuma-theme/dark"),
2275
2232
  import("@46ki75/ikuma-theme/light")
@@ -2278,15 +2235,15 @@ var ao = {
2278
2235
  dark: t.default,
2279
2236
  light: n.default
2280
2237
  })).catch((e) => {
2281
- throw wo = void 0, e;
2282
- })), Eo = (e, t) => {
2238
+ throw To = void 0, e;
2239
+ })), Do = (e, t) => {
2283
2240
  let n = e.trim().toLowerCase();
2284
2241
  return n in t ? n : "text";
2285
- }, Do = (e) => e.replaceAll("&", "&amp;").replaceAll("<", "&lt;"), Oo = async (e, t, n) => {
2242
+ }, Oo = (e) => e.replaceAll("&", "&amp;").replaceAll("<", "&lt;"), ko = async (e, t, n) => {
2286
2243
  try {
2287
- let { shiki: r, dark: i, light: a } = await To();
2288
- if (n()) return Do(e);
2289
- let o = Eo(t, r.bundledLanguages);
2244
+ let { shiki: r, dark: i, light: a } = await Eo();
2245
+ if (n()) return Oo(e);
2246
+ let o = Do(t, r.bundledLanguages);
2290
2247
  return await r.codeToHtml(e, {
2291
2248
  lang: o,
2292
2249
  themes: {
@@ -2300,32 +2257,32 @@ var ao = {
2300
2257
  }
2301
2258
  });
2302
2259
  } catch {
2303
- return Do(e);
2260
+ return Oo(e);
2304
2261
  }
2305
- }, ko = (e) => {
2262
+ }, Ao = (e) => {
2306
2263
  let t = P(e, "class", "code", "language"), n = 0, i = D(() => {
2307
2264
  let t = e.code, r = ++n;
2308
- return t ? Oo(t, e.language ?? "txt", () => r !== n) : "";
2265
+ return t ? ko(t, e.language ?? "txt", () => r !== n) : "";
2309
2266
  });
2310
2267
  return F(() => {
2311
2268
  n++;
2312
2269
  }), r(x, {
2313
2270
  get fallback() {
2314
- var n = Co();
2271
+ var n = wo();
2315
2272
  return _(n, [t, {
2316
2273
  get class() {
2317
- return z(So["elm-shiki-highlighter"], e.class);
2274
+ return z(Co["elm-shiki-highlighter"], e.class);
2318
2275
  },
2319
2276
  get innerHTML() {
2320
- return Do(e.code);
2277
+ return Oo(e.code);
2321
2278
  }
2322
2279
  }], !1), n;
2323
2280
  },
2324
2281
  get children() {
2325
- var n = Co();
2282
+ var n = wo();
2326
2283
  return _(n, [t, {
2327
2284
  get class() {
2328
- return z(So["elm-shiki-highlighter"], e.class);
2285
+ return z(Co["elm-shiki-highlighter"], e.class);
2329
2286
  },
2330
2287
  get innerHTML() {
2331
2288
  return i();
@@ -2333,25 +2290,25 @@ var ao = {
2333
2290
  }], !1), n;
2334
2291
  }
2335
2292
  });
2336
- }, Ao = {
2293
+ }, jo = {
2337
2294
  "elm-code-block": "_elm-code-block_vp5qr_1",
2338
2295
  "language-icon": "_language-icon_vp5qr_16",
2339
2296
  caption: "_caption_vp5qr_21",
2340
2297
  "copy-icon": "_copy-icon_vp5qr_28",
2341
2298
  divider: "_divider_vp5qr_32",
2342
2299
  code: "_code_vp5qr_39"
2343
- }, jo = /* @__PURE__ */ y("<figure><span class=_language-icon_vp5qr_16></span><span class=_caption_vp5qr_21></span><div class=_copy-icon_vp5qr_28></div><hr class=_divider_vp5qr_32><div class=_code_vp5qr_39>"), Mo = (e) => {
2300
+ }, Mo = /* @__PURE__ */ y("<figure><span class=_language-icon_vp5qr_16></span><span class=_caption_vp5qr_21></span><div class=_copy-icon_vp5qr_28></div><hr class=_divider_vp5qr_32><div class=_code_vp5qr_39>"), No = (e) => {
2344
2301
  let t = P(e, "class", "children", "code", "language", "caption");
2345
- var n = jo(), i = n.firstChild, a = i.nextSibling, o = a.nextSibling, s = o.nextSibling.nextSibling;
2302
+ var n = Mo(), i = n.firstChild, a = i.nextSibling, o = a.nextSibling, s = o.nextSibling.nextSibling;
2346
2303
  return _(n, [t, { get class() {
2347
- return z(Ao["elm-code-block"], e.class);
2348
- } }], !0), l(i, r(fr, { get language() {
2304
+ return z(jo["elm-code-block"], e.class);
2305
+ } }], !0), l(i, r(pr, { get language() {
2349
2306
  return e.language ?? "txt";
2350
2307
  } })), l(a, r(K, { get children() {
2351
2308
  return [u(() => e.caption || (e.language ?? "txt")), u(() => e.children)];
2352
- } })), l(o, r(or, { get content() {
2309
+ } })), l(o, r(sr, { get content() {
2353
2310
  return e.code;
2354
- } })), l(s, r(ko, {
2311
+ } })), l(s, r(Ao, {
2355
2312
  get code() {
2356
2313
  return e.code;
2357
2314
  },
@@ -2359,19 +2316,19 @@ var ao = {
2359
2316
  return e.language ?? "txt";
2360
2317
  }
2361
2318
  })), n;
2362
- }, No = { "elm-markdown": "_elm-markdown_12cml_1" }, Po = /* @__PURE__ */ y("<br>"), Fo = /* @__PURE__ */ y("<li>"), Io = /* @__PURE__ */ y("<div><!><!>"), Lo = (e) => r(b, {
2319
+ }, Po = { "elm-markdown": "_elm-markdown_12cml_1" }, Fo = /* @__PURE__ */ y("<br>"), Io = /* @__PURE__ */ y("<li>"), Lo = /* @__PURE__ */ y("<div><!><!>"), Ro = (e) => r(b, {
2363
2320
  get each() {
2364
2321
  return e.tokens;
2365
2322
  },
2366
- children: (e) => Bo(e)
2367
- }), Ro = (e) => "tokens" in e && Array.isArray(e.tokens) ? e.tokens : [], zo = (e) => "text" in e && typeof e.text == "string" ? e.text : "", Bo = (e) => {
2368
- let t = e, n = Ro(t), i = () => n.length > 0 ? r(Lo, { tokens: n }) : zo(t);
2323
+ children: (e) => Vo(e)
2324
+ }), zo = (e) => "tokens" in e && Array.isArray(e.tokens) ? e.tokens : [], Bo = (e) => "text" in e && typeof e.text == "string" ? e.text : "", Vo = (e) => {
2325
+ let t = e, n = zo(t), i = () => n.length > 0 ? r(Ro, { tokens: n }) : Bo(t);
2369
2326
  switch (t.type) {
2370
- case "blockquote": return n.length > 0 ? r(Ei, { get children() {
2371
- return r(Lo, { tokens: n });
2327
+ case "blockquote": return n.length > 0 ? r(Di, { get children() {
2328
+ return r(Ro, { tokens: n });
2372
2329
  } }) : void 0;
2373
- case "br": return Po();
2374
- case "code": return r(Mo, {
2330
+ case "br": return Fo();
2331
+ case "code": return r(No, {
2375
2332
  get code() {
2376
2333
  return t.text.trim();
2377
2334
  },
@@ -2398,7 +2355,7 @@ var ao = {
2398
2355
  }
2399
2356
  });
2400
2357
  case "escape": return t.text;
2401
- case "heading": return r(Hi, {
2358
+ case "heading": return r(Ui, {
2402
2359
  get level() {
2403
2360
  return t.depth;
2404
2361
  },
@@ -2406,9 +2363,9 @@ var ao = {
2406
2363
  return i();
2407
2364
  }
2408
2365
  });
2409
- case "hr": return r(Ni, {});
2366
+ case "hr": return r(Pi, {});
2410
2367
  case "html": return;
2411
- case "image": return r(io, {
2368
+ case "image": return r(ao, {
2412
2369
  enableModal: !0,
2413
2370
  get src() {
2414
2371
  return t.href;
@@ -2425,7 +2382,7 @@ var ao = {
2425
2382
  return i();
2426
2383
  }
2427
2384
  });
2428
- case "list": return r(Wi, {
2385
+ case "list": return r(Gi, {
2429
2386
  get listStyle() {
2430
2387
  return t.ordered ? "ordered" : "unordered";
2431
2388
  },
@@ -2435,8 +2392,8 @@ var ao = {
2435
2392
  return t.items;
2436
2393
  },
2437
2394
  children: (e) => (() => {
2438
- var t = Fo();
2439
- return l(t, r(Lo, { get tokens() {
2395
+ var t = Io();
2396
+ return l(t, r(Ro, { get tokens() {
2440
2397
  return e.tokens;
2441
2398
  } })), t;
2442
2399
  })()
@@ -2444,12 +2401,12 @@ var ao = {
2444
2401
  }
2445
2402
  });
2446
2403
  case "list_item":
2447
- var a = Fo();
2404
+ var a = Io();
2448
2405
  return l(a, (() => {
2449
2406
  var e = u(() => n.length > 0);
2450
- return () => e() ? r(Lo, { tokens: n }) : t.text;
2407
+ return () => e() ? r(Ro, { tokens: n }) : t.text;
2451
2408
  })()), a;
2452
- case "paragraph": return r(qi, { get children() {
2409
+ case "paragraph": return r(Ji, { get children() {
2453
2410
  return i();
2454
2411
  } });
2455
2412
  case "strong": return r(K, {
@@ -2458,30 +2415,30 @@ var ao = {
2458
2415
  return i();
2459
2416
  }
2460
2417
  });
2461
- case "table": return r(uo, { get children() {
2462
- return [r(vo, { get children() {
2463
- return r(xo, { get children() {
2418
+ case "table": return r(fo, { get children() {
2419
+ return [r(yo, { get children() {
2420
+ return r(So, { get children() {
2464
2421
  return r(b, {
2465
2422
  get each() {
2466
2423
  return t.header;
2467
2424
  },
2468
- children: (e) => r(ho, { get children() {
2469
- return r(Lo, { get tokens() {
2425
+ children: (e) => r(go, { get children() {
2426
+ return r(Ro, { get tokens() {
2470
2427
  return e.tokens;
2471
2428
  } });
2472
2429
  } })
2473
2430
  });
2474
2431
  } });
2475
- } }), r(po, { get children() {
2432
+ } }), r(mo, { get children() {
2476
2433
  return r(b, {
2477
2434
  get each() {
2478
2435
  return t.rows;
2479
2436
  },
2480
- children: (e) => r(xo, { get children() {
2437
+ children: (e) => r(So, { get children() {
2481
2438
  return r(b, {
2482
2439
  each: e,
2483
- children: (e) => r(ho, { get children() {
2484
- return r(Lo, { get tokens() {
2440
+ children: (e) => r(go, { get children() {
2441
+ return r(Ro, { get tokens() {
2485
2442
  return e.tokens;
2486
2443
  } });
2487
2444
  } })
@@ -2493,9 +2450,9 @@ var ao = {
2493
2450
  case "text": return i();
2494
2451
  default: return;
2495
2452
  }
2496
- }, Vo = (e) => {
2453
+ }, Ho = (e) => {
2497
2454
  let t = P(e, "class", "markdown", "isStreaming"), n = [], i = k(() => {
2498
- let t = e.markdown, r = At.lexer(t, { gfm: !0 });
2455
+ let t = e.markdown, r = jt.lexer(t, { gfm: !0 });
2499
2456
  if (!(e.isStreaming && r.length > 0)) return n = r, {
2500
2457
  stable: r,
2501
2458
  tail: []
@@ -2509,40 +2466,40 @@ var ao = {
2509
2466
  tail: r.slice(-1)
2510
2467
  };
2511
2468
  });
2512
- var a = Io(), o = a.firstChild, s = o.nextSibling;
2469
+ var a = Lo(), o = a.firstChild, s = o.nextSibling;
2513
2470
  return _(a, [t, { get class() {
2514
- return z(No["elm-markdown"], e.class);
2471
+ return z(Po["elm-markdown"], e.class);
2515
2472
  } }], !0), l(a, r(b, {
2516
2473
  get each() {
2517
2474
  return i().stable;
2518
2475
  },
2519
- children: (e) => Bo(e)
2476
+ children: (e) => Vo(e)
2520
2477
  }), o), l(a, r(b, {
2521
2478
  get each() {
2522
2479
  return i().tail;
2523
2480
  },
2524
- children: (e) => Bo(e)
2481
+ children: (e) => Vo(e)
2525
2482
  }), s), a;
2526
- }, Ho = { "elm-html": "_elm-html_339tp_1" }, Uo = /* @__PURE__ */ y("<iframe>"), Wo = "elmethis:elm-html:auto-height", Go = /* @__PURE__ */ new Set([
2483
+ }, Uo = { "elm-html": "_elm-html_339tp_1" }, Wo = /* @__PURE__ */ y("<iframe>"), Go = "elmethis:elm-html:auto-height", Ko = /* @__PURE__ */ new Set([
2527
2484
  "referrerpolicy",
2528
2485
  "sandbox",
2529
2486
  "src",
2530
2487
  "srcdoc"
2531
2488
  ]);
2532
- function Ko(e, t) {
2489
+ function qo(e, t) {
2533
2490
  return t ? !0 : (e?.split(/\s+/).filter(Boolean) ?? []).some((e) => e.toLowerCase() === "allow-scripts");
2534
2491
  }
2535
- function qo(e, t, n) {
2492
+ function Jo(e, t, n) {
2536
2493
  let r = e?.split(/\s+/).filter(Boolean).map((e) => e.toLowerCase()) ?? [], i = (e) => r.some((t) => t.toLowerCase() === e);
2537
- return n && !i("allow-scripts") && r.push("allow-scripts"), Ko(e, n) ? r.filter((e) => e.toLowerCase() !== "allow-same-origin").join(" ") : (t && !i("allow-same-origin") && r.push("allow-same-origin"), r.join(" "));
2494
+ return n && !i("allow-scripts") && r.push("allow-scripts"), qo(e, n) ? r.filter((e) => e.toLowerCase() !== "allow-same-origin").join(" ") : (t && !i("allow-same-origin") && r.push("allow-same-origin"), r.join(" "));
2538
2495
  }
2539
- function Jo(e) {
2496
+ function Yo(e) {
2540
2497
  return `${e}
2541
2498
  <script>(function () {
2542
2499
  var send = function () {
2543
2500
  try {
2544
2501
  parent.postMessage(
2545
- { kind: ${JSON.stringify(Wo)}, height: document.documentElement.scrollHeight },
2502
+ { kind: ${JSON.stringify(Go)}, height: document.documentElement.scrollHeight },
2546
2503
  "*"
2547
2504
  );
2548
2505
  } catch (e) {}
@@ -2551,14 +2508,14 @@ function Jo(e) {
2551
2508
  send();
2552
2509
  })();<\/script>`;
2553
2510
  }
2554
- function Yo(e, t) {
2511
+ function Xo(e, t) {
2555
2512
  return t === void 0 ? e : typeof e == "string" ? [e.trim().replace(/;$/, ""), `height:${t}px`].filter(Boolean).join(";") : {
2556
2513
  ...e || {},
2557
2514
  height: `${t}px`
2558
2515
  };
2559
2516
  }
2560
- var Xo = (e) => {
2561
- let t, [n, r] = A(), i = k(() => Ko(e.sandbox || void 0, e.allowScripts)), a = k(() => qo(e.sandbox || void 0, e.autoHeight, e.allowScripts));
2517
+ var Zo = (e) => {
2518
+ let t, [n, r] = A(), i = k(() => qo(e.sandbox || void 0, e.allowScripts)), a = k(() => Jo(e.sandbox || void 0, e.autoHeight, e.allowScripts));
2562
2519
  O(() => [
2563
2520
  e.html,
2564
2521
  e.src,
@@ -2573,7 +2530,7 @@ var Xo = (e) => {
2573
2530
  let e = (e) => {
2574
2531
  if (e.source !== a.contentWindow) return;
2575
2532
  let t = e.data;
2576
- t && t.kind === Wo && typeof t.height == "number" && r(t.height);
2533
+ t && t.kind === Go && typeof t.height == "number" && r(t.height);
2577
2534
  };
2578
2535
  return window.addEventListener("message", e), () => window.removeEventListener("message", e);
2579
2536
  }
@@ -2600,16 +2557,16 @@ var Xo = (e) => {
2600
2557
  let t = e.style;
2601
2558
  return typeof t == "object" && t?.height !== void 0;
2602
2559
  };
2603
- var c = Uo();
2560
+ var c = Wo();
2604
2561
  return _(c, [() => e.nativeProps, {
2605
2562
  get title() {
2606
2563
  return e.title ?? "Embedded HTML content";
2607
2564
  },
2608
2565
  get class() {
2609
- return z(Ho["elm-html"], e.class);
2566
+ return z(Uo["elm-html"], e.class);
2610
2567
  },
2611
2568
  get style() {
2612
- return e.autoHeight ? Yo(e.style, n()) : e.style;
2569
+ return e.autoHeight ? Xo(e.style, n()) : e.style;
2613
2570
  },
2614
2571
  get height() {
2615
2572
  return e.autoHeight ? n() === void 0 && !s() ? e.height : void 0 : e.height;
@@ -2618,7 +2575,7 @@ var Xo = (e) => {
2618
2575
  return o() ? e.src : void 0;
2619
2576
  },
2620
2577
  get srcdoc() {
2621
- return o() ? void 0 : e.autoHeight && i() ? Jo(e.html ?? "") : e.html ?? "";
2578
+ return o() ? void 0 : e.autoHeight && i() ? Yo(e.html ?? "") : e.html ?? "";
2622
2579
  },
2623
2580
  get sandbox() {
2624
2581
  return a();
@@ -2629,8 +2586,8 @@ var Xo = (e) => {
2629
2586
  }], !1), p(() => [(e) => {
2630
2587
  t = e;
2631
2588
  }, e.forwardedRef], c), c;
2632
- }, Zo = (e) => {
2633
- let t = P(e, "allowScripts", "autoHeight", "class", "children", "height", "html", "ref", "sandbox", "src", "style", "title"), n = P(t, (e) => typeof e == "string" && Go.has(e.toLowerCase())), i = (t) => r(Xo, {
2589
+ }, Qo = (e) => {
2590
+ let t = P(e, "allowScripts", "autoHeight", "class", "children", "height", "html", "ref", "sandbox", "src", "style", "title"), n = P(t, (e) => typeof e == "string" && Ko.has(e.toLowerCase())), i = (t) => r(Zo, {
2634
2591
  get html() {
2635
2592
  return e.html;
2636
2593
  },
@@ -2673,13 +2630,13 @@ var Xo = (e) => {
2673
2630
  return i(!0);
2674
2631
  }
2675
2632
  });
2676
- }, Qo = {
2633
+ }, $o = {
2677
2634
  "elm-html-viewer": "_elm-html-viewer_17ksq_1",
2678
2635
  header: "_header_17ksq_15",
2679
2636
  "icon-button": "_icon-button_17ksq_23",
2680
2637
  divider: "_divider_17ksq_49",
2681
2638
  content: "_content_17ksq_57"
2682
- }, $o = /* @__PURE__ */ y("<figure><div class=_header_17ksq_15><button type=button class=_icon-button_17ksq_23 aria-label=Download></button><button type=button class=_icon-button_17ksq_23 aria-label=\"Open in new tab\"></button></div><hr class=_divider_17ksq_49><div class=_content_17ksq_57>"), es = (e) => {
2639
+ }, es = /* @__PURE__ */ y("<figure><div class=_header_17ksq_15><button type=button class=_icon-button_17ksq_23 aria-label=Download></button><button type=button class=_icon-button_17ksq_23 aria-label=\"Open in new tab\"></button></div><hr class=_divider_17ksq_49><div class=_content_17ksq_57>"), ts = (e) => {
2683
2640
  let t = P(e, "allowScripts", "autoHeight", "class", "filename", "height", "html", "sandbox", "src"), n = /* @__PURE__ */ new Set(), i = (e) => {
2684
2641
  n.delete(e) && URL.revokeObjectURL(e);
2685
2642
  };
@@ -2722,16 +2679,16 @@ var Xo = (e) => {
2722
2679
  n?.remove(), t && URL.revokeObjectURL(t);
2723
2680
  }
2724
2681
  };
2725
- var s = $o(), c = s.firstChild, u = c.firstChild, d = u.nextSibling, f = c.nextSibling.nextSibling;
2682
+ var s = es(), c = s.firstChild, u = c.firstChild, d = u.nextSibling, f = c.nextSibling.nextSibling;
2726
2683
  return _(s, [t, { get class() {
2727
- return z(Qo["elm-html-viewer"], e.class);
2684
+ return z($o["elm-html-viewer"], e.class);
2728
2685
  } }], !0), u._$$click = o, l(u, r(J, {
2729
2686
  path: he,
2730
2687
  size: "1.25rem"
2731
2688
  })), d._$$click = a, l(d, r(J, {
2732
2689
  path: je,
2733
2690
  size: "1.25rem"
2734
- })), l(f, r(Zo, {
2691
+ })), l(f, r(Qo, {
2735
2692
  get html() {
2736
2693
  return e.html;
2737
2694
  },
@@ -2753,7 +2710,7 @@ var Xo = (e) => {
2753
2710
  })), s;
2754
2711
  };
2755
2712
  i(["click"]);
2756
- var X = {
2713
+ var Y = {
2757
2714
  "elm-slider": "_elm-slider_1pdn4_1",
2758
2715
  vertical: "_vertical_1pdn4_7",
2759
2716
  disabled: "_disabled_1pdn4_12",
@@ -2772,43 +2729,43 @@ var X = {
2772
2729
  tick: "_tick_1pdn4_210",
2773
2730
  "mark-restricted": "_mark-restricted_1pdn4_223",
2774
2731
  "mark-label": "_mark-label_1pdn4_227"
2775
- }, ts = /* @__PURE__ */ y("<div><div><div class=_rail_1pdn4_44 aria-hidden=true><div class=_restricted-start_1pdn4_58></div><div class=_fill_1pdn4_96></div><div class=_restricted-end_1pdn4_59></div></div><span class=_thumb_1pdn4_112 aria-hidden=true>"), ns = /* @__PURE__ */ y("<div class=_marks_1pdn4_169 aria-hidden=true>"), rs = /* @__PURE__ */ y("<span><!><!>"), is = /* @__PURE__ */ y("<i class=_tick_1pdn4_210>"), as = /* @__PURE__ */ y("<span class=_mark-label_1pdn4_227>"), os = 500, ss = (e, t, n) => Math.min(n, Math.max(t, e)), cs = (e) => Math.round(e * 1e9) / 1e9, ls = (e, t, n) => ss(cs(e), t, n), us = (e) => typeof e == "string" || typeof e == "number" ? String(e).length : Array.isArray(e) ? e.reduce((e, t) => e + us(t), 0) : 0, ds = (e, t, n, r) => {
2732
+ }, ns = /* @__PURE__ */ y("<div><div><div class=_rail_1pdn4_44 aria-hidden=true><div class=_restricted-start_1pdn4_58></div><div class=_fill_1pdn4_96></div><div class=_restricted-end_1pdn4_59></div></div><span class=_thumb_1pdn4_112 aria-hidden=true>"), rs = /* @__PURE__ */ y("<div class=_marks_1pdn4_169 aria-hidden=true>"), is = /* @__PURE__ */ y("<span><!><!>"), as = /* @__PURE__ */ y("<i class=_tick_1pdn4_210>"), os = /* @__PURE__ */ y("<span class=_mark-label_1pdn4_227>"), ss = 500, cs = (e, t, n) => Math.min(n, Math.max(t, e)), ls = (e) => Math.round(e * 1e9) / 1e9, us = (e, t, n) => cs(ls(e), t, n), ds = (e) => typeof e == "string" || typeof e == "number" ? String(e).length : Array.isArray(e) ? e.reduce((e, t) => e + ds(t), 0) : 0, fs = (e, t, n, r) => {
2776
2733
  if (!e || n === t) return [];
2777
2734
  let i = Math.abs(r);
2778
2735
  if (i === 0) return [];
2779
- let a = n > t ? i : -i, o = Math.floor(cs(Math.abs(n - t) / i)), s = [];
2780
- if (o <= os) {
2736
+ let a = n > t ? i : -i, o = Math.floor(ls(Math.abs(n - t) / i)), s = [];
2737
+ if (o <= ss) {
2781
2738
  for (let e = 0; e <= o; e++) {
2782
- let r = cs(t + e * a);
2739
+ let r = ls(t + e * a);
2783
2740
  s.push({
2784
2741
  value: r,
2785
- ratio: n === t ? 0 : ss((r - t) / (n - t), 0, 1)
2742
+ ratio: n === t ? 0 : cs((r - t) / (n - t), 0, 1)
2786
2743
  });
2787
2744
  }
2788
- cs(t + o * a) !== cs(n) && s.push({
2745
+ ls(t + o * a) !== ls(n) && s.push({
2789
2746
  value: n,
2790
2747
  ratio: 1
2791
2748
  });
2792
2749
  } else {
2793
- let e = (n - t) / os;
2794
- for (let r = 0; r <= os; r++) {
2795
- let i = r === os ? n : cs(t + r * e);
2750
+ let e = (n - t) / ss;
2751
+ for (let r = 0; r <= ss; r++) {
2752
+ let i = r === ss ? n : ls(t + r * e);
2796
2753
  s.push({
2797
2754
  value: i,
2798
- ratio: r / os
2755
+ ratio: r / ss
2799
2756
  });
2800
2757
  }
2801
2758
  }
2802
2759
  return s;
2803
- }, fs = (e) => {
2804
- let t = P(e, "ref", "class", "style", "children", "tabIndex", "tabindex", "onKeyDown", "onPointerDown", "onPointerMove", "onPointerUp", "onPointerCancel", "onLostPointerCapture", "min", "max", "step", "innerMin", "innerMax", "orientation", "value", "defaultValue", "onValueChange", "disabled", "markers", "markerLabels", "formatMarkerLabel"), i = () => e.min ?? 0, a = () => e.max ?? 100, s = () => e.step ?? 1, c = () => e.orientation ?? "horizontal", d = k(() => Math.min(i(), a())), m = k(() => Math.max(i(), a())), h = k(() => ss(e.innerMin ?? d(), d(), m())), y = k(() => ss(e.innerMax ?? m(), h(), m())), x = (e) => ls(e, h(), y()), S = (e) => {
2760
+ }, ps = (e) => {
2761
+ let t = P(e, "ref", "class", "style", "children", "tabIndex", "tabindex", "onKeyDown", "onPointerDown", "onPointerMove", "onPointerUp", "onPointerCancel", "onLostPointerCapture", "min", "max", "step", "innerMin", "innerMax", "orientation", "value", "defaultValue", "onValueChange", "disabled", "markers", "markerLabels", "formatMarkerLabel"), i = () => e.min ?? 0, a = () => e.max ?? 100, s = () => e.step ?? 1, c = () => e.orientation ?? "horizontal", d = k(() => Math.min(i(), a())), m = k(() => Math.max(i(), a())), h = k(() => cs(e.innerMin ?? d(), d(), m())), y = k(() => cs(e.innerMax ?? m(), h(), m())), x = (e) => us(e, h(), y()), S = (e) => {
2805
2762
  let t = Math.abs(s()), n = t === 0 ? e : i() + Math.round((e - i()) / t) * t;
2806
2763
  return x(n);
2807
- }, C = (e) => a() === i() ? 0 : ss((e - i()) / (a() - i()), 0, 1), [w, T] = Bn({
2764
+ }, C = (e) => a() === i() ? 0 : cs((e - i()) / (a() - i()), 0, 1), [w, T] = Vn({
2808
2765
  value: () => e.value,
2809
2766
  defaultValue: () => x(e.defaultValue ?? (h() + y()) / 2),
2810
2767
  onChange: (t) => e.onValueChange?.(t)
2811
- }), E = k(() => x(w())), D = k(() => C(E())), j = k(() => C(h())), M = k(() => C(y())), ee = k(() => Math.min(j(), M())), N = k(() => Math.max(j(), M())), F = k(() => Math.min(D(), j())), te = k(() => Math.abs(D() - j())), L = k(() => !!(e.markers || e.markerLabels)), R = k(() => ds(L(), i(), a(), s())), ne = k(() => R().map((t) => {
2768
+ }), E = k(() => x(w())), D = k(() => C(E())), j = k(() => C(h())), M = k(() => C(y())), ee = k(() => Math.min(j(), M())), N = k(() => Math.max(j(), M())), F = k(() => Math.min(D(), j())), te = k(() => Math.abs(D() - j())), L = k(() => !!(e.markers || e.markerLabels)), R = k(() => fs(L(), i(), a(), s())), ne = k(() => R().map((t) => {
2812
2769
  let n = k(() => {
2813
2770
  if (!e.markerLabels) return;
2814
2771
  let n = e.formatMarkerLabel?.(t.value) ?? t.value;
@@ -2818,9 +2775,9 @@ var X = {
2818
2775
  ...t,
2819
2776
  label: n
2820
2777
  };
2821
- })), re = k(() => ne().reduce((e, t) => Math.max(e, us(t.label())), 0)), [ie, ae] = A(0), B, V;
2778
+ })), re = k(() => ne().reduce((e, t) => Math.max(e, ds(t.label())), 0)), [ie, ae] = A(0), B, V;
2822
2779
  O(() => e.markerLabels ? ne() : void 0, (e) => {
2823
- let t = e && B?.querySelectorAll(`.${X["mark-label"]}`), n = () => {
2780
+ let t = e && B?.querySelectorAll(`.${Y["mark-label"]}`), n = () => {
2824
2781
  let e = 0;
2825
2782
  for (let n of t ?? []) e = Math.max(e, n.getBoundingClientRect().width);
2826
2783
  ae(Math.ceil(e));
@@ -2839,7 +2796,7 @@ var X = {
2839
2796
  });
2840
2797
  let se = (e, t) => {
2841
2798
  if (B == null) return E();
2842
- let n = B.getBoundingClientRect(), r = c() === "vertical" ? n.height === 0 ? 0 : ss((n.bottom - t) / n.height, 0, 1) : n.width === 0 ? 0 : ss((e - n.left) / n.width, 0, 1);
2799
+ let n = B.getBoundingClientRect(), r = c() === "vertical" ? n.height === 0 ? 0 : cs((n.bottom - t) / n.height, 0, 1) : n.width === 0 ? 0 : cs((e - n.left) / n.width, 0, 1);
2843
2800
  return S(i() + r * (a() - i()));
2844
2801
  }, ce = (t) => {
2845
2802
  e.disabled || (V !== void 0 && V !== t.pointerId && oe(), t.currentTarget.setPointerCapture(t.pointerId), V = t.pointerId, T(se(t.clientX, t.clientY)), q(e.onPointerDown, t));
@@ -2854,7 +2811,7 @@ var X = {
2854
2811
  }, fe = (t) => {
2855
2812
  if (e.disabled) return;
2856
2813
  let n = Math.abs(s()), r = h(), i = y(), a = (e) => {
2857
- T((t) => ls(ls(t, r, i) + e, r, i));
2814
+ T((t) => us(us(t, r, i) + e, r, i));
2858
2815
  };
2859
2816
  switch (t.key) {
2860
2817
  case "ArrowRight":
@@ -2878,7 +2835,7 @@ var X = {
2878
2835
  }
2879
2836
  q(e.onKeyDown, t);
2880
2837
  };
2881
- var pe = ts(), me = pe.firstChild, he = me.firstChild.nextSibling;
2838
+ var pe = ns(), me = pe.firstChild, he = me.firstChild.nextSibling;
2882
2839
  return _(me, [t, {
2883
2840
  get tabindex() {
2884
2841
  return e.tabindex ?? e.tabIndex ?? (e.disabled ? -1 : 0);
@@ -2911,24 +2868,24 @@ var X = {
2911
2868
  }, e.ref], me), l(me, (() => {
2912
2869
  var t = u(() => ne().length > 0);
2913
2870
  return () => t() ? (() => {
2914
- var t = ns();
2871
+ var t = rs();
2915
2872
  return l(t, r(b, {
2916
2873
  get each() {
2917
2874
  return ne();
2918
2875
  },
2919
2876
  children: (t, r) => (() => {
2920
- var i = rs(), a = i.firstChild, s = a.nextSibling;
2877
+ var i = is(), a = i.firstChild, s = a.nextSibling;
2921
2878
  return l(i, (() => {
2922
2879
  var t = u(() => !!e.markers);
2923
- return () => t() ? is() : void 0;
2880
+ return () => t() ? as() : void 0;
2924
2881
  })(), a), l(i, (() => {
2925
2882
  var n = u(() => !!e.markerLabels);
2926
2883
  return () => n() ? (() => {
2927
- var e = as();
2884
+ var e = os();
2928
2885
  return l(e, () => t.label()), e;
2929
2886
  })() : void 0;
2930
2887
  })(), s), o(() => ({
2931
- e: f(z(X.mark, r() === 0 && X["mark-start"], r() === ne().length - 1 && X["mark-end"], (t.value < h() || t.value > y()) && X["mark-restricted"])),
2888
+ e: f(z(Y.mark, r() === 0 && Y["mark-start"], r() === ne().length - 1 && Y["mark-end"], (t.value < h() || t.value > y()) && Y["mark-restricted"])),
2932
2889
  t: t.ratio
2933
2890
  }), ({ e, t }, r) => {
2934
2891
  n(i, e, r?.e), t !== r?.t && g(i, "--elmethis-scoped-marker-ratio", t);
@@ -2937,7 +2894,7 @@ var X = {
2937
2894
  })), t;
2938
2895
  })() : void 0;
2939
2896
  })(), he), o(() => ({
2940
- e: f(z(X["elm-slider"], c() === "vertical" && X.vertical, e.disabled && X.disabled, e.markers && X["has-markers"], e.markerLabels && X["has-marker-labels"], e.class)),
2897
+ e: f(z(Y["elm-slider"], c() === "vertical" && Y.vertical, e.disabled && Y.disabled, e.markers && Y["has-markers"], e.markerLabels && Y["has-marker-labels"], e.class)),
2941
2898
  t: f(W(e.style, {
2942
2899
  "--elmethis-scoped-value-ratio": D(),
2943
2900
  "--elmethis-scoped-inner-min-ratio": ee(),
@@ -2950,7 +2907,7 @@ var X = {
2950
2907
  }), ({ e, t }, r) => {
2951
2908
  n(pe, e, r?.e), v(pe, t, r?.t);
2952
2909
  }), pe;
2953
- }, ps = {
2910
+ }, ms = {
2954
2911
  loading: "_loading_mhzhq_23",
2955
2912
  "elm-text-area": "_elm-text-area_mhzhq_37",
2956
2913
  disabled: "_disabled_mhzhq_59",
@@ -2960,7 +2917,7 @@ var X = {
2960
2917
  requierd: "_requierd_mhzhq_86",
2961
2918
  body: "_body_mhzhq_92",
2962
2919
  textarea: "_textarea_mhzhq_97"
2963
- }, ms = /* @__PURE__ */ y("<label><span><span><!><!></span><!></span><div class=_body_mhzhq_92><textarea></textarea></div><div class=_loading_mhzhq_23>"), hs = /* @__PURE__ */ y("<span class=_requierd_mhzhq_86>*"), gs = (e) => {
2920
+ }, hs = /* @__PURE__ */ y("<label><span><span><!><!></span><!></span><div class=_body_mhzhq_92><textarea></textarea></div><div class=_loading_mhzhq_23>"), gs = /* @__PURE__ */ y("<span class=_requierd_mhzhq_86>*"), _s = (e) => {
2964
2921
  let t = P(e, "class", "style", "children", "label", "icon", "maxLength", "maxlength", "placeholder", "disabled", "isLoading", "required", "value", "defaultValue", "rows", "onInput", "onChange", "onFocus", "onBlur"), [i, a] = A(!1), [s, c] = A(L(() => String(e.defaultValue ?? "").length)), d = () => e.value != null || e.defaultValue != null, p = () => e.value == null ? s() : String(e.value).length, m = (t) => {
2965
2922
  c(t.currentTarget.value.length), typeof e.onInput == "function" ? e.onInput(t) : e.onInput && e.onInput[0](e.onInput[1], t);
2966
2923
  }, h = (t) => {
@@ -2970,13 +2927,13 @@ var X = {
2970
2927
  }, b = (t) => {
2971
2928
  a(!1), typeof e.onBlur == "function" ? e.onBlur(t) : e.onBlur && e.onBlur[0](e.onBlur[1], t);
2972
2929
  };
2973
- var x = ms(), S = x.firstChild, C = S.firstChild, w = C.firstChild, T = w.nextSibling, E = C.nextSibling, D = S.nextSibling, O = D.firstChild, k = D.nextSibling;
2930
+ var x = hs(), S = x.firstChild, C = S.firstChild, w = C.firstChild, T = w.nextSibling, E = C.nextSibling, D = S.nextSibling, O = D.firstChild, k = D.nextSibling;
2974
2931
  return l(S, () => e.icon ?? r(J, {
2975
2932
  path: We,
2976
2933
  size: "0.75rem"
2977
2934
  }), C), l(C, () => e.label, w), l(C, (() => {
2978
2935
  var t = u(() => !!e.required);
2979
- return () => t() ? hs() : void 0;
2936
+ return () => t() ? gs() : void 0;
2980
2937
  })(), T), l(S, (() => {
2981
2938
  var t = u(() => !!d());
2982
2939
  return () => t() ? r(K, {
@@ -3019,14 +2976,14 @@ var X = {
3019
2976
  return e.required === void 0 ? void 0 : e.required ? "true" : "false";
3020
2977
  }
3021
2978
  }], !1), o(() => ({
3022
- e: f(z(ps["elm-text-area"], i() && ps.active, (e.disabled || e.isLoading) && ps.disabled, e.class)),
2979
+ e: f(z(ms["elm-text-area"], i() && ms.active, (e.disabled || e.isLoading) && ms.disabled, e.class)),
3023
2980
  t: f(e.style),
3024
- a: f(z(ps.header, i() && ps["label-active"])),
2981
+ a: f(z(ms.header, i() && ms["label-active"])),
3025
2982
  o: +!!e.isLoading
3026
2983
  }), ({ e, t, a: r, o: i }, a) => {
3027
2984
  n(x, e, a?.e), v(x, t, a?.t), n(S, r, a?.a), i !== a?.o && g(k, "opacity", i);
3028
2985
  }), x;
3029
- }, _s = {
2986
+ }, vs = {
3030
2987
  loading: "_loading_1w7sf_23",
3031
2988
  "elm-text-field": "_elm-text-field_1w7sf_37",
3032
2989
  disabled: "_disabled_1w7sf_59",
@@ -3039,7 +2996,7 @@ var X = {
3039
2996
  "right-icon-box": "_right-icon-box_1w7sf_121",
3040
2997
  "clickable-icon": "_clickable-icon_1w7sf_126",
3041
2998
  "prefix-suffix": "_prefix-suffix_1w7sf_151"
3042
- }, vs = /* @__PURE__ */ y("<label><span><span><!><!></span><!></span><div class=_body_1w7sf_92><input><div class=_right-icon-box_1w7sf_121><span class=_prefix-suffix_1w7sf_151></span><button type=button class=_clickable-icon_1w7sf_126></button><button type=button class=_clickable-icon_1w7sf_126 aria-label=\"Clear text\"></button></div></div><div class=_loading_1w7sf_23>"), ys = /* @__PURE__ */ y("<span class=_requierd_1w7sf_86>*"), bs = /* @__PURE__ */ y("<span class=_prefix-suffix_1w7sf_151>"), xs = (e) => {
2999
+ }, ys = /* @__PURE__ */ y("<label><span><span><!><!></span><!></span><div class=_body_1w7sf_92><input><div class=_right-icon-box_1w7sf_121><span class=_prefix-suffix_1w7sf_151></span><button type=button class=_clickable-icon_1w7sf_126></button><button type=button class=_clickable-icon_1w7sf_126 aria-label=\"Clear text\"></button></div></div><div class=_loading_1w7sf_23>"), bs = /* @__PURE__ */ y("<span class=_requierd_1w7sf_86>*"), xs = /* @__PURE__ */ y("<span class=_prefix-suffix_1w7sf_151>"), Ss = (e) => {
3043
3000
  let t = P(e, "ref", "class", "style", "children", "label", "maxLength", "maxlength", "prefix", "suffix", "placeholder", "disabled", "isLoading", "icon", "value", "defaultValue", "isPassword", "required", "onInput", "onChange", "onFocus", "onBlur"), [i, a] = A(!1), [s, c] = A(L(() => e.isPassword ? "password" : "text")), d, h = (e) => {
3044
3001
  let t = d.ownerDocument.defaultView, n = t?.HTMLInputElement.prototype, r = n ? Object.getOwnPropertyDescriptor(n, "value") : void 0;
3045
3002
  r?.set ? r.set.call(d, e) : d.value = e;
@@ -3054,13 +3011,13 @@ var X = {
3054
3011
  }, S = (t) => {
3055
3012
  a(!1), typeof e.onBlur == "function" ? e.onBlur(t) : e.onBlur && e.onBlur[0](e.onBlur[1], t);
3056
3013
  };
3057
- var w = vs(), T = w.firstChild, E = T.firstChild, D = E.firstChild, O = D.nextSibling, k = E.nextSibling, j = T.nextSibling, M = j.firstChild, ee = M.nextSibling.firstChild, N = ee.nextSibling, F = N.nextSibling, I = j.nextSibling;
3014
+ var w = ys(), T = w.firstChild, E = T.firstChild, D = E.firstChild, O = D.nextSibling, k = E.nextSibling, j = T.nextSibling, M = j.firstChild, ee = M.nextSibling.firstChild, N = ee.nextSibling, F = N.nextSibling, I = j.nextSibling;
3058
3015
  return l(T, () => e.icon ?? r(J, {
3059
3016
  path: He,
3060
3017
  size: "0.75rem"
3061
3018
  }), E), l(E, () => e.label, D), l(E, (() => {
3062
3019
  var t = u(() => !!e.required);
3063
- return () => t() ? ys() : void 0;
3020
+ return () => t() ? bs() : void 0;
3064
3021
  })(), O), l(T, (() => {
3065
3022
  var t = u(() => e.value != null);
3066
3023
  return () => t() ? r(K, {
@@ -3078,7 +3035,7 @@ var X = {
3078
3035
  },
3079
3036
  keyed: !0,
3080
3037
  children: (e) => (() => {
3081
- var t = bs();
3038
+ var t = xs();
3082
3039
  return l(t, e), t;
3083
3040
  })()
3084
3041
  }), M), _(M, [t, {
@@ -3129,9 +3086,9 @@ var X = {
3129
3086
  size: "1.25rem",
3130
3087
  color: "gray"
3131
3088
  })), o(() => ({
3132
- e: f(z(_s["elm-text-field"], i() && _s.active, (e.disabled || e.isLoading) && _s.disabled, e.class)),
3089
+ e: f(z(vs["elm-text-field"], i() && vs.active, (e.disabled || e.isLoading) && vs.disabled, e.class)),
3133
3090
  t: f(e.style),
3134
- a: f(z(_s.header, i() && _s["label-active"])),
3091
+ a: f(z(vs.header, i() && vs["label-active"])),
3135
3092
  o: s() === "text" ? "Hide password" : "Show password",
3136
3093
  i: e.disabled || e.isLoading,
3137
3094
  n: e.disabled || e.isLoading,
@@ -3141,7 +3098,7 @@ var X = {
3141
3098
  }), w;
3142
3099
  };
3143
3100
  i(["click"]);
3144
- var Ss = {
3101
+ var X = {
3145
3102
  "elm-audio-player": "_elm-audio-player_1nzy3_1",
3146
3103
  "native-audio": "_native-audio_1nzy3_16",
3147
3104
  loading: "_loading_1nzy3_36",
@@ -3225,7 +3182,7 @@ var Ss = {
3225
3182
  var de = Cs(), H = de.firstChild, fe = H.nextSibling.firstChild, pe = fe.nextSibling, me = pe.firstChild;
3226
3183
  return _(de, [t, {
3227
3184
  get class() {
3228
- return z(Ss["elm-audio-player"], d() && Ss.playing, v() && Ss.loading, b() && Ss.errored, e.class);
3185
+ return z(X["elm-audio-player"], d() && X.playing, v() && X.loading, b() && X.errored, e.class);
3229
3186
  },
3230
3187
  get style() {
3231
3188
  return W(e.style, {
@@ -3298,7 +3255,7 @@ var Ss = {
3298
3255
  },
3299
3256
  size: "1.25rem"
3300
3257
  })), v._$$input = (e) => le(e.currentTarget.valueAsNumber), l(y, () => Os(S())), o(() => ({
3301
- e: f(z(Ss.time, Ss["time-current"])),
3258
+ e: f(z(X.time, X["time-current"])),
3302
3259
  t: `Back ${re()} seconds`,
3303
3260
  a: d() ? "Pause" : "Play",
3304
3261
  o: d() ? "true" : "false",
@@ -3307,7 +3264,7 @@ var Ss = {
3307
3264
  s: j() ? "true" : "false",
3308
3265
  h: j() ? 0 : E(),
3309
3266
  r: j() ? 0 : E(),
3310
- d: f(z(Ss.time, Ss["time-total"])),
3267
+ d: f(z(X.time, X["time-total"])),
3311
3268
  l: c()
3312
3269
  }), ({ e, t: r, a: i, o: a, i: o, n: c, s: l, h: d, r: f, d: h, l: b }, x) => {
3313
3270
  n(t, e, x?.e), r !== x?.t && m(s, "aria-label", r), i !== x?.a && m(u, "aria-label", i), a !== x?.o && m(u, "aria-pressed", a), o !== x?.i && m(p, "aria-label", o), c !== x?.n && m(_, "aria-label", c), l !== x?.s && m(_, "aria-pressed", l), (d !== x?.h || !b) && (v.value = d ?? ""), f !== x?.r && g(v, "--elmethis-scoped-volume", f), n(y, h, x?.d);
@@ -3317,7 +3274,7 @@ var Ss = {
3317
3274
  e: e.src,
3318
3275
  t: e.loop,
3319
3276
  a: e.autoPlay,
3320
- o: f(z(Ss.artwork, b() && Ss["artwork-error"])),
3277
+ o: f(z(X.artwork, b() && X["artwork-error"])),
3321
3278
  i: te()
3322
3279
  }), ({ e, t, a: r, o: i, i: a }, o) => {
3323
3280
  e !== o?.e && m(H, "src", e), t !== o?.t && m(H, "loop", t), r !== o?.a && m(H, "autoplay", r), n(fe, i, o?.o), a !== o?.i && m(me, "title", a);
@@ -3620,7 +3577,7 @@ function Q(e, t) {
3620
3577
  }
3621
3578
  var Zs = class e {
3622
3579
  constructor(e = [], t = []) {
3623
- ua(this, "components", void 0), ua(this, "functions", void 0);
3580
+ da(this, "components", void 0), da(this, "functions", void 0);
3624
3581
  let n = /* @__PURE__ */ new Map();
3625
3582
  for (let t of e) n.set(t.name, t);
3626
3583
  this.components = n, this.functions = [...t];
@@ -3640,7 +3597,7 @@ var Zs = class e {
3640
3597
  return new e(n.values(), [...r.values()]);
3641
3598
  }
3642
3599
  toCatalog(e) {
3643
- return new jt(e, "0.9", [...this.components.values()], [...this.functions]);
3600
+ return new Mt(e, "0.9", [...this.components.values()], [...this.functions]);
3644
3601
  }
3645
3602
  }, Qs = {
3646
3603
  start: "flex-start",
@@ -3682,9 +3639,9 @@ var Zs = class e {
3682
3639
  m(t, "id", e);
3683
3640
  }), t;
3684
3641
  })() : void 0), kc = new Zs([
3685
- Q(Zt, (e) => r(w, {
3642
+ Q(Qt, (e) => r(w, {
3686
3643
  get fallback() {
3687
- return r(Hi, {
3644
+ return r(Ui, {
3688
3645
  get level() {
3689
3646
  return Dc(e.props.variant ?? "h1");
3690
3647
  },
@@ -3708,14 +3665,14 @@ var Zs = class e {
3708
3665
  return (e.props.variant ?? "body") === "body";
3709
3666
  },
3710
3667
  get children() {
3711
- return r(qi, { get children() {
3668
+ return r(Ji, { get children() {
3712
3669
  return e.props.text;
3713
3670
  } });
3714
3671
  }
3715
3672
  })];
3716
3673
  }
3717
3674
  })),
3718
- Q(Jt, (e) => (() => {
3675
+ Q(Yt, (e) => (() => {
3719
3676
  var t = rc();
3720
3677
  return l(t, r(b, {
3721
3678
  get each() {
@@ -3735,7 +3692,7 @@ var Zs = class e {
3735
3692
  e !== r?.e && g(t, "justify-content", e), n !== r?.t && g(t, "align-items", n);
3736
3693
  }), t;
3737
3694
  })()),
3738
- Q(Vt, (e) => (() => {
3695
+ Q(Ht, (e) => (() => {
3739
3696
  var t = ic();
3740
3697
  return l(t, r(b, {
3741
3698
  get each() {
@@ -3750,7 +3707,7 @@ var Zs = class e {
3750
3707
  })
3751
3708
  })), t;
3752
3709
  })()),
3753
- Q(Kt, (e) => (() => {
3710
+ Q(qt, (e) => (() => {
3754
3711
  var t = ac();
3755
3712
  return l(t, r(b, {
3756
3713
  get each() {
@@ -3770,11 +3727,11 @@ var Zs = class e {
3770
3727
  n(t, e, r);
3771
3728
  }), t;
3772
3729
  })()),
3773
- Q(Rt, (e) => (() => {
3730
+ Q(zt, (e) => (() => {
3774
3731
  var t = sc();
3775
3732
  return l(t, () => e.renderChild(e.props.child)), t;
3776
3733
  })()),
3777
- Q(Lt, (e) => {
3734
+ Q(Rt, (e) => {
3778
3735
  let t = () => `${e.instanceId}-errors`, i = () => e.props.isValid === !1, a = () => {
3779
3736
  i() || e.props.action?.().catch((e) => {
3780
3737
  console.error("[ElmA2ui] action failed:", e);
@@ -3803,7 +3760,7 @@ var Zs = class e {
3803
3760
  e !== a?.e && m(c, "tabindex", e), t !== a?.t && m(c, "aria-disabled", t), r !== a?.a && m(c, "aria-describedby", r), n(c, i, a?.o);
3804
3761
  }), s;
3805
3762
  }),
3806
- Q(Gt, (e) => (() => {
3763
+ Q(Kt, (e) => (() => {
3807
3764
  var t = lc();
3808
3765
  return o(() => ({
3809
3766
  e: e.props.url,
@@ -3813,7 +3770,7 @@ var Zs = class e {
3813
3770
  e !== i?.e && m(t, "src", e), n !== i?.t && m(t, "alt", n), r !== i?.a && g(t, "object-fit", r);
3814
3771
  }), t;
3815
3772
  })()),
3816
- Q(Wt, (e) => {
3773
+ Q(Gt, (e) => {
3817
3774
  let t = k(() => typeof e.props.name == "string" ? e.props.name : "custom"), n = k(() => typeof e.props.name == "object" && e.props.name != null && "svgPath" in e.props.name ? e.props.name.svgPath : void 0);
3818
3775
  return u(() => u(() => !!n())() ? (() => {
3819
3776
  var e = uc(), r = e.firstChild;
@@ -3833,13 +3790,13 @@ var Zs = class e {
3833
3790
  }), e;
3834
3791
  })());
3835
3792
  }),
3836
- Q(Ut, (e) => (() => {
3793
+ Q(Wt, (e) => (() => {
3837
3794
  var t = fc();
3838
3795
  return o(() => f([Ys.divider, e.props.axis === "vertical" && Ys["divider-vertical"]]), (e, r) => {
3839
3796
  n(t, e, r);
3840
3797
  }), t;
3841
3798
  })()),
3842
- Q(Qt, (e) => (() => {
3799
+ Q($t, (e) => (() => {
3843
3800
  var t = pc(), n = t.firstChild, i = n.nextSibling, a = i.nextSibling;
3844
3801
  return l(n, () => e.props.label), l(t, (() => {
3845
3802
  var t = u(() => e.props.variant === "longText");
@@ -3878,7 +3835,7 @@ var Zs = class e {
3878
3835
  m(n, "for", e);
3879
3836
  }), t;
3880
3837
  })()),
3881
- Q(zt, (e) => (() => {
3838
+ Q(Bt, (e) => (() => {
3882
3839
  var t = gc(), n = t.firstChild.firstChild, i = n.nextSibling;
3883
3840
  return n.addEventListener("change", (t) => e.props.setValue(t.currentTarget.checked)), l(i, () => e.props.label), l(t, r(Oc, {
3884
3841
  get id() {
@@ -3896,7 +3853,7 @@ var Zs = class e {
3896
3853
  (e !== a?.e || !i) && (n.checked = e), t !== a?.t && m(n, "aria-invalid", t), r !== a?.a && m(n, "aria-describedby", r);
3897
3854
  }), t;
3898
3855
  })()),
3899
- Q(Yt, (e) => (() => {
3856
+ Q(Xt, (e) => (() => {
3900
3857
  var t = _c(), n = t.firstChild;
3901
3858
  return n._$$input = (t) => e.props.setValue(Number(t.currentTarget.value)), l(t, r(Oc, {
3902
3859
  get id() {
@@ -3916,15 +3873,15 @@ var Zs = class e {
3916
3873
  (e !== s?.e || !o) && (n.value = e ?? ""), t !== s?.t && m(n, "min", t), r !== s?.a && m(n, "max", r), i !== s?.o && m(n, "aria-invalid", i), a !== s?.i && m(n, "aria-describedby", a);
3917
3874
  }), t;
3918
3875
  })()),
3919
- Q(Xt, (e) => r(Na, {
3876
+ Q(Zt, (e) => r(Pa, {
3920
3877
  defaultValue: "0",
3921
3878
  get children() {
3922
- return [r(Pa, { get children() {
3879
+ return [r(Fa, { get children() {
3923
3880
  return r(b, {
3924
3881
  get each() {
3925
3882
  return e.props.tabs;
3926
3883
  },
3927
- children: (e, t) => r(Fa, {
3884
+ children: (e, t) => r(Ia, {
3928
3885
  get value() {
3929
3886
  return String(t());
3930
3887
  },
@@ -3937,7 +3894,7 @@ var Zs = class e {
3937
3894
  get each() {
3938
3895
  return e.props.tabs;
3939
3896
  },
3940
- children: (t, n) => r(Ia, {
3897
+ children: (t, n) => r(La, {
3941
3898
  get value() {
3942
3899
  return String(n());
3943
3900
  },
@@ -3948,14 +3905,14 @@ var Zs = class e {
3948
3905
  })];
3949
3906
  }
3950
3907
  })),
3951
- Q(qt, (e) => {
3908
+ Q(Jt, (e) => {
3952
3909
  let [t, n] = A(!1), i = () => n(!0);
3953
3910
  return [(() => {
3954
3911
  var t = vc();
3955
3912
  return t._$$keydown = (e) => {
3956
3913
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i());
3957
3914
  }, t._$$click = i, l(t, () => e.renderChild(e.props.trigger)), t;
3958
- })(), u(() => u(() => !!t())() ? r(Da, {
3915
+ })(), u(() => u(() => !!t())() ? r(Oa, {
3959
3916
  isOpen: !0,
3960
3917
  delay: 0,
3961
3918
  onClose: () => n(!1),
@@ -3964,19 +3921,19 @@ var Zs = class e {
3964
3921
  }
3965
3922
  }) : void 0)];
3966
3923
  }),
3967
- Q($t, (e) => (() => {
3924
+ Q(en, (e) => (() => {
3968
3925
  var t = yc();
3969
3926
  return o(() => e.props.url, (e) => {
3970
3927
  m(t, "src", e);
3971
3928
  }), t;
3972
3929
  })()),
3973
- Q(Ft, (e) => (() => {
3930
+ Q(It, (e) => (() => {
3974
3931
  var t = bc();
3975
3932
  return o(() => e.props.url, (e) => {
3976
3933
  m(t, "src", e);
3977
3934
  }), t;
3978
3935
  })()),
3979
- Q(Bt, (e) => {
3936
+ Q(Vt, (e) => {
3980
3937
  let t = k(() => Array.isArray(e.props.value) ? e.props.value : []), n = k(() => e.props.variant === "multipleSelection");
3981
3938
  var i = xc(), a = i.firstChild, s = a.nextSibling;
3982
3939
  return l(i, (() => {
@@ -4015,7 +3972,7 @@ var Zs = class e {
4015
3972
  }
4016
3973
  }), s), i;
4017
3974
  }),
4018
- Q(Ht, (e) => {
3975
+ Q(Ut, (e) => {
4019
3976
  let t = k(() => e.props.enableDate && e.props.enableTime ? "datetime-local" : e.props.enableDate ? "date" : e.props.enableTime ? "time" : "text");
4020
3977
  var n = wc(), i = n.firstChild, a = i.nextSibling;
4021
3978
  return l(n, (() => {
@@ -4043,7 +4000,7 @@ var Zs = class e {
4043
4000
  e !== c?.e && m(i, "type", e), (t !== c?.t || !s) && h(i, "value", t), n !== c?.a && m(i, "min", n), r !== c?.o && m(i, "max", r), a !== c?.i && m(i, "aria-invalid", a), o !== c?.n && m(i, "aria-describedby", o);
4044
4001
  }), n;
4045
4002
  })
4046
- ], [...It]);
4003
+ ], [...Lt]);
4047
4004
  i([
4048
4005
  "click",
4049
4006
  "keydown",
@@ -4085,7 +4042,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4085
4042
  a({});
4086
4043
  return;
4087
4044
  }
4088
- let i = new Mt(t, n, r), o = new Nt(i, at.schema);
4045
+ let i = new Nt(t, n, r), o = new Pt(i, at.schema);
4089
4046
  a({ ...o.snapshot });
4090
4047
  let s = o.subscribe((e) => a({ ...e }));
4091
4048
  return () => {
@@ -4129,7 +4086,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4129
4086
  get children() {
4130
4087
  return e.props.text;
4131
4088
  }
4132
- }) : r(ha, {
4089
+ }) : r(ga, {
4133
4090
  get expression() {
4134
4091
  return e.props.text;
4135
4092
  },
@@ -4146,7 +4103,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4146
4103
  return e.props.text;
4147
4104
  }
4148
4105
  })),
4149
- Q(dt, (e) => r(bn, {
4106
+ Q(dt, (e) => r(xn, {
4150
4107
  get src() {
4151
4108
  return e.props.src;
4152
4109
  },
@@ -4192,7 +4149,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4192
4149
  v(t, e, n);
4193
4150
  }), t;
4194
4151
  })()),
4195
- Q(lt, (e) => r(Hi, {
4152
+ Q(lt, (e) => r(Ui, {
4196
4153
  get level() {
4197
4154
  return e.props.level;
4198
4155
  },
@@ -4211,7 +4168,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4211
4168
  });
4212
4169
  }
4213
4170
  })),
4214
- Q(yt, (e) => r(qi, {
4171
+ Q(yt, (e) => r(Ji, {
4215
4172
  get color() {
4216
4173
  return e.props.color;
4217
4174
  },
@@ -4233,7 +4190,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4233
4190
  });
4234
4191
  }
4235
4192
  })),
4236
- Q(mt, (e) => r(Wi, {
4193
+ Q(mt, (e) => r(Gi, {
4237
4194
  get listStyle() {
4238
4195
  return e.props.style ?? "unordered";
4239
4196
  },
@@ -4267,7 +4224,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4267
4224
  }
4268
4225
  })
4269
4226
  })),
4270
- Q($e, (e) => r(Ei, {
4227
+ Q($e, (e) => r(Di, {
4271
4228
  get cite() {
4272
4229
  return e.props.cite;
4273
4230
  },
@@ -4286,7 +4243,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4286
4243
  });
4287
4244
  }
4288
4245
  })),
4289
- Q(tt, (e) => r(Ai, {
4246
+ Q(tt, (e) => r(ji, {
4290
4247
  get type() {
4291
4248
  return e.props.type;
4292
4249
  },
@@ -4305,7 +4262,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4305
4262
  });
4306
4263
  }
4307
4264
  })),
4308
- Q(vt, (e) => r(Jr, {
4265
+ Q(vt, (e) => r(Yr, {
4309
4266
  get icon() {
4310
4267
  return e.props.icon;
4311
4268
  },
@@ -4330,8 +4287,8 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4330
4287
  });
4331
4288
  }
4332
4289
  })),
4333
- Q(st, () => r(Ni, {})),
4334
- Q(wt, (e) => r(za, {
4290
+ Q(st, () => r(Pi, {})),
4291
+ Q(wt, (e) => r(Ba, {
4335
4292
  get summary() {
4336
4293
  return r(b, {
4337
4294
  get each() {
@@ -4361,7 +4318,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4361
4318
  });
4362
4319
  }
4363
4320
  })),
4364
- Q(et, (e) => r(Lr, {
4321
+ Q(et, (e) => r(Rr, {
4365
4322
  get url() {
4366
4323
  return e.props.url;
4367
4324
  },
@@ -4375,7 +4332,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4375
4332
  return e.props.image;
4376
4333
  }
4377
4334
  })),
4378
- Q(ct, (e) => r(Nr, {
4335
+ Q(ct, (e) => r(Pr, {
4379
4336
  get src() {
4380
4337
  return e.props.src;
4381
4338
  },
@@ -4427,7 +4384,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4427
4384
  e !== u?.e && m(n, "src", e), t !== u?.t && m(n, "poster", t), r !== u?.a && m(n, "title", r), i !== u?.o && m(n, "width", i), a !== u?.i && m(n, "height", a), o !== u?.n && m(n, "loop", o), s !== u?.s && m(n, "autoplay", s), (c !== u?.h || !l) && (n.muted = c);
4428
4385
  }), t;
4429
4386
  })()),
4430
- Q(Qe, (e) => r(io, {
4387
+ Q(Qe, (e) => r(ao, {
4431
4388
  get src() {
4432
4389
  return e.props.src;
4433
4390
  },
@@ -4451,7 +4408,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4451
4408
  },
4452
4409
  enableModal: !0
4453
4410
  })),
4454
- Q(ut, (e) => r(es, {
4411
+ Q(ut, (e) => r(ts, {
4455
4412
  get html() {
4456
4413
  return e.props.html;
4457
4414
  },
@@ -4468,7 +4425,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4468
4425
  return e.props.height ?? 400;
4469
4426
  }
4470
4427
  })),
4471
- Q(nt, (e) => r(Mo, {
4428
+ Q(nt, (e) => r(No, {
4472
4429
  get code() {
4473
4430
  return e.props.code;
4474
4431
  },
@@ -4479,13 +4436,13 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4479
4436
  return e.props.caption;
4480
4437
  }
4481
4438
  })),
4482
- Q(ft, (e) => r(ha, {
4439
+ Q(ft, (e) => r(ga, {
4483
4440
  get expression() {
4484
4441
  return e.props.expression;
4485
4442
  },
4486
4443
  block: !0
4487
4444
  })),
4488
- Q(gt, (e) => r(Mo, {
4445
+ Q(gt, (e) => r(No, {
4489
4446
  get code() {
4490
4447
  return e.props.code;
4491
4448
  },
@@ -4494,15 +4451,15 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4494
4451
  Q(at, () => null),
4495
4452
  Q(ot, (e) => {
4496
4453
  let t = () => e.childRefs(e.props.children);
4497
- return r(Na, {
4454
+ return r(Pa, {
4498
4455
  defaultValue: "0",
4499
4456
  get children() {
4500
- return [r(Pa, { get children() {
4457
+ return [r(Fa, { get children() {
4501
4458
  return r(b, {
4502
4459
  get each() {
4503
4460
  return t();
4504
4461
  },
4505
- children: (t, n) => r(Fa, {
4462
+ children: (t, n) => r(Ia, {
4506
4463
  get value() {
4507
4464
  return String(n());
4508
4465
  },
@@ -4529,7 +4486,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4529
4486
  get each() {
4530
4487
  return t();
4531
4488
  },
4532
- children: (t, n) => r(Ia, {
4489
+ children: (t, n) => r(La, {
4533
4490
  get value() {
4534
4491
  return String(n());
4535
4492
  },
@@ -4555,7 +4512,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4555
4512
  }
4556
4513
  });
4557
4514
  }),
4558
- Q(xt, (e) => r(uo, {
4515
+ Q(xt, (e) => r(fo, {
4559
4516
  get caption() {
4560
4517
  return u(() => e.props.caption == null)() ? void 0 : String(e.props.caption);
4561
4518
  },
@@ -4568,7 +4525,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4568
4525
  return e.props.header?.length;
4569
4526
  },
4570
4527
  get children() {
4571
- return r(vo, { get children() {
4528
+ return r(yo, { get children() {
4572
4529
  return r(b, {
4573
4530
  get each() {
4574
4531
  return e.childRefs(e.props.header);
@@ -4584,7 +4541,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4584
4541
  });
4585
4542
  } });
4586
4543
  }
4587
- }), r(po, { get children() {
4544
+ }), r(mo, { get children() {
4588
4545
  return r(b, {
4589
4546
  get each() {
4590
4547
  return e.childRefs(e.props.body);
@@ -4601,7 +4558,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4601
4558
  } })];
4602
4559
  }
4603
4560
  })),
4604
- Q(Ct, (e) => r(xo, {
4561
+ Q(Ct, (e) => r(So, {
4605
4562
  get "data-a2ui-component-id"() {
4606
4563
  return e.componentId;
4607
4564
  },
@@ -4624,7 +4581,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4624
4581
  });
4625
4582
  }
4626
4583
  })),
4627
- Q(St, (e) => r(ho, {
4584
+ Q(St, (e) => r(go, {
4628
4585
  get "data-a2ui-component-id"() {
4629
4586
  return e.componentId;
4630
4587
  },
@@ -4652,7 +4609,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4652
4609
  });
4653
4610
  }
4654
4611
  })),
4655
- Q(Tt, (e) => r(Nn, { get details() {
4612
+ Q(Tt, (e) => r(Pn, { get details() {
4656
4613
  return u(() => !!e.props.details)() ? `Unsupported component type: ${String(e.props.details)}` : "Unsupported component type";
4657
4614
  } }))
4658
4615
  ], Rc = kc.extend(...Lc), zc = [...Rc.components.values()], Bc = [...Rc.functions], Vc = /* @__PURE__ */ y("<span data-a2ui-state=loading class=a2ui-loading>[Loading <!>…]"), Hc = /* @__PURE__ */ y("<span data-a2ui-state=unknown class=a2ui-unknown>Unknown component: "), Uc = /* @__PURE__ */ y("<span style=display:contents>"), Wc = "root", Gc = E(), Kc = E(), qc = (...e) => `a2ui-${encodeURIComponent(JSON.stringify(e))}`, Jc = (e) => {
@@ -4689,7 +4646,7 @@ var Ac = /* @__PURE__ */ y("<div style=display:flex;flex-direction:column;box-si
4689
4646
  let p = k(() => {
4690
4647
  let r = f(), i = t?.(), o = r && n?.().get(r.type);
4691
4648
  if (!o || !i || a()) return;
4692
- let s = new Mt(i, e.id, e.basePath), c = new Nt(s, o.schema);
4649
+ let s = new Nt(i, e.id, e.basePath), c = new Pt(s, o.schema);
4693
4650
  return F(() => c.dispose()), {
4694
4651
  entry: o,
4695
4652
  context: s,
@@ -4873,7 +4830,7 @@ var Xc = /* @__PURE__ */ y("<div class=_surface_ffile_5>"), Zc = /* @__PURE__ */
4873
4830
  e && r.add(e);
4874
4831
  }
4875
4832
  let i = {
4876
- processor: new Pt([...r].map((e) => n.toCatalog(e))),
4833
+ processor: new Ft([...r].map((e) => n.toCatalog(e))),
4877
4834
  messages: [],
4878
4835
  catalogId: t,
4879
4836
  catalog: n
@@ -4975,7 +4932,7 @@ var Xc = /* @__PURE__ */ y("<div class=_surface_ffile_5>"), Zc = /* @__PURE__ */
4975
4932
  "field-input": "_field-input_156hu_174",
4976
4933
  "field-hint": "_field-hint_156hu_191"
4977
4934
  }, al = /* @__PURE__ */ y("<div>"), ol = /* @__PURE__ */ y("<div class=_modal-card_156hu_65>"), sl = /* @__PURE__ */ y("<div class=_empty_156hu_18>No prompts available."), cl = /* @__PURE__ */ y("<button type=button><span class=_prompt-head_156hu_48><span class=_prompt-name_156hu_54>"), ll = /* @__PURE__ */ y("<span class=_prompt-description_156hu_59>"), ul = /* @__PURE__ */ y("<div class=_modal-header_156hu_80><span class=_modal-title_156hu_91>"), dl = /* @__PURE__ */ y("<div class=_form_156hu_81><!><!>"), fl = /* @__PURE__ */ y("<div class=_form-actions_156hu_106><button type=button class=_cancel-button_156hu_113>Cancel</button><button type=button class=_use-button_156hu_112>"), pl = /* @__PURE__ */ y("<span class=_modal-description_156hu_96>"), ml = /* @__PURE__ */ y("<label class=_field-label_156hu_82><span class=_field-name_156hu_165><!><!></span><!><!>"), hl = /* @__PURE__ */ y("<span class=_field-required_156hu_152>*"), gl = /* @__PURE__ */ y("<select class=_field-input_156hu_174><!><!>"), _l = /* @__PURE__ */ y("<input class=_field-input_156hu_174 type=text>"), vl = /* @__PURE__ */ y("<option value>(none)"), yl = /* @__PURE__ */ y("<option>"), bl = /* @__PURE__ */ y("<span class=_field-hint_156hu_191>"), xl = /* @__PURE__ */ y("<div class=_error_156hu_151>"), Sl = (e) => {
4978
- let t = P(e, "class", "children", "prompts", "onPick", "activeIndex", "triggerDescriptor", "clearTriggerDescriptor"), { Modal: i, show: a, hide: s } = $a(), [d, g] = j({
4935
+ let t = P(e, "class", "children", "prompts", "onPick", "activeIndex", "triggerDescriptor", "clearTriggerDescriptor"), { Modal: i, show: a, hide: s } = eo(), [d, g] = j({
4979
4936
  descriptor: null,
4980
4937
  values: {},
4981
4938
  submitting: !1,
@@ -5335,7 +5292,7 @@ var Cl = {
5335
5292
  var M = Ml(), ee = M.firstChild, N = ee.firstChild, F = N.nextSibling, I = F.firstChild, te = I.nextSibling, L = te.nextSibling;
5336
5293
  return _(M, [t, { get class() {
5337
5294
  return z(jl["elm-ag-ui-input"], e.class);
5338
- } }], !0), l(M, r(ya, {
5295
+ } }], !0), l(M, r(ba, {
5339
5296
  get isOpen() {
5340
5297
  return u(() => !!S())() ? a() || c() !== null : S();
5341
5298
  },
@@ -5467,7 +5424,7 @@ var Il = {
5467
5424
  summary: "_summary_195kk_2",
5468
5425
  "tool-args-results-wrapper": "_tool-args-results-wrapper_195kk_11"
5469
5426
  }, Wl = /* @__PURE__ */ y("<div class=_summary_195kk_2><!><!>"), Gl = /* @__PURE__ */ y("<div>"), Kl = /* @__PURE__ */ y("<div class=_tool-args-results-wrapper_195kk_11>"), ql = (e) => {
5470
- let t = P(e, "class", "children", "toolName", "toolEventType", "toolCallArgs", "toolCallResult"), [n, i] = A(!1), [a, o] = A(!1), [s, c] = A(!1), [d, f] = A(!1), [p, m] = A(!1), h = fa(200), g = -1, v = (e) => {
5427
+ let t = P(e, "class", "children", "toolName", "toolEventType", "toolCallArgs", "toolCallResult"), [n, i] = A(!1), [a, o] = A(!1), [s, c] = A(!1), [d, f] = A(!1), [p, m] = A(!1), h = pa(200), g = -1, v = (e) => {
5471
5428
  h.push(() => Promise.resolve(e())).catch(() => void 0);
5472
5429
  };
5473
5430
  O(() => e.toolEventType, (e) => {
@@ -5508,7 +5465,7 @@ var Il = {
5508
5465
  var b = Gl();
5509
5466
  return _(b, [t, { get class() {
5510
5467
  return z(Ul["elm-ag-ui-tool-execution"], e.class);
5511
- } }], !0), l(b, r(za, {
5468
+ } }], !0), l(b, r(Ba, {
5512
5469
  get isOpen() {
5513
5470
  return n();
5514
5471
  },
@@ -5525,7 +5482,7 @@ var Il = {
5525
5482
  return a();
5526
5483
  },
5527
5484
  get children() {
5528
- return r(za, {
5485
+ return r(Ba, {
5529
5486
  get isOpen() {
5530
5487
  return s();
5531
5488
  },
@@ -5542,7 +5499,7 @@ var Il = {
5542
5499
  keyed: !0,
5543
5500
  children: (e) => (() => {
5544
5501
  var t = Kl();
5545
- return l(t, r(ko, {
5502
+ return l(t, r(Ao, {
5546
5503
  language: "json",
5547
5504
  code: e
5548
5505
  })), t;
@@ -5565,7 +5522,7 @@ var Il = {
5565
5522
  return d();
5566
5523
  },
5567
5524
  get children() {
5568
- return r(za, {
5525
+ return r(Ba, {
5569
5526
  get isOpen() {
5570
5527
  return p();
5571
5528
  },
@@ -5582,7 +5539,7 @@ var Il = {
5582
5539
  keyed: !0,
5583
5540
  children: (e) => (() => {
5584
5541
  var t = Kl();
5585
- return l(t, r(ko, {
5542
+ return l(t, r(Ao, {
5586
5543
  language: "json",
5587
5544
  code: e
5588
5545
  })), t;
@@ -5615,7 +5572,7 @@ var Il = {
5615
5572
  behavior: "smooth",
5616
5573
  top: a.scrollHeight
5617
5574
  }));
5618
- }), r(za, {
5575
+ }), r(Ba, {
5619
5576
  get isOpen() {
5620
5577
  return t();
5621
5578
  },
@@ -5632,7 +5589,7 @@ var Il = {
5632
5589
  var t = Yl();
5633
5590
  return p(() => (e) => {
5634
5591
  a = e;
5635
- }, t), l(t, r(Vo, {
5592
+ }, t), l(t, r(Ho, {
5636
5593
  style: { opacity: .5 },
5637
5594
  get markdown() {
5638
5595
  return e.markdown;
@@ -5686,14 +5643,14 @@ var Il = {
5686
5643
  return l(a, r(J, {
5687
5644
  class: "_message-content-icon_l3ynt_35",
5688
5645
  path: pe
5689
- }), o), l(a, r(K, { children: "Assistant" }), s), l(i, r(Vo, {
5646
+ }), o), l(a, r(K, { children: "Assistant" }), s), l(i, r(Ho, {
5690
5647
  markdown: n,
5691
5648
  isStreaming: !0
5692
5649
  }), c), l(i, (() => {
5693
5650
  var i = u(() => !t.isRunning);
5694
5651
  return () => i() ? (() => {
5695
5652
  var i = Ql(), a = i.firstChild;
5696
- return l(i, r(or, { content: n }), a), e(a, "click", t.handleRetry, !0), l(a, r(J, {
5653
+ return l(i, r(sr, { content: n }), a), e(a, "click", t.handleRetry, !0), l(a, r(J, {
5697
5654
  path: Ie,
5698
5655
  size: "1.25rem"
5699
5656
  })), i;
@@ -5716,7 +5673,7 @@ var Il = {
5716
5673
  path: ne
5717
5674
  }), d), l(c, r(K, { children: "User" }), f), l(s, r(Hl, { get inputContent() {
5718
5675
  return n.content;
5719
- } }), p), l(s, r(or, { get content() {
5676
+ } }), p), l(s, r(sr, { get content() {
5720
5677
  return tu(n);
5721
5678
  } }), m), o;
5722
5679
  case "developer":
@@ -5937,7 +5894,7 @@ function _u({ setState: e, getTools: t, onNeedsReRun: n, onIdle: r }) {
5937
5894
  let r = a[t];
5938
5895
  if (!r) return;
5939
5896
  let s = {
5940
- id: tn(),
5897
+ id: nn(),
5941
5898
  role: "tool",
5942
5899
  content: JSON.stringify(await r.execute(n)),
5943
5900
  toolCallId: e.toolCallId
@@ -6012,7 +5969,7 @@ function xu(e) {
6012
5969
  return Object.entries(e).map(([e, t]) => ({
6013
5970
  name: e,
6014
5971
  description: t.description,
6015
- parameters: "jsonSchema" in t ? t.jsonSchema : nn(t.schema)
5972
+ parameters: "jsonSchema" in t ? t.jsonSchema : rn(t.schema)
6016
5973
  }));
6017
5974
  }
6018
5975
  //#endregion
@@ -6049,7 +6006,7 @@ function Su(e) {
6049
6006
  }
6050
6007
  };
6051
6008
  return I(() => {
6052
- r = e.url === void 0 ? e.agentFactory() : (e.agentFactory ?? ((e) => new en(e)))({
6009
+ r = e.url === void 0 ? e.agentFactory() : (e.agentFactory ?? ((e) => new tn(e)))({
6053
6010
  url: e.url,
6054
6011
  headers: e.headers
6055
6012
  }), r.messages = [...e.initialMessages ?? []];
@@ -6081,7 +6038,7 @@ function Su(e) {
6081
6038
  send: async (e) => {
6082
6039
  if (!r) return;
6083
6040
  let t = {
6084
- id: tn(),
6041
+ id: nn(),
6085
6042
  role: "user",
6086
6043
  content: e
6087
6044
  }, n = !1;
@@ -6301,4 +6258,4 @@ function Mu(e) {
6301
6258
  };
6302
6259
  }
6303
6260
  //#endregion
6304
- export { Kc as A2uiCatalogContext, $c as A2uiSurface, Gc as A2uiSurfaceContext, Zs as CatalogRenderer, Jc as ComponentHost, rl as ElmA2ui, fu as ElmAgUiAgent, Fl as ElmAgUiInput, Hl as ElmAgUiInputContent, nu as ElmAgUiMessageRenderer, Sl as ElmAgUiPromptPicker, Al as ElmAgUiStatus, ql as ElmAgUiToolExecution, As as ElmAudioPlayer, hn as ElmBlockFallback, io as ElmBlockImage, Ei as ElmBlockQuote, Lr as ElmBookmark, Vr as ElmBreadcrumb, Ln as ElmButton, Ka as ElmButtonDropdown, Ai as ElmCallout, Wn as ElmCheckbox, Mo as ElmCodeBlock, ya as ElmCollapse, ii as ElmColorPrimitiveSample, xi as ElmColorSemanticSample, or as ElmCopyIcon, Ni as ElmDivider, un as ElmDotLoadingIcon, Nr as ElmFile, Ii as ElmFragmentIdentifier, Hi as ElmHeading, Zo as ElmHtml, es as ElmHtmlViewer, bn as ElmInlineIcon, K as ElmInlineText, ha as ElmKatex, fr as ElmLanguageIcon, Wi as ElmList, Vo as ElmMarkdown, J as ElmMdiIcon, Da as ElmModal, Jr as ElmNotionCallout, Wr as ElmPageTop, qi as ElmParagraph, wa as ElmParallax, on as ElmProgress, pn as ElmRectangleWave, Qa as ElmSelect, ko as ElmShikiHighlighter, fs as ElmSlider, _r as ElmSquareLoadingIcon, qn as ElmSwitch, Fa as ElmTab, Pa as ElmTabList, Ia as ElmTabPanel, uo as ElmTable, po as ElmTableBody, ho as ElmTableCell, vo as ElmTableHeader, xo as ElmTableRow, Na as ElmTabs, gs as ElmTextArea, xs as ElmTextField, za as ElmToggle, kr as ElmToggleTheme, Ha as ElmTooltip, Nn as ElmUnsupportedBlock, nr as ElmValidation, oo as HasRowHeaderContext, Wc as ROOT_COMPONENT_ID, br as THEME_CHANGE_EVENT, so as TableSectionContext, da as ThrottledQueue, kc as basicCatalog, Ji as createAsyncState, rr as createClipboard, Bn as createControllableSignal, Yi as createDebounced, Xi as createDelayedSignal, wr as createElmethisTheme, ia as createLocalStorage, $a as createModal, aa as createSessionStorage, oa as createThrottled, fa as createThrottledQueue, bu as defineJsonSchemaTool, Q as defineRenderer, yu as defineTool, Rc as notionBlockCatalog, zc as notionBlockComponents, Bc as notionBlockFunctions, Su as useAgent, Ou as useMcpPrompts, Mu as useMcpTools, Js as useWordle };
6261
+ export { Kc as A2uiCatalogContext, $c as A2uiSurface, Gc as A2uiSurfaceContext, Zs as CatalogRenderer, Jc as ComponentHost, rl as ElmA2ui, fu as ElmAgUiAgent, Fl as ElmAgUiInput, Hl as ElmAgUiInputContent, nu as ElmAgUiMessageRenderer, Sl as ElmAgUiPromptPicker, Al as ElmAgUiStatus, ql as ElmAgUiToolExecution, As as ElmAudioPlayer, gn as ElmBlockFallback, ao as ElmBlockImage, Di as ElmBlockQuote, Rr as ElmBookmark, Hr as ElmBreadcrumb, Rn as ElmButton, qa as ElmButtonDropdown, ji as ElmCallout, Gn as ElmCheckbox, No as ElmCodeBlock, ba as ElmCollapse, ai as ElmColorPrimitiveSample, Si as ElmColorSemanticSample, sr as ElmCopyIcon, Pi as ElmDivider, dn as ElmDotLoadingIcon, Pr as ElmFile, Li as ElmFragmentIdentifier, Ui as ElmHeading, Qo as ElmHtml, ts as ElmHtmlViewer, xn as ElmInlineIcon, K as ElmInlineText, ga as ElmKatex, pr as ElmLanguageIcon, Gi as ElmList, Ho as ElmMarkdown, J as ElmMdiIcon, Oa as ElmModal, Yr as ElmNotionCallout, Gr as ElmPageTop, Ji as ElmParagraph, Ta as ElmParallax, sn as ElmProgress, mn as ElmRectangleWave, $a as ElmSelect, Ao as ElmShikiHighlighter, ps as ElmSlider, vr as ElmSquareLoadingIcon, Jn as ElmSwitch, Ia as ElmTab, Fa as ElmTabList, La as ElmTabPanel, fo as ElmTable, mo as ElmTableBody, go as ElmTableCell, yo as ElmTableHeader, So as ElmTableRow, Pa as ElmTabs, _s as ElmTextArea, Ss as ElmTextField, Ba as ElmToggle, Ar as ElmToggleTheme, Ua as ElmTooltip, Pn as ElmUnsupportedBlock, rr as ElmValidation, so as HasRowHeaderContext, Wc as ROOT_COMPONENT_ID, xr as THEME_CHANGE_EVENT, co as TableSectionContext, fa as ThrottledQueue, kc as basicCatalog, Yi as createAsyncState, ir as createClipboard, Vn as createControllableSignal, Xi as createDebounced, Zi as createDelayedSignal, Tr as createElmethisTheme, aa as createLocalStorage, eo as createModal, oa as createSessionStorage, sa as createThrottled, pa as createThrottledQueue, bu as defineJsonSchemaTool, Q as defineRenderer, yu as defineTool, Rc as notionBlockCatalog, zc as notionBlockComponents, Bc as notionBlockFunctions, Su as useAgent, Ou as useMcpPrompts, Mu as useMcpTools, Js as useWordle };